-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e570504
commit 3bd07b8
Showing
40 changed files
with
1,671 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,369 @@ | ||
/* 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 WethContractAbiInterface extends Interface { | ||
getFunction( | ||
nameOrSignature: | ||
| "name" | ||
| "approve" | ||
| "totalSupply" | ||
| "transferFrom" | ||
| "withdraw" | ||
| "decimals" | ||
| "balanceOf" | ||
| "symbol" | ||
| "transfer" | ||
| "deposit" | ||
| "allowance" | ||
): FunctionFragment; | ||
|
||
getEvent( | ||
nameOrSignatureOrTopic: "Approval" | "Transfer" | "Deposit" | "Withdrawal" | ||
): 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: "withdraw", | ||
values: [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: "deposit", values?: undefined): 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: "withdraw", 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: "deposit", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; | ||
} | ||
|
||
export namespace ApprovalEvent { | ||
export type InputTuple = [ | ||
src: AddressLike, | ||
guy: AddressLike, | ||
wad: BigNumberish | ||
]; | ||
export type OutputTuple = [src: string, guy: string, wad: bigint]; | ||
export interface OutputObject { | ||
src: string; | ||
guy: string; | ||
wad: 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 = [ | ||
src: AddressLike, | ||
dst: AddressLike, | ||
wad: BigNumberish | ||
]; | ||
export type OutputTuple = [src: string, dst: string, wad: bigint]; | ||
export interface OutputObject { | ||
src: string; | ||
dst: string; | ||
wad: 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 DepositEvent { | ||
export type InputTuple = [dst: AddressLike, wad: BigNumberish]; | ||
export type OutputTuple = [dst: string, wad: bigint]; | ||
export interface OutputObject { | ||
dst: string; | ||
wad: 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 WithdrawalEvent { | ||
export type InputTuple = [src: AddressLike, wad: BigNumberish]; | ||
export type OutputTuple = [src: string, wad: bigint]; | ||
export interface OutputObject { | ||
src: string; | ||
wad: 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 WethContractAbi extends BaseContract { | ||
connect(runner?: ContractRunner | null): WethContractAbi; | ||
waitForDeployment(): Promise<this>; | ||
|
||
interface: WethContractAbiInterface; | ||
|
||
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< | ||
[guy: AddressLike, wad: BigNumberish], | ||
[boolean], | ||
"nonpayable" | ||
>; | ||
|
||
totalSupply: TypedContractMethod<[], [bigint], "view">; | ||
|
||
transferFrom: TypedContractMethod< | ||
[src: AddressLike, dst: AddressLike, wad: BigNumberish], | ||
[boolean], | ||
"nonpayable" | ||
>; | ||
|
||
withdraw: TypedContractMethod<[wad: BigNumberish], [void], "nonpayable">; | ||
|
||
decimals: TypedContractMethod<[], [bigint], "view">; | ||
|
||
balanceOf: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; | ||
|
||
symbol: TypedContractMethod<[], [string], "view">; | ||
|
||
transfer: TypedContractMethod< | ||
[dst: AddressLike, wad: BigNumberish], | ||
[boolean], | ||
"nonpayable" | ||
>; | ||
|
||
deposit: TypedContractMethod<[], [void], "payable">; | ||
|
||
allowance: TypedContractMethod< | ||
[arg0: AddressLike, arg1: AddressLike], | ||
[bigint], | ||
"view" | ||
>; | ||
|
||
getFunction<T extends ContractMethod = ContractMethod>( | ||
key: string | FunctionFragment | ||
): T; | ||
|
||
getFunction( | ||
nameOrSignature: "name" | ||
): TypedContractMethod<[], [string], "view">; | ||
getFunction( | ||
nameOrSignature: "approve" | ||
): TypedContractMethod< | ||
[guy: AddressLike, wad: BigNumberish], | ||
[boolean], | ||
"nonpayable" | ||
>; | ||
getFunction( | ||
nameOrSignature: "totalSupply" | ||
): TypedContractMethod<[], [bigint], "view">; | ||
getFunction( | ||
nameOrSignature: "transferFrom" | ||
): TypedContractMethod< | ||
[src: AddressLike, dst: AddressLike, wad: BigNumberish], | ||
[boolean], | ||
"nonpayable" | ||
>; | ||
getFunction( | ||
nameOrSignature: "withdraw" | ||
): TypedContractMethod<[wad: BigNumberish], [void], "nonpayable">; | ||
getFunction( | ||
nameOrSignature: "decimals" | ||
): TypedContractMethod<[], [bigint], "view">; | ||
getFunction( | ||
nameOrSignature: "balanceOf" | ||
): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; | ||
getFunction( | ||
nameOrSignature: "symbol" | ||
): TypedContractMethod<[], [string], "view">; | ||
getFunction( | ||
nameOrSignature: "transfer" | ||
): TypedContractMethod< | ||
[dst: AddressLike, wad: BigNumberish], | ||
[boolean], | ||
"nonpayable" | ||
>; | ||
getFunction( | ||
nameOrSignature: "deposit" | ||
): TypedContractMethod<[], [void], "payable">; | ||
getFunction( | ||
nameOrSignature: "allowance" | ||
): TypedContractMethod< | ||
[arg0: AddressLike, arg1: AddressLike], | ||
[bigint], | ||
"view" | ||
>; | ||
|
||
getEvent( | ||
key: "Approval" | ||
): TypedContractEvent< | ||
ApprovalEvent.InputTuple, | ||
ApprovalEvent.OutputTuple, | ||
ApprovalEvent.OutputObject | ||
>; | ||
getEvent( | ||
key: "Transfer" | ||
): TypedContractEvent< | ||
TransferEvent.InputTuple, | ||
TransferEvent.OutputTuple, | ||
TransferEvent.OutputObject | ||
>; | ||
getEvent( | ||
key: "Deposit" | ||
): TypedContractEvent< | ||
DepositEvent.InputTuple, | ||
DepositEvent.OutputTuple, | ||
DepositEvent.OutputObject | ||
>; | ||
getEvent( | ||
key: "Withdrawal" | ||
): TypedContractEvent< | ||
WithdrawalEvent.InputTuple, | ||
WithdrawalEvent.OutputTuple, | ||
WithdrawalEvent.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 | ||
>; | ||
|
||
"Deposit(address,uint256)": TypedContractEvent< | ||
DepositEvent.InputTuple, | ||
DepositEvent.OutputTuple, | ||
DepositEvent.OutputObject | ||
>; | ||
Deposit: TypedContractEvent< | ||
DepositEvent.InputTuple, | ||
DepositEvent.OutputTuple, | ||
DepositEvent.OutputObject | ||
>; | ||
|
||
"Withdrawal(address,uint256)": TypedContractEvent< | ||
WithdrawalEvent.InputTuple, | ||
WithdrawalEvent.OutputTuple, | ||
WithdrawalEvent.OutputObject | ||
>; | ||
Withdrawal: TypedContractEvent< | ||
WithdrawalEvent.InputTuple, | ||
WithdrawalEvent.OutputTuple, | ||
WithdrawalEvent.OutputObject | ||
>; | ||
}; | ||
} |
Oops, something went wrong.