mock_apicoreservice

package
v1.8.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_apicoreservice is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCoreService

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

MockCoreService is a mock of CoreService interface.

func NewMockCoreService

func NewMockCoreService(ctrl *gomock.Controller) *MockCoreService

NewMockCoreService creates a new mock instance.

func (*MockCoreService) Account

Account mocks base method.

func (*MockCoreService) ActPoolActions

func (m *MockCoreService) ActPoolActions(actHashes []string) ([]*iotextypes.Action, error)

ActPoolActions mocks base method.

func (*MockCoreService) Action

func (m *MockCoreService) Action(actionHash string, checkPending bool) (*iotexapi.ActionInfo, error)

Action mocks base method.

func (*MockCoreService) ActionByActionHash

ActionByActionHash mocks base method.

func (*MockCoreService) Actions

func (m *MockCoreService) Actions(start, count uint64) ([]*iotexapi.ActionInfo, error)

Actions mocks base method.

func (*MockCoreService) ActionsByAddress

func (m *MockCoreService) ActionsByAddress(addr address.Address, start, count uint64) ([]*iotexapi.ActionInfo, error)

ActionsByAddress mocks base method.

func (*MockCoreService) ActionsByBlock

func (m *MockCoreService) ActionsByBlock(blkHash string, start, count uint64) ([]*iotexapi.ActionInfo, error)

ActionsByBlock mocks base method.

func (*MockCoreService) ActionsInBlockByHash added in v1.8.0

func (m *MockCoreService) ActionsInBlockByHash(arg0 string) ([]action.SealedEnvelope, []*action.Receipt, error)

ActionsInBlockByHash mocks base method.

func (*MockCoreService) BlockHashByBlockHeight added in v1.8.1

func (m *MockCoreService) BlockHashByBlockHeight(blkHeight uint64) (hash.Hash256, error)

BlockHashByBlockHeight mocks base method.

func (*MockCoreService) BlockMetaByHash

func (m *MockCoreService) BlockMetaByHash(blkHash string) (*iotextypes.BlockMeta, error)

BlockMetaByHash mocks base method.

func (*MockCoreService) BlockMetas

func (m *MockCoreService) BlockMetas(start, count uint64) ([]*iotextypes.BlockMeta, error)

BlockMetas mocks base method.

func (*MockCoreService) ChainID

func (m *MockCoreService) ChainID() uint32

ChainID mocks base method.

func (*MockCoreService) ChainListener added in v1.8.1

func (m *MockCoreService) ChainListener() apitypes.Listener

ChainListener mocks base method.

func (*MockCoreService) ChainMeta

func (m *MockCoreService) ChainMeta() (*iotextypes.ChainMeta, string, error)

ChainMeta mocks base method.

func (*MockCoreService) EVMNetworkID

func (m *MockCoreService) EVMNetworkID() uint32

EVMNetworkID mocks base method.

func (*MockCoreService) EXPECT

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

func (*MockCoreService) ElectionBuckets

func (m *MockCoreService) ElectionBuckets(epochNum uint64) ([]*iotextypes.ElectionBucket, error)

ElectionBuckets mocks base method.

func (*MockCoreService) EpochMeta

EpochMeta mocks base method.

func (*MockCoreService) EstimateExecutionGasConsumption

func (m *MockCoreService) EstimateExecutionGasConsumption(ctx context.Context, sc *action.Execution, callerAddr address.Address) (uint64, error)

EstimateExecutionGasConsumption mocks base method.

func (*MockCoreService) EstimateGasForAction

func (m *MockCoreService) EstimateGasForAction(in *iotextypes.Action) (uint64, error)

EstimateGasForAction mocks base method.

func (*MockCoreService) EstimateGasForNonExecution added in v1.8.0

func (m *MockCoreService) EstimateGasForNonExecution(arg0 action.Action) (uint64, error)

EstimateGasForNonExecution mocks base method.

func (*MockCoreService) LogsInBlockByHash

func (m *MockCoreService) LogsInBlockByHash(filter *logfilter.LogFilter, blockHash hash.Hash256) ([]*action.Log, error)

LogsInBlockByHash mocks base method.

func (*MockCoreService) LogsInRange

func (m *MockCoreService) LogsInRange(filter *logfilter.LogFilter, start, end, paginationSize uint64) ([]*action.Log, []hash.Hash256, error)

LogsInRange mocks base method.

func (*MockCoreService) PendingNonce

func (m *MockCoreService) PendingNonce(arg0 address.Address) (uint64, error)

PendingNonce mocks base method.

func (*MockCoreService) RawBlocks

