newda

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewDA

type NewDA struct {
	DA newda.DA
	// contains filtered or unexported fields
}

NewDA is a new DA implementation.

func (*NewDA) Init

func (n *NewDA) Init(namespaceID types.NamespaceID, config []byte, kvStore ds.Datastore, logger log.Logger) error

Init is called once to allow DA client to read configuration and initialize resources.

func (*NewDA) RetrieveBlocks

func (n *NewDA) RetrieveBlocks(ctx context.Context, dataLayerHeight uint64) da.ResultRetrieveBlocks

RetrieveBlocks retrieves blocks from DA.

func (*NewDA) Start

func (n *NewDA) Start() error

Start creates connection to gRPC server and instantiates gRPC client.

func (*NewDA) Stop

func (n *NewDA) Stop() error

Stop closes connection to gRPC server.

func (*NewDA) SubmitBlocks

func (n *NewDA) SubmitBlocks(ctx context.Context, blocks []*types.Block) da.ResultSubmitBlocks

SubmitBlocks submits blocks to DA.

Jump to

Keyboard shortcuts

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