Documentation ¶
Index ¶
- func CreateERC1155ForZRXSignedTestOrder(t *testing.T, ethClient *ethclient.Client, ...) *zeroex.SignedOrder
- func CreateNFTForZRXSignedTestOrder(t *testing.T, ethClient *ethclient.Client, ...) *zeroex.SignedOrder
- func CreateNFTForZRXWithWETHMakerFeeSignedTestOrder(t *testing.T, ethClient *ethclient.Client, ...) *zeroex.SignedOrder
- func CreateSignedTestOrderWithExpirationTime(t *testing.T, ethClient *ethclient.Client, ...) *zeroex.SignedOrder
- func CreateWETHForZRXSignedTestOrder(t *testing.T, ethClient *ethclient.Client, ...) *zeroex.SignedOrder
- func CreateZRXForWETHSignedTestOrder(t *testing.T, ethClient *ethclient.Client, ...) *zeroex.SignedOrder
- func GetTestSignerFn(signerAddress common.Address) ...
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.