import { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, 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 IHandlerInterface extends utils.Interface { contractName: "IHandler"; functions: { "deposit(bytes32,address,bytes)": FunctionFragment; "executeProposal(bytes32,bytes)": FunctionFragment; "setResource(bytes32,address,bytes)": FunctionFragment; }; encodeFunctionData(functionFragment: "deposit", values: [BytesLike, string, BytesLike]): string; encodeFunctionData(functionFragment: "executeProposal", values: [BytesLike, BytesLike]): string; encodeFunctionData(functionFragment: "setResource", values: [BytesLike, string, BytesLike]): string; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeProposal", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setResource", data: BytesLike): Result; events: {}; } export interface IHandler extends BaseContract { contractName: "IHandler"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: IHandlerInterface; 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: { /** * It is intended that deposit are made using the Bridge contract. * @param data Consists of additional data needed for a specific deposit. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * It is intended that proposals are executed by the Bridge contract. * @param data Consists of additional data needed for a specific deposit execution. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Correlates {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and marks {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. * @param args Additional data to be passed to specified handler. * @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. * @param resourceID ResourceID to be used when making deposits. */ setResource(resourceID: BytesLike, contractAddress: string, args: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; }; /** * It is intended that deposit are made using the Bridge contract. * @param data Consists of additional data needed for a specific deposit. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * It is intended that proposals are executed by the Bridge contract. * @param data Consists of additional data needed for a specific deposit execution. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Correlates {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and marks {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. * @param args Additional data to be passed to specified handler. * @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. * @param resourceID ResourceID to be used when making deposits. */ setResource(resourceID: BytesLike, contractAddress: string, args: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { /** * It is intended that deposit are made using the Bridge contract. * @param data Consists of additional data needed for a specific deposit. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: CallOverrides): Promise; /** * It is intended that proposals are executed by the Bridge contract. * @param data Consists of additional data needed for a specific deposit execution. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: CallOverrides): Promise; /** * Correlates {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and marks {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. * @param args Additional data to be passed to specified handler. * @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. * @param resourceID ResourceID to be used when making deposits. */ setResource(resourceID: BytesLike, contractAddress: string, args: BytesLike, overrides?: CallOverrides): Promise; }; filters: {}; estimateGas: { /** * It is intended that deposit are made using the Bridge contract. * @param data Consists of additional data needed for a specific deposit. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * It is intended that proposals are executed by the Bridge contract. * @param data Consists of additional data needed for a specific deposit execution. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Correlates {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and marks {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. * @param args Additional data to be passed to specified handler. * @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. * @param resourceID ResourceID to be used when making deposits. */ setResource(resourceID: BytesLike, contractAddress: string, args: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { /** * It is intended that deposit are made using the Bridge contract. * @param data Consists of additional data needed for a specific deposit. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * It is intended that proposals are executed by the Bridge contract. * @param data Consists of additional data needed for a specific deposit execution. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Correlates {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and marks {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. * @param args Additional data to be passed to specified handler. * @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. * @param resourceID ResourceID to be used when making deposits. */ setResource(resourceID: BytesLike, contractAddress: string, args: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; }; }