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

add stricter restrictions on v3 fields #169

Merged
merged 1 commit into from
Nov 19, 2023
Merged
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
24 changes: 18 additions & 6 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,18 @@
"type": "string",
"pattern": "^0x[a-fA-F0-9]+$"
},
"u64": {
"type": "string",
"title": "u64",
"description": "64 bit integers, represented by hex string of length at most 16",
"pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,15})$"
},
"u128": {
"type": "string",
"title": "u128",
"description": "64 bit integers, represented by hex string of length at most 32",
"pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,31})$"
},
"CHAIN_ID": {
"title": "Chain id",
"description": "StarkNet chain id, given in hex representation.",
Expand Down Expand Up @@ -1885,7 +1897,7 @@
},
"tip": {
"title": "Tip",
"$ref": "#/components/schemas/FELT",
"$ref": "#/components/schemas/u64",
"description": "the tip for the transaction"
},
"paymaster_data": {
Expand Down Expand Up @@ -2150,7 +2162,7 @@
},
"tip": {
"title": "Tip",
"$ref": "#/components/schemas/FELT",
"$ref": "#/components/schemas/u64",
"description": "the tip for the transaction"
},
"paymaster_data": {
Expand Down Expand Up @@ -2328,7 +2340,7 @@
},
"tip": {
"title": "Tip",
"$ref": "#/components/schemas/FELT",
"$ref": "#/components/schemas/u64",
"description": "the tip for the transaction"
},
"paymaster_data": {
Expand Down Expand Up @@ -2581,7 +2593,7 @@
},
"tip": {
"title": "Tip",
"$ref": "#/components/schemas/FELT",
"$ref": "#/components/schemas/u64",
"description": "the tip for the transaction"
},
"paymaster_data": {
Expand Down Expand Up @@ -3698,12 +3710,12 @@
"max_amount": {
"title": "max amount",
"description": "the max amount of the resource that can be used in the tx",
"$ref": "#/components/schemas/FELT"
"$ref": "#/components/schemas/u64"
},
"max_price_per_unit": {
"title": "max price",
"description": "the max price per unit of this resource for this tx",
"$ref": "#/components/schemas/FELT"
"$ref": "#/components/schemas/u128"
}
},
"required": [
Expand Down