Skip to main content

bsv_tracker/
lib.rs

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