Documentation ¶
Index ¶
- type DBMock
- type DBMock_BeginStateTransaction_Call
- func (_c *DBMock_BeginStateTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *DBMock_BeginStateTransaction_Call
- func (_c *DBMock_BeginStateTransaction_Call) Run(run func(ctx context.Context)) *DBMock_BeginStateTransaction_Call
- func (_c *DBMock_BeginStateTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *DBMock_BeginStateTransaction_Call
- type DBMock_Expecter
- type EthTxManagerMock
- func (_m *EthTxManagerMock) Add(ctx context.Context, owner string, id string, from common.Address, ...) error
- func (_m *EthTxManagerMock) EXPECT() *EthTxManagerMock_Expecter
- func (_m *EthTxManagerMock) ProcessPendingMonitoredTxs(ctx context.Context, owner string, ...)
- func (_m *EthTxManagerMock) Result(ctx context.Context, owner string, id string, dbTx pgx.Tx) (ethtxmanager.MonitoredTxResult, error)
- func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, owner string, statuses []ethtxmanager.MonitoredTxStatus, ...) ([]ethtxmanager.MonitoredTxResult, error)
- type EthTxManagerMock_Add_Call
- type EthTxManagerMock_Expecter
- func (_e *EthTxManagerMock_Expecter) Add(ctx interface{}, owner interface{}, id interface{}, from interface{}, ...) *EthTxManagerMock_Add_Call
- func (_e *EthTxManagerMock_Expecter) ProcessPendingMonitoredTxs(ctx interface{}, owner interface{}, failedResultHandler interface{}, ...) *EthTxManagerMock_ProcessPendingMonitoredTxs_Call
- func (_e *EthTxManagerMock_Expecter) Result(ctx interface{}, owner interface{}, id interface{}, dbTx interface{}) *EthTxManagerMock_Result_Call
- func (_e *EthTxManagerMock_Expecter) ResultsByStatus(ctx interface{}, owner interface{}, statuses interface{}, dbTx interface{}) *EthTxManagerMock_ResultsByStatus_Call
- type EthTxManagerMock_ProcessPendingMonitoredTxs_Call
- func (_c *EthTxManagerMock_ProcessPendingMonitoredTxs_Call) Return() *EthTxManagerMock_ProcessPendingMonitoredTxs_Call
- func (_c *EthTxManagerMock_ProcessPendingMonitoredTxs_Call) Run(run func(ctx context.Context, owner string, ...)) *EthTxManagerMock_ProcessPendingMonitoredTxs_Call
- func (_c *EthTxManagerMock_ProcessPendingMonitoredTxs_Call) RunAndReturn(run func(context.Context, string, ethtxmanager.ResultHandler, pgx.Tx)) *EthTxManagerMock_ProcessPendingMonitoredTxs_Call
- type EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) Return(_a0 ethtxmanager.MonitoredTxResult, _a1 error) *EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) Run(run func(ctx context.Context, owner string, id string, dbTx pgx.Tx)) *EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) RunAndReturn(...) *EthTxManagerMock_Result_Call
- type EthTxManagerMock_ResultsByStatus_Call
- func (_c *EthTxManagerMock_ResultsByStatus_Call) Return(_a0 []ethtxmanager.MonitoredTxResult, _a1 error) *EthTxManagerMock_ResultsByStatus_Call
- func (_c *EthTxManagerMock_ResultsByStatus_Call) Run(...) *EthTxManagerMock_ResultsByStatus_Call
- func (_c *EthTxManagerMock_ResultsByStatus_Call) RunAndReturn(...) *EthTxManagerMock_ResultsByStatus_Call
- type EthereumClientMock
- func (_m *EthereumClientMock) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *EthereumClientMock) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *EthereumClientMock) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *EthereumClientMock) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EthereumClientMock) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *EthereumClientMock) EXPECT() *EthereumClientMock_Expecter
- func (_m *EthereumClientMock) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *EthereumClientMock) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *EthereumClientMock) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *EthereumClientMock) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EthereumClientMock) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *EthereumClientMock) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *EthereumClientMock) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EthereumClientMock) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *EthereumClientMock) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (_m *EthereumClientMock) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *EthereumClientMock) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *EthereumClientMock) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *EthereumClientMock) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *EthereumClientMock) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *EthereumClientMock) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *EthereumClientMock) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *EthereumClientMock) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type EthereumClientMock_BalanceAt_Call
- func (_c *EthereumClientMock_BalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthereumClientMock_BalanceAt_Call
- func (_c *EthereumClientMock_BalanceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClientMock_BalanceAt_Call
- func (_c *EthereumClientMock_BalanceAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) (*big.Int, error)) *EthereumClientMock_BalanceAt_Call
- type EthereumClientMock_BlockByHash_Call
- func (_c *EthereumClientMock_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *EthereumClientMock_BlockByHash_Call
- func (_c *EthereumClientMock_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClientMock_BlockByHash_Call
- func (_c *EthereumClientMock_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *EthereumClientMock_BlockByHash_Call
- type EthereumClientMock_BlockByNumber_Call
- func (_c *EthereumClientMock_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *EthereumClientMock_BlockByNumber_Call
- func (_c *EthereumClientMock_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClientMock_BlockByNumber_Call
- func (_c *EthereumClientMock_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *EthereumClientMock_BlockByNumber_Call
- type EthereumClientMock_CallContract_Call
- func (_c *EthereumClientMock_CallContract_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_CallContract_Call
- func (_c *EthereumClientMock_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthereumClientMock_CallContract_Call
- func (_c *EthereumClientMock_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthereumClientMock_CallContract_Call
- type EthereumClientMock_CodeAt_Call
- func (_c *EthereumClientMock_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_CodeAt_Call
- func (_c *EthereumClientMock_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClientMock_CodeAt_Call
- func (_c *EthereumClientMock_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthereumClientMock_CodeAt_Call
- type EthereumClientMock_EstimateGas_Call
- func (_c *EthereumClientMock_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthereumClientMock_EstimateGas_Call
- func (_c *EthereumClientMock_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthereumClientMock_EstimateGas_Call
- func (_c *EthereumClientMock_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthereumClientMock_EstimateGas_Call
- type EthereumClientMock_Expecter
- func (_e *EthereumClientMock_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClientMock_BalanceAt_Call
- func (_e *EthereumClientMock_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthereumClientMock_BlockByHash_Call
- func (_e *EthereumClientMock_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthereumClientMock_BlockByNumber_Call
- func (_e *EthereumClientMock_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthereumClientMock_CallContract_Call
- func (_e *EthereumClientMock_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClientMock_CodeAt_Call
- func (_e *EthereumClientMock_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthereumClientMock_EstimateGas_Call
- func (_e *EthereumClientMock_Expecter) FilterLogs(ctx interface{}, q interface{}) *EthereumClientMock_FilterLogs_Call
- func (_e *EthereumClientMock_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthereumClientMock_HeaderByHash_Call
- func (_e *EthereumClientMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthereumClientMock_HeaderByNumber_Call
- func (_e *EthereumClientMock_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClientMock_NonceAt_Call
- func (_e *EthereumClientMock_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthereumClientMock_PendingCodeAt_Call
- func (_e *EthereumClientMock_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthereumClientMock_PendingNonceAt_Call
- func (_e *EthereumClientMock_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthereumClientMock_SendTransaction_Call
- func (_e *EthereumClientMock_Expecter) StorageAt(ctx interface{}, account interface{}, key interface{}, blockNumber interface{}) *EthereumClientMock_StorageAt_Call
- func (_e *EthereumClientMock_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *EthereumClientMock_SubscribeFilterLogs_Call
- func (_e *EthereumClientMock_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthereumClientMock_SubscribeNewHead_Call
- func (_e *EthereumClientMock_Expecter) SuggestGasPrice(ctx interface{}) *EthereumClientMock_SuggestGasPrice_Call
- func (_e *EthereumClientMock_Expecter) SuggestGasTipCap(ctx interface{}) *EthereumClientMock_SuggestGasTipCap_Call
- func (_e *EthereumClientMock_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *EthereumClientMock_TransactionByHash_Call
- func (_e *EthereumClientMock_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthereumClientMock_TransactionCount_Call
- func (_e *EthereumClientMock_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthereumClientMock_TransactionInBlock_Call
- func (_e *EthereumClientMock_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthereumClientMock_TransactionReceipt_Call
- type EthereumClientMock_FilterLogs_Call
- func (_c *EthereumClientMock_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *EthereumClientMock_FilterLogs_Call
- func (_c *EthereumClientMock_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *EthereumClientMock_FilterLogs_Call
- func (_c *EthereumClientMock_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *EthereumClientMock_FilterLogs_Call
- type EthereumClientMock_HeaderByHash_Call
- func (_c *EthereumClientMock_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *EthereumClientMock_HeaderByHash_Call
- func (_c *EthereumClientMock_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClientMock_HeaderByHash_Call
- func (_c *EthereumClientMock_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *EthereumClientMock_HeaderByHash_Call
- type EthereumClientMock_HeaderByNumber_Call
- func (_c *EthereumClientMock_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthereumClientMock_HeaderByNumber_Call
- func (_c *EthereumClientMock_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClientMock_HeaderByNumber_Call
- func (_c *EthereumClientMock_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthereumClientMock_HeaderByNumber_Call
- type EthereumClientMock_NonceAt_Call
- func (_c *EthereumClientMock_NonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClientMock_NonceAt_Call
- func (_c *EthereumClientMock_NonceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClientMock_NonceAt_Call
- func (_c *EthereumClientMock_NonceAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) (uint64, error)) *EthereumClientMock_NonceAt_Call
- type EthereumClientMock_PendingCodeAt_Call
- func (_c *EthereumClientMock_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_PendingCodeAt_Call
- func (_c *EthereumClientMock_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClientMock_PendingCodeAt_Call
- func (_c *EthereumClientMock_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthereumClientMock_PendingCodeAt_Call
- type EthereumClientMock_PendingNonceAt_Call
- func (_c *EthereumClientMock_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClientMock_PendingNonceAt_Call
- func (_c *EthereumClientMock_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClientMock_PendingNonceAt_Call
- func (_c *EthereumClientMock_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthereumClientMock_PendingNonceAt_Call
- type EthereumClientMock_SendTransaction_Call
- func (_c *EthereumClientMock_SendTransaction_Call) Return(_a0 error) *EthereumClientMock_SendTransaction_Call
- func (_c *EthereumClientMock_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthereumClientMock_SendTransaction_Call
- func (_c *EthereumClientMock_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthereumClientMock_SendTransaction_Call
- type EthereumClientMock_StorageAt_Call
- func (_c *EthereumClientMock_StorageAt_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_StorageAt_Call
- func (_c *EthereumClientMock_StorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash, ...)) *EthereumClientMock_StorageAt_Call
- func (_c *EthereumClientMock_StorageAt_Call) RunAndReturn(...) *EthereumClientMock_StorageAt_Call
- type EthereumClientMock_SubscribeFilterLogs_Call
- func (_c *EthereumClientMock_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthereumClientMock_SubscribeFilterLogs_Call
- func (_c *EthereumClientMock_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *EthereumClientMock_SubscribeFilterLogs_Call
- func (_c *EthereumClientMock_SubscribeFilterLogs_Call) RunAndReturn(...) *EthereumClientMock_SubscribeFilterLogs_Call
- type EthereumClientMock_SubscribeNewHead_Call
- func (_c *EthereumClientMock_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthereumClientMock_SubscribeNewHead_Call
- func (_c *EthereumClientMock_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *EthereumClientMock_SubscribeNewHead_Call
- func (_c *EthereumClientMock_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *EthereumClientMock_SubscribeNewHead_Call
- type EthereumClientMock_SuggestGasPrice_Call
- func (_c *EthereumClientMock_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthereumClientMock_SuggestGasPrice_Call
- func (_c *EthereumClientMock_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthereumClientMock_SuggestGasPrice_Call
- func (_c *EthereumClientMock_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClientMock_SuggestGasPrice_Call
- type EthereumClientMock_SuggestGasTipCap_Call
- func (_c *EthereumClientMock_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthereumClientMock_SuggestGasTipCap_Call
- func (_c *EthereumClientMock_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthereumClientMock_SuggestGasTipCap_Call
- func (_c *EthereumClientMock_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClientMock_SuggestGasTipCap_Call
- type EthereumClientMock_TransactionByHash_Call
- func (_c *EthereumClientMock_TransactionByHash_Call) Return(tx *types.Transaction, isPending bool, err error) *EthereumClientMock_TransactionByHash_Call
- func (_c *EthereumClientMock_TransactionByHash_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClientMock_TransactionByHash_Call
- func (_c *EthereumClientMock_TransactionByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Transaction, bool, error)) *EthereumClientMock_TransactionByHash_Call
- type EthereumClientMock_TransactionCount_Call
- func (_c *EthereumClientMock_TransactionCount_Call) Return(_a0 uint, _a1 error) *EthereumClientMock_TransactionCount_Call
- func (_c *EthereumClientMock_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *EthereumClientMock_TransactionCount_Call
- func (_c *EthereumClientMock_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *EthereumClientMock_TransactionCount_Call
- type EthereumClientMock_TransactionInBlock_Call
- func (_c *EthereumClientMock_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *EthereumClientMock_TransactionInBlock_Call
- func (_c *EthereumClientMock_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *EthereumClientMock_TransactionInBlock_Call
- func (_c *EthereumClientMock_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *EthereumClientMock_TransactionInBlock_Call
- type EthereumClientMock_TransactionReceipt_Call
- func (_c *EthereumClientMock_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthereumClientMock_TransactionReceipt_Call
- func (_c *EthereumClientMock_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClientMock_TransactionReceipt_Call
- func (_c *EthereumClientMock_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthereumClientMock_TransactionReceipt_Call
- type EthermanMock
- func (_m *EthermanMock) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch uint64, newVerifiedBatch uint64, proof tx.ZKP, ...) ([]byte, error)
- func (_m *EthermanMock) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EthermanMock) EXPECT() *EthermanMock_Expecter
- func (_m *EthermanMock) GetSequencerAddr(rollupId uint32) (common.Address, error)
- type EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Return(data []byte, err error) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Run(run func(lastVerifiedBatch uint64, newVerifiedBatch uint64, proof tx.ZKP, ...)) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) RunAndReturn(run func(uint64, uint64, tx.ZKP, uint32) ([]byte, error)) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- type EthermanMock_CallContract_Call
- func (_c *EthermanMock_CallContract_Call) Return(_a0 []byte, _a1 error) *EthermanMock_CallContract_Call
- func (_c *EthermanMock_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthermanMock_CallContract_Call
- func (_c *EthermanMock_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthermanMock_CallContract_Call
- type EthermanMock_Expecter
- func (_e *EthermanMock_Expecter) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch interface{}, newVerifiedBatch interface{}, proof interface{}, ...) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_e *EthermanMock_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthermanMock_CallContract_Call
- func (_e *EthermanMock_Expecter) GetSequencerAddr(rollupId interface{}) *EthermanMock_GetSequencerAddr_Call
- type EthermanMock_GetSequencerAddr_Call
- func (_c *EthermanMock_GetSequencerAddr_Call) Return(_a0 common.Address, _a1 error) *EthermanMock_GetSequencerAddr_Call
- func (_c *EthermanMock_GetSequencerAddr_Call) Run(run func(rollupId uint32)) *EthermanMock_GetSequencerAddr_Call
- func (_c *EthermanMock_GetSequencerAddr_Call) RunAndReturn(run func(uint32) (common.Address, error)) *EthermanMock_GetSequencerAddr_Call
- type TxMock
- func (tx *TxMock) Begin(ctx context.Context) (pgx.Tx, error)
- func (tx *TxMock) BeginFunc(ctx context.Context, f func(pgx.Tx) error) (err error)
- func (tx *TxMock) Commit(ctx context.Context) error
- func (tx *TxMock) Conn() *pgx.Conn
- func (tx *TxMock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error)
- func (tx *TxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error)
- func (tx *TxMock) LargeObjects() pgx.LargeObjects
- func (tx *TxMock) Prepare(ctx context.Context, name, sql string) (*pgconn.StatementDescription, error)
- func (tx *TxMock) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (tx *TxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, ...) (pgconn.CommandTag, error)
- func (tx *TxMock) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- func (tx *TxMock) Rollback(ctx context.Context) error
- func (tx *TxMock) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
- type ZkEVMClientClientCreatorMock
- type ZkEVMClientClientCreatorMock_Expecter
- type ZkEVMClientClientCreatorMock_NewClient_Call
- func (_c *ZkEVMClientClientCreatorMock_NewClient_Call) Return(_a0 types.IZkEVMClient) *ZkEVMClientClientCreatorMock_NewClient_Call
- func (_c *ZkEVMClientClientCreatorMock_NewClient_Call) Run(run func(rpc string)) *ZkEVMClientClientCreatorMock_NewClient_Call
- func (_c *ZkEVMClientClientCreatorMock_NewClient_Call) RunAndReturn(run func(string) types.IZkEVMClient) *ZkEVMClientClientCreatorMock_NewClient_Call
- type ZkEVMClientMock
- type ZkEVMClientMock_BatchByNumber_Call
- func (_c *ZkEVMClientMock_BatchByNumber_Call) Return(_a0 *types.Batch, _a1 error) *ZkEVMClientMock_BatchByNumber_Call
- func (_c *ZkEVMClientMock_BatchByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ZkEVMClientMock_BatchByNumber_Call
- func (_c *ZkEVMClientMock_BatchByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Batch, error)) *ZkEVMClientMock_BatchByNumber_Call
- type ZkEVMClientMock_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBMock ¶
DBMock is an autogenerated mock type for the IDB type
func NewDBMock ¶
NewDBMock creates a new instance of DBMock. 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 (*DBMock) BeginStateTransaction ¶
BeginStateTransaction provides a mock function with given fields: ctx
func (*DBMock) EXPECT ¶
func (_m *DBMock) EXPECT() *DBMock_Expecter
type DBMock_BeginStateTransaction_Call ¶
DBMock_BeginStateTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginStateTransaction'
func (*DBMock_BeginStateTransaction_Call) Return ¶
func (_c *DBMock_BeginStateTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *DBMock_BeginStateTransaction_Call
func (*DBMock_BeginStateTransaction_Call) Run ¶
func (_c *DBMock_BeginStateTransaction_Call) Run(run func(ctx context.Context)) *DBMock_BeginStateTransaction_Call
func (*DBMock_BeginStateTransaction_Call) RunAndReturn ¶
func (_c *DBMock_BeginStateTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *DBMock_BeginStateTransaction_Call
type DBMock_Expecter ¶
type DBMock_Expecter struct {
// contains filtered or unexported fields
}
func (*DBMock_Expecter) BeginStateTransaction ¶
func (_e *DBMock_Expecter) BeginStateTransaction(ctx interface{}) *DBMock_BeginStateTransaction_Call
BeginStateTransaction is a helper method to define mock.On call
- ctx context.Context
type EthTxManagerMock ¶
EthTxManagerMock is an autogenerated mock type for the IEthTxManager type
func NewEthTxManagerMock ¶
func NewEthTxManagerMock(t interface { mock.TestingT Cleanup(func()) }) *EthTxManagerMock
NewEthTxManagerMock creates a new instance of EthTxManagerMock. 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 (*EthTxManagerMock) Add ¶
func (_m *EthTxManagerMock) Add(ctx context.Context, owner string, id string, from common.Address, to *common.Address, value *big.Int, data []byte, gasOffset uint64, dbTx pgx.Tx) error
Add provides a mock function with given fields: ctx, owner, id, from, to, value, data, gasOffset, dbTx
func (*EthTxManagerMock) EXPECT ¶
func (_m *EthTxManagerMock) EXPECT() *EthTxManagerMock_Expecter
func (*EthTxManagerMock) ProcessPendingMonitoredTxs ¶
func (_m *EthTxManagerMock) ProcessPendingMonitoredTxs(ctx context.Context, owner string, failedResultHandler ethtxmanager.ResultHandler, dbTx pgx.Tx)
ProcessPendingMonitoredTxs provides a mock function with given fields: ctx, owner, failedResultHandler, dbTx
func (*EthTxManagerMock) Result ¶
func (_m *EthTxManagerMock) Result(ctx context.Context, owner string, id string, dbTx pgx.Tx) (ethtxmanager.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, owner, id, dbTx
func (*EthTxManagerMock) ResultsByStatus ¶
func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, owner string, statuses []ethtxmanager.MonitoredTxStatus, dbTx pgx.Tx) ([]ethtxmanager.MonitoredTxResult, error)
ResultsByStatus provides a mock function with given fields: ctx, owner, statuses, dbTx
type EthTxManagerMock_Add_Call ¶
EthTxManagerMock_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*EthTxManagerMock_Add_Call) Return ¶
func (_c *EthTxManagerMock_Add_Call) Return(_a0 error) *EthTxManagerMock_Add_Call
type EthTxManagerMock_Expecter ¶
type EthTxManagerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*EthTxManagerMock_Expecter) Add ¶
func (_e *EthTxManagerMock_Expecter) Add(ctx interface{}, owner interface{}, id interface{}, from interface{}, to interface{}, value interface{}, data interface{}, gasOffset interface{}, dbTx interface{}) *EthTxManagerMock_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- owner string
- id string
- from common.Address
- to *common.Address
- value *big.Int
- data []byte
- gasOffset uint64
- dbTx pgx.Tx
func (*EthTxManagerMock_Expecter) ProcessPendingMonitoredTxs ¶
func (_e *EthTxManagerMock_Expecter) ProcessPendingMonitoredTxs(ctx interface{}, owner interface{}, failedResultHandler interface{}, dbTx interface{}) *EthTxManagerMock_ProcessPendingMonitoredTxs_Call
ProcessPendingMonitoredTxs is a helper method to define mock.On call
- ctx context.Context
- owner string
- failedResultHandler ethtxmanager.ResultHandler
- dbTx pgx.Tx
func (*EthTxManagerMock_Expecter) Result ¶
func (_e *EthTxManagerMock_Expecter) Result(ctx interface{}, owner interface{}, id interface{}, dbTx interface{}) *EthTxManagerMock_Result_Call
Result is a helper method to define mock.On call
- ctx context.Context
- owner string
- id string
- dbTx pgx.Tx
func (*EthTxManagerMock_Expecter) ResultsByStatus ¶
func (_e *EthTxManagerMock_Expecter) ResultsByStatus(ctx interface{}, owner interface{}, statuses interface{}, dbTx interface{}) *EthTxManagerMock_ResultsByStatus_Call
ResultsByStatus is a helper method to define mock.On call
- ctx context.Context
- owner string
- statuses []ethtxmanager.MonitoredTxStatus
- dbTx pgx.Tx
type EthTxManagerMock_ProcessPendingMonitoredTxs_Call ¶
EthTxManagerMock_ProcessPendingMonitoredTxs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessPendingMonitoredTxs'
func (*EthTxManagerMock_ProcessPendingMonitoredTxs_Call) Run ¶
func (_c *EthTxManagerMock_ProcessPendingMonitoredTxs_Call) Run(run func(ctx context.Context, owner string, failedResultHandler ethtxmanager.ResultHandler, dbTx pgx.Tx)) *EthTxManagerMock_ProcessPendingMonitoredTxs_Call
func (*EthTxManagerMock_ProcessPendingMonitoredTxs_Call) RunAndReturn ¶
func (_c *EthTxManagerMock_ProcessPendingMonitoredTxs_Call) RunAndReturn(run func(context.Context, string, ethtxmanager.ResultHandler, pgx.Tx)) *EthTxManagerMock_ProcessPendingMonitoredTxs_Call
type EthTxManagerMock_Result_Call ¶
EthTxManagerMock_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*EthTxManagerMock_Result_Call) Return ¶
func (_c *EthTxManagerMock_Result_Call) Return(_a0 ethtxmanager.MonitoredTxResult, _a1 error) *EthTxManagerMock_Result_Call
func (*EthTxManagerMock_Result_Call) Run ¶
func (_c *EthTxManagerMock_Result_Call) Run(run func(ctx context.Context, owner string, id string, dbTx pgx.Tx)) *EthTxManagerMock_Result_Call
func (*EthTxManagerMock_Result_Call) RunAndReturn ¶
func (_c *EthTxManagerMock_Result_Call) RunAndReturn(run func(context.Context, string, string, pgx.Tx) (ethtxmanager.MonitoredTxResult, error)) *EthTxManagerMock_Result_Call
type EthTxManagerMock_ResultsByStatus_Call ¶
EthTxManagerMock_ResultsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResultsByStatus'
func (*EthTxManagerMock_ResultsByStatus_Call) Return ¶
func (_c *EthTxManagerMock_ResultsByStatus_Call) Return(_a0 []ethtxmanager.MonitoredTxResult, _a1 error) *EthTxManagerMock_ResultsByStatus_Call
func (*EthTxManagerMock_ResultsByStatus_Call) Run ¶
func (_c *EthTxManagerMock_ResultsByStatus_Call) Run(run func(ctx context.Context, owner string, statuses []ethtxmanager.MonitoredTxStatus, dbTx pgx.Tx)) *EthTxManagerMock_ResultsByStatus_Call
func (*EthTxManagerMock_ResultsByStatus_Call) RunAndReturn ¶
func (_c *EthTxManagerMock_ResultsByStatus_Call) RunAndReturn(run func(context.Context, string, []ethtxmanager.MonitoredTxStatus, pgx.Tx) ([]ethtxmanager.MonitoredTxResult, error)) *EthTxManagerMock_ResultsByStatus_Call
type EthereumClientMock ¶
EthereumClientMock is an autogenerated mock type for the IEthereumClient type
func NewEthereumClientMock ¶
func NewEthereumClientMock(t interface { mock.TestingT Cleanup(func()) }) *EthereumClientMock
NewEthereumClientMock creates a new instance of EthereumClientMock. 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 (*EthereumClientMock) BalanceAt ¶
func (_m *EthereumClientMock) 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 (*EthereumClientMock) BlockByHash ¶
func (_m *EthereumClientMock) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
BlockByHash provides a mock function with given fields: ctx, hash
func (*EthereumClientMock) BlockByNumber ¶
func (_m *EthereumClientMock) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
BlockByNumber provides a mock function with given fields: ctx, number
func (*EthereumClientMock) CallContract ¶
func (_m *EthereumClientMock) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*EthereumClientMock) CodeAt ¶
func (_m *EthereumClientMock) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*EthereumClientMock) EXPECT ¶
func (_m *EthereumClientMock) EXPECT() *EthereumClientMock_Expecter
func (*EthereumClientMock) EstimateGas ¶
func (_m *EthereumClientMock) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
EstimateGas provides a mock function with given fields: ctx, call
func (*EthereumClientMock) FilterLogs ¶
func (_m *EthereumClientMock) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, q
func (*EthereumClientMock) HeaderByHash ¶
func (_m *EthereumClientMock) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
HeaderByHash provides a mock function with given fields: ctx, hash
func (*EthereumClientMock) HeaderByNumber ¶
func (_m *EthereumClientMock) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*EthereumClientMock) NonceAt ¶
func (_m *EthereumClientMock) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt provides a mock function with given fields: ctx, account, blockNumber
func (*EthereumClientMock) PendingCodeAt ¶
func (_m *EthereumClientMock) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
PendingCodeAt provides a mock function with given fields: ctx, account
func (*EthereumClientMock) PendingNonceAt ¶
func (_m *EthereumClientMock) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
PendingNonceAt provides a mock function with given fields: ctx, account
func (*EthereumClientMock) SendTransaction ¶
func (_m *EthereumClientMock) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*EthereumClientMock) StorageAt ¶
func (_m *EthereumClientMock) 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 (*EthereumClientMock) SubscribeFilterLogs ¶
func (_m *EthereumClientMock) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch
func (*EthereumClientMock) SubscribeNewHead ¶
func (_m *EthereumClientMock) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*EthereumClientMock) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*EthereumClientMock) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*EthereumClientMock) TransactionByHash ¶
func (_m *EthereumClientMock) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
func (*EthereumClientMock) TransactionCount ¶
func (_m *EthereumClientMock) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
TransactionCount provides a mock function with given fields: ctx, blockHash
func (*EthereumClientMock) TransactionInBlock ¶
func (_m *EthereumClientMock) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
func (*EthereumClientMock) TransactionReceipt ¶
func (_m *EthereumClientMock) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
type EthereumClientMock_BalanceAt_Call ¶
EthereumClientMock_BalanceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BalanceAt'
func (*EthereumClientMock_BalanceAt_Call) Return ¶
func (_c *EthereumClientMock_BalanceAt_Call) Return(_a0 *big.Int, _a1 error) *EthereumClientMock_BalanceAt_Call
func (*EthereumClientMock_BalanceAt_Call) Run ¶
func (_c *EthereumClientMock_BalanceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClientMock_BalanceAt_Call
func (*EthereumClientMock_BalanceAt_Call) RunAndReturn ¶
type EthereumClientMock_BlockByHash_Call ¶
EthereumClientMock_BlockByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHash'
func (*EthereumClientMock_BlockByHash_Call) Return ¶
func (_c *EthereumClientMock_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *EthereumClientMock_BlockByHash_Call
func (*EthereumClientMock_BlockByHash_Call) Run ¶
func (_c *EthereumClientMock_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClientMock_BlockByHash_Call
func (*EthereumClientMock_BlockByHash_Call) RunAndReturn ¶
func (_c *EthereumClientMock_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *EthereumClientMock_BlockByHash_Call
type EthereumClientMock_BlockByNumber_Call ¶
EthereumClientMock_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'
func (*EthereumClientMock_BlockByNumber_Call) Return ¶
func (_c *EthereumClientMock_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *EthereumClientMock_BlockByNumber_Call
func (*EthereumClientMock_BlockByNumber_Call) Run ¶
func (_c *EthereumClientMock_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClientMock_BlockByNumber_Call
func (*EthereumClientMock_BlockByNumber_Call) RunAndReturn ¶
func (_c *EthereumClientMock_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *EthereumClientMock_BlockByNumber_Call
type EthereumClientMock_CallContract_Call ¶
EthereumClientMock_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'
func (*EthereumClientMock_CallContract_Call) Return ¶
func (_c *EthereumClientMock_CallContract_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_CallContract_Call
func (*EthereumClientMock_CallContract_Call) Run ¶
func (_c *EthereumClientMock_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthereumClientMock_CallContract_Call
func (*EthereumClientMock_CallContract_Call) RunAndReturn ¶
func (_c *EthereumClientMock_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthereumClientMock_CallContract_Call
type EthereumClientMock_CodeAt_Call ¶
EthereumClientMock_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'
func (*EthereumClientMock_CodeAt_Call) Return ¶
func (_c *EthereumClientMock_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_CodeAt_Call
func (*EthereumClientMock_CodeAt_Call) Run ¶
func (_c *EthereumClientMock_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClientMock_CodeAt_Call
func (*EthereumClientMock_CodeAt_Call) RunAndReturn ¶
func (_c *EthereumClientMock_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthereumClientMock_CodeAt_Call
type EthereumClientMock_EstimateGas_Call ¶
EthereumClientMock_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'
func (*EthereumClientMock_EstimateGas_Call) Return ¶
func (_c *EthereumClientMock_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthereumClientMock_EstimateGas_Call
func (*EthereumClientMock_EstimateGas_Call) Run ¶
func (_c *EthereumClientMock_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthereumClientMock_EstimateGas_Call
func (*EthereumClientMock_EstimateGas_Call) RunAndReturn ¶
func (_c *EthereumClientMock_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthereumClientMock_EstimateGas_Call
type EthereumClientMock_Expecter ¶
type EthereumClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*EthereumClientMock_Expecter) BalanceAt ¶
func (_e *EthereumClientMock_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClientMock_BalanceAt_Call
BalanceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- blockNumber *big.Int
func (*EthereumClientMock_Expecter) BlockByHash ¶
func (_e *EthereumClientMock_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthereumClientMock_BlockByHash_Call
BlockByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthereumClientMock_Expecter) BlockByNumber ¶
func (_e *EthereumClientMock_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthereumClientMock_BlockByNumber_Call
BlockByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthereumClientMock_Expecter) CallContract ¶
func (_e *EthereumClientMock_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthereumClientMock_CallContract_Call
CallContract is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
- blockNumber *big.Int
func (*EthereumClientMock_Expecter) CodeAt ¶
func (_e *EthereumClientMock_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClientMock_CodeAt_Call
CodeAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- blockNumber *big.Int
func (*EthereumClientMock_Expecter) EstimateGas ¶
func (_e *EthereumClientMock_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthereumClientMock_EstimateGas_Call
EstimateGas is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
func (*EthereumClientMock_Expecter) FilterLogs ¶
func (_e *EthereumClientMock_Expecter) FilterLogs(ctx interface{}, q interface{}) *EthereumClientMock_FilterLogs_Call
FilterLogs is a helper method to define mock.On call
- ctx context.Context
- q ethereum.FilterQuery
func (*EthereumClientMock_Expecter) HeaderByHash ¶
func (_e *EthereumClientMock_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthereumClientMock_HeaderByHash_Call
HeaderByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthereumClientMock_Expecter) HeaderByNumber ¶
func (_e *EthereumClientMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthereumClientMock_HeaderByNumber_Call
HeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthereumClientMock_Expecter) NonceAt ¶
func (_e *EthereumClientMock_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClientMock_NonceAt_Call
NonceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- blockNumber *big.Int
func (*EthereumClientMock_Expecter) PendingCodeAt ¶
func (_e *EthereumClientMock_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthereumClientMock_PendingCodeAt_Call
PendingCodeAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthereumClientMock_Expecter) PendingNonceAt ¶
func (_e *EthereumClientMock_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthereumClientMock_PendingNonceAt_Call
PendingNonceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthereumClientMock_Expecter) SendTransaction ¶
func (_e *EthereumClientMock_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthereumClientMock_SendTransaction_Call
SendTransaction is a helper method to define mock.On call
- ctx context.Context
- tx *types.Transaction
func (*EthereumClientMock_Expecter) StorageAt ¶
func (_e *EthereumClientMock_Expecter) StorageAt(ctx interface{}, account interface{}, key interface{}, blockNumber interface{}) *EthereumClientMock_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 (*EthereumClientMock_Expecter) SubscribeFilterLogs ¶
func (_e *EthereumClientMock_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *EthereumClientMock_SubscribeFilterLogs_Call
SubscribeFilterLogs is a helper method to define mock.On call
- ctx context.Context
- q ethereum.FilterQuery
- ch chan<- types.Log
func (*EthereumClientMock_Expecter) SubscribeNewHead ¶
func (_e *EthereumClientMock_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthereumClientMock_SubscribeNewHead_Call
SubscribeNewHead is a helper method to define mock.On call
- ctx context.Context
- ch chan<- *types.Header
func (*EthereumClientMock_Expecter) SuggestGasPrice ¶
func (_e *EthereumClientMock_Expecter) SuggestGasPrice(ctx interface{}) *EthereumClientMock_SuggestGasPrice_Call
SuggestGasPrice is a helper method to define mock.On call
- ctx context.Context
func (*EthereumClientMock_Expecter) SuggestGasTipCap ¶
func (_e *EthereumClientMock_Expecter) SuggestGasTipCap(ctx interface{}) *EthereumClientMock_SuggestGasTipCap_Call
SuggestGasTipCap is a helper method to define mock.On call
- ctx context.Context
func (*EthereumClientMock_Expecter) TransactionByHash ¶
func (_e *EthereumClientMock_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *EthereumClientMock_TransactionByHash_Call
TransactionByHash is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
func (*EthereumClientMock_Expecter) TransactionCount ¶
func (_e *EthereumClientMock_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthereumClientMock_TransactionCount_Call
TransactionCount is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
func (*EthereumClientMock_Expecter) TransactionInBlock ¶
func (_e *EthereumClientMock_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthereumClientMock_TransactionInBlock_Call
TransactionInBlock is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
- index uint
func (*EthereumClientMock_Expecter) TransactionReceipt ¶
func (_e *EthereumClientMock_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthereumClientMock_TransactionReceipt_Call
TransactionReceipt is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
type EthereumClientMock_FilterLogs_Call ¶
EthereumClientMock_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'
func (*EthereumClientMock_FilterLogs_Call) Return ¶
func (_c *EthereumClientMock_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *EthereumClientMock_FilterLogs_Call
func (*EthereumClientMock_FilterLogs_Call) Run ¶
func (_c *EthereumClientMock_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *EthereumClientMock_FilterLogs_Call
func (*EthereumClientMock_FilterLogs_Call) RunAndReturn ¶
func (_c *EthereumClientMock_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *EthereumClientMock_FilterLogs_Call
type EthereumClientMock_HeaderByHash_Call ¶
EthereumClientMock_HeaderByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByHash'
func (*EthereumClientMock_HeaderByHash_Call) Return ¶
func (_c *EthereumClientMock_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *EthereumClientMock_HeaderByHash_Call
func (*EthereumClientMock_HeaderByHash_Call) Run ¶
func (_c *EthereumClientMock_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthereumClientMock_HeaderByHash_Call
func (*EthereumClientMock_HeaderByHash_Call) RunAndReturn ¶
func (_c *EthereumClientMock_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *EthereumClientMock_HeaderByHash_Call
type EthereumClientMock_HeaderByNumber_Call ¶
EthereumClientMock_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'
func (*EthereumClientMock_HeaderByNumber_Call) Return ¶
func (_c *EthereumClientMock_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthereumClientMock_HeaderByNumber_Call
func (*EthereumClientMock_HeaderByNumber_Call) Run ¶
func (_c *EthereumClientMock_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthereumClientMock_HeaderByNumber_Call
func (*EthereumClientMock_HeaderByNumber_Call) RunAndReturn ¶
func (_c *EthereumClientMock_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthereumClientMock_HeaderByNumber_Call
type EthereumClientMock_NonceAt_Call ¶
EthereumClientMock_NonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NonceAt'
func (*EthereumClientMock_NonceAt_Call) Return ¶
func (_c *EthereumClientMock_NonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClientMock_NonceAt_Call
func (*EthereumClientMock_NonceAt_Call) Run ¶
func (_c *EthereumClientMock_NonceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClientMock_NonceAt_Call
func (*EthereumClientMock_NonceAt_Call) RunAndReturn ¶
func (_c *EthereumClientMock_NonceAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) (uint64, error)) *EthereumClientMock_NonceAt_Call
type EthereumClientMock_PendingCodeAt_Call ¶
EthereumClientMock_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'
func (*EthereumClientMock_PendingCodeAt_Call) Return ¶
func (_c *EthereumClientMock_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_PendingCodeAt_Call
func (*EthereumClientMock_PendingCodeAt_Call) Run ¶
func (_c *EthereumClientMock_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClientMock_PendingCodeAt_Call
func (*EthereumClientMock_PendingCodeAt_Call) RunAndReturn ¶
func (_c *EthereumClientMock_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthereumClientMock_PendingCodeAt_Call
type EthereumClientMock_PendingNonceAt_Call ¶
EthereumClientMock_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'
func (*EthereumClientMock_PendingNonceAt_Call) Return ¶
func (_c *EthereumClientMock_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthereumClientMock_PendingNonceAt_Call
func (*EthereumClientMock_PendingNonceAt_Call) Run ¶
func (_c *EthereumClientMock_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthereumClientMock_PendingNonceAt_Call
func (*EthereumClientMock_PendingNonceAt_Call) RunAndReturn ¶
func (_c *EthereumClientMock_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthereumClientMock_PendingNonceAt_Call
type EthereumClientMock_SendTransaction_Call ¶
EthereumClientMock_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'
func (*EthereumClientMock_SendTransaction_Call) Return ¶
func (_c *EthereumClientMock_SendTransaction_Call) Return(_a0 error) *EthereumClientMock_SendTransaction_Call
func (*EthereumClientMock_SendTransaction_Call) Run ¶
func (_c *EthereumClientMock_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthereumClientMock_SendTransaction_Call
func (*EthereumClientMock_SendTransaction_Call) RunAndReturn ¶
func (_c *EthereumClientMock_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthereumClientMock_SendTransaction_Call
type EthereumClientMock_StorageAt_Call ¶
EthereumClientMock_StorageAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StorageAt'
func (*EthereumClientMock_StorageAt_Call) Return ¶
func (_c *EthereumClientMock_StorageAt_Call) Return(_a0 []byte, _a1 error) *EthereumClientMock_StorageAt_Call
func (*EthereumClientMock_StorageAt_Call) Run ¶
func (_c *EthereumClientMock_StorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int)) *EthereumClientMock_StorageAt_Call
func (*EthereumClientMock_StorageAt_Call) RunAndReturn ¶
type EthereumClientMock_SubscribeFilterLogs_Call ¶
EthereumClientMock_SubscribeFilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeFilterLogs'
func (*EthereumClientMock_SubscribeFilterLogs_Call) Return ¶
func (_c *EthereumClientMock_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthereumClientMock_SubscribeFilterLogs_Call
func (*EthereumClientMock_SubscribeFilterLogs_Call) Run ¶
func (_c *EthereumClientMock_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *EthereumClientMock_SubscribeFilterLogs_Call
func (*EthereumClientMock_SubscribeFilterLogs_Call) RunAndReturn ¶
func (_c *EthereumClientMock_SubscribeFilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery, chan<- types.Log) (ethereum.Subscription, error)) *EthereumClientMock_SubscribeFilterLogs_Call
type EthereumClientMock_SubscribeNewHead_Call ¶
EthereumClientMock_SubscribeNewHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeNewHead'
func (*EthereumClientMock_SubscribeNewHead_Call) Return ¶
func (_c *EthereumClientMock_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthereumClientMock_SubscribeNewHead_Call
func (*EthereumClientMock_SubscribeNewHead_Call) Run ¶
func (_c *EthereumClientMock_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *EthereumClientMock_SubscribeNewHead_Call
func (*EthereumClientMock_SubscribeNewHead_Call) RunAndReturn ¶
func (_c *EthereumClientMock_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *EthereumClientMock_SubscribeNewHead_Call
type EthereumClientMock_SuggestGasPrice_Call ¶
EthereumClientMock_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'
func (*EthereumClientMock_SuggestGasPrice_Call) Return ¶
func (_c *EthereumClientMock_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthereumClientMock_SuggestGasPrice_Call
func (*EthereumClientMock_SuggestGasPrice_Call) Run ¶
func (_c *EthereumClientMock_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthereumClientMock_SuggestGasPrice_Call
func (*EthereumClientMock_SuggestGasPrice_Call) RunAndReturn ¶
func (_c *EthereumClientMock_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClientMock_SuggestGasPrice_Call
type EthereumClientMock_SuggestGasTipCap_Call ¶
EthereumClientMock_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'
func (*EthereumClientMock_SuggestGasTipCap_Call) Return ¶
func (_c *EthereumClientMock_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthereumClientMock_SuggestGasTipCap_Call
func (*EthereumClientMock_SuggestGasTipCap_Call) Run ¶
func (_c *EthereumClientMock_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthereumClientMock_SuggestGasTipCap_Call
func (*EthereumClientMock_SuggestGasTipCap_Call) RunAndReturn ¶
func (_c *EthereumClientMock_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthereumClientMock_SuggestGasTipCap_Call
type EthereumClientMock_TransactionByHash_Call ¶
EthereumClientMock_TransactionByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionByHash'
func (*EthereumClientMock_TransactionByHash_Call) Return ¶
func (_c *EthereumClientMock_TransactionByHash_Call) Return(tx *types.Transaction, isPending bool, err error) *EthereumClientMock_TransactionByHash_Call
func (*EthereumClientMock_TransactionByHash_Call) Run ¶
func (_c *EthereumClientMock_TransactionByHash_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClientMock_TransactionByHash_Call
func (*EthereumClientMock_TransactionByHash_Call) RunAndReturn ¶
func (_c *EthereumClientMock_TransactionByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Transaction, bool, error)) *EthereumClientMock_TransactionByHash_Call
type EthereumClientMock_TransactionCount_Call ¶
EthereumClientMock_TransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionCount'
func (*EthereumClientMock_TransactionCount_Call) Return ¶
func (_c *EthereumClientMock_TransactionCount_Call) Return(_a0 uint, _a1 error) *EthereumClientMock_TransactionCount_Call
func (*EthereumClientMock_TransactionCount_Call) Run ¶
func (_c *EthereumClientMock_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *EthereumClientMock_TransactionCount_Call
func (*EthereumClientMock_TransactionCount_Call) RunAndReturn ¶
func (_c *EthereumClientMock_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *EthereumClientMock_TransactionCount_Call
type EthereumClientMock_TransactionInBlock_Call ¶
EthereumClientMock_TransactionInBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionInBlock'
func (*EthereumClientMock_TransactionInBlock_Call) Return ¶
func (_c *EthereumClientMock_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *EthereumClientMock_TransactionInBlock_Call
func (*EthereumClientMock_TransactionInBlock_Call) Run ¶
func (_c *EthereumClientMock_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *EthereumClientMock_TransactionInBlock_Call
func (*EthereumClientMock_TransactionInBlock_Call) RunAndReturn ¶
func (_c *EthereumClientMock_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *EthereumClientMock_TransactionInBlock_Call
type EthereumClientMock_TransactionReceipt_Call ¶
EthereumClientMock_TransactionReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionReceipt'
func (*EthereumClientMock_TransactionReceipt_Call) Return ¶
func (_c *EthereumClientMock_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *EthereumClientMock_TransactionReceipt_Call
func (*EthereumClientMock_TransactionReceipt_Call) Run ¶
func (_c *EthereumClientMock_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *EthereumClientMock_TransactionReceipt_Call
func (*EthereumClientMock_TransactionReceipt_Call) RunAndReturn ¶
func (_c *EthereumClientMock_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *EthereumClientMock_TransactionReceipt_Call
type EthermanMock ¶
EthermanMock is an autogenerated mock type for the IEtherman type
func NewEthermanMock ¶
func NewEthermanMock(t interface { mock.TestingT Cleanup(func()) }) *EthermanMock
NewEthermanMock creates a new instance of EthermanMock. 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 (*EthermanMock) BuildTrustedVerifyBatchesTxData ¶
func (_m *EthermanMock) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch uint64, newVerifiedBatch uint64, proof tx.ZKP, rollupId uint32) ([]byte, error)
BuildTrustedVerifyBatchesTxData provides a mock function with given fields: lastVerifiedBatch, newVerifiedBatch, proof, rollupId
func (*EthermanMock) CallContract ¶
func (_m *EthermanMock) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*EthermanMock) EXPECT ¶
func (_m *EthermanMock) EXPECT() *EthermanMock_Expecter
func (*EthermanMock) GetSequencerAddr ¶
func (_m *EthermanMock) GetSequencerAddr(rollupId uint32) (common.Address, error)
GetSequencerAddr provides a mock function with given fields: rollupId
type EthermanMock_BuildTrustedVerifyBatchesTxData_Call ¶
EthermanMock_BuildTrustedVerifyBatchesTxData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildTrustedVerifyBatchesTxData'
func (*EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Return ¶
func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Return(data []byte, err error) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
func (*EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Run ¶
func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Run(run func(lastVerifiedBatch uint64, newVerifiedBatch uint64, proof tx.ZKP, rollupId uint32)) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
func (*EthermanMock_BuildTrustedVerifyBatchesTxData_Call) RunAndReturn ¶
func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) RunAndReturn(run func(uint64, uint64, tx.ZKP, uint32) ([]byte, error)) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
type EthermanMock_CallContract_Call ¶
EthermanMock_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'
func (*EthermanMock_CallContract_Call) Return ¶
func (_c *EthermanMock_CallContract_Call) Return(_a0 []byte, _a1 error) *EthermanMock_CallContract_Call
func (*EthermanMock_CallContract_Call) Run ¶
func (_c *EthermanMock_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthermanMock_CallContract_Call
func (*EthermanMock_CallContract_Call) RunAndReturn ¶
func (_c *EthermanMock_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthermanMock_CallContract_Call
type EthermanMock_Expecter ¶
type EthermanMock_Expecter struct {
// contains filtered or unexported fields
}
func (*EthermanMock_Expecter) BuildTrustedVerifyBatchesTxData ¶
func (_e *EthermanMock_Expecter) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch interface{}, newVerifiedBatch interface{}, proof interface{}, rollupId interface{}) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
BuildTrustedVerifyBatchesTxData is a helper method to define mock.On call
- lastVerifiedBatch uint64
- newVerifiedBatch uint64
- proof tx.ZKP
- rollupId uint32
func (*EthermanMock_Expecter) CallContract ¶
func (_e *EthermanMock_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthermanMock_CallContract_Call
CallContract is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
- blockNumber *big.Int
func (*EthermanMock_Expecter) GetSequencerAddr ¶
func (_e *EthermanMock_Expecter) GetSequencerAddr(rollupId interface{}) *EthermanMock_GetSequencerAddr_Call
GetSequencerAddr is a helper method to define mock.On call
- rollupId uint32
type EthermanMock_GetSequencerAddr_Call ¶
EthermanMock_GetSequencerAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSequencerAddr'
func (*EthermanMock_GetSequencerAddr_Call) Return ¶
func (_c *EthermanMock_GetSequencerAddr_Call) Return(_a0 common.Address, _a1 error) *EthermanMock_GetSequencerAddr_Call
func (*EthermanMock_GetSequencerAddr_Call) Run ¶
func (_c *EthermanMock_GetSequencerAddr_Call) Run(run func(rollupId uint32)) *EthermanMock_GetSequencerAddr_Call
func (*EthermanMock_GetSequencerAddr_Call) RunAndReturn ¶
func (_c *EthermanMock_GetSequencerAddr_Call) RunAndReturn(run func(uint32) (common.Address, error)) *EthermanMock_GetSequencerAddr_Call
type TxMock ¶
func (*TxMock) LargeObjects ¶
func (tx *TxMock) LargeObjects() pgx.LargeObjects
type ZkEVMClientClientCreatorMock ¶
ZkEVMClientClientCreatorMock is an autogenerated mock type for the IZkEVMClientClientCreator type
func NewZkEVMClientClientCreatorMock ¶
func NewZkEVMClientClientCreatorMock(t interface { mock.TestingT Cleanup(func()) }) *ZkEVMClientClientCreatorMock
NewZkEVMClientClientCreatorMock creates a new instance of ZkEVMClientClientCreatorMock. 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 (*ZkEVMClientClientCreatorMock) EXPECT ¶
func (_m *ZkEVMClientClientCreatorMock) EXPECT() *ZkEVMClientClientCreatorMock_Expecter
func (*ZkEVMClientClientCreatorMock) NewClient ¶
func (_m *ZkEVMClientClientCreatorMock) NewClient(rpc string) types.IZkEVMClient
NewClient provides a mock function with given fields: rpc
type ZkEVMClientClientCreatorMock_Expecter ¶
type ZkEVMClientClientCreatorMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ZkEVMClientClientCreatorMock_Expecter) NewClient ¶
func (_e *ZkEVMClientClientCreatorMock_Expecter) NewClient(rpc interface{}) *ZkEVMClientClientCreatorMock_NewClient_Call
NewClient is a helper method to define mock.On call
- rpc string
type ZkEVMClientClientCreatorMock_NewClient_Call ¶
ZkEVMClientClientCreatorMock_NewClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewClient'
func (*ZkEVMClientClientCreatorMock_NewClient_Call) Return ¶
func (_c *ZkEVMClientClientCreatorMock_NewClient_Call) Return(_a0 types.IZkEVMClient) *ZkEVMClientClientCreatorMock_NewClient_Call
func (*ZkEVMClientClientCreatorMock_NewClient_Call) Run ¶
func (_c *ZkEVMClientClientCreatorMock_NewClient_Call) Run(run func(rpc string)) *ZkEVMClientClientCreatorMock_NewClient_Call
func (*ZkEVMClientClientCreatorMock_NewClient_Call) RunAndReturn ¶
func (_c *ZkEVMClientClientCreatorMock_NewClient_Call) RunAndReturn(run func(string) types.IZkEVMClient) *ZkEVMClientClientCreatorMock_NewClient_Call
type ZkEVMClientMock ¶
ZkEVMClientMock is an autogenerated mock type for the IZkEVMClient type
func NewZkEVMClientMock ¶
func NewZkEVMClientMock(t interface { mock.TestingT Cleanup(func()) }) *ZkEVMClientMock
NewZkEVMClientMock creates a new instance of ZkEVMClientMock. 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 (*ZkEVMClientMock) BatchByNumber ¶
func (_m *ZkEVMClientMock) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error)
BatchByNumber provides a mock function with given fields: ctx, number
func (*ZkEVMClientMock) EXPECT ¶
func (_m *ZkEVMClientMock) EXPECT() *ZkEVMClientMock_Expecter
type ZkEVMClientMock_BatchByNumber_Call ¶
ZkEVMClientMock_BatchByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchByNumber'
func (*ZkEVMClientMock_BatchByNumber_Call) Return ¶
func (_c *ZkEVMClientMock_BatchByNumber_Call) Return(_a0 *types.Batch, _a1 error) *ZkEVMClientMock_BatchByNumber_Call
func (*ZkEVMClientMock_BatchByNumber_Call) Run ¶
func (_c *ZkEVMClientMock_BatchByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ZkEVMClientMock_BatchByNumber_Call
func (*ZkEVMClientMock_BatchByNumber_Call) RunAndReturn ¶
func (_c *ZkEVMClientMock_BatchByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Batch, error)) *ZkEVMClientMock_BatchByNumber_Call
type ZkEVMClientMock_Expecter ¶
type ZkEVMClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ZkEVMClientMock_Expecter) BatchByNumber ¶
func (_e *ZkEVMClientMock_Expecter) BatchByNumber(ctx interface{}, number interface{}) *ZkEVMClientMock_BatchByNumber_Call
BatchByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int