global: snapshot

This commit is contained in:
nym21
2025-12-19 15:48:32 +01:00
parent 03b83846ef
commit e134ed11a9
30 changed files with 265 additions and 184 deletions

View File

@@ -5,9 +5,12 @@ use schemars::JsonSchema;
use serde::Serialize;
use vecdb::{Bytes, Formattable};
/// Current supply state tracking UTXO count and total value
#[derive(Debug, Default, Clone, Serialize, JsonSchema)]
pub struct SupplyState {
/// Number of unspent transaction outputs
pub utxo_count: u64,
/// Total value in satoshis
pub value: Sats,
}