Documentation ¶
Index ¶
- type HubClient
- func (_m *HubClient) GetBatchAtIndex(rollappID string, index uint64) (*settlement.ResultRetrieveBatch, error)
- func (_m *HubClient) GetLatestBatch(rollappID string) (*settlement.ResultRetrieveBatch, error)
- func (_m *HubClient) GetSequencers(rollappID string) ([]*types.Sequencer, error)
- func (_m *HubClient) PostBatch(batch *types.Batch, daClient da.Client, daResult *da.ResultSubmitBatch) error
- func (_m *HubClient) Start() error
- func (_m *HubClient) Stop() error
- type LayerI
- func (_m *LayerI) GetProposer() *types.Sequencer
- func (_m *LayerI) GetSequencersList() []*types.Sequencer
- func (_m *LayerI) Init(config settlement.Config, _a1 *pubsub.Server, logger log.Logger, ...) error
- func (_m *LayerI) RetrieveBatch(stateIndex ...uint64) (*settlement.ResultRetrieveBatch, error)
- func (_m *LayerI) Start() error
- func (_m *LayerI) Stop() error
- func (_m *LayerI) SubmitBatch(batch *types.Batch, daClient da.Client, daResult *da.ResultSubmitBatch) error
- type RollAppQueryClient
- func (_m *RollAppQueryClient) LatestStateIndex(ctx context.Context, in *types.QueryGetLatestStateIndexRequest, ...) (*types.QueryGetLatestStateIndexResponse, error)
- func (_m *RollAppQueryClient) Params(ctx context.Context, in *types.QueryParamsRequest, opts ...grpc.CallOption) (*types.QueryParamsResponse, error)
- func (_m *RollAppQueryClient) Rollapp(ctx context.Context, in *types.QueryGetRollappRequest, opts ...grpc.CallOption) (*types.QueryGetRollappResponse, error)
- func (_m *RollAppQueryClient) RollappAll(ctx context.Context, in *types.QueryAllRollappRequest, opts ...grpc.CallOption) (*types.QueryAllRollappResponse, error)
- func (_m *RollAppQueryClient) RollappByEIP155(ctx context.Context, in *types.QueryGetRollappByEIP155Request, ...) (*types.QueryGetRollappResponse, error)
- func (_m *RollAppQueryClient) StateInfo(ctx context.Context, in *types.QueryGetStateInfoRequest, ...) (*types.QueryGetStateInfoResponse, error)
- func (_m *RollAppQueryClient) StateInfoAll(ctx context.Context, in *types.QueryAllStateInfoRequest, ...) (*types.QueryAllStateInfoResponse, error)
- type SequencerQueryClient
- func (_m *SequencerQueryClient) Params(ctx context.Context, in *types.QueryParamsRequest, opts ...grpc.CallOption) (*types.QueryParamsResponse, error)
- func (_m *SequencerQueryClient) Sequencer(ctx context.Context, in *types.QueryGetSequencerRequest, ...) (*types.QueryGetSequencerResponse, error)
- func (_m *SequencerQueryClient) Sequencers(ctx context.Context, in *types.QuerySequencersRequest, opts ...grpc.CallOption) (*types.QuerySequencersResponse, error)
- func (_m *SequencerQueryClient) SequencersByRollapp(ctx context.Context, in *types.QueryGetSequencersByRollappRequest, ...) (*types.QueryGetSequencersByRollappResponse, error)
- func (_m *SequencerQueryClient) SequencersByRollappByStatus(ctx context.Context, in *types.QueryGetSequencersByRollappByStatusRequest, ...) (*types.QueryGetSequencersByRollappByStatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HubClient ¶
HubClient is an autogenerated mock type for the HubClient type
func NewHubClient ¶
NewHubClient creates a new instance of HubClient. 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 (*HubClient) GetBatchAtIndex ¶
func (_m *HubClient) GetBatchAtIndex(rollappID string, index uint64) (*settlement.ResultRetrieveBatch, error)
GetBatchAtIndex provides a mock function with given fields: rollappID, index
func (*HubClient) GetLatestBatch ¶
func (_m *HubClient) GetLatestBatch(rollappID string) (*settlement.ResultRetrieveBatch, error)
GetLatestBatch provides a mock function with given fields: rollappID
func (*HubClient) GetSequencers ¶
GetSequencers provides a mock function with given fields: rollappID
func (*HubClient) PostBatch ¶
func (_m *HubClient) PostBatch(batch *types.Batch, daClient da.Client, daResult *da.ResultSubmitBatch) error
PostBatch provides a mock function with given fields: batch, daClient, daResult
type LayerI ¶ added in v1.1.0
LayerI is an autogenerated mock type for the LayerI type
func NewLayerI ¶ added in v1.1.0
NewLayerI creates a new instance of LayerI. 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 (*LayerI) GetProposer ¶ added in v1.1.0
GetProposer provides a mock function with given fields:
func (*LayerI) GetSequencersList ¶ added in v1.1.0
GetSequencersList provides a mock function with given fields:
func (*LayerI) Init ¶ added in v1.1.0
func (_m *LayerI) Init(config settlement.Config, _a1 *pubsub.Server, logger log.Logger, options ...settlement.Option) error
Init provides a mock function with given fields: config, _a1, logger, options
func (*LayerI) RetrieveBatch ¶ added in v1.1.0
func (_m *LayerI) RetrieveBatch(stateIndex ...uint64) (*settlement.ResultRetrieveBatch, error)
RetrieveBatch provides a mock function with given fields: stateIndex
func (*LayerI) SubmitBatch ¶ added in v1.1.0
func (_m *LayerI) SubmitBatch(batch *types.Batch, daClient da.Client, daResult *da.ResultSubmitBatch) error
SubmitBatch provides a mock function with given fields: batch, daClient, daResult
type RollAppQueryClient ¶
RollAppQueryClient is an autogenerated mock type for the QueryClient type
func NewRollAppQueryClient ¶
func NewRollAppQueryClient(t interface { mock.TestingT Cleanup(func()) }) *RollAppQueryClient
NewRollAppQueryClient creates a new instance of RollAppQueryClient. 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 (*RollAppQueryClient) LatestStateIndex ¶ added in v1.1.0
func (_m *RollAppQueryClient) LatestStateIndex(ctx context.Context, in *types.QueryGetLatestStateIndexRequest, opts ...grpc.CallOption) (*types.QueryGetLatestStateIndexResponse, error)
LatestStateIndex provides a mock function with given fields: ctx, in, opts
func (*RollAppQueryClient) Params ¶
func (_m *RollAppQueryClient) Params(ctx context.Context, in *types.QueryParamsRequest, opts ...grpc.CallOption) (*types.QueryParamsResponse, error)
Params provides a mock function with given fields: ctx, in, opts
func (*RollAppQueryClient) Rollapp ¶
func (_m *RollAppQueryClient) Rollapp(ctx context.Context, in *types.QueryGetRollappRequest, opts ...grpc.CallOption) (*types.QueryGetRollappResponse, error)
Rollapp provides a mock function with given fields: ctx, in, opts
func (*RollAppQueryClient) RollappAll ¶
func (_m *RollAppQueryClient) RollappAll(ctx context.Context, in *types.QueryAllRollappRequest, opts ...grpc.CallOption) (*types.QueryAllRollappResponse, error)
RollappAll provides a mock function with given fields: ctx, in, opts
func (*RollAppQueryClient) RollappByEIP155 ¶ added in v1.1.0
func (_m *RollAppQueryClient) RollappByEIP155(ctx context.Context, in *types.QueryGetRollappByEIP155Request, opts ...grpc.CallOption) (*types.QueryGetRollappResponse, error)
RollappByEIP155 provides a mock function with given fields: ctx, in, opts
func (*RollAppQueryClient) StateInfo ¶
func (_m *RollAppQueryClient) StateInfo(ctx context.Context, in *types.QueryGetStateInfoRequest, opts ...grpc.CallOption) (*types.QueryGetStateInfoResponse, error)
StateInfo provides a mock function with given fields: ctx, in, opts
func (*RollAppQueryClient) StateInfoAll ¶
func (_m *RollAppQueryClient) StateInfoAll(ctx context.Context, in *types.QueryAllStateInfoRequest, opts ...grpc.CallOption) (*types.QueryAllStateInfoResponse, error)
StateInfoAll provides a mock function with given fields: ctx, in, opts
type SequencerQueryClient ¶
SequencerQueryClient is an autogenerated mock type for the SequencerQueryClient type
func NewSequencerQueryClient ¶
func NewSequencerQueryClient(t interface { mock.TestingT Cleanup(func()) }) *SequencerQueryClient
NewSequencerQueryClient creates a new instance of SequencerQueryClient. 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 (*SequencerQueryClient) Params ¶
func (_m *SequencerQueryClient) Params(ctx context.Context, in *types.QueryParamsRequest, opts ...grpc.CallOption) (*types.QueryParamsResponse, error)
Params provides a mock function with given fields: ctx, in, opts
func (*SequencerQueryClient) Sequencer ¶
func (_m *SequencerQueryClient) Sequencer(ctx context.Context, in *types.QueryGetSequencerRequest, opts ...grpc.CallOption) (*types.QueryGetSequencerResponse, error)
Sequencer provides a mock function with given fields: ctx, in, opts
func (*SequencerQueryClient) Sequencers ¶ added in v1.1.0
func (_m *SequencerQueryClient) Sequencers(ctx context.Context, in *types.QuerySequencersRequest, opts ...grpc.CallOption) (*types.QuerySequencersResponse, error)
Sequencers provides a mock function with given fields: ctx, in, opts
func (*SequencerQueryClient) SequencersByRollapp ¶
func (_m *SequencerQueryClient) SequencersByRollapp(ctx context.Context, in *types.QueryGetSequencersByRollappRequest, opts ...grpc.CallOption) (*types.QueryGetSequencersByRollappResponse, error)
SequencersByRollapp provides a mock function with given fields: ctx, in, opts
func (*SequencerQueryClient) SequencersByRollappByStatus ¶ added in v1.1.0
func (_m *SequencerQueryClient) SequencersByRollappByStatus(ctx context.Context, in *types.QueryGetSequencersByRollappByStatusRequest, opts ...grpc.CallOption) (*types.QueryGetSequencersByRollappByStatusResponse, error)
SequencersByRollappByStatus provides a mock function with given fields: ctx, in, opts