2021-03-18 16:40:47 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package protocol;
|
|
|
|
|
|
|
|
import "waku_message.proto";
|
|
|
|
|
|
|
|
message Index {
|
|
|
|
bytes digest = 1;
|
|
|
|
double receivedTime = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PagingInfo {
|
|
|
|
int64 pageSize = 1;
|
|
|
|
Index cursor = 2;
|
|
|
|
enum Direction {
|
|
|
|
FORWARD = 0;
|
|
|
|
BACKWARD = 1;
|
|
|
|
}
|
|
|
|
Direction direction = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message HistoryQuery {
|
2021-04-06 23:11:53 +00:00
|
|
|
repeated uint32 topics = 1;
|
|
|
|
optional PagingInfo pagingInfo = 2; // used for pagination
|
2021-03-18 16:40:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message HistoryResponse {
|
2021-04-06 23:11:53 +00:00
|
|
|
repeated WakuMessage messages = 1;
|
|
|
|
optional PagingInfo pagingInfo = 2; // used for pagination
|
2021-03-18 16:40:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message HistoryRPC {
|
|
|
|
string request_id = 1;
|
|
|
|
HistoryQuery query = 2;
|
|
|
|
HistoryResponse response = 3;
|
|
|
|
}
|