Documentation
¶
Index ¶
- type ClaimSyncer
- func (_m *ClaimSyncer) EXPECT() *ClaimSyncer_Expecter
- func (_m *ClaimSyncer) GetClaims(ctx context.Context, fromBlock uint64, toBlock uint64) ([]types.Claim, error)
- func (_m *ClaimSyncer) GetClaimsByGlobalIndex(ctx context.Context, globalIndex *big.Int) ([]types.Claim, error)
- func (_m *ClaimSyncer) GetFirstProcessedBlock(ctx context.Context) (uint64, bool, error)
- func (_m *ClaimSyncer) GetLastProcessedBlock(ctx context.Context) (uint64, bool, error)
- func (_m *ClaimSyncer) SetNextRequiredBlock(ctx context.Context, blockNum uint64) error
- type ClaimSyncer_Expecter
- func (_e *ClaimSyncer_Expecter) GetClaims(ctx interface{}, fromBlock interface{}, toBlock interface{}) *ClaimSyncer_GetClaims_Call
- func (_e *ClaimSyncer_Expecter) GetClaimsByGlobalIndex(ctx interface{}, globalIndex interface{}) *ClaimSyncer_GetClaimsByGlobalIndex_Call
- func (_e *ClaimSyncer_Expecter) GetFirstProcessedBlock(ctx interface{}) *ClaimSyncer_GetFirstProcessedBlock_Call
- func (_e *ClaimSyncer_Expecter) GetLastProcessedBlock(ctx interface{}) *ClaimSyncer_GetLastProcessedBlock_Call
- func (_e *ClaimSyncer_Expecter) SetNextRequiredBlock(ctx interface{}, blockNum interface{}) *ClaimSyncer_SetNextRequiredBlock_Call
- type ClaimSyncer_GetClaimsByGlobalIndex_Call
- func (_c *ClaimSyncer_GetClaimsByGlobalIndex_Call) Return(_a0 []types.Claim, _a1 error) *ClaimSyncer_GetClaimsByGlobalIndex_Call
- func (_c *ClaimSyncer_GetClaimsByGlobalIndex_Call) Run(run func(ctx context.Context, globalIndex *big.Int)) *ClaimSyncer_GetClaimsByGlobalIndex_Call
- func (_c *ClaimSyncer_GetClaimsByGlobalIndex_Call) RunAndReturn(run func(context.Context, *big.Int) ([]types.Claim, error)) *ClaimSyncer_GetClaimsByGlobalIndex_Call
- type ClaimSyncer_GetClaims_Call
- func (_c *ClaimSyncer_GetClaims_Call) Return(_a0 []types.Claim, _a1 error) *ClaimSyncer_GetClaims_Call
- func (_c *ClaimSyncer_GetClaims_Call) Run(run func(ctx context.Context, fromBlock uint64, toBlock uint64)) *ClaimSyncer_GetClaims_Call
- func (_c *ClaimSyncer_GetClaims_Call) RunAndReturn(run func(context.Context, uint64, uint64) ([]types.Claim, error)) *ClaimSyncer_GetClaims_Call
- type ClaimSyncer_GetFirstProcessedBlock_Call
- func (_c *ClaimSyncer_GetFirstProcessedBlock_Call) Return(_a0 uint64, _a1 bool, _a2 error) *ClaimSyncer_GetFirstProcessedBlock_Call
- func (_c *ClaimSyncer_GetFirstProcessedBlock_Call) Run(run func(ctx context.Context)) *ClaimSyncer_GetFirstProcessedBlock_Call
- func (_c *ClaimSyncer_GetFirstProcessedBlock_Call) RunAndReturn(run func(context.Context) (uint64, bool, error)) *ClaimSyncer_GetFirstProcessedBlock_Call
- type ClaimSyncer_GetLastProcessedBlock_Call
- func (_c *ClaimSyncer_GetLastProcessedBlock_Call) Return(_a0 uint64, _a1 bool, _a2 error) *ClaimSyncer_GetLastProcessedBlock_Call
- func (_c *ClaimSyncer_GetLastProcessedBlock_Call) Run(run func(ctx context.Context)) *ClaimSyncer_GetLastProcessedBlock_Call
- func (_c *ClaimSyncer_GetLastProcessedBlock_Call) RunAndReturn(run func(context.Context) (uint64, bool, error)) *ClaimSyncer_GetLastProcessedBlock_Call
- type ClaimSyncer_SetNextRequiredBlock_Call
- func (_c *ClaimSyncer_SetNextRequiredBlock_Call) Return(_a0 error) *ClaimSyncer_SetNextRequiredBlock_Call
- func (_c *ClaimSyncer_SetNextRequiredBlock_Call) Run(run func(ctx context.Context, blockNum uint64)) *ClaimSyncer_SetNextRequiredBlock_Call
- func (_c *ClaimSyncer_SetNextRequiredBlock_Call) RunAndReturn(run func(context.Context, uint64) error) *ClaimSyncer_SetNextRequiredBlock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimSyncer ¶
ClaimSyncer is an autogenerated mock type for the ClaimSyncer type
func NewClaimSyncer ¶
func NewClaimSyncer(t interface {
mock.TestingT
Cleanup(func())
}) *ClaimSyncer
NewClaimSyncer creates a new instance of ClaimSyncer. 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 (*ClaimSyncer) EXPECT ¶
func (_m *ClaimSyncer) EXPECT() *ClaimSyncer_Expecter
func (*ClaimSyncer) GetClaims ¶
func (_m *ClaimSyncer) GetClaims(ctx context.Context, fromBlock uint64, toBlock uint64) ([]types.Claim, error)
GetClaims provides a mock function with given fields: ctx, fromBlock, toBlock
func (*ClaimSyncer) GetClaimsByGlobalIndex ¶
func (_m *ClaimSyncer) GetClaimsByGlobalIndex(ctx context.Context, globalIndex *big.Int) ([]types.Claim, error)
GetClaimsByGlobalIndex provides a mock function with given fields: ctx, globalIndex
func (*ClaimSyncer) GetFirstProcessedBlock ¶
GetFirstProcessedBlock provides a mock function with given fields: ctx
func (*ClaimSyncer) GetLastProcessedBlock ¶
GetLastProcessedBlock provides a mock function with given fields: ctx
func (*ClaimSyncer) SetNextRequiredBlock ¶
func (_m *ClaimSyncer) SetNextRequiredBlock(ctx context.Context, blockNum uint64) error
SetNextRequiredBlock provides a mock function with given fields: ctx, blockNum
type ClaimSyncer_Expecter ¶
type ClaimSyncer_Expecter struct {
// contains filtered or unexported fields
}
func (*ClaimSyncer_Expecter) GetClaims ¶
func (_e *ClaimSyncer_Expecter) GetClaims(ctx interface{}, fromBlock interface{}, toBlock interface{}) *ClaimSyncer_GetClaims_Call
GetClaims is a helper method to define mock.On call
- ctx context.Context
- fromBlock uint64
- toBlock uint64
func (*ClaimSyncer_Expecter) GetClaimsByGlobalIndex ¶
func (_e *ClaimSyncer_Expecter) GetClaimsByGlobalIndex(ctx interface{}, globalIndex interface{}) *ClaimSyncer_GetClaimsByGlobalIndex_Call
GetClaimsByGlobalIndex is a helper method to define mock.On call
- ctx context.Context
- globalIndex *big.Int
func (*ClaimSyncer_Expecter) GetFirstProcessedBlock ¶
func (_e *ClaimSyncer_Expecter) GetFirstProcessedBlock(ctx interface{}) *ClaimSyncer_GetFirstProcessedBlock_Call
GetFirstProcessedBlock is a helper method to define mock.On call
- ctx context.Context
func (*ClaimSyncer_Expecter) GetLastProcessedBlock ¶
func (_e *ClaimSyncer_Expecter) GetLastProcessedBlock(ctx interface{}) *ClaimSyncer_GetLastProcessedBlock_Call
GetLastProcessedBlock is a helper method to define mock.On call
- ctx context.Context
func (*ClaimSyncer_Expecter) SetNextRequiredBlock ¶
func (_e *ClaimSyncer_Expecter) SetNextRequiredBlock(ctx interface{}, blockNum interface{}) *ClaimSyncer_SetNextRequiredBlock_Call
SetNextRequiredBlock is a helper method to define mock.On call
- ctx context.Context
- blockNum uint64
type ClaimSyncer_GetClaimsByGlobalIndex_Call ¶
ClaimSyncer_GetClaimsByGlobalIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClaimsByGlobalIndex'
func (*ClaimSyncer_GetClaimsByGlobalIndex_Call) Return ¶
func (_c *ClaimSyncer_GetClaimsByGlobalIndex_Call) Return(_a0 []types.Claim, _a1 error) *ClaimSyncer_GetClaimsByGlobalIndex_Call
func (*ClaimSyncer_GetClaimsByGlobalIndex_Call) Run ¶
func (_c *ClaimSyncer_GetClaimsByGlobalIndex_Call) Run(run func(ctx context.Context, globalIndex *big.Int)) *ClaimSyncer_GetClaimsByGlobalIndex_Call
func (*ClaimSyncer_GetClaimsByGlobalIndex_Call) RunAndReturn ¶
func (_c *ClaimSyncer_GetClaimsByGlobalIndex_Call) RunAndReturn(run func(context.Context, *big.Int) ([]types.Claim, error)) *ClaimSyncer_GetClaimsByGlobalIndex_Call
type ClaimSyncer_GetClaims_Call ¶
ClaimSyncer_GetClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClaims'
func (*ClaimSyncer_GetClaims_Call) Return ¶
func (_c *ClaimSyncer_GetClaims_Call) Return(_a0 []types.Claim, _a1 error) *ClaimSyncer_GetClaims_Call
func (*ClaimSyncer_GetClaims_Call) Run ¶
func (_c *ClaimSyncer_GetClaims_Call) Run(run func(ctx context.Context, fromBlock uint64, toBlock uint64)) *ClaimSyncer_GetClaims_Call
func (*ClaimSyncer_GetClaims_Call) RunAndReturn ¶
func (_c *ClaimSyncer_GetClaims_Call) RunAndReturn(run func(context.Context, uint64, uint64) ([]types.Claim, error)) *ClaimSyncer_GetClaims_Call
type ClaimSyncer_GetFirstProcessedBlock_Call ¶
ClaimSyncer_GetFirstProcessedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFirstProcessedBlock'
func (*ClaimSyncer_GetFirstProcessedBlock_Call) Return ¶
func (_c *ClaimSyncer_GetFirstProcessedBlock_Call) Return(_a0 uint64, _a1 bool, _a2 error) *ClaimSyncer_GetFirstProcessedBlock_Call
func (*ClaimSyncer_GetFirstProcessedBlock_Call) Run ¶
func (_c *ClaimSyncer_GetFirstProcessedBlock_Call) Run(run func(ctx context.Context)) *ClaimSyncer_GetFirstProcessedBlock_Call
func (*ClaimSyncer_GetFirstProcessedBlock_Call) RunAndReturn ¶
func (_c *ClaimSyncer_GetFirstProcessedBlock_Call) RunAndReturn(run func(context.Context) (uint64, bool, error)) *ClaimSyncer_GetFirstProcessedBlock_Call
type ClaimSyncer_GetLastProcessedBlock_Call ¶
ClaimSyncer_GetLastProcessedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastProcessedBlock'
func (*ClaimSyncer_GetLastProcessedBlock_Call) Return ¶
func (_c *ClaimSyncer_GetLastProcessedBlock_Call) Return(_a0 uint64, _a1 bool, _a2 error) *ClaimSyncer_GetLastProcessedBlock_Call
func (*ClaimSyncer_GetLastProcessedBlock_Call) Run ¶
func (_c *ClaimSyncer_GetLastProcessedBlock_Call) Run(run func(ctx context.Context)) *ClaimSyncer_GetLastProcessedBlock_Call
func (*ClaimSyncer_GetLastProcessedBlock_Call) RunAndReturn ¶
func (_c *ClaimSyncer_GetLastProcessedBlock_Call) RunAndReturn(run func(context.Context) (uint64, bool, error)) *ClaimSyncer_GetLastProcessedBlock_Call
type ClaimSyncer_SetNextRequiredBlock_Call ¶
ClaimSyncer_SetNextRequiredBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetNextRequiredBlock'
func (*ClaimSyncer_SetNextRequiredBlock_Call) Return ¶
func (_c *ClaimSyncer_SetNextRequiredBlock_Call) Return(_a0 error) *ClaimSyncer_SetNextRequiredBlock_Call
func (*ClaimSyncer_SetNextRequiredBlock_Call) Run ¶
func (_c *ClaimSyncer_SetNextRequiredBlock_Call) Run(run func(ctx context.Context, blockNum uint64)) *ClaimSyncer_SetNextRequiredBlock_Call
func (*ClaimSyncer_SetNextRequiredBlock_Call) RunAndReturn ¶
func (_c *ClaimSyncer_SetNextRequiredBlock_Call) RunAndReturn(run func(context.Context, uint64) error) *ClaimSyncer_SetNextRequiredBlock_Call