mocks

package
v0.4.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeClientInterface

type BridgeClientInterface struct {
	mock.Mock
}

BridgeClientInterface is an autogenerated mock type for the BridgeClientInterface type

func NewBridgeClientInterface

func NewBridgeClientInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *BridgeClientInterface

NewBridgeClientInterface creates a new instance of BridgeClientInterface. 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 (*BridgeClientInterface) ClaimProof

func (_m *BridgeClientInterface) ClaimProof(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32) (*types.ClaimProof, error)

ClaimProof provides a mock function with given fields: networkID, depositCount, l1InfoTreeIndex

func (*BridgeClientInterface) EXPECT

func (*BridgeClientInterface) GetSponsoredClaimStatus

func (_m *BridgeClientInterface) GetSponsoredClaimStatus(globalIndex *big.Int) (claimsponsor.ClaimStatus, error)

GetSponsoredClaimStatus provides a mock function with given fields: globalIndex

func (*BridgeClientInterface) InjectedInfoAfterIndex

func (_m *BridgeClientInterface) InjectedInfoAfterIndex(networkID uint32, l1InfoTreeIndex uint32) (*l1infotreesync.L1InfoTreeLeaf, error)

InjectedInfoAfterIndex provides a mock function with given fields: networkID, l1InfoTreeIndex

func (*BridgeClientInterface) L1InfoTreeIndexForBridge

func (_m *BridgeClientInterface) L1InfoTreeIndexForBridge(networkID uint32, depositCount uint32) (uint32, error)

L1InfoTreeIndexForBridge provides a mock function with given fields: networkID, depositCount

func (*BridgeClientInterface) SponsorClaim

func (_m *BridgeClientInterface) SponsorClaim(claim claimsponsor.Claim) error

SponsorClaim provides a mock function with given fields: claim

type BridgeClientInterface_ClaimProof_Call

type BridgeClientInterface_ClaimProof_Call struct {
	*mock.Call
}

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

func (*BridgeClientInterface_ClaimProof_Call) Return

func (*BridgeClientInterface_ClaimProof_Call) Run

func (_c *BridgeClientInterface_ClaimProof_Call) Run(run func(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32)) *BridgeClientInterface_ClaimProof_Call

func (*BridgeClientInterface_ClaimProof_Call) RunAndReturn

type BridgeClientInterface_Expecter

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

func (*BridgeClientInterface_Expecter) ClaimProof

func (_e *BridgeClientInterface_Expecter) ClaimProof(networkID interface{}, depositCount interface{}, l1InfoTreeIndex interface{}) *BridgeClientInterface_ClaimProof_Call

ClaimProof is a helper method to define mock.On call

  • networkID uint32
  • depositCount uint32
  • l1InfoTreeIndex uint32

func (*BridgeClientInterface_Expecter) GetSponsoredClaimStatus

func (_e *BridgeClientInterface_Expecter) GetSponsoredClaimStatus(globalIndex interface{}) *BridgeClientInterface_GetSponsoredClaimStatus_Call

GetSponsoredClaimStatus is a helper method to define mock.On call

  • globalIndex *big.Int

func (*BridgeClientInterface_Expecter) InjectedInfoAfterIndex

func (_e *BridgeClientInterface_Expecter) InjectedInfoAfterIndex(networkID interface{}, l1InfoTreeIndex interface{}) *BridgeClientInterface_InjectedInfoAfterIndex_Call

InjectedInfoAfterIndex is a helper method to define mock.On call

  • networkID uint32
  • l1InfoTreeIndex uint32

func (*BridgeClientInterface_Expecter) L1InfoTreeIndexForBridge

func (_e *BridgeClientInterface_Expecter) L1InfoTreeIndexForBridge(networkID interface{}, depositCount interface{}) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call

L1InfoTreeIndexForBridge is a helper method to define mock.On call

  • networkID uint32
  • depositCount uint32

