|
12 | 12 | "result": { |
13 | 13 | "name": "result", |
14 | 14 | "schema": { |
15 | | - "$ref": "#/components/schemas/StatusEvent" |
| 15 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/StatusEvent" |
16 | 16 | } |
17 | 17 | }, |
18 | 18 | "description": "Returns the current status of the wallet gateway session." |
|
23 | 23 | "result": { |
24 | 24 | "name": "result", |
25 | 25 | "schema": { |
26 | | - "$ref": "#/components/schemas/StatusEvent" |
| 26 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/StatusEvent" |
27 | 27 | } |
28 | 28 | }, |
29 | 29 | "description": "Ensures ledger connectivity and returns the connected network information along with the user access token. Network ID should follow CAIP-2 and represent the synchronizerId." |
|
34 | 34 | "result": { |
35 | 35 | "name": "result", |
36 | 36 | "schema": { |
37 | | - "$ref": "#/components/schemas/Null" |
| 37 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/Null" |
38 | 38 | } |
39 | 39 | }, |
40 | 40 | "description": "Invoke a disconnect of the wallet gateway session." |
|
69 | 69 | "name": "params", |
70 | 70 | "schema": { |
71 | 71 | "title": "prepareReturnParams", |
72 | | - "$ref": "#/components/schemas/JsPrepareSubmissionRequest" |
| 72 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/JsPrepareSubmissionRequest" |
73 | 73 | } |
74 | 74 | } |
75 | 75 | ], |
|
79 | 79 | "title": "prepareReturnResult", |
80 | 80 | "properties": { |
81 | 81 | "response": { |
82 | | - "$ref": "#/components/schemas/JsPrepareSubmissionResponse" |
| 82 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/JsPrepareSubmissionResponse" |
83 | 83 | } |
84 | 84 | }, |
85 | 85 | "required": ["response"] |
|
94 | 94 | "name": "params", |
95 | 95 | "schema": { |
96 | 96 | "title": "prepareExecuteParams", |
97 | | - "$ref": "#/components/schemas/JsPrepareSubmissionRequest" |
| 97 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/JsPrepareSubmissionRequest" |
98 | 98 | } |
99 | 99 | } |
100 | 100 | ], |
|
105 | 105 | "type": "object", |
106 | 106 | "properties": { |
107 | 107 | "tx": { |
108 | | - "$ref": "#/components/schemas/TxChangedExecutedEvent" |
| 108 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedExecutedEvent" |
109 | 109 | } |
110 | 110 | }, |
111 | 111 | "required": ["tx"] |
|
120 | 120 | "name": "params", |
121 | 121 | "schema": { |
122 | 122 | "title": "ledgerApiParams", |
123 | | - "type": "object", |
124 | | - "properties": { |
125 | | - "requestMethod": { |
126 | | - "title": "requestMethod", |
127 | | - "type": "string", |
128 | | - "enum": ["GET", "POST", "PUT", "DELETE"] |
129 | | - }, |
130 | | - "resource": { |
131 | | - "title": "resource", |
132 | | - "type": "string" |
133 | | - }, |
134 | | - "body": { |
135 | | - "title": "body", |
136 | | - "type": "string" |
137 | | - } |
138 | | - }, |
139 | | - "required": ["requestMethod", "resource"] |
| 123 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/LedgerApiRequest" |
140 | 124 | } |
141 | 125 | } |
142 | 126 | ], |
143 | 127 | "result": { |
144 | 128 | "name": "result", |
145 | 129 | "schema": { |
146 | | - "$ref": "#/components/schemas/LedgerApiResult" |
| 130 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/LedgerApiResult" |
147 | 131 | } |
148 | 132 | }, |
149 | 133 | "description": "Proxy for the JSON-API endpoints. Injects authorization headers automatically." |
|
154 | 138 | "result": { |
155 | 139 | "name": "result", |
156 | 140 | "schema": { |
157 | | - "$ref": "#/components/schemas/AccountsChangedEvent" |
| 141 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/AccountsChangedEvent" |
158 | 142 | } |
159 | 143 | } |
160 | 144 | }, |
|
164 | 148 | "result": { |
165 | 149 | "name": "result", |
166 | 150 | "schema": { |
167 | | - "$ref": "#/components/schemas/RequestAccountsResult" |
| 151 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/RequestAccountsResult" |
168 | 152 | } |
169 | 153 | }, |
170 | 154 | "description": "Lists the addresses (wallets) with their properties; including which network they are associated to and with signing provider is used." |
|
175 | 159 | "result": { |
176 | 160 | "name": "result", |
177 | 161 | "schema": { |
178 | | - "$ref": "#/components/schemas/TxChangedEvent" |
| 162 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedEvent" |
179 | 163 | } |
180 | 164 | } |
181 | 165 | } |
|
209 | 193 | "description": "The URL of the Wallet Gateway." |
210 | 194 | }, |
211 | 195 | "userUrl": { |
212 | | - "$ref": "#/components/schemas/UserUrl" |
| 196 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/UserUrl" |
213 | 197 | } |
214 | 198 | }, |
215 | 199 | "required": ["id", "clientType"] |
|
238 | 222 | "description": "Structure representing the request for prepare and execute calls", |
239 | 223 | "properties": { |
240 | 224 | "commandId": { |
241 | | - "$ref": "#/components/schemas/CommandId" |
| 225 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/CommandId" |
242 | 226 | }, |
243 | 227 | "commands": { |
244 | | - "$ref": "#/components/schemas/JsCommands" |
| 228 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/JsCommands" |
245 | 229 | }, |
246 | 230 | "actAs": { |
247 | 231 | "title": "actAs", |
|
266 | 250 | "type": "array", |
267 | 251 | "description": "List of contract IDs to be disclosed with the command.", |
268 | 252 | "items": { |
269 | | - "$ref": "#/components/schemas/DisclosedContract" |
| 253 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/DisclosedContract" |
270 | 254 | } |
271 | 255 | }, |
272 | 256 | "synchronizerId": { |
|
336 | 320 | } |
337 | 321 | } |
338 | 322 | }, |
| 323 | + "LedgerApiRequest": { |
| 324 | + "title": "LedgerApiRequest", |
| 325 | + "type": "object", |
| 326 | + "description": "Ledger API request structure", |
| 327 | + "properties": { |
| 328 | + "requestMethod": { |
| 329 | + "title": "requestMethod", |
| 330 | + "type": "string", |
| 331 | + "enum": ["GET", "POST", "PUT", "DELETE"] |
| 332 | + }, |
| 333 | + "resource": { |
| 334 | + "title": "resource", |
| 335 | + "type": "string" |
| 336 | + }, |
| 337 | + "body": { |
| 338 | + "title": "body", |
| 339 | + "type": "string" |
| 340 | + } |
| 341 | + }, |
| 342 | + "required": ["requestMethod", "resource"] |
| 343 | + }, |
339 | 344 | "AccountsChangedEvent": { |
340 | 345 | "title": "AccountsChangedEvent", |
341 | 346 | "type": "array", |
|
370 | 375 | "description": "The status of the transaction." |
371 | 376 | }, |
372 | 377 | "commandId": { |
373 | | - "$ref": "#/components/schemas/CommandId" |
| 378 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/CommandId" |
374 | 379 | } |
375 | 380 | }, |
376 | 381 | "required": ["status", "commandId"] |
|
412 | 417 | "description": "The status of the transaction." |
413 | 418 | }, |
414 | 419 | "commandId": { |
415 | | - "$ref": "#/components/schemas/CommandId" |
| 420 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/CommandId" |
416 | 421 | }, |
417 | 422 | "payload": { |
418 | | - "$ref": "#/components/schemas/TxChangedSignedPayload" |
| 423 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedSignedPayload" |
419 | 424 | } |
420 | 425 | }, |
421 | 426 | "required": ["status", "commandId", "payload"] |
|
451 | 456 | "description": "The status of the transaction." |
452 | 457 | }, |
453 | 458 | "commandId": { |
454 | | - "$ref": "#/components/schemas/CommandId" |
| 459 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/CommandId" |
455 | 460 | }, |
456 | 461 | "payload": { |
457 | | - "$ref": "#/components/schemas/TxChangedExecutedPayload" |
| 462 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedExecutedPayload" |
458 | 463 | } |
459 | 464 | }, |
460 | 465 | "required": ["status", "commandId", "payload"] |
|
472 | 477 | "description": "The status of the transaction." |
473 | 478 | }, |
474 | 479 | "commandId": { |
475 | | - "$ref": "#/components/schemas/CommandId" |
| 480 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/CommandId" |
476 | 481 | } |
477 | 482 | }, |
478 | 483 | "required": ["status", "commandId"] |
|
482 | 487 | "description": "Event emitted when a transaction changes.", |
483 | 488 | "oneOf": [ |
484 | 489 | { |
485 | | - "$ref": "#/components/schemas/TxChangedPendingEvent" |
| 490 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedPendingEvent" |
486 | 491 | }, |
487 | 492 | { |
488 | | - "$ref": "#/components/schemas/TxChangedSignedEvent" |
| 493 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedSignedEvent" |
489 | 494 | }, |
490 | 495 | { |
491 | | - "$ref": "#/components/schemas/TxChangedExecutedEvent" |
| 496 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedExecutedEvent" |
492 | 497 | }, |
493 | 498 | { |
494 | | - "$ref": "#/components/schemas/TxChangedFailedEvent" |
| 499 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/TxChangedFailedEvent" |
495 | 500 | } |
496 | 501 | ] |
497 | 502 | }, |
|
500 | 505 | "type": "object", |
501 | 506 | "properties": { |
502 | 507 | "kernel": { |
503 | | - "$ref": "#/components/schemas/KernelInfo" |
| 508 | + "$ref": "api-specs/openrpc-dapp-api.json#/components/schemas/KernelInfo" |
504 | 509 | }, |
505 | 510 | "isConnected": { |
506 | 511 | "title": "isConnected", |
|
517 | 522 | "type": "string", |
518 | 523 | "description": "If not connected to a network, the reason why." |
519 | 524 | }, |
520 | | - "userUrl": { |
521 | | - "$ref": "#/components/schemas/UserUrl" |
522 | | - }, |
523 | 525 | "network": { |
524 | 526 | "title": "network", |
525 | 527 | "type": "object", |
|
0 commit comments