pub struct Shares {
pub from: i64,
pub to: i64,
pub total_points: f64,
pub holders: Vec<ShareEntry>,
pub packed: String,
}Expand description
The share allocation the round-runner posts on-chain, plus the exact calldata it posts.
Fields§
§from: i64Window start, UNIX seconds.
to: i64Window end, UNIX seconds.
total_points: f64Total points across the returned set.
holders: Vec<ShareEntry>Highest points first, capped at 100 (the contract’s MAX_HOLDERS).
packed: StringCalldata for Distributor.postShares: 24-byte entries of a 20-byte
address followed by the big-endian uint32 share. 0x-prefixed hex.
Trait Implementations§
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§
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