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