-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mikhail/celestia-mainnet-config
- Loading branch information
Showing
26 changed files
with
280 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
proto/movementlabs/protocol_units/da/light_node/v1beta2.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
syntax = "proto3"; | ||
package movementlabs.protocol_units.da.light_node.v1beta2; | ||
|
||
|
||
// Request and response messages | ||
message Blob { | ||
bytes blob_id = 1; | ||
bytes data = 2; | ||
uint64 height = 3; | ||
bytes signature = 4; | ||
uint64 timestamp = 5; | ||
bytes signer = 6; | ||
} | ||
|
||
message BlobResponse { | ||
oneof blob_type { | ||
Blob passed_through_blob = 1; | ||
Blob sequenced_blob_intent = 2; | ||
Blob sequenced_blob_block = 3; | ||
bool heartbeat = 4; | ||
} | ||
} | ||
|
||
message BlobWrite { | ||
bytes data = 1; | ||
} | ||
|
||
// StreamReadAtHeight | ||
message StreamReadFromHeightRequest { | ||
uint64 height = 1; | ||
} | ||
|
||
message StreamReadFromHeightResponse { | ||
BlobResponse blob = 1; | ||
} | ||
|
||
// StreamReadLatest | ||
message StreamReadLatestRequest { | ||
|
||
} | ||
|
||
message StreamReadLatestResponse { | ||
BlobResponse blob = 1; | ||
} | ||
|
||
// StreamWriteBlob | ||
message StreamWriteBlobRequest { | ||
BlobWrite blob = 1; | ||
} | ||
|
||
message StreamWriteBlobResponse { | ||
BlobResponse blob = 1; | ||
} | ||
|
||
// ReadAtHeight | ||
message ReadAtHeightRequest { | ||
uint64 height = 1; | ||
} | ||
|
||
message ReadAtHeightResponse { | ||
repeated BlobResponse blobs = 1; | ||
} | ||
|
||
// BatchRead | ||
message BatchReadRequest { | ||
repeated uint64 heights = 1; | ||
} | ||
|
||
message BatchReadResponse { | ||
repeated ReadAtHeightResponse responses = 1; | ||
} | ||
|
||
message BatchWriteRequest { | ||
repeated BlobWrite blobs = 1; | ||
} | ||
|
||
message BatchWriteResponse { | ||
repeated BlobResponse blobs = 1; | ||
} | ||
|
||
|
||
|
||
// LightNode service definition | ||
service LightNodeService { | ||
// Stream blobs from a specified height or from the latest height. | ||
rpc StreamReadFromHeight (StreamReadFromHeightRequest) returns (stream StreamReadFromHeightResponse); | ||
rpc StreamReadLatest (StreamReadLatestRequest) returns (stream StreamReadLatestResponse); | ||
|
||
// Stream blobs out, either individually or in batches. | ||
rpc StreamWriteBlob (stream StreamWriteBlobRequest) returns (stream StreamWriteBlobResponse); | ||
|
||
// Read blobs at a specified height. | ||
rpc ReadAtHeight (ReadAtHeightRequest) returns (ReadAtHeightResponse); | ||
|
||
// Batch read and write operations for efficiency. | ||
rpc BatchRead (BatchReadRequest) returns (BatchReadResponse); | ||
rpc BatchWrite (BatchWriteRequest) returns (BatchWriteResponse); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.