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) BatchContext(ctx context.Context, calls ...w3types.Caller) 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) 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) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, 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) NetworkID(ctx context.Context) (*big.Int, error)
- func (_m *EVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *EVMClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *EVMClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, 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) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *EVMClient) PendingTransactionCount(ctx context.Context) (uint, 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) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, 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)
- func (_m *EVMClient) Web3Version(ctx context.Context) (string, 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) BatchContext(ctx context.Context, calls ...w3types.Caller) 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) 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) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (_m *MeteredEVMClient) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- 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) NetworkID(ctx context.Context) (*big.Int, error)
- func (_m *MeteredEVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *MeteredEVMClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *MeteredEVMClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, 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) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *MeteredEVMClient) PendingTransactionCount(ctx context.Context) (uint, 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) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, 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)
- func (_m *MeteredEVMClient) Web3Version(ctx context.Context) (string, 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) BatchContext ¶ added in v0.0.20
BatchContext provides a mock function with given fields: ctx, calls
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) 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) FeeHistory ¶ added in v0.0.21
func (_m *EVMClient) 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 (*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) NetworkID ¶ added in v0.0.21
NetworkID provides a mock function with given fields: ctx
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) PendingBalanceAt ¶ added in v0.0.21
func (_m *EVMClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*EVMClient) PendingCallContract ¶ added in v0.0.21
func (_m *EVMClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
PendingCallContract provides a mock function with given fields: ctx, call
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) PendingStorageAt ¶ added in v0.0.21
func (_m *EVMClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt provides a mock function with given fields: ctx, account, key
func (*EVMClient) PendingTransactionCount ¶ added in v0.0.21
PendingTransactionCount provides a mock function with given fields: ctx
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) SyncProgress ¶ added in v0.0.21
SyncProgress 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
func (*EVMClient) TransactionInBlock ¶
func (_m *EVMClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
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) BatchContext ¶ added in v0.0.20
BatchContext provides a mock function with given fields: ctx, calls
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) 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) FeeHistory ¶ added in v0.0.21
func (_m *MeteredEVMClient) 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 (*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) 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) NetworkID ¶ added in v0.0.21
NetworkID provides a mock function with given fields: ctx
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) PendingBalanceAt ¶ added in v0.0.21
func (_m *MeteredEVMClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*MeteredEVMClient) PendingCallContract ¶ added in v0.0.21
func (_m *MeteredEVMClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
PendingCallContract provides a mock function with given fields: ctx, call
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) PendingStorageAt ¶ added in v0.0.21
func (_m *MeteredEVMClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt provides a mock function with given fields: ctx, account, key
func (*MeteredEVMClient) PendingTransactionCount ¶ added in v0.0.21
func (_m *MeteredEVMClient) PendingTransactionCount(ctx context.Context) (uint, error)
PendingTransactionCount provides a mock function with given fields: ctx
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) SyncProgress ¶ added in v0.0.21
func (_m *MeteredEVMClient) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
SyncProgress 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
func (*MeteredEVMClient) Web3Version ¶ added in v0.7.0
func (_m *MeteredEVMClient) Web3Version(ctx context.Context) (string, error)
Web3Version provides a mock function with given fields: ctx
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: