Documentation ¶
Overview ¶
Package mock_explorer is a generated GoMock package.
Index ¶
- type MockExplorer
- func (m *MockExplorer) CreateDeposit(request explorer.CreateDepositRequest) (explorer.CreateDepositResponse, error)
- func (m *MockExplorer) EXPECT() *MockExplorerMockRecorder
- func (m *MockExplorer) EstimateGasForSmartContract(request explorer.Execution) (int64, error)
- func (m *MockExplorer) EstimateGasForTransfer(request explorer.SendTransferRequest) (int64, error)
- func (m *MockExplorer) EstimateGasForVote() (int64, error)
- func (m *MockExplorer) GetAddressBalance(address string) (string, error)
- func (m *MockExplorer) GetAddressDetails(address string) (explorer.AddressDetails, error)
- func (m *MockExplorer) GetBlockByID(blkID string) (explorer.Block, error)
- func (m *MockExplorer) GetBlockOrActionByHash(hashStr string) (explorer.GetBlkOrActResponse, error)
- func (m *MockExplorer) GetBlockchainHeight() (int64, error)
- func (m *MockExplorer) GetCandidateMetrics() (explorer.CandidateMetrics, error)
- func (m *MockExplorer) GetCandidateMetricsByHeight(h int64) (explorer.CandidateMetrics, error)
- func (m *MockExplorer) GetCoinStatistic() (explorer.CoinStatistic, error)
- func (m *MockExplorer) GetConsensusMetrics() (explorer.ConsensusMetrics, error)
- func (m *MockExplorer) GetCreateDeposit(createDepositID string) (explorer.CreateDeposit, error)
- func (m *MockExplorer) GetCreateDepositsByAddress(address string, offset, limit int64) ([]explorer.CreateDeposit, error)
- func (m *MockExplorer) GetDeposits(subChainID, offset, limit int64) ([]explorer.Deposit, error)
- func (m *MockExplorer) GetLastBlocksByRange(offset, limit int64) ([]explorer.Block, error)
- func (m *MockExplorer) GetPeers() (explorer.GetPeersResponse, error)
- func (m *MockExplorer) GetReceiptByActionID(id string) (explorer.Receipt, error)
- func (m *MockExplorer) GetReceiptByExecutionID(id string) (explorer.Receipt, error)
- func (m *MockExplorer) GetSettleDeposit(settleDepositID string) (explorer.SettleDeposit, error)
- func (m *MockExplorer) GetSettleDepositsByAddress(address string, offset, limit int64) ([]explorer.SettleDeposit, error)
- func (m *MockExplorer) GetStateRootHash(blockHeight int64) (string, error)
- func (m *MockExplorer) PutSubChainBlock(request explorer.PutSubChainBlockRequest) (explorer.PutSubChainBlockResponse, error)
- func (m *MockExplorer) ReadExecutionState(request explorer.Execution) (string, error)
- func (m *MockExplorer) SendAction(request explorer.SendActionRequest) (explorer.SendActionResponse, error)
- func (m *MockExplorer) SendSmartContract(request explorer.Execution) (explorer.SendSmartContractResponse, error)
- func (m *MockExplorer) SendTransfer(request explorer.SendTransferRequest) (explorer.SendTransferResponse, error)
- func (m *MockExplorer) SendVote(request explorer.SendVoteRequest) (explorer.SendVoteResponse, error)
- func (m *MockExplorer) SettleDeposit(request explorer.SettleDepositRequest) (explorer.SettleDepositResponse, error)
- func (m *MockExplorer) SuggestGasPrice() (int64, error)
- type MockExplorerMockRecorder
- func (mr *MockExplorerMockRecorder) CreateDeposit(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) EstimateGasForSmartContract(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) EstimateGasForTransfer(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) EstimateGasForVote() *gomock.Call
- func (mr *MockExplorerMockRecorder) GetAddressBalance(address interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetAddressDetails(address interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetBlockByID(blkID interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetBlockOrActionByHash(hashStr interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetBlockchainHeight() *gomock.Call
- func (mr *MockExplorerMockRecorder) GetCandidateMetrics() *gomock.Call
- func (mr *MockExplorerMockRecorder) GetCandidateMetricsByHeight(h interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetCoinStatistic() *gomock.Call
- func (mr *MockExplorerMockRecorder) GetConsensusMetrics() *gomock.Call
- func (mr *MockExplorerMockRecorder) GetCreateDeposit(createDepositID interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetCreateDepositsByAddress(address, offset, limit interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetDeposits(subChainID, offset, limit interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetLastBlocksByRange(offset, limit interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetPeers() *gomock.Call
- func (mr *MockExplorerMockRecorder) GetReceiptByActionID(id interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetReceiptByExecutionID(id interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetSettleDeposit(settleDepositID interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetSettleDepositsByAddress(address, offset, limit interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) GetStateRootHash(blockHeight interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) PutSubChainBlock(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) ReadExecutionState(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) SendAction(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) SendSmartContract(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) SendTransfer(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) SendVote(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) SettleDeposit(request interface{}) *gomock.Call
- func (mr *MockExplorerMockRecorder) SuggestGasPrice() *gomock.Call
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 ¶
func (m *MockExplorer) CreateDeposit(request explorer.CreateDepositRequest) (explorer.CreateDepositResponse, error)
CreateDeposit mocks base method
func (*MockExplorer) EXPECT ¶
func (m *MockExplorer) EXPECT() *MockExplorerMockRecorder
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) GetLastBlocksByRange ¶
func (m *MockExplorer) GetLastBlocksByRange(offset, limit int64) ([]explorer.Block, error)
GetLastBlocksByRange 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) PutSubChainBlock ¶
func (m *MockExplorer) PutSubChainBlock(request explorer.PutSubChainBlockRequest) (explorer.PutSubChainBlockResponse, error)
PutSubChainBlock mocks base method
func (*MockExplorer) ReadExecutionState ¶
func (m *MockExplorer) ReadExecutionState(request explorer.Execution) (string, error)
ReadExecutionState mocks base method
func (*MockExplorer) SendAction ¶
func (m *MockExplorer) SendAction(request explorer.SendActionRequest) (explorer.SendActionResponse, error)
SendAction mocks base method
func (*MockExplorer) SendSmartContract ¶
func (m *MockExplorer) SendSmartContract(request explorer.Execution) (explorer.SendSmartContractResponse, error)
SendSmartContract mocks base method
func (*MockExplorer) SendTransfer ¶
func (m *MockExplorer) SendTransfer(request explorer.SendTransferRequest) (explorer.SendTransferResponse, error)
SendTransfer mocks base method
func (*MockExplorer) SendVote ¶
func (m *MockExplorer) SendVote(request explorer.SendVoteRequest) (explorer.SendVoteResponse, error)
SendVote mocks base method
func (*MockExplorer) SettleDeposit ¶
func (m *MockExplorer) SettleDeposit(request explorer.SettleDepositRequest) (explorer.SettleDepositResponse, error)
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) GetLastBlocksByRange ¶
func (mr *MockExplorerMockRecorder) GetLastBlocksByRange(offset, limit interface{}) *gomock.Call
GetLastBlocksByRange indicates an expected call of GetLastBlocksByRange
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) 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