-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gauge Contracts #844
base: development
Are you sure you want to change the base?
Gauge Contracts #844
Conversation
Set version v1.6.0
Set version: 1.7.0
spearheading these three points this week! an additional gauge adapter template can be one that turns itself off after a specific # of times the gauges epoch occurs. |
AMAZING ❤️ |
* Use cw-denom and payment utils in gauge adapter TODO: 2 tests are failing, because the cw20 cannot be validated with cw-denom. This should be fixed with a cw-orch refactor. * gauge adapter cw-orch tests * include suite changes * cleanup adapter test * A couple tweaks to gauge adapter tests * cleanup tests a bit * cargo lock * bump prost, lint * lint --------- Co-authored-by: hard-nett <[email protected]> Co-authored-by: Hard-Nett <[email protected]>
pub struct InstantiateMsg { | ||
/// Address of contract to that contains all voting powers (where we query) | ||
pub voting_powers: String, | ||
/// Addres that will call voting power change hooks (often same as voting power contract) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Addres that will call voting power change hooks (often same as voting power contract) | |
/// Address that will call voting power change hooks (often same as voting power contract) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development #844 +/- ##
===============================================
+ Coverage 96.64% 96.78% +0.13%
===============================================
Files 241 262 +21
Lines 65544 71295 +5751
===============================================
+ Hits 63347 69003 +5656
- Misses 2197 2292 +95 ☔ View full report in Codecov by Sentry. |
Inspired by the Curve gauge system and forked from the Wynd DAO repo with history and Apache 2.0 license maintained.
These contracts have been modified to be more generic and support any type of DAO.
However, consider this a straw-man implementation. There are many improvements to be made!
GaugeAdapter
APIGaugeAdapter
example (needs significant work, we may want more than one example)Bonus:
dao-rewards-distributor
contract so that DAOs can optional incentivize people to participate in gaugesIf you are looking to contribute to this and want to understand how they work, the
gauge-orchestrator
README is a good place to start.Twitter post and discussion.
Gauges in actual decentralize applications:
Use cases: