mock_blockchain

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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

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

MockBlockchain is a mock of Blockchain interface

func NewMockBlockchain

func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain

NewMockBlockchain creates a new mock instance

func (*MockBlockchain) Balance

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

Balance mocks base method

func (*MockBlockchain) CandidatesByHeight

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

CandidatesByHeight mocks base method

func (*MockBlockchain) ChainAddress

func (m *MockBlockchain) ChainAddress() string

ChainAddress mocks base method

func (*MockBlockchain) ChainID

func (m *MockBlockchain) ChainID() uint32

ChainID mocks base method

func (*MockBlockchain) CommitBlock

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

CommitBlock mocks base method

func (*MockBlockchain) CreateState

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

CreateState mocks base method

func (*MockBlockchain) EXPECT

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

func (*MockBlockchain) ExecuteContractRead

func (m *MockBlockchain) ExecuteContractRead(arg0 *action.Execution) ([]byte, error)

ExecuteContractRead mocks base method

func (*MockBlockchain) GetActionByActionHash

func (m *MockBlockchain) GetActionByActionHash(h hash.Hash32B) (action.Action, error)

GetActionByActionHash mocks base method

func (*MockBlockchain) GetActionsFromAddress

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

GetActionsFromAddress mocks base method

func (*MockBlockchain) GetActionsToAddress

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

GetActionsToAddress mocks base method

func (*MockBlockchain) GetBlockByHash

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

GetBlockByHash mocks base method

func (*MockBlockchain) GetBlockByHeight

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

GetBlockByHeight mocks base method

func (*MockBlockchain) GetBlockHashByActionHash

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

GetBlockHashByActionHash mocks base method

func (*MockBlockchain) GetBlockHashByExecutionHash

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

GetBlockHashByExecutionHash mocks base method

func (*MockBlockchain) GetBlockHashByTransferHash

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

GetBlockHashByTransferHash mocks base method

func (*MockBlockchain) GetBlockHashByVoteHash

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

GetBlockHashByVoteHash mocks base method

func (*MockBlockchain) GetExecutionByExecutionHash

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

GetExecutionByExecutionHash mocks base method

func (*MockBlockchain) GetExecutionsFromAddress

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

GetExecutionsFromAddress mocks base method

func (*MockBlockchain) GetExecutionsToAddress

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

GetExecutionsToAddress mocks base method

func (*MockBlockchain) GetFactory

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

GetFactory mocks base method

func (*MockBlockchain) GetHashByHeight

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

GetHashByHeight mocks base method

func (*MockBlockchain) GetHeightByHash

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

GetHeightByHash mocks base method

func (*MockBlockchain) GetReceiptByExecutionHash

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

GetReceiptByExecutionHash mocks base method

func (*MockBlockchain) GetTotalActions

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

GetTotalActions mocks base method

func (*MockBlockchain) GetTotalExecutions

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

GetTotalExecutions mocks base method

func (*MockBlockchain) GetTotalTransfers

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

GetTotalTransfers mocks base method

func (*MockBlockchain) GetTotalVotes

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

GetTotalVotes mocks base method

func (*MockBlockchain) GetTransferByTransferHash

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

GetTransferByTransferHash mocks base method

func (*MockBlockchain) GetTransfersFromAddress

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

GetTransfersFromAddress mocks base method

func (*MockBlockchain) GetTransfersToAddress

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

GetTransfersToAddress mocks base method

func (*MockBlockchain) GetVoteByVoteHash

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

GetVoteByVoteHash mocks base method

func (*MockBlockchain) GetVotesFromAddress

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

GetVotesFromAddress mocks base method

func (*MockBlockchain) GetVotesToAddress

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

GetVotesToAddress mocks base method

func (*MockBlockchain) MintNewBlock

func (m *MockBlockchain) MintNewBlock(actions []action.Action, producer *iotxaddress.Address, dkgAddress *iotxaddress.DKGAddress, seed []byte, data string) (*blockchain.Block, error)

MintNewBlock mocks base method

func (*MockBlockchain) MintNewSecretBlock

