#![cfg_attr(not(feature = "graphql"), allow(dead_code))]
mod error;
mod ids;
mod record;
mod reservation;
mod state;
mod traits;
#[cfg(test)]
mod tests;
pub(crate) use error::CommandLedgerError;
#[cfg_attr(
not(any(feature = "graphql", feature = "sqlite", feature = "postgres")),
allow(unused_imports)
)]
pub(crate) use ids::{
AttemptToken, CanonicalInputHash, CausalStorageIdentity, CausationId,
CommandContractFingerprint, CommandId, CommandLedgerKey, PrincipalPartitionId, SHA256_BYTES,
};
pub(crate) use record::{CommandLedgerRecord, ReservationDecision};
pub(crate) use reservation::{
AttemptFence, CausalCommitBatch, CommandAttempt, CommandCompletion, CommandLookup,
CommandLookupScope, CommandReplay, CommandReservation, ReservationOutcome,
};
pub(crate) use state::{CommandLedgerState, TerminalCommandState};
pub(crate) use traits::{
CausalGetStream, CausalRepositoryIdentity, CausalTransactionalCommit, CommandLedgerStore,
};