Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set transaction trace properties required and deny additional properties #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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