Skip to content

Commit

Permalink
set transaction trace properties required and deny additional properties
Browse files Browse the repository at this point in the history
  • Loading branch information
yair-starkware committed Aug 24, 2023
1 parent 0e859ff commit 7deef8d
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,21 @@
"description": "the revert reason for the failed execution",
"type": "string"
}
}
},
"required": [
"revert_reason"
]
}
]
},
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
}
}
},
"required": [
"execute_invocation"
],
"additionalProperties": false
},
{
"name": "DECLARE_TXN_TRACE",
Expand All @@ -207,7 +214,12 @@
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
}
}
},
"required": [
"validate_invocation",
"fee_transfer_invocation"
],
"additionalProperties": false
},
{
"name": "DEPLOY_ACCOUNT_TXN_TRACE",
Expand All @@ -224,7 +236,13 @@
"fee_transfer_invocation": {
"$ref": "#/components/schemas/FUNCTION_INVOCATION"
}
}
},
"required": [
"validate_invocation",
"constructor_invocation",
"fee_transfer_invocation"
],
"additionalProperties": false
},
{
"name": "L1_HANDLER_TXN_TRACE",
Expand All @@ -235,7 +253,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"
}
}
},
"required": [
"function_invocation"
],
"additionalProperties": false
}
]
},
Expand Down Expand Up @@ -306,7 +328,17 @@
"$ref": "#/components/schemas/MSG_TO_L1"
}
}
}
},
"required": [
"caller_address",
"class_hash",
"entry_point_type",
"call_type",
"result",
"calls",
"events",
"messages"
]
}
]
},
Expand Down

0 comments on commit 7deef8d

Please sign in to comment.