From 13a5c2362a9a396730bad213bb34450ff7c24475 Mon Sep 17 00:00:00 2001 From: Omri Eshhar Date: Wed, 11 Oct 2023 13:59:36 +0300 Subject: [PATCH 1/3] fix: fix execution_resources schema --- api/starknet_api_openrpc.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 5bb3696..1cad395 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -3278,47 +3278,47 @@ "steps": { "title": "Steps", "description": "The number of Cairo steps used", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "memory_holes": { "title": "Memory holes", "description": "The number of unused memory cells (each cell is roughly equivalent to a step)", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "range_check_builtin_applications": { "title": "Range check applications", "description": "The number of RANGE_CHECK builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "pedersen_builtin_applications": { "title": "Pedersen applications", "description": "The number of Pedersen builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "poseidon_builtin_applications": { "title": "Poseidon applications", "description": "The number of Poseidon builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "ec_op_builtin_applications": { "title": "EC_OP applications", "description": "the number of EC_OP builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "ecdsa_builtin_applications": { "title": "ECDSA applications", "description": "the number of ECDSA builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "bitwise_builtin_applications": { "title": "BITWISE applications", "description": "the number of BITWISE builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "keccak_builtin_applications": { "title": "Keccak applications", "description": "The number of KECCAK builtin instances", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" } }, "required": [ From c1b00a566ee0cbcf2378bd18d249c682c7978d44 Mon Sep 17 00:00:00 2001 From: Omri Eshhar Date: Wed, 11 Oct 2023 17:02:25 +0300 Subject: [PATCH 2/3] fix price and fee schema --- api/starknet_api_openrpc.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 1cad395..7bdc8d2 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -3205,17 +3205,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" + "type": "integer" }, "gas_price": { "title": "Gas price", "description": "The gas price (in gwei) that was used in the cost estimation", - "$ref": "#/components/schemas/NUM_AS_HEX" + "type": "integer" }, "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" + "type": "integer" } }, "required": [ @@ -3239,12 +3239,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" + "type": "integer" }, "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" + "type": "integer" } }, "required": [ @@ -3258,12 +3258,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" + "type": "integer" }, "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" + "type": "integer" } }, "required": [ From bb00ec48196f44ad89c32f477d668e4207be1c90 Mon Sep 17 00:00:00 2001 From: Omri Eshhar Date: Thu, 12 Oct 2023 10:34:09 +0300 Subject: [PATCH 3/3] revert price and fee schema --- api/starknet_api_openrpc.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 7bdc8d2..31e4355 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -3205,17 +3205,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)", - "type": "integer" + "$ref": "#/components/schemas/NUM_AS_HEX" }, "gas_price": { "title": "Gas price", "description": "The gas price (in gwei) that was used in the cost estimation", - "type": "integer" + "$ref": "#/components/schemas/NUM_AS_HEX" }, "overall_fee": { "title": "Overall fee", "description": "The estimated fee for the transaction (in gwei), product of gas_consumed and gas_price", - "type": "integer" + "$ref": "#/components/schemas/NUM_AS_HEX" } }, "required": [ @@ -3239,12 +3239,12 @@ "max_amount": { "title": "max amount", "description": "the max amount of the resource that can be used in the tx", - "type": "integer" + "$ref": "#/components/schemas/NUM_AS_HEX" }, "max_price_per_unit": { "title": "max price", "description": "the max price per unit of this resource for this tx", - "type": "integer" + "$ref": "#/components/schemas/NUM_AS_HEX" } }, "required": [ @@ -3258,12 +3258,12 @@ "price_in_strk": { "title": "price in strk", "description": "the price of one unit of the given resource, denominated in strk", - "type": "integer" + "$ref": "#/components/schemas/NUM_AS_HEX" }, "price_in_wei": { "title": "price in wei", "description": "the price of one unit of the given resource, denominated in wei", - "type": "integer" + "$ref": "#/components/schemas/NUM_AS_HEX" } }, "required": [ @@ -3392,4 +3392,4 @@ } } } -} \ No newline at end of file +}