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

feat: release Astroport Governance v3 #109

Merged
merged 52 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d5285f3
fix(workflow): Add CARGO_NET_GIT_FETCH_WITH_CLI to environment
donovansolms Jul 14, 2023
784452b
Merge pull request #29 from astroport-fi/hotfix/code-coverage-action
donovansolms Jul 17, 2023
b8ea4ed
feat(vxastro-lite) Implement vxASTRO lite
donovansolms Aug 3, 2023
9aac0a7
Implement interchain governance (#30)
donovansolms Aug 18, 2023
cccde2c
fix(governance-package): Bump version to 1.4 (#31)
donovansolms Aug 18, 2023
259fbc7
feat(crates publish): prepare cargo files; add publish script
epanchee Aug 23, 2023
19cf042
feat(builder_unlock): add percent of tokens unlocked at the cliff
epanchee Oct 2, 2023
3071dab
fix(assembly): replace ListChannels with Channel query
epanchee Oct 20, 2023
912f162
feat(assembly): Implement TokenFactory xASTRO queries
donovansolms Nov 1, 2023
fe2d894
feat(assembly): Move voters to own storage
donovansolms Nov 2, 2023
d384530
fix dependencies
epanchee Jan 23, 2024
77fd2ba
remove config validation on testnet
epanchee Jan 23, 2024
5b2a9c8
refactor; bump cosmwasm-std to 1.5
epanchee Jan 23, 2024
b565871
prepare testing suite for assembly
epanchee Jan 25, 2024
a49b840
feat(builder unlock): native ASTRO support
epanchee Jan 25, 2024
d67d701
major test refactor
epanchee Jan 25, 2024
565a1c0
WIP: vxastro lite adjustments for native xASTRO
epanchee Jan 26, 2024
4c4a156
rework vxastro to support native xASTRO
epanchee Jan 29, 2024
d66addf
bump hub's cw20 dependency
epanchee Jan 29, 2024
80d742a
test proposal lifecycle
epanchee Jan 29, 2024
dbddeba
remove "remove_proposal" endpoint
epanchee Jan 29, 2024
7aaa986
add more tests
epanchee Jan 30, 2024
a7ff881
seal total voting power on proposal creation
epanchee Jan 30, 2024
6f53077
add test to check voting power
epanchee Jan 30, 2024
b6cf181
increase overall coverage
epanchee Jan 30, 2024
5f0c8cf
remove interchain governance and vxastro logic from Assembly
epanchee Jan 30, 2024
ed0645a
disable unused crates; apply linter fixes
epanchee Jan 30, 2024
c0e95b2
bump main crate verson; set min version in dependent contracts
epanchee Jan 30, 2024
0a4fe23
Merge branch 'main' into feat/tokenfactory-migration
epanchee Jan 30, 2024
c58a678
fix linter issues
epanchee Jan 30, 2024
9615e97
refine comments and validation limits
epanchee Feb 9, 2024
00fad14
add neutron satellite -> assembly conversion
epanchee Feb 9, 2024
80d2487
small refactoring
epanchee Feb 9, 2024
8fb1704
set attributes on migration
epanchee Feb 10, 2024
20c5131
filter insecure msgs in check_messages
epanchee Feb 12, 2024
3fd6ff8
improve check messages validation
epanchee Feb 29, 2024
c470451
fix(builder_unlock): total contract revamp; add historical queries
epanchee Feb 29, 2024
6749f04
Merge remote-tracking branch 'hidden/feat/tokenfactory-migration' int…
epanchee Feb 29, 2024
9c510f3
prohibit xastro denom update
epanchee Feb 29, 2024
2bb6f61
assembly: emit attrs on update config
epanchee Mar 1, 2024
aa801cb
assembly: remove unused errors
epanchee Mar 1, 2024
b388b37
assembly: fix delay interval validation
epanchee Mar 1, 2024
449887c
set expired status
epanchee Mar 1, 2024
a98996d
clippy fix
epanchee Mar 1, 2024
d9934c3
emit proposal status attribute
epanchee Mar 13, 2024
99600ba
feat(assembly): allow txs from multisig; obtain IBC port
epanchee Mar 14, 2024
75adf9c
disable exec from multisig if assembly is admin of itself
epanchee Mar 21, 2024
1a39c2d
Merge pull request #37 from astroport-fi/feat/tokenfactory-migration
epanchee Mar 28, 2024
e1c4475
feat: astroport-governance v3
epanchee Apr 2, 2024
1d8fee0
Merge branch 'main' into feat/astroport_governance_v3
epanchee Apr 2, 2024
996ac43
update astroport deps
epanchee Apr 2, 2024
67cba90
temporary set astroport-core branch in deps
epanchee Apr 2, 2024
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
116 changes: 116 additions & 0 deletions .github/workflows/check_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Compiled binaries checks

on:
pull_request:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
fetch_deps:
name: Fetch cargo dependencies
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: |
${{ secrets.CORE_PRIVATE_KEY }}

- uses: actions/cache@v3
if: always()
with:
path: |
~/.cargo/bin
~/.cargo/git/checkouts
~/.cargo/git/db
~/.cargo/registry/cache
~/.cargo/registry/index
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

- run: |
git config url."ssh://git@github.com/astroport-fi/hidden_astroport_core.git".insteadOf "https://github.com/astroport-fi/hidden_astroport_core"

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.75.0
override: true

- name: Fetch cargo deps
uses: actions-rs/cargo@v1
with:
command: fetch
args: --locked

check-artifacts-size:
runs-on: ubuntu-latest
name: Check Artifacts Size
needs: fetch_deps
steps:
- name: Checkout sources
uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin
~/.cargo/git/checkouts
~/.cargo/git/db
~/.cargo/registry/cache
~/.cargo/registry/index
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# docker can't pull private sources, so we fail if cache is missing
fail-on-cache-miss: true

- name: Build Artifacts
run: |
docker run \
-v "$GITHUB_WORKSPACE":/code \
-v ~/.cargo/registry:/usr/local/cargo/registry \
-v ~/.cargo/git:/usr/local/cargo/git \
cosmwasm/workspace-optimizer:0.12.13

- name: Save artifacts cache
uses: actions/cache/save@v3
with:
path: artifacts
key: ${{ runner.os }}-artifacts-${{ hashFiles('**/Cargo.lock') }}

- name: Check Artifacts Size
run: |
$GITHUB_WORKSPACE/scripts/check_artifacts_size.sh

cosmwasm-check:
runs-on: ubuntu-latest
name: Cosmwasm check
needs: check-artifacts-size
steps:
# We need this only to get Cargo.lock
- name: Checkout sources
uses: actions/checkout@v3
- name: Restore cached artifacts
uses: actions/cache/restore@v3
with:
path: artifacts
key: ${{ runner.os }}-artifacts-${{ hashFiles('**/Cargo.lock') }}
fail-on-cache-miss: true
- name: Install cosmwasm-check
# Uses --debug for compilation speed
run: cargo install --debug --version 1.4.0 cosmwasm-check
- name: Cosmwasm check
run: |
cosmwasm-check $GITHUB_WORKSPACE/artifacts/*.wasm --available-capabilities staking,iterator,stargate,cosmwasm_1_1
24 changes: 0 additions & 24 deletions .github/workflows/check_artifacts_size.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
code-coverage:
name: Code coverage
Expand Down Expand Up @@ -36,7 +40,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.64.0
toolchain: 1.75.0
override: true

- name: Run cargo-tarpaulin
Expand All @@ -45,7 +49,7 @@ jobs:
version: '0.22.0'
args: '--timeout 300'

- name: Upload coverage reports to Codecov
- name: Upload to codecov.io
if: github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

Expand All @@ -37,7 +37,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.75.0
override: true
components: rustfmt, clippy

Expand Down
Loading