mock

package
v0.4.5-sdk Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 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 DataAvailabilityLayerClient

type DataAvailabilityLayerClient struct {
	// contains filtered or unexported fields
}

DataAvailabilityLayerClient is intended only for usage in tests. It does actually ensures DA - it stores data in-memory.

func (*DataAvailabilityLayerClient) CheckBatchAvailability

func (m *DataAvailabilityLayerClient) CheckBatchAvailability(dataLayerHeight uint64) da.ResultCheckBatch

CheckBatchAvailability queries DA layer to check data availability of block corresponding to given header.

func (*DataAvailabilityLayerClient) GetClientType

func (m *DataAvailabilityLayerClient) GetClientType() da.Client

GetClientType returns client type.

func (*DataAvailabilityLayerClient) Init

func (m *DataAvailabilityLayerClient) Init(config []byte, dalcKV store.KVStore, logger log.Logger) error

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

func (*DataAvailabilityLayerClient) RetrieveBatches

func (m *DataAvailabilityLayerClient) RetrieveBatches(dataLayerHeight uint64) da.ResultRetrieveBatch

RetrieveBatches returns block at given height from data availability layer.

func (*DataAvailabilityLayerClient) Start

Start implements DataAvailabilityLayerClient interface.

func (*DataAvailabilityLayerClient) Stop

Stop implements DataAvailabilityLayerClient interface.

func (*DataAvailabilityLayerClient) SubmitBatch

SubmitBatch submits the passed in batch to the DA layer. This should create a transaction which (potentially) triggers a state transition in the DA layer.

Jump to

Keyboard shortcuts

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