Skip to content

Commit

Permalink
update chia-puzzles-py dependency to version 0.20.1 and refactor ACS_…
Browse files Browse the repository at this point in the history
…TRANSFER_PROGRAM initialization
  • Loading branch information
matt-o-how committed Jan 8, 2025
1 parent 94ca6d6 commit c4204c7
Show file tree
Hide file tree
Showing 3 changed files with 3,337 additions and 3,340 deletions.
7 changes: 2 additions & 5 deletions chia/wallet/vc_wallet/vc_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from dataclasses import dataclass, replace
from typing import Optional, TypeVar

from chia_puzzles_py.programs import ACS_TRANSFER_PROGRAM as ACS_TRANSFER_PROGRAM_BYTES
from chia_puzzles_py.programs import COVENANT_LAYER as COVENANT_LAYER_BYTES
from chia_puzzles_py.programs import EML_COVENANT_MORPHER as EML_COVENANT_MORPHER_BYTES
from chia_puzzles_py.programs import EML_TRANSFER_PROGRAM_COVENANT_ADAPTER as EML_TP_COVENANT_ADAPTER_BYTES
Expand Down Expand Up @@ -42,11 +43,7 @@
EML_DID_TP: Program = Program.from_bytes(EML_DID_TP_BYTES)
EXTIGENT_METADATA_LAYER_COVENANT_MORPHER: Program = Program.from_bytes(EML_COVENANT_MORPHER_BYTES)
REVOCATION_LAYER: Program = Program.from_bytes(REVOCATION_LAYER_BYTES)

# (mod (METADATA conditions . solution) (if solution solution (list METADATA () ())))
# (a (i 7 (q . 7) (q 4 2 (q () ()))) 1)
ACS_TRANSFER_PROGRAM: Program = Program.to([2, [3, 7, (1, 7), [1, 4, 2, [1, None, None]]], 1])

ACS_TRANSFER_PROGRAM: Program = Program.from_bytes(ACS_TRANSFER_PROGRAM_BYTES)

# Hashes
EXTIGENT_METADATA_LAYER_HASH = EXTIGENT_METADATA_LAYER.get_tree_hash()
Expand Down
Loading

0 comments on commit c4204c7

Please sign in to comment.