2019-03-31 16:05:37 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
2019-04-28 01:01:44 +02:00
|
|
|
message Outputs {
|
2019-03-31 16:05:37 +02:00
|
|
|
repeated Output txos = 1;
|
2019-06-23 04:31:54 +02:00
|
|
|
repeated Output extra_txos = 2;
|
|
|
|
uint32 total = 3;
|
|
|
|
uint32 offset = 4;
|
2020-01-19 02:53:54 +01:00
|
|
|
repeated Blocked blocked = 5;
|
|
|
|
uint32 blocked_total = 6;
|
2019-03-31 16:05:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message Output {
|
|
|
|
bytes tx_hash = 1;
|
|
|
|
uint32 nout = 2;
|
2019-04-29 19:39:55 +02:00
|
|
|
uint32 height = 3;
|
2019-04-10 15:05:58 +02:00
|
|
|
oneof meta {
|
2019-04-29 19:39:55 +02:00
|
|
|
ClaimMeta claim = 7;
|
|
|
|
Error error = 15;
|
2019-04-10 15:05:58 +02:00
|
|
|
}
|
|
|
|
}
|
2019-03-31 16:05:37 +02:00
|
|
|
|
2019-04-10 15:05:58 +02:00
|
|
|
message ClaimMeta {
|
|
|
|
Output channel = 1;
|
2019-11-18 21:13:59 +01:00
|
|
|
Output repost = 2;
|
|
|
|
string short_url = 3;
|
|
|
|
string canonical_url = 4;
|
|
|
|
bool is_controlling = 5;
|
|
|
|
uint32 take_over_height = 6;
|
|
|
|
uint32 creation_height = 7;
|
|
|
|
uint32 activation_height = 8;
|
|
|
|
uint32 expiration_height = 9;
|
|
|
|
uint32 claims_in_channel = 10;
|
|
|
|
uint32 reposted = 11;
|
2019-06-23 04:31:54 +02:00
|
|
|
|
2019-11-15 21:28:56 +01:00
|
|
|
uint64 effective_amount = 20;
|
|
|
|
uint64 support_amount = 21;
|
|
|
|
uint32 trending_group = 22;
|
|
|
|
float trending_mixed = 23;
|
|
|
|
float trending_local = 24;
|
|
|
|
float trending_global = 25;
|
2019-03-31 16:05:37 +02:00
|
|
|
}
|
|
|
|
|
2019-04-29 19:39:55 +02:00
|
|
|
message Error {
|
|
|
|
enum Code {
|
|
|
|
UNKNOWN_CODE = 0;
|
|
|
|
NOT_FOUND = 1;
|
|
|
|
INVALID = 2;
|
2020-01-19 02:53:54 +01:00
|
|
|
BLOCKED = 3;
|
2019-04-29 19:39:55 +02:00
|
|
|
}
|
|
|
|
Code code = 1;
|
|
|
|
string text = 2;
|
2020-01-19 02:53:54 +01:00
|
|
|
Blocked blocked = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Blocked {
|
|
|
|
uint32 count = 1;
|
2020-06-05 18:40:19 +02:00
|
|
|
Output channel = 2;
|
2019-03-31 16:05:37 +02:00
|
|
|
}
|