Skip to content

Commit a2d10fc

Browse files
authored
Merge pull request #290 from starkware-libs/fix_fee_estimate_types
Reconcile the RESOURCE_BOUNDS and FEE_ESTIMATE types (#290)
2 parents ec6997e + 39bd2df commit a2d10fc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

api/starknet_api_openrpc.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3482,37 +3482,37 @@
34823482
"l1_gas_consumed": {
34833483
"title": "L1 gas consumed",
34843484
"description": "The Ethereum gas consumption of the transaction, charged for L1->L2 messages and, depending on the block's DA_MODE, state diffs",
3485-
"$ref": "#/components/schemas/FELT"
3485+
"$ref": "#/components/schemas/u64"
34863486
},
34873487
"l1_gas_price": {
34883488
"title": "L1 gas price",
34893489
"description": "The gas price (in wei or fri, depending on the tx version) that was used in the cost estimation",
3490-
"$ref": "#/components/schemas/FELT"
3490+
"$ref": "#/components/schemas/u128"
34913491
},
34923492
"l2_gas_consumed": {
34933493
"title": "L2 gas consumed",
34943494
"description": "The L2 gas consumption of the transaction",
3495-
"$ref": "#/components/schemas/FELT"
3495+
"$ref": "#/components/schemas/u64"
34963496
},
34973497
"l2_gas_price": {
34983498
"title": "L2 gas price",
34993499
"description": "The L2 gas price (in wei or fri, depending on the tx version) that was used in the cost estimation",
3500-
"$ref": "#/components/schemas/FELT"
3500+
"$ref": "#/components/schemas/u128"
35013501
},
35023502
"l1_data_gas_consumed": {
35033503
"title": "L1 data gas consumed",
35043504
"description": "The Ethereum data gas consumption of the transaction",
3505-
"$ref": "#/components/schemas/FELT"
3505+
"$ref": "#/components/schemas/u64"
35063506
},
35073507
"l1_data_gas_price": {
35083508
"title": "L1 data gas price",
35093509
"description": "The data gas price (in wei or fri, depending on the tx version) that was used in the cost estimation",
3510-
"$ref": "#/components/schemas/FELT"
3510+
"$ref": "#/components/schemas/u128"
35113511
},
35123512
"overall_fee": {
35133513
"title": "Overall fee",
3514-
"description": "The estimated fee for the transaction (in wei or fri, depending on the tx version), equals to gas_consumed*gas_price + data_gas_consumed*data_gas_price",
3515-
"$ref": "#/components/schemas/FELT"
3514+
"description": "The estimated fee for the transaction (in wei or fri, depending on the tx version), equals to l1_gas_consumed*l1_gas_price + l1_data_gas_consumed*l1_data_gas_price + l2_gas_consumed*l2_gas_price",
3515+
"$ref": "#/components/schemas/u128"
35163516
},
35173517
"unit": {
35183518
"title": "Fee unit",

0 commit comments

Comments
 (0)