Versions in this module Expand all Collapse all v1 v1.0.1 Feb 25, 2019 v1.0.0 Jan 30, 2019 Changes in this version + func Compare(t *testing.T, expected interface{}, value interface{}) + func CompareAccount(t *testing.T, a, b *types.Account) + func CompareAccountStrict(t *testing.T, a, b *types.Account) + func CompareEngineResponse(t *testing.T, a, b *types.EngineResponse) + func CompareMatches(t *testing.T, a, b *types.Matches) + func CompareOrder(t *testing.T, a, b *types.Order) + func ComparePair(t *testing.T, a, b *types.Pair) + func ComparePublicOrder(t *testing.T, a, b *types.Order) + func ComparePublicTrade(t *testing.T, a, b *types.Trade) + func CompareStructs(t *testing.T, expected interface{}, order interface{}) + func CompareToken(t *testing.T, a, b *types.Token) + func CompareTrade(t *testing.T, a, b *types.Trade) + func GetTestAddress1() common.Address + func GetTestAddress2() common.Address + func GetTestAddress3() common.Address + func GetTestOrder1() types.Order + func GetTestOrder2() types.Order + func GetTestOrder3() types.Order + func GetTestTrade1() types.Trade + func GetTestTrade2() types.Trade + func GetTestWETHToken() types.Token + func GetTestWallet() *types.Wallet + func GetTestWallet1() *types.Wallet + func GetTestWallet2() *types.Wallet + func GetTestWallet3() *types.Wallet + func GetTestWallet4() *types.Wallet + func GetTestWallet5() *types.Wallet + func GetTestZRXToken() types.Token + func GetZRXWETHTestPair() *types.Pair + func Mine(client *ethereum.SimulatedClient) + func NewDBTestServer() *dbtest.DBServer + type Client struct + Logs chan *ClientLogMessage + NonceGenerator *rand.Rand + RequestLogs []types.WebsocketMessage + Requests chan *types.WebsocketMessage + ResponseLogs []types.WebsocketMessage + Responses chan *types.WebsocketMessage + Wallet *types.Wallet + func NewClient(w *types.Wallet, s Server) *Client + func (c *Client) SetNonce(o *types.Order) + func (c *Client) Start() + type ClientLogMessage struct + ErrorID int8 + Matches *types.Matches + MessageType string + Orders []*types.Order + Trades []*types.Trade + Tx *common.Hash + type Deployer struct + Client bind.ContractBackend + TxService interfaces.TxService + WalletService interfaces.WalletService + func NewDefaultDeployer(w interfaces.WalletService, tx interfaces.TxService) (*Deployer, error) + func NewDeployer(w interfaces.WalletService, tx interfaces.TxService, ...) *Deployer + func NewWebSocketDeployer(w interfaces.WalletService, tx interfaces.TxService) (*Deployer, error) + func (d *Deployer) DeployExchange(wethToken common.Address, feeAccount common.Address) (*contracts.Exchange, common.Address, *ethTypes.Transaction, error) + func (d *Deployer) DeployToken(receiver common.Address, amount *big.Int) (*contracts.Token, common.Address, *ethTypes.Transaction, error) + func (d *Deployer) GetNonce() (*big.Int, error) + func (d *Deployer) NewExchange(addr common.Address) (*contracts.Exchange, error) + func (d *Deployer) NewToken(addr common.Address) (*contracts.Token, error) + func (d *Deployer) WaitMined(tx *ethTypes.Transaction) (*ethTypes.Receipt, error) + type MockDaos struct + AccountDao *mocks.AccountDao + OrderDao *mocks.OrderDao + PairDao *mocks.PairDao + TokenDao *mocks.TokenDao + TradeDao *mocks.TradeDao + WalletDao *mocks.WalletDao + func NewMockDaos() *MockDaos + type MockServices struct + AccountService *mocks.AccountService + EthereumService *mocks.EthereumService + OrderBookService *mocks.OrderBookService + OrderService *mocks.OrderService + PairService *mocks.PairService + TokenService *mocks.TokenService + TradeService *mocks.TradeService + TxService *mocks.TxService + WalletService *mocks.WalletService + func NewMockServices() *MockServices + type OrderFactory struct + NonceGenerator *rand.Rand + OrderNonce uint64 + Pair *types.Pair + Params *OrderParams + Wallet *types.Wallet + func NewOrderFactory(p *types.Pair, w *types.Wallet, exchangeAddress common.Address) (*OrderFactory, error) + func (f *OrderFactory) GetAddress() common.Address + func (f *OrderFactory) GetExchangeAddress() common.Address + func (f *OrderFactory) GetWallet() *types.Wallet + func (f *OrderFactory) NewBuyOrder(pricepoint int64, value float64, filled ...float64) (types.Order, error) + func (f *OrderFactory) NewBuyOrderMessage(price int64, amount float64) (*types.WebsocketMessage, *types.Order, error) + func (f *OrderFactory) NewCancelOrder(o *types.Order) (*types.OrderCancel, error) + func (f *OrderFactory) NewCancelOrderMessage(o *types.Order) (*types.WebsocketMessage, *types.OrderCancel, error) + func (f *OrderFactory) NewLargeOrder(baseToken common.Address, quoteToken common.Address, amount *big.Int, ...) (*types.Order, error) + func (f *OrderFactory) NewOrder(baseToken common.Address, quoteToken common.Address, amount int64, ...) (*types.Order, error) + func (f *OrderFactory) NewOrderMessage(baseToken, quoteToken common.Address, amount, pricepoint int64) (*types.WebsocketMessage, *types.Order, error) + func (f *OrderFactory) NewSellOrder(pricepoint int64, value float64, filled ...float64) (types.Order, error) + func (f *OrderFactory) NewSellOrderMessage(price int64, amount float64) (*types.WebsocketMessage, *types.Order, error) + func (f *OrderFactory) NewTrade(o *types.Order, amount int64) (types.Trade, error) + func (f *OrderFactory) SetExchangeAddress(addr common.Address) error + type OrderParams struct + ExchangeAddress common.Address + MakeFee *big.Int + Nonce *big.Int + TakeFee *big.Int + type Server interface + ServeHTTP func(res http.ResponseWriter, req *http.Request)