pub struct AggregatorInput {
pub offers: Vec<ProviderOfferContent>,
pub heartbeats: Vec<HeartbeatContent>,
pub receipts: Vec<CompletionReceipt>,
pub consumers: HashMap<String, ConsumerProfile>,
pub stake_statuses: HashMap<String, StakeStatus>,
pub anchor_providers: HashSet<String>,
}Expand description
Inputs to a single aggregator run. The caller (binary entry point) is responsible for I/O — fetching offers/heartbeats/ receipts from Nostr, fetching stake statuses from Esplora, loading consumer first-seen times. Once those are in hand, the snapshot is a pure function of them.
Fields§
§offers: Vec<ProviderOfferContent>§heartbeats: Vec<HeartbeatContent>§receipts: Vec<CompletionReceipt>§consumers: HashMap<String, ConsumerProfile>§stake_statuses: HashMap<String, StakeStatus>Pre-computed by the binary entry point against Esplora,
keyed by provider_npub. Letting the caller pass these in
keeps compute_snapshot pure and lets two independent
runs reproduce as long as they pass the same data.
anchor_providers: HashSet<String>5 anchor providers (Paygress-team-run) flagged in the UI.
Auto Trait Implementations§
impl Freeze for AggregatorInput
impl RefUnwindSafe for AggregatorInput
impl Send for AggregatorInput
impl Sync for AggregatorInput
impl Unpin for AggregatorInput
impl UnsafeUnpin for AggregatorInput
impl UnwindSafe for AggregatorInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more