Skip to content

Commit

Permalink
Add recursive delegation for nft-style voting schems (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass authored Aug 9, 2024
1 parent f96bb03 commit 71326dd
Show file tree
Hide file tree
Showing 59 changed files with 1,707 additions and 55 deletions.
3 changes: 3 additions & 0 deletions .github/actions/setup-anchor/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ runs:
path: |
~/.cargo/bin/anchor
key: anchor-cli-${{ runner.os }}-v0003-${{ env.ANCHOR_VERSION }}-${{ env.ANCHOR_SHA }}
- run: rustup install 1.79 && rustup default 1.79
shell: bash
if: steps.cache-anchor-cli.outputs.cache-hit != 'true'
# if ANCHOR_VERSION is 0, then install the anchor-cli from source
- run: if [ $ANCHOR_VERSION -eq 0 ]; then cargo install --git https://github.com/coral-xyz/anchor --rev $ANCHOR_SHA anchor-cli --locked --force; else cargo install --git https://github.com/coral-xyz/anchor --tag "v$ANCHOR_VERSION" anchor-cli --locked; fi
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ runs:
shell: bash
- run: git submodule update --init --recursive --depth 1
shell: bash

2 changes: 2 additions & 0 deletions .github/workflows/develop-release-program.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
echo "programs_with_changes=$json" >> $GITHUB_OUTPUT
build_programs:
needs: [detect_changed_programs]
continue-on-error: true
runs-on: ubuntu-latest
if: needs.detect_changed_programs.outputs.programs_with_changes != '[]' && needs.detect_changed_programs.outputs.programs_with_changes != ''
strategy:
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
publish_programs:
continue-on-error: true
needs: [detect_changed_programs, build_programs]
runs-on: ubuntu-latest
if: needs.detect_changed_programs.outputs.programs_with_changes != '[]' && needs.detect_changed_programs.outputs.programs_with_changes != ''
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build --locked
- run: cargo fmt -- --check
- run: cargo clippy --all-targets -- -D warnings -A clippy::result_large_err -A clippy::too_many_arguments -A clippy::uninlined-format-args -A ambiguous_glob_reexports

Expand All @@ -48,6 +49,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build --locked
- run: cargo test --lib

build:
Expand Down
1 change: 1 addition & 0 deletions Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ skip-lint = false
proposal = "propFYxqmVcufMhk5esNMrexq2ogHbbC2kP9PU1qxKs"
state_controller = "stcfiqW3fwD9QCd8Bqr1NBLrs7dftZHBQe7RiMMA4aM"
token_voter = "tokvN2E37T6NgLi6uQ8uj32959TZPUf2Jo8dXjLKBjF"
nft_proxy = "nprx42sXf5rpVnwBWEdRg1d8tuCWsTuVLys1pRWwE6p"
nft_voter = "nftvLQ5t6xe2nQF1NBmBBmn15ed59tU6vSCkwQNEqdc"
organization = "orgdXvHVLkWgBYerptASkAwkZAE563CJUu717dMNx5f"
organization_wallet = "orgwPMqJs9xft8UefUdKfyBwg6GDnN6oLhpMaKa6nJg"
Expand Down
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline





## [0.0.9](https://github.com/helium/modular-governance/compare/v0.0.8...v0.0.9) (2024-03-13)

**Note:** Version bump only for package modular-governance
Expand Down
108 changes: 84 additions & 24 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ codegen-units = 1
opt-level = 3
incremental = false
codegen-units = 1

[workspace.dependencies]
time = "0.3.36"
2 changes: 2 additions & 0 deletions packages/docsite/src/data/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ export const navigation = [

{ title: "Nft voter", href: "/docs/api/nft-voter-sdk" },

{ title: "Nft proxy", href: "/docs/api/nft-proxy-sdk" },

// DOCS NAVIGATION END
],
},
Expand Down
Loading

0 comments on commit 71326dd

Please sign in to comment.