import { ethers as real_ethers } from 'ethers'; import { SecretKeyInput, Mnemonic } from './shared_impl'; import type { // => BigNumber } from 'ethers'; import type { // => 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 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 }; type TransactionResponse = real_ethers.providers.TransactionResponse; export type Backend = IBackend & { _Connectors: { ETH: { version: number; ABI: string; Bytecode: string; }; }; }; export type NetworkAccount = { address?: Address; getAddress?: () => Promise
; sendTransaction?: (...xs: any) => Promise; getBalance?: (...xs: any) => any; _mnemonic?: () => { phrase: string; }; } | EthersLikeWallet | EthersLikeSigner; export type ContractInfo = Address; export type Contract = IContract; export type Account = IAccount; type VerifyResult = { creationBlock: BigNumber; }; type AccountTransferable = Account | { networkAccount: NetworkAccount; getGasLimit?: () => BigNumber; getStorageLimit?: () => BigNumber; }; export declare function makeEthLike(ethLikeArgs: EthLikeArgs): { ethers: import("./ETH_like_interfaces").EthersLike; 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; appOptedIn: (_acc: Account | Address, _ctc: ContractInfo) => Promise; doAppOptIn: (_ctc: ContractInfo) => Promise; transfer: (from: AccountTransferable, to: AccountTransferable | Address, value: any, token?: Token) => Promise; connectAccount: (networkAccount: NetworkAccount) => Promise; newAccountFromSecret: (secret: SecretKeyInput) => Promise; newAccountFromMnemonic: (phrase: Mnemonic) => Promise; getDefaultAccount: () => Promise; createAccount: () => Promise; canFundFromFaucet: () => Promise; fundFromFaucet: (account: AccountTransferable | Address, 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) => Promise; getNetworkSecs: () => Promise; waitUntilSecs: (target: real_ethers.BigNumber, onProgress?: OnProgress | undefined) => Promise; verifyContract: (ctcInfo: ContractInfo, backend: Backend) => Promise; standardUnit: string; atomicUnit: string; parseCurrency: (amt: import("./shared_impl").CurrencyAmount, decimals?: number) => real_ethers.BigNumber; minimumBalance: real_ethers.BigNumber; formatCurrency: (amt: any, decimals?: number) => string; formatAddress: (acc: string | NetworkAccount | Account | Address) => 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: (to: Account | Address, 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; tokensAccepted: (_: Account | Address) => 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