Skip to main content

mpl_token_metadata/
lib.rs

1mod generated;
2pub mod hooked;
3mod traits;
4pub mod utils;
5
6pub use generated::programs::MPL_TOKEN_METADATA_ID as ID;
7pub use generated::*;
8
9/// Maximum number of characters in a metadata name.
10pub const MAX_NAME_LENGTH: usize = 32;
11
12/// Maximum number of characters in a metadata symbol.
13pub const MAX_SYMBOL_LENGTH: usize = 10;
14
15/// Maximum number of characters in a metadata uri.
16pub const MAX_URI_LENGTH: usize = 200;
17
18/// Maximum number of creators in a metadata.
19pub const MAX_CREATOR_LIMIT: usize = 5;
20
21/// Maximum number of bytes used by a creator data.
22pub const MAX_CREATOR_LEN: usize = 32 + 1 + 1;
23
24/// Maximum number of bytes used by a edition marker.
25pub const MAX_EDITION_MARKER_SIZE: usize = 32;
26
27/// Number of bits used by a edition marker.
28pub const EDITION_MARKER_BIT_SIZE: u64 = 248;