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 ¶ added in v1.3.0
func NewMockClient ¶ added in v1.3.0
func NewMockClient(chainId string, chain apptesting.TestChainI, app abci.Application) *MockClient
func (MockClient) ABCIQueryWithOptions ¶ added in v1.3.0
func (c MockClient) ABCIQueryWithOptions( path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*ctypes.ResultABCIQuery, error)
func (*MockClient) Block ¶ added in v1.3.0
func (c *MockClient) Block(heightPtr *int64) (*ctypes.ResultBlock, error)
func (*MockClient) BlockInfo ¶ added in v1.6.3
func (m *MockClient) BlockInfo(height *int64) (meta *types.BlockMeta, err error)
func (*MockClient) BlockchainInfo ¶ added in v1.3.0
func (c *MockClient) BlockchainInfo(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error)
func (MockClient) BroadcastTxSync ¶ added in v1.3.0
func (c MockClient) BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error)
func (*MockClient) CommitBlock ¶ added in v1.3.0
func (c *MockClient) CommitBlock()
func (*MockClient) CommitTx ¶ added in v1.3.0
func (c *MockClient) CommitTx(height int64, txs types.Txs, resDeliverTxs []*abci.ResponseDeliverTx)
func (*MockClient) GetAddressList ¶ added in v1.3.0
func (c *MockClient) GetAddressList() (*ctypes.ResultUnconfirmedAddresses, error)
func (MockClient) GetPendingNonce ¶ added in v1.3.0
func (c MockClient) GetPendingNonce(address string) (*ctypes.ResultPendingNonce, bool)
func (MockClient) GetUnconfirmedTxByHash ¶ added in v1.3.0
func (*MockClient) LatestBlockNumber ¶ added in v1.6.0
func (c *MockClient) LatestBlockNumber() (int64, error)
func (*MockClient) NumUnconfirmedTxs ¶ added in v1.3.0
func (c *MockClient) NumUnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error)
func (*MockClient) StartTmRPC ¶ added in v1.5.3
func (m *MockClient) StartTmRPC() (net.Listener, string, error)
func (MockClient) Status ¶ added in v1.3.0
func (c MockClient) Status() (*ctypes.ResultStatus, error)
func (*MockClient) UnconfirmedTxs ¶ added in v1.3.0
func (c *MockClient) UnconfirmedTxs(limit int) (*ctypes.ResultUnconfirmedTxs, error)
func (MockClient) UserNumUnconfirmedTxs ¶ added in v1.3.0
func (c MockClient) UserNumUnconfirmedTxs(address string) (*ctypes.ResultUserUnconfirmedTxs, error)
func (*MockClient) UserUnconfirmedTxs ¶ added in v1.3.0
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.