use carbon_core::{borsh, CarbonDeserialize};
#[derive(
CarbonDeserialize, Debug, serde::Serialize, serde::Deserialize, PartialEq, Eq, Clone, Hash,
)]
#[carbon(discriminator = "0xb869a9230358ee43")]
pub struct SetAndVerifySizedCollectionItem {}
pub struct SetAndVerifySizedCollectionItemInstructionAccounts {
pub metadata: solana_sdk::pubkey::Pubkey,
pub collection_authority: solana_sdk::pubkey::Pubkey,
pub payer: solana_sdk::pubkey::Pubkey,
pub update_authority: solana_sdk::pubkey::Pubkey,
pub collection_mint: solana_sdk::pubkey::Pubkey,
pub collection: solana_sdk::pubkey::Pubkey,
pub collection_master_edition_account: solana_sdk::pubkey::Pubkey,
pub collection_authority_record: solana_sdk::pubkey::Pubkey,
}
impl carbon_core::deserialize::ArrangeAccounts for SetAndVerifySizedCollectionItem {
type ArrangedAccounts = SetAndVerifySizedCollectionItemInstructionAccounts;
fn arrange_accounts(
accounts: Vec<solana_sdk::instruction::AccountMeta>,
) -> Option<Self::ArrangedAccounts> {
let metadata = accounts.get(0)?;
let collection_authority = accounts.get(1)?;
let payer = accounts.get(2)?;
let update_authority = accounts.get(3)?;
let collection_mint = accounts.get(4)?;
let collection = accounts.get(5)?;
let collection_master_edition_account = accounts.get(6)?;
let collection_authority_record = accounts.get(7)?;
Some(SetAndVerifySizedCollectionItemInstructionAccounts {
metadata: metadata.pubkey,
collection_authority: collection_authority.pubkey,
payer: payer.pubkey,
update_authority: update_authority.pubkey,
collection_mint: collection_mint.pubkey,
collection: collection.pubkey,
collection_master_edition_account: collection_master_edition_account.pubkey,
collection_authority_record: collection_authority_record.pubkey,
})
}
}