Documentation ¶
Index ¶
- type EVMClient
- func (_m *EVMClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *EVMClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *EVMClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *EVMClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *EVMClient) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *EVMClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *EVMClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EVMClient) ChainConfig() *params.ChainConfig
- func (_m *EVMClient) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *EVMClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *EVMClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *EVMClient) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (_m *EVMClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *EVMClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *EVMClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *EVMClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EVMClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *EVMClient) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (_m *EVMClient) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *EVMClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *EVMClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *EVMClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *EVMClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *EVMClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *EVMClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *EVMClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type MeteredEVMClient
- func (_m *MeteredEVMClient) AttemptReconnect() bool
- func (_m *MeteredEVMClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *MeteredEVMClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *MeteredEVMClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *MeteredEVMClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *MeteredEVMClient) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *MeteredEVMClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *MeteredEVMClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *MeteredEVMClient) ChainConfig() *params.ChainConfig
- func (_m *MeteredEVMClient) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *MeteredEVMClient) ClientID() string
- func (_m *MeteredEVMClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *MeteredEVMClient) ConcurrencyCount() int32
- func (_m *MeteredEVMClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *MeteredEVMClient) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (_m *MeteredEVMClient) GetMetrics(labels map[string]string) []prometheus.Collector
- func (_m *MeteredEVMClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *MeteredEVMClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *MeteredEVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *MeteredEVMClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *MeteredEVMClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *MeteredEVMClient) RequestCount() int64
- func (_m *MeteredEVMClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *MeteredEVMClient) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (_m *MeteredEVMClient) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *MeteredEVMClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *MeteredEVMClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *MeteredEVMClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *MeteredEVMClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *MeteredEVMClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *MeteredEVMClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *MeteredEVMClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type Permitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EVMClient ¶
EVMClient is an autogenerated mock type for the EVMClient type
func NewEVMClient ¶ added in v0.0.14
func NewEVMClient(t mockConstructorTestingTNewEVMClient) *EVMClient
NewEVMClient creates a new instance of EVMClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EVMClient) BalanceAt ¶
func (_m *EVMClient) 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 (*EVMClient) BatchCallContext ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*EVMClient) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*EVMClient) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
func (*EVMClient) BlockNumber ¶
BlockNumber provides a mock function with given fields: ctx
func (*EVMClient) CallContext ¶
func (_m *EVMClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext provides a mock function with given fields: ctx, result, method, args
func (*EVMClient) CallContract ¶
func (_m *EVMClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*EVMClient) ChainConfig ¶
func (_m *EVMClient) ChainConfig() *params.ChainConfig
ChainConfig provides a mock function with given fields:
func (*EVMClient) CodeAt ¶
func (_m *EVMClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, contract, blockNumber
func (*EVMClient) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, call
func (*EVMClient) FilterLogs ¶
func (_m *EVMClient) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, query
func (*EVMClient) HeaderByHash ¶
HeaderByHash provides a mock function with given fields: ctx, hash
func (*EVMClient) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
func (*EVMClient) NonceAt ¶
func (_m *EVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt provides a mock function with given fields: ctx, account, blockNumber
func (*EVMClient) PendingCodeAt ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*EVMClient) PendingNonceAt ¶
PendingNonceAt provides a mock function with given fields: ctx, account
func (*EVMClient) SendTransaction ¶
SendTransaction provides a mock function with given fields: ctx, tx
func (*EVMClient) StorageAt ¶
func (_m *EVMClient) 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 (*EVMClient) SubscribeFilterLogs ¶
func (_m *EVMClient) 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 (*EVMClient) SubscribeNewHead ¶
func (_m *EVMClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*EVMClient) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*EVMClient) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*EVMClient) TransactionByHash ¶
func (_m *EVMClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
func (*EVMClient) TransactionCount ¶
TransactionCount provides a mock function with given fields: ctx, blockHash
type MeteredEVMClient ¶
MeteredEVMClient is an autogenerated mock type for the MeteredEVMClient type
func NewMeteredEVMClient ¶ added in v0.0.14
func NewMeteredEVMClient(t mockConstructorTestingTNewMeteredEVMClient) *MeteredEVMClient
NewMeteredEVMClient creates a new instance of MeteredEVMClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MeteredEVMClient) AttemptReconnect ¶
func (_m *MeteredEVMClient) AttemptReconnect() bool
AttemptReconnect provides a mock function with given fields:
func (*MeteredEVMClient) BalanceAt ¶
func (_m *MeteredEVMClient) 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 (*MeteredEVMClient) BatchCallContext ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*MeteredEVMClient) BlockByHash ¶
func (_m *MeteredEVMClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
BlockByHash provides a mock function with given fields: ctx, hash
func (*MeteredEVMClient) BlockByNumber ¶
func (_m *MeteredEVMClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
BlockByNumber provides a mock function with given fields: ctx, number
func (*MeteredEVMClient) BlockNumber ¶
func (_m *MeteredEVMClient) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber provides a mock function with given fields: ctx
func (*MeteredEVMClient) CallContext ¶
func (_m *MeteredEVMClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext provides a mock function with given fields: ctx, result, method, args
func (*MeteredEVMClient) CallContract ¶
func (_m *MeteredEVMClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*MeteredEVMClient) ChainConfig ¶
func (_m *MeteredEVMClient) ChainConfig() *params.ChainConfig
ChainConfig provides a mock function with given fields:
func (*MeteredEVMClient) ClientID ¶
func (_m *MeteredEVMClient) ClientID() string
ClientID provides a mock function with given fields:
func (*MeteredEVMClient) CodeAt ¶
func (_m *MeteredEVMClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, contract, blockNumber
func (*MeteredEVMClient) ConcurrencyCount ¶
func (_m *MeteredEVMClient) ConcurrencyCount() int32
ConcurrencyCount provides a mock function with given fields:
func (*MeteredEVMClient) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, call
func (*MeteredEVMClient) FilterLogs ¶
func (_m *MeteredEVMClient) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, query
func (*MeteredEVMClient) GetMetrics ¶
func (_m *MeteredEVMClient) GetMetrics(labels map[string]string) []prometheus.Collector
GetMetrics provides a mock function with given fields: labels
func (*MeteredEVMClient) HeaderByHash ¶
func (_m *MeteredEVMClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
HeaderByHash provides a mock function with given fields: ctx, hash
func (*MeteredEVMClient) HeaderByNumber ¶
func (_m *MeteredEVMClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*MeteredEVMClient) NonceAt ¶
func (_m *MeteredEVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt provides a mock function with given fields: ctx, account, blockNumber
func (*MeteredEVMClient) PendingCodeAt ¶
func (_m *MeteredEVMClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
PendingCodeAt provides a mock function with given fields: ctx, account
func (*MeteredEVMClient) PendingNonceAt ¶
func (_m *MeteredEVMClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
PendingNonceAt provides a mock function with given fields: ctx, account
func (*MeteredEVMClient) RequestCount ¶
func (_m *MeteredEVMClient) RequestCount() int64
RequestCount provides a mock function with given fields:
func (*MeteredEVMClient) SendTransaction ¶
func (_m *MeteredEVMClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*MeteredEVMClient) StorageAt ¶
func (_m *MeteredEVMClient) 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 (*MeteredEVMClient) SubscribeFilterLogs ¶
func (_m *MeteredEVMClient) 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 (*MeteredEVMClient) SubscribeNewHead ¶
func (_m *MeteredEVMClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*MeteredEVMClient) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*MeteredEVMClient) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*MeteredEVMClient) TransactionByHash ¶
func (_m *MeteredEVMClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
func (*MeteredEVMClient) TransactionCount ¶
func (_m *MeteredEVMClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
TransactionCount provides a mock function with given fields: ctx, blockHash
func (*MeteredEVMClient) TransactionInBlock ¶
func (_m *MeteredEVMClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
func (*MeteredEVMClient) TransactionReceipt ¶
func (_m *MeteredEVMClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
type Permitter ¶
Permitter is an autogenerated mock type for the Permitter type
func NewPermitter ¶ added in v0.0.14
func NewPermitter(t mockConstructorTestingTNewPermitter) *Permitter
NewPermitter creates a new instance of Permitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Permitter) AcquirePermit ¶
AcquirePermit provides a mock function with given fields: ctx
func (*Permitter) ReleasePermit ¶
func (_m *Permitter) ReleasePermit()
ReleasePermit provides a mock function with given fields: