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 IXERC20LockboxInterface extends utils.Interface { contractName: "IXERC20Lockbox"; functions: { "deposit(uint256)": FunctionFragment; "depositTo(address,uint256)": FunctionFragment; "depositNativeTo(address)": FunctionFragment; "withdraw(uint256)": FunctionFragment; "withdrawTo(address,uint256)": FunctionFragment; }; 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: "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: { "Deposit(address,uint256)": EventFragment; "Withdraw(address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; getEvent(nameOrSignatureOrTopic: "Withdraw"): EventFragment; } 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 IXERC20Lockbox extends BaseContract { contractName: "IXERC20Lockbox"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: IXERC20LockboxInterface; 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: { /** * 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 _user The user to send the XERC20 to */ depositTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _user The user to send the XERC20 to */ depositNativeTo(_user: 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 ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _user The user to withdraw to */ withdrawTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { 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 _user The user to send the XERC20 to */ depositTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _user The user to send the XERC20 to */ depositNativeTo(_user: 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 ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _user The user to withdraw to */ withdrawTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { /** * 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 _user The user to send the XERC20 to */ depositTo(_user: string, _amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _user The user to send the XERC20 to */ depositNativeTo(_user: 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 ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _user The user to withdraw to */ withdrawTo(_user: string, _amount: BigNumberish, overrides?: CallOverrides): Promise; }; filters: { "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: { /** * 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 _user The user to send the XERC20 to */ depositTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _user The user to send the XERC20 to */ depositNativeTo(_user: 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 ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _user The user to withdraw to */ withdrawTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { /** * 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 _user The user to send the XERC20 to */ depositTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Deposit the native asset into the lockbox, and send the XERC20 to a user * @param _user The user to send the XERC20 to */ depositNativeTo(_user: 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 ERC20 tokens from the lockbox * @param _amount The amount of tokens to withdraw * @param _user The user to withdraw to */ withdrawTo(_user: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; }