use { super::*, crate::runes::{varint, Edict, Runestone, CLAIM_BIT}, }; fn claim(id: u128) -> Option { (id & CLAIM_BIT != 0).then_some(id ^ CLAIM_BIT) } struct Allocation { balance: u128, divisibility: u8, end: Option, id: u128, limit: Option, rune: Rune, symbol: Option, } pub(super) struct RuneUpdater<'a, 'db, 'tx> { pub(super) height: u32, pub(super) id_to_entry: &'a mut Table<'db, 'tx, RuneIdValue, RuneEntryValue>, pub(super) inscription_id_to_sequence_number: &'a Table<'db, 'tx, InscriptionIdValue, u32>, pub(super) minimum: Rune, pub(super) outpoint_to_balances: &'a mut Table<'db, 'tx, &'static OutPointValue, &'static [u8]>, pub(super) rune_to_id: &'a mut Table<'db, 'tx, u128, RuneIdValue>, pub(super) runes: u64, pub(super) sequence_number_to_rune: &'a mut Table<'db, 'tx, u32, u128>, pub(super) statistic_to_count: &'a mut Table<'db, 'tx, u64, u64>, pub(super) timestamp: u32, pub(super) transaction_id_to_rune: &'a mut Table<'db, 'tx, &'static TxidValue, u128>,