 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type MockNodeClient
- func (mock *MockNodeClient) Broadcast(txEnv *txs.Envelope) (*txs.Receipt, error)
- func (mock *MockNodeClient) DeriveWebsocketClient() (nodeWsClient NodeWebsocketClient, err error)
- func (mock *MockNodeClient) DumpStorage(address crypto.Address) (storage *rpc.ResultDumpStorage, err error)
- func (mock *MockNodeClient) GetAccount(address crypto.Address) (acm.Account, error)
- func (mock *MockNodeClient) GetName(name string) (owner crypto.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 crypto.Address, data []byte) (ret []byte, gasUsed uint64, err error)
- func (mock *MockNodeClient) QueryContractCode(address crypto.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 crypto.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 ¶
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 crypto.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 crypto.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.