coal_guilds_api/state/
guild.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use steel::*;

use super::GuildsAccount;

/// Boost ...
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Guild {
    /// The bump used for signing.
    pub bump: u64,

    /// The guild authority.
    pub authority: Pubkey,

    /// Whether this guild is invite only.
    pub exclusive: u64,

    /// The minimum stake required to join this guild.
    pub min_stake: u64,

    // The total amount of stake in this boost.
    pub total_stake: u64,

    /// The unix timestamp of the last stake.
    pub last_stake_at: i64,
}

account!(GuildsAccount, Guild);