From 2ba20c354a28001ff21911f8b96d22933b3905df Mon Sep 17 00:00:00 2001 From: taihaofu Date: Mon, 28 May 2018 17:29:12 +0800 Subject: [PATCH] add wallet extension service --- api/api.proto | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/api/api.proto b/api/api.proto index 56245fb5ec6..b7a41188def 100644 --- a/api/api.proto +++ b/api/api.proto @@ -387,57 +387,60 @@ service WalletSolidity { } }; } +}; + +service WalletExtension { rpc GetTransactionsByTimestamp (TimePaginatedMessage) returns (TransactionList) { option (google.api.http) = { - post: "/walletsolidity/gettransactionsbytimestamp" + post: "/walletextension/gettransactionsbytimestamp" body: "*" additional_bindings { - get: "/walletsolidity/gettransactionsbytimestamp" + get: "/walletextension/gettransactionsbytimestamp" } }; } rpc GetTransactionsByTimestampCount (TimeMessage) returns (NumberMessage) { option (google.api.http) = { - post: "/walletsolidity/gettransactionsbytimestampcount" + post: "/walletextension/gettransactionsbytimestampcount" body: "*" additional_bindings { - get: "/walletsolidity/gettransactionsbytimestampcount" + get: "/walletextension/gettransactionsbytimestampcount" } }; } rpc GetTransactionsFromThis (AccountPaginated) returns (TransactionList) { option (google.api.http) = { - post: "/walletsolidity/gettransactionsfromthis" + post: "/walletextension/gettransactionsfromthis" body: "*" additional_bindings { - get: "/walletsolidity/gettransactionsfromthis" + get: "/walletextension/gettransactionsfromthis" } }; } rpc GetTransactionsToThis (AccountPaginated) returns (TransactionList) { option (google.api.http) = { - post: "/walletsolidity/gettransactionstothis" + post: "/walletextension/gettransactionstothis" body: "*" additional_bindings { - get: "/walletsolidity/gettransactionstothis" + get: "/walletextension/gettransactionstothis" } }; } rpc GetTransactionsFromThisCount (Account) returns (NumberMessage) { option (google.api.http) = { - post: "/walletsolidity/gettransactionsfromthiscount" + post: "/walletextension/gettransactionsfromthiscount" body: "*" additional_bindings { - get: "/walletsolidity/gettransactionsfromthiscount" + get: "/walletextension/gettransactionsfromthiscount" } }; } rpc GetTransactionsToThisCount (Account) returns (NumberMessage) { option (google.api.http) = { - post: "/walletsolidity/gettransactionstothiscount" + post: "/walletextension/gettransactionstothiscount" body: "*" additional_bindings { - get: "/walletsolidity/gettransactionstothiscount" + get: "/walletextension/gettransactionstothiscount" } }; }