Skip to content

Commit 158b262

Browse files
committed
Update to oneOf for wei/fri
1 parent 9a98f56 commit 158b262

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

api/starknet_api_openrpc.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@
650650
],
651651
"result": {
652652
"name": "result",
653-
"description": "the fee estimations",
653+
"description": "The fee estimations",
654654
"schema": {
655655
"title": "Estimation",
656656
"type": "array",
@@ -694,7 +694,7 @@
694694
],
695695
"result": {
696696
"name": "result",
697-
"description": "the fee estimation",
697+
"description": "The fee estimation",
698698
"schema": {
699699
"$ref": "#/components/schemas/MESSAGE_FEE_ESTIMATE"
700700
}
@@ -3471,20 +3471,26 @@
34713471
"description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally"
34723472
},
34733473
"PRICE_UNIT_WEI": {
3474-
"title": "price unit wei",
3474+
"title": "Price unit wei",
34753475
"type": "string",
34763476
"enum": ["WEI"]
34773477
},
34783478
"PRICE_UNIT_FRI": {
3479-
"title": "price unit fri",
3479+
"title": "Price unit fri",
34803480
"type": "string",
34813481
"enum": ["FRI"]
34823482
},
34833483
"PRICE_UNIT": {
3484-
"title": "price unit",
3485-
"type": "string",
3486-
"enum": ["WEI", "FRI"],
3487-
"description": "The unit used for price calculations, either WEI or FRI"
3484+
"title": "Price unit",
3485+
"description": "Units in which the fee is given",
3486+
"oneOf": [
3487+
{
3488+
"$ref": "#/components/schemas/PRICE_UNIT_WEI"
3489+
},
3490+
{
3491+
"$ref": "#/components/schemas/PRICE_UNIT_FRI"
3492+
}
3493+
]
34883494
},
34893495
"FEE_ESTIMATE_COMMON": {
34903496
"title": "Fee estimation common fields",
@@ -3547,7 +3553,7 @@
35473553
"properties": {
35483554
"unit": {
35493555
"title": "Fee unit",
3550-
"description": "units in which the fee is given, can only be FRI",
3556+
"description": "Units in which the fee is given, can only be FRI",
35513557
"$ref": "#/components/schemas/PRICE_UNIT_FRI"
35523558
}
35533559
},
@@ -3566,7 +3572,7 @@
35663572
"properties": {
35673573
"unit": {
35683574
"title": "Fee unit",
3569-
"description": "units in which the fee is given, can only be WEI",
3575+
"description": "Units in which the fee is given, can only be WEI",
35703576
"$ref": "#/components/schemas/PRICE_UNIT_WEI"
35713577
}
35723578
},

0 commit comments

Comments
 (0)