use std::collections::HashMap;
use rust_decimal::Decimal;
use serde::{Deserialize, Serialize};

use crate::common::amount::Amount;
use crate::common::inscriptions::{Address, Outpoint};

use super::electrs::BlockInfo;

pub enum HistoryEvent {
    EnList {},
    UnList {},
    Sell {
        buyer: Address,
        seller: Address,
        price: Amount,
        amount: Decimal,
        token: Option<String>,
    },
    Move {},
    Reorg {},
}

#[derive(Clone, Serialize, Deserialize, Debug)]
pub struct MarketBlock {
    pub block_info: BlockInfo,
    pub moved_from_txids: HashMap<Outpoint, [u8; 32]>,
}
