Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(freezeV2): upgrade stake2.0 protocol #223

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ service Wallet {
rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {
}

rpc CancelAllUnfreezeV2 (CancelAllUnfreezeV2Contract) returns (TransactionExtention) {
}

//Please use UpdateAsset2 instead of this function.
rpc UpdateAsset (UpdateAssetContract) returns (Transaction) {
option (google.api.http) = {
Expand Down
3 changes: 3 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ message Transaction {
WithdrawExpireUnfreezeContract = 56;
DelegateResourceContract = 57;
UnDelegateResourceContract = 58;
CancelAllUnfreezeV2Contract = 59;
}
ContractType type = 1;
google.protobuf.Any parameter = 2;
Expand Down Expand Up @@ -422,6 +423,7 @@ message Transaction {
bytes orderId = 25;
repeated MarketOrderDetail orderDetails = 26;
int64 withdraw_expire_amount = 27;
int64 cancel_all_unfreezeV2_amount = 28;
}

message raw {
Expand Down Expand Up @@ -482,6 +484,7 @@ message TransactionInfo {
int64 packingFee = 27;

int64 withdraw_expire_amount = 28;
int64 cancel_all_unfreezeV2_amount = 29;
}

message TransactionRet {
Expand Down
5 changes: 5 additions & 0 deletions core/contract/balance_contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,16 @@ message DelegateResourceContract {
int64 balance = 3;
bytes receiver_address = 4;
bool lock = 5;
int64 lock_period = 6;
}

message UnDelegateResourceContract {
bytes owner_address = 1;
ResourceCode resource = 2;
int64 balance = 3;
bytes receiver_address = 4;
}

message CancelAllUnfreezeV2Contract {
bytes owner_address = 1;
}