Documentation
¶
Index ¶
- type MockNodeClient
- func (mock *MockNodeClient) Broadcast(transaction txs.Tx) (*txs.Receipt, error)
- func (mock *MockNodeClient) DeriveWebsocketClient() (nodeWsClient NodeWebsocketClient, err error)
- func (mock *MockNodeClient) DumpStorage(address acm.Address) (storage *rpc.ResultDumpStorage, err error)
- func (mock *MockNodeClient) GetAccount(address acm.Address) (acm.Account, error)
- func (mock *MockNodeClient) GetName(name string) (owner acm.Address, data string, expirationBlock uint64, err error)
- func (mock *MockNodeClient) ListValidators() (blockHeight uint64, bondedValidators, unbondingValidators []acm.Validator, ...)
- func (mock *MockNodeClient) Logger() *logging.Logger
- func (mock *MockNodeClient) MockAddAccount(account *acm.ConcreteAccount)
- func (mock *MockNodeClient) QueryContract(callerAddress, calleeAddress acm.Address, data []byte) (ret []byte, gasUsed uint64, err error)
- func (mock *MockNodeClient) QueryContractCode(address acm.Address, code, data []byte) (ret []byte, gasUsed uint64, err error)
- func (mock *MockNodeClient) Status() (ChainId []byte, ValidatorPublicKey []byte, LatestBlockHash []byte, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNodeClient ¶
type MockNodeClient struct {
// contains filtered or unexported fields
}
func NewMockNodeClient ¶
func NewMockNodeClient() *MockNodeClient
func (*MockNodeClient) DeriveWebsocketClient ¶
func (mock *MockNodeClient) DeriveWebsocketClient() (nodeWsClient NodeWebsocketClient, err error)
func (*MockNodeClient) DumpStorage ¶
func (mock *MockNodeClient) DumpStorage(address acm.Address) (storage *rpc.ResultDumpStorage, err error)
func (*MockNodeClient) GetAccount ¶
func (*MockNodeClient) ListValidators ¶
func (mock *MockNodeClient) ListValidators() (blockHeight uint64, bondedValidators, unbondingValidators []acm.Validator, err error)
func (*MockNodeClient) Logger ¶ added in v0.16.0
func (mock *MockNodeClient) Logger() *logging.Logger
func (*MockNodeClient) MockAddAccount ¶
func (mock *MockNodeClient) MockAddAccount(account *acm.ConcreteAccount)
func (*MockNodeClient) QueryContract ¶
func (mock *MockNodeClient) QueryContract(callerAddress, calleeAddress acm.Address, data []byte) (ret []byte, gasUsed uint64, err error)
QueryContract executes the contract code at address with the given data
func (*MockNodeClient) QueryContractCode ¶
func (mock *MockNodeClient) QueryContractCode(address acm.Address, code, data []byte) (ret []byte, gasUsed uint64, err error)
QueryContractCode executes the contract code at address with the given data but with provided code
Click to show internal directories.
Click to hide internal directories.