Skip to content

Commit

Permalink
trace: remove required/add DELEGATE call_type/add state_diff to L1_HA…
Browse files Browse the repository at this point in the history
…NDLER trace
  • Loading branch information
ArielElp committed Nov 8, 2023
1 parent c0980ed commit 75718c8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openrpc": "1.0.0-rc1",
"info": {
"version": "0.5.0",
"version": "0.5.1",
"title": "StarkNet Node API",
"license": {}
},
Expand Down
29 changes: 13 additions & 16 deletions api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openrpc": "1.0.0-rc1",
"info": {
"version": "0.5.0",
"version": "0.5.1",
"title": "StarkNet Trace API",
"license": {}
},
Expand Down Expand Up @@ -195,11 +195,8 @@
}
},
"required": [
"validate_invocation",
"execute_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
"type",
"execute_invocation"
]
},
{
Expand Down Expand Up @@ -227,9 +224,6 @@
}
},
"required": [
"validate_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
]
},
Expand Down Expand Up @@ -262,11 +256,8 @@
}
},
"required": [
"validate_invocation",
"constructor_invocation",
"fee_transfer_invocation",
"state_diff",
"type"
"type",
"constructor_invocation"
]
},
{
Expand All @@ -278,6 +269,11 @@
"description": "the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)",
"$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 @@ -287,8 +283,8 @@
}
},
"required": [
"function_invocation",
"type"
"type",
"function_invocation"
]
}
]
Expand Down Expand Up @@ -385,6 +381,7 @@
"CALL_TYPE": {
"type": "string",
"enum": [
"DELEGATE",
"LIBRARY_CALL",
"CALL"
]
Expand Down
4 changes: 2 additions & 2 deletions api/starknet_write_api.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openrpc": "1.0.0-rc1",
"info": {
"version": "0.5.0",
"version": "0.5.1",
"title": "StarkNet Node Write API",
"license": {}
},
Expand Down Expand Up @@ -295,4 +295,4 @@
}
}
}
}
}

0 comments on commit 75718c8

Please sign in to comment.