mock_blockchain

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 8 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) Balance added in v0.3.0

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

Balance mocks base method

func (*MockBlockchain) Candidates added in v0.3.0

func (m *MockBlockchain) Candidates() (uint64, []*state.Candidate)

Candidates 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) CommitBlock added in v0.2.0

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

CommitBlock mocks base method

func (*MockBlockchain) CommitStateChanges added in v0.3.0

func (m *MockBlockchain) CommitStateChanges(chainHeight uint64, tsf []*action.Transfer, vote []*action.Vote, executions []*action.Execution) error

CommitStateChanges mocks base method

func (*MockBlockchain) CreateState added in v0.3.0

func (m *MockBlockchain) CreateState(addr string, init uint64) (*state.State, 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(arg0 *action.Execution) ([]byte, error)

ExecuteContractRead mocks base method

func (*MockBlockchain) GetBlockByHash added in v0.2.0

func (m *MockBlockchain) GetBlockByHash(h hash.Hash32B) (*blockchain.Block, error)

GetBlockByHash mocks base method

func (*MockBlockchain) GetBlockByHeight added in v0.2.0

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

GetBlockByHeight mocks base method

func (*MockBlockchain) GetBlockHashByExecutionHash added in v0.3.0

func (m *MockBlockchain) GetBlockHashByExecutionHash(h hash.Hash32B) (hash.Hash32B, error)

GetBlockHashByExecutionHash mocks base method

func (*MockBlockchain) GetBlockHashByTransferHash added in v0.2.0

func (m *MockBlockchain) GetBlockHashByTransferHash(h hash.Hash32B) (hash.Hash32B, error)

GetBlockHashByTransferHash mocks base method

func (*MockBlockchain) GetBlockHashByVoteHash added in v0.2.0

func (m *MockBlockchain) GetBlockHashByVoteHash(h hash.Hash32B) (hash.Hash32B, error)

GetBlockHashByVoteHash mocks base method

func (*MockBlockchain) GetExecutionByExecutionHash added in v0.3.0

func (m *MockBlockchain) GetExecutionByExecutionHash(h hash.Hash32B) (*action.Execution, error)

GetExecutionByExecutionHash mocks base method

func (*MockBlockchain) GetExecutionsFromAddress added in v0.3.0

func (m *MockBlockchain) GetExecutionsFromAddress(address string) ([]hash.Hash32B, error)

GetExecutionsFromAddress mocks base method

func (*MockBlockchain) GetExecutionsToAddress added in v0.3.0

func (m *MockBlockchain) GetExecutionsToAddress(address string) ([]hash.Hash32B, error)

GetExecutionsToAddress mocks base method

func (*MockBlockchain) GetFactory added in v0.3.0

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

GetFactory mocks base method

func (*MockBlockchain) GetHashByHeight added in v0.2.0

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

GetHashByHeight mocks base method

func (*MockBlockchain) GetHeightByHash added in v0.2.0

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

GetHeightByHash mocks base method

func (*MockBlockchain) GetReceiptByExecutionHash added in v0.3.0

func (m *MockBlockchain) GetReceiptByExecutionHash(h hash.Hash32B) (*blockchain.Receipt, error)

GetReceiptByExecutionHash mocks base method

func (*MockBlockchain) GetTotalExecutions added in v0.3.0

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

GetTotalExecutions mocks base method

func (*MockBlockchain) GetTotalTransfers added in v0.2.0

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

GetTotalTransfers mocks base method

func (*MockBlockchain) GetTotalVotes added in v0.2.0

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

GetTotalVotes mocks base method

func (*MockBlockchain) GetTransferByTransferHash added in v0.2.0

func (m *MockBlockchain) GetTransferByTransferHash(h hash.Hash32B) (*action.Transfer, error)

GetTransferByTransferHash mocks base method

func (*MockBlockchain) GetTransfersFromAddress added in v0.2.0

func (m *MockBlockchain) GetTransfersFromAddress(address string) ([]hash.Hash32B, error)

GetTransfersFromAddress mocks base method

func (*MockBlockchain) GetTransfersToAddress added in v0.2.0

func (m *MockBlockchain) GetTransfersToAddress(address string) ([]hash.Hash32B, error)

GetTransfersToAddress mocks base method

func (*MockBlockchain) GetVoteByVoteHash added in v0.2.0

func (m *MockBlockchain) GetVoteByVoteHash(h hash.Hash32B) (*action.Vote, error)

GetVoteByVoteHash mocks base method

func (*MockBlockchain) GetVotesFromAddress added in v0.2.0

func (m *MockBlockchain) GetVotesFromAddress(address string) ([]hash.Hash32B, error)

GetVotesFromAddress mocks base method

func (*MockBlockchain) GetVotesToAddress added in v0.2.0

func (m *MockBlockchain) GetVotesToAddress(address string) ([]hash.Hash32B, error)

GetVotesToAddress mocks base method

func (*MockBlockchain) MintNewBlock added in v0.2.0

func (m *MockBlockchain) MintNewBlock(tsf []*action.Transfer, vote []*action.Vote, executions []*action.Execution, address *iotxaddress.Address, data string) (*blockchain.Block, error)

MintNewBlock mocks base method

func (*MockBlockchain) MintNewDKGBlock added in v0.3.0

func (m *MockBlockchain) MintNewDKGBlock(tsf []*action.Transfer, vote []*action.Vote, executions []*action.Execution, producer *iotxaddress.Address, dkgAddress *iotxaddress.DKGAddress, seed []byte, data string) (*blockchain.Block, error)

MintNewDKGBlock mocks base method

func (*MockBlockchain) MintNewDummyBlock added in v0.2.0

func (m *MockBlockchain) MintNewDummyBlock() *blockchain.Block

MintNewDummyBlock 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) 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.State, 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.Hash32B, error)

