Skip to content

v2.7.0 - Vote Delegation, Initial Actions, Deep Instantiate2 Support #888

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

Merged
merged 26 commits into from
Apr 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
109bcf3
dao-vote-delegation contract
NoahSaso Oct 7, 2024
b1614e7
updated version to v2.7.0
NoahSaso Feb 25, 2025
7965d8f
Initial dao actions on instantiate (#903)
ismellike Feb 25, 2025
a26eadf
cleaned up and added tests for initial actions
NoahSaso Feb 25, 2025
dadd461
support instantiate2 in ModuleInstantiateInfo and various contract in…
NoahSaso Feb 26, 2025
6396505
added VP cap percent query and validations
NoahSaso Mar 20, 2025
1be9b73
prevent unnecessary operations when delegator stops being a member
NoahSaso Mar 20, 2025
604e90c
added individual vote power to vote query
NoahSaso Mar 22, 2025
92352e0
fixed delegation module not being set on instantiate in proposal sing…
NoahSaso Mar 22, 2025
b9ae1a7
add dao proposal single instantiation delegation module tests
bekauz Mar 23, 2025
1c6ec75
fixed multiple choice proposal bug when delegate tries to cast the fi…
NoahSaso Mar 25, 2025
1235594
moved nonpayable to execute entrypoint and stop passing info down
NoahSaso Mar 25, 2025
74ba9ce
vote delegations review (#910)
bekauz Apr 7, 2025
ff6caca
added more features
NoahSaso Apr 7, 2025
9f32eec
remove redundant values (adjacent duplicates) during wormhole update
NoahSaso Apr 9, 2025
bade71a
updated README
NoahSaso Apr 11, 2025
5c92e74
fixed bug and added support for expiration-only updates during on del…
NoahSaso Apr 12, 2025
feee03d
moved delegation logic to several helpers to clean up the code
NoahSaso Apr 12, 2025
0440f0d
moved ensure_setup back to fn
NoahSaso Apr 12, 2025
afb8a21
added named type for SnapshotVectorMapItemRef
NoahSaso Apr 12, 2025
e07ad8c
adding event attributes to delegate and undelegate
NoahSaso Apr 12, 2025
8ce8988
more clean up
NoahSaso Apr 12, 2025
65e32c3
add cw-snapshot-vector-map update unit tests
bekauz Apr 13, 2025
a647cb3
clean up cw-snapshot-map expired item update test
bekauz Apr 13, 2025
c297420
clean up expired item update test
bekauz Apr 13, 2025
69fef8c
fixed lint
NoahSaso Apr 13, 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
16 changes: 8 additions & 8 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:
docker-images: true
swap-storage: true

- name: Install latest stable toolchain
- name: Install nightly-2024-01-08 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly-2024-01-08
target: wasm32-unknown-unknown
override: true

- name: Run tests
uses: actions-rs/cargo@v1
with:
toolchain: stable
toolchain: nightly-2024-01-08
command: all-test
args: --locked
env:
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Compile WASM contract
uses: actions-rs/cargo@v1
with:
toolchain: stable
toolchain: nightly-2024-01-08
command: wasm
args: --locked
env:
Expand All @@ -56,25 +56,25 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
- name: Install nightly-2024-01-08 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly-2024-01-08
override: true
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
toolchain: stable
toolchain: nightly-2024-01-08
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
toolchain: stable
toolchain: nightly-2024-01-08
command: clippy
args: --all-targets -- -D warnings

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
docker-images: true
swap-storage: true

- name: Install latest nightly toolchain
- name: Install nightly-2024-01-08 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-02-02
toolchain: nightly-2024-01-08
target: wasm32-unknown-unknown
override: true

Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

- name: Upload Gas Report
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dao-dao-gas-report-${{ env.GIT_BRANCH }}
path: ci/integration-tests/gas_report.json
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/release-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: true

# tar is required for cargo cache
- run: apk add --no-cache tar

Expand All @@ -37,7 +48,7 @@ jobs:
run: optimize.sh .

- name: Upload contracts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: contracts
path: artifacts/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_tube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
docker-images: true
swap-storage: true

- name: Install latest nightly toolchain
- name: Install nightly-2024-01-08 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ ci/configs/cosm-orc/local.yaml
contracts/**/Cargo.lock
packages/**/Cargo.lock
debug/**/Cargo.lock
ci/**/Cargo.lock
ci/**/Cargo.lock
.aider*
Loading
Loading