func (m *MockCoreService) RawBlocks(startHeight, count uint64, withReceipts, withTransactionLogs bool) ([]*iotexapi.BlockInfo, error)

RawBlocks mocks base method.

func (*MockCoreService) ReadContract

func (m *MockCoreService) ReadContract(ctx context.Context, callerAddr address.Address, sc *action.Execution) (string, *iotextypes.Receipt, error)

ReadContract mocks base method.

func (*MockCoreService) ReadContractStorage

func (m *MockCoreService) ReadContractStorage(ctx context.Context, addr address.Address, key []byte) ([]byte, error)

ReadContractStorage mocks base method.

func (*MockCoreService) ReadState

func (m *MockCoreService) ReadState(protocolID, height string, methodName []byte, arguments [][]byte) (*iotexapi.ReadStateResponse, error)

ReadState mocks base method.

func (*MockCoreService) ReceiptByActionHash

func (m *MockCoreService) ReceiptByActionHash(h hash.Hash256) (*action.Receipt, error)

ReceiptByActionHash mocks base method.

func (*MockCoreService) ReceiveBlock added in v1.8.0

func (m *MockCoreService) ReceiveBlock(blk *block.Block) error

ReceiveBlock mocks base method.

func (*MockCoreService) SendAction

func (m *MockCoreService) SendAction(ctx context.Context, in *iotextypes.Action) (string, error)

SendAction mocks base method.

func (*MockCoreService) ServerMeta

func (m *MockCoreService) ServerMeta() (string, string, string, string, string)

ServerMeta mocks base method.

func (*MockCoreService) SimulateExecution

func (m *MockCoreService) SimulateExecution(arg0 context.Context, arg1 address.Address, arg2 *action.Execution) ([]byte, *action.Receipt, error)

SimulateExecution mocks base method.

func (*MockCoreService) Start

func (m *MockCoreService) Start(ctx context.Context) error

Start mocks base method.

func (*MockCoreService) Stop

func (m *MockCoreService) Stop(ctx context.Context) error

Stop mocks base method.

func (*MockCoreService) SuggestGasPrice

func (m *MockCoreService) SuggestGasPrice() (uint64, error)

SuggestGasPrice mocks base method.

func (*MockCoreService) SyncingProgress added in v1.8.0

func (m *MockCoreService) SyncingProgress() (uint64, uint64, uint64)

SyncingProgress mocks base method.

func (*MockCoreService) TipHeight

func (m *MockCoreService) TipHeight() uint64

TipHeight mocks base method.

func (*MockCoreService) TransactionLogByActionHash

func (m *MockCoreService) TransactionLogByActionHash(actHash string) (*iotextypes.TransactionLog, error)

TransactionLogByActionHash mocks base method.

func (*MockCoreService) TransactionLogByBlockHeight

func (m *MockCoreService) TransactionLogByBlockHeight(blockHeight uint64) (*iotextypes.BlockIdentifier, *iotextypes.TransactionLogs, error)

TransactionLogByBlockHeight mocks base method.

func (*MockCoreService) UnconfirmedActionsByAddress

func (m *MockCoreService) UnconfirmedActionsByAddress(address string, start, count uint64) ([]*iotexapi.ActionInfo, error)

UnconfirmedActionsByAddress mocks base method.

type MockCoreServiceMockRecorder

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

MockCoreServiceMockRecorder is the mock recorder for MockCoreService.

func (*MockCoreServiceMockRecorder) Account

func (mr *MockCoreServiceMockRecorder) Account(addr interface{}) *gomock.Call

Account indicates an expected call of Account.

func (*MockCoreServiceMockRecorder) ActPoolActions

func (mr *MockCoreServiceMockRecorder) ActPoolActions(actHashes interface{}) *gomock.Call

ActPoolActions indicates an expected call of ActPoolActions.

func (*MockCoreServiceMockRecorder) Action

func (mr *MockCoreServiceMockRecorder) Action(actionHash, checkPending interface{}) *gomock.Call

Action indicates an expected call of Action.

func (*MockCoreServiceMockRecorder) ActionByActionHash

func (mr *MockCoreServiceMockRecorder) ActionByActionHash(h interface{}) *gomock.Call

ActionByActionHash indicates an expected call of ActionByActionHash.

func (*MockCoreServiceMockRecorder) Actions

func (mr *MockCoreServiceMockRecorder) Actions(start, count interface{}) *gomock.Call

Actions indicates an expected call of Actions.

func (*MockCoreServiceMockRecorder) ActionsByAddress

func (mr *MockCoreServiceMockRecorder) ActionsByAddress(addr, start, count interface{}) *gomock.Call

