From 9009305fc13196288a8111f3d130a7147784f4e4 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Wed, 3 Jan 2024 12:20:09 +0100 Subject: [PATCH] build: prepare release to publish ckETH (#511) # Motivation This PR prepares the repo for a first release of the cketh-js library, that way we can setup our pipelines. It also add the librariries entries for the GitHub actions of ic-js. --------- Co-authored-by: Formatting Committer --- .github/workflows/nightly.yml | 4 ++++ CHANGELOG.md | 25 ++++++++++++++++++++++++- README.md | 1 + package-lock.json | 4 ++-- package.json | 2 +- scripts/publish-npm.sh | 2 +- scripts/update-agent | 2 +- 7 files changed, 34 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2f342a5b..8aa41346 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -51,6 +51,10 @@ jobs: run: npm publish --provenance --tag next --workspace=packages/ckbtc env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - name: Publish ckETH + run: npm publish --provenance --tag next --workspace=packages/cketh + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Publish ic-management run: npm publish --provenance --tag next --workspace=packages/ic-management env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 42fe9969..6712af7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +# 2024.01.03-1115Z + +## Overview + +The current status of the libraries at the time of the release is as follows: + +| Library | Version | Status | +| ------------------------ | ------- | ---------- | +| `@dfinity/ckbtc` | v2.1.0 | Unchanged | +| `@dfinity/cketh` | v0.0.1 | New 🚀 | +| `@dfinity/cmc` | v2.1.0 | Unchanged | +| `@dfinity/ic-management` | v2.1.0 | Unchanged | +| `@dfinity/ledger-icp` | v2.1.0 | Unchanged | +| `@dfinity/ledger-icrc` | v2.1.0 | Unchanged | +| `@dfinity/nns` | v3.1.0 | Unchanged | +| `@dfinity/nns-proto` | v1.0.0 | Unchanged | +| `@dfinity/sns` | v2.1.0 | Unchanged | +| `@dfinity/utils` | v2.0.0 | Unchanged️ | + +## Features + +- Introduces an early first version of `@dfinity/cketh`, which is meant to provide functions for interfacing with ckETH. The library doesn't do much at the moment, but we're releasing it to integrate it into our pipelines, and features will be added iteratively as required. + # 2023.12.20-1000Z ## Overview @@ -40,7 +63,7 @@ The current status of the libraries at the time of the release is as follows: - Add a cron job to periodically update IC candid files and typescript bindings. -# Release.2023.11.21-1400Z +# 2023.11.21-1400Z ## Overview diff --git a/README.md b/README.md index 3d1f7fff..ebdf904f 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ A collection of library for interfacing with the Internet Computer. - [ledger-icp](/packages/ledger-icp): interfacing with the **ICP** ledger - [ledger-icrc](/packages/ledger-icrc): interacting with **ICRC** compatible ledgers - [ckBTC](/packages/ckbtc): interfacing with **ckBTC** +- [ckETH](/packages/cketh): interfacing with **ckETH** - [ic-management](/packages/ic-management): interfacing with the **IC management canister** - [utils](/packages/utils): a collection of utilities and constants - [nns-proto](/packages/nns-proto): the protobuf source used by `nns-js` to support hardware wallets diff --git a/package-lock.json b/package-lock.json index c04f1fa4..2dd6c061 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dfinity/ic-js", - "version": "2023.12.20-1000Z", + "version": "2024.01.03-1115Z", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dfinity/ic-js", - "version": "2023.12.20-1000Z", + "version": "2024.01.03-1115Z", "license": "Apache-2.0", "workspaces": [ "packages/utils", diff --git a/package.json b/package.json index 40ca48cd..f27bf592 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/ic-js", - "version": "2023.12.20-1000Z", + "version": "2024.01.03-1115Z", "description": "A collection of library for interfacing with the Internet Computer.", "license": "Apache-2.0", "workspaces": [ diff --git a/scripts/publish-npm.sh b/scripts/publish-npm.sh index a3bee2c1..f1e345bd 100755 --- a/scripts/publish-npm.sh +++ b/scripts/publish-npm.sh @@ -18,7 +18,7 @@ function publish_npm() { } # Tips: libs use by other libs first -LIBS=utils,ledger-icrc,ledger-icp,nns-proto,nns,sns,cmc,ckbtc,ic-management +LIBS=utils,ledger-icrc,ledger-icp,nns-proto,nns,sns,cmc,ckbtc,cketh,ic-management for lib in $(echo $LIBS | sed "s/,/ /g"); do publish_npm "$lib" diff --git a/scripts/update-agent b/scripts/update-agent index 45221461..9d2ee27a 100755 --- a/scripts/update-agent +++ b/scripts/update-agent @@ -12,7 +12,7 @@ function install_agent() { npm i @dfinity/agent@latest @dfinity/candid@latest @dfinity/principal@latest --workspace=packages/"$package" --save-peer } -PACKAGES=utils,ckbtc,cmc,ic-management,ledger-icp,ledger-icrc,nns,sns +PACKAGES=utils,ckbtc,cketh,cmc,ic-management,ledger-icp,ledger-icrc,nns,sns # Remove agent-js libraries from all packages first to avoid resolve conflicts between those for package in $(echo $PACKAGES | sed "s/,/ /g"); do