mock

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Broadcast

func (mock *MockNodeClient) Broadcast(transaction txs.Tx) (*txs.Receipt, error)

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 (mock *MockNodeClient) GetAccount(address acm.Address) (acm.Account, error)

func (*MockNodeClient) GetName

func (mock *MockNodeClient) GetName(name string) (owner acm.Address, data string, expirationBlock uint64, err error)

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 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

func (*MockNodeClient) Status

func (mock *MockNodeClient) Status() (ChainId []byte, ValidatorPublicKey []byte, LatestBlockHash []byte,
	BlockHeight uint64, LatestBlockTime int64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL