mock_blockchain

package
v0.5.0-rc8-hotfix2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mock_blockchain is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockchain added in v0.2.0

type MockBlockchain struct {
	// contains filtered or unexported fields
}

MockBlockchain is a mock of Blockchain interface

func NewMockBlockchain added in v0.2.0

func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain

NewMockBlockchain creates a new mock instance

func (*MockBlockchain) AddSubscriber added in v0.4.4

func (m *MockBlockchain) AddSubscriber(arg0 blockchain.BlockCreationSubscriber) error

AddSubscriber mocks base method

func (*MockBlockchain) Balance added in v0.3.0

func (m *MockBlockchain) Balance(addr string) (*big.Int, error)

Balance mocks base method

func (*MockBlockchain) BlockFooterByHash added in v0.5.0

func (m *MockBlockchain) BlockFooterByHash(h hash.Hash256) (*block.Footer, error)

BlockFooterByHash mocks base method

func (*MockBlockchain) BlockFooterByHeight added in v0.5.0

func (m *MockBlockchain) BlockFooterByHeight(height uint64) (*block.Footer, error)

BlockFooterByHeight mocks base method

func (*MockBlockchain) BlockHeaderByHash added in v0.5.0

func (m *MockBlockchain) BlockHeaderByHash(h hash.Hash256) (*block.Header, error)

BlockHeaderByHash mocks base method

func (*MockBlockchain) BlockHeaderByHeight added in v0.5.0

func (m *MockBlockchain) BlockHeaderByHeight(height uint64) (*block.Header, error)

BlockHeaderByHeight mocks base method

func (*MockBlockchain) CandidatesByHeight added in v0.3.0

func (m *MockBlockchain) CandidatesByHeight(height uint64) ([]*state.Candidate, error)

CandidatesByHeight mocks base method

func (*MockBlockchain) ChainAddress added in v0.4.0

func (m *MockBlockchain) ChainAddress() string

ChainAddress mocks base method

func (*MockBlockchain) ChainID added in v0.4.0

func (m *MockBlockchain) ChainID() uint32

ChainID mocks base method

func (*MockBlockchain) CommitBlock added in v0.2.0

func (m *MockBlockchain) CommitBlock(blk *block.Block) error

CommitBlock mocks base method

func (*MockBlockchain) CreateState added in v0.3.0

func (m *MockBlockchain) CreateState(addr string, init *big.Int) (*state.Account, error)

CreateState mocks base method

func (*MockBlockchain) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockBlockchain) ExecuteContractRead added in v0.3.0

func (m *MockBlockchain) ExecuteContractRead(caller address.Address, ex *action.Execution) (*action.Receipt, error)

ExecuteContractRead mocks base method

func (*MockBlockchain) GenesisTimestamp added in v0.5.0

func (m *MockBlockchain) GenesisTimestamp() int64

GenesisTimestamp mocks base method

func (*MockBlockchain) GetActionByActionHash added in v0.4.0

func (m *MockBlockchain) GetActionByActionHash(h hash.Hash256) (action.SealedEnvelope, error)

GetActionByActionHash mocks base method

func (*MockBlockchain) GetActionCountByAddress added in v0.5.0

func (m *MockBlockchain) GetActionCountByAddress(address string) (uint64, error)

GetActionCountByAddress mocks base method

func (*MockBlockchain) GetActionsFromAddress added in v0.4.0

func (m *MockBlockchain) GetActionsFromAddress(address string) ([]hash.Hash256, error)

GetActionsFromAddress mocks base method

func (*MockBlockchain) GetActionsToAddress added in v0.4.0

func (m *MockBlockchain) GetActionsToAddress(address string) ([]hash.Hash256, error)

GetActionsToAddress mocks base method

func (*MockBlockchain) GetBlockByHash added in v0.2.0

func (m *MockBlockchain) GetBlockByHash(h hash.Hash256) (*block.Block, error)

GetBlockByHash mocks base method

func (*MockBlockchain) GetBlockByHeight added in v0.2.0

func (m *MockBlockchain) GetBlockByHeight(height uint64) (*block.Block, error)

GetBlockByHeight mocks base method

func (*MockBlockchain) GetBlockHashByActionHash added in v0.4.0

