Skip to content

Commit d6d1ada

Browse files
committed
change protocol for new resource model
1 parent e677e20 commit d6d1ada

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/protos/api/api.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,9 @@ message AccountResourceMessage {
11351135
map<string, int64> assetNetLimit = 6;
11361136
int64 TotalNetLimit = 7;
11371137
int64 TotalNetWeight = 8;
1138+
int64 TotalTronPowerWeight = 9;
1139+
int64 tronPowerUsed = 10;
1140+
int64 tronPowerLimit = 11;
11381141

11391142
int64 EnergyUsed = 13;
11401143
int64 EnergyLimit = 14;

src/main/protos/core/Tron.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ message Account {
9797
//Freeze and provide balances to other accounts
9898
int64 delegated_frozen_balance_for_bandwidth = 42;
9999

100+
int64 old_tron_power = 46;
101+
Frozen tron_power = 47;
102+
100103
// this account create time
101104
int64 create_time = 0x09;
102105
// this last operation time, including transfer, voting and so on. //FIXME fix grammar

0 commit comments

Comments
 (0)