func (*BridgeClientInterface_Expecter) SponsorClaim

func (_e *BridgeClientInterface_Expecter) SponsorClaim(claim interface{}) *BridgeClientInterface_SponsorClaim_Call

SponsorClaim is a helper method to define mock.On call

  • claim claimsponsor.Claim

type BridgeClientInterface_GetSponsoredClaimStatus_Call

type BridgeClientInterface_GetSponsoredClaimStatus_Call struct {
	*mock.Call
}

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

func (*BridgeClientInterface_GetSponsoredClaimStatus_Call) Return

func (*BridgeClientInterface_GetSponsoredClaimStatus_Call) Run

func (*BridgeClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn

type BridgeClientInterface_InjectedInfoAfterIndex_Call

type BridgeClientInterface_InjectedInfoAfterIndex_Call struct {
	*mock.Call
}

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

func (*BridgeClientInterface_InjectedInfoAfterIndex_Call) Return

func (*BridgeClientInterface_InjectedInfoAfterIndex_Call) Run

func (*BridgeClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn

type BridgeClientInterface_L1InfoTreeIndexForBridge_Call

type BridgeClientInterface_L1InfoTreeIndexForBridge_Call struct {
	*mock.Call
}

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

func (*BridgeClientInterface_L1InfoTreeIndexForBridge_Call) Return

func (*BridgeClientInterface_L1InfoTreeIndexForBridge_Call) Run

func (*BridgeClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn

type BridgeClientInterface_SponsorClaim_Call

type BridgeClientInterface_SponsorClaim_Call struct {
	*mock.Call
}

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

func (*BridgeClientInterface_SponsorClaim_Call) Return

func (*BridgeClientInterface_SponsorClaim_Call) Run

func (*BridgeClientInterface_SponsorClaim_Call) RunAndReturn

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) 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

type Bridger_Expecter

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

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

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 ClaimSponsorer

type ClaimSponsorer struct {
	mock.Mock
}

ClaimSponsorer is an autogenerated mock type for the ClaimSponsorer type

func NewClaimSponsorer

func NewClaimSponsorer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClaimSponsorer

NewClaimSponsorer creates a new instance of ClaimSponsorer. 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 (*ClaimSponsorer) AddClaimToQueue

func (_m *ClaimSponsorer) AddClaimToQueue(ctx context.Context, claim *claimsponsor.Claim) error

AddClaimToQueue provides a mock function with given fields: ctx, claim

func (*ClaimSponsorer) EXPECT

func (*ClaimSponsorer) GetClaim

func (_m *ClaimSponsorer) GetClaim(ctx context.Context, globalIndex *big.Int) (*claimsponsor.Claim, error)

GetClaim provides a mock function with given fields: ctx, globalIndex

type ClaimSponsorer_AddClaimToQueue_Call

type ClaimSponsorer_AddClaimToQueue_Call struct {
	*mock.Call
}

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

func (*ClaimSponsorer_AddClaimToQueue_Call) Return

func (*ClaimSponsorer_AddClaimToQueue_Call) Run

func (*ClaimSponsorer_AddClaimToQueue_Call) RunAndReturn

type ClaimSponsorer_Expecter

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

func (*ClaimSponsorer_Expecter) AddClaimToQueue

func (_e *ClaimSponsorer_Expecter) AddClaimToQueue(ctx interface{}, claim interface{}) *ClaimSponsorer_AddClaimToQueue_Call

AddClaimToQueue is a helper method to define mock.On call

  • ctx context.Context
  • claim *claimsponsor.Claim

func (*ClaimSponsorer_Expecter) GetClaim

func (_e *ClaimSponsorer_Expecter) GetClaim(ctx interface{}, globalIndex interface{}) *ClaimSponsorer_GetClaim_Call

GetClaim is a helper method to define mock.On call

  • ctx context.Context
  • globalIndex *big.Int

type ClaimSponsorer_GetClaim_Call

type ClaimSponsorer_GetClaim_Call struct {
	*mock.Call
}

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

func (*ClaimSponsorer_GetClaim_Call) Return

func (*ClaimSponsorer_GetClaim_Call) Run

func (_c *ClaimSponsorer_GetClaim_Call) Run(run func(ctx context.Context, globalIndex *big.Int)) *ClaimSponsorer_GetClaim_Call

func (*ClaimSponsorer_GetClaim_Call) RunAndReturn

type ClientFactoryInterface

type ClientFactoryInterface struct {
	mock.Mock
}

ClientFactoryInterface is an autogenerated mock type for the ClientFactoryInterface type

func NewClientFactoryInterface

func NewClientFactoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientFactoryInterface

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

func (*ClientFactoryInterface) NewClient

func (_m *ClientFactoryInterface) NewClient(url string) rpc.ClientInterface

NewClient provides a mock function with given fields: url

type ClientFactoryInterface_Expecter

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

func (*ClientFactoryInterface_Expecter) NewClient

NewClient is a helper method to define mock.On call

  • url string

type ClientFactoryInterface_NewClient_Call

type ClientFactoryInterface_NewClient_Call struct {
	*mock.Call
}

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

func (*ClientFactoryInterface_NewClient_Call) Return

func (*ClientFactoryInterface_NewClient_Call) Run

func (*ClientFactoryInterface_NewClient_Call) RunAndReturn

type ClientInterface

type ClientInterface struct {
	mock.Mock
}

ClientInterface is an autogenerated mock type for the ClientInterface type

func NewClientInterface

func NewClientInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientInterface

NewClientInterface creates a new instance of ClientInterface. 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 (*ClientInterface) ClaimProof

func (_m *ClientInterface) ClaimProof(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32) (*types.ClaimProof, error)

ClaimProof provides a mock function with given fields: networkID, depositCount, l1InfoTreeIndex

func (*ClientInterface) EXPECT

func (*ClientInterface) GetSponsoredClaimStatus

func (_m *ClientInterface) GetSponsoredClaimStatus(globalIndex *big.Int) (claimsponsor.ClaimStatus, error)

GetSponsoredClaimStatus provides a mock function with given fields: globalIndex

func (*ClientInterface) InjectedInfoAfterIndex

func (_m *ClientInterface) InjectedInfoAfterIndex(networkID uint32, l1InfoTreeIndex uint32) (*l1infotreesync.L1InfoTreeLeaf, error)

InjectedInfoAfterIndex provides a mock function with given fields: networkID, l1InfoTreeIndex

func (*ClientInterface) L1InfoTreeIndexForBridge

func (_m *ClientInterface) L1InfoTreeIndexForBridge(networkID uint32, depositCount uint32) (uint32, error)

L1InfoTreeIndexForBridge provides a mock function with given fields: networkID, depositCount

func (*ClientInterface) SponsorClaim

func (_m *ClientInterface) SponsorClaim(claim claimsponsor.Claim) error

SponsorClaim provides a mock function with given fields: claim

type ClientInterface_ClaimProof_Call

type ClientInterface_ClaimProof_Call struct {
	*mock.Call
}

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

func (*ClientInterface_ClaimProof_Call) Return

func (*ClientInterface_ClaimProof_Call) Run

func (_c *ClientInterface_ClaimProof_Call) Run(run func(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32)) *ClientInterface_ClaimProof_Call

func (*ClientInterface_ClaimProof_Call) RunAndReturn

type ClientInterface_Expecter

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

func (*ClientInterface_Expecter) ClaimProof

func (_e *ClientInterface_Expecter) ClaimProof(networkID interface{}, depositCount interface{}, l1InfoTreeIndex interface{}) *ClientInterface_ClaimProof_Call

ClaimProof is a helper method to define mock.On call

  • networkID uint32
  • depositCount uint32
  • l1InfoTreeIndex uint32

func (*ClientInterface_Expecter) GetSponsoredClaimStatus

func (_e *ClientInterface_Expecter) GetSponsoredClaimStatus(globalIndex interface{}) *ClientInterface_GetSponsoredClaimStatus_Call

GetSponsoredClaimStatus is a helper method to define mock.On call

  • globalIndex *big.Int

func (*ClientInterface_Expecter) InjectedInfoAfterIndex

func (_e *ClientInterface_Expecter) InjectedInfoAfterIndex(networkID interface{}, l1InfoTreeIndex interface{}) *ClientInterface_InjectedInfoAfterIndex_Call

InjectedInfoAfterIndex is a helper method to define mock.On call

  • networkID uint32
  • l1InfoTreeIndex uint32

func (*ClientInterface_Expecter) L1InfoTreeIndexForBridge

func (_e *ClientInterface_Expecter) L1InfoTreeIndexForBridge(networkID interface{}, depositCount interface{}) *ClientInterface_L1InfoTreeIndexForBridge_Call

L1InfoTreeIndexForBridge is a helper method to define mock.On call

  • networkID uint32
  • depositCount uint32

func (*ClientInterface_Expecter) SponsorClaim

func (_e *ClientInterface_Expecter) SponsorClaim(claim interface{}) *ClientInterface_SponsorClaim_Call

SponsorClaim is a helper method to define mock.On call

  • claim claimsponsor.Claim

type ClientInterface_GetSponsoredClaimStatus_Call

type ClientInterface_GetSponsoredClaimStatus_Call struct {
	*mock.Call
}

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

func (*ClientInterface_GetSponsoredClaimStatus_Call) Return

func (*ClientInterface_GetSponsoredClaimStatus_Call) Run

func (*ClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn

type ClientInterface_InjectedInfoAfterIndex_Call

type ClientInterface_InjectedInfoAfterIndex_Call struct {
	*mock.Call
}

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

func (*ClientInterface_InjectedInfoAfterIndex_Call) Return

func (*ClientInterface_InjectedInfoAfterIndex_Call) Run

func (*ClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn

type ClientInterface_L1InfoTreeIndexForBridge_Call

type ClientInterface_L1InfoTreeIndexForBridge_Call struct {
	*mock.Call
}

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

func (*ClientInterface_L1InfoTreeIndexForBridge_Call) Return

func (*ClientInterface_L1InfoTreeIndexForBridge_Call) Run

func (*ClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn

type ClientInterface_SponsorClaim_Call

type ClientInterface_SponsorClaim_Call struct {
	*mock.Call
}

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

func (*ClientInterface_SponsorClaim_Call) Return

func (*ClientInterface_SponsorClaim_Call) Run

func (*ClientInterface_SponsorClaim_Call) RunAndReturn

type L1InfoTreer

type L1InfoTreer struct {
	mock.Mock
}

L1InfoTreer is an autogenerated mock type for the L1InfoTreer type

func NewL1InfoTreer

func NewL1InfoTreer(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1InfoTreer

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

func (_m *L1InfoTreer) EXPECT() *L1InfoTreer_Expecter

func (*L1InfoTreer) GetFirstInfo

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

GetFirstInfo provides a mock function with given fields:

func (*L1InfoTreer) GetFirstInfoAfterBlock

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

GetFirstInfoAfterBlock provides a mock function with given fields: blockNum

func (*L1InfoTreer) GetFirstL1InfoWithRollupExitRoot

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

GetFirstL1InfoWithRollupExitRoot provides a mock function with given fields: rollupExitRoot

func (*L1InfoTreer) GetFirstVerifiedBatches

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

GetFirstVerifiedBatches provides a mock function with given fields: rollupID

func (*L1InfoTreer) GetFirstVerifiedBatchesAfterBlock

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

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

func (*L1InfoTreer) GetInfoByIndex

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

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

func (*L1InfoTreer) GetLastInfo

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

GetLastInfo provides a mock function with given fields:

func (*L1InfoTreer) GetLastVerifiedBatches

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

GetLastVerifiedBatches provides a mock function with given fields: rollupID

func (*L1InfoTreer) GetLocalExitRoot

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

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

func (*L1InfoTreer) GetRollupExitTreeMerkleProof

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

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

type L1InfoTreer_Expecter

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

func (*L1InfoTreer_Expecter) GetFirstInfo

GetFirstInfo is a helper method to define mock.On call

func (*L1InfoTreer_Expecter) GetFirstInfoAfterBlock

func (_e *L1InfoTreer_Expecter) GetFirstInfoAfterBlock(blockNum interface{}) *L1InfoTreer_GetFirstInfoAfterBlock_Call

GetFirstInfoAfterBlock is a helper method to define mock.On call

  • blockNum uint64

func (*L1InfoTreer_Expecter) GetFirstL1InfoWithRollupExitRoot

func (_e *L1InfoTreer_Expecter) GetFirstL1InfoWithRollupExitRoot(rollupExitRoot interface{}) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call

GetFirstL1InfoWithRollupExitRoot is a helper method to define mock.On call

  • rollupExitRoot common.Hash

func (*L1InfoTreer_Expecter) GetFirstVerifiedBatches

func (_e *L1InfoTreer_Expecter) GetFirstVerifiedBatches(rollupID interface{}) *L1InfoTreer_GetFirstVerifiedBatches_Call

GetFirstVerifiedBatches is a helper method to define mock.On call

  • rollupID uint32

func (*L1InfoTreer_Expecter) GetFirstVerifiedBatchesAfterBlock

func (_e *L1InfoTreer_Expecter) GetFirstVerifiedBatchesAfterBlock(rollupID interface{}, blockNum interface{}) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call

GetFirstVerifiedBatchesAfterBlock is a helper method to define mock.On call

  • rollupID uint32
  • blockNum uint64

func (*L1InfoTreer_Expecter) GetInfoByIndex

func (_e *L1InfoTreer_Expecter) GetInfoByIndex(ctx interface{}, index interface{}) *L1InfoTreer_GetInfoByIndex_Call

GetInfoByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

func (*L1InfoTreer_Expecter) GetLastInfo

GetLastInfo is a helper method to define mock.On call

func (*L1InfoTreer_Expecter) GetLastVerifiedBatches

func (_e *L1InfoTreer_Expecter) GetLastVerifiedBatches(rollupID interface{}) *L1InfoTreer_GetLastVerifiedBatches_Call

GetLastVerifiedBatches is a helper method to define mock.On call

  • rollupID uint32

func (*L1InfoTreer_Expecter) GetLocalExitRoot

func (_e *L1InfoTreer_Expecter) GetLocalExitRoot(ctx interface{}, networkID interface{}, rollupExitRoot interface{}) *L1InfoTreer_GetLocalExitRoot_Call

GetLocalExitRoot is a helper method to define mock.On call

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

func (*L1InfoTreer_Expecter) GetRollupExitTreeMerkleProof

func (_e *L1InfoTreer_Expecter) GetRollupExitTreeMerkleProof(ctx interface{}, networkID interface{}, root interface{}) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call

GetRollupExitTreeMerkleProof is a helper method to define mock.On call

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

type L1InfoTreer_GetFirstInfoAfterBlock_Call

type L1InfoTreer_GetFirstInfoAfterBlock_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetFirstInfoAfterBlock_Call) Return

func (*L1InfoTreer_GetFirstInfoAfterBlock_Call) Run

func (*L1InfoTreer_GetFirstInfoAfterBlock_Call) RunAndReturn

type L1InfoTreer_GetFirstInfo_Call

type L1InfoTreer_GetFirstInfo_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetFirstInfo_Call) Return

func (*L1InfoTreer_GetFirstInfo_Call) Run

func (*L1InfoTreer_GetFirstInfo_Call) RunAndReturn

type L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call

type L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) Return

func (*L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) Run

func (*L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) RunAndReturn

type L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call

type L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) Return

func (*L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) Run

func (*L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) RunAndReturn

type L1InfoTreer_GetFirstVerifiedBatches_Call

type L1InfoTreer_GetFirstVerifiedBatches_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetFirstVerifiedBatches_Call) Return

func (*L1InfoTreer_GetFirstVerifiedBatches_Call) Run

func (*L1InfoTreer_GetFirstVerifiedBatches_Call) RunAndReturn

type L1InfoTreer_GetInfoByIndex_Call

type L1InfoTreer_GetInfoByIndex_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetInfoByIndex_Call) Return

