mocks

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgglayerManagerUpgradeQuerier added in v0.8.0

type AgglayerManagerUpgradeQuerier struct {
	mock.Mock
}

AgglayerManagerUpgradeQuerier is an autogenerated mock type for the AgglayerManagerUpgradeQuerier type

func NewAgglayerManagerUpgradeQuerier added in v0.8.0

func NewAgglayerManagerUpgradeQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *AgglayerManagerUpgradeQuerier

NewAgglayerManagerUpgradeQuerier creates a new instance of AgglayerManagerUpgradeQuerier. 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 (*AgglayerManagerUpgradeQuerier) EXPECT added in v0.8.0

func (*AgglayerManagerUpgradeQuerier) GetUpgradeBlock added in v0.8.0

func (_m *AgglayerManagerUpgradeQuerier) GetUpgradeBlock(ctx context.Context, versionID uint8) uint64

GetUpgradeBlock provides a mock function with given fields: ctx, versionID

type AgglayerManagerUpgradeQuerier_Expecter added in v0.8.0

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

func (*AgglayerManagerUpgradeQuerier_Expecter) GetUpgradeBlock added in v0.8.0

func (_e *AgglayerManagerUpgradeQuerier_Expecter) GetUpgradeBlock(ctx interface{}, versionID interface{}) *AgglayerManagerUpgradeQuerier_GetUpgradeBlock_Call

GetUpgradeBlock is a helper method to define mock.On call

  • ctx context.Context
  • versionID uint8

type AgglayerManagerUpgradeQuerier_GetUpgradeBlock_Call added in v0.8.0

type AgglayerManagerUpgradeQuerier_GetUpgradeBlock_Call struct {
	*mock.Call
}

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

func (*AgglayerManagerUpgradeQuerier_GetUpgradeBlock_Call) Return added in v0.8.0

func (*AgglayerManagerUpgradeQuerier_GetUpgradeBlock_Call) Run added in v0.8.0

func (*AgglayerManagerUpgradeQuerier_GetUpgradeBlock_Call) RunAndReturn added in v0.8.0

type Bridger

type Bridger struct {
	mock.Mock
}

Bridger is an autogenerated mock type for the Bridger type

func NewBridger

func NewBridger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Bridger

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

func (_m *Bridger) EXPECT() *Bridger_Expecter

func (*Bridger) GetBridgeByDepositCount added in v0.8.2

func (_m *Bridger) GetBridgeByDepositCount(ctx context.Context, depositCount uint32) (*bridgesync.Bridge, error)

GetBridgeByDepositCount provides a mock function with given fields: ctx, depositCount

func (*Bridger) GetBridgesByContent added in v0.8.2

func (_m *Bridger) GetBridgesByContent(ctx context.Context, leafType uint8, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) ([]*bridgesync.Bridge, error)

GetBridgesByContent provides a mock function with given fields: ctx, leafType, originAddress, destinationNetwork, destinationAddress, amount, metadata

func (*Bridger) GetBridgesPaged

func (_m *Bridger) GetBridgesPaged(ctx context.Context, pageNumber uint32, pageSize uint32, depositCount *uint64, networkIDs []uint32, fromAddress string) ([]*bridgesync.Bridge, int, error)

GetBridgesPaged provides a mock function with given fields: ctx, pageNumber, pageSize, depositCount, networkIDs, fromAddress

func (*Bridger) GetClaimsByGER added in v0.8.2

func (_m *Bridger) GetClaimsByGER(ctx context.Context, globalExitRoot common.Hash) ([]*bridgesync.Claim, error)

GetClaimsByGER provides a mock function with given fields: ctx, globalExitRoot

func (*Bridger) GetClaimsPaged

func (_m *Bridger) GetClaimsPaged(ctx context.Context, page uint32, pageSize uint32, networkIDs []uint32, globalIndex *big.Int) ([]*bridgesync.Claim, int, error)

GetClaimsPaged provides a mock function with given fields: ctx, page, pageSize, networkIDs, globalIndex

func (*Bridger) GetContractDepositCount

func (_m *Bridger) GetContractDepositCount(ctx context.Context) (uint32, error)

GetContractDepositCount provides a mock function with given fields: ctx

func (*Bridger) GetLastProcessedBlock added in v0.7.0

func (_m *Bridger) GetLastProcessedBlock(ctx context.Context) (uint64, error)

