From 0a825277beec41defb68921428cdef358d864649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Swen=20Sch=C3=A4ferjohann?= <42959314+SwenSchaeferjohann@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:57:49 +0100 Subject: [PATCH] chore: bump photon to 0.44.0 (#1117) * bump photon * bump 0.44.0 and cli * use lld --------- Co-authored-by: swen --- cli/package.json | 2 +- cli/src/utils/constants.ts | 2 +- js/compressed-token/package.json | 2 +- js/stateless.js/package.json | 2 +- pnpm-lock.yaml | 4 ++++ scripts/bump-versions-and-publish-npm.sh | 18 +++++++++++------- scripts/install.sh | 2 +- 7 files changed, 20 insertions(+), 12 deletions(-) diff --git a/cli/package.json b/cli/package.json index dd7cf6367e..87fdaa3237 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@lightprotocol/zk-compression-cli", - "version": "0.7.0", + "version": "0.9.0", "description": "ZK Compression: Secure Scaling on Solana", "maintainers": [ { diff --git a/cli/src/utils/constants.ts b/cli/src/utils/constants.ts index 04de44f8f6..362e69e45f 100644 --- a/cli/src/utils/constants.ts +++ b/cli/src/utils/constants.ts @@ -21,7 +21,7 @@ export const LIGHT_PROVER_PROCESS_NAME = "light-prover"; export const INDEXER_PROCESS_NAME = "photon"; export const FORESTER_PROCESS_NAME = "forester"; -export const PHOTON_VERSION = "0.40.0"; +export const PHOTON_VERSION = "0.44.0"; export const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR"; export const BASE_PATH = "../../bin/"; diff --git a/js/compressed-token/package.json b/js/compressed-token/package.json index 54fd51035f..ea4488592c 100644 --- a/js/compressed-token/package.json +++ b/js/compressed-token/package.json @@ -1,6 +1,6 @@ { "name": "@lightprotocol/compressed-token", - "version": "0.10.1", + "version": "0.11.0", "description": "JS client to interact with the compressed-token program", "sideEffects": false, "main": "dist/cjs/node/index.cjs", diff --git a/js/stateless.js/package.json b/js/stateless.js/package.json index 064542c6d0..c260da9705 100644 --- a/js/stateless.js/package.json +++ b/js/stateless.js/package.json @@ -1,6 +1,6 @@ { "name": "@lightprotocol/stateless.js", - "version": "0.10.1", + "version": "0.11.0", "description": "JavaScript API for Light and ZK Compression", "sideEffects": false, "main": "dist/cjs/node/index.cjs", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 383580d61a..64e2febf11 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -413,6 +413,10 @@ importers: specifier: ^1.6.0 version: 1.6.0(@types/node@22.4.1)(@vitest/browser@1.6.0)(terser@5.31.0) + hasher.rs/src/main/wasm: {} + + hasher.rs/src/main/wasm-simd: {} + js/compressed-token: dependencies: '@coral-xyz/anchor': diff --git a/scripts/bump-versions-and-publish-npm.sh b/scripts/bump-versions-and-publish-npm.sh index 43d24855e6..361d96d65f 100755 --- a/scripts/bump-versions-and-publish-npm.sh +++ b/scripts/bump-versions-and-publish-npm.sh @@ -7,17 +7,21 @@ if ! command -v pnpm &> /dev/null; then exit 1 fi -declare -A package_dirs -package_dirs["@lightprotocol/hasher.rs"]="hasher.rs" -package_dirs["@lightprotocol/stateless.js"]="js/stateless.js" -package_dirs["@lightprotocol/compressed-token"]="js/compressed-token" -package_dirs["@lightprotocol/zk-compression-cli"]="cli" +get_package_dir() { + case "$1" in + "@lightprotocol/hasher.rs") echo "hasher.rs" ;; + "@lightprotocol/stateless.js") echo "js/stateless.js" ;; + "@lightprotocol/compressed-token") echo "js/compressed-token" ;; + "@lightprotocol/zk-compression-cli") echo "cli" ;; + *) echo "" ;; + esac +} # Bump version and publish publish_package() { local package_name=$1 local version_type=$2 - local package_dir=${package_dirs[$package_name]} + local package_dir=$(get_package_dir "$package_name") if [ -z "$package_dir" ]; then echo "No directory mapping found for package $package_name." @@ -60,4 +64,4 @@ if [ "$error_occurred" -eq 1 ]; then echo "NPM release process completed with errors." else echo "NPM release process completed successfully." -fi +fi \ No newline at end of file diff --git a/scripts/install.sh b/scripts/install.sh index 1db62dc69b..d290682200 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -13,7 +13,7 @@ VERSIONS=( "solana:1.18.17" "anchor:anchor-v0.29.0" "jq:jq-1.7.1" - "photon:0.40.0" + "photon:0.44.0" ) # Architecture-specific suffixes