Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/astroport-fi/astroport-governance
Governance and unlock contracts for Astroport
https://github.com/astroport-fi/astroport-governance
Last synced: 3 months ago
JSON representation
Governance and unlock contracts for Astroport
- Host: GitHub
- URL: https://github.com/astroport-fi/astroport-governance
- Owner: astroport-fi
- License: gpl-3.0
- Created: 2021-11-11T14:28:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T10:53:23.000Z (3 months ago)
- Last Synced: 2024-11-05T11:46:49.048Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 4.83 MB
- Stars: 3
- Watchers: 7
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Astroport Governance
[![codecov](https://codecov.io/gh/astroport-fi/astroport-governance/branch/main/graph/badge.svg?token=WDA8WEI7MI)](https://codecov.io/gh/astroport-fi/astroport-governance)
This repo contains Astroport Governance contracts.
## Contracts diagram
![contract diagram](./assets/sc_diagram.png "Contracts Diagram")
## Contracts
| Name | Description |
|--------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| [`assembly`](contracts/assembly) | The Astral Assembly governance contract |
| [`builder_unlock`](contracts/builder_unlock) | ASTRO unlock/vesting contract for Initial Builders |
| [`emissions_controller`](contracts/emissions_controller) | Emissions Controller (Hub) is responsible for receiving vxASTRO votes and managing ASTRO emissions |
| [`emissions_controller_outpost`](contracts/emissions_controller_outpost) | Emissions Controller (Outpost) is a lightweight satellite for Hub's counterpart which lives on outposts |
| [`voting_escrow`](contracts/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](https://github.com/astroport-fi/astroport-changelog).
## Docs
Docs can be generated using `cargo doc --no-deps`
## Bug Bounty
The contracts in this repo are included in a [bug bounty program](https://www.immunefi.com/bounty/astroport).