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 interface TestDepositInterface extends utils.Interface { contractName: "TestDeposit"; functions: { "prepareDepositData(bytes)": FunctionFragment; "slice(bytes,uint256)": FunctionFragment; "executePacked(address,bytes)": FunctionFragment; "executeUnpacked(address,uint256,address[],bytes)": FunctionFragment; }; encodeFunctionData(functionFragment: "prepareDepositData", values: [BytesLike]): string; encodeFunctionData(functionFragment: "slice", values: [BytesLike, BigNumberish]): string; encodeFunctionData(functionFragment: "executePacked", values: [string, BytesLike]): string; encodeFunctionData(functionFragment: "executeUnpacked", values: [string, BigNumberish, string[], BytesLike]): string; decodeFunctionResult(functionFragment: "prepareDepositData", data: BytesLike): Result; decodeFunctionResult(functionFragment: "slice", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executePacked", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeUnpacked", data: BytesLike): Result; events: { "TestExecute(address,uint256,address,bytes)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "TestExecute"): EventFragment; } export declare type TestExecuteEvent = TypedEvent<[ string, BigNumber, string, string ], { depositor: string; num: BigNumber; addr: string; message: string; }>; export declare type TestExecuteEventFilter = TypedEventFilter; export interface TestDeposit extends BaseContract { contractName: "TestDeposit"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: TestDepositInterface; 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: { /** * This helper can be used to prepare execution data for Bridge.deposit() on the source chain if GmpHandler is used and if the target function accepts (address depositor, bytes executionData). The execution data (packed as bytes) will be packed together with depositorAddress in GmpHandler before execution on the target chain. This function packs the bytes parameter together with a fake address and removes the address. After repacking in the handler together with depositorAddress, the offsets will be correct. Usage: pack all parameters as bytes, then use this function, then pack the result of this function together with maxFee, executeFuncSignature etc and pass it to Bridge.deposit(). */ prepareDepositData(executionData: BytesLike, overrides?: CallOverrides): Promise<[string]>; slice(input: BytesLike, position: BigNumberish, overrides?: CallOverrides): Promise<[string]>; executePacked(depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeUnpacked(depositor: string, num: BigNumberish, addresses: string[], message: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; }; /** * This helper can be used to prepare execution data for Bridge.deposit() on the source chain if GmpHandler is used and if the target function accepts (address depositor, bytes executionData). The execution data (packed as bytes) will be packed together with depositorAddress in GmpHandler before execution on the target chain. This function packs the bytes parameter together with a fake address and removes the address. After repacking in the handler together with depositorAddress, the offsets will be correct. Usage: pack all parameters as bytes, then use this function, then pack the result of this function together with maxFee, executeFuncSignature etc and pass it to Bridge.deposit(). */ prepareDepositData(executionData: BytesLike, overrides?: CallOverrides): Promise; slice(input: BytesLike, position: BigNumberish, overrides?: CallOverrides): Promise; executePacked(depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeUnpacked(depositor: string, num: BigNumberish, addresses: string[], message: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { /** * This helper can be used to prepare execution data for Bridge.deposit() on the source chain if GmpHandler is used and if the target function accepts (address depositor, bytes executionData). The execution data (packed as bytes) will be packed together with depositorAddress in GmpHandler before execution on the target chain. This function packs the bytes parameter together with a fake address and removes the address. After repacking in the handler together with depositorAddress, the offsets will be correct. Usage: pack all parameters as bytes, then use this function, then pack the result of this function together with maxFee, executeFuncSignature etc and pass it to Bridge.deposit(). */ prepareDepositData(executionData: BytesLike, overrides?: CallOverrides): Promise; slice(input: BytesLike, position: BigNumberish, overrides?: CallOverrides): Promise; executePacked(depositor: string, data: BytesLike, overrides?: CallOverrides): Promise; executeUnpacked(depositor: string, num: BigNumberish, addresses: string[], message: BytesLike, overrides?: CallOverrides): Promise; }; filters: { "TestExecute(address,uint256,address,bytes)"(depositor?: null, num?: null, addr?: null, message?: null): TestExecuteEventFilter; TestExecute(depositor?: null, num?: null, addr?: null, message?: null): TestExecuteEventFilter; }; estimateGas: { /** * This helper can be used to prepare execution data for Bridge.deposit() on the source chain if GmpHandler is used and if the target function accepts (address depositor, bytes executionData). The execution data (packed as bytes) will be packed together with depositorAddress in GmpHandler before execution on the target chain. This function packs the bytes parameter together with a fake address and removes the address. After repacking in the handler together with depositorAddress, the offsets will be correct. Usage: pack all parameters as bytes, then use this function, then pack the result of this function together with maxFee, executeFuncSignature etc and pass it to Bridge.deposit(). */ prepareDepositData(executionData: BytesLike, overrides?: CallOverrides): Promise; slice(input: BytesLike, position: BigNumberish, overrides?: CallOverrides): Promise; executePacked(depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeUnpacked(depositor: string, num: BigNumberish, addresses: string[], message: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { /** * This helper can be used to prepare execution data for Bridge.deposit() on the source chain if GmpHandler is used and if the target function accepts (address depositor, bytes executionData). The execution data (packed as bytes) will be packed together with depositorAddress in GmpHandler before execution on the target chain. This function packs the bytes parameter together with a fake address and removes the address. After repacking in the handler together with depositorAddress, the offsets will be correct. Usage: pack all parameters as bytes, then use this function, then pack the result of this function together with maxFee, executeFuncSignature etc and pass it to Bridge.deposit(). */ prepareDepositData(executionData: BytesLike, overrides?: CallOverrides): Promise; slice(input: BytesLike, position: BigNumberish, overrides?: CallOverrides): Promise; executePacked(depositor: string, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeUnpacked(depositor: string, num: BigNumberish, addresses: string[], message: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; }; }