Skip to content

Commit

Permalink
Merge pull request #173 from TRON-US/BTFS-2562-phase2
Browse files Browse the repository at this point in the history
Btfs 2562 phase2
  • Loading branch information
Eric Chen authored Feb 4, 2021
2 parents d51bb6f + 5c899ce commit e8815ff
Show file tree
Hide file tree
Showing 8 changed files with 4,374 additions and 458 deletions.
808 changes: 808 additions & 0 deletions js/protos/node/node_pb.js

Large diffs are not rendered by default.

872 changes: 872 additions & 0 deletions js/protos/status/status_pb.js

Large diffs are not rendered by default.

255 changes: 146 additions & 109 deletions protos/hub/hub.pb.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions protos/hub/hub.proto
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ service HubParseService {
rpc UpdateNetwork(ParseReq) returns (ParseResp);
rpc Recycle(RecycleReq) returns (ParseResp);
rpc UpdateBtfsScan(ParseReq) returns (ParseResp);
rpc UpdateScoreHistory(ParseReq) returns (ParseResp);
}

message Candidate {
Expand Down
1,531 changes: 1,274 additions & 257 deletions protos/node/node.pb.go

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions protos/node/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,37 @@ message BtfsScanTab {
string new_rank = 10;
string total_rank = 11;
}

message ScoreHistoryTab {
string table_name = 1 [(gogoproto.moretags) = "pg:\"score_history,alias:t,discard_unknown_columns\""];
string node_id = 2;
uint64 storage_volume_cap = 3;
uint64 storage_volume_left = 4;
uint32 score = 5;
google.protobuf.Timestamp date_created = 6 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true
];
google.protobuf.Timestamp time_created = 7 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true
];
}

message AirdropRewardHistoryTab {
string table_name = 1 [(gogoproto.moretags) = "pg:\"airdrop_reward_history,alias:t,discard_unknown_columns\""];
uint32 type = 2;
string node_id = 3;
uint64 reward = 4;
bool is_suspect = 5;
uint32 weight = 6;
uint32 stake = 7;
google.protobuf.Timestamp date_created = 8 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true
];
google.protobuf.Timestamp time_created = 9 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true
];
}
Loading

0 comments on commit e8815ff

Please sign in to comment.