mocks_txbuilder

package
v0.4.0-beta10 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CondNewSequence

type CondNewSequence struct {
	mock.Mock
}

CondNewSequence is an autogenerated mock type for the CondNewSequence type

func NewCondNewSequence

func NewCondNewSequence(t interface {
	mock.TestingT
	Cleanup(func())
}) *CondNewSequence

NewCondNewSequence creates a new instance of CondNewSequence. 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 (*CondNewSequence) EXPECT

func (*CondNewSequence) NewSequenceIfWorthToSend

func (_m *CondNewSequence) NewSequenceIfWorthToSend(ctx context.Context, txBuilder txbuilder.TxBuilder, sequenceBatches []seqsendertypes.Batch, l2Coinbase common.Address) (seqsendertypes.Sequence, error)

NewSequenceIfWorthToSend provides a mock function with given fields: ctx, txBuilder, sequenceBatches, l2Coinbase

type CondNewSequence_Expecter

type CondNewSequence_Expecter struct {
	// contains filtered or unexported fields
}

func (*CondNewSequence_Expecter) NewSequenceIfWorthToSend

func (_e *CondNewSequence_Expecter) NewSequenceIfWorthToSend(ctx interface{}, txBuilder interface{}, sequenceBatches interface{}, l2Coinbase interface{}) *CondNewSequence_NewSequenceIfWorthToSend_Call

NewSequenceIfWorthToSend is a helper method to define mock.On call

  • ctx context.Context
  • txBuilder txbuilder.TxBuilder
  • sequenceBatches []seqsendertypes.Batch
  • l2Coinbase common.Address

type CondNewSequence_NewSequenceIfWorthToSend_Call

type CondNewSequence_NewSequenceIfWorthToSend_Call struct {
	*mock.Call
}

CondNewSequence_NewSequenceIfWorthToSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewSequenceIfWorthToSend'

func (*CondNewSequence_NewSequenceIfWorthToSend_Call) Return

func (*CondNewSequence_NewSequenceIfWorthToSend_Call) Run

type GlobalExitRootBananaContractor

type GlobalExitRootBananaContractor struct {
	mock.Mock
}

GlobalExitRootBananaContractor is an autogenerated mock type for the globalExitRootBananaContractor type

func NewGlobalExitRootBananaContractor

func NewGlobalExitRootBananaContractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *GlobalExitRootBananaContractor

NewGlobalExitRootBananaContractor creates a new instance of GlobalExitRootBananaContractor. 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 (*GlobalExitRootBananaContractor) EXPECT

func (*GlobalExitRootBananaContractor) L1InfoRootMap

func (_m *GlobalExitRootBananaContractor) L1InfoRootMap(opts *bind.CallOpts, index uint32) ([32]byte, error)

L1InfoRootMap provides a mock function with given fields: opts, index

func (*GlobalExitRootBananaContractor) String

String provides a mock function with given fields:

type GlobalExitRootBananaContractor_Expecter

type GlobalExitRootBananaContractor_Expecter struct {
	// contains filtered or unexported fields
}

func (*GlobalExitRootBananaContractor_Expecter) L1InfoRootMap

func (_e *GlobalExitRootBananaContractor_Expecter) L1InfoRootMap(opts interface{}, index interface{}) *GlobalExitRootBananaContractor_L1InfoRootMap_Call

L1InfoRootMap is a helper method to define mock.On call

  • opts *bind.CallOpts
  • index uint32

func (*GlobalExitRootBananaContractor_Expecter) String

String is a helper method to define mock.On call

type GlobalExitRootBananaContractor_L1InfoRootMap_Call

type GlobalExitRootBananaContractor_L1InfoRootMap_Call struct {
	*mock.Call
}

GlobalExitRootBananaContractor_L1InfoRootMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'L1InfoRootMap'

func (*GlobalExitRootBananaContractor_L1InfoRootMap_Call) Return

