AbstractSDK / cw-orchestrator

All-in-one Rust-based CosmWasm testing, scripting, and deployment tool.
https://orchestrator.abstract.money
GNU General Public License v3.0
76 stars 18 forks source link

Added mock state env id #313

Closed Kayanski closed 7 months ago

Kayanski commented 8 months ago

This PR aims at adding a chain-id parameter to Mock State

Mock State is used with Omsosis test tube and with the Deploy Details trait.

It should therefore be aware of the chain id it supports to be able to deploy the right DexAdapter for instance.

cloudflare-pages[bot] commented 8 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 38e701a
Status:🚫  Build failed.

View logs

codecov[bot] commented 8 months ago

Codecov Report

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

Comparison is base (b186f80) 65.9% compared to head (38e701a) 66.0%.

Additional details and impacted files | [Files](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK) | Coverage Δ | | |---|---|---| | [cw-orch-daemon/src/state.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y3ctb3JjaC1kYWVtb24vc3JjL3N0YXRlLnJz) | `88.8% <ø> (+3.1%)` | :arrow_up: | | [packages/cw-orch-core/src/contract/paths.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9jb250cmFjdC9wYXRocy5ycw==) | `70.9% <100.0%> (ø)` | | | [packages/cw-orch-core/src/environment/state.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9lbnZpcm9ubWVudC9zdGF0ZS5ycw==) | `55.5% <ø> (+7.9%)` | :arrow_up: | | [...-orch-core/src/environment/cosmwasm\_environment.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9lbnZpcm9ubWVudC9jb3Ntd2FzbV9lbnZpcm9ubWVudC5ycw==) | `50.0% <0.0%> (-4.6%)` | :arrow_down: | | [packages/cw-orch-core/src/build.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9idWlsZC5ycw==) | `40.0% <0.0%> (+27.8%)` | :arrow_up: | | [packages/cw-orch-core/src/contract/deploy.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9jb250cmFjdC9kZXBsb3kucnM=) | `0.0% <0.0%> (ø)` | | | [packages/cw-orch-mock/src/state.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1tb2NrL3NyYy9zdGF0ZS5ycw==) | `91.9% <53.3%> (+2.6%)` | :arrow_up: | | [cw-orch-daemon/src/sync/core.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y3ctb3JjaC1kYWVtb24vc3JjL3N5bmMvY29yZS5ycw==) | `30.0% <0.0%> (-1.6%)` | :arrow_down: | | [cw-orch/src/osmosis\_test\_tube/core.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y3ctb3JjaC9zcmMvb3Ntb3Npc190ZXN0X3R1YmUvY29yZS5ycw==) | `64.4% <8.3%> (-2.2%)` | :arrow_down: | | [packages/cw-orch-mock/src/core.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/313?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1tb2NrL3NyYy9jb3JlLnJz) | `87.5% <0.0%> (-3.2%)` | :arrow_down: |
CyberHoward commented 7 months ago

See https://github.com/AbstractSDK/cw-orchestrator/pull/314#discussion_r1463463888

Kayanski commented 7 months ago

See #314 (comment)

This is implemented now, what do you think of the names (EnvironmentQuerier and EnvironmentInfo) Kept the deployment id for state file queries