mock_explorer

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_explorer is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExplorer

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

MockExplorer is a mock of Explorer interface

func NewMockExplorer

func NewMockExplorer(ctrl *gomock.Controller) *MockExplorer

NewMockExplorer creates a new mock instance

func (*MockExplorer) CreateDeposit

CreateDeposit mocks base method

func (*MockExplorer) EXPECT

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

func (*MockExplorer) EstimateGasForSmartContract added in v0.4.4

func (m *MockExplorer) EstimateGasForSmartContract(request explorer.Execution) (int64, error)

EstimateGasForSmartContract mocks base method

func (*MockExplorer) EstimateGasForTransfer added in v0.4.4

func (m *MockExplorer) EstimateGasForTransfer(request explorer.SendTransferRequest) (int64, error)

EstimateGasForTransfer mocks base method

func (*MockExplorer) EstimateGasForVote added in v0.4.4

func (m *MockExplorer) EstimateGasForVote() (int64, error)

EstimateGasForVote mocks base method

func (*MockExplorer) GetAddressBalance

func (m *MockExplorer) GetAddressBalance(address string) (string, error)

GetAddressBalance mocks base method

func (*MockExplorer) GetAddressDetails

func (m *MockExplorer) GetAddressDetails(address string) (explorer.AddressDetails, error)

GetAddressDetails mocks base method

func (*MockExplorer) GetBlockByID

func (m *MockExplorer) GetBlockByID(blkID string) (explorer.Block, error)

GetBlockByID mocks base method

func (*MockExplorer) GetBlockOrActionByHash

func (m *MockExplorer) GetBlockOrActionByHash(hashStr string) (explorer.GetBlkOrActResponse, error)

GetBlockOrActionByHash mocks base method

func (*MockExplorer) GetBlockchainHeight

func (m *MockExplorer) GetBlockchainHeight() (int64, error)

GetBlockchainHeight mocks base method

func (*MockExplorer) GetCandidateMetrics

func (m *MockExplorer) GetCandidateMetrics() (explorer.CandidateMetrics, error)

GetCandidateMetrics mocks base method

func (*MockExplorer) GetCandidateMetricsByHeight

func (m *MockExplorer) GetCandidateMetricsByHeight(h int64) (explorer.CandidateMetrics, error)

GetCandidateMetricsByHeight mocks base method

func (*MockExplorer) GetCoinStatistic

func (m *MockExplorer) GetCoinStatistic() (explorer.CoinStatistic, error)

GetCoinStatistic mocks base method

func (*MockExplorer) GetConsensusMetrics

func (m *MockExplorer) GetConsensusMetrics() (explorer.ConsensusMetrics, error)

GetConsensusMetrics mocks base method

func (*MockExplorer) GetCreateDeposit

func (m *MockExplorer) GetCreateDeposit(createDepositID string) (explorer.CreateDeposit, error)

GetCreateDeposit mocks base method

func (*MockExplorer) GetCreateDepositsByAddress

func (m *MockExplorer) GetCreateDepositsByAddress(address string, offset, limit int64) ([]explorer.CreateDeposit, error)

GetCreateDepositsByAddress mocks base method

func (*MockExplorer) GetDeposits

func (m *MockExplorer) GetDeposits(subChainID, offset, limit int64) ([]explorer.Deposit, error)

GetDeposits mocks base method

func (*MockExplorer) GetExecutionByID

func (m *MockExplorer) GetExecutionByID(executionID string) (explorer.Execution, error)

GetExecutionByID mocks base method

func (*MockExplorer) GetExecutionsByAddress

func (m *MockExplorer) GetExecutionsByAddress(address string, offset, limit int64) ([]explorer.Execution, error)

GetExecutionsByAddress mocks base method

func (*MockExplorer) GetExecutionsByBlockID

func (m *MockExplorer) GetExecutionsByBlockID(blkID string, offset, limit int64) ([]explorer.Execution, error)

GetExecutionsByBlockID mocks base method

func (*MockExplorer) GetLastBlocksByRange

func (m *MockExplorer) GetLastBlocksByRange(offset, limit int64) ([]explorer.Block, error)

GetLastBlocksByRange mocks base method

