Self { height, index }
}
fn store(self) -> Self::Value {
(self.height, self.index)
}
}
#[derive(Debug)]
pub(crate) struct InscriptionEntry {
pub(crate) charms: u16,
pub(crate) fee: u64,
pub(crate) height: u32,
pub(crate) id: InscriptionId,
pub(crate) inscription_number: i32,
pub(crate) parent: Option<u32>,
pub(crate) sat: Option<Sat>,
pub(crate) sequence_number: u32,
pub(crate) timestamp: u32,
}
pub(crate) type InscriptionEntryValue = (
u16, // charms
u64, // fee
u32, // height
InscriptionIdValue, // inscription id
i32, // inscription number
Option<u32>, // parent
Option<u64>, // sat
u32, // sequence number
u32, // timestamp
);
impl Entry for InscriptionEntry {
type Value = InscriptionEntryValue;
#[rustfmt::skip]
fn load(
(
charms,
fee,
height,
id,
inscription_number,
parent,
sat,
sequence_number,