mocks

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthTxManagerMock

type EthTxManagerMock struct {
	mock.Mock
}

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 (*EthTxManagerMock) Remove

func (_m *EthTxManagerMock) Remove(ctx context.Context, hash common.Hash) error

Remove provides a mock function with given fields: ctx, hash

func (*EthTxManagerMock) Result

Result provides a mock function with given fields: ctx, hash

func (*EthTxManagerMock) ResultsByStatus

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

type EthTxManagerMock_AddWithGas_Call struct {
	*mock.Call
}

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 (*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

Start is a helper method to define mock.On call

type EthTxManagerMock_Remove_Call added in v0.5.1

type EthTxManagerMock_Remove_Call struct {
	*mock.Call
}

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 (*EthTxManagerMock_Remove_Call) Run added in v0.5.1

func (*EthTxManagerMock_Remove_Call) RunAndReturn added in v0.5.1

type EthTxManagerMock_Result_Call added in v0.5.1

type EthTxManagerMock_Result_Call struct {
	*mock.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 added in v0.5.1

func (*EthTxManagerMock_Result_Call) Run added in v0.5.1

func (*EthTxManagerMock_Result_Call) RunAndReturn added in v0.5.1

type EthTxManagerMock_ResultsByStatus_Call added in v0.5.1

type EthTxManagerMock_ResultsByStatus_Call struct {
	*mock.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 added in v0.5.1

func (*EthTxManagerMock_ResultsByStatus_Call) Run added in v0.5.1

type EthTxManagerMock_Start_Call added in v0.5.1

type EthTxManagerMock_Start_Call struct {
	*mock.Call
}

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 (*EthTxManagerMock_Start_Call) Run added in v0.5.1

func (*EthTxManagerMock_Start_Call) RunAndReturn added in v0.5.1

func (_c *EthTxManagerMock_Start_Call) RunAndReturn(run func()) *EthTxManagerMock_Start_Call

type EthermanMock

type EthermanMock struct {
	mock.Mock
}

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

func (_m *EthermanMock) CurrentNonce(ctx context.Context, address common.Address) (uint64, error)

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

func (_m *EthermanMock) GetLatestBlockHeader(ctx context.Context) (*types.Header, error)

GetLatestBlockHeader provides a mock function with given fields: ctx

type EthermanMock_CurrentNonce_Call added in v0.5.1

type EthermanMock_CurrentNonce_Call struct {
	*mock.Call
}

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 (*EthermanMock_CurrentNonce_Call) Run added in v0.5.1

func (*EthermanMock_CurrentNonce_Call) RunAndReturn added in v0.5.1

type EthermanMock_EstimateGas_Call added in v0.5.1

type EthermanMock_EstimateGas_Call struct {
	*mock.Call
}

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 (*EthermanMock_EstimateGas_Call) Run added in v0.5.1

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

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

type EthermanMock_GetLatestBatchNumber_Call struct {
	*mock.Call
}

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 (*EthermanMock_GetLatestBatchNumber_Call) Run added in v0.5.1

func (*EthermanMock_GetLatestBatchNumber_Call) RunAndReturn added in v0.5.1

type EthermanMock_GetLatestBlockHeader_Call added in v0.5.1

type EthermanMock_GetLatestBlockHeader_Call struct {
	*mock.Call
}

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 (*EthermanMock_GetLatestBlockHeader_Call) Run added in v0.5.1

func (*EthermanMock_GetLatestBlockHeader_Call) RunAndReturn added in v0.5.1

type RPCInterfaceMock added in v0.4.0

type RPCInterfaceMock struct {
	mock.Mock
}

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 (*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

type RPCInterfaceMock_GetBatch_Call struct {
	*mock.Call
}

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 (*RPCInterfaceMock_GetBatch_Call) Run added in v0.5.1

func (*RPCInterfaceMock_GetBatch_Call) RunAndReturn added in v0.5.1

type RPCInterfaceMock_GetWitness_Call added in v0.5.1

type RPCInterfaceMock_GetWitness_Call struct {
	*mock.Call
}

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 (*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

type TxBuilderMock

type TxBuilderMock struct {
	mock.Mock
}

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

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

type TxBuilderMock_BuildSequenceBatchesTx_Call struct {
	*mock.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 (*TxBuilderMock_BuildSequenceBatchesTx_Call) Run

func (*TxBuilderMock_BuildSequenceBatchesTx_Call) RunAndReturn

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

String is a helper method to define mock.On call

type TxBuilderMock_NewBatchFromL2Block_Call

type TxBuilderMock_NewBatchFromL2Block_Call struct {
	*mock.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 (*TxBuilderMock_NewBatchFromL2Block_Call) Run

func (*TxBuilderMock_NewBatchFromL2Block_Call) RunAndReturn

type TxBuilderMock_NewSequenceIfWorthToSend_Call

type TxBuilderMock_NewSequenceIfWorthToSend_Call struct {
	*mock.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 (*TxBuilderMock_NewSequenceIfWorthToSend_Call) Run

type TxBuilderMock_NewSequence_Call

type TxBuilderMock_NewSequence_Call struct {
	*mock.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 (*TxBuilderMock_NewSequence_Call) Run

type TxBuilderMock_SetCondNewSeq_Call

type TxBuilderMock_SetCondNewSeq_Call struct {
	*mock.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 (*TxBuilderMock_SetCondNewSeq_Call) Run

func (*TxBuilderMock_SetCondNewSeq_Call) RunAndReturn

type TxBuilderMock_String_Call

type TxBuilderMock_String_Call struct {
	*mock.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 (*TxBuilderMock_String_Call) Run

func (*TxBuilderMock_String_Call) RunAndReturn

func (_c *TxBuilderMock_String_Call) RunAndReturn(run func() string) *TxBuilderMock_String_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL