From 6083b1d39d3dd16a362ce9a7f2ac6e1c270d116a Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 10 Aug 2023 14:52:21 +0200 Subject: [PATCH 01/10] Docs: Update release page for Octez v17.3 --- docs/releases/version-17.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/releases/version-17.rst b/docs/releases/version-17.rst index 3a2ef199b127..2abd6d813ba3 100644 --- a/docs/releases/version-17.rst +++ b/docs/releases/version-17.rst @@ -19,20 +19,22 @@ In addition, it improves the performance of RPC responses when requesting older Version 17.2 adds a filtering mechanism which enables the Octez baker to remove ill-formed operations. +Version 17.3 improves Nairobi protocol plugins to discard operations with invalid WASM proofs earlier. + Update Instructions ------------------- To update from sources:: git fetch - git checkout v17.2 + git checkout v17.3 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 ``v17.2`` Docker images of Octez. +If you are using Docker instead, use the ``v17.3`` Docker images of Octez. You can also install Octez using Opam by running ``opam install octez``. -- GitLab From 810a0e549adddabf6003358602fc3c20ee5bbcc7 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 10 Aug 2023 15:01:58 +0200 Subject: [PATCH 02/10] OpenApi, Docs: Update OpenApi for Octez v17.3 --- docs/api/nairobi-mempool-openapi.json | 2 +- docs/api/nairobi-openapi.json | 2 +- docs/api/openapi.rst | 6 +++--- docs/api/rpc-openapi.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api/nairobi-mempool-openapi.json b/docs/api/nairobi-mempool-openapi.json index b9c1ee10b8ec..7fd3e93155a9 100644 --- a/docs/api/nairobi-mempool-openapi.json +++ b/docs/api/nairobi-mempool-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez RPC", "description": "The RPC API served by the Octez node.", - "version": "17.2" + "version": "17.3" }, "paths": { "/ban_operation": { diff --git a/docs/api/nairobi-openapi.json b/docs/api/nairobi-openapi.json index c5c7f86d3b40..058591e483b0 100644 --- a/docs/api/nairobi-openapi.json +++ b/docs/api/nairobi-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez RPC", "description": "The RPC API served by the Octez node.", - "version": "17.2" + "version": "17.3" }, "paths": { "/": { diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index 5bc143ab9004..10f86c9edf75 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -48,7 +48,7 @@ Shell RPCs The node provide some RPCs which are independent of the protocol. Their OpenAPI specification can be found at: -- `rpc-openapi.json (version 17.2) `_ +- `rpc-openapi.json (version 17.3) `_ .. TODO tezos/tezos#2170: add/remove section(s) @@ -58,12 +58,12 @@ Nairobi RPCs The OpenAPI specification for RPCs which are specific to the Nairobi (``PtNairob``) protocol can be found at: -- `nairobi-openapi.json (version 17.2) `_ +- `nairobi-openapi.json (version 17.3) `_ The OpenAPI specification for RPCs which are related to the mempool and specific to the Nairobi protocol can be found at: -- `nairobi-mempool-openapi.json (version 17.2) `_ +- `nairobi-mempool-openapi.json (version 17.3) `_ .. _openapi_generate: diff --git a/docs/api/rpc-openapi.json b/docs/api/rpc-openapi.json index c0af8214c071..039d565ee40e 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": "17.2" + "version": "17.3" }, "paths": { "/chains/{chain_id}": { -- GitLab From 489a7f1bd25a65fd8b02423d18059820db104d56 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 10 Aug 2023 15:07:55 +0200 Subject: [PATCH 03/10] Docs, Changelogs: Add changelog section for Octez v17.3 --- docs/CHANGES.rst | 6 ++++++ docs/releases/version-17.rst | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index d240e2c72584..16711346dc2a 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -3,6 +3,12 @@ Changelog ''''''''' +Version 17.3 +============ + +- Operations posting invalid WASM proofs are now discarded earlier by the + Nairobi mempool plugin. (MR :gl:`!9768`) + Version 17.2 ============ diff --git a/docs/releases/version-17.rst b/docs/releases/version-17.rst index 2abd6d813ba3..f4b6afac63a7 100644 --- a/docs/releases/version-17.rst +++ b/docs/releases/version-17.rst @@ -42,6 +42,7 @@ You can also install Octez using Opam by running ``opam install octez``. Changelog --------- +- `Version 17.3 <../CHANGES.html#version-17-3>`_ - `Version 17.2 <../CHANGES.html#version-17-2>`_ - `Version 17.1 <../CHANGES.html#version-17-1>`_ - `Version 17.0 <../CHANGES.html#version-17-0>`_ -- GitLab From 7ef394210e3efcbe15a344a663735f9d64ad3039 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Mon, 3 Jul 2023 12:15:01 +0200 Subject: [PATCH 04/10] Docs, v18: Release page for Octez v18.0~rc1 --- docs/index.rst | 1 + docs/introduction/tezos.rst | 2 ++ docs/releases/version-18.rst | 64 ++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 docs/releases/version-18.rst diff --git a/docs/index.rst b/docs/index.rst index 19b5acf357dc..bfa806f04cbb 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -248,4 +248,5 @@ Platform developers are also provided reference materials for internal APIs of O releases/releases releases/version-17 + releases/version-18 releases/history diff --git a/docs/introduction/tezos.rst b/docs/introduction/tezos.rst index b148764c4719..cc08fccf6df8 100644 --- a/docs/introduction/tezos.rst +++ b/docs/introduction/tezos.rst @@ -21,6 +21,8 @@ is available at https://gitlab.com/tezos/tezos. The current release of Octez is :doc:`../releases/version-17`. +A release candidate for the next version :doc:`../releases/version-18` is also available. + For installing instructions, see :doc:`./howtoget`. .. _tezos_community: diff --git a/docs/releases/version-18.rst b/docs/releases/version-18.rst new file mode 100644 index 000000000000..d2aa529da0ab --- /dev/null +++ b/docs/releases/version-18.rst @@ -0,0 +1,64 @@ +Version 18.0~rc1 +================ + +Version 18.0 contains a new version (V10) of the protocol environment, +which is the set of functions that a protocol can call. +This new version is used by protocol :doc:`Oxford <../protocols/018_oxford>`, +which is a proposal for the successor of Nairobi. +This release also contains Oxford itself as well as its associated protocol-specific executable binaries (baker, accuser, etc). + +Starting from Oxford, Endorsements have been renamed to Attestations. +Thus, Octez now uses Attestations: + +- | RPCs now accept both endorsements and attestations as input and/or output. For now, these RPCs still output endorsement by default. For more information see the :doc:`OpenAPI specifications here <../api/openapi>`. + | Please note that the endorsement RPCs versions are considered as deprecated and will be removed in the next Octez major version (''v19.x''). +- Client, baker, and accuser executables use ``attestation`` instead of ``endorsement`` in error messages and events. + +DAC node and client executables are released for experimental usage only. +Users can experimentally integrate a DAC in their Smart Rollups workflow to achieve higher data throughput and lower gas fees. +Please refer to :doc:`Data Availability Committees <../shell/data_availability_committees>` for more details. + +Octez version 18 improves performance, notably to the block validation process: total validation time is halved on average, resulting in a reduced block propagation time. + +As Oxford includes a new Staking mechanism, version 18 of Octez implements new client commands for stake funds management, and to allow delegates to configure their staking policies. See `Adaptive Issuance and Staking `_ for more details. + +Oxford's feature activation vote +-------------------------------- + +The Oxford protocol includes 3 features (all part of Adaptive Issuance and the new Staking mechanism), which would not be immediately available upon the protocol's eventual activation: + +- Adaptive issuance; +- the ability for *delegators* to become *stakers*; and, +- the changes in weight for *staked* and *delegated* funds towards the computation of baking and voting rights. + +Instead, these are guarded behind a *single* per-block vote mechanism, where bakers signal their position **(Yes, No, Pass)**. + +Specifically, the Octez v18.0~rc1 Oxford baker executable introduces a dedicated option ``--adaptive-issuance-vote``, to allow bakers to manifest their choice. +The use of this flag is *optional*, and defaults to **Pass** if not present. + +See `here `__ for further details on this additional activation vote mechanism. + + +Update Instructions +------------------- + +To update from sources:: + + git fetch + git checkout v18.0-rc1 + 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 ``v18.0-rc1`` Docker images of Octez. + +You can also install Octez using Opam by running ``opam install octez``. + +.. warning:: + + Starting from Octez v18, the opam packages are being reworked. + Octez is now composed of less packages, containing the former packages as sub-libraries. + + For more details, see :doc:`the OCaml API <../api/api-inline>`. -- GitLab From 8ea5d6f88a788fcb88e0e3efa921d0814e4148ea Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Wed, 9 Aug 2023 15:33:32 +0200 Subject: [PATCH 05/10] Docs, v18: Snapshot changelogs for Octez v18.0~rc1 --- CHANGES.rst | 308 +------------------------------ docs/CHANGES.rst | 343 +++++++++++++++++++++++++++++++++++ docs/releases/version-18.rst | 5 + 3 files changed, 349 insertions(+), 307 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 829ac8289521..9eb5b2a5ae18 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -28,347 +28,41 @@ General Node ---- -- Changed the bounding specification of valid operations in the mempool: - - + Before, the number of valid **manager operations** in the mempool - was at most ``max_prechecked_manager_operations`` (default 5_000), - with no other constraints. (Operations to keep were selected - according to a "weight" that consists in the ratio of fee over - "resources"; the latter is the maximum between the following - ratios: operation gas over maximal allowed gas, and operation size - over maximal allowed size. The baker uses the same notion of - "weight" to select operations.) - - + Now, the number of valid **operations of any kind** is at most - ``max_operations`` (default 10_000), and also the **sum of the - sizes in bytes** of all valid operations is at most - ``max_total_bytes`` (default 10_000_000). See - [src/lib_shell/prevalidator_bounding.mli] for the reasoning behind - the default values. (Operations are selected according to the - protocol's ``compare_operations`` function, which currently orders - operations according to their validation pass (consensus is - highest and manager is lowest); note that two manager operations - are ordered using their fee over gas ratio.) - - The values of ``max_operations`` and ``max_total_bytes`` can be - retrieved with ``GET /chains//mempool/filter`` and configured - with ``POST /chains//mempool/filter`` (just as - ``max_prechecked_manager_operations`` used to be). As a result, the - JSON format of the outputs of these two RPCs and the input of the - second one have slightly changed; see their updated descriptions. - (MR :gl:`!6787`) - -- Errors ``prefilter.fees_too_low_for_mempool`` and - ``plugin.removed_fees_too_low_for_mempool`` have been replaced with - ``node.mempool.rejected_by_full_mempool`` and - ``node.mempool.removed_from_full_mempool`` with different - descriptions and messages. The ``rejected_by_full_mempool`` error - still indicates the minimal fee that the operation would need to be - accepted by the full mempool, provided that such a fee exists. If - not, the error now states that the operation cannot be included no - matter its fee (e.g. if it is a non-manager operation). (MRs - :gl:`!6787`, :gl:`!8640`) - -- Updated the message of the mempool's - ``prevalidation.operation_conflict`` error. It now provides the - minimal fee that the operation would need to replace the - pre-existing conflicting operation, when such a fee exists. (This - fee indication used to be available before V16-rc1, where it had - been removed for technical reasons.) (MR :gl:`!9016`) - -- RPC ``/helpers/forge/operations`` can now take JSON formatted operations with - ``attestation``, ``preattestation``, ``double_attestation_evidence`` and - ``double_preattestation_evidence`` kinds. Note that the existing kinds - ``endorsement``, ``preendorsement``, ``double_endorsement_evidence``, and - ``double_preendorsement_evidence`` are still accepted. (MR :gl:`!8746`) - -- Simplified the peer to peer messages at head switch. The node now - systematically broadcasts only its new head (instead of sometime - broadcasting a sparse history of the chain). - -- Added version ``1`` to RPC ``POST ../helpers/parse/operations``. It can be - used by calling the RPC with the parameter ``?version=1`` (default version is - still ``0``). Version ``1`` allows the RPC to output ``attestation``, - ``preattestation``, ``double_attestation_evidence`` and - ``double_preattestation_evidence`` kinds in the JSON result. (MR :gl:`!8840`) - -- Added version ``2`` to RPC ``GET ../mempool/pending_operations``. It can be - used by calling the RPC with the parameter ``?version=2`` (default version is - still ``1``). Version ``2`` allows the RPC to output ``attestation``, - ``preattestation``, ``double_attestation_evidence`` and - ``double_preattestation_evidence`` kinds in the JSON result. This version - also renames the ``applied`` field of the result to ``validated`` - (MRs :gl:`!8960`, :gl:`!9143`) - -- RPCs ``/helpers/scripts/run_operation`` and - ``/helpers/scripts/simulate_operation`` can now take JSON formatted operations - with ``double_attestation_evidence`` and ``double_preattestation_evidence`` - kinds. Even though consensus operations are not supported by the RPCs, - ``attestation`` and ``preattestation`` are accepted in the input JSON. (MR - :gl:`!8768`) - -- Removed ``lwt-log`` from the dependencies. The default logger has been updated - to use the ``file-descriptor-stdout`` sink instead of the previous ``lwt-log`` - sink. This change has resulted in the removal of certain features from the log - implementation that were specific to "lwt-log". Some features, such as log - rules, syslog, and the output format, have been replaced with alternative - implementations. Additionally, the previous implementation of "syslog" had - some issues, including duplicated log headers or cropped messages, depending - on the file output. These issues have been addressed, and the new - implementation should now work correctly. - -- Removed ``template`` field from ``log`` configuration with the removal of - ``lwt-log`` library. Since it was believed to have low usage, no alternative - implementation has been provided. - -- The configuration flag ``disable-mempool-precheck`` is now - deprecated, as well as the ``disable_precheck`` field of - ``prevalidator`` in the shell limits of the configuration file. They - already didn't do anything since V16-rc1. (MR :gl:`!8963`) - -- Added version ``1`` to RPCs ``POST ../helpers/scripts/run_operation`` and - ``POST ../helpers/scripts/simulate_operation``. It can be used by calling the - RPC with the parameter ``?version=1`` (default version is still ``0``). - Version ``1`` allows the RPC to output ``attestation``, ``preattestation``, - ``double_attestation_evidence`` and ``double_preattestation_evidence`` kinds - in the JSON result. (MR :gl:`!8949`) - -- The error message when the local injection of an operation fails now - begins with ``Error while validating injected operation`` instead of - ``Error while applying operation``. (MR :gl:`!8857`) - -- Updated the description of the ``ban_operation`` RPC to better - reflect its behavior, which is unchanged. (More precisely, removed - the "reverting its effect if it was applied" part since operations - are never applied.) (MR :gl:`!8857`) - -- Added version ``1`` to RPC ``GET ../mempool/monitor_operations``. It can be - used by calling the RPC with the parameter ``?version=1`` (default version is - still ``0``). Version ``1`` allows the RPC to output ``attestation``, - ``preattestation``, ``double_attestation_evidence`` and - ``double_preattestation_evidence`` kinds in the JSON result. (MR :gl:`!8980`) - -- Improved the performances of JSON RPC calls by optimizing the - serialization to JSON. (MR :gl:`!9072`) - -- Fixed the ``validation_pass`` argument usage of ``monitor_operations`` RPC. - Only operation that were in the mempool before the RPC call were filtered by - validation passes. (MR :gl:`!9012`) - -- **Breaking change** Removed the ``octez_mempool_pending_applied`` - metric, and renamed the ``octez_mempool_pending_prechecked`` one to - ``octez_mempool_pending_validated``. (MR :gl:`!9137`) - -- Added version ``1`` to RPC ``POST ../helpers/preapply/operations``. It can be - used by calling the RPC with the parameter ``?version=1`` (default version is - still ``0``). Version ``1`` allows the RPC to output ``attestation``, - ``preattestation``, ``double_attestation_evidence`` and - ``double_preattestation_evidence`` kinds in the JSON result. (MR :gl:`!8891`) - -- Changed default stdout logs by adding simple coloration. The log header - header is now bold and warning and errors are highlighted. The - ``--log-coloring`` command line argument can be used to enable or - disable logs coloration on default stdout logs; it is enabled by - default. (MR :gl:`!8685`) - -- Improved the performance of block validation: the block validation time has - been reduced by half on average, resulting in a reduced propagation time - through the network. (MR :gl:`!9100`) - -- Added ``validated`` argument for ``GET ../mempool/monitor_operations`` and - ``GET ../mempool/pending_operations``. ``applied`` argument of these RPCs is - deprecated. (MR :gl:`!9143`) - -- Added version ``1`` to RPCs ``GET ../blocks/``, and ``GET - ../blocks//operations``. It can be used by calling the RPC with the - parameter ``?version=1`` (default version is still ``0``). Version ``1`` - allows the RPC to output ``attestation``, ``preattestation``, - ``double_attestation_evidence`` and ``double_preattestation_evidence`` kinds - in the JSON result. (MR :gl:`!9008`) - -- When an operation in the mempool gets replaced with a better - conflicting operation (e.g. an operation from the same manager with - higher fees), the replaced operation is now reclassified as - ``branch_delayed`` instead of ``outdated``. The associated error - ``prevalidation.operation_replacement`` is otherwise unchanged. This - makes it consistent with the reverse situation: when the new - operation is worse than the old conflicting one, the new operation - is classified as ``branch_delayed`` with the - ``prevalidation.operation_conflict`` error. (MR :gl:`!9314`) - -- In RPC ``/protocol_data``, ``"per_block_votes"`` replaces ``"liquidity_baking_toggle_vote"``; - ``"per_block_votes"`` has two properties ``"liquidity_baking_vote"`` and ``"adaptive_issuance_vote"``. - A vote is one of ``"on"``, ``"off"``, ``"pass"``. - -- Added version ``1`` to RPC ``GET ../blocks//metadata``. It can be used - by calling the RPC with the parameter ``?version=1`` (default version is still - ``0``). Version ``1`` of this RPC and ``GET ../blocks/`` allow the RPC - to output ``attesting rewards`` and ``lost attesting rewards`` kinds in the - JSON result. (MR :gl:`!9253`) - -- Fixed a behavior where each time a new data was received from a - peer, a new p2p request would be triggered instead of waiting for - the delayed retry. (MR :gl:`!9470`) - -- Renamed RPC server events: Added section ``rpc_server`` and changed - names from ``legacy_logging_event-rpc_http_event-`` into - ``rpc_http_event_``. - -- Reduced the workload of the mempool by preventing unnecessary worker - requests to be made and fixed a data-race that would request a - resource that was already received. (MR :gl:`!9520`) - -- Event ``block.validation.protocol_filter_not_found`` renamed to - ``block.validation.validation_plugin_not_found`` with updated - message ``no validation plugin found for protocol - ``. (MR :gl:`!9583`) - -- Add RPC to get smart rollup's balance of ticket with specified ticketer, content type, and content: - ``POST chains//blocks//context/smart_rollups/smart_rollup//ticket_balance`` - (MR :gl:`!9535`) - -- **Breaking change** Removed ``mumbainet`` network alias. (MR :gl:`!9694`) - -- Removed Mumbai mempool plugin. (MR :gl:`!9696`) - -- Operations posting invalid WASM proofs are now discarded earlier by the - Nairobi mempool plugin. (MR :gl:`!`) - Client ------ -- Adding client commands to generate, open and verify a time-lock. - -- The ``typecheck script`` command can now be used to typecheck several scripts. - -- From protocol ``alpha`` operation receipt output ``attestation`` instead of - ``endorsement``. For example ``double preendorsement evidence`` become - ``double preattesation evidence``, ``lost endorsing rewards`` become ``lost - attesting rewards``. (MR :gl:`!9232`) - -- Add ``attest for`` and ``preattest for`` commands. ``endorse for`` and - ``preendorse for`` are now deprecated. (MR :gl:`!9494`) - -- **Breaking change** Removed read-write commands specific to Mumbai (MR :gl:`!9695`) - -- Added new client commands related to the new staking mechanisms: - ``stake``, ``unstake``, ``finalize unstake``, ``set delegate parameters``, - ``get full balance`` and ``get staked balance``. (MR :gl:`!9642`) Baker ----- -- Changed the baker liquidity baking vote file - ``per_block_votes.json`` lookup so that it also considers its client - data directory when searching an existing file. The previous - semantics, which looks for this file in the current working - directory, takes predecence. - -- Bakers are now asked (but not required) to set their votes for the adoption of the - adaptive issuance feature. They may use the CLI option ``--adaptive-issuance-vote`` - or the per-block votes file (which is re-read at each block, and overrides the CLI option). - Absence of vote is equivalent to voting "pass". - -- **Breaking change** Rename ``liquidity_baking_toggle_vote`` into - ``read_liquidity_baking_toggle_vote`` (MR :gl:`!9464`) - and ``reading_per_block`` into ``reading_per_block_votes`` (MR :gl:`!8661`), - for baker events. - -- **Breaking change** Rename ``endorsement`` into ``attestation`` for baker errors and events. - (MR :gl:`!9195`) - -- Cached costly RPC calls made when checking if nonces need to be - revealed. (MR :gl:`!9601`) - Accuser ------- -- **Breaking change** Rename ``endorsement`` into ``attestation`` for accuser errors and events. - (MR :gl:`!9196`) - -Signer ------- - Proxy Server ------------ -- Redirected not found replies (HTTP 404 answers) to the underlying - octez-node itself. Public visibility of the node is not required - anymore. - Protocol Compiler And Environment --------------------------------- -- Added a new version of the protocol environment (V10) - - - Exposed a limited API to manipulate an Irmin binary tree within the - protocol. - - - Expose encoding with legacy attestation name. (MR :gl:`!8620`) - Codec ----- Docker Images ------------- -- Bump up base image to ``alpine:3.17``. In particular, this changes Rust - version to 1.64.0. - Smart Rollup node ----------------- -- Faster bootstrapping process. (MR :gl:`!8618`, MR :gl:`!8767`) -- Single, protocol-agnostic, rollup node binary. The rollup node - ``octez-smart-rollup-node`` works with any protocol and supports protocol - upgrades. The other protocol specific rollup nodes still exist but will be - deprecated. (MR :gl:`!9105`) - -- Added a new metrics ``head_inbox_process_time`` to report the time the rollup - node spent to process a new Layer 1 head. (MR :gl:`!8971`) - -- **Breaking change** Field ``"messages"`` of RPC ``/global/block/{block_id}`` - now contains *serialized* messages (external messages start with ``01`` and - internal start with ``00``). (MR :gl:`!8876`) - -- **Breaking change** RPC ``/global/helpers/proof/outbox`` is moved to - ``/global/block/head/helpers/proof/outbox``. (MR :gl:`!9233`) - - Smart Rollup client ------------------- Smart Rollup WASM Debugger -------------------------- -- Changed the syntax for the ``octez-smart-rollup-wasm-debugger`` to have the ``--kernel`` - argument before the kernel file. (MR :gl:`!9318`) -- ``profile`` commands now profiles the time spent in each steps of a PVM - execution. It can be disabled with the option ``--without-time`` (MR - :gl:`!9335`). -- Added option ``--no-reboot`` to the ``profile`` command to profile a single - ``kernel_run``. -- Improved profiling output for consecutive kernel runs. -- Allow serialized messages in inputs: ``{ "serialized": "01..." }``, instead - of only external and internal transfers. This allows to inject arbitrary - messages in the rollup. (MR :gl:`!9613`) - Added flag ``--no-kernel-debug`` to deactivate the kernel debug messages. (MR :gl:`!9813`) Data Availability Committee (DAC) ----------------------------------- -- Released Data Availability Committee executables which include ``octez-dac-node`` - and ``octez-dac-client`` as part of an experimental release. Users can experiment - with operating and using DAC in their Smart Rollup workflow to achieve higher data - throughput. It is not recommended to use DAC on Mainnet but instead on testnets - and lower environments. +--------------------------------- Miscellaneous ------------- - -- Updating and re-enabling the time-lock Michelson commands. - -- Recommend rust version 1.64.0 instead of 1.60.0. - -- Sapling parameters files are installed by ``make build-deps`` via opam - -- Removed binaries of Mumbai (MR :gl:`!9693`) diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 16711346dc2a..82f4410d6632 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -3,6 +3,349 @@ Changelog ''''''''' +Version 18.0-rc1 +================ + +Node +---- + +- Changed the bounding specification of valid operations in the mempool: + + + Before, the number of valid **manager operations** in the mempool + was at most ``max_prechecked_manager_operations`` (default 5_000), + with no other constraints. (Operations to keep were selected + according to a "weight" that consists in the ratio of fee over + "resources"; the latter is the maximum between the following + ratios: operation gas over maximal allowed gas, and operation size + over maximal allowed size. The baker uses the same notion of + "weight" to select operations.) + + + Now, the number of valid **operations of any kind** is at most + ``max_operations`` (default 10_000), and also the **sum of the + sizes in bytes** of all valid operations is at most + ``max_total_bytes`` (default 10_000_000). See + [src/lib_shell/prevalidator_bounding.mli] for the reasoning behind + the default values. (Operations are selected according to the + protocol's ``compare_operations`` function, which currently orders + operations according to their validation pass (consensus is + highest and manager is lowest); note that two manager operations + are ordered using their fee over gas ratio.) + + The values of ``max_operations`` and ``max_total_bytes`` can be + retrieved with ``GET /chains//mempool/filter`` and configured + with ``POST /chains//mempool/filter`` (just as + ``max_prechecked_manager_operations`` used to be). As a result, the + JSON format of the outputs of these two RPCs and the input of the + second one have slightly changed; see their updated descriptions. + (MR :gl:`!6787`) + +- Errors ``prefilter.fees_too_low_for_mempool`` and + ``plugin.removed_fees_too_low_for_mempool`` have been replaced with + ``node.mempool.rejected_by_full_mempool`` and + ``node.mempool.removed_from_full_mempool`` with different + descriptions and messages. The ``rejected_by_full_mempool`` error + still indicates the minimal fee that the operation would need to be + accepted by the full mempool, provided that such a fee exists. If + not, the error now states that the operation cannot be included no + matter its fee (e.g. if it is a non-manager operation). (MRs + :gl:`!6787`, :gl:`!8640`) + +- Updated the message of the mempool's + ``prevalidation.operation_conflict`` error. It now provides the + minimal fee that the operation would need to replace the + pre-existing conflicting operation, when such a fee exists. (This + fee indication used to be available before v16, where it had + been removed for technical reasons.) (MR :gl:`!9016`) + +- RPC ``/helpers/forge/operations`` can now take JSON formatted operations with + ``attestation``, ``preattestation``, ``double_attestation_evidence`` and + ``double_preattestation_evidence`` kinds. Note that the existing kinds + ``endorsement``, ``preendorsement``, ``double_endorsement_evidence``, and + ``double_preendorsement_evidence`` are still accepted. (MR :gl:`!8746`) + +- Simplified the peer to peer messages at head switch. The node now + systematically broadcasts only its new head (instead of sometime + broadcasting a sparse history of the chain). + +- Added version ``1`` to RPC ``POST ../helpers/parse/operations``. It can be + used by calling the RPC with the parameter ``?version=1`` (default version is + still ``0``). Version ``1`` allows the RPC to output ``attestation``, + ``preattestation``, ``double_attestation_evidence`` and + ``double_preattestation_evidence`` kinds in the JSON result. (MR :gl:`!8840`) + +- Added version ``2`` to RPC ``GET ../mempool/pending_operations``. It can be + used by calling the RPC with the parameter ``?version=2`` (default version is + still ``1``). Version ``2`` allows the RPC to output ``attestation``, + ``preattestation``, ``double_attestation_evidence`` and + ``double_preattestation_evidence`` kinds in the JSON result. This version + also renames the ``applied`` field of the result to ``validated`` + (MRs :gl:`!8960`, :gl:`!9143`) + +- RPCs ``/helpers/scripts/run_operation`` and + ``/helpers/scripts/simulate_operation`` can now take JSON formatted operations + with ``double_attestation_evidence`` and ``double_preattestation_evidence`` + kinds. Even though consensus operations are not supported by the RPCs, + ``attestation`` and ``preattestation`` are accepted in the input JSON. (MR + :gl:`!8768`) + +- Removed ``lwt-log`` from the dependencies. The default logger has been updated + to use the ``file-descriptor-stdout`` sink instead of the previous ``lwt-log`` + sink. This change has resulted in the removal of certain features from the log + implementation that were specific to "lwt-log". Some features, such as log + rules, syslog, and the output format, have been replaced with alternative + implementations. Additionally, the previous implementation of "syslog" had + some issues, including duplicated log headers or cropped messages, depending + on the file output. These issues have been addressed, and the new + implementation should now work correctly. + +- Removed ``template`` field from ``log`` configuration with the removal of + ``lwt-log`` library. Since it was believed to have low usage, no alternative + implementation has been provided. + +- The configuration flag ``disable-mempool-precheck`` is now + deprecated, as well as the ``disable_precheck`` field of + ``prevalidator`` in the shell limits of the configuration file. They + already didn't do anything since v16. (MR :gl:`!8963`) + +- Added version ``1`` to RPCs ``POST ../helpers/scripts/run_operation`` and + ``POST ../helpers/scripts/simulate_operation``. It can be used by calling the + RPC with the parameter ``?version=1`` (default version is still ``0``). + Version ``1`` allows the RPC to output ``attestation``, ``preattestation``, + ``double_attestation_evidence`` and ``double_preattestation_evidence`` kinds + in the JSON result. (MR :gl:`!8949`) + +- The error message when the local injection of an operation fails now + begins with ``Error while validating injected operation`` instead of + ``Error while applying operation``. (MR :gl:`!8857`) + +- Updated the description of the ``ban_operation`` RPC to better + reflect its behavior, which is unchanged. (More precisely, removed + the "reverting its effect if it was applied" part since operations + are never applied.) (MR :gl:`!8857`) + +- Added version ``1`` to RPC ``GET ../mempool/monitor_operations``. It can be + used by calling the RPC with the parameter ``?version=1`` (default version is + still ``0``). Version ``1`` allows the RPC to output ``attestation``, + ``preattestation``, ``double_attestation_evidence`` and + ``double_preattestation_evidence`` kinds in the JSON result. (MR :gl:`!8980`) + +- Improved the performances of JSON RPC calls by optimizing the + serialization to JSON. (MR :gl:`!9072`) + +- Fixed the ``validation_pass`` argument usage of ``monitor_operations`` RPC. + Only operation that were in the mempool before the RPC call were filtered by + validation passes. (MR :gl:`!9012`) + +- **Breaking change** Removed the ``octez_mempool_pending_applied`` + metric, and renamed the ``octez_mempool_pending_prechecked`` one to + ``octez_mempool_pending_validated``. (MR :gl:`!9137`) + +- Added version ``1`` to RPC ``POST ../helpers/preapply/operations``. It can be + used by calling the RPC with the parameter ``?version=1`` (default version is + still ``0``). Version ``1`` allows the RPC to output ``attestation``, + ``preattestation``, ``double_attestation_evidence`` and + ``double_preattestation_evidence`` kinds in the JSON result. (MR :gl:`!8891`) + +- Changed default stdout logs by adding simple coloration. The log header + header is now bold and warning and errors are highlighted. The + ``--log-coloring`` command line argument can be used to enable or + disable logs coloration on default stdout logs; it is enabled by + default. (MR :gl:`!8685`) + +- Improved the performance of block validation: the block validation time has + been reduced by half on average, resulting in a reduced propagation time + through the network. (MR :gl:`!9100`) + +- Added ``validated`` argument for ``GET ../mempool/monitor_operations`` and + ``GET ../mempool/pending_operations``. ``applied`` argument of these RPCs is + deprecated. (MR :gl:`!9143`) + +- Added version ``1`` to RPCs ``GET ../blocks/``, and ``GET + ../blocks//operations``. It can be used by calling the RPC with the + parameter ``?version=1`` (default version is still ``0``). Version ``1`` + allows the RPC to output ``attestation``, ``preattestation``, + ``double_attestation_evidence`` and ``double_preattestation_evidence`` kinds + in the JSON result. (MR :gl:`!9008`) + +- When an operation in the mempool gets replaced with a better + conflicting operation (e.g. an operation from the same manager with + higher fees), the replaced operation is now reclassified as + ``branch_delayed`` instead of ``outdated``. The associated error + ``prevalidation.operation_replacement`` is otherwise unchanged. This + makes it consistent with the reverse situation: when the new + operation is worse than the old conflicting one, the new operation + is classified as ``branch_delayed`` with the + ``prevalidation.operation_conflict`` error. (MR :gl:`!9314`) + +- In RPC ``/protocol_data``, ``"per_block_votes"`` replaces ``"liquidity_baking_toggle_vote"``; + ``"per_block_votes"`` has two properties ``"liquidity_baking_vote"`` and ``"adaptive_issuance_vote"``. + A vote is one of ``"on"``, ``"off"``, ``"pass"``. + +- Added version ``1`` to RPC ``GET ../blocks//metadata``. It can be used + by calling the RPC with the parameter ``?version=1`` (default version is still + ``0``). Version ``1`` of this RPC and ``GET ../blocks/`` allow the RPC + to output ``attesting rewards`` and ``lost attesting rewards`` kinds in the + JSON result. (MR :gl:`!9253`) + +- Fixed a behavior where each time a new data was received from a + peer, a new p2p request would be triggered instead of waiting for + the delayed retry. (MR :gl:`!9470`) + +- Renamed RPC server events: Added section ``rpc_server`` and changed + names from ``legacy_logging_event-rpc_http_event-`` into + ``rpc_http_event_``. + +- Reduced the workload of the mempool by preventing unnecessary worker + requests to be made and fixed a data-race that would request a + resource that was already received. (MR :gl:`!9520`) + +- Event ``block.validation.protocol_filter_not_found`` renamed to + ``block.validation.validation_plugin_not_found`` with updated + message ``no validation plugin found for protocol + ``. (MR :gl:`!9583`) + +- Added RPC to get smart rollup's balance of ticket with specified ticketer, content type, and content: + ``POST chains//blocks//context/smart_rollups/smart_rollup//ticket_balance`` + (MR :gl:`!9535`) + +- **Breaking change** Removed ``mumbainet`` network alias. (MR :gl:`!9694`) + +- Removed Mumbai mempool plugin. (MR :gl:`!9696`) + +Client +------ + +- Added client commands to generate, open and verify a time-lock. + +- The ``typecheck script`` command can now be used to typecheck several scripts. + +- From protocol ``Oxford`` operation receipts output ``attestation`` instead of + ``endorsement``. For example ``double preendorsement evidence`` becomes + ``double preattesation evidence``, ``lost endorsing rewards`` becomes ``lost + attesting rewards``. (MR :gl:`!9232`) + +- Add ``attest for`` and ``preattest for`` commands. ``endorse for`` and + ``preendorse for`` are now deprecated. (MR :gl:`!9494`) + +- **Breaking change** Removed read-write commands specific to Mumbai (MR :gl:`!9695`) + +- Added new client commands related to the new staking mechanisms: + ``stake``, ``unstake``, ``finalize unstake``, ``set delegate parameters``, + ``get full balance`` and ``get staked balance``. (MR :gl:`!9642`) + +Baker +----- + +- Changed the baker liquidity baking vote file + ``per_block_votes.json`` lookup so that it also considers its client + data directory when searching an existing file. The previous + semantics, which looks for this file in the current working + directory, takes precedence. + +- Bakers are now asked (but not required) to set their votes for the adoption of the + adaptive issuance feature. They may use the CLI option ``--adaptive-issuance-vote`` + or the per-block votes file (which is re-read at each block, and overrides the CLI option). + Absence of vote is equivalent to voting "pass". + +- **Breaking change** Renamed ``liquidity_baking_toggle_vote`` into + ``read_liquidity_baking_toggle_vote`` (MR :gl:`!9464`) + and ``reading_per_block`` into ``reading_per_block_votes`` (MR :gl:`!8661`), + for baker events. + +- **Breaking change** Renamed ``endorsement`` into ``attestation`` for baker errors and events. + (MR :gl:`!9195`) + +- Cached costly RPC calls made when checking if nonces need to be + revealed. (MR :gl:`!9601`) + +Accuser +------- + +- **Breaking change** Renamed ``endorsement`` into ``attestation`` for accuser errors and events. + (MR :gl:`!9196`) + +Proxy Server +------------ + +- Redirected not found replies (HTTP 404 answers) to the underlying + octez-node itself. Public visibility of the node is not required + anymore. + +Protocol Compiler And Environment +--------------------------------- + +- Added a new version of the protocol environment (V10) + + - Exposed a limited API to manipulate an Irmin binary tree within the + protocol. + + - Exposed encoding with legacy attestation name. (MR :gl:`!8620`) + +Docker Images +------------- + +- Bumped up base image to ``alpine:3.17``. In particular, this changes Rust + version to 1.64.0. + +Smart Rollup node +----------------- + +- Faster bootstrapping process. (MR :gl:`!8618`, MR :gl:`!8767`) + +- Single, protocol-agnostic, rollup node binary. The rollup node + ``octez-smart-rollup-node`` works with any protocol and supports protocol + upgrades. The other protocol specific rollup nodes still exist but will be + deprecated. (MR :gl:`!9105`) + +- Added a new metrics ``head_inbox_process_time`` to report the time the rollup + node spent to process a new Layer 1 head. (MR :gl:`!8971`) + +- **Breaking change** Field ``"messages"`` of RPC ``/global/block/{block_id}`` + now contains *serialized* messages (external messages start with ``01`` and + internal start with ``00``). (MR :gl:`!8876`) + +- **Breaking change** RPC ``/global/helpers/proof/outbox`` is moved to + ``/global/block/head/helpers/proof/outbox``. (MR :gl:`!9233`) + +Smart Rollup WASM Debugger +-------------------------- + +- Changed the syntax for the ``octez-smart-rollup-wasm-debugger`` to prefix the + the kernel file by ``--kernel``. (MR :gl:`!9318`) + +- ``profile`` commands now profiles the time spent in each steps of a PVM + execution. It can be disabled with the option ``--without-time`` (MR + :gl:`!9335`). + +- Added option ``--no-reboot`` to the ``profile`` command to profile a single + ``kernel_run``. + +- Improved profiling output for consecutive kernel runs. + +- Allow serialized messages in inputs: ``{ "serialized": "01..." }``, instead + of only external and internal transfers. This allows to inject arbitrary + messages in the rollup. (MR :gl:`!9613`) + +Data Availability Committee (DAC) +--------------------------------- + +- Released experimental Data Availability Committee executables which include ``octez-dac-node`` + and ``octez-dac-client``. Users can thus experiment + with operating and using DAC in their Smart Rollup workflow to achieve higher data + throughput. It is not recommended to use DAC on Mainnet but instead on testnets + and lower environments. + +Miscellaneous +------------- + +- Updated and re-enabled the time-lock Michelson commands. + +- New Recommended Rust version 1.64.0 instead of 1.60.0. + +- Sapling parameters files are now installed by ``make build-deps`` via Opam + +- Removed binaries of Mumbai (MR :gl:`!9693`) + Version 17.3 ============ diff --git a/docs/releases/version-18.rst b/docs/releases/version-18.rst index d2aa529da0ab..900310210d13 100644 --- a/docs/releases/version-18.rst +++ b/docs/releases/version-18.rst @@ -62,3 +62,8 @@ You can also install Octez using Opam by running ``opam install octez``. Octez is now composed of less packages, containing the former packages as sub-libraries. For more details, see :doc:`the OCaml API <../api/api-inline>`. + +Changelog +--------- + +- `Version 18.0~rc1 <../CHANGES.html#version-18-0-rc1>`_ -- GitLab From 186f5acf5fe68d30748921c748affe817c90faf3 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Mon, 3 Jul 2023 15:47:55 +0200 Subject: [PATCH 06/10] Openapi: Update openapi generation script for release candidate --- src/bin_openapi/generate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin_openapi/generate.sh b/src/bin_openapi/generate.sh index bb7c1bf19594..6c2b4b193554 100755 --- a/src/bin_openapi/generate.sh +++ b/src/bin_openapi/generate.sh @@ -35,9 +35,9 @@ proto_api_json=$tmp/proto-api.json mempool_api_json=$tmp/mempool-api.json # Generated files. -openapi_json=docs/api/rpc-openapi.json -proto_openapi_json=docs/api/$protocol_name-openapi.json -mempool_openapi_json=docs/api/$protocol_name-mempool-openapi.json +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 # Get version number. version=$(dune exec tezos-version) -- GitLab From 3231249ceb35f373fc8d98623d402dc10a89a824 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 4 Jul 2023 11:07:44 +0200 Subject: [PATCH 07/10] Docs, OpenApi: Regenerate OpenApi for Octez v18.0~rc1 --- docs/api/openapi.rst | 2 + docs/api/rpc-openapi-rc.json | 11098 +++++++++++++++++++++++++++++++++ 2 files changed, 11100 insertions(+) create mode 100644 docs/api/rpc-openapi-rc.json diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index 10f86c9edf75..455147ff735f 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -50,6 +50,8 @@ Their OpenAPI specification can be found at: - `rpc-openapi.json (version 17.3) `_ +- `rpc-openapi-rc.json (version 18.0~rc1) `_ + .. TODO tezos/tezos#2170: add/remove section(s) Nairobi RPCs diff --git a/docs/api/rpc-openapi-rc.json b/docs/api/rpc-openapi-rc.json new file mode 100644 index 000000000000..28bd077ab60b --- /dev/null +++ b/docs/api/rpc-openapi-rc.json @@ -0,0 +1,11098 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez RPC", + "description": "The RPC API served by the Octez node.", + "version": "18.0~rc1" + }, + "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" + } + }, + "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" + ] + } + } + }, + "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 + }, + "disable_precheck": { + "type": "boolean" + } + } + }, + "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": "mumbainet", + "type": "string", + "enum": [ + "mumbainet" + ] + }, + { + "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": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "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": [ + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + } + ] + }, + "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": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "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": [ + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + } + ] + }, + "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`" + } + } + } + } + } + } + }, + "/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/valid_blocks": { + "get": { + "description": "(Deprecated) Monitor all blocks that are successfully applied 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": { + "title": "Block header", + "description": "Block header. It contains both shell and protocol specific data.", + "type": "object", + "properties": { + "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" + }, + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "chain_id", + "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/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/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.", + "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}/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.", + "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/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.", + "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}/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.", + "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/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", + "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`" + } + } + } + } + } + } + }, + "/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)", + "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" + ] + } + ] + } + }, + "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" + }, + "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" + ] + } + } + } + } +} -- GitLab From c614ebd00ca9bf198cb0f3185dcdf2bc49ecd9a2 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Tue, 4 Jul 2023 11:08:41 +0200 Subject: [PATCH 08/10] Docs, OpenApi: Regenerate OpenApi for Nairobi on v18.0~rc1 --- docs/api/nairobi-mempool-openapi-rc.json | 3820 ++++ docs/api/nairobi-openapi-rc.json | 22831 +++++++++++++++++++++ docs/api/openapi.rst | 8 +- 3 files changed, 26657 insertions(+), 2 deletions(-) create mode 100644 docs/api/nairobi-mempool-openapi-rc.json create mode 100644 docs/api/nairobi-openapi-rc.json diff --git a/docs/api/nairobi-mempool-openapi-rc.json b/docs/api/nairobi-mempool-openapi-rc.json new file mode 100644 index 000000000000..16357e05ca14 --- /dev/null +++ b/docs/api/nairobi-mempool-openapi-rc.json @@ -0,0 +1,3820 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez RPC", + "description": "The RPC API served by the Octez node.", + "version": "18.0~rc1" + }, + "paths": { + "/ban_operation": { + "post": { + "description": "Remove an operation from the mempool if present. Also add it to the set of banned operations to prevent it from being fetched/processed/injected in the future. Note: If the baker has already received the operation, then it's necessary to restart it to flush the operation from it.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "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`" + } + } + } + } + } + } + }, + "/filter": { + "get": { + "description": "Get the configuration of the mempool's filter and bounds. Values of the form [ \"21\", \"20\" ] are rational numbers given as a numerator and a denominator, e.g. 21/20 = 1.05. The minimal_fees (in mutez), minimal_nanotez_per_gas_unit, and minimal_nanotez_per_byte are requirements that a manager operation must meet to be considered by the mempool. replace_by_fee_factor is how much better a manager operation must be to replace a previous valid operation **from the same manager** (both its fee and its fee/gas ratio must exceed the old operation's by at least this factor). max_operations and max_total_bytes are the bounds on respectively the number of valid operations in the mempool and the sum of their sizes in bytes.", + "parameters": [ + { + "name": "include_default", + "in": "query", + "description": "Show fields equal to their default value (set by default)", + "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`" + } + } + } + } + } + }, + "post": { + "description": "Set the configuration of the mempool's filter and bounds. **If any of the fields is absent from the input JSON, then it is set to the default value for this field (i.e. its value in the default configuration), even if it previously had a different value.** If the input JSON does not describe a valid configuration, then the configuration is left unchanged. This RPC also returns the new configuration of the mempool (which may differ from the input if the latter omits fields or is invalid). You may call [octez-client rpc get '/chains/main/mempool/filter?include_default=true'] to see an example of JSON describing a valid configuration. See the description of that RPC for details on each configurable value.", + "requestBody": { + "content": { + "application/json": { + "schema": {} + } + } + }, + "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`" + } + } + } + } + } + } + }, + "/monitor_operations": { + "get": { + "description": "Monitor the mempool operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "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", + "description": "Include validated operations (set by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "refused", + "in": "query", + "description": "Include refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "outdated", + "in": "query", + "description": "Include outdated operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_refused", + "in": "query", + "description": "Include branch refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_delayed", + "in": "query", + "description": "Include branch delayed operations (set 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": "monitor_operations_encoding", + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error_opt" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + }, + { + "title": "monitor_operations_encoding_with_legacy_attestation_name", + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error_opt" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/pending_operations": { + "get": { + "description": "List the prevalidated operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "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", + "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", + "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" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "unprocessed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + }, + "required": [ + "validated", + "refused", + "outdated", + "branch_refused", + "branch_delayed", + "unprocessed" + ] + }, + { + "title": "pending_operations_encoding_with_legacy_attestation_name", + "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" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "unprocessed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + }, + "required": [ + "applied", + "refused", + "outdated", + "branch_refused", + "branch_delayed", + "unprocessed" + ] + }, + { + "title": "old_encoding_pending_operations", + "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" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/request_operations": { + "post": { + "description": "Request the operations of our peers or a specific peer if specified via a query parameter.", + "parameters": [ + { + "name": "peer_id", + "in": "query", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": false, + "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`" + } + } + } + } + } + } + }, + "/unban_all_operations": { + "post": { + "description": "Clear the set of banned operations.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "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`" + } + } + } + } + } + } + }, + "/unban_operation": { + "post": { + "description": "Remove an operation from the set of banned operations (nothing happens if it was not banned).", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "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": { + "017-PtNairob.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/017-PtNairob.liquidity_baking_toggle_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", + "signature" + ] + }, + "017-PtNairob.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" + } + ] + }, + "017-PtNairob.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" + } + ] + }, + "017-PtNairob.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": "named", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + ] + }, + "017-PtNairob.inlined.endorsement": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement_mempool.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "017-PtNairob.inlined.endorsement_mempool.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "endorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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" + ] + }, + "017-PtNairob.inlined.preendorsement": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "017-PtNairob.inlined.preendorsement.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preendorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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" + ] + }, + "017-PtNairob.liquidity_baking_toggle_vote": { + "type": "string", + "enum": [ + "off", + "on", + "pass" + ] + }, + "017-PtNairob.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" + ] + }, + "017-PtNairob.mutez": { + "$ref": "#/components/schemas/positive_bignum" + }, + "017-PtNairob.operation.alpha.contents": { + "oneOf": [ + { + "title": "Endorsement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "endorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "Preendorsement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preendorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "Dal_attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_attestation" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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_endorsement_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_endorsement_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement" + }, + "op2": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_preendorsement_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preendorsement_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement" + }, + "op2": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/017-PtNairob.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez" + }, + "destination": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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": { + "published_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "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": [ + "published_level", + "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/017-PtNairob.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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "origination_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {} + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "origination_proof", + "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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.smart_rollup_address" + }, + "commitment": { + "description": "DEPRECATED: This field is not used anymore by the protocol and will be removed in a future proposal.", + "oneOf": [ + { + "$ref": "#/components/schemas/Smart_rollup_commitment_hash" + } + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment" + ] + }, + { + "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/017-PtNairob.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/017-PtNairob.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", + "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/017-PtNairob.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/017-PtNairob.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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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_hash" + }, + "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/017-PtNairob.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/017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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" + ] + } + ] + }, + "017-PtNairob.scripted.contracts": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + }, + "017-PtNairob.smart_rollup_address": { + "title": "A smart rollup address", + "description": "A smart rollup is identified by a base58 address starting with sr1", + "oneOf": [ + { + "$ref": "#/components/schemas/Smart_rollup_hash" + } + ] + }, + "Context_hash": { + "title": "A hash of context (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" + } + ] + }, + "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.V1": { + "title": "A Ed25519, Secp256k1, P256 or BLS signature (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_hash": { + "title": "A smart rollup address (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" + } + ] + }, + "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" + } + ] + }, + "cycle_nonce": { + "title": "A nonce hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "error": { + "description": "The full list of errors is available with the global RPC `GET errors`" + }, + "error_opt": { + "description": "An optional error-trace (None indicates no error). 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])*$" + } + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + } + }, + { + "title": "Prim__generic", + "description": "Generic primitive (any number of args with or without annotations)", + "type": "object", + "properties": { + "prim": { + "$ref": "#/components/schemas/017-PtNairob.michelson.v1.primitives" + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "annots": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "prim" + ] + } + ] + }, + "next_operation_with_legacy_attestation_name": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "protocol", + "branch", + "contents" + ] + }, + "positive_bignum": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + }, + "script_expr": { + "title": "A script expression ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "timestamp.protocol": { + "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "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/nairobi-openapi-rc.json b/docs/api/nairobi-openapi-rc.json new file mode 100644 index 000000000000..9a72e4306769 --- /dev/null +++ b/docs/api/nairobi-openapi-rc.json @@ -0,0 +1,22831 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez RPC", + "description": "The RPC API served by the Octez node.", + "version": "18.0~rc1+dev" + }, + "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", + "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", + "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_with_legacy_attestation_name", + "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_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/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.017-PtNairob.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.017-PtNairob.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.017-PtNairob.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 + }, + "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/017-PtNairob.mutez" + }, + "vdf_difficulty": { + "$ref": "#/components/schemas/int64" + }, + "seed_nonce_revelation_tip": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "baking_reward_fixed_portion": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "baking_reward_bonus_per_slot": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "endorsing_reward_per_slot": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "cost_per_byte": { + "$ref": "#/components/schemas/017-PtNairob.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_subsidy": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "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" + ] + }, + "max_slashing_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "frozen_deposits_percentage": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "double_baking_punishment": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "ratio_of_frozen_deposits_slashed_per_double_endorsement": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "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 + }, + "tx_rollup_enable": { + "type": "boolean" + }, + "tx_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_hard_size_limit_per_inbox": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_hard_size_limit_per_message": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_withdrawals_per_batch": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_commitment_bond": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "tx_rollup_finality_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_withdraw_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_inboxes_count": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_messages_per_inbox": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_commitments_count": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_cost_per_byte_ema_factor": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_ticket_payload_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_rejection_max_proof_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_sunset_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "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_enable": { + "type": "boolean" + }, + "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/017-PtNairob.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 + }, + "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 + } + }, + "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", + "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", + "vdf_difficulty", + "seed_nonce_revelation_tip", + "origination_size", + "baking_reward_fixed_portion", + "baking_reward_bonus_per_slot", + "endorsing_reward_per_slot", + "cost_per_byte", + "hard_storage_limit_per_operation", + "quorum_min", + "quorum_max", + "min_proposal_quorum", + "liquidity_baking_subsidy", + "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", + "max_slashing_period", + "frozen_deposits_percentage", + "double_baking_punishment", + "ratio_of_frozen_deposits_slashed_per_double_endorsement", + "cache_script_size", + "cache_stake_distribution_cycles", + "cache_sampler_state_cycles", + "tx_rollup_enable", + "tx_rollup_origination_size", + "tx_rollup_hard_size_limit_per_inbox", + "tx_rollup_hard_size_limit_per_message", + "tx_rollup_max_withdrawals_per_batch", + "tx_rollup_commitment_bond", + "tx_rollup_finality_period", + "tx_rollup_withdraw_period", + "tx_rollup_max_inboxes_count", + "tx_rollup_max_messages_per_inbox", + "tx_rollup_max_commitments_count", + "tx_rollup_cost_per_byte_ema_factor", + "tx_rollup_max_ticket_payload_size", + "tx_rollup_rejection_max_proof_size", + "tx_rollup_sunset_level", + "dal_parametric", + "smart_rollup_enable", + "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", + "zk_rollup_enable", + "zk_rollup_origination_size", + "zk_rollup_min_pending_to_process" + ] + } + } + } + }, + "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/017-PtNairob.mutez" + }, + "vdf_difficulty": { + "$ref": "#/components/schemas/int64" + }, + "seed_nonce_revelation_tip": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "baking_reward_fixed_portion": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "baking_reward_bonus_per_slot": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "endorsing_reward_per_slot": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "cost_per_byte": { + "$ref": "#/components/schemas/017-PtNairob.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_subsidy": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "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" + ] + }, + "max_slashing_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "frozen_deposits_percentage": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "double_baking_punishment": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "ratio_of_frozen_deposits_slashed_per_double_endorsement": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "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 + }, + "tx_rollup_enable": { + "type": "boolean" + }, + "tx_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_hard_size_limit_per_inbox": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_hard_size_limit_per_message": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_withdrawals_per_batch": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_commitment_bond": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "tx_rollup_finality_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_withdraw_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_inboxes_count": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_messages_per_inbox": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_commitments_count": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_cost_per_byte_ema_factor": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_max_ticket_payload_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_rejection_max_proof_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "tx_rollup_sunset_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "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_enable": { + "type": "boolean" + }, + "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/017-PtNairob.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 + }, + "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 + } + }, + "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", + "vdf_difficulty", + "seed_nonce_revelation_tip", + "origination_size", + "baking_reward_fixed_portion", + "baking_reward_bonus_per_slot", + "endorsing_reward_per_slot", + "cost_per_byte", + "hard_storage_limit_per_operation", + "quorum_min", + "quorum_max", + "min_proposal_quorum", + "liquidity_baking_subsidy", + "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", + "max_slashing_period", + "frozen_deposits_percentage", + "double_baking_punishment", + "ratio_of_frozen_deposits_slashed_per_double_endorsement", + "cache_script_size", + "cache_stake_distribution_cycles", + "cache_sampler_state_cycles", + "tx_rollup_enable", + "tx_rollup_origination_size", + "tx_rollup_hard_size_limit_per_inbox", + "tx_rollup_hard_size_limit_per_message", + "tx_rollup_max_withdrawals_per_batch", + "tx_rollup_commitment_bond", + "tx_rollup_finality_period", + "tx_rollup_withdraw_period", + "tx_rollup_max_inboxes_count", + "tx_rollup_max_messages_per_inbox", + "tx_rollup_max_commitments_count", + "tx_rollup_cost_per_byte_ema_factor", + "tx_rollup_max_ticket_payload_size", + "tx_rollup_rejection_max_proof_size", + "tx_rollup_sunset_level", + "dal_parametric", + "smart_rollup_enable", + "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", + "zk_rollup_enable", + "zk_rollup_origination_size", + "zk_rollup_min_pending_to_process" + ] + } + } + } + }, + "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/017-PtNairob.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/017-PtNairob.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "key", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/micheline.017-PtNairob.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/017-PtNairob.michelson.v1.primitives" + } + } + }, + "required": [ + "path" + ] + } + }, + "entrypoints": { + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.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}/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/017-PtNairob.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}/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.017-PtNairob.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.017-PtNairob.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/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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/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": -2147483648, + "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/017-PtNairob.mutez" + }, + "current_frozen_deposits": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "frozen_deposits": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "staking_balance": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "frozen_deposits_limit": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "delegated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + } + }, + "delegated_balance": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "deactivated": { + "type": "boolean" + }, + "grace_period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "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", + "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}/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": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pendings": { + "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": [ + "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_frozen_deposits": { + "get": { + "description": "Returns the current amount of the frozen deposits (in mutez).", + "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}/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/017-PtNairob.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 initial amount (that is, at the beginning of a cycle) of the frozen deposits (in mutez). This amount is the same as the current amount of the frozen deposits, unless the delegate has been punished.", + "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/017-PtNairob.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 endorsing slots in the cycle required to get endorsing rewards. It is computed based on 'expected_cycle_activity. The fields 'missed_slots' and 'missed_levels' indicate the number of missed endorsing slots and missed levels (for endorsing) in the cycle so far. 'missed_slots' indicates the number of missed endorsing slots in the cycle so far. The field 'remaining_allowed_missed_slots' indicates the remaining amount of endorsing slots that can be missed in the cycle before forfeiting the rewards. Finally, 'expected_endorsing_rewards' indicates the endorsing 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_endorsing_rewards": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + } + }, + "required": [ + "expected_cycle_activity", + "minimal_cycle_activity", + "missed_slots", + "missed_levels", + "remaining_allowed_missed_slots", + "expected_endorsing_rewards" + ] + } + } + } + }, + "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}/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/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_hash" + } + } + } + } + }, + "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": -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`" + } + } + } + } + } + } + }, + "/context/smart_rollups/all/origination_proof": { + "post": { + "description": "Proof for a smart rollup origination", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "kernel" + ] + } + } + } + }, + "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/smart_rollups/smart_rollup/{Smart_rollup_hash}/commitment/{Smart_rollup_commitment_hash}": { + "get": { + "description": "Commitment for a smart rollup from its hash", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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": -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" + ] + } + } + } + }, + "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_hash}/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_hash", + "in": "path", + "description": "Smart_rollup_hash (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_hash}/commitment/{Smart_rollup_commitment_hash}/stakers_indexes": { + "get": { + "description": "List of stakers indexes staking on a given commitment", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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_hash}/genesis_info": { + "get": { + "description": "Genesis information (level and commitment hash) for a smart rollup", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "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_hash}/inbox_level/{block_level}/commitments": { + "get": { + "description": "List of commitments associated to a rollup for a given inbox level", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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_hash}/initial_pvm_state_hash": { + "get": { + "description": "Initial PVM state hash of smart rollup", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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_hash}/kind": { + "get": { + "description": "Kind of smart rollup", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith" + ] + } + } + } + }, + "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_hash}/last_cemented_commitment_hash_with_level": { + "get": { + "description": "Level and hash of the last cemented commitment for a smart rollup", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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": -2147483648, + "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_hash}/staker/{pkh}/conflicts": { + "get": { + "description": "List of stakers in conflict with the given staker", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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": -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" + ] + }, + "our_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" + ] + }, + "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_hash}/staker/{pkh}/games": { + "get": { + "description": "Ongoing refutation games for a given staker", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "maximum": 2147483647 + }, + "inbox_level": { + "type": "integer", + "minimum": -2147483648, + "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_hash}/staker/{pkh}/index": { + "get": { + "description": "Staker index associated to a public key hash for a given rollup", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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_hash}/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_hash", + "in": "path", + "description": "Smart_rollup_hash (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": -2147483648, + "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_hash}/staker1/{pkh}/staker2/{pkh}/timeout": { + "get": { + "description": "Returns the timeout of players.", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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": { + "alice": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "bob": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "last_turn_level": { + "type": "integer", + "minimum": -2147483648, + "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_hash}/staker1/{pkh}/staker2/{pkh}/timeout_reached": { + "get": { + "description": "Returns whether the timeout creates a result for the game.", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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", + "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_hash}/stakers": { + "get": { + "description": "List of active stakers' public key hashes of a rollup", + "parameters": [ + { + "name": "Smart_rollup_hash", + "in": "path", + "description": "Smart_rollup_hash (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/tx_rollup/{tx_rollup_id}/commitment/{block_level}": { + "get": { + "description": "Return the commitment for a level, if any", + "parameters": [ + { + "name": "tx_rollup_id", + "in": "path", + "description": "A tx rollup identifier encoded in b58check.", + "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": "object", + "properties": { + "commitment": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "messages": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "root": { + "$ref": "#/components/schemas/Message_result_list_hash" + }, + "last_message_result_hash": { + "$ref": "#/components/schemas/Message_result_hash" + } + }, + "required": [ + "count", + "root", + "last_message_result_hash" + ] + }, + "predecessor": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/Commitment_hash" + } + ] + } + ] + }, + "inbox_merkle_root": { + "$ref": "#/components/schemas/Inbox_list_hash" + } + }, + "required": [ + "level", + "messages", + "predecessor", + "inbox_merkle_root" + ] + }, + "commitment_hash": { + "$ref": "#/components/schemas/Commitment_hash" + }, + "committer": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "submitted_at": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "finalized_at": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "commitment", + "commitment_hash", + "committer", + "submitted_at" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/tx_rollup/{tx_rollup_id}/has_bond/{pkh}": { + "get": { + "description": "Returns true if the public key hash already deposited a bond for the given rollup", + "parameters": [ + { + "name": "tx_rollup_id", + "in": "path", + "description": "A tx rollup identifier encoded in b58check.", + "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": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/tx_rollup/{tx_rollup_id}/inbox/{block_level}": { + "get": { + "description": "Get the inbox of a transaction rollup", + "parameters": [ + { + "name": "tx_rollup_id", + "in": "path", + "description": "A tx rollup identifier encoded in b58check.", + "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": "object", + "properties": { + "inbox_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "cumulated_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "merkle_root": { + "$ref": "#/components/schemas/Inbox_list_hash" + } + }, + "required": [ + "inbox_length", + "cumulated_size", + "merkle_root" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/tx_rollup/{tx_rollup_id}/pending_bonded_commitments/{pkh}": { + "get": { + "description": "Get the number of pending bonded commitments for a pkh on a rollup", + "parameters": [ + { + "name": "tx_rollup_id", + "in": "path", + "description": "A tx rollup identifier encoded in b58check.", + "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": "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/tx_rollup/{tx_rollup_id}/state": { + "get": { + "description": "Access the state of a rollup.", + "parameters": [ + { + "name": "tx_rollup_id", + "in": "path", + "description": "A tx rollup identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "last_removed_commitment_hashes": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "last_message_hash": { + "$ref": "#/components/schemas/Message_result_hash" + }, + "commitment_hash": { + "$ref": "#/components/schemas/Commitment_hash" + } + }, + "required": [ + "last_message_hash", + "commitment_hash" + ] + } + ] + }, + "finalized_commitments": { + "oneOf": [ + { + "title": "empty", + "type": "object", + "properties": { + "next": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "next" + ] + }, + { + "title": "interval", + "type": "object", + "properties": { + "newest": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "oldest": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "newest", + "oldest" + ] + } + ] + }, + "unfinalized_commitments": { + "oneOf": [ + { + "title": "empty", + "type": "object", + "properties": { + "next": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "next" + ] + }, + { + "title": "interval", + "type": "object", + "properties": { + "newest": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "oldest": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "newest", + "oldest" + ] + } + ] + }, + "uncommitted_inboxes": { + "oneOf": [ + { + "title": "empty", + "type": "object", + "properties": { + "next": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "next" + ] + }, + { + "title": "interval", + "type": "object", + "properties": { + "newest": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "oldest": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "newest", + "oldest" + ] + } + ] + }, + "commitment_newest_hash": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/Commitment_hash" + } + ] + } + ] + }, + "tezos_head_level": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + ] + }, + "burn_per_byte": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "allocated_storage": { + "$ref": "#/components/schemas/positive_bignum" + }, + "occupied_storage": { + "$ref": "#/components/schemas/positive_bignum" + }, + "inbox_ema": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "commitments_watermark": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + ] + } + }, + "required": [ + "last_removed_commitment_hashes", + "finalized_commitments", + "unfinalized_commitments", + "uncommitted_inboxes", + "commitment_newest_hash", + "tezos_head_level", + "burn_per_byte", + "allocated_storage", + "occupied_storage", + "inbox_ema", + "commitments_watermark" + ] + } + } + } + }, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.contents" + } + } + }, + "required": [ + "branch", + "contents" + ] + } + } + } + }, + "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])*$" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/017-PtNairob.liquidity_baking_toggle_vote" + } + }, + "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/tx_rollup/commitment/merkle_tree_hash": { + "post": { + "description": "Compute the merkle tree hash of a commitment", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message_result_hashes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message_result_hash" + } + } + }, + "required": [ + "message_result_hashes" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Message_result_list_hash" + } + }, + "required": [ + "hash" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/tx_rollup/commitment/merkle_tree_path": { + "post": { + "description": "Compute a path of a message result hash in the commitment merkle tree", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message_result_hashes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message_result_hash" + } + }, + "position": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "message_result_hashes", + "position" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "path": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message_result_list_hash" + } + } + }, + "required": [ + "path" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/tx_rollup/commitment/message_result_hash": { + "post": { + "description": "Compute the message result hash", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "context_hash": { + "$ref": "#/components/schemas/Context_hash" + }, + "withdraw_list_hash": { + "$ref": "#/components/schemas/Withdraw_list_hash" + } + }, + "required": [ + "context_hash", + "withdraw_list_hash" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Message_result_hash" + } + }, + "required": [ + "hash" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/tx_rollup/inbox/merkle_tree_hash": { + "post": { + "description": "Compute the merkle tree hash of an inbox", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message_hashes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tx_rollup_inbox_message_hash" + } + } + }, + "required": [ + "message_hashes" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Inbox_list_hash" + } + }, + "required": [ + "hash" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/tx_rollup/inbox/merkle_tree_path": { + "post": { + "description": "Compute a path of an inbox message in a merkle tree", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message_hashes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tx_rollup_inbox_message_hash" + } + }, + "position": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "message_hashes", + "position" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "path": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Inbox_list_hash" + } + } + }, + "required": [ + "path" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/tx_rollup/inbox/message_hash": { + "post": { + "description": "Compute the hash of a message", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "oneOf": [ + { + "title": "Batch", + "type": "object", + "properties": { + "batch": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "batch" + ] + }, + { + "title": "Deposit", + "type": "object", + "properties": { + "deposit": { + "type": "object", + "properties": { + "sender": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "destination": { + "$ref": "#/components/schemas/Bls12_381.Public_key_hash" + }, + "ticket_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "sender", + "destination", + "ticket_hash", + "amount" + ] + } + }, + "required": [ + "deposit" + ] + } + ] + } + }, + "required": [ + "message" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Tx_rollup_inbox_message_hash" + } + }, + "required": [ + "hash" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/tx_rollup/withdraw/withdraw_list_hash": { + "post": { + "description": "Compute the hash of a withdraw list", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "withdraw_list": { + "type": "array", + "items": { + "type": "object", + "properties": { + "claimer": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "ticket_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "claimer", + "ticket_hash", + "amount" + ] + } + } + }, + "required": [ + "withdraw_list" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Withdraw_list_hash" + } + }, + "required": [ + "hash" + ] + } + } + } + }, + "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": -2147483648, + "maximum": 2147483647 + }, + "last": { + "type": "integer", + "minimum": -2147483648, + "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/017-PtNairob.liquidity_baking_toggle_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_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", + "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": { + "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/017-PtNairob.operation.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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "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/017-PtNairob.liquidity_baking_toggle_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "protocol", + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_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", + "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", + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_with_metadata" + } + }, + { + "title": "preapplied_operations_encoding_with_legacy_attestation_name", + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.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.017-PtNairob.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.017-PtNairob.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.017-PtNairob.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/017-PtNairob.michelson.v1.primitives" + } + } + }, + "required": [ + "path" + ] + } + }, + "entrypoints": { + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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" + } + }, + "required": [ + "data", + "type", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.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.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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" + } + }, + "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.017-PtNairob.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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 piece of code in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "input": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "balance": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/017-PtNairob.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" + } + }, + "required": [ + "script", + "storage", + "input", + "amount", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "storage": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result" + } + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/017-PtNairob.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_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.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.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": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + } + } + } + }, + "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/017-PtNairob.contract_id.originated" + }, + "view": { + "$ref": "#/components/schemas/unistring" + }, + "input": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "unlimited_gas": { + "type": "boolean" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/017-PtNairob.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" + } + }, + "required": [ + "contract", + "view", + "input", + "chain_id", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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/017-PtNairob.contract_id.originated" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "input": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/017-PtNairob.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" + } + }, + "required": [ + "contract", + "entrypoint", + "input", + "chain_id", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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": "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": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.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": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + } + } + } + }, + "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 piece of code in the current context, keeping a trace", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "input": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "balance": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/017-PtNairob.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" + } + }, + "required": [ + "script", + "storage", + "input", + "amount", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "storage": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result" + } + }, + "trace": { + "$ref": "#/components/schemas/017-PtNairob.scripted.trace" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/017-PtNairob.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.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + } + }, + "stack_after": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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 endorsement slots and the public key hash of each delegate allowed to endorse 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 endorsement 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": -2147483648, + "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.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "next_protocol": { + "type": "string", + "enum": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "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": {} + } + } + } + }, + "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", + "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", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + }, + { + "title": "operations_encoding_with_legacy_attestation_name", + "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", + "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", + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + }, + { + "title": "operations_in_pass_encoding_with_legacy_attestation_name", + "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", + "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", + "oneOf": [ + { + "$ref": "#/components/schemas/operation" + } + ] + }, + { + "title": "operation_encoding_with_legacy_attestation_name", + "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": { + "017-PtNairob.apply_internal_results.alpha.operation_result": { + "oneOf": [ + { + "title": "transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "amount": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "destination": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/017-PtNairob.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + }, + "result": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "balance": { + "$ref": "#/components/schemas/017-PtNairob.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/017-PtNairob.scripted.contracts" + }, + "result": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "result": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "tag": { + "$ref": "#/components/schemas/017-PtNairob.entrypoint" + }, + "payload": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.internal_operation_result.event" + } + }, + "required": [ + "kind", + "source", + "nonce", + "type", + "result" + ] + } + ] + }, + "017-PtNairob.big_map_id": { + "title": "Big map identifier", + "description": "A big map identifier", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + "017-PtNairob.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/017-PtNairob.liquidity_baking_toggle_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", + "signature" + ] + }, + "017-PtNairob.bond_id": { + "oneOf": [ + { + "title": "Tx_rollup_bond_id", + "type": "object", + "properties": { + "tx_rollup": { + "$ref": "#/components/schemas/017-PtNairob.tx_rollup_id" + } + }, + "required": [ + "tx_rollup" + ] + }, + { + "title": "Smart_rollup_bond_id", + "type": "object", + "properties": { + "smart_rollup": { + "$ref": "#/components/schemas/017-PtNairob.smart_rollup_address" + } + }, + "required": [ + "smart_rollup" + ] + } + ] + }, + "017-PtNairob.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" + } + ] + }, + "017-PtNairob.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" + } + ] + }, + "017-PtNairob.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" + } + ] + }, + "017-PtNairob.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": "named", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + ] + }, + "017-PtNairob.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`." + }, + "017-PtNairob.inlined.endorsement": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement_mempool.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "017-PtNairob.inlined.endorsement_mempool.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "endorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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" + ] + }, + "017-PtNairob.inlined.preendorsement": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "017-PtNairob.inlined.preendorsement.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preendorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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" + ] + }, + "017-PtNairob.lazy_storage_diff": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "big_map", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "big_map" + ] + }, + "id": { + "$ref": "#/components/schemas/017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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/017-PtNairob.big_map_id" + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "key": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "key_hash", + "key" + ] + } + }, + "key_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "value_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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/017-PtNairob.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/017-PtNairob.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" + ] + } + ] + } + }, + "017-PtNairob.liquidity_baking_toggle_vote": { + "type": "string", + "enum": [ + "off", + "on", + "pass" + ] + }, + "017-PtNairob.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" + ] + }, + "017-PtNairob.mutez": { + "$ref": "#/components/schemas/positive_bignum" + }, + "017-PtNairob.operation.alpha.contents": { + "oneOf": [ + { + "title": "Endorsement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "endorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "Preendorsement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preendorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "Dal_attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_attestation" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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_endorsement_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_endorsement_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement" + }, + "op2": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_preendorsement_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preendorsement_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement" + }, + "op2": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/017-PtNairob.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez" + }, + "destination": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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": { + "published_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "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": [ + "published_level", + "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/017-PtNairob.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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "origination_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {} + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "origination_proof", + "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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.smart_rollup_address" + }, + "commitment": { + "description": "DEPRECATED: This field is not used anymore by the protocol and will be removed in a future proposal.", + "oneOf": [ + { + "$ref": "#/components/schemas/Smart_rollup_commitment_hash" + } + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment" + ] + }, + { + "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/017-PtNairob.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/017-PtNairob.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", + "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/017-PtNairob.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/017-PtNairob.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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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_hash" + }, + "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/017-PtNairob.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/017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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" + ] + } + ] + }, + "017-PtNairob.operation.alpha.internal_operation_result.delegation": { + "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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.operation.alpha.internal_operation_result.origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_tx_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "ticket_hash", + "paid_storage_size_diff" + ] + }, + { + "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/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "storage": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_tx_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "ticket_hash", + "paid_storage_size_diff" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_receipt" + ] + } + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_contents_and_result": { + "oneOf": [ + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "solution", + "metadata" + ] + }, + { + "title": "Endorsement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "endorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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/017-PtNairob.operation_metadata.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": -2147483648, + "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/017-PtNairob.operation_metadata.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": "Dal_attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_attestation" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "metadata": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate" + ] + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level", + "metadata" + ] + }, + { + "title": "Double_preendorsement_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preendorsement_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement" + }, + "op2": { + "$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "op1", + "op2", + "metadata" + ] + }, + { + "title": "Double_endorsement_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_endorsement_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement" + }, + "op2": { + "$ref": "#/components/schemas/017-PtNairob.inlined.endorsement" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "op1", + "op2", + "metadata" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/017-PtNairob.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/017-PtNairob.block_header.alpha.full_header" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.operation_metadata.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": "Reveal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "reveal" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.reveal" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez" + }, + "destination": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/017-PtNairob.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.transaction" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/017-PtNairob.scripted.contracts" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.origination" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.delegation" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.register_global_constant" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.set_deposits_limit" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.contract_id.originated" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.increase_paid_storage" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.update_consensus_key" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pk", + "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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "allocated_destination_contract": { + "type": "boolean" + } + } + } + }, + "required": [ + "kind", + "consensus_key", + "delegate", + "destination", + "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/017-PtNairob.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/017-PtNairob.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.transfer_ticket" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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": { + "published_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "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": [ + "published_level", + "slot_index", + "commitment", + "commitment_proof" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.dal_publish_slot_header" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "origination_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_originate" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "origination_proof", + "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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_add_messages" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.smart_rollup_address" + }, + "commitment": { + "description": "DEPRECATED: This field is not used anymore by the protocol and will be removed in a future proposal.", + "oneOf": [ + { + "$ref": "#/components/schemas/Smart_rollup_commitment_hash" + } + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_cement" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment", + "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/017-PtNairob.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/017-PtNairob.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" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_publish" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_refute" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_timeout" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_execute_outbox_message" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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_hash" + }, + "staker": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_recover_bond" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.zk_rollup_origination" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + } + }, + "required": [ + "contents", + "ty", + "ticketer" + ] + } + ] + } + ] + } + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.zk_rollup_publish" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.zk_rollup_update" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "update", + "metadata" + ] + } + ] + }, + "017-PtNairob.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": -2147483648, + "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/017-PtNairob.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/017-PtNairob.error" + } + }, + "slot_header": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "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" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.delegation": { + "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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.increase_paid_storage": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.register_global_constant": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.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": -2147483648, + "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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "inbox_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "commitment_hash": { + "$ref": "#/components/schemas/Smart_rollup_commitment_hash" + } + }, + "required": [ + "status", + "inbox_level", + "commitment_hash" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.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" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.smart_rollup_originate": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "address": { + "$ref": "#/components/schemas/Smart_rollup_hash" + }, + "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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "address": { + "$ref": "#/components/schemas/Smart_rollup_hash" + }, + "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" + ] + } + ] + }, + "017-PtNairob.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": -2147483648, + "maximum": 2147483647 + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "staked_hash": { + "$ref": "#/components/schemas/Smart_rollup_commitment_hash" + }, + "published_at_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "staked_hash", + "published_at_level", + "balance_updates" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.smart_rollup_recover_bond": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + } + ] + }, + "017-PtNairob.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.017-PtNairob.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_tx_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "ticket_hash", + "paid_storage_size_diff" + ] + }, + { + "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/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "storage": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_tx_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "ticket_hash", + "paid_storage_size_diff" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_updates" + ] + } + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.transfer_ticket": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/017-PtNairob.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" + ] + } + ] + }, + "017-PtNairob.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.zk_rollup_origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.zk_rollup_publish": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "size" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_result.zk_rollup_update": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.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/017-PtNairob.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/017-PtNairob.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + } + ] + }, + "017-PtNairob.operation.alpha.operation_with_metadata": { + "oneOf": [ + { + "title": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + }, + "017-PtNairob.operation_metadata.alpha.balance_updates": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "Contract", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "contract" + ] + }, + "contract": { + "$ref": "#/components/schemas/017-PtNairob.contract_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Deposits", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "freezer" + ] + }, + "category": { + "type": "string", + "enum": [ + "deposits" + ] + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "delegate", + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Double_signing_evidence_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "double signing evidence rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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/017-PtNairob.contract_id" + }, + "bond_id": { + "$ref": "#/components/schemas/017-PtNairob.bond_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "contract", + "bond_id", + "change", + "origin" + ] + }, + { + "title": "Tx_rollup_rejection_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "tx_rollup_rejection_rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Tx_rollup_rejection_punishments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "tx_rollup_rejection_punishments" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + } + ] + } + }, + "017-PtNairob.sapling_state_id": { + "title": "Sapling state identifier", + "description": "A sapling state identifier", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + "017-PtNairob.scripted.contracts": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + }, + "017-PtNairob.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.017-PtNairob.michelson_v1.expression" + } + } + }, + "required": [ + "location", + "gas", + "stack" + ] + } + }, + "017-PtNairob.smart_rollup_address": { + "title": "A smart rollup address", + "description": "A smart rollup is identified by a base58 address starting with sr1", + "oneOf": [ + { + "$ref": "#/components/schemas/Smart_rollup_hash" + } + ] + }, + "017-PtNairob.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" + } + ] + }, + "017-PtNairob.tx_rollup_id": { + "title": "A tx rollup handle", + "description": "A tx rollup notation as given to an RPC or inside scripts, is a base58 tx rollup hash", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Blinded public key hash": { + "title": "A blinded public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Bls12_381.Public_key_hash": { + "title": "A Bls12_381 public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Chain_id": { + "title": "Network identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Commitment_hash": { + "title": "A commitment ID (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" + } + ] + }, + "Inbox_list_hash": { + "title": "A merkle root hash for inboxes (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Message_result_hash": { + "title": "A message result hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Message_result_list_hash": { + "title": "A merklised message result list 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" + } + ] + }, + "Smart_rollup_commitment_hash": { + "title": "The hash of a commitment of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Smart_rollup_hash": { + "title": "A smart rollup address (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 merkelized payload hashes' hash of the 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" + } + ] + }, + "Tx_rollup_inbox_message_hash": { + "title": "The hash of a transaction rollup inbox’s message (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Withdraw_list_hash": { + "title": "A list of withdraw orders (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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "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.017-PtNairob.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.017-PtNairob.michelson_v1.expression" + } + }, + { + "title": "Prim__generic", + "description": "Generic primitive (any number of args with or without annotations)", + "type": "object", + "properties": { + "prim": { + "$ref": "#/components/schemas/017-PtNairob.michelson.v1.primitives" + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.017-PtNairob.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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.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": [ + "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/017-PtNairob.operation.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" + } + ] + }, + "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/openapi.rst b/docs/api/openapi.rst index 455147ff735f..9c4b1d3938c5 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -57,16 +57,20 @@ Their OpenAPI specification can be found at: Nairobi RPCs ------------ -The OpenAPI specification for RPCs which are specific to the Nairobi (``PtNairob``) +The OpenAPI specifications for RPCs which are specific to the Nairobi (``PtNairob``) protocol can be found at: - `nairobi-openapi.json (version 17.3) `_ -The OpenAPI specification for RPCs which are related to the mempool +- `nairobi-openapi-rc.json (version 18.0~rc1) `_ + +The OpenAPI specifications for RPCs which are related to the mempool and specific to the Nairobi protocol can be found at: - `nairobi-mempool-openapi.json (version 17.3) `_ +- `nairobi-mempool-openapi-rc.json (version 18.0~rc1) `_ + .. _openapi_generate: How to Generate -- GitLab From fc5eef1ca9d4620cd77f302f60039f69175b163f Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Mon, 3 Jul 2023 15:33:21 +0200 Subject: [PATCH 09/10] OpenApi: Use Oxford for openapi generation --- src/bin_openapi/generate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin_openapi/generate.sh b/src/bin_openapi/generate.sh index 6c2b4b193554..7455976aefd0 100755 --- a/src/bin_openapi/generate.sh +++ b/src/bin_openapi/generate.sh @@ -16,9 +16,9 @@ tezos_node=./octez-node tezos_client=./octez-client # Protocol configuration. -protocol_hash=PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf -protocol_parameters=src/proto_017_PtNairob/parameters/sandbox-parameters.json -protocol_name=nairobi +protocol_hash=ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef +protocol_parameters=src/proto_018_Proxford/parameters/sandbox-parameters.json +protocol_name=oxford # Secret key to activate the protocol. activator_secret_key="unencrypted:edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6" -- GitLab From 6761bf659e13d4ad8992a90974b611fd51af40e5 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Mon, 3 Jul 2023 16:02:20 +0200 Subject: [PATCH 10/10] Docs, OpenApi: Generate openapi for Oxford --- docs/api/openapi.rst | 13 + docs/api/oxford-mempool-openapi-rc.json | 5705 +++++ docs/api/oxford-openapi-rc.json | 26734 ++++++++++++++++++++++ 3 files changed, 32452 insertions(+) create mode 100644 docs/api/oxford-mempool-openapi-rc.json create mode 100644 docs/api/oxford-openapi-rc.json diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index 9c4b1d3938c5..57490c812313 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -54,6 +54,19 @@ Their OpenAPI specification can be found at: .. TODO tezos/tezos#2170: add/remove section(s) +Oxford RPCs +----------- + +The OpenAPI specification for RPCs which are specific to the Oxford (``Proxford``) +protocol can be found at: + +- `oxford-openapi.json (version 18.0~rc1) `_ + +The OpenAPI specification for RPCs which are related to the mempool +and specific to the Oxford protocol can be found at: + +- `oxford-mempool-openapi.json (version 18.0~rc1) `_ + Nairobi RPCs ------------ diff --git a/docs/api/oxford-mempool-openapi-rc.json b/docs/api/oxford-mempool-openapi-rc.json new file mode 100644 index 000000000000..e05af5a00a2b --- /dev/null +++ b/docs/api/oxford-mempool-openapi-rc.json @@ -0,0 +1,5705 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez RPC", + "description": "The RPC API served by the Octez node.", + "version": "17.0~rc1+dev" + }, + "paths": { + "/ban_operation": { + "post": { + "description": "Remove an operation from the mempool if present. Also add it to the set of banned operations to prevent it from being fetched/processed/injected in the future. Note: If the baker has already received the operation, then it's necessary to restart it to flush the operation from it.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "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`" + } + } + } + } + } + } + }, + "/filter": { + "get": { + "description": "Get the configuration of the mempool's filter and bounds. Values of the form [ \"21\", \"20\" ] are rational numbers given as a numerator and a denominator, e.g. 21/20 = 1.05. The minimal_fees (in mutez), minimal_nanotez_per_gas_unit, and minimal_nanotez_per_byte are requirements that a manager operation must meet to be considered by the mempool. replace_by_fee_factor is how much better a manager operation must be to replace a previous valid operation **from the same manager** (both its fee and its fee/gas ratio must exceed the old operation's by at least this factor). max_operations and max_total_bytes are the bounds on respectively the number of valid operations in the mempool and the sum of their sizes in bytes.", + "parameters": [ + { + "name": "include_default", + "in": "query", + "description": "Show fields equal to their default value (set by default)", + "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`" + } + } + } + } + } + }, + "post": { + "description": "Set the configuration of the mempool's filter and bounds. **If any of the fields is absent from the input JSON, then it is set to the default value for this field (i.e. its value in the default configuration), even if it previously had a different value.** If the input JSON does not describe a valid configuration, then the configuration is left unchanged. This RPC also returns the new configuration of the mempool (which may differ from the input if the latter omits fields or is invalid). You may call [octez-client rpc get '/chains/main/mempool/filter?include_default=true'] to see an example of JSON describing a valid configuration. See the description of that RPC for details on each configurable value.", + "requestBody": { + "content": { + "application/json": { + "schema": {} + } + } + }, + "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`" + } + } + } + } + } + } + }, + "/monitor_operations": { + "get": { + "description": "Monitor the mempool 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, version \"1\" 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", + "description": "Include validated operations (set by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "refused", + "in": "query", + "description": "Include refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "outdated", + "in": "query", + "description": "Include outdated operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_refused", + "in": "query", + "description": "Include branch refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_delayed", + "in": "query", + "description": "Include branch delayed operations (set 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": "monitor_operations_encoding_v1", + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error_opt" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + }, + { + "title": "monitor_operations_encoding_v0", + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error_opt" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/pending_operations": { + "get": { + "description": "List the prevalidated operations.", + "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 but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"2\" 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", + "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" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "unprocessed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + }, + "required": [ + "validated", + "refused", + "outdated", + "branch_refused", + "branch_delayed", + "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" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "protocol", + "branch", + "contents", + "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", + "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" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/018-Proxford.operation_with_legacy_attestation_name.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "unprocessed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + }, + "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`" + } + } + } + } + } + } + }, + "/request_operations": { + "post": { + "description": "Request the operations of our peers or a specific peer if specified via a query parameter.", + "parameters": [ + { + "name": "peer_id", + "in": "query", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": false, + "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`" + } + } + } + } + } + } + }, + "/unban_all_operations": { + "post": { + "description": "Clear the set of banned operations.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "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`" + } + } + } + } + } + } + }, + "/unban_operation": { + "post": { + "description": "Remove an operation from the set of banned operations (nothing happens if it was not banned).", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "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.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.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.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.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.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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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.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": -2147483648, + "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": -2147483648, + "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" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {} + }, + "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": -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", + "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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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.contents": { + "oneOf": [ + { + "title": "Preendorsement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preendorsement" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": -2147483648, + "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" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {} + }, + "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": -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", + "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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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.scripted.contracts": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + }, + "Context_hash": { + "title": "A hash of context (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" + } + ] + }, + "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.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" + } + ] + }, + "cycle_nonce": { + "title": "A nonce hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "error": { + "description": "The full list of errors is available with the global RPC `GET errors`" + }, + "error_opt": { + "description": "An optional error-trace (None indicates no error). 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])*$" + } + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "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" + ] + } + ] + }, + "next_operation_with_legacy_attestation_name": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + ] + }, + "positive_bignum": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + }, + "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_state_hash": { + "title": "The hash of the VM state of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "timestamp.protocol": { + "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "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-rc.json b/docs/api/oxford-openapi-rc.json new file mode 100644 index 000000000000..5a1fe00e4ee8 --- /dev/null +++ b/docs/api/oxford-openapi-rc.json @@ -0,0 +1,26734 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez RPC", + "description": "The RPC API served by the Octez node.", + "version": "17.0~rc1+dev" + }, + "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\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" 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 + }, + "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" + ] + }, + "max_slashing_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "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_enable": { + "type": "boolean" + }, + "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": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "Blake2B" + ] + }, + "metadata": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "dal_page": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "raw_data", + "metadata", + "dal_page" + ] + }, + "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": { + "$ref": "#/components/schemas/int64" + }, + "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" + ] + } + }, + "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", + "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", + "max_slashing_period", + "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_enable", + "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", + "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" + ] + } + } + } + }, + "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" + ] + }, + "max_slashing_period": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "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_enable": { + "type": "boolean" + }, + "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": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "Blake2B" + ] + }, + "metadata": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "dal_page": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "raw_data", + "metadata", + "dal_page" + ] + }, + "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": { + "$ref": "#/components/schemas/int64" + }, + "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" + ] + } + }, + "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", + "max_slashing_period", + "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_enable", + "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", + "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" + ] + } + } + } + }, + "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}/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": -2147483648, + "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" + }, + "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 + }, + "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", + "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}/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}/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}/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/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_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": -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`" + } + } + } + } + } + } + }, + "/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": -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" + ] + } + } + } + }, + "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": -2147483648, + "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" + ] + } + } + } + }, + "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": -2147483648, + "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}/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": -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" + ] + }, + "our_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" + ] + }, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "maximum": 2147483647 + }, + "inbox_level": { + "type": "integer", + "minimum": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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/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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "maximum": 2147483647 + }, + "last": { + "type": "integer", + "minimum": -2147483648, + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" 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" + } + }, + "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" + } + }, + "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 piece of code 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" + } + }, + "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_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" + } + }, + "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" + } + }, + "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 piece of code 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" + } + }, + "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": -2147483648, + "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\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" 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\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" 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\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" 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\" (default but deprecated) that will output attestation operations as \"endorsement\" in the \"kind\" field, version \"1\" 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.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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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": -2147483648, + "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" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {} + }, + "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": -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", + "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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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": -2147483648, + "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": -2147483648, + "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": { + "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": { + "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": -2147483648, + "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" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "metadata": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate" + ] + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level", + "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": { + "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": "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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "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": -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" + ] + }, + "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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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": -2147483648, + "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": -2147483648, + "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.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": -2147483648, + "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": -2147483648, + "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" + ] + } + }, + "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.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": -2147483648, + "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": -2147483648, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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.staker" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "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": { + "oneOf": [ + { + "title": "Block_application", + "type": "string", + "enum": [ + "block" + ] + }, + { + "title": "Protocol_migration", + "type": "string", + "enum": [ + "migration" + ] + }, + { + "title": "Subsidy", + "type": "string", + "enum": [ + "subsidy" + ] + }, + { + "title": "Simulation", + "type": "string", + "enum": [ + "simulation" + ] + } + ] + } + }, + "required": [ + "kind", + "category", + "staker", + "cycle", + "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": -2147483648, + "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": -2147483648, + "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" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "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": "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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {} + }, + "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": -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", + "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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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": -2147483648, + "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": -2147483648, + "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": { + "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": { + "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": -2147483648, + "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" + ] + }, + "attestor": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "attestation": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "metadata": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate" + ] + } + }, + "required": [ + "kind", + "attestor", + "attestation", + "level", + "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": { + "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": "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" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "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": -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" + ] + }, + "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": -2147483648, + "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": -2147483648, + "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" + ] + } + ] + } + }, + "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": "staker", + "description": "Abstract notion of staker used in operation receipts, 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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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": [ + "ProxfordZNRgFcnNcXRSN4rtHAMFpu4w7FNjyx49pjQVU6Ww4ef" + ] + }, + "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" + } + ] + } + } + } +} -- GitLab