mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-29 18:14:26 -05:00
14 lines
399 B
Python
14 lines
399 B
Python
from __future__ import annotations
|
|
|
|
from chia_puzzles_py.programs import NOTIFICATION
|
|
from chia_rs.sized_bytes import bytes32
|
|
from chia_rs.sized_ints import uint64
|
|
|
|
from chia.types.blockchain_format.program import Program
|
|
|
|
NOTIFICATION_MOD = Program.from_bytes(NOTIFICATION)
|
|
|
|
|
|
def construct_notification(target: bytes32, amount: uint64) -> Program:
|
|
return NOTIFICATION_MOD.curry(target, amount)
|