Skip to content

Commit

Permalink
add fee unit to the receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielElp committed Nov 1, 2023
1 parent 04642cc commit 83edf3c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
28 changes: 26 additions & 2 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2559,7 +2559,7 @@
},
"actual_fee": {
"title": "Actual fee",
"$ref": "#/components/schemas/FELT",
"$ref": "#/components/schemas/FEE_PAYMENT",
"description": "The fee that was charged by the sequencer"
},
"execution_status": {
Expand Down Expand Up @@ -2932,7 +2932,7 @@
},
"actual_fee": {
"title": "Actual fee",
"$ref": "#/components/schemas/FELT",
"$ref": "#/components/schemas/FEE_PAYMENT",
"description": "The fee that was charged by the sequencer"
},
"messages_sent": {
Expand Down Expand Up @@ -3502,6 +3502,30 @@
"overall_fee"
]
},
"FEE_PAYMENT": {
"title": "Fee Payment",
"description": "fee payment info as it appears in receipts",
"type": "object",
"properties": {
"amount": {
"title": "Amunt",
"description": "amount paid",
"$ref": "#/components/schemas/FELT"
},
"unit": {
"title": "fee unit",
"type": "string",
"enum": [
"WEI",
"STRK"
]
}
},
"required": [
"amount",
"unit"
]
},
"DA_MODE": {
"title": "DA mode",
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
},
"BLOCK_NOT_FOUND": {
"code": 24,
"message": "Invalid block hash"
"message": "Block not found"
},
"CONTRACT_ERROR": {
"code": 40,
Expand Down

0 comments on commit 83edf3c

Please sign in to comment.