import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, 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 declare namespace ERCHandlerHelpers { type DecimalsStruct = { isSet: boolean; externalDecimals: BigNumberish; }; type DecimalsStructOutput = [boolean, number] & { isSet: boolean; externalDecimals: number; }; } export interface NativeTokenHandlerInterface extends utils.Interface { contractName: "NativeTokenHandler"; functions: { "_bridgeAddress()": FunctionFragment; "_defaultMessageReceiver()": FunctionFragment; "_nativeTokenAdapterAddress()": FunctionFragment; "_resourceIDToTokenContractAddress(bytes32)": FunctionFragment; "_tokenContractAddressToTokenProperties(address)": FunctionFragment; "defaultDecimals()": FunctionFragment; "setBurnable(address)": FunctionFragment; "deposit(bytes32,address,bytes)": FunctionFragment; "executeProposal(bytes32,bytes)": FunctionFragment; "withdraw(bytes)": FunctionFragment; "setResource(bytes32,address,bytes)": FunctionFragment; }; encodeFunctionData(functionFragment: "_bridgeAddress", values?: undefined): string; encodeFunctionData(functionFragment: "_defaultMessageReceiver", values?: undefined): string; encodeFunctionData(functionFragment: "_nativeTokenAdapterAddress", values?: undefined): string; encodeFunctionData(functionFragment: "_resourceIDToTokenContractAddress", values: [BytesLike]): string; encodeFunctionData(functionFragment: "_tokenContractAddressToTokenProperties", values: [string]): string; encodeFunctionData(functionFragment: "defaultDecimals", values?: undefined): string; encodeFunctionData(functionFragment: "setBurnable", values: [string]): string; encodeFunctionData(functionFragment: "deposit", values: [BytesLike, string, BytesLike]): string; encodeFunctionData(functionFragment: "executeProposal", values: [BytesLike, BytesLike]): string; encodeFunctionData(functionFragment: "withdraw", values: [BytesLike]): string; encodeFunctionData(functionFragment: "setResource", values: [BytesLike, string, BytesLike]): string; decodeFunctionResult(functionFragment: "_bridgeAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "_defaultMessageReceiver", data: BytesLike): Result; decodeFunctionResult(functionFragment: "_nativeTokenAdapterAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "_resourceIDToTokenContractAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "_tokenContractAddressToTokenProperties", data: BytesLike): Result; decodeFunctionResult(functionFragment: "defaultDecimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setBurnable", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeProposal", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setResource", data: BytesLike): Result; events: { "FundsTransferred(address,uint256)": EventFragment; "Withdrawal(address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "FundsTransferred"): EventFragment; getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; } export declare type FundsTransferredEvent = TypedEvent<[ string, BigNumber ], { recipient: string; amount: BigNumber; }>; export declare type FundsTransferredEventFilter = TypedEventFilter; export declare type WithdrawalEvent = TypedEvent<[ string, BigNumber ], { recipient: string; amount: BigNumber; }>; export declare type WithdrawalEventFilter = TypedEventFilter; export interface NativeTokenHandler extends BaseContract { contractName: "NativeTokenHandler"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: NativeTokenHandlerInterface; 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: { _bridgeAddress(overrides?: CallOverrides): Promise<[string]>; _defaultMessageReceiver(overrides?: CallOverrides): Promise<[string]>; _nativeTokenAdapterAddress(overrides?: CallOverrides): Promise<[string]>; /** * Exposing getter for {_resourceIDToTokenContractAddress}. */ _resourceIDToTokenContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise<[string]>; _tokenContractAddressToTokenProperties(arg0: string, overrides?: CallOverrides): Promise<[ string, boolean, boolean, ERCHandlerHelpers.DecimalsStructOutput ] & { resourceID: string; isWhitelisted: boolean; isBurnable: boolean; decimals: ERCHandlerHelpers.DecimalsStructOutput; }>; defaultDecimals(overrides?: CallOverrides): Promise<[number]>; /** * First verifies {contractAddress} is whitelisted, then sets {_tokenContractAddressToTokenProperties[contractAddress].isBurnable} to true. * @param contractAddress Address of contract to be used when making or executing deposits. */ setBurnable(contractAddress: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * A deposit is initiated by making a deposit to the NativeTokenAdapter which constructs the required deposit data and propagates it to the Bridge contract.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount} padded to 32 bytes. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of token to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: CallOverrides): Promise<[string]>; /** * Proposal execution should be initiated when a proposal is finalized in the Bridge contract by a relayer on the deposit's destination chain.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount}, {lenDestinationRecipientAddress} and {destinationRecipientAddress}. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Used to manually release ERC20 tokens from ERC20Safe.Data passed into the function should be constructed as follows: tokenAddress address bytes 0 - 32 recipient address bytes 32 - 64 amount uint bytes 64 - 96 * @param data Consists of {tokenAddress}, {recipient}, and {amount} all padded to 32 bytes. */ withdraw(data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Sets {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. Sets decimals value for contractAddress if value is provided in args. * @param args Additional data passed to the handler - this should be 1 byte containing number of decimals places. * @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; }; _bridgeAddress(overrides?: CallOverrides): Promise; _defaultMessageReceiver(overrides?: CallOverrides): Promise; _nativeTokenAdapterAddress(overrides?: CallOverrides): Promise; /** * Exposing getter for {_resourceIDToTokenContractAddress}. */ _resourceIDToTokenContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise; _tokenContractAddressToTokenProperties(arg0: string, overrides?: CallOverrides): Promise<[ string, boolean, boolean, ERCHandlerHelpers.DecimalsStructOutput ] & { resourceID: string; isWhitelisted: boolean; isBurnable: boolean; decimals: ERCHandlerHelpers.DecimalsStructOutput; }>; defaultDecimals(overrides?: CallOverrides): Promise; /** * First verifies {contractAddress} is whitelisted, then sets {_tokenContractAddressToTokenProperties[contractAddress].isBurnable} to true. * @param contractAddress Address of contract to be used when making or executing deposits. */ setBurnable(contractAddress: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * A deposit is initiated by making a deposit to the NativeTokenAdapter which constructs the required deposit data and propagates it to the Bridge contract.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount} padded to 32 bytes. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of token to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: CallOverrides): Promise; /** * Proposal execution should be initiated when a proposal is finalized in the Bridge contract by a relayer on the deposit's destination chain.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount}, {lenDestinationRecipientAddress} and {destinationRecipientAddress}. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Used to manually release ERC20 tokens from ERC20Safe.Data passed into the function should be constructed as follows: tokenAddress address bytes 0 - 32 recipient address bytes 32 - 64 amount uint bytes 64 - 96 * @param data Consists of {tokenAddress}, {recipient}, and {amount} all padded to 32 bytes. */ withdraw(data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Sets {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. Sets decimals value for contractAddress if value is provided in args. * @param args Additional data passed to the handler - this should be 1 byte containing number of decimals places. * @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: { _bridgeAddress(overrides?: CallOverrides): Promise; _defaultMessageReceiver(overrides?: CallOverrides): Promise; _nativeTokenAdapterAddress(overrides?: CallOverrides): Promise; /** * Exposing getter for {_resourceIDToTokenContractAddress}. */ _resourceIDToTokenContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise; _tokenContractAddressToTokenProperties(arg0: string, overrides?: CallOverrides): Promise<[ string, boolean, boolean, ERCHandlerHelpers.DecimalsStructOutput ] & { resourceID: string; isWhitelisted: boolean; isBurnable: boolean; decimals: ERCHandlerHelpers.DecimalsStructOutput; }>; defaultDecimals(overrides?: CallOverrides): Promise; /** * First verifies {contractAddress} is whitelisted, then sets {_tokenContractAddressToTokenProperties[contractAddress].isBurnable} to true. * @param contractAddress Address of contract to be used when making or executing deposits. */ setBurnable(contractAddress: string, overrides?: CallOverrides): Promise; /** * A deposit is initiated by making a deposit to the NativeTokenAdapter which constructs the required deposit data and propagates it to the Bridge contract.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount} padded to 32 bytes. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of token to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: CallOverrides): Promise; /** * Proposal execution should be initiated when a proposal is finalized in the Bridge contract by a relayer on the deposit's destination chain.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount}, {lenDestinationRecipientAddress} and {destinationRecipientAddress}. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: CallOverrides): Promise; /** * Used to manually release ERC20 tokens from ERC20Safe.Data passed into the function should be constructed as follows: tokenAddress address bytes 0 - 32 recipient address bytes 32 - 64 amount uint bytes 64 - 96 * @param data Consists of {tokenAddress}, {recipient}, and {amount} all padded to 32 bytes. */ withdraw(data: BytesLike, overrides?: CallOverrides): Promise; /** * Sets {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. Sets decimals value for contractAddress if value is provided in args. * @param args Additional data passed to the handler - this should be 1 byte containing number of decimals places. * @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: { "FundsTransferred(address,uint256)"(recipient?: null, amount?: null): FundsTransferredEventFilter; FundsTransferred(recipient?: null, amount?: null): FundsTransferredEventFilter; "Withdrawal(address,uint256)"(recipient?: null, amount?: null): WithdrawalEventFilter; Withdrawal(recipient?: null, amount?: null): WithdrawalEventFilter; }; estimateGas: { _bridgeAddress(overrides?: CallOverrides): Promise; _defaultMessageReceiver(overrides?: CallOverrides): Promise; _nativeTokenAdapterAddress(overrides?: CallOverrides): Promise; /** * Exposing getter for {_resourceIDToTokenContractAddress}. */ _resourceIDToTokenContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise; _tokenContractAddressToTokenProperties(arg0: string, overrides?: CallOverrides): Promise; defaultDecimals(overrides?: CallOverrides): Promise; /** * First verifies {contractAddress} is whitelisted, then sets {_tokenContractAddressToTokenProperties[contractAddress].isBurnable} to true. * @param contractAddress Address of contract to be used when making or executing deposits. */ setBurnable(contractAddress: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * A deposit is initiated by making a deposit to the NativeTokenAdapter which constructs the required deposit data and propagates it to the Bridge contract.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount} padded to 32 bytes. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of token to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: CallOverrides): Promise; /** * Proposal execution should be initiated when a proposal is finalized in the Bridge contract by a relayer on the deposit's destination chain.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount}, {lenDestinationRecipientAddress} and {destinationRecipientAddress}. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Used to manually release ERC20 tokens from ERC20Safe.Data passed into the function should be constructed as follows: tokenAddress address bytes 0 - 32 recipient address bytes 32 - 64 amount uint bytes 64 - 96 * @param data Consists of {tokenAddress}, {recipient}, and {amount} all padded to 32 bytes. */ withdraw(data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Sets {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. Sets decimals value for contractAddress if value is provided in args. * @param args Additional data passed to the handler - this should be 1 byte containing number of decimals places. * @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: { _bridgeAddress(overrides?: CallOverrides): Promise; _defaultMessageReceiver(overrides?: CallOverrides): Promise; _nativeTokenAdapterAddress(overrides?: CallOverrides): Promise; /** * Exposing getter for {_resourceIDToTokenContractAddress}. */ _resourceIDToTokenContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise; _tokenContractAddressToTokenProperties(arg0: string, overrides?: CallOverrides): Promise; defaultDecimals(overrides?: CallOverrides): Promise; /** * First verifies {contractAddress} is whitelisted, then sets {_tokenContractAddressToTokenProperties[contractAddress].isBurnable} to true. * @param contractAddress Address of contract to be used when making or executing deposits. */ setBurnable(contractAddress: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * A deposit is initiated by making a deposit to the NativeTokenAdapter which constructs the required deposit data and propagates it to the Bridge contract.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount} padded to 32 bytes. * @param depositor Address of account making the deposit in the Bridge contract. * @param resourceID ResourceID used to find address of token to be used for deposit. */ deposit(resourceID: BytesLike, depositor: string, data: BytesLike, overrides?: CallOverrides): Promise; /** * Proposal execution should be initiated when a proposal is finalized in the Bridge contract by a relayer on the deposit's destination chain.Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - (64 + len(destinationRecipientAddress)) optionalGas uint256 bytes (64 + len(destinationRecipientAddress)) - (96 + len(destinationRecipientAddress)) optionalMessage length uint256 bytes (96 + len(destinationRecipientAddress)) - (128 + len(destinationRecipientAddress)) optionalMessage bytes bytes (160 + len(destinationRecipientAddress)) - END * @param data Consists of {amount}, {lenDestinationRecipientAddress} and {destinationRecipientAddress}. * @param resourceID ResourceID to be used when making deposits. */ executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Used to manually release ERC20 tokens from ERC20Safe.Data passed into the function should be constructed as follows: tokenAddress address bytes 0 - 32 recipient address bytes 32 - 64 amount uint bytes 64 - 96 * @param data Consists of {tokenAddress}, {recipient}, and {amount} all padded to 32 bytes. */ withdraw(data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Sets {_resourceIDToContractAddress} with {contractAddress}, {_tokenContractAddressToTokenProperties[tokenAddress].resourceID} with {resourceID} and {_tokenContractAddressToTokenProperties[tokenAddress].isWhitelisted} to true for {contractAddress} in ERCHandlerHelpers contract. Sets decimals value for contractAddress if value is provided in args. * @param args Additional data passed to the handler - this should be 1 byte containing number of decimals places. * @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; }; }