GetLastProcessedBlock provides a mock function with given fields: ctx

func (*Bridger) GetLastReorgEvent

func (_m *Bridger) GetLastReorgEvent(ctx context.Context) (*bridgesync.LastReorg, error)

GetLastReorgEvent provides a mock function with given fields: ctx

func (*Bridger) GetLastRoot

func (_m *Bridger) GetLastRoot(ctx context.Context) (*types.Root, error)

GetLastRoot provides a mock function with given fields: ctx

func (*Bridger) GetLatestNetworkBlock added in v0.7.0

func (_m *Bridger) GetLatestNetworkBlock(ctx context.Context) (uint64, error)

GetLatestNetworkBlock provides a mock function with given fields: ctx

func (*Bridger) GetLegacyTokenMigrations

func (_m *Bridger) GetLegacyTokenMigrations(ctx context.Context, pageNumber uint32, pageSize uint32) ([]*bridgesync.LegacyTokenMigration, int, error)

GetLegacyTokenMigrations provides a mock function with given fields: ctx, pageNumber, pageSize

func (*Bridger) GetProof

func (_m *Bridger) GetProof(ctx context.Context, depositCount uint32, localExitRoot common.Hash) (types.Proof, error)

GetProof provides a mock function with given fields: ctx, depositCount, localExitRoot

func (*Bridger) GetRootByLER

func (_m *Bridger) GetRootByLER(ctx context.Context, ler common.Hash) (*types.Root, error)

GetRootByLER provides a mock function with given fields: ctx, ler

func (*Bridger) GetSetClaimsPaged added in v0.8.2

func (_m *Bridger) GetSetClaimsPaged(ctx context.Context, page uint32, pageSize uint32, globalIndex *big.Int) ([]*bridgesync.SetClaim, int, error)

GetSetClaimsPaged provides a mock function with given fields: ctx, page, pageSize, globalIndex

func (*Bridger) GetTokenMappings

func (_m *Bridger) GetTokenMappings(ctx context.Context, pageNumber uint32, pageSize uint32, originTokenAddress string) ([]*bridgesync.TokenMapping, int, error)

GetTokenMappings provides a mock function with given fields: ctx, pageNumber, pageSize, originTokenAddress

func (*Bridger) GetUnsetClaimsPaged added in v0.8.0

func (_m *Bridger) GetUnsetClaimsPaged(ctx context.Context, page uint32, pageSize uint32, globalIndex *big.Int) ([]*bridgesync.UnsetClaim, int, error)

GetUnsetClaimsPaged provides a mock function with given fields: ctx, page, pageSize, globalIndex

func (*Bridger) IsActive added in v0.7.0

func (_m *Bridger) IsActive(ctx context.Context) bool

IsActive provides a mock function with given fields: ctx

type Bridger_Expecter

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

func (*Bridger_Expecter) GetBridgeByDepositCount added in v0.8.2

func (_e *Bridger_Expecter) GetBridgeByDepositCount(ctx interface{}, depositCount interface{}) *Bridger_GetBridgeByDepositCount_Call

GetBridgeByDepositCount is a helper method to define mock.On call

  • ctx context.Context
  • depositCount uint32

func (*Bridger_Expecter) GetBridgesByContent added in v0.8.2

func (_e *Bridger_Expecter) GetBridgesByContent(ctx interface{}, leafType interface{}, originAddress interface{}, destinationNetwork interface{}, destinationAddress interface{}, amount interface{}, metadata interface{}) *Bridger_GetBridgesByContent_Call

GetBridgesByContent is a helper method to define mock.On call

  • ctx context.Context
  • leafType uint8
  • originAddress common.Address
  • destinationNetwork uint32
  • destinationAddress common.Address
  • amount *big.Int
  • metadata []byte

func (*Bridger_Expecter) GetBridgesPaged

func (_e *Bridger_Expecter) GetBridgesPaged(ctx interface{}, pageNumber interface{}, pageSize interface{}, depositCount interface{}, networkIDs interface{}, fromAddress interface{}) *Bridger_GetBridgesPaged_Call

GetBridgesPaged is a helper method to define mock.On call

  • ctx context.Context
  • pageNumber uint32
  • pageSize uint32
  • depositCount *uint64
  • networkIDs []uint32
  • fromAddress string

func (*Bridger_Expecter) GetClaimsByGER added in v0.8.2

