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

fix: missing/invalid required field #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
41 changes: 34 additions & 7 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,11 @@
"description": "The Cairo assembly hash corresponding to the declared class",
"$ref": "#/components/schemas/FELT"
}
}
},
"required": [
"class_hash",
"compiled_class_hash"
]
}
},
"deployed_contracts": {
Expand Down Expand Up @@ -1223,7 +1227,11 @@
"description": "The new class hash",
"$ref": "#/components/schemas/FELT"
}
}
},
"required": [
"contract_address",
"class_hash"
]
}
},
"nonces": {
Expand All @@ -1244,7 +1252,11 @@
"description": "The nonce for the given address at the end of the block",
"$ref": "#/components/schemas/FELT"
}
}
},
"required": [
"contract_address",
"nonce"
]
}
}
},
Expand Down Expand Up @@ -1737,6 +1749,10 @@
"description": "The new value applied to the given address",
"$ref": "#/components/schemas/FELT"
}
},
"required": {
"key",
"value"
}
}
}
Expand Down Expand Up @@ -3131,7 +3147,8 @@
"$ref": "#/components/schemas/BLOCK_NUMBER",
"description": "If this field is missing, it means the receipt belongs to the pending block"
}
}
},
"required": []
}
]
},
Expand Down Expand Up @@ -3374,7 +3391,12 @@
"$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT"
}
}
}
},
"required": [
"CONSTRUCTOR",
"EXTERNAL",
"L1_HANDLER"
]
},
"abi": {
"title": "Contract ABI",
Expand Down Expand Up @@ -3522,7 +3544,10 @@
"description": "offset of this property within the struct",
"type": "integer"
}
}
},
"required": [
"offset"
]
}
]
},
Expand Down Expand Up @@ -3958,7 +3983,9 @@
"type": "string"
}
},
"required": "revert_error"
"required": [
"revert_error"
]
}
},
"TRANSACTION_EXECUTION_ERROR": {
Expand Down
27 changes: 22 additions & 5 deletions api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
"title": "the transaction's resources and fee",
"$ref": "#/components/schemas/FEE_ESTIMATE"
}
}
},
"required": [
"transaction_trace",
"fee_estimation"
]
}
}
}
Expand Down Expand Up @@ -133,7 +137,11 @@
"trace_root": {
"$ref": "#/components/schemas/TRANSACTION_TRACE"
}
}
},
"required": [
"transaction_hash",
"trace_root"
]
}
}
},
Expand Down Expand Up @@ -429,7 +437,10 @@
"description": "the order of the event within the transaction",
"type": "integer"
}
}
},
"required": [
"order"
]
},
{
"$ref": "#/components/schemas/EVENT"
Expand All @@ -449,7 +460,10 @@
"description": "the order of the message within the transaction",
"type": "integer"
}
}
},
"required": [
"order"
]
},
{
"$ref": "#/components/schemas/MSG_TO_L1"
Expand Down Expand Up @@ -502,7 +516,10 @@
"REJECTED"
]
}
}
},
"required": [
"status"
]
}
},
"TXN_HASH_NOT_FOUND": {
Expand Down