#contract #governance #astroport #unlock #type #queriers

astroport-governance

Astroport Governance common types, queriers and other utils

1 stable release

1.2.0 Jul 20, 2023

#3 in #unlock

Download history 45/week @ 2023-12-13 22/week @ 2023-12-20 5/week @ 2023-12-27 29/week @ 2024-01-03 56/week @ 2024-01-10 182/week @ 2024-01-17 133/week @ 2024-01-24 222/week @ 2024-01-31 492/week @ 2024-02-07 128/week @ 2024-02-14 150/week @ 2024-02-21 129/week @ 2024-02-28 182/week @ 2024-03-06 127/week @ 2024-03-13 104/week @ 2024-03-20 72/week @ 2024-03-27

504 downloads per month
Used in 9 crates (3 directly)

MIT license

56KB
1K SLoC

Astroport Governance

codecov

This repo contains Astroport Governance related contracts.

Contracts diagram

contract diagram

Contracts

Name Description
assembly The Astral Assembly governance contract
builder_unlock ASTRO unlock/vesting contract for Initial Builders
escrow_fee_distributor vxASTRO fee distributor
generator_controller Generator Controller used to vote on directing ASTRO emissions
voting_escrow vxASTRO contract

Building Contracts

You will need Rust 1.64.0+ with wasm32-unknown-unknown target installed.

You can compile each contract:

Go to contract directory and run

cargo wasm
cp ../../target/wasm32-unknown-unknown/release/astroport_token.wasm .
ls -l astroport_token.wasm
sha256sum astroport_token.wasm

You can run tests for all contracts

Run the following from the repository root

cargo test

For a production-ready (compressed) build:

Run the following from the repository root

./scripts/build_release.sh

The optimized contracts are generated in the artifacts/ directory.

Deployment

You can find versions and commits for actually deployed contracts 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

~4.5–6.5MB
~136K SLoC