func (m *MockBlockchain) MintNewSecretBlock(secretProposals []*action.SecretProposal, secretWitness *action.SecretWitness, producer *iotxaddress.Address) (*blockchain.Block, error)

MintNewSecretBlock mocks base method

func (*MockBlockchain) Nonce

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

Nonce mocks base method

func (*MockBlockchain) SetValidator

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

SetValidator mocks base method

func (*MockBlockchain) Start

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

Start mocks base method

func (*MockBlockchain) StateByAddr

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

StateByAddr mocks base method

func (*MockBlockchain) Stop

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

Stop mocks base method

func (*MockBlockchain) SubscribeBlockCreation

func (m *MockBlockchain) SubscribeBlockCreation(ch chan *blockchain.Block) error

SubscribeBlockCreation mocks base method

func (*MockBlockchain) TipHash

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

TipHash mocks base method

func (*MockBlockchain) TipHeight

func (m *MockBlockchain) TipHeight() uint64

TipHeight mocks base method

func (*MockBlockchain) UnsubscribeBlockCreation

func (m *MockBlockchain) UnsubscribeBlockCreation(ch chan *blockchain.Block) error

UnsubscribeBlockCreation mocks base method

func (*MockBlockchain) ValidateBlock

func (m *MockBlockchain) ValidateBlock(blk *blockchain.Block, containCoinbase bool) error

ValidateBlock mocks base method

func (*MockBlockchain) Validator

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

Validator mocks base method

type MockBlockchainMockRecorder

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

MockBlockchainMockRecorder is the mock recorder for MockBlockchain

func (*MockBlockchainMockRecorder) Balance

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

Balance indicates an expected call of Balance

func (*MockBlockchainMockRecorder) CandidatesByHeight

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

CandidatesByHeight indicates an expected call of CandidatesByHeight

func (*MockBlockchainMockRecorder) ChainAddress

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

ChainAddress indicates an expected call of ChainAddress

func (*MockBlockchainMockRecorder) ChainID

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

ChainID indicates an expected call of ChainID

func (*MockBlockchainMockRecorder) CommitBlock

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

CommitBlock indicates an expected call of CommitBlock

func (*MockBlockchainMockRecorder) CreateState

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

CreateState indicates an expected call of CreateState

func (*MockBlockchainMockRecorder) ExecuteContractRead

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

ExecuteContractRead indicates an expected call of ExecuteContractRead

func (*MockBlockchainMockRecorder) GetActionByActionHash

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

GetActionByActionHash indicates an expected call of GetActionByActionHash

func (*MockBlockchainMockRecorder) GetActionsFromAddress

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

GetActionsFromAddress indicates an expected call of GetActionsFromAddress

func (*MockBlockchainMockRecorder) GetActionsToAddress

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

GetActionsToAddress indicates an expected call of GetActionsToAddress

func (*MockBlockchainMockRecorder) GetBlockByHash

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

GetBlockByHash indicates an expected call of GetBlockByHash

func (*MockBlockchainMockRecorder) GetBlockByHeight

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

GetBlockByHeight indicates an expected call of GetBlockByHeight

func (*MockBlockchainMockRecorder) GetBlockHashByActionHash

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

GetBlockHashByActionHash indicates an expected call of GetBlockHashByActionHash

func (*MockBlockchainMockRecorder) GetBlockHashByExecutionHash

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

GetBlockHashByExecutionHash indicates an expected call of GetBlockHashByExecutionHash

func (*MockBlockchainMockRecorder) GetBlockHashByTransferHash

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

GetBlockHashByTransferHash indicates an expected call of GetBlockHashByTransferHash

func (*MockBlockchainMockRecorder) GetBlockHashByVoteHash

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

GetBlockHashByVoteHash indicates an expected call of GetBlockHashByVoteHash

func (*MockBlockchainMockRecorder) GetExecutionByExecutionHash

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

GetExecutionByExecutionHash indicates an expected call of GetExecutionByExecutionHash

func (*MockBlockchainMockRecorder) GetExecutionsFromAddress

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

GetExecutionsFromAddress indicates an expected call of GetExecutionsFromAddress

func (*MockBlockchainMockRecorder) GetExecutionsToAddress

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

