UNPKG

@biconomy-devx/ethers-lib

Version:

Ethers library adapter to be used by Biconomy SDK

17 lines (16 loc) 867 B
import { BigNumber } from '@ethersproject/bignumber'; import { FallbackGasTankContract } from '@biconomy-devx/core-types'; import { FallbackGasTankContract_v1_0_0 as Fallback_Type, FallbackUserOperationStruct } from '../../../../typechain/src/ethers-v5/v1.0.0/FallbackGasTankContract_v1_0_0'; import { Contract } from '@ethersproject/contracts'; import { Interface } from '@ethersproject/abi'; declare class FallbackGasTankEthersContract implements FallbackGasTankContract { contract: Fallback_Type; constructor(contract: Fallback_Type); getAddress(): string; getContract(): Contract; getBalance(_dappIdentifier: string): Promise<BigNumber>; getNonce(_sender: string): Promise<BigNumber>; getHash(fallbackUserOp: FallbackUserOperationStruct): Promise<string>; getInterface(): Interface; } export default FallbackGasTankEthersContract;