DA0-DA0 / dao-contracts

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

Development -> Main #713

Closed JakeHartnell closed 10 months ago

github-actions[bot] commented 1 year ago

Cosm-Orc Gas Usage

Contract Op Name Gas Used Old Gas Used Gas Diff File
dao_dao_core Store__Store 6297548 6180873 +1.8877% ci/integration-tests/src/helpers/chain.rs:98
dao_pre_propose_single Store__Store 4279324 4168525 +2.6580% ci/integration-tests/src/helpers/chain.rs:98
dao_proposal_single Store__Store 6789079 6672533 +1.7467% ci/integration-tests/src/helpers/chain.rs:98
cw20_stake Store__Store 4039409 3958328 +2.0484% ci/integration-tests/src/helpers/chain.rs:98
cw20_stake_external_rewards Store__Store 3389630 3350513 +1.1675% ci/integration-tests/src/helpers/chain.rs:98
cw20_stake_reward_distributor Store__Store 2897606 2841017 +1.9919% ci/integration-tests/src/helpers/chain.rs:98
cw_admin_factory Store__Store 2071755 2019807 +2.5719% ci/integration-tests/src/helpers/chain.rs:98
cw_fund_distributor Store__Store 3433089 3362993 +2.0843% ci/integration-tests/src/helpers/chain.rs:98
cw_payroll_factory Store__Store 3756022 3698198 +1.5636% ci/integration-tests/src/helpers/chain.rs:98
cw_token_swap Store__Store 2429112 2382897 +1.9394% ci/integration-tests/src/helpers/chain.rs:98
cw_vesting Store__Store 4292883 4237984 +1.2954% ci/integration-tests/src/helpers/chain.rs:98
dao_migrator Store__Store 5202909 5126651 +1.4875% ci/integration-tests/src/helpers/chain.rs:98
dao_pre_propose_approval_single Store__Store 5040906 4924660 +2.3605% ci/integration-tests/src/helpers/chain.rs:98
dao_pre_propose_approver Store__Store 3765057 3675123 +2.4471% ci/integration-tests/src/helpers/chain.rs:98
dao_pre_propose_multiple Store__Store 4358416 4246824 +2.6277% ci/integration-tests/src/helpers/chain.rs:98
dao_proposal_condorcet Store__Store 4712211 4625956 +1.8646% ci/integration-tests/src/helpers/chain.rs:98
dao_proposal_multiple Store__Store 6611576 6470617 +2.1784% ci/integration-tests/src/helpers/chain.rs:98
dao_voting_cw20_staked Store__Store 3665035 3622525 +1.1735% ci/integration-tests/src/helpers/chain.rs:98
dao_voting_cw4 Store__Store 2665777 2686291 -0.7637% ci/integration-tests/src/helpers/chain.rs:98
dao_voting_cw721_staked Store__Store 4648095 3348121 +38.8270% ci/integration-tests/src/helpers/chain.rs:98
dao_voting_cw721_staked Instantiate__instantiate_dao_voting_cw721_staked 180303 178255 +1.1489% ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:49
dao_voting_native_staked Store__Store 3032182 2989815 +1.4170% ci/integration-tests/src/helpers/chain.rs:98
Raw Report for 0367c842bdf8ca37f3034ab8473fa2de05613054
| Contract | Op Name | Gas Used | Gas Wanted | File | | --- | --- | --- | --- | --- | | cw20_base | Execute__cw20_base_increase_allowance | 142201 | 190586 | ci/integration-tests/src/helpers/helper.rs:216 | | cw20_base | Execute__send_and_stake_cw20 | 234268 | 328683 | ci/integration-tests/src/helpers/helper.rs:180 | | cw20_base | Execute__exc_stake_stake_tokens | 234536 | 320954 | ci/integration-tests/src/tests/cw20_stake_test.rs:76 | | cw20_base | Store__Store | 4191041 | 6263772 | ci/integration-tests/src/helpers/chain.rs:98 | | cw721_base | Instantiate__instantiate_cw721_base | 166518 | 227061 | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:22 | | cw721_base | Store__Store | 3975657 | 5940696 | ci/integration-tests/src/helpers/chain.rs:98 | | cw721_base | Execute__mint_nft | 140715 | 188355 | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:96 | | cw721_base | Execute__stake_nft | 234592 | 329169 | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:79 | | dao_dao_core | Instantiate__create_dao | 1275506 | 1890450 | ci/integration-tests/src/helpers/helper.rs:101 | | dao_dao_core | Execute__exc_items_rm | 192822 | 266513 | ci/integration-tests/src/tests/cw_core_test.rs:171 | | dao_dao_core | Execute__exc_items_set | 194489 | 269016 | ci/integration-tests/src/tests/cw_core_test.rs:136 | | dao_dao_core | Instantiate__exc_items_create_dao | 1276556 | 1892027 | ci/integration-tests/src/helpers/helper.rs:101 | | dao_dao_core | Instantiate__exc_stake_create_dao | 1275482 | 1890414 | ci/integration-tests/src/helpers/helper.rs:101 | | dao_dao_core | Store__Store | 6297548 | 9423533 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_dao_core | Instantiate__inst_dao_no_admin | 1275506 | 1890450 | ci/integration-tests/src/helpers/helper.rs:101 | | dao_dao_core | Execute__exc_admin_msgs_pause_dao | 194615 | 269205 | ci/integration-tests/src/tests/cw_core_test.rs:76 | | dao_dao_core | Instantiate__exc_admin_msgs_create_dao | 1275506 | 1890450 | ci/integration-tests/src/helpers/helper.rs:101 | | dao_dao_core | Instantiate__exc_admin_msgs_create_dao_with_admin | 1276556 | 1892027 | ci/integration-tests/src/helpers/helper.rs:101 | | dao_dao_core | Instantiate__inst_admin_create_dao | 1276556 | 1892027 | ci/integration-tests/src/helpers/helper.rs:101 | | dao_pre_propose_single | Execute__pre_propose_propose | 1806427 | 2686829 | ci/integration-tests/src/helpers/helper.rs:235 | | dao_pre_propose_single | Store__Store | 4279324 | 6396197 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_proposal_single | Execute__dao_proposal_single_vote | 5992028 | 8965158 | ci/integration-tests/src/helpers/helper.rs:285 | | dao_proposal_single | Store__Store | 6789079 | 10160769 | ci/integration-tests/src/helpers/chain.rs:98 | | cw20_stake | Store__Store | 4039409 | 6036324 | ci/integration-tests/src/helpers/chain.rs:98 | | cw20_stake_external_rewards | Store__Store | 3389630 | 5061656 | ci/integration-tests/src/helpers/chain.rs:98 | | cw20_stake_reward_distributor | Store__Store | 2897606 | 4323620 | ci/integration-tests/src/helpers/chain.rs:98 | | cw4_group | Store__Store | 2793580 | 4167581 | ci/integration-tests/src/helpers/chain.rs:98 | | cw721_roles | Store__Store | 5063861 | 7573002 | ci/integration-tests/src/helpers/chain.rs:98 | | cw_admin_factory | Store__Store | 2071755 | 3084843 | ci/integration-tests/src/helpers/chain.rs:98 | | cw_fund_distributor | Store__Store | 3433089 | 5126844 | ci/integration-tests/src/helpers/chain.rs:98 | | cw_payroll_factory | Store__Store | 3756022 | 5611244 | ci/integration-tests/src/helpers/chain.rs:98 | | cw_token_swap | Store__Store | 2429112 | 3620879 | ci/integration-tests/src/helpers/chain.rs:98 | | cw_vesting | Store__Store | 4292883 | 6416535 | ci/integration-tests/src/helpers/chain.rs:98 | | cw_vesting | Execute__delegate | 206744 | 287399 | ci/integration-tests/src/tests/cw_vesting_test.rs:103 | | cw_vesting | Execute__undelegate | 251807 | 332348 | ci/integration-tests/src/tests/cw_vesting_test.rs:142 | | cw_vesting | Execute__withdraw_reward | 191363 | 264324 | ci/integration-tests/src/tests/cw_vesting_test.rs:124 | | cw_vesting | Instantiate__instantiate | 227550 | 318608 | ci/integration-tests/src/tests/cw_vesting_test.rs:59 | | dao_migrator | Store__Store | 5202909 | 7781574 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_pre_propose_approval_single | Store__Store | 5040906 | 7538565 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_pre_propose_approver | Store__Store | 3765057 | 5624796 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_pre_propose_multiple | Store__Store | 4358416 | 6514835 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_proposal_condorcet | Store__Store | 4712211 | 7045527 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_proposal_multiple | Store__Store | 6611576 | 9894575 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_voting_cw20_staked | Store__Store | 3665035 | 5474763 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_voting_cw4 | Store__Store | 2665777 | 3975876 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_voting_cw721_roles | Store__Store | 2839938 | 4237118 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_voting_cw721_staked | Store__Store | 4648095 | 6949353 | ci/integration-tests/src/helpers/chain.rs:98 | | dao_voting_cw721_staked | Execute__claim_nfts | 5710872 | 8543412 | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:129 | | dao_voting_cw721_staked | Instantiate__instantiate_dao_voting_cw721_staked | 180303 | 247739 | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:49 | | dao_voting_cw721_staked | Execute__unstake_nfts | 230320 | 322761 | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:114 | | dao_voting_native_staked | Store__Store | 3032182 | 4525484 | ci/integration-tests/src/helpers/chain.rs:98 | | multiple_contracts | Execute__batch_cw721_stake_max_claims | 4198067 | 6256677 | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:258 |
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 95.51% and project coverage change: +0.10% :tada:

