@broxus/locklift-network
Version:
In-memory TVM-blockchain emulator for locklift
23 lines (22 loc) • 1.06 kB
TypeScript
import * as nt from "nekoton-wasm";
import { LockliftExecutor } from "./executor";
import { BlockchainConfig, NetworkCapabilities } from "nekoton-wasm";
export declare class LockliftTransport implements nt.IProxyConnector {
private executor;
private cache;
private readonly networkConfig;
constructor(networkConfig: "EVER" | "TON" | {
custom: string;
} | undefined);
setExecutor(executor: LockliftExecutor): void;
info(): nt.TransportInfo;
getAccountsByCodeHash(codeHash: string, limit: number, continuation?: string): Promise<string[]>;
getBlockchainConfig(): Promise<BlockchainConfig>;
getCapabilities(nowMs: string): Promise<NetworkCapabilities>;
getContractState(address: string): Promise<string>;
getDstTransaction(msgHash: string): Promise<string | undefined>;
getLatestKeyBlock(): Promise<string>;
getTransaction(id: string): Promise<string | undefined>;
getTransactions(address: string, fromLt: string, count: number): Promise<string[]>;
sendMessage(message: string): Promise<void>;
}