func (_e *Bridger_Expecter) GetClaimsByGER(ctx interface{}, globalExitRoot interface{}) *Bridger_GetClaimsByGER_Call

GetClaimsByGER is a helper method to define mock.On call

  • ctx context.Context
  • globalExitRoot common.Hash

func (*Bridger_Expecter) GetClaimsPaged

func (_e *Bridger_Expecter) GetClaimsPaged(ctx interface{}, page interface{}, pageSize interface{}, networkIDs interface{}, globalIndex interface{}) *Bridger_GetClaimsPaged_Call

GetClaimsPaged is a helper method to define mock.On call

  • ctx context.Context
  • page uint32
  • pageSize uint32
  • networkIDs []uint32
  • globalIndex *big.Int

func (*Bridger_Expecter) GetContractDepositCount

func (_e *Bridger_Expecter) GetContractDepositCount(ctx interface{}) *Bridger_GetContractDepositCount_Call

GetContractDepositCount is a helper method to define mock.On call

  • ctx context.Context

func (*Bridger_Expecter) GetLastProcessedBlock added in v0.7.0

func (_e *Bridger_Expecter) GetLastProcessedBlock(ctx interface{}) *Bridger_GetLastProcessedBlock_Call

GetLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*Bridger_Expecter) GetLastReorgEvent

func (_e *Bridger_Expecter) GetLastReorgEvent(ctx interface{}) *Bridger_GetLastReorgEvent_Call

GetLastReorgEvent is a helper method to define mock.On call

  • ctx context.Context

func (*Bridger_Expecter) GetLastRoot

func (_e *Bridger_Expecter) GetLastRoot(ctx interface{}) *Bridger_GetLastRoot_Call

GetLastRoot is a helper method to define mock.On call

  • ctx context.Context

func (*Bridger_Expecter) GetLatestNetworkBlock added in v0.7.0

func (_e *Bridger_Expecter) GetLatestNetworkBlock(ctx interface{}) *Bridger_GetLatestNetworkBlock_Call

GetLatestNetworkBlock is a helper method to define mock.On call

  • ctx context.Context

func (*Bridger_Expecter) GetLegacyTokenMigrations

func (_e *Bridger_Expecter) GetLegacyTokenMigrations(ctx interface{}, pageNumber interface{}, pageSize interface{}) *Bridger_GetLegacyTokenMigrations_Call

GetLegacyTokenMigrations is a helper method to define mock.On call

  • ctx context.Context
  • pageNumber uint32
  • pageSize uint32

func (*Bridger_Expecter) GetProof

func (_e *Bridger_Expecter) GetProof(ctx interface{}, depositCount interface{}, localExitRoot interface{}) *Bridger_GetProof_Call

GetProof is a helper method to define mock.On call

  • ctx context.Context
  • depositCount uint32
  • localExitRoot common.Hash

func (*Bridger_Expecter) GetRootByLER

func (_e *Bridger_Expecter) GetRootByLER(ctx interface{}, ler interface{}) *Bridger_GetRootByLER_Call

GetRootByLER is a helper method to define mock.On call

  • ctx context.Context
  • ler common.Hash

func (*Bridger_Expecter) GetSetClaimsPaged added in v0.8.2

func (_e *Bridger_Expecter) GetSetClaimsPaged(ctx interface{}, page interface{}, pageSize interface{}, globalIndex interface{}) *Bridger_GetSetClaimsPaged_Call

GetSetClaimsPaged is a helper method to define mock.On call

  • ctx context.Context
  • page uint32
  • pageSize uint32
  • globalIndex *big.Int

func (*Bridger_Expecter) GetTokenMappings

func (_e *Bridger_Expecter) GetTokenMappings(ctx interface{}, pageNumber interface{}, pageSize interface{}, originTokenAddress interface{}) *Bridger_GetTokenMappings_Call

GetTokenMappings is a helper method to define mock.On call

  • ctx context.Context
  • pageNumber uint32
  • pageSize uint32
  • originTokenAddress string

func (*Bridger_Expecter) GetUnsetClaimsPaged added in v0.8.0

func (_e *Bridger_Expecter) GetUnsetClaimsPaged(ctx interface{}, page interface{}, pageSize interface{}, globalIndex interface{}) *Bridger_GetUnsetClaimsPaged_Call

GetUnsetClaimsPaged is a helper method to define mock.On call

  • ctx context.Context
  • page uint32
  • pageSize uint32
  • globalIndex *big.Int

func (*Bridger_Expecter) IsActive added in v0.7.0

func (_e *Bridger_Expecter) IsActive(ctx interface{}) *Bridger_IsActive_Call

IsActive is a helper method to define mock.On call

  • ctx context.Context

type Bridger_GetBridgeByDepositCount_Call added in v0.8.2

type Bridger_GetBridgeByDepositCount_Call struct {
	*mock.Call
}

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

func (*Bridger_GetBridgeByDepositCount_Call) Return added in v0.8.2

func (*Bridger_GetBridgeByDepositCount_Call) Run added in v0.8.2

func (*Bridger_GetBridgeByDepositCount_Call) RunAndReturn added in v0.8.2

type Bridger_GetBridgesByContent_Call added in v0.8.2

type Bridger_GetBridgesByContent_Call struct {
	*mock.Call
}

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

func (*Bridger_GetBridgesByContent_Call) Return added in v0.8.2

func (*Bridger_GetBridgesByContent_Call) Run added in v0.8.2

func (_c *Bridger_GetBridgesByContent_Call) Run(run func(ctx context.Context, leafType uint8, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte)) *Bridger_GetBridgesByContent_Call

func (*Bridger_GetBridgesByContent_Call) RunAndReturn added in v0.8.2

type Bridger_GetBridgesPaged_Call

type Bridger_GetBridgesPaged_Call struct {
	*mock.Call
}

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

func (*Bridger_GetBridgesPaged_Call) Return

func (*Bridger_GetBridgesPaged_Call) Run

func (_c *Bridger_GetBridgesPaged_Call) Run(run func(ctx context.Context, pageNumber uint32, pageSize uint32, depositCount *uint64, networkIDs []uint32, fromAddress string)) *Bridger_GetBridgesPaged_Call

func (*Bridger_GetBridgesPaged_Call) RunAndReturn

type Bridger_GetClaimsByGER_Call added in v0.8.2

type Bridger_GetClaimsByGER_Call struct {
	*mock.Call
}

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

func (*Bridger_GetClaimsByGER_Call) Return added in v0.8.2

func (*Bridger_GetClaimsByGER_Call) Run added in v0.8.2

func (_c *Bridger_GetClaimsByGER_Call) Run(run func(ctx context.Context, globalExitRoot common.Hash)) *Bridger_GetClaimsByGER_Call

func (*Bridger_GetClaimsByGER_Call) RunAndReturn added in v0.8.2

type Bridger_GetClaimsPaged_Call

type Bridger_GetClaimsPaged_Call struct {
	*mock.Call
}

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

func (*Bridger_GetClaimsPaged_Call) Return

func (*Bridger_GetClaimsPaged_Call) Run

func (_c *Bridger_GetClaimsPaged_Call) Run(run func(ctx context.Context, page uint32, pageSize uint32, networkIDs []uint32, globalIndex *big.Int)) *Bridger_GetClaimsPaged_Call

func (*Bridger_GetClaimsPaged_Call) RunAndReturn

type Bridger_GetContractDepositCount_Call

type Bridger_GetContractDepositCount_Call struct {
	*mock.Call
}

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

func (*Bridger_GetContractDepositCount_Call) Return

func (*Bridger_GetContractDepositCount_Call) Run

func (*Bridger_GetContractDepositCount_Call) RunAndReturn

type Bridger_GetLastProcessedBlock_Call added in v0.7.0

type Bridger_GetLastProcessedBlock_Call struct {
	*mock.Call
}

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

func (*Bridger_GetLastProcessedBlock_Call) Return added in v0.7.0

func (*Bridger_GetLastProcessedBlock_Call) Run added in v0.7.0

func (*Bridger_GetLastProcessedBlock_Call) RunAndReturn added in v0.7.0

type Bridger_GetLastReorgEvent_Call

type Bridger_GetLastReorgEvent_Call struct {
	*mock.Call
}

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

func (*Bridger_GetLastReorgEvent_Call) Return

func (*Bridger_GetLastReorgEvent_Call) Run

func (*Bridger_GetLastReorgEvent_Call) RunAndReturn

type Bridger_GetLastRoot_Call

type Bridger_GetLastRoot_Call struct {
	*mock.Call
}

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

