UNPKG

@haechi-labs/henesis-cli

Version:

🚀 Command Line Interface tool to Utilize henesis

108 lines • 3.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("reflect-metadata"); var PlatformType; (function (PlatformType) { PlatformType["ETHEREUM"] = "ethereum"; PlatformType["KLAYTN"] = "klaytn"; })(PlatformType = exports.PlatformType || (exports.PlatformType = {})); var NetworkType; (function (NetworkType) { NetworkType["MAINNET"] = "mainnet"; NetworkType["ROPSTEN"] = "ropsten"; NetworkType["BAOBAB"] = "baobab"; })(NetworkType = exports.NetworkType || (exports.NetworkType = {})); class Provider { constructor(type, url, method, headers) { this.type = type; this.url = url; this.method = method; this.headers = headers; } } exports.Provider = Provider; class Filter { constructor(contracts) { this.contracts = contracts; } } exports.Filter = Filter; class Blockchain { constructor(platform, network, threshold) { this.platform = platform; this.network = network; this.threshold = threshold; } } exports.Blockchain = Blockchain; class Contract { constructor(name, address, abi) { this.name = name; this.address = address; this.abi = abi; } } exports.Contract = Contract; class UpdateIntegrationRequest { constructor(version, apiVersion = 'v1', blockchain, filter, provider) { this.version = version; this.apiVersion = apiVersion; this.blockchain = blockchain; this.filter = filter; this.provider = provider; } } exports.UpdateIntegrationRequest = UpdateIntegrationRequest; class CreateIntegrationRequest { constructor(name, version, apiVersion = 'v1', blockchain, filter, provider) { this.name = name; this.version = version; this.apiVersion = apiVersion; this.blockchain = blockchain; this.filter = filter; this.provider = provider; } } exports.CreateIntegrationRequest = CreateIntegrationRequest; class SubscriptionStat { constructor(id, eventCount) { this.id = id; this.eventCount = eventCount; } } exports.SubscriptionStat = SubscriptionStat; class IntegrationStat { constructor(integrationId, subscriptions) { this.integrationId = integrationId; this.subscriptions = subscriptions; } } exports.IntegrationStat = IntegrationStat; class Integration { constructor(integrationId, userId, name, version, apiVersion, blockchain, filter, provider, status) { this.integrationId = integrationId; this.userId = userId; this.name = name; this.version = version; this.apiVersion = apiVersion; this.blockchain = blockchain; this.filter = filter; this.provider = provider; this.status = status; } } exports.Integration = Integration; class Status { constructor(state) { this.state = state; } } exports.Status = Status; class SubscriptionUsage { constructor(subscriptionId, events) { this.subscriptionId = subscriptionId; this.events = events; } } exports.SubscriptionUsage = SubscriptionUsage; //# sourceMappingURL=Integration.js.map