GetExecutionsToAddress indicates an expected call of GetExecutionsToAddress

func (*MockBlockchainMockRecorder) GetFactory

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

GetFactory indicates an expected call of GetFactory

func (*MockBlockchainMockRecorder) GetHashByHeight

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

GetHashByHeight indicates an expected call of GetHashByHeight

func (*MockBlockchainMockRecorder) GetHeightByHash

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

GetHeightByHash indicates an expected call of GetHeightByHash

func (*MockBlockchainMockRecorder) GetReceiptByExecutionHash

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

GetReceiptByExecutionHash indicates an expected call of GetReceiptByExecutionHash

func (*MockBlockchainMockRecorder) GetTotalActions

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

GetTotalActions indicates an expected call of GetTotalActions

func (*MockBlockchainMockRecorder) GetTotalExecutions

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

GetTotalExecutions indicates an expected call of GetTotalExecutions

func (*MockBlockchainMockRecorder) GetTotalTransfers

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

GetTotalTransfers indicates an expected call of GetTotalTransfers

func (*MockBlockchainMockRecorder) GetTotalVotes

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

GetTotalVotes indicates an expected call of GetTotalVotes

func (*MockBlockchainMockRecorder) GetTransferByTransferHash

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

GetTransferByTransferHash indicates an expected call of GetTransferByTransferHash

func (*MockBlockchainMockRecorder) GetTransfersFromAddress

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

GetTransfersFromAddress indicates an expected call of GetTransfersFromAddress

func (*MockBlockchainMockRecorder) GetTransfersToAddress

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

GetTransfersToAddress indicates an expected call of GetTransfersToAddress

func (*MockBlockchainMockRecorder) GetVoteByVoteHash

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

GetVoteByVoteHash indicates an expected call of GetVoteByVoteHash

func (*MockBlockchainMockRecorder) GetVotesFromAddress

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

GetVotesFromAddress indicates an expected call of GetVotesFromAddress

func (*MockBlockchainMockRecorder) GetVotesToAddress

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

GetVotesToAddress indicates an expected call of GetVotesToAddress

func (*MockBlockchainMockRecorder) MintNewBlock

func (mr *MockBlockchainMockRecorder) MintNewBlock(actions, producer, dkgAddress, seed, data interface{}) *gomock.Call

MintNewBlock indicates an expected call of MintNewBlock

func (*MockBlockchainMockRecorder) MintNewSecretBlock

func (mr *MockBlockchainMockRecorder) MintNewSecretBlock(secretProposals, secretWitness, producer interface{}) *gomock.Call

MintNewSecretBlock indicates an expected call of MintNewSecretBlock

func (*MockBlockchainMockRecorder) Nonce

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

Nonce indicates an expected call of Nonce

func (*MockBlockchainMockRecorder) SetValidator

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

SetValidator indicates an expected call of SetValidator

func (*MockBlockchainMockRecorder) Start

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

Start indicates an expected call of Start

func (*MockBlockchainMockRecorder) StateByAddr

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

StateByAddr indicates an expected call of StateByAddr

func (*MockBlockchainMockRecorder) Stop

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

Stop indicates an expected call of Stop

func (*MockBlockchainMockRecorder) SubscribeBlockCreation

func (mr *MockBlockchainMockRecorder) SubscribeBlockCreation(ch interface{}) *gomock.Call

SubscribeBlockCreation indicates an expected call of SubscribeBlockCreation

func (*MockBlockchainMockRecorder) TipHash

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

TipHash indicates an expected call of TipHash

func (*MockBlockchainMockRecorder) TipHeight

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

TipHeight indicates an expected call of TipHeight

func (*MockBlockchainMockRecorder) UnsubscribeBlockCreation

func (mr *MockBlockchainMockRecorder) UnsubscribeBlockCreation(ch interface{}) *gomock.Call

UnsubscribeBlockCreation indicates an expected call of UnsubscribeBlockCreation

func (*MockBlockchainMockRecorder) ValidateBlock

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

ValidateBlock indicates an expected call of ValidateBlock

func (*MockBlockchainMockRecorder) Validator

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