mock_api

package
v1.10.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package mock_api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

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

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) AccountManager

func (m *MockBackend) AccountManager() accounts.AccountManager

AccountManager mocks base method.

func (*MockBackend) BlockByHash added in v1.7.0

func (m *MockBackend) BlockByHash(ctx context.Context, blockHash common.Hash) (*types.Block, error)

BlockByHash mocks base method.

func (*MockBackend) BlockByNumber

func (m *MockBackend) BlockByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Block, error)

BlockByNumber mocks base method.

func (*MockBackend) BlockByNumberOrHash added in v1.7.0

func (m *MockBackend) BlockByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Block, error)

BlockByNumberOrHash mocks base method.

func (*MockBackend) ChainConfig

func (m *MockBackend) ChainConfig() *params.ChainConfig

ChainConfig mocks base method.

func (*MockBackend) ChainDB

func (m *MockBackend) ChainDB() database.DBManager

ChainDB mocks base method.

func (*MockBackend) CurrentBlock

func (m *MockBackend) CurrentBlock() *types.Block

CurrentBlock mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) Engine added in v1.8.0

func (m *MockBackend) Engine() consensus.Engine

Engine mocks base method.

func (*MockBackend) EventMux

func (m *MockBackend) EventMux() *event.TypeMux

EventMux mocks base method.

func (*MockBackend) FeeHistory added in v1.8.0

func (m *MockBackend) FeeHistory(ctx context.Context, blockCount int, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (*big.Int, [][]*big.Int, []*big.Int, []float64, error)

FeeHistory mocks base method.

func (*MockBackend) GetBlockReceipts

func (m *MockBackend) GetBlockReceipts(ctx context.Context, blockHash common.Hash) types.Receipts

GetBlockReceipts mocks base method.

func (*MockBackend) GetBlockReceiptsInCache

func (m *MockBackend) GetBlockReceiptsInCache(blockHash common.Hash) types.Receipts

GetBlockReceiptsInCache mocks base method.

func (*MockBackend) GetEVM

func (m *MockBackend) GetEVM(ctx context.Context, msg blockchain.Message, state *state.StateDB, header *types.Header, vmCfg vm.Config) (*vm.EVM, func() error, error)

GetEVM mocks base method.

func (*MockBackend) GetPoolNonce

func (m *MockBackend) GetPoolNonce(ctx context.Context, addr common.Address) uint64

GetPoolNonce mocks base method.

func (*MockBackend) GetPoolTransaction

func (m *MockBackend) GetPoolTransaction(txHash common.Hash) *types.Transaction

GetPoolTransaction mocks base method.

func (*MockBackend) GetPoolTransactions

func (m *MockBackend) GetPoolTransactions() (types.Transactions, error)

GetPoolTransactions mocks base method.

func (*MockBackend) GetTd

func (m *MockBackend) GetTd(blockHash common.Hash) *big.Int

GetTd mocks base method.

func (*MockBackend) GetTxAndLookupInfo

func (m *MockBackend) GetTxAndLookupInfo(hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64)

GetTxAndLookupInfo mocks base method.

func (*MockBackend) GetTxAndLookupInfoInCache

func (m *MockBackend) GetTxAndLookupInfoInCache(hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64)

GetTxAndLookupInfoInCache mocks base method.

func (*MockBackend) GetTxLookupInfoAndReceipt

func (m *MockBackend) GetTxLookupInfoAndReceipt(ctx context.Context, hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)

GetTxLookupInfoAndReceipt mocks base method.

func (*MockBackend) GetTxLookupInfoAndReceiptInCache

func (m *MockBackend) GetTxLookupInfoAndReceiptInCache(Hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)

GetTxLookupInfoAndReceiptInCache mocks base method.

func (*MockBackend) HeaderByHash added in v1.7.0

func (m *MockBackend) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)

HeaderByHash mocks base method.

func (*MockBackend) HeaderByNumber

func (m *MockBackend) HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error)

HeaderByNumber mocks base method.

func (*MockBackend) HeaderByNumberOrHash added in v1.7.0

func (m *MockBackend) HeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Header, error)

HeaderByNumberOrHash mocks base method.

func (*MockBackend) IsParallelDBWrite

func (m *MockBackend) IsParallelDBWrite() bool

IsParallelDBWrite mocks base method.

func (*MockBackend) IsSenderTxHashIndexingEnabled

