From ff18f985fb9f1d7f20aa7b00873498601a6ff83e Mon Sep 17 00:00:00 2001 From: amanusk Date: Sun, 26 May 2024 14:31:13 +0300 Subject: [PATCH] Add shortstring and number for options of revisions in snip 12 --- wallet-api/wallet_rpc.json | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/wallet-api/wallet_rpc.json b/wallet-api/wallet_rpc.json index 74874a6..4e38644 100644 --- a/wallet-api/wallet_rpc.json +++ b/wallet-api/wallet_rpc.json @@ -1,43 +1,43 @@ { "openrpc": "1.0.0-rc1", "info": { - "version": "0.1.0", + "version": "0.7.2", "title": "Starknet Wallet API", "license": {} }, "servers": [], "methods": [ { - "name": "wallet_supportedSpecs", - "summary": "Returns a list of rpc spec versions compatible with the wallet", + "name": "wallet_supportedWalletApi", + "summary": "Returns a list of wallet api versions compatible with the wallet. Notice this might be different from Starknet JSON-RPC spec", "params": [], "result": { "name": "result", - "description": "Semver of Starknet's JSON-RPC supported by the wallet", + "description": "Semver of the wallet api versions supported by the wallet", "required": true, "schema": { "type": "array", "properties": { "items": { - "$ref": "#/components/schemas/SPEC_VERSION" + "$ref": "#/components/schemas/API_VERSION" } } } } }, { - "name": "wallet_supportedWalletApi", - "summary": "Returns a list of wallet api versions compatible with the wallet. Notic this might be different from Starknet JSON-RPC spec", + "name": "wallet_supportedSpecs", + "summary": "Returns a list of rpc spec versions compatible with the wallet", "params": [], "result": { "name": "result", - "description": "Semver of the wallet api versions supported by the wallet", + "description": "Semver of Starknet's JSON-RPC supported by the wallet", "required": true, "schema": { "type": "array", "properties": { "items": { - "$ref": "#/components/schemas/API_VERSION" + "$ref": "#/components/schemas/SPEC_VERSION" } } } @@ -492,7 +492,7 @@ }, "API_VERSION": { "title": "Wallet API version", - "description": "The version of wallet API the request expecting. If not specified, the latest is assumed", + "description": "The version of wallet API expected by the request. If not specified, the latest is assumed", "type": "string", "pattern": "^[0-9]+\\.[0-9]+$" }, @@ -795,8 +795,16 @@ "anyOf": [{ "type": "string" }, { "type": "number" }] }, "revision": { - "type": "string", - "enum": ["0", "1"] + "oneOf": [ + { + "type": "string", + "enum": ["2"] + }, + { + "type": "number", + "enum": [0, 1] + } + ] } } },