From fc0c943879f1414fd84ce5dd73a93b7c865cf9a9 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Fri, 17 May 2024 16:24:52 +0200 Subject: [PATCH 1/9] Docs, v20: Adapt release page for Octez v20.0 --- docs/releases/version-20.rst | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/docs/releases/version-20.rst b/docs/releases/version-20.rst index 19264adb8591..1a8ad7d32d36 100644 --- a/docs/releases/version-20.rst +++ b/docs/releases/version-20.rst @@ -1,13 +1,15 @@ -Version 20.0~rc1 -================ +Version 20.0 +============ Version 20 contains a new version (V12) of the protocol environment, which is the set of functions that a protocol can call. -This new version is used by the :doc:`Paris <../protocols/019_paris>`, -protocol proposal for the successor of Oxford. -This release contains the Paris B protocol proposal itself, as well as its associated protocol-specific executable binaries (baker, accuser, etc). +This new version is used by the :doc:`ParisB 2<../protocols/019_paris>`, +protocol, which is the successor of :doc:`Oxford <../protocols/018_oxford>`. +This release contains the ParisB 2 protocol, a patched protocol upgrade for ParisB as well as its associated protocol-specific executable binaries (baker, accuser, etc). -Note that the binaries associated to the Nairobi protocol have been removed as this protocol is now unactive. +Note ParisB 2 is included in v20.0 as a *User-Activated Protocol Override* (UAPO). This means that nodes running v20.0 will activate ParisB 2, ``PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ`` instead of the original ParisB proposal before block #5,726,209. + +The binaries associated to the Nairobi protocol have been removed as this protocol is now unactive. Version v20 introduces the following changes or new features: @@ -17,10 +19,18 @@ Node Since Octez version 18, RPCs accept both ``endorsements`` and ``attestations`` as input and/or output, with endorsement as default value but deprecated. Starting from version 20, ``attestation`` output is now the default. ``endorsement`` is still available, but it is deprecated and will be removed in a future version. -Some deprecated RPCs have been removed. Please check `the changelog <../CHANGES.html#version-20-0-rc1>`_ to see the list of removed RPCs. +Some deprecated RPCs have been removed. Please check `the changelog <../CHANGES.html#version-20-0>`__ to see the list of removed RPCs. The RPC ``/health/ready`` has been introduced to get the status of the RPC server. +Starting from Octez v20, we strongly advise nodes and bakers operators to synchronise their clocks using NTP as issued in `the node section of getting started `__ + +Regarding the minimal hardware, we advise nodes and bakers operators to run on at least the following hardware requierements: +- 3 cores, 2 needed by the node and 1 needed by the baker (arm64 or amd64/x86-64) +- 8GB of RAM + 8GB of swap or 16GB of RAM +- 100GB SSD storage (or similar I/O performance) +- A low-latency reliable internet connection + Smart rollup ~~~~~~~~~~~~ @@ -44,14 +54,14 @@ Update Instructions To update from sources:: git fetch - git checkout octez-v20.0-rc1 + git checkout octez-v20.0 make clean opam switch remove . # To be used if the next step fails make build-deps eval $(opam env) make -If you are using Docker instead, use the ``v20.0~rc1`` Docker images of Octez. +If you are using Docker instead, use the ``v20.0`` Docker images of Octez. You can also install Octez using Opam by running ``opam install octez``. -- GitLab From f02f150a26a10108aa8b170ddb36e0cf767dad19 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Fri, 17 May 2024 17:21:42 +0200 Subject: [PATCH 2/9] Docs, Changelogs: Include new changes for Octez v20.0 --- CHANGES.rst | 8 -------- docs/CHANGES.rst | 17 +++++++++++++++++ docs/releases/version-20.rst | 1 + 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index f8a70ed7a129..67f2e9f61e11 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -40,11 +40,6 @@ Node that returns the consumed output's indexes for the given outbox level. (MR :gl:`!12776`) -- Reduced the maximum allowed timestamp drift to 1 seconds. It is recommended to - use NTP to sync the clock of the node. (MR :gl:`!13198`) - -- Removed ``ghostnet.kaml.fr`` from ghostnet bootstrap peers. (MR :gl:`!13435`) - Client ------ @@ -88,9 +83,6 @@ Smart Rollup node rollup node operates correctly. Old ``/health`` RPC is renamed to ``/ping``. (MR :gl:`!12940`) -- Support for unsafely increasing the WASM PVM's tick limit of a rollup. - (MRs :gl:`!12907`, :gl:`!12957`, :gl:`!12983`, :gl:`!13357`) - - Use a local cache per game for intermediate states of dissections. (MR :gl:`!12899`) diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index ed974f66f5ba..5d9bc67d7313 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -3,6 +3,23 @@ Changelog ''''''''' +Version 20.0 +============ + +Node +---- + +- Reduced the maximum allowed timestamp drift to 1 seconds. It is recommended to + use NTP to sync the clock of the node. (MR :gl:`!13198`) + +- Removed ``ghostnet.kaml.fr`` from ghostnet bootstrap peers. (MR :gl:`!13435`) + +Smart Rollup node +----------------- + +- Added support for custom, and user defined, PVM patches for rollup genesis + (to be used on private rollups). (MRs :gl:`!12907`, :gl:`!12957`, :gl:`!12983`) + Version 20.0~rc1 ================ diff --git a/docs/releases/version-20.rst b/docs/releases/version-20.rst index 1a8ad7d32d36..5202d199de6e 100644 --- a/docs/releases/version-20.rst +++ b/docs/releases/version-20.rst @@ -90,4 +90,5 @@ For more details, see :ref:`the installation instructions ` Changelog --------- +- `Version 20.0 <../CHANGES.html#version-20-0>`_ - `Version 20.0~rc1 <../CHANGES.html#version-20-0-rc1>`_ -- GitLab From 085bc1852070e2ab88bc525d744d953c757c07bb Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Fri, 17 May 2024 17:27:14 +0200 Subject: [PATCH 3/9] OpenApi: Use [dev] instead of [rc] --- src/bin_openapi/generate.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin_openapi/generate.sh b/src/bin_openapi/generate.sh index c05fda0c191f..37991cd433e1 100755 --- a/src/bin_openapi/generate.sh +++ b/src/bin_openapi/generate.sh @@ -40,11 +40,11 @@ mempool_api_json=$tmp/mempool-api.json dal_api_json=$tmp/dal-api.json # Generated files. -openapi_json=docs/api/rpc-openapi-rc.json -proto_openapi_json=docs/api/$protocol_name-openapi-rc.json -mempool_openapi_json=docs/api/$protocol_name-mempool-openapi-rc.json -smart_rollup_node_openapi_json=docs/api/$protocol_name-smart-rollup-node-openapi-rc.json -dal_node_openapi_json=docs/api/dal-node-openapi-rc.json +openapi_json=docs/api/rpc-openapi-dev.json +proto_openapi_json=docs/api/$protocol_name-openapi-dev.json +mempool_openapi_json=docs/api/$protocol_name-mempool-openapi-dev.json +smart_rollup_node_openapi_json=docs/api/$protocol_name-smart-rollup-node-openapi-dev.json +dal_node_openapi_json=docs/api/dal-node-openapi-dev.json # Get version number. version=$(dune exec octez-version -- --full-with-commit) -- GitLab From 65706c80931c2d05d4a82384be7646b5ea44d705 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 28 May 2024 13:26:07 +0200 Subject: [PATCH 4/9] Docs, Api: Add [dal-node-openapi.json] --- docs/api/{dal-node-openapi-rc.json => dal-node-openapi.json} | 2 +- docs/api/openapi.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/api/{dal-node-openapi-rc.json => dal-node-openapi.json} (99%) diff --git a/docs/api/dal-node-openapi-rc.json b/docs/api/dal-node-openapi.json similarity index 99% rename from docs/api/dal-node-openapi-rc.json rename to docs/api/dal-node-openapi.json index a6b125772e78..338e9fbee58d 100644 --- a/docs/api/dal-node-openapi-rc.json +++ b/docs/api/dal-node-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez DAL Node RPC", "description": "The RPC API for the Octez DAL node.", - "version": "Octez 20.0~rc1+dev (57d40e55)" + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/commitments": { diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index 4d7263651b6f..41cda353d554 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -125,7 +125,7 @@ DAL Node The DAL node also provides RPCs. Their OpenAPI specification can be found at: -- `dal-node-openapi.json (version 20.0~rc1) `_ +- `dal-node-openapi.json (version 20.0) `_ .. _openapi_generate: -- GitLab From a35dda7d22222c897660089124b7d7fe11a9da21 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 28 May 2024 13:27:46 +0200 Subject: [PATCH 5/9] Docs, Api: Update Paris related APIs --- docs/api/openapi.rst | 8 ++++---- ...mempool-openapi-rc.json => paris-mempool-openapi.json} | 2 +- docs/api/{paris-openapi-rc.json => paris-openapi.json} | 2 +- ...enapi-rc.json => paris-smart-rollup-node-openapi.json} | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename docs/api/{paris-mempool-openapi-rc.json => paris-mempool-openapi.json} (99%) rename docs/api/{paris-openapi-rc.json => paris-openapi.json} (99%) rename docs/api/{paris-smart-rollup-node-openapi-rc.json => paris-smart-rollup-node-openapi.json} (99%) diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index 41cda353d554..72c07916c2bb 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -80,12 +80,12 @@ Paris RPCs The OpenAPI specifications for RPCs which are specific to the Paris A (``PtParisA``) protocol can be found at: -- `paris-openapi-rc.json (version 20.0~rc1) `_ +- `paris-openapi.json (version 20.0) `_ The OpenAPI specifications for RPCs which are related to the mempool and specific to the Paris protocol can be found at: -- `paris-mempool-openapi-rc.json (version 20.0~rc1) `_ +- `paris-mempool-openapi.json (version 20.0) `_ Smart Rollup Node ~~~~~~~~~~~~~~~~~ @@ -115,8 +115,8 @@ Paris RPCs The OpenAPI specifications for the RPCs of the smart rollup node for the Paris (``PtParisB``) protocol can be found at: -- `paris-smart-rollup-node-openapi.json (version 20.0~rc1) - `_ +- `paris-smart-rollup-node-openapi.json (version 20.0) + `_ DAL Node diff --git a/docs/api/paris-mempool-openapi-rc.json b/docs/api/paris-mempool-openapi.json similarity index 99% rename from docs/api/paris-mempool-openapi-rc.json rename to docs/api/paris-mempool-openapi.json index fb7a70f21777..838b2bda8170 100644 --- a/docs/api/paris-mempool-openapi-rc.json +++ b/docs/api/paris-mempool-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Mempool RPC", "description": "The RPC API for the mempool served by the Octez node.", - "version": "Octez 20.0~rc1 (e38cf666)" + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/pending_operations": { diff --git a/docs/api/paris-openapi-rc.json b/docs/api/paris-openapi.json similarity index 99% rename from docs/api/paris-openapi-rc.json rename to docs/api/paris-openapi.json index 1e6462d0da44..a91c9872da26 100644 --- a/docs/api/paris-openapi-rc.json +++ b/docs/api/paris-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Protocol paris RPC", "description": "The RPC API for protocol paris served by the Octez node.", - "version": "Octez 20.0~rc1 (e38cf666)" + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/": { diff --git a/docs/api/paris-smart-rollup-node-openapi-rc.json b/docs/api/paris-smart-rollup-node-openapi.json similarity index 99% rename from docs/api/paris-smart-rollup-node-openapi-rc.json rename to docs/api/paris-smart-rollup-node-openapi.json index fbcf30b1f909..539de598f257 100644 --- a/docs/api/paris-smart-rollup-node-openapi-rc.json +++ b/docs/api/paris-smart-rollup-node-openapi.json @@ -3,7 +3,7 @@ { "title": "Smart Rollup Node RPCs", "description": "Smart Rollup Node RPC API for protocol PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5", - "version": "Octez 20.0~rc1 (e38cf666)" }, + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/describe": { "get": -- GitLab From f45f6122fc784515081730a46874d14f6ded88bc Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 28 May 2024 13:29:08 +0200 Subject: [PATCH 6/9] Docs, Api: Update Oxford related APIs --- docs/api/openapi.rst | 13 +- docs/api/oxford-mempool-openapi-rc.json | 509 - docs/api/oxford-mempool-openapi.json | 225 +- docs/api/oxford-openapi-rc.json | 27840 ---------------- docs/api/oxford-openapi.json | 14 +- .../oxford-smart-rollup-node-openapi-rc.json | 5753 ---- .../api/oxford-smart-rollup-node-openapi.json | 108 +- 7 files changed, 72 insertions(+), 34390 deletions(-) delete mode 100644 docs/api/oxford-mempool-openapi-rc.json delete mode 100644 docs/api/oxford-openapi-rc.json delete mode 100644 docs/api/oxford-smart-rollup-node-openapi-rc.json diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index 72c07916c2bb..c8625a435fda 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -63,16 +63,12 @@ Oxford RPCs The OpenAPI specifications for RPCs which are specific to the Oxford (``Proxford``) protocol can be found at: -- `oxford-openapi.json (version 19.2) `_ - -- `oxford-openapi.json (version 20.0~rc1) `_ +- `oxford-openapi.json (version 20.0) `_ The OpenAPI specifications for RPCs which are related to the mempool and specific to the Oxford protocol can be found at: -- `oxford-mempool-openapi.json (version 19.2) `_ - -- `oxford-mempool-openapi.json (version 20.0~rc1) `_ +- `oxford-mempool-openapi.json (version 20.0) `_ Paris RPCs ----------- @@ -103,12 +99,9 @@ Oxford RPCs The OpenAPI specifications for the RPCs of the smart rollup node for the Oxford (``Proxford``) protocol can be found at: -- `oxford-smart-rollup-node-openapi.json (version 19.2) +- `oxford-smart-rollup-node-openapi.json (version 20.0) `_ -- `oxford-smart-rollup-node-openapi.json (version 20.0~rc1) - `_ - Paris RPCs ---------- diff --git a/docs/api/oxford-mempool-openapi-rc.json b/docs/api/oxford-mempool-openapi-rc.json deleted file mode 100644 index fb7a70f21777..000000000000 --- a/docs/api/oxford-mempool-openapi-rc.json +++ /dev/null @@ -1,509 +0,0 @@ -{ - "openapi": "3.0.0", - "info": { - "title": "Octez Mempool RPC", - "description": "The RPC API for the mempool served by the Octez node.", - "version": "Octez 20.0~rc1 (e38cf666)" - }, - "paths": { - "/pending_operations": { - "get": { - "description": "List the prevalidated operations.", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version \"1\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"2\" (default) that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "validated", - "in": "query", - "description": "Include validated operations (true by default)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "refused", - "in": "query", - "description": "Include refused operations (true by default)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "outdated", - "in": "query", - "description": "Include outdated operations (true by default)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "branch_refused", - "in": "query", - "description": "Include branch refused operations (true by default)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "branch_delayed", - "in": "query", - "description": "Include branch delayed operations (true by default)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "validation_pass", - "in": "query", - "description": "Include operations filtered by validation pass (all by default)", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "pending_operations_encoding_v2", - "type": "object", - "properties": { - "validated": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "hash", - "branch" - ] - } - }, - "refused": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "outdated": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "branch_refused": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "branch_delayed": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "unprocessed": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "hash", - "protocol", - "branch" - ] - } - } - }, - "required": [ - "validated", - "refused", - "outdated", - "branch_refused", - "branch_delayed", - "unprocessed" - ] - }, - { - "title": "pending_operations_encoding_v1", - "type": "object", - "properties": { - "applied": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "hash", - "branch" - ] - } - }, - "refused": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "outdated": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "branch_refused": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "branch_delayed": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "protocol", - "branch", - "error" - ] - } - }, - "unprocessed": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "hash", - "protocol", - "branch" - ] - } - } - }, - "required": [ - "applied", - "refused", - "outdated", - "branch_refused", - "branch_delayed", - "unprocessed" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - } - }, - "components": { - "schemas": { - "Operation_hash": { - "title": "A Tezos operation ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "block_hash": { - "title": "A block identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "error": { - "description": "The full list of errors is available with the global RPC `GET errors`" - }, - "unistring": { - "title": "Universal string representation", - "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "invalid_utf8_string": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 255 - } - } - }, - "required": [ - "invalid_utf8_string" - ] - } - ] - } - } - } -} diff --git a/docs/api/oxford-mempool-openapi.json b/docs/api/oxford-mempool-openapi.json index 4be649535b5f..838b2bda8170 100644 --- a/docs/api/oxford-mempool-openapi.json +++ b/docs/api/oxford-mempool-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Mempool RPC", "description": "The RPC API for the mempool served by the Octez node.", - "version": "19.2 (54a1580334)" + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/pending_operations": { @@ -13,21 +13,12 @@ { "name": "version", "in": "query", - "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"2\" that will output \"attestation\" in the \"kind\" field", + "description": "Supported RPC versions are version \"1\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"2\" (default) that will output \"attestation\" in the \"kind\" field", "required": true, "schema": { "type": "string" } }, - { - "name": "applied", - "in": "query", - "description": "(DEPRECATED use validated instead) Include validated operations", - "required": false, - "schema": { - "type": "string" - } - }, { "name": "validated", "in": "query", @@ -269,199 +260,6 @@ "unprocessed" ] }, - { - "title": "pending_operations_encoding_v0", - "type": "object", - "properties": { - "applied": { - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "hash", - "branch" - ] - } - }, - "refused": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Operation_hash" - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "protocol", - "branch", - "error" - ] - } - ] - } - } - }, - "outdated": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Operation_hash" - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "protocol", - "branch", - "error" - ] - } - ] - } - } - }, - "branch_refused": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Operation_hash" - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "protocol", - "branch", - "error" - ] - } - ] - } - } - }, - "branch_delayed": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Operation_hash" - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "protocol", - "branch", - "error" - ] - } - ] - } - } - }, - "unprocessed": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Operation_hash" - }, - { - "$ref": "#/components/schemas/next_operation_with_legacy_attestation_name" - } - ] - } - } - } - }, - "required": [ - "applied", - "refused", - "outdated", - "branch_refused", - "branch_delayed", - "unprocessed" - ] - }, { "title": "pending_operations_encoding_v1", "type": "object", @@ -681,25 +479,6 @@ "error": { "description": "The full list of errors is available with the global RPC `GET errors`" }, - "next_operation_with_legacy_attestation_name": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "protocol", - "branch" - ] - }, "unistring": { "title": "Universal string representation", "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", diff --git a/docs/api/oxford-openapi-rc.json b/docs/api/oxford-openapi-rc.json deleted file mode 100644 index 932876d8dcdf..000000000000 --- a/docs/api/oxford-openapi-rc.json +++ /dev/null @@ -1,27840 +0,0 @@ -{ - "openapi": "3.0.0", - "info": { - "title": "Octez Protocol oxford RPC", - "description": "The RPC API for protocol oxford served by the Octez node.", - "version": "Octez 20.0~rc1 (e38cf666)" - }, - "paths": { - "/": { - "get": { - "description": "All the information about a block. The associated metadata may not be present depending on the history mode and block's distance from the head.", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "force_metadata", - "in": "query", - "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "block_info_encoding_v1", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/block_hash" - }, - "header": { - "$ref": "#/components/schemas/raw_block_header" - }, - "metadata": { - "$ref": "#/components/schemas/block_header_metadata" - }, - "operations": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation" - } - } - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "header", - "operations" - ] - }, - { - "title": "block_info_encoding_v0", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/block_hash" - }, - "header": { - "$ref": "#/components/schemas/raw_block_header" - }, - "metadata": { - "$ref": "#/components/schemas/block_header_metadata_with_legacy_attestation_name" - }, - "operations": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation_with_legacy_attestation_name" - } - } - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "header", - "operations" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/adaptive_issuance_launch_cycle": { - "get": { - "description": "Returns the cycle at which the launch of the Adaptive Issuance feature is set to happen. A result of None means that the feature is not yet set to launch.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/big_maps/{big_map_id}": { - "get": { - "description": "Get the (optionally paginated) list of values in a big map. Order of values is unspecified, but is guaranteed to be consistent.", - "parameters": [ - { - "name": "big_map_id", - "in": "path", - "description": "A big map identifier", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "offset", - "in": "query", - "description": "A non-negative integer (greater than or equal to 0). Skip the first [offset] values. Useful in combination with [length] for pagination.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "length", - "in": "query", - "description": "A non-negative integer (greater than or equal to 0). Only retrieve [length] values. Useful in combination with [offset] for pagination.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/big_maps/{big_map_id}/{script_expr}": { - "get": { - "description": "Access the value associated with a key in a big map.", - "parameters": [ - { - "name": "big_map_id", - "in": "path", - "description": "A big map identifier", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "script_expr", - "in": "path", - "description": "script_expr (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/big_maps/{big_map_id}/{script_expr}/normalized": { - "post": { - "description": "Access the value associated with a key in a big map, normalize the output using the requested unparsing mode.", - "parameters": [ - { - "name": "big_map_id", - "in": "path", - "description": "A big map identifier", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "script_expr", - "in": "path", - "description": "script_expr (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - } - }, - "required": [ - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/cache/contracts/all": { - "get": { - "description": "Return the list of cached contracts", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Contract_hash" - }, - { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - ] - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/cache/contracts/rank": { - "post": { - "description": "Return the number of cached contracts older than the provided contract", - "requestBody": { - "content": { - "application/json": { - "schema": { - "title": "A contract handle -- originated account", - "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/cache/contracts/size": { - "get": { - "description": "Return the size of the contract cache", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/cache/contracts/size_limit": { - "get": { - "description": "Return the size limit of the contract cache", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/constants": { - "get": { - "description": "All constants", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "proof_of_work_nonce_size": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "nonce_length": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "max_anon_ops_per_block": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "max_operation_data_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_proposals_per_delegate": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "max_micheline_node_count": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_micheline_bytes_limit": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_allowed_global_constants_depth": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "cache_layout_size": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "michelson_maximum_type_size": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "max_slashing_period": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "smart_rollup_max_wrapped_proof_binary_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_message_size_limit": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_max_number_of_messages_per_level": { - "$ref": "#/components/schemas/positive_bignum" - }, - "preserved_cycles": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "blocks_per_cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "blocks_per_commitment": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "nonce_revelation_threshold": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "blocks_per_stake_snapshot": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "cycles_per_voting_period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "hard_gas_limit_per_operation": { - "$ref": "#/components/schemas/bignum" - }, - "hard_gas_limit_per_block": { - "$ref": "#/components/schemas/bignum" - }, - "proof_of_work_threshold": { - "$ref": "#/components/schemas/int64" - }, - "minimal_stake": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "minimal_frozen_stake": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "vdf_difficulty": { - "$ref": "#/components/schemas/int64" - }, - "origination_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "issuance_weights": { - "type": "object", - "properties": { - "base_total_issued_per_minute": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "baking_reward_fixed_portion_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "baking_reward_bonus_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "attesting_reward_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "liquidity_baking_subsidy_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "seed_nonce_revelation_tip_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "vdf_revelation_tip_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "base_total_issued_per_minute", - "baking_reward_fixed_portion_weight", - "baking_reward_bonus_weight", - "attesting_reward_weight", - "liquidity_baking_subsidy_weight", - "seed_nonce_revelation_tip_weight", - "vdf_revelation_tip_weight" - ] - }, - "cost_per_byte": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "hard_storage_limit_per_operation": { - "$ref": "#/components/schemas/bignum" - }, - "quorum_min": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "quorum_max": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "min_proposal_quorum": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "liquidity_baking_toggle_ema_threshold": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "max_operations_time_to_live": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "minimal_block_delay": { - "$ref": "#/components/schemas/int64" - }, - "delay_increment_per_round": { - "$ref": "#/components/schemas/int64" - }, - "consensus_committee_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "consensus_threshold": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "minimal_participation_ratio": { - "type": "object", - "properties": { - "numerator": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "denominator": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "limit_of_delegation_over_baking": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "percentage_of_frozen_deposits_slashed_per_double_baking": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "percentage_of_frozen_deposits_slashed_per_double_attestation": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "testnet_dictator": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "initial_seed": { - "$ref": "#/components/schemas/random" - }, - "cache_script_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "cache_stake_distribution_cycles": { - "type": "integer", - "minimum": -128, - "maximum": 127 - }, - "cache_sampler_state_cycles": { - "type": "integer", - "minimum": -128, - "maximum": 127 - }, - "dal_parametric": { - "type": "object", - "properties": { - "feature_enable": { - "type": "boolean" - }, - "number_of_slots": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "attestation_lag": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "attestation_threshold": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "blocks_per_epoch": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "redundancy_factor": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "page_size": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "slot_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "number_of_shards": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "feature_enable", - "number_of_slots", - "attestation_lag", - "attestation_threshold", - "blocks_per_epoch", - "redundancy_factor", - "page_size", - "slot_size", - "number_of_shards" - ] - }, - "smart_rollup_arith_pvm_enable": { - "type": "boolean" - }, - "smart_rollup_origination_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_challenge_window_in_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_stake_amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "smart_rollup_commitment_period_in_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_max_lookahead_in_blocks": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "smart_rollup_max_active_outbox_levels": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "smart_rollup_max_outbox_messages_per_level": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_number_of_sections_in_dissection": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "smart_rollup_timeout_period_in_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_max_number_of_cemented_commitments": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_max_number_of_parallel_games": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_reveal_activation_level": { - "type": "object", - "properties": { - "raw_data": { - "type": "object", - "properties": { - "Blake2B": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "Blake2B" - ] - }, - "metadata": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "dal_page": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "dal_parameters": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "raw_data", - "metadata", - "dal_page", - "dal_parameters" - ] - }, - "smart_rollup_private_enable": { - "type": "boolean" - }, - "smart_rollup_riscv_pvm_enable": { - "type": "boolean" - }, - "zk_rollup_enable": { - "type": "boolean" - }, - "zk_rollup_origination_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "zk_rollup_min_pending_to_process": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "zk_rollup_max_ticket_payload_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "global_limit_of_staking_over_baking": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "edge_of_staking_over_delegation": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "adaptive_issuance_launch_ema_threshold": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "adaptive_rewards_params": { - "type": "object", - "properties": { - "issuance_ratio_min": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "issuance_ratio_max": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "max_bonus": { - "$ref": "#/components/schemas/int64" - }, - "growth_rate": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "center_dz": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "radius_dz": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - } - }, - "required": [ - "issuance_ratio_min", - "issuance_ratio_max", - "max_bonus", - "growth_rate", - "center_dz", - "radius_dz" - ] - }, - "adaptive_issuance_activation_vote_enable": { - "type": "boolean" - }, - "autostaking_enable": { - "type": "boolean" - } - }, - "required": [ - "proof_of_work_nonce_size", - "nonce_length", - "max_anon_ops_per_block", - "max_operation_data_length", - "max_proposals_per_delegate", - "max_micheline_node_count", - "max_micheline_bytes_limit", - "max_allowed_global_constants_depth", - "cache_layout_size", - "michelson_maximum_type_size", - "max_slashing_period", - "smart_rollup_max_wrapped_proof_binary_size", - "smart_rollup_message_size_limit", - "smart_rollup_max_number_of_messages_per_level", - "preserved_cycles", - "blocks_per_cycle", - "blocks_per_commitment", - "nonce_revelation_threshold", - "blocks_per_stake_snapshot", - "cycles_per_voting_period", - "hard_gas_limit_per_operation", - "hard_gas_limit_per_block", - "proof_of_work_threshold", - "minimal_stake", - "minimal_frozen_stake", - "vdf_difficulty", - "origination_size", - "issuance_weights", - "cost_per_byte", - "hard_storage_limit_per_operation", - "quorum_min", - "quorum_max", - "min_proposal_quorum", - "liquidity_baking_toggle_ema_threshold", - "max_operations_time_to_live", - "minimal_block_delay", - "delay_increment_per_round", - "consensus_committee_size", - "consensus_threshold", - "minimal_participation_ratio", - "limit_of_delegation_over_baking", - "percentage_of_frozen_deposits_slashed_per_double_baking", - "percentage_of_frozen_deposits_slashed_per_double_attestation", - "cache_script_size", - "cache_stake_distribution_cycles", - "cache_sampler_state_cycles", - "dal_parametric", - "smart_rollup_arith_pvm_enable", - "smart_rollup_origination_size", - "smart_rollup_challenge_window_in_blocks", - "smart_rollup_stake_amount", - "smart_rollup_commitment_period_in_blocks", - "smart_rollup_max_lookahead_in_blocks", - "smart_rollup_max_active_outbox_levels", - "smart_rollup_max_outbox_messages_per_level", - "smart_rollup_number_of_sections_in_dissection", - "smart_rollup_timeout_period_in_blocks", - "smart_rollup_max_number_of_cemented_commitments", - "smart_rollup_max_number_of_parallel_games", - "smart_rollup_reveal_activation_level", - "smart_rollup_private_enable", - "smart_rollup_riscv_pvm_enable", - "zk_rollup_enable", - "zk_rollup_origination_size", - "zk_rollup_min_pending_to_process", - "zk_rollup_max_ticket_payload_size", - "global_limit_of_staking_over_baking", - "edge_of_staking_over_delegation", - "adaptive_issuance_launch_ema_threshold", - "adaptive_rewards_params", - "adaptive_issuance_activation_vote_enable", - "autostaking_enable" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/constants/errors": { - "get": { - "description": "Schema for all the RPC errors from this protocol version", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": {} - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/constants/parametric": { - "get": { - "description": "Parametric constants", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "preserved_cycles": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "blocks_per_cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "blocks_per_commitment": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "nonce_revelation_threshold": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "blocks_per_stake_snapshot": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "cycles_per_voting_period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "hard_gas_limit_per_operation": { - "$ref": "#/components/schemas/bignum" - }, - "hard_gas_limit_per_block": { - "$ref": "#/components/schemas/bignum" - }, - "proof_of_work_threshold": { - "$ref": "#/components/schemas/int64" - }, - "minimal_stake": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "minimal_frozen_stake": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "vdf_difficulty": { - "$ref": "#/components/schemas/int64" - }, - "origination_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "issuance_weights": { - "type": "object", - "properties": { - "base_total_issued_per_minute": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "baking_reward_fixed_portion_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "baking_reward_bonus_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "attesting_reward_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "liquidity_baking_subsidy_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "seed_nonce_revelation_tip_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "vdf_revelation_tip_weight": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "base_total_issued_per_minute", - "baking_reward_fixed_portion_weight", - "baking_reward_bonus_weight", - "attesting_reward_weight", - "liquidity_baking_subsidy_weight", - "seed_nonce_revelation_tip_weight", - "vdf_revelation_tip_weight" - ] - }, - "cost_per_byte": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "hard_storage_limit_per_operation": { - "$ref": "#/components/schemas/bignum" - }, - "quorum_min": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "quorum_max": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "min_proposal_quorum": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "liquidity_baking_toggle_ema_threshold": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "max_operations_time_to_live": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "minimal_block_delay": { - "$ref": "#/components/schemas/int64" - }, - "delay_increment_per_round": { - "$ref": "#/components/schemas/int64" - }, - "consensus_committee_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "consensus_threshold": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "minimal_participation_ratio": { - "type": "object", - "properties": { - "numerator": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "denominator": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "limit_of_delegation_over_baking": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "percentage_of_frozen_deposits_slashed_per_double_baking": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "percentage_of_frozen_deposits_slashed_per_double_attestation": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "testnet_dictator": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "initial_seed": { - "$ref": "#/components/schemas/random" - }, - "cache_script_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "cache_stake_distribution_cycles": { - "type": "integer", - "minimum": -128, - "maximum": 127 - }, - "cache_sampler_state_cycles": { - "type": "integer", - "minimum": -128, - "maximum": 127 - }, - "dal_parametric": { - "type": "object", - "properties": { - "feature_enable": { - "type": "boolean" - }, - "number_of_slots": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "attestation_lag": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "attestation_threshold": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "blocks_per_epoch": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "redundancy_factor": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "page_size": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "slot_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "number_of_shards": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "feature_enable", - "number_of_slots", - "attestation_lag", - "attestation_threshold", - "blocks_per_epoch", - "redundancy_factor", - "page_size", - "slot_size", - "number_of_shards" - ] - }, - "smart_rollup_arith_pvm_enable": { - "type": "boolean" - }, - "smart_rollup_origination_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_challenge_window_in_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_stake_amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "smart_rollup_commitment_period_in_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_max_lookahead_in_blocks": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "smart_rollup_max_active_outbox_levels": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "smart_rollup_max_outbox_messages_per_level": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_number_of_sections_in_dissection": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "smart_rollup_timeout_period_in_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_max_number_of_cemented_commitments": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_max_number_of_parallel_games": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "smart_rollup_reveal_activation_level": { - "type": "object", - "properties": { - "raw_data": { - "type": "object", - "properties": { - "Blake2B": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "Blake2B" - ] - }, - "metadata": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "dal_page": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "dal_parameters": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "raw_data", - "metadata", - "dal_page", - "dal_parameters" - ] - }, - "smart_rollup_private_enable": { - "type": "boolean" - }, - "smart_rollup_riscv_pvm_enable": { - "type": "boolean" - }, - "zk_rollup_enable": { - "type": "boolean" - }, - "zk_rollup_origination_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "zk_rollup_min_pending_to_process": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "zk_rollup_max_ticket_payload_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "global_limit_of_staking_over_baking": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "edge_of_staking_over_delegation": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "adaptive_issuance_launch_ema_threshold": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "adaptive_rewards_params": { - "type": "object", - "properties": { - "issuance_ratio_min": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "issuance_ratio_max": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "max_bonus": { - "$ref": "#/components/schemas/int64" - }, - "growth_rate": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "center_dz": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "radius_dz": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/bignum" - }, - "denominator": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - } - }, - "required": [ - "issuance_ratio_min", - "issuance_ratio_max", - "max_bonus", - "growth_rate", - "center_dz", - "radius_dz" - ] - }, - "adaptive_issuance_activation_vote_enable": { - "type": "boolean" - }, - "autostaking_enable": { - "type": "boolean" - } - }, - "required": [ - "preserved_cycles", - "blocks_per_cycle", - "blocks_per_commitment", - "nonce_revelation_threshold", - "blocks_per_stake_snapshot", - "cycles_per_voting_period", - "hard_gas_limit_per_operation", - "hard_gas_limit_per_block", - "proof_of_work_threshold", - "minimal_stake", - "minimal_frozen_stake", - "vdf_difficulty", - "origination_size", - "issuance_weights", - "cost_per_byte", - "hard_storage_limit_per_operation", - "quorum_min", - "quorum_max", - "min_proposal_quorum", - "liquidity_baking_toggle_ema_threshold", - "max_operations_time_to_live", - "minimal_block_delay", - "delay_increment_per_round", - "consensus_committee_size", - "consensus_threshold", - "minimal_participation_ratio", - "limit_of_delegation_over_baking", - "percentage_of_frozen_deposits_slashed_per_double_baking", - "percentage_of_frozen_deposits_slashed_per_double_attestation", - "cache_script_size", - "cache_stake_distribution_cycles", - "cache_sampler_state_cycles", - "dal_parametric", - "smart_rollup_arith_pvm_enable", - "smart_rollup_origination_size", - "smart_rollup_challenge_window_in_blocks", - "smart_rollup_stake_amount", - "smart_rollup_commitment_period_in_blocks", - "smart_rollup_max_lookahead_in_blocks", - "smart_rollup_max_active_outbox_levels", - "smart_rollup_max_outbox_messages_per_level", - "smart_rollup_number_of_sections_in_dissection", - "smart_rollup_timeout_period_in_blocks", - "smart_rollup_max_number_of_cemented_commitments", - "smart_rollup_max_number_of_parallel_games", - "smart_rollup_reveal_activation_level", - "smart_rollup_private_enable", - "smart_rollup_riscv_pvm_enable", - "zk_rollup_enable", - "zk_rollup_origination_size", - "zk_rollup_min_pending_to_process", - "zk_rollup_max_ticket_payload_size", - "global_limit_of_staking_over_baking", - "edge_of_staking_over_delegation", - "adaptive_issuance_launch_ema_threshold", - "adaptive_rewards_params", - "adaptive_issuance_activation_vote_enable", - "autostaking_enable" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts": { - "get": { - "description": "All existing contracts (excluding empty implicit contracts).", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}": { - "get": { - "description": "Access the complete status of a contract.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "normalize_types", - "in": "query", - "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "script": { - "$ref": "#/components/schemas/018-Proxford.scripted.contracts" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "balance" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/all_ticket_balances": { - "get": { - "description": "Access the complete list of tickets owned by the given contract by scanning the contract's storage.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "amount": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "ticketer", - "content_type", - "content", - "amount" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/balance": { - "get": { - "description": "Access the spendable balance of a contract, excluding frozen bonds.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/balance_and_frozen_bonds": { - "get": { - "description": "Access the sum of the spendable balance and frozen bonds of a contract. This sum is part of the contract's stake, and it is exactly the contract's stake if the contract is not a delegate.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/big_map_get": { - "post": { - "description": "Access the value associated with a key in a big map of the contract (deprecated).", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "key": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "key", - "type" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/counter": { - "get": { - "description": "Access the counter of a contract, if any.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Positive big number", - "description": "Decimal representation of a positive big number", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/delegate": { - "get": { - "description": "Access the delegate of a contract, if any.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/entrypoints": { - "get": { - "description": "Return the list of entrypoints of the contract", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "normalize_types", - "in": "query", - "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "unreachable": { - "type": "array", - "items": { - "type": "object", - "properties": { - "path": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.michelson.v1.primitives" - } - } - }, - "required": [ - "path" - ] - } - }, - "entrypoints": { - "type": "object", - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - }, - "required": [ - "entrypoints" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/entrypoints/{entrypoint}": { - "get": { - "description": "Return the type of the given entrypoint of the contract", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "entrypoint", - "in": "path", - "description": "A Michelson entrypoint (string of length < 32)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "normalize_types", - "in": "query", - "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/frozen_bonds": { - "get": { - "description": "Access the frozen bonds of a contract.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/full_balance": { - "get": { - "description": "Access the full balance of a contract, including frozen bonds and stake.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/manager_key": { - "get": { - "description": "Access the manager of an implicit contract.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/Signature.Public_key" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/script": { - "get": { - "description": "Access the code and data of the contract.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "code": {}, - "storage": {} - }, - "required": [ - "code", - "storage" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/script/normalized": { - "post": { - "description": "Access the script of the contract and normalize it using the requested unparsing mode.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "normalize_types": { - "type": "boolean" - } - }, - "required": [ - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.scripted.contracts" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/single_sapling_get_diff": { - "get": { - "description": "Returns the root and a diff of a state starting from an optional offset which is zero by default.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "offset_commitment", - "in": "query", - "description": "Commitments and ciphertexts are returned from the specified offset up to the most recent.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset_nullifier", - "in": "query", - "description": "Nullifiers are returned from the specified offset up to the most recent.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "root": { - "$ref": "#/components/schemas/sapling.transaction.commitment_hash" - }, - "commitments_and_ciphertexts": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/sapling.transaction.commitment" - }, - { - "$ref": "#/components/schemas/sapling.transaction.ciphertext" - } - ] - } - } - }, - "nullifiers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sapling.transaction.nullifier" - } - } - }, - "required": [ - "root", - "commitments_and_ciphertexts", - "nullifiers" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/staked_balance": { - "get": { - "description": "Access the staked balance of a contract. Returns None if the contract is originated, or neither delegated nor a delegate.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/staking_numerator": { - "get": { - "description": "Returns an abstract representation of the contract's total_delegated_stake.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/storage": { - "get": { - "description": "Access the data of the contract.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/storage/normalized": { - "post": { - "description": "Access the data of the contract and normalize it using the requested unparsing mode.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - } - }, - "required": [ - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/storage/paid_space": { - "get": { - "description": "Access the paid storage space of the contract.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/storage/used_space": { - "get": { - "description": "Access the used storage space of the contract.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/ticket_balance": { - "post": { - "description": "Access the contract's balance of ticket with specified ticketer, content type, and content.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Positive big number", - "description": "Decimal representation of a positive big number", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/unstake_requests": { - "get": { - "description": "Access the unstake requests of the contract. The requests that appear in the finalizable field can be finalized, which means that the contract can transfer these (no longer frozen) funds to their spendable balance with a [finalize_unstake] operation call. Returns None if there is no unstake request pending.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "finalizable": { - "type": "array", - "items": { - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "delegate", - "cycle", - "amount" - ] - } - }, - "unfinalizable": { - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "requests": { - "type": "array", - "items": { - "type": "object", - "properties": { - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "cycle", - "amount" - ] - } - } - }, - "required": [ - "delegate", - "requests" - ] - } - }, - "required": [ - "finalizable", - "unfinalizable" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/unstaked_finalizable_balance": { - "get": { - "description": "Access the balance of a contract that was requested for an unstake operation, and is no longer frozen, which means it will appear in the spendable balance of the contract after any stake/unstake/finalize_unstake operation. Returns None if the contract is originated.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/contracts/{contract_id}/unstaked_frozen_balance": { - "get": { - "description": "Access the balance of a contract that was requested for an unstake operation, but is still frozen for the duration of the slashing period. Returns None if the contract is originated.", - "parameters": [ - { - "name": "contract_id", - "in": "path", - "description": "A contract identifier encoded in b58check.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/dal/confirmed_slot_headers_history": { - "get": { - "description": "Returns the value of the DAL confirmed slots history skip list if DAL is enabled, or [None] otherwise.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "index": { - "$ref": "#/components/schemas/positive_bignum" - }, - "content": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - } - }, - "required": [ - "level", - "index", - "commitment" - ] - }, - "back_pointers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/dal_skip_list_pointer" - } - } - }, - "required": [ - "index", - "content", - "back_pointers" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/dal/shards": { - "get": { - "description": "Get the shard assignements for a given level (the default is the current level)", - "parameters": [ - { - "name": "level", - "in": "query", - "description": "A level integer", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - { - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - ] - } - } - ] - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates": { - "get": { - "description": "Lists all registered delegates by default. The arguments `active`, `inactive`, `with_minimal_stake`, and `without_minimal_stake` allow to enumerate only the delegates that are active, inactive, have at least a minimal stake to participate in consensus and in governance, or do not have such a minimal stake, respectively. Note, setting these arguments to false has no effect.", - "parameters": [ - { - "name": "active", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "inactive", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "with_minimal_stake", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "without_minimal_stake", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}": { - "get": { - "description": "Everything about a delegate.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "full_balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "current_frozen_deposits": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "frozen_deposits": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "staking_balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "frozen_deposits_limit": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "delegated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - } - }, - "delegated_balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "deactivated": { - "type": "boolean" - }, - "grace_period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "total_delegated_stake": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "staking_denominator": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "voting_power": { - "$ref": "#/components/schemas/int64" - }, - "current_ballot": { - "type": "string", - "enum": [ - "nay", - "yay", - "pass" - ] - }, - "current_proposals": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "remaining_proposals": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "active_consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "pending_consensus_keys": { - "type": "array", - "items": { - "type": "object", - "properties": { - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "pkh": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "cycle", - "pkh" - ] - } - } - }, - "required": [ - "full_balance", - "current_frozen_deposits", - "frozen_deposits", - "staking_balance", - "delegated_contracts", - "delegated_balance", - "deactivated", - "grace_period", - "total_delegated_stake", - "staking_denominator", - "active_consensus_key" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/active_staking_parameters": { - "get": { - "description": "Returns the currently active staking parameters for the given delegate.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit_of_staking_over_baking_millionth": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "edge_of_baking_over_staking_billionth": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "limit_of_staking_over_baking_millionth", - "edge_of_baking_over_staking_billionth" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/consensus_key": { - "get": { - "description": "The active consensus key for a given delegate and the pending consensus keys.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "active": { - "type": "object", - "properties": { - "pkh": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "pk": { - "$ref": "#/components/schemas/Signature.Public_key" - } - }, - "required": [ - "pkh", - "pk" - ] - }, - "pendings": { - "type": "array", - "items": { - "type": "object", - "properties": { - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "pkh": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "pk": { - "$ref": "#/components/schemas/Signature.Public_key" - } - }, - "required": [ - "cycle", - "pkh", - "pk" - ] - } - } - }, - "required": [ - "active" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/current_baking_power": { - "get": { - "description": "The baking power of a delegate, as computed from its current stake. This value is not used for computing baking rights but only reflects the baking power that the delegate would have if a snapshot was taken at the current block.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "64 bit integers", - "description": "Decimal representation of 64 bit integers", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/current_frozen_deposits": { - "get": { - "description": "Returns the current amount of the frozen deposits (in mutez). That is the frozen deposits at beginning of cycle plus rewards minus unstaked and slashing. It doesn't count unstaked frozen deposits.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/current_voting_power": { - "get": { - "description": "The voting power of a given delegate, as computed from its current stake.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "64 bit integers", - "description": "Decimal representation of 64 bit integers", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/deactivated": { - "get": { - "description": "Tells whether the delegate is currently tagged as deactivated or not.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "boolean" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/delegated_balance": { - "get": { - "description": "Returns the sum (in mutez) of all balances of all the contracts that delegate to a given delegate. This excludes the delegate's own balance, its frozen deposits and its frozen bonds.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/delegated_contracts": { - "get": { - "description": "Returns the list of contracts that delegate to a given delegate.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/frozen_deposits": { - "get": { - "description": "Returns the amount of the frozen deposits (in mutez) at the beginning of the current cycle. It doesn't count frozen deposits unstaked before the current cycle.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/frozen_deposits_limit": { - "get": { - "description": "Returns the frozen deposits limit for the given delegate or none if no limit is set.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/full_balance": { - "get": { - "description": "Returns the full balance (in mutez) of a given delegate, including the frozen deposits and the frozen bonds. It does not include its delegated balance.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/grace_period": { - "get": { - "description": "Returns the cycle by the end of which the delegate might be deactivated if she fails to execute any delegate action. A deactivated delegate might be reactivated (without loosing any stake) by simply re-registering as a delegate. For deactivated delegates, this value contains the cycle at which they were deactivated.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/participation": { - "get": { - "description": "Returns cycle and level participation information. In particular this indicates, in the field 'expected_cycle_activity', the number of slots the delegate is expected to have in the cycle based on its active stake. The field 'minimal_cycle_activity' indicates the minimal attesting slots in the cycle required to get attesting rewards. It is computed based on 'expected_cycle_activity. The fields 'missed_slots' and 'missed_levels' indicate the number of missed attesting slots and missed levels (for attesting) in the cycle so far. 'missed_slots' indicates the number of missed attesting slots in the cycle so far. The field 'remaining_allowed_missed_slots' indicates the remaining amount of attesting slots that can be missed in the cycle before forfeiting the rewards. Finally, 'expected_attesting_rewards' indicates the attesting rewards that will be distributed at the end of the cycle if activity at that point will be greater than the minimal required; if the activity is already known to be below the required minimum, then the rewards are zero.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "expected_cycle_activity": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "minimal_cycle_activity": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "missed_slots": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "missed_levels": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "remaining_allowed_missed_slots": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "expected_attesting_rewards": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "expected_cycle_activity", - "minimal_cycle_activity", - "missed_slots", - "missed_levels", - "remaining_allowed_missed_slots", - "expected_attesting_rewards" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/pending_staking_parameters": { - "get": { - "description": "Returns the pending values for the given delegate's staking parameters.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "parameters": { - "type": "object", - "properties": { - "limit_of_staking_over_baking_millionth": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "edge_of_baking_over_staking_billionth": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "limit_of_staking_over_baking_millionth", - "edge_of_baking_over_staking_billionth" - ] - } - }, - "required": [ - "cycle", - "parameters" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/stakers": { - "get": { - "description": "Returns the list of accounts that stake to a given delegate together with their share of the frozen deposits.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "staker": { - "$ref": "#/components/schemas/018-Proxford.contract_id.implicit" - }, - "frozen_deposits": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "staker", - "frozen_deposits" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/staking_balance": { - "get": { - "description": "Returns the total amount of tokens (in mutez) delegated to a given delegate. This includes the balances of all the contracts that delegate to it, but also the balance of the delegate itself, its frozen deposits, and its frozen bonds.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/staking_denominator": { - "get": { - "description": "Returns an abstract representation of the total delegated stake.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/total_delegated_stake": { - "get": { - "description": "Returns the sum (in mutez) of all tokens staked by the delegators of a given delegate. This excludes the delegate's own staked tokens.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/unstaked_frozen_deposits": { - "get": { - "description": "Returns, for each cycle, the sum of unstaked-but-frozen deposits for this cycle. Cycles go from the last unslashable cycle to the current cycle.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "deposit": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "cycle", - "deposit" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/voting_info": { - "get": { - "description": "Returns the delegate info (e.g. voting power) found in the listings of the current voting period.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voting_power": { - "$ref": "#/components/schemas/int64" - }, - "current_ballot": { - "type": "string", - "enum": [ - "nay", - "yay", - "pass" - ] - }, - "current_proposals": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "remaining_proposals": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/delegates/{pkh}/voting_power": { - "get": { - "description": "The voting power in the vote listings for a given delegate.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "64 bit integers", - "description": "Decimal representation of 64 bit integers", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/denunciations": { - "get": { - "description": "Returns the denunciations for misbehavior in the current cycle.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "slashed_delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "operation_hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "rewarded": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "misbehaviour": { - "oneOf": [ - { - "title": "Double baking", - "type": "string", - "enum": [ - "double baking" - ] - }, - { - "title": "Double attesting", - "type": "string", - "enum": [ - "double attesting" - ] - } - ] - }, - "misbehaviour_cycle": { - "type": "integer", - "minimum": -128, - "maximum": 127 - } - }, - "required": [ - "slashed_delegate", - "operation_hash", - "rewarded", - "misbehaviour", - "misbehaviour_cycle" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/issuance/current_yearly_rate": { - "get": { - "description": "Returns the current expected maximum yearly issuance rate (in %)", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Universal string representation", - "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "invalid_utf8_string": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 255 - } - } - }, - "required": [ - "invalid_utf8_string" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/issuance/current_yearly_rate_details": { - "get": { - "description": "Returns the static and dynamic parts of the current expected maximum yearly issuance rate.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "static": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/positive_bignum" - }, - "denominator": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - }, - "dynamic": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/positive_bignum" - }, - "denominator": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - } - }, - "required": [ - "static", - "dynamic" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/issuance/current_yearly_rate_exact": { - "get": { - "description": "Returns the current expected maximum yearly issuance rate (exact quotient)", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "numerator": { - "$ref": "#/components/schemas/positive_bignum" - }, - "denominator": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "numerator", - "denominator" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/issuance/expected_issuance": { - "get": { - "description": "Returns the expected issued tez for the provided block and the next five cycles", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "baking_reward_fixed_portion": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "baking_reward_bonus_per_slot": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "attesting_reward_per_slot": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "liquidity_baking_subsidy": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "seed_nonce_revelation_tip": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "vdf_revelation_tip": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "cycle", - "baking_reward_fixed_portion", - "baking_reward_bonus_per_slot", - "attesting_reward_per_slot", - "liquidity_baking_subsidy", - "seed_nonce_revelation_tip", - "vdf_revelation_tip" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/issuance/issuance_per_minute": { - "get": { - "description": "Returns the current expected maximum issuance per minute (in mutez)", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/liquidity_baking/cpmm_address": { - "get": { - "description": "Liquidity baking CPMM address", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A contract handle -- originated account", - "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/merkle_tree": { - "get": { - "description": "Returns the merkle tree of a piece of context.", - "parameters": [ - { - "name": "holey", - "in": "query", - "description": "Send only hashes, omit data of key", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/merkle_tree" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/merkle_tree_v2": { - "get": { - "description": "Returns the Irmin merkle tree of a piece of context.", - "parameters": [ - { - "name": "holey", - "in": "query", - "description": "Send only hashes, omit data of key", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "version": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - }, - "before": { - "oneOf": [ - { - "title": "Value", - "type": "object", - "properties": { - "value": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "value" - ] - }, - { - "title": "Node", - "type": "object", - "properties": { - "node": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "node" - ] - } - ] - }, - "after": { - "oneOf": [ - { - "title": "Value", - "type": "object", - "properties": { - "value": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "value" - ] - }, - { - "title": "Node", - "type": "object", - "properties": { - "node": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "node" - ] - } - ] - }, - "state": { - "$ref": "#/components/schemas/tree_encoding" - } - }, - "required": [ - "version", - "before", - "after", - "state" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/nonces/{block_level}": { - "get": { - "description": "Info about the nonce of a previous block.", - "parameters": [ - { - "name": "block_level", - "in": "path", - "description": "A level integer", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "Revealed", - "type": "object", - "properties": { - "nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "nonce" - ] - }, - { - "title": "Missing", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/cycle_nonce" - } - }, - "required": [ - "hash" - ] - }, - { - "title": "Forgotten", - "type": "object", - "properties": {} - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/raw/bytes": { - "get": { - "description": "Returns the raw context.", - "parameters": [ - { - "name": "depth", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/raw_context" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/sapling/{sapling_state_id}/get_diff": { - "get": { - "description": "Returns the root and a diff of a state starting from an optional offset which is zero by default.", - "parameters": [ - { - "name": "sapling_state_id", - "in": "path", - "description": "A sapling state identifier", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "offset_commitment", - "in": "query", - "description": "Commitments and ciphertexts are returned from the specified offset up to the most recent.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "offset_nullifier", - "in": "query", - "description": "Nullifiers are returned from the specified offset up to the most recent.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "root": { - "$ref": "#/components/schemas/sapling.transaction.commitment_hash" - }, - "commitments_and_ciphertexts": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/sapling.transaction.commitment" - }, - { - "$ref": "#/components/schemas/sapling.transaction.ciphertext" - } - ] - } - } - }, - "nullifiers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sapling.transaction.nullifier" - } - } - }, - "required": [ - "root", - "commitments_and_ciphertexts", - "nullifiers" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/seed": { - "post": { - "description": "Seed of the cycle to which the block belongs.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/seed_computation": { - "get": { - "description": "Seed computation status", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "Nonce revelation stage", - "type": "object", - "properties": { - "nonce_revelation_stage": {} - }, - "required": [ - "nonce_revelation_stage" - ] - }, - { - "title": "VDF revelation stage", - "type": "object", - "properties": { - "seed_discriminant": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "seed_challenge": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "seed_discriminant", - "seed_challenge" - ] - }, - { - "title": "Computation finished", - "type": "object", - "properties": { - "computation_finished": {} - }, - "required": [ - "computation_finished" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/selected_snapshot": { - "get": { - "description": "Returns the index of the selected snapshot for the current cycle or for the specific `cycle` passed as argument, if any.", - "parameters": [ - { - "name": "cycle", - "in": "query", - "description": "A cycle integer", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/all": { - "get": { - "description": "List of all originated smart rollups", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/smart_rollup_address" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/all/inbox": { - "get": { - "description": "Inbox for the smart rollups", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "old_levels_messages": { - "type": "object", - "properties": { - "index": { - "$ref": "#/components/schemas/positive_bignum" - }, - "content": { - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "hash", - "level" - ] - }, - "back_pointers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/smart_rollup_inbox_hash" - } - } - }, - "required": [ - "index", - "content", - "back_pointers" - ] - } - }, - "required": [ - "level", - "old_levels_messages" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}": { - "get": { - "description": "Commitment for a smart rollup from its hash", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "smart_rollup_commitment_hash", - "in": "path", - "description": "smart_rollup_commitment_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}/can_be_cemented": { - "get": { - "description": "Returns true if and only if the provided commitment can be cemented.", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "smart_rollup_commitment_hash", - "in": "path", - "description": "smart_rollup_commitment_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "boolean" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}/stakers_indexes": { - "get": { - "description": "List of stakers indexes staking on a given commitment", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "smart_rollup_commitment_hash", - "in": "path", - "description": "smart_rollup_commitment_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/genesis_info": { - "get": { - "description": "Genesis information (level and commitment hash) for a smart rollup", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "level", - "commitment_hash" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/inbox_level/{block_level}/commitments": { - "get": { - "description": "List of commitments associated to a rollup for a given inbox level", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "block_level", - "in": "path", - "description": "A level integer", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "array", - "items": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/initial_pvm_state_hash": { - "get": { - "description": "Initial PVM state hash of smart rollup", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "The hash of the VM state of a smart rollup (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/kind": { - "get": { - "description": "Kind of smart rollup", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string", - "enum": [ - "wasm_2_0_0", - "arith", - "riscv" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/last_cemented_commitment_hash_with_level": { - "get": { - "description": "Level and hash of the last cemented commitment for a smart rollup", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "hash", - "level" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/last_whitelist_update": { - "get": { - "description": "Last whitelist update for private smart rollups. If the output is None then the rollup is public.", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "message_index": { - "$ref": "#/components/schemas/positive_bignum" - }, - "outbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "message_index", - "outbox_level" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/conflicts": { - "get": { - "description": "List of stakers in conflict with the given staker", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "other": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "their_commitment": { - "type": "object", - "properties": { - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - }, - "our_commitment": { - "type": "object", - "properties": { - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - }, - "parent_commitment": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "other", - "their_commitment", - "our_commitment", - "parent_commitment" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/games": { - "get": { - "description": "Ongoing refutation games for a given staker", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "game": { - "type": "object", - "properties": { - "turn": { - "oneOf": [ - { - "title": "Alice", - "type": "string", - "enum": [ - "alice" - ] - }, - { - "title": "Bob", - "type": "string", - "enum": [ - "bob" - ] - } - ] - }, - "inbox_snapshot": { - "type": "object", - "properties": { - "index": { - "$ref": "#/components/schemas/positive_bignum" - }, - "content": { - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "hash", - "level" - ] - }, - "back_pointers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/smart_rollup_inbox_hash" - } - } - }, - "required": [ - "index", - "content", - "back_pointers" - ] - }, - "dal_snapshot": { - "type": "object", - "properties": { - "index": { - "$ref": "#/components/schemas/positive_bignum" - }, - "content": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - } - }, - "required": [ - "level", - "index", - "commitment" - ] - }, - "back_pointers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/dal_skip_list_pointer" - } - } - }, - "required": [ - "index", - "content", - "back_pointers" - ] - }, - "start_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "game_state": { - "oneOf": [ - { - "title": "Dissecting", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "Dissecting" - ] - }, - "dissection": { - "type": "array", - "items": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "tick": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "tick" - ] - } - }, - "default_number_of_sections": { - "type": "integer", - "minimum": 0, - "maximum": 255 - } - }, - "required": [ - "kind", - "dissection", - "default_number_of_sections" - ] - }, - { - "title": "Final_move", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "Final_move" - ] - }, - "agreed_start_chunk": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "tick": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "tick" - ] - }, - "refuted_stop_chunk": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "tick": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "tick" - ] - } - }, - "required": [ - "kind", - "agreed_start_chunk", - "refuted_stop_chunk" - ] - } - ] - } - }, - "required": [ - "turn", - "inbox_snapshot", - "dal_snapshot", - "start_level", - "inbox_level", - "game_state" - ] - }, - "alice": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "bob": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "game", - "alice", - "bob" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/index": { - "get": { - "description": "Staker index associated to a public key hash for a given rollup", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Positive big number", - "description": "Decimal representation of a positive big number", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/staked_on_commitment": { - "get": { - "description": "The newest commitment on which the operator has staked on for a smart rollup. Note that is can return a commitment that is before the last cemented one.", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "hash", - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker1/{staker1_pkh}/staker2/{staker2_pkh}/timeout": { - "get": { - "description": "Returns the timeout of players.", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "staker1_pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "staker2_pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "alice": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "bob": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "last_turn_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "alice", - "bob", - "last_turn_level" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker1/{staker1_pkh}/staker2/{staker2_pkh}/timeout_reached": { - "get": { - "description": "Returns whether the timeout creates a result for the game.", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "staker1_pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "staker2_pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "title": "Loser", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "loser" - ] - }, - "reason": { - "oneOf": [ - { - "title": "Conflict_resolved", - "type": "string", - "enum": [ - "conflict_resolved" - ] - }, - { - "title": "Timeout", - "type": "string", - "enum": [ - "timeout" - ] - } - ] - }, - "player": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "reason", - "player" - ] - }, - { - "title": "Draw", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "draw" - ] - } - }, - "required": [ - "kind" - ] - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/stakers": { - "get": { - "description": "List of active stakers' public key hashes of a rollup", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/ticket_balance": { - "post": { - "description": "Access the smart rollup's balance of ticket with specified ticketer, content type, and content.", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Positive big number", - "description": "Decimal representation of a positive big number", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/smart_rollups/smart_rollup/{smart_rollup_address}/whitelist": { - "get": { - "description": "Whitelist for private smart rollups. If the output is None then the rollup is public.", - "parameters": [ - { - "name": "smart_rollup_address", - "in": "path", - "description": "smart_rollup_address (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/total_frozen_stake": { - "get": { - "description": "Returns the total stake (in mutez) frozen on the chain", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/context/total_supply": { - "get": { - "description": "Returns the total supply (in mutez) available on the chain", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/positive_bignum" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/hash": { - "get": { - "description": "The block's hash, its unique identifier.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A block identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/header": { - "get": { - "description": "The whole block header.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Shell header", - "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/block_hash" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - }, - "content": { - "oneOf": [ - { - "title": "Activate", - "type": "object", - "properties": { - "command": { - "type": "string", - "enum": [ - "activate" - ] - }, - "hash": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "protocol_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "command", - "hash", - "fitness", - "protocol_parameters" - ] - }, - { - "title": "Activate_testchain", - "type": "object", - "properties": { - "command": { - "type": "string", - "enum": [ - "activate_testchain" - ] - }, - "hash": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "protocol_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "validity_time": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "command", - "hash", - "fitness", - "protocol_parameters", - "validity_time" - ] - } - ] - }, - "signature": { - "$ref": "#/components/schemas/Signature.V0" - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context", - "content", - "signature" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/header/protocol_data": { - "get": { - "description": "The version-specific fragment of the block header.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "content": { - "oneOf": [ - { - "title": "Activate", - "type": "object", - "properties": { - "command": { - "type": "string", - "enum": [ - "activate" - ] - }, - "hash": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "protocol_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "command", - "hash", - "fitness", - "protocol_parameters" - ] - }, - { - "title": "Activate_testchain", - "type": "object", - "properties": { - "command": { - "type": "string", - "enum": [ - "activate_testchain" - ] - }, - "hash": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "protocol_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "validity_time": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "command", - "hash", - "fitness", - "protocol_parameters", - "validity_time" - ] - } - ] - }, - "signature": { - "$ref": "#/components/schemas/Signature.V0" - } - }, - "required": [ - "protocol", - "content", - "signature" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/header/protocol_data/raw": { - "get": { - "description": "The version-specific fragment of the block header (unparsed).", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/header/raw": { - "get": { - "description": "The whole block header (unparsed).", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/header/shell": { - "get": { - "description": "The shell-specific fragment of the block header.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Shell header", - "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/attestation_rights": { - "get": { - "description": "Retrieves the delegates allowed to attest a block.\nBy default, it gives the attestation power for delegates that have at least one attestation slot for the next block.\nParameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or future at which the attestation rights have to be returned. Parameter `delegate` can be used to restrict the results to the given delegates.\nParameter `consensus_key` can be used to restrict the results to the given consensus_keys. \nReturns the smallest attestation slots and the attestation power. Also returns the minimal timestamp that corresponds to attestation at the given level. The timestamps are omitted for levels in the past, and are only estimates for levels higher that the next block's, based on the hypothesis that all predecessor blocks were baked at the first round.", - "parameters": [ - { - "name": "level", - "in": "query", - "description": "A level integer", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "cycle", - "in": "query", - "description": "A cycle integer", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "delegate", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "consensus_key", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "delegates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "first_slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "attestation_power": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate", - "first_slot", - "attestation_power", - "consensus_key" - ] - } - }, - "estimated_time": { - "$ref": "#/components/schemas/timestamp.protocol" - } - }, - "required": [ - "level", - "delegates" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/baking_rights": { - "get": { - "description": "Retrieves the list of delegates allowed to bake a block.\nBy default, it gives the best baking opportunities (in terms of rounds) for bakers that have at least one opportunity below the 64th round for the next block.\nParameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or future at which the baking rights have to be returned.\nParameter `delegate` can be used to restrict the results to the given delegates. Parameter `consensus_key` can be used to restrict the results to the given consensus_keys. If parameter `all` is set, all the baking opportunities for each baker at each level are returned, instead of just the first one.\nReturns the list of baking opportunities up to round 64. Also returns the minimal timestamps that correspond to these opportunities. The timestamps are omitted for levels in the past, and are only estimates for levels higher that the next block's, based on the hypothesis that all predecessor blocks were baked at the first round.", - "parameters": [ - { - "name": "level", - "in": "query", - "description": "A level integer", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "cycle", - "in": "query", - "description": "A cycle integer", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "delegate", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "consensus_key", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "max_round", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "all", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "estimated_time": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "level", - "delegate", - "round", - "consensus_key" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/complete/{prefix}": { - "get": { - "description": "Try to complete a prefix of a Base58Check-encoded data. This RPC is actually able to complete hashes of block, operations, public_keys and contracts.", - "parameters": [ - { - "name": "prefix", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/current_level": { - "get": { - "description": "Returns the level of the interrogated block, or the one of a block located `offset` blocks after it in the chain. For instance, the next block if `offset` is 1. The offset cannot be negative.", - "parameters": [ - { - "name": "offset", - "in": "query", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "level": { - "description": "The level of the block relative to genesis. This is also the Shell's notion of level.", - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "level_position": { - "description": "The level of the block relative to the successor of the genesis block. More precisely, it is the position of the block relative to the block that starts the \"Alpha family\" of protocols, which includes all protocols except Genesis (that is, from 001 onwards).", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "cycle": { - "description": "The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the Alpha family of protocols.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "cycle_position": { - "description": "The current level of the block relative to the first block of the current cycle.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "expected_commitment": { - "description": "Tells whether the baker of this block has to commit a seed nonce hash.", - "type": "boolean" - } - }, - "required": [ - "level", - "level_position", - "cycle", - "cycle_position", - "expected_commitment" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/endorsing_rights": { - "get": { - "description": "Deprecated: use `attestation_rights` instead.\nRetrieves the delegates allowed to endorse a block.\nBy default, it gives the endorsing power for delegates that have at least one endorsing slot for the next block.\nParameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or future at which the endorsing rights have to be returned. Parameter `delegate` can be used to restrict the results to the given delegates.\nParameter `consensus_key` can be used to restrict the results to the given consensus_keys. \nReturns the smallest endorsing slots and the endorsing power. Also returns the minimal timestamp that corresponds to endorsing at the given level. The timestamps are omitted for levels in the past, and are only estimates for levels higher that the next block's, based on the hypothesis that all predecessor blocks were baked at the first round.", - "parameters": [ - { - "name": "level", - "in": "query", - "description": "A level integer", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "cycle", - "in": "query", - "description": "A cycle integer", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "delegate", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "consensus_key", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "delegates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "first_slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "endorsing_power": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate", - "first_slot", - "endorsing_power", - "consensus_key" - ] - } - }, - "estimated_time": { - "$ref": "#/components/schemas/timestamp.protocol" - } - }, - "required": [ - "level", - "delegates" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/forge/operations": { - "post": { - "description": "Forge an operation", - "requestBody": { - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "operations_encoding", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.unsigned_operation" - } - ] - }, - { - "title": "operations_encoding_with_legacy_attestation_name", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.unsigned_operation" - } - ] - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/forge/protocol_data": { - "post": { - "description": "Forge the protocol-specific part of a block header", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "payload_round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "nonce_hash": { - "$ref": "#/components/schemas/cycle_nonce" - }, - "proof_of_work_nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "per_block_votes": { - "$ref": "#/components/schemas/018-Proxford.per_block_votes" - } - }, - "required": [ - "payload_hash", - "payload_round" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "protocol_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "protocol_data" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/forge_block_header": { - "post": { - "description": "Forge a block header", - "requestBody": { - "content": { - "application/json": { - "schema": { - "title": "Block header", - "description": "Block header. It contains both shell and protocol specific data.", - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - }, - "protocol_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context", - "protocol_data" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "block": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "block" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/levels_in_current_cycle": { - "get": { - "description": "Levels of a cycle", - "parameters": [ - { - "name": "offset", - "in": "query", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "first": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "last": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - } - }, - "required": [ - "first", - "last" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/parse/block": { - "post": { - "description": "Parse a block", - "requestBody": { - "content": { - "application/json": { - "schema": { - "title": "Block header", - "description": "Block header. It contains both shell and protocol specific data.", - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - }, - "protocol_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context", - "protocol_data" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "payload_round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proof_of_work_nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "seed_nonce_hash": { - "$ref": "#/components/schemas/cycle_nonce" - }, - "liquidity_baking_toggle_vote": { - "$ref": "#/components/schemas/018-Proxford.liquidity_baking_vote" - }, - "adaptive_issuance_vote": { - "$ref": "#/components/schemas/018-Proxford.adaptive_issuance_vote" - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "payload_hash", - "payload_round", - "proof_of_work_nonce", - "liquidity_baking_toggle_vote", - "adaptive_issuance_vote", - "signature" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/parse/operations": { - "post": { - "description": "Parse operations", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version '0' (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field and version '1' that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "operations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation" - } - }, - "check_signature": { - "type": "boolean" - } - }, - "required": [ - "operations" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "parse_operations_encoding_v1", - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "contents" - ] - } - }, - { - "title": "parse_operations_encoding_v0", - "type": "array", - "items": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "contents" - ] - } - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/preapply/block": { - "post": { - "description": "Simulate the validation of a block that would contain the given operations and return the resulting fitness and context hash.", - "parameters": [ - { - "name": "sort", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "timestamp", - "in": "query", - "description": "A date in seconds from epoch", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "protocol_data": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH" - ] - }, - "payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "payload_round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proof_of_work_nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "seed_nonce_hash": { - "$ref": "#/components/schemas/cycle_nonce" - }, - "liquidity_baking_toggle_vote": { - "$ref": "#/components/schemas/018-Proxford.liquidity_baking_vote" - }, - "adaptive_issuance_vote": { - "$ref": "#/components/schemas/018-Proxford.adaptive_issuance_vote" - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "protocol", - "payload_hash", - "payload_round", - "proof_of_work_nonce", - "liquidity_baking_toggle_vote", - "adaptive_issuance_vote", - "signature" - ] - }, - "operations": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "title": "operation_data_encoding", - "oneOf": [ - { - "$ref": "#/components/schemas/next_operation" - } - ] - }, - { - "title": "operation_data_encoding_with_legacy_attestation_name", - "oneOf": [ - { - "$ref": "#/components/schemas/next_operation_with_legacy_attestation_name" - } - ] - } - ] - } - } - } - }, - "required": [ - "protocol_data", - "operations" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "shell_header": { - "$ref": "#/components/schemas/block_header.shell" - }, - "operations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "applied": { - "type": "array", - "items": { - "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "hash", - "branch", - "data" - ] - } - }, - "refused": { - "type": "array", - "items": { - "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "branch", - "data", - "error" - ] - } - }, - "outdated": { - "type": "array", - "items": { - "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "branch", - "data", - "error" - ] - } - }, - "branch_refused": { - "type": "array", - "items": { - "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "branch", - "data", - "error" - ] - } - }, - "branch_delayed": { - "type": "array", - "items": { - "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "error": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "hash", - "branch", - "data", - "error" - ] - } - } - }, - "required": [ - "applied", - "refused", - "outdated", - "branch_refused", - "branch_delayed" - ] - } - } - }, - "required": [ - "shell_header", - "operations" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/preapply/operations": { - "post": { - "description": "Simulate the application of the operations with the context of the given block and return the result of each operation application.", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "oneOf": [ - { - "title": "operation_data_encoding", - "oneOf": [ - { - "$ref": "#/components/schemas/next_operation" - } - ] - }, - { - "title": "operation_data_encoding_with_legacy_attestation_name", - "oneOf": [ - { - "$ref": "#/components/schemas/next_operation_with_legacy_attestation_name" - } - ] - } - ] - } - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "preapplied_operations_encoding_v1", - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_with_metadata" - } - }, - { - "title": "preapplied_operations_encoding_v0", - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.operation_with_metadata" - } - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/round": { - "get": { - "description": "Returns the round of the interrogated block, or the one of a block located `offset` blocks after in the chain (or before when negative). For instance, the next block if `offset` is 1.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/entrypoint": { - "post": { - "description": "Return the type of the given entrypoint", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "script": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - } - }, - "required": [ - "script" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "entrypoint_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "entrypoint_type" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/entrypoints": { - "post": { - "description": "Return the list of entrypoints of the given script", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "script": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "script" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "unreachable": { - "type": "array", - "items": { - "type": "object", - "properties": { - "path": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.michelson.v1.primitives" - } - } - }, - "required": [ - "path" - ] - } - }, - "entrypoints": { - "type": "object", - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - }, - "required": [ - "entrypoints" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/normalize_data": { - "post": { - "description": "Normalizes some data expression using the requested unparsing mode", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "legacy": { - "type": "boolean" - }, - "other_contracts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/Contract_hash" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "address", - "type" - ] - } - }, - "extra_big_maps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "map_literal": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "id", - "key_type", - "val_type", - "map_literal" - ] - } - } - }, - "required": [ - "data", - "type", - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "normalized": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "normalized" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/normalize_script": { - "post": { - "description": "Normalizes a Michelson script using the requested unparsing mode", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "script": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - } - }, - "required": [ - "script", - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "normalized": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "normalized" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/normalize_stack": { - "post": { - "description": "Normalize a Michelson stack using the requested unparsing mode", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "input": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "type", - "val" - ] - } - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "legacy": { - "type": "boolean" - }, - "other_contracts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/Contract_hash" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "address", - "type" - ] - } - }, - "extra_big_maps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "map_literal": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "id", - "key_type", - "val_type", - "map_literal" - ] - } - } - }, - "required": [ - "input", - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "output": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "type", - "val" - ] - } - } - }, - "required": [ - "output" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/normalize_type": { - "post": { - "description": "Normalizes some Michelson type by expanding `pair a b c` as `pair a (pair b c)", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "type" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "normalized": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "normalized" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/pack_data": { - "post": { - "description": "Computes the serialized version of some data expression using the same algorithm as script instruction PACK", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "data", - "type" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "packed": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "gas": { - "oneOf": [ - { - "title": "Limited", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - }, - { - "title": "Unaccounted", - "type": "string", - "enum": [ - "unaccounted" - ] - } - ] - } - }, - "required": [ - "packed", - "gas" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/run_code": { - "post": { - "description": "Run a Michelson script in the current context", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "script": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "input": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "payer": { - "$ref": "#/components/schemas/018-Proxford.contract_id.implicit" - }, - "self": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "now": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "$ref": "#/components/schemas/positive_bignum" - }, - "other_contracts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/Contract_hash" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "address", - "type" - ] - } - }, - "extra_big_maps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "map_literal": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "id", - "key_type", - "val_type", - "map_literal" - ] - } - } - }, - "required": [ - "script", - "storage", - "input", - "amount", - "chain_id" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "storage", - "operations" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/run_instruction": { - "post": { - "description": "Run a single Michelson instruction", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "input": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "type", - "val" - ] - } - }, - "code": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "now": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "$ref": "#/components/schemas/positive_bignum" - }, - "sender": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.contract_id.implicit" - }, - "self": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - }, - "parameter": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "other_contracts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/Contract_hash" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "address", - "type" - ] - } - }, - "big_maps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "map_literal": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "id", - "key_type", - "val_type", - "map_literal" - ] - } - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "legacy": { - "type": "boolean" - } - }, - "required": [ - "input", - "code", - "chain_id", - "amount" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "output": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "type", - "val" - ] - } - }, - "gas": { - "oneOf": [ - { - "title": "Limited", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - }, - { - "title": "Unaccounted", - "type": "string", - "enum": [ - "unaccounted" - ] - } - ] - } - }, - "required": [ - "output", - "gas" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/run_operation": { - "post": { - "description": "Run an operation with the context of the given block and without signature checks. Return the operation application result, including the consumed gas. This RPC does not support consensus operations.", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version '0' (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field and version '1' that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "operation": { - "oneOf": [ - { - "title": "operations_encoding", - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "contents" - ] - }, - { - "title": "operations_encoding_with_legacy_attestation_name", - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "contents" - ] - } - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - } - }, - "required": [ - "operation", - "chain_id" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "run_operation_output_encoding_v1", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_with_metadata" - } - ] - }, - { - "title": "run_operation_output_encoding_v0", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.operation_with_metadata" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/run_script_view": { - "post": { - "description": "Simulate a call to a michelson view", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "contract": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - }, - "view": { - "$ref": "#/components/schemas/unistring" - }, - "input": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "unlimited_gas": { - "type": "boolean" - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "payer": { - "$ref": "#/components/schemas/018-Proxford.contract_id.implicit" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "now": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "$ref": "#/components/schemas/positive_bignum" - }, - "other_contracts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/Contract_hash" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "address", - "type" - ] - } - }, - "extra_big_maps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "map_literal": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "id", - "key_type", - "val_type", - "map_literal" - ] - } - } - }, - "required": [ - "contract", - "view", - "input", - "chain_id", - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "data" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/run_view": { - "post": { - "description": "Simulate a call to a view following the TZIP-4 standard. See https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-4/tzip-4.md#view-entrypoints.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "contract": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - }, - "input": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "payer": { - "$ref": "#/components/schemas/018-Proxford.contract_id.implicit" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "now": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "$ref": "#/components/schemas/positive_bignum" - }, - "other_contracts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/Contract_hash" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "address", - "type" - ] - } - }, - "extra_big_maps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "map_literal": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "id", - "key_type", - "val_type", - "map_literal" - ] - } - } - }, - "required": [ - "contract", - "entrypoint", - "input", - "chain_id", - "unparsing_mode" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "data" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/script_size": { - "post": { - "description": "Compute the size of a script in the current context", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "program": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "legacy": { - "type": "boolean" - } - }, - "required": [ - "program", - "storage" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "script_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "script_size" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/simulate_operation": { - "post": { - "description": "Simulate running an operation at some future moment (based on the number of blocks given in the `latency` argument), and return the operation application result. The result is the same as run_operation except for the consumed gas, which depends on the contents of the cache at that future moment. This RPC estimates future gas consumption by trying to predict the state of the cache using some heuristics.", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version '0' (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field and version '1' that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "successor_level", - "in": "query", - "description": "If true, the simulation is done on the successor level of the current context.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "blocks_before_activation": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "operation": { - "oneOf": [ - { - "title": "operations_encoding", - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "contents" - ] - }, - { - "title": "operations_encoding_with_legacy_attestation_name", - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "contents" - ] - } - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "latency": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - }, - "required": [ - "operation", - "chain_id" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "run_operation_output_encoding_v1", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_with_metadata" - } - ] - }, - { - "title": "run_operation_output_encoding_v0", - "oneOf": [ - { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.operation_with_metadata" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/trace_code": { - "post": { - "description": "Run a Michelson script in the current context, keeping a trace", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "script": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "input": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "payer": { - "$ref": "#/components/schemas/018-Proxford.contract_id.implicit" - }, - "self": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - }, - "unparsing_mode": { - "oneOf": [ - { - "title": "Readable", - "type": "string", - "enum": [ - "Readable" - ] - }, - { - "title": "Optimized", - "type": "string", - "enum": [ - "Optimized" - ] - }, - { - "title": "Optimized_legacy", - "type": "string", - "enum": [ - "Optimized_legacy" - ] - } - ] - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "now": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "$ref": "#/components/schemas/positive_bignum" - }, - "other_contracts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/Contract_hash" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "address", - "type" - ] - } - }, - "extra_big_maps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "val_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "map_literal": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "id", - "key_type", - "val_type", - "map_literal" - ] - } - } - }, - "required": [ - "script", - "storage", - "input", - "amount", - "chain_id" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - }, - "trace": { - "$ref": "#/components/schemas/018-Proxford.scripted.trace" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "storage", - "operations", - "trace" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/typecheck_code": { - "post": { - "description": "Typecheck a piece of code in the current context", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "program": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "legacy": { - "type": "boolean" - }, - "show_types": { - "type": "boolean" - } - }, - "required": [ - "program" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "type_map": { - "type": "array", - "items": { - "type": "object", - "properties": { - "location": { - "$ref": "#/components/schemas/micheline.location" - }, - "stack_before": { - "type": "array", - "items": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "stack_after": { - "type": "array", - "items": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - }, - "required": [ - "location", - "stack_before", - "stack_after" - ] - } - }, - "gas": { - "oneOf": [ - { - "title": "Limited", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - }, - { - "title": "Unaccounted", - "type": "string", - "enum": [ - "unaccounted" - ] - } - ] - } - }, - "required": [ - "type_map", - "gas" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/scripts/typecheck_data": { - "post": { - "description": "Check that some data expression is well formed and of a given type in the current context", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "legacy": { - "type": "boolean" - } - }, - "required": [ - "data", - "type" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "gas": { - "oneOf": [ - { - "title": "Limited", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - }, - { - "title": "Unaccounted", - "type": "string", - "enum": [ - "unaccounted" - ] - } - ] - } - }, - "required": [ - "gas" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/helpers/validators": { - "get": { - "description": "Retrieves the level, the attestation slots and the public key hash of each delegate allowed to attest a block.\nBy default, it provides this information for the next level.\nParameter `level` can be used to specify the (valid) level(s) in the past or future at which the attestation rights have to be returned. Parameter `delegate` can be used to restrict the results results to the given delegates. Parameter `consensus_key` can be used to restrict the results to the given consensus_keys.\n", - "parameters": [ - { - "name": "level", - "in": "query", - "description": "A level integer", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "delegate", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "consensus_key", - "in": "query", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "slots": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "level", - "delegate", - "slots", - "consensus_key" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/live_blocks": { - "get": { - "description": "List the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/block_hash" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/metadata": { - "get": { - "description": "All the metadata associated to the block.", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "block_metadata_encoding_encoding_v1", - "oneOf": [ - { - "$ref": "#/components/schemas/block_header_metadata" - } - ] - }, - { - "title": "block_metadata_encoding_encoding_v0", - "oneOf": [ - { - "$ref": "#/components/schemas/block_header_metadata_with_legacy_attestation_name" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/metadata_hash": { - "get": { - "description": "Hash of the metadata associated to the block. This is only set on blocks starting from environment V1.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Tezos block metadata ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operation_hashes": { - "get": { - "description": "The hashes of all the operations included in the block.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Operation_hash" - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operation_hashes/{list_offset}": { - "get": { - "description": "All the operations included in `n-th` validation pass of the block.", - "parameters": [ - { - "name": "list_offset", - "in": "path", - "description": "Index `n` of the requested validation pass.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Operation_hash" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operation_hashes/{list_offset}/{operation_offset}": { - "get": { - "description": "The hash of then `m-th` operation in the `n-th` validation pass of the block.", - "parameters": [ - { - "name": "list_offset", - "in": "path", - "description": "Index `n` of the requested validation pass.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "operation_offset", - "in": "path", - "description": "Index `m` of the requested operation in its validation pass.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Tezos operation ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operation_metadata_hashes": { - "get": { - "description": "The hashes of all the operation metadata included in the block. This is only set on blocks starting from environment V1.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Operation_metadata_hash" - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operation_metadata_hashes/{list_offset}": { - "get": { - "description": "All the operation metadata included in `n-th` validation pass of the block. This is only set on blocks starting from environment V1.", - "parameters": [ - { - "name": "list_offset", - "in": "path", - "description": "Index `n` of the requested validation pass.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Operation_metadata_hash" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operation_metadata_hashes/{list_offset}/{operation_offset}": { - "get": { - "description": "The hash of then `m-th` operation metadata in the `n-th` validation pass of the block. This is only set on blocks starting from environment V1.", - "parameters": [ - { - "name": "list_offset", - "in": "path", - "description": "Index `n` of the requested validation pass.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "operation_offset", - "in": "path", - "description": "Index `m` of the requested operation in its validation pass.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Tezos operation metadata ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operations": { - "get": { - "description": "All the operations included in the block.", - "parameters": [ - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "force_metadata", - "in": "query", - "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "operations_encoding_v1", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation" - } - } - }, - { - "title": "operations_encoding_v0", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation_with_legacy_attestation_name" - } - } - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operations/{list_offset}": { - "get": { - "description": "All the operations included in `n-th` validation pass of the block.", - "parameters": [ - { - "name": "list_offset", - "in": "path", - "description": "Index `n` of the requested validation pass.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "force_metadata", - "in": "query", - "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "operations_in_pass_encoding_v1", - "type": "array", - "items": { - "$ref": "#/components/schemas/operation" - } - }, - { - "title": "operations_in_pass_encoding_v0", - "type": "array", - "items": { - "$ref": "#/components/schemas/operation_with_legacy_attestation_name" - } - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operations/{list_offset}/{operation_offset}": { - "get": { - "description": "The `m-th` operation in the `n-th` validation pass of the block.", - "parameters": [ - { - "name": "list_offset", - "in": "path", - "description": "Index `n` of the requested validation pass.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "operation_offset", - "in": "path", - "description": "Index `m` of the requested operation in its validation pass.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "version", - "in": "query", - "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "force_metadata", - "in": "query", - "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "operation_encoding_v1", - "oneOf": [ - { - "$ref": "#/components/schemas/operation" - } - ] - }, - { - "title": "operation_encoding_v0", - "oneOf": [ - { - "$ref": "#/components/schemas/operation_with_legacy_attestation_name" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/operations_metadata_hash": { - "get": { - "description": "The root hash of the operations metadata from the block. This is only set on blocks starting from environment V1.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A list of list of operation metadata (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/protocols": { - "get": { - "description": "Current and next protocol.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "protocol": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "next_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "required": [ - "protocol", - "next_protocol" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/resulting_context_hash": { - "get": { - "description": "Context hash resulting of the block application.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A hash of context (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/ballot_list": { - "get": { - "description": "Ballots casted so far during a voting period.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "pkh": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "ballot": { - "type": "string", - "enum": [ - "nay", - "yay", - "pass" - ] - } - }, - "required": [ - "pkh", - "ballot" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/ballots": { - "get": { - "description": "Sum of ballots casted so far during a voting period.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "yay": { - "$ref": "#/components/schemas/int64" - }, - "nay": { - "$ref": "#/components/schemas/int64" - }, - "pass": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "yay", - "nay", - "pass" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/current_period": { - "get": { - "description": "Returns the voting period (index, kind, starting position) and related information (position, remaining) of the interrogated block.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voting_period": { - "description": "The voting period to which the block belongs.", - "type": "object", - "properties": { - "index": { - "description": "The voting period's index. Starts at 0 with the first block of the Alpha family of protocols.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "kind": { - "description": "One of the several kinds of periods in the voting procedure.", - "oneOf": [ - { - "title": "Proposal", - "type": "string", - "enum": [ - "proposal" - ] - }, - { - "title": "exploration", - "type": "string", - "enum": [ - "exploration" - ] - }, - { - "title": "Cooldown", - "type": "string", - "enum": [ - "cooldown" - ] - }, - { - "title": "Promotion", - "type": "string", - "enum": [ - "promotion" - ] - }, - { - "title": "Adoption", - "type": "string", - "enum": [ - "adoption" - ] - } - ] - }, - "start_position": { - "description": "The relative position of the first level of the period with respect to the first level of the Alpha family of protocols.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "index", - "kind", - "start_position" - ] - }, - "position": { - "description": "The position of the block within the voting period.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "remaining": { - "description": "The number of blocks remaining till the end of the voting period.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "voting_period", - "position", - "remaining" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/current_proposal": { - "get": { - "description": "Current proposal under evaluation.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/Protocol_hash" - } - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/current_quorum": { - "get": { - "description": "Current expected quorum.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/listings": { - "get": { - "description": "List of delegates with their voting power.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "pkh": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "voting_power": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "pkh", - "voting_power" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/proposal_count/{pkh}": { - "get": { - "description": "Number of votes casted during the current period.", - "parameters": [ - { - "name": "pkh", - "in": "path", - "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/proposals": { - "get": { - "description": "List of proposals with number of supporters.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Protocol_hash" - }, - { - "$ref": "#/components/schemas/int64" - } - ] - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/successor_period": { - "get": { - "description": "Returns the voting period (index, kind, starting position) and related information (position, remaining) of the next block.Useful to craft operations that will be valid in the next block.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voting_period": { - "description": "The voting period to which the block belongs.", - "type": "object", - "properties": { - "index": { - "description": "The voting period's index. Starts at 0 with the first block of the Alpha family of protocols.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "kind": { - "description": "One of the several kinds of periods in the voting procedure.", - "oneOf": [ - { - "title": "Proposal", - "type": "string", - "enum": [ - "proposal" - ] - }, - { - "title": "exploration", - "type": "string", - "enum": [ - "exploration" - ] - }, - { - "title": "Cooldown", - "type": "string", - "enum": [ - "cooldown" - ] - }, - { - "title": "Promotion", - "type": "string", - "enum": [ - "promotion" - ] - }, - { - "title": "Adoption", - "type": "string", - "enum": [ - "adoption" - ] - } - ] - }, - "start_position": { - "description": "The relative position of the first level of the period with respect to the first level of the Alpha family of protocols.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "index", - "kind", - "start_position" - ] - }, - "position": { - "description": "The position of the block within the voting period.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "remaining": { - "description": "The number of blocks remaining till the end of the voting period.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "voting_period", - "position", - "remaining" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/votes/total_voting_power": { - "get": { - "description": "Total voting power in the voting listings.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "64 bit integers", - "description": "Decimal representation of 64 bit integers", - "type": "string" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - } - }, - "components": { - "schemas": { - "018-Proxford.adaptive_issuance_vote": { - "oneOf": [ - { - "title": "per_block_vote_on", - "type": "string", - "enum": [ - "on" - ] - }, - { - "title": "per_block_vote_off", - "type": "string", - "enum": [ - "off" - ] - }, - { - "title": "per_block_vote_pass", - "type": "string", - "enum": [ - "pass" - ] - } - ] - }, - "018-Proxford.apply_internal_results.alpha.operation_result": { - "oneOf": [ - { - "title": "transaction", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transaction" - ] - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "nonce": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "parameters": { - "type": "object", - "properties": { - "entrypoint": { - "$ref": "#/components/schemas/018-Proxford.entrypoint" - }, - "value": {} - }, - "required": [ - "entrypoint", - "value" - ] - }, - "result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.internal_operation_result.transaction" - } - }, - "required": [ - "kind", - "source", - "nonce", - "amount", - "destination", - "result" - ] - }, - { - "title": "origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "origination" - ] - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "nonce": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "script": { - "$ref": "#/components/schemas/018-Proxford.scripted.contracts" - }, - "result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.internal_operation_result.origination" - } - }, - "required": [ - "kind", - "source", - "nonce", - "balance", - "script", - "result" - ] - }, - { - "title": "delegation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "delegation" - ] - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "nonce": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.internal_operation_result.delegation" - } - }, - "required": [ - "kind", - "source", - "nonce", - "result" - ] - }, - { - "title": "event", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "event" - ] - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "nonce": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "tag": { - "$ref": "#/components/schemas/018-Proxford.entrypoint" - }, - "payload": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.internal_operation_result.event" - } - }, - "required": [ - "kind", - "source", - "nonce", - "type", - "result" - ] - } - ] - }, - "018-Proxford.big_map_id": { - "title": "Big map identifier", - "description": "A big map identifier", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - }, - "018-Proxford.block_header.alpha.full_header": { - "title": "Shell header", - "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - }, - "payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "payload_round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proof_of_work_nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "seed_nonce_hash": { - "$ref": "#/components/schemas/cycle_nonce" - }, - "liquidity_baking_toggle_vote": { - "$ref": "#/components/schemas/018-Proxford.liquidity_baking_vote" - }, - "adaptive_issuance_vote": { - "$ref": "#/components/schemas/018-Proxford.adaptive_issuance_vote" - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context", - "payload_hash", - "payload_round", - "proof_of_work_nonce", - "liquidity_baking_toggle_vote", - "adaptive_issuance_vote", - "signature" - ] - }, - "018-Proxford.bond_id": { - "type": "object", - "properties": { - "smart_rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - } - }, - "required": [ - "smart_rollup" - ] - }, - "018-Proxford.contract_id": { - "title": "A contract handle", - "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash or a base58 originated contract hash.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "018-Proxford.contract_id.implicit": { - "title": "A contract handle -- implicit account", - "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "018-Proxford.contract_id.originated": { - "title": "A contract handle -- originated account", - "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "018-Proxford.entrypoint": { - "title": "entrypoint", - "description": "Named entrypoint to a Michelson smart contract", - "oneOf": [ - { - "title": "default", - "type": "string", - "enum": [ - "default" - ] - }, - { - "title": "root", - "type": "string", - "enum": [ - "root" - ] - }, - { - "title": "do", - "type": "string", - "enum": [ - "do" - ] - }, - { - "title": "set_delegate", - "type": "string", - "enum": [ - "set_delegate" - ] - }, - { - "title": "remove_delegate", - "type": "string", - "enum": [ - "remove_delegate" - ] - }, - { - "title": "deposit", - "type": "string", - "enum": [ - "deposit" - ] - }, - { - "title": "stake", - "type": "string", - "enum": [ - "stake" - ] - }, - { - "title": "unstake", - "type": "string", - "enum": [ - "unstake" - ] - }, - { - "title": "finalize_unstake", - "type": "string", - "enum": [ - "finalize_unstake" - ] - }, - { - "title": "set_delegate_parameters", - "type": "string", - "enum": [ - "set_delegate_parameters" - ] - }, - { - "title": "named", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - ] - }, - "018-Proxford.error": { - "description": "The full list of RPC errors would be too long to include.\nIt is available at RPC `/errors` (GET).\nErrors specific to protocol Alpha have an id that starts with `proto.alpha`." - }, - "018-Proxford.frozen_staker": { - "title": "frozen_staker", - "description": "Abstract notion of staker used in operation receipts for frozen deposits, either a single staker or all the stakers delegating to some delegate.", - "oneOf": [ - { - "title": "Single", - "type": "object", - "properties": { - "contract": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "contract", - "delegate" - ] - }, - { - "title": "Shared", - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate" - ] - }, - { - "title": "Baker", - "type": "object", - "properties": { - "baker": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "baker" - ] - } - ] - }, - "018-Proxford.inlined.attestation": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "operations": { - "$ref": "#/components/schemas/018-Proxford.inlined.attestation_mempool.contents" - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "operations" - ] - }, - "018-Proxford.inlined.attestation_mempool.contents": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "attestation" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - "018-Proxford.inlined.endorsement": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "operations": { - "$ref": "#/components/schemas/018-Proxford.inlined.endorsement_mempool.contents" - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "operations" - ] - }, - "018-Proxford.inlined.endorsement_mempool.contents": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "endorsement" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - "018-Proxford.inlined.preattestation": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "operations": { - "$ref": "#/components/schemas/018-Proxford.inlined.preattestation.contents" - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "operations" - ] - }, - "018-Proxford.inlined.preattestation.contents": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "preattestation" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - "018-Proxford.inlined.preendorsement": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "operations": { - "$ref": "#/components/schemas/018-Proxford.inlined.preendorsement.contents" - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "branch", - "operations" - ] - }, - "018-Proxford.inlined.preendorsement.contents": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "preendorsement" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - "018-Proxford.lazy_storage_diff": { - "type": "array", - "items": { - "oneOf": [ - { - "title": "big_map", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "big_map" - ] - }, - "id": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "diff": { - "oneOf": [ - { - "title": "update", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "update" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key_hash": { - "$ref": "#/components/schemas/script_expr" - }, - "key": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "value": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "key_hash", - "key" - ] - } - } - }, - "required": [ - "action", - "updates" - ] - }, - { - "title": "remove", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "remove" - ] - } - }, - "required": [ - "action" - ] - }, - { - "title": "copy", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "copy" - ] - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.big_map_id" - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key_hash": { - "$ref": "#/components/schemas/script_expr" - }, - "key": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "value": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "key_hash", - "key" - ] - } - } - }, - "required": [ - "action", - "source", - "updates" - ] - }, - { - "title": "alloc", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "alloc" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key_hash": { - "$ref": "#/components/schemas/script_expr" - }, - "key": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "value": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "key_hash", - "key" - ] - } - }, - "key_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "value_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "action", - "updates", - "key_type", - "value_type" - ] - } - ] - } - }, - "required": [ - "kind", - "id", - "diff" - ] - }, - { - "title": "sapling_state", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "sapling_state" - ] - }, - "id": { - "$ref": "#/components/schemas/018-Proxford.sapling_state_id" - }, - "diff": { - "oneOf": [ - { - "title": "update", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "update" - ] - }, - "updates": { - "type": "object", - "properties": { - "commitments_and_ciphertexts": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/sapling.transaction.commitment" - }, - { - "$ref": "#/components/schemas/sapling.transaction.ciphertext" - } - ] - } - } - }, - "nullifiers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sapling.transaction.nullifier" - } - } - }, - "required": [ - "commitments_and_ciphertexts", - "nullifiers" - ] - } - }, - "required": [ - "action", - "updates" - ] - }, - { - "title": "remove", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "remove" - ] - } - }, - "required": [ - "action" - ] - }, - { - "title": "copy", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "copy" - ] - }, - "source": { - "$ref": "#/components/schemas/018-Proxford.sapling_state_id" - }, - "updates": { - "type": "object", - "properties": { - "commitments_and_ciphertexts": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/sapling.transaction.commitment" - }, - { - "$ref": "#/components/schemas/sapling.transaction.ciphertext" - } - ] - } - } - }, - "nullifiers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sapling.transaction.nullifier" - } - } - }, - "required": [ - "commitments_and_ciphertexts", - "nullifiers" - ] - } - }, - "required": [ - "action", - "source", - "updates" - ] - }, - { - "title": "alloc", - "type": "object", - "properties": { - "action": { - "type": "string", - "enum": [ - "alloc" - ] - }, - "updates": { - "type": "object", - "properties": { - "commitments_and_ciphertexts": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/sapling.transaction.commitment" - }, - { - "$ref": "#/components/schemas/sapling.transaction.ciphertext" - } - ] - } - } - }, - "nullifiers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sapling.transaction.nullifier" - } - } - }, - "required": [ - "commitments_and_ciphertexts", - "nullifiers" - ] - }, - "memo_size": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "action", - "updates", - "memo_size" - ] - } - ] - } - }, - "required": [ - "kind", - "id", - "diff" - ] - } - ] - } - }, - "018-Proxford.liquidity_baking_vote": { - "oneOf": [ - { - "title": "per_block_vote_on", - "type": "string", - "enum": [ - "on" - ] - }, - { - "title": "per_block_vote_off", - "type": "string", - "enum": [ - "off" - ] - }, - { - "title": "per_block_vote_pass", - "type": "string", - "enum": [ - "pass" - ] - } - ] - }, - "018-Proxford.michelson.v1.primitives": { - "type": "string", - "enum": [ - "SHA512", - "HASH_KEY", - "SIZE", - "SAPLING_VERIFY_UPDATE", - "False", - "SAPLING_EMPTY_STATE", - "RENAME", - "sapling_transaction", - "UNPACK", - "NAT", - "unit", - "bls12_381_fr", - "Pair", - "IF_NONE", - "int", - "timestamp", - "storage", - "UNPAIR", - "view", - "BLAKE2B", - "AMOUNT", - "DUP", - "nat", - "NEG", - "bool", - "SELF_ADDRESS", - "ISNAT", - "DIG", - "CHAIN_ID", - "set", - "LSR", - "key", - "address", - "ABS", - "CREATE_CONTRACT", - "SHA256", - "JOIN_TICKETS", - "LEVEL", - "bls12_381_g1", - "operation", - "tx_rollup_l2_address", - "string", - "CHECK_SIGNATURE", - "STEPS_TO_QUOTA", - "SELF", - "DIP", - "lambda", - "AND", - "COMPARE", - "chain_id", - "MAP", - "APPLY", - "Elt", - "BYTES", - "NOT", - "IMPLICIT_ACCOUNT", - "LT", - "UNIT", - "EMIT", - "SET_DELEGATE", - "Some", - "parameter", - "signature", - "ticket", - "EMPTY_BIG_MAP", - "None", - "SUB", - "key_hash", - "ADD", - "map", - "VOTING_POWER", - "big_map", - "CDR", - "GT", - "IF_CONS", - "CONS", - "LSL", - "DUG", - "PACK", - "SHA3", - "SOURCE", - "or", - "SUB_MUTEZ", - "LAMBDA", - "RIGHT", - "CREATE_ACCOUNT", - "Unit", - "CAST", - "NEQ", - "ITER", - "FAILWITH", - "PUSH", - "OPEN_CHEST", - "SOME", - "list", - "BALANCE", - "NIL", - "pair", - "CAR", - "UPDATE", - "TOTAL_VOTING_POWER", - "PAIR", - "constant", - "LAMBDA_REC", - "ADDRESS", - "True", - "Right", - "Lambda_rec", - "IF", - "NEVER", - "sapling_transaction_deprecated", - "SWAP", - "EMPTY_MAP", - "MUL", - "INT", - "option", - "KECCAK", - "LEFT", - "Left", - "chest", - "SPLIT_TICKET", - "chest_key", - "bls12_381_g2", - "EDIV", - "LOOP", - "bytes", - "TICKET", - "LE", - "PAIRING_CHECK", - "MIN_BLOCK_TIME", - "OR", - "contract", - "GET_AND_UPDATE", - "mutez", - "sapling_state", - "NONE", - "IF_LEFT", - "GET", - "NOW", - "TRANSFER_TOKENS", - "LOOP_LEFT", - "CONTRACT", - "TICKET_DEPRECATED", - "VIEW", - "EMPTY_SET", - "XOR", - "never", - "READ_TICKET", - "EQ", - "GE", - "MEM", - "SENDER", - "DROP", - "CONCAT", - "EXEC", - "SLICE", - "code" - ] - }, - "018-Proxford.mutez": { - "$ref": "#/components/schemas/positive_bignum" - }, - "018-Proxford.operation.alpha.contents": { - "oneOf": [ - { - "title": "Preattestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "preattestation" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - { - "title": "Attestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "attestation" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - { - "title": "Double_preattestation_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_preattestation_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.preattestation" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.preattestation" - } - }, - "required": [ - "kind", - "op1", - "op2" - ] - }, - { - "title": "Double_attestation_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_attestation_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.attestation" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.attestation" - } - }, - "required": [ - "kind", - "op1", - "op2" - ] - }, - { - "title": "Dal_attestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_attestation" - ] - }, - "attestation": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "kind", - "attestation", - "level", - "slot" - ] - }, - { - "title": "Seed_nonce_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "seed_nonce_revelation" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "level", - "nonce" - ] - }, - { - "title": "Vdf_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "vdf_revelation" - ] - }, - "solution": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - ] - } - } - }, - "required": [ - "kind", - "solution" - ] - }, - { - "title": "Double_baking_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_baking_evidence" - ] - }, - "bh1": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - }, - "bh2": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - } - }, - "required": [ - "kind", - "bh1", - "bh2" - ] - }, - { - "title": "Activate_account", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "activate_account" - ] - }, - "pkh": { - "$ref": "#/components/schemas/Ed25519.Public_key_hash" - }, - "secret": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "pkh", - "secret" - ] - }, - { - "title": "Proposals", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "proposals" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposals": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Protocol_hash" - } - } - }, - "required": [ - "kind", - "source", - "period", - "proposals" - ] - }, - { - "title": "Ballot", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "ballot" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposal": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "ballot": { - "type": "string", - "enum": [ - "nay", - "yay", - "pass" - ] - } - }, - "required": [ - "kind", - "source", - "period", - "proposal", - "ballot" - ] - }, - { - "title": "Reveal", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "reveal" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_key": { - "$ref": "#/components/schemas/Signature.Public_key" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_key" - ] - }, - { - "title": "Transaction", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transaction" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "parameters": { - "type": "object", - "properties": { - "entrypoint": { - "$ref": "#/components/schemas/018-Proxford.entrypoint" - }, - "value": {} - }, - "required": [ - "entrypoint", - "value" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination" - ] - }, - { - "title": "Origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "script": { - "$ref": "#/components/schemas/018-Proxford.scripted.contracts" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "balance", - "script" - ] - }, - { - "title": "Delegation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "delegation" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit" - ] - }, - { - "title": "Set_deposits_limit", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "set_deposits_limit" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "limit": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit" - ] - }, - { - "title": "Increase_paid_storage", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "increase_paid_storage" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination" - ] - }, - { - "title": "Update_consensus_key", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "update_consensus_key" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pk": { - "$ref": "#/components/schemas/Signature.Public_key" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pk" - ] - }, - { - "title": "Drain_delegate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "drain_delegate" - ] - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "destination": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "consensus_key", - "delegate", - "destination" - ] - }, - { - "title": "Failing_noop", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "failing_noop" - ] - }, - "arbitrary": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "arbitrary" - ] - }, - { - "title": "Register_global_constant", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "register_global_constant" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "value": {} - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "value" - ] - }, - { - "title": "Transfer_ticket", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transfer_ticket" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_contents": {}, - "ticket_ty": {}, - "ticket_ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "ticket_amount": { - "$ref": "#/components/schemas/positive_bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "ticket_contents", - "ticket_ty", - "ticket_ticketer", - "ticket_amount", - "destination", - "entrypoint" - ] - }, - { - "title": "Dal_publish_slot_header", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_publish_slot_header" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "slot_header": { - "type": "object", - "properties": { - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - }, - "commitment_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "slot_index", - "commitment", - "commitment_proof" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "slot_header" - ] - }, - { - "title": "Smart_rollup_originate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_originate" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pvm_kind": { - "type": "string", - "enum": [ - "wasm_2_0_0", - "arith", - "riscv" - ] - }, - "kernel": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "parameters_ty": {}, - "whitelist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pvm_kind", - "kernel", - "parameters_ty" - ] - }, - { - "title": "Smart_rollup_add_messages", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_add_messages" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "message": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "message" - ] - }, - { - "title": "Smart_rollup_cement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_cement" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup" - ] - }, - { - "title": "Smart_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "commitment": { - "type": "object", - "properties": { - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "commitment" - ] - }, - { - "title": "Smart_rollup_refute", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_refute" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "opponent": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "refutation": { - "oneOf": [ - { - "title": "Start", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "start" - ] - }, - "player_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "opponent_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "refutation_kind", - "player_commitment_hash", - "opponent_commitment_hash" - ] - }, - { - "title": "Move", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "move" - ] - }, - "choice": { - "$ref": "#/components/schemas/positive_bignum" - }, - "step": { - "oneOf": [ - { - "title": "Dissection", - "type": "array", - "items": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "tick": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "tick" - ] - } - }, - { - "title": "Proof", - "type": "object", - "properties": { - "pvm_step": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "input_proof": { - "oneOf": [ - { - "title": "inbox proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "inbox_proof" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "message_counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "serialized_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "input_proof_kind", - "level", - "message_counter", - "serialized_proof" - ] - }, - { - "title": "reveal proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "reveal_proof" - ] - }, - "reveal_proof": { - "oneOf": [ - { - "title": "raw data proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "raw_data_proof" - ] - }, - "raw_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "raw_data" - ] - }, - { - "title": "metadata proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "metadata_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - }, - { - "title": "dal page proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_page_proof" - ] - }, - "dal_page_id": { - "type": "object", - "properties": { - "published_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "page_index": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - }, - "required": [ - "published_level", - "slot_index", - "page_index" - ] - }, - "dal_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "dal_page_id", - "dal_proof" - ] - }, - { - "title": "dal parameters proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_parameters_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - } - ] - } - }, - "required": [ - "input_proof_kind", - "reveal_proof" - ] - }, - { - "title": "first input", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "first_input" - ] - } - }, - "required": [ - "input_proof_kind" - ] - } - ] - } - }, - "required": [ - "pvm_step" - ] - } - ] - } - }, - "required": [ - "refutation_kind", - "choice", - "step" - ] - } - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "opponent", - "refutation" - ] - }, - { - "title": "Smart_rollup_timeout", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_timeout" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "stakers": { - "type": "object", - "properties": { - "alice": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "bob": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "alice", - "bob" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "stakers" - ] - }, - { - "title": "Smart_rollup_execute_outbox_message", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_execute_outbox_message" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "cemented_commitment": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "output_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "cemented_commitment", - "output_proof" - ] - }, - { - "title": "Smart_rollup_recover_bond", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_recover_bond" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "staker": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "staker" - ] - }, - { - "title": "Zk_rollup_origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "circuits_info": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "oneOf": [ - { - "title": "Public", - "type": "object", - "properties": { - "public": {} - }, - "required": [ - "public" - ] - }, - { - "title": "Private", - "type": "object", - "properties": { - "private": {} - }, - "required": [ - "private" - ] - }, - { - "title": "Fee", - "type": "object", - "properties": { - "fee": {} - }, - "required": [ - "fee" - ] - } - ] - } - ] - } - } - }, - "init_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "nb_ops": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_parameters", - "circuits_info", - "init_state", - "nb_ops" - ] - }, - { - "title": "Zk_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "op": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "properties": { - "op_code": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "price": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/script_expr" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "id", - "amount" - ] - }, - "l1_dst": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "rollup_id": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "payload": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "op_code", - "price", - "l1_dst", - "rollup_id", - "payload" - ] - }, - { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "contents": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ty": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - } - }, - "required": [ - "contents", - "ty", - "ticketer" - ] - } - ] - } - ] - } - } - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "op" - ] - }, - { - "title": "Zk_rollup_update", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_update" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "update": { - "type": "object", - "properties": { - "pending_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "exit_validity": { - "type": "boolean" - } - }, - "required": [ - "new_state", - "fee", - "exit_validity" - ] - } - ] - } - } - }, - "private_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "new_state", - "fee" - ] - } - ] - } - } - }, - "fee_pi": { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "new_state" - ] - }, - "proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "pending_pis", - "private_pis", - "fee_pi", - "proof" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "update" - ] - } - ] - }, - "018-Proxford.operation.alpha.internal_operation_result.delegation": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.internal_operation_result.event": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.internal_operation_result.origination": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.internal_operation_result.transaction": { - "oneOf": [ - { - "title": "Applied", - "oneOf": [ - { - "title": "To_contract", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_receipt": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "allocated_destination_contract": { - "type": "boolean" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - }, - { - "title": "To_smart_rollup", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_receipt": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - } - }, - "required": [ - "status", - "ticket_receipt" - ] - } - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "oneOf": [ - { - "title": "To_contract", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_receipt": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "allocated_destination_contract": { - "type": "boolean" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - }, - { - "title": "To_smart_rollup", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_receipt": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - } - }, - "required": [ - "status", - "ticket_receipt" - ] - } - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_contents_and_result": { - "oneOf": [ - { - "title": "Attestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "attestation" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "consensus_power": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate", - "consensus_power", - "consensus_key" - ] - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash", - "metadata" - ] - }, - { - "title": "Preattestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "preattestation" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "consensus_power": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate", - "consensus_power", - "consensus_key" - ] - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash", - "metadata" - ] - }, - { - "title": "Double_attestation_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_attestation_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.attestation" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.attestation" - }, - "metadata": { - "type": "object", - "properties": { - "forbidden_delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "op1", - "op2", - "metadata" - ] - }, - { - "title": "Double_preattestation_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_preattestation_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.preattestation" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.preattestation" - }, - "metadata": { - "type": "object", - "properties": { - "forbidden_delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "op1", - "op2", - "metadata" - ] - }, - { - "title": "Seed_nonce_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "seed_nonce_revelation" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "level", - "nonce", - "metadata" - ] - }, - { - "title": "Vdf_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "vdf_revelation" - ] - }, - "solution": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - ] - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "solution", - "metadata" - ] - }, - { - "title": "Dal_attestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_attestation" - ] - }, - "attestation": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "metadata": { - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate" - ] - } - }, - "required": [ - "kind", - "attestation", - "level", - "slot", - "metadata" - ] - }, - { - "title": "Double_baking_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_baking_evidence" - ] - }, - "bh1": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - }, - "bh2": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - }, - "metadata": { - "type": "object", - "properties": { - "forbidden_delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "bh1", - "bh2", - "metadata" - ] - }, - { - "title": "Activate_account", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "activate_account" - ] - }, - "pkh": { - "$ref": "#/components/schemas/Ed25519.Public_key_hash" - }, - "secret": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "pkh", - "secret", - "metadata" - ] - }, - { - "title": "Proposals", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "proposals" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposals": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "metadata": { - "type": "object", - "properties": {} - } - }, - "required": [ - "kind", - "source", - "period", - "proposals", - "metadata" - ] - }, - { - "title": "Ballot", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "ballot" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposal": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "ballot": { - "type": "string", - "enum": [ - "nay", - "yay", - "pass" - ] - }, - "metadata": { - "type": "object", - "properties": {} - } - }, - "required": [ - "kind", - "source", - "period", - "proposal", - "ballot", - "metadata" - ] - }, - { - "title": "Drain_delegate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "drain_delegate" - ] - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "destination": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "allocated_destination_contract": { - "type": "boolean" - } - } - } - }, - "required": [ - "kind", - "consensus_key", - "delegate", - "destination", - "metadata" - ] - }, - { - "title": "Reveal", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "reveal" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_key": { - "$ref": "#/components/schemas/Signature.Public_key" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.reveal" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_key", - "metadata" - ] - }, - { - "title": "Transaction", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transaction" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "parameters": { - "type": "object", - "properties": { - "entrypoint": { - "$ref": "#/components/schemas/018-Proxford.entrypoint" - }, - "value": {} - }, - "required": [ - "entrypoint", - "value" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.transaction" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination", - "metadata" - ] - }, - { - "title": "Origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "script": { - "$ref": "#/components/schemas/018-Proxford.scripted.contracts" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.origination" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "balance", - "script", - "metadata" - ] - }, - { - "title": "Delegation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "delegation" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.delegation" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "metadata" - ] - }, - { - "title": "Register_global_constant", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "register_global_constant" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "value": {}, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.register_global_constant" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "value", - "metadata" - ] - }, - { - "title": "Set_deposits_limit", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "set_deposits_limit" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "limit": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.set_deposits_limit" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "metadata" - ] - }, - { - "title": "Increase_paid_storage", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "increase_paid_storage" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.increase_paid_storage" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination", - "metadata" - ] - }, - { - "title": "Update_consensus_key", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "update_consensus_key" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pk": { - "$ref": "#/components/schemas/Signature.Public_key" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.update_consensus_key" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pk", - "metadata" - ] - }, - { - "title": "Transfer_ticket", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transfer_ticket" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_contents": {}, - "ticket_ty": {}, - "ticket_ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "ticket_amount": { - "$ref": "#/components/schemas/positive_bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.transfer_ticket" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "ticket_contents", - "ticket_ty", - "ticket_ticketer", - "ticket_amount", - "destination", - "entrypoint", - "metadata" - ] - }, - { - "title": "Dal_publish_slot_header", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_publish_slot_header" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "slot_header": { - "type": "object", - "properties": { - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - }, - "commitment_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "slot_index", - "commitment", - "commitment_proof" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.dal_publish_slot_header" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "slot_header", - "metadata" - ] - }, - { - "title": "Smart_rollup_originate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_originate" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pvm_kind": { - "type": "string", - "enum": [ - "wasm_2_0_0", - "arith", - "riscv" - ] - }, - "kernel": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "parameters_ty": {}, - "whitelist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_originate" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pvm_kind", - "kernel", - "parameters_ty", - "metadata" - ] - }, - { - "title": "Smart_rollup_add_messages", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_add_messages" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "message": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_add_messages" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "message", - "metadata" - ] - }, - { - "title": "Smart_rollup_cement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_cement" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_cement" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "metadata" - ] - }, - { - "title": "Smart_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "commitment": { - "type": "object", - "properties": { - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_publish" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "commitment", - "metadata" - ] - }, - { - "title": "Smart_rollup_refute", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_refute" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "opponent": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "refutation": { - "oneOf": [ - { - "title": "Start", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "start" - ] - }, - "player_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "opponent_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "refutation_kind", - "player_commitment_hash", - "opponent_commitment_hash" - ] - }, - { - "title": "Move", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "move" - ] - }, - "choice": { - "$ref": "#/components/schemas/positive_bignum" - }, - "step": { - "oneOf": [ - { - "title": "Dissection", - "type": "array", - "items": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "tick": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "tick" - ] - } - }, - { - "title": "Proof", - "type": "object", - "properties": { - "pvm_step": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "input_proof": { - "oneOf": [ - { - "title": "inbox proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "inbox_proof" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "message_counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "serialized_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "input_proof_kind", - "level", - "message_counter", - "serialized_proof" - ] - }, - { - "title": "reveal proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "reveal_proof" - ] - }, - "reveal_proof": { - "oneOf": [ - { - "title": "raw data proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "raw_data_proof" - ] - }, - "raw_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "raw_data" - ] - }, - { - "title": "metadata proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "metadata_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - }, - { - "title": "dal page proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_page_proof" - ] - }, - "dal_page_id": { - "type": "object", - "properties": { - "published_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "page_index": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - }, - "required": [ - "published_level", - "slot_index", - "page_index" - ] - }, - "dal_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "dal_page_id", - "dal_proof" - ] - }, - { - "title": "dal parameters proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_parameters_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - } - ] - } - }, - "required": [ - "input_proof_kind", - "reveal_proof" - ] - }, - { - "title": "first input", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "first_input" - ] - } - }, - "required": [ - "input_proof_kind" - ] - } - ] - } - }, - "required": [ - "pvm_step" - ] - } - ] - } - }, - "required": [ - "refutation_kind", - "choice", - "step" - ] - } - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_refute" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "opponent", - "refutation", - "metadata" - ] - }, - { - "title": "Smart_rollup_timeout", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_timeout" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "stakers": { - "type": "object", - "properties": { - "alice": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "bob": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "alice", - "bob" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_timeout" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "stakers", - "metadata" - ] - }, - { - "title": "Smart_rollup_execute_outbox_message", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_execute_outbox_message" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "cemented_commitment": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "output_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_execute_outbox_message" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "cemented_commitment", - "output_proof", - "metadata" - ] - }, - { - "title": "Smart_rollup_recover_bond", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_recover_bond" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "staker": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_recover_bond" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "staker", - "metadata" - ] - }, - { - "title": "Zk_rollup_origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "circuits_info": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "oneOf": [ - { - "title": "Public", - "type": "object", - "properties": { - "public": {} - }, - "required": [ - "public" - ] - }, - { - "title": "Private", - "type": "object", - "properties": { - "private": {} - }, - "required": [ - "private" - ] - }, - { - "title": "Fee", - "type": "object", - "properties": { - "fee": {} - }, - "required": [ - "fee" - ] - } - ] - } - ] - } - } - }, - "init_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "nb_ops": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.zk_rollup_origination" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_parameters", - "circuits_info", - "init_state", - "nb_ops", - "metadata" - ] - }, - { - "title": "Zk_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "op": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "properties": { - "op_code": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "price": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/script_expr" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "id", - "amount" - ] - }, - "l1_dst": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "rollup_id": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "payload": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "op_code", - "price", - "l1_dst", - "rollup_id", - "payload" - ] - }, - { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "contents": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ty": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - } - }, - "required": [ - "contents", - "ty", - "ticketer" - ] - } - ] - } - ] - } - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.zk_rollup_publish" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "op", - "metadata" - ] - }, - { - "title": "Zk_rollup_update", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_update" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "update": { - "type": "object", - "properties": { - "pending_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "exit_validity": { - "type": "boolean" - } - }, - "required": [ - "new_state", - "fee", - "exit_validity" - ] - } - ] - } - } - }, - "private_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "new_state", - "fee" - ] - } - ] - } - } - }, - "fee_pi": { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "new_state" - ] - }, - "proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "pending_pis", - "private_pis", - "fee_pi", - "proof" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.zk_rollup_update" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "update", - "metadata" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.dal_publish_slot_header": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "slot_header": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - } - }, - "required": [ - "level", - "index", - "commitment" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status", - "slot_header" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "slot_header": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - } - }, - "required": [ - "level", - "index", - "commitment" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status", - "slot_header" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.delegation": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.increase_paid_storage": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.origination": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.register_global_constant": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "global_address": { - "$ref": "#/components/schemas/script_expr" - } - }, - "required": [ - "status", - "global_address" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "global_address": { - "$ref": "#/components/schemas/script_expr" - } - }, - "required": [ - "status", - "global_address" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.reveal": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.set_deposits_limit": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_add_messages": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_cement": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "status", - "inbox_level", - "commitment_hash" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "status", - "inbox_level", - "commitment_hash" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_execute_outbox_message": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "whitelist_update": { - "oneOf": [ - { - "title": "Public", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "public" - ] - } - }, - "required": [ - "kind" - ] - }, - { - "title": "Private", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "update" - ] - }, - "whitelist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - } - }, - "required": [ - "kind", - "whitelist" - ] - } - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "ticket_updates" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "whitelist_update": { - "oneOf": [ - { - "title": "Public", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "public" - ] - } - }, - "required": [ - "kind" - ] - }, - { - "title": "Private", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "update" - ] - }, - "whitelist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - } - }, - "required": [ - "kind", - "whitelist" - ] - } - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "ticket_updates" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_originate": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "address": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "genesis_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "size": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "address", - "genesis_commitment_hash", - "size" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "address": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "genesis_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "size": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "address", - "genesis_commitment_hash", - "size" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_publish": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "staked_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "published_at_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status", - "staked_hash", - "published_at_level", - "balance_updates" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "staked_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "published_at_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status", - "staked_hash", - "published_at_level", - "balance_updates" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_recover_bond": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status", - "balance_updates" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status", - "balance_updates" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_refute": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "game_status": { - "oneOf": [ - { - "title": "Ongoing", - "type": "string", - "enum": [ - "ongoing" - ] - }, - { - "title": "Ended", - "type": "object", - "properties": { - "result": { - "oneOf": [ - { - "title": "Loser", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "loser" - ] - }, - "reason": { - "oneOf": [ - { - "title": "Conflict_resolved", - "type": "string", - "enum": [ - "conflict_resolved" - ] - }, - { - "title": "Timeout", - "type": "string", - "enum": [ - "timeout" - ] - } - ] - }, - "player": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "reason", - "player" - ] - }, - { - "title": "Draw", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "draw" - ] - } - }, - "required": [ - "kind" - ] - } - ] - } - }, - "required": [ - "result" - ] - } - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status", - "game_status", - "balance_updates" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "game_status": { - "oneOf": [ - { - "title": "Ongoing", - "type": "string", - "enum": [ - "ongoing" - ] - }, - { - "title": "Ended", - "type": "object", - "properties": { - "result": { - "oneOf": [ - { - "title": "Loser", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "loser" - ] - }, - "reason": { - "oneOf": [ - { - "title": "Conflict_resolved", - "type": "string", - "enum": [ - "conflict_resolved" - ] - }, - { - "title": "Timeout", - "type": "string", - "enum": [ - "timeout" - ] - } - ] - }, - "player": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "reason", - "player" - ] - }, - { - "title": "Draw", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "draw" - ] - } - }, - "required": [ - "kind" - ] - } - ] - } - }, - "required": [ - "result" - ] - } - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status", - "game_status", - "balance_updates" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.smart_rollup_timeout": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "game_status": { - "oneOf": [ - { - "title": "Ongoing", - "type": "string", - "enum": [ - "ongoing" - ] - }, - { - "title": "Ended", - "type": "object", - "properties": { - "result": { - "oneOf": [ - { - "title": "Loser", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "loser" - ] - }, - "reason": { - "oneOf": [ - { - "title": "Conflict_resolved", - "type": "string", - "enum": [ - "conflict_resolved" - ] - }, - { - "title": "Timeout", - "type": "string", - "enum": [ - "timeout" - ] - } - ] - }, - "player": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "reason", - "player" - ] - }, - { - "title": "Draw", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "draw" - ] - } - }, - "required": [ - "kind" - ] - } - ] - } - }, - "required": [ - "result" - ] - } - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status", - "game_status", - "balance_updates" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "game_status": { - "oneOf": [ - { - "title": "Ongoing", - "type": "string", - "enum": [ - "ongoing" - ] - }, - { - "title": "Ended", - "type": "object", - "properties": { - "result": { - "oneOf": [ - { - "title": "Loser", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "loser" - ] - }, - "reason": { - "oneOf": [ - { - "title": "Conflict_resolved", - "type": "string", - "enum": [ - "conflict_resolved" - ] - }, - { - "title": "Timeout", - "type": "string", - "enum": [ - "timeout" - ] - } - ] - }, - "player": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "reason", - "player" - ] - }, - { - "title": "Draw", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "draw" - ] - } - }, - "required": [ - "kind" - ] - } - ] - } - }, - "required": [ - "result" - ] - } - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - }, - "required": [ - "status", - "game_status", - "balance_updates" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.transaction": { - "oneOf": [ - { - "title": "Applied", - "oneOf": [ - { - "title": "To_contract", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "allocated_destination_contract": { - "type": "boolean" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - }, - { - "title": "To_smart_rollup", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - } - }, - "required": [ - "status", - "ticket_updates" - ] - } - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "oneOf": [ - { - "title": "To_contract", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "storage": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "originated_contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_size": { - "$ref": "#/components/schemas/bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - }, - "allocated_destination_contract": { - "type": "boolean" - }, - "lazy_storage_diff": { - "$ref": "#/components/schemas/018-Proxford.lazy_storage_diff" - } - }, - "required": [ - "status" - ] - }, - { - "title": "To_smart_rollup", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - } - }, - "required": [ - "status", - "ticket_updates" - ] - } - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.transfer_ticket": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "ticket_updates" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "ticket_updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ticket_token": { - "type": "object", - "properties": { - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "content_type": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "content": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "required": [ - "ticketer", - "content_type", - "content" - ] - }, - "updates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "account": { - "$ref": "#/components/schemas/018-Proxford.transaction_destination" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "account", - "amount" - ] - } - } - }, - "required": [ - "ticket_token", - "updates" - ] - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "ticket_updates" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.update_consensus_key": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "status" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.zk_rollup_origination": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "originated_zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "size": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "originated_zk_rollup", - "size" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "originated_zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "size": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "originated_zk_rollup", - "size" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.zk_rollup_publish": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "size": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "size" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "size": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates", - "size" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_result.zk_rollup_update": { - "oneOf": [ - { - "title": "Applied", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "applied" - ] - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates" - ] - }, - { - "title": "Failed", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - } - }, - "required": [ - "status", - "errors" - ] - }, - { - "title": "Skipped", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "skipped" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Backtracked", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "backtracked" - ] - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.error" - } - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "consumed_milligas": { - "$ref": "#/components/schemas/positive_bignum" - }, - "paid_storage_size_diff": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "status", - "balance_updates" - ] - } - ] - }, - "018-Proxford.operation.alpha.operation_with_metadata": { - "oneOf": [ - { - "title": "Operation_with_metadata", - "type": "object", - "properties": { - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_contents_and_result" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "contents" - ] - }, - { - "title": "Operation_without_metadata", - "type": "object", - "properties": { - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "contents" - ] - } - ] - }, - "018-Proxford.operation.alpha.unsigned_operation": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" - } - } - }, - "required": [ - "branch", - "contents" - ] - }, - "018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates": { - "type": "array", - "items": { - "oneOf": [ - { - "title": "Contract", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "contract" - ] - }, - "contract": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "contract", - "change", - "origin" - ] - }, - { - "title": "Block_fees", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "accumulator" - ] - }, - "category": { - "type": "string", - "enum": [ - "block fees" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Deposits", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "freezer" - ] - }, - "category": { - "type": "string", - "enum": [ - "deposits" - ] - }, - "staker": { - "$ref": "#/components/schemas/018-Proxford.frozen_staker" - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "staker", - "change", - "origin" - ] - }, - { - "title": "Nonce_revelation_rewards", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "nonce revelation rewards" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Endorsing_rewards", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "endorsing rewards" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Baking_rewards", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "baking rewards" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Baking_bonuses", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "baking bonuses" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Storage_fees", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "burned" - ] - }, - "category": { - "type": "string", - "enum": [ - "storage fees" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Double_signing_punishments", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "burned" - ] - }, - "category": { - "type": "string", - "enum": [ - "punishments" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Lost_endorsing_rewards", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "burned" - ] - }, - "category": { - "type": "string", - "enum": [ - "lost endorsing rewards" - ] - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "participation": { - "type": "boolean" - }, - "revelation": { - "type": "boolean" - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "delegate", - "participation", - "revelation", - "change", - "origin" - ] - }, - { - "title": "Liquidity_baking_subsidies", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "subsidy" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Burned", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "burned" - ] - }, - "category": { - "type": "string", - "enum": [ - "burned" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Commitments", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "commitment" - ] - }, - "category": { - "type": "string", - "enum": [ - "commitment" - ] - }, - "committer": { - "$ref": "#/components/schemas/Blinded public key hash" - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "committer", - "change", - "origin" - ] - }, - { - "title": "Bootstrap", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "bootstrap" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Invoice", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "invoice" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Initial_commitments", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "commitment" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Minted", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "minted" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Frozen_bonds", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "freezer" - ] - }, - "category": { - "type": "string", - "enum": [ - "bonds" - ] - }, - "contract": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "bond_id": { - "$ref": "#/components/schemas/018-Proxford.bond_id" - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "contract", - "bond_id", - "change", - "origin" - ] - }, - { - "title": "Smart_rollup_refutation_punishments", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "burned" - ] - }, - "category": { - "type": "string", - "enum": [ - "smart_rollup_refutation_punishments" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Smart_rollup_refutation_rewards", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "minted" - ] - }, - "category": { - "type": "string", - "enum": [ - "smart_rollup_refutation_rewards" - ] - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "change", - "origin" - ] - }, - { - "title": "Unstaked_deposits", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "freezer" - ] - }, - "category": { - "type": "string", - "enum": [ - "unstaked_deposits" - ] - }, - "staker": { - "$ref": "#/components/schemas/018-Proxford.staker" - }, - "cycle": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "staker", - "cycle", - "change", - "origin" - ] - }, - { - "title": "Staking_delegator_numerator", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "staking" - ] - }, - "category": { - "type": "string", - "enum": [ - "delegator_numerator" - ] - }, - "delegator": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "delegator", - "change", - "origin" - ] - }, - { - "title": "Staking_delegate_denominator", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "staking" - ] - }, - "category": { - "type": "string", - "enum": [ - "delegate_denominator" - ] - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "change": { - "$ref": "#/components/schemas/int64" - }, - "origin": { - "type": "string", - "enum": [ - "block" - ] - } - }, - "required": [ - "kind", - "category", - "delegate", - "change", - "origin" - ] - } - ] - } - }, - "018-Proxford.operation_with_legacy_attestation_name.alpha.contents": { - "oneOf": [ - { - "title": "Preendorsement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "preendorsement" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - { - "title": "Endorsement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "endorsement" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash" - ] - }, - { - "title": "Double_preendorsement_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_preendorsement_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.preendorsement" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.preendorsement" - } - }, - "required": [ - "kind", - "op1", - "op2" - ] - }, - { - "title": "Double_endorsement_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_endorsement_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.endorsement" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.endorsement" - } - }, - "required": [ - "kind", - "op1", - "op2" - ] - }, - { - "title": "Dal_attestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_attestation" - ] - }, - "attestation": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "kind", - "attestation", - "level", - "slot" - ] - }, - { - "title": "Seed_nonce_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "seed_nonce_revelation" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "level", - "nonce" - ] - }, - { - "title": "Vdf_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "vdf_revelation" - ] - }, - "solution": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - ] - } - } - }, - "required": [ - "kind", - "solution" - ] - }, - { - "title": "Double_baking_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_baking_evidence" - ] - }, - "bh1": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - }, - "bh2": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - } - }, - "required": [ - "kind", - "bh1", - "bh2" - ] - }, - { - "title": "Activate_account", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "activate_account" - ] - }, - "pkh": { - "$ref": "#/components/schemas/Ed25519.Public_key_hash" - }, - "secret": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "pkh", - "secret" - ] - }, - { - "title": "Proposals", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "proposals" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposals": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Protocol_hash" - } - } - }, - "required": [ - "kind", - "source", - "period", - "proposals" - ] - }, - { - "title": "Ballot", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "ballot" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposal": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "ballot": { - "type": "string", - "enum": [ - "nay", - "yay", - "pass" - ] - } - }, - "required": [ - "kind", - "source", - "period", - "proposal", - "ballot" - ] - }, - { - "title": "Reveal", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "reveal" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_key": { - "$ref": "#/components/schemas/Signature.Public_key" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_key" - ] - }, - { - "title": "Transaction", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transaction" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "parameters": { - "type": "object", - "properties": { - "entrypoint": { - "$ref": "#/components/schemas/018-Proxford.entrypoint" - }, - "value": {} - }, - "required": [ - "entrypoint", - "value" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination" - ] - }, - { - "title": "Origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "script": { - "$ref": "#/components/schemas/018-Proxford.scripted.contracts" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "balance", - "script" - ] - }, - { - "title": "Delegation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "delegation" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit" - ] - }, - { - "title": "Set_deposits_limit", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "set_deposits_limit" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "limit": { - "$ref": "#/components/schemas/018-Proxford.mutez" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit" - ] - }, - { - "title": "Increase_paid_storage", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "increase_paid_storage" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination" - ] - }, - { - "title": "Update_consensus_key", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "update_consensus_key" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pk": { - "$ref": "#/components/schemas/Signature.Public_key" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pk" - ] - }, - { - "title": "Drain_delegate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "drain_delegate" - ] - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "destination": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "consensus_key", - "delegate", - "destination" - ] - }, - { - "title": "Failing_noop", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "failing_noop" - ] - }, - "arbitrary": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "arbitrary" - ] - }, - { - "title": "Register_global_constant", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "register_global_constant" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "value": {} - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "value" - ] - }, - { - "title": "Transfer_ticket", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transfer_ticket" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_contents": {}, - "ticket_ty": {}, - "ticket_ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "ticket_amount": { - "$ref": "#/components/schemas/positive_bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "ticket_contents", - "ticket_ty", - "ticket_ticketer", - "ticket_amount", - "destination", - "entrypoint" - ] - }, - { - "title": "Dal_publish_slot_header", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_publish_slot_header" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "slot_header": { - "type": "object", - "properties": { - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - }, - "commitment_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "slot_index", - "commitment", - "commitment_proof" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "slot_header" - ] - }, - { - "title": "Smart_rollup_originate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_originate" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pvm_kind": { - "type": "string", - "enum": [ - "wasm_2_0_0", - "arith", - "riscv" - ] - }, - "kernel": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "parameters_ty": {}, - "whitelist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pvm_kind", - "kernel", - "parameters_ty" - ] - }, - { - "title": "Smart_rollup_add_messages", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_add_messages" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "message": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "message" - ] - }, - { - "title": "Smart_rollup_cement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_cement" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup" - ] - }, - { - "title": "Smart_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "commitment": { - "type": "object", - "properties": { - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "commitment" - ] - }, - { - "title": "Smart_rollup_refute", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_refute" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "opponent": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "refutation": { - "oneOf": [ - { - "title": "Start", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "start" - ] - }, - "player_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "opponent_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "refutation_kind", - "player_commitment_hash", - "opponent_commitment_hash" - ] - }, - { - "title": "Move", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "move" - ] - }, - "choice": { - "$ref": "#/components/schemas/positive_bignum" - }, - "step": { - "oneOf": [ - { - "title": "Dissection", - "type": "array", - "items": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "tick": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "tick" - ] - } - }, - { - "title": "Proof", - "type": "object", - "properties": { - "pvm_step": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "input_proof": { - "oneOf": [ - { - "title": "inbox proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "inbox_proof" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "message_counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "serialized_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "input_proof_kind", - "level", - "message_counter", - "serialized_proof" - ] - }, - { - "title": "reveal proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "reveal_proof" - ] - }, - "reveal_proof": { - "oneOf": [ - { - "title": "raw data proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "raw_data_proof" - ] - }, - "raw_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "raw_data" - ] - }, - { - "title": "metadata proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "metadata_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - }, - { - "title": "dal page proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_page_proof" - ] - }, - "dal_page_id": { - "type": "object", - "properties": { - "published_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "page_index": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - }, - "required": [ - "published_level", - "slot_index", - "page_index" - ] - }, - "dal_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "dal_page_id", - "dal_proof" - ] - }, - { - "title": "dal parameters proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_parameters_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - } - ] - } - }, - "required": [ - "input_proof_kind", - "reveal_proof" - ] - }, - { - "title": "first input", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "first_input" - ] - } - }, - "required": [ - "input_proof_kind" - ] - } - ] - } - }, - "required": [ - "pvm_step" - ] - } - ] - } - }, - "required": [ - "refutation_kind", - "choice", - "step" - ] - } - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "opponent", - "refutation" - ] - }, - { - "title": "Smart_rollup_timeout", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_timeout" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "stakers": { - "type": "object", - "properties": { - "alice": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "bob": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "alice", - "bob" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "stakers" - ] - }, - { - "title": "Smart_rollup_execute_outbox_message", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_execute_outbox_message" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "cemented_commitment": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "output_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "cemented_commitment", - "output_proof" - ] - }, - { - "title": "Smart_rollup_recover_bond", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_recover_bond" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "staker": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "staker" - ] - }, - { - "title": "Zk_rollup_origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "circuits_info": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "oneOf": [ - { - "title": "Public", - "type": "object", - "properties": { - "public": {} - }, - "required": [ - "public" - ] - }, - { - "title": "Private", - "type": "object", - "properties": { - "private": {} - }, - "required": [ - "private" - ] - }, - { - "title": "Fee", - "type": "object", - "properties": { - "fee": {} - }, - "required": [ - "fee" - ] - } - ] - } - ] - } - } - }, - "init_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "nb_ops": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_parameters", - "circuits_info", - "init_state", - "nb_ops" - ] - }, - { - "title": "Zk_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "op": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "properties": { - "op_code": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "price": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/script_expr" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "id", - "amount" - ] - }, - "l1_dst": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "rollup_id": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "payload": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "op_code", - "price", - "l1_dst", - "rollup_id", - "payload" - ] - }, - { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "contents": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ty": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - } - }, - "required": [ - "contents", - "ty", - "ticketer" - ] - } - ] - } - ] - } - } - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "op" - ] - }, - { - "title": "Zk_rollup_update", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_update" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "update": { - "type": "object", - "properties": { - "pending_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "exit_validity": { - "type": "boolean" - } - }, - "required": [ - "new_state", - "fee", - "exit_validity" - ] - } - ] - } - } - }, - "private_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "new_state", - "fee" - ] - } - ] - } - } - }, - "fee_pi": { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "new_state" - ] - }, - "proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "pending_pis", - "private_pis", - "fee_pi", - "proof" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "update" - ] - } - ] - }, - "018-Proxford.operation_with_legacy_attestation_name.alpha.operation_contents_and_result": { - "oneOf": [ - { - "title": "Endorsement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "endorsement" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "endorsement_power": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate", - "endorsement_power", - "consensus_key" - ] - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash", - "metadata" - ] - }, - { - "title": "Preendorsement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "preendorsement" - ] - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "round": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "block_payload_hash": { - "$ref": "#/components/schemas/value_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "preendorsement_power": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate", - "preendorsement_power", - "consensus_key" - ] - } - }, - "required": [ - "kind", - "slot", - "level", - "round", - "block_payload_hash", - "metadata" - ] - }, - { - "title": "Double_endorsement_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_endorsement_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.endorsement" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.endorsement" - }, - "metadata": { - "type": "object", - "properties": { - "forbidden_delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "op1", - "op2", - "metadata" - ] - }, - { - "title": "Double_preendorsement_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_preendorsement_evidence" - ] - }, - "op1": { - "$ref": "#/components/schemas/018-Proxford.inlined.preendorsement" - }, - "op2": { - "$ref": "#/components/schemas/018-Proxford.inlined.preendorsement" - }, - "metadata": { - "type": "object", - "properties": { - "forbidden_delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "op1", - "op2", - "metadata" - ] - }, - { - "title": "Seed_nonce_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "seed_nonce_revelation" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "nonce": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "level", - "nonce", - "metadata" - ] - }, - { - "title": "Vdf_revelation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "vdf_revelation" - ] - }, - "solution": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - ] - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "solution", - "metadata" - ] - }, - { - "title": "Dal_attestation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_attestation" - ] - }, - "attestation": { - "$ref": "#/components/schemas/bignum" - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "metadata": { - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate" - ] - } - }, - "required": [ - "kind", - "attestation", - "level", - "slot", - "metadata" - ] - }, - { - "title": "Double_baking_evidence", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "double_baking_evidence" - ] - }, - "bh1": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - }, - "bh2": { - "$ref": "#/components/schemas/018-Proxford.block_header.alpha.full_header" - }, - "metadata": { - "type": "object", - "properties": { - "forbidden_delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "bh1", - "bh2", - "metadata" - ] - }, - { - "title": "Activate_account", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "activate_account" - ] - }, - "pkh": { - "$ref": "#/components/schemas/Ed25519.Public_key_hash" - }, - "secret": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - } - } - } - }, - "required": [ - "kind", - "pkh", - "secret", - "metadata" - ] - }, - { - "title": "Proposals", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "proposals" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposals": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "metadata": { - "type": "object", - "properties": {} - } - }, - "required": [ - "kind", - "source", - "period", - "proposals", - "metadata" - ] - }, - { - "title": "Ballot", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "ballot" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "period": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proposal": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "ballot": { - "type": "string", - "enum": [ - "nay", - "yay", - "pass" - ] - }, - "metadata": { - "type": "object", - "properties": {} - } - }, - "required": [ - "kind", - "source", - "period", - "proposal", - "ballot", - "metadata" - ] - }, - { - "title": "Drain_delegate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "drain_delegate" - ] - }, - "consensus_key": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "destination": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "allocated_destination_contract": { - "type": "boolean" - } - } - } - }, - "required": [ - "kind", - "consensus_key", - "delegate", - "destination", - "metadata" - ] - }, - { - "title": "Reveal", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "reveal" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_key": { - "$ref": "#/components/schemas/Signature.Public_key" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.reveal" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_key", - "metadata" - ] - }, - { - "title": "Transaction", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transaction" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "parameters": { - "type": "object", - "properties": { - "entrypoint": { - "$ref": "#/components/schemas/018-Proxford.entrypoint" - }, - "value": {} - }, - "required": [ - "entrypoint", - "value" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.transaction" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination", - "metadata" - ] - }, - { - "title": "Origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "balance": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "script": { - "$ref": "#/components/schemas/018-Proxford.scripted.contracts" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.origination" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "balance", - "script", - "metadata" - ] - }, - { - "title": "Delegation", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "delegation" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.delegation" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "metadata" - ] - }, - { - "title": "Register_global_constant", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "register_global_constant" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "value": {}, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.register_global_constant" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "value", - "metadata" - ] - }, - { - "title": "Set_deposits_limit", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "set_deposits_limit" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "limit": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.set_deposits_limit" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "metadata" - ] - }, - { - "title": "Increase_paid_storage", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "increase_paid_storage" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id.originated" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.increase_paid_storage" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "amount", - "destination", - "metadata" - ] - }, - { - "title": "Update_consensus_key", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "update_consensus_key" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pk": { - "$ref": "#/components/schemas/Signature.Public_key" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.update_consensus_key" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pk", - "metadata" - ] - }, - { - "title": "Transfer_ticket", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "transfer_ticket" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "ticket_contents": {}, - "ticket_ty": {}, - "ticket_ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "ticket_amount": { - "$ref": "#/components/schemas/positive_bignum" - }, - "destination": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "entrypoint": { - "$ref": "#/components/schemas/unistring" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.transfer_ticket" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "ticket_contents", - "ticket_ty", - "ticket_ticketer", - "ticket_amount", - "destination", - "entrypoint", - "metadata" - ] - }, - { - "title": "Dal_publish_slot_header", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "dal_publish_slot_header" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "slot_header": { - "type": "object", - "properties": { - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "commitment": { - "$ref": "#/components/schemas/DAL_commitment" - }, - "commitment_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "slot_index", - "commitment", - "commitment_proof" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.dal_publish_slot_header" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "slot_header", - "metadata" - ] - }, - { - "title": "Smart_rollup_originate", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_originate" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "pvm_kind": { - "type": "string", - "enum": [ - "wasm_2_0_0", - "arith", - "riscv" - ] - }, - "kernel": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "parameters_ty": {}, - "whitelist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_originate" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "pvm_kind", - "kernel", - "parameters_ty", - "metadata" - ] - }, - { - "title": "Smart_rollup_add_messages", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_add_messages" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "message": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_add_messages" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "message", - "metadata" - ] - }, - { - "title": "Smart_rollup_cement", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_cement" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_cement" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "metadata" - ] - }, - { - "title": "Smart_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "commitment": { - "type": "object", - "properties": { - "compressed_state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "inbox_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "predecessor": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "number_of_ticks": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_publish" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "commitment", - "metadata" - ] - }, - { - "title": "Smart_rollup_refute", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_refute" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "opponent": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "refutation": { - "oneOf": [ - { - "title": "Start", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "start" - ] - }, - "player_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "opponent_commitment_hash": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - } - }, - "required": [ - "refutation_kind", - "player_commitment_hash", - "opponent_commitment_hash" - ] - }, - { - "title": "Move", - "type": "object", - "properties": { - "refutation_kind": { - "type": "string", - "enum": [ - "move" - ] - }, - "choice": { - "$ref": "#/components/schemas/positive_bignum" - }, - "step": { - "oneOf": [ - { - "title": "Dissection", - "type": "array", - "items": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/smart_rollup_state_hash" - }, - "tick": { - "$ref": "#/components/schemas/positive_bignum" - } - }, - "required": [ - "tick" - ] - } - }, - { - "title": "Proof", - "type": "object", - "properties": { - "pvm_step": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "input_proof": { - "oneOf": [ - { - "title": "inbox proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "inbox_proof" - ] - }, - "level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "message_counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "serialized_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "input_proof_kind", - "level", - "message_counter", - "serialized_proof" - ] - }, - { - "title": "reveal proof", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "reveal_proof" - ] - }, - "reveal_proof": { - "oneOf": [ - { - "title": "raw data proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "raw_data_proof" - ] - }, - "raw_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "raw_data" - ] - }, - { - "title": "metadata proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "metadata_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - }, - { - "title": "dal page proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_page_proof" - ] - }, - "dal_page_id": { - "type": "object", - "properties": { - "published_level": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647 - }, - "slot_index": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "page_index": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - }, - "required": [ - "published_level", - "slot_index", - "page_index" - ] - }, - "dal_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "reveal_proof_kind", - "dal_page_id", - "dal_proof" - ] - }, - { - "title": "dal parameters proof", - "type": "object", - "properties": { - "reveal_proof_kind": { - "type": "string", - "enum": [ - "dal_parameters_proof" - ] - } - }, - "required": [ - "reveal_proof_kind" - ] - } - ] - } - }, - "required": [ - "input_proof_kind", - "reveal_proof" - ] - }, - { - "title": "first input", - "type": "object", - "properties": { - "input_proof_kind": { - "type": "string", - "enum": [ - "first_input" - ] - } - }, - "required": [ - "input_proof_kind" - ] - } - ] - } - }, - "required": [ - "pvm_step" - ] - } - ] - } - }, - "required": [ - "refutation_kind", - "choice", - "step" - ] - } - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_refute" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "opponent", - "refutation", - "metadata" - ] - }, - { - "title": "Smart_rollup_timeout", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_timeout" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "stakers": { - "type": "object", - "properties": { - "alice": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "bob": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "alice", - "bob" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_timeout" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "stakers", - "metadata" - ] - }, - { - "title": "Smart_rollup_execute_outbox_message", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_execute_outbox_message" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "cemented_commitment": { - "$ref": "#/components/schemas/smart_rollup_commitment_hash" - }, - "output_proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_execute_outbox_message" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "cemented_commitment", - "output_proof", - "metadata" - ] - }, - { - "title": "Smart_rollup_recover_bond", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "smart_rollup_recover_bond" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "rollup": { - "$ref": "#/components/schemas/smart_rollup_address" - }, - "staker": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.smart_rollup_recover_bond" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "rollup", - "staker", - "metadata" - ] - }, - { - "title": "Zk_rollup_origination", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_origination" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "public_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "circuits_info": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "oneOf": [ - { - "title": "Public", - "type": "object", - "properties": { - "public": {} - }, - "required": [ - "public" - ] - }, - { - "title": "Private", - "type": "object", - "properties": { - "private": {} - }, - "required": [ - "private" - ] - }, - { - "title": "Fee", - "type": "object", - "properties": { - "fee": {} - }, - "required": [ - "fee" - ] - } - ] - } - ] - } - } - }, - "init_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "nb_ops": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.zk_rollup_origination" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "public_parameters", - "circuits_info", - "init_state", - "nb_ops", - "metadata" - ] - }, - { - "title": "Zk_rollup_publish", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_publish" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "op": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "properties": { - "op_code": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "price": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/script_expr" - }, - "amount": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "id", - "amount" - ] - }, - "l1_dst": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "rollup_id": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "payload": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "op_code", - "price", - "l1_dst", - "rollup_id", - "payload" - ] - }, - { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "contents": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ty": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - }, - "ticketer": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - } - }, - "required": [ - "contents", - "ty", - "ticketer" - ] - } - ] - } - ] - } - } - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.zk_rollup_publish" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "op", - "metadata" - ] - }, - { - "title": "Zk_rollup_update", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "zk_rollup_update" - ] - }, - "source": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - }, - "fee": { - "$ref": "#/components/schemas/018-Proxford.mutez" - }, - "counter": { - "$ref": "#/components/schemas/positive_bignum" - }, - "gas_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "storage_limit": { - "$ref": "#/components/schemas/positive_bignum" - }, - "zk_rollup": { - "$ref": "#/components/schemas/Zk_rollup_hash" - }, - "update": { - "type": "object", - "properties": { - "pending_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "exit_validity": { - "type": "boolean" - } - }, - "required": [ - "new_state", - "fee", - "exit_validity" - ] - } - ] - } - } - }, - "private_pis": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "fee": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "new_state", - "fee" - ] - } - ] - } - } - }, - "fee_pi": { - "type": "object", - "properties": { - "new_state": { - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - }, - "required": [ - "new_state" - ] - }, - "proof": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "pending_pis", - "private_pis", - "fee_pi", - "proof" - ] - }, - "metadata": { - "type": "object", - "properties": { - "balance_updates": { - "$ref": "#/components/schemas/018-Proxford.operation_metadata_with_legacy_attestation_name.alpha.balance_updates" - }, - "operation_result": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.operation_result.zk_rollup_update" - }, - "internal_operation_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.apply_internal_results.alpha.operation_result" - } - } - }, - "required": [ - "operation_result" - ] - } - }, - "required": [ - "kind", - "source", - "fee", - "counter", - "gas_limit", - "storage_limit", - "zk_rollup", - "update", - "metadata" - ] - } - ] - }, - "018-Proxford.operation_with_legacy_attestation_name.alpha.operation_with_metadata": { - "oneOf": [ - { - "title": "Operation_with_metadata", - "type": "object", - "properties": { - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.operation_contents_and_result" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "contents" - ] - }, - { - "title": "Operation_without_metadata", - "type": "object", - "properties": { - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "contents" - ] - } - ] - }, - "018-Proxford.operation_with_legacy_attestation_name.alpha.unsigned_operation": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" - } - } - }, - "required": [ - "branch", - "contents" - ] - }, - "018-Proxford.per_block_votes": { - "type": "object", - "properties": { - "liquidity_baking_vote": { - "oneOf": [ - { - "title": "per_block_vote_on", - "type": "string", - "enum": [ - "on" - ] - }, - { - "title": "per_block_vote_off", - "type": "string", - "enum": [ - "off" - ] - }, - { - "title": "per_block_vote_pass", - "type": "string", - "enum": [ - "pass" - ] - } - ] - }, - "adaptive_issuance_vote": { - "oneOf": [ - { - "title": "per_block_vote_on", - "type": "string", - "enum": [ - "on" - ] - }, - { - "title": "per_block_vote_off", - "type": "string", - "enum": [ - "off" - ] - }, - { - "title": "per_block_vote_pass", - "type": "string", - "enum": [ - "pass" - ] - } - ] - } - }, - "required": [ - "liquidity_baking_vote", - "adaptive_issuance_vote" - ] - }, - "018-Proxford.sapling_state_id": { - "title": "Sapling state identifier", - "description": "A sapling state identifier", - "oneOf": [ - { - "$ref": "#/components/schemas/bignum" - } - ] - }, - "018-Proxford.scripted.contracts": { - "type": "object", - "properties": { - "code": {}, - "storage": {} - }, - "required": [ - "code", - "storage" - ] - }, - "018-Proxford.scripted.trace": { - "type": "array", - "items": { - "type": "object", - "properties": { - "location": { - "$ref": "#/components/schemas/micheline.location" - }, - "gas": { - "$ref": "#/components/schemas/bignum" - }, - "stack": { - "type": "array", - "items": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - } - }, - "required": [ - "location", - "gas", - "stack" - ] - } - }, - "018-Proxford.staker": { - "title": "unstaked_frozen_staker", - "description": "Abstract notion of staker used in operation receipts for unstaked frozen deposits, either a single staker or all the stakers delegating to some delegate.", - "oneOf": [ - { - "title": "Single", - "type": "object", - "properties": { - "contract": { - "$ref": "#/components/schemas/018-Proxford.contract_id" - }, - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "contract", - "delegate" - ] - }, - { - "title": "Shared", - "type": "object", - "properties": { - "delegate": { - "$ref": "#/components/schemas/Signature.Public_key_hash" - } - }, - "required": [ - "delegate" - ] - } - ] - }, - "018-Proxford.transaction_destination": { - "title": "A destination of a transaction", - "description": "A destination notation compatible with the contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash, a base58 originated contract hash, a base58 originated transaction rollup, or a base58 originated smart rollup.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Blinded public key hash": { - "title": "A blinded public key hash (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Chain_id": { - "title": "Network identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Context_hash": { - "title": "A hash of context (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Contract_hash": { - "title": "A contract ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "DAL_commitment": { - "title": "Commitment representation for the DAL (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Ed25519.Public_key_hash": { - "title": "An Ed25519 public key hash (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Operation_hash": { - "title": "A Tezos operation ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Operation_list_list_hash": { - "title": "A list of list of operations (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Operation_metadata_hash": { - "title": "A Tezos operation metadata ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Protocol_hash": { - "title": "A Tezos protocol ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Signature.Public_key": { - "title": "A Ed25519, Secp256k1, or P256 public key (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Signature.Public_key_hash": { - "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Signature.V0": { - "title": "A Ed25519, Secp256k1 or P256 signature (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Signature.V1": { - "title": "A Ed25519, Secp256k1, P256 or BLS signature (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Zk_rollup_hash": { - "title": "A zk rollup address (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "bignum": { - "title": "Big number", - "description": "Decimal representation of a big number", - "type": "string" - }, - "block_hash": { - "title": "A block identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "block_header.shell": { - "title": "Shell header", - "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context" - ] - }, - "block_header_metadata": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "next_protocol": { - "type": "string", - "enum": [ - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH" - ] - }, - "test_chain_status": { - "$ref": "#/components/schemas/test_chain_status" - }, - "max_operations_ttl": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_operation_data_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_block_header_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_operation_list_length": { - "type": "array", - "items": { - "type": "object", - "properties": { - "max_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_op": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "max_size" - ] - } - } - }, - "required": [ - "protocol", - "next_protocol", - "test_chain_status", - "max_operations_ttl", - "max_operation_data_length", - "max_block_header_length", - "max_operation_list_length" - ], - "additionalProperties": {} - }, - "block_header_metadata_with_legacy_attestation_name": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "next_protocol": { - "type": "string", - "enum": [ - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH" - ] - }, - "test_chain_status": { - "$ref": "#/components/schemas/test_chain_status" - }, - "max_operations_ttl": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_operation_data_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_block_header_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_operation_list_length": { - "type": "array", - "items": { - "type": "object", - "properties": { - "max_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_op": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "max_size" - ] - } - } - }, - "required": [ - "protocol", - "next_protocol", - "test_chain_status", - "max_operations_ttl", - "max_operation_data_length", - "max_block_header_length", - "max_operation_list_length" - ], - "additionalProperties": {} - }, - "cycle_nonce": { - "title": "A nonce hash (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "dal_skip_list_pointer": { - "title": "A hash that represents the skip list pointers (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "error": { - "description": "The full list of errors is available with the global RPC `GET errors`" - }, - "fitness": { - "title": "Block fitness", - "description": "The fitness, or score, of a block, that allow the Tezos to decide which chain is the best. A fitness value is a list of byte sequences. They are compared as follows: shortest lists are smaller; lists of the same length are compared according to the lexicographical order.", - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "inode_tree": { - "oneOf": [ - { - "title": "Inode_tree", - "type": "object", - "properties": { - "inode_tree": { - "type": "object", - "properties": { - "length": { - "$ref": "#/components/schemas/int64" - }, - "proofs": { - "oneOf": [ - { - "title": "sparse_proof", - "type": "object", - "properties": { - "sparse_proof": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - { - "$ref": "#/components/schemas/inode_tree" - } - ] - } - } - } - }, - "required": [ - "sparse_proof" - ] - }, - { - "title": "dense_proof", - "type": "object", - "properties": { - "dense_proof": { - "type": "array", - "items": { - "$ref": "#/components/schemas/inode_tree" - } - } - }, - "required": [ - "dense_proof" - ] - } - ] - } - }, - "required": [ - "length", - "proofs" - ] - } - }, - "required": [ - "inode_tree" - ] - }, - { - "title": "other_inode_trees", - "type": "object", - "properties": { - "other_inode_trees": { - "oneOf": [ - { - "title": "Inode_values", - "type": "object", - "properties": { - "inode_values": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "$ref": "#/components/schemas/tree_encoding" - } - ] - } - } - } - }, - "required": [ - "inode_values" - ] - }, - { - "title": "other_inode_trees", - "type": "object", - "properties": { - "other_inode_trees": { - "oneOf": [ - { - "title": "Blinded_inode", - "type": "object", - "properties": { - "blinded_inode": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "blinded_inode" - ] - }, - { - "title": "Inode_extender", - "type": "object", - "properties": { - "inode_extender": { - "type": "object", - "properties": { - "length": { - "$ref": "#/components/schemas/int64" - }, - "segment": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "proof": { - "$ref": "#/components/schemas/inode_tree" - } - }, - "required": [ - "length", - "segment", - "proof" - ] - } - }, - "required": [ - "inode_extender" - ] - }, - { - "title": "None", - "type": "object", - "properties": { - "none": {} - }, - "required": [ - "none" - ] - } - ] - } - }, - "required": [ - "other_inode_trees" - ] - } - ] - } - }, - "required": [ - "other_inode_trees" - ] - } - ] - }, - "int64": { - "title": "64 bit integers", - "description": "Decimal representation of 64 bit integers", - "type": "string" - }, - "merkle_tree": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - }, - { - "oneOf": [ - { - "title": "Hash", - "type": "array", - "items": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "#/components/schemas/unistring" - } - ] - } - }, - { - "title": "Data", - "oneOf": [ - { - "$ref": "#/components/schemas/raw_context" - } - ] - }, - { - "title": "Continue", - "oneOf": [ - { - "$ref": "#/components/schemas/merkle_tree" - } - ] - } - ] - } - ] - } - } - }, - "micheline.018-Proxford.michelson_v1.expression": { - "oneOf": [ - { - "title": "Int", - "type": "object", - "properties": { - "int": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "int" - ] - }, - { - "title": "String", - "type": "object", - "properties": { - "string": { - "$ref": "#/components/schemas/unistring" - } - }, - "required": [ - "string" - ] - }, - { - "title": "Bytes", - "type": "object", - "properties": { - "bytes": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "bytes" - ] - }, - { - "title": "Sequence", - "type": "array", - "items": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - { - "title": "Prim__generic", - "description": "Generic primitive (any number of args with or without annotations)", - "type": "object", - "properties": { - "prim": { - "$ref": "#/components/schemas/018-Proxford.michelson.v1.primitives" - }, - "args": { - "type": "array", - "items": { - "$ref": "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" - } - }, - "annots": { - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - }, - "required": [ - "prim" - ] - } - ] - }, - "micheline.location": { - "title": "Canonical location in a Micheline expression", - "description": "The location of a node in a Micheline expression tree in prefix order, with zero being the root and adding one for every basic node, sequence and primitive application.", - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "next_operation": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "protocol", - "branch", - "contents" - ] - }, - "next_operation_with_legacy_attestation_name": { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH" - ] - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" - } - }, - "signature": { - "$ref": "#/components/schemas/Signature.V1" - } - }, - "required": [ - "protocol", - "branch", - "contents" - ] - }, - "operation": { - "oneOf": [ - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "metadata": { - "type": "string", - "enum": [ - "too large" - ] - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "branch", - "metadata" - ], - "additionalProperties": {} - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "branch" - ], - "additionalProperties": {} - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "branch" - ], - "additionalProperties": {} - } - ] - }, - "operation_with_legacy_attestation_name": { - "oneOf": [ - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "metadata": { - "type": "string", - "enum": [ - "too large" - ] - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "branch", - "metadata" - ], - "additionalProperties": {} - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "branch" - ], - "additionalProperties": {} - }, - { - "description": "An operation's shell header.", - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "branch": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "protocol", - "chain_id", - "hash", - "branch" - ], - "additionalProperties": {} - } - ] - }, - "positive_bignum": { - "title": "Positive big number", - "description": "Decimal representation of a positive big number", - "type": "string" - }, - "random": { - "title": "A random generation state (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "raw_block_header": { - "title": "Shell header", - "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - }, - "content": { - "oneOf": [ - { - "title": "Activate", - "type": "object", - "properties": { - "command": { - "type": "string", - "enum": [ - "activate" - ] - }, - "hash": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "protocol_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "command", - "hash", - "fitness", - "protocol_parameters" - ] - }, - { - "title": "Activate_testchain", - "type": "object", - "properties": { - "command": { - "type": "string", - "enum": [ - "activate_testchain" - ] - }, - "hash": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "protocol_parameters": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "validity_time": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "command", - "hash", - "fitness", - "protocol_parameters", - "validity_time" - ] - } - ] - }, - "signature": { - "$ref": "#/components/schemas/Signature.V0" - } - }, - "required": [ - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context", - "content", - "signature" - ] - }, - "raw_context": { - "nullable": true, - "oneOf": [ - { - "title": "Key", - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "title": "Dir", - "type": "object", - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/raw_context" - } - } - ] - }, - "sapling.DH.epk": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "sapling.transaction.ciphertext": { - "type": "object", - "properties": { - "cv": { - "$ref": "#/components/schemas/sapling.transaction.commitment_value" - }, - "epk": { - "$ref": "#/components/schemas/sapling.DH.epk" - }, - "payload_enc": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "nonce_enc": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "payload_out": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "nonce_out": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "cv", - "epk", - "payload_enc", - "nonce_enc", - "payload_out", - "nonce_out" - ] - }, - "sapling.transaction.commitment": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "sapling.transaction.commitment_hash": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "sapling.transaction.commitment_value": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "sapling.transaction.nullifier": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "script_expr": { - "title": "A script expression ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "smart_rollup_address": { - "title": "A smart rollup address (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "smart_rollup_commitment_hash": { - "title": "The hash of a commitment of a smart rollup (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "smart_rollup_inbox_hash": { - "title": "The hash of an inbox of a smart rollup (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "smart_rollup_merkelized_payload_hashes_hash": { - "title": "The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "smart_rollup_state_hash": { - "title": "The hash of the VM state of a smart rollup (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "test_chain_status": { - "description": "The status of the test chain: not_running (there is no test chain at the moment), forking (the test chain is being setup), running (the test chain is running).", - "oneOf": [ - { - "title": "Not_running", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "not_running" - ] - } - }, - "required": [ - "status" - ] - }, - { - "title": "Forking", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "forking" - ] - }, - "protocol": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "expiration": { - "$ref": "#/components/schemas/timestamp.protocol" - } - }, - "required": [ - "status", - "protocol", - "expiration" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "running" - ] - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "genesis": { - "$ref": "#/components/schemas/block_hash" - }, - "protocol": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "expiration": { - "$ref": "#/components/schemas/timestamp.protocol" - } - }, - "required": [ - "status", - "chain_id", - "genesis", - "protocol", - "expiration" - ] - } - ] - }, - "timestamp.protocol": { - "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "tree_encoding": { - "oneOf": [ - { - "title": "Inode", - "type": "object", - "properties": { - "inode": { - "type": "object", - "properties": { - "length": { - "$ref": "#/components/schemas/int64" - }, - "proofs": { - "oneOf": [ - { - "title": "sparse_proof", - "type": "object", - "properties": { - "sparse_proof": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - { - "$ref": "#/components/schemas/inode_tree" - } - ] - } - } - } - }, - "required": [ - "sparse_proof" - ] - }, - { - "title": "dense_proof", - "type": "object", - "properties": { - "dense_proof": { - "type": "array", - "items": { - "$ref": "#/components/schemas/inode_tree" - } - } - }, - "required": [ - "dense_proof" - ] - } - ] - } - }, - "required": [ - "length", - "proofs" - ] - } - }, - "required": [ - "inode" - ] - }, - { - "title": "other_trees", - "type": "object", - "properties": { - "other_trees": { - "oneOf": [ - { - "title": "Node", - "type": "object", - "properties": { - "node": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "$ref": "#/components/schemas/tree_encoding" - } - ] - } - } - } - }, - "required": [ - "node" - ] - }, - { - "title": "other_trees", - "type": "object", - "properties": { - "other_trees": { - "oneOf": [ - { - "title": "Value", - "type": "object", - "properties": { - "value": { - "oneOf": [ - { - "title": "short_bytes", - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "title": "medium_bytes", - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - { - "title": "long_bytes", - "description": "This case is void. No data is accepted." - }, - { - "title": "unlimited_bytes", - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - ] - } - }, - "required": [ - "value" - ] - }, - { - "title": "Blinded_value", - "type": "object", - "properties": { - "blinded_value": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "blinded_value" - ] - }, - { - "title": "Blinded_node", - "type": "object", - "properties": { - "blinded_node": { - "$ref": "#/components/schemas/Context_hash" - } - }, - "required": [ - "blinded_node" - ] - }, - { - "title": "Extender", - "type": "object", - "properties": { - "extender": { - "type": "object", - "properties": { - "length": { - "$ref": "#/components/schemas/int64" - }, - "segment": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "proof": { - "$ref": "#/components/schemas/inode_tree" - } - }, - "required": [ - "length", - "segment", - "proof" - ] - } - }, - "required": [ - "extender" - ] - }, - { - "title": "None", - "type": "object", - "properties": { - "none": {} - }, - "required": [ - "none" - ] - } - ] - } - }, - "required": [ - "other_trees" - ] - } - ] - } - }, - "required": [ - "other_trees" - ] - } - ] - }, - "unistring": { - "title": "Universal string representation", - "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "invalid_utf8_string": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 255 - } - } - }, - "required": [ - "invalid_utf8_string" - ] - } - ] - }, - "value_hash": { - "title": "Hash of a consensus value (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } -} diff --git a/docs/api/oxford-openapi.json b/docs/api/oxford-openapi.json index 87bf340f19c2..ba7d13e083c7 100644 --- a/docs/api/oxford-openapi.json +++ b/docs/api/oxford-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Protocol oxford RPC", "description": "The RPC API for protocol oxford served by the Octez node.", - "version": "19.2 (54a1580334)" + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/": { @@ -13,7 +13,7 @@ { "name": "version", "in": "query", - "description": "Supported RPC versions are version \"0\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" that will output \"attestation\" in the \"kind\" field", + "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", "required": true, "schema": { "type": "string" @@ -8581,7 +8581,7 @@ { "name": "version", "in": "query", - "description": "Supported RPC versions are version \"0\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" that will output \"attestation\" in the \"kind\" field", + "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", "required": true, "schema": { "type": "string" @@ -10800,7 +10800,7 @@ { "name": "version", "in": "query", - "description": "Supported RPC versions are version \"0\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" that will output \"attestation\" in the \"kind\" field", + "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", "required": true, "schema": { "type": "string" @@ -11139,7 +11139,7 @@ { "name": "version", "in": "query", - "description": "Supported RPC versions are version \"0\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" that will output \"attestation\" in the \"kind\" field", + "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", "required": true, "schema": { "type": "string" @@ -11225,7 +11225,7 @@ { "name": "version", "in": "query", - "description": "Supported RPC versions are version \"0\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" that will output \"attestation\" in the \"kind\" field", + "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", "required": true, "schema": { "type": "string" @@ -11314,7 +11314,7 @@ { "name": "version", "in": "query", - "description": "Supported RPC versions are version \"0\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" that will output \"attestation\" in the \"kind\" field", + "description": "Supported RPC versions are version \"0\" (deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" (default) that will output \"attestation\" in the \"kind\" field", "required": true, "schema": { "type": "string" diff --git a/docs/api/oxford-smart-rollup-node-openapi-rc.json b/docs/api/oxford-smart-rollup-node-openapi-rc.json deleted file mode 100644 index 5d99f9cf1de4..000000000000 --- a/docs/api/oxford-smart-rollup-node-openapi-rc.json +++ /dev/null @@ -1,5753 +0,0 @@ -{ "openapi": "3.0.0", - "info": - { "title": "Smart Rollup Node RPCs", - "description": - "Smart Rollup Node RPC API for protocol ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH", - "version": "Octez 20.0~rc1 (e38cf666)" }, - "paths": - { "/describe": - { "get": - { "description": "RPCs documentation and input/output schema", - "parameters": - [ { "name": "recurse", "in": "query", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "$ref": "#/components/schemas/service_tree" } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}": - { "get": - { "description": - "Layer-2 block of the layer-2 chain with respect to a Layer 1 block identifier", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "block_hash": - { "description": "Tezos block hash.", - "oneOf": - [ { "$ref": - "#/components/schemas/block_hash" } ] }, - "level": - { "description": - "Level of the block, corresponds to the level of the tezos block.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "description": - "Predecessor hash of the Tezos block.", - "oneOf": - [ { "$ref": - "#/components/schemas/block_hash" } ] }, - "commitment_hash": - { "description": - "Hash of this block's commitment if any was computed for it.", - "nullable": true, - "oneOf": - [ { "title": "Some", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" } ] } ] }, - "previous_commitment_hash": - { "description": - "Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" } ] }, - "context": - { "description": - "Hash of the layer 2 context for this block.", - "oneOf": - [ { "$ref": - "#/components/schemas/Smart_rollup_context_hash" } ] }, - "inbox_witness": - { "description": - "Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" } ] }, - "inbox_hash": - { "description": - "Hash of the inbox for this block.", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_inbox_hash" } ] }, - "inbox": - { "description": - "Inbox for this block.", - "type": "object", - "properties": - { "level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "old_levels_messages": - { "type": "object", - "properties": - { "index": - { "$ref": - "#/components/schemas/positive_bignum" }, - "content": - { "type": "object", - "properties": - { "hash": - { "$ref": - "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" }, - "level": - { "type": - "integer", - "minimum": - -2147483648, - "maximum": - 2147483647 } }, - "required": - [ "hash", - "level" ] }, - "back_pointers": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/smart_rollup_inbox_hash" } } }, - "required": - [ "index", "content", - "back_pointers" ] } }, - "required": - [ "level", - "old_levels_messages" ] }, - "messages": - { "description": - "Messages added to the inbox in this block.", - "type": "array", - "items": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } }, - "commitment": - { "description": - "Commitment, if any is computed for this block.", - "type": "object", - "properties": - { "compressed_state": - { "$ref": - "#/components/schemas/smart_rollup_state_hash" }, - "inbox_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "number_of_ticks": - { "$ref": - "#/components/schemas/int64" } }, - "required": - [ "compressed_state", - "inbox_level", "predecessor", - "number_of_ticks" ] }, - "initial_tick": - { "description": - "Initial tick of the PVM at this block, i.e. before evaluation of the messages.", - "oneOf": - [ { "$ref": - "#/components/schemas/positive_bignum" } ] }, - "num_ticks": - { "description": - "Number of ticks produced by the evaluation of the messages in this block.", - "oneOf": - [ { "$ref": - "#/components/schemas/int64" } ] } }, - "required": - [ "block_hash", "level", "predecessor", - "commitment_hash", - "previous_commitment_hash", "context", - "inbox_witness", "inbox_hash", "inbox", - "messages", "initial_tick", - "num_ticks" ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/dal/processed_slots": - { "get": - { "description": - "Data availability processed slots and their statuses", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "array", - "items": - { "type": "object", - "properties": - { "index": - { "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 }, - "status": - { "type": "string", - "enum": - [ "unconfirmed", - "confirmed" ] } }, - "required": [ "index", "status" ] } } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/dal/slot_headers": - { "get": - { "description": "Availability slots for a given block", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "array", - "items": - { "type": "object", - "properties": - { "level": - { "type": "integer", - "minimum": 0, - "maximum": 2147483647 }, - "index": - { "type": "integer", - "minimum": 0, "maximum": 255 }, - "commitment": - { "$ref": - "#/components/schemas/DAL_commitment" } }, - "required": - [ "level", "index", "commitment" ] } } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/durable/wasm_2_0_0/length": - { "get": - { "description": - "Retrieve number of bytes in raw representation of value by key from PVM durable storage. PVM state is taken with respect to the specified block level.", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "key", "in": "query", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", - "oneOf": - [ { "$ref": - "#/components/schemas/int64" } ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/durable/wasm_2_0_0/subkeys": - { "get": - { "description": - "Retrieve subkeys of the specified key from PVM durable storage. PVM state is taken with respect to the specified block level.", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "key", "in": "query", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/unistring" } } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/durable/wasm_2_0_0/value": - { "get": - { "description": - "Retrieve value by key from PVM durable storage. PVM state is taken with respect to the specified block level. Value returned in hex format.", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "key", "in": "query", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/hash": - { "get": - { "description": - "Tezos block hash of block known to the smart rollup node", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "title": - "A block identifier (Base58Check-encoded)", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/helpers/proofs/outbox/{level}/messages": - { "get": - { "description": - "Generate serialized output proof for some outbox message at level and index", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "level", "in": "path", "required": true, - "schema": { "type": "string" } }, - { "name": "index", "in": "query", "required": false, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "commitment": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "proof": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } }, - "required": [ "commitment", "proof" ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/inbox": - { "get": - { "description": "Rollup inbox for block", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "old_levels_messages": - { "type": "object", - "properties": - { "index": - { "$ref": - "#/components/schemas/positive_bignum" }, - "content": - { "type": "object", - "properties": - { "hash": - { "$ref": - "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" }, - "level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": - 2147483647 } }, - "required": - [ "hash", "level" ] }, - "back_pointers": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/smart_rollup_inbox_hash" } } }, - "required": - [ "index", "content", - "back_pointers" ] } }, - "required": - [ "level", "old_levels_messages" ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/level": - { "get": - { "description": - "Level of Tezos block known to the smart rollup node", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "integer", "minimum": -2147483648, - "maximum": 2147483647 } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/num_messages": - { "get": - { "description": "Number of messages for specified block", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "title": "Big number", - "description": - "Decimal representation of a big number", - "type": "string" } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/outbox": - { "get": - { "description": "Outbox at block for a given outbox level", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "outbox_level", "in": "query", "required": false, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "array", - "items": - { "type": "object", - "properties": - { "outbox_level": - { "type": "integer", - "minimum": 0, - "maximum": 2147483647 }, - "message_index": - { "$ref": - "#/components/schemas/positive_bignum" }, - "message": - { "oneOf": - [ { "title": - "Atomic_transaction_batch", - "type": "object", - "properties": - { "transactions": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "parameters": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "destination": - { "$ref": - "#/components/schemas/018-Proxford.contract_id.originated" }, - "entrypoint": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "parameters", - "destination" ] } }, - "kind": - { "type": "string", - "enum": - [ "untyped" ] } }, - "required": - [ "transactions", - "kind" ] }, - { "title": - "Atomic_transaction_batch_typed", - "type": "object", - "properties": - { "transactions": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "parameters": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "parameters_ty": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "destination": - { "$ref": - "#/components/schemas/018-Proxford.contract_id.originated" }, - "entrypoint": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "parameters", - "parameters_ty", - "destination" ] } }, - "kind": - { "type": "string", - "enum": - [ "typed" ] } }, - "required": - [ "transactions", - "kind" ] }, - { "title": - "Whitelist_update", - "type": "object", - "properties": - { "whitelist": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/Signature.Public_key_hash" } }, - "kind": - { "type": "string", - "enum": - [ "whitelist_update" ] } }, - "required": [ "kind" ] } ] } }, - "required": - [ "outbox_level", "message_index", - "message" ] } } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/outbox/{level}/messages": - { "get": - { "description": "Outbox at block for a given outbox level", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "level", "in": "path", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "array", - "items": - { "type": "object", - "properties": - { "outbox_level": - { "type": "integer", - "minimum": 0, - "maximum": 2147483647 }, - "message_index": - { "$ref": - "#/components/schemas/positive_bignum" }, - "message": - { "oneOf": - [ { "title": - "Atomic_transaction_batch", - "type": "object", - "properties": - { "transactions": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "parameters": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "destination": - { "$ref": - "#/components/schemas/018-Proxford.contract_id.originated" }, - "entrypoint": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "parameters", - "destination" ] } }, - "kind": - { "type": "string", - "enum": - [ "untyped" ] } }, - "required": - [ "transactions", - "kind" ] }, - { "title": - "Atomic_transaction_batch_typed", - "type": "object", - "properties": - { "transactions": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "parameters": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "parameters_ty": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "destination": - { "$ref": - "#/components/schemas/018-Proxford.contract_id.originated" }, - "entrypoint": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "parameters", - "parameters_ty", - "destination" ] } }, - "kind": - { "type": "string", - "enum": - [ "typed" ] } }, - "required": - [ "transactions", - "kind" ] }, - { "title": - "Whitelist_update", - "type": "object", - "properties": - { "whitelist": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/Signature.Public_key_hash" } }, - "kind": - { "type": "string", - "enum": - [ "whitelist_update" ] } }, - "required": [ "kind" ] } ] } }, - "required": - [ "outbox_level", "message_index", - "message" ] } } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/simulate": - { "post": - { "description": "Simulate messages evaluation by the PVM", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "requestBody": - { "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "messages": - { "description": - "Serialized messages for simulation.", - "type": "array", - "items": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } }, - "reveal_pages": - { "description": - "Pages (at most 4kB) to be used for revelation ticks", - "type": "array", - "items": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } }, - "insight_requests": - { "description": - "Paths in the PVM to inspect after the simulation", - "type": "array", - "items": - { "oneOf": - [ { "title": "pvm_state", - "description": - "Path in the PVM state", - "type": "object", - "properties": - { "kind": - { "type": "string", - "enum": - [ "pvm_state" ] }, - "key": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/unistring" } } }, - "required": [ "kind", "key" ] }, - { "title": "durable_storage", - "description": - "Path in the PVM durable storage", - "type": "object", - "properties": - { "kind": - { "type": "string", - "enum": - [ "durable_storage" ] }, - "key": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/unistring" } } }, - "required": [ "kind", "key" ] } ] } }, - "log_kernel_debug_file": - { "description": - "File in which to emit kernel logs. This file will be created in /simulation_kernel_logs/, where is the data directory of the rollup node.", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] } }, - "required": [ "messages" ] } } } }, - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "state_hash": - { "description": - "Hash of the state after execution of the PVM on the input messages", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_state_hash" } ] }, - "status": - { "description": - "Status of the PVM after evaluation", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] }, - "output": - { "description": - "Output produced by evaluation of the messages", - "type": "array", - "items": - { "type": "object", - "properties": - { "outbox_level": - { "type": "integer", - "minimum": 0, - "maximum": 2147483647 }, - "message_index": - { "$ref": - "#/components/schemas/positive_bignum" }, - "message": - { "oneOf": - [ { "title": - "Atomic_transaction_batch", - "type": "object", - "properties": - { "transactions": - { "type": - "array", - "items": - { "type": - "object", - "properties": - { "parameters": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "destination": - { "$ref": - "#/components/schemas/018-Proxford.contract_id.originated" }, - "entrypoint": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "parameters", - "destination" ] } }, - "kind": - { "type": - "string", - "enum": - [ "untyped" ] } }, - "required": - [ "transactions", - "kind" ] }, - { "title": - "Atomic_transaction_batch_typed", - "type": "object", - "properties": - { "transactions": - { "type": - "array", - "items": - { "type": - "object", - "properties": - { "parameters": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "parameters_ty": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" }, - "destination": - { "$ref": - "#/components/schemas/018-Proxford.contract_id.originated" }, - "entrypoint": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "parameters", - "parameters_ty", - "destination" ] } }, - "kind": - { "type": - "string", - "enum": - [ "typed" ] } }, - "required": - [ "transactions", - "kind" ] }, - { "title": - "Whitelist_update", - "type": "object", - "properties": - { "whitelist": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/Signature.Public_key_hash" } }, - "kind": - { "type": - "string", - "enum": - [ "whitelist_update" ] } }, - "required": - [ "kind" ] } ] } }, - "required": - [ "outbox_level", - "message_index", - "message" ] } }, - "inbox_level": - { "description": - "Level of the inbox that would contain these messages", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "num_ticks": - { "description": - "Ticks taken by the PVM for evaluating the messages", - "oneOf": - [ { "$ref": - "#/components/schemas/bignum" } ] }, - "insights": - { "description": - "PVM state values requested after the simulation", - "type": "array", - "items": - { "nullable": true, - "oneOf": - [ { "title": "Some", - "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } ] } } }, - "required": - [ "state_hash", "status", "output", - "inbox_level", "num_ticks" ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/state": - { "get": - { "description": - "Retrieve value from key is PVM state of specified block", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "key", "in": "query", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/state_current_level": - { "get": - { "description": "Retrieve the current level of a PVM", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", "type": "integer", - "minimum": 0, "maximum": 2147483647 } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/state_hash": - { "get": - { "description": "State hash for this block", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "title": - "The hash of the VM state of a smart rollup (Base58Check-encoded)", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/status": - { "get": - { "description": "PVM status at block", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "title": "Universal string representation", - "description": - "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", - "oneOf": - [ { "type": "string" }, - { "type": "object", - "properties": - { "invalid_utf8_string": - { "type": "array", - "items": - { "type": "integer", - "minimum": 0, - "maximum": 255 } } }, - "required": [ "invalid_utf8_string" ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/ticks": - { "get": - { "description": "Number of ticks for specified level", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "title": "Big number", - "description": - "Decimal representation of a big number", - "type": "string" } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/total_ticks": - { "get": - { "description": "Total number of ticks at specified block", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "title": "Positive big number", - "description": - "Decimal representation of a positive big number", - "type": "string" } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/last_stored_commitment": - { "get": - { "description": "Last commitment computed by the node", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", "type": "object", - "properties": - { "commitment": - { "type": "object", - "properties": - { "compressed_state": - { "$ref": - "#/components/schemas/smart_rollup_state_hash" }, - "inbox_level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "number_of_ticks": - { "$ref": - "#/components/schemas/int64" } }, - "required": - [ "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" ] }, - "hash": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" } }, - "required": [ "commitment", "hash" ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/monitor_blocks": - { "get": - { "description": "Monitor and streaming the L2 blocks", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "block_hash": - { "description": "Tezos block hash.", - "oneOf": - [ { "$ref": - "#/components/schemas/block_hash" } ] }, - "level": - { "description": - "Level of the block, corresponds to the level of the tezos block.", - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "description": - "Predecessor hash of the Tezos block.", - "oneOf": - [ { "$ref": - "#/components/schemas/block_hash" } ] }, - "commitment_hash": - { "description": - "Hash of this block's commitment if any was computed for it.", - "nullable": true, - "oneOf": - [ { "title": "Some", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" } ] } ] }, - "previous_commitment_hash": - { "description": - "Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" } ] }, - "context": - { "description": - "Hash of the layer 2 context for this block.", - "oneOf": - [ { "$ref": - "#/components/schemas/Smart_rollup_context_hash" } ] }, - "inbox_witness": - { "description": - "Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" } ] }, - "inbox_hash": - { "description": - "Hash of the inbox for this block.", - "oneOf": - [ { "$ref": - "#/components/schemas/smart_rollup_inbox_hash" } ] }, - "initial_tick": - { "description": - "Initial tick of the PVM at this block, i.e. before evaluation of the messages.", - "oneOf": - [ { "$ref": - "#/components/schemas/positive_bignum" } ] }, - "num_ticks": - { "description": - "Number of ticks produced by the evaluation of the messages in this block.", - "oneOf": - [ { "$ref": - "#/components/schemas/int64" } ] } }, - "required": - [ "block_hash", "level", "predecessor", - "commitment_hash", - "previous_commitment_hash", "context", - "inbox_witness", "inbox_hash", - "initial_tick", "num_ticks" ], - "additionalProperties": {} } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/smart_rollup_address": - { "get": - { "description": "Smart rollup address", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "title": - "A smart rollup address (Base58Check-encoded)", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/tezos_head": - { "get": - { "description": "Tezos head known to the smart rollup node", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", - "oneOf": - [ { "$ref": - "#/components/schemas/block_hash" } ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/tezos_level": - { "get": - { "description": "Tezos level known to the smart rollup node", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/batcher/injection": - { "post": - { "description": "Inject messages in the batcher's queue", - "requestBody": - { "content": - { "application/json": - { "schema": - { "description": "Messages to inject", - "type": "array", - "items": - { "$ref": - "#/components/schemas/sc_l2_message" } } } } }, - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "Ids of injected L2 messages", - "type": "array", - "items": - { "$ref": - "#/components/schemas/sc_rollup_l2_message_id" } } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/batcher/queue": - { "get": - { "description": "List messages present in the batcher's queue", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "array", - "items": - { "type": "object", - "properties": - { "id": - { "$ref": - "#/components/schemas/sc_rollup_l2_message_id" }, - "message": - { "type": "object", - "properties": - { "counter": - { "$ref": - "#/components/schemas/bignum" }, - "content": - { "$ref": - "#/components/schemas/sc_l2_message" } }, - "required": - [ "counter", "content" ] } }, - "required": [ "id", "message" ] } } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/batcher/queue/{l2_message_id}": - { "get": - { "description": "Retrieve an L2 message and its status", - "parameters": - [ { "name": "l2_message_id", "in": "path", - "description": "A L2 message id.", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "oneOf": - [ { "title": "unknown", - "description": - "The message is not known by the batcher.", - "type": "object", - "properties": - { "content": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "status": - { "type": "string", - "enum": [ "unknown" ] } }, - "required": [ "status" ] }, - { "title": "pending_batch", - "description": - "The message is in the batcher queue.", - "type": "object", - "properties": - { "content": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "status": - { "type": "string", - "enum": [ "pending_batch" ] } }, - "required": [ "status" ] }, - { "title": "pending_injection", - "description": - "The message is batched but not injected yet.", - "type": "object", - "properties": - { "content": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "status": - { "type": "string", - "enum": - [ "pending_injection" ] }, - "operation": - { "$ref": - "#/components/schemas/sc_rollup_node_l1_operation" } }, - "required": [ "status", "operation" ] }, - { "title": "injected", - "description": - "The message is injected as part of an L1 operation but it is not included in a block.", - "type": "object", - "properties": - { "content": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "status": - { "type": "string", - "enum": [ "injected" ] }, - "operation": - { "$ref": - "#/components/schemas/sc_rollup_node_l1_operation" }, - "layer1": - { "type": "object", - "properties": - { "operation_hash": - { "$ref": - "#/components/schemas/Operation_hash" }, - "operation_index": - { "type": "integer", - "minimum": - -1073741824, - "maximum": 1073741823 } }, - "required": - [ "operation_hash", - "operation_index" ] } }, - "required": - [ "status", "operation", "layer1" ] }, - { "title": "included", - "description": - "The message is included in an inbox in an L1 block.", - "type": "object", - "properties": - { "content": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "status": - { "type": "string", - "enum": [ "included" ] }, - "operation": - { "$ref": - "#/components/schemas/sc_rollup_node_l1_operation" }, - "layer1": - { "type": "object", - "properties": - { "operation_hash": - { "$ref": - "#/components/schemas/Operation_hash" }, - "operation_index": - { "type": "integer", - "minimum": - -1073741824, - "maximum": 1073741823 }, - "block_hash": - { "$ref": - "#/components/schemas/block_hash" }, - "level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 } }, - "required": - [ "operation_hash", - "operation_index", - "block_hash", "level" ] }, - "finalized": - { "type": "boolean" }, - "cemented": { "type": "boolean" } }, - "required": - [ "status", "operation", "layer1", - "finalized", "cemented" ] }, - { "title": "committed", - "description": - "The message is included in a committed inbox on L1.", - "type": "object", - "properties": - { "content": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "status": - { "type": "string", - "enum": [ "committed" ] }, - "operation": - { "$ref": - "#/components/schemas/sc_rollup_node_l1_operation" }, - "layer1": - { "type": "object", - "properties": - { "operation_hash": - { "$ref": - "#/components/schemas/Operation_hash" }, - "operation_index": - { "type": "integer", - "minimum": - -1073741824, - "maximum": 1073741823 }, - "block_hash": - { "$ref": - "#/components/schemas/block_hash" }, - "level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 } }, - "required": - [ "operation_hash", - "operation_index", - "block_hash", "level" ] }, - "finalized": - { "type": "boolean" }, - "cemented": { "type": "boolean" }, - "commitment": - { "type": "object", - "properties": - { "compressed_state": - { "$ref": - "#/components/schemas/smart_rollup_state_hash" }, - "inbox_level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "number_of_ticks": - { "$ref": - "#/components/schemas/int64" } }, - "required": - [ "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" ] }, - "hash": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "first_published_at_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "published_at_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 } }, - "required": - [ "status", "operation", "layer1", - "finalized", "cemented", - "commitment", "hash", - "first_published_at_level", - "published_at_level" ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/commitments/{commitment_hash}": - { "get": - { "description": "Commitment computed and published by the node", - "parameters": - [ { "name": "commitment_hash", "in": "path", - "description": "A commitment hash.", "required": true, - "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", "type": "object", - "properties": - { "commitment": - { "type": "object", - "properties": - { "compressed_state": - { "$ref": - "#/components/schemas/smart_rollup_state_hash" }, - "inbox_level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "number_of_ticks": - { "$ref": - "#/components/schemas/int64" } }, - "required": - [ "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" ] }, - "hash": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "first_published_at_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "published_at_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 } }, - "required": [ "commitment", "hash" ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/gc_info": - { "get": - { "description": "Information about garbage collection", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "last_gc_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "first_available_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "last_context_split_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 } }, - "required": - [ "last_gc_level", - "first_available_level" ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/last_published_commitment": - { "get": - { "description": "Last commitment published by the node", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "nullable": true, - "oneOf": - [ { "title": "Some", "type": "object", - "properties": - { "commitment": - { "type": "object", - "properties": - { "compressed_state": - { "$ref": - "#/components/schemas/smart_rollup_state_hash" }, - "inbox_level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "number_of_ticks": - { "$ref": - "#/components/schemas/int64" } }, - "required": - [ "compressed_state", - "inbox_level", - "predecessor", - "number_of_ticks" ] }, - "hash": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "first_published_at_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "published_at_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 } }, - "required": [ "commitment", "hash" ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/synchronized": - { "get": - { "description": - "Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.", - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "oneOf": - [ { "title": "synchronized", - "type": "string", - "enum": [ "synchronized" ] }, - { "title": "synchronizing", - "type": "object", - "properties": - { "synchronizing": - { "type": "object", - "properties": - { "processed_level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 }, - "l1_head_level": - { "type": "integer", - "minimum": - -2147483648, - "maximum": 2147483647 }, - "percentage_done": - { "type": "number" } }, - "required": - [ "processed_level", - "l1_head_level", - "percentage_done" ] } }, - "required": [ "synchronizing" ] } ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/openapi": - { "get": - { "description": "OpenAPI specification of RPCs for rollup node", - "parameters": - [ { "name": "protocol", "in": "query", - "description": "Protocol_hash (Base58Check-encoded)", - "required": false, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": { "application/json": { "schema": {} } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } } }, - "components": - { "schemas": - { "018-Proxford.contract_id.originated": - { "title": "A contract handle -- originated account", - "description": - "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "018-Proxford.michelson.v1.primitives": - { "type": "string", - "enum": - [ "SHA512", "HASH_KEY", "SIZE", "SAPLING_VERIFY_UPDATE", - "False", "SAPLING_EMPTY_STATE", "RENAME", - "sapling_transaction", "UNPACK", "NAT", "unit", - "bls12_381_fr", "Pair", "IF_NONE", "int", "timestamp", - "storage", "UNPAIR", "view", "BLAKE2B", "AMOUNT", "DUP", - "nat", "NEG", "bool", "SELF_ADDRESS", "ISNAT", "DIG", - "CHAIN_ID", "set", "LSR", "key", "address", "ABS", - "CREATE_CONTRACT", "SHA256", "JOIN_TICKETS", "LEVEL", - "bls12_381_g1", "operation", "tx_rollup_l2_address", - "string", "CHECK_SIGNATURE", "STEPS_TO_QUOTA", "SELF", - "DIP", "lambda", "AND", "COMPARE", "chain_id", "MAP", - "APPLY", "Elt", "BYTES", "NOT", "IMPLICIT_ACCOUNT", "LT", - "UNIT", "EMIT", "SET_DELEGATE", "Some", "parameter", - "signature", "ticket", "EMPTY_BIG_MAP", "None", "SUB", - "key_hash", "ADD", "map", "VOTING_POWER", "big_map", "CDR", - "GT", "IF_CONS", "CONS", "LSL", "DUG", "PACK", "SHA3", - "SOURCE", "or", "SUB_MUTEZ", "LAMBDA", "RIGHT", - "CREATE_ACCOUNT", "Unit", "CAST", "NEQ", "ITER", - "FAILWITH", "PUSH", "OPEN_CHEST", "SOME", "list", - "BALANCE", "NIL", "pair", "CAR", "UPDATE", - "TOTAL_VOTING_POWER", "PAIR", "constant", "LAMBDA_REC", - "ADDRESS", "True", "Right", "Lambda_rec", "IF", "NEVER", - "sapling_transaction_deprecated", "SWAP", "EMPTY_MAP", - "MUL", "INT", "option", "KECCAK", "LEFT", "Left", "chest", - "SPLIT_TICKET", "chest_key", "bls12_381_g2", "EDIV", - "LOOP", "bytes", "TICKET", "LE", "PAIRING_CHECK", - "MIN_BLOCK_TIME", "OR", "contract", "GET_AND_UPDATE", - "mutez", "sapling_state", "NONE", "IF_LEFT", "GET", "NOW", - "TRANSFER_TOKENS", "LOOP_LEFT", "CONTRACT", - "TICKET_DEPRECATED", "VIEW", "EMPTY_SET", "XOR", "never", - "READ_TICKET", "EQ", "GE", "MEM", "SENDER", "DROP", - "CONCAT", "EXEC", "SLICE", "code" ] }, - "DAL_commitment": - { "title": - "Commitment representation for the DAL (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "Operation_hash": - { "title": "A Tezos operation ID (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "Signature.Public_key_hash": - { "title": - "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "Smart_rollup_context_hash": - { "title": - "A base58-check encoded hash of a Smart rollup node context (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "bignum": - { "title": "Big number", - "description": "Decimal representation of a big number", - "type": "string" }, - "block_hash": - { "title": "A block identifier (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "int64": - { "title": "64 bit integers", - "description": "Decimal representation of 64 bit integers", - "type": "string" }, - "layout": - { "oneOf": - [ { "title": "Zero_width", "type": "object", - "properties": - { "kind": - { "type": "string", "enum": [ "Zero_width" ] } }, - "required": [ "kind" ] }, - { "title": "Int", "type": "object", - "properties": - { "size": - { "type": "string", - "enum": - [ "Int32", "Int16", "Uint16", "Int64", "Int8", - "Uint8" ] }, - "kind": { "type": "string", "enum": [ "Int" ] } }, - "required": [ "size", "kind" ] }, - { "title": "Bool", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "Bool" ] } }, - "required": [ "kind" ] }, - { "title": "RangedInt", "type": "object", - "properties": - { "min": - { "type": "integer", "minimum": -1073741824, - "maximum": 1073741823 }, - "max": - { "type": "integer", "minimum": -1073741824, - "maximum": 1073741823 }, - "kind": { "type": "string", "enum": [ "RangedInt" ] } }, - "required": [ "min", "max", "kind" ] }, - { "title": "RangedFloat", "type": "object", - "properties": - { "min": { "type": "number" }, - "max": { "type": "number" }, - "kind": - { "type": "string", "enum": [ "RangedFloat" ] } }, - "required": [ "min", "max", "kind" ] }, - { "title": "Float", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "Float" ] } }, - "required": [ "kind" ] }, - { "title": "Bytes", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "Bytes" ] } }, - "required": [ "kind" ] }, - { "title": "String", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "String" ] } }, - "required": [ "kind" ] }, - { "title": "Enum", "type": "object", - "properties": - { "size": - { "type": "string", - "enum": [ "Int16", "Uint16", "Int8", "Uint8" ] }, - "reference": - { "$ref": "#/components/schemas/unistring" }, - "kind": { "type": "string", "enum": [ "Enum" ] } }, - "required": [ "size", "reference", "kind" ] }, - { "title": "Seq", "type": "object", - "properties": - { "layout": { "$ref": "#/components/schemas/layout" }, - "kind": { "type": "string", "enum": [ "Seq" ] }, - "length_limit": - { "oneOf": - [ { "title": "No_limit", "type": "object", - "properties": - { "kind": - { "type": "string", - "enum": [ "no-limit" ] } }, - "required": [ "kind" ] }, - { "title": "At_most", "type": "object", - "properties": - { "kind": - { "type": "string", - "enum": [ "at-most" ] }, - "at_most": - { "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 } }, - "required": [ "kind", "at_most" ] }, - { "title": "Exactly", "type": "object", - "properties": - { "kind": - { "type": "string", - "enum": [ "exactly" ] }, - "exactly": - { "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 } }, - "required": [ "kind", "exactly" ] } ] } }, - "required": [ "layout", "kind" ] }, - { "title": "Ref", "type": "object", - "properties": - { "name": { "$ref": "#/components/schemas/unistring" }, - "kind": { "type": "string", "enum": [ "Ref" ] } }, - "required": [ "name", "kind" ] }, - { "title": "Padding", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "Padding" ] } }, - "required": [ "kind" ] } ] }, - "micheline.018-Proxford.michelson_v1.expression": - { "oneOf": - [ { "title": "Int", "type": "object", - "properties": - { "int": { "$ref": "#/components/schemas/bignum" } }, - "required": [ "int" ] }, - { "title": "String", "type": "object", - "properties": - { "string": - { "$ref": "#/components/schemas/unistring" } }, - "required": [ "string" ] }, - { "title": "Bytes", "type": "object", - "properties": - { "bytes": - { "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" } }, - "required": [ "bytes" ] }, - { "title": "Sequence", "type": "array", - "items": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" } }, - { "title": "Prim__generic", - "description": - "Generic primitive (any number of args with or without annotations)", - "type": "object", - "properties": - { "prim": - { "$ref": - "#/components/schemas/018-Proxford.michelson.v1.primitives" }, - "args": - { "type": "array", - "items": - { "$ref": - "#/components/schemas/micheline.018-Proxford.michelson_v1.expression" } }, - "annots": - { "type": "array", - "items": - { "$ref": "#/components/schemas/unistring" } } }, - "required": [ "prim" ] } ] }, - "positive_bignum": - { "title": "Positive big number", - "description": - "Decimal representation of a positive big number", - "type": "string" }, - "sc_l2_message": - { "description": "A hex encoded smart rollup message", - "type": "string", "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "sc_rollup_l2_message_id": - { "title": - "A smart rollup layer 2 message identifier (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "sc_rollup_node_l1_operation": - { "oneOf": - [ { "title": "add_messages", "type": "object", - "properties": - { "kind": - { "type": "string", "enum": [ "add_messages" ] }, - "message": - { "type": "array", - "items": - { "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" } } }, - "required": [ "kind", "message" ] }, - { "title": "cement", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "cement" ] }, - "rollup": - { "$ref": - "#/components/schemas/smart_rollup_address" }, - "commitment": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" } }, - "required": [ "kind", "rollup", "commitment" ] }, - { "title": "publish", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "publish" ] }, - "rollup": - { "$ref": - "#/components/schemas/smart_rollup_address" }, - "commitment": - { "type": "object", - "properties": - { "compressed_state": - { "$ref": - "#/components/schemas/smart_rollup_state_hash" }, - "inbox_level": - { "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 }, - "predecessor": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "number_of_ticks": - { "$ref": "#/components/schemas/int64" } }, - "required": - [ "compressed_state", "inbox_level", - "predecessor", "number_of_ticks" ] } }, - "required": [ "kind", "rollup", "commitment" ] }, - { "title": "refute", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "refute" ] }, - "rollup": - { "$ref": - "#/components/schemas/smart_rollup_address" }, - "opponent": - { "$ref": - "#/components/schemas/Signature.Public_key_hash" }, - "refutation": - { "oneOf": - [ { "title": "Start", "type": "object", - "properties": - { "refutation_kind": - { "type": "string", - "enum": [ "start" ] }, - "player_commitment_hash": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "opponent_commitment_hash": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" } }, - "required": - [ "refutation_kind", - "player_commitment_hash", - "opponent_commitment_hash" ] }, - { "title": "Move", "type": "object", - "properties": - { "refutation_kind": - { "type": "string", - "enum": [ "move" ] }, - "choice": - { "$ref": - "#/components/schemas/positive_bignum" }, - "step": - { "oneOf": - [ { "title": "Dissection", - "type": "array", - "items": - { "type": "object", - "properties": - { "state": - { "$ref": - "#/components/schemas/smart_rollup_state_hash" }, - "tick": - { "$ref": - "#/components/schemas/positive_bignum" } }, - "required": [ "tick" ] } }, - { "title": "Proof", - "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } ] } }, - "required": - [ "refutation_kind", "choice", "step" ] } ] } }, - "required": - [ "kind", "rollup", "opponent", "refutation" ] }, - { "title": "timeout", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "timeout" ] }, - "rollup": - { "$ref": - "#/components/schemas/smart_rollup_address" }, - "stakers": - { "type": "object", - "properties": - { "alice": - { "$ref": - "#/components/schemas/Signature.Public_key_hash" }, - "bob": - { "$ref": - "#/components/schemas/Signature.Public_key_hash" } }, - "required": [ "alice", "bob" ] } }, - "required": [ "kind", "rollup", "stakers" ] }, - { "title": "recover", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "recover" ] }, - "rollup": - { "$ref": - "#/components/schemas/smart_rollup_address" }, - "staker": - { "$ref": - "#/components/schemas/Signature.Public_key_hash" } }, - "required": [ "kind", "rollup", "staker" ] }, - { "title": "execute_outbox_message", "type": "object", - "properties": - { "kind": - { "type": "string", - "enum": [ "execute_outbox_message" ] }, - "rollup": - { "$ref": - "#/components/schemas/smart_rollup_address" }, - "cemented_commitment": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "proof": - { "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" } }, - "required": - [ "kind", "rollup", "cemented_commitment", "proof" ] } ] }, - "schema.field": - { "oneOf": - [ { "title": "Named_field", "type": "object", - "properties": - { "name": { "$ref": "#/components/schemas/unistring" }, - "layout": { "$ref": "#/components/schemas/layout" }, - "data_kind": - { "$ref": "#/components/schemas/schema.kind" }, - "kind": { "type": "string", "enum": [ "named" ] } }, - "required": [ "name", "layout", "data_kind", "kind" ] }, - { "title": "Anonymous_field", "type": "object", - "properties": - { "layout": { "$ref": "#/components/schemas/layout" }, - "kind": { "type": "string", "enum": [ "anon" ] }, - "data_kind": - { "$ref": "#/components/schemas/schema.kind" } }, - "required": [ "layout", "kind", "data_kind" ] }, - { "title": "Dynamic_field", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "dyn" ] }, - "name": { "$ref": "#/components/schemas/unistring" }, - "num_fields": - { "type": "integer", "minimum": -1073741824, - "maximum": 1073741823 }, - "size": - { "type": "string", - "enum": [ "N", "Uint30", "Uint16", "Uint8" ] } }, - "required": [ "kind", "num_fields", "size" ] }, - { "title": "Optional_field", "type": "object", - "properties": - { "kind": - { "type": "string", - "enum": [ "option_indicator" ] }, - "name": { "$ref": "#/components/schemas/unistring" } }, - "required": [ "kind", "name" ] } ] }, - "schema.kind": - { "oneOf": - [ { "title": "Fixed", "type": "object", - "properties": - { "size": - { "type": "integer", "minimum": -1073741824, - "maximum": 1073741823 }, - "kind": { "type": "string", "enum": [ "Fixed" ] } }, - "required": [ "size", "kind" ] }, - { "title": "Dynamic", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "Dynamic" ] } }, - "required": [ "kind" ] }, - { "title": "Variable", "type": "object", - "properties": - { "kind": { "type": "string", "enum": [ "Variable" ] } }, - "required": [ "kind" ] } ] }, - "service_tree": - { "oneOf": - [ { "title": "Static", "type": "object", - "properties": - { "static": - { "type": "object", - "properties": - { "get_service": - { "type": "object", - "properties": - { "meth": - { "type": "string", - "enum": - [ "PATCH", "GET", "POST", - "PUT", "DELETE" ] }, - "path": - { "type": "array", - "items": - { "oneOf": - [ { "title": "PStatic", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] }, - { "title": "PDynamic", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] }, - { "title": "PDynamicTail", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "multiple" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] } ] } }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "query": - { "type": "array", - "items": - { "type": "object", - "properties": - { "name": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "kind": - { "oneOf": - [ { "title": - "Single", - "type": - "object", - "properties": - { "single": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "single" ] }, - { "title": - "Optional", - "type": - "object", - "properties": - { "optional": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "optional" ] }, - { "title": "Flag", - "type": - "object", - "properties": - { "flag": - { "type": - "object", - "properties": - {} } }, - "required": - [ "flag" ] }, - { "title": - "Multi", - "type": - "object", - "properties": - { "multi": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "multi" ] } ] } }, - "required": - [ "name", "kind" ] } }, - "input": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "output": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "error": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] } }, - "required": - [ "meth", "path", "query", "output", - "error" ] }, - "post_service": - { "type": "object", - "properties": - { "meth": - { "type": "string", - "enum": - [ "PATCH", "GET", "POST", - "PUT", "DELETE" ] }, - "path": - { "type": "array", - "items": - { "oneOf": - [ { "title": "PStatic", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] }, - { "title": "PDynamic", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] }, - { "title": "PDynamicTail", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "multiple" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] } ] } }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "query": - { "type": "array", - "items": - { "type": "object", - "properties": - { "name": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "kind": - { "oneOf": - [ { "title": - "Single", - "type": - "object", - "properties": - { "single": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "single" ] }, - { "title": - "Optional", - "type": - "object", - "properties": - { "optional": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "optional" ] }, - { "title": "Flag", - "type": - "object", - "properties": - { "flag": - { "type": - "object", - "properties": - {} } }, - "required": - [ "flag" ] }, - { "title": - "Multi", - "type": - "object", - "properties": - { "multi": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "multi" ] } ] } }, - "required": - [ "name", "kind" ] } }, - "input": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "output": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "error": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] } }, - "required": - [ "meth", "path", "query", "output", - "error" ] }, - "delete_service": - { "type": "object", - "properties": - { "meth": - { "type": "string", - "enum": - [ "PATCH", "GET", "POST", - "PUT", "DELETE" ] }, - "path": - { "type": "array", - "items": - { "oneOf": - [ { "title": "PStatic", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] }, - { "title": "PDynamic", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] }, - { "title": "PDynamicTail", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "multiple" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] } ] } }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "query": - { "type": "array", - "items": - { "type": "object", - "properties": - { "name": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "kind": - { "oneOf": - [ { "title": - "Single", - "type": - "object", - "properties": - { "single": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "single" ] }, - { "title": - "Optional", - "type": - "object", - "properties": - { "optional": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "optional" ] }, - { "title": "Flag", - "type": - "object", - "properties": - { "flag": - { "type": - "object", - "properties": - {} } }, - "required": - [ "flag" ] }, - { "title": - "Multi", - "type": - "object", - "properties": - { "multi": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "multi" ] } ] } }, - "required": - [ "name", "kind" ] } }, - "input": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "output": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "error": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] } }, - "required": - [ "meth", "path", "query", "output", - "error" ] }, - "put_service": - { "type": "object", - "properties": - { "meth": - { "type": "string", - "enum": - [ "PATCH", "GET", "POST", - "PUT", "DELETE" ] }, - "path": - { "type": "array", - "items": - { "oneOf": - [ { "title": "PStatic", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] }, - { "title": "PDynamic", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] }, - { "title": "PDynamicTail", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "multiple" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] } ] } }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "query": - { "type": "array", - "items": - { "type": "object", - "properties": - { "name": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "kind": - { "oneOf": - [ { "title": - "Single", - "type": - "object", - "properties": - { "single": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "single" ] }, - { "title": - "Optional", - "type": - "object", - "properties": - { "optional": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "optional" ] }, - { "title": "Flag", - "type": - "object", - "properties": - { "flag": - { "type": - "object", - "properties": - {} } }, - "required": - [ "flag" ] }, - { "title": - "Multi", - "type": - "object", - "properties": - { "multi": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "multi" ] } ] } }, - "required": - [ "name", "kind" ] } }, - "input": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "output": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "error": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] } }, - "required": - [ "meth", "path", "query", "output", - "error" ] }, - "patch_service": - { "type": "object", - "properties": - { "meth": - { "type": "string", - "enum": - [ "PATCH", "GET", "POST", - "PUT", "DELETE" ] }, - "path": - { "type": "array", - "items": - { "oneOf": - [ { "title": "PStatic", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] }, - { "title": "PDynamic", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] }, - { "title": "PDynamicTail", - "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "multiple" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] } ] } }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "query": - { "type": "array", - "items": - { "type": "object", - "properties": - { "name": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" }, - "kind": - { "oneOf": - [ { "title": - "Single", - "type": - "object", - "properties": - { "single": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "single" ] }, - { "title": - "Optional", - "type": - "object", - "properties": - { "optional": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "optional" ] }, - { "title": "Flag", - "type": - "object", - "properties": - { "flag": - { "type": - "object", - "properties": - {} } }, - "required": - [ "flag" ] }, - { "title": - "Multi", - "type": - "object", - "properties": - { "multi": - { "type": - "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", - "name" ] } }, - "required": - [ "multi" ] } ] } }, - "required": - [ "name", "kind" ] } }, - "input": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "output": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] }, - "error": - { "type": "object", - "properties": - { "json_schema": {}, - "binary_schema": - { "type": "object", - "properties": - { "toplevel": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] }, - "fields": - { "type": "array", - "items": - { "type": - "object", - "properties": - { "description": - { "type": - "object", - "properties": - { "title": - { "$ref": - "#/components/schemas/unistring" }, - "description": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "title" ] }, - "encoding": - { "oneOf": - [ { "title": - "Obj", - "type": - "object", - "properties": - { "fields": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/schema.field" } } }, - "required": - [ "fields" ] }, - { "title": - "Cases", - "type": - "object", - "properties": - { "tag_size": - { "type": - "string", - "enum": - [ "Uint16", - "Uint8" ] }, - "kind": - { "$ref": - "#/components/schemas/schema.kind" }, - "cases": - { "type": - "array", - "items": - { "$ref": - "#/components/schemas/union case" } } }, - "required": - [ "tag_size", - "kind", - "cases" ] }, - { "title": - "Int_enum", - "type": - "object", - "properties": - { "size": - { "type": - "string", - "enum": - [ "Int16", - "Uint16", - "Int8", - "Uint8" ] }, - "cases": - { "type": - "array", - "items": - { "type": - "array", - "items": - { "oneOf": - [ { "type": - "integer", - "minimum": - -1073741824, - "maximum": - 1073741823 }, - { "$ref": - "#/components/schemas/unistring" } ] } } } }, - "required": - [ "size", - "cases" ] } ] } }, - "required": - [ "description", - "encoding" ] } } }, - "required": - [ "toplevel", - "fields" ] } }, - "required": - [ "json_schema", - "binary_schema" ] } }, - "required": - [ "meth", "path", "query", "output", - "error" ] }, - "subdirs": - { "oneOf": - [ { "title": "Suffixes", - "type": "object", - "properties": - { "suffixes": - { "type": "array", - "items": - { "type": "object", - "properties": - { "name": - { "$ref": - "#/components/schemas/unistring" }, - "tree": - { "$ref": - "#/components/schemas/service_tree" } }, - "required": - [ "name", "tree" ] } } }, - "required": [ "suffixes" ] }, - { "title": "Arg", "type": "object", - "properties": - { "dynamic_dispatch": - { "type": "object", - "properties": - { "arg": - { "type": "object", - "properties": - { "id": - { "type": - "string", - "enum": - [ "single" ] }, - "name": - { "$ref": - "#/components/schemas/unistring" }, - "descr": - { "$ref": - "#/components/schemas/unistring" } }, - "required": - [ "id", "name" ] }, - "tree": - { "$ref": - "#/components/schemas/service_tree" } }, - "required": - [ "arg", "tree" ] } }, - "required": [ "dynamic_dispatch" ] } ] } } } }, - "required": [ "static" ] }, - { "title": "Dynamic", "type": "object", - "properties": - { "dynamic": - { "nullable": true, - "oneOf": - [ { "title": "Some", - "oneOf": - [ { "$ref": - "#/components/schemas/unistring" } ] } ] } }, - "required": [ "dynamic" ] }, - { "title": "Empty", "type": "string", "enum": [ "empty" ] } ] }, - "smart_rollup_address": - { "title": "A smart rollup address (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "smart_rollup_commitment_hash": - { "title": - "The hash of a commitment of a smart rollup (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "smart_rollup_inbox_hash": - { "title": - "The hash of an inbox of a smart rollup (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "smart_rollup_merkelized_payload_hashes_hash": - { "title": - "The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "smart_rollup_state_hash": - { "title": - "The hash of the VM state of a smart rollup (Base58Check-encoded)", - "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, - "union case": - { "type": "object", - "properties": - { "tag": - { "type": "integer", "minimum": -1073741824, - "maximum": 1073741823 }, - "fields": - { "type": "array", - "items": - { "$ref": "#/components/schemas/schema.field" } }, - "name": { "$ref": "#/components/schemas/unistring" } }, - "required": [ "tag", "fields" ] }, - "unistring": - { "title": "Universal string representation", - "description": - "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", - "oneOf": - [ { "type": "string" }, - { "type": "object", - "properties": - { "invalid_utf8_string": - { "type": "array", - "items": - { "type": "integer", "minimum": 0, - "maximum": 255 } } }, - "required": [ "invalid_utf8_string" ] } ] } } } } diff --git a/docs/api/oxford-smart-rollup-node-openapi.json b/docs/api/oxford-smart-rollup-node-openapi.json index 02ba11c17693..b88be852aafb 100644 --- a/docs/api/oxford-smart-rollup-node-openapi.json +++ b/docs/api/oxford-smart-rollup-node-openapi.json @@ -3,7 +3,7 @@ { "title": "Smart Rollup Node RPCs", "description": "Smart Rollup Node RPC API for protocol ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH", - "version": "19.2 (54a1580334)" }, + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/describe": { "get": @@ -370,43 +370,6 @@ { "schema": { "description": "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/global/block/{block_id}/helpers/proofs/outbox": - { "get": - { "description": - "Generate serialized output proof for some outbox message", - "parameters": - [ { "name": "block_id", "in": "path", - "description": "An L1 block identifier.", - "required": true, "schema": { "type": "string" } }, - { "name": "outbox_level", "in": "query", "required": false, - "schema": { "type": "string" } }, - { "name": "message_index", "in": "query", - "required": false, "schema": { "type": "string" } }, - { "name": "serialized_outbox_message", "in": "query", - "required": false, "schema": { "type": "string" } } ], - "responses": - { "200": - { "description": "", - "content": - { "application/json": - { "schema": - { "type": "object", - "properties": - { "commitment": - { "$ref": - "#/components/schemas/smart_rollup_commitment_hash" }, - "proof": - { "type": "string", - "pattern": - "^([a-zA-Z0-9][a-zA-Z0-9])*$" } }, - "required": [ "commitment", "proof" ] } } } }, - "default": - { "description": "", - "content": - { "application/json": - { "schema": - { "description": - "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, "/global/block/{block_id}/helpers/proofs/outbox/{level}/messages": { "get": { "description": @@ -1373,11 +1336,11 @@ { "application/json": { "schema": { "description": - "Hashes of injected L2 messages", + "Ids of injected L2 messages", "type": "array", "items": { "$ref": - "#/components/schemas/sc_rollup_l2_message" } } } } }, + "#/components/schemas/sc_rollup_l2_message_id" } } } } }, "default": { "description": "", "content": @@ -1398,9 +1361,9 @@ "items": { "type": "object", "properties": - { "hash": + { "id": { "$ref": - "#/components/schemas/sc_rollup_l2_message" }, + "#/components/schemas/sc_rollup_l2_message_id" }, "message": { "type": "object", "properties": @@ -1412,7 +1375,7 @@ "#/components/schemas/sc_l2_message" } }, "required": [ "counter", "content" ] } }, - "required": [ "hash", "message" ] } } } } }, + "required": [ "id", "message" ] } } } } }, "default": { "description": "", "content": @@ -1420,12 +1383,12 @@ { "schema": { "description": "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, - "/local/batcher/queue/{l2_message_hash}": + "/local/batcher/queue/{l2_message_id}": { "get": { "description": "Retrieve an L2 message and its status", "parameters": - [ { "name": "l2_message_hash", "in": "path", - "description": "A L2 message hash.", "required": true, + [ { "name": "l2_message_id", "in": "path", + "description": "A L2 message id.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": @@ -1713,6 +1676,10 @@ "minimum": -2147483648, "maximum": 2147483647 }, "first_available_level": + { "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 }, + "last_context_split_level": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647 } }, @@ -1780,6 +1747,50 @@ { "schema": { "description": "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, + "/local/synchronized": + { "get": + { "description": + "Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.", + "responses": + { "200": + { "description": "", + "content": + { "application/json": + { "schema": + { "oneOf": + [ { "title": "synchronized", + "type": "string", + "enum": [ "synchronized" ] }, + { "title": "synchronizing", + "type": "object", + "properties": + { "synchronizing": + { "type": "object", + "properties": + { "processed_level": + { "type": "integer", + "minimum": + -2147483648, + "maximum": 2147483647 }, + "l1_head_level": + { "type": "integer", + "minimum": + -2147483648, + "maximum": 2147483647 }, + "percentage_done": + { "type": "number" } }, + "required": + [ "processed_level", + "l1_head_level", + "percentage_done" ] } }, + "required": [ "synchronizing" ] } ] } } } }, + "default": + { "description": "", + "content": + { "application/json": + { "schema": + { "description": + "The full list of errors is available with the global RPC `GET errors`" } } } } } } }, "/openapi": { "get": { "description": "OpenAPI specification of RPCs for rollup node", @@ -2013,8 +2024,9 @@ "sc_l2_message": { "description": "A hex encoded smart rollup message", "type": "string", "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" }, - "sc_rollup_l2_message": - { "title": "A smart rollup layer 2 message (Base58Check-encoded)", + "sc_rollup_l2_message_id": + { "title": + "A smart rollup layer 2 message identifier (Base58Check-encoded)", "oneOf": [ { "$ref": "#/components/schemas/unistring" } ] }, "sc_rollup_node_l1_operation": { "oneOf": -- GitLab From 9007f5afcb74546d7165853ad626cd9d57b7b9cd Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 28 May 2024 13:30:09 +0200 Subject: [PATCH 7/9] Docs, Api: Update [rpc-openapi] --- docs/api/openapi.rst | 4 +- docs/api/rpc-openapi-rc.json | 10592 --------------------------------- docs/api/rpc-openapi.json | 515 +- 3 files changed, 101 insertions(+), 11010 deletions(-) delete mode 100644 docs/api/rpc-openapi-rc.json diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index c8625a435fda..1aa7cceaa645 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -51,9 +51,7 @@ Shell RPCs The node provides some RPCs which are independent of the protocol. Their OpenAPI specification can be found at: -- `rpc-openapi.json (version 19.2) `_ - -- `rpc-openapi.json (version 20.0~rc1) `_ +- `rpc-openapi.json (version 20.0) `_ .. TODO tezos/tezos#2170: add/remove section(s) diff --git a/docs/api/rpc-openapi-rc.json b/docs/api/rpc-openapi-rc.json deleted file mode 100644 index d649ad36ca69..000000000000 --- a/docs/api/rpc-openapi-rc.json +++ /dev/null @@ -1,10592 +0,0 @@ -{ - "openapi": "3.0.0", - "info": { - "title": "Octez RPC", - "description": "The RPC API served by the Octez node.", - "version": "Octez 20.0~rc1 (e38cf666)" - }, - "paths": { - "/chains/{chain_id}": { - "patch": { - "description": "Forcefully set the bootstrapped flag of the node", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "bootstrapped": { - "type": "boolean" - } - }, - "required": [ - "bootstrapped" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": {} - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/blocks": { - "get": { - "description": "Lists block hashes from '', up to the last checkpoint, sorted with decreasing fitness. Without arguments it returns the head of the chain. Optional arguments allow to return the list of predecessors of a given block or of a set of blocks.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "length", - "in": "query", - "description": "The requested number of predecessors to return (per request; see next argument).", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "head", - "in": "query", - "description": "block_hash (Base58Check-encoded) An empty argument requests blocks starting with the current head. A non empty list allows to request one or more specific fragments of the chain.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "min_date", - "in": "query", - "description": "A date in seconds from epoch When `min_date` is provided, blocks with a timestamp before `min_date` are filtered out. However, if the `length` parameter is also provided, then up to that number of predecessors will be returned regardless of their date.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/block_hash" - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/chain_id": { - "get": { - "description": "The chain unique identifier.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Network identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/checkpoint": { - "get": { - "description": "DEPRECATED: use `../levels/{checkpoint, savepoint, caboose, history_mode}` instead. The current checkpoint for this chain.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/block_header" - }, - "savepoint": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "caboose": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "history_mode": { - "$ref": "#/components/schemas/history_mode" - } - }, - "required": [ - "block", - "savepoint", - "caboose", - "history_mode" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/invalid_blocks": { - "get": { - "description": "Lists blocks that have been declared invalid along with the errors that led to them being declared invalid.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "block", - "level", - "errors" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/invalid_blocks/{block_hash}": { - "get": { - "description": "The errors that appears during the block (in)validation.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "block_hash", - "in": "path", - "description": "block_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "block", - "level", - "errors" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - }, - "delete": { - "description": "Remove an invalid block for the tezos storage", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "block_hash", - "in": "path", - "description": "block_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/is_bootstrapped": { - "get": { - "description": "The bootstrap status of a chain", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "bootstrapped": { - "type": "boolean" - }, - "sync_state": { - "$ref": "#/components/schemas/chain_status" - } - }, - "required": [ - "bootstrapped", - "sync_state" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/levels/caboose": { - "get": { - "description": "The current caboose for this chain.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "block_hash": { - "$ref": "#/components/schemas/block_hash" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "block_hash", - "level" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/levels/checkpoint": { - "get": { - "description": "The current checkpoint for this chain.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "block_hash": { - "$ref": "#/components/schemas/block_hash" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "block_hash", - "level" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/chains/{chain_id}/levels/savepoint": { - "get": { - "description": "The current savepoint for this chain.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "block_hash": { - "$ref": "#/components/schemas/block_hash" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "block_hash", - "level" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/config": { - "get": { - "description": "Return the runtime node configuration (this takes into account the command-line arguments and the on-disk configuration file)", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data-dir": { - "description": "Location of the data dir on disk.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "disable-config-validation": { - "description": "Disable the node configuration validation.", - "type": "boolean" - }, - "rpc": { - "description": "Configuration of rpc parameters", - "type": "object", - "properties": { - "listen-addrs": { - "description": "Hosts to listen to. If the port is not specified, the default port 8732 will be assumed.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - }, - "external-listen-addrs": { - "description": "Hosts to listen to. If the port is not specified, the default port 8732 will be assumed.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - }, - "listen-addr": { - "description": "Legacy value: Host to listen to", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "cors-origin": { - "description": "Cross Origin Resource Sharing parameters, see https://en.wikipedia.org/wiki/Cross-origin_resource_sharing.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - }, - "cors-headers": { - "description": "Cross Origin Resource Sharing parameters, see https://en.wikipedia.org/wiki/Cross-origin_resource_sharing.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - }, - "crt": { - "description": "Certificate file (necessary when TLS is used).", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "key": { - "description": "Key file (necessary when TLS is used).", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "acl": { - "description": "A list of RPC ACLs for specific listening addresses.", - "type": "array", - "items": { - "oneOf": [ - { - "title": "Whitelist", - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/unistring" - }, - "whitelist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - }, - "required": [ - "address", - "whitelist" - ] - }, - { - "title": "Blacklist", - "type": "object", - "properties": { - "address": { - "$ref": "#/components/schemas/unistring" - }, - "blacklist": { - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - }, - "required": [ - "address", - "blacklist" - ] - } - ] - } - }, - "media-type": { - "description": "The media types supported by the server.", - "type": "string", - "enum": [ - "json", - "any", - "binary" - ] - }, - "max_active_rpc_connections": { - "description": "The maximum number of active connections per RPC endpoint.", - "oneOf": [ - { - "$ref": "#/components/schemas/max_active_rpc_connections" - } - ] - } - } - }, - "p2p": { - "description": "Configuration of network parameters", - "type": "object", - "properties": { - "expected-proof-of-work": { - "description": "Floating point number between 0 and 256 that represents a difficulty, 24 signifies for example that at least 24 leading zeroes are expected in the hash.", - "type": "number" - }, - "bootstrap-peers": { - "description": "List of hosts. Tezos can connect to both IPv6 and IPv4 hosts. If the port is not specified, default port 9732 will be assumed.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - }, - "listen-addr": { - "description": "Host to listen to. If the port is not specified, the default port 9732 will be assumed.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "advertised-net-port": { - "description": "Alternative port advertised to other peers to connect to. If the port is not specified, the port from listen-addr will be assumed.", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "discovery-addr": { - "description": "Host for local peer discovery. If the port is not specified, the default port 10732 will be assumed.", - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - ] - }, - "private-mode": { - "description": "Specify if the node is in private mode or not. A node in private mode rejects incoming connections from untrusted peers and only opens outgoing connections to peers listed in 'bootstrap-peers' or provided with '--peer' option. Moreover, these peers will keep the identity and the address of the private node secret.", - "type": "boolean" - }, - "limits": { - "description": "Network limits", - "type": "object", - "properties": { - "connection-timeout": { - "description": "Delay acceptable when initiating a connection to a new peer, in seconds.", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - }, - "authentication-timeout": { - "description": "Delay granted to a peer to perform authentication, in seconds.", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - }, - "min-connections": { - "description": "Strict minimum number of connections (triggers an urgent maintenance).", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "expected-connections": { - "description": "Targeted number of connections to reach when bootstrapping / maintaining.", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "max-connections": { - "description": "Maximum number of connections (exceeding peers are disconnected).", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "backlog": { - "description": "Number above which pending incoming connections are immediately rejected.", - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "max-incoming-connections": { - "description": "Number above which pending incoming connections are immediately rejected.", - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "max-download-speed": { - "description": "Max download speeds in KiB/s.", - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max-upload-speed": { - "description": "Max upload speeds in KiB/s.", - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "swap-linger": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - } - ] - }, - "binary-chunks-size": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "read-buffer-size": { - "description": "Size of the buffer passed to read(2).", - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "read-queue-size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "write-queue-size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "incoming-app-message-queue-size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "incoming-message-queue-size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "outgoing-message-queue-size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "max_known_points": { - "description": "The max and target size for the known address table.", - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - ] - } - }, - "max_known_peer_ids": { - "description": "The max and target size for the known peers table.", - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - ] - } - }, - "peer_greylist_size": { - "description": "The number of peer_ids kept in the peer_id greylist.", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "ip_greylist_size_in_kilobytes": { - "description": "The size of the IP address greylist (in kilobytes).", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "ip_greylist_cleanup_delay": { - "description": "The time an IP address is kept in the greylist.", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - }, - "greylist-timeout": { - "description": "GC delay for the greylists tables, in seconds.", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - }, - "maintenance-idle-time": { - "description": "How long to wait at most, in seconds, before running a maintenance loop. If null -- decoding to None -- is provided then the maintenance is disabled.", - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - } - ] - } - } - }, - "disable_mempool": { - "description": "If set to [true], the node will not participate in the propagation of pending operations (mempool). Default value is [false]. It can be used to decrease the memory and computation footprints of the node.", - "type": "boolean" - }, - "enable_testchain": { - "description": "DEPRECATED. If set to [true], the node will spawn a testchain during the protocol's testing voting period. Default value is [false]. It is disabled to decrease the node storage usage and computation by dropping the validation of the test network blocks.", - "type": "boolean" - }, - "greylisting_config": { - "description": "The reconnection policy regulates the frequency with which the node tries to reconnect to an old known peer.", - "type": "object", - "properties": { - "factor": { - "description": "The factor by which the reconnection delay is increased when a peer that was previously disconnected is disconnected again. This value should be set to 1 for a linear back-off and to >1 for an exponential back-off.", - "type": "number" - }, - "initial-delay": { - "description": "The span of time a peer is disconnected for when it is first disconnected.", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - }, - "disconnection-delay": { - "description": "The span of time a peer is disconnected for when it is disconnected as the result of an error.", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - }, - "increase-cap": { - "description": "The maximum amount by which the reconnection is extended. This limits the rate of the exponential back-off, which eventually becomes linear when it reaches this limit. This limit is set to avoid reaching the End-of-Time when repeatedly reconnection a peer.", - "oneOf": [ - { - "$ref": "#/components/schemas/timespan.system" - } - ] - } - } - }, - "disable_peer_discovery": { - "description": "This field should be used for testing purpose only. If set to [true], the node will not participate to the peer discovery mechanism. The node will not be able to find new peers to connect with.", - "type": "boolean" - } - } - }, - "log": { - "description": "Configuration of the Lwt-log sink (part of the logging framework)", - "type": "object", - "properties": { - "output": { - "description": "Output for the logging function. Either 'stdout', 'stderr' or the name of a log file .", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "level": { - "description": "Verbosity level: one of 'fatal', 'error', 'warn','notice', 'info', 'debug'.", - "type": "string", - "enum": [ - "info", - "debug", - "error", - "fatal", - "warning", - "notice" - ] - }, - "colors": { - "description": "Enables light coloring in logs.", - "type": "boolean" - }, - "rules": { - "description": "Fine-grained logging instructions. Same format as described in `octez-node run --help`, DEBUG section. In the example below, sections 'p2p' and all sections starting by 'client' will have their messages logged up to the debug level, whereas the rest of log sections will be logged up to the notice level.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - }, - "internal-events": { - "description": "Configuration of the structured logging framework", - "oneOf": [ - { - "title": "Active-Sinks", - "description": "List of sinks to make sure are activated.", - "type": "object", - "properties": { - "active_sinks": { - "description": "List of URIs to activate/configure sinks.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - } - }, - { - "title": "Active-Sinks-Deprecated", - "description": "List of sinks to make sure are activated, deprecated backwards-compatibility encoding.", - "type": "object", - "properties": { - "activate": { - "description": "List of URIs to activate/configure sinks.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - } - } - ] - }, - "shell": { - "description": "Configuration of network parameters", - "type": "object", - "properties": { - "peer_validator": { - "type": "object", - "properties": { - "block_header_request_timeout": { - "$ref": "#/components/schemas/timespan.system" - }, - "block_operations_request_timeout": { - "$ref": "#/components/schemas/timespan.system" - }, - "protocol_request_timeout": { - "$ref": "#/components/schemas/timespan.system" - }, - "new_head_request_timeout": { - "$ref": "#/components/schemas/timespan.system" - } - } - }, - "block_validator": { - "type": "object", - "properties": { - "protocol_request_timeout": { - "$ref": "#/components/schemas/timespan.system" - }, - "operation_metadata_size_limit": { - "$ref": "#/components/schemas/operation_metadata_size_limit" - } - } - }, - "prevalidator": { - "type": "object", - "properties": { - "operations_request_timeout": { - "$ref": "#/components/schemas/timespan.system" - }, - "max_refused_operations": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "operations_batch_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - } - }, - "chain_validator": { - "oneOf": [ - { - "title": "synchronisation_heuristic_encoding", - "type": "object", - "properties": { - "latency": { - "description": "[latency] is the time interval (in seconds) used to determine if a peer is synchronized with a chain. For instance, a peer whose known head has a timestamp T is considered synchronized if T >= now - latency. This parameter depends on the baking rate and the latency of the network.", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "synchronisation_threshold": { - "description": "The minimal number of peers this peer should be synchronized with in order to be bootstrapped.", - "type": "integer", - "minimum": 0, - "maximum": 255 - } - } - }, - { - "title": "legacy_bootstrap_threshold_encoding", - "type": "object", - "properties": { - "bootstrap_threshold": { - "description": "[DEPRECATED] Set the number of peers with whom a chain synchronisation must be completed to bootstrap the node.", - "type": "integer", - "minimum": 0, - "maximum": 255 - } - } - } - ] - }, - "history_mode": { - "$ref": "#/components/schemas/history_mode" - } - } - }, - "network": { - "description": "Configuration of which network/blockchain to connect to", - "oneOf": [ - { - "title": "sandbox", - "type": "string", - "enum": [ - "sandbox" - ] - }, - { - "title": "mainnet", - "type": "string", - "enum": [ - "mainnet" - ] - }, - { - "title": "ghostnet", - "type": "string", - "enum": [ - "ghostnet" - ] - }, - { - "title": "Custom", - "type": "object", - "properties": { - "genesis": { - "type": "object", - "properties": { - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "protocol": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "required": [ - "timestamp", - "block", - "protocol" - ] - }, - "genesis_parameters": { - "type": "object", - "properties": { - "context_key": { - "$ref": "#/components/schemas/unistring" - }, - "values": {} - }, - "required": [ - "values" - ] - }, - "chain_name": { - "$ref": "#/components/schemas/distributed_db_version.name" - }, - "old_chain_name": { - "$ref": "#/components/schemas/distributed_db_version.name" - }, - "incompatible_chain_name": { - "$ref": "#/components/schemas/distributed_db_version.name" - }, - "sandboxed_chain_name": { - "$ref": "#/components/schemas/distributed_db_version.name" - }, - "user_activated_upgrades": { - "$ref": "#/components/schemas/user_activated.upgrades" - }, - "user_activated_protocol_overrides": { - "$ref": "#/components/schemas/user_activated.protocol_overrides" - }, - "default_bootstrap_peers": { - "description": "List of hosts to use if p2p.bootstrap_peers is unspecified.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - }, - "dal_config": { - "description": "USE FOR TESTING PURPOSE ONLY. Configuration for the data-availibility layer", - "type": "object", - "properties": { - "activated": { - "type": "boolean" - }, - "use_mock_srs_for_testing": { - "type": "boolean" - }, - "bootstrap_peers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - }, - "required": [ - "activated", - "use_mock_srs_for_testing", - "bootstrap_peers" - ] - } - }, - "required": [ - "genesis", - "chain_name", - "sandboxed_chain_name" - ] - } - ] - }, - "metrics_addr": { - "description": "Configuration of the Prometheus metrics endpoint", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/config/history_mode": { - "get": { - "description": "Returns the history mode of the node's underlying storage.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "history_mode": { - "$ref": "#/components/schemas/history_mode" - } - }, - "required": [ - "history_mode" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/config/logging": { - "put": { - "description": "Replace the logging configuration of the node.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "Active-Sinks", - "description": "List of sinks to make sure are activated.", - "type": "object", - "properties": { - "active_sinks": { - "description": "List of URIs to activate/configure sinks.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - } - }, - { - "title": "Active-Sinks-Deprecated", - "description": "List of sinks to make sure are activated, deprecated backwards-compatibility encoding.", - "type": "object", - "properties": { - "activate": { - "description": "List of URIs to activate/configure sinks.", - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - } - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/config/network/dal": { - "get": { - "description": "Configuration for the DAL", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "activated": { - "type": "boolean" - }, - "use_mock_srs_for_testing": { - "type": "boolean" - }, - "bootstrap_peers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/unistring" - } - } - }, - "required": [ - "activated", - "use_mock_srs_for_testing", - "bootstrap_peers" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/config/network/user_activated_protocol_overrides": { - "get": { - "description": "List of protocols which replace other protocols", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "User activated protocol overrides", - "description": "User activated protocol overrides: activate a protocol instead of another.", - "type": "array", - "items": { - "type": "object", - "properties": { - "replaced_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "replacement_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "required": [ - "replaced_protocol", - "replacement_protocol" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/config/network/user_activated_upgrades": { - "get": { - "description": "List of protocols to switch to at given levels", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "User activated upgrades", - "description": "User activated upgrades: at given level, switch to given protocol.", - "type": "array", - "items": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "replacement_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "required": [ - "level", - "replacement_protocol" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/errors": { - "get": { - "description": "Schema for all the RPC errors from the shell", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": {} - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/fetch_protocol/{Protocol_hash}": { - "get": { - "description": "Fetch a protocol from the network.", - "parameters": [ - { - "name": "Protocol_hash", - "in": "path", - "description": "Protocol_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": {} - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/health/ready": { - "get": { - "description": "Returns whether or not the node is ready to answer to requests.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "ready": { - "type": "boolean" - } - }, - "required": [ - "ready" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/injection/block": { - "post": { - "description": "Inject a block in the node and broadcast it. The `operations` embedded in `blockHeader` might be pre-validated using a contextual RPCs from the latest block (e.g. '/blocks/head/context/preapply'). Returns the ID of the block. By default, the RPC will wait for the block to be validated before answering. If ?async is true, the function returns immediately. Otherwise, the block will be validated before the result is returned. If ?force is true, it will be injected even on non strictly increasing fitness. An optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.", - "parameters": [ - { - "name": "async", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "force", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "chain", - "in": "query", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - }, - "operations": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation" - } - } - } - }, - "required": [ - "data", - "operations" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A block identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/injection/operation": { - "post": { - "description": "Inject an operation in node and broadcast it. Returns the ID of the operation. The `signedOperationContents` should be constructed using contextual RPCs from the latest block and signed by the client. The injection of the operation will apply it on the current mempool context. This context may change at each operation injection or operation reception from peers. By default, the RPC will wait for the operation to be (pre-)validated before returning. However, if ?async is true, the function returns immediately. The optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.", - "parameters": [ - { - "name": "async", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "chain", - "in": "query", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Tezos operation ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/injection/protocol": { - "post": { - "description": "Inject a protocol in node. Returns the ID of the protocol. If ?async is true, the function returns immediately. Otherwise, the protocol will be validated before the result is returned.", - "parameters": [ - { - "name": "async", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "description": "The environment a protocol relies on and the components a protocol is made of.", - "type": "object", - "properties": { - "expected_env_version": { - "$ref": "#/components/schemas/protocol.environment_version" - }, - "components": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "$ref": "#/components/schemas/unistring" - }, - "interface": { - "$ref": "#/components/schemas/unistring" - }, - "implementation": { - "$ref": "#/components/schemas/unistring" - } - }, - "required": [ - "name", - "implementation" - ] - } - } - }, - "required": [ - "expected_env_version", - "components" - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Tezos protocol ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/monitor/active_chains": { - "get": { - "description": "Monitor every chain creation and destruction. Currently active chains will be given as first elements", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "oneOf": [ - { - "title": "Main", - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - } - }, - "required": [ - "chain_id" - ] - }, - { - "title": "Test", - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "test_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "expiration_date": { - "$ref": "#/components/schemas/timestamp.protocol" - } - }, - "required": [ - "chain_id", - "test_protocol", - "expiration_date" - ] - }, - { - "title": "Stopping", - "type": "object", - "properties": { - "stopping": { - "$ref": "#/components/schemas/Chain_id" - } - }, - "required": [ - "stopping" - ] - } - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/monitor/applied_blocks": { - "get": { - "description": "Monitor all blocks that are successfully applied and stored by the node, disregarding whether they were selected as the new head or not.", - "parameters": [ - { - "name": "protocol", - "in": "query", - "description": "Protocol_hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "next_protocol", - "in": "query", - "description": "Protocol_hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "chain", - "in": "query", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/block_hash" - }, - "header": { - "$ref": "#/components/schemas/block_header" - }, - "operations": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation" - } - } - } - }, - "required": [ - "chain_id", - "hash", - "header", - "operations" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/monitor/bootstrapped": { - "get": { - "description": "Wait for the node to have synchronized its chain with a few peers (configured by the node's administrator), streaming head updates that happen during the bootstrapping process, and closing the stream at the end. If the node was already bootstrapped, returns the current head immediately.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - } - }, - "required": [ - "block", - "timestamp" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/monitor/commit_hash": { - "get": { - "description": "DEPRECATED: use `version` instead.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Universal string representation", - "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "invalid_utf8_string": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 255 - } - } - }, - "required": [ - "invalid_utf8_string" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/monitor/heads/{chain_id}": { - "get": { - "description": "Monitor all blocks that are successfully validated and applied by the node and selected as the new head of the given chain.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "protocol", - "in": "query", - "description": "Protocol_hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "next_protocol", - "in": "query", - "description": "Protocol_hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "Block header", - "description": "Block header. It contains both shell and protocol specific data.", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/block_hash" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - }, - "protocol_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "hash", - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context", - "protocol_data" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/monitor/protocols": { - "get": { - "description": "Monitor all economic protocols that are retrieved and successfully loaded and compiled by the node.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Tezos protocol ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/monitor/validated_blocks": { - "get": { - "description": "Monitor all blocks that were successfully validated by the node but are not applied nor stored yet, disregarding whether they are going to be selected as the new head or not.", - "parameters": [ - { - "name": "protocol", - "in": "query", - "description": "Protocol_hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "next_protocol", - "in": "query", - "description": "Protocol_hash (Base58Check-encoded)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "chain", - "in": "query", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "hash": { - "$ref": "#/components/schemas/block_hash" - }, - "header": { - "$ref": "#/components/schemas/block_header" - }, - "operations": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/operation" - } - } - } - }, - "required": [ - "chain_id", - "hash", - "header", - "operations" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/connections": { - "get": { - "description": "List the running P2P connection.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "incoming": { - "type": "boolean" - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "id_point": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "remote_socket_port": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "announced_version": { - "$ref": "#/components/schemas/network_version" - }, - "private": { - "type": "boolean" - }, - "local_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" - } - }, - "required": [ - "disable_mempool", - "private_node" - ] - }, - "remote_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" - } - }, - "required": [ - "disable_mempool", - "private_node" - ] - } - }, - "required": [ - "incoming", - "peer_id", - "id_point", - "remote_socket_port", - "announced_version", - "private", - "local_metadata", - "remote_metadata" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/connections/{peer_id}": { - "get": { - "description": "Details about the current P2P connection to the given peer.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "incoming": { - "type": "boolean" - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "id_point": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "remote_socket_port": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "announced_version": { - "$ref": "#/components/schemas/network_version" - }, - "private": { - "type": "boolean" - }, - "local_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" - } - }, - "required": [ - "disable_mempool", - "private_node" - ] - }, - "remote_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" - } - }, - "required": [ - "disable_mempool", - "private_node" - ] - } - }, - "required": [ - "incoming", - "peer_id", - "id_point", - "remote_socket_port", - "announced_version", - "private", - "local_metadata", - "remote_metadata" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - }, - "delete": { - "description": "Forced close of the current P2P connection to the given peer.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "wait", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/greylist": { - "delete": { - "description": "Clear all greylists tables. This will unban all addresses and peers automatically greylisted by the system.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/greylist/ips": { - "get": { - "description": "Returns an object that contains a list of IP and the field \"not_reliable_since\".\n If the field \"not_reliable_since\" is None then the list contains the currently greylisted IP addresses.\n If the field \"not_reliable_since\" Contains a date, this means that the greylist has been overflowed and it is no more possible to obtain the exact list of greylisted IPs. Since the greylist of IP addresses has been design to work whatever his size, there is no security issue related to this overflow.\n Reinitialize the ACL structure by calling \"delete /network/greylist\" to get back this list reliable.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "ips": { - "type": "array", - "items": { - "$ref": "#/components/schemas/p2p_address" - } - }, - "not_reliable_since": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "oneOf": [ - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - ] - } - }, - "required": [ - "ips", - "not_reliable_since" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/greylist/peers": { - "get": { - "description": "List of the last greylisted peers.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/log": { - "get": { - "description": "Stream of all network events", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "An event that may happen during maintenance of and other operations on the p2p connection pool. Typically, it includes connection errors, peer swaps, etc.", - "oneOf": [ - { - "title": "Too_few_connections", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "too_few_connections" - ] - } - }, - "required": [ - "event" - ] - }, - { - "title": "Too_many_connections", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "too_many_connections" - ] - } - }, - "required": [ - "event" - ] - }, - { - "title": "New_point", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "new_point" - ] - }, - "point": { - "$ref": "#/components/schemas/p2p_point.id" - } - }, - "required": [ - "event", - "point" - ] - }, - { - "title": "New_peer", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "new_peer" - ] - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "peer_id" - ] - }, - { - "title": "Incoming_connection", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "incoming_connection" - ] - }, - "point": { - "$ref": "#/components/schemas/p2p_point.id" - } - }, - "required": [ - "event", - "point" - ] - }, - { - "title": "Outgoing_connection", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "outgoing_connection" - ] - }, - "point": { - "$ref": "#/components/schemas/p2p_point.id" - } - }, - "required": [ - "event", - "point" - ] - }, - { - "title": "Authentication_failed", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "authentication_failed" - ] - }, - "point": { - "$ref": "#/components/schemas/p2p_point.id" - } - }, - "required": [ - "event", - "point" - ] - }, - { - "title": "Accepting_request", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "accepting_request" - ] - }, - "point": { - "$ref": "#/components/schemas/p2p_point.id" - }, - "id_point": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "point", - "id_point", - "peer_id" - ] - }, - { - "title": "Rejecting_request", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "rejecting_request" - ] - }, - "point": { - "$ref": "#/components/schemas/p2p_point.id" - }, - "id_point": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "point", - "id_point", - "peer_id" - ] - }, - { - "title": "Request_rejected", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "request_rejected" - ] - }, - "point": { - "$ref": "#/components/schemas/p2p_point.id" - }, - "identity": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - ] - } - } - }, - "required": [ - "event", - "point" - ] - }, - { - "title": "Connection_established", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "connection_established" - ] - }, - "id_point": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "id_point", - "peer_id" - ] - }, - { - "title": "Disconnection", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "disconnection" - ] - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "peer_id" - ] - }, - { - "title": "External_disconnection", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "external_disconnection" - ] - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "peer_id" - ] - }, - { - "title": "Gc_points", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "gc_points" - ] - } - }, - "required": [ - "event" - ] - }, - { - "title": "Gc_peer_ids", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "gc_peer_ids" - ] - } - }, - "required": [ - "event" - ] - }, - { - "title": "Swap_request_received", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "swap_request_received" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Swap_ack_received", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "swap_ack_received" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Swap_request_sent", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "swap_request_sent" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Swap_ack_sent", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "swap_ack_sent" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Swap_request_ignored", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "swap_request_ignored" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Swap_success", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "swap_success" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Swap_failure", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "swap_failure" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Bootstrap_sent", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "bootstrap_sent" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Bootstrap_received", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "bootstrap_received" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Advertise_sent", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "advertise_sent" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - }, - { - "title": "Advertise_received", - "type": "object", - "properties": { - "event": { - "type": "string", - "enum": [ - "advertise_received" - ] - }, - "source": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event", - "source" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/peers": { - "get": { - "description": "List the peers the node ever met.", - "parameters": [ - { - "name": "filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "type": "object", - "properties": { - "score": { - "type": "number" - }, - "trusted": { - "type": "boolean" - }, - "conn_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" - } - }, - "required": [ - "disable_mempool", - "private_node" - ] - }, - "peer_metadata": { - "type": "object", - "properties": { - "responses": { - "type": "object", - "properties": { - "sent": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "failed": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "received": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "unexpected": { - "$ref": "#/components/schemas/bignum" - }, - "outdated": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "sent", - "failed", - "received", - "unexpected", - "outdated" - ] - }, - "requests": { - "type": "object", - "properties": { - "sent": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "received": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "failed": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "scheduled": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - } - }, - "required": [ - "sent", - "received", - "failed", - "scheduled" - ] - }, - "valid_blocks": { - "$ref": "#/components/schemas/bignum" - }, - "old_heads": { - "$ref": "#/components/schemas/bignum" - }, - "prevalidator_results": { - "type": "object", - "properties": { - "cannot_download": { - "$ref": "#/components/schemas/bignum" - }, - "cannot_parse": { - "$ref": "#/components/schemas/bignum" - }, - "refused_by_prefilter": { - "$ref": "#/components/schemas/bignum" - }, - "refused_by_postfilter": { - "$ref": "#/components/schemas/bignum" - }, - "applied": { - "$ref": "#/components/schemas/bignum" - }, - "branch_delayed": { - "$ref": "#/components/schemas/bignum" - }, - "branch_refused": { - "$ref": "#/components/schemas/bignum" - }, - "refused": { - "$ref": "#/components/schemas/bignum" - }, - "duplicate": { - "$ref": "#/components/schemas/bignum" - }, - "outdated": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "cannot_download", - "cannot_parse", - "refused_by_prefilter", - "refused_by_postfilter", - "applied", - "branch_delayed", - "branch_refused", - "refused", - "duplicate", - "outdated" - ] - }, - "unactivated_chains": { - "$ref": "#/components/schemas/bignum" - }, - "inactive_chains": { - "$ref": "#/components/schemas/bignum" - }, - "future_blocks_advertised": { - "$ref": "#/components/schemas/bignum" - }, - "unadvertised": { - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocol": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "block", - "operations", - "protocol" - ] - }, - "advertisements": { - "type": "object", - "properties": { - "sent": { - "type": "object", - "properties": { - "head": { - "$ref": "#/components/schemas/bignum" - }, - "branch": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "head", - "branch" - ] - }, - "received": { - "type": "object", - "properties": { - "head": { - "$ref": "#/components/schemas/bignum" - }, - "branch": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "head", - "branch" - ] - } - }, - "required": [ - "sent", - "received" - ] - } - }, - "required": [ - "responses", - "requests", - "valid_blocks", - "old_heads", - "prevalidator_results", - "unactivated_chains", - "inactive_chains", - "future_blocks_advertised", - "unadvertised", - "advertisements" - ] - }, - "state": { - "$ref": "#/components/schemas/p2p_peer.state" - }, - "reachable_at": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "stat": { - "$ref": "#/components/schemas/p2p_stat" - }, - "last_failed_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_rejected_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_established_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_disconnection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_seen": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_miss": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - } - }, - "required": [ - "score", - "trusted", - "peer_metadata", - "state", - "stat" - ] - } - ] - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/peers/{peer_id}": { - "get": { - "description": "Details about a given peer.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "score": { - "type": "number" - }, - "trusted": { - "type": "boolean" - }, - "conn_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" - } - }, - "required": [ - "disable_mempool", - "private_node" - ] - }, - "peer_metadata": { - "type": "object", - "properties": { - "responses": { - "type": "object", - "properties": { - "sent": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "failed": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "received": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "unexpected": { - "$ref": "#/components/schemas/bignum" - }, - "outdated": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "sent", - "failed", - "received", - "unexpected", - "outdated" - ] - }, - "requests": { - "type": "object", - "properties": { - "sent": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "received": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "failed": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "scheduled": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - } - }, - "required": [ - "sent", - "received", - "failed", - "scheduled" - ] - }, - "valid_blocks": { - "$ref": "#/components/schemas/bignum" - }, - "old_heads": { - "$ref": "#/components/schemas/bignum" - }, - "prevalidator_results": { - "type": "object", - "properties": { - "cannot_download": { - "$ref": "#/components/schemas/bignum" - }, - "cannot_parse": { - "$ref": "#/components/schemas/bignum" - }, - "refused_by_prefilter": { - "$ref": "#/components/schemas/bignum" - }, - "refused_by_postfilter": { - "$ref": "#/components/schemas/bignum" - }, - "applied": { - "$ref": "#/components/schemas/bignum" - }, - "branch_delayed": { - "$ref": "#/components/schemas/bignum" - }, - "branch_refused": { - "$ref": "#/components/schemas/bignum" - }, - "refused": { - "$ref": "#/components/schemas/bignum" - }, - "duplicate": { - "$ref": "#/components/schemas/bignum" - }, - "outdated": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "cannot_download", - "cannot_parse", - "refused_by_prefilter", - "refused_by_postfilter", - "applied", - "branch_delayed", - "branch_refused", - "refused", - "duplicate", - "outdated" - ] - }, - "unactivated_chains": { - "$ref": "#/components/schemas/bignum" - }, - "inactive_chains": { - "$ref": "#/components/schemas/bignum" - }, - "future_blocks_advertised": { - "$ref": "#/components/schemas/bignum" - }, - "unadvertised": { - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocol": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "block", - "operations", - "protocol" - ] - }, - "advertisements": { - "type": "object", - "properties": { - "sent": { - "type": "object", - "properties": { - "head": { - "$ref": "#/components/schemas/bignum" - }, - "branch": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "head", - "branch" - ] - }, - "received": { - "type": "object", - "properties": { - "head": { - "$ref": "#/components/schemas/bignum" - }, - "branch": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "head", - "branch" - ] - } - }, - "required": [ - "sent", - "received" - ] - } - }, - "required": [ - "responses", - "requests", - "valid_blocks", - "old_heads", - "prevalidator_results", - "unactivated_chains", - "inactive_chains", - "future_blocks_advertised", - "unadvertised", - "advertisements" - ] - }, - "state": { - "$ref": "#/components/schemas/p2p_peer.state" - }, - "reachable_at": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "stat": { - "$ref": "#/components/schemas/p2p_stat" - }, - "last_failed_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_rejected_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_established_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_disconnection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_seen": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_miss": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - } - }, - "required": [ - "score", - "trusted", - "peer_metadata", - "state", - "stat" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - }, - "patch": { - "description": "Change the permissions of a given peer. With `{acl: ban}`: blacklist the given peer and remove it from the whitelist if present. With `{acl: open}`: removes the peer from the blacklist and whitelist. With `{acl: trust}`: trust the given peer permanently and remove it from the blacklist if present. The peer cannot be blocked (but its host IP still can).", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "acl": { - "type": "string", - "enum": [ - "open", - "trust", - "ban" - ] - } - } - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "score": { - "type": "number" - }, - "trusted": { - "type": "boolean" - }, - "conn_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" - } - }, - "required": [ - "disable_mempool", - "private_node" - ] - }, - "peer_metadata": { - "type": "object", - "properties": { - "responses": { - "type": "object", - "properties": { - "sent": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "failed": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "received": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "unexpected": { - "$ref": "#/components/schemas/bignum" - }, - "outdated": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "sent", - "failed", - "received", - "unexpected", - "outdated" - ] - }, - "requests": { - "type": "object", - "properties": { - "sent": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "received": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "failed": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - }, - "scheduled": { - "oneOf": [ - { - "title": "peer_metadata.v1", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "checkpoint": { - "$ref": "#/components/schemas/bignum" - }, - "protocol_branch": { - "$ref": "#/components/schemas/bignum" - }, - "predecessor_header": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "checkpoint", - "protocol_branch", - "predecessor_header", - "other" - ] - }, - { - "title": "peer_metadata.legacy_v0", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/bignum" - }, - "head": { - "$ref": "#/components/schemas/bignum" - }, - "block_header": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocols": { - "$ref": "#/components/schemas/bignum" - }, - "operation_hashes_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "operations_for_block": { - "$ref": "#/components/schemas/bignum" - }, - "other": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "branch", - "head", - "block_header", - "operations", - "protocols", - "operation_hashes_for_block", - "operations_for_block", - "other" - ] - } - ] - } - }, - "required": [ - "sent", - "received", - "failed", - "scheduled" - ] - }, - "valid_blocks": { - "$ref": "#/components/schemas/bignum" - }, - "old_heads": { - "$ref": "#/components/schemas/bignum" - }, - "prevalidator_results": { - "type": "object", - "properties": { - "cannot_download": { - "$ref": "#/components/schemas/bignum" - }, - "cannot_parse": { - "$ref": "#/components/schemas/bignum" - }, - "refused_by_prefilter": { - "$ref": "#/components/schemas/bignum" - }, - "refused_by_postfilter": { - "$ref": "#/components/schemas/bignum" - }, - "applied": { - "$ref": "#/components/schemas/bignum" - }, - "branch_delayed": { - "$ref": "#/components/schemas/bignum" - }, - "branch_refused": { - "$ref": "#/components/schemas/bignum" - }, - "refused": { - "$ref": "#/components/schemas/bignum" - }, - "duplicate": { - "$ref": "#/components/schemas/bignum" - }, - "outdated": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "cannot_download", - "cannot_parse", - "refused_by_prefilter", - "refused_by_postfilter", - "applied", - "branch_delayed", - "branch_refused", - "refused", - "duplicate", - "outdated" - ] - }, - "unactivated_chains": { - "$ref": "#/components/schemas/bignum" - }, - "inactive_chains": { - "$ref": "#/components/schemas/bignum" - }, - "future_blocks_advertised": { - "$ref": "#/components/schemas/bignum" - }, - "unadvertised": { - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/bignum" - }, - "operations": { - "$ref": "#/components/schemas/bignum" - }, - "protocol": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "block", - "operations", - "protocol" - ] - }, - "advertisements": { - "type": "object", - "properties": { - "sent": { - "type": "object", - "properties": { - "head": { - "$ref": "#/components/schemas/bignum" - }, - "branch": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "head", - "branch" - ] - }, - "received": { - "type": "object", - "properties": { - "head": { - "$ref": "#/components/schemas/bignum" - }, - "branch": { - "$ref": "#/components/schemas/bignum" - } - }, - "required": [ - "head", - "branch" - ] - } - }, - "required": [ - "sent", - "received" - ] - } - }, - "required": [ - "responses", - "requests", - "valid_blocks", - "old_heads", - "prevalidator_results", - "unactivated_chains", - "inactive_chains", - "future_blocks_advertised", - "unadvertised", - "advertisements" - ] - }, - "state": { - "$ref": "#/components/schemas/p2p_peer.state" - }, - "reachable_at": { - "$ref": "#/components/schemas/p2p_connection.id" - }, - "stat": { - "$ref": "#/components/schemas/p2p_stat" - }, - "last_failed_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_rejected_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_established_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_disconnection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_seen": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_miss": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_connection.id" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - } - }, - "required": [ - "score", - "trusted", - "peer_metadata", - "state", - "stat" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/peers/{peer_id}/banned": { - "get": { - "description": "Check if a given peer is blacklisted or greylisted.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "boolean" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/peers/{peer_id}/log": { - "get": { - "description": "Monitor network events related to a given peer.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "monitor", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/p2p_peer.pool_event" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/points": { - "get": { - "description": "List the pool of known `IP:port` used for establishing P2P connections.", - "parameters": [ - { - "name": "filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/p2p_point.id" - }, - { - "$ref": "#/components/schemas/p2p_point.info" - } - ] - } - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/points/{point}": { - "get": { - "description": "Details about a given `IP:addr`.", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "Information about a peer point. Includes flags, state, and records about past events.", - "type": "object", - "properties": { - "trusted": { - "type": "boolean" - }, - "greylisted_until": { - "$ref": "#/components/schemas/timestamp.system" - }, - "state": { - "$ref": "#/components/schemas/p2p_point.state" - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "last_failed_connection": { - "$ref": "#/components/schemas/timestamp.system" - }, - "last_rejected_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_established_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_disconnection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_seen": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_miss": { - "$ref": "#/components/schemas/timestamp.system" - }, - "expected_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "trusted", - "state" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - }, - "put": { - "description": "Connect to a peer", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "timeout", - "in": "query", - "description": "A span of time in seconds", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - }, - "patch": { - "description": "Change the connectivity state of a given `IP:addr`. With `{acl : ban}`: blacklist the given address and remove it from the whitelist if present. With `{acl: open}`: removes an address from the blacklist and whitelist. With `{acl: trust}`: trust a given address permanently and remove it from the blacklist if present. With `{peer_id: }` set the peerId of the point. Connections from this address can still be closed on authentication if the peer is greylisted. ", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "acl": { - "type": "string", - "enum": [ - "open", - "trust", - "ban" - ] - }, - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "Information about a peer point. Includes flags, state, and records about past events.", - "type": "object", - "properties": { - "trusted": { - "type": "boolean" - }, - "greylisted_until": { - "$ref": "#/components/schemas/timestamp.system" - }, - "state": { - "$ref": "#/components/schemas/p2p_point.state" - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "last_failed_connection": { - "$ref": "#/components/schemas/timestamp.system" - }, - "last_rejected_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_established_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_disconnection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_seen": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_miss": { - "$ref": "#/components/schemas/timestamp.system" - }, - "expected_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "trusted", - "state" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/points/{point}/banned": { - "get": { - "description": "Check if a given address is blacklisted or greylisted. Port component is unused.", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "boolean" - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/points/{point}/log": { - "get": { - "description": "Monitor network events related to an `IP:addr`.", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "monitor", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/p2p_point.pool_event" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/self": { - "get": { - "description": "Return the node's peer id", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "title": "A Cryptobox public key ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/stat": { - "get": { - "description": "Global network bandwidth statistics in B/s.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "Statistics about the p2p network.", - "type": "object", - "properties": { - "total_sent": { - "$ref": "#/components/schemas/int64" - }, - "total_recv": { - "$ref": "#/components/schemas/int64" - }, - "current_inflow": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "current_outflow": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "total_sent", - "total_recv", - "current_inflow", - "current_outflow" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/protocols": { - "get": { - "description": "(no description)", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Protocol_hash" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/protocols/{Protocol_hash}": { - "get": { - "description": "(no description)", - "parameters": [ - { - "name": "Protocol_hash", - "in": "path", - "description": "Protocol_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The environment a protocol relies on and the components a protocol is made of.", - "type": "object", - "properties": { - "expected_env_version": { - "$ref": "#/components/schemas/protocol.environment_version" - }, - "components": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "$ref": "#/components/schemas/unistring" - }, - "interface": { - "$ref": "#/components/schemas/unistring" - }, - "implementation": { - "$ref": "#/components/schemas/unistring" - } - }, - "required": [ - "name", - "implementation" - ] - } - } - }, - "required": [ - "expected_env_version", - "components" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/protocols/{Protocol_hash}/environment": { - "get": { - "description": "(no description)", - "parameters": [ - { - "name": "Protocol_hash", - "in": "path", - "description": "Protocol_hash (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/stats/gc": { - "get": { - "description": "Gets stats from the OCaml Garbage Collector", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "minor_words": { - "type": "number" - }, - "promoted_words": { - "type": "number" - }, - "major_words": { - "type": "number" - }, - "minor_collections": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "major_collections": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "forced_major_collections": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "heap_words": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "heap_chunks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "live_words": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "live_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "free_words": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "free_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "largest_free": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "fragments": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "compactions": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "top_heap_words": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "stack_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "minor_words", - "promoted_words", - "major_words", - "minor_collections", - "major_collections", - "forced_major_collections", - "heap_words", - "heap_chunks", - "live_words", - "live_blocks", - "free_words", - "free_blocks", - "largest_free", - "fragments", - "compactions", - "top_heap_words", - "stack_size" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/stats/memory": { - "get": { - "description": "Gets memory usage stats", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "title": "Linux_proc_statm", - "type": "object", - "properties": { - "page_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "size": { - "$ref": "#/components/schemas/int64" - }, - "resident": { - "$ref": "#/components/schemas/int64" - }, - "shared": { - "$ref": "#/components/schemas/int64" - }, - "text": { - "$ref": "#/components/schemas/int64" - }, - "lib": { - "$ref": "#/components/schemas/int64" - }, - "data": { - "$ref": "#/components/schemas/int64" - }, - "dt": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "page_size", - "size", - "resident", - "shared", - "text", - "lib", - "data", - "dt" - ] - }, - { - "title": "Darwin_ps", - "type": "object", - "properties": { - "page_size": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "mem": { - "type": "number" - }, - "resident": { - "$ref": "#/components/schemas/int64" - } - }, - "required": [ - "page_size", - "mem", - "resident" - ] - } - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/version": { - "get": { - "description": "Get information on the node version", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "version": { - "type": "object", - "properties": { - "major": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "minor": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "additional_info": { - "oneOf": [ - { - "title": "Dev", - "type": "string", - "enum": [ - "dev" - ] - }, - { - "title": "RC", - "type": "object", - "properties": { - "rc": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "rc" - ] - }, - { - "title": "Release", - "type": "string", - "enum": [ - "release" - ] - }, - { - "title": "RC_dev", - "type": "object", - "properties": { - "rc_dev": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "rc_dev" - ] - }, - { - "title": "Beta", - "type": "object", - "properties": { - "beta": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "beta" - ] - }, - { - "title": "Beta_dev", - "type": "object", - "properties": { - "beta_dev": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "beta_dev" - ] - } - ] - } - }, - "required": [ - "major", - "minor", - "additional_info" - ] - }, - "network_version": { - "$ref": "#/components/schemas/network_version" - }, - "commit_info": { - "nullable": true, - "oneOf": [ - { - "title": "Some", - "type": "object", - "properties": { - "commit_hash": { - "$ref": "#/components/schemas/unistring" - }, - "commit_date": { - "$ref": "#/components/schemas/unistring" - } - }, - "required": [ - "commit_hash", - "commit_date" - ] - } - ] - } - }, - "required": [ - "version", - "network_version", - "commit_info" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/block_validator": { - "get": { - "description": "Introspect the state of the block_validator worker.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "pending_requests": { - "type": "array", - "items": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "validation", - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "peer": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "block", - "chain_id" - ] - }, - { - "title": "preapplication", - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "chain_id", - "level" - ] - } - ] - } - }, - "required": [ - "pushed", - "request" - ] - } - }, - "current_request": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "treated": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "validation", - "type": "object", - "properties": { - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "peer": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "block", - "chain_id" - ] - }, - { - "title": "preapplication", - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - } - }, - "required": [ - "chain_id", - "level" - ] - } - ] - } - }, - "required": [ - "pushed", - "treated", - "request" - ] - } - }, - "required": [ - "status", - "pending_requests" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/chain_validators": { - "get": { - "description": "Lists the chain validator workers and their status.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "information": { - "type": "object", - "properties": { - "instances": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "queue_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "instances", - "status", - "queue_length" - ] - }, - "pipelines": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - }, - "required": [ - "chain_id", - "status", - "information", - "pipelines" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/chain_validators/{chain_id}": { - "get": { - "description": "Introspect the state of a chain validator worker.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "pending_requests": { - "type": "array", - "items": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "Hash", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "hash" - ] - }, - { - "title": "Peer_id", - "type": "object", - "properties": { - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "peer_id" - ] - } - ] - } - }, - "required": [ - "pushed", - "request" - ] - } - }, - "current_request": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "treated": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "Hash", - "type": "object", - "properties": { - "hash": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "hash" - ] - }, - { - "title": "Peer_id", - "type": "object", - "properties": { - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "peer_id" - ] - } - ] - } - }, - "required": [ - "pushed", - "treated", - "request" - ] - } - }, - "required": [ - "status", - "pending_requests" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/chain_validators/{chain_id}/ddb": { - "get": { - "description": "Introspect the state of the DDB attached to a chain validator worker.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "p2p_readers": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "active_chains": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "operation_db": { - "type": "object", - "properties": { - "table_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "scheduler_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "table_length", - "scheduler_length" - ] - }, - "operations_db": { - "type": "object", - "properties": { - "table_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "scheduler_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "table_length", - "scheduler_length" - ] - }, - "block_header_db": { - "type": "object", - "properties": { - "table_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "scheduler_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "table_length", - "scheduler_length" - ] - }, - "active_connections": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "active_peers": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "p2p_readers", - "active_chains", - "operation_db", - "operations_db", - "block_header_db", - "active_connections", - "active_peers" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/chain_validators/{chain_id}/peers_validators": { - "get": { - "description": "Lists the peer validator workers and their status.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "information": { - "type": "object", - "properties": { - "instances": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "queue_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "instances", - "status", - "queue_length" - ] - }, - "pipelines": { - "type": "object", - "properties": { - "fetched_headers": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "fetched_blocks": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "fetched_headers", - "fetched_blocks" - ] - } - }, - "required": [ - "peer_id", - "status", - "information", - "pipelines" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/chain_validators/{chain_id}/peers_validators/{peer_id}": { - "get": { - "description": "Introspect the state of a peer validator worker.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "pending_requests": { - "type": "array", - "items": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "New_head", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "new_head" - ] - }, - "block": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "request", - "block" - ] - }, - { - "title": "New_branch", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "new_branch" - ] - }, - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "locators": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "request", - "block", - "locators" - ] - } - ] - } - }, - "required": [ - "pushed", - "request" - ] - } - }, - "current_request": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "treated": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "New_head", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "new_head" - ] - }, - "block": { - "$ref": "#/components/schemas/block_hash" - } - }, - "required": [ - "request", - "block" - ] - }, - { - "title": "New_branch", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "new_branch" - ] - }, - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "locators": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "request", - "block", - "locators" - ] - } - ] - } - }, - "required": [ - "pushed", - "treated", - "request" - ] - } - }, - "required": [ - "status", - "pending_requests" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/prevalidators": { - "get": { - "description": "Lists the Prevalidator workers and their status.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "chain_id": { - "$ref": "#/components/schemas/Chain_id" - }, - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "information": { - "type": "object", - "properties": { - "instances": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "queue_length": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "instances", - "status", - "queue_length" - ] - }, - "pipelines": { - "type": "integer", - "minimum": -32768, - "maximum": 32767 - } - }, - "required": [ - "chain_id", - "status", - "information", - "pipelines" - ] - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/workers/prevalidators/{chain_id}": { - "get": { - "description": "Introspect the state of prevalidator workers.", - "parameters": [ - { - "name": "chain_id", - "in": "path", - "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "status": { - "oneOf": [ - { - "title": "Launching", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "launching" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "running" - ] - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "since" - ] - }, - { - "title": "Closing", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closing" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Closed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "closed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - } - }, - "required": [ - "phase", - "birth", - "since" - ] - }, - { - "title": "Crashed", - "type": "object", - "properties": { - "phase": { - "type": "string", - "enum": [ - "crashed" - ] - }, - "birth": { - "$ref": "#/components/schemas/timestamp.system" - }, - "since": { - "$ref": "#/components/schemas/timestamp.system" - }, - "errors": { - "$ref": "#/components/schemas/error" - } - }, - "required": [ - "phase", - "birth", - "since", - "errors" - ] - } - ] - }, - "pending_requests": { - "type": "array", - "items": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "Flush", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "flush" - ] - }, - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "event": { - "$ref": "#/components/schemas/chain_update" - } - }, - "required": [ - "request", - "block", - "event" - ] - }, - { - "title": "Notify", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "notify" - ] - }, - "peer": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "mempool": { - "$ref": "#/components/schemas/mempool" - } - }, - "required": [ - "request", - "peer", - "mempool" - ] - }, - { - "title": "Inject", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "inject" - ] - }, - "operation": { - "$ref": "#/components/schemas/operation" - }, - "force": { - "type": "boolean" - } - }, - "required": [ - "request", - "operation", - "force" - ] - }, - { - "title": "Arrived", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "arrived" - ] - }, - "operation_hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "operation": { - "$ref": "#/components/schemas/operation" - } - }, - "required": [ - "request", - "operation_hash", - "operation" - ] - }, - { - "title": "Advertise", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "advertise" - ] - } - }, - "required": [ - "request" - ] - }, - { - "title": "Leftover", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "leftover" - ] - } - }, - "required": [ - "request" - ] - }, - { - "title": "Ban", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "ban" - ] - }, - "operation_hash": { - "$ref": "#/components/schemas/Operation_hash" - } - }, - "required": [ - "request", - "operation_hash" - ] - } - ] - } - }, - "required": [ - "pushed", - "request" - ] - } - }, - "current_request": { - "type": "object", - "properties": { - "pushed": { - "$ref": "#/components/schemas/timestamp.system" - }, - "treated": { - "$ref": "#/components/schemas/timestamp.system" - }, - "request": { - "oneOf": [ - { - "title": "Flush", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "flush" - ] - }, - "block": { - "$ref": "#/components/schemas/block_hash" - }, - "event": { - "$ref": "#/components/schemas/chain_update" - } - }, - "required": [ - "request", - "block", - "event" - ] - }, - { - "title": "Notify", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "notify" - ] - }, - "peer": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "mempool": { - "$ref": "#/components/schemas/mempool" - } - }, - "required": [ - "request", - "peer", - "mempool" - ] - }, - { - "title": "Inject", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "inject" - ] - }, - "operation": { - "$ref": "#/components/schemas/operation" - }, - "force": { - "type": "boolean" - } - }, - "required": [ - "request", - "operation", - "force" - ] - }, - { - "title": "Arrived", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "arrived" - ] - }, - "operation_hash": { - "$ref": "#/components/schemas/Operation_hash" - }, - "operation": { - "$ref": "#/components/schemas/operation" - } - }, - "required": [ - "request", - "operation_hash", - "operation" - ] - }, - { - "title": "Advertise", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "advertise" - ] - } - }, - "required": [ - "request" - ] - }, - { - "title": "Leftover", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "leftover" - ] - } - }, - "required": [ - "request" - ] - }, - { - "title": "Ban", - "type": "object", - "properties": { - "request": { - "type": "string", - "enum": [ - "ban" - ] - }, - "operation_hash": { - "$ref": "#/components/schemas/Operation_hash" - } - }, - "required": [ - "request", - "operation_hash" - ] - } - ] - } - }, - "required": [ - "pushed", - "treated", - "request" - ] - } - }, - "required": [ - "status", - "pending_requests" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - } - }, - "components": { - "schemas": { - "Chain_id": { - "title": "Network identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Context_hash": { - "title": "A hash of context (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Crypto_box.Public_key_hash": { - "title": "A Cryptobox public key ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Operation_hash": { - "title": "A Tezos operation ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Operation_list_list_hash": { - "title": "A list of list of operations (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "Protocol_hash": { - "title": "A Tezos protocol ID (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "bignum": { - "title": "Big number", - "description": "Decimal representation of a big number", - "type": "string" - }, - "block_hash": { - "title": "A block identifier (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "block_header": { - "title": "Block header", - "description": "Block header. It contains both shell and protocol specific data.", - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "proto": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "predecessor": { - "$ref": "#/components/schemas/block_hash" - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.protocol" - }, - "validation_pass": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "operations_hash": { - "$ref": "#/components/schemas/Operation_list_list_hash" - }, - "fitness": { - "$ref": "#/components/schemas/fitness" - }, - "context": { - "$ref": "#/components/schemas/Context_hash" - }, - "protocol_data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "level", - "proto", - "predecessor", - "timestamp", - "validation_pass", - "operations_hash", - "fitness", - "context", - "protocol_data" - ] - }, - "chain_status": { - "description": "If 'unsynced', the node is not currently synchronized with of its peers (it is probably still bootstrapping and its head is lagging behind the chain's).\nIf 'synced', the node considers itself synchronized with its peers and the current head timestamp is recent.\nIf 'stuck', the node considers itself synchronized with its peers but the chain seems to be halted from its viewpoint.", - "type": "string", - "enum": [ - "stuck", - "synced", - "unsynced" - ] - }, - "chain_update": { - "description": "If 'ignored', the new validated block is ignored since the current head fitness is better. If 'branch', we have set our head to a new validated block which is not the direct successor of the previous head. If 'increment', the new validated head is the direct successor of the previous head.", - "type": "string", - "enum": [ - "branch", - "ignored", - "increment" - ] - }, - "distributed_db_version": { - "description": "A version number for the distributed DB protocol", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "distributed_db_version.name": { - "description": "A name for the distributed DB protocol", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "error": { - "description": "The full list of errors is available with the global RPC `GET errors`" - }, - "fitness": { - "title": "Block fitness", - "description": "The fitness, or score, of a block, that allow the Tezos to decide which chain is the best. A fitness value is a list of byte sequences. They are compared as follows: shortest lists are smaller; lists of the same length are compared according to the lexicographical order.", - "type": "array", - "items": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "history_mode": { - "title": "history mode", - "description": "Storage mode for the Tezos shell.", - "oneOf": [ - { - "title": "archive", - "description": "Archive mode retains every block and operations since the genesis block including their metadata and their associated contexts.", - "type": "string", - "enum": [ - "archive" - ] - }, - { - "title": "full", - "description": "Full mode retains every block and operations since the genesis block but periodically prunes older blocks' metadata to reduce the storage size.", - "type": "object", - "properties": { - "full": { - "type": "object", - "properties": { - "additional_cycles": { - "title": "additional cycles", - "description": "Number of additional cycles preserved below the savepoint. By default: 1 additional cycles will be stored.", - "type": "integer", - "minimum": 0, - "maximum": 1000 - } - }, - "required": [ - "additional_cycles" - ] - } - }, - "required": [ - "full" - ] - }, - { - "title": "rolling", - "description": "Rolling mode only retain the most recent cycles by periodically periodically discarding older blocks to reduce the storage size.", - "type": "object", - "properties": { - "rolling": { - "type": "object", - "properties": { - "additional_cycles": { - "title": "additional cycles", - "description": "Number of additional cycles preserved below the savepoint. By default: 1 additional cycles will be stored.", - "type": "integer", - "minimum": 0, - "maximum": 1000 - } - }, - "required": [ - "additional_cycles" - ] - } - }, - "required": [ - "rolling" - ] - }, - { - "title": "full_alias", - "description": "Full mode with default number of additional cycles.", - "type": "string", - "enum": [ - "full" - ] - }, - { - "title": "rolling_alias", - "description": "Rolling mode with default number of additional cycles.", - "type": "string", - "enum": [ - "rolling" - ] - } - ] - }, - "int64": { - "title": "64 bit integers", - "description": "Decimal representation of 64 bit integers", - "type": "string" - }, - "max_active_rpc_connections": { - "title": "max_active_rpc_connections", - "description": "The maximum alowed number of RPC connections", - "oneOf": [ - { - "title": "unlimited", - "description": "There is not limit of the number of RPC connections allowed.", - "type": "string", - "enum": [ - "unlimited" - ] - }, - { - "title": "limited", - "description": "The number of maximum RPC connections allowed is limited to the given integer's value.", - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - ] - }, - "mempool": { - "description": "A batch of operation. This format is used to gossip operations between peers.", - "type": "object", - "properties": { - "known_valid": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Operation_hash" - } - }, - "pending": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Operation_hash" - } - } - }, - "required": [ - "known_valid", - "pending" - ] - }, - "network_version": { - "description": "A version number for the network protocol (includes distributed DB version and p2p version)", - "type": "object", - "properties": { - "chain_name": { - "$ref": "#/components/schemas/distributed_db_version.name" - }, - "distributed_db_version": { - "$ref": "#/components/schemas/distributed_db_version" - }, - "p2p_version": { - "$ref": "#/components/schemas/p2p_version" - } - }, - "required": [ - "chain_name", - "distributed_db_version", - "p2p_version" - ] - }, - "operation": { - "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", - "type": "object", - "properties": { - "branch": { - "$ref": "#/components/schemas/block_hash" - }, - "data": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" - } - }, - "required": [ - "branch", - "data" - ] - }, - "operation_metadata_size_limit": { - "title": "operation_metadata_size_limit", - "description": "The operation metadata size limit", - "oneOf": [ - { - "title": "unlimited", - "description": "The metadata size is unlimited.", - "type": "string", - "enum": [ - "unlimited" - ] - }, - { - "title": "limited", - "description": "The metadata size is limited to the given integer's value (in bytes).", - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - ] - }, - "p2p_address": { - "description": "An address for locating peers.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "p2p_connection.id": { - "description": "The identifier for a p2p connection. It includes an address and a port number.", - "type": "object", - "properties": { - "addr": { - "$ref": "#/components/schemas/p2p_address" - }, - "port": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "addr" - ] - }, - "p2p_peer.pool_event": { - "description": "An event that may happen during maintenance of and other operations on the connection to a specific peer.", - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "rejecting_request", - "incoming_request", - "disconnection", - "external_disconnection", - "connection_established", - "request_rejected" - ] - }, - "timestamp": { - "$ref": "#/components/schemas/timestamp.system" - }, - "addr": { - "$ref": "#/components/schemas/p2p_address" - }, - "port": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "required": [ - "kind", - "timestamp", - "addr" - ] - }, - "p2p_peer.state": { - "description": "The state a peer connection can be in: accepted (when the connection is being established), running (when the connection is already established), disconnected (otherwise).", - "type": "string", - "enum": [ - "running", - "accepted", - "disconnected" - ] - }, - "p2p_point.id": { - "description": "Identifier for a peer point", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "p2p_point.info": { - "description": "Information about a peer point. Includes flags, state, and records about past events.", - "type": "object", - "properties": { - "trusted": { - "type": "boolean" - }, - "greylisted_until": { - "$ref": "#/components/schemas/timestamp.system" - }, - "state": { - "$ref": "#/components/schemas/p2p_point.state" - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - "last_failed_connection": { - "$ref": "#/components/schemas/timestamp.system" - }, - "last_rejected_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_established_connection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_disconnection": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_seen": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - }, - { - "$ref": "#/components/schemas/timestamp.system" - } - ] - } - }, - "last_miss": { - "$ref": "#/components/schemas/timestamp.system" - }, - "expected_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "trusted", - "state" - ] - }, - "p2p_point.pool_event": { - "description": "Events happening during maintenance of and operations on a peer point pool (such as connections, disconnections, connection requests).", - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/timestamp.system" - }, - { - "oneOf": [ - { - "title": "Outgoing_request", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "outgoing_request" - ] - } - }, - "required": [ - "event_kind" - ] - }, - { - "title": "Accepting_request", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "accepting_request" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind", - "p2p_peer_id" - ] - }, - { - "title": "Rejecting_request", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "rejecting_request" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind", - "p2p_peer_id" - ] - }, - { - "title": "Rejecting_rejected", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "request_rejected" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind" - ] - }, - { - "title": "Connection_established", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "rejecting_request" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind", - "p2p_peer_id" - ] - }, - { - "title": "Disconnection", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "rejecting_request" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind", - "p2p_peer_id" - ] - }, - { - "title": "External_disconnection", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "rejecting_request" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind", - "p2p_peer_id" - ] - } - ] - } - ] - } - }, - "p2p_point.state": { - "description": "The state a connection to a peer point can be in: requested (connection open from here), accepted (handshake), running (connection already established), disconnected (no connection).", - "oneOf": [ - { - "title": "Requested", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "requested" - ] - } - }, - "required": [ - "event_kind" - ] - }, - { - "title": "Accepted", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "accepted" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind", - "p2p_peer_id" - ] - }, - { - "title": "Running", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "running" - ] - }, - "p2p_peer_id": { - "$ref": "#/components/schemas/Crypto_box.Public_key_hash" - } - }, - "required": [ - "event_kind", - "p2p_peer_id" - ] - }, - { - "title": "Disconnected", - "type": "object", - "properties": { - "event_kind": { - "type": "string", - "enum": [ - "disconnected" - ] - } - }, - "required": [ - "event_kind" - ] - } - ] - }, - "p2p_stat": { - "description": "Statistics about the p2p network.", - "type": "object", - "properties": { - "total_sent": { - "$ref": "#/components/schemas/int64" - }, - "total_recv": { - "$ref": "#/components/schemas/int64" - }, - "current_inflow": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - }, - "current_outflow": { - "type": "integer", - "minimum": -1073741824, - "maximum": 1073741823 - } - }, - "required": [ - "total_sent", - "total_recv", - "current_inflow", - "current_outflow" - ] - }, - "p2p_version": { - "description": "A version number for the p2p layer.", - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "protocol.environment_version": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "timespan.system": { - "description": "A span of time, as seen by the local computer.", - "type": "number" - }, - "timestamp.protocol": { - "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "timestamp.rfc": { - "title": "RFC 3339 formatted timestamp", - "description": "A date in RFC 3339 notation.", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] - }, - "timestamp.system": { - "description": "A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.", - "oneOf": [ - { - "title": "RFC encoding", - "oneOf": [ - { - "$ref": "#/components/schemas/timestamp.rfc" - } - ] - }, - { - "title": "Second since epoch", - "oneOf": [ - { - "$ref": "#/components/schemas/int64" - } - ] - } - ] - }, - "unistring": { - "title": "Universal string representation", - "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "invalid_utf8_string": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 255 - } - } - }, - "required": [ - "invalid_utf8_string" - ] - } - ] - }, - "user_activated.protocol_overrides": { - "title": "User activated protocol overrides", - "description": "User activated protocol overrides: activate a protocol instead of another.", - "type": "array", - "items": { - "type": "object", - "properties": { - "replaced_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - }, - "replacement_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "required": [ - "replaced_protocol", - "replacement_protocol" - ] - } - }, - "user_activated.upgrades": { - "title": "User activated upgrades", - "description": "User activated upgrades: at given level, switch to given protocol.", - "type": "array", - "items": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "minimum": -2147483648, - "maximum": 2147483647 - }, - "replacement_protocol": { - "$ref": "#/components/schemas/Protocol_hash" - } - }, - "required": [ - "level", - "replacement_protocol" - ] - } - } - } - } -} diff --git a/docs/api/rpc-openapi.json b/docs/api/rpc-openapi.json index 8087aef2cf96..2cb00f0dde44 100644 --- a/docs/api/rpc-openapi.json +++ b/docs/api/rpc-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez RPC", "description": "The RPC API served by the Octez node.", - "version": "19.2 (54a1580334)" + "version": "Octez 20.0 (1e5e4424)" }, "paths": { "/chains/{chain_id}": { @@ -645,6 +645,13 @@ "$ref": "#/components/schemas/unistring" } }, + "external-listen-addrs": { + "description": "Hosts to listen to. If the port is not specified, the default port 8732 will be assumed.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + }, "listen-addr": { "description": "Legacy value: Host to listen to", "oneOf": [ @@ -737,6 +744,14 @@ "any", "binary" ] + }, + "max_active_rpc_connections": { + "description": "The maximum number of active connections per RPC endpoint.", + "oneOf": [ + { + "$ref": "#/components/schemas/max_active_rpc_connections" + } + ] } } }, @@ -1625,6 +1640,41 @@ } } }, + "/health/ready": { + "get": { + "description": "Returns whether or not the node is ready to answer to requests.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ready": { + "type": "boolean" + } + }, + "required": [ + "ready" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, "/injection/block": { "post": { "description": "Inject a block in the node and broadcast it. The `operations` embedded in `blockHeader` might be pre-validated using a contextual RPCs from the latest block (e.g. '/blocks/head/context/preapply'). Returns the ID of the block. By default, the RPC will wait for the block to be validated before answering. If ?async is true, the function returns immediately. Otherwise, the block will be validated before the result is returned. If ?force is true, it will be injected even on non strictly increasing fitness. An optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.", @@ -2588,34 +2638,6 @@ } } }, - "/network/greylist/clear": { - "get": { - "description": "DEPRECATED: Clear all greylists tables. This will unban all addresses and peers automatically greylisted by the system. Use DELETE `/network/greylist` instead", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, "/network/greylist/ips": { "get": { "description": "Returns an object that contains a list of IP and the field \"not_reliable_since\".\n If the field \"not_reliable_since\" is None then the list contains the currently greylisted IP addresses.\n If the field \"not_reliable_since\" Contains a date, this means that the greylist has been overflowed and it is no more possible to obtain the exact list of greylisted IPs. Since the greylist of IP addresses has been design to work whatever his size, there is no security issue related to this overflow.\n Reinitialize the ACL structure by calling \"delete /network/greylist\" to get back this list reliable.", @@ -6246,45 +6268,6 @@ } } }, - "/network/peers/{peer_id}/ban": { - "get": { - "description": "DEPRECATED: Blacklist the given peer and remove it from the whitelist if present. Use PATCH `network/peers/` instead.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, "/network/peers/{peer_id}/banned": { "get": { "description": "Check if a given peer is blacklisted or greylisted.", @@ -6372,123 +6355,6 @@ } } }, - "/network/peers/{peer_id}/trust": { - "get": { - "description": "DEPRECATED: Whitelist a given peer permanently and remove it from the blacklist if present. The peer cannot be blocked (but its host IP still can). Use PATCH `network/peers/` instead.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/peers/{peer_id}/unban": { - "get": { - "description": "DEPRECATED: Remove the given peer from the blacklist. Use PATCH `network/peers/` instead.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/peers/{peer_id}/untrust": { - "get": { - "description": "DEPRECATED: Remove a given peer from the whitelist. Use PATCH `network/peers/` instead.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, "/network/points": { "get": { "description": "List the pool of known `IP:port` used for establishing P2P connections.", @@ -6851,45 +6717,6 @@ } } }, - "/network/points/{point}/ban": { - "get": { - "description": "DEPRECATED: Blacklist the given address and remove it from the whitelist if present. Use PATCH `/network/point/` instead.", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, "/network/points/{point}/banned": { "get": { "description": "Check if a given address is blacklisted or greylisted. Port component is unused.", @@ -6977,123 +6804,6 @@ } } }, - "/network/points/{point}/trust": { - "get": { - "description": "DEPRECATED: Trust a given address permanently and remove it from the blacklist if present. Connections from this address can still be closed on authentication if the peer is greylisted. Use PATCH`/network/point/` instead.", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/points/{point}/unban": { - "get": { - "description": "DEPRECATED: Remove an address from the blacklist. Use PATCH `/network/point/` instead.", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/points/{point}/untrust": { - "get": { - "description": "DEPRECATED: Remove an address from the whitelist. Use PATCH `/network/point/` instead.", - "parameters": [ - { - "name": "point", - "in": "path", - "description": "A network point (ipv4:port or [ipv6]:port).", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, "/network/self": { "get": { "description": "Return the node's peer id", @@ -7178,80 +6888,6 @@ } } }, - "/network/version": { - "get": { - "description": "DEPRECATED: use `version` instead.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "A version number for the network protocol (includes distributed DB version and p2p version)", - "type": "object", - "properties": { - "chain_name": { - "$ref": "#/components/schemas/distributed_db_version.name" - }, - "distributed_db_version": { - "$ref": "#/components/schemas/distributed_db_version" - }, - "p2p_version": { - "$ref": "#/components/schemas/p2p_version" - } - }, - "required": [ - "chain_name", - "distributed_db_version", - "p2p_version" - ] - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, - "/network/versions": { - "get": { - "description": "DEPRECATED: use `version` instead.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/network_version" - } - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } - } - }, "/protocols": { "get": { "description": "(no description)", @@ -7677,6 +7313,34 @@ "required": [ "rc_dev" ] + }, + { + "title": "Beta", + "type": "object", + "properties": { + "beta": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "beta" + ] + }, + { + "title": "Beta_dev", + "type": "object", + "properties": { + "beta_dev": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "beta_dev" + ] } ] } @@ -10300,6 +9964,27 @@ "description": "Decimal representation of 64 bit integers", "type": "string" }, + "max_active_rpc_connections": { + "title": "max_active_rpc_connections", + "description": "The maximum alowed number of RPC connections", + "oneOf": [ + { + "title": "unlimited", + "description": "There is not limit of the number of RPC connections allowed.", + "type": "string", + "enum": [ + "unlimited" + ] + }, + { + "title": "limited", + "description": "The number of maximum RPC connections allowed is limited to the given integer's value.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + ] + }, "mempool": { "description": "A batch of operation. This format is used to gossip operations between peers.", "type": "object", -- GitLab From 0aed27112733929863fce1ed56e194acb62fb384 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 21 May 2024 14:24:21 +0200 Subject: [PATCH 8/9] Docs: Move [version-19] to history --- docs/index.rst | 1 - docs/releases/history.rst | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 660c9c9ac33f..f61a829c8e0d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -202,7 +202,6 @@ Platform developers are also provided reference materials for internal APIs of O :hidden: releases/releases - releases/version-19 releases/version-20 releases/history diff --git a/docs/releases/history.rst b/docs/releases/history.rst index 80ef887e36ad..6a898586f239 100644 --- a/docs/releases/history.rst +++ b/docs/releases/history.rst @@ -7,6 +7,11 @@ The following pages describe the former Octez releases in reverse chronological All the releases N.x sharing a same major version number N are grouped under a same page, named after the more recent release in that series. +.. toctree:: + :maxdepth: 2 + + version-19 + .. toctree:: :maxdepth: 2 -- GitLab From 100aa784059074d581caf96aae33a260862f9995 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 28 May 2024 15:30:55 +0200 Subject: [PATCH 9/9] Docs, OpenApi: Fix commit hashes --- docs/api/dal-node-openapi.json | 2 +- docs/api/oxford-mempool-openapi.json | 2 +- docs/api/oxford-openapi.json | 2 +- docs/api/oxford-smart-rollup-node-openapi.json | 2 +- docs/api/paris-openapi.json | 2 +- docs/api/paris-smart-rollup-node-openapi.json | 2 +- docs/api/rpc-openapi.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/api/dal-node-openapi.json b/docs/api/dal-node-openapi.json index 338e9fbee58d..3c5cc6e1bbed 100644 --- a/docs/api/dal-node-openapi.json +++ b/docs/api/dal-node-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez DAL Node RPC", "description": "The RPC API for the Octez DAL node.", - "version": "Octez 20.0 (1e5e4424)" + "version": "Octez 20.0 (0dcf32097f)" }, "paths": { "/commitments": { diff --git a/docs/api/oxford-mempool-openapi.json b/docs/api/oxford-mempool-openapi.json index 838b2bda8170..2fb6601a4dad 100644 --- a/docs/api/oxford-mempool-openapi.json +++ b/docs/api/oxford-mempool-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Mempool RPC", "description": "The RPC API for the mempool served by the Octez node.", - "version": "Octez 20.0 (1e5e4424)" + "version": "Octez 20.0 (0dcf32097f)" }, "paths": { "/pending_operations": { diff --git a/docs/api/oxford-openapi.json b/docs/api/oxford-openapi.json index ba7d13e083c7..0bddd491efe7 100644 --- a/docs/api/oxford-openapi.json +++ b/docs/api/oxford-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Protocol oxford RPC", "description": "The RPC API for protocol oxford served by the Octez node.", - "version": "Octez 20.0 (1e5e4424)" + "version": "Octez 20.0 (0dcf32097f)" }, "paths": { "/": { diff --git a/docs/api/oxford-smart-rollup-node-openapi.json b/docs/api/oxford-smart-rollup-node-openapi.json index b88be852aafb..737a6a88dd03 100644 --- a/docs/api/oxford-smart-rollup-node-openapi.json +++ b/docs/api/oxford-smart-rollup-node-openapi.json @@ -3,7 +3,7 @@ { "title": "Smart Rollup Node RPCs", "description": "Smart Rollup Node RPC API for protocol ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH", - "version": "Octez 20.0 (1e5e4424)" }, + "version": "Octez 20.0 (0dcf32097f)" }, "paths": { "/describe": { "get": diff --git a/docs/api/paris-openapi.json b/docs/api/paris-openapi.json index a91c9872da26..654ed3c73a40 100644 --- a/docs/api/paris-openapi.json +++ b/docs/api/paris-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Protocol paris RPC", "description": "The RPC API for protocol paris served by the Octez node.", - "version": "Octez 20.0 (1e5e4424)" + "version": "Octez 20.0 (0dcf32097f)" }, "paths": { "/": { diff --git a/docs/api/paris-smart-rollup-node-openapi.json b/docs/api/paris-smart-rollup-node-openapi.json index 539de598f257..d7daef99455f 100644 --- a/docs/api/paris-smart-rollup-node-openapi.json +++ b/docs/api/paris-smart-rollup-node-openapi.json @@ -3,7 +3,7 @@ { "title": "Smart Rollup Node RPCs", "description": "Smart Rollup Node RPC API for protocol PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5", - "version": "Octez 20.0 (1e5e4424)" }, + "version": "Octez 20.0 (0dcf32097f)" }, "paths": { "/describe": { "get": diff --git a/docs/api/rpc-openapi.json b/docs/api/rpc-openapi.json index 2cb00f0dde44..85b5f945d8e3 100644 --- a/docs/api/rpc-openapi.json +++ b/docs/api/rpc-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez RPC", "description": "The RPC API served by the Octez node.", - "version": "Octez 20.0 (1e5e4424)" + "version": "Octez 20.0 (0dcf32097f)" }, "paths": { "/chains/{chain_id}": { -- GitLab