func (m *MockBackend) IsSenderTxHashIndexingEnabled() bool

IsSenderTxHashIndexingEnabled mocks base method.

func (*MockBackend) LowerBoundGasPrice added in v1.9.0

func (m *MockBackend) LowerBoundGasPrice(ctx context.Context) *big.Int

LowerBoundGasPrice mocks base method.

func (*MockBackend) Progress

func (m *MockBackend) Progress() klaytn.SyncProgress

Progress mocks base method.

func (*MockBackend) ProtocolVersion

func (m *MockBackend) ProtocolVersion() int

ProtocolVersion mocks base method.

func (*MockBackend) RPCGasCap added in v1.6.0

func (m *MockBackend) RPCGasCap() *big.Int

RPCGasCap mocks base method.

func (*MockBackend) RPCTxFeeCap added in v1.8.0

func (m *MockBackend) RPCTxFeeCap() float64

RPCTxFeeCap mocks base method.

func (*MockBackend) SendTx

func (m *MockBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error

SendTx mocks base method.

func (*MockBackend) SetHead

func (m *MockBackend) SetHead(number uint64)

SetHead mocks base method.

func (*MockBackend) StateAndHeaderByNumber

func (m *MockBackend) StateAndHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*state.StateDB, *types.Header, error)

StateAndHeaderByNumber mocks base method.

func (*MockBackend) StateAndHeaderByNumberOrHash added in v1.7.0

func (m *MockBackend) StateAndHeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*state.StateDB, *types.Header, error)

StateAndHeaderByNumberOrHash mocks base method.

func (*MockBackend) Stats

func (m *MockBackend) Stats() (int, int)

Stats mocks base method.

func (*MockBackend) SubscribeChainEvent

func (m *MockBackend) SubscribeChainEvent(ch chan<- blockchain.ChainEvent) event.Subscription

SubscribeChainEvent mocks base method.

func (*MockBackend) SubscribeChainHeadEvent

func (m *MockBackend) SubscribeChainHeadEvent(ch chan<- blockchain.ChainHeadEvent) event.Subscription

SubscribeChainHeadEvent mocks base method.

func (*MockBackend) SubscribeChainSideEvent

func (m *MockBackend) SubscribeChainSideEvent(ch chan<- blockchain.ChainSideEvent) event.Subscription

SubscribeChainSideEvent mocks base method.

func (*MockBackend) SubscribeNewTxsEvent

func (m *MockBackend) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription

SubscribeNewTxsEvent mocks base method.

func (*MockBackend) SuggestPrice

func (m *MockBackend) SuggestPrice(ctx context.Context) (*big.Int, error)

SuggestPrice mocks base method.

func (*MockBackend) TxPoolContent

TxPoolContent mocks base method.

func (*MockBackend) UpperBoundGasPrice added in v1.9.0

func (m *MockBackend) UpperBoundGasPrice(ctx context.Context) *big.Int

UpperBoundGasPrice mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) AccountManager

func (mr *MockBackendMockRecorder) AccountManager() *gomock.Call

AccountManager indicates an expected call of AccountManager.

func (*MockBackendMockRecorder) BlockByHash added in v1.8.0

func (mr *MockBackendMockRecorder) BlockByHash(ctx, blockHash interface{}) *gomock.Call

BlockByHash indicates an expected call of BlockByHash.

func (*MockBackendMockRecorder) BlockByNumber

func (mr *MockBackendMockRecorder) BlockByNumber(ctx, blockNr interface{}) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber.

func (*MockBackendMockRecorder) BlockByNumberOrHash added in v1.7.0

func (mr *MockBackendMockRecorder) BlockByNumberOrHash(ctx, blockNrOrHash interface{}) *gomock.Call

BlockByNumberOrHash indicates an expected call of BlockByNumberOrHash.

func (*MockBackendMockRecorder) ChainConfig

func (mr *MockBackendMockRecorder) ChainConfig() *gomock.Call

ChainConfig indicates an expected call of ChainConfig.

func (*MockBackendMockRecorder) ChainDB

func (mr *MockBackendMockRecorder) ChainDB() *gomock.Call

ChainDB indicates an expected call of ChainDB.

func (*MockBackendMockRecorder) CurrentBlock

func (mr *MockBackendMockRecorder) CurrentBlock() *gomock.Call

CurrentBlock indicates an expected call of CurrentBlock.