ActionsByAddress indicates an expected call of ActionsByAddress.

func (*MockCoreServiceMockRecorder) ActionsByBlock

func (mr *MockCoreServiceMockRecorder) ActionsByBlock(blkHash, start, count interface{}) *gomock.Call

ActionsByBlock indicates an expected call of ActionsByBlock.

func (*MockCoreServiceMockRecorder) ActionsInBlockByHash added in v1.8.0

func (mr *MockCoreServiceMockRecorder) ActionsInBlockByHash(arg0 interface{}) *gomock.Call

ActionsInBlockByHash indicates an expected call of ActionsInBlockByHash.

func (*MockCoreServiceMockRecorder) BlockHashByBlockHeight added in v1.8.1

func (mr *MockCoreServiceMockRecorder) BlockHashByBlockHeight(blkHeight interface{}) *gomock.Call

BlockHashByBlockHeight indicates an expected call of BlockHashByBlockHeight.

func (*MockCoreServiceMockRecorder) BlockMetaByHash

func (mr *MockCoreServiceMockRecorder) BlockMetaByHash(blkHash interface{}) *gomock.Call

BlockMetaByHash indicates an expected call of BlockMetaByHash.

func (*MockCoreServiceMockRecorder) BlockMetas

func (mr *MockCoreServiceMockRecorder) BlockMetas(start, count interface{}) *gomock.Call

BlockMetas indicates an expected call of BlockMetas.

func (*MockCoreServiceMockRecorder) ChainID

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

ChainID indicates an expected call of ChainID.

func (*MockCoreServiceMockRecorder) ChainListener added in v1.8.1

func (mr *MockCoreServiceMockRecorder) ChainListener() *gomock.Call

ChainListener indicates an expected call of ChainListener.

func (*MockCoreServiceMockRecorder) ChainMeta

func (mr *MockCoreServiceMockRecorder) ChainMeta() *gomock.Call

ChainMeta indicates an expected call of ChainMeta.

func (*MockCoreServiceMockRecorder) EVMNetworkID

func (mr *MockCoreServiceMockRecorder) EVMNetworkID() *gomock.Call

EVMNetworkID indicates an expected call of EVMNetworkID.

func (*MockCoreServiceMockRecorder) ElectionBuckets

func (mr *MockCoreServiceMockRecorder) ElectionBuckets(epochNum interface{}) *gomock.Call

ElectionBuckets indicates an expected call of ElectionBuckets.

func (*MockCoreServiceMockRecorder) EpochMeta

func (mr *MockCoreServiceMockRecorder) EpochMeta(epochNum interface{}) *gomock.Call

EpochMeta indicates an expected call of EpochMeta.

func (*MockCoreServiceMockRecorder) EstimateExecutionGasConsumption

func (mr *MockCoreServiceMockRecorder) EstimateExecutionGasConsumption(ctx, sc, callerAddr interface{}) *gomock.Call

EstimateExecutionGasConsumption indicates an expected call of EstimateExecutionGasConsumption.

func (*MockCoreServiceMockRecorder) EstimateGasForAction

func (mr *MockCoreServiceMockRecorder) EstimateGasForAction(in interface{}) *gomock.Call

EstimateGasForAction indicates an expected call of EstimateGasForAction.

func (*MockCoreServiceMockRecorder) EstimateGasForNonExecution added in v1.8.0

func (mr *MockCoreServiceMockRecorder) EstimateGasForNonExecution(arg0 interface{}) *gomock.Call

EstimateGasForNonExecution indicates an expected call of EstimateGasForNonExecution.

func (*MockCoreServiceMockRecorder) LogsInBlockByHash

func (mr *MockCoreServiceMockRecorder) LogsInBlockByHash(filter, blockHash interface{}) *gomock.Call

LogsInBlockByHash indicates an expected call of LogsInBlockByHash.

func (*MockCoreServiceMockRecorder) LogsInRange

func (mr *MockCoreServiceMockRecorder) LogsInRange(filter, start, end, paginationSize interface{}) *gomock.Call

LogsInRange indicates an expected call of LogsInRange.

func (*MockCoreServiceMockRecorder) PendingNonce

func (mr *MockCoreServiceMockRecorder) PendingNonce(arg0 interface{}) *gomock.Call

PendingNonce indicates an expected call of PendingNonce.

func (*MockCoreServiceMockRecorder) RawBlocks

func (mr *MockCoreServiceMockRecorder) RawBlocks(startHeight, count, withReceipts, withTransactionLogs interface{}) *gomock.Call

RawBlocks indicates an expected call of RawBlocks.

func (*MockCoreServiceMockRecorder) ReadContract

