Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request grpc-ecosystem#47 from tronprotocol/feature/add_to…
Browse files Browse the repository at this point in the history
…ken_freeze

Feature/add token freeze
  • Loading branch information
sean-liu55 authored May 14, 2018
2 parents e92f847 + 9c1b58f commit c4d9aa5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ service Wallet {
};
}

rpc UnfreezeAsset (UnfreezeAssetContract) returns (Transaction) {
option (google.api.http) = {
post: "/wallet/unfreezeasset"
body: "*"
};
}

rpc WithdrawBalance (WithdrawBalanceContract) returns (Transaction) {
option (google.api.http) = {
post: "/wallet/withdrawbalance"
Expand Down
9 changes: 9 additions & 0 deletions core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ message WitnessUpdateContract {
}

message AssetIssueContract {
message FrozenSupply {
int64 frozen_amount = 1;
int64 frozen_days = 2;
}
bytes owner_address = 1;
bytes name = 2;
int64 total_supply = 4;
repeated FrozenSupply frozen_supply = 5;
int32 trx_num = 6;
int32 num = 8;
int64 start_time = 9;
Expand Down Expand Up @@ -112,6 +117,10 @@ message UnfreezeBalanceContract {
bytes owner_address = 1;
}

message UnfreezeAssetContract {
bytes owner_address = 1;
}

message WithdrawBalanceContract {
bytes owner_address = 1;
}
5 changes: 5 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ message Account {
bytes code = 13;
bool is_witness = 14;
bool is_committee = 15;
// frozen asset(for asset issuer)
repeated Frozen frozen_supply = 16;
// asset_issued_name
bytes asset_issued_name = 17;
}

message acuthrity {
Expand Down Expand Up @@ -138,6 +142,7 @@ message Transaction {
FreezeBalanceContract = 11;
UnfreezeBalanceContract = 12;
WithdrawBalanceContract = 13;
UnfreezeAssetContract = 14;
CustomContract = 20;
}
ContractType type = 1;
Expand Down

0 comments on commit c4d9aa5

Please sign in to comment.