interface Weth9 {
    [internal]: any;
    allowance: TypedContractMethod<[arg0: AddressLike, arg1: AddressLike], [bigint], "view">;
    approve: TypedContractMethod<[guy: AddressLike, wad: BigNumberish], [boolean], "nonpayable">;
    balanceOf: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    decimals: TypedContractMethod<[], [bigint], "view">;
    deposit: TypedContractMethod<[], [void], "payable">;
    fallback: null | WrappedFallback;
    filters: {
        Approval: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Approval(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Deposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Deposit(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Transfer: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Transfer(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Withdrawal: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Withdrawal(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    };
    interface: Weth9Interface;
    name: TypedContractMethod<[], [string], "view">;
    runner: null | ContractRunner;
    symbol: TypedContractMethod<[], [string], "view">;
    target: string | Addressable;
    totalSupply: TypedContractMethod<[], [bigint], "view">;
    transfer: TypedContractMethod<[dst: AddressLike, wad: BigNumberish], [boolean], "nonpayable">;
    transferFrom: TypedContractMethod<[src: AddressLike, dst: AddressLike, wad: BigNumberish], [boolean], "nonpayable">;
    withdraw: TypedContractMethod<[wad: BigNumberish], [void], "nonpayable">;
    addListener(event, listener): Promise<Weth9>;
    attach(target): BaseContract;
    connect(runner?): Weth9;
    deploymentTransaction(): null | ContractTransactionResponse;
    emit(event, ...args): Promise<boolean>;
    getAddress(): Promise<string>;
    getDeployedCode(): Promise<null | string>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getFunction<T>(key): T;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[guy: AddressLike, wad: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[src: AddressLike, dst: AddressLike, wad: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[wad: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[dst: AddressLike, wad: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [void], "payable">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike], [bigint], "view">;
    listenerCount(event?): Promise<number>;
    listeners<TCEvent>(event): Promise<TypedListener<TCEvent>[]>;
    listeners(eventName?): Promise<Listener[]>;
    off(event, listener?): Promise<Weth9>;
    on<TCEvent>(event, listener): Promise<Weth9>;
    on<TCEvent>(filter, listener): Promise<Weth9>;
    once<TCEvent>(event, listener): Promise<Weth9>;
    once<TCEvent>(filter, listener): Promise<Weth9>;
    queryFilter<TCEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryFilter<TCEvent>(filter, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryTransaction(hash): Promise<EventLog[]>;
    removeAllListeners<TCEvent>(event?): Promise<Weth9>;
    removeListener(event, listener): Promise<Weth9>;
    waitForDeployment(): Promise<Weth9>;
}

Hierarchy

  • BaseContract
    • Weth9

Properties

[internal]: any

@_ignore:

allowance: TypedContractMethod<[arg0: AddressLike, arg1: AddressLike], [bigint], "view">
approve: TypedContractMethod<[guy: AddressLike, wad: BigNumberish], [boolean], "nonpayable">
balanceOf: TypedContractMethod<[arg0: AddressLike], [bigint], "view">
decimals: TypedContractMethod<[], [bigint], "view">
deposit: TypedContractMethod<[], [void], "payable">
fallback: null | WrappedFallback

The fallback or receive function if any.

filters: {
    Approval: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Approval(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Deposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Deposit(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Transfer: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Transfer(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Withdrawal: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Withdrawal(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

interface: Weth9Interface
name: TypedContractMethod<[], [string], "view">
runner: null | ContractRunner

The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

For example, a Contract connected to a [[Provider]] may only execute read-only operations.

symbol: TypedContractMethod<[], [string], "view">
target: string | Addressable

The target to connect to.

This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

totalSupply: TypedContractMethod<[], [bigint], "view">
transfer: TypedContractMethod<[dst: AddressLike, wad: BigNumberish], [boolean], "nonpayable">
transferFrom: TypedContractMethod<[src: AddressLike, dst: AddressLike, wad: BigNumberish], [boolean], "nonpayable">
withdraw: TypedContractMethod<[wad: BigNumberish], [void], "nonpayable">

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<Weth9>

  • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

    Parameters

    • target: string | Addressable

    Returns BaseContract

  • Return the transaction used to deploy this contract.

    This is only available if this instance was returned from a [[ContractFactory]].

    Returns null | ContractTransactionResponse

  • Emit an %%event%% calling all listeners with %%args%%.

    Resolves to true if any listeners were called.

    Parameters

    • event: ContractEventName
    • Rest ...args: any[]

    Returns Promise<boolean>

  • Return the resolved address of this Contract.

    Returns Promise<string>

  • Return the deployed bytecode or null if no bytecode is found.

    Returns Promise<null | string>

  • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

    Parameters

    • Optional event: ContractEventName

    Returns Promise<number>

  • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<Weth9>

  • @_ignore:

    Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<Weth9>