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 []byte) (storage *core_types.Storage, err error)
- func (mock *MockNodeClient) GetAccount(address []byte) (*acc.Account, error)
- func (mock *MockNodeClient) GetName(name string) (owner []byte, data string, expirationBlock int, err error)
- func (mock *MockNodeClient) ListValidators() (blockHeight int, ...)
- func (mock *MockNodeClient) Logger() loggers.InfoTraceLogger
- func (mock *MockNodeClient) MockAddAccount(account *acc.Account)
- func (mock *MockNodeClient) QueryContract(callerAddress, calleeAddress, data []byte) (ret []byte, gasUsed int64, err error)
- func (mock *MockNodeClient) QueryContractCode(address, code, data []byte) (ret []byte, gasUsed int64, 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 []byte) (storage *core_types.Storage, err error)
func (*MockNodeClient) GetAccount ¶
func (mock *MockNodeClient) GetAccount(address []byte) (*acc.Account, error)
func (*MockNodeClient) ListValidators ¶
func (mock *MockNodeClient) ListValidators() (blockHeight int, bondedValidators, unbondingValidators []consensus_types.Validator, err error)
func (*MockNodeClient) Logger ¶
func (mock *MockNodeClient) Logger() loggers.InfoTraceLogger
func (*MockNodeClient) MockAddAccount ¶
func (mock *MockNodeClient) MockAddAccount(account *acc.Account)
func (*MockNodeClient) QueryContract ¶
func (mock *MockNodeClient) QueryContract(callerAddress, calleeAddress, data []byte) (ret []byte, gasUsed int64, err error)
QueryContract executes the contract code at address with the given data
func (*MockNodeClient) QueryContractCode ¶
func (mock *MockNodeClient) QueryContractCode(address, code, data []byte) (ret []byte, gasUsed int64, 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.