UNPKG

@57block/stellar-resource-usage

Version:

A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution

34 lines 1.37 kB
import { Buffer } from "buffer"; import { Client as ContractClient, Spec as ContractSpec, } from '@stellar/stellar-sdk/contract'; export * from '@stellar/stellar-sdk'; export * as contract from '@stellar/stellar-sdk/contract'; export * as rpc from '@stellar/stellar-sdk/rpc'; if (typeof window !== 'undefined') { //@ts-ignore Buffer exists window.Buffer = window.Buffer || Buffer; } export const networks = { standalone: { networkPassphrase: "Standalone Network ; February 2017", contractId: "CDY6U3RFUCPUOSVYSTRY676FOASLEFYENJ7VFDD7SVQJIC3PMLMDRJEK", } }; export const Errors = {}; export class Client extends ContractClient { options; static async deploy( /** Options for initalizing a Client as well as for calling a method, with extras specific to deploying. */ options) { return ContractClient.deploy(null, options); } constructor(options) { super(new ContractSpec(["AAAAAAAAAAAAAAAEaW5pdAAAAAAAAAAA", "AAAAAAAAAAAAAAADcnVuAAAAAAYAAAAAAAAAA2NwdQAAAAPoAAAABAAAAAAAAAADbWVtAAAAA+gAAAAEAAAAAAAAAANzZXQAAAAD6AAAAAQAAAAAAAAAA2dldAAAAAPoAAAABAAAAAAAAAAGZXZlbnRzAAAAAAPoAAAABAAAAAAAAAAEX3R4bgAAA+gAAAAOAAAAAA=="]), options); this.options = options; } fromJSON = { init: (this.txFromJSON), run: (this.txFromJSON) }; } //# sourceMappingURL=index.js.map