diff --git a/massa-node/base_config/openrpc.json b/massa-node/base_config/openrpc.json index 3cae8316422..467c50a5f70 100644 --- a/massa-node/base_config/openrpc.json +++ b/massa-node/base_config/openrpc.json @@ -54,7 +54,7 @@ "$ref": "#/components/schemas/ExecuteReadOnlyResponse" } }, - "name": "ExecuteReadOnlyResponse(s)" + "name": "ExecuteReadOnlyResponses" }, "name": "execute_read_only_bytecode", "summary": "Execute a smart contract in a read only context", @@ -85,7 +85,7 @@ "$ref": "#/components/schemas/ExecuteReadOnlyResponse" } }, - "name": "ExecuteReadOnlyResponse(s)" + "name": "ExecuteReadOnlyResponses" }, "name": "execute_read_only_call", "summary": "Call a function of a contract in a read only context", @@ -112,13 +112,13 @@ } ], "result": { + "name": "AddressInfo", "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AddressInfo" } - }, - "name": "AddressInfo(s)" + } }, "name": "get_addresses", "summary": "To check when your address is selected to stake.", @@ -133,7 +133,7 @@ ], "params": [ { - "name": "address filter", + "name": "addressFilter", "description": "Need to provide at least one valid address filter", "schema": { "type": "array", @@ -148,7 +148,10 @@ "schema": { "type": "array", "items": { - "type": "integer" + "type": "array", + "items": { + "type": "number" + } } }, "name": "Addresses bytecode array" @@ -180,13 +183,16 @@ ], "result": { "schema": { - "$ref": "#/components/schemas/BlockInfo" + "type": "array", + "items": { + "$ref": "#/components/schemas/BlockInfo" + } }, "name": "BlockInfo" }, "name": "get_blocks", - "summary": "Get block(s)", - "description": "Get block(s)." + "summary": "Get blocks", + "description": "Get blocks." }, { "tags": [ @@ -231,7 +237,7 @@ "$ref": "#/components/schemas/Clique" } }, - "name": "Clique(s)" + "name": "Cliques" }, "name": "get_cliques", "summary": "Get cliques", @@ -246,7 +252,7 @@ ], "params": [ { - "name": "DatastoreEntryInput(s)", + "name": "DatastoreEntryInputs", "description": "Datastore entry input", "schema": { "type": "array", @@ -263,46 +269,12 @@ "$ref": "#/components/schemas/DataStoreEntryOutput" } }, - "name": "DataStoreEntryOutput(s)" + "name": "DataStoreEntryOutputs" }, "name": "get_datastore_entries", "summary": "Get a data entry both at the latest final and active executed slots for the given addresses.", "description": "Get a data entry both at the latest final and active executed slots for the given addresses.\n\nIf an existing final entry (final_value) is found in the active history, it will return its final value in active_value field. If it was deleted in the active history, it will return null in active_value field." }, - { - "tags": [ - { - "name": "public", - "description": "Massa public api" - } - ], - "params": [ - { - "name": "key", - "schema": { - "type": "string" - }, - "required": true - }, - { - "name": "address", - "schema": { - "$ref": "#/components/schemas/Address" - }, - "required": true - } - ], - "result": { - "schema": { - "$ref": "#/components/schemas/DataStoreEntry" - }, - "name": "DataStoreEntry" - }, - "deprecated": true, - "name": "get_datastore_entry", - "summary": "Get datastore entry", - "description": "Get datastore entry." - }, { "tags": [ { @@ -366,7 +338,7 @@ "$ref": "#/components/schemas/EndorsementInfo" } }, - "name": "EndorsementInfo(s)" + "name": "EndorsementInfos" }, "name": "get_endorsements", "summary": "Get endorsements", @@ -394,7 +366,7 @@ "$ref": "#/components/schemas/SCOutputEvent" } }, - "name": "SCOutputEvent(s)" + "name": "SCOutputEvents" }, "name": "get_filtered_sc_output_event", "summary": "Returns events optionally filtered", @@ -409,23 +381,27 @@ ], "params": [ { - "name": "end", - "schema": { - "type": "number" - }, - "required": false - }, - { - "name": "start", + "name": "TimeInterval", "schema": { - "type": "number" - }, - "required": false + "type": "object", + "properties": { + "start": { + "type": "number" + }, + "end": { + "type": "number" + } + }, + "additionalProperties": false + } } ], "result": { "schema": { - "$ref": "#/components/schemas/GraphInterval" + "type": "array", + "items": { + "$ref": "#/components/schemas/GraphInterval" + } }, "name": "GraphInterval" }, @@ -460,7 +436,7 @@ "$ref": "#/components/schemas/OperationInfo" } }, - "name": "OperationInfo(s)" + "name": "OperationInfos" }, "name": "get_operations", "summary": "Get operations", @@ -559,7 +535,7 @@ } }, "description": "The strings are addresses.", - "name": "Address(es)" + "name": "Addresses" }, "name": "get_staking_addresses", "summary": "Return hashset of staking addresses", @@ -575,7 +551,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -592,8 +568,8 @@ "schema": false }, "name": "node_add_to_bootstrap_blacklist", - "summary": "Add to bootstrap blacklist given IP address(es)", - "description": "Add to bootstrap blacklist given IP address(es)." + "summary": "Add to bootstrap blacklist given IP addresses", + "description": "Add to bootstrap blacklist given IP addresses." }, { "tags": [ @@ -605,7 +581,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -622,8 +598,8 @@ "schema": false }, "name": "node_add_to_bootstrap_whitelist", - "summary": "Add to bootstrap whitelist given IP address(es)", - "description": "Add to bootstrap whitelist given IP address(es)." + "summary": "Add to bootstrap whitelist given IP addresses", + "description": "Add to bootstrap whitelist given IP addresses." }, { "tags": [ @@ -635,7 +611,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -652,8 +628,8 @@ "schema": false }, "name": "node_add_to_peers_whitelist", - "summary": "Add to peers whitelist given IP address(es)", - "description": "Add to peers whitelist given IP address(es)." + "summary": "Add to peers whitelist given IP addresses", + "description": "Add to peers whitelist given IP addresses." }, { "tags": [ @@ -681,8 +657,8 @@ "schema": false }, "name": "node_ban_by_id", - "summary": "Ban given id(s)", - "description": "Ban given id(s)." + "summary": "Ban given ids", + "description": "Ban given ids." }, { "tags": [ @@ -710,8 +686,8 @@ "schema": false }, "name": "node_ban_by_ip", - "summary": "Ban given IP address(es)", - "description": "Ban given IP address(es)." + "summary": "Ban given IP addresses", + "description": "Ban given IP addresses." }, { "tags": [ @@ -723,7 +699,7 @@ "params": [], "result": { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -733,8 +709,8 @@ } }, "name": "node_bootstrap_blacklist", - "summary": "Returns bootstrap blacklist IP address(es)", - "description": "Returns bootstrap blacklist IP address(es)." + "summary": "Returns bootstrap blacklist IP addresses", + "description": "Returns bootstrap blacklist IP addresses." }, { "tags": [ @@ -746,7 +722,7 @@ "params": [], "result": { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -756,8 +732,8 @@ } }, "name": "node_bootstrap_whitelist", - "summary": "Returns bootstrap whitelist IP address(es)", - "description": "Returns bootstrap whitelist IP address(es)." + "summary": "Returns bootstrap whitelist IP addresses", + "description": "Returns bootstrap whitelist IP addresses." }, { "tags": [ @@ -786,7 +762,7 @@ "params": [], "result": { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -796,8 +772,8 @@ } }, "name": "node_peers_whitelist", - "summary": "Returns peers whitelist IP address(es)", - "description": "Returns peers whitelist IP address(es)." + "summary": "Returns peers whitelist IP addresses", + "description": "Returns peers whitelist IP addresses." }, { "tags": [ @@ -809,7 +785,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -826,8 +802,8 @@ "schema": false }, "name": "node_remove_from_bootstrap_blacklist", - "summary": "Remove from bootstrap blacklist given IP address(es)", - "description": "Remove from bootstrap blacklist given IP address(es)." + "summary": "Remove from bootstrap blacklist given IP addresses", + "description": "Remove from bootstrap blacklist given IP addresses." }, { "tags": [ @@ -839,7 +815,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -856,8 +832,8 @@ "schema": false }, "name": "node_remove_from_bootstrap_whitelist", - "summary": "Remove from bootstrap whitelist given IP address(es)", - "description": "Remove from bootstrap whitelist given IP address(es)." + "summary": "Remove from bootstrap whitelist given IP addresses", + "description": "Remove from bootstrap whitelist given IP addresses." }, { "tags": [ @@ -869,7 +845,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -886,8 +862,8 @@ "schema": false }, "name": "node_remove_from_peers_whitelist", - "summary": "Remove from peers whitelist given IP address(es)", - "description": "Remove from peers whitelist given IP address(es)." + "summary": "Remove from peers whitelist given IP addresses", + "description": "Remove from peers whitelist given IP addresses." }, { "tags": [ @@ -899,7 +875,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -916,8 +892,8 @@ "schema": false }, "name": "node_remove_from_whitelist", - "summary": "Remove from whitelist given IP address(es)", - "description": "Remove from whitelist given IP address(es)." + "summary": "Remove from whitelist given IP addresses", + "description": "Remove from whitelist given IP addresses." }, { "tags": [ @@ -1021,8 +997,8 @@ "schema": false }, "name": "node_unban_by_id", - "summary": "Unban given id(s)", - "description": "Unban given id(s)." + "summary": "Unban given ids", + "description": "Unban given ids." }, { "tags": [ @@ -1051,8 +1027,8 @@ "schema": false }, "name": "node_unban_by_ip", - "summary": "Unban given IP address(es)", - "description": "Unban given IP address(es)." + "summary": "Unban given IP addresses", + "description": "Unban given IP addresses." }, { "tags": [ @@ -1064,7 +1040,7 @@ "params": [ { "name": "ip", - "description": "The strings must be IP address(es)", + "description": "The strings must be IP addresses", "schema": { "type": "array", "items": { @@ -1081,8 +1057,8 @@ "schema": false }, "name": "node_whitelist", - "summary": "Whitelist given IP address(es)", - "description": "Whitelist given IP address(es)." + "summary": "Whitelist given IP addresses", + "description": "Whitelist given IP addresses." }, { "tags": [ @@ -1099,7 +1075,8 @@ "items": { "$ref": "#/components/schemas/OperationInput" } - } + }, + "required": true } ], "result": { @@ -1109,7 +1086,7 @@ "$ref": "#/components/schemas/OperationId" } }, - "name": "Operation(s)" + "name": "Operations" }, "name": "send_operations", "summary": "Adds operations to pool", @@ -1445,10 +1422,12 @@ "components": { "schemas": { "Address": { + "title": "Address", "description": "Address", "type": "string" }, "AddressFilter": { + "title": "AddressFilter", "description": "Address filter", "type": "object", "properties": { @@ -1460,7 +1439,8 @@ "type": "boolean", "description": "true means final, false means candidate" } - } + }, + "additionalProperties": false }, "AddressInfo": { "title": "AddressInfo", @@ -1493,7 +1473,7 @@ }, "final_balance": { "description": "The final balance", - "type": "number" + "type": "string" }, "final_roll_count": { "description": "The final roll count", @@ -1511,7 +1491,7 @@ }, "candidate_balance": { "description": "The candidate balance", - "type": "number" + "type": "string" }, "candidate_roll_count": { "description": "The candidate roll count", @@ -1538,10 +1518,11 @@ "type": "object" }, "amount": { - "type": "number" + "type": "string" } } - } + }, + "minItems": 0 }, "next_block_draws": { "description": "The next block draws", @@ -1569,15 +1550,30 @@ }, "created_blocks": { "description": "BlockIds of created blocks", - "type": "string" + "type": "array", + "items": { + "$ref": "#/components/schemas/BlockId", + "type": "string" + }, + "minItems": 0 }, "created_operations": { "description": "OperationIds of created operations", - "type": "string" + "type": "array", + "items": { + "$ref": "#/components/schemas/OperationId", + "type": "string" + }, + "minItems": 0 }, "created_endorsements": { "description": "EndorsementIds of created endorsements", - "type": "string" + "type": "array", + "items": { + "$ref": "#/components/schemas/EndorsementId", + "type": "string" + }, + "minItems": 0 }, "cycle_infos": { "description": "Cycle infos", @@ -1590,7 +1586,11 @@ }, "additionalProperties": false }, + "Amount": { + "type": "integer" + }, "ApiRequest": { + "title": "ApiRequest", "description": "ApiRequest for apiV2", "type": "object", "properties": { @@ -1598,7 +1598,8 @@ "$ref": "#/components/schemas/PageRequest", "description": "Optional page request" } - } + }, + "additionalProperties": false }, "Balance": { "title": "Balance", @@ -1647,6 +1648,7 @@ "additionalProperties": false }, "BlockId": { + "title": "BlockId", "description": "Block identifier", "type": "string" }, @@ -1672,7 +1674,7 @@ "block", "is_final", "is_in_blockclique", - "is_stale" + "is_candidate" ], "type": "object", "properties": { @@ -1680,8 +1682,12 @@ "description": "true if final", "type": "boolean" }, - "is_stale": { - "description": "true if incompatible with a final block", + "is_candidate": { + "description": "true if candidate", + "type": "boolean" + }, + "is_discarded": { + "description": "true if discarded", "type": "boolean" }, "is_in_blockclique": { @@ -1750,6 +1756,7 @@ "additionalProperties": false }, "Clique": { + "title": "Clique", "description": "Clique", "required": [ "block_ids", @@ -1773,7 +1780,8 @@ "description": "True if it is the clique of higher fitness", "type": "boolean" } - } + }, + "additionalProperties": false }, "CompactConfig": { "title": "Config", @@ -1784,11 +1792,10 @@ "genesis_timestamp", "operation_validity_periods", "periods_per_cycle", - "pos_lock_cycles", - "pos_lookback_cycles", "roll_price", "t0", - "thread_count" + "thread_count", + "execution_stats" ], "type": "object", "properties": { @@ -1802,7 +1809,14 @@ }, "end_timestamp": { "description": "(Only in tesnets)\nTime in milliseconds when the blockclique started.", - "type": "number" + "oneOf": [ + { + "type": "null" + }, + { + "type": "number" + } + ] }, "genesis_timestamp": { "description": "Time in milliseconds when the blockclique started.", @@ -1820,14 +1834,6 @@ "description": "cycle duration in periods", "type": "number" }, - "pos_lock_cycles": { - "description": "PoS look back cycles: when drawing for cycle N, we use the rolls from cycle N - `pos_look` `back_cycles` - 1", - "type": "number" - }, - "pos_lookback_cycles": { - "description": "PoS lock cycles: when some rolls are released, we only credit the coins back to their owner after waiting `pos_lock_cycles`", - "type": "number" - }, "roll_price": { "description": "Represent an Amount in coins", "type": "string" @@ -1870,8 +1876,6 @@ "clique_count", "end_timespan", "final_block_count", - "final_operation_count", - "staker_count", "stale_block_count", "start_timespan" ], @@ -1887,18 +1891,12 @@ "final_block_count": { "type": "number" }, - "final_operation_count": { - "type": "number" - }, - "staker_count": { - "type": "number" - }, "stale_block_count": { "type": "number" }, "start_timespan": { "description": "Stats time interval, millis since 1970-01-01", - "type": "string" + "type": "number" } }, "additionalProperties": false @@ -1941,6 +1939,7 @@ ] }, "DataStoreEntry": { + "title": "DatastoreEntry", "description": "Datastore entry", "type": "object", "properties": { @@ -1952,9 +1951,11 @@ "description": "", "type": "string" } - } + }, + "additionalProperties": false }, "DatastoreEntryInput": { + "title": "DatastoreEntryInput", "description": "", "required": [ "address", @@ -1963,29 +1964,103 @@ "type": "object", "properties": { "address": { - "description": "", - "type": "string" + "$ref": "#/components/schemas/Address" }, "key": { "description": "", "type": "array", "items": { - "format": "byte", - "type": "string" + "type": "integer" } } - } + }, + "additionalProperties": false }, "DataStoreEntryOutput": { + "title": "DatastoreEntryOutput", "description": "Datastore entry", "type": "object", "properties": { "candidate_value": { "description": "", - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "final_value": { "description": "", + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "Denunciation": { + "oneOf": [ + { + "$ref": "#/components/schemas/EndorsementDenunciation" + }, + { + "$ref": "#/components/schemas/BlockHeaderDenunciation" + } + ] + }, + "EndorsementDenunciation": { + "type": "object", + "properties": { + "public_key": { + "type": "string" + }, + "slot": { + "type": "integer" + }, + "index": { + "type": "integer" + }, + "hash_1": { + "type": "string" + }, + "hash_2": { + "type": "string" + }, + "signature_1": { + "type": "string" + }, + "signature_2": { + "type": "string" + } + } + }, + "BlockHeaderDenunciation": { + "type": "object", + "properties": { + "public_key": { + "type": "string" + }, + "slot": { + "type": "integer" + }, + "hash_1": { + "type": "string" + }, + "hash_2": { + "type": "string" + }, + "signature_1": { + "type": "string" + }, + "signature_2": { "type": "string" } } @@ -1995,7 +2070,7 @@ "description": "Endorsement", "required": [ "content", - "creator_public_key", + "content_creator_pub_key", "signature" ], "type": "object", @@ -2003,18 +2078,14 @@ "content": { "$ref": "#/components/schemas/EndorsementContent" }, - "creator_public_key": { - "$ref": "#/components/schemas/PublicKey", - "description": "the content creator public key" - }, - "creator_address": { - "type": "string" + "content_creator_pub_key": { + "$ref": "#/components/schemas/PublicKey" }, - "thread": { - "type": "number" + "content_creator_address": { + "$ref": "#/components/schemas/Address" }, "id": { - "type": "string" + "$ref": "#/components/schemas/EndorsementId" }, "signature": { "type": "string" @@ -2022,20 +2093,56 @@ }, "additionalProperties": false }, + "ExecutionStats": { + "title": "ExecutionStats", + "description": "Execution stats", + "required": [ + "time_window_start", + "time_window_end", + "final_block_count", + "final_executed_operations_count", + "active_cursor", + "final_cursor" + ], + "type": "object", + "properties": { + "time_window_start": { + "description": "Time window start", + "type": "number" + }, + "time_window_end": { + "description": "Time window end", + "type": "number" + }, + "final_block_count": { + "description": "number of final blocks in the time window", + "type": "number" + }, + "final_executed_operations_count": { + "description": "number of final executed operations in the time window", + "type": "number" + }, + "active_cursor": { + "descritpion": "active execution cursor slot", + "$ref": "#/components/schemas/Slot" + }, + "final_cursor": { + "description": "final execution cursor slot", + "$ref": "#/components/schemas/Slot" + } + }, + "additionalProperties": false + }, "EndorsementContent": { - "title": "Content", + "title": "EndorsementContent", "description": "Endorsement content", "required": [ "endorsed_block", "index", - "sender_public_key", "slot" ], "type": "object", "properties": { - "sender_public_key": { - "type": "string" - }, "slot": { "$ref": "#/components/schemas/Slot" }, @@ -2043,7 +2150,7 @@ "type": "number" }, "endorsed_block": { - "type": "string" + "$ref": "#/components/schemas/BlockId" } }, "additionalProperties": false @@ -2065,6 +2172,11 @@ }, "additionalProperties": false }, + "EndorsementId": { + "title": "EndorsementId", + "description": "Endorsement id", + "type": "string" + }, "EndorsementInfo": { "title": "EndorsementInfo", "description": "Endorsement info", @@ -2078,7 +2190,7 @@ "type": "object", "properties": { "id": { - "type": "string" + "$ref": "#/components/schemas/EndorsementId" }, "in_pool": { "type": "boolean" @@ -2087,7 +2199,7 @@ "description": "Block Id", "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/BlockId" } }, "is_final": { @@ -2095,13 +2207,13 @@ }, "endorsement": { "$ref": "#/components/schemas/Endorsement", - "description": "Endorsement Id" + "description": "Endorsement" } }, "additionalProperties": false }, "ExecutedAt": { - "title": "Slot", + "title": "ExecuteAt", "required": [ "period", "thread" @@ -2201,9 +2313,17 @@ "type": "number" }, "active_rolls": { - "type": "number" + "oneOf": [ + { + "type": "null" + }, + { + "type": "number" + } + ] } - } + }, + "additionalProperties": false }, "EventFilter": { "title": "EventFilter", @@ -2311,6 +2431,7 @@ "additionalProperties": false }, "IpAddress": { + "title": "IpAddress", "description": "Ipv4 or Ipv6 address", "type": "string" }, @@ -2427,15 +2548,26 @@ "Header": { "title": "Header", "required": [ - "creator", "operation_merkle_root", "parents", "slot" ], "type": "object", "properties": { - "creator": { - "type": "string" + "current_version": { + "description": "Current version", + "type": "number" + }, + "announced_version": { + "description": "Announced version", + "oneOf": [ + { + "type": "null" + }, + { + "type": "number" + } + ] }, "operation_merkle_root": { "type": "string" @@ -2448,34 +2580,38 @@ }, "slot": { "$ref": "#/components/schemas/Slot" - } - }, - "additionalProperties": false - }, - "LedgerInfo": { - "title": "SceLedgerInfo", - "required": [ - "balance", - "datastore" - ], - "type": "object", - "properties": { - "balance": { - "description": "Represent an amount", - "type": "string" }, - "module": { - "description": "Stored bytecode", + "endorsements": { + "description": "Endorsements", "type": "array", "items": { - "type": "integer" + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/EndorsementContent" + }, + "signature": { + "type": "string" + }, + "content_creator_pub_key": { + "$ref": "#/components/schemas/PublicKey" + }, + "content_creator_address": { + "$ref": "#/components/schemas/Address" + }, + "id": { + "$ref": "#/components/schemas/EndorsementId" + } + } } }, - "datastore": { + "denunciations": { + "description": "Denunciations", "type": "array", "items": { - "$ref": "#/components/schemas/DataStore" - } + "$ref": "#/components/schemas/Denunciation" + }, + "minItems": 0 } }, "additionalProperties": false @@ -2530,7 +2666,9 @@ "next_slot", "node_id", "pool_stats", - "version" + "version", + "execution_stats", + "chain_id" ], "type": "object", "properties": { @@ -2580,7 +2718,14 @@ }, "node_ip": { "description": "Optional node ip if provided", - "type": "string" + "oneOf": [ + { + "type": "null" + }, + { + "type": "string" + } + ] }, "pool_stats": { "$ref": "#/components/schemas/PoolStats", @@ -2589,6 +2734,14 @@ "version": { "$ref": "#/components/schemas/Version", "description": "Node Version" + }, + "execution_stats": { + "$ref": "#/components/schemas/ExecutionStats", + "description": "Execution stats" + }, + "chain_id": { + "description": "Chain id", + "type": "number" } }, "additionalProperties": false @@ -2619,6 +2772,7 @@ "additionalProperties": false }, "OperationId": { + "title": "OperationId", "description": "Operation id", "type": "string" }, @@ -2629,7 +2783,7 @@ "id", "in_blocks", "in_pool", - "is_final", + "is_operation_final", "thread", "operation" ], @@ -2643,16 +2797,23 @@ "description": "Block ids\nThe operation appears in `in_blocks`\nIf it appears in multiple blocks, these blocks are in different cliques", "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/BlockId" } }, "in_pool": { "description": "True if operation is still in pool", "type": "boolean" }, - "is_final": { + "is_operation_final": { "description": "True if the operation is final (for example in a final block)", - "type": "boolean" + "oneOf": [ + { + "type": "null" + }, + { + "type": "boolean" + } + ] }, "thread": { "description": "Thread in which the operation can be included", @@ -2664,12 +2825,20 @@ }, "op_exec_status": { "description": "true if the operation execution succeeded, false if failed, None means unknown", - "type": "boolean" + "oneOf": [ + { + "type": "null" + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false }, "OperationInput": { + "title": "OperationInput", "description": "Operation input", "required": [ "creator_public_key", @@ -2687,17 +2856,16 @@ "description": "The signature of the operation" }, "serialized_content": { - "description": "The serialized version of the content `base58` encoded", "type": "array", "items": { - "format": "byte", - "type": "string" + "type": "integer" } } }, "additionalProperties": false }, "OperationType": { + "title": "OperationType", "description": "Type specific operation content.", "type": "object", "properties": { @@ -2721,10 +2889,11 @@ "$ref": "#/components/schemas/RollSell", "description": "the sender sells `roll_count` rolls. Roll price is defined in configuration" } - } + }, + "additionalProperties": false }, "PageRequest": { - "title": "PageRequest", + "title": "Pagination", "description": "An PageRequest object, which contains limit (max elements par page) and a page offset.", "type": "object", "required": [ @@ -2738,9 +2907,11 @@ "offset": { "type": "number" } - } + }, + "additionalProperties": false }, "PagedVecStaker": { + "title": "PagedVecStaker", "description": "PagedVec of stakers for apiV2", "type": "object", "properties": { @@ -2753,27 +2924,19 @@ "total_count": { "type": "number" } - } + }, + "additionalProperties": false }, "PoolStats": { "title": "PoolStats", "description": "Pool stats", - "required": [ - "endorsement_count", - "operation_count" - ], - "type": "object", - "properties": { - "endorsement_count": { - "type": "number" - }, - "operation_count": { - "type": "number" - } - }, - "additionalProperties": false + "type": "array", + "items": { + "type": "number" + } }, "PrivateKey": { + "title": "PrivateKey", "description": "`PrivateKey` is used for signature and decryption", "type": "string" }, @@ -2803,10 +2966,12 @@ "additionalProperties": false }, "PublicKey": { + "title": "PublicKey", "description": "Public key used to check if a message was encoded by the corresponding `PublicKey`.\nGenerated from the `KeyPair` using `SignatureEngine`", "type": "string" }, "PubkeySig": { + "title": "PubkeySig", "description": "Public key and a signature it has produced used for serialization/deserialization purpose", "required": [ "public_key", @@ -2822,7 +2987,8 @@ "description": "signature", "type": "string" } - } + }, + "additionalProperties": false }, "ReadOnlyBytecodeExecution": { "title": "ReadOnlyBytecodeExecution", @@ -2841,8 +3007,7 @@ "description": "Bytecode to execute", "type": "array", "items": { - "format": "byte", - "type": "string" + "type": "integer" } }, "address": { @@ -2853,8 +3018,7 @@ "description": "An operation datastore", "type": "array", "items": { - "format": "byte", - "type": "string" + "type": "integer" } }, "is_final": { @@ -2877,9 +3041,9 @@ "description": "Read only call", "required": [ "max_gas", - "parameter", "target_address", - "target_function" + "target_function", + "parameter" ], "type": "object", "properties": { @@ -2897,19 +3061,44 @@ }, "parameter": { "description": "Function parameter", - "type": "string" + "type": "array", + "items": { + "type": "integer" + } }, "caller_address": { "description": "Caller's address, optional", - "type": "string" + "oneOf": [ + { + "type": "null" + }, + { + "type": "string" + } + ] }, "coins": { "description": "Amount in coins, optional", - "type": "number" + "oneOf": [ + { + "type": "null" + }, + { + "description": "Amount in coins", + "type": "string" + } + ] }, "fee": { "description": "Fee, optional", - "type": "number" + "oneOf": [ + { + "type": "null" + }, + { + "type": "string" + } + ] } }, "additionalProperties": false @@ -2923,15 +3112,15 @@ "description": "Included in case of success. The result of the execution", "type": "array", "items": { - "format": "byte", - "type": "string" + "type": "number" } }, "Error": { "description": "Included in case of error. The error message", "type": "string" } - } + }, + "additionalProperties": false }, "Roll": { "title": "Roll", @@ -2948,6 +3137,7 @@ "additionalProperties": false }, "RollBuy": { + "title": "RollBuy", "description": "the sender buys `roll_count` rolls. Roll price is defined in configuration", "required": [ "roll_count" @@ -2958,10 +3148,11 @@ "description": "roll count", "type": "number" } - } + }, + "additionalProperties": false }, "RollsInfo": { - "title": "Rolls", + "title": "RollsInfo", "required": [ "active_rolls", "candidate_rolls", @@ -2982,6 +3173,7 @@ "additionalProperties": false }, "RollSell": { + "title": "RollSell", "description": "the sender sells `roll_count` rolls. Roll price is defined in configuration", "required": [ "roll_count" @@ -2992,7 +3184,8 @@ "description": "roll count", "type": "number" } - } + }, + "additionalProperties": false }, "SCOEContext": { "title": "SCOEContext", @@ -3052,11 +3245,12 @@ "additionalProperties": false }, "Signature": { + "title": "Signature", "description": "Signature generated from a message and a `KeyPair`.", "type": "string" }, "Slot": { - "title": "TSlot", + "title": "Slot", "description": "Slot", "required": [ "period", @@ -3099,7 +3293,9 @@ "async_pool_changes", "executed_ops_changes", "ledger_changes", - "pos_changes" + "pos_changes", + "executed_denunciations_changes", + "execution_trail_hash_change" ], "type": "object", "properties": { @@ -3121,6 +3317,14 @@ "executed_ops_changes": { "description": "executed operations changes", "type": "object" + }, + "executed_denunciations_changes": { + "description": "executed denunciation changes", + "type": "object" + }, + "execution_trail_hash_change": { + "description": "execution trail hash change", + "type": "string" } }, "additionalProperties": false @@ -3169,11 +3373,11 @@ }, "amount": { "description": "Amount transferred", - "type": "integer" + "type": "string" }, "effective_amount_received": { "description": "Amount received by the receiver", - "type": "integer" + "type": "string" }, "context": { "description": "Context of the transfer : operation or asyncronous execution", @@ -3191,19 +3395,22 @@ "description": "ID of the block in which the operation is included", "type": "string" } - } + }, + "additionalProperties": false }, "Version": { + "title": "Version", "description": "Application version, checked during handshakes", "type": "string" }, "WrappedHeader": { + "title": "WrappedHeader", "description": "signed operation", "required": [ "content", "signature", - "creator_public_key", - "creator_address" + "content_creator_pub_key", + "content_creator_address" ], "type": "object", "properties": { @@ -3215,17 +3422,22 @@ "$ref": "#/components/schemas/Signature", "description": "signature" }, - "creator_public_key": { + "content_creator_pub_key": { "$ref": "#/components/schemas/PublicKey", "description": "the content creator public key" }, - "creator_address": { + "content_creator_address": { "$ref": "#/components/schemas/Address", "description": "the content creator address" + }, + "id": { + "$ref": "#/components/schemas/BlockId" } - } + }, + "additionalProperties": false }, "WrappedOperation": { + "title": "WrappedOperation", "description": "signed operation", "required": [ "content", @@ -3236,22 +3448,25 @@ "type": "object", "properties": { "content": { - "$ref": "#/components/schemas/OperationType", - "description": "operation type" + "$ref": "#/components/schemas/Operation" }, "signature": { "$ref": "#/components/schemas/Signature", "description": "signature" }, - "creator_public_key": { + "content_creator_pub_key": { "$ref": "#/components/schemas/PublicKey", "description": "the content creator public key" }, - "creator_address": { + "content_creator_address": { "$ref": "#/components/schemas/Address", "description": "the content creator address" + }, + "id": { + "$ref": "#/components/schemas/OperationId" } - } + }, + "additionalProperties": false } }, "contentDescriptors": {