func (*MockExplorer) GetLastExecutionsByRange

func (m *MockExplorer) GetLastExecutionsByRange(startBlockHeight, offset, limit int64) ([]explorer.Execution, error)

GetLastExecutionsByRange mocks base method

func (*MockExplorer) GetLastTransfersByRange

func (m *MockExplorer) GetLastTransfersByRange(startBlockHeight, offset, limit int64, showCoinBase bool) ([]explorer.Transfer, error)

GetLastTransfersByRange mocks base method

func (*MockExplorer) GetLastVotesByRange

func (m *MockExplorer) GetLastVotesByRange(startBlockHeight, offset, limit int64) ([]explorer.Vote, error)

GetLastVotesByRange mocks base method

func (*MockExplorer) GetPeers

func (m *MockExplorer) GetPeers() (explorer.GetPeersResponse, error)

GetPeers mocks base method

func (*MockExplorer) GetReceiptByActionID added in v0.4.4

func (m *MockExplorer) GetReceiptByActionID(id string) (explorer.Receipt, error)

GetReceiptByActionID mocks base method

func (*MockExplorer) GetReceiptByExecutionID

func (m *MockExplorer) GetReceiptByExecutionID(id string) (explorer.Receipt, error)

GetReceiptByExecutionID mocks base method

func (*MockExplorer) GetSettleDeposit

func (m *MockExplorer) GetSettleDeposit(settleDepositID string) (explorer.SettleDeposit, error)

GetSettleDeposit mocks base method

func (*MockExplorer) GetSettleDepositsByAddress

func (m *MockExplorer) GetSettleDepositsByAddress(address string, offset, limit int64) ([]explorer.SettleDeposit, error)

GetSettleDepositsByAddress mocks base method

func (*MockExplorer) GetStateRootHash added in v0.4.4

func (m *MockExplorer) GetStateRootHash(blockHeight int64) (string, error)

GetStateRootHash mocks base method

func (*MockExplorer) GetTransferByID

func (m *MockExplorer) GetTransferByID(transferID string) (explorer.Transfer, error)

GetTransferByID mocks base method

func (*MockExplorer) GetTransfersByAddress

func (m *MockExplorer) GetTransfersByAddress(address string, offset, limit int64) ([]explorer.Transfer, error)

GetTransfersByAddress mocks base method

func (*MockExplorer) GetTransfersByBlockID

func (m *MockExplorer) GetTransfersByBlockID(blkID string, offset, limit int64) ([]explorer.Transfer, error)

GetTransfersByBlockID mocks base method

func (*MockExplorer) GetUnconfirmedExecutionsByAddress

func (m *MockExplorer) GetUnconfirmedExecutionsByAddress(address string, offset, limit int64) ([]explorer.Execution, error)

GetUnconfirmedExecutionsByAddress mocks base method

func (*MockExplorer) GetUnconfirmedTransfersByAddress

func (m *MockExplorer) GetUnconfirmedTransfersByAddress(address string, offset, limit int64) ([]explorer.Transfer, error)

GetUnconfirmedTransfersByAddress mocks base method

func (*MockExplorer) GetUnconfirmedVotesByAddress

func (m *MockExplorer) GetUnconfirmedVotesByAddress(address string, offset, limit int64) ([]explorer.Vote, error)

GetUnconfirmedVotesByAddress mocks base method

func (*MockExplorer) GetVoteByID

func (m *MockExplorer) GetVoteByID(voteID string) (explorer.Vote, error)

GetVoteByID mocks base method

func (*MockExplorer) GetVotesByAddress

func (m *MockExplorer) GetVotesByAddress(address string, offset, limit int64) ([]explorer.Vote, error)

GetVotesByAddress mocks base method

func (*MockExplorer) GetVotesByBlockID

func (m *MockExplorer) GetVotesByBlockID(blkID string, offset, limit int64) ([]explorer.Vote, error)

GetVotesByBlockID mocks base method

func (*MockExplorer) PutSubChainBlock

PutSubChainBlock mocks base method

func (*MockExplorer) ReadExecutionState

func (m *MockExplorer) ReadExecutionState(request explorer.Execution) (string, error)

ReadExecutionState mocks base method

func (*MockExplorer) SendAction

SendAction mocks base method

func (*MockExplorer) SendSmartContract

func (m *MockExplorer) SendSmartContract(request explorer.Execution) (explorer.SendSmartContractResponse, error)

SendSmartContract mocks base method

func (*MockExplorer) SendTransfer

SendTransfer mocks base method

func (*MockExplorer) SendVote

SendVote mocks base method

func (*MockExplorer) SettleDeposit

SettleDeposit mocks base method

func (*MockExplorer) SuggestGasPrice added in v0.4.4

func (m *MockExplorer) SuggestGasPrice() (int64, error)

SuggestGasPrice mocks base method

type MockExplorerMockRecorder

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

MockExplorerMockRecorder is the mock recorder for MockExplorer

func (*MockExplorerMockRecorder) CreateDeposit

func (mr *MockExplorerMockRecorder) CreateDeposit(request interface{}) *gomock.Call

CreateDeposit indicates an expected call of CreateDeposit

func (*MockExplorerMockRecorder) EstimateGasForSmartContract added in v0.4.4

func (mr *MockExplorerMockRecorder) EstimateGasForSmartContract(request interface{}) *gomock.Call

EstimateGasForSmartContract indicates an expected call of EstimateGasForSmartContract

func (*MockExplorerMockRecorder) EstimateGasForTransfer added in v0.4.4

func (mr *MockExplorerMockRecorder) EstimateGasForTransfer(request interface{}) *gomock.Call

EstimateGasForTransfer indicates an expected call of EstimateGasForTransfer

func (*MockExplorerMockRecorder) EstimateGasForVote added in v0.4.4

func (mr *MockExplorerMockRecorder) EstimateGasForVote() *gomock.Call

EstimateGasForVote indicates an expected call of EstimateGasForVote

func (*MockExplorerMockRecorder) GetAddressBalance

func (mr *MockExplorerMockRecorder) GetAddressBalance(address interface{}) *gomock.Call

GetAddressBalance indicates an expected call of GetAddressBalance

func (*MockExplorerMockRecorder) GetAddressDetails

func (mr *MockExplorerMockRecorder) GetAddressDetails(address interface{}) *gomock.Call

GetAddressDetails indicates an expected call of GetAddressDetails

func (*MockExplorerMockRecorder) GetBlockByID

func (mr *MockExplorerMockRecorder) GetBlockByID(blkID interface{}) *gomock.Call

GetBlockByID indicates an expected call of GetBlockByID

func (*MockExplorerMockRecorder) GetBlockOrActionByHash

func (mr *MockExplorerMockRecorder) GetBlockOrActionByHash(hashStr interface{}) *gomock.Call

GetBlockOrActionByHash indicates an expected call of GetBlockOrActionByHash

func (*MockExplorerMockRecorder) GetBlockchainHeight

func (mr *MockExplorerMockRecorder) GetBlockchainHeight() *gomock.Call

GetBlockchainHeight indicates an expected call of GetBlockchainHeight

func (*MockExplorerMockRecorder) GetCandidateMetrics

func (mr *MockExplorerMockRecorder) GetCandidateMetrics() *gomock.Call

GetCandidateMetrics indicates an expected call of GetCandidateMetrics

func (*MockExplorerMockRecorder) GetCandidateMetricsByHeight

func (mr *MockExplorerMockRecorder) GetCandidateMetricsByHeight(h interface{}) *gomock.Call

GetCandidateMetricsByHeight indicates an expected call of GetCandidateMetricsByHeight

func (*MockExplorerMockRecorder) GetCoinStatistic

func (mr *MockExplorerMockRecorder) GetCoinStatistic() *gomock.Call

GetCoinStatistic indicates an expected call of GetCoinStatistic

func (*MockExplorerMockRecorder) GetConsensusMetrics

func (mr *MockExplorerMockRecorder) GetConsensusMetrics() *gomock.Call

GetConsensusMetrics indicates an expected call of GetConsensusMetrics

func (*MockExplorerMockRecorder) GetCreateDeposit

func (mr *MockExplorerMockRecorder) GetCreateDeposit(createDepositID interface{}) *gomock.Call

