|
1 | 1 | { |
2 | 2 | "openrpc": "1.0.0-rc1", |
3 | 3 | "info": { |
4 | | - "version": "0.9.0", |
| 4 | + "version": "0.10.0", |
5 | 5 | "title": "StarkNet Node API", |
6 | 6 | "license": {} |
7 | 7 | }, |
|
669 | 669 | } |
670 | 670 | }, |
671 | 671 | "errors": [ |
| 672 | + { |
| 673 | + "$ref": "#/components/errors/CONTRACT_NOT_FOUND" |
| 674 | + }, |
672 | 675 | { |
673 | 676 | "$ref": "#/components/errors/TRANSACTION_EXECUTION_ERROR" |
674 | 677 | }, |
|
708 | 711 | } |
709 | 712 | }, |
710 | 713 | "errors": [ |
| 714 | + { |
| 715 | + "$ref": "#/components/errors/CONTRACT_NOT_FOUND" |
| 716 | + }, |
711 | 717 | { |
712 | 718 | "$ref": "#/components/errors/CONTRACT_ERROR" |
713 | 719 | }, |
|
949 | 955 | "storage_keys": { |
950 | 956 | "type": "array", |
951 | 957 | "items": { |
952 | | - "$ref": "#/components/schemas/FELT" |
| 958 | + "$ref": "#/components/schemas/STORAGE_KEY" |
953 | 959 | } |
954 | 960 | } |
955 | 961 | }, |
|
1108 | 1114 | "title": "Transaction hash", |
1109 | 1115 | "description": "The transaction that emitted the event", |
1110 | 1116 | "$ref": "#/components/schemas/TXN_HASH" |
| 1117 | + }, |
| 1118 | + "transaction_index": { |
| 1119 | + "title": "Transaction index", |
| 1120 | + "description": "The index of the transaction in the block by which the event was emitted", |
| 1121 | + "type": "integer", |
| 1122 | + "minimum": 0 |
| 1123 | + }, |
| 1124 | + "event_index": { |
| 1125 | + "title": "Event index", |
| 1126 | + "description": "The index of the event in the transaction by which it was emitted", |
| 1127 | + "type": "integer", |
| 1128 | + "minimum": 0 |
1111 | 1129 | } |
1112 | 1130 | }, |
1113 | | - "required": ["transaction_hash"] |
| 1131 | + "required": ["transaction_hash", "transaction_index", "event_index"] |
1114 | 1132 | } |
1115 | 1133 | ] |
1116 | 1134 | }, |
|
1343 | 1361 | } |
1344 | 1362 | } |
1345 | 1363 | }, |
| 1364 | + "migrated_compiled_classes": { |
| 1365 | + "title": "Migrated compiled classes", |
| 1366 | + "type": "array", |
| 1367 | + "items": { |
| 1368 | + "title": "Migrated classes", |
| 1369 | + "type": "object", |
| 1370 | + "description": "The class hash and the new Blake-migrated compiled class hash", |
| 1371 | + "properties": { |
| 1372 | + "class_hash": { |
| 1373 | + "title": "Class hash", |
| 1374 | + "description": "The hash of the class", |
| 1375 | + "$ref": "#/components/schemas/FELT" |
| 1376 | + }, |
| 1377 | + "compiled_class_hash": { |
| 1378 | + "title": "Compiled class hash", |
| 1379 | + "description": "The Blake-migrated Cairo assembly hash corresponding to the class", |
| 1380 | + "$ref": "#/components/schemas/FELT" |
| 1381 | + } |
| 1382 | + } |
| 1383 | + } |
| 1384 | + }, |
1346 | 1385 | "deployed_contracts": { |
1347 | 1386 | "title": "Deployed contracts", |
1348 | 1387 | "type": "array", |
|
1418 | 1457 | "$ref": "#/components/schemas/STATE_DIFF" |
1419 | 1458 | } |
1420 | 1459 | }, |
1421 | | - "required": ["old_root", "state_diff"], |
| 1460 | + "required": ["state_diff"], |
1422 | 1461 | "additionalProperties": false |
1423 | 1462 | }, |
1424 | 1463 | "STATE_UPDATE": { |
|
1608 | 1647 | "title": "Starknet version", |
1609 | 1648 | "description": "Semver of the current Starknet protocol", |
1610 | 1649 | "type": "string" |
| 1650 | + }, |
| 1651 | + "event_commitment": { |
| 1652 | + "title": "Event commitment", |
| 1653 | + "description": "The root of Merkle Patricia trie for events in the block. For blocks where this data is not available (e.g., old blocks), use 0x0", |
| 1654 | + "$ref": "#/components/schemas/FELT" |
| 1655 | + }, |
| 1656 | + "transaction_commitment": { |
| 1657 | + "title": "Transaction commitment", |
| 1658 | + "description": "The root of Merkle Patricia trie for transactions in the block. For blocks where this data is not available (e.g., old blocks), use 0x0", |
| 1659 | + "$ref": "#/components/schemas/FELT" |
| 1660 | + }, |
| 1661 | + "receipt_commitment": { |
| 1662 | + "title": "Receipt commitment", |
| 1663 | + "description": "The root of Merkle Patricia trie for receipts in the block. For blocks where this data is not available (e.g., old blocks), use 0x0", |
| 1664 | + "$ref": "#/components/schemas/FELT" |
| 1665 | + }, |
| 1666 | + "state_diff_commitment": { |
| 1667 | + "title": "State diff commitment", |
| 1668 | + "description": "The state diff commitment hash in the block. For blocks where this data is not available (e.g., old blocks), use 0x0", |
| 1669 | + "$ref": "#/components/schemas/FELT" |
| 1670 | + }, |
| 1671 | + "event_count": { |
| 1672 | + "title": "Event count", |
| 1673 | + "description": "The number of events in the block", |
| 1674 | + "type": "integer", |
| 1675 | + "minimum": 0 |
| 1676 | + }, |
| 1677 | + "transaction_count": { |
| 1678 | + "title": "Transaction count", |
| 1679 | + "description": "The number of transactions in the block", |
| 1680 | + "type": "integer", |
| 1681 | + "minimum": 0 |
| 1682 | + }, |
| 1683 | + "state_diff_length": { |
| 1684 | + "title": "State diff length", |
| 1685 | + "description": "The length of the state diff in the block. For blocks where this data is not available (e.g., old blocks), compute from state diff if possible, otherwise use 0", |
| 1686 | + "type": "integer", |
| 1687 | + "minimum": 0 |
1611 | 1688 | } |
1612 | 1689 | }, |
1613 | 1690 | "required": [ |
|
1621 | 1698 | "l2_gas_price", |
1622 | 1699 | "l1_data_gas_price", |
1623 | 1700 | "l1_da_mode", |
1624 | | - "starknet_version" |
| 1701 | + "starknet_version", |
| 1702 | + "event_commitment", |
| 1703 | + "transaction_commitment", |
| 1704 | + "receipt_commitment", |
| 1705 | + "state_diff_commitment", |
| 1706 | + "event_count", |
| 1707 | + "transaction_count", |
| 1708 | + "state_diff_length" |
1625 | 1709 | ] |
1626 | 1710 | }, |
1627 | 1711 | "PRE_CONFIRMED_BLOCK_HEADER": { |
|
3805 | 3889 | }, |
3806 | 3890 | "ENTRYPOINT_NOT_FOUND": { |
3807 | 3891 | "code": 21, |
3808 | | - "message": "Requested entrypoint does not exist in the contract" |
| 3892 | + "message": "Requested entry point does not exist in the contract" |
3809 | 3893 | }, |
3810 | 3894 | "BLOCK_NOT_FOUND": { |
3811 | 3895 | "code": 24, |
|
0 commit comments