Documentation
¶
Index ¶
- type EthTxManagerMock
- func (_m *EthTxManagerMock) AddWithGas(ctx context.Context, to *common.Address, value *big.Int, data []byte, ...) (common.Hash, error)
- func (_m *EthTxManagerMock) EXPECT() *EthTxManagerMock_Expecter
- func (_m *EthTxManagerMock) Remove(ctx context.Context, hash common.Hash) error
- func (_m *EthTxManagerMock) Result(ctx context.Context, hash common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
- func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, status []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)
- func (_m *EthTxManagerMock) Start()
- type EthTxManagerMock_AddWithGas_Call
- type EthTxManagerMock_Expecter
- func (_e *EthTxManagerMock_Expecter) AddWithGas(ctx interface{}, to interface{}, value interface{}, data interface{}, ...) *EthTxManagerMock_AddWithGas_Call
- func (_e *EthTxManagerMock_Expecter) Remove(ctx interface{}, hash interface{}) *EthTxManagerMock_Remove_Call
- func (_e *EthTxManagerMock_Expecter) Result(ctx interface{}, hash interface{}) *EthTxManagerMock_Result_Call
- func (_e *EthTxManagerMock_Expecter) ResultsByStatus(ctx interface{}, status interface{}) *EthTxManagerMock_ResultsByStatus_Call
- func (_e *EthTxManagerMock_Expecter) Start() *EthTxManagerMock_Start_Call
- type EthTxManagerMock_Remove_Call
- func (_c *EthTxManagerMock_Remove_Call) Return(_a0 error) *EthTxManagerMock_Remove_Call
- func (_c *EthTxManagerMock_Remove_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthTxManagerMock_Remove_Call
- func (_c *EthTxManagerMock_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManagerMock_Remove_Call
- type EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) RunAndReturn(...) *EthTxManagerMock_Result_Call
- type EthTxManagerMock_ResultsByStatus_Call
- func (_c *EthTxManagerMock_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.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 EthTxManagerMock_Start_Call
- type EthermanMock
- func (_m *EthermanMock) CurrentNonce(ctx context.Context, address common.Address) (uint64, error)
- func (_m *EthermanMock) EXPECT() *EthermanMock_Expecter
- func (_m *EthermanMock) EstimateGas(ctx context.Context, from common.Address, to *common.Address, value *big.Int, ...) (uint64, error)
- func (_m *EthermanMock) GetLatestBatchNumber() (uint64, error)
- func (_m *EthermanMock) GetLatestBlockHeader(ctx context.Context) (*types.Header, error)
- type EthermanMock_CurrentNonce_Call
- func (_c *EthermanMock_CurrentNonce_Call) Return(_a0 uint64, _a1 error) *EthermanMock_CurrentNonce_Call
- func (_c *EthermanMock_CurrentNonce_Call) Run(run func(ctx context.Context, address common.Address)) *EthermanMock_CurrentNonce_Call
- func (_c *EthermanMock_CurrentNonce_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthermanMock_CurrentNonce_Call
- type EthermanMock_EstimateGas_Call
- type EthermanMock_Expecter
- func (_e *EthermanMock_Expecter) CurrentNonce(ctx interface{}, address interface{}) *EthermanMock_CurrentNonce_Call
- func (_e *EthermanMock_Expecter) EstimateGas(ctx interface{}, from interface{}, to interface{}, value interface{}, ...) *EthermanMock_EstimateGas_Call
- func (_e *EthermanMock_Expecter) GetLatestBatchNumber() *EthermanMock_GetLatestBatchNumber_Call
- func (_e *EthermanMock_Expecter) GetLatestBlockHeader(ctx interface{}) *EthermanMock_GetLatestBlockHeader_Call
- type EthermanMock_GetLatestBatchNumber_Call
- func (_c *EthermanMock_GetLatestBatchNumber_Call) Return(_a0 uint64, _a1 error) *EthermanMock_GetLatestBatchNumber_Call
- func (_c *EthermanMock_GetLatestBatchNumber_Call) Run(run func()) *EthermanMock_GetLatestBatchNumber_Call
- func (_c *EthermanMock_GetLatestBatchNumber_Call) RunAndReturn(run func() (uint64, error)) *EthermanMock_GetLatestBatchNumber_Call
- type EthermanMock_GetLatestBlockHeader_Call
- func (_c *EthermanMock_GetLatestBlockHeader_Call) Return(_a0 *types.Header, _a1 error) *EthermanMock_GetLatestBlockHeader_Call
- func (_c *EthermanMock_GetLatestBlockHeader_Call) Run(run func(ctx context.Context)) *EthermanMock_GetLatestBlockHeader_Call
- func (_c *EthermanMock_GetLatestBlockHeader_Call) RunAndReturn(run func(context.Context) (*types.Header, error)) *EthermanMock_GetLatestBlockHeader_Call
- type RPCInterfaceMock
- type RPCInterfaceMock_Expecter
- type RPCInterfaceMock_GetBatch_Call
- func (_c *RPCInterfaceMock_GetBatch_Call) Return(_a0 *types.RPCBatch, _a1 error) *RPCInterfaceMock_GetBatch_Call
- func (_c *RPCInterfaceMock_GetBatch_Call) Run(run func(batchNumber uint64)) *RPCInterfaceMock_GetBatch_Call
- func (_c *RPCInterfaceMock_GetBatch_Call) RunAndReturn(run func(uint64) (*types.RPCBatch, error)) *RPCInterfaceMock_GetBatch_Call
- type RPCInterfaceMock_GetWitness_Call
- func (_c *RPCInterfaceMock_GetWitness_Call) Return(_a0 []byte, _a1 error) *RPCInterfaceMock_GetWitness_Call
- func (_c *RPCInterfaceMock_GetWitness_Call) Run(run func(batchNumber uint64, fullWitness bool)) *RPCInterfaceMock_GetWitness_Call
- func (_c *RPCInterfaceMock_GetWitness_Call) RunAndReturn(run func(uint64, bool) ([]byte, error)) *RPCInterfaceMock_GetWitness_Call
- type TxBuilderMock
- func (_m *TxBuilderMock) BuildSequenceBatchesTx(ctx context.Context, sequences seqsendertypes.Sequence) (*types.Transaction, error)
- func (_m *TxBuilderMock) EXPECT() *TxBuilderMock_Expecter
- func (_m *TxBuilderMock) NewBatchFromL2Block(l2Block *datastream.L2Block) seqsendertypes.Batch
- func (_m *TxBuilderMock) NewSequence(ctx context.Context, batches []seqsendertypes.Batch, coinbase common.Address) (seqsendertypes.Sequence, error)
- func (_m *TxBuilderMock) NewSequenceIfWorthToSend(ctx context.Context, sequenceBatches []seqsendertypes.Batch, ...) (seqsendertypes.Sequence, error)
- func (_m *TxBuilderMock) SetCondNewSeq(cond txbuilder.CondNewSequence) txbuilder.CondNewSequence
- func (_m *TxBuilderMock) String() string
- type TxBuilderMock_BuildSequenceBatchesTx_Call
- func (_c *TxBuilderMock_BuildSequenceBatchesTx_Call) Return(_a0 *types.Transaction, _a1 error) *TxBuilderMock_BuildSequenceBatchesTx_Call
- func (_c *TxBuilderMock_BuildSequenceBatchesTx_Call) Run(run func(ctx context.Context, sequences seqsendertypes.Sequence)) *TxBuilderMock_BuildSequenceBatchesTx_Call
- func (_c *TxBuilderMock_BuildSequenceBatchesTx_Call) RunAndReturn(run func(context.Context, seqsendertypes.Sequence) (*types.Transaction, error)) *TxBuilderMock_BuildSequenceBatchesTx_Call
- type TxBuilderMock_Expecter
- func (_e *TxBuilderMock_Expecter) BuildSequenceBatchesTx(ctx interface{}, sequences interface{}) *TxBuilderMock_BuildSequenceBatchesTx_Call
- func (_e *TxBuilderMock_Expecter) NewBatchFromL2Block(l2Block interface{}) *TxBuilderMock_NewBatchFromL2Block_Call
- func (_e *TxBuilderMock_Expecter) NewSequence(ctx interface{}, batches interface{}, coinbase interface{}) *TxBuilderMock_NewSequence_Call
- func (_e *TxBuilderMock_Expecter) NewSequenceIfWorthToSend(ctx interface{}, sequenceBatches interface{}, l2Coinbase interface{}, ...) *TxBuilderMock_NewSequenceIfWorthToSend_Call
- func (_e *TxBuilderMock_Expecter) SetCondNewSeq(cond interface{}) *TxBuilderMock_SetCondNewSeq_Call
- func (_e *TxBuilderMock_Expecter) String() *TxBuilderMock_String_Call
- type TxBuilderMock_NewBatchFromL2Block_Call
- func (_c *TxBuilderMock_NewBatchFromL2Block_Call) Return(_a0 seqsendertypes.Batch) *TxBuilderMock_NewBatchFromL2Block_Call
- func (_c *TxBuilderMock_NewBatchFromL2Block_Call) Run(run func(l2Block *datastream.L2Block)) *TxBuilderMock_NewBatchFromL2Block_Call
- func (_c *TxBuilderMock_NewBatchFromL2Block_Call) RunAndReturn(run func(*datastream.L2Block) seqsendertypes.Batch) *TxBuilderMock_NewBatchFromL2Block_Call
- type TxBuilderMock_NewSequenceIfWorthToSend_Call
- func (_c *TxBuilderMock_NewSequenceIfWorthToSend_Call) Return(_a0 seqsendertypes.Sequence, _a1 error) *TxBuilderMock_NewSequenceIfWorthToSend_Call
- func (_c *TxBuilderMock_NewSequenceIfWorthToSend_Call) Run(run func(ctx context.Context, sequenceBatches []seqsendertypes.Batch, ...)) *TxBuilderMock_NewSequenceIfWorthToSend_Call
- func (_c *TxBuilderMock_NewSequenceIfWorthToSend_Call) RunAndReturn(...) *TxBuilderMock_NewSequenceIfWorthToSend_Call
- type TxBuilderMock_NewSequence_Call
- type TxBuilderMock_SetCondNewSeq_Call
- func (_c *TxBuilderMock_SetCondNewSeq_Call) Return(_a0 txbuilder.CondNewSequence) *TxBuilderMock_SetCondNewSeq_Call
- func (_c *TxBuilderMock_SetCondNewSeq_Call) Run(run func(cond txbuilder.CondNewSequence)) *TxBuilderMock_SetCondNewSeq_Call
- func (_c *TxBuilderMock_SetCondNewSeq_Call) RunAndReturn(run func(txbuilder.CondNewSequence) txbuilder.CondNewSequence) *TxBuilderMock_SetCondNewSeq_Call
- type TxBuilderMock_String_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthTxManagerMock ¶
EthTxManagerMock is an autogenerated mock type for the EthTxManager 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) AddWithGas ¶
func (_m *EthTxManagerMock) AddWithGas(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64) (common.Hash, error)
AddWithGas provides a mock function with given fields: ctx, to, value, data, gasOffset, sidecar, gas
func (*EthTxManagerMock) EXPECT ¶ added in v0.5.1
func (_m *EthTxManagerMock) EXPECT() *EthTxManagerMock_Expecter
func (*EthTxManagerMock) Result ¶
func (_m *EthTxManagerMock) Result(ctx context.Context, hash common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, hash
func (*EthTxManagerMock) ResultsByStatus ¶
func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, status []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)
ResultsByStatus provides a mock function with given fields: ctx, status
func (*EthTxManagerMock) Start ¶
func (_m *EthTxManagerMock) Start()
Start provides a mock function with no fields
type EthTxManagerMock_AddWithGas_Call ¶ added in v0.5.1
EthTxManagerMock_AddWithGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddWithGas'
func (*EthTxManagerMock_AddWithGas_Call) Return ¶ added in v0.5.1
func (_c *EthTxManagerMock_AddWithGas_Call) Return(_a0 common.Hash, _a1 error) *EthTxManagerMock_AddWithGas_Call
func (*EthTxManagerMock_AddWithGas_Call) Run ¶ added in v0.5.1
func (_c *EthTxManagerMock_AddWithGas_Call) Run(run func(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64)) *EthTxManagerMock_AddWithGas_Call
func (*EthTxManagerMock_AddWithGas_Call) RunAndReturn ¶ added in v0.5.1
type EthTxManagerMock_Expecter ¶ added in v0.5.1
type EthTxManagerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*EthTxManagerMock_Expecter) AddWithGas ¶ added in v0.5.1
func (_e *EthTxManagerMock_Expecter) AddWithGas(ctx interface{}, to interface{}, value interface{}, data interface{}, gasOffset interface{}, sidecar interface{}, gas interface{}) *EthTxManagerMock_AddWithGas_Call
AddWithGas is a helper method to define mock.On call
- ctx context.Context
- to *common.Address
- value *big.Int
- data []byte
- gasOffset uint64
- sidecar *types.BlobTxSidecar
- gas uint64
func (*EthTxManagerMock_Expecter) Remove ¶ added in v0.5.1
func (_e *EthTxManagerMock_Expecter) Remove(ctx interface{}, hash interface{}) *EthTxManagerMock_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthTxManagerMock_Expecter) Result ¶ added in v0.5.1
func (_e *EthTxManagerMock_Expecter) Result(ctx interface{}, hash interface{}) *EthTxManagerMock_Result_Call
Result is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthTxManagerMock_Expecter) ResultsByStatus ¶ added in v0.5.1
func (_e *EthTxManagerMock_Expecter) ResultsByStatus(ctx interface{}, status interface{}) *EthTxManagerMock_ResultsByStatus_Call
ResultsByStatus is a helper method to define mock.On call
- ctx context.Context
- status []zkevm_ethtx_managertypes.MonitoredTxStatus
func (*EthTxManagerMock_Expecter) Start ¶ added in v0.5.1
func (_e *EthTxManagerMock_Expecter) Start() *EthTxManagerMock_Start_Call
Start is a helper method to define mock.On call
type EthTxManagerMock_Remove_Call ¶ added in v0.5.1
EthTxManagerMock_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*EthTxManagerMock_Remove_Call) Return ¶ added in v0.5.1
func (_c *EthTxManagerMock_Remove_Call) Return(_a0 error) *EthTxManagerMock_Remove_Call
func (*EthTxManagerMock_Remove_Call) Run ¶ added in v0.5.1
func (_c *EthTxManagerMock_Remove_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthTxManagerMock_Remove_Call
func (*EthTxManagerMock_Remove_Call) RunAndReturn ¶ added in v0.5.1
func (_c *EthTxManagerMock_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManagerMock_Remove_Call
type EthTxManagerMock_Result_Call ¶ added in v0.5.1
EthTxManagerMock_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*EthTxManagerMock_Result_Call) Return ¶ added in v0.5.1
func (_c *EthTxManagerMock_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerMock_Result_Call
func (*EthTxManagerMock_Result_Call) Run ¶ added in v0.5.1
func (_c *EthTxManagerMock_Result_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthTxManagerMock_Result_Call
func (*EthTxManagerMock_Result_Call) RunAndReturn ¶ added in v0.5.1
func (_c *EthTxManagerMock_Result_Call) RunAndReturn(run func(context.Context, common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManagerMock_Result_Call
type EthTxManagerMock_ResultsByStatus_Call ¶ added in v0.5.1
EthTxManagerMock_ResultsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResultsByStatus'
func (*EthTxManagerMock_ResultsByStatus_Call) Return ¶ added in v0.5.1
func (_c *EthTxManagerMock_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerMock_ResultsByStatus_Call
func (*EthTxManagerMock_ResultsByStatus_Call) Run ¶ added in v0.5.1
func (_c *EthTxManagerMock_ResultsByStatus_Call) Run(run func(ctx context.Context, status []zkevm_ethtx_managertypes.MonitoredTxStatus)) *EthTxManagerMock_ResultsByStatus_Call
func (*EthTxManagerMock_ResultsByStatus_Call) RunAndReturn ¶ added in v0.5.1
func (_c *EthTxManagerMock_ResultsByStatus_Call) RunAndReturn(run func(context.Context, []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManagerMock_ResultsByStatus_Call
type EthTxManagerMock_Start_Call ¶ added in v0.5.1
EthTxManagerMock_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*EthTxManagerMock_Start_Call) Return ¶ added in v0.5.1
func (_c *EthTxManagerMock_Start_Call) Return() *EthTxManagerMock_Start_Call
func (*EthTxManagerMock_Start_Call) Run ¶ added in v0.5.1
func (_c *EthTxManagerMock_Start_Call) Run(run func()) *EthTxManagerMock_Start_Call
func (*EthTxManagerMock_Start_Call) RunAndReturn ¶ added in v0.5.1
func (_c *EthTxManagerMock_Start_Call) RunAndReturn(run func()) *EthTxManagerMock_Start_Call
type EthermanMock ¶
EthermanMock is an autogenerated mock type for the Etherman 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) CurrentNonce ¶
CurrentNonce provides a mock function with given fields: ctx, address
func (*EthermanMock) EXPECT ¶ added in v0.5.1
func (_m *EthermanMock) EXPECT() *EthermanMock_Expecter
func (*EthermanMock) EstimateGas ¶
func (_m *EthermanMock) 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 (*EthermanMock) GetLatestBatchNumber ¶
func (_m *EthermanMock) GetLatestBatchNumber() (uint64, error)
GetLatestBatchNumber provides a mock function with no fields
func (*EthermanMock) GetLatestBlockHeader ¶
GetLatestBlockHeader provides a mock function with given fields: ctx
type EthermanMock_CurrentNonce_Call ¶ added in v0.5.1
EthermanMock_CurrentNonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentNonce'
func (*EthermanMock_CurrentNonce_Call) Return ¶ added in v0.5.1
func (_c *EthermanMock_CurrentNonce_Call) Return(_a0 uint64, _a1 error) *EthermanMock_CurrentNonce_Call
func (*EthermanMock_CurrentNonce_Call) Run ¶ added in v0.5.1
func (_c *EthermanMock_CurrentNonce_Call) Run(run func(ctx context.Context, address common.Address)) *EthermanMock_CurrentNonce_Call
func (*EthermanMock_CurrentNonce_Call) RunAndReturn ¶ added in v0.5.1
func (_c *EthermanMock_CurrentNonce_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthermanMock_CurrentNonce_Call
type EthermanMock_EstimateGas_Call ¶ added in v0.5.1
EthermanMock_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'
func (*EthermanMock_EstimateGas_Call) Return ¶ added in v0.5.1
func (_c *EthermanMock_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthermanMock_EstimateGas_Call
func (*EthermanMock_EstimateGas_Call) RunAndReturn ¶ added in v0.5.1
type EthermanMock_Expecter ¶ added in v0.5.1
type EthermanMock_Expecter struct {
// contains filtered or unexported fields
}
func (*EthermanMock_Expecter) CurrentNonce ¶ added in v0.5.1
func (_e *EthermanMock_Expecter) CurrentNonce(ctx interface{}, address interface{}) *EthermanMock_CurrentNonce_Call
CurrentNonce is a helper method to define mock.On call
- ctx context.Context
- address common.Address
func (*EthermanMock_Expecter) EstimateGas ¶ added in v0.5.1
func (_e *EthermanMock_Expecter) EstimateGas(ctx interface{}, from interface{}, to interface{}, value interface{}, data interface{}) *EthermanMock_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 (*EthermanMock_Expecter) GetLatestBatchNumber ¶ added in v0.5.1
func (_e *EthermanMock_Expecter) GetLatestBatchNumber() *EthermanMock_GetLatestBatchNumber_Call
GetLatestBatchNumber is a helper method to define mock.On call
func (*EthermanMock_Expecter) GetLatestBlockHeader ¶ added in v0.5.1
func (_e *EthermanMock_Expecter) GetLatestBlockHeader(ctx interface{}) *EthermanMock_GetLatestBlockHeader_Call
GetLatestBlockHeader is a helper method to define mock.On call
- ctx context.Context
type EthermanMock_GetLatestBatchNumber_Call ¶ added in v0.5.1
EthermanMock_GetLatestBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBatchNumber'
func (*EthermanMock_GetLatestBatchNumber_Call) Return ¶ added in v0.5.1
func (_c *EthermanMock_GetLatestBatchNumber_Call) Return(_a0 uint64, _a1 error) *EthermanMock_GetLatestBatchNumber_Call
func (*EthermanMock_GetLatestBatchNumber_Call) Run ¶ added in v0.5.1
func (_c *EthermanMock_GetLatestBatchNumber_Call) Run(run func()) *EthermanMock_GetLatestBatchNumber_Call
func (*EthermanMock_GetLatestBatchNumber_Call) RunAndReturn ¶ added in v0.5.1
func (_c *EthermanMock_GetLatestBatchNumber_Call) RunAndReturn(run func() (uint64, error)) *EthermanMock_GetLatestBatchNumber_Call
type EthermanMock_GetLatestBlockHeader_Call ¶ added in v0.5.1
EthermanMock_GetLatestBlockHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlockHeader'
func (*EthermanMock_GetLatestBlockHeader_Call) Return ¶ added in v0.5.1
func (_c *EthermanMock_GetLatestBlockHeader_Call) Return(_a0 *types.Header, _a1 error) *EthermanMock_GetLatestBlockHeader_Call
func (*EthermanMock_GetLatestBlockHeader_Call) Run ¶ added in v0.5.1
func (_c *EthermanMock_GetLatestBlockHeader_Call) Run(run func(ctx context.Context)) *EthermanMock_GetLatestBlockHeader_Call
func (*EthermanMock_GetLatestBlockHeader_Call) RunAndReturn ¶ added in v0.5.1
func (_c *EthermanMock_GetLatestBlockHeader_Call) RunAndReturn(run func(context.Context) (*types.Header, error)) *EthermanMock_GetLatestBlockHeader_Call
type RPCInterfaceMock ¶ added in v0.4.0
RPCInterfaceMock is an autogenerated mock type for the RPCInterface type
func NewRPCInterfaceMock ¶ added in v0.4.0
func NewRPCInterfaceMock(t interface {
mock.TestingT
Cleanup(func())
}) *RPCInterfaceMock
NewRPCInterfaceMock creates a new instance of RPCInterfaceMock. 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 (*RPCInterfaceMock) EXPECT ¶ added in v0.5.1
func (_m *RPCInterfaceMock) EXPECT() *RPCInterfaceMock_Expecter
func (*RPCInterfaceMock) GetBatch ¶ added in v0.4.0
func (_m *RPCInterfaceMock) GetBatch(batchNumber uint64) (*types.RPCBatch, error)
GetBatch provides a mock function with given fields: batchNumber
func (*RPCInterfaceMock) GetWitness ¶ added in v0.4.0
func (_m *RPCInterfaceMock) GetWitness(batchNumber uint64, fullWitness bool) ([]byte, error)
GetWitness provides a mock function with given fields: batchNumber, fullWitness
type RPCInterfaceMock_Expecter ¶ added in v0.5.1
type RPCInterfaceMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RPCInterfaceMock_Expecter) GetBatch ¶ added in v0.5.1
func (_e *RPCInterfaceMock_Expecter) GetBatch(batchNumber interface{}) *RPCInterfaceMock_GetBatch_Call
GetBatch is a helper method to define mock.On call
- batchNumber uint64
func (*RPCInterfaceMock_Expecter) GetWitness ¶ added in v0.5.1
func (_e *RPCInterfaceMock_Expecter) GetWitness(batchNumber interface{}, fullWitness interface{}) *RPCInterfaceMock_GetWitness_Call
GetWitness is a helper method to define mock.On call
- batchNumber uint64
- fullWitness bool
type RPCInterfaceMock_GetBatch_Call ¶ added in v0.5.1
RPCInterfaceMock_GetBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBatch'
func (*RPCInterfaceMock_GetBatch_Call) Return ¶ added in v0.5.1
func (_c *RPCInterfaceMock_GetBatch_Call) Return(_a0 *types.RPCBatch, _a1 error) *RPCInterfaceMock_GetBatch_Call
func (*RPCInterfaceMock_GetBatch_Call) Run ¶ added in v0.5.1
func (_c *RPCInterfaceMock_GetBatch_Call) Run(run func(batchNumber uint64)) *RPCInterfaceMock_GetBatch_Call
func (*RPCInterfaceMock_GetBatch_Call) RunAndReturn ¶ added in v0.5.1
func (_c *RPCInterfaceMock_GetBatch_Call) RunAndReturn(run func(uint64) (*types.RPCBatch, error)) *RPCInterfaceMock_GetBatch_Call
type RPCInterfaceMock_GetWitness_Call ¶ added in v0.5.1
RPCInterfaceMock_GetWitness_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWitness'
func (*RPCInterfaceMock_GetWitness_Call) Return ¶ added in v0.5.1
func (_c *RPCInterfaceMock_GetWitness_Call) Return(_a0 []byte, _a1 error) *RPCInterfaceMock_GetWitness_Call
func (*RPCInterfaceMock_GetWitness_Call) Run ¶ added in v0.5.1
func (_c *RPCInterfaceMock_GetWitness_Call) Run(run func(batchNumber uint64, fullWitness bool)) *RPCInterfaceMock_GetWitness_Call
func (*RPCInterfaceMock_GetWitness_Call) RunAndReturn ¶ added in v0.5.1
func (_c *RPCInterfaceMock_GetWitness_Call) RunAndReturn(run func(uint64, bool) ([]byte, error)) *RPCInterfaceMock_GetWitness_Call
type TxBuilderMock ¶
TxBuilderMock is an autogenerated mock type for the TxBuilder type
func NewTxBuilderMock ¶
func NewTxBuilderMock(t interface {
mock.TestingT
Cleanup(func())
}) *TxBuilderMock
NewTxBuilderMock creates a new instance of TxBuilderMock. 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 (*TxBuilderMock) BuildSequenceBatchesTx ¶
func (_m *TxBuilderMock) BuildSequenceBatchesTx(ctx context.Context, sequences seqsendertypes.Sequence) (*types.Transaction, error)
BuildSequenceBatchesTx provides a mock function with given fields: ctx, sequences
func (*TxBuilderMock) EXPECT ¶
func (_m *TxBuilderMock) EXPECT() *TxBuilderMock_Expecter
func (*TxBuilderMock) NewBatchFromL2Block ¶
func (_m *TxBuilderMock) NewBatchFromL2Block(l2Block *datastream.L2Block) seqsendertypes.Batch
NewBatchFromL2Block provides a mock function with given fields: l2Block
func (*TxBuilderMock) NewSequence ¶
func (_m *TxBuilderMock) NewSequence(ctx context.Context, batches []seqsendertypes.Batch, coinbase common.Address) (seqsendertypes.Sequence, error)
NewSequence provides a mock function with given fields: ctx, batches, coinbase
func (*TxBuilderMock) NewSequenceIfWorthToSend ¶
func (_m *TxBuilderMock) NewSequenceIfWorthToSend(ctx context.Context, sequenceBatches []seqsendertypes.Batch, l2Coinbase common.Address, batchNumber uint64) (seqsendertypes.Sequence, error)
NewSequenceIfWorthToSend provides a mock function with given fields: ctx, sequenceBatches, l2Coinbase, batchNumber
func (*TxBuilderMock) SetCondNewSeq ¶
func (_m *TxBuilderMock) SetCondNewSeq(cond txbuilder.CondNewSequence) txbuilder.CondNewSequence
SetCondNewSeq provides a mock function with given fields: cond
func (*TxBuilderMock) String ¶
func (_m *TxBuilderMock) String() string
String provides a mock function with given fields:
type TxBuilderMock_BuildSequenceBatchesTx_Call ¶
TxBuilderMock_BuildSequenceBatchesTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildSequenceBatchesTx'
func (*TxBuilderMock_BuildSequenceBatchesTx_Call) Return ¶
func (_c *TxBuilderMock_BuildSequenceBatchesTx_Call) Return(_a0 *types.Transaction, _a1 error) *TxBuilderMock_BuildSequenceBatchesTx_Call
func (*TxBuilderMock_BuildSequenceBatchesTx_Call) Run ¶
func (_c *TxBuilderMock_BuildSequenceBatchesTx_Call) Run(run func(ctx context.Context, sequences seqsendertypes.Sequence)) *TxBuilderMock_BuildSequenceBatchesTx_Call
func (*TxBuilderMock_BuildSequenceBatchesTx_Call) RunAndReturn ¶
func (_c *TxBuilderMock_BuildSequenceBatchesTx_Call) RunAndReturn(run func(context.Context, seqsendertypes.Sequence) (*types.Transaction, error)) *TxBuilderMock_BuildSequenceBatchesTx_Call
type TxBuilderMock_Expecter ¶
type TxBuilderMock_Expecter struct {
// contains filtered or unexported fields
}
func (*TxBuilderMock_Expecter) BuildSequenceBatchesTx ¶
func (_e *TxBuilderMock_Expecter) BuildSequenceBatchesTx(ctx interface{}, sequences interface{}) *TxBuilderMock_BuildSequenceBatchesTx_Call
BuildSequenceBatchesTx is a helper method to define mock.On call
- ctx context.Context
- sequences seqsendertypes.Sequence
func (*TxBuilderMock_Expecter) NewBatchFromL2Block ¶
func (_e *TxBuilderMock_Expecter) NewBatchFromL2Block(l2Block interface{}) *TxBuilderMock_NewBatchFromL2Block_Call
NewBatchFromL2Block is a helper method to define mock.On call
- l2Block *datastream.L2Block
func (*TxBuilderMock_Expecter) NewSequence ¶
func (_e *TxBuilderMock_Expecter) NewSequence(ctx interface{}, batches interface{}, coinbase interface{}) *TxBuilderMock_NewSequence_Call
NewSequence is a helper method to define mock.On call
- ctx context.Context
- batches []seqsendertypes.Batch
- coinbase common.Address
func (*TxBuilderMock_Expecter) NewSequenceIfWorthToSend ¶
func (_e *TxBuilderMock_Expecter) NewSequenceIfWorthToSend(ctx interface{}, sequenceBatches interface{}, l2Coinbase interface{}, batchNumber interface{}) *TxBuilderMock_NewSequenceIfWorthToSend_Call
NewSequenceIfWorthToSend is a helper method to define mock.On call
- ctx context.Context
- sequenceBatches []seqsendertypes.Batch
- l2Coinbase common.Address
- batchNumber uint64
func (*TxBuilderMock_Expecter) SetCondNewSeq ¶
func (_e *TxBuilderMock_Expecter) SetCondNewSeq(cond interface{}) *TxBuilderMock_SetCondNewSeq_Call
SetCondNewSeq is a helper method to define mock.On call
- cond txbuilder.CondNewSequence
func (*TxBuilderMock_Expecter) String ¶
func (_e *TxBuilderMock_Expecter) String() *TxBuilderMock_String_Call
String is a helper method to define mock.On call
type TxBuilderMock_NewBatchFromL2Block_Call ¶
TxBuilderMock_NewBatchFromL2Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewBatchFromL2Block'
func (*TxBuilderMock_NewBatchFromL2Block_Call) Return ¶
func (_c *TxBuilderMock_NewBatchFromL2Block_Call) Return(_a0 seqsendertypes.Batch) *TxBuilderMock_NewBatchFromL2Block_Call
func (*TxBuilderMock_NewBatchFromL2Block_Call) Run ¶
func (_c *TxBuilderMock_NewBatchFromL2Block_Call) Run(run func(l2Block *datastream.L2Block)) *TxBuilderMock_NewBatchFromL2Block_Call
func (*TxBuilderMock_NewBatchFromL2Block_Call) RunAndReturn ¶
func (_c *TxBuilderMock_NewBatchFromL2Block_Call) RunAndReturn(run func(*datastream.L2Block) seqsendertypes.Batch) *TxBuilderMock_NewBatchFromL2Block_Call
type TxBuilderMock_NewSequenceIfWorthToSend_Call ¶
TxBuilderMock_NewSequenceIfWorthToSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewSequenceIfWorthToSend'
func (*TxBuilderMock_NewSequenceIfWorthToSend_Call) Return ¶
func (_c *TxBuilderMock_NewSequenceIfWorthToSend_Call) Return(_a0 seqsendertypes.Sequence, _a1 error) *TxBuilderMock_NewSequenceIfWorthToSend_Call
func (*TxBuilderMock_NewSequenceIfWorthToSend_Call) Run ¶
func (_c *TxBuilderMock_NewSequenceIfWorthToSend_Call) Run(run func(ctx context.Context, sequenceBatches []seqsendertypes.Batch, l2Coinbase common.Address, batchNumber uint64)) *TxBuilderMock_NewSequenceIfWorthToSend_Call
func (*TxBuilderMock_NewSequenceIfWorthToSend_Call) RunAndReturn ¶
func (_c *TxBuilderMock_NewSequenceIfWorthToSend_Call) RunAndReturn(run func(context.Context, []seqsendertypes.Batch, common.Address, uint64) (seqsendertypes.Sequence, error)) *TxBuilderMock_NewSequenceIfWorthToSend_Call
type TxBuilderMock_NewSequence_Call ¶
TxBuilderMock_NewSequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewSequence'
func (*TxBuilderMock_NewSequence_Call) Return ¶
func (_c *TxBuilderMock_NewSequence_Call) Return(_a0 seqsendertypes.Sequence, _a1 error) *TxBuilderMock_NewSequence_Call
func (*TxBuilderMock_NewSequence_Call) Run ¶
func (_c *TxBuilderMock_NewSequence_Call) Run(run func(ctx context.Context, batches []seqsendertypes.Batch, coinbase common.Address)) *TxBuilderMock_NewSequence_Call
func (*TxBuilderMock_NewSequence_Call) RunAndReturn ¶
func (_c *TxBuilderMock_NewSequence_Call) RunAndReturn(run func(context.Context, []seqsendertypes.Batch, common.Address) (seqsendertypes.Sequence, error)) *TxBuilderMock_NewSequence_Call
type TxBuilderMock_SetCondNewSeq_Call ¶
TxBuilderMock_SetCondNewSeq_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCondNewSeq'
func (*TxBuilderMock_SetCondNewSeq_Call) Return ¶
func (_c *TxBuilderMock_SetCondNewSeq_Call) Return(_a0 txbuilder.CondNewSequence) *TxBuilderMock_SetCondNewSeq_Call
func (*TxBuilderMock_SetCondNewSeq_Call) Run ¶
func (_c *TxBuilderMock_SetCondNewSeq_Call) Run(run func(cond txbuilder.CondNewSequence)) *TxBuilderMock_SetCondNewSeq_Call
func (*TxBuilderMock_SetCondNewSeq_Call) RunAndReturn ¶
func (_c *TxBuilderMock_SetCondNewSeq_Call) RunAndReturn(run func(txbuilder.CondNewSequence) txbuilder.CondNewSequence) *TxBuilderMock_SetCondNewSeq_Call
type TxBuilderMock_String_Call ¶
TxBuilderMock_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*TxBuilderMock_String_Call) Return ¶
func (_c *TxBuilderMock_String_Call) Return(_a0 string) *TxBuilderMock_String_Call
func (*TxBuilderMock_String_Call) Run ¶
func (_c *TxBuilderMock_String_Call) Run(run func()) *TxBuilderMock_String_Call
func (*TxBuilderMock_String_Call) RunAndReturn ¶
func (_c *TxBuilderMock_String_Call) RunAndReturn(run func() string) *TxBuilderMock_String_Call