func (*MockBackendMockRecorder) Engine added in v1.8.0

func (mr *MockBackendMockRecorder) Engine() *gomock.Call

Engine indicates an expected call of Engine.

func (*MockBackendMockRecorder) EventMux

func (mr *MockBackendMockRecorder) EventMux() *gomock.Call

EventMux indicates an expected call of EventMux.

func (*MockBackendMockRecorder) FeeHistory added in v1.8.0

func (mr *MockBackendMockRecorder) FeeHistory(ctx, blockCount, lastBlock, rewardPercentiles interface{}) *gomock.Call

FeeHistory indicates an expected call of FeeHistory.

func (*MockBackendMockRecorder) GetBlockReceipts

func (mr *MockBackendMockRecorder) GetBlockReceipts(ctx, blockHash interface{}) *gomock.Call

GetBlockReceipts indicates an expected call of GetBlockReceipts.

func (*MockBackendMockRecorder) GetBlockReceiptsInCache

func (mr *MockBackendMockRecorder) GetBlockReceiptsInCache(blockHash interface{}) *gomock.Call

GetBlockReceiptsInCache indicates an expected call of GetBlockReceiptsInCache.

func (*MockBackendMockRecorder) GetEVM

func (mr *MockBackendMockRecorder) GetEVM(ctx, msg, state, header, vmCfg interface{}) *gomock.Call

GetEVM indicates an expected call of GetEVM.

func (*MockBackendMockRecorder) GetPoolNonce

func (mr *MockBackendMockRecorder) GetPoolNonce(ctx, addr interface{}) *gomock.Call

GetPoolNonce indicates an expected call of GetPoolNonce.

func (*MockBackendMockRecorder) GetPoolTransaction

func (mr *MockBackendMockRecorder) GetPoolTransaction(txHash interface{}) *gomock.Call

GetPoolTransaction indicates an expected call of GetPoolTransaction.

func (*MockBackendMockRecorder) GetPoolTransactions

func (mr *MockBackendMockRecorder) GetPoolTransactions() *gomock.Call

GetPoolTransactions indicates an expected call of GetPoolTransactions.

func (*MockBackendMockRecorder) GetTd

func (mr *MockBackendMockRecorder) GetTd(blockHash interface{}) *gomock.Call

GetTd indicates an expected call of GetTd.

func (*MockBackendMockRecorder) GetTxAndLookupInfo

func (mr *MockBackendMockRecorder) GetTxAndLookupInfo(hash interface{}) *gomock.Call

GetTxAndLookupInfo indicates an expected call of GetTxAndLookupInfo.

func (*MockBackendMockRecorder) GetTxAndLookupInfoInCache

func (mr *MockBackendMockRecorder) GetTxAndLookupInfoInCache(hash interface{}) *gomock.Call

GetTxAndLookupInfoInCache indicates an expected call of GetTxAndLookupInfoInCache.

func (*MockBackendMockRecorder) GetTxLookupInfoAndReceipt

func (mr *MockBackendMockRecorder) GetTxLookupInfoAndReceipt(ctx, hash interface{}) *gomock.Call

GetTxLookupInfoAndReceipt indicates an expected call of GetTxLookupInfoAndReceipt.

func (*MockBackendMockRecorder) GetTxLookupInfoAndReceiptInCache

func (mr *MockBackendMockRecorder) GetTxLookupInfoAndReceiptInCache(Hash interface{}) *gomock.Call

GetTxLookupInfoAndReceiptInCache indicates an expected call of GetTxLookupInfoAndReceiptInCache.

func (*MockBackendMockRecorder) HeaderByHash added in v1.7.0

func (mr *MockBackendMockRecorder) HeaderByHash(ctx, hash interface{}) *gomock.Call

HeaderByHash indicates an expected call of HeaderByHash.

func (*MockBackendMockRecorder) HeaderByNumber

func (mr *MockBackendMockRecorder) HeaderByNumber(ctx, blockNr interface{}) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockBackendMockRecorder) HeaderByNumberOrHash added in v1.7.0

func (mr *MockBackendMockRecorder) HeaderByNumberOrHash(ctx, blockNrOrHash interface{}) *gomock.Call

HeaderByNumberOrHash indicates an expected call of HeaderByNumberOrHash.

func (*MockBackendMockRecorder) IsParallelDBWrite

