Documentation ¶
Index ¶
- type DataAvailabilityLayerClient
- func (m *DataAvailabilityLayerClient) CheckBatchAvailability(dataLayerHeight uint64) da.ResultCheckBatch
- func (m *DataAvailabilityLayerClient) GetClientType() da.Client
- func (m *DataAvailabilityLayerClient) Init(config []byte, dalcKV store.KVStore, logger log.Logger) error
- func (m *DataAvailabilityLayerClient) RetrieveBatches(dataLayerHeight uint64) da.ResultRetrieveBatch
- func (m *DataAvailabilityLayerClient) Start() error
- func (m *DataAvailabilityLayerClient) Stop() error
- func (m *DataAvailabilityLayerClient) SubmitBatch(batch *types.Batch) da.ResultSubmitBatch
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 ¶
func (m *DataAvailabilityLayerClient) Start() error
Start implements DataAvailabilityLayerClient interface.
func (*DataAvailabilityLayerClient) Stop ¶
func (m *DataAvailabilityLayerClient) Stop() error
Stop implements DataAvailabilityLayerClient interface.
func (*DataAvailabilityLayerClient) SubmitBatch ¶
func (m *DataAvailabilityLayerClient) SubmitBatch(batch *types.Batch) da.ResultSubmitBatch
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.