Registry / database / chialisp-puzzles

chialisp-puzzles

JSON →
library0.1.1pypypi✓ verified 86d ago

A collection of canonical puzzles (smart contracts) for the Chia blockchain, written in ChiaLisp. Version 0.1.1 is the latest. Release cadence is low; primarily updated alongside Chia protocol changes.

pip install chialisp-puzzles
INSTALL
IMPORT
SIG · CHIALISP-PUZZLES
C
chialisp-puzzles
databasepythonv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

load_puzzle
from chialisp_puzzles import load_puzzle
puzzle_to_curried_mod
from chialisp_puzzles.puzzles import puzzle_to_curried_mod

Load a canonical puzzle by name.

from chialisp_puzzles import load_puzzle # Load the standard pay-to-puzzle-hash puzzle puzzle = load_puzzle('p2_puzzle_hash') print(puzzle)
Debug
Known issues
gotchaThe package uses underscores in import paths (chialisp_puzzles) but the PyPI name uses hyphens (chialisp-puzzles). This mismatch can cause confusion.
fix
Use `pip install chialisp-puzzles` and then `import chialisp_puzzles`.
affects: all
deprecatedSome puzzles may be deprecated as the Chia protocol evolves. Always check the puzzle version against your Chia node version.
fix
Refer to the official Chia documentation for the latest puzzle set.
affects: 0.1.x
gotchaPuzzle names may change between releases. Hardcoding puzzle names can break after updates.
fix
Use `list_puzzles()` to enumerate available puzzles at runtime.
affects: 0.1.x
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'chialisp_puzzles'
Package installed via pip with hyphens but imported with underscores - correct import path is with underscores.
fix
Use `from chialisp_puzzles import ...` (note underscores).
AttributeError: module 'chialisp_puzzles' has no attribute 'load_puzzle'
The `load_puzzle` function may not be directly exposed in the top-level module in older versions.
fix
Use `from chialisp_puzzles import load_puzzle` (available from 0.1.0+).
Upgrade
Version history
0.1.1latest on PyPI · released Nov 10, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
chialisp-puzzles — pip install chialisp-puzzles · libregistry