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

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
nanfengpo committed Apr 25, 2018
1 parent f12e2cc commit 88da776
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ service Wallet {
};
}

rpc UnfreezeBalance (EmptyMessage) returns (Transaction) {
rpc UnfreezeBalance (UnfreezeBalanceContract) returns (Transaction) {
option (google.api.http) = {
post: "/wallet/unfreezebalance"
body: "*"
};
}

rpc WithdrawBalance (EmptyMessage) returns (Transaction) {
rpc WithdrawBalance (WithdrawBalanceContract) returns (Transaction) {
option (google.api.http) = {
post: "/wallet/withdrawbalance"
body: "*"
Expand Down
13 changes: 11 additions & 2 deletions core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ message DeployContract {
}

message FreezeBalanceContract {
int64 frozen_balance = 1;
int64 frozen_duration = 2;
bytes owner_address = 1;
int64 frozen_balance = 2;
int64 frozen_duration = 3;
}

message UnfreezeBalanceContract {
bytes owner_address = 1;
}

message WithdrawBalanceContract {
bytes owner_address = 1;
}
3 changes: 3 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ message Transaction {
WitnessUpdateContract = 8;
ParticipateAssetIssueContract = 9;
AccountUpdateContract = 10;
FreezeBalanceContract = 11;
UnfreezeBalanceContract = 12;
WithdrawBalanceContract = 13;
CustomContract = 20;
}
ContractType type = 1;
Expand Down

0 comments on commit 88da776

Please sign in to comment.