mock_api

package
v1.12.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: GPL-3.0 Imports: 17 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(arg0 context.Context, arg1 common.Hash) (*types.Block, error)

BlockByHash mocks base method.

func (*MockBackend) BlockByNumber

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

BlockByNumber mocks base method.

func (*MockBackend) BlockByNumberOrHash added in v1.7.0

func (m *MockBackend) BlockByNumberOrHash(arg0 context.Context, arg1 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(arg0 context.Context, arg1 int, arg2 rpc.BlockNumber, arg3 []float64) (*big.Int, [][]*big.Int, []*big.Int, []float64, error)

FeeHistory mocks base method.

func (*MockBackend) GetBlockReceipts

func (m *MockBackend) GetBlockReceipts(arg0 context.Context, arg1 common.Hash) types.Receipts

GetBlockReceipts mocks base method.

func (*MockBackend) GetBlockReceiptsInCache

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

GetBlockReceiptsInCache mocks base method.

func (*MockBackend) GetEVM

func (m *MockBackend) GetEVM(arg0 context.Context, arg1 blockchain.Message, arg2 *state.StateDB, arg3 *types.Header, arg4 vm.Config) (*vm.EVM, func() error, error)

GetEVM mocks base method.

func (*MockBackend) GetPoolNonce

func (m *MockBackend) GetPoolNonce(arg0 context.Context, arg1 common.Address) uint64

GetPoolNonce mocks base method.

func (*MockBackend) GetPoolTransaction

func (m *MockBackend) GetPoolTransaction(arg0 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(arg0 common.Hash) *big.Int

GetTd mocks base method.

func (*MockBackend) GetTxAndLookupInfo

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

GetTxAndLookupInfo mocks base method.

func (*MockBackend) GetTxAndLookupInfoInCache

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

GetTxAndLookupInfoInCache mocks base method.

func (*MockBackend) GetTxLookupInfoAndReceipt

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

GetTxLookupInfoAndReceipt mocks base method.

func (*MockBackend) GetTxLookupInfoAndReceiptInCache

func (m *MockBackend) GetTxLookupInfoAndReceiptInCache(arg0 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(arg0 context.Context, arg1 common.Hash) (*types.Header, error)

HeaderByHash mocks base method.

func (*MockBackend) HeaderByNumber

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

HeaderByNumber mocks base method.

func (*MockBackend) HeaderByNumberOrHash added in v1.7.0

func (m *MockBackend) HeaderByNumberOrHash(arg0 context.Context, arg1 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(arg0 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) RPCEVMTimeout added in v1.10.0

func (m *MockBackend) RPCEVMTimeout() time.Duration

RPCEVMTimeout 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(arg0 context.Context, arg1 *types.Transaction) error

SendTx mocks base method.

func (*MockBackend) SetHead

func (m *MockBackend) SetHead(arg0 uint64) error

SetHead mocks base method.

func (*MockBackend) StateAndHeaderByNumber

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

StateAndHeaderByNumber mocks base method.

func (*MockBackend) StateAndHeaderByNumberOrHash added in v1.7.0

func (m *MockBackend) StateAndHeaderByNumberOrHash(arg0 context.Context, arg1 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(arg0 chan<- blockchain.ChainEvent) event.Subscription

SubscribeChainEvent mocks base method.

func (*MockBackend) SubscribeChainHeadEvent

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

SubscribeChainHeadEvent mocks base method.

func (*MockBackend) SubscribeChainSideEvent

func (m *MockBackend) SubscribeChainSideEvent(arg0 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(arg0 context.Context) (*big.Int, error)

SuggestPrice mocks base method.

func (*MockBackend) SuggestTipCap added in v1.12.0

func (m *MockBackend) SuggestTipCap(arg0 context.Context) (*big.Int, error)

SuggestTipCap mocks base method.

func (*MockBackend) TxPoolContent

TxPoolContent mocks base method.

func (*MockBackend) UpperBoundGasPrice added in v1.9.0

func (m *MockBackend) UpperBoundGasPrice(arg0 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(arg0, arg1 interface{}) *gomock.Call

BlockByHash indicates an expected call of BlockByHash.

func (*MockBackendMockRecorder) BlockByNumber

func (mr *MockBackendMockRecorder) BlockByNumber(arg0, arg1 interface{}) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber.

func (*MockBackendMockRecorder) BlockByNumberOrHash added in v1.7.0

func (mr *MockBackendMockRecorder) BlockByNumberOrHash(arg0, arg1 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(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

FeeHistory indicates an expected call of FeeHistory.

func (*MockBackendMockRecorder) GetBlockReceipts

func (mr *MockBackendMockRecorder) GetBlockReceipts(arg0, arg1 interface{}) *gomock.Call

GetBlockReceipts indicates an expected call of GetBlockReceipts.

func (*MockBackendMockRecorder) GetBlockReceiptsInCache

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

GetBlockReceiptsInCache indicates an expected call of GetBlockReceiptsInCache.

func (*MockBackendMockRecorder) GetEVM

func (mr *MockBackendMockRecorder) GetEVM(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetEVM indicates an expected call of GetEVM.

func (*MockBackendMockRecorder) GetPoolNonce

func (mr *MockBackendMockRecorder) GetPoolNonce(arg0, arg1 interface{}) *gomock.Call

GetPoolNonce indicates an expected call of GetPoolNonce.

func (*MockBackendMockRecorder) GetPoolTransaction

func (mr *MockBackendMockRecorder) GetPoolTransaction(arg0 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(arg0 interface{}) *gomock.Call

GetTd indicates an expected call of GetTd.

func (*MockBackendMockRecorder) GetTxAndLookupInfo

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

GetTxAndLookupInfo indicates an expected call of GetTxAndLookupInfo.

func (*MockBackendMockRecorder) GetTxAndLookupInfoInCache

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

GetTxAndLookupInfoInCache indicates an expected call of GetTxAndLookupInfoInCache.

func (*MockBackendMockRecorder) GetTxLookupInfoAndReceipt

func (mr *MockBackendMockRecorder) GetTxLookupInfoAndReceipt(arg0, arg1 interface{}) *gomock.Call

GetTxLookupInfoAndReceipt indicates an expected call of GetTxLookupInfoAndReceipt.

func (*MockBackendMockRecorder) GetTxLookupInfoAndReceiptInCache

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

GetTxLookupInfoAndReceiptInCache indicates an expected call of GetTxLookupInfoAndReceiptInCache.

func (*MockBackendMockRecorder) HeaderByHash added in v1.7.0

func (mr *MockBackendMockRecorder) HeaderByHash(arg0, arg1 interface{}) *gomock.Call

HeaderByHash indicates an expected call of HeaderByHash.

func (*MockBackendMockRecorder) HeaderByNumber

func (mr *MockBackendMockRecorder) HeaderByNumber(arg0, arg1 interface{}) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockBackendMockRecorder) HeaderByNumberOrHash added in v1.7.0

func (mr *MockBackendMockRecorder) HeaderByNumberOrHash(arg0, arg1 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(arg0 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) RPCEVMTimeout added in v1.10.0

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

RPCEVMTimeout indicates an expected call of RPCEVMTimeout.

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(arg0, arg1 interface{}) *gomock.Call

SendTx indicates an expected call of SendTx.

func (*MockBackendMockRecorder) SetHead

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

SetHead indicates an expected call of SetHead.

func (*MockBackendMockRecorder) StateAndHeaderByNumber

func (mr *MockBackendMockRecorder) StateAndHeaderByNumber(arg0, arg1 interface{}) *gomock.Call

StateAndHeaderByNumber indicates an expected call of StateAndHeaderByNumber.

func (*MockBackendMockRecorder) StateAndHeaderByNumberOrHash added in v1.7.0

func (mr *MockBackendMockRecorder) StateAndHeaderByNumberOrHash(arg0, arg1 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(arg0 interface{}) *gomock.Call

SubscribeChainEvent indicates an expected call of SubscribeChainEvent.

func (*MockBackendMockRecorder) SubscribeChainHeadEvent

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

SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent.

func (*MockBackendMockRecorder) SubscribeChainSideEvent

func (mr *MockBackendMockRecorder) SubscribeChainSideEvent(arg0 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(arg0 interface{}) *gomock.Call

SuggestPrice indicates an expected call of SuggestPrice.

func (*MockBackendMockRecorder) SuggestTipCap added in v1.12.0

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

SuggestTipCap indicates an expected call of SuggestTipCap.

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(arg0 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