import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; import { FunctionFragment, Result } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface IGmpTransferAdapterInterface extends utils.Interface { contractName: "IGmpTransferAdapter"; functions: { "deposit(uint8,address,address,uint256)": FunctionFragment; "executeProposal(address,address,address,uint256)": FunctionFragment; }; encodeFunctionData(functionFragment: "deposit", values: [BigNumberish, string, string, BigNumberish]): string; encodeFunctionData(functionFragment: "executeProposal", values: [string, string, string, BigNumberish]): string; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeProposal", data: BytesLike): Result; events: {}; } export interface IGmpTransferAdapter extends BaseContract { contractName: "IGmpTransferAdapter"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: IGmpTransferAdapterInterface; 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: { /** * Initiates a transfer using Gmp handler. * @param XERC20Address Address of the tokens that shoul be transferred and burned on source chain. * @param destinationDomainID ID of chain deposit will be bridged to. * @param recipientAddress Address that will receive tokens on destination chain. * @param tokenAmount Amount of tokens that should be transferred. */ deposit(destinationDomainID: BigNumberish, recipientAddress: string, XERC20Address: string, tokenAmount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Executes a GMP deposit proposal on GMP transfer adapter contract. * @param XERC20Address Address of XERC20 contract that will mint tokens on destination chain. * @param amount Amount of tones that should be minted to the recipinet. * @param gmpAdapter Address of the adapter on soruce chain (should be the same address across all chains). * @param recipient Address that will receive tokens. */ executeProposal(gmpAdapter: string, recipient: string, XERC20Address: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; /** * Initiates a transfer using Gmp handler. * @param XERC20Address Address of the tokens that shoul be transferred and burned on source chain. * @param destinationDomainID ID of chain deposit will be bridged to. * @param recipientAddress Address that will receive tokens on destination chain. * @param tokenAmount Amount of tokens that should be transferred. */ deposit(destinationDomainID: BigNumberish, recipientAddress: string, XERC20Address: string, tokenAmount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Executes a GMP deposit proposal on GMP transfer adapter contract. * @param XERC20Address Address of XERC20 contract that will mint tokens on destination chain. * @param amount Amount of tones that should be minted to the recipinet. * @param gmpAdapter Address of the adapter on soruce chain (should be the same address across all chains). * @param recipient Address that will receive tokens. */ executeProposal(gmpAdapter: string, recipient: string, XERC20Address: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { /** * Initiates a transfer using Gmp handler. * @param XERC20Address Address of the tokens that shoul be transferred and burned on source chain. * @param destinationDomainID ID of chain deposit will be bridged to. * @param recipientAddress Address that will receive tokens on destination chain. * @param tokenAmount Amount of tokens that should be transferred. */ deposit(destinationDomainID: BigNumberish, recipientAddress: string, XERC20Address: string, tokenAmount: BigNumberish, overrides?: CallOverrides): Promise; /** * Executes a GMP deposit proposal on GMP transfer adapter contract. * @param XERC20Address Address of XERC20 contract that will mint tokens on destination chain. * @param amount Amount of tones that should be minted to the recipinet. * @param gmpAdapter Address of the adapter on soruce chain (should be the same address across all chains). * @param recipient Address that will receive tokens. */ executeProposal(gmpAdapter: string, recipient: string, XERC20Address: string, amount: BigNumberish, overrides?: CallOverrides): Promise; }; filters: {}; estimateGas: { /** * Initiates a transfer using Gmp handler. * @param XERC20Address Address of the tokens that shoul be transferred and burned on source chain. * @param destinationDomainID ID of chain deposit will be bridged to. * @param recipientAddress Address that will receive tokens on destination chain. * @param tokenAmount Amount of tokens that should be transferred. */ deposit(destinationDomainID: BigNumberish, recipientAddress: string, XERC20Address: string, tokenAmount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Executes a GMP deposit proposal on GMP transfer adapter contract. * @param XERC20Address Address of XERC20 contract that will mint tokens on destination chain. * @param amount Amount of tones that should be minted to the recipinet. * @param gmpAdapter Address of the adapter on soruce chain (should be the same address across all chains). * @param recipient Address that will receive tokens. */ executeProposal(gmpAdapter: string, recipient: string, XERC20Address: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { /** * Initiates a transfer using Gmp handler. * @param XERC20Address Address of the tokens that shoul be transferred and burned on source chain. * @param destinationDomainID ID of chain deposit will be bridged to. * @param recipientAddress Address that will receive tokens on destination chain. * @param tokenAmount Amount of tokens that should be transferred. */ deposit(destinationDomainID: BigNumberish, recipientAddress: string, XERC20Address: string, tokenAmount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; /** * Executes a GMP deposit proposal on GMP transfer adapter contract. * @param XERC20Address Address of XERC20 contract that will mint tokens on destination chain. * @param amount Amount of tones that should be minted to the recipinet. * @param gmpAdapter Address of the adapter on soruce chain (should be the same address across all chains). * @param recipient Address that will receive tokens. */ executeProposal(gmpAdapter: string, recipient: string, XERC20Address: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; }; }