Documentation
¶
Index ¶
- type EthereumClient
- func (_m *EthereumClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *EthereumClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *EthereumClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *EthereumClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EthereumClient) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *EthereumClient) Client() *rpc.Client
- func (_m *EthereumClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *EthereumClient) EXPECT() *EthereumClient_Expecter
- func (_m *EthereumClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *EthereumClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *EthereumClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EthereumClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *EthereumClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *EthereumClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *EthereumClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EthereumClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *EthereumClient) PendingTransactionCount(ctx context.Context) (uint, error)
- func (_m *EthereumClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *EthereumClient) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (_m *EthereumClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *EthereumClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *EthereumClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *EthereumClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *EthereumClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *EthereumClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *EthereumClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type EthereumClient_BalanceAt_Call
- func (_c *EthereumClient_BalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_BalanceAt_Call
- func (_c *EthereumClient_BalanceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_BalanceAt_Call
- func (_c *EthereumClient_BalanceAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) (*big.Int, error)) *EthereumClient_BalanceAt_Call
- type EthereumClient_BlockByHash_Call
- func (_c *EthereumClient_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *EthereumClient_BlockByHash_Call
- func (_c *EthereumClient_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClient_BlockByHash_Call
- func (_c *EthereumClient_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *EthereumClient_BlockByHash_Call
- type EthereumClient_BlockByNumber_Call
- func (_c *EthereumClient_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *EthereumClient_BlockByNumber_Call
- func (_c *EthereumClient_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClient_BlockByNumber_Call
- func (_c *EthereumClient_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *EthereumClient_BlockByNumber_Call
- type EthereumClient_CallContract_Call
- func (_c *EthereumClient_CallContract_Call) Return(_a0 []byte, _a1 error) *EthereumClient_CallContract_Call
- func (_c *EthereumClient_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthereumClient_CallContract_Call
- func (_c *EthereumClient_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthereumClient_CallContract_Call
- type EthereumClient_ChainID_Call
- func (_c *EthereumClient_ChainID_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_ChainID_Call
- func (_c *EthereumClient_ChainID_Call) Run(run func(ctx context.Context)) *EthereumClient_ChainID_Call
- func (_c *EthereumClient_ChainID_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClient_ChainID_Call
- type EthereumClient_Client_Call
- type EthereumClient_CodeAt_Call
- func (_c *EthereumClient_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_CodeAt_Call
- func (_c *EthereumClient_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_CodeAt_Call
- func (_c *EthereumClient_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthereumClient_CodeAt_Call
- type EthereumClient_EstimateGas_Call
- func (_c *EthereumClient_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthereumClient_EstimateGas_Call
- func (_c *EthereumClient_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthereumClient_EstimateGas_Call
- func (_c *EthereumClient_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthereumClient_EstimateGas_Call
- type EthereumClient_Expecter
- func (_e *EthereumClient_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_BalanceAt_Call
- func (_e *EthereumClient_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthereumClient_BlockByHash_Call
- func (_e *EthereumClient_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthereumClient_BlockByNumber_Call
- func (_e *EthereumClient_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthereumClient_CallContract_Call
- func (_e *EthereumClient_Expecter) ChainID(ctx interface{}) *EthereumClient_ChainID_Call
- func (_e *EthereumClient_Expecter) Client() *EthereumClient_Client_Call
- func (_e *EthereumClient_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_CodeAt_Call
- func (_e *EthereumClient_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthereumClient_EstimateGas_Call
- func (_e *EthereumClient_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthereumClient_HeaderByHash_Call
- func (_e *EthereumClient_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthereumClient_HeaderByNumber_Call
- func (_e *EthereumClient_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_NonceAt_Call
- func (_e *EthereumClient_Expecter) PendingBalanceAt(ctx interface{}, account interface{}) *EthereumClient_PendingBalanceAt_Call
- func (_e *EthereumClient_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthereumClient_PendingCodeAt_Call
- func (_e *EthereumClient_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthereumClient_PendingNonceAt_Call
- func (_e *EthereumClient_Expecter) PendingStorageAt(ctx interface{}, account interface{}, key interface{}) *EthereumClient_PendingStorageAt_Call
- func (_e *EthereumClient_Expecter) PendingTransactionCount(ctx interface{}) *EthereumClient_PendingTransactionCount_Call
- func (_e *EthereumClient_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthereumClient_SendTransaction_Call
- func (_e *EthereumClient_Expecter) StorageAt(ctx interface{}, account interface{}, key interface{}, blockNumber interface{}) *EthereumClient_StorageAt_Call
- func (_e *EthereumClient_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthereumClient_SubscribeNewHead_Call
- func (_e *EthereumClient_Expecter) SuggestGasPrice(ctx interface{}) *EthereumClient_SuggestGasPrice_Call
- func (_e *EthereumClient_Expecter) SuggestGasTipCap(ctx interface{}) *EthereumClient_SuggestGasTipCap_Call
- func (_e *EthereumClient_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *EthereumClient_TransactionByHash_Call
- func (_e *EthereumClient_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthereumClient_TransactionCount_Call
- func (_e *EthereumClient_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthereumClient_TransactionInBlock_Call
- func (_e *EthereumClient_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthereumClient_TransactionReceipt_Call
- type EthereumClient_HeaderByHash_Call
- func (_c *EthereumClient_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *EthereumClient_HeaderByHash_Call
- func (_c *EthereumClient_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClient_HeaderByHash_Call
- func (_c *EthereumClient_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *EthereumClient_HeaderByHash_Call
- type EthereumClient_HeaderByNumber_Call
- func (_c *EthereumClient_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthereumClient_HeaderByNumber_Call
- func (_c *EthereumClient_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClient_HeaderByNumber_Call
- func (_c *EthereumClient_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthereumClient_HeaderByNumber_Call
- type EthereumClient_NonceAt_Call
- func (_c *EthereumClient_NonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClient_NonceAt_Call
- func (_c *EthereumClient_NonceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_NonceAt_Call
- func (_c *EthereumClient_NonceAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) (uint64, error)) *EthereumClient_NonceAt_Call
- type EthereumClient_PendingBalanceAt_Call
- func (_c *EthereumClient_PendingBalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_PendingBalanceAt_Call
- func (_c *EthereumClient_PendingBalanceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClient_PendingBalanceAt_Call
- func (_c *EthereumClient_PendingBalanceAt_Call) RunAndReturn(run func(context.Context, common.Address) (*big.Int, error)) *EthereumClient_PendingBalanceAt_Call
- type EthereumClient_PendingCodeAt_Call
- func (_c *EthereumClient_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_PendingCodeAt_Call
- func (_c *EthereumClient_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClient_PendingCodeAt_Call
- func (_c *EthereumClient_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthereumClient_PendingCodeAt_Call
- type EthereumClient_PendingNonceAt_Call
- func (_c *EthereumClient_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClient_PendingNonceAt_Call
- func (_c *EthereumClient_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClient_PendingNonceAt_Call
- func (_c *EthereumClient_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthereumClient_PendingNonceAt_Call
- type EthereumClient_PendingStorageAt_Call
- func (_c *EthereumClient_PendingStorageAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_PendingStorageAt_Call
- func (_c *EthereumClient_PendingStorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash)) *EthereumClient_PendingStorageAt_Call
- func (_c *EthereumClient_PendingStorageAt_Call) RunAndReturn(run func(context.Context, common.Address, common.Hash) ([]byte, error)) *EthereumClient_PendingStorageAt_Call
- type EthereumClient_PendingTransactionCount_Call
- func (_c *EthereumClient_PendingTransactionCount_Call) Return(_a0 uint, _a1 error) *EthereumClient_PendingTransactionCount_Call
- func (_c *EthereumClient_PendingTransactionCount_Call) Run(run func(ctx context.Context)) *EthereumClient_PendingTransactionCount_Call
- func (_c *EthereumClient_PendingTransactionCount_Call) RunAndReturn(run func(context.Context) (uint, error)) *EthereumClient_PendingTransactionCount_Call
- type EthereumClient_SendTransaction_Call
- func (_c *EthereumClient_SendTransaction_Call) Return(_a0 error) *EthereumClient_SendTransaction_Call
- func (_c *EthereumClient_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthereumClient_SendTransaction_Call
- func (_c *EthereumClient_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthereumClient_SendTransaction_Call
- type EthereumClient_StorageAt_Call
- func (_c *EthereumClient_StorageAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_StorageAt_Call
- func (_c *EthereumClient_StorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash, ...)) *EthereumClient_StorageAt_Call
- func (_c *EthereumClient_StorageAt_Call) RunAndReturn(...) *EthereumClient_StorageAt_Call
- type EthereumClient_SubscribeNewHead_Call
- func (_c *EthereumClient_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthereumClient_SubscribeNewHead_Call
- func (_c *EthereumClient_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *EthereumClient_SubscribeNewHead_Call
- func (_c *EthereumClient_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *EthereumClient_SubscribeNewHead_Call
- type EthereumClient_SuggestGasPrice_Call
- func (_c *EthereumClient_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_SuggestGasPrice_Call
- func (_c *EthereumClient_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthereumClient_SuggestGasPrice_Call
- func (_c *EthereumClient_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClient_SuggestGasPrice_Call
- type EthereumClient_SuggestGasTipCap_Call
- func (_c *EthereumClient_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_SuggestGasTipCap_Call
- func (_c *EthereumClient_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthereumClient_SuggestGasTipCap_Call
- func (_c *EthereumClient_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClient_SuggestGasTipCap_Call
- type EthereumClient_TransactionByHash_Call
- func (_c *EthereumClient_TransactionByHash_Call) Return(tx *types.Transaction, isPending bool, err error) *EthereumClient_TransactionByHash_Call
- func (_c *EthereumClient_TransactionByHash_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClient_TransactionByHash_Call
- func (_c *EthereumClient_TransactionByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Transaction, bool, error)) *EthereumClient_TransactionByHash_Call
- type EthereumClient_TransactionCount_Call
- func (_c *EthereumClient_TransactionCount_Call) Return(_a0 uint, _a1 error) *EthereumClient_TransactionCount_Call
- func (_c *EthereumClient_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *EthereumClient_TransactionCount_Call
- func (_c *EthereumClient_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *EthereumClient_TransactionCount_Call
- type EthereumClient_TransactionInBlock_Call
- func (_c *EthereumClient_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *EthereumClient_TransactionInBlock_Call
- func (_c *EthereumClient_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *EthereumClient_TransactionInBlock_Call
- func (_c *EthereumClient_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *EthereumClient_TransactionInBlock_Call
- type EthereumClient_TransactionReceipt_Call
- func (_c *EthereumClient_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthereumClient_TransactionReceipt_Call
- func (_c *EthereumClient_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClient_TransactionReceipt_Call
- func (_c *EthereumClient_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthereumClient_TransactionReceipt_Call
- type EthermanInterface
- func (_m *EthermanInterface) CheckTxWasMined(ctx context.Context, txHash common.Hash) (bool, *types.Receipt, error)
- func (_m *EthermanInterface) CurrentNonce(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EthermanInterface) EXPECT() *EthermanInterface_Expecter
- func (_m *EthermanInterface) EstimateGas(ctx context.Context, from common.Address, to *common.Address, value *big.Int, ...) (uint64, error)
- func (_m *EthermanInterface) EstimateGasBlobTx(ctx context.Context, from common.Address, to *common.Address, ...) (uint64, error)
- func (_m *EthermanInterface) GetHeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EthermanInterface) GetLatestBlockNumber(ctx context.Context) (uint64, error)
- func (_m *EthermanInterface) GetRevertMessage(ctx context.Context, tx *types.Transaction) (string, error)
- func (_m *EthermanInterface) GetSuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *EthermanInterface) GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *EthermanInterface) GetTxReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (_m *EthermanInterface) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EthermanInterface) PendingNonce(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EthermanInterface) PublicAddress() ([]common.Address, error)
- func (_m *EthermanInterface) SendTx(ctx context.Context, tx *types.Transaction) error
- func (_m *EthermanInterface) SignTx(ctx context.Context, sender common.Address, tx *types.Transaction) (*types.Transaction, error)
- func (_m *EthermanInterface) SuggestedGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *EthermanInterface) WaitTxToBeMined(ctx context.Context, tx *types.Transaction, timeout time.Duration) (bool, error)
- type EthermanInterface_CheckTxWasMined_Call
- func (_c *EthermanInterface_CheckTxWasMined_Call) Return(_a0 bool, _a1 *types.Receipt, _a2 error) *EthermanInterface_CheckTxWasMined_Call
- func (_c *EthermanInterface_CheckTxWasMined_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthermanInterface_CheckTxWasMined_Call
- func (_c *EthermanInterface_CheckTxWasMined_Call) RunAndReturn(run func(context.Context, common.Hash) (bool, *types.Receipt, error)) *EthermanInterface_CheckTxWasMined_Call
- type EthermanInterface_CurrentNonce_Call
- func (_c *EthermanInterface_CurrentNonce_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_CurrentNonce_Call
- func (_c *EthermanInterface_CurrentNonce_Call) Run(run func(ctx context.Context, account common.Address)) *EthermanInterface_CurrentNonce_Call
- func (_c *EthermanInterface_CurrentNonce_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthermanInterface_CurrentNonce_Call
- type EthermanInterface_EstimateGasBlobTx_Call
- func (_c *EthermanInterface_EstimateGasBlobTx_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_EstimateGasBlobTx_Call
- func (_c *EthermanInterface_EstimateGasBlobTx_Call) Run(run func(ctx context.Context, from common.Address, to *common.Address, ...)) *EthermanInterface_EstimateGasBlobTx_Call
- func (_c *EthermanInterface_EstimateGasBlobTx_Call) RunAndReturn(...) *EthermanInterface_EstimateGasBlobTx_Call
- type EthermanInterface_EstimateGas_Call
- func (_c *EthermanInterface_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_EstimateGas_Call
- func (_c *EthermanInterface_EstimateGas_Call) Run(...) *EthermanInterface_EstimateGas_Call
- func (_c *EthermanInterface_EstimateGas_Call) RunAndReturn(...) *EthermanInterface_EstimateGas_Call
- type EthermanInterface_Expecter
- func (_e *EthermanInterface_Expecter) CheckTxWasMined(ctx interface{}, txHash interface{}) *EthermanInterface_CheckTxWasMined_Call
- func (_e *EthermanInterface_Expecter) CurrentNonce(ctx interface{}, account interface{}) *EthermanInterface_CurrentNonce_Call
- func (_e *EthermanInterface_Expecter) EstimateGas(ctx interface{}, from interface{}, to interface{}, value interface{}, ...) *EthermanInterface_EstimateGas_Call
- func (_e *EthermanInterface_Expecter) EstimateGasBlobTx(ctx interface{}, from interface{}, to interface{}, gasFeeCap interface{}, ...) *EthermanInterface_EstimateGasBlobTx_Call
- func (_e *EthermanInterface_Expecter) GetHeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_GetHeaderByNumber_Call
- func (_e *EthermanInterface_Expecter) GetLatestBlockNumber(ctx interface{}) *EthermanInterface_GetLatestBlockNumber_Call
- func (_e *EthermanInterface_Expecter) GetRevertMessage(ctx interface{}, tx interface{}) *EthermanInterface_GetRevertMessage_Call
- func (_e *EthermanInterface_Expecter) GetSuggestGasTipCap(ctx interface{}) *EthermanInterface_GetSuggestGasTipCap_Call
- func (_e *EthermanInterface_Expecter) GetTx(ctx interface{}, txHash interface{}) *EthermanInterface_GetTx_Call
- func (_e *EthermanInterface_Expecter) GetTxReceipt(ctx interface{}, txHash interface{}) *EthermanInterface_GetTxReceipt_Call
- func (_e *EthermanInterface_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_HeaderByNumber_Call
- func (_e *EthermanInterface_Expecter) PendingNonce(ctx interface{}, account interface{}) *EthermanInterface_PendingNonce_Call
- func (_e *EthermanInterface_Expecter) PublicAddress() *EthermanInterface_PublicAddress_Call
- func (_e *EthermanInterface_Expecter) SendTx(ctx interface{}, tx interface{}) *EthermanInterface_SendTx_Call
- func (_e *EthermanInterface_Expecter) SignTx(ctx interface{}, sender interface{}, tx interface{}) *EthermanInterface_SignTx_Call
- func (_e *EthermanInterface_Expecter) SuggestedGasPrice(ctx interface{}) *EthermanInterface_SuggestedGasPrice_Call
- func (_e *EthermanInterface_Expecter) WaitTxToBeMined(ctx interface{}, tx interface{}, timeout interface{}) *EthermanInterface_WaitTxToBeMined_Call
- type EthermanInterface_GetHeaderByNumber_Call
- func (_c *EthermanInterface_GetHeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthermanInterface_GetHeaderByNumber_Call
- func (_c *EthermanInterface_GetHeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthermanInterface_GetHeaderByNumber_Call
- func (_c *EthermanInterface_GetHeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthermanInterface_GetHeaderByNumber_Call
- type EthermanInterface_GetLatestBlockNumber_Call
- func (_c *EthermanInterface_GetLatestBlockNumber_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_GetLatestBlockNumber_Call
- func (_c *EthermanInterface_GetLatestBlockNumber_Call) Run(run func(ctx context.Context)) *EthermanInterface_GetLatestBlockNumber_Call
- func (_c *EthermanInterface_GetLatestBlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *EthermanInterface_GetLatestBlockNumber_Call
- type EthermanInterface_GetRevertMessage_Call
- func (_c *EthermanInterface_GetRevertMessage_Call) Return(_a0 string, _a1 error) *EthermanInterface_GetRevertMessage_Call
- func (_c *EthermanInterface_GetRevertMessage_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthermanInterface_GetRevertMessage_Call
- func (_c *EthermanInterface_GetRevertMessage_Call) RunAndReturn(run func(context.Context, *types.Transaction) (string, error)) *EthermanInterface_GetRevertMessage_Call
- type EthermanInterface_GetSuggestGasTipCap_Call
- func (_c *EthermanInterface_GetSuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthermanInterface_GetSuggestGasTipCap_Call
- func (_c *EthermanInterface_GetSuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthermanInterface_GetSuggestGasTipCap_Call
- func (_c *EthermanInterface_GetSuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthermanInterface_GetSuggestGasTipCap_Call
- type EthermanInterface_GetTxReceipt_Call
- func (_c *EthermanInterface_GetTxReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthermanInterface_GetTxReceipt_Call
- func (_c *EthermanInterface_GetTxReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthermanInterface_GetTxReceipt_Call
- func (_c *EthermanInterface_GetTxReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthermanInterface_GetTxReceipt_Call
- type EthermanInterface_GetTx_Call
- func (_c *EthermanInterface_GetTx_Call) Return(_a0 *types.Transaction, _a1 bool, _a2 error) *EthermanInterface_GetTx_Call
- func (_c *EthermanInterface_GetTx_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthermanInterface_GetTx_Call
- func (_c *EthermanInterface_GetTx_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Transaction, bool, error)) *EthermanInterface_GetTx_Call
- type EthermanInterface_HeaderByNumber_Call
- func (_c *EthermanInterface_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthermanInterface_HeaderByNumber_Call
- func (_c *EthermanInterface_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthermanInterface_HeaderByNumber_Call
- func (_c *EthermanInterface_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthermanInterface_HeaderByNumber_Call
- type EthermanInterface_PendingNonce_Call
- func (_c *EthermanInterface_PendingNonce_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_PendingNonce_Call
- func (_c *EthermanInterface_PendingNonce_Call) Run(run func(ctx context.Context, account common.Address)) *EthermanInterface_PendingNonce_Call
- func (_c *EthermanInterface_PendingNonce_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthermanInterface_PendingNonce_Call
- type EthermanInterface_PublicAddress_Call
- func (_c *EthermanInterface_PublicAddress_Call) Return(_a0 []common.Address, _a1 error) *EthermanInterface_PublicAddress_Call
- func (_c *EthermanInterface_PublicAddress_Call) Run(run func()) *EthermanInterface_PublicAddress_Call
- func (_c *EthermanInterface_PublicAddress_Call) RunAndReturn(run func() ([]common.Address, error)) *EthermanInterface_PublicAddress_Call
- type EthermanInterface_SendTx_Call
- func (_c *EthermanInterface_SendTx_Call) Return(_a0 error) *EthermanInterface_SendTx_Call
- func (_c *EthermanInterface_SendTx_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthermanInterface_SendTx_Call
- func (_c *EthermanInterface_SendTx_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthermanInterface_SendTx_Call
- type EthermanInterface_SignTx_Call
- func (_c *EthermanInterface_SignTx_Call) Return(_a0 *types.Transaction, _a1 error) *EthermanInterface_SignTx_Call
- func (_c *EthermanInterface_SignTx_Call) Run(run func(ctx context.Context, sender common.Address, tx *types.Transaction)) *EthermanInterface_SignTx_Call
- func (_c *EthermanInterface_SignTx_Call) RunAndReturn(...) *EthermanInterface_SignTx_Call
- type EthermanInterface_SuggestedGasPrice_Call
- func (_c *EthermanInterface_SuggestedGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthermanInterface_SuggestedGasPrice_Call
- func (_c *EthermanInterface_SuggestedGasPrice_Call) Run(run func(ctx context.Context)) *EthermanInterface_SuggestedGasPrice_Call
- func (_c *EthermanInterface_SuggestedGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthermanInterface_SuggestedGasPrice_Call
- type EthermanInterface_WaitTxToBeMined_Call
- func (_c *EthermanInterface_WaitTxToBeMined_Call) Return(_a0 bool, _a1 error) *EthermanInterface_WaitTxToBeMined_Call
- func (_c *EthermanInterface_WaitTxToBeMined_Call) Run(run func(ctx context.Context, tx *types.Transaction, timeout time.Duration)) *EthermanInterface_WaitTxToBeMined_Call
- func (_c *EthermanInterface_WaitTxToBeMined_Call) RunAndReturn(run func(context.Context, *types.Transaction, time.Duration) (bool, error)) *EthermanInterface_WaitTxToBeMined_Call
- type Signer
- func (_m *Signer) EXPECT() *Signer_Expecter
- func (_m *Signer) Initialize(_a0 context.Context) error
- func (_m *Signer) PublicAddress() common.Address
- func (_m *Signer) SignHash(_a0 context.Context, _a1 common.Hash) ([]byte, error)
- func (_m *Signer) SignTx(ctx context.Context, tx *coretypes.Transaction) (*coretypes.Transaction, error)
- func (_m *Signer) String() string
- type Signer_Expecter
- func (_e *Signer_Expecter) Initialize(_a0 interface{}) *Signer_Initialize_Call
- func (_e *Signer_Expecter) PublicAddress() *Signer_PublicAddress_Call
- func (_e *Signer_Expecter) SignHash(_a0 interface{}, _a1 interface{}) *Signer_SignHash_Call
- func (_e *Signer_Expecter) SignTx(ctx interface{}, tx interface{}) *Signer_SignTx_Call
- func (_e *Signer_Expecter) String() *Signer_String_Call
- type Signer_Initialize_Call
- type Signer_PublicAddress_Call
- type Signer_SignHash_Call
- func (_c *Signer_SignHash_Call) Return(_a0 []byte, _a1 error) *Signer_SignHash_Call
- func (_c *Signer_SignHash_Call) Run(run func(_a0 context.Context, _a1 common.Hash)) *Signer_SignHash_Call
- func (_c *Signer_SignHash_Call) RunAndReturn(run func(context.Context, common.Hash) ([]byte, error)) *Signer_SignHash_Call
- type Signer_SignTx_Call
- type Signer_String_Call
- type StorageInterface
- func (_m *StorageInterface) Add(ctx context.Context, mTx types.MonitoredTx) error
- func (_m *StorageInterface) EXPECT() *StorageInterface_Expecter
- func (_m *StorageInterface) Empty(ctx context.Context) error
- func (_m *StorageInterface) Get(ctx context.Context, id common.Hash) (types.MonitoredTx, error)
- func (_m *StorageInterface) GetByBlock(ctx context.Context, fromBlock *uint64, toBlock *uint64) ([]types.MonitoredTx, error)
- func (_m *StorageInterface) GetByStatus(ctx context.Context, statuses []types.MonitoredTxStatus) ([]types.MonitoredTx, error)
- func (_m *StorageInterface) Remove(ctx context.Context, id common.Hash) error
- func (_m *StorageInterface) Update(ctx context.Context, mTx types.MonitoredTx) error
- type StorageInterface_Add_Call
- func (_c *StorageInterface_Add_Call) Return(_a0 error) *StorageInterface_Add_Call
- func (_c *StorageInterface_Add_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx)) *StorageInterface_Add_Call
- func (_c *StorageInterface_Add_Call) RunAndReturn(run func(context.Context, types.MonitoredTx) error) *StorageInterface_Add_Call
- type StorageInterface_Empty_Call
- func (_c *StorageInterface_Empty_Call) Return(_a0 error) *StorageInterface_Empty_Call
- func (_c *StorageInterface_Empty_Call) Run(run func(ctx context.Context)) *StorageInterface_Empty_Call
- func (_c *StorageInterface_Empty_Call) RunAndReturn(run func(context.Context) error) *StorageInterface_Empty_Call
- type StorageInterface_Expecter
- func (_e *StorageInterface_Expecter) Add(ctx interface{}, mTx interface{}) *StorageInterface_Add_Call
- func (_e *StorageInterface_Expecter) Empty(ctx interface{}) *StorageInterface_Empty_Call
- func (_e *StorageInterface_Expecter) Get(ctx interface{}, id interface{}) *StorageInterface_Get_Call
- func (_e *StorageInterface_Expecter) GetByBlock(ctx interface{}, fromBlock interface{}, toBlock interface{}) *StorageInterface_GetByBlock_Call
- func (_e *StorageInterface_Expecter) GetByStatus(ctx interface{}, statuses interface{}) *StorageInterface_GetByStatus_Call
- func (_e *StorageInterface_Expecter) Remove(ctx interface{}, id interface{}) *StorageInterface_Remove_Call
- func (_e *StorageInterface_Expecter) Update(ctx interface{}, mTx interface{}) *StorageInterface_Update_Call
- type StorageInterface_GetByBlock_Call
- func (_c *StorageInterface_GetByBlock_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageInterface_GetByBlock_Call
- func (_c *StorageInterface_GetByBlock_Call) Run(run func(ctx context.Context, fromBlock *uint64, toBlock *uint64)) *StorageInterface_GetByBlock_Call
- func (_c *StorageInterface_GetByBlock_Call) RunAndReturn(run func(context.Context, *uint64, *uint64) ([]types.MonitoredTx, error)) *StorageInterface_GetByBlock_Call
- type StorageInterface_GetByStatus_Call
- func (_c *StorageInterface_GetByStatus_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageInterface_GetByStatus_Call
- func (_c *StorageInterface_GetByStatus_Call) Run(run func(ctx context.Context, statuses []types.MonitoredTxStatus)) *StorageInterface_GetByStatus_Call
- func (_c *StorageInterface_GetByStatus_Call) RunAndReturn(...) *StorageInterface_GetByStatus_Call
- type StorageInterface_Get_Call
- func (_c *StorageInterface_Get_Call) Return(_a0 types.MonitoredTx, _a1 error) *StorageInterface_Get_Call
- func (_c *StorageInterface_Get_Call) Run(run func(ctx context.Context, id common.Hash)) *StorageInterface_Get_Call
- func (_c *StorageInterface_Get_Call) RunAndReturn(run func(context.Context, common.Hash) (types.MonitoredTx, error)) *StorageInterface_Get_Call
- type StorageInterface_Remove_Call
- func (_c *StorageInterface_Remove_Call) Return(_a0 error) *StorageInterface_Remove_Call
- func (_c *StorageInterface_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *StorageInterface_Remove_Call
- func (_c *StorageInterface_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *StorageInterface_Remove_Call
- type StorageInterface_Update_Call
- func (_c *StorageInterface_Update_Call) Return(_a0 error) *StorageInterface_Update_Call
- func (_c *StorageInterface_Update_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx)) *StorageInterface_Update_Call
- func (_c *StorageInterface_Update_Call) RunAndReturn(run func(context.Context, types.MonitoredTx) error) *StorageInterface_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthereumClient ¶ added in v0.2.6
EthereumClient is an autogenerated mock type for the EthereumClient type
func NewEthereumClient ¶ added in v0.2.6
func NewEthereumClient(t interface {
mock.TestingT
Cleanup(func())
}) *EthereumClient
NewEthereumClient creates a new instance of EthereumClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EthereumClient) BalanceAt ¶ added in v0.2.6
func (_m *EthereumClient) 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 (*EthereumClient) BlockByHash ¶ added in v0.2.6
BlockByHash provides a mock function with given fields: ctx, hash
func (*EthereumClient) BlockByNumber ¶ added in v0.2.6
BlockByNumber provides a mock function with given fields: ctx, number
func (*EthereumClient) CallContract ¶ added in v0.2.6
func (_m *EthereumClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*EthereumClient) ChainID ¶ added in v0.2.8
ChainID provides a mock function with given fields: ctx
func (*EthereumClient) Client ¶ added in v0.2.8
func (_m *EthereumClient) Client() *rpc.Client
Client provides a mock function with no fields
func (*EthereumClient) CodeAt ¶ added in v0.2.6
func (_m *EthereumClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*EthereumClient) EXPECT ¶ added in v0.2.6
func (_m *EthereumClient) EXPECT() *EthereumClient_Expecter
func (*EthereumClient) EstimateGas ¶ added in v0.2.6
EstimateGas provides a mock function with given fields: ctx, call
func (*EthereumClient) HeaderByHash ¶ added in v0.2.6
func (_m *EthereumClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
HeaderByHash provides a mock function with given fields: ctx, hash
func (*EthereumClient) HeaderByNumber ¶ added in v0.2.6
func (_m *EthereumClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*EthereumClient) NonceAt ¶ added in v0.2.6
func (_m *EthereumClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt provides a mock function with given fields: ctx, account, blockNumber
func (*EthereumClient) PendingBalanceAt ¶ added in v0.2.6
func (_m *EthereumClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*EthereumClient) PendingCodeAt ¶ added in v0.2.6
func (_m *EthereumClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
PendingCodeAt provides a mock function with given fields: ctx, account
func (*EthereumClient) PendingNonceAt ¶ added in v0.2.6
func (_m *EthereumClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
PendingNonceAt provides a mock function with given fields: ctx, account
func (*EthereumClient) PendingStorageAt ¶ added in v0.2.6
func (_m *EthereumClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt provides a mock function with given fields: ctx, account, key
func (*EthereumClient) PendingTransactionCount ¶ added in v0.2.6
func (_m *EthereumClient) PendingTransactionCount(ctx context.Context) (uint, error)
PendingTransactionCount provides a mock function with given fields: ctx
func (*EthereumClient) SendTransaction ¶ added in v0.2.6
func (_m *EthereumClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*EthereumClient) StorageAt ¶ added in v0.2.6
func (_m *EthereumClient) 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 (*EthereumClient) SubscribeNewHead ¶ added in v0.2.6
func (_m *EthereumClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*EthereumClient) SuggestGasPrice ¶ added in v0.2.6
SuggestGasPrice provides a mock function with given fields: ctx
func (*EthereumClient) SuggestGasTipCap ¶ added in v0.2.6
SuggestGasTipCap provides a mock function with given fields: ctx
func (*EthereumClient) TransactionByHash ¶ added in v0.2.6
func (_m *EthereumClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
func (*EthereumClient) TransactionCount ¶ added in v0.2.6
func (_m *EthereumClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
TransactionCount provides a mock function with given fields: ctx, blockHash
func (*EthereumClient) TransactionInBlock ¶ added in v0.2.6
func (_m *EthereumClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
func (*EthereumClient) TransactionReceipt ¶ added in v0.2.6
func (_m *EthereumClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
type EthereumClient_BalanceAt_Call ¶ added in v0.2.6
EthereumClient_BalanceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BalanceAt'
func (*EthereumClient_BalanceAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_BalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_BalanceAt_Call
func (*EthereumClient_BalanceAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_BalanceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_BalanceAt_Call
func (*EthereumClient_BalanceAt_Call) RunAndReturn ¶ added in v0.2.6
type EthereumClient_BlockByHash_Call ¶ added in v0.2.6
EthereumClient_BlockByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHash'
func (*EthereumClient_BlockByHash_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *EthereumClient_BlockByHash_Call
func (*EthereumClient_BlockByHash_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClient_BlockByHash_Call
func (*EthereumClient_BlockByHash_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *EthereumClient_BlockByHash_Call
type EthereumClient_BlockByNumber_Call ¶ added in v0.2.6
EthereumClient_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'
func (*EthereumClient_BlockByNumber_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *EthereumClient_BlockByNumber_Call
func (*EthereumClient_BlockByNumber_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClient_BlockByNumber_Call
func (*EthereumClient_BlockByNumber_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *EthereumClient_BlockByNumber_Call
type EthereumClient_CallContract_Call ¶ added in v0.2.6
EthereumClient_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'
func (*EthereumClient_CallContract_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_CallContract_Call) Return(_a0 []byte, _a1 error) *EthereumClient_CallContract_Call
func (*EthereumClient_CallContract_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthereumClient_CallContract_Call
func (*EthereumClient_CallContract_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthereumClient_CallContract_Call
type EthereumClient_ChainID_Call ¶ added in v0.2.8
EthereumClient_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'
func (*EthereumClient_ChainID_Call) Return ¶ added in v0.2.8
func (_c *EthereumClient_ChainID_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_ChainID_Call
func (*EthereumClient_ChainID_Call) Run ¶ added in v0.2.8
func (_c *EthereumClient_ChainID_Call) Run(run func(ctx context.Context)) *EthereumClient_ChainID_Call
func (*EthereumClient_ChainID_Call) RunAndReturn ¶ added in v0.2.8
func (_c *EthereumClient_ChainID_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClient_ChainID_Call
type EthereumClient_Client_Call ¶ added in v0.2.8
EthereumClient_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'
func (*EthereumClient_Client_Call) Return ¶ added in v0.2.8
func (_c *EthereumClient_Client_Call) Return(_a0 *rpc.Client) *EthereumClient_Client_Call
func (*EthereumClient_Client_Call) Run ¶ added in v0.2.8
func (_c *EthereumClient_Client_Call) Run(run func()) *EthereumClient_Client_Call
func (*EthereumClient_Client_Call) RunAndReturn ¶ added in v0.2.8
func (_c *EthereumClient_Client_Call) RunAndReturn(run func() *rpc.Client) *EthereumClient_Client_Call
type EthereumClient_CodeAt_Call ¶ added in v0.2.6
EthereumClient_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'
func (*EthereumClient_CodeAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_CodeAt_Call
func (*EthereumClient_CodeAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_CodeAt_Call
func (*EthereumClient_CodeAt_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthereumClient_CodeAt_Call
type EthereumClient_EstimateGas_Call ¶ added in v0.2.6
EthereumClient_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'
func (*EthereumClient_EstimateGas_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthereumClient_EstimateGas_Call
func (*EthereumClient_EstimateGas_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthereumClient_EstimateGas_Call
func (*EthereumClient_EstimateGas_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthereumClient_EstimateGas_Call
type EthereumClient_Expecter ¶ added in v0.2.6
type EthereumClient_Expecter struct {
// contains filtered or unexported fields
}
func (*EthereumClient_Expecter) BalanceAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_BalanceAt_Call
BalanceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- blockNumber *big.Int
func (*EthereumClient_Expecter) BlockByHash ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthereumClient_BlockByHash_Call
BlockByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthereumClient_Expecter) BlockByNumber ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthereumClient_BlockByNumber_Call
BlockByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthereumClient_Expecter) CallContract ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthereumClient_CallContract_Call
CallContract is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
- blockNumber *big.Int
func (*EthereumClient_Expecter) ChainID ¶ added in v0.2.8
func (_e *EthereumClient_Expecter) ChainID(ctx interface{}) *EthereumClient_ChainID_Call
ChainID is a helper method to define mock.On call
- ctx context.Context
func (*EthereumClient_Expecter) Client ¶ added in v0.2.8
func (_e *EthereumClient_Expecter) Client() *EthereumClient_Client_Call
Client is a helper method to define mock.On call
func (*EthereumClient_Expecter) CodeAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_CodeAt_Call
CodeAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- blockNumber *big.Int
func (*EthereumClient_Expecter) EstimateGas ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthereumClient_EstimateGas_Call
EstimateGas is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
func (*EthereumClient_Expecter) HeaderByHash ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthereumClient_HeaderByHash_Call
HeaderByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthereumClient_Expecter) HeaderByNumber ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthereumClient_HeaderByNumber_Call
HeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthereumClient_Expecter) NonceAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_NonceAt_Call
NonceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- blockNumber *big.Int
func (*EthereumClient_Expecter) PendingBalanceAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) PendingBalanceAt(ctx interface{}, account interface{}) *EthereumClient_PendingBalanceAt_Call
PendingBalanceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthereumClient_Expecter) PendingCodeAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthereumClient_PendingCodeAt_Call
PendingCodeAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthereumClient_Expecter) PendingNonceAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthereumClient_PendingNonceAt_Call
PendingNonceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthereumClient_Expecter) PendingStorageAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) PendingStorageAt(ctx interface{}, account interface{}, key interface{}) *EthereumClient_PendingStorageAt_Call
PendingStorageAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- key common.Hash
func (*EthereumClient_Expecter) PendingTransactionCount ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) PendingTransactionCount(ctx interface{}) *EthereumClient_PendingTransactionCount_Call
PendingTransactionCount is a helper method to define mock.On call
- ctx context.Context
func (*EthereumClient_Expecter) SendTransaction ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthereumClient_SendTransaction_Call
SendTransaction is a helper method to define mock.On call
- ctx context.Context
- tx *types.Transaction
func (*EthereumClient_Expecter) StorageAt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) StorageAt(ctx interface{}, account interface{}, key interface{}, blockNumber interface{}) *EthereumClient_StorageAt_Call
StorageAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- key common.Hash
- blockNumber *big.Int
func (*EthereumClient_Expecter) SubscribeNewHead ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthereumClient_SubscribeNewHead_Call
SubscribeNewHead is a helper method to define mock.On call
- ctx context.Context
- ch chan<- *types.Header
func (*EthereumClient_Expecter) SuggestGasPrice ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) SuggestGasPrice(ctx interface{}) *EthereumClient_SuggestGasPrice_Call
SuggestGasPrice is a helper method to define mock.On call
- ctx context.Context
func (*EthereumClient_Expecter) SuggestGasTipCap ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) SuggestGasTipCap(ctx interface{}) *EthereumClient_SuggestGasTipCap_Call
SuggestGasTipCap is a helper method to define mock.On call
- ctx context.Context
func (*EthereumClient_Expecter) TransactionByHash ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *EthereumClient_TransactionByHash_Call
TransactionByHash is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
func (*EthereumClient_Expecter) TransactionCount ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthereumClient_TransactionCount_Call
TransactionCount is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
func (*EthereumClient_Expecter) TransactionInBlock ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthereumClient_TransactionInBlock_Call
TransactionInBlock is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
- index uint
func (*EthereumClient_Expecter) TransactionReceipt ¶ added in v0.2.6
func (_e *EthereumClient_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthereumClient_TransactionReceipt_Call
TransactionReceipt is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
type EthereumClient_HeaderByHash_Call ¶ added in v0.2.6
EthereumClient_HeaderByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByHash'
func (*EthereumClient_HeaderByHash_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *EthereumClient_HeaderByHash_Call
func (*EthereumClient_HeaderByHash_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClient_HeaderByHash_Call
func (*EthereumClient_HeaderByHash_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *EthereumClient_HeaderByHash_Call
type EthereumClient_HeaderByNumber_Call ¶ added in v0.2.6
EthereumClient_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'
func (*EthereumClient_HeaderByNumber_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthereumClient_HeaderByNumber_Call
func (*EthereumClient_HeaderByNumber_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClient_HeaderByNumber_Call
func (*EthereumClient_HeaderByNumber_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthereumClient_HeaderByNumber_Call
type EthereumClient_NonceAt_Call ¶ added in v0.2.6
EthereumClient_NonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NonceAt'
func (*EthereumClient_NonceAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_NonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClient_NonceAt_Call
func (*EthereumClient_NonceAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_NonceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_NonceAt_Call
func (*EthereumClient_NonceAt_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_NonceAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) (uint64, error)) *EthereumClient_NonceAt_Call
type EthereumClient_PendingBalanceAt_Call ¶ added in v0.2.6
EthereumClient_PendingBalanceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingBalanceAt'
func (*EthereumClient_PendingBalanceAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_PendingBalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_PendingBalanceAt_Call
func (*EthereumClient_PendingBalanceAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_PendingBalanceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClient_PendingBalanceAt_Call
func (*EthereumClient_PendingBalanceAt_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_PendingBalanceAt_Call) RunAndReturn(run func(context.Context, common.Address) (*big.Int, error)) *EthereumClient_PendingBalanceAt_Call
type EthereumClient_PendingCodeAt_Call ¶ added in v0.2.6
EthereumClient_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'
func (*EthereumClient_PendingCodeAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_PendingCodeAt_Call
func (*EthereumClient_PendingCodeAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClient_PendingCodeAt_Call
func (*EthereumClient_PendingCodeAt_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthereumClient_PendingCodeAt_Call
type EthereumClient_PendingNonceAt_Call ¶ added in v0.2.6
EthereumClient_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'
func (*EthereumClient_PendingNonceAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClient_PendingNonceAt_Call
func (*EthereumClient_PendingNonceAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClient_PendingNonceAt_Call
func (*EthereumClient_PendingNonceAt_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthereumClient_PendingNonceAt_Call
type EthereumClient_PendingStorageAt_Call ¶ added in v0.2.6
EthereumClient_PendingStorageAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingStorageAt'
func (*EthereumClient_PendingStorageAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_PendingStorageAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_PendingStorageAt_Call
func (*EthereumClient_PendingStorageAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_PendingStorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash)) *EthereumClient_PendingStorageAt_Call
func (*EthereumClient_PendingStorageAt_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_PendingStorageAt_Call) RunAndReturn(run func(context.Context, common.Address, common.Hash) ([]byte, error)) *EthereumClient_PendingStorageAt_Call
type EthereumClient_PendingTransactionCount_Call ¶ added in v0.2.6
EthereumClient_PendingTransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingTransactionCount'
func (*EthereumClient_PendingTransactionCount_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_PendingTransactionCount_Call) Return(_a0 uint, _a1 error) *EthereumClient_PendingTransactionCount_Call
func (*EthereumClient_PendingTransactionCount_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_PendingTransactionCount_Call) Run(run func(ctx context.Context)) *EthereumClient_PendingTransactionCount_Call
func (*EthereumClient_PendingTransactionCount_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_PendingTransactionCount_Call) RunAndReturn(run func(context.Context) (uint, error)) *EthereumClient_PendingTransactionCount_Call
type EthereumClient_SendTransaction_Call ¶ added in v0.2.6
EthereumClient_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'
func (*EthereumClient_SendTransaction_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_SendTransaction_Call) Return(_a0 error) *EthereumClient_SendTransaction_Call
func (*EthereumClient_SendTransaction_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthereumClient_SendTransaction_Call
func (*EthereumClient_SendTransaction_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthereumClient_SendTransaction_Call
type EthereumClient_StorageAt_Call ¶ added in v0.2.6
EthereumClient_StorageAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StorageAt'
func (*EthereumClient_StorageAt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_StorageAt_Call) Return(_a0 []byte, _a1 error) *EthereumClient_StorageAt_Call
func (*EthereumClient_StorageAt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_StorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int)) *EthereumClient_StorageAt_Call
func (*EthereumClient_StorageAt_Call) RunAndReturn ¶ added in v0.2.6
type EthereumClient_SubscribeNewHead_Call ¶ added in v0.2.6
EthereumClient_SubscribeNewHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeNewHead'
func (*EthereumClient_SubscribeNewHead_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthereumClient_SubscribeNewHead_Call
func (*EthereumClient_SubscribeNewHead_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *EthereumClient_SubscribeNewHead_Call
func (*EthereumClient_SubscribeNewHead_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *EthereumClient_SubscribeNewHead_Call
type EthereumClient_SuggestGasPrice_Call ¶ added in v0.2.6
EthereumClient_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'
func (*EthereumClient_SuggestGasPrice_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_SuggestGasPrice_Call
func (*EthereumClient_SuggestGasPrice_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthereumClient_SuggestGasPrice_Call
func (*EthereumClient_SuggestGasPrice_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClient_SuggestGasPrice_Call
type EthereumClient_SuggestGasTipCap_Call ¶ added in v0.2.6
EthereumClient_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'
func (*EthereumClient_SuggestGasTipCap_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthereumClient_SuggestGasTipCap_Call
func (*EthereumClient_SuggestGasTipCap_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthereumClient_SuggestGasTipCap_Call
func (*EthereumClient_SuggestGasTipCap_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClient_SuggestGasTipCap_Call
type EthereumClient_TransactionByHash_Call ¶ added in v0.2.6
EthereumClient_TransactionByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionByHash'
func (*EthereumClient_TransactionByHash_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_TransactionByHash_Call) Return(tx *types.Transaction, isPending bool, err error) *EthereumClient_TransactionByHash_Call
func (*EthereumClient_TransactionByHash_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_TransactionByHash_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClient_TransactionByHash_Call
func (*EthereumClient_TransactionByHash_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_TransactionByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Transaction, bool, error)) *EthereumClient_TransactionByHash_Call
type EthereumClient_TransactionCount_Call ¶ added in v0.2.6
EthereumClient_TransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionCount'
func (*EthereumClient_TransactionCount_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_TransactionCount_Call) Return(_a0 uint, _a1 error) *EthereumClient_TransactionCount_Call
func (*EthereumClient_TransactionCount_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *EthereumClient_TransactionCount_Call
func (*EthereumClient_TransactionCount_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *EthereumClient_TransactionCount_Call
type EthereumClient_TransactionInBlock_Call ¶ added in v0.2.6
EthereumClient_TransactionInBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionInBlock'
func (*EthereumClient_TransactionInBlock_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *EthereumClient_TransactionInBlock_Call
func (*EthereumClient_TransactionInBlock_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *EthereumClient_TransactionInBlock_Call
func (*EthereumClient_TransactionInBlock_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *EthereumClient_TransactionInBlock_Call
type EthereumClient_TransactionReceipt_Call ¶ added in v0.2.6
EthereumClient_TransactionReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionReceipt'
func (*EthereumClient_TransactionReceipt_Call) Return ¶ added in v0.2.6
func (_c *EthereumClient_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthereumClient_TransactionReceipt_Call
func (*EthereumClient_TransactionReceipt_Call) Run ¶ added in v0.2.6
func (_c *EthereumClient_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClient_TransactionReceipt_Call
func (*EthereumClient_TransactionReceipt_Call) RunAndReturn ¶ added in v0.2.6
func (_c *EthereumClient_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthereumClient_TransactionReceipt_Call
type EthermanInterface ¶
EthermanInterface is an autogenerated mock type for the EthermanInterface type
func NewEthermanInterface ¶
func NewEthermanInterface(t interface {
mock.TestingT
Cleanup(func())
}) *EthermanInterface
NewEthermanInterface creates a new instance of EthermanInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EthermanInterface) CheckTxWasMined ¶
func (_m *EthermanInterface) CheckTxWasMined(ctx context.Context, txHash common.Hash) (bool, *types.Receipt, error)
CheckTxWasMined provides a mock function with given fields: ctx, txHash
func (*EthermanInterface) CurrentNonce ¶
func (_m *EthermanInterface) CurrentNonce(ctx context.Context, account common.Address) (uint64, error)
CurrentNonce provides a mock function with given fields: ctx, account
func (*EthermanInterface) EXPECT ¶
func (_m *EthermanInterface) EXPECT() *EthermanInterface_Expecter
func (*EthermanInterface) EstimateGas ¶
func (_m *EthermanInterface) EstimateGas(ctx context.Context, from common.Address, to *common.Address, value *big.Int, data []byte) (uint64, error)
EstimateGas provides a mock function with given fields: ctx, from, to, value, data
func (*EthermanInterface) EstimateGasBlobTx ¶
func (_m *EthermanInterface) EstimateGasBlobTx(ctx context.Context, from common.Address, to *common.Address, gasFeeCap *big.Int, gasTipCap *big.Int, value *big.Int, data []byte) (uint64, error)
EstimateGasBlobTx provides a mock function with given fields: ctx, from, to, gasFeeCap, gasTipCap, value, data
func (*EthermanInterface) GetHeaderByNumber ¶
func (_m *EthermanInterface) GetHeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
GetHeaderByNumber provides a mock function with given fields: ctx, number
func (*EthermanInterface) GetLatestBlockNumber ¶
func (_m *EthermanInterface) GetLatestBlockNumber(ctx context.Context) (uint64, error)
GetLatestBlockNumber provides a mock function with given fields: ctx
func (*EthermanInterface) GetRevertMessage ¶
func (_m *EthermanInterface) GetRevertMessage(ctx context.Context, tx *types.Transaction) (string, error)
GetRevertMessage provides a mock function with given fields: ctx, tx
func (*EthermanInterface) GetSuggestGasTipCap ¶
GetSuggestGasTipCap provides a mock function with given fields: ctx
func (*EthermanInterface) GetTx ¶
func (_m *EthermanInterface) GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
GetTx provides a mock function with given fields: ctx, txHash
func (*EthermanInterface) GetTxReceipt ¶
func (_m *EthermanInterface) GetTxReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
GetTxReceipt provides a mock function with given fields: ctx, txHash
func (*EthermanInterface) HeaderByNumber ¶
func (_m *EthermanInterface) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*EthermanInterface) PendingNonce ¶
func (_m *EthermanInterface) PendingNonce(ctx context.Context, account common.Address) (uint64, error)
PendingNonce provides a mock function with given fields: ctx, account
func (*EthermanInterface) PublicAddress ¶ added in v0.2.8
func (_m *EthermanInterface) PublicAddress() ([]common.Address, error)
PublicAddress provides a mock function with no fields
func (*EthermanInterface) SendTx ¶
func (_m *EthermanInterface) SendTx(ctx context.Context, tx *types.Transaction) error
SendTx provides a mock function with given fields: ctx, tx
func (*EthermanInterface) SignTx ¶
func (_m *EthermanInterface) SignTx(ctx context.Context, sender common.Address, tx *types.Transaction) (*types.Transaction, error)
SignTx provides a mock function with given fields: ctx, sender, tx
func (*EthermanInterface) SuggestedGasPrice ¶
SuggestedGasPrice provides a mock function with given fields: ctx
func (*EthermanInterface) WaitTxToBeMined ¶
func (_m *EthermanInterface) WaitTxToBeMined(ctx context.Context, tx *types.Transaction, timeout time.Duration) (bool, error)
WaitTxToBeMined provides a mock function with given fields: ctx, tx, timeout
type EthermanInterface_CheckTxWasMined_Call ¶
EthermanInterface_CheckTxWasMined_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckTxWasMined'
func (*EthermanInterface_CheckTxWasMined_Call) Return ¶
func (_c *EthermanInterface_CheckTxWasMined_Call) Return(_a0 bool, _a1 *types.Receipt, _a2 error) *EthermanInterface_CheckTxWasMined_Call
func (*EthermanInterface_CheckTxWasMined_Call) Run ¶
func (_c *EthermanInterface_CheckTxWasMined_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthermanInterface_CheckTxWasMined_Call
func (*EthermanInterface_CheckTxWasMined_Call) RunAndReturn ¶
func (_c *EthermanInterface_CheckTxWasMined_Call) RunAndReturn(run func(context.Context, common.Hash) (bool, *types.Receipt, error)) *EthermanInterface_CheckTxWasMined_Call
type EthermanInterface_CurrentNonce_Call ¶
EthermanInterface_CurrentNonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentNonce'
func (*EthermanInterface_CurrentNonce_Call) Return ¶
func (_c *EthermanInterface_CurrentNonce_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_CurrentNonce_Call
func (*EthermanInterface_CurrentNonce_Call) Run ¶
func (_c *EthermanInterface_CurrentNonce_Call) Run(run func(ctx context.Context, account common.Address)) *EthermanInterface_CurrentNonce_Call
func (*EthermanInterface_CurrentNonce_Call) RunAndReturn ¶
func (_c *EthermanInterface_CurrentNonce_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthermanInterface_CurrentNonce_Call
type EthermanInterface_EstimateGasBlobTx_Call ¶
EthermanInterface_EstimateGasBlobTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGasBlobTx'
func (*EthermanInterface_EstimateGasBlobTx_Call) Return ¶
func (_c *EthermanInterface_EstimateGasBlobTx_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_EstimateGasBlobTx_Call
type EthermanInterface_EstimateGas_Call ¶
EthermanInterface_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'
func (*EthermanInterface_EstimateGas_Call) Return ¶
func (_c *EthermanInterface_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_EstimateGas_Call
func (*EthermanInterface_EstimateGas_Call) RunAndReturn ¶
type EthermanInterface_Expecter ¶
type EthermanInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*EthermanInterface_Expecter) CheckTxWasMined ¶
func (_e *EthermanInterface_Expecter) CheckTxWasMined(ctx interface{}, txHash interface{}) *EthermanInterface_CheckTxWasMined_Call
CheckTxWasMined is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
func (*EthermanInterface_Expecter) CurrentNonce ¶
func (_e *EthermanInterface_Expecter) CurrentNonce(ctx interface{}, account interface{}) *EthermanInterface_CurrentNonce_Call
CurrentNonce is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthermanInterface_Expecter) EstimateGas ¶
func (_e *EthermanInterface_Expecter) EstimateGas(ctx interface{}, from interface{}, to interface{}, value interface{}, data interface{}) *EthermanInterface_EstimateGas_Call
EstimateGas is a helper method to define mock.On call
- ctx context.Context
- from common.Address
- to *common.Address
- value *big.Int
- data []byte
func (*EthermanInterface_Expecter) EstimateGasBlobTx ¶
func (_e *EthermanInterface_Expecter) EstimateGasBlobTx(ctx interface{}, from interface{}, to interface{}, gasFeeCap interface{}, gasTipCap interface{}, value interface{}, data interface{}) *EthermanInterface_EstimateGasBlobTx_Call
EstimateGasBlobTx is a helper method to define mock.On call
- ctx context.Context
- from common.Address
- to *common.Address
- gasFeeCap *big.Int
- gasTipCap *big.Int
- value *big.Int
- data []byte
func (*EthermanInterface_Expecter) GetHeaderByNumber ¶
func (_e *EthermanInterface_Expecter) GetHeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_GetHeaderByNumber_Call
GetHeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthermanInterface_Expecter) GetLatestBlockNumber ¶
func (_e *EthermanInterface_Expecter) GetLatestBlockNumber(ctx interface{}) *EthermanInterface_GetLatestBlockNumber_Call
GetLatestBlockNumber is a helper method to define mock.On call
- ctx context.Context
func (*EthermanInterface_Expecter) GetRevertMessage ¶
func (_e *EthermanInterface_Expecter) GetRevertMessage(ctx interface{}, tx interface{}) *EthermanInterface_GetRevertMessage_Call
GetRevertMessage is a helper method to define mock.On call
- ctx context.Context
- tx *types.Transaction
func (*EthermanInterface_Expecter) GetSuggestGasTipCap ¶
func (_e *EthermanInterface_Expecter) GetSuggestGasTipCap(ctx interface{}) *EthermanInterface_GetSuggestGasTipCap_Call
GetSuggestGasTipCap is a helper method to define mock.On call
- ctx context.Context
func (*EthermanInterface_Expecter) GetTx ¶
func (_e *EthermanInterface_Expecter) GetTx(ctx interface{}, txHash interface{}) *EthermanInterface_GetTx_Call
GetTx is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
func (*EthermanInterface_Expecter) GetTxReceipt ¶
func (_e *EthermanInterface_Expecter) GetTxReceipt(ctx interface{}, txHash interface{}) *EthermanInterface_GetTxReceipt_Call
GetTxReceipt is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
func (*EthermanInterface_Expecter) HeaderByNumber ¶
func (_e *EthermanInterface_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_HeaderByNumber_Call
HeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthermanInterface_Expecter) PendingNonce ¶
func (_e *EthermanInterface_Expecter) PendingNonce(ctx interface{}, account interface{}) *EthermanInterface_PendingNonce_Call
PendingNonce is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthermanInterface_Expecter) PublicAddress ¶ added in v0.2.8
func (_e *EthermanInterface_Expecter) PublicAddress() *EthermanInterface_PublicAddress_Call
PublicAddress is a helper method to define mock.On call
func (*EthermanInterface_Expecter) SendTx ¶
func (_e *EthermanInterface_Expecter) SendTx(ctx interface{}, tx interface{}) *EthermanInterface_SendTx_Call
SendTx is a helper method to define mock.On call
- ctx context.Context
- tx *types.Transaction
func (*EthermanInterface_Expecter) SignTx ¶
func (_e *EthermanInterface_Expecter) SignTx(ctx interface{}, sender interface{}, tx interface{}) *EthermanInterface_SignTx_Call
SignTx is a helper method to define mock.On call
- ctx context.Context
- sender common.Address
- tx *types.Transaction
func (*EthermanInterface_Expecter) SuggestedGasPrice ¶
func (_e *EthermanInterface_Expecter) SuggestedGasPrice(ctx interface{}) *EthermanInterface_SuggestedGasPrice_Call
SuggestedGasPrice is a helper method to define mock.On call
- ctx context.Context
func (*EthermanInterface_Expecter) WaitTxToBeMined ¶
func (_e *EthermanInterface_Expecter) WaitTxToBeMined(ctx interface{}, tx interface{}, timeout interface{}) *EthermanInterface_WaitTxToBeMined_Call
WaitTxToBeMined is a helper method to define mock.On call
- ctx context.Context
- tx *types.Transaction
- timeout time.Duration
type EthermanInterface_GetHeaderByNumber_Call ¶
EthermanInterface_GetHeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHeaderByNumber'
func (*EthermanInterface_GetHeaderByNumber_Call) Return ¶
func (_c *EthermanInterface_GetHeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthermanInterface_GetHeaderByNumber_Call
func (*EthermanInterface_GetHeaderByNumber_Call) Run ¶
func (_c *EthermanInterface_GetHeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthermanInterface_GetHeaderByNumber_Call
func (*EthermanInterface_GetHeaderByNumber_Call) RunAndReturn ¶
func (_c *EthermanInterface_GetHeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthermanInterface_GetHeaderByNumber_Call
type EthermanInterface_GetLatestBlockNumber_Call ¶
EthermanInterface_GetLatestBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlockNumber'
func (*EthermanInterface_GetLatestBlockNumber_Call) Return ¶
func (_c *EthermanInterface_GetLatestBlockNumber_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_GetLatestBlockNumber_Call
func (*EthermanInterface_GetLatestBlockNumber_Call) Run ¶
func (_c *EthermanInterface_GetLatestBlockNumber_Call) Run(run func(ctx context.Context)) *EthermanInterface_GetLatestBlockNumber_Call
func (*EthermanInterface_GetLatestBlockNumber_Call) RunAndReturn ¶
func (_c *EthermanInterface_GetLatestBlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *EthermanInterface_GetLatestBlockNumber_Call
type EthermanInterface_GetRevertMessage_Call ¶
EthermanInterface_GetRevertMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRevertMessage'
func (*EthermanInterface_GetRevertMessage_Call) Return ¶
func (_c *EthermanInterface_GetRevertMessage_Call) Return(_a0 string, _a1 error) *EthermanInterface_GetRevertMessage_Call
func (*EthermanInterface_GetRevertMessage_Call) Run ¶
func (_c *EthermanInterface_GetRevertMessage_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthermanInterface_GetRevertMessage_Call
func (*EthermanInterface_GetRevertMessage_Call) RunAndReturn ¶
func (_c *EthermanInterface_GetRevertMessage_Call) RunAndReturn(run func(context.Context, *types.Transaction) (string, error)) *EthermanInterface_GetRevertMessage_Call
type EthermanInterface_GetSuggestGasTipCap_Call ¶
EthermanInterface_GetSuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSuggestGasTipCap'
func (*EthermanInterface_GetSuggestGasTipCap_Call) Return ¶
func (_c *EthermanInterface_GetSuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthermanInterface_GetSuggestGasTipCap_Call
func (*EthermanInterface_GetSuggestGasTipCap_Call) Run ¶
func (_c *EthermanInterface_GetSuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthermanInterface_GetSuggestGasTipCap_Call
func (*EthermanInterface_GetSuggestGasTipCap_Call) RunAndReturn ¶
func (_c *EthermanInterface_GetSuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthermanInterface_GetSuggestGasTipCap_Call
type EthermanInterface_GetTxReceipt_Call ¶
EthermanInterface_GetTxReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTxReceipt'
func (*EthermanInterface_GetTxReceipt_Call) Return ¶
func (_c *EthermanInterface_GetTxReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthermanInterface_GetTxReceipt_Call
func (*EthermanInterface_GetTxReceipt_Call) Run ¶
func (_c *EthermanInterface_GetTxReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthermanInterface_GetTxReceipt_Call
func (*EthermanInterface_GetTxReceipt_Call) RunAndReturn ¶
func (_c *EthermanInterface_GetTxReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthermanInterface_GetTxReceipt_Call
type EthermanInterface_GetTx_Call ¶
EthermanInterface_GetTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTx'
func (*EthermanInterface_GetTx_Call) Return ¶
func (_c *EthermanInterface_GetTx_Call) Return(_a0 *types.Transaction, _a1 bool, _a2 error) *EthermanInterface_GetTx_Call
func (*EthermanInterface_GetTx_Call) Run ¶
func (_c *EthermanInterface_GetTx_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthermanInterface_GetTx_Call
func (*EthermanInterface_GetTx_Call) RunAndReturn ¶
func (_c *EthermanInterface_GetTx_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Transaction, bool, error)) *EthermanInterface_GetTx_Call
type EthermanInterface_HeaderByNumber_Call ¶
EthermanInterface_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'
func (*EthermanInterface_HeaderByNumber_Call) Return ¶
func (_c *EthermanInterface_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthermanInterface_HeaderByNumber_Call
func (*EthermanInterface_HeaderByNumber_Call) Run ¶
func (_c *EthermanInterface_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthermanInterface_HeaderByNumber_Call
func (*EthermanInterface_HeaderByNumber_Call) RunAndReturn ¶
func (_c *EthermanInterface_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthermanInterface_HeaderByNumber_Call
type EthermanInterface_PendingNonce_Call ¶
EthermanInterface_PendingNonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonce'
func (*EthermanInterface_PendingNonce_Call) Return ¶
func (_c *EthermanInterface_PendingNonce_Call) Return(_a0 uint64, _a1 error) *EthermanInterface_PendingNonce_Call
func (*EthermanInterface_PendingNonce_Call) Run ¶
func (_c *EthermanInterface_PendingNonce_Call) Run(run func(ctx context.Context, account common.Address)) *EthermanInterface_PendingNonce_Call
func (*EthermanInterface_PendingNonce_Call) RunAndReturn ¶
func (_c *EthermanInterface_PendingNonce_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthermanInterface_PendingNonce_Call
type EthermanInterface_PublicAddress_Call ¶ added in v0.2.8
EthermanInterface_PublicAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublicAddress'
func (*EthermanInterface_PublicAddress_Call) Return ¶ added in v0.2.8
func (_c *EthermanInterface_PublicAddress_Call) Return(_a0 []common.Address, _a1 error) *EthermanInterface_PublicAddress_Call
func (*EthermanInterface_PublicAddress_Call) Run ¶ added in v0.2.8
func (_c *EthermanInterface_PublicAddress_Call) Run(run func()) *EthermanInterface_PublicAddress_Call
func (*EthermanInterface_PublicAddress_Call) RunAndReturn ¶ added in v0.2.8
func (_c *EthermanInterface_PublicAddress_Call) RunAndReturn(run func() ([]common.Address, error)) *EthermanInterface_PublicAddress_Call
type EthermanInterface_SendTx_Call ¶
EthermanInterface_SendTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTx'
func (*EthermanInterface_SendTx_Call) Return ¶
func (_c *EthermanInterface_SendTx_Call) Return(_a0 error) *EthermanInterface_SendTx_Call
func (*EthermanInterface_SendTx_Call) Run ¶
func (_c *EthermanInterface_SendTx_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthermanInterface_SendTx_Call
func (*EthermanInterface_SendTx_Call) RunAndReturn ¶
func (_c *EthermanInterface_SendTx_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthermanInterface_SendTx_Call
type EthermanInterface_SignTx_Call ¶
EthermanInterface_SignTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignTx'
func (*EthermanInterface_SignTx_Call) Return ¶
func (_c *EthermanInterface_SignTx_Call) Return(_a0 *types.Transaction, _a1 error) *EthermanInterface_SignTx_Call
func (*EthermanInterface_SignTx_Call) Run ¶
func (_c *EthermanInterface_SignTx_Call) Run(run func(ctx context.Context, sender common.Address, tx *types.Transaction)) *EthermanInterface_SignTx_Call
func (*EthermanInterface_SignTx_Call) RunAndReturn ¶
func (_c *EthermanInterface_SignTx_Call) RunAndReturn(run func(context.Context, common.Address, *types.Transaction) (*types.Transaction, error)) *EthermanInterface_SignTx_Call
type EthermanInterface_SuggestedGasPrice_Call ¶
EthermanInterface_SuggestedGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestedGasPrice'
func (*EthermanInterface_SuggestedGasPrice_Call) Return ¶
func (_c *EthermanInterface_SuggestedGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthermanInterface_SuggestedGasPrice_Call
func (*EthermanInterface_SuggestedGasPrice_Call) Run ¶
func (_c *EthermanInterface_SuggestedGasPrice_Call) Run(run func(ctx context.Context)) *EthermanInterface_SuggestedGasPrice_Call
func (*EthermanInterface_SuggestedGasPrice_Call) RunAndReturn ¶
func (_c *EthermanInterface_SuggestedGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthermanInterface_SuggestedGasPrice_Call
type EthermanInterface_WaitTxToBeMined_Call ¶
EthermanInterface_WaitTxToBeMined_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitTxToBeMined'
func (*EthermanInterface_WaitTxToBeMined_Call) Return ¶
func (_c *EthermanInterface_WaitTxToBeMined_Call) Return(_a0 bool, _a1 error) *EthermanInterface_WaitTxToBeMined_Call
func (*EthermanInterface_WaitTxToBeMined_Call) Run ¶
func (_c *EthermanInterface_WaitTxToBeMined_Call) Run(run func(ctx context.Context, tx *types.Transaction, timeout time.Duration)) *EthermanInterface_WaitTxToBeMined_Call
func (*EthermanInterface_WaitTxToBeMined_Call) RunAndReturn ¶
func (_c *EthermanInterface_WaitTxToBeMined_Call) RunAndReturn(run func(context.Context, *types.Transaction, time.Duration) (bool, error)) *EthermanInterface_WaitTxToBeMined_Call
type Signer ¶ added in v0.2.8
Signer is an autogenerated mock type for the Signer type
func NewSigner ¶ added in v0.2.8
NewSigner creates a new instance of Signer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Signer) EXPECT ¶ added in v0.2.8
func (_m *Signer) EXPECT() *Signer_Expecter
func (*Signer) Initialize ¶ added in v0.2.8
Initialize provides a mock function with given fields: _a0
func (*Signer) PublicAddress ¶ added in v0.2.8
PublicAddress provides a mock function with no fields
func (*Signer) SignHash ¶ added in v0.2.8
SignHash provides a mock function with given fields: _a0, _a1
func (*Signer) SignTx ¶ added in v0.2.8
func (_m *Signer) SignTx(ctx context.Context, tx *coretypes.Transaction) (*coretypes.Transaction, error)
SignTx provides a mock function with given fields: ctx, tx
type Signer_Expecter ¶ added in v0.2.8
type Signer_Expecter struct {
// contains filtered or unexported fields
}
func (*Signer_Expecter) Initialize ¶ added in v0.2.8
func (_e *Signer_Expecter) Initialize(_a0 interface{}) *Signer_Initialize_Call
Initialize is a helper method to define mock.On call
- _a0 context.Context
func (*Signer_Expecter) PublicAddress ¶ added in v0.2.8
func (_e *Signer_Expecter) PublicAddress() *Signer_PublicAddress_Call
PublicAddress is a helper method to define mock.On call
func (*Signer_Expecter) SignHash ¶ added in v0.2.8
func (_e *Signer_Expecter) SignHash(_a0 interface{}, _a1 interface{}) *Signer_SignHash_Call
SignHash is a helper method to define mock.On call
- _a0 context.Context
- _a1 common.Hash
func (*Signer_Expecter) SignTx ¶ added in v0.2.8
func (_e *Signer_Expecter) SignTx(ctx interface{}, tx interface{}) *Signer_SignTx_Call
SignTx is a helper method to define mock.On call
- ctx context.Context
- tx *coretypes.Transaction
func (*Signer_Expecter) String ¶ added in v0.2.8
func (_e *Signer_Expecter) String() *Signer_String_Call
String is a helper method to define mock.On call
type Signer_Initialize_Call ¶ added in v0.2.8
Signer_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'
func (*Signer_Initialize_Call) Return ¶ added in v0.2.8
func (_c *Signer_Initialize_Call) Return(_a0 error) *Signer_Initialize_Call
func (*Signer_Initialize_Call) Run ¶ added in v0.2.8
func (_c *Signer_Initialize_Call) Run(run func(_a0 context.Context)) *Signer_Initialize_Call
func (*Signer_Initialize_Call) RunAndReturn ¶ added in v0.2.8
func (_c *Signer_Initialize_Call) RunAndReturn(run func(context.Context) error) *Signer_Initialize_Call
type Signer_PublicAddress_Call ¶ added in v0.2.8
Signer_PublicAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublicAddress'
func (*Signer_PublicAddress_Call) Return ¶ added in v0.2.8
func (_c *Signer_PublicAddress_Call) Return(_a0 common.Address) *Signer_PublicAddress_Call
func (*Signer_PublicAddress_Call) Run ¶ added in v0.2.8
func (_c *Signer_PublicAddress_Call) Run(run func()) *Signer_PublicAddress_Call
func (*Signer_PublicAddress_Call) RunAndReturn ¶ added in v0.2.8
func (_c *Signer_PublicAddress_Call) RunAndReturn(run func() common.Address) *Signer_PublicAddress_Call
type Signer_SignHash_Call ¶ added in v0.2.8
Signer_SignHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignHash'
func (*Signer_SignHash_Call) Return ¶ added in v0.2.8
func (_c *Signer_SignHash_Call) Return(_a0 []byte, _a1 error) *Signer_SignHash_Call
func (*Signer_SignHash_Call) Run ¶ added in v0.2.8
func (_c *Signer_SignHash_Call) Run(run func(_a0 context.Context, _a1 common.Hash)) *Signer_SignHash_Call
func (*Signer_SignHash_Call) RunAndReturn ¶ added in v0.2.8
func (_c *Signer_SignHash_Call) RunAndReturn(run func(context.Context, common.Hash) ([]byte, error)) *Signer_SignHash_Call
type Signer_SignTx_Call ¶ added in v0.2.8
Signer_SignTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignTx'
func (*Signer_SignTx_Call) Return ¶ added in v0.2.8
func (_c *Signer_SignTx_Call) Return(_a0 *coretypes.Transaction, _a1 error) *Signer_SignTx_Call
func (*Signer_SignTx_Call) Run ¶ added in v0.2.8
func (_c *Signer_SignTx_Call) Run(run func(ctx context.Context, tx *coretypes.Transaction)) *Signer_SignTx_Call
func (*Signer_SignTx_Call) RunAndReturn ¶ added in v0.2.8
func (_c *Signer_SignTx_Call) RunAndReturn(run func(context.Context, *coretypes.Transaction) (*coretypes.Transaction, error)) *Signer_SignTx_Call
type Signer_String_Call ¶ added in v0.2.8
Signer_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*Signer_String_Call) Return ¶ added in v0.2.8
func (_c *Signer_String_Call) Return(_a0 string) *Signer_String_Call
func (*Signer_String_Call) Run ¶ added in v0.2.8
func (_c *Signer_String_Call) Run(run func()) *Signer_String_Call
func (*Signer_String_Call) RunAndReturn ¶ added in v0.2.8
func (_c *Signer_String_Call) RunAndReturn(run func() string) *Signer_String_Call
type StorageInterface ¶ added in v0.2.7
StorageInterface is an autogenerated mock type for the StorageInterface type
func NewStorageInterface ¶ added in v0.2.7
func NewStorageInterface(t interface {
mock.TestingT
Cleanup(func())
}) *StorageInterface
NewStorageInterface creates a new instance of StorageInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StorageInterface) Add ¶ added in v0.2.7
func (_m *StorageInterface) Add(ctx context.Context, mTx types.MonitoredTx) error
Add provides a mock function with given fields: ctx, mTx
func (*StorageInterface) EXPECT ¶ added in v0.2.7
func (_m *StorageInterface) EXPECT() *StorageInterface_Expecter
func (*StorageInterface) Empty ¶ added in v0.2.7
func (_m *StorageInterface) Empty(ctx context.Context) error
Empty provides a mock function with given fields: ctx
func (*StorageInterface) Get ¶ added in v0.2.7
func (_m *StorageInterface) Get(ctx context.Context, id common.Hash) (types.MonitoredTx, error)
Get provides a mock function with given fields: ctx, id
func (*StorageInterface) GetByBlock ¶ added in v0.2.7
func (_m *StorageInterface) GetByBlock(ctx context.Context, fromBlock *uint64, toBlock *uint64) ([]types.MonitoredTx, error)
GetByBlock provides a mock function with given fields: ctx, fromBlock, toBlock
func (*StorageInterface) GetByStatus ¶ added in v0.2.7
func (_m *StorageInterface) GetByStatus(ctx context.Context, statuses []types.MonitoredTxStatus) ([]types.MonitoredTx, error)
GetByStatus provides a mock function with given fields: ctx, statuses
func (*StorageInterface) Remove ¶ added in v0.2.7
Remove provides a mock function with given fields: ctx, id
func (*StorageInterface) Update ¶ added in v0.2.7
func (_m *StorageInterface) Update(ctx context.Context, mTx types.MonitoredTx) error
Update provides a mock function with given fields: ctx, mTx
type StorageInterface_Add_Call ¶ added in v0.2.7
StorageInterface_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*StorageInterface_Add_Call) Return ¶ added in v0.2.7
func (_c *StorageInterface_Add_Call) Return(_a0 error) *StorageInterface_Add_Call
func (*StorageInterface_Add_Call) Run ¶ added in v0.2.7
func (_c *StorageInterface_Add_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx)) *StorageInterface_Add_Call
func (*StorageInterface_Add_Call) RunAndReturn ¶ added in v0.2.7
func (_c *StorageInterface_Add_Call) RunAndReturn(run func(context.Context, types.MonitoredTx) error) *StorageInterface_Add_Call
type StorageInterface_Empty_Call ¶ added in v0.2.7
StorageInterface_Empty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Empty'
func (*StorageInterface_Empty_Call) Return ¶ added in v0.2.7
func (_c *StorageInterface_Empty_Call) Return(_a0 error) *StorageInterface_Empty_Call
func (*StorageInterface_Empty_Call) Run ¶ added in v0.2.7
func (_c *StorageInterface_Empty_Call) Run(run func(ctx context.Context)) *StorageInterface_Empty_Call
func (*StorageInterface_Empty_Call) RunAndReturn ¶ added in v0.2.7
func (_c *StorageInterface_Empty_Call) RunAndReturn(run func(context.Context) error) *StorageInterface_Empty_Call
type StorageInterface_Expecter ¶ added in v0.2.7
type StorageInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*StorageInterface_Expecter) Add ¶ added in v0.2.7
func (_e *StorageInterface_Expecter) Add(ctx interface{}, mTx interface{}) *StorageInterface_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- mTx types.MonitoredTx
func (*StorageInterface_Expecter) Empty ¶ added in v0.2.7
func (_e *StorageInterface_Expecter) Empty(ctx interface{}) *StorageInterface_Empty_Call
Empty is a helper method to define mock.On call
- ctx context.Context
func (*StorageInterface_Expecter) Get ¶ added in v0.2.7
func (_e *StorageInterface_Expecter) Get(ctx interface{}, id interface{}) *StorageInterface_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id common.Hash
func (*StorageInterface_Expecter) GetByBlock ¶ added in v0.2.7
func (_e *StorageInterface_Expecter) GetByBlock(ctx interface{}, fromBlock interface{}, toBlock interface{}) *StorageInterface_GetByBlock_Call
GetByBlock is a helper method to define mock.On call
- ctx context.Context
- fromBlock *uint64
- toBlock *uint64
func (*StorageInterface_Expecter) GetByStatus ¶ added in v0.2.7
func (_e *StorageInterface_Expecter) GetByStatus(ctx interface{}, statuses interface{}) *StorageInterface_GetByStatus_Call
GetByStatus is a helper method to define mock.On call
- ctx context.Context
- statuses []types.MonitoredTxStatus
func (*StorageInterface_Expecter) Remove ¶ added in v0.2.7
func (_e *StorageInterface_Expecter) Remove(ctx interface{}, id interface{}) *StorageInterface_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- id common.Hash
func (*StorageInterface_Expecter) Update ¶ added in v0.2.7
func (_e *StorageInterface_Expecter) Update(ctx interface{}, mTx interface{}) *StorageInterface_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- mTx types.MonitoredTx
type StorageInterface_GetByBlock_Call ¶ added in v0.2.7
StorageInterface_GetByBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByBlock'
func (*StorageInterface_GetByBlock_Call) Return ¶ added in v0.2.7
func (_c *StorageInterface_GetByBlock_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageInterface_GetByBlock_Call
func (*StorageInterface_GetByBlock_Call) Run ¶ added in v0.2.7
func (_c *StorageInterface_GetByBlock_Call) Run(run func(ctx context.Context, fromBlock *uint64, toBlock *uint64)) *StorageInterface_GetByBlock_Call
func (*StorageInterface_GetByBlock_Call) RunAndReturn ¶ added in v0.2.7
func (_c *StorageInterface_GetByBlock_Call) RunAndReturn(run func(context.Context, *uint64, *uint64) ([]types.MonitoredTx, error)) *StorageInterface_GetByBlock_Call
type StorageInterface_GetByStatus_Call ¶ added in v0.2.7
StorageInterface_GetByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByStatus'
func (*StorageInterface_GetByStatus_Call) Return ¶ added in v0.2.7
func (_c *StorageInterface_GetByStatus_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageInterface_GetByStatus_Call
func (*StorageInterface_GetByStatus_Call) Run ¶ added in v0.2.7
func (_c *StorageInterface_GetByStatus_Call) Run(run func(ctx context.Context, statuses []types.MonitoredTxStatus)) *StorageInterface_GetByStatus_Call
func (*StorageInterface_GetByStatus_Call) RunAndReturn ¶ added in v0.2.7
func (_c *StorageInterface_GetByStatus_Call) RunAndReturn(run func(context.Context, []types.MonitoredTxStatus) ([]types.MonitoredTx, error)) *StorageInterface_GetByStatus_Call
type StorageInterface_Get_Call ¶ added in v0.2.7
StorageInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*StorageInterface_Get_Call) Return ¶ added in v0.2.7
func (_c *StorageInterface_Get_Call) Return(_a0 types.MonitoredTx, _a1 error) *StorageInterface_Get_Call
func (*StorageInterface_Get_Call) Run ¶ added in v0.2.7
func (_c *StorageInterface_Get_Call) Run(run func(ctx context.Context, id common.Hash)) *StorageInterface_Get_Call
func (*StorageInterface_Get_Call) RunAndReturn ¶ added in v0.2.7
func (_c *StorageInterface_Get_Call) RunAndReturn(run func(context.Context, common.Hash) (types.MonitoredTx, error)) *StorageInterface_Get_Call
type StorageInterface_Remove_Call ¶ added in v0.2.7
StorageInterface_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*StorageInterface_Remove_Call) Return ¶ added in v0.2.7
func (_c *StorageInterface_Remove_Call) Return(_a0 error) *StorageInterface_Remove_Call
func (*StorageInterface_Remove_Call) Run ¶ added in v0.2.7
func (_c *StorageInterface_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *StorageInterface_Remove_Call
func (*StorageInterface_Remove_Call) RunAndReturn ¶ added in v0.2.7
func (_c *StorageInterface_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *StorageInterface_Remove_Call
type StorageInterface_Update_Call ¶ added in v0.2.7
StorageInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*StorageInterface_Update_Call) Return ¶ added in v0.2.7
func (_c *StorageInterface_Update_Call) Return(_a0 error) *StorageInterface_Update_Call
func (*StorageInterface_Update_Call) Run ¶ added in v0.2.7
func (_c *StorageInterface_Update_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx)) *StorageInterface_Update_Call
func (*StorageInterface_Update_Call) RunAndReturn ¶ added in v0.2.7
func (_c *StorageInterface_Update_Call) RunAndReturn(run func(context.Context, types.MonitoredTx) error) *StorageInterface_Update_Call