Skip to content

Commit

Permalink
Merge pull request #138 from starkware-libs/add_info_to_trace
Browse files Browse the repository at this point in the history
Trace improvement: add state diffs and order to events/messages (#138)
  • Loading branch information
ArielElp authored Sep 21, 2023
2 parents 502c40f + 2affa92 commit cf5caa7
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
},
"state_diff": {
"title": "state_diff",
"description": "the state diffs induced by the transaction",
"$ref": "#/components/schemas/STATE_DIFF"
},
"type": {
"title": "Type",
"type": "string",
Expand All @@ -193,6 +198,7 @@
"validate_invocation",
"execute_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
]
},
Expand All @@ -207,6 +213,11 @@
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
},
"state_diff": {
"title": "state_diff",
"description": "the state diffs induced by the transaction",
"$ref": "#/components/schemas/STATE_DIFF"
},
"type": {
"title": "Type",
"type": "string",
Expand All @@ -218,6 +229,7 @@
"required": [
"validate_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
]
},
Expand All @@ -236,6 +248,11 @@
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
},
"state_diff": {
"title": "state_diff",
"description": "the state diffs induced by the transaction",
"$ref": "#/components/schemas/STATE_DIFF"
},
"type": {
"title": "Type",
"type": "string",
Expand All @@ -248,6 +265,7 @@
"validate_invocation",
"constructor_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
]
},
Expand Down Expand Up @@ -331,20 +349,15 @@
"description": "The events emitted in this invocation",
"type": "array",
"items": {
"allOf": [
{},
{
"$ref": "#/components/schemas/EVENT"
}
]
"$ref": "#/components/schemas/ORDERED_EVENT"
}
},
"messages": {
"title": "L1 Messages",
"description": "The messages sent by this invocation to L1",
"type": "array",
"items": {
"$ref": "#/components/schemas/MSG_TO_L1"
"$ref": "#/components/schemas/ORDERED_MESSAGE"
}
}
},
Expand Down Expand Up @@ -436,6 +449,9 @@
},
"BROADCASTED_TXN": {
"$ref": "./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_TXN"
},
"STATE_DIFF": {
"$ref": "./api/starknet_api_openrpc.json#/components/schemas/STATE_DIFF"
}
},
"errors": {
Expand Down

0 comments on commit cf5caa7

Please sign in to comment.