ntoken_solana_models/constants/account_size.rs
1//! The size of accounts
2
3/// The size of NFT account
4pub const NFT_ACCOUNT_SIZE:usize = 99;
5
6
7// Distribut account constants.
8/// The size of distribute token account
9pub const DISTRIBUTE_TOKEN_SIZE:usize = 2206;
10/// Length of constant prefix of distribut account.
11pub const DISTRIBUTE_TOKEN_PREFIX_SIZE: usize = 106;
12/// Maximum size of list users added to distribut account.
13pub const LIST_DISTRIBUTE_USER_SIZE: usize = 2100;
14/// Maximum number of users added to distribut account.
15pub const NUMBER_USERS_DISTRIBUTE: usize = 50;
16/// The size of user distribut struct.
17pub const USER_DISTRIBUTE_SIZE: usize = 42;
18
19
20// Admin account constants.
21/// The size of Admin account.
22pub const ADMIN_ACCOUNT_SIZE: usize = 331;
23/// Length of constant prefix of admin account.
24pub const ADMIN_ACCOUNT_PREFIX_SIZE:usize = 1;
25/// The maximum number of users admins can added to admin account.
26pub const NUMBER_OF_ADMINS: usize = 10;
27/// The size of user admin struct.
28pub const USER_ADMIN_SIZE: usize = 33;
29
30
31// Splm Asset Registry account constants.
32/// The size of splm asset registry account.
33pub const SPLM_ASSET_REGISTRY_ACCOUNT_SIZE: usize = 1651;
34/// Length of constant prefix of splm assets account.
35pub const SPLM_ASSETS_ACCOUNT_PREFIX_SIZE:usize = 1;
36/// The maximum number of splm assets can be added to an splm asset registry.
37pub const NUMBER_OF_SPLM_ASSETS: usize = 50;
38/// The size of splm asset struct.
39pub const SPLM_ASSET_SIZE: usize = 33;
40
41
42// Portfolio account constatnts.
43/// Length of constant prefix of portfolio account.
44pub const PORTFOLIO_PREFIX: usize = 213;
45/// The size of asset portfolio struct.
46pub const ASSET_LEN: usize = 67;
47
48
49// User Portfolio account constatnts.
50/// Length of constant prefix of user portfolio account.
51pub const USER_PORTFOLIO_PREFIX: usize = 228;
52/// The size of splu user portfolio struct.
53pub const SPLU_LEN: usize = 161;
54
55// Turing machine account constatnts.
56/// The size of Turing account.
57pub const TURING_MACHINE_ACCOUNT_PREFIX:usize = 83;
58/// The size of splu secondary state of Turing account.
59pub const SPLU_SECONDARY_STRUCT_LEN:usize = 65;