18 lines
457 B
Python
18 lines
457 B
Python
from dataclasses import dataclass
|
|
from typing import List
|
|
|
|
from chia.types.condition_opcodes import ConditionOpcode
|
|
from chia.util.streamable import Streamable, streamable
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
@streamable
|
|
class ConditionWithArgs(Streamable):
|
|
"""
|
|
This structure is used to store parsed CLVM conditions
|
|
Conditions in CLVM have either format of (opcode, var1) or (opcode, var1, var2)
|
|
"""
|
|
|
|
opcode: ConditionOpcode
|
|
vars: List[bytes]
|