UNPKG

@broxus/locklift-network

Version:

In-memory TVM-blockchain emulator for locklift

26 lines (25 loc) 1.06 kB
import * as nt from "nekoton-wasm"; import { ConnectionFactory } from "everscale-standalone-client/nodejs"; import { LockliftExecutor } from "./internal/executor"; import { AccountFetcherCallback } from "./types"; import { BlockchainConfig } from "nekoton-wasm"; export declare class LockliftNetwork { private readonly _transport; private readonly _connectionFactory; private readonly _executor; constructor(config?: { accountFetcher?: AccountFetcherCallback; networkConfig?: "EVER" | "TON" | { custom: string; }; } | undefined); initialize(): Promise<void>; setAccount: LockliftExecutor["setAccount"]; saveSnapshot: LockliftExecutor["saveSnapshot"]; loadSnapshot: LockliftExecutor["loadSnapshot"]; clearSnapshots: LockliftExecutor["clearSnapshots"]; resetBlockchainState: LockliftExecutor["resetBlockchainState"]; get connectionFactory(): ConnectionFactory; getBlockchainConfig(): Promise<BlockchainConfig>; getTxTrace(txHash: string): nt.EngineTraceInfo[] | undefined; }