UNPKG

tokamak-staking-lib

Version:
16 lines (15 loc) 1.15 kB
import { provider } from "web3-core"; import BN from "bn.js"; export declare const setNetwork: (provider: provider, net?: string) => void; export declare const getNumLayer2: () => Promise<number>; export declare const getLayer2ByIndex: (index: number) => Promise<string>; export declare const isLayer2: (layer2: string) => Promise<boolean>; export declare const getOperator: (layer2: string) => Promise<string>; export declare const isSubmitter: (layer2: string, account: string) => Promise<boolean>; export declare const getStakedAmount: (layer2: string, account: string, blockNumber?: BN) => Promise<BN>; export declare const getStakedAmountDiff: (layer2: string, account: string, fromBlockNumber: BN, toBlockNumber?: BN) => Promise<BN>; export declare const getTotalStakedAmount: (account: string, blockNumber?: BN) => Promise<BN>; export declare const getTotalStakedAmountDiff: (account: string, fromBlockNumber: BN, toBlockNumber?: BN) => Promise<BN>; export declare const getTotalSupplyOfTON: () => Promise<BN>; export declare const getTotalSupplyOfTONWithSeig: () => Promise<BN>; export declare const getTotalSupplyOfWTON: () => Promise<BN>;