#contract #governance #astroport #unlock #queriers

astroport-governance

Astroport Governance common types, queriers and other utils

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

Download history 51/week @ 2025-03-08 57/week @ 2025-03-15 66/week @ 2025-03-22 123/week @ 2025-03-29 67/week @ 2025-04-05 85/week @ 2025-04-12 66/week @ 2025-04-19 72/week @ 2025-04-26 117/week @ 2025-05-03 139/week @ 2025-05-10 204/week @ 2025-05-17 43/week @ 2025-05-24 34/week @ 2025-05-31 48/week @ 2025-06-07 34/week @ 2025-06-14 42/week @ 2025-06-21

166 downloads per month
Used in 14 crates (8 directly)

Apache-2.0

62KB
1K SLoC

Astroport Governance

codecov

This repo contains Astroport Governance contracts.

Contracts diagram

contract 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