Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request grpc-ecosystem#60 from tronprotocol/rm_api
Browse files Browse the repository at this point in the history
feat: remove api.
  • Loading branch information
CodeNinjaEvan authored May 31, 2018
2 parents efc94f0 + abbe0ce commit cb1ed99
Showing 1 changed file with 3 additions and 84 deletions.
87 changes: 3 additions & 84 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ service Wallet {
};
}
rpc GetAccountNet (Account) returns (AccountNetMessage) {
option (google.api.http) = {
option (google.api.http) = {
post: "/wallet/getaccountnet"
body: "*"
additional_bindings {
get: "/wallet/getaccountnet"
}
};
};
};
rpc GetAssetIssueByName (BytesMessage) returns (AssetIssueContract) {
option (google.api.http) = {
post: "/wallet/getassetissuebyname"
Expand Down Expand Up @@ -333,33 +333,6 @@ service WalletSolidity {
}
};
}
rpc GetAssetIssueListByTimestamp (NumberMessage) returns (AssetIssueList) {
option (google.api.http) = {
post: "/walletsolidity/getassetissuelistbytimestamp"
body: "*"
additional_bindings {
get: "/walletsolidity/getassetissuelistbytimestamp"
}
};
}
rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) {
option (google.api.http) = {
post: "/walletsolidity/getassetissuebyaccount"
body: "*"
additional_bindings {
get: "/walletsolidity/getassetissuebyaccount"
}
};
}
rpc GetAssetIssueByName (BytesMessage) returns (AssetIssueContract) {
option (google.api.http) = {
post: "/walletsolidity/getassetissuebyname"
body: "*"
additional_bindings {
get: "/walletsolidity/getassetissuebyname"
}
};
}
rpc GetNowBlock (EmptyMessage) returns (Block) {
option (google.api.http) = {
post: "/walletsolidity/getnowblock"
Expand All @@ -378,46 +351,10 @@ service WalletSolidity {
}
};
}
//get transaction
rpc TotalTransaction (EmptyMessage) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletsolidity/totaltransaction"
body: "*"
additional_bindings {
get: "/walletsolidity/totaltransaction"
}
};
}
rpc GetTransactionById (BytesMessage) returns (Transaction) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionbyid"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionbyid"
}
};
}
};

service WalletExtension {
rpc GetTransactionsByTimestamp (TimePaginatedMessage) returns (TransactionList) {
option (google.api.http) = {
post: "/walletextension/gettransactionsbytimestamp"
body: "*"
additional_bindings {
get: "/walletextension/gettransactionsbytimestamp"
}
};
}
rpc GetTransactionsByTimestampCount (TimeMessage) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletextension/gettransactionsbytimestampcount"
body: "*"
additional_bindings {
get: "/walletextension/gettransactionsbytimestampcount"
}
};
}

rpc GetTransactionsFromThis (AccountPaginated) returns (TransactionList) {
option (google.api.http) = {
post: "/walletextension/gettransactionsfromthis"
Expand All @@ -436,24 +373,6 @@ service WalletExtension {
}
};
}
rpc GetTransactionsFromThisCount (Account) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletextension/gettransactionsfromthiscount"
body: "*"
additional_bindings {
get: "/walletextension/gettransactionsfromthiscount"
}
};
}
rpc GetTransactionsToThisCount (Account) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletextension/gettransactionstothiscount"
body: "*"
additional_bindings {
get: "/walletextension/gettransactionstothiscount"
}
};
}
};

// the api of tron's db
Expand Down

0 comments on commit cb1ed99

Please sign in to comment.