import BigNumber from "bignumber.js"; import { Contract } from "@ethersproject/contracts"; import type { TokenConfig, Tx } from "../../common/types"; import EthereumConfig from "./ethereum"; export interface ERC20TokenConfig extends TokenConfig { contractAddress: string; } export default class ERC20Config extends EthereumConfig { contractInstance: Contract; contractAddress: string; constructor(config: ERC20TokenConfig); getContract(): Promise; getTx(txId: string): Promise; getFee(amount: BigNumber.Value, to?: string): Promise; createTx(amount: BigNumber.Value, to: string, _fee?: string): Promise<{ txId: string | undefined; tx: any; }>; }