2021-01-19 06:14:22 +03:00
|
|
|
from dataclasses import dataclass
|
2022-04-04 21:53:13 +03:00
|
|
|
from typing import Optional
|
2020-03-25 09:03:31 +03:00
|
|
|
|
2022-04-04 21:53:13 +03:00
|
|
|
from chia.types.spend_bundle_conditions import SpendBundleConditions
|
2022-01-25 18:42:19 +03:00
|
|
|
from chia.util.ints import uint16, uint64
|
2021-04-04 06:55:26 +03:00
|
|
|
from chia.util.streamable import Streamable, streamable
|
2020-02-27 04:33:25 +03:00
|
|
|
|
|
|
|
|
2021-01-19 06:14:22 +03:00
|
|
|
@streamable
|
2022-04-09 04:29:32 +03:00
|
|
|
@dataclass(frozen=True)
|
2021-04-17 09:13:22 +03:00
|
|
|
class NPCResult(Streamable):
|
2021-04-09 04:07:53 +03:00
|
|
|
error: Optional[uint16]
|
2022-04-04 21:53:13 +03:00
|
|
|
conds: Optional[SpendBundleConditions]
|
2022-01-26 20:07:22 +03:00
|
|
|
cost: uint64 # The total cost of the block, including CLVM cost, cost of
|
|
|
|
# conditions and cost of bytes
|