func (*Bridger_GetLastRoot_Call) Return

func (*Bridger_GetLastRoot_Call) Run

func (*Bridger_GetLastRoot_Call) RunAndReturn

type Bridger_GetLatestNetworkBlock_Call added in v0.7.0

type Bridger_GetLatestNetworkBlock_Call struct {
	*mock.Call
}

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

func (*Bridger_GetLatestNetworkBlock_Call) Return added in v0.7.0

func (*Bridger_GetLatestNetworkBlock_Call) Run added in v0.7.0

func (*Bridger_GetLatestNetworkBlock_Call) RunAndReturn added in v0.7.0

type Bridger_GetLegacyTokenMigrations_Call

type Bridger_GetLegacyTokenMigrations_Call struct {
	*mock.Call
}

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

func (*Bridger_GetLegacyTokenMigrations_Call) Return

func (*Bridger_GetLegacyTokenMigrations_Call) Run

func (*Bridger_GetLegacyTokenMigrations_Call) RunAndReturn

type Bridger_GetProof_Call

type Bridger_GetProof_Call struct {
	*mock.Call
}

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

func (*Bridger_GetProof_Call) Return

func (*Bridger_GetProof_Call) Run

func (_c *Bridger_GetProof_Call) Run(run func(ctx context.Context, depositCount uint32, localExitRoot common.Hash)) *Bridger_GetProof_Call

func (*Bridger_GetProof_Call) RunAndReturn

type Bridger_GetRootByLER_Call

type Bridger_GetRootByLER_Call struct {
	*mock.Call
}

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

func (*Bridger_GetRootByLER_Call) Return

func (*Bridger_GetRootByLER_Call) Run

func (*Bridger_GetRootByLER_Call) RunAndReturn

type Bridger_GetSetClaimsPaged_Call added in v0.8.2

type Bridger_GetSetClaimsPaged_Call struct {
	*mock.Call
}

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

func (*Bridger_GetSetClaimsPaged_Call) Return added in v0.8.2

func (*Bridger_GetSetClaimsPaged_Call) Run added in v0.8.2

func (_c *Bridger_GetSetClaimsPaged_Call) Run(run func(ctx context.Context, page uint32, pageSize uint32, globalIndex *big.Int)) *Bridger_GetSetClaimsPaged_Call

func (*Bridger_GetSetClaimsPaged_Call) RunAndReturn added in v0.8.2

type Bridger_GetTokenMappings_Call

type Bridger_GetTokenMappings_Call struct {
	*mock.Call
}

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

func (*Bridger_GetTokenMappings_Call) Return

func (*Bridger_GetTokenMappings_Call) Run

func (_c *Bridger_GetTokenMappings_Call) Run(run func(ctx context.Context, pageNumber uint32, pageSize uint32, originTokenAddress string)) *Bridger_GetTokenMappings_Call

func (*Bridger_GetTokenMappings_Call) RunAndReturn

type Bridger_GetUnsetClaimsPaged_Call added in v0.8.0

type Bridger_GetUnsetClaimsPaged_Call struct {
	*mock.Call
}

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

func (*Bridger_GetUnsetClaimsPaged_Call) Return added in v0.8.0

func (*Bridger_GetUnsetClaimsPaged_Call) Run added in v0.8.0

func (_c *Bridger_GetUnsetClaimsPaged_Call) Run(run func(ctx context.Context, page uint32, pageSize uint32, globalIndex *big.Int)) *Bridger_GetUnsetClaimsPaged_Call

func (*Bridger_GetUnsetClaimsPaged_Call) RunAndReturn added in v0.8.0

type Bridger_IsActive_Call added in v0.7.0

type Bridger_IsActive_Call struct {
	*mock.Call
}

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

func (*Bridger_IsActive_Call) Return added in v0.7.0

func (*Bridger_IsActive_Call) Run added in v0.7.0

func (*Bridger_IsActive_Call) RunAndReturn added in v0.7.0

func (_c *Bridger_IsActive_Call) RunAndReturn(run func(context.Context) bool) *Bridger_IsActive_Call

type L1InfoTreeSyncer added in v0.7.0

type L1InfoTreeSyncer struct {
	mock.Mock
}

L1InfoTreeSyncer is an autogenerated mock type for the L1InfoTreeSyncer type

func NewL1InfoTreeSyncer added in v0.7.0

