From 6d684a4a10f9b8b29b971eb0eb0c26e03f44b4bb Mon Sep 17 00:00:00 2001 From: 451PCBCOM <52361477+451PCBCOM@users.noreply.github.com> Date: Thu, 21 Apr 2022 13:06:51 +0200 Subject: [PATCH 1/3] Fix broken link Fix link to: github.com/tronprotocol/protocol/blob/master/api/api.proto --- api/api.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.proto b/api/api.proto index 945fc7730..37d2ff6a7 100644 --- a/api/api.proto +++ b/api/api.proto @@ -16,7 +16,7 @@ import "core/contract/shield_contract.proto"; option java_package = "org.tron.api"; //Specify the name of the package that generated the Java file option java_outer_classname = "GrpcAPI"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/api"; +option go_package = "github.com/tronprotocol/protocol/blob/master/api/api.proto"; service Wallet { From 324d4dd272b7c386412a1c0e524b51d9bb2c1dbe Mon Sep 17 00:00:00 2001 From: 451PCBCOM <52361477+451PCBCOM@users.noreply.github.com> Date: Thu, 21 Apr 2022 13:08:56 +0200 Subject: [PATCH 2/3] Fix broken link Fix broken link to: github.com/tronprotocol/protocol/blob/master/api --- api/api.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.proto b/api/api.proto index 37d2ff6a7..297f8c177 100644 --- a/api/api.proto +++ b/api/api.proto @@ -16,7 +16,7 @@ import "core/contract/shield_contract.proto"; option java_package = "org.tron.api"; //Specify the name of the package that generated the Java file option java_outer_classname = "GrpcAPI"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/protocol/blob/master/api/api.proto"; +option go_package = "github.com/tronprotocol/protocol/blob/master/api"; service Wallet { From ecd922564f7757b4f1716a27f61943d5f3a1b2eb Mon Sep 17 00:00:00 2001 From: 451PCBCOM <52361477+451PCBCOM@users.noreply.github.com> Date: Thu, 21 Apr 2022 13:14:18 +0200 Subject: [PATCH 3/3] Fix broken link and code style Fix broken link to: github.com/tronprotocol/protocol/blob/master/api --- api/api.proto | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/api/api.proto b/api/api.proto index 297f8c177..84a39ac86 100644 --- a/api/api.proto +++ b/api/api.proto @@ -74,7 +74,6 @@ service Wallet { }; }; - rpc SetAccountId (SetAccountIdContract) returns (Transaction) { option (google.api.http) = { post: "/wallet/setaccountid" @@ -429,7 +428,6 @@ service Wallet { }; }; - rpc GetDelegatedResource (DelegatedResourceMessage) returns (DelegatedResourceList) { }; @@ -624,15 +622,12 @@ service Wallet { } rpc AddSign (TransactionSign) returns (TransactionExtention) { - } rpc GetTransactionSignWeight (Transaction) returns (TransactionSignWeight) { - } rpc GetTransactionApprovedList (Transaction) returns (TransactionApprovedList) { - } rpc GetNodeInfo (EmptyMessage) returns (NodeInfo) { @@ -645,7 +640,6 @@ service Wallet { }; rpc UpdateBrokerage (UpdateBrokerageContract) returns (TransactionExtention) { - }; // for shiededTransaction @@ -906,16 +900,15 @@ service WalletExtension { service Database { // for tapos rpc getBlockReference (EmptyMessage) returns (BlockReference) { - } + rpc GetDynamicProperties (EmptyMessage) returns (DynamicProperties) { - } + rpc GetNowBlock (EmptyMessage) returns (Block) { - } + rpc GetBlockByNum (NumberMessage) returns (Block) { - } };