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) 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 EthermanMock
- func (_m *EthermanMock) CurrentNonce(ctx context.Context, address common.Address) (uint64, error)
- 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 RPCInterfaceMock
- 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) 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 given fields:
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) 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 given fields:
func (*EthermanMock) GetLatestBlockHeader ¶
GetLatestBlockHeader provides a mock function with given fields: ctx
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) 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 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