Skip to content

Commit

Permalink
chore: bump photon to 0.44.0 (#1117)
Browse files Browse the repository at this point in the history
* bump photon

* bump 0.44.0 and cli

* use lld

---------

Co-authored-by: swen <[email protected]>
  • Loading branch information
SwenSchaeferjohann and swen authored Aug 28, 2024
1 parent f81a7b4 commit 0a82527
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand Down
2 changes: 1 addition & 1 deletion cli/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
2 changes: 1 addition & 1 deletion js/compressed-token/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion js/stateless.js/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions scripts/bump-versions-and-publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a82527

Please sign in to comment.