-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CHIA-2192] Add singleton records to action scopes (#19138)
* Add singleton_records to action scopes * Extract SingletonRecord to its own file * Fix test_lifecycle * Fix wallet action scope test mock
- Loading branch information
1 parent
a6cad88
commit 5e0d6a4
Showing
10 changed files
with
90 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from __future__ import annotations | ||
|
||
import dataclasses | ||
|
||
from chia.types.blockchain_format.sized_bytes import bytes32 | ||
from chia.util.ints import uint32, uint64 | ||
from chia.util.streamable import Streamable, streamable | ||
from chia.wallet.lineage_proof import LineageProof | ||
|
||
|
||
@streamable | ||
@dataclasses.dataclass(frozen=True) | ||
class SingletonRecord(Streamable): | ||
coin_id: bytes32 | ||
launcher_id: bytes32 | ||
root: bytes32 | ||
inner_puzzle_hash: bytes32 | ||
confirmed: bool | ||
confirmed_at_height: uint32 | ||
lineage_proof: LineageProof | ||
generation: uint32 | ||
timestamp: uint64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters