Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fun side project] Add on-chain cw-orch #504

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Kayanski
Copy link
Contributor

@Kayanski Kayanski commented Oct 7, 2024

This Pr aims at allowing users to interact with contract with the following syntax:

let query_result = Contract::load(deps, env).smart_query()?;
let execute_msg = Contract::load(deps, env).execute_msg()?;
let raw_query_result = Contract::load(deps, env).item_query(<Item>)?;

This uses the existing CwEnv structure and the derived Execute and QueryMsgs to work

Status

  • Cw-orch-core is now compatible with wasm, it introduces a custom ContractWrapper structure (copied from cw-multi-test)
  • Functional cousin contract test that leverages osmosis-test-tube and WASM !
  • Add helpers to simplify the query and execution syntax

Checklist

  • Changelog updated.
  • Docs updated.

Copy link

cloudflare-workers-and-pages bot commented Oct 7, 2024

Deploying cw-orchestrator with  Cloudflare Pages  Cloudflare Pages

Latest commit: cdb1d7c
Status:🚫  Build failed.

View logs

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 2.53623% with 269 lines in your changes missing coverage. Please review.

Project coverage is 55.4%. Comparing base (ea1be9a) to head (a3e573f).

Files with missing lines Patch % Lines
packages/cw-orch-on-chain/src/core.rs 0.0% 260 Missing ⚠️
packages/cw-orch-on-chain/src/error.rs 0.0% 6 Missing ⚠️
packages/cw-orch-core/src/error.rs 0.0% 3 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
packages/cw-orch-on-chain/src/lib.rs 100.0% <100.0%> (ø)
packages/cw-orch-core/src/error.rs 43.7% <0.0%> (-10.1%) ⬇️
packages/cw-orch-on-chain/src/error.rs 0.0% <0.0%> (ø)
packages/cw-orch-on-chain/src/core.rs 0.0% <0.0%> (ø)

@Kayanski Kayanski changed the title Add on-chain cw-orch [Fun side project] Add on-chain cw-orch Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant