coal_guilds_api/state/guild.rs
1use steel::*;
2
3use super::GuildsAccount;
4
5/// Boost ...
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct Guild {
9 /// The bump used for signing.
10 pub bump: u64,
11
12 /// The guild authority.
13 pub authority: Pubkey,
14
15 /// Whether this guild is invite only.
16 pub exclusive: u64,
17
18 /// The minimum stake required to join this guild.
19 pub min_stake: u64,
20
21 // The total amount of stake in this boost.
22 pub total_stake: u64,
23
24 /// The unix timestamp of the last stake.
25 pub last_stake_at: i64,
26}
27
28account!(GuildsAccount, Guild);