func NewL1InfoTreeSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1InfoTreeSyncer

NewL1InfoTreeSyncer creates a new instance of L1InfoTreeSyncer. 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 (*L1InfoTreeSyncer) EXPECT added in v0.7.0

func (*L1InfoTreeSyncer) GetFirstInfo added in v0.7.0

func (_m *L1InfoTreeSyncer) GetFirstInfo() (*l1infotreesync.L1InfoTreeLeaf, error)

GetFirstInfo provides a mock function with no fields

func (*L1InfoTreeSyncer) GetFirstInfoAfterBlock added in v0.7.0

func (_m *L1InfoTreeSyncer) GetFirstInfoAfterBlock(blockNum uint64) (*l1infotreesync.L1InfoTreeLeaf, error)

GetFirstInfoAfterBlock provides a mock function with given fields: blockNum

func (*L1InfoTreeSyncer) GetFirstL1InfoWithRollupExitRoot added in v0.7.0

func (_m *L1InfoTreeSyncer) GetFirstL1InfoWithRollupExitRoot(rollupExitRoot common.Hash) (*l1infotreesync.L1InfoTreeLeaf, error)

GetFirstL1InfoWithRollupExitRoot provides a mock function with given fields: rollupExitRoot

func (*L1InfoTreeSyncer) GetFirstVerifiedBatches added in v0.7.0

func (_m *L1InfoTreeSyncer) GetFirstVerifiedBatches(rollupID uint32) (*l1infotreesync.VerifyBatches, error)

GetFirstVerifiedBatches provides a mock function with given fields: rollupID

func (*L1InfoTreeSyncer) GetFirstVerifiedBatchesAfterBlock added in v0.7.0

func (_m *L1InfoTreeSyncer) GetFirstVerifiedBatchesAfterBlock(rollupID uint32, blockNum uint64) (*l1infotreesync.VerifyBatches, error)

GetFirstVerifiedBatchesAfterBlock provides a mock function with given fields: rollupID, blockNum

func (*L1InfoTreeSyncer) GetInfoByIndex added in v0.7.0

func (_m *L1InfoTreeSyncer) GetInfoByIndex(ctx context.Context, index uint32) (*l1infotreesync.L1InfoTreeLeaf, error)

GetInfoByIndex provides a mock function with given fields: ctx, index

func (*L1InfoTreeSyncer) GetLastInfo added in v0.7.0

func (_m *L1InfoTreeSyncer) GetLastInfo() (*l1infotreesync.L1InfoTreeLeaf, error)

GetLastInfo provides a mock function with no fields

func (*L1InfoTreeSyncer) GetLastVerifiedBatches added in v0.7.0

func (_m *L1InfoTreeSyncer) GetLastVerifiedBatches(rollupID uint32) (*l1infotreesync.VerifyBatches, error)

GetLastVerifiedBatches provides a mock function with given fields: rollupID

func (*L1InfoTreeSyncer) GetLocalExitRoot added in v0.7.0

func (_m *L1InfoTreeSyncer) GetLocalExitRoot(ctx context.Context, networkID uint32, rollupExitRoot common.Hash) (common.Hash, error)

GetLocalExitRoot provides a mock function with given fields: ctx, networkID, rollupExitRoot

func (*L1InfoTreeSyncer) GetRollupExitTreeMerkleProof added in v0.7.0

func (_m *L1InfoTreeSyncer) GetRollupExitTreeMerkleProof(ctx context.Context, networkID uint32, root common.Hash) (types.Proof, error)

GetRollupExitTreeMerkleProof provides a mock function with given fields: ctx, networkID, root

type L1InfoTreeSyncer_Expecter added in v0.7.0

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

func (*L1InfoTreeSyncer_Expecter) GetFirstInfo added in v0.7.0

GetFirstInfo is a helper method to define mock.On call

func (*L1InfoTreeSyncer_Expecter) GetFirstInfoAfterBlock added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetFirstInfoAfterBlock(blockNum interface{}) *L1InfoTreeSyncer_GetFirstInfoAfterBlock_Call

GetFirstInfoAfterBlock is a helper method to define mock.On call

  • blockNum uint64

func (*L1InfoTreeSyncer_Expecter) GetFirstL1InfoWithRollupExitRoot added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetFirstL1InfoWithRollupExitRoot(rollupExitRoot interface{}) *L1InfoTreeSyncer_GetFirstL1InfoWithRollupExitRoot_Call

