import { ethers as real_ethers } from 'ethers'; import type { // => BigNumber } from 'ethers'; import type { // => CurrencyAmount, IAccount, IBackend, IContract, OnProgress, LaunchTokenOpts } from './shared_impl'; import type { // => AnyETH_Ty, Token } from './ETH_like_compiled'; export type { Token } from './ETH_like_compiled'; export declare type Ty = AnyETH_Ty; import type { // => EthersLikeContract, EthersLikeSigner, EthersLikeWallet, EthersLikeProvider, EthLikeArgs, TransactionReceipt, Address } from './ETH_like_interfaces'; export type { Address, } from './ETH_like_interfaces'; import type { // => Stdlib_Backend } from './interfaces'; import { setQueryLowerBound, getQueryLowerBound } from './shared_impl'; export { setQueryLowerBound, getQueryLowerBound }; declare type TransactionResponse = real_ethers.providers.TransactionResponse; export declare type Backend = IBackend & { _Connectors: { ETH: { version: number; ABI: string; Bytecode: string; views: { [viewn: string]: string | { [keyn: string]: string; }; }; }; }; }; export declare type NetworkAccount = { address?: Address; getAddress?: () => Promise
; sendTransaction?: (...xs: any) => Promise; getBalance?: (...xs: any) => any; _mnemonic?: () => { phrase: string; }; } | EthersLikeWallet | EthersLikeSigner; export declare type ContractInfo = Address; export declare type Contract = IContract; export declare type Account = IAccount; declare type VerifyResult = { creationBlock: BigNumber; }; declare type AccountTransferable = Account | { networkAccount: NetworkAccount; getGasLimit?: () => BigNumber; getStorageLimit?: () => BigNumber; }; export declare function makeEthLike(ethLikeArgs: EthLikeArgs): { doCall: (dhead: string, ctc: EthersLikeContract, funcName: string, args: Array, value: BigNumber, gasLimit: BigNumber | undefined, storageLimit: BigNumber | undefined) => Promise; getQueryLowerBound: typeof getQueryLowerBound; setQueryLowerBound: typeof setQueryLowerBound; getValidQueryWindow: () => number | true; setValidQueryWindow: (val: number | true) => void; getFaucet: () => Promise; setFaucet: (val: Promise) => void; randomUInt: () => real_ethers.BigNumber; hasRandom: { random: () => real_ethers.BigNumber; }; balanceOf: (acc: Account | Address, token?: Token | false) => Promise; balancesOf: (acc: Account | Address, tokens: Array) => Promise>; minimumBalanceOf: (acc: Account | Address) => Promise; transfer: (from: AccountTransferable, to: AccountTransferable, value: any, token?: Token | false) => Promise; connectAccount: (networkAccount: NetworkAccount) => Promise; newAccountFromSecret: (secret: string) => Promise; newAccountFromMnemonic: (phrase: string) => Promise; getDefaultAccount: () => Promise; createAccount: () => Promise; canFundFromFaucet: () => Promise; fundFromFaucet: (account: AccountTransferable, value: any) => Promise; newTestAccount: (startingBalance: any) => Promise; newTestAccounts: (k: number, bal: any) => Promise; getNetworkTime: () => Promise; waitUntilTime: (target: real_ethers.BigNumber, onProgress?: OnProgress | undefined) => Promise; wait: (delta: BigNumber, onProgress?: OnProgress | undefined) => Promise; getNetworkSecs: () => Promise; waitUntilSecs: (target: real_ethers.BigNumber, onProgress?: OnProgress | undefined) => Promise; verifyContract: (ctcInfo: ContractInfo, backend: Backend) => Promise; standardUnit: string; atomicUnit: string; parseCurrency: (amt: CurrencyAmount) => BigNumber; minimumBalance: real_ethers.BigNumber; formatCurrency: (amt: any, decimals?: number) => string; formatAddress: (acc: string | NetworkAccount | Account) => string; formatWithDecimals: (amt: unknown, decimals: number) => string; unsafeGetMnemonic: (acc: Account | NetworkAccount) => string; launchToken: (accCreator: Account, name: string, sym: string, opts?: LaunchTokenOpts) => Promise<{ name: string; sym: string; id: any; mint: (accTo: Account, amt: any) => Promise; optOut: (accFrom: Account, accTo?: Account) => Promise; }>; reachStdlib: Stdlib_Backend; setMinMillisBetweenRequests: () => void; setCustomHttpEventHandler: () => void; setSigningMonitor: import("./shared_impl").SetSigningMonitor; getTimeSecs: (now_bn: BigNumber) => Promise; getProvider: () => Promise; setProvider: (p: Promise) => void; setProviderByEnv: (env: ProviderEnv) => void; setProviderByName: (providerName: ProviderName) => void; providerEnvByName: (providerName: ProviderName) => ProviderEnv; setWalletFallback: (wallet: any) => void; walletFallback: (opts: any) => any; stdlib: import("./interfaces").Stdlib_Backend_Base; typeDefs: import("./interfaces").TypeDefs; }; //# sourceMappingURL=ETH_like.d.ts.map