Skip to content

Commit

Permalink
add ordering to trace events and messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielElp committed Sep 13, 2023
1 parent 2bbe96f commit 8f93316
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,12 @@
"description": "The events emitted in this invocation",
"type": "array",
"items": {
"$ref": "#/components/schemas/EVENT"
"allOf": [
{},
{
"$ref": "#/components/schemas/EVENT"
}
]
}
},
"messages": {
Expand All @@ -342,7 +347,17 @@
"$ref": "#/components/schemas/MSG_TO_L1"
}
}
}
},
"required": [
"caller_address",
"class_hash",
"entry_point_type",
"call_type",
"result",
"calls",
"events",
"messages"
]
}
]
},
Expand All @@ -361,6 +376,46 @@
"CALL"
]
},
"ORDERED_EVENT": {
"type": "object",
"title": "orderedEvent",
"description": "an event alongside its order within the transaction",
"allOf": [
{
"type": "object",
"properties": {
"order": {
"title": "order",
"description": "the order of the event within the transaction",
"type": "number"
}
}
},
{
"$ref": "#/components/schemas/EVENT"
}
]
},
"ORDERED_MESSAGE": {
"type": "object",
"title": "orderedMessage",
"description": "a message alongside its order within the transaction",
"allOf": [
{
"type": "object",
"properties": {
"order": {
"title": "order",
"description": "the order of the message within the transaction",
"type": "number"
}
}
},
{
"$ref": "#/components/schemas/MSG_TO_L1"
}
]
},
"FELT": {
"$ref": "./starknet_api_openrpc.json#/components/schemas/FELT"
},
Expand Down

0 comments on commit 8f93316

Please sign in to comment.