Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix store.proto and add rln.proto #19

Merged
merged 2 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions waku/message/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ message WakuMessage {
optional sint64 timestamp = 10;
optional bytes meta = 11;
optional bool ephemeral = 31;
optional bytes rate_limit_proof = 21;
}
14 changes: 14 additions & 0 deletions waku/rln/v1/rln.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
syntax = "proto3";

// rfc: https://rfc.vac.dev/spec/17/
package waku.rln.v1;

message RateLimitProof {
bytes proof = 1;
bytes merkle_root = 2;
bytes epoch = 3;
bytes share_x = 4;
bytes share_y = 5;
bytes nullifier = 6;
bytes rln_identifier = 7;
}
16 changes: 8 additions & 8 deletions waku/store/v2beta4/store.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@
string pubsub_topic = 4;
}

message PagingInfo {

Check failure on line 16 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Previously present oneof "_cursor" on message "PagingInfo" was deleted.

Check failure on line 16 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Previously present oneof "_direction" on message "PagingInfo" was deleted.

Check failure on line 16 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Previously present oneof "_page_size" on message "PagingInfo" was deleted.
optional uint64 page_size = 1;
optional Index cursor = 2;
uint64 page_size = 1;

Check failure on line 17 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Field "1" on message "PagingInfo" moved from inside to outside a oneof.
Index cursor = 2;

Check failure on line 18 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Field "2" on message "PagingInfo" moved from inside to outside a oneof.
enum Direction {
BACKWARD = 0;
FORWARD = 1;
}
optional Direction direction = 3;
Direction direction = 3;

Check failure on line 23 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Field "3" on message "PagingInfo" moved from inside to outside a oneof.
}

message ContentFilter {
string content_topic = 1;
}

message HistoryQuery {

Check failure on line 30 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Previously present oneof "_paging_info" on message "HistoryQuery" was deleted.

Check failure on line 30 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Previously present oneof "_pubsub_topic" on message "HistoryQuery" was deleted.
// The first field is reserved for future use
optional string pubsub_topic = 2;
string pubsub_topic = 2;

Check failure on line 32 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Field "2" on message "HistoryQuery" moved from inside to outside a oneof.
repeated ContentFilter content_filters = 3;
optional PagingInfo paging_info = 4;
PagingInfo paging_info = 4;

Check failure on line 34 in waku/store/v2beta4/store.proto

View workflow job for this annotation

GitHub Actions / build

Field "4" on message "HistoryQuery" moved from inside to outside a oneof.
optional sint64 start_time = 5;
optional sint64 end_time = 6;
}

message HistoryResponse {
// The first field is reserved for future use
repeated waku.message.v1.WakuMessage messages = 2;
optional PagingInfo paging_info = 3;
PagingInfo paging_info = 3;
enum Error {
NONE = 0;
INVALID_CURSOR = 1;
Expand All @@ -49,6 +49,6 @@

message HistoryRPC {
string request_id = 1;
optional HistoryQuery query = 2;
optional HistoryResponse response = 3;
HistoryQuery query = 2;
HistoryResponse response = 3;
}
Loading