Skip to content

Commit

Permalink
fix open rpc spec (#4716)
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Jun 21, 2024
1 parent 721f4ce commit c439533
Showing 1 changed file with 39 additions and 10 deletions.
49 changes: 39 additions & 10 deletions massa-node/base_config/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@
"type": "number"
},
"end_timestamp": {
"description": "(Only in tesnets)\nTime in milliseconds when the blockclique started.",
"description": "(Only in testnets)\nTime in milliseconds when the blockclique started.",
"oneOf": [
{
"type": "null"
Expand Down Expand Up @@ -2123,7 +2123,7 @@
"type": "number"
},
"active_cursor": {
"descritpion": "active execution cursor slot",
"description": "active execution cursor slot",
"$ref": "#/components/schemas/Slot"
},
"final_cursor": {
Expand Down Expand Up @@ -2397,8 +2397,15 @@
"description": "When was it generated"
},
"block": {
"$ref": "#/components/schemas/BlockId",
"description": "Block Id"
"description": "Block Id",
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/BlockId"
}
]
},
"read_only": {
"description": "Wether the event was generated during read only call",
Expand All @@ -2416,8 +2423,15 @@
"type": "number"
},
"origin_operation_id": {
"$ref": "#/components/schemas/OperationId",
"description": "Origin operation id"
"description": "Origin operation id",
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/OperationId"
}
]
},
"is_final": {
"description": "Whether the event is final",
Expand Down Expand Up @@ -2877,7 +2891,7 @@
"$ref": "#/components/schemas/Transaction",
"description": "transfer coins from sender to recipient"
},
"ExecutSC": {
"ExecuteSC": {
"$ref": "#/components/schemas/ExecuteSC",
"description": "Execute a smart contract."
},
Expand Down Expand Up @@ -3328,14 +3342,29 @@
},
"execution_trail_hash_change": {
"description": "execution trail hash change",
"type": "string"
"oneOf": [
{
"type": "object",
"properties": {
"Set": {
"type": "string"
}
},
"required": [
"Set"
]
},
{
"type": "string"
}
]
}
},
"additionalProperties": false
},
"Transaction": {
"title": "Transaction",
"description": "Transation",
"description": "Transaction",
"required": [
"amount",
"recipient_address"
Expand Down Expand Up @@ -3384,7 +3413,7 @@
"type": "string"
},
"context": {
"description": "Context of the transfer : operation or asyncronous execution",
"description": "Context of the transfer : operation or asynchronous execution",
"type": "object"
},
"succeed": {
Expand Down

0 comments on commit c439533

Please sign in to comment.