v0.1.0-pre.007
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-program-ids/src/lib.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unreachable_pub)]
|
||||
@@ -11,6 +11,8 @@ mod constants;
|
||||
|
||||
/// Address Lookup Table program identifier.
|
||||
pub use constants::ADDRESS_LOOKUP_TABLE_PROGRAM_ID;
|
||||
/// SPL Associated Token Account program identifier.
|
||||
pub use constants::ASSOCIATED_TOKEN_PROGRAM_ID;
|
||||
/// Deprecated BPF Loader program identifier.
|
||||
pub use constants::BPF_LOADER_DEPRECATED_PROGRAM_ID;
|
||||
/// BPF Loader version 2 program identifier.
|
||||
@@ -49,6 +51,8 @@ pub use constants::SPL_MEMO_V1_PROGRAM_ID;
|
||||
pub use constants::SPL_MEMO_V3_PROGRAM_ID;
|
||||
/// Current SPL Memo v4 program identifier.
|
||||
pub use constants::SPL_MEMO_V4_PROGRAM_ID;
|
||||
/// SPL Token-2022 program identifier.
|
||||
pub use constants::SPL_TOKEN_2022_PROGRAM_ID;
|
||||
/// Classic SPL Token program identifier.
|
||||
pub use constants::SPL_TOKEN_PROGRAM_ID;
|
||||
/// Historical Stake configuration account identifier.
|
||||
@@ -138,7 +142,7 @@ mod tests {
|
||||
assert!(codes.insert(entry.code()));
|
||||
assert!(program_ids.insert(entry.program_id()));
|
||||
}
|
||||
assert_eq!(crate::registered_program_ids().len(), 29);
|
||||
assert_eq!(crate::registered_program_ids().len(), 31);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -201,6 +205,8 @@ mod tests {
|
||||
crate::SPL_MEMO_V3_PROGRAM_ID,
|
||||
crate::SPL_MEMO_V4_PROGRAM_ID,
|
||||
crate::SPL_TOKEN_PROGRAM_ID,
|
||||
crate::SPL_TOKEN_2022_PROGRAM_ID,
|
||||
crate::ASSOCIATED_TOKEN_PROGRAM_ID,
|
||||
];
|
||||
for program_id in spl_program_ids {
|
||||
assert!(crate::find_registered_program_id(program_id).is_some());
|
||||
|
||||
Reference in New Issue
Block a user