sendfun-sdk 3.0.0

Rust SDK for send.fun programs
Documentation
#![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
)]

//! This code was AUTOGENERATED using the codama library.
//! Please DO NOT EDIT THIS FILE, instead use visitors
//! to add features, then rerun codama to update it.
//!
//! <https://github.com/codama-idl/codama>
//!

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;

/// Signer seeds for `invoke_signed`; only the deriving program can sign with them.
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,
	)
}
/// Precomputed at generation time; equal to
/// `find_program_address(&[..], &SEND_LAUNCHPAD_ID)`.
pub const fn find_migration_authority_pda() -> (solana_address::Address, u8) {
	(MIGRATION_AUTHORITY_ADDRESS, MIGRATION_AUTHORITY_BUMP)
}