From 8fffe4864f1ed9e89d9234b8220e937b8f0d1de1 Mon Sep 17 00:00:00 2001 From: lvs007 Date: Fri, 27 Sep 2019 16:04:23 +0800 Subject: [PATCH] add the delegate proto --- api/api.proto | 15 +++++++++++++++ core/Contract.proto | 5 +++++ core/Tron.proto | 1 + 3 files changed, 21 insertions(+) diff --git a/api/api.proto b/api/api.proto index f013096a0..fac89a567 100644 --- a/api/api.proto +++ b/api/api.proto @@ -685,6 +685,16 @@ service Wallet { rpc CreateShieldNullifier (NfParameters) returns (BytesMessage) { }; // end for shiededTransaction + + rpc GetRewardInfo (BytesMessage) returns (NumberMessage) { + }; + + rpc GetBrokerageInfo (BytesMessage) returns (NumberMessage) { + }; + + rpc UpdateBrokerage (UpdateBrokerageContract) returns (TransactionExtention) { + + }; }; service WalletSolidity { @@ -836,6 +846,11 @@ service WalletSolidity { rpc TriggerConstantContract (TriggerSmartContract) returns (TransactionExtention) { } + rpc GetRewardInfo (BytesMessage) returns (NumberMessage) { + }; + + rpc GetBrokerageInfo (BytesMessage) returns (NumberMessage) { + }; }; diff --git a/core/Contract.proto b/core/Contract.proto index bf8023c85..60f07fc07 100644 --- a/core/Contract.proto +++ b/core/Contract.proto @@ -335,3 +335,8 @@ message ShieldedTransferContract { int64 to_amount = 7; // the amount to transparent to_address } // end shielded transaction + +message UpdateBrokerageContract { + bytes owner_address = 1; + int32 brokerage = 2; // 1 mean 1% +} diff --git a/core/Tron.proto b/core/Tron.proto index a60ef718d..d70672297 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -273,6 +273,7 @@ message Transaction { UpdateEnergyLimitContract = 45; AccountPermissionUpdateContract = 46; ClearABIContract = 48; + UpdateBrokerageContract = 49; ShieldedTransferContract = 51; } ContractType type = 1;