GetFirstL1InfoWithRollupExitRoot is a helper method to define mock.On call

  • rollupExitRoot common.Hash

func (*L1InfoTreeSyncer_Expecter) GetFirstVerifiedBatches added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetFirstVerifiedBatches(rollupID interface{}) *L1InfoTreeSyncer_GetFirstVerifiedBatches_Call

GetFirstVerifiedBatches is a helper method to define mock.On call

  • rollupID uint32

func (*L1InfoTreeSyncer_Expecter) GetFirstVerifiedBatchesAfterBlock added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetFirstVerifiedBatchesAfterBlock(rollupID interface{}, blockNum interface{}) *L1InfoTreeSyncer_GetFirstVerifiedBatchesAfterBlock_Call

GetFirstVerifiedBatchesAfterBlock is a helper method to define mock.On call

  • rollupID uint32
  • blockNum uint64

func (*L1InfoTreeSyncer_Expecter) GetInfoByIndex added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetInfoByIndex(ctx interface{}, index interface{}) *L1InfoTreeSyncer_GetInfoByIndex_Call

GetInfoByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

func (*L1InfoTreeSyncer_Expecter) GetLastInfo added in v0.7.0

GetLastInfo is a helper method to define mock.On call

func (*L1InfoTreeSyncer_Expecter) GetLastVerifiedBatches added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetLastVerifiedBatches(rollupID interface{}) *L1InfoTreeSyncer_GetLastVerifiedBatches_Call

GetLastVerifiedBatches is a helper method to define mock.On call

  • rollupID uint32

func (*L1InfoTreeSyncer_Expecter) GetLocalExitRoot added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetLocalExitRoot(ctx interface{}, networkID interface{}, rollupExitRoot interface{}) *L1InfoTreeSyncer_GetLocalExitRoot_Call

GetLocalExitRoot is a helper method to define mock.On call

  • ctx context.Context
  • networkID uint32
  • rollupExitRoot common.Hash

func (*L1InfoTreeSyncer_Expecter) GetRollupExitTreeMerkleProof added in v0.7.0

func (_e *L1InfoTreeSyncer_Expecter) GetRollupExitTreeMerkleProof(ctx interface{}, networkID interface{}, root interface{}) *L1InfoTreeSyncer_GetRollupExitTreeMerkleProof_Call

GetRollupExitTreeMerkleProof is a helper method to define mock.On call

  • ctx context.Context
  • networkID uint32
  • root common.Hash

type L1InfoTreeSyncer_GetFirstInfoAfterBlock_Call added in v0.7.0

type L1InfoTreeSyncer_GetFirstInfoAfterBlock_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetFirstInfoAfterBlock_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstInfoAfterBlock_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstInfoAfterBlock_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetFirstInfo_Call added in v0.7.0

type L1InfoTreeSyncer_GetFirstInfo_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetFirstInfo_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstInfo_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstInfo_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetFirstL1InfoWithRollupExitRoot_Call added in v0.7.0

type L1InfoTreeSyncer_GetFirstL1InfoWithRollupExitRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetFirstL1InfoWithRollupExitRoot_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstL1InfoWithRollupExitRoot_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstL1InfoWithRollupExitRoot_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetFirstVerifiedBatchesAfterBlock_Call added in v0.7.0

type L1InfoTreeSyncer_GetFirstVerifiedBatchesAfterBlock_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetFirstVerifiedBatchesAfterBlock_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstVerifiedBatchesAfterBlock_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstVerifiedBatchesAfterBlock_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetFirstVerifiedBatches_Call added in v0.7.0

type L1InfoTreeSyncer_GetFirstVerifiedBatches_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetFirstVerifiedBatches_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstVerifiedBatches_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetFirstVerifiedBatches_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetInfoByIndex_Call added in v0.7.0

type L1InfoTreeSyncer_GetInfoByIndex_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetInfoByIndex_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetInfoByIndex_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetInfoByIndex_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetLastInfo_Call added in v0.7.0

type L1InfoTreeSyncer_GetLastInfo_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetLastInfo_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetLastInfo_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetLastInfo_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetLastVerifiedBatches_Call added in v0.7.0

