use chia_protocol::Bytes32;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct DeletionPreview {
did: String,
did_launcher_id: Bytes32,
store_launcher_id: Bytes32,
did_coin_id: Bytes32,
store_coin_id: Bytes32,
destroyed_mojos: u64,
}
impl DeletionPreview {
pub(crate) fn new(
did: String,
did_launcher_id: Bytes32,
store_launcher_id: Bytes32,
did_coin_id: Bytes32,
store_coin_id: Bytes32,
destroyed_mojos: u64,
) -> Self {
Self {
did,
did_launcher_id,
store_launcher_id,
did_coin_id,
store_coin_id,
destroyed_mojos,
}
}
pub fn did(&self) -> &str {
&self.did
}
pub fn did_launcher_id(&self) -> Bytes32 {
self.did_launcher_id
}
pub fn store_launcher_id(&self) -> Bytes32 {
self.store_launcher_id
}
pub fn did_coin_id(&self) -> Bytes32 {
self.did_coin_id
}
pub fn store_coin_id(&self) -> Bytes32 {
self.store_coin_id
}
pub fn destroyed_mojos(&self) -> u64 {
self.destroyed_mojos
}
}