mirror of
https://github.com/logos-messaging/waku-proto.git
synced 2026-01-10 10:03:08 +00:00
feat(waku2-filter): add waku v2 filter protocol v2beta1 wire format
This commit is contained in:
parent
d9f98dabce
commit
d468d68899
27
waku/filter/v2beta1/filter.proto
Normal file
27
waku/filter/v2beta1/filter.proto
Normal file
@ -0,0 +1,27 @@
|
||||
syntax = "proto3";
|
||||
|
||||
// 12/WAKU2-FILTER rfc: https://rfc.vac.dev/spec/12/
|
||||
// Protocol identifier: /vac/waku/filter/2.0.0-beta1
|
||||
package waku.filter.v2beta1;
|
||||
|
||||
import "waku/message/v1/message.proto";
|
||||
|
||||
message FilterRequest {
|
||||
message ContentFilter {
|
||||
string content_topic = 1;
|
||||
}
|
||||
|
||||
bool subscribe = 1;
|
||||
string topic = 2;
|
||||
repeated ContentFilter content_filters = 3;
|
||||
}
|
||||
|
||||
message MessagePush {
|
||||
repeated waku.message.v1.WakuMessage messages = 1;
|
||||
}
|
||||
|
||||
message FilterRpc {
|
||||
string request_id = 1;
|
||||
optional FilterRequest request = 2;
|
||||
optional MessagePush push = 3;
|
||||
}
|
||||
@ -1,11 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "waku/message/v1/message.proto";
|
||||
|
||||
// 13/WAKU2-STORE rfc: https://rfc.vac.dev/spec/13/
|
||||
// Protocol identifier: /vac/waku/store/2.0.0-beta4
|
||||
package waku.store.v2beta4;
|
||||
|
||||
import "waku/message/v1/message.proto";
|
||||
|
||||
message Index {
|
||||
bytes digest = 1;
|
||||
sint64 receiver_time = 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user