gpl-core 1.0.0

Gum Protocol Core (GPL Core)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anchor_lang::prelude::*;

#[account]
pub struct Connection {
    // The profile that owns this connection
    pub from_profile: Pubkey,
    // The profile that this connection is to
    pub to_profile: Pubkey,
}

impl Connection {
    pub const LEN: usize = 8 + std::mem::size_of::<Self>();
}