GetCreateDeposit indicates an expected call of GetCreateDeposit

func (*MockExplorerMockRecorder) GetCreateDepositsByAddress

func (mr *MockExplorerMockRecorder) GetCreateDepositsByAddress(address, offset, limit interface{}) *gomock.Call

GetCreateDepositsByAddress indicates an expected call of GetCreateDepositsByAddress

func (*MockExplorerMockRecorder) GetDeposits

func (mr *MockExplorerMockRecorder) GetDeposits(subChainID, offset, limit interface{}) *gomock.Call

GetDeposits indicates an expected call of GetDeposits

func (*MockExplorerMockRecorder) GetExecutionByID

func (mr *MockExplorerMockRecorder) GetExecutionByID(executionID interface{}) *gomock.Call

GetExecutionByID indicates an expected call of GetExecutionByID

func (*MockExplorerMockRecorder) GetExecutionsByAddress

func (mr *MockExplorerMockRecorder) GetExecutionsByAddress(address, offset, limit interface{}) *gomock.Call

GetExecutionsByAddress indicates an expected call of GetExecutionsByAddress

func (*MockExplorerMockRecorder) GetExecutionsByBlockID

func (mr *MockExplorerMockRecorder) GetExecutionsByBlockID(blkID, offset, limit interface{}) *gomock.Call

GetExecutionsByBlockID indicates an expected call of GetExecutionsByBlockID

func (*MockExplorerMockRecorder) GetLastBlocksByRange

func (mr *MockExplorerMockRecorder) GetLastBlocksByRange(offset, limit interface{}) *gomock.Call

GetLastBlocksByRange indicates an expected call of GetLastBlocksByRange

func (*MockExplorerMockRecorder) GetLastExecutionsByRange

func (mr *MockExplorerMockRecorder) GetLastExecutionsByRange(startBlockHeight, offset, limit interface{}) *gomock.Call

GetLastExecutionsByRange indicates an expected call of GetLastExecutionsByRange

func (*MockExplorerMockRecorder) GetLastTransfersByRange

func (mr *MockExplorerMockRecorder) GetLastTransfersByRange(startBlockHeight, offset, limit, showCoinBase interface{}) *gomock.Call

GetLastTransfersByRange indicates an expected call of GetLastTransfersByRange

func (*MockExplorerMockRecorder) GetLastVotesByRange

func (mr *MockExplorerMockRecorder) GetLastVotesByRange(startBlockHeight, offset, limit interface{}) *gomock.Call

GetLastVotesByRange indicates an expected call of GetLastVotesByRange

func (*MockExplorerMockRecorder) GetPeers

func (mr *MockExplorerMockRecorder) GetPeers() *gomock.Call

GetPeers indicates an expected call of GetPeers

func (*MockExplorerMockRecorder) GetReceiptByActionID added in v0.4.4

func (mr *MockExplorerMockRecorder) GetReceiptByActionID(id interface{}) *gomock.Call

GetReceiptByActionID indicates an expected call of GetReceiptByActionID

func (*MockExplorerMockRecorder) GetReceiptByExecutionID

func (mr *MockExplorerMockRecorder) GetReceiptByExecutionID(id interface{}) *gomock.Call

GetReceiptByExecutionID indicates an expected call of GetReceiptByExecutionID

func (*MockExplorerMockRecorder) GetSettleDeposit

func (mr *MockExplorerMockRecorder) GetSettleDeposit(settleDepositID interface{}) *gomock.Call

GetSettleDeposit indicates an expected call of GetSettleDeposit

func (*MockExplorerMockRecorder) GetSettleDepositsByAddress

func (mr *MockExplorerMockRecorder) GetSettleDepositsByAddress(address, offset, limit interface{}) *gomock.Call

GetSettleDepositsByAddress indicates an expected call of GetSettleDepositsByAddress

func (*MockExplorerMockRecorder) GetStateRootHash added in v0.4.4

func (mr *MockExplorerMockRecorder) GetStateRootHash(blockHeight interface{}) *gomock.Call

GetStateRootHash indicates an expected call of GetStateRootHash

func (*MockExplorerMockRecorder) GetTransferByID

