use carbon_core::{account_utils::next_account, borsh, CarbonDeserialize};
#[derive(
CarbonDeserialize, Debug, serde::Serialize, serde::Deserialize, PartialEq, Eq, Clone, Hash,
)]
#[carbon(discriminator = "0x1c")]
pub struct RemoveCreatorVerification {}
#[derive(Debug, PartialEq, Eq, Clone, Hash, serde::Serialize, serde::Deserialize)]
pub struct RemoveCreatorVerificationInstructionAccounts {
pub metadata: solana_pubkey::Pubkey,
pub creator: solana_pubkey::Pubkey,
}
impl carbon_core::deserialize::ArrangeAccounts for RemoveCreatorVerification {
type ArrangedAccounts = RemoveCreatorVerificationInstructionAccounts;
fn arrange_accounts(
accounts: &[solana_instruction::AccountMeta],
) -> Option<Self::ArrangedAccounts> {
let mut iter = accounts.iter();
let metadata = next_account(&mut iter)?;
let creator = next_account(&mut iter)?;
Some(RemoveCreatorVerificationInstructionAccounts { metadata, creator })
}
}