#![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::launchpad::generated::SEND_LAUNCHPAD_ID;
pub const MIGRATION_AUTHORITY_SEED: &'static [u8] = &[
109, 105, 103, 114, 97, 116, 105, 111, 110, 95, 97, 117, 116, 104, 111,
114, 105, 116, 121,
];
pub const MIGRATION_AUTHORITY_ADDRESS: solana_address::Address =
solana_address::address!("932vp5VTARoqoAKNgLSawfCsAx43jUJ5YURggmXBX6V");
pub const MIGRATION_AUTHORITY_BUMP: u8 = 251;
pub const MIGRATION_AUTHORITY_SIGNER_SEEDS: &[&[u8]] =
&[MIGRATION_AUTHORITY_SEED, &[MIGRATION_AUTHORITY_BUMP]];
pub fn create_migration_authority_pda(
bump: u8,
) -> Result<solana_address::Address, solana_address::error::AddressError> {
solana_address::Address::create_program_address(
&[MIGRATION_AUTHORITY_SEED, &[bump]],
&SEND_LAUNCHPAD_ID,
)
}
pub const fn find_migration_authority_pda() -> (solana_address::Address, u8) {
(MIGRATION_AUTHORITY_ADDRESS, MIGRATION_AUTHORITY_BUMP)
}