func (mr *MockExplorerMockRecorder) GetTransferByID(transferID interface{}) *gomock.Call

GetTransferByID indicates an expected call of GetTransferByID

func (*MockExplorerMockRecorder) GetTransfersByAddress

func (mr *MockExplorerMockRecorder) GetTransfersByAddress(address, offset, limit interface{}) *gomock.Call

GetTransfersByAddress indicates an expected call of GetTransfersByAddress

func (*MockExplorerMockRecorder) GetTransfersByBlockID

func (mr *MockExplorerMockRecorder) GetTransfersByBlockID(blkID, offset, limit interface{}) *gomock.Call

GetTransfersByBlockID indicates an expected call of GetTransfersByBlockID

func (*MockExplorerMockRecorder) GetUnconfirmedExecutionsByAddress

func (mr *MockExplorerMockRecorder) GetUnconfirmedExecutionsByAddress(address, offset, limit interface{}) *gomock.Call

GetUnconfirmedExecutionsByAddress indicates an expected call of GetUnconfirmedExecutionsByAddress

func (*MockExplorerMockRecorder) GetUnconfirmedTransfersByAddress

func (mr *MockExplorerMockRecorder) GetUnconfirmedTransfersByAddress(address, offset, limit interface{}) *gomock.Call

GetUnconfirmedTransfersByAddress indicates an expected call of GetUnconfirmedTransfersByAddress

func (*MockExplorerMockRecorder) GetUnconfirmedVotesByAddress

func (mr *MockExplorerMockRecorder) GetUnconfirmedVotesByAddress(address, offset, limit interface{}) *gomock.Call

GetUnconfirmedVotesByAddress indicates an expected call of GetUnconfirmedVotesByAddress

func (*MockExplorerMockRecorder) GetVoteByID

func (mr *MockExplorerMockRecorder) GetVoteByID(voteID interface{}) *gomock.Call

GetVoteByID indicates an expected call of GetVoteByID

func (*MockExplorerMockRecorder) GetVotesByAddress

func (mr *MockExplorerMockRecorder) GetVotesByAddress(address, offset, limit interface{}) *gomock.Call

GetVotesByAddress indicates an expected call of GetVotesByAddress

func (*MockExplorerMockRecorder) GetVotesByBlockID

func (mr *MockExplorerMockRecorder) GetVotesByBlockID(blkID, offset, limit interface{}) *gomock.Call

GetVotesByBlockID indicates an expected call of GetVotesByBlockID

func (*MockExplorerMockRecorder) PutSubChainBlock

func (mr *MockExplorerMockRecorder) PutSubChainBlock(request interface{}) *gomock.Call

PutSubChainBlock indicates an expected call of PutSubChainBlock

func (*MockExplorerMockRecorder) ReadExecutionState

func (mr *MockExplorerMockRecorder) ReadExecutionState(request interface{}) *gomock.Call

ReadExecutionState indicates an expected call of ReadExecutionState

func (*MockExplorerMockRecorder) SendAction

func (mr *MockExplorerMockRecorder) SendAction(request interface{}) *gomock.Call

SendAction indicates an expected call of SendAction

func (*MockExplorerMockRecorder) SendSmartContract

func (mr *MockExplorerMockRecorder) SendSmartContract(request interface{}) *gomock.Call

SendSmartContract indicates an expected call of SendSmartContract

func (*MockExplorerMockRecorder) SendTransfer

func (mr *MockExplorerMockRecorder) SendTransfer(request interface{}) *gomock.Call

SendTransfer indicates an expected call of SendTransfer

func (*MockExplorerMockRecorder) SendVote

func (mr *MockExplorerMockRecorder) SendVote(request interface{}) *gomock.Call

SendVote indicates an expected call of SendVote

func (*MockExplorerMockRecorder) SettleDeposit

func (mr *MockExplorerMockRecorder) SettleDeposit(request interface{}) *gomock.Call

SettleDeposit indicates an expected call of SettleDeposit

func (*MockExplorerMockRecorder) SuggestGasPrice added in v0.4.4

func (mr *MockExplorerMockRecorder) SuggestGasPrice() *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice

Jump to

Keyboard shortcuts

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