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::nexus::generated::SEND_NEXUS_ID;

pub const ALT_REGISTRY_SEED: &'static [u8] = &[
	115, 101, 110, 100, 95, 97, 108, 116, 95, 114, 101, 103, 105, 115, 116,
	114, 121,
];

pub const ALT_REGISTRY_ADDRESS: solana_address::Address =
	solana_address::address!("8QbgorUFZXo6Nv6CTn3Xgf1bYiu8yy5NsJNvxr19JA9H");

pub const ALT_REGISTRY_BUMP: u8 = 255;

/// Signer seeds for `invoke_signed`; only the deriving program can sign with them.
pub const ALT_REGISTRY_SIGNER_SEEDS: &[&[u8]] =
	&[ALT_REGISTRY_SEED, &[ALT_REGISTRY_BUMP]];
pub fn create_alt_registry_pda(
	bump: u8,
) -> Result<solana_address::Address, solana_address::error::AddressError> {
	solana_address::Address::create_program_address(
		&[ALT_REGISTRY_SEED, &[bump]],
		&SEND_NEXUS_ID,
	)
}
/// Precomputed at generation time; equal to
/// `find_program_address(&[..], &SEND_NEXUS_ID)`.
pub const fn find_alt_registry_pda() -> (solana_address::Address, u8) {
	(ALT_REGISTRY_ADDRESS, ALT_REGISTRY_BUMP)
}