func (*GlobalExitRootBananaContractor_L1InfoRootMap_Call) Run

func (*GlobalExitRootBananaContractor_L1InfoRootMap_Call) RunAndReturn

type GlobalExitRootBananaContractor_String_Call

type GlobalExitRootBananaContractor_String_Call struct {
	*mock.Call
}

GlobalExitRootBananaContractor_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'

func (*GlobalExitRootBananaContractor_String_Call) Return

func (*GlobalExitRootBananaContractor_String_Call) Run

func (*GlobalExitRootBananaContractor_String_Call) RunAndReturn

type GlobalExitRootBananaZKEVMContractor

type GlobalExitRootBananaZKEVMContractor struct {
	mock.Mock
}

GlobalExitRootBananaZKEVMContractor is an autogenerated mock type for the globalExitRootBananaZKEVMContractor type

func NewGlobalExitRootBananaZKEVMContractor

func NewGlobalExitRootBananaZKEVMContractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *GlobalExitRootBananaZKEVMContractor

NewGlobalExitRootBananaZKEVMContractor creates a new instance of GlobalExitRootBananaZKEVMContractor. 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 (*GlobalExitRootBananaZKEVMContractor) EXPECT

func (*GlobalExitRootBananaZKEVMContractor) L1InfoRootMap

func (_m *GlobalExitRootBananaZKEVMContractor) L1InfoRootMap(opts *bind.CallOpts, index uint32) ([32]byte, error)

L1InfoRootMap provides a mock function with given fields: opts, index

func (*GlobalExitRootBananaZKEVMContractor) String

String provides a mock function with given fields:

type GlobalExitRootBananaZKEVMContractor_Expecter

type GlobalExitRootBananaZKEVMContractor_Expecter struct {
	// contains filtered or unexported fields
}

func (*GlobalExitRootBananaZKEVMContractor_Expecter) L1InfoRootMap

func (_e *GlobalExitRootBananaZKEVMContractor_Expecter) L1InfoRootMap(opts interface{}, index interface{}) *GlobalExitRootBananaZKEVMContractor_L1InfoRootMap_Call

L1InfoRootMap is a helper method to define mock.On call

  • opts *bind.CallOpts
  • index uint32

func (*GlobalExitRootBananaZKEVMContractor_Expecter) String

String is a helper method to define mock.On call

type GlobalExitRootBananaZKEVMContractor_L1InfoRootMap_Call

type GlobalExitRootBananaZKEVMContractor_L1InfoRootMap_Call struct {
	*mock.Call
}

GlobalExitRootBananaZKEVMContractor_L1InfoRootMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'L1InfoRootMap'

func (*GlobalExitRootBananaZKEVMContractor_L1InfoRootMap_Call) Return

func (*GlobalExitRootBananaZKEVMContractor_L1InfoRootMap_Call) Run

func (*GlobalExitRootBananaZKEVMContractor_L1InfoRootMap_Call) RunAndReturn

type GlobalExitRootBananaZKEVMContractor_String_Call

type GlobalExitRootBananaZKEVMContractor_String_Call struct {
	*mock.Call
}

GlobalExitRootBananaZKEVMContractor_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'

func (*GlobalExitRootBananaZKEVMContractor_String_Call) Return

func (*GlobalExitRootBananaZKEVMContractor_String_Call) Run

func (*GlobalExitRootBananaZKEVMContractor_String_Call) RunAndReturn

type L1Client

type L1Client struct {
	mock.Mock
}

L1Client is an autogenerated mock type for the l1Client type

func NewL1Client

