Skip to content

Commit

Permalink
Create 2024-10-02-node-cli-api.md (#487)
Browse files Browse the repository at this point in the history
* Zero the times generated in `create-slug.sh`

* Create 2024-10-02-node-cli-api.md
  • Loading branch information
Jimbo4350 authored Oct 21, 2024
1 parent 8714d03 commit bd6126b
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 14 deletions.
49 changes: 49 additions & 0 deletions blog/2024-10-02-node-cli-api.md
Original file line number Diff line number Diff line change
@@ -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
36 changes: 22 additions & 14 deletions scripts/create-slug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,42 @@ 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"
exit 1
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
Expand All @@ -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
Expand Down

0 comments on commit bd6126b

Please sign in to comment.