diff --git a/api/api.proto b/api/api.proto index c6073d364..1ede5e176 100644 --- a/api/api.proto +++ b/api/api.proto @@ -1161,6 +1161,9 @@ message AccountResourceMessage { map assetNetLimit = 6; int64 TotalNetLimit = 7; int64 TotalNetWeight = 8; + int64 TotalTronPowerWeight = 9; + int64 tronPowerUsed = 10; + int64 tronPowerLimit = 11; int64 EnergyUsed = 13; int64 EnergyLimit = 14; diff --git a/core/Tron.proto b/core/Tron.proto index ea86f2d1b..1ec9018e6 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -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 diff --git a/core/contract/common.proto b/core/contract/common.proto index 9396c4a66..8af929bd5 100644 --- a/core/contract/common.proto +++ b/core/contract/common.proto @@ -9,4 +9,5 @@ option go_package = "github.com/tronprotocol/grpc-gateway/core"; enum ResourceCode { BANDWIDTH = 0x00; ENERGY = 0x01; + TRON_POWER = 0x02; } \ No newline at end of file