use serde::Deserialize;
use serde::Serialize;

use crate::common::inscriptions::Location;
use crate::common::inscriptions::Outpoint;

use super::electrs::BlockInfo;

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct InscriptionHistory {
    pub index: u32,
    pub genesis: Outpoint,
    pub number: u64,
    pub from: String,
    pub to: String,
    pub from_location: Location,
    pub to_location: Location,
    pub from_value: u64,
    pub to_value: u64,
    pub is_creation: bool,
    pub leaked: bool,
}
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct InscriptionsHistory {
    pub block: BlockInfo,
    pub history: Vec<InscriptionHistory>,
}