func (m *MockBlockchain) GetBlockHashByActionHash(h hash.Hash256) (hash.Hash256, error)

GetBlockHashByActionHash mocks base method

func (*MockBlockchain) GetFactory added in v0.3.0

func (m *MockBlockchain) GetFactory() factory.Factory

GetFactory mocks base method

func (*MockBlockchain) GetHashByHeight added in v0.2.0

func (m *MockBlockchain) GetHashByHeight(height uint64) (hash.Hash256, error)

GetHashByHeight mocks base method

func (*MockBlockchain) GetHeightByHash added in v0.2.0

func (m *MockBlockchain) GetHeightByHash(h hash.Hash256) (uint64, error)

GetHeightByHash mocks base method

func (*MockBlockchain) GetReceiptByActionHash added in v0.4.4

func (m *MockBlockchain) GetReceiptByActionHash(h hash.Hash256) (*action.Receipt, error)

GetReceiptByActionHash mocks base method

func (*MockBlockchain) GetTotalActions added in v0.4.0

func (m *MockBlockchain) GetTotalActions() (uint64, error)

GetTotalActions mocks base method

func (*MockBlockchain) MintNewBlock added in v0.2.0

func (m *MockBlockchain) MintNewBlock(actionMap map[string][]action.SealedEnvelope, timestamp time.Time) (*block.Block, error)

MintNewBlock mocks base method

func (*MockBlockchain) Nonce added in v0.3.0

func (m *MockBlockchain) Nonce(addr string) (uint64, error)

Nonce mocks base method

func (*MockBlockchain) ProductivityByEpoch added in v0.5.0

func (m *MockBlockchain) ProductivityByEpoch(epochNum uint64) (uint64, map[string]uint64, error)

ProductivityByEpoch mocks base method

func (*MockBlockchain) RecoverChainAndState added in v0.5.0

func (m *MockBlockchain) RecoverChainAndState(targetHeight uint64) error

RecoverChainAndState mocks base method

func (*MockBlockchain) RemoveSubscriber added in v0.4.4

func (m *MockBlockchain) RemoveSubscriber(arg0 blockchain.BlockCreationSubscriber) error

RemoveSubscriber mocks base method

func (*MockBlockchain) SetValidator added in v0.2.0

func (m *MockBlockchain) SetValidator(val blockchain.Validator)

SetValidator mocks base method

func (*MockBlockchain) Start added in v0.2.0

func (m *MockBlockchain) Start(arg0 context.Context) error

Start mocks base method

func (*MockBlockchain) StateByAddr added in v0.2.0

func (m *MockBlockchain) StateByAddr(address string) (*state.Account, error)

StateByAddr mocks base method

func (*MockBlockchain) Stop added in v0.2.0

func (m *MockBlockchain) Stop(arg0 context.Context) error

Stop mocks base method

func (*MockBlockchain) TipHash added in v0.2.0

func (m *MockBlockchain) TipHash() hash.Hash256

TipHash mocks base method

func (*MockBlockchain) TipHeight added in v0.2.0

func (m *MockBlockchain) TipHeight() uint64

TipHeight mocks base method

func (*MockBlockchain) ValidateBlock added in v0.2.0

func (m *MockBlockchain) ValidateBlock(blk *block.Block) error

ValidateBlock mocks base method

func (*MockBlockchain) Validator added in v0.2.0

func (m *MockBlockchain) Validator() blockchain.Validator

Validator mocks base method

type MockBlockchainMockRecorder added in v0.2.0

type MockBlockchainMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockchainMockRecorder is the mock recorder for MockBlockchain

func (*MockBlockchainMockRecorder) AddSubscriber added in v0.4.4

func (mr *MockBlockchainMockRecorder) AddSubscriber(arg0 interface{}) *gomock.Call

AddSubscriber indicates an expected call of AddSubscriber

func (*MockBlockchainMockRecorder) Balance added in v0.3.0

func (mr *MockBlockchainMockRecorder) Balance(addr interface{}) *gomock.Call

Balance indicates an expected call of Balance

func (*MockBlockchainMockRecorder) BlockFooterByHash added in v0.5.0

func (mr *MockBlockchainMockRecorder) BlockFooterByHash(h interface{}) *gomock.Call

