Documentation ¶
Index ¶
- type BridgeClientInterface
- func (_m *BridgeClientInterface) ClaimProof(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32) (*types.ClaimProof, error)
- func (_m *BridgeClientInterface) EXPECT() *BridgeClientInterface_Expecter
- func (_m *BridgeClientInterface) GetSponsoredClaimStatus(globalIndex *big.Int) (claimsponsor.ClaimStatus, error)
- func (_m *BridgeClientInterface) InjectedInfoAfterIndex(networkID uint32, l1InfoTreeIndex uint32) (*l1infotreesync.L1InfoTreeLeaf, error)
- func (_m *BridgeClientInterface) L1InfoTreeIndexForBridge(networkID uint32, depositCount uint32) (uint32, error)
- func (_m *BridgeClientInterface) SponsorClaim(claim claimsponsor.Claim) error
- type BridgeClientInterface_ClaimProof_Call
- func (_c *BridgeClientInterface_ClaimProof_Call) Return(_a0 *types.ClaimProof, _a1 error) *BridgeClientInterface_ClaimProof_Call
- func (_c *BridgeClientInterface_ClaimProof_Call) Run(run func(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32)) *BridgeClientInterface_ClaimProof_Call
- func (_c *BridgeClientInterface_ClaimProof_Call) RunAndReturn(run func(uint32, uint32, uint32) (*types.ClaimProof, error)) *BridgeClientInterface_ClaimProof_Call
- type BridgeClientInterface_Expecter
- func (_e *BridgeClientInterface_Expecter) ClaimProof(networkID interface{}, depositCount interface{}, l1InfoTreeIndex interface{}) *BridgeClientInterface_ClaimProof_Call
- func (_e *BridgeClientInterface_Expecter) GetSponsoredClaimStatus(globalIndex interface{}) *BridgeClientInterface_GetSponsoredClaimStatus_Call
- func (_e *BridgeClientInterface_Expecter) InjectedInfoAfterIndex(networkID interface{}, l1InfoTreeIndex interface{}) *BridgeClientInterface_InjectedInfoAfterIndex_Call
- func (_e *BridgeClientInterface_Expecter) L1InfoTreeIndexForBridge(networkID interface{}, depositCount interface{}) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call
- func (_e *BridgeClientInterface_Expecter) SponsorClaim(claim interface{}) *BridgeClientInterface_SponsorClaim_Call
- type BridgeClientInterface_GetSponsoredClaimStatus_Call
- func (_c *BridgeClientInterface_GetSponsoredClaimStatus_Call) Return(_a0 claimsponsor.ClaimStatus, _a1 error) *BridgeClientInterface_GetSponsoredClaimStatus_Call
- func (_c *BridgeClientInterface_GetSponsoredClaimStatus_Call) Run(run func(globalIndex *big.Int)) *BridgeClientInterface_GetSponsoredClaimStatus_Call
- func (_c *BridgeClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn(run func(*big.Int) (claimsponsor.ClaimStatus, error)) *BridgeClientInterface_GetSponsoredClaimStatus_Call
- type BridgeClientInterface_InjectedInfoAfterIndex_Call
- func (_c *BridgeClientInterface_InjectedInfoAfterIndex_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *BridgeClientInterface_InjectedInfoAfterIndex_Call
- func (_c *BridgeClientInterface_InjectedInfoAfterIndex_Call) Run(run func(networkID uint32, l1InfoTreeIndex uint32)) *BridgeClientInterface_InjectedInfoAfterIndex_Call
- func (_c *BridgeClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn(run func(uint32, uint32) (*l1infotreesync.L1InfoTreeLeaf, error)) *BridgeClientInterface_InjectedInfoAfterIndex_Call
- type BridgeClientInterface_L1InfoTreeIndexForBridge_Call
- func (_c *BridgeClientInterface_L1InfoTreeIndexForBridge_Call) Return(_a0 uint32, _a1 error) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call
- func (_c *BridgeClientInterface_L1InfoTreeIndexForBridge_Call) Run(run func(networkID uint32, depositCount uint32)) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call
- func (_c *BridgeClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn(run func(uint32, uint32) (uint32, error)) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call
- type BridgeClientInterface_SponsorClaim_Call
- func (_c *BridgeClientInterface_SponsorClaim_Call) Return(_a0 error) *BridgeClientInterface_SponsorClaim_Call
- func (_c *BridgeClientInterface_SponsorClaim_Call) Run(run func(claim claimsponsor.Claim)) *BridgeClientInterface_SponsorClaim_Call
- func (_c *BridgeClientInterface_SponsorClaim_Call) RunAndReturn(run func(claimsponsor.Claim) error) *BridgeClientInterface_SponsorClaim_Call
- type Bridger
- type Bridger_Expecter
- type Bridger_GetProof_Call
- func (_c *Bridger_GetProof_Call) Return(_a0 types.Proof, _a1 error) *Bridger_GetProof_Call
- func (_c *Bridger_GetProof_Call) Run(run func(ctx context.Context, depositCount uint32, localExitRoot common.Hash)) *Bridger_GetProof_Call
- func (_c *Bridger_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (types.Proof, error)) *Bridger_GetProof_Call
- type Bridger_GetRootByLER_Call
- func (_c *Bridger_GetRootByLER_Call) Return(_a0 *types.Root, _a1 error) *Bridger_GetRootByLER_Call
- func (_c *Bridger_GetRootByLER_Call) Run(run func(ctx context.Context, ler common.Hash)) *Bridger_GetRootByLER_Call
- func (_c *Bridger_GetRootByLER_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Root, error)) *Bridger_GetRootByLER_Call
- type ClaimSponsorer
- type ClaimSponsorer_AddClaimToQueue_Call
- func (_c *ClaimSponsorer_AddClaimToQueue_Call) Return(_a0 error) *ClaimSponsorer_AddClaimToQueue_Call
- func (_c *ClaimSponsorer_AddClaimToQueue_Call) Run(run func(ctx context.Context, claim *claimsponsor.Claim)) *ClaimSponsorer_AddClaimToQueue_Call
- func (_c *ClaimSponsorer_AddClaimToQueue_Call) RunAndReturn(run func(context.Context, *claimsponsor.Claim) error) *ClaimSponsorer_AddClaimToQueue_Call
- type ClaimSponsorer_Expecter
- type ClaimSponsorer_GetClaim_Call
- func (_c *ClaimSponsorer_GetClaim_Call) Return(_a0 *claimsponsor.Claim, _a1 error) *ClaimSponsorer_GetClaim_Call
- func (_c *ClaimSponsorer_GetClaim_Call) Run(run func(ctx context.Context, globalIndex *big.Int)) *ClaimSponsorer_GetClaim_Call
- func (_c *ClaimSponsorer_GetClaim_Call) RunAndReturn(run func(context.Context, *big.Int) (*claimsponsor.Claim, error)) *ClaimSponsorer_GetClaim_Call
- type ClientFactoryInterface
- type ClientFactoryInterface_Expecter
- type ClientFactoryInterface_NewClient_Call
- func (_c *ClientFactoryInterface_NewClient_Call) Return(_a0 rpc.ClientInterface) *ClientFactoryInterface_NewClient_Call
- func (_c *ClientFactoryInterface_NewClient_Call) Run(run func(url string)) *ClientFactoryInterface_NewClient_Call
- func (_c *ClientFactoryInterface_NewClient_Call) RunAndReturn(run func(string) rpc.ClientInterface) *ClientFactoryInterface_NewClient_Call
- type ClientInterface
- func (_m *ClientInterface) ClaimProof(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32) (*types.ClaimProof, error)
- func (_m *ClientInterface) EXPECT() *ClientInterface_Expecter
- func (_m *ClientInterface) GetSponsoredClaimStatus(globalIndex *big.Int) (claimsponsor.ClaimStatus, error)
- func (_m *ClientInterface) InjectedInfoAfterIndex(networkID uint32, l1InfoTreeIndex uint32) (*l1infotreesync.L1InfoTreeLeaf, error)
- func (_m *ClientInterface) L1InfoTreeIndexForBridge(networkID uint32, depositCount uint32) (uint32, error)
- func (_m *ClientInterface) SponsorClaim(claim claimsponsor.Claim) error
- type ClientInterface_ClaimProof_Call
- func (_c *ClientInterface_ClaimProof_Call) Return(_a0 *types.ClaimProof, _a1 error) *ClientInterface_ClaimProof_Call
- func (_c *ClientInterface_ClaimProof_Call) Run(run func(networkID uint32, depositCount uint32, l1InfoTreeIndex uint32)) *ClientInterface_ClaimProof_Call
- func (_c *ClientInterface_ClaimProof_Call) RunAndReturn(run func(uint32, uint32, uint32) (*types.ClaimProof, error)) *ClientInterface_ClaimProof_Call
- type ClientInterface_Expecter
- func (_e *ClientInterface_Expecter) ClaimProof(networkID interface{}, depositCount interface{}, l1InfoTreeIndex interface{}) *ClientInterface_ClaimProof_Call
- func (_e *ClientInterface_Expecter) GetSponsoredClaimStatus(globalIndex interface{}) *ClientInterface_GetSponsoredClaimStatus_Call
- func (_e *ClientInterface_Expecter) InjectedInfoAfterIndex(networkID interface{}, l1InfoTreeIndex interface{}) *ClientInterface_InjectedInfoAfterIndex_Call
- func (_e *ClientInterface_Expecter) L1InfoTreeIndexForBridge(networkID interface{}, depositCount interface{}) *ClientInterface_L1InfoTreeIndexForBridge_Call
- func (_e *ClientInterface_Expecter) SponsorClaim(claim interface{}) *ClientInterface_SponsorClaim_Call
- type ClientInterface_GetSponsoredClaimStatus_Call
- func (_c *ClientInterface_GetSponsoredClaimStatus_Call) Return(_a0 claimsponsor.ClaimStatus, _a1 error) *ClientInterface_GetSponsoredClaimStatus_Call
- func (_c *ClientInterface_GetSponsoredClaimStatus_Call) Run(run func(globalIndex *big.Int)) *ClientInterface_GetSponsoredClaimStatus_Call
- func (_c *ClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn(run func(*big.Int) (claimsponsor.ClaimStatus, error)) *ClientInterface_GetSponsoredClaimStatus_Call
- type ClientInterface_InjectedInfoAfterIndex_Call
- func (_c *ClientInterface_InjectedInfoAfterIndex_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *ClientInterface_InjectedInfoAfterIndex_Call
- func (_c *ClientInterface_InjectedInfoAfterIndex_Call) Run(run func(networkID uint32, l1InfoTreeIndex uint32)) *ClientInterface_InjectedInfoAfterIndex_Call
- func (_c *ClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn(run func(uint32, uint32) (*l1infotreesync.L1InfoTreeLeaf, error)) *ClientInterface_InjectedInfoAfterIndex_Call
- type ClientInterface_L1InfoTreeIndexForBridge_Call
- func (_c *ClientInterface_L1InfoTreeIndexForBridge_Call) Return(_a0 uint32, _a1 error) *ClientInterface_L1InfoTreeIndexForBridge_Call
- func (_c *ClientInterface_L1InfoTreeIndexForBridge_Call) Run(run func(networkID uint32, depositCount uint32)) *ClientInterface_L1InfoTreeIndexForBridge_Call
- func (_c *ClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn(run func(uint32, uint32) (uint32, error)) *ClientInterface_L1InfoTreeIndexForBridge_Call
- type ClientInterface_SponsorClaim_Call
- func (_c *ClientInterface_SponsorClaim_Call) Return(_a0 error) *ClientInterface_SponsorClaim_Call
- func (_c *ClientInterface_SponsorClaim_Call) Run(run func(claim claimsponsor.Claim)) *ClientInterface_SponsorClaim_Call
- func (_c *ClientInterface_SponsorClaim_Call) RunAndReturn(run func(claimsponsor.Claim) error) *ClientInterface_SponsorClaim_Call
- type L1InfoTreer
- func (_m *L1InfoTreer) EXPECT() *L1InfoTreer_Expecter
- func (_m *L1InfoTreer) GetFirstInfo() (*l1infotreesync.L1InfoTreeLeaf, error)
- func (_m *L1InfoTreer) GetFirstInfoAfterBlock(blockNum uint64) (*l1infotreesync.L1InfoTreeLeaf, error)
- func (_m *L1InfoTreer) GetFirstL1InfoWithRollupExitRoot(rollupExitRoot common.Hash) (*l1infotreesync.L1InfoTreeLeaf, error)
- func (_m *L1InfoTreer) GetFirstVerifiedBatches(rollupID uint32) (*l1infotreesync.VerifyBatches, error)
- func (_m *L1InfoTreer) GetFirstVerifiedBatchesAfterBlock(rollupID uint32, blockNum uint64) (*l1infotreesync.VerifyBatches, error)
- func (_m *L1InfoTreer) GetInfoByIndex(ctx context.Context, index uint32) (*l1infotreesync.L1InfoTreeLeaf, error)
- func (_m *L1InfoTreer) GetLastInfo() (*l1infotreesync.L1InfoTreeLeaf, error)
- func (_m *L1InfoTreer) GetLastVerifiedBatches(rollupID uint32) (*l1infotreesync.VerifyBatches, error)
- func (_m *L1InfoTreer) GetLocalExitRoot(ctx context.Context, networkID uint32, rollupExitRoot common.Hash) (common.Hash, error)
- func (_m *L1InfoTreer) GetRollupExitTreeMerkleProof(ctx context.Context, networkID uint32, root common.Hash) (types.Proof, error)
- type L1InfoTreer_Expecter
- func (_e *L1InfoTreer_Expecter) GetFirstInfo() *L1InfoTreer_GetFirstInfo_Call
- func (_e *L1InfoTreer_Expecter) GetFirstInfoAfterBlock(blockNum interface{}) *L1InfoTreer_GetFirstInfoAfterBlock_Call
- func (_e *L1InfoTreer_Expecter) GetFirstL1InfoWithRollupExitRoot(rollupExitRoot interface{}) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
- func (_e *L1InfoTreer_Expecter) GetFirstVerifiedBatches(rollupID interface{}) *L1InfoTreer_GetFirstVerifiedBatches_Call
- func (_e *L1InfoTreer_Expecter) GetFirstVerifiedBatchesAfterBlock(rollupID interface{}, blockNum interface{}) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
- func (_e *L1InfoTreer_Expecter) GetInfoByIndex(ctx interface{}, index interface{}) *L1InfoTreer_GetInfoByIndex_Call
- func (_e *L1InfoTreer_Expecter) GetLastInfo() *L1InfoTreer_GetLastInfo_Call
- func (_e *L1InfoTreer_Expecter) GetLastVerifiedBatches(rollupID interface{}) *L1InfoTreer_GetLastVerifiedBatches_Call
- func (_e *L1InfoTreer_Expecter) GetLocalExitRoot(ctx interface{}, networkID interface{}, rollupExitRoot interface{}) *L1InfoTreer_GetLocalExitRoot_Call
- func (_e *L1InfoTreer_Expecter) GetRollupExitTreeMerkleProof(ctx interface{}, networkID interface{}, root interface{}) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call
- type L1InfoTreer_GetFirstInfoAfterBlock_Call
- func (_c *L1InfoTreer_GetFirstInfoAfterBlock_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetFirstInfoAfterBlock_Call
- func (_c *L1InfoTreer_GetFirstInfoAfterBlock_Call) Run(run func(blockNum uint64)) *L1InfoTreer_GetFirstInfoAfterBlock_Call
- func (_c *L1InfoTreer_GetFirstInfoAfterBlock_Call) RunAndReturn(run func(uint64) (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetFirstInfoAfterBlock_Call
- type L1InfoTreer_GetFirstInfo_Call
- func (_c *L1InfoTreer_GetFirstInfo_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetFirstInfo_Call
- func (_c *L1InfoTreer_GetFirstInfo_Call) Run(run func()) *L1InfoTreer_GetFirstInfo_Call
- func (_c *L1InfoTreer_GetFirstInfo_Call) RunAndReturn(run func() (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetFirstInfo_Call
- type L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
- func (_c *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
- func (_c *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) Run(run func(rollupExitRoot common.Hash)) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
- func (_c *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) RunAndReturn(run func(common.Hash) (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
- type L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
- func (_c *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) Return(_a0 *l1infotreesync.VerifyBatches, _a1 error) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
- func (_c *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) Run(run func(rollupID uint32, blockNum uint64)) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
- func (_c *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) RunAndReturn(run func(uint32, uint64) (*l1infotreesync.VerifyBatches, error)) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
- type L1InfoTreer_GetFirstVerifiedBatches_Call
- func (_c *L1InfoTreer_GetFirstVerifiedBatches_Call) Return(_a0 *l1infotreesync.VerifyBatches, _a1 error) *L1InfoTreer_GetFirstVerifiedBatches_Call
- func (_c *L1InfoTreer_GetFirstVerifiedBatches_Call) Run(run func(rollupID uint32)) *L1InfoTreer_GetFirstVerifiedBatches_Call
- func (_c *L1InfoTreer_GetFirstVerifiedBatches_Call) RunAndReturn(run func(uint32) (*l1infotreesync.VerifyBatches, error)) *L1InfoTreer_GetFirstVerifiedBatches_Call
- type L1InfoTreer_GetInfoByIndex_Call
- func (_c *L1InfoTreer_GetInfoByIndex_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetInfoByIndex_Call
- func (_c *L1InfoTreer_GetInfoByIndex_Call) Run(run func(ctx context.Context, index uint32)) *L1InfoTreer_GetInfoByIndex_Call
- func (_c *L1InfoTreer_GetInfoByIndex_Call) RunAndReturn(run func(context.Context, uint32) (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetInfoByIndex_Call
- type L1InfoTreer_GetLastInfo_Call
- func (_c *L1InfoTreer_GetLastInfo_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetLastInfo_Call
- func (_c *L1InfoTreer_GetLastInfo_Call) Run(run func()) *L1InfoTreer_GetLastInfo_Call
- func (_c *L1InfoTreer_GetLastInfo_Call) RunAndReturn(run func() (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetLastInfo_Call
- type L1InfoTreer_GetLastVerifiedBatches_Call
- func (_c *L1InfoTreer_GetLastVerifiedBatches_Call) Return(_a0 *l1infotreesync.VerifyBatches, _a1 error) *L1InfoTreer_GetLastVerifiedBatches_Call
- func (_c *L1InfoTreer_GetLastVerifiedBatches_Call) Run(run func(rollupID uint32)) *L1InfoTreer_GetLastVerifiedBatches_Call
- func (_c *L1InfoTreer_GetLastVerifiedBatches_Call) RunAndReturn(run func(uint32) (*l1infotreesync.VerifyBatches, error)) *L1InfoTreer_GetLastVerifiedBatches_Call
- type L1InfoTreer_GetLocalExitRoot_Call
- func (_c *L1InfoTreer_GetLocalExitRoot_Call) Return(_a0 common.Hash, _a1 error) *L1InfoTreer_GetLocalExitRoot_Call
- func (_c *L1InfoTreer_GetLocalExitRoot_Call) Run(run func(ctx context.Context, networkID uint32, rollupExitRoot common.Hash)) *L1InfoTreer_GetLocalExitRoot_Call
- func (_c *L1InfoTreer_GetLocalExitRoot_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (common.Hash, error)) *L1InfoTreer_GetLocalExitRoot_Call
- type L1InfoTreer_GetRollupExitTreeMerkleProof_Call
- func (_c *L1InfoTreer_GetRollupExitTreeMerkleProof_Call) Return(_a0 types.Proof, _a1 error) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call
- func (_c *L1InfoTreer_GetRollupExitTreeMerkleProof_Call) Run(run func(ctx context.Context, networkID uint32, root common.Hash)) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call
- func (_c *L1InfoTreer_GetRollupExitTreeMerkleProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (types.Proof, error)) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call
- type LastGERer
- type LastGERer_Expecter
- type LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call
- func (_c *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) Return(injectedL1InfoTreeIndex uint32, ger common.Hash, err error) *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call
- func (_c *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) Run(run func(ctx context.Context, atOrAfterL1InfoTreeIndex uint32)) *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call
- func (_c *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) RunAndReturn(run func(context.Context, uint32) (uint32, common.Hash, error)) *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeClientInterface ¶
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 (_m *BridgeClientInterface) EXPECT() *BridgeClientInterface_Expecter
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 ¶
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 (_c *BridgeClientInterface_ClaimProof_Call) Return(_a0 *types.ClaimProof, _a1 error) *BridgeClientInterface_ClaimProof_Call
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 ¶
func (_c *BridgeClientInterface_ClaimProof_Call) RunAndReturn(run func(uint32, uint32, uint32) (*types.ClaimProof, error)) *BridgeClientInterface_ClaimProof_Call
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 ¶
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 (_c *BridgeClientInterface_GetSponsoredClaimStatus_Call) Return(_a0 claimsponsor.ClaimStatus, _a1 error) *BridgeClientInterface_GetSponsoredClaimStatus_Call
func (*BridgeClientInterface_GetSponsoredClaimStatus_Call) Run ¶
func (_c *BridgeClientInterface_GetSponsoredClaimStatus_Call) Run(run func(globalIndex *big.Int)) *BridgeClientInterface_GetSponsoredClaimStatus_Call
func (*BridgeClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn ¶
func (_c *BridgeClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn(run func(*big.Int) (claimsponsor.ClaimStatus, error)) *BridgeClientInterface_GetSponsoredClaimStatus_Call
type BridgeClientInterface_InjectedInfoAfterIndex_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 (_c *BridgeClientInterface_InjectedInfoAfterIndex_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *BridgeClientInterface_InjectedInfoAfterIndex_Call
func (*BridgeClientInterface_InjectedInfoAfterIndex_Call) Run ¶
func (_c *BridgeClientInterface_InjectedInfoAfterIndex_Call) Run(run func(networkID uint32, l1InfoTreeIndex uint32)) *BridgeClientInterface_InjectedInfoAfterIndex_Call
func (*BridgeClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn ¶
func (_c *BridgeClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn(run func(uint32, uint32) (*l1infotreesync.L1InfoTreeLeaf, error)) *BridgeClientInterface_InjectedInfoAfterIndex_Call
type BridgeClientInterface_L1InfoTreeIndexForBridge_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 (_c *BridgeClientInterface_L1InfoTreeIndexForBridge_Call) Return(_a0 uint32, _a1 error) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call
func (*BridgeClientInterface_L1InfoTreeIndexForBridge_Call) Run ¶
func (_c *BridgeClientInterface_L1InfoTreeIndexForBridge_Call) Run(run func(networkID uint32, depositCount uint32)) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call
func (*BridgeClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn ¶
func (_c *BridgeClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn(run func(uint32, uint32) (uint32, error)) *BridgeClientInterface_L1InfoTreeIndexForBridge_Call
type BridgeClientInterface_SponsorClaim_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 (_c *BridgeClientInterface_SponsorClaim_Call) Return(_a0 error) *BridgeClientInterface_SponsorClaim_Call
func (*BridgeClientInterface_SponsorClaim_Call) Run ¶
func (_c *BridgeClientInterface_SponsorClaim_Call) Run(run func(claim claimsponsor.Claim)) *BridgeClientInterface_SponsorClaim_Call
func (*BridgeClientInterface_SponsorClaim_Call) RunAndReturn ¶
func (_c *BridgeClientInterface_SponsorClaim_Call) RunAndReturn(run func(claimsponsor.Claim) error) *BridgeClientInterface_SponsorClaim_Call
type Bridger ¶
Bridger is an autogenerated mock type for the Bridger type
func NewBridger ¶
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
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 ¶
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 (_c *Bridger_GetProof_Call) Return(_a0 types.Proof, _a1 error) *Bridger_GetProof_Call
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 ¶
func (_c *Bridger_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (types.Proof, error)) *Bridger_GetProof_Call
type Bridger_GetRootByLER_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 (_c *Bridger_GetRootByLER_Call) Return(_a0 *types.Root, _a1 error) *Bridger_GetRootByLER_Call
func (*Bridger_GetRootByLER_Call) Run ¶
func (_c *Bridger_GetRootByLER_Call) Run(run func(ctx context.Context, ler common.Hash)) *Bridger_GetRootByLER_Call
func (*Bridger_GetRootByLER_Call) RunAndReturn ¶
func (_c *Bridger_GetRootByLER_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Root, error)) *Bridger_GetRootByLER_Call
type ClaimSponsorer ¶
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 (_m *ClaimSponsorer) EXPECT() *ClaimSponsorer_Expecter
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 ¶
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 (_c *ClaimSponsorer_AddClaimToQueue_Call) Return(_a0 error) *ClaimSponsorer_AddClaimToQueue_Call
func (*ClaimSponsorer_AddClaimToQueue_Call) Run ¶
func (_c *ClaimSponsorer_AddClaimToQueue_Call) Run(run func(ctx context.Context, claim *claimsponsor.Claim)) *ClaimSponsorer_AddClaimToQueue_Call
func (*ClaimSponsorer_AddClaimToQueue_Call) RunAndReturn ¶
func (_c *ClaimSponsorer_AddClaimToQueue_Call) RunAndReturn(run func(context.Context, *claimsponsor.Claim) error) *ClaimSponsorer_AddClaimToQueue_Call
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 ¶
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 (_c *ClaimSponsorer_GetClaim_Call) Return(_a0 *claimsponsor.Claim, _a1 error) *ClaimSponsorer_GetClaim_Call
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 ¶
func (_c *ClaimSponsorer_GetClaim_Call) RunAndReturn(run func(context.Context, *big.Int) (*claimsponsor.Claim, error)) *ClaimSponsorer_GetClaim_Call
type ClientFactoryInterface ¶
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 (_m *ClientFactoryInterface) EXPECT() *ClientFactoryInterface_Expecter
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 ¶
func (_e *ClientFactoryInterface_Expecter) NewClient(url interface{}) *ClientFactoryInterface_NewClient_Call
NewClient is a helper method to define mock.On call
- url string
type ClientFactoryInterface_NewClient_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 (_c *ClientFactoryInterface_NewClient_Call) Return(_a0 rpc.ClientInterface) *ClientFactoryInterface_NewClient_Call
func (*ClientFactoryInterface_NewClient_Call) Run ¶
func (_c *ClientFactoryInterface_NewClient_Call) Run(run func(url string)) *ClientFactoryInterface_NewClient_Call
func (*ClientFactoryInterface_NewClient_Call) RunAndReturn ¶
func (_c *ClientFactoryInterface_NewClient_Call) RunAndReturn(run func(string) rpc.ClientInterface) *ClientFactoryInterface_NewClient_Call
type ClientInterface ¶
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 (_m *ClientInterface) EXPECT() *ClientInterface_Expecter
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 ¶
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 (_c *ClientInterface_ClaimProof_Call) Return(_a0 *types.ClaimProof, _a1 error) *ClientInterface_ClaimProof_Call
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 ¶
func (_c *ClientInterface_ClaimProof_Call) RunAndReturn(run func(uint32, uint32, uint32) (*types.ClaimProof, error)) *ClientInterface_ClaimProof_Call
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 ¶
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 (_c *ClientInterface_GetSponsoredClaimStatus_Call) Return(_a0 claimsponsor.ClaimStatus, _a1 error) *ClientInterface_GetSponsoredClaimStatus_Call
func (*ClientInterface_GetSponsoredClaimStatus_Call) Run ¶
func (_c *ClientInterface_GetSponsoredClaimStatus_Call) Run(run func(globalIndex *big.Int)) *ClientInterface_GetSponsoredClaimStatus_Call
func (*ClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn ¶
func (_c *ClientInterface_GetSponsoredClaimStatus_Call) RunAndReturn(run func(*big.Int) (claimsponsor.ClaimStatus, error)) *ClientInterface_GetSponsoredClaimStatus_Call
type ClientInterface_InjectedInfoAfterIndex_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 (_c *ClientInterface_InjectedInfoAfterIndex_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *ClientInterface_InjectedInfoAfterIndex_Call
func (*ClientInterface_InjectedInfoAfterIndex_Call) Run ¶
func (_c *ClientInterface_InjectedInfoAfterIndex_Call) Run(run func(networkID uint32, l1InfoTreeIndex uint32)) *ClientInterface_InjectedInfoAfterIndex_Call
func (*ClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn ¶
func (_c *ClientInterface_InjectedInfoAfterIndex_Call) RunAndReturn(run func(uint32, uint32) (*l1infotreesync.L1InfoTreeLeaf, error)) *ClientInterface_InjectedInfoAfterIndex_Call
type ClientInterface_L1InfoTreeIndexForBridge_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 (_c *ClientInterface_L1InfoTreeIndexForBridge_Call) Return(_a0 uint32, _a1 error) *ClientInterface_L1InfoTreeIndexForBridge_Call
func (*ClientInterface_L1InfoTreeIndexForBridge_Call) Run ¶
func (_c *ClientInterface_L1InfoTreeIndexForBridge_Call) Run(run func(networkID uint32, depositCount uint32)) *ClientInterface_L1InfoTreeIndexForBridge_Call
func (*ClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn ¶
func (_c *ClientInterface_L1InfoTreeIndexForBridge_Call) RunAndReturn(run func(uint32, uint32) (uint32, error)) *ClientInterface_L1InfoTreeIndexForBridge_Call
type ClientInterface_SponsorClaim_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 (_c *ClientInterface_SponsorClaim_Call) Return(_a0 error) *ClientInterface_SponsorClaim_Call
func (*ClientInterface_SponsorClaim_Call) Run ¶
func (_c *ClientInterface_SponsorClaim_Call) Run(run func(claim claimsponsor.Claim)) *ClientInterface_SponsorClaim_Call
func (*ClientInterface_SponsorClaim_Call) RunAndReturn ¶
func (_c *ClientInterface_SponsorClaim_Call) RunAndReturn(run func(claimsponsor.Claim) error) *ClientInterface_SponsorClaim_Call
type L1InfoTreer ¶
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
type L1InfoTreer_Expecter ¶
type L1InfoTreer_Expecter struct {
// contains filtered or unexported fields
}
func (*L1InfoTreer_Expecter) GetFirstInfo ¶
func (_e *L1InfoTreer_Expecter) GetFirstInfo() *L1InfoTreer_GetFirstInfo_Call
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 ¶
func (_e *L1InfoTreer_Expecter) GetLastInfo() *L1InfoTreer_GetLastInfo_Call
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 ¶
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 (_c *L1InfoTreer_GetFirstInfoAfterBlock_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetFirstInfoAfterBlock_Call
func (*L1InfoTreer_GetFirstInfoAfterBlock_Call) Run ¶
func (_c *L1InfoTreer_GetFirstInfoAfterBlock_Call) Run(run func(blockNum uint64)) *L1InfoTreer_GetFirstInfoAfterBlock_Call
func (*L1InfoTreer_GetFirstInfoAfterBlock_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetFirstInfoAfterBlock_Call) RunAndReturn(run func(uint64) (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetFirstInfoAfterBlock_Call
type L1InfoTreer_GetFirstInfo_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 (_c *L1InfoTreer_GetFirstInfo_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetFirstInfo_Call
func (*L1InfoTreer_GetFirstInfo_Call) Run ¶
func (_c *L1InfoTreer_GetFirstInfo_Call) Run(run func()) *L1InfoTreer_GetFirstInfo_Call
func (*L1InfoTreer_GetFirstInfo_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetFirstInfo_Call) RunAndReturn(run func() (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetFirstInfo_Call
type L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_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 (_c *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
func (*L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) Run ¶
func (_c *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) Run(run func(rollupExitRoot common.Hash)) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
func (*L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call) RunAndReturn(run func(common.Hash) (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetFirstL1InfoWithRollupExitRoot_Call
type L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_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 (_c *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) Return(_a0 *l1infotreesync.VerifyBatches, _a1 error) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
func (*L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) Run ¶
func (_c *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) Run(run func(rollupID uint32, blockNum uint64)) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
func (*L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call) RunAndReturn(run func(uint32, uint64) (*l1infotreesync.VerifyBatches, error)) *L1InfoTreer_GetFirstVerifiedBatchesAfterBlock_Call
type L1InfoTreer_GetFirstVerifiedBatches_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 (_c *L1InfoTreer_GetFirstVerifiedBatches_Call) Return(_a0 *l1infotreesync.VerifyBatches, _a1 error) *L1InfoTreer_GetFirstVerifiedBatches_Call
func (*L1InfoTreer_GetFirstVerifiedBatches_Call) Run ¶
func (_c *L1InfoTreer_GetFirstVerifiedBatches_Call) Run(run func(rollupID uint32)) *L1InfoTreer_GetFirstVerifiedBatches_Call
func (*L1InfoTreer_GetFirstVerifiedBatches_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetFirstVerifiedBatches_Call) RunAndReturn(run func(uint32) (*l1infotreesync.VerifyBatches, error)) *L1InfoTreer_GetFirstVerifiedBatches_Call
type L1InfoTreer_GetInfoByIndex_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 (_c *L1InfoTreer_GetInfoByIndex_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetInfoByIndex_Call
func (*L1InfoTreer_GetInfoByIndex_Call) Run ¶
func (_c *L1InfoTreer_GetInfoByIndex_Call) Run(run func(ctx context.Context, index uint32)) *L1InfoTreer_GetInfoByIndex_Call
func (*L1InfoTreer_GetInfoByIndex_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetInfoByIndex_Call) RunAndReturn(run func(context.Context, uint32) (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetInfoByIndex_Call
type L1InfoTreer_GetLastInfo_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 (_c *L1InfoTreer_GetLastInfo_Call) Return(_a0 *l1infotreesync.L1InfoTreeLeaf, _a1 error) *L1InfoTreer_GetLastInfo_Call
func (*L1InfoTreer_GetLastInfo_Call) Run ¶
func (_c *L1InfoTreer_GetLastInfo_Call) Run(run func()) *L1InfoTreer_GetLastInfo_Call
func (*L1InfoTreer_GetLastInfo_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetLastInfo_Call) RunAndReturn(run func() (*l1infotreesync.L1InfoTreeLeaf, error)) *L1InfoTreer_GetLastInfo_Call
type L1InfoTreer_GetLastVerifiedBatches_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 (_c *L1InfoTreer_GetLastVerifiedBatches_Call) Return(_a0 *l1infotreesync.VerifyBatches, _a1 error) *L1InfoTreer_GetLastVerifiedBatches_Call
func (*L1InfoTreer_GetLastVerifiedBatches_Call) Run ¶
func (_c *L1InfoTreer_GetLastVerifiedBatches_Call) Run(run func(rollupID uint32)) *L1InfoTreer_GetLastVerifiedBatches_Call
func (*L1InfoTreer_GetLastVerifiedBatches_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetLastVerifiedBatches_Call) RunAndReturn(run func(uint32) (*l1infotreesync.VerifyBatches, error)) *L1InfoTreer_GetLastVerifiedBatches_Call
type L1InfoTreer_GetLocalExitRoot_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 (_c *L1InfoTreer_GetLocalExitRoot_Call) Return(_a0 common.Hash, _a1 error) *L1InfoTreer_GetLocalExitRoot_Call
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 ¶
func (_c *L1InfoTreer_GetLocalExitRoot_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (common.Hash, error)) *L1InfoTreer_GetLocalExitRoot_Call
type L1InfoTreer_GetRollupExitTreeMerkleProof_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 (_c *L1InfoTreer_GetRollupExitTreeMerkleProof_Call) Return(_a0 types.Proof, _a1 error) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call
func (*L1InfoTreer_GetRollupExitTreeMerkleProof_Call) Run ¶
func (_c *L1InfoTreer_GetRollupExitTreeMerkleProof_Call) Run(run func(ctx context.Context, networkID uint32, root common.Hash)) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call
func (*L1InfoTreer_GetRollupExitTreeMerkleProof_Call) RunAndReturn ¶
func (_c *L1InfoTreer_GetRollupExitTreeMerkleProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (types.Proof, error)) *L1InfoTreer_GetRollupExitTreeMerkleProof_Call
type LastGERer ¶
LastGERer is an autogenerated mock type for the LastGERer type
func NewLastGERer ¶
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
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 ¶
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 (_c *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) Return(injectedL1InfoTreeIndex uint32, ger common.Hash, err error) *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call
func (*LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) Run ¶
func (_c *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) Run(run func(ctx context.Context, atOrAfterL1InfoTreeIndex uint32)) *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call
func (*LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) RunAndReturn ¶
func (_c *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call) RunAndReturn(run func(context.Context, uint32) (uint32, common.Hash, error)) *LastGERer_GetFirstGERAfterL1InfoTreeIndex_Call