outpoint, offset: 0, } .store(); let end = SatPoint { outpoint, offset: u64::MAX, } .store(); let mut inscriptions = Vec::new(); for range in satpoint_to_sequence_number.range::<&[u8; 44]>(&start..=&end)? { let (satpoint, sequence_numbers) = range?; for sequence_number_result in sequence_numbers { let sequence_number = sequence_number_result?.value(); let entry = sequence_number_to_inscription_entry .get(sequence_number)? .unwrap(); inscriptions.push(( sequence_number, SatPoint::load(*satpoint.value()), InscriptionEntry::load(entry.value()).id, )); } } inscriptions.sort_by_key(|(sequence_number, _, _)| *sequence_number); Ok( inscriptions .into_iter() .map(|(_sequence_number, satpoint, inscription_id)| (satpoint, inscription_id)) .collect(), ) } } #[cfg(test)] mod tests { use { super::*, crate::index::testing::Context,