Skip to content

Commit

Permalink
Update RangeField
Browse files Browse the repository at this point in the history
Allow repeated range fields per term (for i.e. 0 < x < 100), also use
int32 in RangeField instead of str, as str is never needed.
  • Loading branch information
jeffreypicard committed Dec 3, 2021
1 parent 67b3dce commit d469997
Show file tree
Hide file tree
Showing 7 changed files with 1,962 additions and 225 deletions.
35 changes: 17 additions & 18 deletions protobuf/definitions/hub.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ message RangeField {
GT = 4;
}
Op op = 1;
repeated string value = 2;
repeated int32 value = 2;
}

message SearchRequest {
Expand All @@ -69,35 +69,34 @@ message SearchRequest {
string last_take_over_height = 8;
string claim_name = 9;
string normalized_name = 10;
RangeField tx_position = 11;
RangeField amount = 12;
RangeField timestamp = 13;
RangeField creation_timestamp = 14;
RangeField height = 15;
RangeField creation_height = 16;
RangeField activation_height = 17;
RangeField expiration_height = 18;
RangeField release_time = 19;
repeated RangeField tx_position = 11;
repeated RangeField amount = 12;
repeated RangeField timestamp = 13;
repeated RangeField creation_timestamp = 14;
repeated RangeField height = 15;
repeated RangeField creation_height = 16;
repeated RangeField activation_height = 17;
repeated RangeField expiration_height = 18;
repeated RangeField release_time = 19;
string short_url = 20;
string canonical_url = 21;
string title = 22;
string author = 23;
string description = 24;
repeated string claim_type = 25;
RangeField repost_count = 26;
repeated RangeField repost_count = 26;
repeated string stream_type = 27;
repeated string media_type = 28;
RangeField fee_amount = 29;
repeated RangeField fee_amount = 29;
string fee_currency = 30;
RangeField duration = 31;
repeated RangeField duration = 31;
string reposted_claim_id = 32;
RangeField censor_type = 33;
repeated RangeField censor_type = 33;
string claims_in_channel = 34;
RangeField channel_join = 35;
BoolValue is_signature_valid = 36;
RangeField effective_amount = 37;
RangeField support_amount = 38;
RangeField trending_score = 39;
repeated RangeField effective_amount = 37;
repeated RangeField support_amount = 38;
repeated RangeField trending_score = 39;
string tx_id = 43;
UInt32Value tx_nout = 44;
string signature = 45;
Expand Down
324 changes: 156 additions & 168 deletions protobuf/go/hub.pb.go

Large diffs are not rendered by default.

Loading

0 comments on commit d469997

Please sign in to comment.