Skip to content

Commit

Permalink
chore(release): publish 0.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Dec 6, 2024
1 parent 6065c0f commit 9e64627
Show file tree
Hide file tree
Showing 23 changed files with 171 additions and 22 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package modular-governance





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package modular-governance
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"packages/*"
],
"useWorkspaces": true,
"version": "0.0.14"
"version": "0.0.15"
}
8 changes: 8 additions & 0 deletions packages/docsite/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package governance-docs





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package governance-docs
Expand Down
2 changes: 1 addition & 1 deletion packages/docsite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "governance-docs",
"version": "0.0.14",
"version": "0.0.15",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
8 changes: 8 additions & 0 deletions packages/modular-governance-hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/modular-governance-hooks





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/modular-governance-hooks
Expand Down
6 changes: 3 additions & 3 deletions packages/modular-governance-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "React hooks for modular governance",
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,8 +36,8 @@
"@helium/account-fetch-cache": "^0.5.0",
"@helium/account-fetch-cache-hooks": "^0.5.0",
"@helium/helium-react-hooks": "^0.5.0",
"@helium/modular-governance-idls": "^0.0.14",
"@helium/organization-sdk": "^0.0.14",
"@helium/modular-governance-idls": "^0.0.15",
"@helium/organization-sdk": "^0.0.15",
"@solana/web3.js": "^1.78.4"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/modular-governance-idls/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/modular-governance-idls





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/modular-governance-idls
Expand Down
2 changes: 1 addition & 1 deletion packages/modular-governance-idls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helium/modular-governance-idls",
"version": "0.0.14",
"version": "0.0.15",
"description": "Exported idls",
"publishConfig": {
"access": "public",
Expand Down
8 changes: 8 additions & 0 deletions packages/nft-proxy-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/nft-proxy-sdk





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/nft-proxy-sdk
Expand Down
2 changes: 1 addition & 1 deletion packages/nft-proxy-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "Interface to the nft proxy smart contract",
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions packages/nft-voter-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/nft-voter-sdk





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/nft-voter-sdk
Expand Down
6 changes: 3 additions & 3 deletions packages/nft-voter-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "Interface to the nft voter smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,8 +33,8 @@
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@helium/anchor-resolvers": "^0.5.0",
"@helium/modular-governance-idls": "^0.0.14",
"@helium/nft-proxy-sdk": "^0.0.14",
"@helium/modular-governance-idls": "^0.0.15",
"@helium/nft-proxy-sdk": "^0.0.15",
"@solana/spl-token": "^0.3.8"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/organization-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/organization-sdk





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/organization-sdk
Expand Down
6 changes: 3 additions & 3 deletions packages/organization-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "Interface to the organization smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,8 +33,8 @@
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@helium/anchor-resolvers": "^0.5.0",
"@helium/modular-governance-idls": "^0.0.14",
"@helium/proposal-sdk": "^0.0.14"
"@helium/modular-governance-idls": "^0.0.15",
"@helium/proposal-sdk": "^0.0.15"
},
"devDependencies": {
"git-format-staged": "^2.1.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/organization-wallet-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/organization-wallet-sdk





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/organization-wallet-sdk
Expand Down
6 changes: 3 additions & 3 deletions packages/organization-wallet-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "Interface to the organization wallet smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,8 +33,8 @@
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@helium/anchor-resolvers": "^0.5.0",
"@helium/modular-governance-idls": "^0.0.14",
"@helium/proposal-sdk": "^0.0.14"
"@helium/modular-governance-idls": "^0.0.15",
"@helium/proposal-sdk": "^0.0.15"
},
"devDependencies": {
"git-format-staged": "^2.1.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/proposal-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/proposal-sdk





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/proposal-sdk
Expand Down
4 changes: 2 additions & 2 deletions packages/proposal-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "Interface to the proposal smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@helium/anchor-resolvers": "^0.5.0",
"@helium/modular-governance-idls": "^0.0.14"
"@helium/modular-governance-idls": "^0.0.15"
},
"devDependencies": {
"git-format-staged": "^2.1.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/state-controller-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/state-controller-sdk





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/state-controller-sdk
Expand Down
4 changes: 2 additions & 2 deletions packages/state-controller-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "Interface to the state controller smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@helium/anchor-resolvers": "^0.5.0",
"@helium/modular-governance-idls": "^0.0.14"
"@helium/modular-governance-idls": "^0.0.15"
},
"devDependencies": {
"git-format-staged": "^2.1.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/token-voter-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.15](https://github.com/helium/modular-governance/compare/v0.0.14...v0.0.15) (2024-12-06)

**Note:** Version bump only for package @helium/token-voter-sdk





## [0.0.14](https://github.com/helium/modular-governance/compare/v0.0.13...v0.0.14) (2024-10-24)

**Note:** Version bump only for package @helium/token-voter-sdk
Expand Down
4 changes: 2 additions & 2 deletions packages/token-voter-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.14",
"version": "0.0.15",
"description": "Interface to the token voter smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@helium/anchor-resolvers": "^0.5.0",
"@helium/modular-governance-idls": "^0.0.14",
"@helium/modular-governance-idls": "^0.0.15",
"@solana/spl-token": "^0.3.8"
},
"devDependencies": {
Expand Down
61 changes: 61 additions & 0 deletions scripts/verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/bin/bash

# Function to get the latest semver tag for a program
get_latest_tag() {
local program_name=$1
git tag -l "program-$program_name-*" | sed 's/program-[^-]*-//' | sort -t. -k1,1n -k2,2n -k3,3n | tail -n 1 | sed "s/^/program-$program_name-/"
}

# Function to get commit hash from a tag
get_commit_hash() {
local tag=$1
git rev-list -n 1 "$tag"
}

# Function to verify a single program
verify_program() {
local program_dir=$1

# Get the base name and convert hyphens to underscores
library_name=$(basename "$program_dir" | tr '-' '_')

# Get the program ID from Anchor.toml
program_id=$(toml get Anchor.toml programs.localnet.$library_name | tr -d '"')

# Skip if program ID is empty
[ -z "$program_id" ] && return

# Get the program name with hyphens (for tag matching)
program_name=$(basename "$program_dir")

# Get the latest tag and its commit hash
latest_tag=$(get_latest_tag "$program_name")
commit_hash=$(get_commit_hash "$latest_tag")

echo "Verifying $library_name with program ID $program_id"
echo "Using tag $latest_tag (commit: $commit_hash)"

solana-verify verify-from-repo \
https://github.com/helium/modular-governance \
--program-id "$program_id" \
--remote \
--commit-hash "$commit_hash" \
--library-name "$library_name" \
-b solanafoundation/solana-verifiable-build:1.16.13
}

# Check if a specific program was provided
if [ $# -eq 1 ]; then
program_dir="programs/$1"
if [ -d "$program_dir" ]; then
verify_program "$program_dir"
else
echo "Error: Program directory '$program_dir' not found"
exit 1
fi
else
# Iterate through each directory in programs/
for program_dir in programs/*/; do
verify_program "$program_dir"
done
fi

0 comments on commit 9e64627

Please sign in to comment.