/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../common"; export interface TrustInterface extends Interface { getFunction( nameOrSignature: | "beneficiary" | "duration" | "isLocked" | "isValidSignature(bytes32,bytes)" | "isValidSignature(bytes,bytes)" | "owner" | "sendTransaction" | "setUnlocksAt" | "unlocksAt" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "SentTransaction" | "SetUnlocksAt" ): EventFragment; encodeFunctionData( functionFragment: "beneficiary", values?: undefined ): string; encodeFunctionData(functionFragment: "duration", values?: undefined): string; encodeFunctionData(functionFragment: "isLocked", values?: undefined): string; encodeFunctionData( functionFragment: "isValidSignature(bytes32,bytes)", values: [BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "isValidSignature(bytes,bytes)", values: [BytesLike, BytesLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "sendTransaction", values: [AddressLike, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "setUnlocksAt", values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "unlocksAt", values?: undefined): string; decodeFunctionResult( functionFragment: "beneficiary", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "duration", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isLocked", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isValidSignature(bytes32,bytes)", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isValidSignature(bytes,bytes)", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "sendTransaction", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setUnlocksAt", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "unlocksAt", data: BytesLike): Result; } export namespace SentTransactionEvent { export type InputTuple = [ _to: AddressLike, _value: BigNumberish, _data: BytesLike, _result: BytesLike ]; export type OutputTuple = [ _to: string, _value: bigint, _data: string, _result: string ]; export interface OutputObject { _to: string; _value: bigint; _data: string; _result: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SetUnlocksAtEvent { export type InputTuple = [_unlocksAt: BigNumberish]; export type OutputTuple = [_unlocksAt: bigint]; export interface OutputObject { _unlocksAt: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface Trust extends BaseContract { connect(runner?: ContractRunner | null): Trust; waitForDeployment(): Promise; interface: TrustInterface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; once( event: TCEvent, listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; listeners( event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( event?: TCEvent ): Promise; beneficiary: TypedContractMethod<[], [string], "view">; duration: TypedContractMethod<[], [bigint], "view">; isLocked: TypedContractMethod<[], [boolean], "view">; "isValidSignature(bytes32,bytes)": TypedContractMethod< [_hash: BytesLike, _signature: BytesLike], [string], "view" >; "isValidSignature(bytes,bytes)": TypedContractMethod< [_data: BytesLike, _signature: BytesLike], [string], "view" >; owner: TypedContractMethod<[], [string], "view">; sendTransaction: TypedContractMethod< [_to: AddressLike, _value: BigNumberish, _data: BytesLike], [string], "nonpayable" >; setUnlocksAt: TypedContractMethod< [_unlocksAt: BigNumberish], [void], "nonpayable" >; unlocksAt: TypedContractMethod<[], [bigint], "view">; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "beneficiary" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "duration" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "isLocked" ): TypedContractMethod<[], [boolean], "view">; getFunction( nameOrSignature: "isValidSignature(bytes32,bytes)" ): TypedContractMethod< [_hash: BytesLike, _signature: BytesLike], [string], "view" >; getFunction( nameOrSignature: "isValidSignature(bytes,bytes)" ): TypedContractMethod< [_data: BytesLike, _signature: BytesLike], [string], "view" >; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "sendTransaction" ): TypedContractMethod< [_to: AddressLike, _value: BigNumberish, _data: BytesLike], [string], "nonpayable" >; getFunction( nameOrSignature: "setUnlocksAt" ): TypedContractMethod<[_unlocksAt: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "unlocksAt" ): TypedContractMethod<[], [bigint], "view">; getEvent( key: "SentTransaction" ): TypedContractEvent< SentTransactionEvent.InputTuple, SentTransactionEvent.OutputTuple, SentTransactionEvent.OutputObject >; getEvent( key: "SetUnlocksAt" ): TypedContractEvent< SetUnlocksAtEvent.InputTuple, SetUnlocksAtEvent.OutputTuple, SetUnlocksAtEvent.OutputObject >; filters: { "SentTransaction(address,uint256,bytes,bytes)": TypedContractEvent< SentTransactionEvent.InputTuple, SentTransactionEvent.OutputTuple, SentTransactionEvent.OutputObject >; SentTransaction: TypedContractEvent< SentTransactionEvent.InputTuple, SentTransactionEvent.OutputTuple, SentTransactionEvent.OutputObject >; "SetUnlocksAt(uint256)": TypedContractEvent< SetUnlocksAtEvent.InputTuple, SetUnlocksAtEvent.OutputTuple, SetUnlocksAtEvent.OutputObject >; SetUnlocksAt: TypedContractEvent< SetUnlocksAtEvent.InputTuple, SetUnlocksAtEvent.OutputTuple, SetUnlocksAtEvent.OutputObject >; }; }