pub struct RoundReceipt {
pub round_id: i64,
pub time_start: i64,
pub time_end: i64,
pub tx_hash: Option<String>,
pub pot_wei: Option<String>,
pub distributed_wei: Option<String>,
pub winner_address: Option<String>,
pub winner_amount_wei: Option<String>,
pub holder_count: Option<i32>,
pub vrf_random: Option<String>,
pub distributed_at: Option<i64>,
}Expand description
A settled distribution round.
Null wei fields mean the on-chain settlement has not been indexed yet — they do not mean zero.
Fields§
§round_id: i64Round number.
time_start: i64Window start, UNIX seconds.
time_end: i64Window end, UNIX seconds; becomes the start of the next leaderboard window.
tx_hash: Option<String>Settlement transaction hash.
pot_wei: Option<String>Whole amount that left the contract — pro-rata plus lottery. Exact wei as a decimal string.
distributed_wei: Option<String>Pro-rata portion only. Exact wei as a decimal string.
winner_address: Option<String>VRF-picked lottery winner.
winner_amount_wei: Option<String>Amount sent to the lottery winner. Exact wei as a decimal string.
holder_count: Option<i32>Number of holders paid pro-rata.
vrf_random: Option<String>The VRF word that selected the winner, as a decimal string (not hex). Published so the draw can be checked against the coordinator’s own fulfilment.
distributed_at: Option<i64>Settlement time, UNIX seconds.
Trait Implementations§
Source§impl Clone for RoundReceipt
impl Clone for RoundReceipt
Source§impl Debug for RoundReceipt
impl Debug for RoundReceipt
Source§impl<'de> Deserialize<'de> for RoundReceipt
impl<'de> Deserialize<'de> for RoundReceipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RoundReceipt
impl RefUnwindSafe for RoundReceipt
impl Send for RoundReceipt
impl Sync for RoundReceipt
impl Unpin for RoundReceipt
impl UnsafeUnpin for RoundReceipt
impl UnwindSafe for RoundReceipt
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