From 04821b89aafd0ae483d48eb43c18eab73a1d1d49 Mon Sep 17 00:00:00 2001 From: jiangyuanshu <317787106@qq.com> Date: Fri, 17 Apr 2026 15:29:26 +0800 Subject: [PATCH] prune proto --- protocol/src/main/protos/api/api.proto | 393 ------------------ protocol/src/main/protos/api/zksnark.proto | 1 - .../core/contract/account_contract.proto | 1 - .../core/contract/asset_issue_contract.proto | 1 - .../core/contract/balance_contract.proto | 1 - .../main/protos/core/contract/common.proto | 1 - .../core/contract/exchange_contract.proto | 1 - .../core/contract/market_contract.proto | 1 - .../core/contract/proposal_contract.proto | 1 - .../core/contract/shield_contract.proto | 1 - .../protos/core/contract/smart_contract.proto | 1 - .../core/contract/storage_contract.proto | 1 - .../core/contract/vote_asset_contract.proto | 1 - .../core/contract/witness_contract.proto | 1 - .../src/main/protos/core/tron/account.proto | 0 .../src/main/protos/core/tron/block.proto | 0 .../protos/core/tron/delegated_resource.proto | 0 protocol/src/main/protos/core/tron/p2p.proto | 0 .../src/main/protos/core/tron/proposal.proto | 0 .../main/protos/core/tron/transaction.proto | 0 protocol/src/main/protos/core/tron/vote.proto | 0 .../src/main/protos/core/tron/witness.proto | 0 22 files changed, 406 deletions(-) delete mode 100644 protocol/src/main/protos/core/tron/account.proto delete mode 100644 protocol/src/main/protos/core/tron/block.proto delete mode 100644 protocol/src/main/protos/core/tron/delegated_resource.proto delete mode 100644 protocol/src/main/protos/core/tron/p2p.proto delete mode 100644 protocol/src/main/protos/core/tron/proposal.proto delete mode 100644 protocol/src/main/protos/core/tron/transaction.proto delete mode 100644 protocol/src/main/protos/core/tron/vote.proto delete mode 100644 protocol/src/main/protos/core/tron/witness.proto diff --git a/protocol/src/main/protos/api/api.proto b/protocol/src/main/protos/api/api.proto index d66d8aa6263..ee233339dea 100644 --- a/protocol/src/main/protos/api/api.proto +++ b/protocol/src/main/protos/api/api.proto @@ -17,93 +17,36 @@ 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"; service Wallet { rpc GetAccount (Account) returns (Account) { - option (google.api.http) = { - post: "/wallet/getaccount" - body: "*" - additional_bindings { - get: "/wallet/getaccount" - } - }; }; rpc GetAccountById (Account) returns (Account) { - option (google.api.http) = { - post: "/wallet/getaccountbyid" - body: "*" - additional_bindings { - get: "/wallet/getaccountbyid" - } - }; }; rpc GetAccountBalance (AccountBalanceRequest) returns (AccountBalanceResponse) { - option (google.api.http) = { - post: "/wallet/getaccountbalance" - body: "*" - additional_bindings { - get: "/wallet/getaccountbalance" - } - }; }; rpc GetBlockBalanceTrace (BlockBalanceTrace.BlockIdentifier) returns (BlockBalanceTrace) { - option (google.api.http) = { - post: "/wallet/getblockbalancetrace" - body: "*" - additional_bindings { - get: "/wallet/getblockbalancetrace" - } - }; }; //Please use CreateTransaction2 instead of this function. rpc CreateTransaction (TransferContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/createtransaction" - body: "*" - additional_bindings { - get: "/wallet/createtransaction" - } - }; }; //Use this function instead of CreateTransaction. rpc CreateTransaction2 (TransferContract) returns (TransactionExtention) { }; rpc BroadcastTransaction (Transaction) returns (Return) { - option (google.api.http) = { - post: "/wallet/broadcasttransaction" - body: "*" - additional_bindings { - get: "/wallet/broadcasttransaction" - } - }; }; //Please use UpdateAccount2 instead of this function. rpc UpdateAccount (AccountUpdateContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/updateaccount" - body: "*" - additional_bindings { - get: "/wallet/updateaccount" - } - }; }; rpc SetAccountId (SetAccountIdContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/setaccountid" - body: "*" - additional_bindings { - get: "/wallet/setaccountid" - } - }; }; //Use this function instead of UpdateAccount. @@ -112,13 +55,6 @@ service Wallet { //Please use VoteWitnessAccount2 instead of this function. rpc VoteWitnessAccount (VoteWitnessContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/votewitnessaccount" - body: "*" - additional_bindings { - get: "/wallet/votewitnessaccount" - } - }; }; //modify the consume_user_resource_percent @@ -134,39 +70,18 @@ service Wallet { }; //Please use CreateAssetIssue2 instead of this function. rpc CreateAssetIssue (AssetIssueContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/createassetissue" - body: "*" - additional_bindings { - get: "/wallet/createassetissue" - } - }; }; //Use this function instead of CreateAssetIssue. rpc CreateAssetIssue2 (AssetIssueContract) returns (TransactionExtention) { }; //Please use UpdateWitness2 instead of this function. rpc UpdateWitness (WitnessUpdateContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/updatewitness" - body: "*" - additional_bindings { - get: "/wallet/updatewitness" - } - }; }; //Use this function instead of UpdateWitness. rpc UpdateWitness2 (WitnessUpdateContract) returns (TransactionExtention) { }; //Please use CreateAccount2 instead of this function. rpc CreateAccount (AccountCreateContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/createaccount" - body: "*" - additional_bindings { - get: "/wallet/createaccount" - } - }; }; //Use this function instead of CreateAccount. rpc CreateAccount2 (AccountCreateContract) returns (TransactionExtention) { @@ -174,52 +89,24 @@ service Wallet { //Please use CreateWitness2 instead of this function. rpc CreateWitness (WitnessCreateContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/createwitness" - body: "*" - additional_bindings { - get: "/wallet/createwitness" - } - }; }; //Use this function instead of CreateWitness. rpc CreateWitness2 (WitnessCreateContract) returns (TransactionExtention) { } //Please use TransferAsset2 instead of this function. rpc TransferAsset (TransferAssetContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/transferasset" - body: "*" - additional_bindings { - get: "/wallet/transferasset" - } - }; } //Use this function instead of TransferAsset. rpc TransferAsset2 (TransferAssetContract) returns (TransactionExtention) { } //Please use ParticipateAssetIssue2 instead of this function. rpc ParticipateAssetIssue (ParticipateAssetIssueContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/participateassetissue" - body: "*" - additional_bindings { - get: "/wallet/participateassetissue" - } - }; } //Use this function instead of ParticipateAssetIssue. rpc ParticipateAssetIssue2 (ParticipateAssetIssueContract) returns (TransactionExtention) { } //Please use FreezeBalance2 instead of this function. rpc FreezeBalance (FreezeBalanceContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/freezebalance" - body: "*" - additional_bindings { - get: "/wallet/freezebalance" - } - }; } //Use this function instead of FreezeBalance. rpc FreezeBalance2 (FreezeBalanceContract) returns (TransactionExtention) { @@ -230,13 +117,6 @@ service Wallet { //Please use UnfreezeBalance2 instead of this function. rpc UnfreezeBalance (UnfreezeBalanceContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/unfreezebalance" - body: "*" - additional_bindings { - get: "/wallet/unfreezebalance" - } - }; } //Use this function instead of UnfreezeBalance. rpc UnfreezeBalance2 (UnfreezeBalanceContract) returns (TransactionExtention) { @@ -247,26 +127,12 @@ service Wallet { //Please use UnfreezeAsset2 instead of this function. rpc UnfreezeAsset (UnfreezeAssetContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/unfreezeasset" - body: "*" - additional_bindings { - get: "/wallet/unfreezeasset" - } - }; } //Use this function instead of UnfreezeAsset. rpc UnfreezeAsset2 (UnfreezeAssetContract) returns (TransactionExtention) { } //Please use WithdrawBalance2 instead of this function. rpc WithdrawBalance (WithdrawBalanceContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/withdrawbalance" - body: "*" - additional_bindings { - get: "/wallet/withdrawbalance" - } - }; } //Use this function instead of WithdrawBalance. rpc WithdrawBalance2 (WithdrawBalanceContract) returns (TransactionExtention) { @@ -286,13 +152,6 @@ service Wallet { //Please use UpdateAsset2 instead of this function. rpc UpdateAsset (UpdateAssetContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/updateasset" - body: "*" - additional_bindings { - get: "/wallet/updateasset" - } - }; } //Use this function instead of UpdateAsset. rpc UpdateAsset2 (UpdateAssetContract) returns (TransactionExtention) { @@ -351,43 +210,15 @@ service Wallet { rpc ListNodes (EmptyMessage) returns (NodeList) { - option (google.api.http) = { - post: "/wallet/listnodes" - body: "*" - additional_bindings { - get: "/wallet/listnodes" - } - }; } rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) { - option (google.api.http) = { - post: "/wallet/getassetissuebyaccount" - body: "*" - additional_bindings { - get: "/wallet/getassetissuebyaccount" - } - }; } rpc GetAccountNet (Account) returns (AccountNetMessage) { - option (google.api.http) = { - post: "/wallet/getaccountnet" - body: "*" - additional_bindings { - get: "/wallet/getaccountnet" - } - }; }; rpc GetAccountResource (Account) returns (AccountResourceMessage) { }; rpc GetAssetIssueByName (BytesMessage) returns (AssetIssueContract) { - option (google.api.http) = { - post: "/wallet/getassetissuebyname" - body: "*" - additional_bindings { - get: "/wallet/getassetissuebyname" - } - }; } rpc GetAssetIssueListByName (BytesMessage) returns (AssetIssueList) { } @@ -395,26 +226,12 @@ service Wallet { } //Please use GetNowBlock2 instead of this function. rpc GetNowBlock (EmptyMessage) returns (Block) { - option (google.api.http) = { - post: "/wallet/getnowblock" - body: "*" - additional_bindings { - get: "/wallet/getnowblock" - } - }; } //Use this function instead of GetNowBlock. rpc GetNowBlock2 (EmptyMessage) returns (BlockExtention) { } //Please use GetBlockByNum2 instead of this function. rpc GetBlockByNum (NumberMessage) returns (Block) { - option (google.api.http) = { - post: "/wallet/getblockbynum" - body: "*" - additional_bindings { - get: "/wallet/getblockbynum" - } - }; } //Use this function instead of GetBlockByNum. rpc GetBlockByNum2 (NumberMessage) returns (BlockExtention) { @@ -424,48 +241,20 @@ service Wallet { } rpc GetBlockById (BytesMessage) returns (Block) { - option (google.api.http) = { - post: "/wallet/getblockbyid" - body: "*" - additional_bindings { - get: "/wallet/getblockbyid" - } - }; } //Please use GetBlockByLimitNext2 instead of this function. rpc GetBlockByLimitNext (BlockLimit) returns (BlockList) { - option (google.api.http) = { - post: "/wallet/getblockbylimitnext" - body: "*" - additional_bindings { - get: "/wallet/getblockbylimitnext" - } - }; } //Use this function instead of GetBlockByLimitNext. rpc GetBlockByLimitNext2 (BlockLimit) returns (BlockListExtention) { } //Please use GetBlockByLatestNum2 instead of this function. rpc GetBlockByLatestNum (NumberMessage) returns (BlockList) { - option (google.api.http) = { - post: "/wallet/getblockbylatestnum" - body: "*" - additional_bindings { - get: "/wallet/getblockbylatestnum" - } - }; } //Use this function instead of GetBlockByLatestNum. rpc GetBlockByLatestNum2 (NumberMessage) returns (BlockListExtention) { } rpc GetTransactionById (BytesMessage) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/gettransactionbyid" - body: "*" - additional_bindings { - get: "/wallet/gettransactionbyid" - } - }; } rpc DeployContract (CreateSmartContract) returns (TransactionExtention) { @@ -490,13 +279,6 @@ service Wallet { } rpc ListWitnesses (EmptyMessage) returns (WitnessList) { - option (google.api.http) = { - post: "/wallet/listwitnesses" - body: "*" - additional_bindings { - get: "/wallet/listwitnesses" - } - }; }; rpc GetPaginatedNowWitnessList (PaginatedMessage) returns (WitnessList) { @@ -526,128 +308,37 @@ service Wallet { } rpc ListProposals (EmptyMessage) returns (ProposalList) { - option (google.api.http) = { - post: "/wallet/listproposals" - body: "*" - additional_bindings { - get: "/wallet/listproposals" - } - }; }; rpc GetPaginatedProposalList (PaginatedMessage) returns (ProposalList) { - option (google.api.http) = { - post: "/wallet/getpaginatedproposallist" - body: "*" - additional_bindings { - get: "/wallet/getpaginatedproposallist" - } - }; } rpc GetProposalById (BytesMessage) returns (Proposal) { - option (google.api.http) = { - post: "/wallet/getproposalbyid" - body: "*" - additional_bindings { - get: "/wallet/getproposalbyid" - } - }; }; rpc ListExchanges (EmptyMessage) returns (ExchangeList) { - option (google.api.http) = { - post: "/wallet/listexchanges" - body: "*" - additional_bindings { - get: "/wallet/listexchanges" - } - }; }; rpc GetPaginatedExchangeList (PaginatedMessage) returns (ExchangeList) { - option (google.api.http) = { - post: "/wallet/getpaginatedexchangelist" - body: "*" - additional_bindings { - get: "/wallet/getpaginatedexchangelist" - } - }; } rpc GetExchangeById (BytesMessage) returns (Exchange) { - option (google.api.http) = { - post: "/wallet/getexchangebyid" - body: "*" - additional_bindings { - get: "/wallet/getexchangebyid" - } - }; }; rpc GetChainParameters (EmptyMessage) returns (ChainParameters) { - option (google.api.http) = { - post: "/wallet/getchainparameters" - body: "*" - additional_bindings { - get: "/wallet/getchainparameters" - } - }; }; rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) { - option (google.api.http) = { - post: "/wallet/getassetissuelist" - body: "*" - additional_bindings { - get: "/wallet/getassetissuelist" - } - }; } rpc GetPaginatedAssetIssueList (PaginatedMessage) returns (AssetIssueList) { - option (google.api.http) = { - post: "/wallet/getpaginatedassetissuelist" - body: "*" - additional_bindings { - get: "/wallet/getpaginatedassetissuelist" - } - }; } rpc TotalTransaction (EmptyMessage) returns (NumberMessage) { - option (google.api.http) = { - post: "/wallet/totaltransaction" - body: "*" - additional_bindings { - get: "/wallet/totaltransaction" - } - }; } rpc GetNextMaintenanceTime (EmptyMessage) returns (NumberMessage) { - option (google.api.http) = { - post: "/wallet/getnextmaintenancetime" - body: "*" - additional_bindings { - get: "/wallet/getnextmaintenancetime" - } - }; } rpc GetTransactionInfoById (BytesMessage) returns (TransactionInfo) { - option (google.api.http) = { - post: "/wallet/gettransactioninfobyid" - body: "*" - additional_bindings { - get: "/wallet/gettransactioninfobyid" - } - }; } rpc AccountPermissionUpdate (AccountPermissionUpdateContract) returns (TransactionExtention) { - option (google.api.http) = { - post: "/wallet/accountpermissionupdate" - body: "*" - additional_bindings { - get: "/wallet/accountpermissionupdate" - } - }; } rpc GetTransactionSignWeight (Transaction) returns (TransactionSignWeight) { @@ -783,54 +474,19 @@ service Wallet { service WalletSolidity { rpc GetAccount (Account) returns (Account) { - option (google.api.http) = { - post: "/walletsolidity/getaccount" - body: "*" - additional_bindings { - get: "/walletsolidity/getaccount" - } - }; }; rpc GetAccountById (Account) returns (Account) { - option (google.api.http) = { - post: "/walletsolidity/getaccountbyid" - body: "*" - additional_bindings { - get: "/walletsolidity/getaccountbyid" - } - }; }; rpc ListWitnesses (EmptyMessage) returns (WitnessList) { - option (google.api.http) = { - post: "/walletsolidity/listwitnesses" - body: "*" - additional_bindings { - get: "/walletsolidity/listwitnesses" - } - }; }; rpc GetPaginatedNowWitnessList (PaginatedMessage) returns (WitnessList) { }; rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) { - option (google.api.http) = { - post: "/walletsolidity/getassetissuelist" - body: "*" - additional_bindings { - get: "/walletsolidity/getassetissuelist" - } - }; } rpc GetPaginatedAssetIssueList (PaginatedMessage) returns (AssetIssueList) { - option (google.api.http) = { - post: "/walletsolidity/getpaginatedassetissuelist" - body: "*" - additional_bindings { - get: "/walletsolidity/getpaginatedassetissuelist" - } - }; } rpc GetAssetIssueByName (BytesMessage) returns (AssetIssueContract) { @@ -842,26 +498,12 @@ service WalletSolidity { //Please use GetNowBlock2 instead of this function. rpc GetNowBlock (EmptyMessage) returns (Block) { - option (google.api.http) = { - post: "/walletsolidity/getnowblock" - body: "*" - additional_bindings { - get: "/walletsolidity/getnowblock" - } - }; } //Use this function instead of GetNowBlock. rpc GetNowBlock2 (EmptyMessage) returns (BlockExtention) { } //Please use GetBlockByNum2 instead of this function. rpc GetBlockByNum (NumberMessage) returns (Block) { - option (google.api.http) = { - post: "/walletsolidity/getblockbynum" - body: "*" - additional_bindings { - get: "/walletsolidity/getblockbynum" - } - }; } //Use this function instead of GetBlockByNum. rpc GetBlockByNum2 (NumberMessage) returns (BlockExtention) { @@ -901,23 +543,9 @@ service WalletSolidity { rpc GetTransactionById (BytesMessage) returns (Transaction) { - option (google.api.http) = { - post: "/walletsolidity/gettransactionbyid" - body: "*" - additional_bindings { - get: "/walletsolidity/gettransactionbyid" - } - }; } rpc GetTransactionInfoById (BytesMessage) returns (TransactionInfo) { - option (google.api.http) = { - post: "/walletsolidity/gettransactioninfobyid" - body: "*" - additional_bindings { - get: "/walletsolidity/gettransactioninfobyid" - } - }; } rpc GetMerkleTreeVoucherInfo (OutputPointInfo) returns (IncrementalMerkleVoucherInfo) { @@ -988,26 +616,12 @@ service WalletSolidity { service WalletExtension { //Please use GetTransactionsFromThis2 instead of this function. rpc GetTransactionsFromThis (AccountPaginated) returns (TransactionList) { - option (google.api.http) = { - post: "/walletextension/gettransactionsfromthis" - body: "*" - additional_bindings { - get: "/walletextension/gettransactionsfromthis" - } - }; } //Use this function instead of GetTransactionsFromThis. rpc GetTransactionsFromThis2 (AccountPaginated) returns (TransactionListExtention) { } //Please use GetTransactionsToThis2 instead of this function. rpc GetTransactionsToThis (AccountPaginated) returns (TransactionList) { - option (google.api.http) = { - post: "/walletextension/gettransactionstothis" - body: "*" - additional_bindings { - get: "/walletextension/gettransactionstothis" - } - }; } //Use this function instead of GetTransactionsToThis. rpc GetTransactionsToThis2 (AccountPaginated) returns (TransactionListExtention) { @@ -1033,13 +647,6 @@ service Database { service Monitor { rpc GetStatsInfo (EmptyMessage) returns (MetricsInfo) { - option (google.api.http) = { - post: "/monitor/getstatsinfo" - body: "*" - additional_bindings { - get: "/monitor/getstatsinfo" - } - }; } } diff --git a/protocol/src/main/protos/api/zksnark.proto b/protocol/src/main/protos/api/zksnark.proto index bc0764cb529..5402af3a782 100644 --- a/protocol/src/main/protos/api/zksnark.proto +++ b/protocol/src/main/protos/api/zksnark.proto @@ -5,7 +5,6 @@ import "core/Tron.proto"; option java_package = "org.tron.api"; //Specify the name of the package that generated the Java file option java_outer_classname = "ZksnarkGrpcAPI"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/api"; service TronZksnark { rpc CheckZksnarkProof (ZksnarkRequest) returns (ZksnarkResponse) { diff --git a/protocol/src/main/protos/core/contract/account_contract.proto b/protocol/src/main/protos/core/contract/account_contract.proto index d3180048f43..54e5244381f 100644 --- a/protocol/src/main/protos/core/contract/account_contract.proto +++ b/protocol/src/main/protos/core/contract/account_contract.proto @@ -19,7 +19,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "Contract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; import "core/Tron.proto"; diff --git a/protocol/src/main/protos/core/contract/asset_issue_contract.proto b/protocol/src/main/protos/core/contract/asset_issue_contract.proto index 9e8ff463d52..5a49eb4112c 100644 --- a/protocol/src/main/protos/core/contract/asset_issue_contract.proto +++ b/protocol/src/main/protos/core/contract/asset_issue_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "AssetIssueContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; message AssetIssueContract { string id = 41; diff --git a/protocol/src/main/protos/core/contract/balance_contract.proto b/protocol/src/main/protos/core/contract/balance_contract.proto index ea1c96270d6..9a944b90c4c 100644 --- a/protocol/src/main/protos/core/contract/balance_contract.proto +++ b/protocol/src/main/protos/core/contract/balance_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "FreezeBalanceContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; import "core/contract/common.proto"; diff --git a/protocol/src/main/protos/core/contract/common.proto b/protocol/src/main/protos/core/contract/common.proto index 8af929bd52d..fd9922fc7ee 100644 --- a/protocol/src/main/protos/core/contract/common.proto +++ b/protocol/src/main/protos/core/contract/common.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "common"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; enum ResourceCode { BANDWIDTH = 0x00; diff --git a/protocol/src/main/protos/core/contract/exchange_contract.proto b/protocol/src/main/protos/core/contract/exchange_contract.proto index 8b8878f04f5..15600051766 100644 --- a/protocol/src/main/protos/core/contract/exchange_contract.proto +++ b/protocol/src/main/protos/core/contract/exchange_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "ExchangeCreateContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; message ExchangeCreateContract { bytes owner_address = 1; diff --git a/protocol/src/main/protos/core/contract/market_contract.proto b/protocol/src/main/protos/core/contract/market_contract.proto index e1274350036..fd8f44c0d9d 100644 --- a/protocol/src/main/protos/core/contract/market_contract.proto +++ b/protocol/src/main/protos/core/contract/market_contract.proto @@ -3,7 +3,6 @@ syntax = "proto3"; package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; message MarketSellAssetContract { bytes owner_address = 1; diff --git a/protocol/src/main/protos/core/contract/proposal_contract.proto b/protocol/src/main/protos/core/contract/proposal_contract.proto index 35bb9ca7647..11076ff6c17 100644 --- a/protocol/src/main/protos/core/contract/proposal_contract.proto +++ b/protocol/src/main/protos/core/contract/proposal_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "ProposalApproveContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; message ProposalApproveContract { bytes owner_address = 1; diff --git a/protocol/src/main/protos/core/contract/shield_contract.proto b/protocol/src/main/protos/core/contract/shield_contract.proto index 660f9ddf77d..e209a5c0cb0 100644 --- a/protocol/src/main/protos/core/contract/shield_contract.proto +++ b/protocol/src/main/protos/core/contract/shield_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "ShieldedTransferContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; // for shielded transaction diff --git a/protocol/src/main/protos/core/contract/smart_contract.proto b/protocol/src/main/protos/core/contract/smart_contract.proto index c913f7f7577..9d9022bcfd4 100644 --- a/protocol/src/main/protos/core/contract/smart_contract.proto +++ b/protocol/src/main/protos/core/contract/smart_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "CreateSmartContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; import "core/Tron.proto"; diff --git a/protocol/src/main/protos/core/contract/storage_contract.proto b/protocol/src/main/protos/core/contract/storage_contract.proto index f04bf716e79..d83ff2ca457 100644 --- a/protocol/src/main/protos/core/contract/storage_contract.proto +++ b/protocol/src/main/protos/core/contract/storage_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "BuyStorageBytesContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; message BuyStorageBytesContract { bytes owner_address = 1; diff --git a/protocol/src/main/protos/core/contract/vote_asset_contract.proto b/protocol/src/main/protos/core/contract/vote_asset_contract.proto index d3b8e5b779e..499fe2c9fb1 100644 --- a/protocol/src/main/protos/core/contract/vote_asset_contract.proto +++ b/protocol/src/main/protos/core/contract/vote_asset_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "VoteAssetContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; message VoteAssetContract { bytes owner_address = 1; diff --git a/protocol/src/main/protos/core/contract/witness_contract.proto b/protocol/src/main/protos/core/contract/witness_contract.proto index 5021fbf9a78..c0f9bc3174f 100644 --- a/protocol/src/main/protos/core/contract/witness_contract.proto +++ b/protocol/src/main/protos/core/contract/witness_contract.proto @@ -4,7 +4,6 @@ package protocol; option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file //option java_outer_classname = "WitnessCreateContract"; //Specify the class name of the generated Java file -option go_package = "github.com/tronprotocol/grpc-gateway/core"; message WitnessCreateContract { bytes owner_address = 1; diff --git a/protocol/src/main/protos/core/tron/account.proto b/protocol/src/main/protos/core/tron/account.proto deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/protocol/src/main/protos/core/tron/block.proto b/protocol/src/main/protos/core/tron/block.proto deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/protocol/src/main/protos/core/tron/delegated_resource.proto b/protocol/src/main/protos/core/tron/delegated_resource.proto deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/protocol/src/main/protos/core/tron/p2p.proto b/protocol/src/main/protos/core/tron/p2p.proto deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/protocol/src/main/protos/core/tron/proposal.proto b/protocol/src/main/protos/core/tron/proposal.proto deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/protocol/src/main/protos/core/tron/transaction.proto b/protocol/src/main/protos/core/tron/transaction.proto deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/protocol/src/main/protos/core/tron/vote.proto b/protocol/src/main/protos/core/tron/vote.proto deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/protocol/src/main/protos/core/tron/witness.proto b/protocol/src/main/protos/core/tron/witness.proto deleted file mode 100644 index e69de29bb2d..00000000000