DA0-DA0 / dao-contracts

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

Update deprecated functions #764

Closed JakeHartnell closed 7 months ago

JakeHartnell commented 7 months ago

Builds off of #762 and #763.

Closes #761

codecov[bot] commented 7 months ago

Codecov Report

Attention: 67 lines in your changes are missing coverage. Please review.

Comparison is base (db42d45) 96.25% compared to head (bad313e) 95.78%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #764 +/- ## =============================================== - Coverage 96.25% 95.78% -0.48% =============================================== Files 203 203 Lines 50082 50344 +262 =============================================== + Hits 48207 48222 +15 - Misses 1875 2122 +247 ``` | [Files](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0) | Coverage Δ | | |---|---|---| | [contracts/dao-dao-core/src/tests.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2Rhby1kYW8tY29yZS9zcmMvdGVzdHMucnM=) | `99.96% <100.00%> (-0.04%)` | :arrow_down: | | [contracts/external/cw-admin-factory/src/tests.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFkbWluLWZhY3Rvcnkvc3JjL3Rlc3RzLnJz) | `100.00% <100.00%> (ø)` | | | [...racts/external/cw-fund-distributor/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWZ1bmQtZGlzdHJpYnV0b3Ivc3JjL2NvbnRyYWN0LnJz) | `95.06% <100.00%> (ø)` | | | [...-fund-distributor/src/testing/adversarial\_tests.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWZ1bmQtZGlzdHJpYnV0b3Ivc3JjL3Rlc3RpbmcvYWR2ZXJzYXJpYWxfdGVzdHMucnM=) | `100.00% <100.00%> (ø)` | | | [.../external/cw-fund-distributor/src/testing/tests.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWZ1bmQtZGlzdHJpYnV0b3Ivc3JjL3Rlc3RpbmcvdGVzdHMucnM=) | `100.00% <100.00%> (ø)` | | | [contracts/external/cw-payroll-factory/src/tests.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LXBheXJvbGwtZmFjdG9yeS9zcmMvdGVzdHMucnM=) | `100.00% <100.00%> (ø)` | | | [contracts/external/cw-token-swap/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LXRva2VuLXN3YXAvc3JjL2NvbnRyYWN0LnJz) | `99.41% <100.00%> (ø)` | | | [contracts/external/cw-token-swap/src/state.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LXRva2VuLXN3YXAvc3JjL3N0YXRlLnJz) | `97.75% <100.00%> (-2.25%)` | :arrow_down: | | [contracts/external/cw-token-swap/src/tests.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LXRva2VuLXN3YXAvc3JjL3Rlc3RzLnJz) | `100.00% <100.00%> (ø)` | | | [contracts/external/cw-vesting/src/tests.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LXZlc3Rpbmcvc3JjL3Rlc3RzLnJz) | `100.00% <100.00%> (ø)` | | | ... and [58 more](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0) | | ... and [67 files with indirect coverage changes](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/764/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.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 67 lines in your changes are missing coverage. Please review.

Comparison is base (329b59a) 96.31% compared to head (136ae78) 96.31%. Report is 1 commits behind head on development.

:exclamation: Current head 136ae78 differs from pull request most recent head 2ce30b5. Consider uploading reports for the commit 2ce30b5 to get more accurate results

Files Patch % Lines
...racts/test/dao-test-custom-factory/src/contract.rs 44.82% 16 Missing :warning:
...ts/external/cw-tokenfactory-issuer/src/contract.rs 0.00% 13 Missing :warning:
...cts/voting/dao-voting-token-staked/src/contract.rs 50.00% 12 Missing :warning:
...l/dao-proposal-multiple/src/testing/instantiate.rs 61.11% 7 Missing :warning:
...tracts/external/cw-payroll-factory/src/contract.rs 58.33% 5 Missing :warning:
contracts/test/dao-proposal-sudo/src/contract.rs 25.00% 3 Missing :warning:
...ntracts/external/dao-migrator/src/testing/setup.rs 84.61% 2 Missing :warning:
contracts/dao-dao-core/src/contract.rs 95.65% 1 Missing :warning:
contracts/external/cw-vesting/src/contract.rs 85.71% 1 Missing :warning:
...se/dao-pre-propose-approval-single/src/contract.rs 96.42% 1 Missing :warning:
... and 6 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #764 +/- ## =============================================== - Coverage 96.31% 96.31% -0.01% =============================================== Files 203 203 Lines 50058 50077 +19 =============================================== + Hits 48213 48230 +17 - Misses 1845 1847 +2 ```

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

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (development@30337ad). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #764 +/- ## ============================================== Coverage ? 96.31% ============================================== Files ? 203 Lines ? 50092 Branches ? 0 ============================================== Hits ? 48245 Misses ? 1847 Partials ? 0 ```

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