Documentation ¶
Overview ¶
Package openseatest provides test doubles for OpenSea's Wyvern protocol.
Index ¶
- func DeployProxyRegistry(sim *ethtest.SimulatedBackend) error
- func DeployProxyRegistryTB(tb testing.TB, sim *ethtest.SimulatedBackend)
- func SetProxy(sim *ethtest.SimulatedBackend, owner, proxy common.Address) error
- func SetProxyTB(tb testing.TB, sim *ethtest.SimulatedBackend, owner, proxy common.Address)
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 ¶
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. |