UNPKG

descent-js

Version:

A Typescript library for interacting with the Descent Protocol

226 lines (199 loc) 7.7 kB
/* 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 USDCInterface extends Interface { getFunction( nameOrSignature: | 'name' | 'approve' | 'totalSupply' | 'transferFrom' | 'decimals' | 'balanceOf' | 'symbol' | 'transfer' | 'allowance', ): FunctionFragment; getEvent(nameOrSignatureOrTopic: 'Approval' | 'Transfer'): EventFragment; encodeFunctionData(functionFragment: 'name', values?: undefined): string; encodeFunctionData(functionFragment: 'approve', values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; encodeFunctionData( functionFragment: 'transferFrom', values: [AddressLike, AddressLike, BigNumberish], ): string; encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; encodeFunctionData(functionFragment: 'balanceOf', values: [AddressLike]): string; encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; encodeFunctionData(functionFragment: 'transfer', values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: 'allowance', values: [AddressLike, AddressLike]): string; decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; } export namespace ApprovalEvent { export type InputTuple = [owner: AddressLike, spender: AddressLike, value: BigNumberish]; export type OutputTuple = [owner: string, spender: string, value: bigint]; export interface OutputObject { owner: string; spender: string; value: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace TransferEvent { export type InputTuple = [from: AddressLike, to: AddressLike, value: BigNumberish]; export type OutputTuple = [from: string, to: string, value: bigint]; export interface OutputObject { from: string; to: string; value: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export interface USDC extends BaseContract { connect(runner?: ContractRunner | null): USDC; waitForDeployment(): Promise<this>; interface: USDCInterface; 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>; name: TypedContractMethod<[], [string], 'view'>; approve: TypedContractMethod< [_spender: AddressLike, _value: BigNumberish], [boolean], 'nonpayable' >; totalSupply: TypedContractMethod<[], [bigint], 'view'>; transferFrom: TypedContractMethod< [_from: AddressLike, _to: AddressLike, _value: BigNumberish], [boolean], 'nonpayable' >; decimals: TypedContractMethod<[], [bigint], 'view'>; balanceOf: TypedContractMethod<[_owner: AddressLike], [bigint], 'view'>; symbol: TypedContractMethod<[], [string], 'view'>; transfer: TypedContractMethod<[_to: AddressLike, _value: BigNumberish], [boolean], 'nonpayable'>; allowance: TypedContractMethod<[_owner: AddressLike, _spender: AddressLike], [bigint], 'view'>; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: 'name'): TypedContractMethod<[], [string], 'view'>; getFunction( nameOrSignature: 'approve', ): TypedContractMethod<[_spender: AddressLike, _value: BigNumberish], [boolean], 'nonpayable'>; getFunction(nameOrSignature: 'totalSupply'): TypedContractMethod<[], [bigint], 'view'>; getFunction( nameOrSignature: 'transferFrom', ): TypedContractMethod< [_from: AddressLike, _to: AddressLike, _value: BigNumberish], [boolean], 'nonpayable' >; getFunction(nameOrSignature: 'decimals'): TypedContractMethod<[], [bigint], 'view'>; getFunction( nameOrSignature: 'balanceOf', ): TypedContractMethod<[_owner: AddressLike], [bigint], 'view'>; getFunction(nameOrSignature: 'symbol'): TypedContractMethod<[], [string], 'view'>; getFunction( nameOrSignature: 'transfer', ): TypedContractMethod<[_to: AddressLike, _value: BigNumberish], [boolean], 'nonpayable'>; getFunction( nameOrSignature: 'allowance', ): TypedContractMethod<[_owner: AddressLike, _spender: AddressLike], [bigint], 'view'>; getEvent( key: 'Approval', ): TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; getEvent( key: 'Transfer', ): TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; filters: { 'Approval(address,address,uint256)': TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; Approval: TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; 'Transfer(address,address,uint256)': TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; Transfer: TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; }; }