Skip to main content

bsv_tracker/
lib.rs

1#![doc = include_str!("../README.md")]
2
3mod compact;
4mod events;
5mod evidence;
6mod hints;
7mod host;
8mod state;
9mod tracker;
10
11pub use compact::{CompactError, COMPACT_VERSION};
12pub use events::{
13    decode_envelope, ChainEnvelope, ChainEvent, DecodeError, EventHeader, Outpoint, SplitTip,
14};
15pub use evidence::{CheckError, CheckedProof, Header, HeaderError, Headers, Proof};
16pub use hints::{Hint, HintStatus, Verdict, VerdictError};
17pub use host::{Clock, HintSource, ProofFetcher, SpendCheck};
18pub use state::{Evidence, HostAction, Input, Mined, NodeVerdict, Params, Reask, State, Word};
19pub use tracker::{ChainUpdate, Tracker};
20
21/// The height named by a BRC-74 path.
22pub type Height = u32;
23/// Seconds supplied by the host's clock.
24pub type Timestamp = u64;
25/// A display order transaction identifier.
26pub type TxId = String;
27/// A display order block hash or merkle root.
28pub type Hash = String;