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;