func NewL1Client(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1Client

NewL1Client creates a new instance of L1Client. 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 (*L1Client) EXPECT

func (_m *L1Client) EXPECT() *L1Client_Expecter

func (*L1Client) HeaderByNumber

func (_m *L1Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

type L1Client_Expecter

type L1Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*L1Client_Expecter) HeaderByNumber

func (_e *L1Client_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *L1Client_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

type L1Client_HeaderByNumber_Call

type L1Client_HeaderByNumber_Call struct {
	*mock.Call
}

L1Client_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*L1Client_HeaderByNumber_Call) Return

func (*L1Client_HeaderByNumber_Call) Run

func (*L1Client_HeaderByNumber_Call) RunAndReturn

type L1InfoSyncer

type L1InfoSyncer struct {
	mock.Mock
}

L1InfoSyncer is an autogenerated mock type for the l1InfoSyncer type

func NewL1InfoSyncer

func NewL1InfoSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1InfoSyncer

NewL1InfoSyncer creates a new instance of L1InfoSyncer. 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 (*L1InfoSyncer) EXPECT

func (_m *L1InfoSyncer) EXPECT() *L1InfoSyncer_Expecter

func (*L1InfoSyncer) GetInitL1InfoRootMap added in v0.0.19

func (_m *L1InfoSyncer) GetInitL1InfoRootMap(ctx context.Context) (*l1infotreesync.L1InfoTreeInitial, error)

GetInitL1InfoRootMap provides a mock function with given fields: ctx

func (*L1InfoSyncer) GetLatestInfoUntilBlock

func (_m *L1InfoSyncer) GetLatestInfoUntilBlock(ctx context.Context, blockNum uint64) (*l1infotreesync.L1InfoTreeLeaf, error)

GetLatestInfoUntilBlock provides a mock function with given fields: ctx, blockNum

type L1InfoSyncer_Expecter

type L1InfoSyncer_Expecter struct {
	// contains filtered or unexported fields
}

func (*L1InfoSyncer_Expecter) GetInitL1InfoRootMap added in v0.0.19

func (_e *L1InfoSyncer_Expecter) GetInitL1InfoRootMap(ctx interface{}) *L1InfoSyncer_GetInitL1InfoRootMap_Call

GetInitL1InfoRootMap is a helper method to define mock.On call

  • ctx context.Context

func (*L1InfoSyncer_Expecter) GetLatestInfoUntilBlock

func (_e *L1InfoSyncer_Expecter) GetLatestInfoUntilBlock(ctx interface{}, blockNum interface{}) *L1InfoSyncer_GetLatestInfoUntilBlock_Call

GetLatestInfoUntilBlock is a helper method to define mock.On call

  • ctx context.Context
  • blockNum uint64

type L1InfoSyncer_GetInitL1InfoRootMap_Call added in v0.0.19

type L1InfoSyncer_GetInitL1InfoRootMap_Call struct {
	*mock.Call
}

L1InfoSyncer_GetInitL1InfoRootMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInitL1InfoRootMap'

func (*L1InfoSyncer_GetInitL1InfoRootMap_Call) Return added in v0.0.19

func (*L1InfoSyncer_GetInitL1InfoRootMap_Call) Run added in v0.0.19

func (*L1InfoSyncer_GetInitL1InfoRootMap_Call) RunAndReturn added in v0.0.19

type L1InfoSyncer_GetLatestInfoUntilBlock_Call

type L1InfoSyncer_GetLatestInfoUntilBlock_Call struct {
	*mock.Call
}

L1InfoSyncer_GetLatestInfoUntilBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestInfoUntilBlock'

func (*L1InfoSyncer_GetLatestInfoUntilBlock_Call) Return

func (*L1InfoSyncer_GetLatestInfoUntilBlock_Call) Run

func (*L1InfoSyncer_GetLatestInfoUntilBlock_Call) RunAndReturn

type RollupBananaBaseContractor

type RollupBananaBaseContractor struct {
	mock.Mock
}

RollupBananaBaseContractor is an autogenerated mock type for the rollupBananaBaseContractor type

func NewRollupBananaBaseContractor

func NewRollupBananaBaseContractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *RollupBananaBaseContractor

NewRollupBananaBaseContractor creates a new instance of RollupBananaBaseContractor. 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 (*RollupBananaBaseContractor) EXPECT

func (*RollupBananaBaseContractor) LastAccInputHash

func (_m *RollupBananaBaseContractor) LastAccInputHash(opts *bind.CallOpts) ([32]byte, error)

LastAccInputHash provides a mock function with given fields: opts

type RollupBananaBaseContractor_Expecter

type RollupBananaBaseContractor_Expecter struct {
	// contains filtered or unexported fields
}

func (*RollupBananaBaseContractor_Expecter) LastAccInputHash

LastAccInputHash is a helper method to define mock.On call

  • opts *bind.CallOpts

type RollupBananaBaseContractor_LastAccInputHash_Call

type RollupBananaBaseContractor_LastAccInputHash_Call struct {
	*mock.Call
}

RollupBananaBaseContractor_LastAccInputHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastAccInputHash'

func (*RollupBananaBaseContractor_LastAccInputHash_Call) Return

func (*RollupBananaBaseContractor_LastAccInputHash_Call) Run

func (*RollupBananaBaseContractor_LastAccInputHash_Call) RunAndReturn

type RollupBananaValidiumContractor

type RollupBananaValidiumContractor struct {
	mock.Mock
}

RollupBananaValidiumContractor is an autogenerated mock type for the rollupBananaValidiumContractor type

func NewRollupBananaValidiumContractor

func NewRollupBananaValidiumContractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *RollupBananaValidiumContractor

NewRollupBananaValidiumContractor creates a new instance of RollupBananaValidiumContractor. 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 (*RollupBananaValidiumContractor) EXPECT

func (*RollupBananaValidiumContractor) LastAccInputHash

func (_m *RollupBananaValidiumContractor) LastAccInputHash(opts *bind.CallOpts) ([32]byte, error)

LastAccInputHash provides a mock function with given fields: opts

func (*RollupBananaValidiumContractor) SequenceBatchesValidium

func (_m *RollupBananaValidiumContractor) SequenceBatchesValidium(opts *bind.TransactOpts, batches []polygonvalidiumetrog.PolygonValidiumEtrogValidiumBatchData, indexL1InfoRoot uint32, maxSequenceTimestamp uint64, expectedFinalAccInputHash [32]byte, l2Coinbase common.Address, dataAvailabilityMessage []byte) (*types.Transaction, error)

SequenceBatchesValidium provides a mock function with given fields: opts, batches, indexL1InfoRoot, maxSequenceTimestamp, expectedFinalAccInputHash, l2Coinbase, dataAvailabilityMessage

type RollupBananaValidiumContractor_Expecter

type RollupBananaValidiumContractor_Expecter struct {
	// contains filtered or unexported fields
}

func (*RollupBananaValidiumContractor_Expecter) LastAccInputHash

LastAccInputHash is a helper method to define mock.On call

  • opts *bind.CallOpts

func (*RollupBananaValidiumContractor_Expecter) SequenceBatchesValidium

func (_e *RollupBananaValidiumContractor_Expecter) SequenceBatchesValidium(opts interface{}, batches interface{}, indexL1InfoRoot interface{}, maxSequenceTimestamp interface{}, expectedFinalAccInputHash interface{}, l2Coinbase interface{}, dataAvailabilityMessage interface{}) *RollupBananaValidiumContractor_SequenceBatchesValidium_Call

SequenceBatchesValidium is a helper method to define mock.On call

  • opts *bind.TransactOpts
  • batches []polygonvalidiumetrog.PolygonValidiumEtrogValidiumBatchData
  • indexL1InfoRoot uint32
  • maxSequenceTimestamp uint64
  • expectedFinalAccInputHash [32]byte
  • l2Coinbase common.Address
  • dataAvailabilityMessage []byte

type RollupBananaValidiumContractor_LastAccInputHash_Call

type RollupBananaValidiumContractor_LastAccInputHash_Call struct {
	*mock.Call
}

RollupBananaValidiumContractor_LastAccInputHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastAccInputHash'

func (*RollupBananaValidiumContractor_LastAccInputHash_Call) Return

func (*RollupBananaValidiumContractor_LastAccInputHash_Call) Run

func (*RollupBananaValidiumContractor_LastAccInputHash_Call) RunAndReturn

type RollupBananaValidiumContractor_SequenceBatchesValidium_Call

type RollupBananaValidiumContractor_SequenceBatchesValidium_Call struct {
	*mock.Call
}

RollupBananaValidiumContractor_SequenceBatchesValidium_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SequenceBatchesValidium'

func (*RollupBananaValidiumContractor_SequenceBatchesValidium_Call) Return

func (*RollupBananaValidiumContractor_SequenceBatchesValidium_Call) Run

func (_c *RollupBananaValidiumContractor_SequenceBatchesValidium_Call) Run(run func(opts *bind.TransactOpts, batches []polygonvalidiumetrog.PolygonValidiumEtrogValidiumBatchData, indexL1InfoRoot uint32, maxSequenceTimestamp uint64, expectedFinalAccInputHash [32]byte, l2Coinbase common.Address, dataAvailabilityMessage []byte)) *RollupBananaValidiumContractor_SequenceBatchesValidium_Call

type RollupBananaZKEVMContractor

type RollupBananaZKEVMContractor struct {
	mock.Mock
}

RollupBananaZKEVMContractor is an autogenerated mock type for the rollupBananaZKEVMContractor type

func NewRollupBananaZKEVMContractor

func NewRollupBananaZKEVMContractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *RollupBananaZKEVMContractor

NewRollupBananaZKEVMContractor creates a new instance of RollupBananaZKEVMContractor. 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 (*RollupBananaZKEVMContractor) EXPECT

func (*RollupBananaZKEVMContractor) LastAccInputHash

func (_m *RollupBananaZKEVMContractor) LastAccInputHash(opts *bind.CallOpts) ([32]byte, error)

LastAccInputHash provides a mock function with given fields: opts

func (*RollupBananaZKEVMContractor) SequenceBatches

func (_m *RollupBananaZKEVMContractor) SequenceBatches(opts *bind.TransactOpts, batches []polygonvalidiumetrog.PolygonRollupBaseEtrogBatchData, indexL1InfoRoot uint32, maxSequenceTimestamp uint64, expectedFinalAccInputHash [32]byte, l2Coinbase common.Address) (*types.Transaction, error)

SequenceBatches provides a mock function with given fields: opts, batches, indexL1InfoRoot, maxSequenceTimestamp, expectedFinalAccInputHash, l2Coinbase

type RollupBananaZKEVMContractor_Expecter

type RollupBananaZKEVMContractor_Expecter struct {
	// contains filtered or unexported fields
}

func (*RollupBananaZKEVMContractor_Expecter) LastAccInputHash

LastAccInputHash is a helper method to define mock.On call

  • opts *bind.CallOpts

func (*RollupBananaZKEVMContractor_Expecter) SequenceBatches

func (_e *RollupBananaZKEVMContractor_Expecter) SequenceBatches(opts interface{}, batches interface{}, indexL1InfoRoot interface{}, maxSequenceTimestamp interface{}, expectedFinalAccInputHash interface{}, l2Coinbase interface{}) *RollupBananaZKEVMContractor_SequenceBatches_Call

SequenceBatches is a helper method to define mock.On call

  • opts *bind.TransactOpts
  • batches []polygonvalidiumetrog.PolygonRollupBaseEtrogBatchData
  • indexL1InfoRoot uint32
  • maxSequenceTimestamp uint64
  • expectedFinalAccInputHash [32]byte
  • l2Coinbase common.Address

type RollupBananaZKEVMContractor_LastAccInputHash_Call

type RollupBananaZKEVMContractor_LastAccInputHash_Call struct {
	*mock.Call
}

RollupBananaZKEVMContractor_LastAccInputHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastAccInputHash'

func (*RollupBananaZKEVMContractor_LastAccInputHash_Call) Return

func (*RollupBananaZKEVMContractor_LastAccInputHash_Call) Run

func (*RollupBananaZKEVMContractor_LastAccInputHash_Call) RunAndReturn

type RollupBananaZKEVMContractor_SequenceBatches_Call

type RollupBananaZKEVMContractor_SequenceBatches_Call struct {
	*mock.Call
}

RollupBananaZKEVMContractor_SequenceBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SequenceBatches'

func (*RollupBananaZKEVMContractor_SequenceBatches_Call) Return

func (*RollupBananaZKEVMContractor_SequenceBatches_Call) Run

func (_c *RollupBananaZKEVMContractor_SequenceBatches_Call) Run(run func(opts *bind.TransactOpts, batches []polygonvalidiumetrog.PolygonRollupBaseEtrogBatchData, indexL1InfoRoot uint32, maxSequenceTimestamp uint64, expectedFinalAccInputHash [32]byte, l2Coinbase common.Address)) *RollupBananaZKEVMContractor_SequenceBatches_Call

type RollupElderberryValidiumContractor

type RollupElderberryValidiumContractor struct {
	mock.Mock
}

RollupElderberryValidiumContractor is an autogenerated mock type for the rollupElderberryValidiumContractor type

func NewRollupElderberryValidiumContractor

func NewRollupElderberryValidiumContractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *RollupElderberryValidiumContractor

NewRollupElderberryValidiumContractor creates a new instance of RollupElderberryValidiumContractor. 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 (*RollupElderberryValidiumContractor) EXPECT

func (*RollupElderberryValidiumContractor) SequenceBatchesValidium

func (_m *RollupElderberryValidiumContractor) SequenceBatchesValidium(opts *bind.TransactOpts, batches []polygonvalidiumetrog.PolygonValidiumEtrogValidiumBatchData, maxSequenceTimestamp uint64, initSequencedBatch uint64, l2Coinbase common.Address, dataAvailabilityMessage []byte) (*types.Transaction, error)

SequenceBatchesValidium provides a mock function with given fields: opts, batches, maxSequenceTimestamp, initSequencedBatch, l2Coinbase, dataAvailabilityMessage

type RollupElderberryValidiumContractor_Expecter

type RollupElderberryValidiumContractor_Expecter struct {
	// contains filtered or unexported fields
}

func (*RollupElderberryValidiumContractor_Expecter) SequenceBatchesValidium

func (_e *RollupElderberryValidiumContractor_Expecter) SequenceBatchesValidium(opts interface{}, batches interface{}, maxSequenceTimestamp interface{}, initSequencedBatch interface{}, l2Coinbase interface{}, dataAvailabilityMessage interface{}) *RollupElderberryValidiumContractor_SequenceBatchesValidium_Call

SequenceBatchesValidium is a helper method to define mock.On call

  • opts *bind.TransactOpts
  • batches []polygonvalidiumetrog.PolygonValidiumEtrogValidiumBatchData
  • maxSequenceTimestamp uint64
  • initSequencedBatch uint64
  • l2Coinbase common.Address
  • dataAvailabilityMessage []byte

type RollupElderberryValidiumContractor_SequenceBatchesValidium_Call

type RollupElderberryValidiumContractor_SequenceBatchesValidium_Call struct {
	*mock.Call
}

RollupElderberryValidiumContractor_SequenceBatchesValidium_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SequenceBatchesValidium'

func (*RollupElderberryValidiumContractor_SequenceBatchesValidium_Call) Return

func (*RollupElderberryValidiumContractor_SequenceBatchesValidium_Call) Run

type RollupElderberryZKEVMContractor

type RollupElderberryZKEVMContractor struct {
	mock.Mock
}

RollupElderberryZKEVMContractor is an autogenerated mock type for the rollupElderberryZKEVMContractor type

func NewRollupElderberryZKEVMContractor

func NewRollupElderberryZKEVMContractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *RollupElderberryZKEVMContractor

NewRollupElderberryZKEVMContractor creates a new instance of RollupElderberryZKEVMContractor. 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 (*RollupElderberryZKEVMContractor) EXPECT

func (*RollupElderberryZKEVMContractor) SequenceBatches

func (_m *RollupElderberryZKEVMContractor) SequenceBatches(opts *bind.TransactOpts, batches []polygonvalidiumetrog.PolygonRollupBaseEtrogBatchData, maxSequenceTimestamp uint64, initSequencedBatch uint64, l2Coinbase common.Address) (*types.Transaction, error)

SequenceBatches provides a mock function with given fields: opts, batches, maxSequenceTimestamp, initSequencedBatch, l2Coinbase

type RollupElderberryZKEVMContractor_Expecter

type RollupElderberryZKEVMContractor_Expecter struct {
	// contains filtered or unexported fields
}

func (*RollupElderberryZKEVMContractor_Expecter) SequenceBatches

func (_e *RollupElderberryZKEVMContractor_Expecter) SequenceBatches(opts interface{}, batches interface{}, maxSequenceTimestamp interface{}, initSequencedBatch interface{}, l2Coinbase interface{}) *RollupElderberryZKEVMContractor_SequenceBatches_Call

SequenceBatches is a helper method to define mock.On call

  • opts *bind.TransactOpts
  • batches []polygonvalidiumetrog.PolygonRollupBaseEtrogBatchData
  • maxSequenceTimestamp uint64
  • initSequencedBatch uint64
  • l2Coinbase common.Address

type RollupElderberryZKEVMContractor_SequenceBatches_Call

type RollupElderberryZKEVMContractor_SequenceBatches_Call struct {
	*mock.Call
}

RollupElderberryZKEVMContractor_SequenceBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SequenceBatches'

func (*RollupElderberryZKEVMContractor_SequenceBatches_Call) Return

func (*RollupElderberryZKEVMContractor_SequenceBatches_Call) Run

type TxBuilder

type TxBuilder struct {
	mock.Mock
}

TxBuilder is an autogenerated mock type for the TxBuilder type

func NewTxBuilder

func NewTxBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *TxBuilder

NewTxBuilder creates a new instance of TxBuilder. 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 (*TxBuilder) BuildSequenceBatchesTx

func (_m *TxBuilder) BuildSequenceBatchesTx(ctx context.Context, sequences seqsendertypes.Sequence) (*types.Transaction, error)

BuildSequenceBatchesTx provides a mock function with given fields: ctx, sequences

func (*TxBuilder) EXPECT

func (_m *TxBuilder) EXPECT() *TxBuilder_Expecter

func (*TxBuilder) NewBatchFromL2Block

func (_m *TxBuilder) NewBatchFromL2Block(l2Block *datastream.L2Block) seqsendertypes.Batch

NewBatchFromL2Block provides a mock function with given fields: l2Block

func (*TxBuilder) NewSequence

func (_m *TxBuilder) 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 (*TxBuilder) NewSequenceIfWorthToSend

func (_m *TxBuilder) 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 (*TxBuilder) SetCondNewSeq

SetCondNewSeq provides a mock function with given fields: cond

func (*TxBuilder) String

func (_m *TxBuilder) String() string

String provides a mock function with given fields:

type TxBuilder_BuildSequenceBatchesTx_Call

type TxBuilder_BuildSequenceBatchesTx_Call struct {
	*mock.Call
}

TxBuilder_BuildSequenceBatchesTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildSequenceBatchesTx'

func (*TxBuilder_BuildSequenceBatchesTx_Call) Return

func (*TxBuilder_BuildSequenceBatchesTx_Call) Run

func (*TxBuilder_BuildSequenceBatchesTx_Call) RunAndReturn

type TxBuilder_Expecter

type TxBuilder_Expecter struct {
	// contains filtered or unexported fields
}

func (*TxBuilder_Expecter) BuildSequenceBatchesTx

func (_e *TxBuilder_Expecter) BuildSequenceBatchesTx(ctx interface{}, sequences interface{}) *TxBuilder_BuildSequenceBatchesTx_Call

BuildSequenceBatchesTx is a helper method to define mock.On call

  • ctx context.Context
  • sequences seqsendertypes.Sequence

func (*TxBuilder_Expecter) NewBatchFromL2Block

func (_e *TxBuilder_Expecter) NewBatchFromL2Block(l2Block interface{}) *TxBuilder_NewBatchFromL2Block_Call

NewBatchFromL2Block is a helper method to define mock.On call

  • l2Block *datastream.L2Block

func (*TxBuilder_Expecter) NewSequence

func (_e *TxBuilder_Expecter) NewSequence(ctx interface{}, batches interface{}, coinbase interface{}) *TxBuilder_NewSequence_Call

NewSequence is a helper method to define mock.On call

  • ctx context.Context
  • batches []seqsendertypes.Batch
  • coinbase common.Address

func (*TxBuilder_Expecter) NewSequenceIfWorthToSend

func (_e *TxBuilder_Expecter) NewSequenceIfWorthToSend(ctx interface{}, sequenceBatches interface{}, l2Coinbase interface{}, batchNumber interface{}) *TxBuilder_NewSequenceIfWorthToSend_Call

NewSequenceIfWorthToSend is a helper method to define mock.On call

  • ctx context.Context
  • sequenceBatches []seqsendertypes.Batch
  • l2Coinbase common.Address
  • batchNumber uint64

func (*TxBuilder_Expecter) SetCondNewSeq

func (_e *TxBuilder_Expecter) SetCondNewSeq(cond interface{}) *TxBuilder_SetCondNewSeq_Call

SetCondNewSeq is a helper method to define mock.On call

  • cond txbuilder.CondNewSequence

func (*TxBuilder_Expecter) String

String is a helper method to define mock.On call

type TxBuilder_NewBatchFromL2Block_Call

type TxBuilder_NewBatchFromL2Block_Call struct {
	*mock.Call
}

TxBuilder_NewBatchFromL2Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewBatchFromL2Block'

func (*TxBuilder_NewBatchFromL2Block_Call) Return

func (*TxBuilder_NewBatchFromL2Block_Call) Run

func (*TxBuilder_NewBatchFromL2Block_Call) RunAndReturn

type TxBuilder_NewSequenceIfWorthToSend_Call

type TxBuilder_NewSequenceIfWorthToSend_Call struct {
	*mock.Call
}

TxBuilder_NewSequenceIfWorthToSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewSequenceIfWorthToSend'

func (*TxBuilder_NewSequenceIfWorthToSend_Call) Return

func (*TxBuilder_NewSequenceIfWorthToSend_Call) Run

type TxBuilder_NewSequence_Call

type TxBuilder_NewSequence_Call struct {
	*mock.Call
}

TxBuilder_NewSequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewSequence'

func (*TxBuilder_NewSequence_Call) Return

func (*TxBuilder_NewSequence_Call) Run

type TxBuilder_SetCondNewSeq_Call

type TxBuilder_SetCondNewSeq_Call struct {
	*mock.Call
}

TxBuilder_SetCondNewSeq_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCondNewSeq'

func (*TxBuilder_SetCondNewSeq_Call) Return

func (*TxBuilder_SetCondNewSeq_Call) Run

func (*TxBuilder_SetCondNewSeq_Call) RunAndReturn

type TxBuilder_String_Call

type TxBuilder_String_Call struct {
	*mock.Call
}

TxBuilder_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'

func (*TxBuilder_String_Call) Return

func (*TxBuilder_String_Call) Run

func (_c *TxBuilder_String_Call) Run(run func()) *TxBuilder_String_Call

func (*TxBuilder_String_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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