11.2.1.0
Changelog
- Bump cardano-api to 11.5, bump CHaP index-state, fix byronGenesis name-shadowing warning
(compatible)
PR 1418
From unreleased 11.2.0.0
-
Fixed
cardano-cli ping's dependency on the command line parser ofcardano-diffusion:ping, which made the released package unbuildable with default cabal flags (it required a manualoptparse-applicative-forkcabal flag set viacabal.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 -
Fix
query utxo --output-textrendering 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 -
Fix help messages in anchor hashing functions to display the right protocols supported
(bugfix)
PR 1396 -
new
cardano-cli pingapicardano-cli pingallows 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
cardano-cli ping 127.0.0.1:3001 [::1]:3001
Run a ping against a domain name:
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.comcardano-cli ping srv.domain.com
Run a ping against unix socket
cardano-cli ping /var/run/cardano-node.socket
cardano-cliping has three modes of operation:- ping mode:
--mode ping(the default) - tip mode
--mode tip - query handshake parameters:
--mode query
(breaking, feature)
PR 1384
- ping mode:
-
The interface for
cardano-cli pinghas been reshuffled:Removed:
-h/--host,-u/--unixsockand-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/--magicis now-m/--network-magic.
Added:
- A positional
ADDRSargument, 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 ofping(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 ofauto,neveroralways.--short-hash, to show an abbreviated tip hash.
Note that
-his now only a short form of--help; it no longer means--host.
(breaking, feature)
PR 1384 -
genesis create,genesis create-stakedandgenesis create-testnet-datanow write
initial funds, stake pools, stake credentials, delegations and initial DReps into the
extraConfigfield of the generated Shelley and Conway genesis files, leaving the
deprecated top-levelinitialFunds,staking,delegsandinitialDRepsfields
empty.
(breaking)
PR 1384 -
--pool-relay-portis now required when--single-host-pool-relayis given. Use an
SRV record via--multi-host-pool-relayif the port should be resolved rather than
stated explicitly.
(breaking)
PR 1384 -
stake-pool registration-certificategained a--validate-relaysflag. When it is
given, each relay passed on the command line is checked for reachability by connecting
to it withcardano-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
From unreleased 11.1.0.0
-
Fix
cardano-cli transaction viewrendering inline datums as a Haskell-Show
string instead of the structured JSON detailed-schema dict. The friendly tx
renderer'sL.Datumbranch infriendlyTxOutnow routes through
scriptDataToJson ScriptDataJsonDetailedSchema . fromAlonzoData, restoring the
pre-#1374 output shape for inline-datum outputs.
(bugfix)
PR 1379 -
Add --key-output-bech32/--key-output-text-envelope to governance key-gen commands.
(feature, compatible)
PR 1378 -
Migrate the friendly transaction renderer (Cardano.CLI.Compatible.Json.Friendly) off the old-API Tx/TxBody/TxBodyContent onto Exp.SignedTx/Exp.UnsignedTx. The public renderer entry points and every internal helper now use Exp.Era era and Exp.LedgerEra era. cardano-cli debug transaction view and cardano-cli transaction view now only accept Conway and Dijkstra tx/tx-body files. Pre-Conway files fail with a DeprecatedEra error.
(breaking, refactoring)
PR 1374 -
Remove the deprecated --update-proposal-file flag from era-based transaction build and transaction build-raw. Update proposals are deprecated since Conway and the flag was already a no-op for Conway+. The flag is kept for compatible transaction signed-transaction where pre-Conway eras still need it.
(breaking)
PR 1372