UNPKG

@johnqh/mail_box_contracts

Version:

MailBox multi-chain decentralized messaging system with USDC fees and revenue sharing - Supports both EVM chains and Solana with unified TypeScript client

149 lines (132 loc) 3.97 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "../common"; export interface IERC20Interface extends Interface { getFunction( nameOrSignature: "approve" | "balanceOf" | "transfer" | "transferFrom" ): FunctionFragment; encodeFunctionData( functionFragment: "approve", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOf", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "transfer", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish] ): string; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", data: BytesLike ): Result; } export interface IERC20 extends BaseContract { connect(runner?: ContractRunner | null): IERC20; waitForDeployment(): Promise<this>; interface: IERC20Interface; queryFilter<TCEvent extends TypedContractEvent>( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; on<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; listeners<TCEvent extends TypedContractEvent>( event: TCEvent ): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>( event?: TCEvent ): Promise<this>; approve: TypedContractMethod< [spender: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; transfer: TypedContractMethod< [to: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; transferFrom: TypedContractMethod< [from: AddressLike, to: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "approve" ): TypedContractMethod< [spender: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "balanceOf" ): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "transfer" ): TypedContractMethod< [to: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "transferFrom" ): TypedContractMethod< [from: AddressLike, to: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; filters: {}; }