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

Develop #40

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f90a787
Feature/bump deps (#10)
bryzettler Nov 6, 2023
efcf883
add scripts to package.json
bryzettler Nov 6, 2023
a7facc2
chore(release): publish 0.0.6
bryzettler Nov 6, 2023
1c39345
bump deps
bryzettler Nov 7, 2023
5ee87b2
chore(release): publish 0.0.7
bryzettler Nov 7, 2023
896a808
bump deps
bryzettler Nov 10, 2023
1208f11
chore(release): publish 0.0.8
bryzettler Nov 10, 2023
e6cffa4
Merge remote-tracking branch 'origin/main' into develop
ChewingGlass Jan 31, 2024
bdc8e69
Add devnet feature
ChewingGlass Jan 31, 2024
eaa16fb
chore(release): publish 0.0.9
ChewingGlass Mar 13, 2024
af9b632
Merge remote-tracking branch 'origin/main' into develop
ChewingGlass Mar 13, 2024
f96bb03
Merge remote-tracking branch 'origin/main' into develop
ChewingGlass Apr 15, 2024
71326dd
Add recursive delegation for nft-style voting schems (#11)
ChewingGlass Aug 9, 2024
7cf5ec1
conflicts
bryzettler Aug 12, 2024
c369fdb
Chore/publish 0.0.12 (#33)
bryzettler Aug 12, 2024
b6f50ec
Fix mod gov package.json
ChewingGlass Sep 6, 2024
21a23ba
chore(release): publish 0.0.13
ChewingGlass Sep 6, 2024
678073c
Bump version
ChewingGlass Sep 6, 2024
af34eb9
Merge branch 'main' into develop
ChewingGlass Oct 21, 2024
c7bcf86
[HIP-124]: Implement abstain vote (#37)
ChewingGlass Oct 23, 2024
46b2a82
chore(release): publish 0.0.14
ChewingGlass Oct 24, 2024
a5a886b
Bump version
ChewingGlass Oct 24, 2024
ab7c272
bump squads
ChewingGlass Oct 24, 2024
3d4e674
get another release for state controller
ChewingGlass Oct 24, 2024
6065c0f
Add fallbacks for smart contracts used by HPL (#38)
ChewingGlass Dec 6, 2024
9e64627
chore(release): publish 0.0.15
ChewingGlass Dec 6, 2024
ebf582e
Fix bugs in nft and token voter (#39)
ChewingGlass Dec 13, 2024
f7dffee
Merge remote-tracking branch 'origin/main' into develop
ChewingGlass Jan 30, 2025
f62ca7c
Fix build
ChewingGlass Jan 30, 2025
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
Prev Previous commit
Next Next commit
chore(release): publish 0.0.15
  • Loading branch information
ChewingGlass committed Dec 6, 2024
commit 9e6462745862cd1cc69d8cb6390c963aba7ae4b9
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
Loading