Skip to content

Commit

Permalink
add type to traces
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielElp committed Sep 2, 2023
1 parent 0ad1d8e commit db46881
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
"type": "object",
"properties": {
"transactions": {
"title": "Transaction",
"title": "Transaction hashes",
"description": "The hashes of the transactions included in this block",
"type": "array",
"items": {
Expand Down
57 changes: 53 additions & 4 deletions api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,21 @@
},
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
},
"type": {
"title": "Type",
"type": "string",
"enum": [
"INVOKE"
]
}
}
},
"required": [
"validate_invocation",
"execute_invocation",
"fee_transfer_invocation",
"type"
]
},
{
"name": "DECLARE_TXN_TRACE",
Expand All @@ -193,8 +206,20 @@
},
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
},
"type": {
"title": "Type",
"type": "string",
"enum": [
"DECLARE"
]
}
}
},
"required": [
"validate_invocation",
"fee_transfer_invocation",
"type"
]
},
{
"name": "DEPLOY_ACCOUNT_TXN_TRACE",
Expand All @@ -210,8 +235,21 @@
},
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
},
"type": {
"title": "Type",
"type": "string",
"enum": [
"DEPLOY_ACCOUNT"
]
}
}
},
"required": [
"validate_invocation",
"constructor_invocation",
"fee_transfer_invocation",
"type"
]
},
{
"name": "L1_HANDLER_TXN_TRACE",
Expand All @@ -221,8 +259,19 @@
"function_invocation": {
"description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)",
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
},
"type": {
"title": "Type",
"type": "string",
"enum": [
"L1_HANDLER"
]
}
}
},
"required": [
"function_invocation",
"type"
]
}
]
},
Expand Down

0 comments on commit db46881

Please sign in to comment.