BlockFooterByHash indicates an expected call of BlockFooterByHash

func (*MockBlockchainMockRecorder) BlockFooterByHeight added in v0.5.0

func (mr *MockBlockchainMockRecorder) BlockFooterByHeight(height interface{}) *gomock.Call

BlockFooterByHeight indicates an expected call of BlockFooterByHeight

func (*MockBlockchainMockRecorder) BlockHeaderByHash added in v0.5.0

func (mr *MockBlockchainMockRecorder) BlockHeaderByHash(h interface{}) *gomock.Call

BlockHeaderByHash indicates an expected call of BlockHeaderByHash

func (*MockBlockchainMockRecorder) BlockHeaderByHeight added in v0.5.0

func (mr *MockBlockchainMockRecorder) BlockHeaderByHeight(height interface{}) *gomock.Call

BlockHeaderByHeight indicates an expected call of BlockHeaderByHeight

func (*MockBlockchainMockRecorder) CandidatesByHeight added in v0.3.0

func (mr *MockBlockchainMockRecorder) CandidatesByHeight(height interface{}) *gomock.Call

CandidatesByHeight indicates an expected call of CandidatesByHeight

func (*MockBlockchainMockRecorder) ChainAddress added in v0.4.0

func (mr *MockBlockchainMockRecorder) ChainAddress() *gomock.Call

ChainAddress indicates an expected call of ChainAddress

func (*MockBlockchainMockRecorder) ChainID added in v0.4.0

func (mr *MockBlockchainMockRecorder) ChainID() *gomock.Call

ChainID indicates an expected call of ChainID

func (*MockBlockchainMockRecorder) CommitBlock added in v0.2.0

func (mr *MockBlockchainMockRecorder) CommitBlock(blk interface{}) *gomock.Call

CommitBlock indicates an expected call of CommitBlock

func (*MockBlockchainMockRecorder) CreateState added in v0.3.0

func (mr *MockBlockchainMockRecorder) CreateState(addr, init interface{}) *gomock.Call

CreateState indicates an expected call of CreateState

func (*MockBlockchainMockRecorder) ExecuteContractRead added in v0.3.0

func (mr *MockBlockchainMockRecorder) ExecuteContractRead(caller, ex interface{}) *gomock.Call

ExecuteContractRead indicates an expected call of ExecuteContractRead

func (*MockBlockchainMockRecorder) GenesisTimestamp added in v0.5.0

func (mr *MockBlockchainMockRecorder) GenesisTimestamp() *gomock.Call

GenesisTimestamp indicates an expected call of GenesisTimestamp

func (*MockBlockchainMockRecorder) GetActionByActionHash added in v0.4.0

func (mr *MockBlockchainMockRecorder) GetActionByActionHash(h interface{}) *gomock.Call

GetActionByActionHash indicates an expected call of GetActionByActionHash

func (*MockBlockchainMockRecorder) GetActionCountByAddress added in v0.5.0

func (mr *MockBlockchainMockRecorder) GetActionCountByAddress(address interface{}) *gomock.Call

GetActionCountByAddress indicates an expected call of GetActionCountByAddress

func (*MockBlockchainMockRecorder) GetActionsFromAddress added in v0.4.0

func (mr *MockBlockchainMockRecorder) GetActionsFromAddress(address interface{}) *gomock.Call

GetActionsFromAddress indicates an expected call of GetActionsFromAddress

func (*MockBlockchainMockRecorder) GetActionsToAddress added in v0.4.0

func (mr *MockBlockchainMockRecorder) GetActionsToAddress(address interface{}) *gomock.Call

GetActionsToAddress indicates an expected call of GetActionsToAddress

func (*MockBlockchainMockRecorder) GetBlockByHash added in v0.2.0

func (mr *MockBlockchainMockRecorder) GetBlockByHash(h interface{}) *gomock.Call

GetBlockByHash indicates an expected call of GetBlockByHash

func (*MockBlockchainMockRecorder) GetBlockByHeight added in v0.2.0

