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) 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) ChainConfig() *params.ChainConfig
- 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) 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) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, 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) 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) 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 (*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) 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) ChainConfig ¶
func (_m *Chain) ChainConfig() *params.ChainConfig
ChainConfig provides a mock function with given fields:
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) 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) 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) 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) 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) 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