From d18ae9c19ae018c0c4f5f78f2866e4c52c9ad122 Mon Sep 17 00:00:00 2001 From: nanfengpo Date: Wed, 25 Apr 2018 22:15:14 +0800 Subject: [PATCH] minor change --- api/api.proto | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/api/api.proto b/api/api.proto index b98060c7364..07c0c7e32d5 100644 --- a/api/api.proto +++ b/api/api.proto @@ -105,6 +105,27 @@ service Wallet { }; } + rpc FreezeBalance (FreezeBalanceContract) returns (Transaction) { + option (google.api.http) = { + post: "/wallet/freezebalance" + body: "*" + }; + } + + rpc UnfreezeBalance (EmptyMessage) returns (Transaction) { + option (google.api.http) = { + post: "/wallet/unfreezebalance" + body: "*" + }; + } + + rpc WithdrawBalance (EmptyMessage) returns (Transaction) { + option (google.api.http) = { + post: "/wallet/withdrawbalance" + body: "*" + }; + } + rpc ListNodes (EmptyMessage) returns (NodeList) { option (google.api.http) = { post: "/wallet/listnodes" @@ -147,24 +168,6 @@ service Wallet { body: "*" }; } - rpc FreezeBalance (FreezeBalanceContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/freezebalance" - body: "*" - }; - } - rpc UnfreezeBalance (EmptyMessage) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/unfreezebalance" - body: "*" - }; - } - rpc WithdrawBalance (EmptyMessage) returns (Transaction) { - option (google.api.http) = { - post: "/withdrawbalance" - body: "*" - }; - } };