func (*L1InfoTreer_GetInfoByIndex_Call) Run

func (*L1InfoTreer_GetInfoByIndex_Call) RunAndReturn

type L1InfoTreer_GetLastInfo_Call

type L1InfoTreer_GetLastInfo_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetLastInfo_Call) Return

func (*L1InfoTreer_GetLastInfo_Call) Run

func (*L1InfoTreer_GetLastInfo_Call) RunAndReturn

type L1InfoTreer_GetLastVerifiedBatches_Call

type L1InfoTreer_GetLastVerifiedBatches_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetLastVerifiedBatches_Call) Return

func (*L1InfoTreer_GetLastVerifiedBatches_Call) Run

func (*L1InfoTreer_GetLastVerifiedBatches_Call) RunAndReturn

type L1InfoTreer_GetLocalExitRoot_Call

type L1InfoTreer_GetLocalExitRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetLocalExitRoot_Call) Return

func (*L1InfoTreer_GetLocalExitRoot_Call) Run

func (_c *L1InfoTreer_GetLocalExitRoot_Call) Run(run func(ctx context.Context, networkID uint32, rollupExitRoot common.Hash)) *L1InfoTreer_GetLocalExitRoot_Call

func (*L1InfoTreer_GetLocalExitRoot_Call) RunAndReturn

