u32, // timestamp
);
impl Default for RuneEntry {
fn default() -> Self {
Self {
burned: 0,
divisibility: 0,
end: None,
etching: Txid::all_zeros(),
limit: None,
number: 0,
rune: Rune(0),
supply: 0,
symbol: None,
timestamp: 0,
}
}
}
impl Entry for RuneEntry {
type Value = RuneEntryValue;
fn load(
(burned, divisibility, end, etching, limit, number, rune, supply, symbol, timestamp): RuneEntryValue,
) -> Self {
Self {
burned,
divisibility,
end,
etching: {
let low = etching.0.to_le_bytes();
let high = etching.1.to_le_bytes();
Txid::from_byte_array([
low[0], low[1], low[2], low[3], low[4], low[5], low[6], low[7], low[8], low[9], low[10],
low[11], low[12], low[13], low[14], low[15], high[0], high[1], high[2], high[3], high[4],
high[5], high[6], high[7], high[8], high[9], high[10], high[11], high[12], high[13],
high[14], high[15],
])