Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + func GetAddress(netAddr string) ([]byte, error) + func GetNonce(t *testing.T, netAddr string, block string, addr string) hexutil.Uint64 + func GetTransactionReceipt(t *testing.T, addr string, hash ethcmn.Hash) map[string]interface + func UnlockAllAccounts(t *testing.T, netAddr string) + func WaitForReceipt(t *testing.T, netAddr string, hash ethcmn.Hash) map[string]interface + type MockClient struct + func NewMockClient(chainId string, chain apptesting.TestChainI, app abci.Application) *MockClient + func (c *MockClient) Block(heightPtr *int64) (*ctypes.ResultBlock, error) + func (c *MockClient) BlockchainInfo(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error) + func (c *MockClient) CommitBlock() + func (c *MockClient) CommitTx(height int64, txs types.Txs, resDeliverTxs []*abci.ResponseDeliverTx) + func (c *MockClient) GetAddressList() (*ctypes.ResultUnconfirmedAddresses, error) + func (c *MockClient) LatestBlockNumber() (int64, error) + func (c *MockClient) NumUnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error) + func (c *MockClient) Tx(hash []byte, prove bool) (*ctypes.ResultTx, error) + func (c *MockClient) UnconfirmedTxs(limit int) (*ctypes.ResultUnconfirmedTxs, error) + func (c *MockClient) UserUnconfirmedTxs(address string, limit int) (*ctypes.ResultUserUnconfirmedTxs, error) + func (c MockClient) ABCIQueryWithOptions(path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*ctypes.ResultABCIQuery, error) + func (c MockClient) BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error) + func (c MockClient) GetPendingNonce(address string) (*ctypes.ResultPendingNonce, bool) + func (c MockClient) GetUnconfirmedTxByHash(hash [sha256.Size]byte) (types.Tx, error) + func (c MockClient) Status() (*ctypes.ResultStatus, error) + func (c MockClient) UserNumUnconfirmedTxs(address string) (*ctypes.ResultUserUnconfirmedTxs, error) + func (m *MockClient) BlockInfo(height *int64) (meta *types.BlockMeta, err error) + func (m *MockClient) StartTmRPC() (net.Listener, string, error) + type RPCError struct + Code int + Data interface{} + Message string + type Request struct + ID int + Method string + Params interface{} + Version string + func CreateRequest(method string, params interface{}) Request + type Response struct + Error *RPCError + ID int + Result json.RawMessage + func Call(t *testing.T, addr string, method string, params interface{}) *Response + func CallWithError(netAddr string, method string, params interface{}) (*Response, error)