Documentation ¶
Index ¶
- 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
- func (c MockClient) ABCIQueryWithOptions(path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*ctypes.ResultABCIQuery, error)
- func (c *MockClient) Block(heightPtr *int64) (*ctypes.ResultBlock, error)
- func (m *MockClient) BlockInfo(height *int64) (meta *types.BlockMeta, err error)
- func (c *MockClient) BlockchainInfo(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error)
- func (c MockClient) BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, 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) GetPendingNonce(address string) (*ctypes.ResultPendingNonce, bool)
- func (c MockClient) GetUnconfirmedTxByHash(hash [sha256.Size]byte) (types.Tx, error)
- func (c *MockClient) LatestBlockNumber() (int64, error)
- func (c *MockClient) NumUnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error)
- func (m *MockClient) StartTmRPC() (net.Listener, string, error)
- func (c MockClient) Status() (*ctypes.ResultStatus, error)
- func (c *MockClient) Tx(hash []byte, prove bool) (*ctypes.ResultTx, error)
- func (c *MockClient) UnconfirmedTxs(limit int) (*ctypes.ResultUnconfirmedTxs, error)
- func (c MockClient) UserNumUnconfirmedTxs(address string) (*ctypes.ResultUserUnconfirmedTxs, error)
- func (c *MockClient) UserUnconfirmedTxs(address string, limit int) (*ctypes.ResultUserUnconfirmedTxs, error)
- type RPCError
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetTransactionReceipt ¶
nolint
func UnlockAllAccounts ¶
Types ¶
type MockClient ¶
func NewMockClient ¶
func NewMockClient(chainId string, chain apptesting.TestChainI, app abci.Application) *MockClient
func (MockClient) ABCIQueryWithOptions ¶
func (c MockClient) ABCIQueryWithOptions( path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*ctypes.ResultABCIQuery, error)
func (*MockClient) Block ¶
func (c *MockClient) Block(heightPtr *int64) (*ctypes.ResultBlock, error)
func (*MockClient) BlockInfo ¶
func (m *MockClient) BlockInfo(height *int64) (meta *types.BlockMeta, err error)
func (*MockClient) BlockchainInfo ¶
func (c *MockClient) BlockchainInfo(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error)
func (MockClient) BroadcastTxSync ¶
func (c MockClient) BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error)
func (*MockClient) CommitBlock ¶
func (c *MockClient) CommitBlock()
func (*MockClient) CommitTx ¶
func (c *MockClient) CommitTx(height int64, txs types.Txs, resDeliverTxs []*abci.ResponseDeliverTx)
func (*MockClient) GetAddressList ¶
func (c *MockClient) GetAddressList() (*ctypes.ResultUnconfirmedAddresses, error)
func (MockClient) GetPendingNonce ¶
func (c MockClient) GetPendingNonce(address string) (*ctypes.ResultPendingNonce, bool)
func (MockClient) GetUnconfirmedTxByHash ¶
func (*MockClient) LatestBlockNumber ¶
func (c *MockClient) LatestBlockNumber() (int64, error)
func (*MockClient) NumUnconfirmedTxs ¶
func (c *MockClient) NumUnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error)
func (*MockClient) StartTmRPC ¶
func (m *MockClient) StartTmRPC() (net.Listener, string, error)
func (MockClient) Status ¶
func (c MockClient) Status() (*ctypes.ResultStatus, error)
func (*MockClient) UnconfirmedTxs ¶
func (c *MockClient) UnconfirmedTxs(limit int) (*ctypes.ResultUnconfirmedTxs, error)
func (MockClient) UserNumUnconfirmedTxs ¶
func (c MockClient) UserNumUnconfirmedTxs(address string) (*ctypes.ResultUserUnconfirmedTxs, error)
func (*MockClient) UserUnconfirmedTxs ¶
func (c *MockClient) UserUnconfirmedTxs(address string, limit int) (*ctypes.ResultUserUnconfirmedTxs, error)
type Request ¶
type Request struct { Version string `json:"jsonrpc"` Method string `json:"method"` Params interface{} `json:"params"` ID int `json:"id"` }
func CreateRequest ¶
Click to show internal directories.
Click to hide internal directories.