mock

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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 []byte) (storage *core_types.Storage, err error)

func (*MockNodeClient) GetAccount

func (mock *MockNodeClient) GetAccount(address []byte) (*acc.Account, error)

func (*MockNodeClient) GetName

func (mock *MockNodeClient) GetName(name string) (owner []byte, data string, expirationBlock int, err error)

func (*MockNodeClient) ListValidators

func (mock *MockNodeClient) ListValidators() (blockHeight int, bondedValidators, unbondingValidators []consensus_types.Validator, err error)

func (*MockNodeClient) Logger added in v0.16.0

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

func (*MockNodeClient) Status

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

Jump to

Keyboard shortcuts

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