0.0.2
This commit is contained in:
23
kb_lib/src/constants.rs
Normal file
23
kb_lib/src/constants.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
// file: kb_lib/src/constants.rs
|
||||
|
||||
//! Solana program and mint constants reused by the project.
|
||||
|
||||
/// SPL Token program identifier.
|
||||
pub const SPL_TOKEN_PROGRAM_ID: solana_sdk::pubkey::Pubkey = spl_token_interface::ID;
|
||||
|
||||
/// SPL Token-2022 program identifier.
|
||||
pub const SPL_TOKEN_2022_PROGRAM_ID: solana_sdk::pubkey::Pubkey = spl_token_2022_interface::ID;
|
||||
|
||||
/// Associated Token Account program identifier.
|
||||
pub const ASSOCIATED_TOKEN_PROGRAM_ID: solana_sdk::pubkey::Pubkey =
|
||||
spl_associated_token_account_interface::program::ID;
|
||||
|
||||
/// Wrapped SOL mint identifier.
|
||||
pub const WSOL_MINT_ID: solana_sdk::pubkey::Pubkey = spl_token_interface::native_mint::ID;
|
||||
|
||||
/// System program identifier.
|
||||
pub const SYSTEM_PROGRAM_ID: solana_sdk::pubkey::Pubkey = solana_sdk_ids::system_program::ID;
|
||||
|
||||
/// Compute Budget program identifier.
|
||||
pub const COMPUTE_BUDGET_PROGRAM_ID: solana_sdk::pubkey::Pubkey =
|
||||
solana_sdk_ids::compute_budget::ID;
|
||||
Reference in New Issue
Block a user