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

Added mock state env id #313

Merged
merged 6 commits into from
Jan 25, 2024
Merged

Added mock state env id #313

merged 6 commits into from
Jan 25, 2024

Conversation

Kayanski
Copy link
Contributor

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.

Copy link

cloudflare-workers-and-pages bot commented Jan 19, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 38e701a
Status:🚫  Build failed.

View logs

Copy link

codecov bot commented Jan 19, 2024

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 Coverage Δ
cw-orch-daemon/src/state.rs 88.8% <ø> (+3.1%) ⬆️
packages/cw-orch-core/src/contract/paths.rs 70.9% <100.0%> (ø)
packages/cw-orch-core/src/environment/state.rs 55.5% <ø> (+7.9%) ⬆️
...-orch-core/src/environment/cosmwasm_environment.rs 50.0% <0.0%> (-4.6%) ⬇️
packages/cw-orch-core/src/build.rs 40.0% <0.0%> (+27.8%) ⬆️
packages/cw-orch-core/src/contract/deploy.rs 0.0% <0.0%> (ø)
packages/cw-orch-mock/src/state.rs 91.9% <53.3%> (+2.6%) ⬆️
cw-orch-daemon/src/sync/core.rs 30.0% <0.0%> (-1.6%) ⬇️
cw-orch/src/osmosis_test_tube/core.rs 64.4% <8.3%> (-2.2%) ⬇️
packages/cw-orch-mock/src/core.rs 87.5% <0.0%> (-3.2%) ⬇️

@Kayanski Kayanski requested a review from CyberHoward January 23, 2024 09:58
@CyberHoward
Copy link
Contributor

See #314 (comment)

@Kayanski
Copy link
Contributor Author

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

@Kayanski Kayanski merged commit a45fbe9 into main Jan 25, 2024
16 of 18 checks passed
@Kayanski Kayanski deleted the fix/mock-state branch January 25, 2024 10:14
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.

2 participants