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

Re-use contract's WASM compilation #481

Closed Kayanski closed 1 week ago

Kayanski commented 1 week ago

This PR introduces caching of wasm compiled modules to speed up the execution.

When using a wasm file, we compile it and save it inside the app for later use.

This is possible everywhere except during in-contract queries. When using a contract inside an in-contract query, it doesn't get saved into memory.

Depends on (where all the changes are located) : https://github.com/AbstractSDK/cw-multi-test-fork/pull/8

Checklist

cloudflare-pages[bot] commented 1 week ago

Deploying cw-orchestrator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 05065bc
Status: ✅  Deploy successful!
Preview URL: https://d44c70ec.cw-orchestrator.pages.dev
Branch Preview URL: https://nicolas-orc-159-cw-orch-clon-rzi4.cw-orchestrator.pages.dev

View logs

codecov[bot] commented 1 week ago

Codecov Report

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

Project coverage is 55.8%. Comparing base (6da91dc) to head (05065bc). Report is 2 commits behind head on nicolas/orc-159-cw-orch-clone-testing-20.

Additional details and impacted files | [Files with missing lines](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/481?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK) | Coverage Δ | | |---|---|---| | [packages/clone-testing/src/core.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/481?src=pr&el=tree&filepath=packages%2Fclone-testing%2Fsrc%2Fcore.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY2xvbmUtdGVzdGluZy9zcmMvY29yZS5ycw==) | `82.7% <100.0%> (-0.2%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/481/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK)