scenario

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateERC1155ForZRXSignedTestOrder

func CreateERC1155ForZRXSignedTestOrder(t *testing.T, ethClient *ethclient.Client, makerAddress, takerAddress common.Address, tokenID *big.Int, zrxAmount, erc1155FungibleAmount *big.Int) *zeroex.SignedOrder

CreateERC1155ForZRXSignedTestOrder creates a valid 0x orders where the maker wishes to trade an ERC1155 for ZRX

func CreateNFTForZRXSignedTestOrder

func CreateNFTForZRXSignedTestOrder(t *testing.T, ethClient *ethclient.Client, makerAddress, takerAddress common.Address, tokenID *big.Int, zrxAmount *big.Int) *zeroex.SignedOrder

CreateNFTForZRXSignedTestOrder creates a valid 0x orders where the maker wishes to trade an NFT for ZRX

func CreateNFTForZRXWithWETHMakerFeeSignedTestOrder

func CreateNFTForZRXWithWETHMakerFeeSignedTestOrder(t *testing.T, ethClient *ethclient.Client, makerAddress, takerAddress common.Address, tokenID *big.Int, zrxAmount *big.Int, wethFeeAmount *big.Int) *zeroex.SignedOrder

CreateNFTForZRXWithWETHMakerFeeSignedTestOrder creates a valid 0x order where the maker wishes to trade an NFT for ZRX with WETH as the maker fee asset.

func CreateSignedTestOrderWithExpirationTime

func CreateSignedTestOrderWithExpirationTime(t *testing.T, ethClient *ethclient.Client, makerAddress, takerAddress common.Address, expirationTime time.Time) *zeroex.SignedOrder

CreateSignedTestOrderWithExpirationTime creates a valid 0x orders where the maker wishes to trade ZRX for WETH

func CreateWETHForZRXSignedTestOrder

func CreateWETHForZRXSignedTestOrder(t *testing.T, ethClient *ethclient.Client, makerAddress, takerAddress common.Address, wethAmount *big.Int, zrxAmount *big.Int) *zeroex.SignedOrder

CreateWETHForZRXSignedTestOrder creates a valid 0x orders where the maker wishes to trade WETH for ZRX

func CreateZRXForWETHSignedTestOrder

func CreateZRXForWETHSignedTestOrder(t *testing.T, ethClient *ethclient.Client, makerAddress, takerAddress common.Address, wethAmount *big.Int, zrxAmount *big.Int) *zeroex.SignedOrder

CreateZRXForWETHSignedTestOrder creates a valid 0x orders where the maker wishes to trade ZRX for WETH

func GetTestSignerFn

func GetTestSignerFn(signerAddress common.Address) func(signer types.Signer, address common.Address, tx *types.Transaction) (*types.Transaction, error)

GetTestSignerFn returns a test signer function that can be used to sign Ethereum transactions

Types

This section is empty.

Jump to

Keyboard shortcuts

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