type L1InfoTreer_GetRollupExitTreeMerkleProof_Call

type L1InfoTreer_GetRollupExitTreeMerkleProof_Call struct {
	*mock.Call
}

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

func (*L1InfoTreer_GetRollupExitTreeMerkleProof_Call) Return

func (*L1InfoTreer_GetRollupExitTreeMerkleProof_Call) Run

func (*L1InfoTreer_GetRollupExitTreeMerkleProof_Call) RunAndReturn

type LastGERer

type LastGERer struct {
	mock.Mock
}

LastGERer is an autogenerated mock type for the LastGERer type

func NewLastGERer

func NewLastGERer(t interface {
	mock.TestingT
	Cleanup(func())
}) *LastGERer

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

func (_m *LastGERer) EXPECT() *LastGERer_Expecter

func (*LastGERer) GetFirstGERAfterL1InfoTreeIndex

func (_m *LastGERer) GetFirstGERAfterL1InfoTreeIndex(ctx context.Context, atOrAfterL1InfoTreeIndex uint32) (uint32, common.Hash, error)

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

type LastGERer_Expecter

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

func (*LastGERer_Expecter) GetFirstGERAfterL1InfoTreeIndex

func (_e *LastGERer_Expecter) GetFirstGERAfterL1InfoTreeIndex(ctx interface{}, atOrAfterL1InfoTreeIndex interface{}) *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call

GetFirstGERAfterL1InfoTreeIndex is a helper method to define mock.On call

  • ctx context.Context
  • atOrAfterL1InfoTreeIndex uint32

type LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call

type LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call struct {
	*mock.Call
}

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

func (*LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) Return

func (*LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) Run

func (*LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) RunAndReturn

Jump to

Keyboard shortcuts

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