diff --git a/.changes/20260527_090925_cardano-cli_github-actions[bot]_cardano_cli_11_1_0_0.yml b/.changes/20260527_090925_cardano-cli_github-actions[bot]_cardano_cli_11_1_0_0.yml deleted file mode 100644 index 4e320ebc2d..0000000000 --- a/.changes/20260527_090925_cardano-cli_github-actions[bot]_cardano_cli_11_1_0_0.yml +++ /dev/null @@ -1,5 +0,0 @@ -description: Release cardano-cli 11.1.0.0 -kind: -- release -pr: 1385 -project: cardano-cli diff --git a/.changes/20260602_013028_cardano-cli_pablo.lamela_document_commit_hook_issues.yml b/.changes/20260602_013028_cardano-cli_pablo.lamela_document_commit_hook_issues.yml deleted file mode 100644 index d54cfda93e..0000000000 --- a/.changes/20260602_013028_cardano-cli_pablo.lamela_document_commit_hook_issues.yml +++ /dev/null @@ -1,5 +0,0 @@ -description: Added explanation about pre-commit gotchas to CONTRIBUTING.md -kind: -- documentation -pr: 1388 -project: cardano-cli diff --git a/.changes/20260625_145525_cardano-cli_work_prepare_11_1.yml b/.changes/20260625_145525_cardano-cli_work_prepare_11_1.yml deleted file mode 100644 index d070a7d4a3..0000000000 --- a/.changes/20260625_145525_cardano-cli_work_prepare_11_1.yml +++ /dev/null @@ -1,41 +0,0 @@ -description: |- - new `cardano-cli ping` api - - `cardano-cli ping` allows now to ping multiple servers, does domain name - resolution and supports SRV records (as specified in - https://cips.cardano.org/cip/CIP-0155) - - Some examples: - - Run a ping against two ip addresses, ipv4 & ipv6 - ```bash - cardano-cli ping 127.0.0.1:3001 [::1]:3001 - ``` - - Run a ping against a domain name: - ```bash - cardano-cli ping my.domain.com:3001 - ``` - - Run a ping against an SRV domain. - According to CIP#0155 the SRV record needs to be registered at - `_cardano._tcp.srv.domain.com` - ```bash - cardano-cli ping srv.domain.com - ``` - - Run a ping against unix socket - ```bash - cardano-cli ping /var/run/cardano-node.socket - ``` - - `cardano-cli` ping has three modes of operation: - - * ping mode: `--mode ping` (the default) - * tip mode `--mode tip` - * query handshake parameters: `--mode query` -kind: -- breaking -- feature -pr: 1384 -project: cardano-cli diff --git a/.changes/20260629_152640_cardano-cli_jordan.millar_use_exp_txout_directly.yml b/.changes/20260629_152640_cardano-cli_jordan.millar_use_exp_txout_directly.yml deleted file mode 100644 index cc8854c374..0000000000 --- a/.changes/20260629_152640_cardano-cli_jordan.millar_use_exp_txout_directly.yml +++ /dev/null @@ -1,9 +0,0 @@ -project: cardano-cli - -pr: 1392 - -kind: - - refactoring - -description: | - Build Exp.TxOut directly via ledger constructors in Compatible/Transaction/TxOut, eliminating the TxOut CtxTx era intermediate. Simplify Byron output types to (Address ByronAddr, L.Coin) throughout the Byron command path. diff --git a/.changes/20260718_044307_cardano-cli_pablo.lamela_fix_anchor_url_help_messages.yml b/.changes/20260718_044307_cardano-cli_pablo.lamela_fix_anchor_url_help_messages.yml deleted file mode 100644 index bd1785c35c..0000000000 --- a/.changes/20260718_044307_cardano-cli_pablo.lamela_fix_anchor_url_help_messages.yml +++ /dev/null @@ -1,6 +0,0 @@ -description: Fix help messages in anchor hashing functions to display the right protocols - supported -kind: -- bugfix -pr: 1396 -project: cardano-cli diff --git a/.changes/20260724_233532_cardano-cli_pablo.lamela_fix_query_utxo_text_dangling_separator.yml b/.changes/20260724_233532_cardano-cli_pablo.lamela_fix_query_utxo_text_dangling_separator.yml deleted file mode 100644 index 253de8f40b..0000000000 --- a/.changes/20260724_233532_cardano-cli_pablo.lamela_fix_query_utxo_text_dangling_separator.yml +++ /dev/null @@ -1,9 +0,0 @@ -description: Fix `query utxo --output-text` rendering a dangling `" + "` separator - after the value for pre-Babbage era outputs. Outputs of eras without datums (Shelley - to Mary) now end at the value, and Alonzo era outputs now render their datum hash - the way Babbage+ outputs do. Golden tests added for the text rendering. -kind: -- bugfix -- test -pr: 1399 -project: cardano-cli diff --git a/.changes/20260724_235840_cardano-cli_pablo.lamela_add_herald_to_devshell.yml b/.changes/20260724_235840_cardano-cli_pablo.lamela_add_herald_to_devshell.yml deleted file mode 100644 index 112a58602e..0000000000 --- a/.changes/20260724_235840_cardano-cli_pablo.lamela_add_herald_to_devshell.yml +++ /dev/null @@ -1,5 +0,0 @@ -description: Add herald, the changelog fragment tool, to the nix development shell -kind: -- maintenance -pr: 1400 -project: cardano-cli diff --git a/.changes/20260806_085900_cardano-cli_fabrizio.ferrai_migrate_ping_command.yml b/.changes/20260806_085900_cardano-cli_fabrizio.ferrai_migrate_ping_command.yml deleted file mode 100644 index f43d31cc65..0000000000 --- a/.changes/20260806_085900_cardano-cli_fabrizio.ferrai_migrate_ping_command.yml +++ /dev/null @@ -1,32 +0,0 @@ -description: |- - The interface for `cardano-cli ping` has been reshuffled: - - Removed: - - * `-h`/`--host`, `-u`/`--unixsock` and `-p`/`--port`. The target is now given as a - positional argument instead (see below). - * `-Q`/`--query-versions`, replaced by `--mode query`. - * `-t`/`--tip`, replaced by `--mode tip`. - - Renamed: - - * `-m`/`--magic` is now `-m`/`--network-magic`. - - Added: - - * A positional `ADDRS` argument, which accepts one or more targets: an IP/DNS address - with a port (`127.0.0.1:3001`, `[::1]:3001`, `example.org:3001`), an SRV name, or a - UNIX socket path. - * `--mode MODE`, one of `ping` (keep-alive, node-to-node only), `tip` (chain-sync) or - `query` (handshake parameters). - * `--srv-prefix SRV_PREFIX`, the prefix prepended to an SRV service name - (default `_cardano._tcp`). - * `--color COLOR`, one of `auto`, `never` or `always`. - * `--short-hash`, to show an abbreviated tip hash. - - Note that `-h` is now only a short form of `--help`; it no longer means `--host`. -kind: -- breaking -- feature -pr: 1384 -project: cardano-cli diff --git a/.changes/20260806_090000_cardano-cli_fabrizio.ferrai_genesis_extra_config.yml b/.changes/20260806_090000_cardano-cli_fabrizio.ferrai_genesis_extra_config.yml deleted file mode 100644 index 7777ee6bfc..0000000000 --- a/.changes/20260806_090000_cardano-cli_fabrizio.ferrai_genesis_extra_config.yml +++ /dev/null @@ -1,10 +0,0 @@ -description: |- - `genesis create`, `genesis create-staked` and `genesis create-testnet-data` now write - initial funds, stake pools, stake credentials, delegations and initial DReps into the - `extraConfig` field of the generated Shelley and Conway genesis files, leaving the - deprecated top-level `initialFunds`, `staking`, `delegs` and `initialDReps` fields - empty. -kind: -- breaking -pr: 1384 -project: cardano-cli diff --git a/.changes/20260806_090100_cardano-cli_marcin.szamotulski_require_relay_port.yml b/.changes/20260806_090100_cardano-cli_marcin.szamotulski_require_relay_port.yml deleted file mode 100644 index 35b644d470..0000000000 --- a/.changes/20260806_090100_cardano-cli_marcin.szamotulski_require_relay_port.yml +++ /dev/null @@ -1,8 +0,0 @@ -description: |- - `--pool-relay-port` is now required when `--single-host-pool-relay` is given. Use an - SRV record via `--multi-host-pool-relay` if the port should be resolved rather than - stated explicitly. -kind: -- breaking -pr: 1384 -project: cardano-cli diff --git a/.changes/20260806_090200_cardano-cli_marcin.szamotulski_validate_pool_relays.yml b/.changes/20260806_090200_cardano-cli_marcin.szamotulski_validate_pool_relays.yml deleted file mode 100644 index aa6542dbcd..0000000000 --- a/.changes/20260806_090200_cardano-cli_marcin.szamotulski_validate_pool_relays.yml +++ /dev/null @@ -1,10 +0,0 @@ -description: |- - `stake-pool registration-certificate` gained a `--validate-relays` flag. When it is - given, each relay passed on the command line is checked for reachability by connecting - to it with `cardano-diffusion:ping`, and the command fails with the collected errors if - any relay cannot be reached. The flag is opt-in: without it the certificate is created - without any network access, as before. -kind: -- feature -pr: 1384 -project: cardano-cli diff --git a/.changes/20260812_011204_cardano-cli_kolam_prepare_11_1_fixup.yml b/.changes/20260812_011204_cardano-cli_kolam_prepare_11_1_fixup.yml deleted file mode 100644 index 96133371d8..0000000000 --- a/.changes/20260812_011204_cardano-cli_kolam_prepare_11_1_fixup.yml +++ /dev/null @@ -1,6 +0,0 @@ -description: Bump CHaP index-state to use cardano-api 11.4 revision and ouroboros-consensus - 4.1.0.0 -kind: -- maintenance -pr: 1412 -project: cardano-cli diff --git a/.changes/20260812_101216_cardano-cli_jordan.millar_fix_ping_parser.yml b/.changes/20260812_101216_cardano-cli_jordan.millar_fix_ping_parser.yml deleted file mode 100644 index be6214d61d..0000000000 --- a/.changes/20260812_101216_cardano-cli_jordan.millar_fix_ping_parser.yml +++ /dev/null @@ -1,9 +0,0 @@ -project: cardano-cli - -pr: 1413 - -kind: - - bugfix - -description: | - Fixed `cardano-cli ping`'s dependency on the command line parser of `cardano-diffusion:ping`, which made the released package unbuildable with default cabal flags (it required a manual `optparse-applicative-fork` cabal flag set via `cabal.project`, which does not ship with the sdist). The parser is replaced with a behaviourally identical local one; the command line interface is unchanged. diff --git a/.changes/20260813_170152_cardano-cli_github-actions[bot]_cardano_cli_11_2_0_0.yml b/.changes/20260813_170152_cardano-cli_github-actions[bot]_cardano_cli_11_2_0_0.yml new file mode 100644 index 0000000000..c21a07d8c5 --- /dev/null +++ b/.changes/20260813_170152_cardano-cli_github-actions[bot]_cardano_cli_11_2_0_0.yml @@ -0,0 +1,5 @@ +description: Release cardano-cli 11.2.0.0 +kind: +- release +pr: 1416 +project: cardano-cli diff --git a/.changes/remove-closed-range-eon-eliminators.yml b/.changes/remove-closed-range-eon-eliminators.yml deleted file mode 100644 index d5eadc9747..0000000000 --- a/.changes/remove-closed-range-eon-eliminators.yml +++ /dev/null @@ -1,6 +0,0 @@ -description: | - Replaced the `caseShelleyToAllegraOrMaryEraOnwards`, `caseShelleyToAlonzoOrBabbageEraOnwards` and `caseShelleyToMaryOrAlonzoEraOnwards` eon eliminators with `forEraInEon` in transaction, query and governance option parsing. No behavioural change. This removes the last cardano-cli uses of the `ShelleyToAllegraEra`, `ShelleyToAlonzoEra` and `ShelleyToMaryEra` eons. -kind: -- refactoring -pr: 1397 -project: cardano-cli diff --git a/cardano-cli/CHANGELOG.md b/cardano-cli/CHANGELOG.md index 81e216c803..d52e8b1915 100644 --- a/cardano-cli/CHANGELOG.md +++ b/cardano-cli/CHANGELOG.md @@ -1,5 +1,108 @@ # Changelog for cardano-cli +## 11.2.0.0 -- 2026-08-13 + +- Fixed `cardano-cli ping`'s dependency on the command line parser of `cardano-diffusion:ping`, which made the released package unbuildable with default cabal flags (it required a manual `optparse-applicative-fork` cabal flag set via `cabal.project`, which does not ship with the sdist). The parser is replaced with a behaviourally identical local one; the command line interface is unchanged. + (bugfix) + [PR 1413](https://github.com/intersectmbo/cardano-cli/pull/1413) + +- Fix `query utxo --output-text` rendering a dangling `" + "` separator after the value for pre-Babbage era outputs. Outputs of eras without datums (Shelley to Mary) now end at the value, and Alonzo era outputs now render their datum hash the way Babbage+ outputs do. Golden tests added for the text rendering. + (bugfix, test) + [PR 1399](https://github.com/intersectmbo/cardano-cli/pull/1399) + +- Fix help messages in anchor hashing functions to display the right protocols supported + (bugfix) + [PR 1396](https://github.com/intersectmbo/cardano-cli/pull/1396) + +- new `cardano-cli ping` api + + `cardano-cli ping` allows now to ping multiple servers, does domain name + resolution and supports SRV records (as specified in + https://cips.cardano.org/cip/CIP-0155) + + Some examples: + + Run a ping against two ip addresses, ipv4 & ipv6 + ```bash + cardano-cli ping 127.0.0.1:3001 [::1]:3001 + ``` + + Run a ping against a domain name: + ```bash + cardano-cli ping my.domain.com:3001 + ``` + + Run a ping against an SRV domain. + According to CIP#0155 the SRV record needs to be registered at + `_cardano._tcp.srv.domain.com` + ```bash + cardano-cli ping srv.domain.com + ``` + + Run a ping against unix socket + ```bash + cardano-cli ping /var/run/cardano-node.socket + ``` + + `cardano-cli` ping has three modes of operation: + + * ping mode: `--mode ping` (the default) + * tip mode `--mode tip` + * query handshake parameters: `--mode query` + (breaking, feature) + [PR 1384](https://github.com/intersectmbo/cardano-cli/pull/1384) + +- The interface for `cardano-cli ping` has been reshuffled: + + Removed: + + * `-h`/`--host`, `-u`/`--unixsock` and `-p`/`--port`. The target is now given as a + positional argument instead (see below). + * `-Q`/`--query-versions`, replaced by `--mode query`. + * `-t`/`--tip`, replaced by `--mode tip`. + + Renamed: + + * `-m`/`--magic` is now `-m`/`--network-magic`. + + Added: + + * A positional `ADDRS` argument, which accepts one or more targets: an IP/DNS address + with a port (`127.0.0.1:3001`, `[::1]:3001`, `example.org:3001`), an SRV name, or a + UNIX socket path. + * `--mode MODE`, one of `ping` (keep-alive, node-to-node only), `tip` (chain-sync) or + `query` (handshake parameters). + * `--srv-prefix SRV_PREFIX`, the prefix prepended to an SRV service name + (default `_cardano._tcp`). + * `--color COLOR`, one of `auto`, `never` or `always`. + * `--short-hash`, to show an abbreviated tip hash. + + Note that `-h` is now only a short form of `--help`; it no longer means `--host`. + (breaking, feature) + [PR 1384](https://github.com/intersectmbo/cardano-cli/pull/1384) + +- `genesis create`, `genesis create-staked` and `genesis create-testnet-data` now write + initial funds, stake pools, stake credentials, delegations and initial DReps into the + `extraConfig` field of the generated Shelley and Conway genesis files, leaving the + deprecated top-level `initialFunds`, `staking`, `delegs` and `initialDReps` fields + empty. + (breaking) + [PR 1384](https://github.com/intersectmbo/cardano-cli/pull/1384) + +- `--pool-relay-port` is now required when `--single-host-pool-relay` is given. Use an + SRV record via `--multi-host-pool-relay` if the port should be resolved rather than + stated explicitly. + (breaking) + [PR 1384](https://github.com/intersectmbo/cardano-cli/pull/1384) + +- `stake-pool registration-certificate` gained a `--validate-relays` flag. When it is + given, each relay passed on the command line is checked for reachability by connecting + to it with `cardano-diffusion:ping`, and the command fails with the collected errors if + any relay cannot be reached. The flag is opt-in: without it the certificate is created + without any network access, as before. + (feature) + [PR 1384](https://github.com/intersectmbo/cardano-cli/pull/1384) + ## 11.1.0.0 -- 2026-05-27 - Fix `cardano-cli transaction view` rendering inline datums as a Haskell-`Show` diff --git a/cardano-cli/cardano-cli.cabal b/cardano-cli/cardano-cli.cabal index 8a5ab58f6b..6849855cd7 100644 --- a/cardano-cli/cardano-cli.cabal +++ b/cardano-cli/cardano-cli.cabal @@ -1,6 +1,6 @@ cabal-version: 3.8 name: cardano-cli -version: 11.1.0.0 +version: 11.2.0.0 synopsis: The Cardano command-line interface description: The Cardano command-line interface. copyright: 2020-2023 Input Output Global Inc (IOG).