mocks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	mock.Mock
}

Chain is an autogenerated mock type for the Chain type

func NewChain added in v0.0.14

func NewChain(t mockConstructorTestingTNewChain) *Chain

NewChain creates a new instance of Chain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Chain) AttemptReconnect

func (_m *Chain) AttemptReconnect() bool

AttemptReconnect provides a mock function with given fields:

func (*Chain) BalanceAt

func (_m *Chain) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)

BalanceAt provides a mock function with given fields: ctx, account, blockNumber

func (*Chain) BatchCallContext

func (_m *Chain) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, b

func (*Chain) BatchContext added in v0.0.20

func (_m *Chain) BatchContext(ctx context.Context, calls ...w3types.Caller) error

BatchContext provides a mock function with given fields: ctx, calls

func (*Chain) BlockByHash

func (_m *Chain) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*Chain) BlockByNumber

func (_m *Chain) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)

BlockByNumber provides a mock function with given fields: ctx, number

func (*Chain) BlockNumber

func (_m *Chain) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber provides a mock function with given fields: ctx

func (*Chain) CallContext

func (_m *Chain) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

CallContext provides a mock function with given fields: ctx, result, method, args

func (*Chain) CallContract

func (_m *Chain) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, call, blockNumber

func (*Chain) ChainConfig

func (_m *Chain) ChainConfig() *params.ChainConfig

ChainConfig provides a mock function with given fields:

func (*Chain) ChainID

func (_m *Chain) ChainID(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

func (*Chain) ChainName

func (_m *Chain) ChainName() string

ChainName provides a mock function with given fields:

func (*Chain) ClientID

func (_m *Chain) ClientID() string

ClientID provides a mock function with given fields:

func (*Chain) CodeAt

func (_m *Chain) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, contract, blockNumber

func (*Chain) ConcurrencyCount

func (_m *Chain) ConcurrencyCount() int32

ConcurrencyCount provides a mock function with given fields:

func (*Chain) EstimateGas

func (_m *Chain) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, call

func (*Chain) Estimator

func (_m *Chain) Estimator() gas.PriceEstimator

Estimator provides a mock function with given fields:

func (*Chain) FeeHistory added in v0.0.21

func (_m *Chain) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*ethereum.FeeHistory, error)

FeeHistory provides a mock function with given fields: ctx, blockCount, lastBlock, rewardPercentiles

func (*Chain) FilterLogs

func (_m *Chain) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

FilterLogs provides a mock function with given fields: ctx, query

func (*Chain) GasSetter

func (_m *Chain) GasSetter() gas.Setter

GasSetter provides a mock function with given fields:

func (*Chain) GetBigChainID

func (_m *Chain) GetBigChainID() *big.Int

GetBigChainID provides a mock function with given fields:

func (*Chain) GetChainID

func (_m *Chain) GetChainID() uint

GetChainID provides a mock function with given fields:

func (*Chain) GetHeightWatcher

func (_m *Chain) GetHeightWatcher() chainwatcher.BlockHeightWatcher

GetHeightWatcher provides a mock function with given fields:

func (*Chain) HeaderByHash

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

HeaderByHash provides a mock function with given fields: ctx, hash

func (*Chain) HeaderByNumber

func (_m *Chain) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*Chain) HeaderByTime

func (_m *Chain) HeaderByTime(ctx context.Context, startBlock *big.Int, searchTime time.Time) (*types.Header, error)

HeaderByTime provides a mock function with given fields: ctx, startBlock, searchTime

func (*Chain) NetworkID added in v0.0.21

func (_m *Chain) NetworkID(ctx context.Context) (*big.Int, error)

NetworkID provides a mock function with given fields: ctx

func (*Chain) NonceAt

func (_m *Chain) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)

NonceAt provides a mock function with given fields: ctx, account, blockNumber

func (*Chain) PendingBalanceAt added in v0.0.21

func (_m *Chain) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)

PendingBalanceAt provides a mock function with given fields: ctx, account

func (*Chain) PendingCallContract added in v0.0.21

func (_m *Chain) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)

PendingCallContract provides a mock function with given fields: ctx, call

func (*Chain) PendingCodeAt

func (_m *Chain) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt provides a mock function with given fields: ctx, account

func (*Chain) PendingNonceAt

func (_m *Chain) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt provides a mock function with given fields: ctx, account

func (*Chain) PendingStorageAt added in v0.0.21

func (_m *Chain) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)

PendingStorageAt provides a mock function with given fields: ctx, account, key

func (*Chain) PendingTransactionCount added in v0.0.21

func (_m *Chain) PendingTransactionCount(ctx context.Context) (uint, error)

PendingTransactionCount provides a mock function with given fields: ctx

func (*Chain) RPCAddress

func (_m *Chain) RPCAddress() string

RPCAddress provides a mock function with given fields:

func (*Chain) RequestCount

func (_m *Chain) RequestCount() int64

RequestCount provides a mock function with given fields:

func (*Chain) SendTransaction

func (_m *Chain) SendTransaction(ctx context.Context, tx *types.Transaction) error

SendTransaction provides a mock function with given fields: ctx, tx

func (*Chain) SetChainConfig

func (_m *Chain) SetChainConfig(config *params.ChainConfig)

SetChainConfig provides a mock function with given fields: config

func (*Chain) StorageAt

func (_m *Chain) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error)

StorageAt provides a mock function with given fields: ctx, account, key, blockNumber

func (*Chain) SubscribeFilterLogs

func (_m *Chain) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

SubscribeFilterLogs provides a mock function with given fields: ctx, query, ch

func (*Chain) SubscribeNewHead

func (_m *Chain) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)

SubscribeNewHead provides a mock function with given fields: ctx, ch

func (*Chain) SuggestGasPrice

func (_m *Chain) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*Chain) SuggestGasTipCap

func (_m *Chain) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap provides a mock function with given fields: ctx

func (*Chain) SyncProgress added in v0.0.21

func (_m *Chain) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)

SyncProgress provides a mock function with given fields: ctx

func (*Chain) TransactionByHash

func (_m *Chain) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)

TransactionByHash provides a mock function with given fields: ctx, txHash

func (*Chain) TransactionCount

func (_m *Chain) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)

TransactionCount provides a mock function with given fields: ctx, blockHash

func (*Chain) TransactionInBlock

func (_m *Chain) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)

TransactionInBlock provides a mock function with given fields: ctx, blockHash, index

func (*Chain) TransactionReceipt

func (_m *Chain) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt provides a mock function with given fields: ctx, txHash

func (*Chain) Web3Version added in v0.7.0

func (_m *Chain) Web3Version(ctx context.Context) (string, error)

Web3Version provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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