Skip to content

Commit

Permalink
Merge pull request #164 from starkware-libs/properties_bounds
Browse files Browse the repository at this point in the history
Bound number properties and make builtin resources optional (#164)
  • Loading branch information
ArielElp authored Nov 12, 2023
2 parents 95d339c + 274656b commit e252191
Showing 1 changed file with 46 additions and 26 deletions.
72 changes: 46 additions & 26 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,7 @@
"version": {
"title": "Version",
"description": "Version of the transaction scheme",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
},
"type": {
"title": "Deploy",
Expand Down Expand Up @@ -2657,7 +2657,7 @@
"version": {
"title": "Version",
"description": "Version of the transaction scheme",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
},
"type": {
"title": "type",
Expand Down Expand Up @@ -3621,17 +3621,17 @@
"gas_consumed": {
"title": "Gas consumed",
"description": "The Ethereum gas cost of the transaction (see https://docs.starknet.io/docs/Fees/fee-mechanism for more info)",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
},
"gas_price": {
"title": "Gas price",
"description": "The gas price (in gwei) that was used in the cost estimation",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
},
"overall_fee": {
"title": "Overall fee",
"description": "The estimated fee for the transaction (in gwei), product of gas_consumed and gas_price",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
}
},
"required": [
Expand Down Expand Up @@ -3698,12 +3698,12 @@
"max_amount": {
"title": "max amount",
"description": "the max amount of the resource that can be used in the tx",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
},
"max_price_per_unit": {
"title": "max price",
"description": "the max price per unit of this resource for this tx",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
}
},
"required": [
Expand All @@ -3717,12 +3717,12 @@
"price_in_strk": {
"title": "price in strk",
"description": "the price of one unit of the given resource, denominated in strk",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
},
"price_in_wei": {
"title": "price in wei",
"description": "the price of one unit of the given resource, denominated in wei",
"$ref": "#/components/schemas/NUM_AS_HEX"
"$ref": "#/components/schemas/FELT"
}
},
"required": [
Expand All @@ -3738,58 +3738,78 @@
"steps": {
"title": "Steps",
"description": "The number of Cairo steps used",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"memory_holes": {
"title": "Memory holes",
"description": "The number of unused memory cells (each cell is roughly equivalent to a step)",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"range_check_builtin_applications": {
"title": "Range check applications",
"description": "The number of RANGE_CHECK builtin instances",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"pedersen_builtin_applications": {
"title": "Pedersen applications",
"description": "The number of Pedersen builtin instances",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"poseidon_builtin_applications": {
"title": "Poseidon applications",
"description": "The number of Poseidon builtin instances",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"ec_op_builtin_applications": {
"title": "EC_OP applications",
"description": "the number of EC_OP builtin instances",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"ecdsa_builtin_applications": {
"title": "ECDSA applications",
"description": "the number of ECDSA builtin instances",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"bitwise_builtin_applications": {
"title": "BITWISE applications",
"description": "the number of BITWISE builtin instances",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
},
"keccak_builtin_applications": {
"title": "Keccak applications",
"description": "The number of KECCAK builtin instances",
"type": "integer"
"type": "integer",
"not": {
"const": 0
}
}
},
"required": [
"steps",
"range_check_builtin_applications",
"pedersen_builtin_applications",
"poseidon_builtin_applications",
"ec_op_builtin_applications",
"ecdsa_builtin_applications",
"bitwise_builtin_applications",
"keccak_builtin_applications"
"steps"
]
}
},
Expand Down

0 comments on commit e252191

Please sign in to comment.