locklift
Version:
Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.
28 lines (27 loc) • 1.09 kB
TypeScript
import { Address, ProviderRpcClient } from "everscale-inpage-provider";
import { ConnectionProperties } from "everscale-standalone-client/nodejs";
import { ForkCacheService } from "./index";
import { AccountFetcherResponse } from "@broxus/locklift-network/src/types";
export interface SourceFetcher {
getBocAndCodeHash(params: {
address: Address;
}): Promise<AccountFetcherResponse>;
}
export declare class LiveFetcher implements SourceFetcher {
private readonly provider;
constructor(provider: ProviderRpcClient);
static init: (connectionConfig: ConnectionProperties) => Promise<LiveFetcher>;
private _getBocAndCodeHash;
getBocAndCodeHash(params: {
address: Address;
}): Promise<AccountFetcherResponse>;
}
export declare class BlockFetcher implements SourceFetcher {
private readonly cacheService;
private readonly blockNumber;
constructor(cacheService: ForkCacheService, blockNumber: number);
private _getBocAndCodeHash;
getBocAndCodeHash(params: {
address: Address;
}): Promise<AccountFetcherResponse>;
}