func (mr *MockBlockchainMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight

func (*MockBlockchainMockRecorder) GetBlockHashByActionHash added in v0.4.0

func (mr *MockBlockchainMockRecorder) GetBlockHashByActionHash(h interface{}) *gomock.Call

GetBlockHashByActionHash indicates an expected call of GetBlockHashByActionHash

func (*MockBlockchainMockRecorder) GetFactory added in v0.3.0

func (mr *MockBlockchainMockRecorder) GetFactory() *gomock.Call

GetFactory indicates an expected call of GetFactory

func (*MockBlockchainMockRecorder) GetHashByHeight added in v0.2.0

func (mr *MockBlockchainMockRecorder) GetHashByHeight(height interface{}) *gomock.Call

GetHashByHeight indicates an expected call of GetHashByHeight

func (*MockBlockchainMockRecorder) GetHeightByHash added in v0.2.0

func (mr *MockBlockchainMockRecorder) GetHeightByHash(h interface{}) *gomock.Call

GetHeightByHash indicates an expected call of GetHeightByHash

func (*MockBlockchainMockRecorder) GetReceiptByActionHash added in v0.4.4

func (mr *MockBlockchainMockRecorder) GetReceiptByActionHash(h interface{}) *gomock.Call

GetReceiptByActionHash indicates an expected call of GetReceiptByActionHash

func (*MockBlockchainMockRecorder) GetTotalActions added in v0.4.0

func (mr *MockBlockchainMockRecorder) GetTotalActions() *gomock.Call

GetTotalActions indicates an expected call of GetTotalActions

func (*MockBlockchainMockRecorder) MintNewBlock added in v0.2.0

func (mr *MockBlockchainMockRecorder) MintNewBlock(actionMap, timestamp interface{}) *gomock.Call

MintNewBlock indicates an expected call of MintNewBlock

func (*MockBlockchainMockRecorder) Nonce added in v0.3.0

func (mr *MockBlockchainMockRecorder) Nonce(addr interface{}) *gomock.Call

Nonce indicates an expected call of Nonce

func (*MockBlockchainMockRecorder) ProductivityByEpoch added in v0.5.0

func (mr *MockBlockchainMockRecorder) ProductivityByEpoch(epochNum interface{}) *gomock.Call

ProductivityByEpoch indicates an expected call of ProductivityByEpoch

func (*MockBlockchainMockRecorder) RecoverChainAndState added in v0.5.0

func (mr *MockBlockchainMockRecorder) RecoverChainAndState(targetHeight interface{}) *gomock.Call

RecoverChainAndState indicates an expected call of RecoverChainAndState

func (*MockBlockchainMockRecorder) RemoveSubscriber added in v0.4.4

func (mr *MockBlockchainMockRecorder) RemoveSubscriber(arg0 interface{}) *gomock.Call

RemoveSubscriber indicates an expected call of RemoveSubscriber

func (*MockBlockchainMockRecorder) SetValidator added in v0.2.0

func (mr *MockBlockchainMockRecorder) SetValidator(val interface{}) *gomock.Call

SetValidator indicates an expected call of SetValidator

func (*MockBlockchainMockRecorder) Start added in v0.2.0

func (mr *MockBlockchainMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start

func (*MockBlockchainMockRecorder) StateByAddr added in v0.2.0

func (mr *MockBlockchainMockRecorder) StateByAddr(address interface{}) *gomock.Call

StateByAddr indicates an expected call of StateByAddr

func (*MockBlockchainMockRecorder) Stop added in v0.2.0

func (mr *MockBlockchainMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop

func (*MockBlockchainMockRecorder) TipHash added in v0.2.0

func (mr *MockBlockchainMockRecorder) TipHash() *gomock.Call

TipHash indicates an expected call of TipHash

func (*MockBlockchainMockRecorder) TipHeight added in v0.2.0

func (mr *MockBlockchainMockRecorder) TipHeight() *gomock.Call

TipHeight indicates an expected call of TipHeight

func (*MockBlockchainMockRecorder) ValidateBlock added in v0.2.0

func (mr *MockBlockchainMockRecorder) ValidateBlock(blk interface{}) *gomock.Call

ValidateBlock indicates an expected call of ValidateBlock

func (*MockBlockchainMockRecorder) Validator added in v0.2.0

func (mr *MockBlockchainMockRecorder) Validator() *gomock.Call

Validator indicates an expected call of Validator

Jump to

Keyboard shortcuts

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