Skip to content

Commit

Permalink
godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Jan 23, 2025
1 parent 45aa3a7 commit 0c1902d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions da/celestia/client/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import (

// DAClient defines very generic interface for interaction with Data Availability layers.
type DAClient interface {
// MaxBlobSize returns the max blob size
MaxBlobSize(ctx context.Context) (uint64, error)

// Get returns Blob for each given ID, or an error.
//
// Error should be returned if ID is not formatted properly, there is no Blob for given ID or any other client-level
Expand Down Expand Up @@ -42,9 +39,14 @@ type DAClient interface {
// Validate validates Commitments against the corresponding Proofs. This should be possible without retrieving the Blobs.
Validate(ctx context.Context, ids []ID, proofs []Proof, namespace Namespace) ([]bool, error)

// GetByHeight retrieves celestia extended header by height
GetByHeight(ctx context.Context, height uint64) (*ExtendedHeader, error)

// Balance returns the celestia light client account balance
Balance(context.Context) (*Balance, error)

// MaxBlobSize returns the max blob size allowed in celestia
MaxBlobSize(ctx context.Context) (uint64, error)
}

// Namespace is an optional parameter used to set the location a blob should be
Expand Down

0 comments on commit 0c1902d

Please sign in to comment.