Skip to content

Commit

Permalink
Add shortstring and number for options of revisions in snip 12
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed May 26, 2024
1 parent b2c1042 commit ff18f98
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions wallet-api/wallet_rpc.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
Expand Down Expand Up @@ -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]+$"
},
Expand Down Expand Up @@ -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]
}
]
}
}
},
Expand Down

0 comments on commit ff18f98

Please sign in to comment.