Documentation ¶
Overview ¶
Package mock_blockchain is a generated GoMock package.
Index ¶
- type MockBlockchain
- func (m *MockBlockchain) AddSubscriber(arg0 blockchain.BlockCreationSubscriber) error
- func (m *MockBlockchain) Balance(addr string) (*big.Int, error)
- func (m *MockBlockchain) BlockFooterByHash(h hash.Hash256) (*block.Footer, error)
- func (m *MockBlockchain) BlockFooterByHeight(height uint64) (*block.Footer, error)
- func (m *MockBlockchain) BlockHeaderByHash(h hash.Hash256) (*block.Header, error)
- func (m *MockBlockchain) BlockHeaderByHeight(height uint64) (*block.Header, error)
- func (m *MockBlockchain) CandidatesByHeight(height uint64) ([]*state.Candidate, error)
- func (m *MockBlockchain) ChainAddress() string
- func (m *MockBlockchain) ChainID() uint32
- func (m *MockBlockchain) CommitBlock(blk *block.Block) error
- func (m *MockBlockchain) CreateState(addr string, init *big.Int) (*state.Account, error)
- func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
- func (m *MockBlockchain) ExecuteContractRead(caller address.Address, ex *action.Execution) (*action.Receipt, error)
- func (m *MockBlockchain) GenesisTimestamp() int64
- func (m *MockBlockchain) GetActionByActionHash(h hash.Hash256) (action.SealedEnvelope, error)
- func (m *MockBlockchain) GetActionCountByAddress(address string) (uint64, error)
- func (m *MockBlockchain) GetActionsFromAddress(address string) ([]hash.Hash256, error)
- func (m *MockBlockchain) GetActionsToAddress(address string) ([]hash.Hash256, error)
- func (m *MockBlockchain) GetBlockByHash(h hash.Hash256) (*block.Block, error)
- func (m *MockBlockchain) GetBlockByHeight(height uint64) (*block.Block, error)
- func (m *MockBlockchain) GetBlockHashByActionHash(h hash.Hash256) (hash.Hash256, error)
- func (m *MockBlockchain) GetFactory() factory.Factory
- func (m *MockBlockchain) GetHashByHeight(height uint64) (hash.Hash256, error)
- func (m *MockBlockchain) GetHeightByHash(h hash.Hash256) (uint64, error)
- func (m *MockBlockchain) GetReceiptByActionHash(h hash.Hash256) (*action.Receipt, error)
- func (m *MockBlockchain) GetTotalActions() (uint64, error)
- func (m *MockBlockchain) MintNewBlock(actionMap map[string][]action.SealedEnvelope, timestamp time.Time) (*block.Block, error)
- func (m *MockBlockchain) Nonce(addr string) (uint64, error)
- func (m *MockBlockchain) ProductivityByEpoch(epochNum uint64) (uint64, map[string]uint64, error)
- func (m *MockBlockchain) RecoverChainAndState(targetHeight uint64) error
- func (m *MockBlockchain) RemoveSubscriber(arg0 blockchain.BlockCreationSubscriber) error
- func (m *MockBlockchain) SetValidator(val blockchain.Validator)
- func (m *MockBlockchain) Start(arg0 context.Context) error
- func (m *MockBlockchain) StateByAddr(address string) (*state.Account, error)
- func (m *MockBlockchain) Stop(arg0 context.Context) error
- func (m *MockBlockchain) TipHash() hash.Hash256
- func (m *MockBlockchain) TipHeight() uint64
- func (m *MockBlockchain) ValidateBlock(blk *block.Block) error
- func (m *MockBlockchain) Validator() blockchain.Validator
- type MockBlockchainMockRecorder
- func (mr *MockBlockchainMockRecorder) AddSubscriber(arg0 interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Balance(addr interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) BlockFooterByHash(h interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) BlockFooterByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) BlockHeaderByHash(h interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) BlockHeaderByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) CandidatesByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) ChainAddress() *gomock.Call
- func (mr *MockBlockchainMockRecorder) ChainID() *gomock.Call
- func (mr *MockBlockchainMockRecorder) CommitBlock(blk interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) CreateState(addr, init interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) ExecuteContractRead(caller, ex interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GenesisTimestamp() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetActionByActionHash(h interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetActionCountByAddress(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetActionsFromAddress(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetActionsToAddress(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockByHash(h interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockHashByActionHash(h interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetFactory() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetHashByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetHeightByHash(h interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetReceiptByActionHash(h interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTotalActions() *gomock.Call
- func (mr *MockBlockchainMockRecorder) MintNewBlock(actionMap, timestamp interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Nonce(addr interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) ProductivityByEpoch(epochNum interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) RecoverChainAndState(targetHeight interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) RemoveSubscriber(arg0 interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) SetValidator(val interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) StateByAddr(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Stop(arg0 interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) TipHash() *gomock.Call
- func (mr *MockBlockchainMockRecorder) TipHeight() *gomock.Call
- func (mr *MockBlockchainMockRecorder) ValidateBlock(blk interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Validator() *gomock.Call
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) AddSubscriber ¶
func (m *MockBlockchain) AddSubscriber(arg0 blockchain.BlockCreationSubscriber) error
AddSubscriber mocks base method
func (*MockBlockchain) Balance ¶
func (m *MockBlockchain) Balance(addr string) (*big.Int, error)
Balance mocks base method
func (*MockBlockchain) BlockFooterByHash ¶
BlockFooterByHash mocks base method
func (*MockBlockchain) BlockFooterByHeight ¶
func (m *MockBlockchain) BlockFooterByHeight(height uint64) (*block.Footer, error)
BlockFooterByHeight mocks base method
func (*MockBlockchain) BlockHeaderByHash ¶
BlockHeaderByHash mocks base method
func (*MockBlockchain) BlockHeaderByHeight ¶
func (m *MockBlockchain) BlockHeaderByHeight(height uint64) (*block.Header, error)
BlockHeaderByHeight 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 *block.Block) error
CommitBlock mocks base method
func (*MockBlockchain) CreateState ¶
CreateState mocks base method
func (*MockBlockchain) EXPECT ¶
func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockchain) ExecuteContractRead ¶
func (m *MockBlockchain) ExecuteContractRead(caller address.Address, ex *action.Execution) (*action.Receipt, error)
ExecuteContractRead mocks base method
func (*MockBlockchain) GenesisTimestamp ¶
func (m *MockBlockchain) GenesisTimestamp() int64
GenesisTimestamp mocks base method
func (*MockBlockchain) GetActionByActionHash ¶
func (m *MockBlockchain) GetActionByActionHash(h hash.Hash256) (action.SealedEnvelope, error)
GetActionByActionHash mocks base method
func (*MockBlockchain) GetActionCountByAddress ¶
func (m *MockBlockchain) GetActionCountByAddress(address string) (uint64, error)
GetActionCountByAddress mocks base method
func (*MockBlockchain) GetActionsFromAddress ¶
func (m *MockBlockchain) GetActionsFromAddress(address string) ([]hash.Hash256, error)
GetActionsFromAddress mocks base method
func (*MockBlockchain) GetActionsToAddress ¶
func (m *MockBlockchain) GetActionsToAddress(address string) ([]hash.Hash256, error)
GetActionsToAddress mocks base method
func (*MockBlockchain) GetBlockByHash ¶
GetBlockByHash mocks base method
func (*MockBlockchain) GetBlockByHeight ¶
func (m *MockBlockchain) GetBlockByHeight(height uint64) (*block.Block, error)
GetBlockByHeight mocks base method
func (*MockBlockchain) GetBlockHashByActionHash ¶
GetBlockHashByActionHash mocks base method
func (*MockBlockchain) GetFactory ¶
func (m *MockBlockchain) GetFactory() factory.Factory
GetFactory mocks base method
func (*MockBlockchain) GetHashByHeight ¶
func (m *MockBlockchain) GetHashByHeight(height uint64) (hash.Hash256, error)
GetHashByHeight mocks base method
func (*MockBlockchain) GetHeightByHash ¶
func (m *MockBlockchain) GetHeightByHash(h hash.Hash256) (uint64, error)
GetHeightByHash mocks base method
func (*MockBlockchain) GetReceiptByActionHash ¶
GetReceiptByActionHash mocks base method
func (*MockBlockchain) GetTotalActions ¶
func (m *MockBlockchain) GetTotalActions() (uint64, error)
GetTotalActions mocks base method
func (*MockBlockchain) MintNewBlock ¶
func (m *MockBlockchain) MintNewBlock(actionMap map[string][]action.SealedEnvelope, timestamp time.Time) (*block.Block, error)
MintNewBlock mocks base method
func (*MockBlockchain) Nonce ¶
func (m *MockBlockchain) Nonce(addr string) (uint64, error)
Nonce mocks base method
func (*MockBlockchain) ProductivityByEpoch ¶
ProductivityByEpoch mocks base method
func (*MockBlockchain) RecoverChainAndState ¶
func (m *MockBlockchain) RecoverChainAndState(targetHeight uint64) error
RecoverChainAndState mocks base method
func (*MockBlockchain) RemoveSubscriber ¶
func (m *MockBlockchain) RemoveSubscriber(arg0 blockchain.BlockCreationSubscriber) error
RemoveSubscriber 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) TipHash ¶
func (m *MockBlockchain) TipHash() hash.Hash256
TipHash mocks base method
func (*MockBlockchain) TipHeight ¶
func (m *MockBlockchain) TipHeight() uint64
TipHeight mocks base method
func (*MockBlockchain) ValidateBlock ¶
func (m *MockBlockchain) ValidateBlock(blk *block.Block) 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) AddSubscriber ¶
func (mr *MockBlockchainMockRecorder) AddSubscriber(arg0 interface{}) *gomock.Call
AddSubscriber indicates an expected call of AddSubscriber
func (*MockBlockchainMockRecorder) Balance ¶
func (mr *MockBlockchainMockRecorder) Balance(addr interface{}) *gomock.Call
Balance indicates an expected call of Balance
func (*MockBlockchainMockRecorder) BlockFooterByHash ¶
func (mr *MockBlockchainMockRecorder) BlockFooterByHash(h interface{}) *gomock.Call
BlockFooterByHash indicates an expected call of BlockFooterByHash
func (*MockBlockchainMockRecorder) BlockFooterByHeight ¶
func (mr *MockBlockchainMockRecorder) BlockFooterByHeight(height interface{}) *gomock.Call
BlockFooterByHeight indicates an expected call of BlockFooterByHeight
func (*MockBlockchainMockRecorder) BlockHeaderByHash ¶
func (mr *MockBlockchainMockRecorder) BlockHeaderByHash(h interface{}) *gomock.Call
BlockHeaderByHash indicates an expected call of BlockHeaderByHash
func (*MockBlockchainMockRecorder) BlockHeaderByHeight ¶
func (mr *MockBlockchainMockRecorder) BlockHeaderByHeight(height interface{}) *gomock.Call
BlockHeaderByHeight indicates an expected call of BlockHeaderByHeight
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(caller, ex interface{}) *gomock.Call
ExecuteContractRead indicates an expected call of ExecuteContractRead
func (*MockBlockchainMockRecorder) GenesisTimestamp ¶
func (mr *MockBlockchainMockRecorder) GenesisTimestamp() *gomock.Call
GenesisTimestamp indicates an expected call of GenesisTimestamp
func (*MockBlockchainMockRecorder) GetActionByActionHash ¶
func (mr *MockBlockchainMockRecorder) GetActionByActionHash(h interface{}) *gomock.Call
GetActionByActionHash indicates an expected call of GetActionByActionHash
func (*MockBlockchainMockRecorder) GetActionCountByAddress ¶
func (mr *MockBlockchainMockRecorder) GetActionCountByAddress(address interface{}) *gomock.Call
GetActionCountByAddress indicates an expected call of GetActionCountByAddress
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) 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) GetReceiptByActionHash ¶
func (mr *MockBlockchainMockRecorder) GetReceiptByActionHash(h interface{}) *gomock.Call
GetReceiptByActionHash indicates an expected call of GetReceiptByActionHash
func (*MockBlockchainMockRecorder) GetTotalActions ¶
func (mr *MockBlockchainMockRecorder) GetTotalActions() *gomock.Call
GetTotalActions indicates an expected call of GetTotalActions
func (*MockBlockchainMockRecorder) MintNewBlock ¶
func (mr *MockBlockchainMockRecorder) MintNewBlock(actionMap, timestamp interface{}) *gomock.Call
MintNewBlock indicates an expected call of MintNewBlock
func (*MockBlockchainMockRecorder) Nonce ¶
func (mr *MockBlockchainMockRecorder) Nonce(addr interface{}) *gomock.Call
Nonce indicates an expected call of Nonce
func (*MockBlockchainMockRecorder) ProductivityByEpoch ¶
func (mr *MockBlockchainMockRecorder) ProductivityByEpoch(epochNum interface{}) *gomock.Call
ProductivityByEpoch indicates an expected call of ProductivityByEpoch
func (*MockBlockchainMockRecorder) RecoverChainAndState ¶
func (mr *MockBlockchainMockRecorder) RecoverChainAndState(targetHeight interface{}) *gomock.Call
RecoverChainAndState indicates an expected call of RecoverChainAndState
func (*MockBlockchainMockRecorder) RemoveSubscriber ¶
func (mr *MockBlockchainMockRecorder) RemoveSubscriber(arg0 interface{}) *gomock.Call
RemoveSubscriber indicates an expected call of RemoveSubscriber
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) 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) ValidateBlock ¶
func (mr *MockBlockchainMockRecorder) ValidateBlock(blk 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