Skip to content

Commit c4d9aa5

Browse files
authored
Merge pull request #47 from tronprotocol/feature/add_token_freeze
Feature/add token freeze
2 parents e92f847 + 9c1b58f commit c4d9aa5

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

api/api.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ service Wallet {
119119
};
120120
}
121121

122+
rpc UnfreezeAsset (UnfreezeAssetContract) returns (Transaction) {
123+
option (google.api.http) = {
124+
post: "/wallet/unfreezeasset"
125+
body: "*"
126+
};
127+
}
128+
122129
rpc WithdrawBalance (WithdrawBalanceContract) returns (Transaction) {
123130
option (google.api.http) = {
124131
post: "/wallet/withdrawbalance"

core/Contract.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,14 @@ message WitnessUpdateContract {
7777
}
7878

7979
message AssetIssueContract {
80+
message FrozenSupply {
81+
int64 frozen_amount = 1;
82+
int64 frozen_days = 2;
83+
}
8084
bytes owner_address = 1;
8185
bytes name = 2;
8286
int64 total_supply = 4;
87+
repeated FrozenSupply frozen_supply = 5;
8388
int32 trx_num = 6;
8489
int32 num = 8;
8590
int64 start_time = 9;
@@ -112,6 +117,10 @@ message UnfreezeBalanceContract {
112117
bytes owner_address = 1;
113118
}
114119

120+
message UnfreezeAssetContract {
121+
bytes owner_address = 1;
122+
}
123+
115124
message WithdrawBalanceContract {
116125
bytes owner_address = 1;
117126
}

core/Tron.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ message Account {
6767
bytes code = 13;
6868
bool is_witness = 14;
6969
bool is_committee = 15;
70+
// frozen asset(for asset issuer)
71+
repeated Frozen frozen_supply = 16;
72+
// asset_issued_name
73+
bytes asset_issued_name = 17;
7074
}
7175

7276
message acuthrity {
@@ -138,6 +142,7 @@ message Transaction {
138142
FreezeBalanceContract = 11;
139143
UnfreezeBalanceContract = 12;
140144
WithdrawBalanceContract = 13;
145+
UnfreezeAssetContract = 14;
141146
CustomContract = 20;
142147
}
143148
ContractType type = 1;

0 commit comments

Comments
 (0)