Skip to main content

satrush_client/generated/types/
winner.rs

1//! This code was AUTOGENERATED using the codama library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun codama to update it.
4//!
5//! <https://github.com/codama-idl/codama>
6//!
7
8use solana_address::Address;
9use borsh::BorshSerialize;
10use borsh::BorshDeserialize;
11
12#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
13pub struct Winner {
14pub authority: Address,
15/// Page the winner was drawn from. Together with `tickets`, lets the reduced
16/// (without-replacement) ticket ranges be reconstructed from the winners array
17/// instead of a live per-page cache on the iteration.
18pub page_index: u16,
19/// Ticket weight removed from the draw when this winner was selected.
20pub tickets: u64,
21pub claimed: bool,
22}
23
24