#![allow(
clippy::all,
clippy::pedantic,
clippy::nursery,
clippy::expect_used,
clippy::unwrap_used,
clippy::indexing_slicing,
clippy::allow_attributes,
clippy::allow_attributes_without_reason,
clippy::mem_forget,
unfulfilled_lint_expectations,
unexpected_cfgs,
unused_imports
)]
use crate::nexus::generated::SEND_NEXUS_ID;
pub const STAKING_CONFIG_SEED: &'static [u8] = &[
115, 116, 97, 107, 105, 110, 103, 95, 99, 111, 110, 102, 105, 103,
];
pub const STAKING_CONFIG_ADDRESS: solana_address::Address =
solana_address::address!("9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF");
pub const STAKING_CONFIG_BUMP: u8 = 255;
pub const STAKING_CONFIG_SIGNER_SEEDS: &[&[u8]] =
&[STAKING_CONFIG_SEED, &[STAKING_CONFIG_BUMP]];
pub fn create_staking_config_pda(
bump: u8,
) -> Result<solana_address::Address, solana_address::error::AddressError> {
solana_address::Address::create_program_address(
&[STAKING_CONFIG_SEED, &[bump]],
&SEND_NEXUS_ID,
)
}
pub const fn find_staking_config_pda() -> (solana_address::Address, u8) {
(STAKING_CONFIG_ADDRESS, STAKING_CONFIG_BUMP)
}