9 releases (breaking)
new 0.18.3 | Dec 18, 2024 |
---|---|
0.18.2 | Dec 17, 2024 |
0.17.0 | Dec 14, 2024 |
0.15.0 | Oct 11, 2024 |
0.8.0 | May 14, 2024 |
#351 in Concurrency
920 downloads per month
Used in 13 crates
(10 directly)
345KB
832 lines
Chia Puzzles
This is a collection of the standard Chia puzzles. These are the puzzles which are deployed on chain and therefore cannot change.
This repository tracks the source code, the compiled hex, and a hash of the compiled hex to ensure continuity.
All puzzles are kept in the puzzles
folder as both a .clsp
and .clsp.hex
file.
The Python and Rust bindings are created by running generate_chialisp_constants.py
Adding Bindings for a New Puzzle
- Add the
.clsp
and.clsp.hex
files into theprograms
folder. - Add the puzzle name, path, and shatree hash into the list in
generate_chialisp_constants.py
. - Run
generate_chialisp_constants.py
. - Commit your changes, including to the outputted
programs.py
andprograms.rs
.
Testing
This project is managed with poetry
for Python and cargo
for Rust.
To run the Python tests:
python -m venv venv
pip install poetry
. ./venv/bin/activate
poetry install
pytest chia_puzzles_py/tests
If you're on Windows activate the venv with . venv\Scripts\activate
instead
To run the Rust tests:
cargo test --all