Documentation ¶
Index ¶
- type Chain
- func (_m *Chain) AttemptReconnect() bool
- func (_m *Chain) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *Chain) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *Chain) BatchContext(ctx context.Context, calls ...w3types.Caller) error
- func (_m *Chain) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *Chain) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *Chain) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *Chain) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *Chain) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *Chain) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *Chain) ChainName() string
- func (_m *Chain) ClientID() string
- func (_m *Chain) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *Chain) ConcurrencyCount() int32
- func (_m *Chain) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *Chain) Estimator() gas.PriceEstimator
- func (_m *Chain) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (_m *Chain) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (_m *Chain) GasSetter() gas.Setter
- func (_m *Chain) GetBigChainID() *big.Int
- func (_m *Chain) GetChainID() uint
- func (_m *Chain) GetHeightWatcher() chainwatcher.BlockHeightWatcher
- func (_m *Chain) GetMetrics(labels map[string]string) []prometheus.Collector
- func (_m *Chain) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *Chain) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *Chain) HeaderByTime(ctx context.Context, startBlock *big.Int, searchTime time.Time) (*types.Header, error)
- func (_m *Chain) NetworkID(ctx context.Context) (*big.Int, error)
- func (_m *Chain) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *Chain) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *Chain) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
- func (_m *Chain) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *Chain) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *Chain) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *Chain) PendingTransactionCount(ctx context.Context) (uint, error)
- func (_m *Chain) RPCAddress() string
- func (_m *Chain) RequestCount() int64
- func (_m *Chain) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *Chain) SetChainConfig(config *params.ChainConfig)
- func (_m *Chain) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (_m *Chain) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *Chain) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *Chain) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *Chain) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *Chain) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (_m *Chain) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *Chain) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *Chain) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *Chain) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
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 ¶
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 ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*Chain) BatchContext ¶ added in v0.0.20
BatchContext provides a mock function with given fields: ctx, calls
func (*Chain) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*Chain) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
func (*Chain) BlockNumber ¶
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) CodeAt ¶
func (_m *Chain) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*Chain) ConcurrencyCount ¶
ConcurrencyCount provides a mock function with given fields:
func (*Chain) EstimateGas ¶
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 ¶
FilterLogs provides a mock function with given fields: ctx, query
func (*Chain) GetBigChainID ¶
GetBigChainID provides a mock function with given fields:
func (*Chain) GetChainID ¶
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) GetMetrics ¶
func (_m *Chain) GetMetrics(labels map[string]string) []prometheus.Collector
GetMetrics provides a mock function with given fields: labels
func (*Chain) HeaderByHash ¶
HeaderByHash provides a mock function with given fields: ctx, hash
func (*Chain) HeaderByNumber ¶
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
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
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*Chain) PendingCallContract ¶ added in v0.0.21
PendingCallContract provides a mock function with given fields: ctx, call
func (*Chain) PendingCodeAt ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*Chain) PendingNonceAt ¶
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
PendingTransactionCount provides a mock function with given fields: ctx
func (*Chain) RPCAddress ¶
RPCAddress provides a mock function with given fields:
func (*Chain) RequestCount ¶
RequestCount provides a mock function with given fields:
func (*Chain) SendTransaction ¶
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 ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*Chain) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*Chain) SyncProgress ¶ added in v0.0.21
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 ¶
TransactionCount provides a mock function with given fields: ctx, blockHash