types/v2/proto/result.proto

43 lines
711 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package pb;
message Outputs {
repeated Output txos = 1;
uint32 total = 2;
uint32 offset = 3;
}
message Output {
bytes tx_hash = 1;
uint32 nout = 2;
uint32 height = 3;
2019-04-10 09:05:58 -04:00
oneof meta {
ClaimMeta claim = 7;
Error error = 15;
2019-04-10 09:05:58 -04:00
}
}
2019-04-10 09:05:58 -04:00
message ClaimMeta {
Output channel = 1;
bool is_controlling = 2;
uint32 activation_height = 3;
2019-04-25 19:46:48 -04:00
uint64 effective_amount = 4;
2019-05-20 14:43:36 -04:00
uint64 support_amount = 5;
uint32 claims_in_channel = 6;
2019-05-20 14:43:36 -04:00
uint32 trending_group = 7;
2019-05-20 14:54:51 -04:00
float trending_mixed = 8;
float trending_local = 9;
float trending_global = 10;
}
message Error {
enum Code {
UNKNOWN_CODE = 0;
NOT_FOUND = 1;
INVALID = 2;
}
Code code = 1;
string text = 2;
}