.map(|entry| InscriptionEntry::load(entry.value()).id), ) } pub(crate) fn get_inscription_id_by_inscription_number( &self, inscription_number: i32, ) -> Result> { let rtx = self.database.begin_read()?; let Some(sequence_number) = rtx .open_table(INSCRIPTION_NUMBER_TO_SEQUENCE_NUMBER)? .get(inscription_number)? .map(|guard| guard.value()) else { return Ok(None); }; let inscription_id = rtx .open_table(SEQUENCE_NUMBER_TO_INSCRIPTION_ENTRY)? .get(&sequence_number)? .map(|entry| InscriptionEntry::load(entry.value()).id); Ok(inscription_id) } pub(crate) fn get_inscription_satpoint_by_id( &self, inscription_id: InscriptionId, ) -> Result> { let rtx = self.database.begin_read()?; let Some(sequence_number) = rtx .open_table(INSCRIPTION_ID_TO_SEQUENCE_NUMBER)? .get(&inscription_id.store())? .map(|guard| guard.value()) else { return Ok(None);