Skip to content

Commit

Permalink
Merge pull request #191 from starkware-libs/fix_block_receipts
Browse files Browse the repository at this point in the history
refactor BLOCK_BODY_WITH_RECEIPTS (#191)
  • Loading branch information
ArielElp authored Feb 22, 2024
2 parents 159fb9c + fe8266c commit c198420
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1418,25 +1418,21 @@
"description": "The transactions in this block",
"type": "array",
"items": {
"title": "transactions in block",
"type": "object",
"allOf": [
{
"title": "transaction and receipt",
"properties": {
"transaction": {
"title": "transaction",
"$ref": "#/components/schemas/TXN"
},
{
"type": "object",
"properties": {
"receipt": {
"title": "receipt",
"$ref": "#/components/schemas/TXN_RECEIPT"
}
},
"required": [
"receipt"
]
"receipt": {
"title": "receipt",
"$ref": "#/components/schemas/TXN_RECEIPT_IN_BLOCK"
}
},
"required": [
"transaction",
"receipt"
]
}
}
Expand Down Expand Up @@ -2856,6 +2852,7 @@
},
"finality_status": {
"title": "Finality status",
"description": "finality status of the tx, which is ACCEPTED_ON_L2 when included in a pending receipt, and can be ACCEPTED_ON_L1 when part of a getBlockWithReceipts response",
"$ref": "#/components/schemas/TXN_FINALITY_STATUS"
},
"block_hash": {
Expand Down Expand Up @@ -3208,6 +3205,10 @@
}
]
},
"TXN_RECEIPT_IN_BLOCK": {
"title": "receipt in block",
"$ref": "#/components/schemas/PENDING_TXN_RECEIPT"
},
"PENDING_COMMON_RECEIPT_PROPERTIES": {
"title": "Pending common receipt properties",
"description": "Common properties for a pending transaction receipt",
Expand Down Expand Up @@ -3246,11 +3247,7 @@
},
"finality_status": {
"title": "Finality status",
"type": "string",
"enum": [
"ACCEPTED_ON_L2"
],
"description": "The finality status of the transaction"
"$ref": "#/components/schemas/TXN_FINALITY_STATUS"
},
"execution_status": {
"title": "Execution status",
Expand Down

0 comments on commit c198420

Please sign in to comment.