AbstractSDK / cw-orchestrator

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

Added async querier fns derive #413

Closed Kayanski closed 1 month ago

Kayanski commented 2 months ago

This PR aims at adding async query compatibility to contracts to be able to query them asynchronously.

This paves the way for transaction execution asyncronous. However, for Execution, the Sender has to be mutex-ed to avoid sequence conflicts

Checklist

cloudflare-pages[bot] commented 2 months ago

Deploying cw-orchestrator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8fa6365
Status:⚡️  Build in progress...

View logs

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 47.57282% with 54 lines in your changes missing coverage. Please review.

Project coverage is 55.9%. Comparing base (3be0095) to head (28703c2). Report is 3 commits behind head on main.

:exclamation: Current head 28703c2 differs from pull request most recent head 8fa6365

Please upload reports for the commit 8fa6365 to get more accurate results.

Additional details and impacted files | [Files](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK) | Coverage Δ | | |---|---|---| | [...ages/cw-orch-core/src/environment/queriers/wasm.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?src=pr&el=tree&filepath=packages%2Fcw-orch-core%2Fsrc%2Fenvironment%2Fqueriers%2Fwasm.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9lbnZpcm9ubWVudC9xdWVyaWVycy93YXNtLnJz) | `100.0% <ø> (ø)` | | | [...ckages/macros/cw-orch-fns-derive/src/fns\_derive.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?src=pr&el=tree&filepath=packages%2Fmacros%2Fcw-orch-fns-derive%2Fsrc%2Ffns_derive.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvbWFjcm9zL2N3LW9yY2gtZm5zLWRlcml2ZS9zcmMvZm5zX2Rlcml2ZS5ycw==) | `100.0% <100.0%> (ø)` | | | [packages/macros/cw-orch-fns-derive/src/helpers.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?src=pr&el=tree&filepath=packages%2Fmacros%2Fcw-orch-fns-derive%2Fsrc%2Fhelpers.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvbWFjcm9zL2N3LW9yY2gtZm5zLWRlcml2ZS9zcmMvaGVscGVycy5ycw==) | `77.7% <ø> (ø)` | | | [packages/macros/cw-orch-fns-derive/src/lib.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?src=pr&el=tree&filepath=packages%2Fmacros%2Fcw-orch-fns-derive%2Fsrc%2Flib.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvbWFjcm9zL2N3LW9yY2gtZm5zLWRlcml2ZS9zcmMvbGliLnJz) | `100.0% <100.0%> (ø)` | | | [...ages/cw-orch-core/src/contract/interface\_traits.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?src=pr&el=tree&filepath=packages%2Fcw-orch-core%2Fsrc%2Fcontract%2Finterface_traits.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9jb250cmFjdC9pbnRlcmZhY2VfdHJhaXRzLnJz) | `72.0% <0.0%> (-4.5%)` | :arrow_down: | | [cw-orch-daemon/src/core.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?src=pr&el=tree&filepath=cw-orch-daemon%2Fsrc%2Fcore.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y3ctb3JjaC1kYWVtb24vc3JjL2NvcmUucnM=) | `53.8% <0.0%> (-4.8%)` | :arrow_down: | | [...ges/cw-orch-core/src/contract/contract\_instance.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413?src=pr&el=tree&filepath=packages%2Fcw-orch-core%2Fsrc%2Fcontract%2Fcontract_instance.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9jb250cmFjdC9jb250cmFjdF9pbnN0YW5jZS5ycw==) | `73.5% <0.0%> (-8.3%)` | :arrow_down: | ... and [9 files with indirect coverage changes](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/413/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK)