chia_sdk_driver/action_system/
id.rs

1use chia_protocol::Bytes32;
2
3/// Represents either XCH, an existing CAT or singleton, or a new CAT or singleton.
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5pub enum Id {
6    /// XCH does not have an asset id on-chain, so we need a special id for it.
7    Xch,
8
9    /// An id that already exists on the blockchain.
10    Existing(Bytes32),
11
12    /// A unique index for an asset that doesn't exist on the blockchain yet.
13    New(usize),
14}