Skip to content

Commit

Permalink
Merge pull request #169 from starkware-libs/stricter_limits_for_v3_fi…
Browse files Browse the repository at this point in the history
…elds

add stricter restrictions on v3 fields (#169)
  • Loading branch information
ArielElp authored Nov 19, 2023
2 parents aae966a + 5394f5b commit 18cf0f3
Showing 1 changed file with 18 additions and 6 deletions.
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

0 comments on commit 18cf0f3

Please sign in to comment.