pub struct GetRewardDistributorResult {Show 14 fields
pub launcher_id: HexId,
pub store_id: HexId,
pub root: HexId,
pub epoch_seconds: u64,
pub first_epoch_start: u64,
pub payout_threshold: u64,
pub fee_bps: u16,
pub withdrawal_share_bps: u16,
pub reserve_base_units: u64,
pub entry_count: u64,
pub current_distributor_epoch: u64,
pub last_entry_write_at: Option<u64>,
pub entry_set_stale: bool,
pub observed_at: u64,
}Expand description
Result for
dig.getRewardDistributor —
SPEC §2.6, third method: chain-derived distributor state only, never the
local prover loop’s own state (see RewardProverStatus for that).
§entry_set_stale lives HERE, never on RewardProverStatus
This is the one boolean in the reward-distributor surface, and it belongs
here specifically: per SPEC §12.4 it is computed by the responder from the
distributor singleton’s on-chain spend history at read time, not
self-reported by a possibly-wedged writer. Copying it onto
RewardProverStatus would reintroduce exactly the self-reported-health
failure that type’s doc comment forbids — see that type for the full
argument.
Fields§
§launcher_id: HexIdThe distributor singleton’s launcher id (64-hex).
store_id: HexIdThe backing store’s launcher id (64-hex).
root: HexIdThe store’s current generation root (64-hex).
epoch_seconds: u64The payout epoch length, in seconds.
first_epoch_start: u64Unix seconds the first epoch started.
payout_threshold: u64The reserve threshold, in base units, that triggers a payout.
fee_bps: u16The distributor’s fee, in basis points.
The share of a clawed-back commitment the committer recovers, in basis
points — SPEC §7.5. withdrawal_share_bps = 9000 means a clawback
returns 90% of the committed value; the remaining 10% is forfeited to
the reserve as a deterrent against the funder (SPEC §7.5 clause 1: it
is priced correctly and is not compensation to induced mirrors).
Curried at launch and immutable, same as Self::fee_bps beside it.
reserve_base_units: u64The current reserve, in base units.
entry_count: u64The current entry-set size.
current_distributor_epoch: u64The current epoch index (0-based from first_epoch_start).
last_entry_write_at: Option<u64>Unix seconds of the most recent entry-set write on chain, if any.
None together with a non-zero reserve_base_units implies
stale: an entry set that has never been written is maximally
stale, not unknown, and a consumer MUST NOT render it as blank or
“unknown” (SPEC §2.4 cl. 1 — silence is not an acceptable
representation of “not distributing”).
entry_set_stale: booltrue when the entry set has not changed in
STALE_ENTRY_SET_SECONDS = 172_800 (48 h) while the reserve is
non-zero — SPEC §12.4. A drained distributor with a frozen entry set
is not stale, it is Unfunded;
the non-zero-reserve conjunct exists to keep the two states distinct.
The responder computes this at read time from the singleton’s own
on-chain spend history — it is not self-reported, so a wedged prover
cannot fake it. See the type doc for why this boolean is safe here and
forbidden on RewardProverStatus.
observed_at: u64Unix seconds this result was assembled.
Trait Implementations§
Source§impl Clone for GetRewardDistributorResult
impl Clone for GetRewardDistributorResult
Source§fn clone(&self) -> GetRewardDistributorResult
fn clone(&self) -> GetRewardDistributorResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more