wethtest

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package openseatest provides a test double for wETH.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address() common.Address

Address returns the address at which DeployWETH deploys the simulated wETH contract.

func DeployWETH

func DeployWETH(sim *ethtest.SimulatedBackend) (*wethtestabi.IwETH, error)

DeployWETH deploys a mocked wETH contract to the SimulatedBackend and returns an interface wrapping the address.

This function MUST only be called once for each SimulatedBackend; all future calls will deploy to a different address to the one expected by the WETH library.

func DeployWETHTB

func DeployWETHTB(tb testing.TB, sim *ethtest.SimulatedBackend) *wethtestabi.IwETH

DeployWETHTB calls DeployWETH() and reports any errors with tb.Fatal.

Types

This section is empty.

Directories

Path Synopsis
Package wethtestabi is a generated package providing test doubles of the wETH contract.
Package wethtestabi is a generated package providing test doubles of the wETH contract.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL