mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.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 HubClient

type HubClient struct {
	mock.Mock
}

HubClient is an autogenerated mock type for the HubClient type

func NewHubClient

func NewHubClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HubClient

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

func (_m *HubClient) GetSequencers(rollappID string) ([]*types.Sequencer, error)

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

func (*HubClient) Start

func (_m *HubClient) Start() error

Start provides a mock function with given fields:

func (*HubClient) Stop

func (_m *HubClient) Stop() error

Stop provides a mock function with given fields:

type LayerI added in v1.1.0

type LayerI struct {
	mock.Mock
}

LayerI is an autogenerated mock type for the LayerI type

func NewLayerI added in v1.1.0

func NewLayerI(t interface {
	mock.TestingT
	Cleanup(func())
}) *LayerI

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

func (_m *LayerI) GetProposer() *types.Sequencer

GetProposer provides a mock function with given fields:

func (*LayerI) GetSequencersList added in v1.1.0

func (_m *LayerI) GetSequencersList() []*types.Sequencer

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) Start added in v1.1.0

func (_m *LayerI) Start() error

Start provides a mock function with given fields:

func (*LayerI) Stop added in v1.1.0

func (_m *LayerI) Stop() error

Stop provides a mock function with given fields:

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

type RollAppQueryClient struct {
	mock.Mock
}

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

LatestStateIndex provides a mock function with given fields: ctx, in, opts

func (*RollAppQueryClient) Params

Params provides a mock function with given fields: ctx, in, opts

func (*RollAppQueryClient) Rollapp

Rollapp provides a mock function with given fields: ctx, in, opts

func (*RollAppQueryClient) RollappAll

RollappAll provides a mock function with given fields: ctx, in, opts

func (*RollAppQueryClient) RollappByEIP155 added in v1.1.0

RollappByEIP155 provides a mock function with given fields: ctx, in, opts

func (*RollAppQueryClient) StateInfo

StateInfo provides a mock function with given fields: ctx, in, opts

func (*RollAppQueryClient) StateInfoAll

StateInfoAll provides a mock function with given fields: ctx, in, opts

type SequencerQueryClient

type SequencerQueryClient struct {
	mock.Mock
}

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

Params provides a mock function with given fields: ctx, in, opts

func (*SequencerQueryClient) Sequencer

Sequencer provides a mock function with given fields: ctx, in, opts

func (*SequencerQueryClient) Sequencers added in v1.1.0

Sequencers provides a mock function with given fields: ctx, in, opts

func (*SequencerQueryClient) SequencersByRollapp

SequencersByRollapp provides a mock function with given fields: ctx, in, opts

func (*SequencerQueryClient) SequencersByRollappByStatus added in v1.1.0

SequencersByRollappByStatus provides a mock function with given fields: ctx, in, opts

Jump to

Keyboard shortcuts

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