Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public Api - Openrpc spec #4716

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading