module_ntoken/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
8// Distribut account constants.
9/// The size of distribute token account 
10pub const DISTRIBUTE_TOKEN_SIZE:usize = 1882;
11/// Len of constant prefix of distribut account.
12pub const DISTRIBUTE_TOKEN_PREFIX_SIZE: usize = 34;
13/// Maximum size of list users added to distribut account.
14pub const LIST_DISTRIBUTE_USER_SIZE: usize = 1848;
15/// Maximum number of users added to distribut account.
16pub const NUMBER_USERS_DISTRIBUTE: usize = 44;
17/// The size of user distribut struct.
18pub const USER_DISTRIBUTE_SIZE: usize = 42;
19
20
21// Admin account constants.
22/// The size of Admin account.
23pub const ADMIN_ACCOUNT_SIZE: usize = 331;
24/// LEN of constant prefix of admin account.
25pub const ADMIN_ACCOUNT_PREFIX_SIZE:usize = 1;
26/// The size of user admin struct.
27pub const USER_ADMIN_SIZE: usize = 33;
28/// The maximum number of users admins can added to admin account.
29pub const NUMBER_OF_ADMINS: usize = 10;
30
31
32// Portfolio account constatnts.
33/// LEN of constant prefix of portfolio account.
34pub const PORTFOLIO_PREFIX: usize = 245;
35/// The size of asset portfolio struct.
36pub const ASSET_LEN: usize = 67;
37
38
39
40// User Portfolio account constatnts.
41/// LEN of constant prefix of user portfolio account.
42pub const USER_PORTFOLIO_PREFIX: usize = 236;
43/// The size of splu user portfolio struct.
44pub const SPLU_LEN: usize = 164;