Skip to content

Add load_clvm function for development purposes #215

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

Merged
merged 2 commits into from
May 5, 2025
Merged

Add load_clvm function for development purposes #215

merged 2 commits into from
May 5, 2025

Conversation

Rigidity
Copy link
Collaborator

@Rigidity Rigidity commented Apr 21, 2025

Adds a load_clvm utility that is meant to work similarly to the Python equivalent - it loads a Chialisp file and compiles it into CLVM, returning both the puzzle reveal and hash (for use with the current Mod architecture). This necessitates also changing Mod to use functions instead of constants.

Copy link

codecov bot commented Apr 21, 2025

Codecov Report

Attention: Patch coverage is 11.68831% with 68 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/chia-sdk-types/src/puzzle_mod.rs 0.00% 25 Missing ⚠️
crates/chia-sdk-types/src/load_clvm.rs 47.36% 10 Missing ⚠️
.../chia-sdk-types/src/puzzles/augmented_condition.rs 0.00% 4 Missing ⚠️
...a-sdk-types/src/puzzles/datalayer/writer_filter.rs 0.00% 4 Missing ⚠️
...s/src/puzzles/mips/add_delegated_puzzle_wrapper.rs 0.00% 4 Missing ⚠️
...hia-sdk-types/src/puzzles/mips/delegated_feeder.rs 0.00% 4 Missing ⚠️
...s/chia-sdk-types/src/puzzles/mips/index_wrapper.rs 0.00% 4 Missing ⚠️
crates/chia-sdk-types/src/puzzles/mips/n_of_n.rs 0.00% 4 Missing ⚠️
...es/chia-sdk-types/src/puzzles/mips/restrictions.rs 0.00% 4 Missing ⚠️
...ates/chia-sdk-types/src/puzzles/option_contract.rs 0.00% 4 Missing ⚠️
... and 1 more
Files with missing lines Coverage Δ
...ates/chia-sdk-driver/src/layers/streaming_layer.rs 91.66% <ø> (ø)
...dk-types/src/puzzles/datalayer/delegation_layer.rs 100.00% <ø> (ø)
.../puzzles/mips/enforce_delegated_puzzle_wrappers.rs 0.00% <ø> (ø)
crates/chia-sdk-types/src/puzzles/mips/m_of_n.rs 0.00% <ø> (ø)
crates/chia-sdk-types/src/puzzles/mips/one_of_n.rs 0.00% <ø> (ø)
crates/chia-sdk-types/src/puzzles/p2_curried.rs 0.00% <ø> (ø)
...rates/chia-sdk-types/src/puzzles/p2_one_of_many.rs 0.00% <ø> (ø)
crates/chia-sdk-types/src/puzzles/revocation.rs 0.00% <ø> (ø)
crates/chia-sdk-driver/src/spend_context.rs 81.81% <0.00%> (-3.04%) ⬇️
.../chia-sdk-types/src/puzzles/augmented_condition.rs 0.00% <0.00%> (ø)
... and 9 more

... and 22 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Rigidity Rigidity force-pushed the load-clvm branch 2 times, most recently from 82dba3a to b96482d Compare April 21, 2025 18:09
@Rigidity Rigidity merged commit 26f4483 into main May 5, 2025
26 of 27 checks passed
@Rigidity Rigidity deleted the load-clvm branch May 5, 2025 16:45
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