grpc

package
v0.0.0-...-568787c Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubGrpcClient

type HubGrpcClient struct {
	ProposerPubKey string
	// contains filtered or unexported fields
}

HubClient implements The HubClient interface

func (*HubGrpcClient) GetBatchAtIndex

func (c *HubGrpcClient) GetBatchAtIndex(rollappID string, index uint64) (*settlement.ResultRetrieveBatch, error)

GetBatchAtIndex returns the batch at the given index

func (*HubGrpcClient) GetLatestBatch

func (c *HubGrpcClient) GetLatestBatch(rollappID string) (*settlement.ResultRetrieveBatch, error)

GetLatestBatch returns the latest batch from the kv store

func (*HubGrpcClient) GetSequencers

func (c *HubGrpcClient) GetSequencers(rollappID string) ([]*types.Sequencer, error)

GetSequencers returns a list of sequencers. Currently only returns a single sequencer

func (*HubGrpcClient) PostBatch

func (c *HubGrpcClient) PostBatch(batch *types.Batch, daClient da.Client, daResult *da.ResultSubmitBatch)

PostBatch saves the batch to the kv store

func (*HubGrpcClient) Start

func (c *HubGrpcClient) Start() error

Start starts the mock client

func (*HubGrpcClient) Stop

func (c *HubGrpcClient) Stop() error

Stop stops the mock client

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.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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