Documentation ¶
Index ¶
- type HubClient
- func (c *HubClient) GetBatchAtIndex(rollappID string, index uint64) (*settlement.ResultRetrieveBatch, error)
- func (c *HubClient) GetLatestBatch(rollappID string) (*settlement.ResultRetrieveBatch, error)
- func (c *HubClient) GetSequencers(rollappID string) ([]*types.Sequencer, error)
- func (c *HubClient) PostBatch(batch *types.Batch, daClient da.Client, daResult *da.ResultSubmitBatch)
- func (c *HubClient) Start() error
- func (c *HubClient) Stop() error
- type LayerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HubClient ¶
type HubClient struct { ProposerPubKey string // contains filtered or unexported fields }
HubClient implements The HubClient interface
func (*HubClient) GetBatchAtIndex ¶
func (c *HubClient) GetBatchAtIndex(rollappID string, index uint64) (*settlement.ResultRetrieveBatch, error)
GetBatchAtIndex returns the batch at the given index
func (*HubClient) GetLatestBatch ¶
func (c *HubClient) GetLatestBatch(rollappID string) (*settlement.ResultRetrieveBatch, error)
GetLatestBatch returns the latest batch from the kv store
func (*HubClient) GetSequencers ¶
GetSequencers returns a list of sequencers. Currently only returns a single sequencer
type LayerClient ¶
type LayerClient struct {
*settlement.BaseLayerClient
}
LayerClient is an extension of the base settlement layer client for usage in tests and local development.
func (*LayerClient) Init ¶
func (m *LayerClient) Init(config settlement.Config, pubsub *pubsub.Server, logger log.Logger, options ...settlement.Option) error
Init initializes the mock layer client.
Click to show internal directories.
Click to hide internal directories.