func (mr *MockBackendMockRecorder) IsParallelDBWrite() *gomock.Call

IsParallelDBWrite indicates an expected call of IsParallelDBWrite.

func (*MockBackendMockRecorder) IsSenderTxHashIndexingEnabled

func (mr *MockBackendMockRecorder) IsSenderTxHashIndexingEnabled() *gomock.Call

IsSenderTxHashIndexingEnabled indicates an expected call of IsSenderTxHashIndexingEnabled.

func (*MockBackendMockRecorder) LowerBoundGasPrice added in v1.9.0

func (mr *MockBackendMockRecorder) LowerBoundGasPrice(ctx interface{}) *gomock.Call

LowerBoundGasPrice indicates an expected call of LowerBoundGasPrice.

func (*MockBackendMockRecorder) Progress

func (mr *MockBackendMockRecorder) Progress() *gomock.Call

Progress indicates an expected call of Progress.

func (*MockBackendMockRecorder) ProtocolVersion

func (mr *MockBackendMockRecorder) ProtocolVersion() *gomock.Call

ProtocolVersion indicates an expected call of ProtocolVersion.

func (*MockBackendMockRecorder) RPCGasCap added in v1.6.0

func (mr *MockBackendMockRecorder) RPCGasCap() *gomock.Call

RPCGasCap indicates an expected call of RPCGasCap.

func (*MockBackendMockRecorder) RPCTxFeeCap added in v1.8.0

func (mr *MockBackendMockRecorder) RPCTxFeeCap() *gomock.Call

RPCTxFeeCap indicates an expected call of RPCTxFeeCap.

func (*MockBackendMockRecorder) SendTx

func (mr *MockBackendMockRecorder) SendTx(ctx, signedTx interface{}) *gomock.Call

SendTx indicates an expected call of SendTx.

func (*MockBackendMockRecorder) SetHead

func (mr *MockBackendMockRecorder) SetHead(number interface{}) *gomock.Call

SetHead indicates an expected call of SetHead.

func (*MockBackendMockRecorder) StateAndHeaderByNumber

func (mr *MockBackendMockRecorder) StateAndHeaderByNumber(ctx, number interface{}) *gomock.Call

StateAndHeaderByNumber indicates an expected call of StateAndHeaderByNumber.

func (*MockBackendMockRecorder) StateAndHeaderByNumberOrHash added in v1.7.0

func (mr *MockBackendMockRecorder) StateAndHeaderByNumberOrHash(ctx, blockNrOrHash interface{}) *gomock.Call

StateAndHeaderByNumberOrHash indicates an expected call of StateAndHeaderByNumberOrHash.

func (*MockBackendMockRecorder) Stats

func (mr *MockBackendMockRecorder) Stats() *gomock.Call

Stats indicates an expected call of Stats.

func (*MockBackendMockRecorder) SubscribeChainEvent

func (mr *MockBackendMockRecorder) SubscribeChainEvent(ch interface{}) *gomock.Call

SubscribeChainEvent indicates an expected call of SubscribeChainEvent.

func (*MockBackendMockRecorder) SubscribeChainHeadEvent

func (mr *MockBackendMockRecorder) SubscribeChainHeadEvent(ch interface{}) *gomock.Call

SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent.

func (*MockBackendMockRecorder) SubscribeChainSideEvent

func (mr *MockBackendMockRecorder) SubscribeChainSideEvent(ch interface{}) *gomock.Call

SubscribeChainSideEvent indicates an expected call of SubscribeChainSideEvent.

func (*MockBackendMockRecorder) SubscribeNewTxsEvent

func (mr *MockBackendMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call

SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent.

func (*MockBackendMockRecorder) SuggestPrice

func (mr *MockBackendMockRecorder) SuggestPrice(ctx interface{}) *gomock.Call

SuggestPrice indicates an expected call of SuggestPrice.

func (*MockBackendMockRecorder) TxPoolContent

func (mr *MockBackendMockRecorder) TxPoolContent() *gomock.Call

TxPoolContent indicates an expected call of TxPoolContent.

func (*MockBackendMockRecorder) UpperBoundGasPrice added in v1.9.0

func (mr *MockBackendMockRecorder) UpperBoundGasPrice(ctx interface{}) *gomock.Call

UpperBoundGasPrice indicates an expected call of UpperBoundGasPrice.

Jump to

Keyboard shortcuts

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