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 IBridgeInterface extends utils.Interface { contractName: "IBridge"; functions: { "_domainID()": FunctionFragment; "_feeHandler()": FunctionFragment; "_resourceIDToHandlerAddress(bytes32)": FunctionFragment; "deposit(uint8,bytes32,bytes,bytes)": FunctionFragment; }; encodeFunctionData(functionFragment: "_domainID", values?: undefined): string; encodeFunctionData(functionFragment: "_feeHandler", values?: undefined): string; encodeFunctionData(functionFragment: "_resourceIDToHandlerAddress", values: [BytesLike]): string; encodeFunctionData(functionFragment: "deposit", values: [BigNumberish, BytesLike, BytesLike, BytesLike]): string; decodeFunctionResult(functionFragment: "_domainID", data: BytesLike): Result; decodeFunctionResult(functionFragment: "_feeHandler", data: BytesLike): Result; decodeFunctionResult(functionFragment: "_resourceIDToHandlerAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; events: {}; } export interface IBridge extends BaseContract { contractName: "IBridge"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: IBridgeInterface; 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: { /** * Exposing getter for {_domainID} instead of forcing the use of call. */ _domainID(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_feeHandler} instead of forcing the use of call. */ _feeHandler(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_resourceIDToHandlerAddress}. * @param resourceID ResourceID to be used when making deposits. */ _resourceIDToHandlerAddress(resourceID: BytesLike, overrides?: CallOverrides): Promise<[string]>; /** * Initiates a transfer using a specified handler contract.Only callable when Bridge is not paused.Emits {Deposit} event with all necessary parameters. * @param depositData Additional data to be passed to specified handler. * @param destinationDomainID ID of chain deposit will be bridged to. * @param feeData Additional data to be passed to the fee handler. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(destinationDomainID: BigNumberish, resourceID: BytesLike, depositData: BytesLike, feeData: BytesLike, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; }; /** * Exposing getter for {_domainID} instead of forcing the use of call. */ _domainID(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_feeHandler} instead of forcing the use of call. */ _feeHandler(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_resourceIDToHandlerAddress}. * @param resourceID ResourceID to be used when making deposits. */ _resourceIDToHandlerAddress(resourceID: BytesLike, overrides?: CallOverrides): Promise; /** * Initiates a transfer using a specified handler contract.Only callable when Bridge is not paused.Emits {Deposit} event with all necessary parameters. * @param depositData Additional data to be passed to specified handler. * @param destinationDomainID ID of chain deposit will be bridged to. * @param feeData Additional data to be passed to the fee handler. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(destinationDomainID: BigNumberish, resourceID: BytesLike, depositData: BytesLike, feeData: BytesLike, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; callStatic: { /** * Exposing getter for {_domainID} instead of forcing the use of call. */ _domainID(overrides?: CallOverrides): Promise; /** * Exposing getter for {_feeHandler} instead of forcing the use of call. */ _feeHandler(overrides?: CallOverrides): Promise; /** * Exposing getter for {_resourceIDToHandlerAddress}. * @param resourceID ResourceID to be used when making deposits. */ _resourceIDToHandlerAddress(resourceID: BytesLike, overrides?: CallOverrides): Promise; /** * Initiates a transfer using a specified handler contract.Only callable when Bridge is not paused.Emits {Deposit} event with all necessary parameters. * @param depositData Additional data to be passed to specified handler. * @param destinationDomainID ID of chain deposit will be bridged to. * @param feeData Additional data to be passed to the fee handler. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(destinationDomainID: BigNumberish, resourceID: BytesLike, depositData: BytesLike, feeData: BytesLike, overrides?: CallOverrides): Promise<[ BigNumber, string ] & { depositNonce: BigNumber; handlerResponse: string; }>; }; filters: {}; estimateGas: { /** * Exposing getter for {_domainID} instead of forcing the use of call. */ _domainID(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_feeHandler} instead of forcing the use of call. */ _feeHandler(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_resourceIDToHandlerAddress}. * @param resourceID ResourceID to be used when making deposits. */ _resourceIDToHandlerAddress(resourceID: BytesLike, overrides?: CallOverrides): Promise; /** * Initiates a transfer using a specified handler contract.Only callable when Bridge is not paused.Emits {Deposit} event with all necessary parameters. * @param depositData Additional data to be passed to specified handler. * @param destinationDomainID ID of chain deposit will be bridged to. * @param feeData Additional data to be passed to the fee handler. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(destinationDomainID: BigNumberish, resourceID: BytesLike, depositData: BytesLike, feeData: BytesLike, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; }; populateTransaction: { /** * Exposing getter for {_domainID} instead of forcing the use of call. */ _domainID(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_feeHandler} instead of forcing the use of call. */ _feeHandler(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Exposing getter for {_resourceIDToHandlerAddress}. * @param resourceID ResourceID to be used when making deposits. */ _resourceIDToHandlerAddress(resourceID: BytesLike, overrides?: CallOverrides): Promise; /** * Initiates a transfer using a specified handler contract.Only callable when Bridge is not paused.Emits {Deposit} event with all necessary parameters. * @param depositData Additional data to be passed to specified handler. * @param destinationDomainID ID of chain deposit will be bridged to. * @param feeData Additional data to be passed to the fee handler. * @param resourceID ResourceID used to find address of handler to be used for deposit. */ deposit(destinationDomainID: BigNumberish, resourceID: BytesLike, depositData: BytesLike, feeData: BytesLike, overrides?: PayableOverrides & { from?: string | Promise; }): Promise; }; }