DA0-DA0 / dao-contracts

CosmWasm smart contracts for Interchain DAOs.
https://docs.daodao.zone
BSD 3-Clause "New" or "Revised" License
202 stars 133 forks source link

Token Factory DAOs #728

Closed JakeHartnell closed 11 months ago

JakeHartnell commented 11 months ago

Taking a slightly different approach here. This uses Token Factory directly rather than the middleware contract (one less thing), it also gets tests working.

Closes #659 Closes #664

codecov[bot] commented 11 months ago

Codecov Report

Patch coverage: 89.51% and project coverage change: -0.29% :warning:

Comparison is base (ec13a79) 93.98% compared to head (b6d0acc) 93.69%. Report is 1 commits behind head on development.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #728 +/- ## =============================================== - Coverage 93.98% 93.69% -0.29% =============================================== Files 62 65 +3 Lines 5600 6025 +425 =============================================== + Hits 5263 5645 +382 - Misses 337 380 +43 ``` | [Files Changed](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0) | Coverage Δ | | |---|---|---| | [...acts/voting/dao-voting-cw20-staked/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLWN3MjAtc3Rha2VkL3NyYy9jb250cmFjdC5ycw==) | `93.85% <ø> (ø)` | | | [...cts/voting/dao-voting-cw721-staked/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLWN3NzIxLXN0YWtlZC9zcmMvY29udHJhY3QucnM=) | `94.56% <ø> (ø)` | | | [...racts/voting/dao-voting-native-staked/src/hooks.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLW5hdGl2ZS1zdGFrZWQvc3JjL2hvb2tzLnJz) | `0.00% <0.00%> (ø)` | | | [packages/dao-voting/src/threshold.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-cGFja2FnZXMvZGFvLXZvdGluZy9zcmMvdGhyZXNob2xkLnJz) | `100.00% <ø> (ø)` | | | [...oting/dao-voting-token-factory-staked/src/hooks.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLXRva2VuLWZhY3Rvcnktc3Rha2VkL3NyYy9ob29rcy5ycw==) | `44.44% <44.44%> (ø)` | | | [packages/cw-hooks/src/lib.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-cGFja2FnZXMvY3ctaG9va3Mvc3JjL2xpYi5ycw==) | `93.93% <75.00%> (-2.62%)` | :arrow_down: | | [...ng/dao-voting-token-factory-staked/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLXRva2VuLWZhY3Rvcnktc3Rha2VkL3NyYy9jb250cmFjdC5ycw==) | `94.70% <94.70%> (ø)` | | | [...ts/voting/dao-voting-native-staked/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLW5hdGl2ZS1zdGFrZWQvc3JjL2NvbnRyYWN0LnJz) | `97.24% <100.00%> (+1.41%)` | :arrow_up: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/728/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

JakeHartnell commented 11 months ago

Update, wasn't able to get osmosis-test-tube working even on my Intel laptop. So ditching that for now.

JakeHartnell commented 11 months ago

Does not fully work yet. Will be trying a new and improved approach that will work on Osmosis, Juno, and beyond.