func (mr *MockCoreServiceMockRecorder) ReadContract(ctx, callerAddr, sc interface{}) *gomock.Call

ReadContract indicates an expected call of ReadContract.

func (*MockCoreServiceMockRecorder) ReadContractStorage

func (mr *MockCoreServiceMockRecorder) ReadContractStorage(ctx, addr, key interface{}) *gomock.Call

ReadContractStorage indicates an expected call of ReadContractStorage.

func (*MockCoreServiceMockRecorder) ReadState

func (mr *MockCoreServiceMockRecorder) ReadState(protocolID, height, methodName, arguments interface{}) *gomock.Call

ReadState indicates an expected call of ReadState.

func (*MockCoreServiceMockRecorder) ReceiptByActionHash

func (mr *MockCoreServiceMockRecorder) ReceiptByActionHash(h interface{}) *gomock.Call

ReceiptByActionHash indicates an expected call of ReceiptByActionHash.

func (*MockCoreServiceMockRecorder) ReceiveBlock added in v1.8.0

func (mr *MockCoreServiceMockRecorder) ReceiveBlock(blk interface{}) *gomock.Call

ReceiveBlock indicates an expected call of ReceiveBlock.

func (*MockCoreServiceMockRecorder) SendAction

func (mr *MockCoreServiceMockRecorder) SendAction(ctx, in interface{}) *gomock.Call

SendAction indicates an expected call of SendAction.

func (*MockCoreServiceMockRecorder) ServerMeta

func (mr *MockCoreServiceMockRecorder) ServerMeta() *gomock.Call

ServerMeta indicates an expected call of ServerMeta.

func (*MockCoreServiceMockRecorder) SimulateExecution

func (mr *MockCoreServiceMockRecorder) SimulateExecution(arg0, arg1, arg2 interface{}) *gomock.Call

SimulateExecution indicates an expected call of SimulateExecution.

func (*MockCoreServiceMockRecorder) Start

func (mr *MockCoreServiceMockRecorder) Start(ctx interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockCoreServiceMockRecorder) Stop

func (mr *MockCoreServiceMockRecorder) Stop(ctx interface{}) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockCoreServiceMockRecorder) SuggestGasPrice

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

SuggestGasPrice indicates an expected call of SuggestGasPrice.

func (*MockCoreServiceMockRecorder) SyncingProgress added in v1.8.0

func (mr *MockCoreServiceMockRecorder) SyncingProgress() *gomock.Call

SyncingProgress indicates an expected call of SyncingProgress.

func (*MockCoreServiceMockRecorder) TipHeight

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

TipHeight indicates an expected call of TipHeight.

func (*MockCoreServiceMockRecorder) TransactionLogByActionHash

func (mr *MockCoreServiceMockRecorder) TransactionLogByActionHash(actHash interface{}) *gomock.Call

TransactionLogByActionHash indicates an expected call of TransactionLogByActionHash.

func (*MockCoreServiceMockRecorder) TransactionLogByBlockHeight

func (mr *MockCoreServiceMockRecorder) TransactionLogByBlockHeight(blockHeight interface{}) *gomock.Call

TransactionLogByBlockHeight indicates an expected call of TransactionLogByBlockHeight.

func (*MockCoreServiceMockRecorder) UnconfirmedActionsByAddress

func (mr *MockCoreServiceMockRecorder) UnconfirmedActionsByAddress(address, start, count interface{}) *gomock.Call

UnconfirmedActionsByAddress indicates an expected call of UnconfirmedActionsByAddress.

type MockintrinsicGasCalculator added in v1.8.0

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

MockintrinsicGasCalculator is a mock of intrinsicGasCalculator interface.

func NewMockintrinsicGasCalculator added in v1.8.0

func NewMockintrinsicGasCalculator(ctrl *gomock.Controller) *MockintrinsicGasCalculator

NewMockintrinsicGasCalculator creates a new mock instance.

func (*MockintrinsicGasCalculator) EXPECT added in v1.8.0

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

func (*MockintrinsicGasCalculator) IntrinsicGas added in v1.8.0

func (m *MockintrinsicGasCalculator) IntrinsicGas() (uint64, error)

IntrinsicGas mocks base method.

type MockintrinsicGasCalculatorMockRecorder added in v1.8.0

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

MockintrinsicGasCalculatorMockRecorder is the mock recorder for MockintrinsicGasCalculator.

func (*MockintrinsicGasCalculatorMockRecorder) IntrinsicGas added in v1.8.0

IntrinsicGas indicates an expected call of IntrinsicGas.

Jump to

Keyboard shortcuts

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