Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • MockWETH9

Index

Constructors

constructor

  • new MockWETH9(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): MockWETH9
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns MockWETH9

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: any[]) => void
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

Readonly address

address: string

callStatic

callStatic: { allowance: any; approve: any; balanceOf: any; decimals: any; deposit: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any; withdraw: any }

Type declaration

  • allowance: function
    • allowance(arg0: string, arg1: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • arg0: string
      • arg1: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • approve: function
    • approve(guy: string, wad: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • guy: string
      • wad: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • balanceOf: function
    • balanceOf(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • arg0: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<number>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<number>

  • deposit: function
    • deposit(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • name: function
    • name(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • transfer: function
    • transfer(dst: string, wad: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • dst: string
      • wad: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • transferFrom: function
    • transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • src: string
      • dst: string
      • wad: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • withdraw: function
    • withdraw(wad: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • wad: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { allowance: any; approve: any; balanceOf: any; decimals: any; deposit: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any; withdraw: any }

Type declaration

  • allowance: function
    • allowance(arg0: string, arg1: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • arg0: string
      • arg1: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • approve: function
    • approve(guy: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • guy: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • balanceOf: function
    • balanceOf(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • arg0: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • deposit: function
    • deposit(overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • name: function
    • name(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • transfer: function
    • transfer(dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • dst: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • transferFrom: function
    • transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • src: string
      • dst: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • withdraw: function
    • withdraw(wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters

filters: { Approval: any; Deposit: any; Transfer: any; Withdrawal: any }

Type declaration

  • Approval: function
    • Approval(src?: null | string, guy?: null | string, wad?: null): TypedEventFilter<[string, string, BigNumber], { guy: string; src: string; wad: BigNumber }>
    • Parameters

      • Optional src: null | string
      • Optional guy: null | string
      • Optional wad: null

      Returns TypedEventFilter<[string, string, BigNumber], { guy: string; src: string; wad: BigNumber }>

  • Deposit: function
    • Deposit(dst?: null | string, wad?: null): TypedEventFilter<[string, BigNumber], { dst: string; wad: BigNumber }>
    • Parameters

      • Optional dst: null | string
      • Optional wad: null

      Returns TypedEventFilter<[string, BigNumber], { dst: string; wad: BigNumber }>

  • Transfer: function
    • Transfer(src?: null | string, dst?: null | string, wad?: null): TypedEventFilter<[string, string, BigNumber], { dst: string; src: string; wad: BigNumber }>
    • Parameters

      • Optional src: null | string
      • Optional dst: null | string
      • Optional wad: null

      Returns TypedEventFilter<[string, string, BigNumber], { dst: string; src: string; wad: BigNumber }>

  • Withdrawal: function
    • Withdrawal(src?: null | string, wad?: null): TypedEventFilter<[string, BigNumber], { src: string; wad: BigNumber }>
    • Parameters

      • Optional src: null | string
      • Optional wad: null

      Returns TypedEventFilter<[string, BigNumber], { src: string; wad: BigNumber }>

functions

functions: { allowance: any; approve: any; balanceOf: any; decimals: any; deposit: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any; withdraw: any }

Type declaration

  • allowance: function
    • allowance(arg0: string, arg1: string, overrides?: CallOverrides): Promise<[BigNumber]>
    • Parameters

      • arg0: string
      • arg1: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber]>

  • approve: function
    • approve(guy: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • guy: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • balanceOf: function
    • balanceOf(arg0: string, overrides?: CallOverrides): Promise<[BigNumber]>
    • Parameters

      • arg0: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber]>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<[number]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[number]>

  • deposit: function
    • deposit(overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • name: function
    • name(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber]>

  • transfer: function
    • transfer(dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • dst: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • transferFrom: function
    • transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • src: string
      • dst: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • withdraw: function
    • withdraw(wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

interface

interface: MockWETH9Interface

populateTransaction

populateTransaction: { allowance: any; approve: any; balanceOf: any; decimals: any; deposit: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any; withdraw: any }

Type declaration

  • allowance: function
    • allowance(arg0: string, arg1: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • arg0: string
      • arg1: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • approve: function
    • approve(guy: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • guy: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • balanceOf: function
    • balanceOf(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • arg0: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • deposit: function
    • deposit(overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • name: function
    • name(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • transfer: function
    • transfer(dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • dst: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • transferFrom: function
    • transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • src: string
      • dst: string
      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • withdraw: function
    • withdraw(wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • wad: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

Readonly provider

provider: Provider

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Methods

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void
  • Parameters

    • runningEvent: RunningEvent

    Returns void

_deployed

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_wrapEvent

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

allowance

  • allowance(arg0: string, arg1: string, overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    • arg0: string
    • arg1: string
    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

approve

  • approve(guy: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • guy: string
    • wad: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

attach

  • Parameters

    • addressOrName: string

    Returns MockWETH9

balanceOf

  • balanceOf(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    • arg0: string
    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

connect

  • connect(signerOrProvider: string | Signer | Provider): MockWETH9
  • Parameters

    • signerOrProvider: string | Signer | Provider

    Returns MockWETH9

decimals

  • decimals(overrides?: CallOverrides): Promise<number>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<number>

deployed

  • Returns Promise<MockWETH9>

deposit

  • deposit(overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

emit

  • emit(eventName: string | EventFilter, ...args: any[]): boolean
  • Parameters

    • eventName: string | EventFilter
    • Rest ...args: any[]

    Returns boolean

fallback

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

listenerCount

  • listenerCount(eventName?: string | EventFilter): number
  • Parameters

    • Optional eventName: string | EventFilter

    Returns number

listeners

  • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
  • listeners(eventName?: string): Listener[]
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns TypedListener<EventArgsArray, EventArgsObject>[]

  • Parameters

    • Optional eventName: string

    Returns Listener[]

name

  • name(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

off

  • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): MockWETH9
  • off(eventName: string, listener: Listener): MockWETH9
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns MockWETH9

  • Parameters

    • eventName: string
    • listener: Listener

    Returns MockWETH9

on

  • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): MockWETH9
  • on(eventName: string, listener: Listener): MockWETH9
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns MockWETH9

  • Parameters

    • eventName: string
    • listener: Listener

    Returns MockWETH9

once

  • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): MockWETH9
  • once(eventName: string, listener: Listener): MockWETH9
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns MockWETH9

  • Parameters

    • eventName: string
    • listener: Listener

    Returns MockWETH9

queryFilter

  • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • event: TypedEventFilter<EventArgsArray, EventArgsObject>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

removeAllListeners

  • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): MockWETH9
  • removeAllListeners(eventName?: string): MockWETH9
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns MockWETH9

  • Parameters

    • Optional eventName: string

    Returns MockWETH9

removeListener

  • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): MockWETH9
  • removeListener(eventName: string, listener: Listener): MockWETH9
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns MockWETH9

  • Parameters

    • eventName: string
    • listener: Listener

    Returns MockWETH9

symbol

  • symbol(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

totalSupply

  • totalSupply(overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

transfer

  • transfer(dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • dst: string
    • wad: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

transferFrom

  • transferFrom(src: string, dst: string, wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • src: string
    • dst: string
    • wad: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

withdraw

  • withdraw(wad: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • wad: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

Static getContractAddress

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

Static getInterface

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

Static isIndexed

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed

Generated using TypeDoc