Comparison is base (7f89ad1) 93.94% compared to head (7756251) 94.04%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #713 +/- ## ========================================== + Coverage 93.94% 94.04% +0.10% ========================================== Files 60 62 +2 Lines 5215 5610 +395 ========================================== + Hits 4899 5276 +377 - Misses 316 334 +18 ``` | [Files Changed](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?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/713?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% <ø> (ø)` | | | [...tracts/voting/dao-voting-cw721-staked/src/state.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLWN3NzIxLXN0YWtlZC9zcmMvc3RhdGUucnM=) | `100.00% <ø> (ø)` | | | [packages/dao-voting/src/threshold.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?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% <ø> (ø)` | | | [...acts/voting/dao-voting-cw721-roles/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLWN3NzIxLXJvbGVzL3NyYy9jb250cmFjdC5ycw==) | `91.39% <91.39%> (ø)` | | | [...cts/voting/dao-voting-cw721-staked/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLWN3NzIxLXN0YWtlZC9zcmMvY29udHJhY3QucnM=) | `95.15% <94.07%> (-1.28%)` | :arrow_down: | | [contracts/voting/dao-voting-cw4/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL3ZvdGluZy9kYW8tdm90aW5nLWN3NC9zcmMvY29udHJhY3QucnM=) | `94.44% <96.36%> (-1.06%)` | :arrow_down: | | [contracts/external/cw721-roles/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3NzIxLXJvbGVzL3NyYy9jb250cmFjdC5ycw==) | `98.04% <98.04%> (ø)` | | | [packages/dao-voting/src/voting.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-cGFja2FnZXMvZGFvLXZvdGluZy9zcmMvdm90aW5nLnJz) | `98.52% <100.00%> (ø)` | | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/713/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

Let's do this now that we're at v2.3.0. :muscle:

JakeHartnell commented 10 months ago

Not sure what we want to do with the main branch, so closing for now. :joy: