7 releases (stable)
4.4.0 | Dec 9, 2024 |
---|---|
4.3.0 | Nov 6, 2024 |
4.1.0 | Sep 13, 2024 |
4.0.0 | Aug 23, 2024 |
1.2.0 | Jul 20, 2023 |
#3 in #contracts
166 downloads per month
Used in 14 crates
(8 directly)
62KB
1K
SLoC
Astroport Governance
This repo contains Astroport Governance contracts.
Contracts diagram
Contracts
Name | Description |
---|---|
assembly |
The Astral Assembly governance contract |
builder_unlock |
ASTRO unlock/vesting contract for Initial Builders |
emissions_controller |
Emissions Controller (Hub) is responsible for receiving vxASTRO votes and managing ASTRO emissions |
emissions_controller_outpost |
Emissions Controller (Outpost) is a lightweight satellite for Hub's counterpart which lives on outposts |
voting_escrow |
Vote escrowed xASTRO with 14 days lockup |
Building Contracts
You will need Rust 1.64.0+ with wasm32-unknown-unknown target installed.
You can compile each contract:
Go to the repository root and run
./scripts/build_release.sh
You can run tests for all contracts
Run the following from the repository root
cargo test
The optimized contracts are generated in the artifacts/ directory.
Deployment
Actual deployed contracts with respective commits here.
Docs
Docs can be generated using cargo doc --no-deps
Bug Bounty
The contracts in this repo are included in a bug bounty program.
Dependencies
~16MB
~351K SLoC