Skip to content

Commit

Permalink
Merge pull request #165 from tronprotocol/feature/new_resource_model
Browse files Browse the repository at this point in the history
add protocol for new resource model
  • Loading branch information
sean-liu55 authored Apr 14, 2021
2 parents da49d4d + f31308b commit 447b466
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,9 @@ message AccountResourceMessage {
map<string, int64> assetNetLimit = 6;
int64 TotalNetLimit = 7;
int64 TotalNetWeight = 8;
int64 TotalTronPowerWeight = 9;
int64 tronPowerUsed = 10;
int64 tronPowerLimit = 11;

int64 EnergyUsed = 13;
int64 EnergyLimit = 14;
Expand Down
3 changes: 3 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ message Account {
//Freeze and provide balances to other accounts
int64 delegated_frozen_balance_for_bandwidth = 42;

int64 old_tron_power = 46;
Frozen tron_power = 47;

// this account create time
int64 create_time = 0x09;
// this last operation time, including transfer, voting and so on. //FIXME fix grammar
Expand Down
1 change: 1 addition & 0 deletions core/contract/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ option go_package = "github.com/tronprotocol/grpc-gateway/core";
enum ResourceCode {
BANDWIDTH = 0x00;
ENERGY = 0x01;
TRON_POWER = 0x02;
}

0 comments on commit 447b466

Please sign in to comment.