openseatest

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package openseatest provides test doubles for OpenSea's Wyvern protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployProxyRegistry

func DeployProxyRegistry(sim *ethtest.SimulatedBackend) error

DeployProxyRegistry deploys a mocked Wyvern proxy registry to the SimulatedBackend.

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 OpenSeaGasFreeListing library.

func DeployProxyRegistryTB

func DeployProxyRegistryTB(tb testing.TB, sim *ethtest.SimulatedBackend)

DeployProxyRegistryTB calls DeployProxyRegistry() and reports any errors with tb.Fatal.

func SetProxy

func SetProxy(sim *ethtest.SimulatedBackend, owner, proxy common.Address) error

SetProxy sets the owner's proxy in the simulated Wyver proxy registry, which MUST already have been deployed with DeployProxyRegistry[TB}().

func SetProxyTB

func SetProxyTB(tb testing.TB, sim *ethtest.SimulatedBackend, owner, proxy common.Address)

SetProxyTB calls SetProxy() and reports any errors with tb.Fatal.

Types

This section is empty.

Directories

Path Synopsis
Package openseatestabi is a generated package providing test doubles of OpenSea contracts.
Package openseatestabi is a generated package providing test doubles of OpenSea contracts.

Jump to

Keyboard shortcuts

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