From bd6126bb4bdd250ba0411e0767c64b38c04f2405 Mon Sep 17 00:00:00 2001 From: Jordan Millar Date: Mon, 21 Oct 2024 08:30:10 -0400 Subject: [PATCH] Create 2024-10-02-node-cli-api.md (#487) * Zero the times generated in `create-slug.sh` * Create 2024-10-02-node-cli-api.md --- blog/2024-10-02-node-cli-api.md | 49 +++++++++++++++++++++++++++++++++ scripts/create-slug.sh | 36 ++++++++++++++---------- 2 files changed, 71 insertions(+), 14 deletions(-) create mode 100644 blog/2024-10-02-node-cli-api.md diff --git a/blog/2024-10-02-node-cli-api.md b/blog/2024-10-02-node-cli-api.md new file mode 100644 index 0000000000..1d9abc7fbb --- /dev/null +++ b/blog/2024-10-02-node-cli-api.md @@ -0,0 +1,49 @@ +--- +title: Node API & CLI Team Update +slug: 2024-10-02-node-cli-api +authors: Jimbo4350 +tags: [cli-api] +hide_table_of_contents: false +--- + +# Node-Api-Cli Update +# 2024-09-18T00:00:00Z - 2024-10-02T00:00:00Z + +## High level summary + +- We continue to remove irrelevant eras from cardano-cli with an aim to simplify the Haskell code and the interface exposed to the user. +- During a working group meeting a user [pointed out](https://github.com/IntersectMBO/cardano-cli/issues/882) the possibility to specify an incorrect anchor data hash. This has been largely rectified in `cardano-cli` but there is some more work to be done particularly in the `transaction build` command. +- We added the possibility to specify supplemental datums and other minor improvements in this sprint. + +### cardano-cli +- [Add a test of create-cardano](https://github.com/IntersectMBO/cardano-cli/pull/907) +- [Add anchor data hash checks to remaining governance action commands](https://github.com/IntersectMBO/cardano-cli/pull/915) +- [Add hash validation and support for HTTP(S) and IPFS to command `hash anchor-data`](https://github.com/IntersectMBO/cardano-cli/pull/895) +- [Add proposal hash check when creating `info` governance action](https://github.com/IntersectMBO/cardano-cli/pull/910) +- [create-testnet-data: take optional node configuration file as input and check/add genesis hashes and paths](https://github.com/IntersectMBO/cardano-cli/pull/908) +- [Remove era|legacy transaction view](https://github.com/IntersectMBO/cardano-cli/pull/868) +- [Remove eras older than Babbage support in `transaction build` and `transaction build-estimate`](https://github.com/IntersectMBO/cardano-cli/pull/878) +- [Remove legacy commands](https://github.com/IntersectMBO/cardano-cli/pull/905) +- [Update create-treasury-withdrawal](https://github.com/IntersectMBO/cardano-cli/pull/914) + + +### cardano-api +- [638-Allow next leadership-schedule at 4k/f](https://github.com/IntersectMBO/cardano-api/pull/639) +- [Add new field 'inlineDatumRaw' to TxOut ToJSON instance](https://github.com/IntersectMBO/cardano-api/pull/632) +- [Introduce supplementary datums](https://github.com/IntersectMBO/cardano-api/pull/640) +- [Make `IsXXXBasedEra` a class hierarchy](https://github.com/IntersectMBO/cardano-api/pull/641) + + +### cardano-node +- [cardano-node 9.2.0 release](https://github.com/IntersectMBO/cardano-node/pull/5944) +- [cardano-tracer: Allow switching EKG service between different nodes.](https://github.com/IntersectMBO/cardano-node/pull/5975) +- [cardano-tracer: OpenMetrics compliance for Prometheus; fix `forHuman` output in journald](https://github.com/IntersectMBO/cardano-node/pull/5997) + + +### cardano-testnet +- [cardano-testnet: Code sharing in Defaults.hs](https://github.com/IntersectMBO/cardano-node/pull/5996) +- [cardano-testnet: rename ShelleyTestnetOptions into GenesisOptions](https://github.com/IntersectMBO/cardano-node/pull/5987) + +### docs + +### CI & project maintenance diff --git a/scripts/create-slug.sh b/scripts/create-slug.sh index 27383d8448..77b2b870f6 100755 --- a/scripts/create-slug.sh +++ b/scripts/create-slug.sh @@ -4,13 +4,21 @@ set -euo pipefail # Author's name AUTHOR=$1 -# Date in the format YYYY-MM-DD -DATE=$2 -# Date in the format YYYY-MM-DD -END_DATE=$3 +if [[ "$(uname -s)" == "Darwin" ]]; then + date_cmd=gdate +else + date_cmd=date +fi + +# Date in the format YYYY-MM-DD:00:00:00Z +DATE_ZEROED="$("$date_cmd" -u -d "$2" +"%Y-%m-%dT%H:%M:%SZ")" + +# Date in the format YYYY-MM-DD:00:00:00Z +END_DATE_ZEROED="$("$date_cmd" -u -d "$3" +"%Y-%m-%dT%H:%M:%SZ")" +END_DATE_WITHOUT_TIME=$3 # Check that both parameters are provided -if [ -z "$DATE" ] || [ -z "$AUTHOR" ]; then +if [ -z "$DATE_ZEROED" ] || [ -z "$AUTHOR" ]; then echo "Usage: $0 date author" echo "date: Date in the format YYYY-MM-DD" echo "author: Author's name" @@ -18,20 +26,20 @@ if [ -z "$DATE" ] || [ -z "$AUTHOR" ]; then fi # Filename in the format YYYY-MM-DD-node-cli-api.md -FILENAME="blog/${END_DATE}-node-cli-api.md" +FILENAME="blog/${END_DATE_WITHOUT_TIME}-node-cli-api.md" # Generate the file with the specified content cat > $FILENAME << EOF --- title: Node API & CLI Team Update -slug: ${END_DATE}-node-cli-api +slug: ${END_DATE_ZEROED}-node-cli-api authors: ${AUTHOR} tags: [cli-api] hide_table_of_contents: false --- # Node-Api-Cli Update -# ${DATE} - ${END_DATE} +# ${DATE_ZEROED} - ${END_DATE_ZEROED} ## High level summary @@ -48,13 +56,13 @@ hide_table_of_contents: false ### CI & project maintenance EOF -source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-node.git $DATE $END_DATE -source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-cli.git $DATE $END_DATE -source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-api.git $DATE $END_DATE +source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-node.git $DATE_ZEROED $END_DATE_ZEROED +source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-cli.git $DATE_ZEROED $END_DATE_ZEROED +source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-api.git $DATE_ZEROED $END_DATE_ZEROED -source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-node.git current $DATE $END_DATE -source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-cli.git current $DATE $END_DATE -source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-api.git current $DATE $END_DATE +source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-node.git current $DATE_ZEROED $END_DATE_ZEROED +source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-cli.git current $DATE_ZEROED $END_DATE_ZEROED +source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-api.git current $DATE_ZEROED $END_DATE_ZEROED source scripts/summarise-merged-prs.sh https://github.com/IntersectMBO/cardano-node.git current source scripts/summarise-merged-prs.sh https://github.com/IntersectMBO/cardano-cli.git current