From d53bb092d1bf76c7267d650511159031a50a7e4e Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Thu, 19 Dec 2024 14:11:37 -0600 Subject: [PATCH] docs(rpc): update OpenRPC spec for `deshieldfunds` --- app/Server.hs | 2 +- src/Zenith/RPC.hs | 2 +- zcash-haskell | 2 +- zenith-openrpc.json | 21 ++++++++++++++++++--- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/app/Server.hs b/app/Server.hs index 7944fe3..e18e47c 100644 --- a/app/Server.hs +++ b/app/Server.hs @@ -67,7 +67,7 @@ main = do zebraPort (zgb_net chainInfo) threadDelay 90000000 - putStrLn "Zenith RPC Server 0.7.0.0-beta" + putStrLn "Zenith RPC Server 0.8.0.0-beta" putStrLn "------------------------------" putStrLn $ "Connected to " ++ diff --git a/src/Zenith/RPC.hs b/src/Zenith/RPC.hs index 2925eab..fb16c74 100644 --- a/src/Zenith/RPC.hs +++ b/src/Zenith/RPC.hs @@ -532,7 +532,7 @@ zenithServer state = getinfo :<|> handleRPC getinfo = return $ object - [ "version" .= ("0.7.0.0-beta" :: String) + [ "version" .= ("0.8.0.0-beta" :: String) , "network" .= ("testnet" :: String) ] handleRPC :: Bool -> RpcCall -> Handler ZenithResponse diff --git a/zcash-haskell b/zcash-haskell index d350c2e..7d3ae36 160000 --- a/zcash-haskell +++ b/zcash-haskell @@ -1 +1 @@ -Subproject commit d350c2e7844a526ff9b21bb14e1723fce9b0b46b +Subproject commit 7d3ae36d2b48b8ed91a70e40a77fb7efe57765a0 diff --git a/zenith-openrpc.json b/zenith-openrpc.json index 686bb56..bba9550 100644 --- a/zenith-openrpc.json +++ b/zenith-openrpc.json @@ -674,7 +674,7 @@ "name": "shieldnotes", "summary": "Shield all transparent notes into the Orchard pool for the given account", "description": "Creates one or more transactions, grouping all the unspent transparent notes for the given account by their transparent address to avoid associating different transparent addresses. These notes are sent to the given account's internal change address as shielded Orchard notes.", - "tags": [{ "$ref": "#/components/tags/draft"}, { "$ref": "#/components/tags/wip"}], + "tags": [], "params": [ { "$ref": "#/components/contentDescriptors/AccountId"} ], @@ -735,12 +735,18 @@ "name": "deshieldfunds", "summary": "De-shield the given amount of ZEC from the given account", "description": "", - "tags": [{ "$ref": "#/components/tags/draft"}], - "params": [], + "tags": [{ "$ref": "#/components/tags/draft"}, { "$ref": "#/components/tags/wip"}], + "params": [ + { "$ref": "#/components/contentDescriptors/AccountId"}, + { "$ref": "#/components/contentDescriptors/Address"} + ], "paramStructure": "by-position", "result": { }, "errors": [ + { "$ref": "#/components/errors/ZebraNotAvailable" }, + { "$ref": "#/components/errors/ZenithBusy" }, + { "$ref": "#/components/errors/InvalidAccount" } ] } ], @@ -773,6 +779,15 @@ "type": "string" } }, + "Amount": { + "name": "A numeric amount", + "summary": "A numeric amount", + "description": "A number that represents an amount to be used by a function as an input", + "required": true, + "schema": { + "type": "number" + } + }, "Name": { "name": "Name", "summary": "A user-friendly name",