runes_bitomc/
lib.rs

1//! Types for interoperating with ordinals, inscriptions, and runes.
2#![allow(clippy::large_enum_variant)]
3
4use {
5  bitcoin::{
6    consensus::{Decodable, Encodable},
7    constants::{
8      COIN_VALUE, DIFFCHANGE_INTERVAL, MAX_SCRIPT_ELEMENT_SIZE, SUBSIDY_HALVING_INTERVAL,
9    },
10    opcodes,
11    script::{self, Instruction},
12    Network, OutPoint, ScriptBuf, Transaction,
13  },
14  derive_more::{Display, FromStr},
15  serde::{Deserialize, Serialize},
16  serde_with::{DeserializeFromStr, SerializeDisplay},
17  std::{
18    cmp,
19    fmt::{self, Display, Formatter},
20    io,
21    num::ParseIntError,
22    ops::{Add, AddAssign, Sub},
23    str::FromStr,
24  },
25  thiserror::Error,
26};
27
28pub use {
29  artifact::Artifact, cenotaph::Cenotaph, charm::Charm, decimal_sat::DecimalSat, degree::Degree,
30  edict::Edict, epoch::Epoch, flaw::Flaw, height::Height, pile::Pile, rarity::Rarity, rune::Rune,
31  rune_id::RuneId, runestone::Runestone, sat::Sat, sat_point::SatPoint, spaced_rune::SpacedRune,
32  terms::Terms,
33};
34
35pub const CYCLE_EPOCHS: u32 = 6;
36
37mod artifact;
38mod cenotaph;
39mod charm;
40mod decimal_sat;
41mod degree;
42mod edict;
43mod epoch;
44mod flaw;
45mod height;
46mod pile;
47mod rarity;
48mod rune;
49mod rune_id;
50mod runestone;
51mod sat;
52mod sat_point;
53mod spaced_rune;
54mod terms;
55pub mod varint;