import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface XERC20LockboxInterface extends utils.Interface { contractName: "XERC20Lockbox"; functions: { "ERC20()": FunctionFragment; "IS_NATIVE()": FunctionFragment; "XERC20()": FunctionFragment; "depositNative()": FunctionFragment; "deposit(uint256)": FunctionFragment; "depositTo(address,uint256)": FunctionFragment; "depositNativeTo(address)": FunctionFragment; "withdraw(uint256)": FunctionFragment; "withdrawTo(address,uint256)": FunctionFragment; }; encodeFunctionData(functionFragment: "ERC20", values?: undefined): string; encodeFunctionData(functionFragment: "IS_NATIVE", values?: undefined): string; encodeFunctionData(functionFragment: "XERC20", values?: undefined): string; encodeFunctionData(functionFragment: "depositNative", values?: undefined): string; encodeFunctionData(functionFragment: "deposit", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "depositTo", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "depositNativeTo", values: [string]): string; encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "withdrawTo", values: [string, BigNumberish]): string; decodeFunctionResult(functionFragment: "ERC20", data: BytesLike): Result; decodeFunctionResult(functionFragment: "IS_NATIVE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "XERC20", data: BytesLike): Result; decodeFunctionResult(functionFragment: "depositNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "depositTo", data: BytesLike): Result; decodeFunctionResult(functionFragment: "depositNativeTo", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdrawTo", data: BytesLike): Result; events: { "ABC(address)": EventFragment; "Deposit(address,uint256)": EventFragment; "Withdraw(address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "ABC"): EventFragment; getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; getEvent(nameOrSignatureOrTopic: "Withdraw"): EventFragment; } export declare type ABCEvent = TypedEvent<[string], { abc: string; }>; export declare type ABCEventFilter = TypedEventFilter; export declare type DepositEvent = TypedEvent<[ string, BigNumber ], { _sender: string; _amount: BigNumber; }>; export declare type DepositEventFilter = TypedEventFilter; export declare type WithdrawEvent = TypedEvent<[ string, BigNumber ], { _sender: string; _amount: BigNumber; }>; export declare type WithdrawEventFilter = TypedEventFilter; export interface XERC20Lockbox extends BaseContract { contractName: "XERC20Lockbox"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: XERC20LockboxInterface; queryFilter(event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>; listeners(eventFilter?: TypedEventFilter): Array>; listeners(eventName?: string): Array; removeAllListeners(eventFilter: TypedEventFilter): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { /** * The ERC20 token of this contract */ ERC20(overrides?: CallOverrides): Promise<[string]>; /** * Whether the ERC20 token is the native gas token of this chain */ IS_NATIVE(overrides?: CallOverrides): Promise<[boolean]>; /** * The XERC20 token of this contract */ XERC20(overrides?: CallOverrides): Promise<[string]>; /** * Deposit native tokens into the lockbox */ depositNative(overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox * @param _amount The amount of tokens to deposit */ deposit(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox, and send the XERC20 to a user * @param _amount The amount of tokens to deposit * @param _to The user to send the XERC20 to */ depositTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _to The user to send the XERC20 to */ depositNativeTo(_to: string, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Withdraw ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw */ withdraw(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Withdraw tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _to The user to withdraw to */ withdrawTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; /** * The ERC20 token of this contract */ ERC20(overrides?: CallOverrides): Promise; /** * Whether the ERC20 token is the native gas token of this chain */ IS_NATIVE(overrides?: CallOverrides): Promise; /** * The XERC20 token of this contract */ XERC20(overrides?: CallOverrides): Promise; /** * Deposit native tokens into the lockbox */ depositNative(overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox * @param _amount The amount of tokens to deposit */ deposit(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox, and send the XERC20 to a user * @param _amount The amount of tokens to deposit * @param _to The user to send the XERC20 to */ depositTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _to The user to send the XERC20 to */ depositNativeTo(_to: string, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Withdraw ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw */ withdraw(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Withdraw tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _to The user to withdraw to */ withdrawTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { /** * The ERC20 token of this contract */ ERC20(overrides?: CallOverrides): Promise; /** * Whether the ERC20 token is the native gas token of this chain */ IS_NATIVE(overrides?: CallOverrides): Promise; /** * The XERC20 token of this contract */ XERC20(overrides?: CallOverrides): Promise; /** * Deposit native tokens into the lockbox */ depositNative(overrides?: CallOverrides): Promise; /** * Deposit ERC20 tokens into the lockbox * @param _amount The amount of tokens to deposit */ deposit(_amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Deposit ERC20 tokens into the lockbox, and send the XERC20 to a user * @param _amount The amount of tokens to deposit * @param _to The user to send the XERC20 to */ depositTo(_to: string, _amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _to The user to send the XERC20 to */ depositNativeTo(_to: string, overrides?: CallOverrides): Promise; /** * Withdraw ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw */ withdraw(_amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Withdraw tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _to The user to withdraw to */ withdrawTo(_to: string, _amount: BigNumberish, overrides?: CallOverrides): Promise; }; filters: { "ABC(address)"(abc?: null): ABCEventFilter; ABC(abc?: null): ABCEventFilter; "Deposit(address,uint256)"(_sender?: null, _amount?: null): DepositEventFilter; Deposit(_sender?: null, _amount?: null): DepositEventFilter; "Withdraw(address,uint256)"(_sender?: null, _amount?: null): WithdrawEventFilter; Withdraw(_sender?: null, _amount?: null): WithdrawEventFilter; }; estimateGas: { /** * The ERC20 token of this contract */ ERC20(overrides?: CallOverrides): Promise; /** * Whether the ERC20 token is the native gas token of this chain */ IS_NATIVE(overrides?: CallOverrides): Promise; /** * The XERC20 token of this contract */ XERC20(overrides?: CallOverrides): Promise; /** * Deposit native tokens into the lockbox */ depositNative(overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox * @param _amount The amount of tokens to deposit */ deposit(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox, and send the XERC20 to a user * @param _amount The amount of tokens to deposit * @param _to The user to send the XERC20 to */ depositTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _to The user to send the XERC20 to */ depositNativeTo(_to: string, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Withdraw ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw */ withdraw(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Withdraw tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _to The user to withdraw to */ withdrawTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { /** * The ERC20 token of this contract */ ERC20(overrides?: CallOverrides): Promise; /** * Whether the ERC20 token is the native gas token of this chain */ IS_NATIVE(overrides?: CallOverrides): Promise; /** * The XERC20 token of this contract */ XERC20(overrides?: CallOverrides): Promise; /** * Deposit native tokens into the lockbox */ depositNative(overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox * @param _amount The amount of tokens to deposit */ deposit(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit ERC20 tokens into the lockbox, and send the XERC20 to a user * @param _amount The amount of tokens to deposit * @param _to The user to send the XERC20 to */ depositTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _to The user to send the XERC20 to */ depositNativeTo(_to: string, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Withdraw ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw */ withdraw(_amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Withdraw tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _to The user to withdraw to */ withdrawTo(_to: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; }