Documentation ¶
Overview ¶
Package mock_blockchain is a generated GoMock package.
Index ¶
- type MockBlockchain
- func (m *MockBlockchain) CommitBlock(blk *blockchain.Block) error
- func (m *MockBlockchain) CreateRawTransfer(nonce uint64, from *iotxaddress.Address, amount *big.Int, ...) *action.Transfer
- func (m *MockBlockchain) CreateRawVote(nonce uint64, selfPubKey, votePubKey []byte) *action.Vote
- func (m *MockBlockchain) CreateTransfer(nonce uint64, from *iotxaddress.Address, amount *big.Int, ...) (*action.Transfer, error)
- func (m *MockBlockchain) CreateVote(nonce uint64, selfPubKey, votePubKey []byte) (*action.Vote, error)
- func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
- func (m *MockBlockchain) GetBlockByHash(hash common.Hash32B) (*blockchain.Block, error)
- func (m *MockBlockchain) GetBlockByHeight(height uint64) (*blockchain.Block, error)
- func (m *MockBlockchain) GetBlockHashByTransferHash(hash common.Hash32B) (common.Hash32B, error)
- func (m *MockBlockchain) GetBlockHashByVoteHash(hash common.Hash32B) (common.Hash32B, error)
- func (m *MockBlockchain) GetHashByHeight(height uint64) (common.Hash32B, error)
- func (m *MockBlockchain) GetHeightByHash(hash common.Hash32B) (uint64, error)
- func (m *MockBlockchain) GetTotalTransfers() (uint64, error)
- func (m *MockBlockchain) GetTotalVotes() (uint64, error)
- func (m *MockBlockchain) GetTransferByTransferHash(hash common.Hash32B) (*action.Transfer, error)
- func (m *MockBlockchain) GetTransfersFromAddress(address string) ([]common.Hash32B, error)
- func (m *MockBlockchain) GetTransfersToAddress(address string) ([]common.Hash32B, error)
- func (m *MockBlockchain) GetVoteByVoteHash(hash common.Hash32B) (*action.Vote, error)
- func (m *MockBlockchain) GetVotesFromAddress(address string) ([]common.Hash32B, error)
- func (m *MockBlockchain) GetVotesToAddress(address string) ([]common.Hash32B, error)
- func (m *MockBlockchain) Init() error
- func (m *MockBlockchain) MintNewBlock(tsf []*action.Transfer, vote []*action.Vote, address *iotxaddress.Address, ...) (*blockchain.Block, error)
- func (m *MockBlockchain) MintNewDummyBlock() (*blockchain.Block, error)
- func (m *MockBlockchain) SetValidator(val blockchain.Validator)
- func (m *MockBlockchain) Start() error
- func (m *MockBlockchain) StateByAddr(address string) (*state.State, error)
- func (m *MockBlockchain) Stop() error
- func (m *MockBlockchain) TipHash() (common.Hash32B, error)
- func (m *MockBlockchain) TipHeight() (uint64, error)
- func (m *MockBlockchain) ValidateBlock(blk *blockchain.Block) error
- func (m *MockBlockchain) Validator() blockchain.Validator
- type MockBlockchainMockRecorder
- func (mr *MockBlockchainMockRecorder) CommitBlock(blk interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) CreateRawTransfer(nonce, from, amount, to interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) CreateRawVote(nonce, selfPubKey, votePubKey interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) CreateTransfer(nonce, from, amount, to interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) CreateVote(nonce, selfPubKey, votePubKey interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockHashByTransferHash(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockHashByVoteHash(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetHashByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetHeightByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTotalTransfers() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTotalVotes() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTransferByTransferHash(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTransfersFromAddress(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTransfersToAddress(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetVoteByVoteHash(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetVotesFromAddress(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetVotesToAddress(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Init() *gomock.Call
- func (mr *MockBlockchainMockRecorder) MintNewBlock(tsf, vote, address, data interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) MintNewDummyBlock() *gomock.Call
- func (mr *MockBlockchainMockRecorder) SetValidator(val interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Start() *gomock.Call
- func (mr *MockBlockchainMockRecorder) StateByAddr(address interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Stop() *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 ¶ 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) CommitBlock ¶ added in v0.2.0
func (m *MockBlockchain) CommitBlock(blk *blockchain.Block) error
CommitBlock mocks base method
func (*MockBlockchain) CreateRawTransfer ¶ added in v0.2.0
func (m *MockBlockchain) CreateRawTransfer(nonce uint64, from *iotxaddress.Address, amount *big.Int, to *iotxaddress.Address) *action.Transfer
CreateRawTransfer mocks base method
func (*MockBlockchain) CreateRawVote ¶ added in v0.2.0
func (m *MockBlockchain) CreateRawVote(nonce uint64, selfPubKey, votePubKey []byte) *action.Vote
CreateRawVote mocks base method
func (*MockBlockchain) CreateTransfer ¶ added in v0.2.0
func (m *MockBlockchain) CreateTransfer(nonce uint64, from *iotxaddress.Address, amount *big.Int, to *iotxaddress.Address) (*action.Transfer, error)
CreateTransfer mocks base method
func (*MockBlockchain) CreateVote ¶ added in v0.2.0
func (m *MockBlockchain) CreateVote(nonce uint64, selfPubKey, votePubKey []byte) (*action.Vote, error)
CreateVote mocks base method
func (*MockBlockchain) EXPECT ¶ added in v0.2.0
func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockchain) GetBlockByHash ¶ added in v0.2.0
func (m *MockBlockchain) GetBlockByHash(hash common.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) GetBlockHashByTransferHash ¶ added in v0.2.0
GetBlockHashByTransferHash mocks base method
func (*MockBlockchain) GetBlockHashByVoteHash ¶ added in v0.2.0
GetBlockHashByVoteHash mocks base method
func (*MockBlockchain) GetHashByHeight ¶ added in v0.2.0
func (m *MockBlockchain) GetHashByHeight(height uint64) (common.Hash32B, error)
GetHashByHeight mocks base method
func (*MockBlockchain) GetHeightByHash ¶ added in v0.2.0
func (m *MockBlockchain) GetHeightByHash(hash common.Hash32B) (uint64, error)
GetHeightByHash 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
GetTransferByTransferHash mocks base method
func (*MockBlockchain) GetTransfersFromAddress ¶ added in v0.2.0
func (m *MockBlockchain) GetTransfersFromAddress(address string) ([]common.Hash32B, error)
GetTransfersFromAddress mocks base method
func (*MockBlockchain) GetTransfersToAddress ¶ added in v0.2.0
func (m *MockBlockchain) GetTransfersToAddress(address string) ([]common.Hash32B, error)
GetTransfersToAddress mocks base method
func (*MockBlockchain) GetVoteByVoteHash ¶ added in v0.2.0
GetVoteByVoteHash mocks base method
func (*MockBlockchain) GetVotesFromAddress ¶ added in v0.2.0
func (m *MockBlockchain) GetVotesFromAddress(address string) ([]common.Hash32B, error)
GetVotesFromAddress mocks base method
func (*MockBlockchain) GetVotesToAddress ¶ added in v0.2.0
func (m *MockBlockchain) GetVotesToAddress(address string) ([]common.Hash32B, error)
GetVotesToAddress mocks base method
func (*MockBlockchain) Init ¶ added in v0.2.0
func (m *MockBlockchain) Init() error
Init mocks base method
func (*MockBlockchain) MintNewBlock ¶ added in v0.2.0
func (m *MockBlockchain) MintNewBlock(tsf []*action.Transfer, vote []*action.Vote, address *iotxaddress.Address, data string) (*blockchain.Block, error)
MintNewBlock mocks base method
func (*MockBlockchain) MintNewDummyBlock ¶ added in v0.2.0
func (m *MockBlockchain) MintNewDummyBlock() (*blockchain.Block, error)
MintNewDummyBlock 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() 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() error
Stop mocks base method
func (*MockBlockchain) TipHash ¶ added in v0.2.0
func (m *MockBlockchain) TipHash() (common.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) CommitBlock ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) CommitBlock(blk interface{}) *gomock.Call
CommitBlock indicates an expected call of CommitBlock
func (*MockBlockchainMockRecorder) CreateRawTransfer ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) CreateRawTransfer(nonce, from, amount, to interface{}) *gomock.Call
CreateRawTransfer indicates an expected call of CreateRawTransfer
func (*MockBlockchainMockRecorder) CreateRawVote ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) CreateRawVote(nonce, selfPubKey, votePubKey interface{}) *gomock.Call
CreateRawVote indicates an expected call of CreateRawVote
func (*MockBlockchainMockRecorder) CreateTransfer ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) CreateTransfer(nonce, from, amount, to interface{}) *gomock.Call
CreateTransfer indicates an expected call of CreateTransfer
func (*MockBlockchainMockRecorder) CreateVote ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) CreateVote(nonce, selfPubKey, votePubKey interface{}) *gomock.Call
CreateVote indicates an expected call of CreateVote
func (*MockBlockchainMockRecorder) GetBlockByHash ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) GetBlockByHash(hash 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) GetBlockHashByTransferHash ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) GetBlockHashByTransferHash(hash interface{}) *gomock.Call
GetBlockHashByTransferHash indicates an expected call of GetBlockHashByTransferHash
func (*MockBlockchainMockRecorder) GetBlockHashByVoteHash ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) GetBlockHashByVoteHash(hash interface{}) *gomock.Call
GetBlockHashByVoteHash indicates an expected call of GetBlockHashByVoteHash
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(hash interface{}) *gomock.Call
GetHeightByHash indicates an expected call of GetHeightByHash
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(hash 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(hash 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) Init ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockBlockchainMockRecorder) MintNewBlock ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) MintNewBlock(tsf, vote, address, data interface{}) *gomock.Call
MintNewBlock indicates an expected call of MintNewBlock
func (*MockBlockchainMockRecorder) MintNewDummyBlock ¶ added in v0.2.0
func (mr *MockBlockchainMockRecorder) MintNewDummyBlock() *gomock.Call
MintNewDummyBlock indicates an expected call of MintNewDummyBlock
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() *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() *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