dpp/asset_lock/
mod.rs

1use crate::asset_lock::reduced_asset_lock_value::AssetLockValue;
2
3pub mod reduced_asset_lock_value;
4
5pub type PastAssetLockStateTransitionHashes = Vec<Vec<u8>>;
6
7/// An enumeration of the possible states when querying platform to get the stored state of an outpoint
8/// representing if the asset lock was already used or not.
9#[derive(Debug, serde::Serialize, serde::Deserialize)]
10pub enum StoredAssetLockInfo {
11    /// The asset lock was fully consumed in the past
12    FullyConsumed,
13    /// The asset lock was partially consumed, and we stored the asset lock value in the state
14    PartiallyConsumed(AssetLockValue),
15    /// The asset lock is not yet known to Platform
16    NotPresent,
17}