|
650 | 650 | ], |
651 | 651 | "result": { |
652 | 652 | "name": "result", |
653 | | - "description": "the fee estimations", |
| 653 | + "description": "The fee estimations", |
654 | 654 | "schema": { |
655 | 655 | "title": "Estimation", |
656 | 656 | "type": "array", |
|
694 | 694 | ], |
695 | 695 | "result": { |
696 | 696 | "name": "result", |
697 | | - "description": "the fee estimation", |
| 697 | + "description": "The fee estimation", |
698 | 698 | "schema": { |
699 | 699 | "$ref": "#/components/schemas/MESSAGE_FEE_ESTIMATE" |
700 | 700 | } |
|
3471 | 3471 | "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally" |
3472 | 3472 | }, |
3473 | 3473 | "PRICE_UNIT_WEI": { |
3474 | | - "title": "price unit wei", |
| 3474 | + "title": "Price unit wei", |
3475 | 3475 | "type": "string", |
3476 | 3476 | "enum": ["WEI"] |
3477 | 3477 | }, |
3478 | 3478 | "PRICE_UNIT_FRI": { |
3479 | | - "title": "price unit fri", |
| 3479 | + "title": "Price unit fri", |
3480 | 3480 | "type": "string", |
3481 | 3481 | "enum": ["FRI"] |
3482 | 3482 | }, |
3483 | 3483 | "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 | + ] |
3488 | 3494 | }, |
3489 | 3495 | "FEE_ESTIMATE_COMMON": { |
3490 | 3496 | "title": "Fee estimation common fields", |
|
3547 | 3553 | "properties": { |
3548 | 3554 | "unit": { |
3549 | 3555 | "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", |
3551 | 3557 | "$ref": "#/components/schemas/PRICE_UNIT_FRI" |
3552 | 3558 | } |
3553 | 3559 | }, |
|
3566 | 3572 | "properties": { |
3567 | 3573 | "unit": { |
3568 | 3574 | "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", |
3570 | 3576 | "$ref": "#/components/schemas/PRICE_UNIT_WEI" |
3571 | 3577 | } |
3572 | 3578 | }, |
|
0 commit comments