type L1InfoTreeSyncer_GetLastVerifiedBatches_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetLastVerifiedBatches_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetLastVerifiedBatches_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetLastVerifiedBatches_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetLocalExitRoot_Call added in v0.7.0

type L1InfoTreeSyncer_GetLocalExitRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetLocalExitRoot_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetLocalExitRoot_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetLocalExitRoot_Call) RunAndReturn added in v0.7.0

type L1InfoTreeSyncer_GetRollupExitTreeMerkleProof_Call added in v0.7.0

type L1InfoTreeSyncer_GetRollupExitTreeMerkleProof_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetRollupExitTreeMerkleProof_Call) Return added in v0.7.0

func (*L1InfoTreeSyncer_GetRollupExitTreeMerkleProof_Call) Run added in v0.7.0

func (*L1InfoTreeSyncer_GetRollupExitTreeMerkleProof_Call) RunAndReturn added in v0.7.0

type L2GERSyncer added in v0.7.0

type L2GERSyncer struct {
	mock.Mock
}

L2GERSyncer is an autogenerated mock type for the L2GERSyncer type

func NewL2GERSyncer added in v0.7.0

func NewL2GERSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *L2GERSyncer

NewL2GERSyncer creates a new instance of L2GERSyncer. 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 (*L2GERSyncer) EXPECT added in v0.7.0

func (_m *L2GERSyncer) EXPECT() *L2GERSyncer_Expecter

func (*L2GERSyncer) GetFirstGERAfterL1InfoTreeIndex added in v0.7.0

func (_m *L2GERSyncer) GetFirstGERAfterL1InfoTreeIndex(ctx context.Context, atOrAfterL1InfoTreeIndex uint32) (l2gersync.GlobalExitRootInfo, error)

GetFirstGERAfterL1InfoTreeIndex provides a mock function with given fields: ctx, atOrAfterL1InfoTreeIndex

func (*L2GERSyncer) GetRemoveGEREvents added in v0.8.0

func (_m *L2GERSyncer) GetRemoveGEREvents(ctx context.Context, globalExitRoot *common.Hash, limit uint32) ([]*l2gersync.RemoveGEREvent, error)

GetRemoveGEREvents provides a mock function with given fields: ctx, globalExitRoot, limit

type L2GERSyncer_Expecter added in v0.7.0

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

func (*L2GERSyncer_Expecter) GetFirstGERAfterL1InfoTreeIndex added in v0.7.0

func (_e *L2GERSyncer_Expecter) GetFirstGERAfterL1InfoTreeIndex(ctx interface{}, atOrAfterL1InfoTreeIndex interface{}) *L2GERSyncer_GetFirstGERAfterL1InfoTreeIndex_Call

GetFirstGERAfterL1InfoTreeIndex is a helper method to define mock.On call

  • ctx context.Context
  • atOrAfterL1InfoTreeIndex uint32

func (*L2GERSyncer_Expecter) GetRemoveGEREvents added in v0.8.0

func (_e *L2GERSyncer_Expecter) GetRemoveGEREvents(ctx interface{}, globalExitRoot interface{}, limit interface{}) *L2GERSyncer_GetRemoveGEREvents_Call

GetRemoveGEREvents is a helper method to define mock.On call

  • ctx context.Context
  • globalExitRoot *common.Hash
  • limit uint32

type L2GERSyncer_GetFirstGERAfterL1InfoTreeIndex_Call added in v0.7.0

type L2GERSyncer_GetFirstGERAfterL1InfoTreeIndex_Call struct {
	*mock.Call
}

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

func (*L2GERSyncer_GetFirstGERAfterL1InfoTreeIndex_Call) Return added in v0.7.0

func (*L2GERSyncer_GetFirstGERAfterL1InfoTreeIndex_Call) Run added in v0.7.0

func (*L2GERSyncer_GetFirstGERAfterL1InfoTreeIndex_Call) RunAndReturn added in v0.7.0

type L2GERSyncer_GetRemoveGEREvents_Call added in v0.8.0

type L2GERSyncer_GetRemoveGEREvents_Call struct {
	*mock.Call
}

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

func (*L2GERSyncer_GetRemoveGEREvents_Call) Return added in v0.8.0

func (*L2GERSyncer_GetRemoveGEREvents_Call) Run added in v0.8.0

func (*L2GERSyncer_GetRemoveGEREvents_Call) RunAndReturn added in v0.8.0

Jump to

Keyboard shortcuts

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