TipHash mocks base method

func (*MockBlockchain) TipHeight added in v0.2.0

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

TipHeight mocks base method

func (*MockBlockchain) ValidateBlock added in v0.2.0

func (m *MockBlockchain) ValidateBlock(blk *blockchain.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) Balance added in v0.3.0

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

Balance indicates an expected call of Balance

func (*MockBlockchainMockRecorder) Candidates added in v0.3.0

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

Candidates indicates an expected call of Candidates

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) CommitBlock added in v0.2.0

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

CommitBlock indicates an expected call of CommitBlock

func (*MockBlockchainMockRecorder) CommitStateChanges added in v0.3.0

func (mr *MockBlockchainMockRecorder) CommitStateChanges(chainHeight, tsf, vote, executions interface{}) *gomock.Call

CommitStateChanges indicates an expected call of CommitStateChanges

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(arg0 interface{}) *gomock.Call

ExecuteContractRead indicates an expected call of ExecuteContractRead

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) GetBlockHashByExecutionHash added in v0.3.0

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

GetBlockHashByExecutionHash indicates an expected call of GetBlockHashByExecutionHash

func (*MockBlockchainMockRecorder) GetBlockHashByTransferHash added in v0.2.0

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

GetBlockHashByTransferHash indicates an expected call of GetBlockHashByTransferHash

func (*MockBlockchainMockRecorder) GetBlockHashByVoteHash added in v0.2.0

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

GetBlockHashByVoteHash indicates an expected call of GetBlockHashByVoteHash

func (*MockBlockchainMockRecorder) GetExecutionByExecutionHash added in v0.3.0

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

GetExecutionByExecutionHash indicates an expected call of GetExecutionByExecutionHash

func (*MockBlockchainMockRecorder) GetExecutionsFromAddress added in v0.3.0

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

GetExecutionsFromAddress indicates an expected call of GetExecutionsFromAddress

func (*MockBlockchainMockRecorder) GetExecutionsToAddress added in v0.3.0

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

GetExecutionsToAddress indicates an expected call of GetExecutionsToAddress

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) GetReceiptByExecutionHash added in v0.3.0

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

GetReceiptByExecutionHash indicates an expected call of GetReceiptByExecutionHash

func (*MockBlockchainMockRecorder) GetTotalExecutions added in v0.3.0

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

GetTotalExecutions indicates an expected call of GetTotalExecutions

func (*MockBlockchainMockRecorder) GetTotalTransfers added in v0.2.0

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

GetTotalTransfers indicates an expected call of GetTotalTransfers

func (*MockBlockchainMockRecorder) GetTotalVotes added in v0.2.0

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

GetTotalVotes indicates an expected call of GetTotalVotes

func (*MockBlockchainMockRecorder) GetTransferByTransferHash added in v0.2.0

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

GetTransferByTransferHash indicates an expected call of GetTransferByTransferHash

func (*MockBlockchainMockRecorder) GetTransfersFromAddress added in v0.2.0

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

GetTransfersFromAddress indicates an expected call of GetTransfersFromAddress

func (*MockBlockchainMockRecorder) GetTransfersToAddress added in v0.2.0

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

GetTransfersToAddress indicates an expected call of GetTransfersToAddress

func (*MockBlockchainMockRecorder) GetVoteByVoteHash added in v0.2.0

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

GetVoteByVoteHash indicates an expected call of GetVoteByVoteHash

func (*MockBlockchainMockRecorder) GetVotesFromAddress added in v0.2.0

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

GetVotesFromAddress indicates an expected call of GetVotesFromAddress

func (*MockBlockchainMockRecorder) GetVotesToAddress added in v0.2.0

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

GetVotesToAddress indicates an expected call of GetVotesToAddress

func (*MockBlockchainMockRecorder) MintNewBlock added in v0.2.0

func (mr *MockBlockchainMockRecorder) MintNewBlock(tsf, vote, executions, address, data interface{}) *gomock.Call

MintNewBlock indicates an expected call of MintNewBlock

func (*MockBlockchainMockRecorder) MintNewDKGBlock added in v0.3.0

func (mr *MockBlockchainMockRecorder) MintNewDKGBlock(tsf, vote, executions, producer, dkgAddress, seed, data interface{}) *gomock.Call

MintNewDKGBlock indicates an expected call of MintNewDKGBlock

func (*MockBlockchainMockRecorder) MintNewDummyBlock added in v0.2.0

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

MintNewDummyBlock indicates an expected call of MintNewDummyBlock

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