Documentation ¶
Index ¶
- type Config
- type DataAvailabilityLayerClient
- func (c *DataAvailabilityLayerClient) CheckBatchAvailability(dataLayerHeight uint64) da.ResultCheckBatch
- func (c *DataAvailabilityLayerClient) GetClientType() da.Client
- func (c *DataAvailabilityLayerClient) Init(config []byte, kvStore store.KVStore, logger log.Logger) error
- func (c *DataAvailabilityLayerClient) RetrieveBatches(dataLayerHeight uint64) da.ResultRetrieveBatch
- func (c *DataAvailabilityLayerClient) Start() error
- func (c *DataAvailabilityLayerClient) Stop() error
- func (c *DataAvailabilityLayerClient) SubmitBatch(batch *types.Batch) da.ResultSubmitBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BaseURL string `json:"base_url"` Timeout time.Duration `json:"timeout"` Fee int64 `json:"fee"` GasLimit uint64 `json:"gas_limit"` NamespaceID [8]byte `json:"namespace_id"` }
Config stores Celestia DALC configuration parameters.
type DataAvailabilityLayerClient ¶
type DataAvailabilityLayerClient struct {
// contains filtered or unexported fields
}
DataAvailabilityLayerClient use celestia-node public API.
func (*DataAvailabilityLayerClient) CheckBatchAvailability ¶
func (c *DataAvailabilityLayerClient) CheckBatchAvailability(dataLayerHeight uint64) da.ResultCheckBatch
CheckBatchAvailability queries DA layer to check data availability of block at given height.
func (*DataAvailabilityLayerClient) GetClientType ¶
func (c *DataAvailabilityLayerClient) GetClientType() da.Client
GetClientType returns client type.
func (*DataAvailabilityLayerClient) Init ¶
func (c *DataAvailabilityLayerClient) Init(config []byte, kvStore store.KVStore, logger log.Logger) error
Init initializes DataAvailabilityLayerClient instance.
func (*DataAvailabilityLayerClient) RetrieveBatches ¶
func (c *DataAvailabilityLayerClient) RetrieveBatches(dataLayerHeight uint64) da.ResultRetrieveBatch
RetrieveBatches gets a batch of blocks from DA layer.
func (*DataAvailabilityLayerClient) Start ¶
func (c *DataAvailabilityLayerClient) Start() error
Start prepares DataAvailabilityLayerClient to work.
func (*DataAvailabilityLayerClient) Stop ¶
func (c *DataAvailabilityLayerClient) Stop() error
Stop stops DataAvailabilityLayerClient.
func (*DataAvailabilityLayerClient) SubmitBatch ¶
func (c *DataAvailabilityLayerClient) SubmitBatch(batch *types.Batch) da.ResultSubmitBatch
SubmitBatch submits a block to DA layer.
Click to show internal directories.
Click to hide internal directories.