Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 2024-10-16-node-cli-api.md #488

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
53 changes: 53 additions & 0 deletions blog/2024-10-16-node-cli-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: Node API & CLI Team Update
slug: 2024-10-16-node-cli-api
authors: Jimbo4350
tags: [cli-api]
hide_table_of_contents: false
---

# Node-Api-Cli Update
# 2024-10-02T00:00:00Z - 2024-10-16T00:00:00Z

## High level summary
- More anchor data hash checks were added to cardano-cli commands.
- Support to create certificates that can register and delegate stake.
- Moved various era agnostic commands to the top level of cardano-cli.
- Added Cardano.Api.Tx.Compatible to cardano-api which allows the creation of simple unbalanced transactions that can submit protocol updates in any era.

### cardano-cli
- [Add hash checks for `drep registration-certificate` and `drep update-certificate`](https://github.com/IntersectMBO/cardano-cli/pull/916)
- [Add metadata validation, hash checking, and URL support to `stake-pool registration-certificate`, and hash checking and URL support to `stake-pool metadata-hash`](https://github.com/IntersectMBO/cardano-cli/pull/932)
- [Add url support to metadata hash cmd](https://github.com/IntersectMBO/cardano-cli/pull/927)
- [Add support for certificates to register and delegate stake simultaneously](https://github.com/IntersectMBO/cardano-cli/pull/919)
- [Hide free instances of `HashCheckParamInfo` into functions](https://github.com/IntersectMBO/cardano-cli/pull/921)
- [Move address commands to top level](https://github.com/IntersectMBO/cardano-cli/pull/934)
- [Move key commands to top level](https://github.com/IntersectMBO/cardano-cli/pull/931)
- [Move node commands to top level](https://github.com/IntersectMBO/cardano-cli/pull/929)
- [Remove unnecessary era parameters and use ShelleyBasedEra era](https://github.com/IntersectMBO/cardano-cli/pull/935)


### cardano-api
- [Add Cardano.Api.Tx.Compatible](https://github.com/IntersectMBO/cardano-api/pull/644)
- [Add voting to simple tx interface](https://github.com/IntersectMBO/cardano-api/pull/648)
- [Export GenesisHashByron](https://github.com/IntersectMBO/cardano-api/pull/652)
- [Expose AnyVote](https://github.com/IntersectMBO/cardano-api/pull/649)
- [Expose functions and types from `cardano-ledger-alonzo` and `cardano-ledger-byron` required by cardano-cli](https://github.com/IntersectMBO/cardano-api/pull/647)
- [Handle plutus related ledger events in Conway](https://github.com/IntersectMBO/cardano-api/pull/650)
- [Make `Some` accept forall k. instead of Type kind](https://github.com/IntersectMBO/cardano-api/pull/651)
- [Release 9.4.0.0](https://github.com/IntersectMBO/cardano-api/pull/653)


### cardano-node
- [cardano-tracer: Fix multiple empty logs being produced.](https://github.com/IntersectMBO/cardano-node/pull/6002)

### cardano-testnet
- [cardano-testnet | configurable SPO and relays count, enable parallel execution of the test suite](https://github.com/IntersectMBO/cardano-node/pull/6007)
- [cardano-testnet | Reenable chairman test](https://github.com/IntersectMBO/cardano-node/pull/5992)
- [cardano-testnet | Remove `NodeRuntime` type](https://github.com/IntersectMBO/cardano-node/pull/6013)
- [cardano-testnet: don't specify delegated supply anymore. Use create-testnet-data default behavior](https://github.com/IntersectMBO/cardano-node/pull/6001)
- [cardano-testnet: remove unused ForkPoint datatype](https://github.com/IntersectMBO/cardano-node/pull/6006)

### 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
Loading