Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cosmoscontracts/cw-unity-prop
Implements the Smart Contract for the Unity Proposal.
https://github.com/cosmoscontracts/cw-unity-prop
Last synced: 2 months ago
JSON representation
Implements the Smart Contract for the Unity Proposal.
- Host: GitHub
- URL: https://github.com/cosmoscontracts/cw-unity-prop
- Owner: CosmosContracts
- License: apache-2.0
- Created: 2022-03-24T20:24:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-19T19:50:23.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T01:59:23.922Z (3 months ago)
- Language: Rust
- Size: 278 KB
- Stars: 7
- Watchers: 7
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cw-unity-prop
A CosmWasm Smart Contract to implement the Juno Unity Prop.
For information on verifying the on-chain smart contract, see [VERIFYING.md](./VERIFYING.md).
## Developing
Develop features and write unit tests.
Before committing, run `./scripts/check.sh`.
## Structure
The contract assumes a low-trust environment where the `withdrawal_address` might want to withdraw their funds.
However, there is a configurable delay to do so.
The governance module, meanwhile, can take several actions immediately, using the `sudo` functionality in CW.
This exposes an entrypoint that can _only_ be used by governance.
This means that any arbitrary vesting or release schedule can be executed via governance, if an agreement is reached.
### Withdraw
The `withdraw_address` has only one action available, on a timer:
![Actions available to the withdraw address](doc/withdrawal_actions.png)
This is implemented via two messages:
1. The first initiates a withdrawal
2. The second claims a withdrawal, if available### Governance
Governance has three actions available. All three are executed without delay:
1. Burn all funds held by the contract
2. Send x quantity of native funds held by the contract
3. Send all funds held by the contract![Actions available via the governance module](doc/gov_actions.png)