From c19e5c45e185164ee7727ec3b4e044899f24293c Mon Sep 17 00:00:00 2001 From: febo Date: Fri, 24 Nov 2023 17:03:49 +0000 Subject: [PATCH 1/3] Add safe_deserialize macro --- clients/rust/src/traits.rs | 54 ++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/clients/rust/src/traits.rs b/clients/rust/src/traits.rs index 97c524da..9361dc8e 100644 --- a/clients/rust/src/traits.rs +++ b/clients/rust/src/traits.rs @@ -6,7 +6,9 @@ use borsh::BorshDeserialize; use solana_program::pubkey::Pubkey; use crate::{ - accounts::{MasterEdition, Metadata, TokenRecord}, + accounts::{ + CollectionAuthorityRecord, MasterEdition, Metadata, MetadataDelegateRecord, TokenRecord, + }, errors::MplTokenMetadataError, generated::{ types::{CollectionToggle, RuleSetToggle, UsesToggle}, @@ -18,6 +20,38 @@ use crate::{ }, }; +/// safe deserialize default impl + +macro_rules! safe_deserialize { + ( ($n:tt, $k:tt), $(($name:tt, $key:tt)),+ ) => { + safe_deserialize!(($n, $k)); + safe_deserialize!($( ($name, $key) ),+); + }; + ( ($name:tt, $key:tt) ) => { + impl $name { + pub fn safe_deserialize(data: &[u8]) -> Result { + if data.is_empty() || data[0] != Key::$key as u8 { + return Err(borsh::maybestd::io::Error::new( + ErrorKind::Other, + "DataTypeMismatch", + )); + } + // mutable "pointer" to the account data + let mut data = data; + let result = Self::deserialize(&mut data)?; + + Ok(result) + } + } + }; +} + +safe_deserialize!( + (CollectionAuthorityRecord, CollectionAuthorityRecord), + (MasterEdition, MasterEditionV2), + (MetadataDelegateRecord, MetadataDelegate) +); + // UpdateV1InstructionArgs impl Default for UpdateV1InstructionArgs { @@ -36,24 +70,6 @@ impl Default for UpdateV1InstructionArgs { } } -// Master Edition - -impl MasterEdition { - pub fn safe_deserialize(data: &[u8]) -> Result { - if data.is_empty() || data[0] != Key::MasterEditionV2 as u8 { - return Err(borsh::maybestd::io::Error::new( - ErrorKind::Other, - "DataTypeMismatch", - )); - } - // mutable "pointer" to the account data - let mut data = data; - let result = Self::deserialize(&mut data)?; - - Ok(result) - } -} - // Metadata impl Metadata { From 5eea733db8a02a30ed7b5c2b2238b437a02ebdd9 Mon Sep 17 00:00:00 2001 From: febo Date: Fri, 24 Nov 2023 17:05:40 +0000 Subject: [PATCH 2/3] Update kinobi version --- .../approveCollectionAuthority.ts | 24 +++++--- .../instructions/approveUseAuthority.ts | 42 ++++++++++---- .../bubblegumSetCollectionSize.ts | 10 ++-- .../generated/instructions/burnEditionNft.ts | 28 +++++---- .../js/src/generated/instructions/burnNft.ts | 22 ++++--- .../js/src/generated/instructions/burnV1.ts | 44 +++++++++----- .../instructions/closeEscrowAccount.ts | 32 +++++++--- .../js/src/generated/instructions/collect.ts | 8 ++- .../convertMasterEditionV1ToV2.ts | 6 +- .../instructions/createEscrowAccount.ts | 38 +++++++++--- .../instructions/createMasterEditionV3.ts | 30 +++++++--- .../instructions/createMetadataAccountV3.ts | 22 ++++--- .../js/src/generated/instructions/createV1.ts | 30 +++++++--- .../instructions/delegateAuthorityItemV1.ts | 48 ++++++++++----- .../instructions/delegateCollectionItemV1.ts | 48 ++++++++++----- .../instructions/delegateCollectionV1.ts | 48 ++++++++++----- .../instructions/delegateDataItemV1.ts | 48 ++++++++++----- .../generated/instructions/delegateDataV1.ts | 48 ++++++++++----- .../instructions/delegateLockedTransferV1.ts | 48 ++++++++++----- .../delegateProgrammableConfigItemV1.ts | 48 ++++++++++----- .../delegateProgrammableConfigV1.ts | 48 ++++++++++----- .../generated/instructions/delegateSaleV1.ts | 48 ++++++++++----- .../instructions/delegateStakingV1.ts | 48 ++++++++++----- .../instructions/delegateStandardV1.ts | 48 ++++++++++----- .../instructions/delegateTransferV1.ts | 48 ++++++++++----- .../instructions/delegateUtilityV1.ts | 48 ++++++++++----- ...ditionFromMasterEditionViaPrintingToken.ts | 48 ++++++++++----- .../instructions/freezeDelegatedAccount.ts | 18 ++++-- .../js/src/generated/instructions/lockV1.ts | 46 ++++++++++----- .../js/src/generated/instructions/migrate.ts | 50 +++++++++++----- ...mintNewEditionFromMasterEditionViaToken.ts | 48 ++++++++++----- ...ewEditionFromMasterEditionViaVaultProxy.ts | 58 +++++++++++++------ .../js/src/generated/instructions/mintV1.ts | 46 ++++++++++----- .../js/src/generated/instructions/printV1.ts | 44 ++++++++------ .../generated/instructions/puffMetadata.ts | 6 +- .../instructions/removeCreatorVerification.ts | 12 +++- .../instructions/revokeAuthorityItemV1.ts | 48 ++++++++++----- .../instructions/revokeCollectionAuthority.ts | 14 +++-- .../instructions/revokeCollectionItemV1.ts | 48 ++++++++++----- .../instructions/revokeCollectionV1.ts | 48 ++++++++++----- .../instructions/revokeDataItemV1.ts | 48 ++++++++++----- .../generated/instructions/revokeDataV1.ts | 48 ++++++++++----- .../instructions/revokeLockedTransferV1.ts | 48 ++++++++++----- .../instructions/revokeMigrationV1.ts | 48 ++++++++++----- .../revokeProgrammableConfigItemV1.ts | 48 ++++++++++----- .../revokeProgrammableConfigV1.ts | 48 ++++++++++----- .../generated/instructions/revokeSaleV1.ts | 48 ++++++++++----- .../generated/instructions/revokeStakingV1.ts | 48 ++++++++++----- .../instructions/revokeStandardV1.ts | 48 ++++++++++----- .../instructions/revokeTransferV1.ts | 48 ++++++++++----- .../instructions/revokeUseAuthority.ts | 26 ++++++--- .../generated/instructions/revokeUtilityV1.ts | 48 ++++++++++----- .../instructions/setAndVerifyCollection.ts | 24 +++++--- .../setAndVerifySizedCollectionItem.ts | 28 ++++++--- .../instructions/setCollectionSize.ts | 8 +-- .../instructions/setTokenStandard.ts | 16 +++-- .../generated/instructions/signMetadata.ts | 12 +++- .../instructions/thawDelegatedAccount.ts | 18 ++++-- .../instructions/transferOutOfEscrow.ts | 42 +++++++++----- .../src/generated/instructions/transferV1.ts | 54 +++++++++++------ .../js/src/generated/instructions/unlockV1.ts | 46 ++++++++++----- .../instructions/unverifyCollection.ts | 16 +++-- .../instructions/unverifyCollectionV1.ts | 22 ++++--- .../instructions/unverifyCreatorV1.ts | 22 ++++--- .../unverifySizedCollectionItem.ts | 26 ++++++--- .../updateAsAuthorityItemDelegateV2.ts | 42 ++++++++++---- .../updateAsCollectionDelegateV2.ts | 42 ++++++++++---- .../updateAsCollectionItemDelegateV2.ts | 42 ++++++++++---- .../instructions/updateAsDataDelegateV2.ts | 42 ++++++++++---- .../updateAsDataItemDelegateV2.ts | 42 ++++++++++---- .../updateAsProgrammableConfigDelegateV2.ts | 42 ++++++++++---- ...pdateAsProgrammableConfigItemDelegateV2.ts | 42 ++++++++++---- .../instructions/updateAsUpdateAuthorityV2.ts | 42 ++++++++++---- .../instructions/updateMetadataAccountV2.ts | 8 ++- .../updatePrimarySaleHappenedViaToken.ts | 18 +++++- .../js/src/generated/instructions/updateV1.ts | 42 ++++++++++---- .../js/src/generated/instructions/useV1.ts | 44 ++++++++++---- .../js/src/generated/instructions/utilize.ts | 34 +++++++---- .../instructions/verifyCollection.ts | 22 ++++--- .../instructions/verifyCollectionV1.ts | 24 +++++--- .../generated/instructions/verifyCreatorV1.ts | 24 +++++--- .../instructions/verifySizedCollectionItem.ts | 26 ++++++--- .../approve_collection_authority.rs | 26 ++++++++- .../instructions/approve_use_authority.rs | 32 +++++++++- .../bubblegum_set_collection_size.rs | 20 ++++++- .../rust/src/generated/instructions/burn.rs | 38 +++++++++++- .../instructions/burn_edition_nft.rs | 30 +++++++++- .../src/generated/instructions/burn_nft.rs | 24 +++++++- .../src/generated/instructions/burn_v1.rs | 38 +++++++++++- .../instructions/close_escrow_account.rs | 26 ++++++++- .../src/generated/instructions/collect.rs | 14 ++++- .../convert_master_edition_v1_to_v2.rs | 16 ++++- .../rust/src/generated/instructions/create.rs | 28 ++++++++- .../instructions/create_escrow_account.rs | 28 ++++++++- .../instructions/create_master_edition_v3.rs | 28 ++++++++- .../create_metadata_account_v3.rs | 24 +++++++- .../src/generated/instructions/create_v1.rs | 28 ++++++++- .../src/generated/instructions/delegate.rs | 38 +++++++++++- .../delegate_authority_item_v1.rs | 38 +++++++++++- .../delegate_collection_item_v1.rs | 38 +++++++++++- .../instructions/delegate_collection_v1.rs | 38 +++++++++++- .../instructions/delegate_data_item_v1.rs | 38 +++++++++++- .../instructions/delegate_data_v1.rs | 38 +++++++++++- .../delegate_locked_transfer_v1.rs | 38 +++++++++++- .../delegate_programmable_config_item_v1.rs | 38 +++++++++++- .../delegate_programmable_config_v1.rs | 38 +++++++++++- .../instructions/delegate_sale_v1.rs | 38 +++++++++++- .../instructions/delegate_staking_v1.rs | 38 +++++++++++- .../instructions/delegate_standard_v1.rs | 38 +++++++++++- .../instructions/delegate_transfer_v1.rs | 38 +++++++++++- .../instructions/delegate_utility_v1.rs | 38 +++++++++++- ..._from_master_edition_via_printing_token.rs | 42 +++++++++++++- .../instructions/freeze_delegated_account.rs | 20 ++++++- .../rust/src/generated/instructions/lock.rs | 36 +++++++++++- .../src/generated/instructions/lock_v1.rs | 36 +++++++++++- .../src/generated/instructions/migrate.rs | 40 ++++++++++++- .../rust/src/generated/instructions/mint.rs | 40 ++++++++++++- ...w_edition_from_master_edition_via_token.rs | 38 +++++++++++- ...ion_from_master_edition_via_vault_proxy.rs | 44 +++++++++++++- .../src/generated/instructions/mint_v1.rs | 40 ++++++++++++- .../rust/src/generated/instructions/print.rs | 46 ++++++++++++++- .../src/generated/instructions/print_v1.rs | 46 ++++++++++++++- .../generated/instructions/puff_metadata.rs | 12 +++- .../remove_creator_verification.rs | 14 ++++- .../rust/src/generated/instructions/revoke.rs | 38 +++++++++++- .../instructions/revoke_authority_item_v1.rs | 38 +++++++++++- .../revoke_collection_authority.rs | 20 ++++++- .../instructions/revoke_collection_item_v1.rs | 38 +++++++++++- .../instructions/revoke_collection_v1.rs | 38 +++++++++++- .../instructions/revoke_data_item_v1.rs | 38 +++++++++++- .../generated/instructions/revoke_data_v1.rs | 38 +++++++++++- .../instructions/revoke_locked_transfer_v1.rs | 38 +++++++++++- .../instructions/revoke_migration_v1.rs | 38 +++++++++++- .../revoke_programmable_config_item_v1.rs | 38 +++++++++++- .../revoke_programmable_config_v1.rs | 38 +++++++++++- .../generated/instructions/revoke_sale_v1.rs | 38 +++++++++++- .../instructions/revoke_staking_v1.rs | 38 +++++++++++- .../instructions/revoke_standard_v1.rs | 38 +++++++++++- .../instructions/revoke_transfer_v1.rs | 38 +++++++++++- .../instructions/revoke_use_authority.rs | 28 ++++++++- .../instructions/revoke_utility_v1.rs | 38 +++++++++++- .../instructions/set_and_verify_collection.rs | 26 ++++++++- .../set_and_verify_sized_collection_item.rs | 26 ++++++++- .../instructions/set_collection_size.rs | 18 +++++- .../instructions/set_token_standard.rs | 18 +++++- .../generated/instructions/sign_metadata.rs | 14 ++++- .../instructions/thaw_delegated_account.rs | 20 ++++++- .../src/generated/instructions/transfer.rs | 44 +++++++++++++- .../instructions/transfer_out_of_escrow.rs | 36 +++++++++++- .../src/generated/instructions/transfer_v1.rs | 44 +++++++++++++- .../rust/src/generated/instructions/unlock.rs | 36 +++++++++++- .../src/generated/instructions/unlock_v1.rs | 36 +++++++++++- .../src/generated/instructions/unverify.rs | 24 +++++++- .../instructions/unverify_collection.rs | 22 ++++++- .../instructions/unverify_collection_v1.rs | 24 +++++++- .../instructions/unverify_creator_v1.rs | 24 +++++++- .../unverify_sized_collection_item.rs | 24 +++++++- .../rust/src/generated/instructions/update.rs | 32 +++++++++- .../update_as_authority_item_delegate_v2.rs | 32 +++++++++- .../update_as_collection_delegate_v2.rs | 32 +++++++++- .../update_as_collection_item_delegate_v2.rs | 32 +++++++++- .../update_as_data_delegate_v2.rs | 32 +++++++++- .../update_as_data_item_delegate_v2.rs | 32 +++++++++- ...date_as_programmable_config_delegate_v2.rs | 32 +++++++++- ...as_programmable_config_item_delegate_v2.rs | 32 +++++++++- .../update_as_update_authority_v2.rs | 32 +++++++++- .../update_metadata_account_v2.rs | 14 ++++- .../update_primary_sale_happened_via_token.rs | 16 ++++- .../src/generated/instructions/update_v1.rs | 32 +++++++++- .../rust/src/generated/instructions/use.rs | 34 ++++++++++- .../rust/src/generated/instructions/use_v1.rs | 34 ++++++++++- .../src/generated/instructions/utilize.rs | 32 +++++++++- .../rust/src/generated/instructions/verify.rs | 26 ++++++++- .../instructions/verify_collection.rs | 24 +++++++- .../instructions/verify_collection_v1.rs | 26 ++++++++- .../instructions/verify_creator_v1.rs | 26 ++++++++- .../verify_sized_collection_item.rs | 24 +++++++- package.json | 2 +- pnpm-lock.yaml | 8 +-- 179 files changed, 4923 insertions(+), 1063 deletions(-) diff --git a/clients/js/src/generated/instructions/approveCollectionAuthority.ts b/clients/js/src/generated/instructions/approveCollectionAuthority.ts index fb92ec91..e74a0bc9 100644 --- a/clients/js/src/generated/instructions/approveCollectionAuthority.ts +++ b/clients/js/src/generated/instructions/approveCollectionAuthority.ts @@ -90,28 +90,36 @@ export function approveCollectionAuthority( const resolvedAccounts = { collectionAuthorityRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.collectionAuthorityRecord ?? null, }, newCollectionAuthority: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.newCollectionAuthority ?? null, }, updateAuthority: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.updateAuthority ?? null, }, - payer: { index: 3, isWritable: true, value: input.payer ?? null }, - metadata: { index: 4, isWritable: false, value: input.metadata ?? null }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, + payer: { + index: 3, + isWritable: true as boolean, + value: input.payer ?? null, + }, + metadata: { + index: 4, + isWritable: false as boolean, + value: input.metadata ?? null, + }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, systemProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 7, isWritable: false, value: input.rent ?? null }, + rent: { index: 7, isWritable: false as boolean, value: input.rent ?? null }, } satisfies ResolvedAccountsWithIndices; // Default values. diff --git a/clients/js/src/generated/instructions/approveUseAuthority.ts b/clients/js/src/generated/instructions/approveUseAuthority.ts index 6fc95010..dc2072f0 100644 --- a/clients/js/src/generated/instructions/approveUseAuthority.ts +++ b/clients/js/src/generated/instructions/approveUseAuthority.ts @@ -108,31 +108,51 @@ export function approveUseAuthority( const resolvedAccounts = { useAuthorityRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.useAuthorityRecord ?? null, }, - owner: { index: 1, isWritable: true, value: input.owner ?? null }, - payer: { index: 2, isWritable: true, value: input.payer ?? null }, - user: { index: 3, isWritable: false, value: input.user ?? null }, + owner: { + index: 1, + isWritable: true as boolean, + value: input.owner ?? null, + }, + payer: { + index: 2, + isWritable: true as boolean, + value: input.payer ?? null, + }, + user: { index: 3, isWritable: false as boolean, value: input.user ?? null }, ownerTokenAccount: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.ownerTokenAccount ?? null, }, - metadata: { index: 5, isWritable: false, value: input.metadata ?? null }, - mint: { index: 6, isWritable: false, value: input.mint ?? null }, - burner: { index: 7, isWritable: false, value: input.burner ?? null }, + metadata: { + index: 5, + isWritable: false as boolean, + value: input.metadata ?? null, + }, + mint: { index: 6, isWritable: false as boolean, value: input.mint ?? null }, + burner: { + index: 7, + isWritable: false as boolean, + value: input.burner ?? null, + }, tokenProgram: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 10, isWritable: false, value: input.rent ?? null }, + rent: { + index: 10, + isWritable: false as boolean, + value: input.rent ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Arguments. diff --git a/clients/js/src/generated/instructions/bubblegumSetCollectionSize.ts b/clients/js/src/generated/instructions/bubblegumSetCollectionSize.ts index 2c1d4494..36517ccd 100644 --- a/clients/js/src/generated/instructions/bubblegumSetCollectionSize.ts +++ b/clients/js/src/generated/instructions/bubblegumSetCollectionSize.ts @@ -98,27 +98,27 @@ export function bubblegumSetCollectionSize( const resolvedAccounts = { collectionMetadata: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, collectionAuthority: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.collectionAuthority ?? null, }, collectionMint: { index: 2, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, bubblegumSigner: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.bubblegumSigner ?? null, }, collectionAuthorityRecord: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/burnEditionNft.ts b/clients/js/src/generated/instructions/burnEditionNft.ts index 47b0662f..67bd3b67 100644 --- a/clients/js/src/generated/instructions/burnEditionNft.ts +++ b/clients/js/src/generated/instructions/burnEditionNft.ts @@ -87,46 +87,54 @@ export function burnEditionNft( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - owner: { index: 1, isWritable: true, value: input.owner ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + owner: { + index: 1, + isWritable: true as boolean, + value: input.owner ?? null, + }, printEditionMint: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.printEditionMint ?? null, }, masterEditionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEditionMint ?? null, }, printEditionTokenAccount: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.printEditionTokenAccount ?? null, }, masterEditionTokenAccount: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.masterEditionTokenAccount ?? null, }, masterEditionAccount: { index: 6, - isWritable: true, + isWritable: true as boolean, value: input.masterEditionAccount ?? null, }, printEditionAccount: { index: 7, - isWritable: true, + isWritable: true as boolean, value: input.printEditionAccount ?? null, }, editionMarkerAccount: { index: 8, - isWritable: true, + isWritable: true as boolean, value: input.editionMarkerAccount ?? null, }, splTokenProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/burnNft.ts b/clients/js/src/generated/instructions/burnNft.ts index 4e13eb4c..6c11040e 100644 --- a/clients/js/src/generated/instructions/burnNft.ts +++ b/clients/js/src/generated/instructions/burnNft.ts @@ -76,27 +76,35 @@ export function burnNft( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - owner: { index: 1, isWritable: true, value: input.owner ?? null }, - mint: { index: 2, isWritable: true, value: input.mint ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + owner: { + index: 1, + isWritable: true as boolean, + value: input.owner ?? null, + }, + mint: { index: 2, isWritable: true as boolean, value: input.mint ?? null }, tokenAccount: { index: 3, - isWritable: true, + isWritable: true as boolean, value: input.tokenAccount ?? null, }, masterEditionAccount: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.masterEditionAccount ?? null, }, splTokenProgram: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, collectionMetadata: { index: 6, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/burnV1.ts b/clients/js/src/generated/instructions/burnV1.ts index d79ce0f8..0dd1990e 100644 --- a/clients/js/src/generated/instructions/burnV1.ts +++ b/clients/js/src/generated/instructions/burnV1.ts @@ -127,54 +127,70 @@ export function burnV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: true, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: true as boolean, + value: input.authority ?? null, + }, collectionMetadata: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, - edition: { index: 3, isWritable: true, value: input.edition ?? null }, - mint: { index: 4, isWritable: true, value: input.mint ?? null }, - token: { index: 5, isWritable: true, value: input.token ?? null }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 3, + isWritable: true as boolean, + value: input.edition ?? null, + }, + mint: { index: 4, isWritable: true as boolean, value: input.mint ?? null }, + token: { + index: 5, + isWritable: true as boolean, + value: input.token ?? null, + }, masterEdition: { index: 6, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, masterEditionMint: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.masterEditionMint ?? null, }, masterEditionToken: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.masterEditionToken ?? null, }, editionMarker: { index: 9, - isWritable: true, + isWritable: true as boolean, value: input.editionMarker ?? null, }, tokenRecord: { index: 10, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, systemProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/closeEscrowAccount.ts b/clients/js/src/generated/instructions/closeEscrowAccount.ts index 79ded72c..ce2ac7db 100644 --- a/clients/js/src/generated/instructions/closeEscrowAccount.ts +++ b/clients/js/src/generated/instructions/closeEscrowAccount.ts @@ -86,24 +86,40 @@ export function closeEscrowAccount( // Accounts. const resolvedAccounts = { - escrow: { index: 0, isWritable: true, value: input.escrow ?? null }, - metadata: { index: 1, isWritable: true, value: input.metadata ?? null }, - mint: { index: 2, isWritable: false, value: input.mint ?? null }, + escrow: { + index: 0, + isWritable: true as boolean, + value: input.escrow ?? null, + }, + metadata: { + index: 1, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + mint: { index: 2, isWritable: false as boolean, value: input.mint ?? null }, tokenAccount: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.tokenAccount ?? null, }, - edition: { index: 4, isWritable: false, value: input.edition ?? null }, - payer: { index: 5, isWritable: true, value: input.payer ?? null }, + edition: { + index: 4, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 5, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/collect.ts b/clients/js/src/generated/instructions/collect.ts index f63805d9..e7ce776f 100644 --- a/clients/js/src/generated/instructions/collect.ts +++ b/clients/js/src/generated/instructions/collect.ts @@ -64,10 +64,14 @@ export function collect( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, pdaAccount: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.pdaAccount ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/convertMasterEditionV1ToV2.ts b/clients/js/src/generated/instructions/convertMasterEditionV1ToV2.ts index 464d8271..bc0f0bc5 100644 --- a/clients/js/src/generated/instructions/convertMasterEditionV1ToV2.ts +++ b/clients/js/src/generated/instructions/convertMasterEditionV1ToV2.ts @@ -77,17 +77,17 @@ export function convertMasterEditionV1ToV2( const resolvedAccounts = { masterEdition: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, oneTimeAuth: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.oneTimeAuth ?? null, }, printingMint: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.printingMint ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/createEscrowAccount.ts b/clients/js/src/generated/instructions/createEscrowAccount.ts index 518ca147..bbcb17b6 100644 --- a/clients/js/src/generated/instructions/createEscrowAccount.ts +++ b/clients/js/src/generated/instructions/createEscrowAccount.ts @@ -88,27 +88,47 @@ export function createEscrowAccount( // Accounts. const resolvedAccounts = { - escrow: { index: 0, isWritable: true, value: input.escrow ?? null }, - metadata: { index: 1, isWritable: true, value: input.metadata ?? null }, - mint: { index: 2, isWritable: false, value: input.mint ?? null }, + escrow: { + index: 0, + isWritable: true as boolean, + value: input.escrow ?? null, + }, + metadata: { + index: 1, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + mint: { index: 2, isWritable: false as boolean, value: input.mint ?? null }, tokenAccount: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.tokenAccount ?? null, }, - edition: { index: 4, isWritable: false, value: input.edition ?? null }, - payer: { index: 5, isWritable: true, value: input.payer ?? null }, + edition: { + index: 4, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 5, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, - authority: { index: 8, isWritable: false, value: input.authority ?? null }, + authority: { + index: 8, + isWritable: false as boolean, + value: input.authority ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Default values. diff --git a/clients/js/src/generated/instructions/createMasterEditionV3.ts b/clients/js/src/generated/instructions/createMasterEditionV3.ts index 37b2d0ee..5d75c77e 100644 --- a/clients/js/src/generated/instructions/createMasterEditionV3.ts +++ b/clients/js/src/generated/instructions/createMasterEditionV3.ts @@ -105,31 +105,43 @@ export function createMasterEditionV3( // Accounts. const resolvedAccounts = { - edition: { index: 0, isWritable: true, value: input.edition ?? null }, - mint: { index: 1, isWritable: true, value: input.mint ?? null }, + edition: { + index: 0, + isWritable: true as boolean, + value: input.edition ?? null, + }, + mint: { index: 1, isWritable: true as boolean, value: input.mint ?? null }, updateAuthority: { index: 2, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, mintAuthority: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.mintAuthority ?? null, }, - payer: { index: 4, isWritable: true, value: input.payer ?? null }, - metadata: { index: 5, isWritable: true, value: input.metadata ?? null }, + payer: { + index: 4, + isWritable: true as boolean, + value: input.payer ?? null, + }, + metadata: { + index: 5, + isWritable: true as boolean, + value: input.metadata ?? null, + }, tokenProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 8, isWritable: false, value: input.rent ?? null }, + rent: { index: 8, isWritable: false as boolean, value: input.rent ?? null }, } satisfies ResolvedAccountsWithIndices; // Arguments. diff --git a/clients/js/src/generated/instructions/createMetadataAccountV3.ts b/clients/js/src/generated/instructions/createMetadataAccountV3.ts index 554afaef..c3c8796e 100644 --- a/clients/js/src/generated/instructions/createMetadataAccountV3.ts +++ b/clients/js/src/generated/instructions/createMetadataAccountV3.ts @@ -115,25 +115,33 @@ export function createMetadataAccountV3( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - mint: { index: 1, isWritable: false, value: input.mint ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + mint: { index: 1, isWritable: false as boolean, value: input.mint ?? null }, mintAuthority: { index: 2, - isWritable: false, + isWritable: false as boolean, value: input.mintAuthority ?? null, }, - payer: { index: 3, isWritable: true, value: input.payer ?? null }, + payer: { + index: 3, + isWritable: true as boolean, + value: input.payer ?? null, + }, updateAuthority: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, systemProgram: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 6, isWritable: false, value: input.rent ?? null }, + rent: { index: 6, isWritable: false as boolean, value: input.rent ?? null }, } satisfies ResolvedAccountsWithIndices; // Arguments. diff --git a/clients/js/src/generated/instructions/createV1.ts b/clients/js/src/generated/instructions/createV1.ts index 3890ea85..b9e4dce7 100644 --- a/clients/js/src/generated/instructions/createV1.ts +++ b/clients/js/src/generated/instructions/createV1.ts @@ -203,33 +203,45 @@ export function createV1( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, - mint: { index: 2, isWritable: true, value: input.mint ?? null }, - authority: { index: 3, isWritable: false, value: input.authority ?? null }, - payer: { index: 4, isWritable: true, value: input.payer ?? null }, + mint: { index: 2, isWritable: true as boolean, value: input.mint ?? null }, + authority: { + index: 3, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 4, + isWritable: true as boolean, + value: input.payer ?? null, + }, updateAuthority: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, systemProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateAuthorityItemV1.ts b/clients/js/src/generated/instructions/delegateAuthorityItemV1.ts index 6f2bf200..39347736 100644 --- a/clients/js/src/generated/instructions/delegateAuthorityItemV1.ts +++ b/clients/js/src/generated/instructions/delegateAuthorityItemV1.ts @@ -148,48 +148,68 @@ export function delegateAuthorityItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateCollectionItemV1.ts b/clients/js/src/generated/instructions/delegateCollectionItemV1.ts index 78390c32..aa63877b 100644 --- a/clients/js/src/generated/instructions/delegateCollectionItemV1.ts +++ b/clients/js/src/generated/instructions/delegateCollectionItemV1.ts @@ -148,48 +148,68 @@ export function delegateCollectionItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateCollectionV1.ts b/clients/js/src/generated/instructions/delegateCollectionV1.ts index 6e596f93..f935074f 100644 --- a/clients/js/src/generated/instructions/delegateCollectionV1.ts +++ b/clients/js/src/generated/instructions/delegateCollectionV1.ts @@ -148,48 +148,68 @@ export function delegateCollectionV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateDataItemV1.ts b/clients/js/src/generated/instructions/delegateDataItemV1.ts index f56642ea..4e782de8 100644 --- a/clients/js/src/generated/instructions/delegateDataItemV1.ts +++ b/clients/js/src/generated/instructions/delegateDataItemV1.ts @@ -148,48 +148,68 @@ export function delegateDataItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateDataV1.ts b/clients/js/src/generated/instructions/delegateDataV1.ts index f77f5e06..87c3013c 100644 --- a/clients/js/src/generated/instructions/delegateDataV1.ts +++ b/clients/js/src/generated/instructions/delegateDataV1.ts @@ -146,48 +146,68 @@ export function delegateDataV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateLockedTransferV1.ts b/clients/js/src/generated/instructions/delegateLockedTransferV1.ts index e6270a16..32173eea 100644 --- a/clients/js/src/generated/instructions/delegateLockedTransferV1.ts +++ b/clients/js/src/generated/instructions/delegateLockedTransferV1.ts @@ -158,48 +158,68 @@ export function delegateLockedTransferV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateProgrammableConfigItemV1.ts b/clients/js/src/generated/instructions/delegateProgrammableConfigItemV1.ts index 7331853c..13bc6f1f 100644 --- a/clients/js/src/generated/instructions/delegateProgrammableConfigItemV1.ts +++ b/clients/js/src/generated/instructions/delegateProgrammableConfigItemV1.ts @@ -148,48 +148,68 @@ export function delegateProgrammableConfigItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateProgrammableConfigV1.ts b/clients/js/src/generated/instructions/delegateProgrammableConfigV1.ts index 152a697a..f155da59 100644 --- a/clients/js/src/generated/instructions/delegateProgrammableConfigV1.ts +++ b/clients/js/src/generated/instructions/delegateProgrammableConfigV1.ts @@ -148,48 +148,68 @@ export function delegateProgrammableConfigV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateSaleV1.ts b/clients/js/src/generated/instructions/delegateSaleV1.ts index 2c407543..8e136bb8 100644 --- a/clients/js/src/generated/instructions/delegateSaleV1.ts +++ b/clients/js/src/generated/instructions/delegateSaleV1.ts @@ -152,48 +152,68 @@ export function delegateSaleV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateStakingV1.ts b/clients/js/src/generated/instructions/delegateStakingV1.ts index 98401bd4..aa43334a 100644 --- a/clients/js/src/generated/instructions/delegateStakingV1.ts +++ b/clients/js/src/generated/instructions/delegateStakingV1.ts @@ -152,48 +152,68 @@ export function delegateStakingV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateStandardV1.ts b/clients/js/src/generated/instructions/delegateStandardV1.ts index 3839a504..6f7e0393 100644 --- a/clients/js/src/generated/instructions/delegateStandardV1.ts +++ b/clients/js/src/generated/instructions/delegateStandardV1.ts @@ -140,48 +140,68 @@ export function delegateStandardV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateTransferV1.ts b/clients/js/src/generated/instructions/delegateTransferV1.ts index 28a3980c..5a1146bb 100644 --- a/clients/js/src/generated/instructions/delegateTransferV1.ts +++ b/clients/js/src/generated/instructions/delegateTransferV1.ts @@ -154,48 +154,68 @@ export function delegateTransferV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/delegateUtilityV1.ts b/clients/js/src/generated/instructions/delegateUtilityV1.ts index a18b656a..dc47f229 100644 --- a/clients/js/src/generated/instructions/delegateUtilityV1.ts +++ b/clients/js/src/generated/instructions/delegateUtilityV1.ts @@ -152,48 +152,68 @@ export function delegateUtilityV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts b/clients/js/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts index ab68070f..50e3134c 100644 --- a/clients/js/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts +++ b/clients/js/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts @@ -109,64 +109,80 @@ export function deprecatedMintNewEditionFromMasterEditionViaPrintingToken( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - edition: { index: 1, isWritable: true, value: input.edition ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 1, + isWritable: true as boolean, + value: input.edition ?? null, + }, masterEdition: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, - mint: { index: 3, isWritable: true, value: input.mint ?? null }, + mint: { index: 3, isWritable: true as boolean, value: input.mint ?? null }, mintAuthority: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.mintAuthority ?? null, }, printingMint: { index: 5, - isWritable: true, + isWritable: true as boolean, value: input.printingMint ?? null, }, masterTokenAccount: { index: 6, - isWritable: true, + isWritable: true as boolean, value: input.masterTokenAccount ?? null, }, editionMarker: { index: 7, - isWritable: true, + isWritable: true as boolean, value: input.editionMarker ?? null, }, burnAuthority: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.burnAuthority ?? null, }, - payer: { index: 9, isWritable: false, value: input.payer ?? null }, + payer: { + index: 9, + isWritable: false as boolean, + value: input.payer ?? null, + }, masterUpdateAuthority: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.masterUpdateAuthority ?? null, }, masterMetadata: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.masterMetadata ?? null, }, tokenProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, systemProgram: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 14, isWritable: false, value: input.rent ?? null }, + rent: { + index: 14, + isWritable: false as boolean, + value: input.rent ?? null, + }, reservationList: { index: 15, - isWritable: true, + isWritable: true as boolean, value: input.reservationList ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/freezeDelegatedAccount.ts b/clients/js/src/generated/instructions/freezeDelegatedAccount.ts index 358e9e0b..f6e3bf9f 100644 --- a/clients/js/src/generated/instructions/freezeDelegatedAccount.ts +++ b/clients/js/src/generated/instructions/freezeDelegatedAccount.ts @@ -79,17 +79,25 @@ export function freezeDelegatedAccount( // Accounts. const resolvedAccounts = { - delegate: { index: 0, isWritable: true, value: input.delegate ?? null }, + delegate: { + index: 0, + isWritable: true as boolean, + value: input.delegate ?? null, + }, tokenAccount: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.tokenAccount ?? null, }, - edition: { index: 2, isWritable: false, value: input.edition ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, + edition: { + index: 2, + isWritable: false as boolean, + value: input.edition ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, tokenProgram: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/lockV1.ts b/clients/js/src/generated/instructions/lockV1.ts index 5fba1073..9bebe650 100644 --- a/clients/js/src/generated/instructions/lockV1.ts +++ b/clients/js/src/generated/instructions/lockV1.ts @@ -129,45 +129,65 @@ export function lockV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, tokenOwner: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.tokenOwner ?? null, }, - token: { index: 2, isWritable: true, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, + token: { + index: 2, + isWritable: true as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, tokenRecord: { index: 6, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - payer: { index: 7, isWritable: true, value: input.payer ?? null }, + payer: { + index: 7, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/migrate.ts b/clients/js/src/generated/instructions/migrate.ts index db279b13..89bcbf60 100644 --- a/clients/js/src/generated/instructions/migrate.ts +++ b/clients/js/src/generated/instructions/migrate.ts @@ -97,55 +97,75 @@ export function migrate( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - edition: { index: 1, isWritable: true, value: input.edition ?? null }, - token: { index: 2, isWritable: true, value: input.token ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 1, + isWritable: true as boolean, + value: input.edition ?? null, + }, + token: { + index: 2, + isWritable: true as boolean, + value: input.token ?? null, + }, tokenOwner: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.tokenOwner ?? null, }, - mint: { index: 4, isWritable: false, value: input.mint ?? null }, - payer: { index: 5, isWritable: true, value: input.payer ?? null }, - authority: { index: 6, isWritable: false, value: input.authority ?? null }, + mint: { index: 4, isWritable: false as boolean, value: input.mint ?? null }, + payer: { + index: 5, + isWritable: true as boolean, + value: input.payer ?? null, + }, + authority: { + index: 6, + isWritable: false as boolean, + value: input.authority ?? null, + }, collectionMetadata: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.collectionMetadata ?? null, }, delegateRecord: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, tokenRecord: { index: 9, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, systemProgram: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 14, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts b/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts index ac184adb..8988a249 100644 --- a/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts +++ b/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts @@ -119,54 +119,74 @@ export function mintNewEditionFromMasterEditionViaToken( const resolvedAccounts = { newMetadata: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.newMetadata ?? null, }, - newEdition: { index: 1, isWritable: true, value: input.newEdition ?? null }, + newEdition: { + index: 1, + isWritable: true as boolean, + value: input.newEdition ?? null, + }, masterEdition: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, - newMint: { index: 3, isWritable: true, value: input.newMint ?? null }, + newMint: { + index: 3, + isWritable: true as boolean, + value: input.newMint ?? null, + }, editionMarkPda: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.editionMarkPda ?? null, }, newMintAuthority: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.newMintAuthority ?? null, }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, tokenAccountOwner: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.tokenAccountOwner ?? null, }, tokenAccount: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.tokenAccount ?? null, }, newMetadataUpdateAuthority: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.newMetadataUpdateAuthority ?? null, }, - metadata: { index: 10, isWritable: false, value: input.metadata ?? null }, + metadata: { + index: 10, + isWritable: false as boolean, + value: input.metadata ?? null, + }, tokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, systemProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 13, isWritable: false, value: input.rent ?? null }, + rent: { + index: 13, + isWritable: false as boolean, + value: input.rent ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Arguments. diff --git a/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts b/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts index 2f2f4ce3..3fb9bfb6 100644 --- a/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts +++ b/clients/js/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts @@ -128,65 +128,89 @@ export function mintNewEditionFromMasterEditionViaVaultProxy( const resolvedAccounts = { newMetadata: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.newMetadata ?? null, }, - newEdition: { index: 1, isWritable: true, value: input.newEdition ?? null }, + newEdition: { + index: 1, + isWritable: true as boolean, + value: input.newEdition ?? null, + }, masterEdition: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, - newMint: { index: 3, isWritable: true, value: input.newMint ?? null }, + newMint: { + index: 3, + isWritable: true as boolean, + value: input.newMint ?? null, + }, editionMarkPda: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.editionMarkPda ?? null, }, newMintAuthority: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.newMintAuthority ?? null, }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, vaultAuthority: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.vaultAuthority ?? null, }, safetyDepositStore: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.safetyDepositStore ?? null, }, safetyDepositBox: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.safetyDepositBox ?? null, }, - vault: { index: 10, isWritable: false, value: input.vault ?? null }, + vault: { + index: 10, + isWritable: false as boolean, + value: input.vault ?? null, + }, newMetadataUpdateAuthority: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.newMetadataUpdateAuthority ?? null, }, - metadata: { index: 12, isWritable: false, value: input.metadata ?? null }, + metadata: { + index: 12, + isWritable: false as boolean, + value: input.metadata ?? null, + }, tokenProgram: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, tokenVaultProgram: { index: 14, - isWritable: false, + isWritable: false as boolean, value: input.tokenVaultProgram ?? null, }, systemProgram: { index: 15, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 16, isWritable: false, value: input.rent ?? null }, + rent: { + index: 16, + isWritable: false as boolean, + value: input.rent ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Arguments. diff --git a/clients/js/src/generated/instructions/mintV1.ts b/clients/js/src/generated/instructions/mintV1.ts index 11565f4a..2c2f494c 100644 --- a/clients/js/src/generated/instructions/mintV1.ts +++ b/clients/js/src/generated/instructions/mintV1.ts @@ -138,59 +138,75 @@ export function mintV1( // Accounts. const resolvedAccounts = { - token: { index: 0, isWritable: true, value: input.token ?? null }, + token: { + index: 0, + isWritable: true as boolean, + value: input.token ?? null, + }, tokenOwner: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.tokenOwner ?? null, }, - metadata: { index: 2, isWritable: false, value: input.metadata ?? null }, + metadata: { + index: 2, + isWritable: false as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: true, value: input.mint ?? null }, - authority: { index: 6, isWritable: false, value: input.authority ?? null }, + mint: { index: 5, isWritable: true as boolean, value: input.mint ?? null }, + authority: { + index: 6, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, splAtaProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.splAtaProgram ?? null, }, authorizationRulesProgram: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 14, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/printV1.ts b/clients/js/src/generated/instructions/printV1.ts index 997d7a29..b35ca9ae 100644 --- a/clients/js/src/generated/instructions/printV1.ts +++ b/clients/js/src/generated/instructions/printV1.ts @@ -130,84 +130,92 @@ export function printV1( const resolvedAccounts = { editionMetadata: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.editionMetadata ?? null, }, - edition: { index: 1, isWritable: true, value: input.edition ?? null }, + edition: { + index: 1, + isWritable: true as boolean, + value: input.edition ?? null, + }, editionMint: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.editionMint ?? null, }, editionTokenAccountOwner: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.editionTokenAccountOwner ?? null, }, editionTokenAccount: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.editionTokenAccount ?? null, }, editionMintAuthority: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.editionMintAuthority ?? null, }, editionTokenRecord: { index: 6, - isWritable: true, + isWritable: true as boolean, value: input.editionTokenRecord ?? null, }, masterEdition: { index: 7, - isWritable: true, + isWritable: true as boolean, value: input.masterEdition ?? null, }, editionMarkerPda: { index: 8, - isWritable: true, + isWritable: true as boolean, value: input.editionMarkerPda ?? null, }, - payer: { index: 9, isWritable: true, value: input.payer ?? null }, + payer: { + index: 9, + isWritable: true as boolean, + value: input.payer ?? null, + }, masterTokenAccountOwner: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.masterTokenAccountOwner ?? null, }, masterTokenAccount: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.masterTokenAccount ?? null, }, masterMetadata: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.masterMetadata ?? null, }, updateAuthority: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, splTokenProgram: { index: 14, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, splAtaProgram: { index: 15, - isWritable: false, + isWritable: false as boolean, value: input.splAtaProgram ?? null, }, sysvarInstructions: { index: 16, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, systemProgram: { index: 17, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/puffMetadata.ts b/clients/js/src/generated/instructions/puffMetadata.ts index aaa6695b..5c4a3282 100644 --- a/clients/js/src/generated/instructions/puffMetadata.ts +++ b/clients/js/src/generated/instructions/puffMetadata.ts @@ -65,7 +65,11 @@ export function puffMetadata( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Accounts in order. diff --git a/clients/js/src/generated/instructions/removeCreatorVerification.ts b/clients/js/src/generated/instructions/removeCreatorVerification.ts index 8330cf27..4fa93a2e 100644 --- a/clients/js/src/generated/instructions/removeCreatorVerification.ts +++ b/clients/js/src/generated/instructions/removeCreatorVerification.ts @@ -74,8 +74,16 @@ export function removeCreatorVerification( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - creator: { index: 1, isWritable: false, value: input.creator ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + creator: { + index: 1, + isWritable: false as boolean, + value: input.creator ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Accounts in order. diff --git a/clients/js/src/generated/instructions/revokeAuthorityItemV1.ts b/clients/js/src/generated/instructions/revokeAuthorityItemV1.ts index e83449a8..df272979 100644 --- a/clients/js/src/generated/instructions/revokeAuthorityItemV1.ts +++ b/clients/js/src/generated/instructions/revokeAuthorityItemV1.ts @@ -132,48 +132,68 @@ export function revokeAuthorityItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeCollectionAuthority.ts b/clients/js/src/generated/instructions/revokeCollectionAuthority.ts index 0b6a5d8a..dd84df02 100644 --- a/clients/js/src/generated/instructions/revokeCollectionAuthority.ts +++ b/clients/js/src/generated/instructions/revokeCollectionAuthority.ts @@ -84,21 +84,25 @@ export function revokeCollectionAuthority( const resolvedAccounts = { collectionAuthorityRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.collectionAuthorityRecord ?? null, }, delegateAuthority: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.delegateAuthority ?? null, }, revokeAuthority: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.revokeAuthority ?? null, }, - metadata: { index: 3, isWritable: false, value: input.metadata ?? null }, - mint: { index: 4, isWritable: false, value: input.mint ?? null }, + metadata: { + index: 3, + isWritable: false as boolean, + value: input.metadata ?? null, + }, + mint: { index: 4, isWritable: false as boolean, value: input.mint ?? null }, } satisfies ResolvedAccountsWithIndices; // Default values. diff --git a/clients/js/src/generated/instructions/revokeCollectionItemV1.ts b/clients/js/src/generated/instructions/revokeCollectionItemV1.ts index 79cce662..1b7c9ccf 100644 --- a/clients/js/src/generated/instructions/revokeCollectionItemV1.ts +++ b/clients/js/src/generated/instructions/revokeCollectionItemV1.ts @@ -132,48 +132,68 @@ export function revokeCollectionItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeCollectionV1.ts b/clients/js/src/generated/instructions/revokeCollectionV1.ts index 3908cc8f..7906fedc 100644 --- a/clients/js/src/generated/instructions/revokeCollectionV1.ts +++ b/clients/js/src/generated/instructions/revokeCollectionV1.ts @@ -132,48 +132,68 @@ export function revokeCollectionV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeDataItemV1.ts b/clients/js/src/generated/instructions/revokeDataItemV1.ts index 1efba4f9..77353bb3 100644 --- a/clients/js/src/generated/instructions/revokeDataItemV1.ts +++ b/clients/js/src/generated/instructions/revokeDataItemV1.ts @@ -131,48 +131,68 @@ export function revokeDataItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeDataV1.ts b/clients/js/src/generated/instructions/revokeDataV1.ts index 71f629be..7db13674 100644 --- a/clients/js/src/generated/instructions/revokeDataV1.ts +++ b/clients/js/src/generated/instructions/revokeDataV1.ts @@ -124,48 +124,68 @@ export function revokeDataV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeLockedTransferV1.ts b/clients/js/src/generated/instructions/revokeLockedTransferV1.ts index b1f924df..30aa0980 100644 --- a/clients/js/src/generated/instructions/revokeLockedTransferV1.ts +++ b/clients/js/src/generated/instructions/revokeLockedTransferV1.ts @@ -133,48 +133,68 @@ export function revokeLockedTransferV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeMigrationV1.ts b/clients/js/src/generated/instructions/revokeMigrationV1.ts index 6c1905a3..da6b3680 100644 --- a/clients/js/src/generated/instructions/revokeMigrationV1.ts +++ b/clients/js/src/generated/instructions/revokeMigrationV1.ts @@ -132,48 +132,68 @@ export function revokeMigrationV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeProgrammableConfigItemV1.ts b/clients/js/src/generated/instructions/revokeProgrammableConfigItemV1.ts index d1fce36b..8fc3c513 100644 --- a/clients/js/src/generated/instructions/revokeProgrammableConfigItemV1.ts +++ b/clients/js/src/generated/instructions/revokeProgrammableConfigItemV1.ts @@ -132,48 +132,68 @@ export function revokeProgrammableConfigItemV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeProgrammableConfigV1.ts b/clients/js/src/generated/instructions/revokeProgrammableConfigV1.ts index ad439563..f20e7e1d 100644 --- a/clients/js/src/generated/instructions/revokeProgrammableConfigV1.ts +++ b/clients/js/src/generated/instructions/revokeProgrammableConfigV1.ts @@ -132,48 +132,68 @@ export function revokeProgrammableConfigV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeSaleV1.ts b/clients/js/src/generated/instructions/revokeSaleV1.ts index 9b6a89a8..506f0d96 100644 --- a/clients/js/src/generated/instructions/revokeSaleV1.ts +++ b/clients/js/src/generated/instructions/revokeSaleV1.ts @@ -125,48 +125,68 @@ export function revokeSaleV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeStakingV1.ts b/clients/js/src/generated/instructions/revokeStakingV1.ts index 47fea4af..4d8fa5bb 100644 --- a/clients/js/src/generated/instructions/revokeStakingV1.ts +++ b/clients/js/src/generated/instructions/revokeStakingV1.ts @@ -132,48 +132,68 @@ export function revokeStakingV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeStandardV1.ts b/clients/js/src/generated/instructions/revokeStandardV1.ts index 30bc6e68..1a34e332 100644 --- a/clients/js/src/generated/instructions/revokeStandardV1.ts +++ b/clients/js/src/generated/instructions/revokeStandardV1.ts @@ -132,48 +132,68 @@ export function revokeStandardV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeTransferV1.ts b/clients/js/src/generated/instructions/revokeTransferV1.ts index 39bbab2d..c2fd3697 100644 --- a/clients/js/src/generated/instructions/revokeTransferV1.ts +++ b/clients/js/src/generated/instructions/revokeTransferV1.ts @@ -132,48 +132,68 @@ export function revokeTransferV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/revokeUseAuthority.ts b/clients/js/src/generated/instructions/revokeUseAuthority.ts index b5ef156f..c0142960 100644 --- a/clients/js/src/generated/instructions/revokeUseAuthority.ts +++ b/clients/js/src/generated/instructions/revokeUseAuthority.ts @@ -89,29 +89,37 @@ export function revokeUseAuthority( const resolvedAccounts = { useAuthorityRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.useAuthorityRecord ?? null, }, - owner: { index: 1, isWritable: true, value: input.owner ?? null }, - user: { index: 2, isWritable: false, value: input.user ?? null }, + owner: { + index: 1, + isWritable: true as boolean, + value: input.owner ?? null, + }, + user: { index: 2, isWritable: false as boolean, value: input.user ?? null }, ownerTokenAccount: { index: 3, - isWritable: true, + isWritable: true as boolean, value: input.ownerTokenAccount ?? null, }, - mint: { index: 4, isWritable: false, value: input.mint ?? null }, - metadata: { index: 5, isWritable: false, value: input.metadata ?? null }, + mint: { index: 4, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 5, + isWritable: false as boolean, + value: input.metadata ?? null, + }, tokenProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 8, isWritable: false, value: input.rent ?? null }, + rent: { index: 8, isWritable: false as boolean, value: input.rent ?? null }, } satisfies ResolvedAccountsWithIndices; // Default values. diff --git a/clients/js/src/generated/instructions/revokeUtilityV1.ts b/clients/js/src/generated/instructions/revokeUtilityV1.ts index de5181ce..ef9899ab 100644 --- a/clients/js/src/generated/instructions/revokeUtilityV1.ts +++ b/clients/js/src/generated/instructions/revokeUtilityV1.ts @@ -132,48 +132,68 @@ export function revokeUtilityV1( const resolvedAccounts = { delegateRecord: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - delegate: { index: 1, isWritable: false, value: input.delegate ?? null }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + delegate: { + index: 1, + isWritable: false as boolean, + value: input.delegate ?? null, + }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, masterEdition: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.masterEdition ?? null, }, tokenRecord: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - mint: { index: 5, isWritable: false, value: input.mint ?? null }, - token: { index: 6, isWritable: true, value: input.token ?? null }, - authority: { index: 7, isWritable: false, value: input.authority ?? null }, - payer: { index: 8, isWritable: true, value: input.payer ?? null }, + mint: { index: 5, isWritable: false as boolean, value: input.mint ?? null }, + token: { + index: 6, + isWritable: true as boolean, + value: input.token ?? null, + }, + authority: { + index: 7, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 8, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/setAndVerifyCollection.ts b/clients/js/src/generated/instructions/setAndVerifyCollection.ts index 165816e1..aa4bf3a0 100644 --- a/clients/js/src/generated/instructions/setAndVerifyCollection.ts +++ b/clients/js/src/generated/instructions/setAndVerifyCollection.ts @@ -83,36 +83,44 @@ export function setAndVerifyCollection( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionAuthority: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.collectionAuthority ?? null, }, - payer: { index: 2, isWritable: true, value: input.payer ?? null }, + payer: { + index: 2, + isWritable: true as boolean, + value: input.payer ?? null, + }, updateAuthority: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, collectionMint: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collection: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.collection ?? null, }, collectionMasterEditionAccount: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEditionAccount ?? null, }, collectionAuthorityRecord: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/setAndVerifySizedCollectionItem.ts b/clients/js/src/generated/instructions/setAndVerifySizedCollectionItem.ts index e29d0430..746c7d53 100644 --- a/clients/js/src/generated/instructions/setAndVerifySizedCollectionItem.ts +++ b/clients/js/src/generated/instructions/setAndVerifySizedCollectionItem.ts @@ -86,32 +86,44 @@ export function setAndVerifySizedCollectionItem( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionAuthority: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthority ?? null, }, - payer: { index: 2, isWritable: true, value: input.payer ?? null }, + payer: { + index: 2, + isWritable: true as boolean, + value: input.payer ?? null, + }, updateAuthority: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, collectionMint: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, - collection: { index: 5, isWritable: true, value: input.collection ?? null }, + collection: { + index: 5, + isWritable: true as boolean, + value: input.collection ?? null, + }, collectionMasterEditionAccount: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEditionAccount ?? null, }, collectionAuthorityRecord: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/setCollectionSize.ts b/clients/js/src/generated/instructions/setCollectionSize.ts index 6c9b1571..b3fac982 100644 --- a/clients/js/src/generated/instructions/setCollectionSize.ts +++ b/clients/js/src/generated/instructions/setCollectionSize.ts @@ -95,22 +95,22 @@ export function setCollectionSize( const resolvedAccounts = { collectionMetadata: { index: 0, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, collectionAuthority: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.collectionAuthority ?? null, }, collectionMint: { index: 2, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collectionAuthorityRecord: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/setTokenStandard.ts b/clients/js/src/generated/instructions/setTokenStandard.ts index 59367de9..adf30b70 100644 --- a/clients/js/src/generated/instructions/setTokenStandard.ts +++ b/clients/js/src/generated/instructions/setTokenStandard.ts @@ -77,14 +77,22 @@ export function setTokenStandard( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, updateAuthority: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, - mint: { index: 2, isWritable: false, value: input.mint ?? null }, - edition: { index: 3, isWritable: false, value: input.edition ?? null }, + mint: { index: 2, isWritable: false as boolean, value: input.mint ?? null }, + edition: { + index: 3, + isWritable: false as boolean, + value: input.edition ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Default values. diff --git a/clients/js/src/generated/instructions/signMetadata.ts b/clients/js/src/generated/instructions/signMetadata.ts index 6cafd996..456b6482 100644 --- a/clients/js/src/generated/instructions/signMetadata.ts +++ b/clients/js/src/generated/instructions/signMetadata.ts @@ -68,8 +68,16 @@ export function signMetadata( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - creator: { index: 1, isWritable: false, value: input.creator ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + creator: { + index: 1, + isWritable: false as boolean, + value: input.creator ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Accounts in order. diff --git a/clients/js/src/generated/instructions/thawDelegatedAccount.ts b/clients/js/src/generated/instructions/thawDelegatedAccount.ts index 19ea4987..78720d99 100644 --- a/clients/js/src/generated/instructions/thawDelegatedAccount.ts +++ b/clients/js/src/generated/instructions/thawDelegatedAccount.ts @@ -79,17 +79,25 @@ export function thawDelegatedAccount( // Accounts. const resolvedAccounts = { - delegate: { index: 0, isWritable: true, value: input.delegate ?? null }, + delegate: { + index: 0, + isWritable: true as boolean, + value: input.delegate ?? null, + }, tokenAccount: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.tokenAccount ?? null, }, - edition: { index: 2, isWritable: false, value: input.edition ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, + edition: { + index: 2, + isWritable: false as boolean, + value: input.edition ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, tokenProgram: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/transferOutOfEscrow.ts b/clients/js/src/generated/instructions/transferOutOfEscrow.ts index a9a8014d..e48b2337 100644 --- a/clients/js/src/generated/instructions/transferOutOfEscrow.ts +++ b/clients/js/src/generated/instructions/transferOutOfEscrow.ts @@ -109,55 +109,71 @@ export function transferOutOfEscrow( // Accounts. const resolvedAccounts = { - escrow: { index: 0, isWritable: false, value: input.escrow ?? null }, - metadata: { index: 1, isWritable: true, value: input.metadata ?? null }, - payer: { index: 2, isWritable: true, value: input.payer ?? null }, + escrow: { + index: 0, + isWritable: false as boolean, + value: input.escrow ?? null, + }, + metadata: { + index: 1, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + payer: { + index: 2, + isWritable: true as boolean, + value: input.payer ?? null, + }, attributeMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.attributeMint ?? null, }, attributeSrc: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.attributeSrc ?? null, }, attributeDst: { index: 5, - isWritable: true, + isWritable: true as boolean, value: input.attributeDst ?? null, }, escrowMint: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.escrowMint ?? null, }, escrowAccount: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.escrowAccount ?? null, }, systemProgram: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, ataProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.ataProgram ?? null, }, tokenProgram: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, sysvarInstructions: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, - authority: { index: 12, isWritable: false, value: input.authority ?? null }, + authority: { + index: 12, + isWritable: false as boolean, + value: input.authority ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Arguments. diff --git a/clients/js/src/generated/instructions/transferV1.ts b/clients/js/src/generated/instructions/transferV1.ts index 9efdfda9..9ac0a40f 100644 --- a/clients/js/src/generated/instructions/transferV1.ts +++ b/clients/js/src/generated/instructions/transferV1.ts @@ -147,65 +147,85 @@ export function transferV1( // Accounts. const resolvedAccounts = { - token: { index: 0, isWritable: true, value: input.token ?? null }, + token: { + index: 0, + isWritable: true as boolean, + value: input.token ?? null, + }, tokenOwner: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.tokenOwner ?? null, }, destinationToken: { index: 2, - isWritable: true, + isWritable: true as boolean, value: input.destinationToken ?? null, }, destinationOwner: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.destinationOwner ?? null, }, - mint: { index: 4, isWritable: false, value: input.mint ?? null }, - metadata: { index: 5, isWritable: true, value: input.metadata ?? null }, - edition: { index: 6, isWritable: false, value: input.edition ?? null }, + mint: { index: 4, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 5, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 6, + isWritable: false as boolean, + value: input.edition ?? null, + }, tokenRecord: { index: 7, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, destinationTokenRecord: { index: 8, - isWritable: true, + isWritable: true as boolean, value: input.destinationTokenRecord ?? null, }, - authority: { index: 9, isWritable: false, value: input.authority ?? null }, - payer: { index: 10, isWritable: true, value: input.payer ?? null }, + authority: { + index: 9, + isWritable: false as boolean, + value: input.authority ?? null, + }, + payer: { + index: 10, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 13, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, splAtaProgram: { index: 14, - isWritable: false, + isWritable: false as boolean, value: input.splAtaProgram ?? null, }, authorizationRulesProgram: { index: 15, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 16, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/unlockV1.ts b/clients/js/src/generated/instructions/unlockV1.ts index 8dd4f134..240259c9 100644 --- a/clients/js/src/generated/instructions/unlockV1.ts +++ b/clients/js/src/generated/instructions/unlockV1.ts @@ -133,45 +133,65 @@ export function unlockV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, tokenOwner: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.tokenOwner ?? null, }, - token: { index: 2, isWritable: true, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, + token: { + index: 2, + isWritable: true as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, tokenRecord: { index: 6, - isWritable: true, + isWritable: true as boolean, value: input.tokenRecord ?? null, }, - payer: { index: 7, isWritable: true, value: input.payer ?? null }, + payer: { + index: 7, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 12, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/unverifyCollection.ts b/clients/js/src/generated/instructions/unverifyCollection.ts index 838a5131..1b0e55c9 100644 --- a/clients/js/src/generated/instructions/unverifyCollection.ts +++ b/clients/js/src/generated/instructions/unverifyCollection.ts @@ -79,30 +79,34 @@ export function unverifyCollection( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionAuthority: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.collectionAuthority ?? null, }, collectionMint: { index: 2, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collection: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collection ?? null, }, collectionMasterEditionAccount: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEditionAccount ?? null, }, collectionAuthorityRecord: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/unverifyCollectionV1.ts b/clients/js/src/generated/instructions/unverifyCollectionV1.ts index f84cac49..c8fe26f5 100644 --- a/clients/js/src/generated/instructions/unverifyCollectionV1.ts +++ b/clients/js/src/generated/instructions/unverifyCollectionV1.ts @@ -95,31 +95,39 @@ export function unverifyCollectionV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collectionMetadata: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, systemProgram: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/unverifyCreatorV1.ts b/clients/js/src/generated/instructions/unverifyCreatorV1.ts index 9c21f732..9518e0a0 100644 --- a/clients/js/src/generated/instructions/unverifyCreatorV1.ts +++ b/clients/js/src/generated/instructions/unverifyCreatorV1.ts @@ -93,31 +93,39 @@ export function unverifyCreatorV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collectionMetadata: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, systemProgram: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/unverifySizedCollectionItem.ts b/clients/js/src/generated/instructions/unverifySizedCollectionItem.ts index ab42ca6a..fe78cfb5 100644 --- a/clients/js/src/generated/instructions/unverifySizedCollectionItem.ts +++ b/clients/js/src/generated/instructions/unverifySizedCollectionItem.ts @@ -84,27 +84,39 @@ export function unverifySizedCollectionItem( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionAuthority: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthority ?? null, }, - payer: { index: 2, isWritable: true, value: input.payer ?? null }, + payer: { + index: 2, + isWritable: true as boolean, + value: input.payer ?? null, + }, collectionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, - collection: { index: 4, isWritable: true, value: input.collection ?? null }, + collection: { + index: 4, + isWritable: true as boolean, + value: input.collection ?? null, + }, collectionMasterEditionAccount: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEditionAccount ?? null, }, collectionAuthorityRecord: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsAuthorityItemDelegateV2.ts b/clients/js/src/generated/instructions/updateAsAuthorityItemDelegateV2.ts index aa64ebe1..a49a556f 100644 --- a/clients/js/src/generated/instructions/updateAsAuthorityItemDelegateV2.ts +++ b/clients/js/src/generated/instructions/updateAsAuthorityItemDelegateV2.ts @@ -154,35 +154,55 @@ export function updateAsAuthorityItemDelegateV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsCollectionDelegateV2.ts b/clients/js/src/generated/instructions/updateAsCollectionDelegateV2.ts index b6b5f764..d50fd303 100644 --- a/clients/js/src/generated/instructions/updateAsCollectionDelegateV2.ts +++ b/clients/js/src/generated/instructions/updateAsCollectionDelegateV2.ts @@ -142,35 +142,55 @@ export function updateAsCollectionDelegateV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsCollectionItemDelegateV2.ts b/clients/js/src/generated/instructions/updateAsCollectionItemDelegateV2.ts index bebe1849..1e08c35c 100644 --- a/clients/js/src/generated/instructions/updateAsCollectionItemDelegateV2.ts +++ b/clients/js/src/generated/instructions/updateAsCollectionItemDelegateV2.ts @@ -141,35 +141,55 @@ export function updateAsCollectionItemDelegateV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsDataDelegateV2.ts b/clients/js/src/generated/instructions/updateAsDataDelegateV2.ts index c5784851..ef961b2e 100644 --- a/clients/js/src/generated/instructions/updateAsDataDelegateV2.ts +++ b/clients/js/src/generated/instructions/updateAsDataDelegateV2.ts @@ -141,35 +141,55 @@ export function updateAsDataDelegateV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsDataItemDelegateV2.ts b/clients/js/src/generated/instructions/updateAsDataItemDelegateV2.ts index 3e4bf85d..4514deeb 100644 --- a/clients/js/src/generated/instructions/updateAsDataItemDelegateV2.ts +++ b/clients/js/src/generated/instructions/updateAsDataItemDelegateV2.ts @@ -140,35 +140,55 @@ export function updateAsDataItemDelegateV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsProgrammableConfigDelegateV2.ts b/clients/js/src/generated/instructions/updateAsProgrammableConfigDelegateV2.ts index 152595df..e8c37e79 100644 --- a/clients/js/src/generated/instructions/updateAsProgrammableConfigDelegateV2.ts +++ b/clients/js/src/generated/instructions/updateAsProgrammableConfigDelegateV2.ts @@ -142,35 +142,55 @@ export function updateAsProgrammableConfigDelegateV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsProgrammableConfigItemDelegateV2.ts b/clients/js/src/generated/instructions/updateAsProgrammableConfigItemDelegateV2.ts index 8bbdd724..9640572a 100644 --- a/clients/js/src/generated/instructions/updateAsProgrammableConfigItemDelegateV2.ts +++ b/clients/js/src/generated/instructions/updateAsProgrammableConfigItemDelegateV2.ts @@ -142,35 +142,55 @@ export function updateAsProgrammableConfigItemDelegateV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateAsUpdateAuthorityV2.ts b/clients/js/src/generated/instructions/updateAsUpdateAuthorityV2.ts index 6b2475f0..5f416501 100644 --- a/clients/js/src/generated/instructions/updateAsUpdateAuthorityV2.ts +++ b/clients/js/src/generated/instructions/updateAsUpdateAuthorityV2.ts @@ -183,35 +183,55 @@ export function updateAsUpdateAuthorityV2( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updateMetadataAccountV2.ts b/clients/js/src/generated/instructions/updateMetadataAccountV2.ts index 10a93486..8eb1104b 100644 --- a/clients/js/src/generated/instructions/updateMetadataAccountV2.ts +++ b/clients/js/src/generated/instructions/updateMetadataAccountV2.ts @@ -108,10 +108,14 @@ export function updateMetadataAccountV2( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, updateAuthority: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.updateAuthority ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts b/clients/js/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts index 53e5b221..8d87f8b9 100644 --- a/clients/js/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts +++ b/clients/js/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts @@ -76,9 +76,21 @@ export function updatePrimarySaleHappenedViaToken( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, - owner: { index: 1, isWritable: false, value: input.owner ?? null }, - token: { index: 2, isWritable: false, value: input.token ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + owner: { + index: 1, + isWritable: false as boolean, + value: input.owner ?? null, + }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Accounts in order. diff --git a/clients/js/src/generated/instructions/updateV1.ts b/clients/js/src/generated/instructions/updateV1.ts index 8dc05fc7..5c2d3073 100644 --- a/clients/js/src/generated/instructions/updateV1.ts +++ b/clients/js/src/generated/instructions/updateV1.ts @@ -171,35 +171,55 @@ export function updateV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: false, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: false, value: input.edition ?? null }, - payer: { index: 6, isWritable: true, value: input.payer ?? null }, + token: { + index: 2, + isWritable: false as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: false as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: true as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, authorizationRulesProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/useV1.ts b/clients/js/src/generated/instructions/useV1.ts index 411c48d8..49b214e4 100644 --- a/clients/js/src/generated/instructions/useV1.ts +++ b/clients/js/src/generated/instructions/useV1.ts @@ -115,40 +115,60 @@ export function useV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.delegateRecord ?? null, }, - token: { index: 2, isWritable: true, value: input.token ?? null }, - mint: { index: 3, isWritable: false, value: input.mint ?? null }, - metadata: { index: 4, isWritable: true, value: input.metadata ?? null }, - edition: { index: 5, isWritable: true, value: input.edition ?? null }, - payer: { index: 6, isWritable: false, value: input.payer ?? null }, + token: { + index: 2, + isWritable: true as boolean, + value: input.token ?? null, + }, + mint: { index: 3, isWritable: false as boolean, value: input.mint ?? null }, + metadata: { + index: 4, + isWritable: true as boolean, + value: input.metadata ?? null, + }, + edition: { + index: 5, + isWritable: true as boolean, + value: input.edition ?? null, + }, + payer: { + index: 6, + isWritable: false as boolean, + value: input.payer ?? null, + }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 8, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, splTokenProgram: { index: 9, - isWritable: false, + isWritable: false as boolean, value: input.splTokenProgram ?? null, }, authorizationRulesProgram: { index: 10, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRulesProgram ?? null, }, authorizationRules: { index: 11, - isWritable: false, + isWritable: false as boolean, value: input.authorizationRules ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/utilize.ts b/clients/js/src/generated/instructions/utilize.ts index 3f9c9d8f..05b9d92d 100644 --- a/clients/js/src/generated/instructions/utilize.ts +++ b/clients/js/src/generated/instructions/utilize.ts @@ -96,41 +96,53 @@ export function utilize( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, tokenAccount: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.tokenAccount ?? null, }, - mint: { index: 2, isWritable: true, value: input.mint ?? null }, + mint: { index: 2, isWritable: true as boolean, value: input.mint ?? null }, useAuthority: { index: 3, - isWritable: true, + isWritable: true as boolean, value: input.useAuthority ?? null, }, - owner: { index: 4, isWritable: false, value: input.owner ?? null }, + owner: { + index: 4, + isWritable: false as boolean, + value: input.owner ?? null, + }, tokenProgram: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.tokenProgram ?? null, }, ataProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.ataProgram ?? null, }, systemProgram: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, - rent: { index: 8, isWritable: false, value: input.rent ?? null }, + rent: { index: 8, isWritable: false as boolean, value: input.rent ?? null }, useAuthorityRecord: { index: 9, - isWritable: true, + isWritable: true as boolean, value: input.useAuthorityRecord ?? null, }, - burner: { index: 10, isWritable: false, value: input.burner ?? null }, + burner: { + index: 10, + isWritable: false as boolean, + value: input.burner ?? null, + }, } satisfies ResolvedAccountsWithIndices; // Arguments. diff --git a/clients/js/src/generated/instructions/verifyCollection.ts b/clients/js/src/generated/instructions/verifyCollection.ts index 21422f23..027d49f7 100644 --- a/clients/js/src/generated/instructions/verifyCollection.ts +++ b/clients/js/src/generated/instructions/verifyCollection.ts @@ -81,31 +81,39 @@ export function verifyCollection( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionAuthority: { index: 1, - isWritable: true, + isWritable: true as boolean, value: input.collectionAuthority ?? null, }, - payer: { index: 2, isWritable: true, value: input.payer ?? null }, + payer: { + index: 2, + isWritable: true as boolean, + value: input.payer ?? null, + }, collectionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collection: { index: 4, - isWritable: false, + isWritable: false as boolean, value: input.collection ?? null, }, collectionMasterEditionAccount: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEditionAccount ?? null, }, collectionAuthorityRecord: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/verifyCollectionV1.ts b/clients/js/src/generated/instructions/verifyCollectionV1.ts index 2ba9281e..78e8788e 100644 --- a/clients/js/src/generated/instructions/verifyCollectionV1.ts +++ b/clients/js/src/generated/instructions/verifyCollectionV1.ts @@ -97,36 +97,44 @@ export function verifyCollectionV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collectionMetadata: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, collectionMasterEdition: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEdition ?? null, }, systemProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/verifyCreatorV1.ts b/clients/js/src/generated/instructions/verifyCreatorV1.ts index 7585b78f..ba7f6120 100644 --- a/clients/js/src/generated/instructions/verifyCreatorV1.ts +++ b/clients/js/src/generated/instructions/verifyCreatorV1.ts @@ -95,36 +95,44 @@ export function verifyCreatorV1( // Accounts. const resolvedAccounts = { - authority: { index: 0, isWritable: false, value: input.authority ?? null }, + authority: { + index: 0, + isWritable: false as boolean, + value: input.authority ?? null, + }, delegateRecord: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.delegateRecord ?? null, }, - metadata: { index: 2, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 2, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, collectionMetadata: { index: 4, - isWritable: true, + isWritable: true as boolean, value: input.collectionMetadata ?? null, }, collectionMasterEdition: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEdition ?? null, }, systemProgram: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.systemProgram ?? null, }, sysvarInstructions: { index: 7, - isWritable: false, + isWritable: false as boolean, value: input.sysvarInstructions ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/js/src/generated/instructions/verifySizedCollectionItem.ts b/clients/js/src/generated/instructions/verifySizedCollectionItem.ts index 18953c65..e86f18d2 100644 --- a/clients/js/src/generated/instructions/verifySizedCollectionItem.ts +++ b/clients/js/src/generated/instructions/verifySizedCollectionItem.ts @@ -84,27 +84,39 @@ export function verifySizedCollectionItem( // Accounts. const resolvedAccounts = { - metadata: { index: 0, isWritable: true, value: input.metadata ?? null }, + metadata: { + index: 0, + isWritable: true as boolean, + value: input.metadata ?? null, + }, collectionAuthority: { index: 1, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthority ?? null, }, - payer: { index: 2, isWritable: true, value: input.payer ?? null }, + payer: { + index: 2, + isWritable: true as boolean, + value: input.payer ?? null, + }, collectionMint: { index: 3, - isWritable: false, + isWritable: false as boolean, value: input.collectionMint ?? null, }, - collection: { index: 4, isWritable: true, value: input.collection ?? null }, + collection: { + index: 4, + isWritable: true as boolean, + value: input.collection ?? null, + }, collectionMasterEditionAccount: { index: 5, - isWritable: false, + isWritable: false as boolean, value: input.collectionMasterEditionAccount ?? null, }, collectionAuthorityRecord: { index: 6, - isWritable: false, + isWritable: false as boolean, value: input.collectionAuthorityRecord ?? null, }, } satisfies ResolvedAccountsWithIndices; diff --git a/clients/rust/src/generated/instructions/approve_collection_authority.rs b/clients/rust/src/generated/instructions/approve_collection_authority.rs index 2aa3ee85..f020004b 100644 --- a/clients/rust/src/generated/instructions/approve_collection_authority.rs +++ b/clients/rust/src/generated/instructions/approve_collection_authority.rs @@ -93,7 +93,18 @@ impl ApproveCollectionAuthorityInstructionData { } } -/// Instruction builder. +/// Instruction builder for `ApproveCollectionAuthority`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_authority_record +/// 1. `[]` new_collection_authority +/// 2. `[writable, signer]` update_authority +/// 3. `[writable, signer]` payer +/// 4. `[]` metadata +/// 5. `[]` mint +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` rent #[derive(Default)] pub struct ApproveCollectionAuthorityBuilder { collection_authority_record: Option, @@ -377,7 +388,18 @@ impl<'a, 'b> ApproveCollectionAuthorityCpi<'a, 'b> { } } -/// `approve_collection_authority` CPI instruction builder. +/// Instruction builder for `ApproveCollectionAuthority` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_authority_record +/// 1. `[]` new_collection_authority +/// 2. `[writable, signer]` update_authority +/// 3. `[writable, signer]` payer +/// 4. `[]` metadata +/// 5. `[]` mint +/// 6. `[]` system_program +/// 7. `[optional]` rent pub struct ApproveCollectionAuthorityCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/approve_use_authority.rs b/clients/rust/src/generated/instructions/approve_use_authority.rs index 8bfe731a..6db8b0e5 100644 --- a/clients/rust/src/generated/instructions/approve_use_authority.rs +++ b/clients/rust/src/generated/instructions/approve_use_authority.rs @@ -121,7 +121,21 @@ pub struct ApproveUseAuthorityInstructionArgs { pub number_of_uses: u64, } -/// Instruction builder. +/// Instruction builder for `ApproveUseAuthority`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` use_authority_record +/// 1. `[writable, signer]` owner +/// 2. `[writable, signer]` payer +/// 3. `[]` user +/// 4. `[writable]` owner_token_account +/// 5. `[]` metadata +/// 6. `[]` mint +/// 7. `[]` burner +/// 8. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` rent #[derive(Default)] pub struct ApproveUseAuthorityBuilder { use_authority_record: Option, @@ -477,7 +491,21 @@ impl<'a, 'b> ApproveUseAuthorityCpi<'a, 'b> { } } -/// `approve_use_authority` CPI instruction builder. +/// Instruction builder for `ApproveUseAuthority` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` use_authority_record +/// 1. `[writable, signer]` owner +/// 2. `[writable, signer]` payer +/// 3. `[]` user +/// 4. `[writable]` owner_token_account +/// 5. `[]` metadata +/// 6. `[]` mint +/// 7. `[]` burner +/// 8. `[]` token_program +/// 9. `[]` system_program +/// 10. `[optional]` rent pub struct ApproveUseAuthorityCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/bubblegum_set_collection_size.rs b/clients/rust/src/generated/instructions/bubblegum_set_collection_size.rs index 1651b03a..be6ecd93 100644 --- a/clients/rust/src/generated/instructions/bubblegum_set_collection_size.rs +++ b/clients/rust/src/generated/instructions/bubblegum_set_collection_size.rs @@ -91,7 +91,15 @@ pub struct BubblegumSetCollectionSizeInstructionArgs { pub set_collection_size_args: SetCollectionSizeArgs, } -/// Instruction builder. +/// Instruction builder for `BubblegumSetCollectionSize`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[]` collection_mint +/// 3. `[signer]` bubblegum_signer +/// 4. `[optional]` collection_authority_record #[derive(Default)] pub struct BubblegumSetCollectionSizeBuilder { collection_metadata: Option, @@ -346,7 +354,15 @@ impl<'a, 'b> BubblegumSetCollectionSizeCpi<'a, 'b> { } } -/// `bubblegum_set_collection_size` CPI instruction builder. +/// Instruction builder for `BubblegumSetCollectionSize` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[]` collection_mint +/// 3. `[signer]` bubblegum_signer +/// 4. `[optional]` collection_authority_record pub struct BubblegumSetCollectionSizeCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/burn.rs b/clients/rust/src/generated/instructions/burn.rs index 4ca45224..ade223c0 100644 --- a/clients/rust/src/generated/instructions/burn.rs +++ b/clients/rust/src/generated/instructions/burn.rs @@ -187,7 +187,24 @@ pub struct BurnInstructionArgs { pub burn_args: BurnArgs, } -/// Instruction builder. +/// Instruction builder for `Burn`. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` authority +/// 1. `[writable, optional]` collection_metadata +/// 2. `[writable]` metadata +/// 3. `[writable, optional]` edition +/// 4. `[writable]` mint +/// 5. `[writable]` token +/// 6. `[writable, optional]` master_edition +/// 7. `[optional]` master_edition_mint +/// 8. `[optional]` master_edition_token +/// 9. `[writable, optional]` edition_marker +/// 10. `[writable, optional]` token_record +/// 11. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 12. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 13. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) #[derive(Default)] pub struct BurnBuilder { authority: Option, @@ -675,7 +692,24 @@ impl<'a, 'b> BurnCpi<'a, 'b> { } } -/// `burn` CPI instruction builder. +/// Instruction builder for `Burn` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` authority +/// 1. `[writable, optional]` collection_metadata +/// 2. `[writable]` metadata +/// 3. `[writable, optional]` edition +/// 4. `[writable]` mint +/// 5. `[writable]` token +/// 6. `[writable, optional]` master_edition +/// 7. `[optional]` master_edition_mint +/// 8. `[optional]` master_edition_token +/// 9. `[writable, optional]` edition_marker +/// 10. `[writable, optional]` token_record +/// 11. `[]` system_program +/// 12. `[]` sysvar_instructions +/// 13. `[]` spl_token_program pub struct BurnCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/burn_edition_nft.rs b/clients/rust/src/generated/instructions/burn_edition_nft.rs index 8bd46b07..d03e3c5c 100644 --- a/clients/rust/src/generated/instructions/burn_edition_nft.rs +++ b/clients/rust/src/generated/instructions/burn_edition_nft.rs @@ -103,7 +103,20 @@ impl BurnEditionNftInstructionData { } } -/// Instruction builder. +/// Instruction builder for `BurnEditionNft`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` owner +/// 2. `[writable]` print_edition_mint +/// 3. `[]` master_edition_mint +/// 4. `[writable]` print_edition_token_account +/// 5. `[]` master_edition_token_account +/// 6. `[writable]` master_edition_account +/// 7. `[writable]` print_edition_account +/// 8. `[writable]` edition_marker_account +/// 9. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) #[derive(Default)] pub struct BurnEditionNftBuilder { metadata: Option, @@ -442,7 +455,20 @@ impl<'a, 'b> BurnEditionNftCpi<'a, 'b> { } } -/// `burn_edition_nft` CPI instruction builder. +/// Instruction builder for `BurnEditionNft` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` owner +/// 2. `[writable]` print_edition_mint +/// 3. `[]` master_edition_mint +/// 4. `[writable]` print_edition_token_account +/// 5. `[]` master_edition_token_account +/// 6. `[writable]` master_edition_account +/// 7. `[writable]` print_edition_account +/// 8. `[writable]` edition_marker_account +/// 9. `[]` spl_token_program pub struct BurnEditionNftCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/burn_nft.rs b/clients/rust/src/generated/instructions/burn_nft.rs index dca8e841..9debd5ab 100644 --- a/clients/rust/src/generated/instructions/burn_nft.rs +++ b/clients/rust/src/generated/instructions/burn_nft.rs @@ -86,7 +86,17 @@ impl BurnNftInstructionData { } } -/// Instruction builder. +/// Instruction builder for `BurnNft`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` owner +/// 2. `[writable]` mint +/// 3. `[writable]` token_account +/// 4. `[writable]` master_edition_account +/// 5. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 6. `[writable, optional]` collection_metadata #[derive(Default)] pub struct BurnNftBuilder { metadata: Option, @@ -349,7 +359,17 @@ impl<'a, 'b> BurnNftCpi<'a, 'b> { } } -/// `burn_nft` CPI instruction builder. +/// Instruction builder for `BurnNft` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` owner +/// 2. `[writable]` mint +/// 3. `[writable]` token_account +/// 4. `[writable]` master_edition_account +/// 5. `[]` spl_token_program +/// 6. `[writable, optional]` collection_metadata pub struct BurnNftCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/burn_v1.rs b/clients/rust/src/generated/instructions/burn_v1.rs index a7c35d9b..fb99fcbb 100644 --- a/clients/rust/src/generated/instructions/burn_v1.rs +++ b/clients/rust/src/generated/instructions/burn_v1.rs @@ -190,7 +190,24 @@ pub struct BurnV1InstructionArgs { pub amount: u64, } -/// Instruction builder. +/// Instruction builder for `BurnV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` authority +/// 1. `[writable, optional]` collection_metadata +/// 2. `[writable]` metadata +/// 3. `[writable, optional]` edition +/// 4. `[writable]` mint +/// 5. `[writable]` token +/// 6. `[writable, optional]` master_edition +/// 7. `[optional]` master_edition_mint +/// 8. `[optional]` master_edition_token +/// 9. `[writable, optional]` edition_marker +/// 10. `[writable, optional]` token_record +/// 11. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 12. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 13. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) #[derive(Default)] pub struct BurnV1Builder { authority: Option, @@ -679,7 +696,24 @@ impl<'a, 'b> BurnV1Cpi<'a, 'b> { } } -/// `burn_v1` CPI instruction builder. +/// Instruction builder for `BurnV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` authority +/// 1. `[writable, optional]` collection_metadata +/// 2. `[writable]` metadata +/// 3. `[writable, optional]` edition +/// 4. `[writable]` mint +/// 5. `[writable]` token +/// 6. `[writable, optional]` master_edition +/// 7. `[optional]` master_edition_mint +/// 8. `[optional]` master_edition_token +/// 9. `[writable, optional]` edition_marker +/// 10. `[writable, optional]` token_record +/// 11. `[]` system_program +/// 12. `[]` sysvar_instructions +/// 13. `[]` spl_token_program pub struct BurnV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/close_escrow_account.rs b/clients/rust/src/generated/instructions/close_escrow_account.rs index 8ba40f8d..8094ec46 100644 --- a/clients/rust/src/generated/instructions/close_escrow_account.rs +++ b/clients/rust/src/generated/instructions/close_escrow_account.rs @@ -92,7 +92,18 @@ impl CloseEscrowAccountInstructionData { } } -/// Instruction builder. +/// Instruction builder for `CloseEscrowAccount`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` escrow +/// 1. `[writable]` metadata +/// 2. `[]` mint +/// 3. `[]` token_account +/// 4. `[]` edition +/// 5. `[writable, signer]` payer +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) #[derive(Default)] pub struct CloseEscrowAccountBuilder { escrow: Option, @@ -365,7 +376,18 @@ impl<'a, 'b> CloseEscrowAccountCpi<'a, 'b> { } } -/// `close_escrow_account` CPI instruction builder. +/// Instruction builder for `CloseEscrowAccount` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` escrow +/// 1. `[writable]` metadata +/// 2. `[]` mint +/// 3. `[]` token_account +/// 4. `[]` edition +/// 5. `[writable, signer]` payer +/// 6. `[]` system_program +/// 7. `[]` sysvar_instructions pub struct CloseEscrowAccountCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/collect.rs b/clients/rust/src/generated/instructions/collect.rs index 66ea4b0d..bcd3175c 100644 --- a/clients/rust/src/generated/instructions/collect.rs +++ b/clients/rust/src/generated/instructions/collect.rs @@ -56,7 +56,12 @@ impl CollectInstructionData { } } -/// Instruction builder. +/// Instruction builder for `Collect`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[]` pda_account #[derive(Default)] pub struct CollectBuilder { authority: Option, @@ -210,7 +215,12 @@ impl<'a, 'b> CollectCpi<'a, 'b> { } } -/// `collect` CPI instruction builder. +/// Instruction builder for `Collect` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[]` pda_account pub struct CollectCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/convert_master_edition_v1_to_v2.rs b/clients/rust/src/generated/instructions/convert_master_edition_v1_to_v2.rs index b231ee3c..e9525f71 100644 --- a/clients/rust/src/generated/instructions/convert_master_edition_v1_to_v2.rs +++ b/clients/rust/src/generated/instructions/convert_master_edition_v1_to_v2.rs @@ -64,7 +64,13 @@ impl ConvertMasterEditionV1ToV2InstructionData { } } -/// Instruction builder. +/// Instruction builder for `ConvertMasterEditionV1ToV2`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` master_edition +/// 1. `[writable]` one_time_auth +/// 2. `[writable]` printing_mint #[derive(Default)] pub struct ConvertMasterEditionV1ToV2Builder { master_edition: Option, @@ -238,7 +244,13 @@ impl<'a, 'b> ConvertMasterEditionV1ToV2Cpi<'a, 'b> { } } -/// `convert_master_edition_v1_to_v2` CPI instruction builder. +/// Instruction builder for `ConvertMasterEditionV1ToV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` master_edition +/// 1. `[writable]` one_time_auth +/// 2. `[writable]` printing_mint pub struct ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/create.rs b/clients/rust/src/generated/instructions/create.rs index 574a555a..020fe5ee 100644 --- a/clients/rust/src/generated/instructions/create.rs +++ b/clients/rust/src/generated/instructions/create.rs @@ -117,7 +117,19 @@ pub struct CreateInstructionArgs { pub create_args: CreateArgs, } -/// Instruction builder. +/// Instruction builder for `Create`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, optional]` master_edition +/// 2. `[writable, signer]` mint +/// 3. `[signer]` authority +/// 4. `[writable, signer]` payer +/// 5. `[signer]` update_authority +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 8. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) #[derive(Default)] pub struct CreateBuilder { metadata: Option, @@ -444,7 +456,19 @@ impl<'a, 'b> CreateCpi<'a, 'b> { } } -/// `create` CPI instruction builder. +/// Instruction builder for `Create` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, optional]` master_edition +/// 2. `[writable, signer]` mint +/// 3. `[signer]` authority +/// 4. `[writable, signer]` payer +/// 5. `[signer]` update_authority +/// 6. `[]` system_program +/// 7. `[]` sysvar_instructions +/// 8. `[]` spl_token_program pub struct CreateCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/create_escrow_account.rs b/clients/rust/src/generated/instructions/create_escrow_account.rs index 5ec63d3a..2663067d 100644 --- a/clients/rust/src/generated/instructions/create_escrow_account.rs +++ b/clients/rust/src/generated/instructions/create_escrow_account.rs @@ -99,7 +99,19 @@ impl CreateEscrowAccountInstructionData { } } -/// Instruction builder. +/// Instruction builder for `CreateEscrowAccount`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` escrow +/// 1. `[writable]` metadata +/// 2. `[]` mint +/// 3. `[]` token_account +/// 4. `[]` edition +/// 5. `[writable, signer]` payer +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 8. `[signer, optional]` authority #[derive(Default)] pub struct CreateEscrowAccountBuilder { escrow: Option, @@ -395,7 +407,19 @@ impl<'a, 'b> CreateEscrowAccountCpi<'a, 'b> { } } -/// `create_escrow_account` CPI instruction builder. +/// Instruction builder for `CreateEscrowAccount` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` escrow +/// 1. `[writable]` metadata +/// 2. `[]` mint +/// 3. `[]` token_account +/// 4. `[]` edition +/// 5. `[writable, signer]` payer +/// 6. `[]` system_program +/// 7. `[]` sysvar_instructions +/// 8. `[signer, optional]` authority pub struct CreateEscrowAccountCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/create_master_edition_v3.rs b/clients/rust/src/generated/instructions/create_master_edition_v3.rs index 98bd7072..75fb1596 100644 --- a/clients/rust/src/generated/instructions/create_master_edition_v3.rs +++ b/clients/rust/src/generated/instructions/create_master_edition_v3.rs @@ -111,7 +111,19 @@ pub struct CreateMasterEditionV3InstructionArgs { pub max_supply: Option, } -/// Instruction builder. +/// Instruction builder for `CreateMasterEditionV3`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` edition +/// 1. `[writable]` mint +/// 2. `[signer]` update_authority +/// 3. `[signer]` mint_authority +/// 4. `[writable, signer]` payer +/// 5. `[writable]` metadata +/// 6. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` rent #[derive(Default)] pub struct CreateMasterEditionV3Builder { edition: Option, @@ -422,7 +434,19 @@ impl<'a, 'b> CreateMasterEditionV3Cpi<'a, 'b> { } } -/// `create_master_edition_v3` CPI instruction builder. +/// Instruction builder for `CreateMasterEditionV3` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` edition +/// 1. `[writable]` mint +/// 2. `[signer]` update_authority +/// 3. `[signer]` mint_authority +/// 4. `[writable, signer]` payer +/// 5. `[writable]` metadata +/// 6. `[]` token_program +/// 7. `[]` system_program +/// 8. `[optional]` rent pub struct CreateMasterEditionV3CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/create_metadata_account_v3.rs b/clients/rust/src/generated/instructions/create_metadata_account_v3.rs index 7e2ee9e0..1d025e4f 100644 --- a/clients/rust/src/generated/instructions/create_metadata_account_v3.rs +++ b/clients/rust/src/generated/instructions/create_metadata_account_v3.rs @@ -103,7 +103,17 @@ pub struct CreateMetadataAccountV3InstructionArgs { pub collection_details: Option, } -/// Instruction builder. +/// Instruction builder for `CreateMetadataAccountV3`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[]` mint +/// 2. `[signer]` mint_authority +/// 3. `[writable, signer]` payer +/// 4. `[signer]` update_authority +/// 5. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 6. `[optional]` rent #[derive(Default)] pub struct CreateMetadataAccountV3Builder { metadata: Option, @@ -390,7 +400,17 @@ impl<'a, 'b> CreateMetadataAccountV3Cpi<'a, 'b> { } } -/// `create_metadata_account_v3` CPI instruction builder. +/// Instruction builder for `CreateMetadataAccountV3` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[]` mint +/// 2. `[signer]` mint_authority +/// 3. `[writable, signer]` payer +/// 4. `[signer]` update_authority +/// 5. `[]` system_program +/// 6. `[optional]` rent pub struct CreateMetadataAccountV3CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/create_v1.rs b/clients/rust/src/generated/instructions/create_v1.rs index 0f039fd6..7e4e4841 100644 --- a/clients/rust/src/generated/instructions/create_v1.rs +++ b/clients/rust/src/generated/instructions/create_v1.rs @@ -140,7 +140,19 @@ pub struct CreateV1InstructionArgs { pub print_supply: Option, } -/// Instruction builder. +/// Instruction builder for `CreateV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, optional]` master_edition +/// 2. `[writable, signer]` mint +/// 3. `[signer]` authority +/// 4. `[writable, signer]` payer +/// 5. `[signer]` update_authority +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 8. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) #[derive(Default)] pub struct CreateV1Builder { metadata: Option, @@ -574,7 +586,19 @@ impl<'a, 'b> CreateV1Cpi<'a, 'b> { } } -/// `create_v1` CPI instruction builder. +/// Instruction builder for `CreateV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, optional]` master_edition +/// 2. `[writable, signer]` mint +/// 3. `[signer]` authority +/// 4. `[writable, signer]` payer +/// 5. `[signer]` update_authority +/// 6. `[]` system_program +/// 7. `[]` sysvar_instructions +/// 8. `[]` spl_token_program pub struct CreateV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate.rs b/clients/rust/src/generated/instructions/delegate.rs index 32852354..854ef684 100644 --- a/clients/rust/src/generated/instructions/delegate.rs +++ b/clients/rust/src/generated/instructions/delegate.rs @@ -185,7 +185,24 @@ pub struct DelegateInstructionArgs { pub delegate_args: DelegateArgs, } -/// Instruction builder. +/// Instruction builder for `Delegate`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateBuilder { delegate_record: Option, @@ -669,7 +686,24 @@ impl<'a, 'b> DelegateCpi<'a, 'b> { } } -/// `delegate` CPI instruction builder. +/// Instruction builder for `Delegate` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_authority_item_v1.rs b/clients/rust/src/generated/instructions/delegate_authority_item_v1.rs index 2147fec6..76f29a94 100644 --- a/clients/rust/src/generated/instructions/delegate_authority_item_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_authority_item_v1.rs @@ -191,7 +191,24 @@ pub struct DelegateAuthorityItemV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateAuthorityItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateAuthorityItemV1Builder { delegate_record: Option, @@ -675,7 +692,24 @@ impl<'a, 'b> DelegateAuthorityItemV1Cpi<'a, 'b> { } } -/// `delegate_authority_item_v1` CPI instruction builder. +/// Instruction builder for `DelegateAuthorityItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateAuthorityItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_collection_item_v1.rs b/clients/rust/src/generated/instructions/delegate_collection_item_v1.rs index bcd645ae..73c8de84 100644 --- a/clients/rust/src/generated/instructions/delegate_collection_item_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_collection_item_v1.rs @@ -191,7 +191,24 @@ pub struct DelegateCollectionItemV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateCollectionItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateCollectionItemV1Builder { delegate_record: Option, @@ -675,7 +692,24 @@ impl<'a, 'b> DelegateCollectionItemV1Cpi<'a, 'b> { } } -/// `delegate_collection_item_v1` CPI instruction builder. +/// Instruction builder for `DelegateCollectionItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateCollectionItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_collection_v1.rs b/clients/rust/src/generated/instructions/delegate_collection_v1.rs index c857d9ca..36559af7 100644 --- a/clients/rust/src/generated/instructions/delegate_collection_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_collection_v1.rs @@ -191,7 +191,24 @@ pub struct DelegateCollectionV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateCollectionV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateCollectionV1Builder { delegate_record: Option, @@ -675,7 +692,24 @@ impl<'a, 'b> DelegateCollectionV1Cpi<'a, 'b> { } } -/// `delegate_collection_v1` CPI instruction builder. +/// Instruction builder for `DelegateCollectionV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateCollectionV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_data_item_v1.rs b/clients/rust/src/generated/instructions/delegate_data_item_v1.rs index 1793a0d6..21d2b22b 100644 --- a/clients/rust/src/generated/instructions/delegate_data_item_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_data_item_v1.rs @@ -191,7 +191,24 @@ pub struct DelegateDataItemV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateDataItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateDataItemV1Builder { delegate_record: Option, @@ -675,7 +692,24 @@ impl<'a, 'b> DelegateDataItemV1Cpi<'a, 'b> { } } -/// `delegate_data_item_v1` CPI instruction builder. +/// Instruction builder for `DelegateDataItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateDataItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_data_v1.rs b/clients/rust/src/generated/instructions/delegate_data_v1.rs index 7d40971b..0b3d1ca9 100644 --- a/clients/rust/src/generated/instructions/delegate_data_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_data_v1.rs @@ -189,7 +189,24 @@ pub struct DelegateDataV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateDataV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateDataV1Builder { delegate_record: Option, @@ -671,7 +688,24 @@ impl<'a, 'b> DelegateDataV1Cpi<'a, 'b> { } } -/// `delegate_data_v1` CPI instruction builder. +/// Instruction builder for `DelegateDataV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateDataV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_locked_transfer_v1.rs b/clients/rust/src/generated/instructions/delegate_locked_transfer_v1.rs index eaa2f0ca..1f29d43d 100644 --- a/clients/rust/src/generated/instructions/delegate_locked_transfer_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_locked_transfer_v1.rs @@ -189,7 +189,24 @@ pub struct DelegateLockedTransferV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateLockedTransferV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateLockedTransferV1Builder { delegate_record: Option, @@ -682,7 +699,24 @@ impl<'a, 'b> DelegateLockedTransferV1Cpi<'a, 'b> { } } -/// `delegate_locked_transfer_v1` CPI instruction builder. +/// Instruction builder for `DelegateLockedTransferV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateLockedTransferV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_programmable_config_item_v1.rs b/clients/rust/src/generated/instructions/delegate_programmable_config_item_v1.rs index 512ae203..5aa73ca3 100644 --- a/clients/rust/src/generated/instructions/delegate_programmable_config_item_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_programmable_config_item_v1.rs @@ -191,7 +191,24 @@ pub struct DelegateProgrammableConfigItemV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateProgrammableConfigItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateProgrammableConfigItemV1Builder { delegate_record: Option, @@ -675,7 +692,24 @@ impl<'a, 'b> DelegateProgrammableConfigItemV1Cpi<'a, 'b> { } } -/// `delegate_programmable_config_item_v1` CPI instruction builder. +/// Instruction builder for `DelegateProgrammableConfigItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateProgrammableConfigItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_programmable_config_v1.rs b/clients/rust/src/generated/instructions/delegate_programmable_config_v1.rs index 3c547b44..ee33b2fd 100644 --- a/clients/rust/src/generated/instructions/delegate_programmable_config_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_programmable_config_v1.rs @@ -191,7 +191,24 @@ pub struct DelegateProgrammableConfigV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateProgrammableConfigV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateProgrammableConfigV1Builder { delegate_record: Option, @@ -675,7 +692,24 @@ impl<'a, 'b> DelegateProgrammableConfigV1Cpi<'a, 'b> { } } -/// `delegate_programmable_config_v1` CPI instruction builder. +/// Instruction builder for `DelegateProgrammableConfigV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateProgrammableConfigV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_sale_v1.rs b/clients/rust/src/generated/instructions/delegate_sale_v1.rs index 4f64d257..37aee265 100644 --- a/clients/rust/src/generated/instructions/delegate_sale_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_sale_v1.rs @@ -185,7 +185,24 @@ pub struct DelegateSaleV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateSaleV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateSaleV1Builder { delegate_record: Option, @@ -666,7 +683,24 @@ impl<'a, 'b> DelegateSaleV1Cpi<'a, 'b> { } } -/// `delegate_sale_v1` CPI instruction builder. +/// Instruction builder for `DelegateSaleV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateSaleV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_staking_v1.rs b/clients/rust/src/generated/instructions/delegate_staking_v1.rs index 44c52d30..9cb6edcb 100644 --- a/clients/rust/src/generated/instructions/delegate_staking_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_staking_v1.rs @@ -187,7 +187,24 @@ pub struct DelegateStakingV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateStakingV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateStakingV1Builder { delegate_record: Option, @@ -670,7 +687,24 @@ impl<'a, 'b> DelegateStakingV1Cpi<'a, 'b> { } } -/// `delegate_staking_v1` CPI instruction builder. +/// Instruction builder for `DelegateStakingV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateStakingV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_standard_v1.rs b/clients/rust/src/generated/instructions/delegate_standard_v1.rs index 14a433d2..7e5b6a90 100644 --- a/clients/rust/src/generated/instructions/delegate_standard_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_standard_v1.rs @@ -185,7 +185,24 @@ pub struct DelegateStandardV1InstructionArgs { pub amount: u64, } -/// Instruction builder. +/// Instruction builder for `DelegateStandardV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateStandardV1Builder { delegate_record: Option, @@ -660,7 +677,24 @@ impl<'a, 'b> DelegateStandardV1Cpi<'a, 'b> { } } -/// `delegate_standard_v1` CPI instruction builder. +/// Instruction builder for `DelegateStandardV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateStandardV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_transfer_v1.rs b/clients/rust/src/generated/instructions/delegate_transfer_v1.rs index a377ae04..fbe45257 100644 --- a/clients/rust/src/generated/instructions/delegate_transfer_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_transfer_v1.rs @@ -187,7 +187,24 @@ pub struct DelegateTransferV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateTransferV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateTransferV1Builder { delegate_record: Option, @@ -670,7 +687,24 @@ impl<'a, 'b> DelegateTransferV1Cpi<'a, 'b> { } } -/// `delegate_transfer_v1` CPI instruction builder. +/// Instruction builder for `DelegateTransferV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateTransferV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/delegate_utility_v1.rs b/clients/rust/src/generated/instructions/delegate_utility_v1.rs index 3212b57f..f72113e4 100644 --- a/clients/rust/src/generated/instructions/delegate_utility_v1.rs +++ b/clients/rust/src/generated/instructions/delegate_utility_v1.rs @@ -187,7 +187,24 @@ pub struct DelegateUtilityV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `DelegateUtilityV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct DelegateUtilityV1Builder { delegate_record: Option, @@ -670,7 +687,24 @@ impl<'a, 'b> DelegateUtilityV1Cpi<'a, 'b> { } } -/// `delegate_utility_v1` CPI instruction builder. +/// Instruction builder for `DelegateUtilityV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct DelegateUtilityV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/deprecated_mint_new_edition_from_master_edition_via_printing_token.rs b/clients/rust/src/generated/instructions/deprecated_mint_new_edition_from_master_edition_via_printing_token.rs index b6ff2715..2cdd23fd 100644 --- a/clients/rust/src/generated/instructions/deprecated_mint_new_edition_from_master_edition_via_printing_token.rs +++ b/clients/rust/src/generated/instructions/deprecated_mint_new_edition_from_master_edition_via_printing_token.rs @@ -141,7 +141,26 @@ impl DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionData { } } -/// Instruction builder. +/// Instruction builder for `DeprecatedMintNewEditionFromMasterEditionViaPrintingToken`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable]` edition +/// 2. `[writable]` master_edition +/// 3. `[writable]` mint +/// 4. `[signer]` mint_authority +/// 5. `[writable]` printing_mint +/// 6. `[writable]` master_token_account +/// 7. `[writable]` edition_marker +/// 8. `[signer]` burn_authority +/// 9. `[signer]` payer +/// 10. `[]` master_update_authority +/// 11. `[]` master_metadata +/// 12. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 13. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 14. `[optional]` rent (default to `SysvarRent111111111111111111111111111111111`) +/// 15. `[writable, optional]` reservation_list #[derive(Default)] pub struct DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenBuilder { metadata: Option, @@ -579,7 +598,26 @@ impl<'a, 'b> DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenCpi<'a, 'b } } -/// `deprecated_mint_new_edition_from_master_edition_via_printing_token` CPI instruction builder. +/// Instruction builder for `DeprecatedMintNewEditionFromMasterEditionViaPrintingToken` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable]` edition +/// 2. `[writable]` master_edition +/// 3. `[writable]` mint +/// 4. `[signer]` mint_authority +/// 5. `[writable]` printing_mint +/// 6. `[writable]` master_token_account +/// 7. `[writable]` edition_marker +/// 8. `[signer]` burn_authority +/// 9. `[signer]` payer +/// 10. `[]` master_update_authority +/// 11. `[]` master_metadata +/// 12. `[]` token_program +/// 13. `[]` system_program +/// 14. `[]` rent +/// 15. `[writable, optional]` reservation_list pub struct DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenCpiBuilder<'a, 'b> { instruction: Box>, diff --git a/clients/rust/src/generated/instructions/freeze_delegated_account.rs b/clients/rust/src/generated/instructions/freeze_delegated_account.rs index 23e7347a..bdfb14ec 100644 --- a/clients/rust/src/generated/instructions/freeze_delegated_account.rs +++ b/clients/rust/src/generated/instructions/freeze_delegated_account.rs @@ -75,7 +75,15 @@ impl FreezeDelegatedAccountInstructionData { } } -/// Instruction builder. +/// Instruction builder for `FreezeDelegatedAccount`. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` delegate +/// 1. `[writable]` token_account +/// 2. `[]` edition +/// 3. `[]` mint +/// 4. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) #[derive(Default)] pub struct FreezeDelegatedAccountBuilder { delegate: Option, @@ -288,7 +296,15 @@ impl<'a, 'b> FreezeDelegatedAccountCpi<'a, 'b> { } } -/// `freeze_delegated_account` CPI instruction builder. +/// Instruction builder for `FreezeDelegatedAccount` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` delegate +/// 1. `[writable]` token_account +/// 2. `[]` edition +/// 3. `[]` mint +/// 4. `[]` token_program pub struct FreezeDelegatedAccountCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/lock.rs b/clients/rust/src/generated/instructions/lock.rs index 288b37fc..9dfe9c45 100644 --- a/clients/rust/src/generated/instructions/lock.rs +++ b/clients/rust/src/generated/instructions/lock.rs @@ -173,7 +173,23 @@ pub struct LockInstructionArgs { pub lock_args: LockArgs, } -/// Instruction builder. +/// Instruction builder for `Lock`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 9. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules #[derive(Default)] pub struct LockBuilder { authority: Option, @@ -624,7 +640,23 @@ impl<'a, 'b> LockCpi<'a, 'b> { } } -/// `lock` CPI instruction builder. +/// Instruction builder for `Lock` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[]` system_program +/// 9. `[]` sysvar_instructions +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules pub struct LockCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/lock_v1.rs b/clients/rust/src/generated/instructions/lock_v1.rs index 09c92052..8f059510 100644 --- a/clients/rust/src/generated/instructions/lock_v1.rs +++ b/clients/rust/src/generated/instructions/lock_v1.rs @@ -177,7 +177,23 @@ pub struct LockV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `LockV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 9. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules #[derive(Default)] pub struct LockV1Builder { authority: Option, @@ -629,7 +645,23 @@ impl<'a, 'b> LockV1Cpi<'a, 'b> { } } -/// `lock_v1` CPI instruction builder. +/// Instruction builder for `LockV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[]` system_program +/// 9. `[]` sysvar_instructions +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules pub struct LockV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/migrate.rs b/clients/rust/src/generated/instructions/migrate.rs index 7ad50061..d7fb9e79 100644 --- a/clients/rust/src/generated/instructions/migrate.rs +++ b/clients/rust/src/generated/instructions/migrate.rs @@ -145,7 +145,25 @@ impl MigrateInstructionData { } } -/// Instruction builder. +/// Instruction builder for `Migrate`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable]` edition +/// 2. `[writable]` token +/// 3. `[]` token_owner +/// 4. `[]` mint +/// 5. `[writable, signer]` payer +/// 6. `[signer]` authority +/// 7. `[]` collection_metadata +/// 8. `[]` delegate_record +/// 9. `[writable]` token_record +/// 10. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 11. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 12. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 13. `[optional]` authorization_rules_program +/// 14. `[optional]` authorization_rules #[derive(Default)] pub struct MigrateBuilder { metadata: Option, @@ -582,7 +600,25 @@ impl<'a, 'b> MigrateCpi<'a, 'b> { } } -/// `migrate` CPI instruction builder. +/// Instruction builder for `Migrate` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable]` edition +/// 2. `[writable]` token +/// 3. `[]` token_owner +/// 4. `[]` mint +/// 5. `[writable, signer]` payer +/// 6. `[signer]` authority +/// 7. `[]` collection_metadata +/// 8. `[]` delegate_record +/// 9. `[writable]` token_record +/// 10. `[]` system_program +/// 11. `[]` sysvar_instructions +/// 12. `[]` spl_token_program +/// 13. `[optional]` authorization_rules_program +/// 14. `[optional]` authorization_rules pub struct MigrateCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/mint.rs b/clients/rust/src/generated/instructions/mint.rs index ef18e2a7..d2003f0a 100644 --- a/clients/rust/src/generated/instructions/mint.rs +++ b/clients/rust/src/generated/instructions/mint.rs @@ -186,7 +186,25 @@ pub struct MintInstructionArgs { pub mint_args: MintArgs, } -/// Instruction builder. +/// Instruction builder for `Mint`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[optional]` token_owner +/// 2. `[]` metadata +/// 3. `[writable, optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[writable]` mint +/// 6. `[signer]` authority +/// 7. `[optional]` delegate_record +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` spl_ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 13. `[optional]` authorization_rules_program +/// 14. `[optional]` authorization_rules #[derive(Default)] pub struct MintBuilder { token: Option, @@ -688,7 +706,25 @@ impl<'a, 'b> MintCpi<'a, 'b> { } } -/// `mint` CPI instruction builder. +/// Instruction builder for `Mint` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[optional]` token_owner +/// 2. `[]` metadata +/// 3. `[writable, optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[writable]` mint +/// 6. `[signer]` authority +/// 7. `[optional]` delegate_record +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[]` spl_token_program +/// 12. `[]` spl_ata_program +/// 13. `[optional]` authorization_rules_program +/// 14. `[optional]` authorization_rules pub struct MintCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_token.rs b/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_token.rs index e6084651..77cf1a02 100644 --- a/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_token.rs +++ b/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_token.rs @@ -144,7 +144,24 @@ pub struct MintNewEditionFromMasterEditionViaTokenInstructionArgs { MintNewEditionFromMasterEditionViaTokenArgs, } -/// Instruction builder. +/// Instruction builder for `MintNewEditionFromMasterEditionViaToken`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` new_metadata +/// 1. `[writable]` new_edition +/// 2. `[writable]` master_edition +/// 3. `[writable]` new_mint +/// 4. `[writable]` edition_mark_pda +/// 5. `[signer]` new_mint_authority +/// 6. `[writable, signer]` payer +/// 7. `[signer]` token_account_owner +/// 8. `[]` token_account +/// 9. `[]` new_metadata_update_authority +/// 10. `[]` metadata +/// 11. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 13. `[optional]` rent #[derive(Default)] pub struct MintNewEditionFromMasterEditionViaTokenBuilder { new_metadata: Option, @@ -567,7 +584,24 @@ impl<'a, 'b> MintNewEditionFromMasterEditionViaTokenCpi<'a, 'b> { } } -/// `mint_new_edition_from_master_edition_via_token` CPI instruction builder. +/// Instruction builder for `MintNewEditionFromMasterEditionViaToken` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` new_metadata +/// 1. `[writable]` new_edition +/// 2. `[writable]` master_edition +/// 3. `[writable]` new_mint +/// 4. `[writable]` edition_mark_pda +/// 5. `[signer]` new_mint_authority +/// 6. `[writable, signer]` payer +/// 7. `[signer]` token_account_owner +/// 8. `[]` token_account +/// 9. `[]` new_metadata_update_authority +/// 10. `[]` metadata +/// 11. `[]` token_program +/// 12. `[]` system_program +/// 13. `[optional]` rent pub struct MintNewEditionFromMasterEditionViaTokenCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_vault_proxy.rs b/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_vault_proxy.rs index 5fa0d582..60a5521d 100644 --- a/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_vault_proxy.rs +++ b/clients/rust/src/generated/instructions/mint_new_edition_from_master_edition_via_vault_proxy.rs @@ -161,7 +161,27 @@ pub struct MintNewEditionFromMasterEditionViaVaultProxyInstructionArgs { MintNewEditionFromMasterEditionViaTokenArgs, } -/// Instruction builder. +/// Instruction builder for `MintNewEditionFromMasterEditionViaVaultProxy`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` new_metadata +/// 1. `[writable]` new_edition +/// 2. `[writable]` master_edition +/// 3. `[writable]` new_mint +/// 4. `[writable]` edition_mark_pda +/// 5. `[signer]` new_mint_authority +/// 6. `[writable, signer]` payer +/// 7. `[signer]` vault_authority +/// 8. `[]` safety_deposit_store +/// 9. `[]` safety_deposit_box +/// 10. `[]` vault +/// 11. `[]` new_metadata_update_authority +/// 12. `[]` metadata +/// 13. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 14. `[]` token_vault_program +/// 15. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 16. `[optional]` rent #[derive(Default)] pub struct MintNewEditionFromMasterEditionViaVaultProxyBuilder { new_metadata: Option, @@ -651,7 +671,27 @@ impl<'a, 'b> MintNewEditionFromMasterEditionViaVaultProxyCpi<'a, 'b> { } } -/// `mint_new_edition_from_master_edition_via_vault_proxy` CPI instruction builder. +/// Instruction builder for `MintNewEditionFromMasterEditionViaVaultProxy` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` new_metadata +/// 1. `[writable]` new_edition +/// 2. `[writable]` master_edition +/// 3. `[writable]` new_mint +/// 4. `[writable]` edition_mark_pda +/// 5. `[signer]` new_mint_authority +/// 6. `[writable, signer]` payer +/// 7. `[signer]` vault_authority +/// 8. `[]` safety_deposit_store +/// 9. `[]` safety_deposit_box +/// 10. `[]` vault +/// 11. `[]` new_metadata_update_authority +/// 12. `[]` metadata +/// 13. `[]` token_program +/// 14. `[]` token_vault_program +/// 15. `[]` system_program +/// 16. `[optional]` rent pub struct MintNewEditionFromMasterEditionViaVaultProxyCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/mint_v1.rs b/clients/rust/src/generated/instructions/mint_v1.rs index 18ee3485..1d0f28c0 100644 --- a/clients/rust/src/generated/instructions/mint_v1.rs +++ b/clients/rust/src/generated/instructions/mint_v1.rs @@ -191,7 +191,25 @@ pub struct MintV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `MintV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[optional]` token_owner +/// 2. `[]` metadata +/// 3. `[writable, optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[writable]` mint +/// 6. `[signer]` authority +/// 7. `[optional]` delegate_record +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` spl_ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 13. `[optional]` authorization_rules_program +/// 14. `[optional]` authorization_rules #[derive(Default)] pub struct MintV1Builder { token: Option, @@ -702,7 +720,25 @@ impl<'a, 'b> MintV1Cpi<'a, 'b> { } } -/// `mint_v1` CPI instruction builder. +/// Instruction builder for `MintV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[optional]` token_owner +/// 2. `[]` metadata +/// 3. `[writable, optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[writable]` mint +/// 6. `[signer]` authority +/// 7. `[optional]` delegate_record +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[]` spl_token_program +/// 12. `[]` spl_ata_program +/// 13. `[optional]` authorization_rules_program +/// 14. `[optional]` authorization_rules pub struct MintV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/print.rs b/clients/rust/src/generated/instructions/print.rs index d14f6579..3fa7bbd1 100644 --- a/clients/rust/src/generated/instructions/print.rs +++ b/clients/rust/src/generated/instructions/print.rs @@ -171,7 +171,28 @@ pub struct PrintInstructionArgs { pub print_args: PrintArgs, } -/// Instruction builder. +/// Instruction builder for `Print`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` edition_metadata +/// 1. `[writable]` edition +/// 2. `[writable]` edition_mint +/// 3. `[]` edition_token_account_owner +/// 4. `[writable]` edition_token_account +/// 5. `[signer]` edition_mint_authority +/// 6. `[writable, optional]` edition_token_record +/// 7. `[writable]` master_edition +/// 8. `[writable]` edition_marker_pda +/// 9. `[writable, signer]` payer +/// 10. `[signer]` master_token_account_owner +/// 11. `[]` master_token_account +/// 12. `[]` master_metadata +/// 13. `[]` update_authority +/// 14. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 15. `[optional]` spl_ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 16. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 17. `[optional]` system_program (default to `11111111111111111111111111111111`) #[derive(Default)] pub struct PrintBuilder { edition_metadata: Option, @@ -701,7 +722,28 @@ impl<'a, 'b> PrintCpi<'a, 'b> { } } -/// `print` CPI instruction builder. +/// Instruction builder for `Print` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` edition_metadata +/// 1. `[writable]` edition +/// 2. `[writable]` edition_mint +/// 3. `[]` edition_token_account_owner +/// 4. `[writable]` edition_token_account +/// 5. `[signer]` edition_mint_authority +/// 6. `[writable, optional]` edition_token_record +/// 7. `[writable]` master_edition +/// 8. `[writable]` edition_marker_pda +/// 9. `[writable, signer]` payer +/// 10. `[signer]` master_token_account_owner +/// 11. `[]` master_token_account +/// 12. `[]` master_metadata +/// 13. `[]` update_authority +/// 14. `[]` spl_token_program +/// 15. `[]` spl_ata_program +/// 16. `[]` sysvar_instructions +/// 17. `[]` system_program pub struct PrintCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/print_v1.rs b/clients/rust/src/generated/instructions/print_v1.rs index 741f1159..de0550fb 100644 --- a/clients/rust/src/generated/instructions/print_v1.rs +++ b/clients/rust/src/generated/instructions/print_v1.rs @@ -174,7 +174,28 @@ pub struct PrintV1InstructionArgs { pub edition_number: u64, } -/// Instruction builder. +/// Instruction builder for `PrintV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` edition_metadata +/// 1. `[writable]` edition +/// 2. `[writable, signer]` edition_mint +/// 3. `[]` edition_token_account_owner +/// 4. `[writable]` edition_token_account +/// 5. `[signer]` edition_mint_authority +/// 6. `[writable, optional]` edition_token_record +/// 7. `[writable]` master_edition +/// 8. `[writable]` edition_marker_pda +/// 9. `[writable, signer]` payer +/// 10. `[signer]` master_token_account_owner +/// 11. `[]` master_token_account +/// 12. `[]` master_metadata +/// 13. `[]` update_authority +/// 14. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 15. `[optional]` spl_ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 16. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 17. `[optional]` system_program (default to `11111111111111111111111111111111`) #[derive(Default)] pub struct PrintV1Builder { edition_metadata: Option, @@ -711,7 +732,28 @@ impl<'a, 'b> PrintV1Cpi<'a, 'b> { } } -/// `print_v1` CPI instruction builder. +/// Instruction builder for `PrintV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` edition_metadata +/// 1. `[writable]` edition +/// 2. `[writable, signer]` edition_mint +/// 3. `[]` edition_token_account_owner +/// 4. `[writable]` edition_token_account +/// 5. `[signer]` edition_mint_authority +/// 6. `[writable, optional]` edition_token_record +/// 7. `[writable]` master_edition +/// 8. `[writable]` edition_marker_pda +/// 9. `[writable, signer]` payer +/// 10. `[signer]` master_token_account_owner +/// 11. `[]` master_token_account +/// 12. `[]` master_metadata +/// 13. `[]` update_authority +/// 14. `[]` spl_token_program +/// 15. `[]` spl_ata_program +/// 16. `[]` sysvar_instructions +/// 17. `[]` system_program pub struct PrintV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/puff_metadata.rs b/clients/rust/src/generated/instructions/puff_metadata.rs index bddb4498..00714926 100644 --- a/clients/rust/src/generated/instructions/puff_metadata.rs +++ b/clients/rust/src/generated/instructions/puff_metadata.rs @@ -50,7 +50,11 @@ impl PuffMetadataInstructionData { } } -/// Instruction builder. +/// Instruction builder for `PuffMetadata`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata #[derive(Default)] pub struct PuffMetadataBuilder { metadata: Option, @@ -186,7 +190,11 @@ impl<'a, 'b> PuffMetadataCpi<'a, 'b> { } } -/// `puff_metadata` CPI instruction builder. +/// Instruction builder for `PuffMetadata` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata pub struct PuffMetadataCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/remove_creator_verification.rs b/clients/rust/src/generated/instructions/remove_creator_verification.rs index f066b0d1..75631869 100644 --- a/clients/rust/src/generated/instructions/remove_creator_verification.rs +++ b/clients/rust/src/generated/instructions/remove_creator_verification.rs @@ -58,7 +58,12 @@ impl RemoveCreatorVerificationInstructionData { } } -/// Instruction builder. +/// Instruction builder for `RemoveCreatorVerification`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` creator #[derive(Default)] pub struct RemoveCreatorVerificationBuilder { metadata: Option, @@ -214,7 +219,12 @@ impl<'a, 'b> RemoveCreatorVerificationCpi<'a, 'b> { } } -/// `remove_creator_verification` CPI instruction builder. +/// Instruction builder for `RemoveCreatorVerification` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` creator pub struct RemoveCreatorVerificationCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke.rs b/clients/rust/src/generated/instructions/revoke.rs index edaef781..7cfbe1ae 100644 --- a/clients/rust/src/generated/instructions/revoke.rs +++ b/clients/rust/src/generated/instructions/revoke.rs @@ -185,7 +185,24 @@ pub struct RevokeInstructionArgs { pub revoke_args: RevokeArgs, } -/// Instruction builder. +/// Instruction builder for `Revoke`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeBuilder { delegate_record: Option, @@ -666,7 +683,24 @@ impl<'a, 'b> RevokeCpi<'a, 'b> { } } -/// `revoke` CPI instruction builder. +/// Instruction builder for `Revoke` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_authority_item_v1.rs b/clients/rust/src/generated/instructions/revoke_authority_item_v1.rs index 4d33efc7..d1753e9a 100644 --- a/clients/rust/src/generated/instructions/revoke_authority_item_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_authority_item_v1.rs @@ -178,7 +178,24 @@ impl RevokeAuthorityItemV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeAuthorityItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeAuthorityItemV1Builder { delegate_record: Option, @@ -646,7 +663,24 @@ impl<'a, 'b> RevokeAuthorityItemV1Cpi<'a, 'b> { } } -/// `revoke_authority_item_v1` CPI instruction builder. +/// Instruction builder for `RevokeAuthorityItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeAuthorityItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_collection_authority.rs b/clients/rust/src/generated/instructions/revoke_collection_authority.rs index 213760d4..33d0df97 100644 --- a/clients/rust/src/generated/instructions/revoke_collection_authority.rs +++ b/clients/rust/src/generated/instructions/revoke_collection_authority.rs @@ -75,7 +75,15 @@ impl RevokeCollectionAuthorityInstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeCollectionAuthority`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_authority_record +/// 1. `[writable]` delegate_authority +/// 2. `[writable, signer]` revoke_authority +/// 3. `[]` metadata +/// 4. `[]` mint #[derive(Default)] pub struct RevokeCollectionAuthorityBuilder { collection_authority_record: Option, @@ -298,7 +306,15 @@ impl<'a, 'b> RevokeCollectionAuthorityCpi<'a, 'b> { } } -/// `revoke_collection_authority` CPI instruction builder. +/// Instruction builder for `RevokeCollectionAuthority` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_authority_record +/// 1. `[writable]` delegate_authority +/// 2. `[writable, signer]` revoke_authority +/// 3. `[]` metadata +/// 4. `[]` mint pub struct RevokeCollectionAuthorityCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_collection_item_v1.rs b/clients/rust/src/generated/instructions/revoke_collection_item_v1.rs index 4b78dba2..0fe8d895 100644 --- a/clients/rust/src/generated/instructions/revoke_collection_item_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_collection_item_v1.rs @@ -178,7 +178,24 @@ impl RevokeCollectionItemV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeCollectionItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeCollectionItemV1Builder { delegate_record: Option, @@ -646,7 +663,24 @@ impl<'a, 'b> RevokeCollectionItemV1Cpi<'a, 'b> { } } -/// `revoke_collection_item_v1` CPI instruction builder. +/// Instruction builder for `RevokeCollectionItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeCollectionItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_collection_v1.rs b/clients/rust/src/generated/instructions/revoke_collection_v1.rs index f1056a7a..f621e191 100644 --- a/clients/rust/src/generated/instructions/revoke_collection_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_collection_v1.rs @@ -178,7 +178,24 @@ impl RevokeCollectionV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeCollectionV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeCollectionV1Builder { delegate_record: Option, @@ -646,7 +663,24 @@ impl<'a, 'b> RevokeCollectionV1Cpi<'a, 'b> { } } -/// `revoke_collection_v1` CPI instruction builder. +/// Instruction builder for `RevokeCollectionV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeCollectionV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_data_item_v1.rs b/clients/rust/src/generated/instructions/revoke_data_item_v1.rs index 062942b3..9bf81aae 100644 --- a/clients/rust/src/generated/instructions/revoke_data_item_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_data_item_v1.rs @@ -176,7 +176,24 @@ impl RevokeDataItemV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeDataItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeDataItemV1Builder { delegate_record: Option, @@ -642,7 +659,24 @@ impl<'a, 'b> RevokeDataItemV1Cpi<'a, 'b> { } } -/// `revoke_data_item_v1` CPI instruction builder. +/// Instruction builder for `RevokeDataItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeDataItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_data_v1.rs b/clients/rust/src/generated/instructions/revoke_data_v1.rs index cffd0df5..a34af0c5 100644 --- a/clients/rust/src/generated/instructions/revoke_data_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_data_v1.rs @@ -176,7 +176,24 @@ impl RevokeDataV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeDataV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeDataV1Builder { delegate_record: Option, @@ -642,7 +659,24 @@ impl<'a, 'b> RevokeDataV1Cpi<'a, 'b> { } } -/// `revoke_data_v1` CPI instruction builder. +/// Instruction builder for `RevokeDataV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeDataV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_locked_transfer_v1.rs b/clients/rust/src/generated/instructions/revoke_locked_transfer_v1.rs index 2633ebbe..fc9cd13d 100644 --- a/clients/rust/src/generated/instructions/revoke_locked_transfer_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_locked_transfer_v1.rs @@ -173,7 +173,24 @@ impl RevokeLockedTransferV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeLockedTransferV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeLockedTransferV1Builder { delegate_record: Option, @@ -632,7 +649,24 @@ impl<'a, 'b> RevokeLockedTransferV1Cpi<'a, 'b> { } } -/// `revoke_locked_transfer_v1` CPI instruction builder. +/// Instruction builder for `RevokeLockedTransferV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeLockedTransferV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_migration_v1.rs b/clients/rust/src/generated/instructions/revoke_migration_v1.rs index 1de4c334..412245ab 100644 --- a/clients/rust/src/generated/instructions/revoke_migration_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_migration_v1.rs @@ -173,7 +173,24 @@ impl RevokeMigrationV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeMigrationV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeMigrationV1Builder { delegate_record: Option, @@ -632,7 +649,24 @@ impl<'a, 'b> RevokeMigrationV1Cpi<'a, 'b> { } } -/// `revoke_migration_v1` CPI instruction builder. +/// Instruction builder for `RevokeMigrationV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeMigrationV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_programmable_config_item_v1.rs b/clients/rust/src/generated/instructions/revoke_programmable_config_item_v1.rs index 1bac1d42..f34fbd4d 100644 --- a/clients/rust/src/generated/instructions/revoke_programmable_config_item_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_programmable_config_item_v1.rs @@ -178,7 +178,24 @@ impl RevokeProgrammableConfigItemV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeProgrammableConfigItemV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeProgrammableConfigItemV1Builder { delegate_record: Option, @@ -646,7 +663,24 @@ impl<'a, 'b> RevokeProgrammableConfigItemV1Cpi<'a, 'b> { } } -/// `revoke_programmable_config_item_v1` CPI instruction builder. +/// Instruction builder for `RevokeProgrammableConfigItemV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeProgrammableConfigItemV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_programmable_config_v1.rs b/clients/rust/src/generated/instructions/revoke_programmable_config_v1.rs index 93ea0f02..a9f4c5c9 100644 --- a/clients/rust/src/generated/instructions/revoke_programmable_config_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_programmable_config_v1.rs @@ -178,7 +178,24 @@ impl RevokeProgrammableConfigV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeProgrammableConfigV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeProgrammableConfigV1Builder { delegate_record: Option, @@ -646,7 +663,24 @@ impl<'a, 'b> RevokeProgrammableConfigV1Cpi<'a, 'b> { } } -/// `revoke_programmable_config_v1` CPI instruction builder. +/// Instruction builder for `RevokeProgrammableConfigV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable, optional]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeProgrammableConfigV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_sale_v1.rs b/clients/rust/src/generated/instructions/revoke_sale_v1.rs index 05892222..18fef24c 100644 --- a/clients/rust/src/generated/instructions/revoke_sale_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_sale_v1.rs @@ -171,7 +171,24 @@ impl RevokeSaleV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeSaleV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeSaleV1Builder { delegate_record: Option, @@ -628,7 +645,24 @@ impl<'a, 'b> RevokeSaleV1Cpi<'a, 'b> { } } -/// `revoke_sale_v1` CPI instruction builder. +/// Instruction builder for `RevokeSaleV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeSaleV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_staking_v1.rs b/clients/rust/src/generated/instructions/revoke_staking_v1.rs index c71aa168..baf44897 100644 --- a/clients/rust/src/generated/instructions/revoke_staking_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_staking_v1.rs @@ -171,7 +171,24 @@ impl RevokeStakingV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeStakingV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeStakingV1Builder { delegate_record: Option, @@ -628,7 +645,24 @@ impl<'a, 'b> RevokeStakingV1Cpi<'a, 'b> { } } -/// `revoke_staking_v1` CPI instruction builder. +/// Instruction builder for `RevokeStakingV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeStakingV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_standard_v1.rs b/clients/rust/src/generated/instructions/revoke_standard_v1.rs index 701919b0..5647235a 100644 --- a/clients/rust/src/generated/instructions/revoke_standard_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_standard_v1.rs @@ -171,7 +171,24 @@ impl RevokeStandardV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeStandardV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeStandardV1Builder { delegate_record: Option, @@ -628,7 +645,24 @@ impl<'a, 'b> RevokeStandardV1Cpi<'a, 'b> { } } -/// `revoke_standard_v1` CPI instruction builder. +/// Instruction builder for `RevokeStandardV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeStandardV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_transfer_v1.rs b/clients/rust/src/generated/instructions/revoke_transfer_v1.rs index 6d228651..63a5a065 100644 --- a/clients/rust/src/generated/instructions/revoke_transfer_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_transfer_v1.rs @@ -171,7 +171,24 @@ impl RevokeTransferV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeTransferV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeTransferV1Builder { delegate_record: Option, @@ -628,7 +645,24 @@ impl<'a, 'b> RevokeTransferV1Cpi<'a, 'b> { } } -/// `revoke_transfer_v1` CPI instruction builder. +/// Instruction builder for `RevokeTransferV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeTransferV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_use_authority.rs b/clients/rust/src/generated/instructions/revoke_use_authority.rs index e928cf89..26fed6e9 100644 --- a/clients/rust/src/generated/instructions/revoke_use_authority.rs +++ b/clients/rust/src/generated/instructions/revoke_use_authority.rs @@ -98,7 +98,19 @@ impl RevokeUseAuthorityInstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeUseAuthority`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` use_authority_record +/// 1. `[writable, signer]` owner +/// 2. `[]` user +/// 3. `[writable]` owner_token_account +/// 4. `[]` mint +/// 5. `[]` metadata +/// 6. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` rent #[derive(Default)] pub struct RevokeUseAuthorityBuilder { use_authority_record: Option, @@ -400,7 +412,19 @@ impl<'a, 'b> RevokeUseAuthorityCpi<'a, 'b> { } } -/// `revoke_use_authority` CPI instruction builder. +/// Instruction builder for `RevokeUseAuthority` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` use_authority_record +/// 1. `[writable, signer]` owner +/// 2. `[]` user +/// 3. `[writable]` owner_token_account +/// 4. `[]` mint +/// 5. `[]` metadata +/// 6. `[]` token_program +/// 7. `[]` system_program +/// 8. `[optional]` rent pub struct RevokeUseAuthorityCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/revoke_utility_v1.rs b/clients/rust/src/generated/instructions/revoke_utility_v1.rs index 697ab444..207c7360 100644 --- a/clients/rust/src/generated/instructions/revoke_utility_v1.rs +++ b/clients/rust/src/generated/instructions/revoke_utility_v1.rs @@ -171,7 +171,24 @@ impl RevokeUtilityV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `RevokeUtilityV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 10. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 11. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules #[derive(Default)] pub struct RevokeUtilityV1Builder { delegate_record: Option, @@ -628,7 +645,24 @@ impl<'a, 'b> RevokeUtilityV1Cpi<'a, 'b> { } } -/// `revoke_utility_v1` CPI instruction builder. +/// Instruction builder for `RevokeUtilityV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, optional]` delegate_record +/// 1. `[]` delegate +/// 2. `[writable]` metadata +/// 3. `[optional]` master_edition +/// 4. `[writable, optional]` token_record +/// 5. `[]` mint +/// 6. `[writable]` token +/// 7. `[signer]` authority +/// 8. `[writable, signer]` payer +/// 9. `[]` system_program +/// 10. `[]` sysvar_instructions +/// 11. `[optional]` spl_token_program +/// 12. `[optional]` authorization_rules_program +/// 13. `[optional]` authorization_rules pub struct RevokeUtilityV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/set_and_verify_collection.rs b/clients/rust/src/generated/instructions/set_and_verify_collection.rs index 2bb0e12c..b91e5232 100644 --- a/clients/rust/src/generated/instructions/set_and_verify_collection.rs +++ b/clients/rust/src/generated/instructions/set_and_verify_collection.rs @@ -95,7 +95,18 @@ impl SetAndVerifyCollectionInstructionData { } } -/// Instruction builder. +/// Instruction builder for `SetAndVerifyCollection`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` update_authority +/// 4. `[]` collection_mint +/// 5. `[]` collection +/// 6. `[]` collection_master_edition_account +/// 7. `[optional]` collection_authority_record #[derive(Default)] pub struct SetAndVerifyCollectionBuilder { metadata: Option, @@ -383,7 +394,18 @@ impl<'a, 'b> SetAndVerifyCollectionCpi<'a, 'b> { } } -/// `set_and_verify_collection` CPI instruction builder. +/// Instruction builder for `SetAndVerifyCollection` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` update_authority +/// 4. `[]` collection_mint +/// 5. `[]` collection +/// 6. `[]` collection_master_edition_account +/// 7. `[optional]` collection_authority_record pub struct SetAndVerifyCollectionCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/set_and_verify_sized_collection_item.rs b/clients/rust/src/generated/instructions/set_and_verify_sized_collection_item.rs index 59d7857b..f6f41754 100644 --- a/clients/rust/src/generated/instructions/set_and_verify_sized_collection_item.rs +++ b/clients/rust/src/generated/instructions/set_and_verify_sized_collection_item.rs @@ -95,7 +95,18 @@ impl SetAndVerifySizedCollectionItemInstructionData { } } -/// Instruction builder. +/// Instruction builder for `SetAndVerifySizedCollectionItem`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` update_authority +/// 4. `[]` collection_mint +/// 5. `[writable]` collection +/// 6. `[]` collection_master_edition_account +/// 7. `[optional]` collection_authority_record #[derive(Default)] pub struct SetAndVerifySizedCollectionItemBuilder { metadata: Option, @@ -383,7 +394,18 @@ impl<'a, 'b> SetAndVerifySizedCollectionItemCpi<'a, 'b> { } } -/// `set_and_verify_sized_collection_item` CPI instruction builder. +/// Instruction builder for `SetAndVerifySizedCollectionItem` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` update_authority +/// 4. `[]` collection_mint +/// 5. `[writable]` collection +/// 6. `[]` collection_master_edition_account +/// 7. `[optional]` collection_authority_record pub struct SetAndVerifySizedCollectionItemCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/set_collection_size.rs b/clients/rust/src/generated/instructions/set_collection_size.rs index f338c998..f553d995 100644 --- a/clients/rust/src/generated/instructions/set_collection_size.rs +++ b/clients/rust/src/generated/instructions/set_collection_size.rs @@ -85,7 +85,14 @@ pub struct SetCollectionSizeInstructionArgs { pub set_collection_size_args: SetCollectionSizeArgs, } -/// Instruction builder. +/// Instruction builder for `SetCollectionSize`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[]` collection_mint +/// 3. `[optional]` collection_authority_record #[derive(Default)] pub struct SetCollectionSizeBuilder { collection_metadata: Option, @@ -319,7 +326,14 @@ impl<'a, 'b> SetCollectionSizeCpi<'a, 'b> { } } -/// `set_collection_size` CPI instruction builder. +/// Instruction builder for `SetCollectionSize` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` collection_metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[]` collection_mint +/// 3. `[optional]` collection_authority_record pub struct SetCollectionSizeCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/set_token_standard.rs b/clients/rust/src/generated/instructions/set_token_standard.rs index 0c7fde7d..a894f08f 100644 --- a/clients/rust/src/generated/instructions/set_token_standard.rs +++ b/clients/rust/src/generated/instructions/set_token_standard.rs @@ -68,7 +68,14 @@ impl SetTokenStandardInstructionData { } } -/// Instruction builder. +/// Instruction builder for `SetTokenStandard`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` update_authority +/// 2. `[]` mint +/// 3. `[optional]` edition #[derive(Default)] pub struct SetTokenStandardBuilder { metadata: Option, @@ -266,7 +273,14 @@ impl<'a, 'b> SetTokenStandardCpi<'a, 'b> { } } -/// `set_token_standard` CPI instruction builder. +/// Instruction builder for `SetTokenStandard` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` update_authority +/// 2. `[]` mint +/// 3. `[optional]` edition pub struct SetTokenStandardCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/sign_metadata.rs b/clients/rust/src/generated/instructions/sign_metadata.rs index c58e1b5b..f679c2d7 100644 --- a/clients/rust/src/generated/instructions/sign_metadata.rs +++ b/clients/rust/src/generated/instructions/sign_metadata.rs @@ -56,7 +56,12 @@ impl SignMetadataInstructionData { } } -/// Instruction builder. +/// Instruction builder for `SignMetadata`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` creator #[derive(Default)] pub struct SignMetadataBuilder { metadata: Option, @@ -210,7 +215,12 @@ impl<'a, 'b> SignMetadataCpi<'a, 'b> { } } -/// `sign_metadata` CPI instruction builder. +/// Instruction builder for `SignMetadata` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` creator pub struct SignMetadataCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/thaw_delegated_account.rs b/clients/rust/src/generated/instructions/thaw_delegated_account.rs index 20240e96..eef201db 100644 --- a/clients/rust/src/generated/instructions/thaw_delegated_account.rs +++ b/clients/rust/src/generated/instructions/thaw_delegated_account.rs @@ -75,7 +75,15 @@ impl ThawDelegatedAccountInstructionData { } } -/// Instruction builder. +/// Instruction builder for `ThawDelegatedAccount`. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` delegate +/// 1. `[writable]` token_account +/// 2. `[]` edition +/// 3. `[]` mint +/// 4. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) #[derive(Default)] pub struct ThawDelegatedAccountBuilder { delegate: Option, @@ -288,7 +296,15 @@ impl<'a, 'b> ThawDelegatedAccountCpi<'a, 'b> { } } -/// `thaw_delegated_account` CPI instruction builder. +/// Instruction builder for `ThawDelegatedAccount` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable, signer]` delegate +/// 1. `[writable]` token_account +/// 2. `[]` edition +/// 3. `[]` mint +/// 4. `[]` token_program pub struct ThawDelegatedAccountCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/transfer.rs b/clients/rust/src/generated/instructions/transfer.rs index 0942babd..902bec7d 100644 --- a/clients/rust/src/generated/instructions/transfer.rs +++ b/clients/rust/src/generated/instructions/transfer.rs @@ -190,7 +190,27 @@ pub struct TransferInstructionArgs { pub transfer_args: TransferArgs, } -/// Instruction builder. +/// Instruction builder for `Transfer`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[]` token_owner +/// 2. `[writable]` destination_token +/// 3. `[]` destination_owner +/// 4. `[]` mint +/// 5. `[writable]` metadata +/// 6. `[optional]` edition +/// 7. `[writable, optional]` token_record +/// 8. `[writable, optional]` destination_token_record +/// 9. `[signer]` authority +/// 10. `[writable, signer]` payer +/// 11. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 12. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 13. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 14. `[optional]` spl_ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 15. `[optional]` authorization_rules_program +/// 16. `[optional]` authorization_rules #[derive(Default)] pub struct TransferBuilder { token: Option, @@ -725,7 +745,27 @@ impl<'a, 'b> TransferCpi<'a, 'b> { } } -/// `transfer` CPI instruction builder. +/// Instruction builder for `Transfer` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[]` token_owner +/// 2. `[writable]` destination_token +/// 3. `[]` destination_owner +/// 4. `[]` mint +/// 5. `[writable]` metadata +/// 6. `[optional]` edition +/// 7. `[writable, optional]` token_record +/// 8. `[writable, optional]` destination_token_record +/// 9. `[signer]` authority +/// 10. `[writable, signer]` payer +/// 11. `[]` system_program +/// 12. `[]` sysvar_instructions +/// 13. `[]` spl_token_program +/// 14. `[]` spl_ata_program +/// 15. `[optional]` authorization_rules_program +/// 16. `[optional]` authorization_rules pub struct TransferCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/transfer_out_of_escrow.rs b/clients/rust/src/generated/instructions/transfer_out_of_escrow.rs index 8cb72c0c..29e43318 100644 --- a/clients/rust/src/generated/instructions/transfer_out_of_escrow.rs +++ b/clients/rust/src/generated/instructions/transfer_out_of_escrow.rs @@ -136,7 +136,23 @@ pub struct TransferOutOfEscrowInstructionArgs { pub amount: u64, } -/// Instruction builder. +/// Instruction builder for `TransferOutOfEscrow`. +/// +/// ### Accounts: +/// +/// 0. `[]` escrow +/// 1. `[writable]` metadata +/// 2. `[writable, signer]` payer +/// 3. `[]` attribute_mint +/// 4. `[writable]` attribute_src +/// 5. `[writable]` attribute_dst +/// 6. `[]` escrow_mint +/// 7. `[]` escrow_account +/// 8. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 9. `[optional]` ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 10. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 11. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 12. `[signer, optional]` authority #[derive(Default)] pub struct TransferOutOfEscrowBuilder { escrow: Option, @@ -526,7 +542,23 @@ impl<'a, 'b> TransferOutOfEscrowCpi<'a, 'b> { } } -/// `transfer_out_of_escrow` CPI instruction builder. +/// Instruction builder for `TransferOutOfEscrow` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[]` escrow +/// 1. `[writable]` metadata +/// 2. `[writable, signer]` payer +/// 3. `[]` attribute_mint +/// 4. `[writable]` attribute_src +/// 5. `[writable]` attribute_dst +/// 6. `[]` escrow_mint +/// 7. `[]` escrow_account +/// 8. `[]` system_program +/// 9. `[]` ata_program +/// 10. `[]` token_program +/// 11. `[]` sysvar_instructions +/// 12. `[signer, optional]` authority pub struct TransferOutOfEscrowCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/transfer_v1.rs b/clients/rust/src/generated/instructions/transfer_v1.rs index db660c51..310272af 100644 --- a/clients/rust/src/generated/instructions/transfer_v1.rs +++ b/clients/rust/src/generated/instructions/transfer_v1.rs @@ -195,7 +195,27 @@ pub struct TransferV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `TransferV1`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[]` token_owner +/// 2. `[writable]` destination_token +/// 3. `[]` destination_owner +/// 4. `[]` mint +/// 5. `[writable]` metadata +/// 6. `[optional]` edition +/// 7. `[writable, optional]` token_record +/// 8. `[writable, optional]` destination_token_record +/// 9. `[signer]` authority +/// 10. `[writable, signer]` payer +/// 11. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 12. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 13. `[optional]` spl_token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 14. `[optional]` spl_ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 15. `[optional]` authorization_rules_program +/// 16. `[optional]` authorization_rules #[derive(Default)] pub struct TransferV1Builder { token: Option, @@ -736,7 +756,27 @@ impl<'a, 'b> TransferV1Cpi<'a, 'b> { } } -/// `transfer_v1` CPI instruction builder. +/// Instruction builder for `TransferV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` token +/// 1. `[]` token_owner +/// 2. `[writable]` destination_token +/// 3. `[]` destination_owner +/// 4. `[]` mint +/// 5. `[writable]` metadata +/// 6. `[optional]` edition +/// 7. `[writable, optional]` token_record +/// 8. `[writable, optional]` destination_token_record +/// 9. `[signer]` authority +/// 10. `[writable, signer]` payer +/// 11. `[]` system_program +/// 12. `[]` sysvar_instructions +/// 13. `[]` spl_token_program +/// 14. `[]` spl_ata_program +/// 15. `[optional]` authorization_rules_program +/// 16. `[optional]` authorization_rules pub struct TransferV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/unlock.rs b/clients/rust/src/generated/instructions/unlock.rs index 809d300b..efad1033 100644 --- a/clients/rust/src/generated/instructions/unlock.rs +++ b/clients/rust/src/generated/instructions/unlock.rs @@ -173,7 +173,23 @@ pub struct UnlockInstructionArgs { pub unlock_args: UnlockArgs, } -/// Instruction builder. +/// Instruction builder for `Unlock`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 9. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules #[derive(Default)] pub struct UnlockBuilder { authority: Option, @@ -624,7 +640,23 @@ impl<'a, 'b> UnlockCpi<'a, 'b> { } } -/// `unlock` CPI instruction builder. +/// Instruction builder for `Unlock` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[]` system_program +/// 9. `[]` sysvar_instructions +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules pub struct UnlockCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/unlock_v1.rs b/clients/rust/src/generated/instructions/unlock_v1.rs index d0884a06..83f3b4da 100644 --- a/clients/rust/src/generated/instructions/unlock_v1.rs +++ b/clients/rust/src/generated/instructions/unlock_v1.rs @@ -177,7 +177,23 @@ pub struct UnlockV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UnlockV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 9. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules #[derive(Default)] pub struct UnlockV1Builder { authority: Option, @@ -629,7 +645,23 @@ impl<'a, 'b> UnlockV1Cpi<'a, 'b> { } } -/// `unlock_v1` CPI instruction builder. +/// Instruction builder for `UnlockV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` token_owner +/// 2. `[writable]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, optional]` token_record +/// 7. `[writable, signer]` payer +/// 8. `[]` system_program +/// 9. `[]` sysvar_instructions +/// 10. `[optional]` spl_token_program +/// 11. `[optional]` authorization_rules_program +/// 12. `[optional]` authorization_rules pub struct UnlockV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/unverify.rs b/clients/rust/src/generated/instructions/unverify.rs index f519ccfe..08bcc0fd 100644 --- a/clients/rust/src/generated/instructions/unverify.rs +++ b/clients/rust/src/generated/instructions/unverify.rs @@ -120,7 +120,17 @@ pub struct UnverifyInstructionArgs { pub verification_args: VerificationArgs, } -/// Instruction builder. +/// Instruction builder for `Unverify`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 6. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) #[derive(Default)] pub struct UnverifyBuilder { authority: Option, @@ -430,7 +440,17 @@ impl<'a, 'b> UnverifyCpi<'a, 'b> { } } -/// `unverify` CPI instruction builder. +/// Instruction builder for `Unverify` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[]` system_program +/// 6. `[]` sysvar_instructions pub struct UnverifyCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/unverify_collection.rs b/clients/rust/src/generated/instructions/unverify_collection.rs index 9180bee9..1a822c8e 100644 --- a/clients/rust/src/generated/instructions/unverify_collection.rs +++ b/clients/rust/src/generated/instructions/unverify_collection.rs @@ -84,7 +84,16 @@ impl UnverifyCollectionInstructionData { } } -/// Instruction builder. +/// Instruction builder for `UnverifyCollection`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[]` collection_mint +/// 3. `[]` collection +/// 4. `[]` collection_master_edition_account +/// 5. `[optional]` collection_authority_record #[derive(Default)] pub struct UnverifyCollectionBuilder { metadata: Option, @@ -333,7 +342,16 @@ impl<'a, 'b> UnverifyCollectionCpi<'a, 'b> { } } -/// `unverify_collection` CPI instruction builder. +/// Instruction builder for `UnverifyCollection` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[]` collection_mint +/// 3. `[]` collection +/// 4. `[]` collection_master_edition_account +/// 5. `[optional]` collection_authority_record pub struct UnverifyCollectionCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/unverify_collection_v1.rs b/clients/rust/src/generated/instructions/unverify_collection_v1.rs index f831900a..6ec6f575 100644 --- a/clients/rust/src/generated/instructions/unverify_collection_v1.rs +++ b/clients/rust/src/generated/instructions/unverify_collection_v1.rs @@ -106,7 +106,17 @@ impl UnverifyCollectionV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `UnverifyCollectionV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 6. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) #[derive(Default)] pub struct UnverifyCollectionV1Builder { authority: Option, @@ -390,7 +400,17 @@ impl<'a, 'b> UnverifyCollectionV1Cpi<'a, 'b> { } } -/// `unverify_collection_v1` CPI instruction builder. +/// Instruction builder for `UnverifyCollectionV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[]` system_program +/// 6. `[]` sysvar_instructions pub struct UnverifyCollectionV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/unverify_creator_v1.rs b/clients/rust/src/generated/instructions/unverify_creator_v1.rs index 5d2fac36..cb4a4ef1 100644 --- a/clients/rust/src/generated/instructions/unverify_creator_v1.rs +++ b/clients/rust/src/generated/instructions/unverify_creator_v1.rs @@ -113,7 +113,17 @@ impl UnverifyCreatorV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `UnverifyCreatorV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 6. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) #[derive(Default)] pub struct UnverifyCreatorV1Builder { authority: Option, @@ -407,7 +417,17 @@ impl<'a, 'b> UnverifyCreatorV1Cpi<'a, 'b> { } } -/// `unverify_creator_v1` CPI instruction builder. +/// Instruction builder for `UnverifyCreatorV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[]` system_program +/// 6. `[]` sysvar_instructions pub struct UnverifyCreatorV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/unverify_sized_collection_item.rs b/clients/rust/src/generated/instructions/unverify_sized_collection_item.rs index f35544dc..7a9a7b36 100644 --- a/clients/rust/src/generated/instructions/unverify_sized_collection_item.rs +++ b/clients/rust/src/generated/instructions/unverify_sized_collection_item.rs @@ -89,7 +89,17 @@ impl UnverifySizedCollectionItemInstructionData { } } -/// Instruction builder. +/// Instruction builder for `UnverifySizedCollectionItem`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` collection_mint +/// 4. `[writable]` collection +/// 5. `[]` collection_master_edition_account +/// 6. `[optional]` collection_authority_record #[derive(Default)] pub struct UnverifySizedCollectionItemBuilder { metadata: Option, @@ -356,7 +366,17 @@ impl<'a, 'b> UnverifySizedCollectionItemCpi<'a, 'b> { } } -/// `unverify_sized_collection_item` CPI instruction builder. +/// Instruction builder for `UnverifySizedCollectionItem` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` collection_mint +/// 4. `[writable]` collection +/// 5. `[]` collection_master_edition_account +/// 6. `[optional]` collection_authority_record pub struct UnverifySizedCollectionItemCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update.rs b/clients/rust/src/generated/instructions/update.rs index cf06386c..cfb7659b 100644 --- a/clients/rust/src/generated/instructions/update.rs +++ b/clients/rust/src/generated/instructions/update.rs @@ -154,7 +154,21 @@ pub struct UpdateInstructionArgs { pub update_args: UpdateArgs, } -/// Instruction builder. +/// Instruction builder for `Update`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateBuilder { authority: Option, @@ -552,7 +566,21 @@ impl<'a, 'b> UpdateCpi<'a, 'b> { } } -/// `update` CPI instruction builder. +/// Instruction builder for `Update` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_authority_item_delegate_v2.rs b/clients/rust/src/generated/instructions/update_as_authority_item_delegate_v2.rs index 21b7918e..2b994d2f 100644 --- a/clients/rust/src/generated/instructions/update_as_authority_item_delegate_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_authority_item_delegate_v2.rs @@ -166,7 +166,21 @@ pub struct UpdateAsAuthorityItemDelegateV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsAuthorityItemDelegateV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsAuthorityItemDelegateV2Builder { authority: Option, @@ -599,7 +613,21 @@ impl<'a, 'b> UpdateAsAuthorityItemDelegateV2Cpi<'a, 'b> { } } -/// `update_as_authority_item_delegate_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsAuthorityItemDelegateV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsAuthorityItemDelegateV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_collection_delegate_v2.rs b/clients/rust/src/generated/instructions/update_as_collection_delegate_v2.rs index b8cc3fa2..322890af 100644 --- a/clients/rust/src/generated/instructions/update_as_collection_delegate_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_collection_delegate_v2.rs @@ -162,7 +162,21 @@ pub struct UpdateAsCollectionDelegateV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsCollectionDelegateV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsCollectionDelegateV2Builder { authority: Option, @@ -571,7 +585,21 @@ impl<'a, 'b> UpdateAsCollectionDelegateV2Cpi<'a, 'b> { } } -/// `update_as_collection_delegate_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsCollectionDelegateV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsCollectionDelegateV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_collection_item_delegate_v2.rs b/clients/rust/src/generated/instructions/update_as_collection_item_delegate_v2.rs index 87379596..d282c379 100644 --- a/clients/rust/src/generated/instructions/update_as_collection_item_delegate_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_collection_item_delegate_v2.rs @@ -162,7 +162,21 @@ pub struct UpdateAsCollectionItemDelegateV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsCollectionItemDelegateV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsCollectionItemDelegateV2Builder { authority: Option, @@ -571,7 +585,21 @@ impl<'a, 'b> UpdateAsCollectionItemDelegateV2Cpi<'a, 'b> { } } -/// `update_as_collection_item_delegate_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsCollectionItemDelegateV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsCollectionItemDelegateV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_data_delegate_v2.rs b/clients/rust/src/generated/instructions/update_as_data_delegate_v2.rs index 4f6cca37..b325c78a 100644 --- a/clients/rust/src/generated/instructions/update_as_data_delegate_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_data_delegate_v2.rs @@ -162,7 +162,21 @@ pub struct UpdateAsDataDelegateV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsDataDelegateV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsDataDelegateV2Builder { authority: Option, @@ -571,7 +585,21 @@ impl<'a, 'b> UpdateAsDataDelegateV2Cpi<'a, 'b> { } } -/// `update_as_data_delegate_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsDataDelegateV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsDataDelegateV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_data_item_delegate_v2.rs b/clients/rust/src/generated/instructions/update_as_data_item_delegate_v2.rs index 581c44a7..69cc5139 100644 --- a/clients/rust/src/generated/instructions/update_as_data_item_delegate_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_data_item_delegate_v2.rs @@ -162,7 +162,21 @@ pub struct UpdateAsDataItemDelegateV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsDataItemDelegateV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsDataItemDelegateV2Builder { authority: Option, @@ -571,7 +585,21 @@ impl<'a, 'b> UpdateAsDataItemDelegateV2Cpi<'a, 'b> { } } -/// `update_as_data_item_delegate_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsDataItemDelegateV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsDataItemDelegateV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_programmable_config_delegate_v2.rs b/clients/rust/src/generated/instructions/update_as_programmable_config_delegate_v2.rs index 550628f3..c1572b15 100644 --- a/clients/rust/src/generated/instructions/update_as_programmable_config_delegate_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_programmable_config_delegate_v2.rs @@ -155,7 +155,21 @@ pub struct UpdateAsProgrammableConfigDelegateV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsProgrammableConfigDelegateV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsProgrammableConfigDelegateV2Builder { authority: Option, @@ -555,7 +569,21 @@ impl<'a, 'b> UpdateAsProgrammableConfigDelegateV2Cpi<'a, 'b> { } } -/// `update_as_programmable_config_delegate_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsProgrammableConfigDelegateV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsProgrammableConfigDelegateV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_programmable_config_item_delegate_v2.rs b/clients/rust/src/generated/instructions/update_as_programmable_config_item_delegate_v2.rs index f0f3d431..d00f159c 100644 --- a/clients/rust/src/generated/instructions/update_as_programmable_config_item_delegate_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_programmable_config_item_delegate_v2.rs @@ -155,7 +155,21 @@ pub struct UpdateAsProgrammableConfigItemDelegateV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsProgrammableConfigItemDelegateV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsProgrammableConfigItemDelegateV2Builder { authority: Option, @@ -555,7 +569,21 @@ impl<'a, 'b> UpdateAsProgrammableConfigItemDelegateV2Cpi<'a, 'b> { } } -/// `update_as_programmable_config_item_delegate_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsProgrammableConfigItemDelegateV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsProgrammableConfigItemDelegateV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_as_update_authority_v2.rs b/clients/rust/src/generated/instructions/update_as_update_authority_v2.rs index 5076bef3..9304607f 100644 --- a/clients/rust/src/generated/instructions/update_as_update_authority_v2.rs +++ b/clients/rust/src/generated/instructions/update_as_update_authority_v2.rs @@ -176,7 +176,21 @@ pub struct UpdateAsUpdateAuthorityV2InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateAsUpdateAuthorityV2`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateAsUpdateAuthorityV2Builder { authority: Option, @@ -652,7 +666,21 @@ impl<'a, 'b> UpdateAsUpdateAuthorityV2Cpi<'a, 'b> { } } -/// `update_as_update_authority_v2` CPI instruction builder. +/// Instruction builder for `UpdateAsUpdateAuthorityV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateAsUpdateAuthorityV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_metadata_account_v2.rs b/clients/rust/src/generated/instructions/update_metadata_account_v2.rs index 81413a6a..e0653bf3 100644 --- a/clients/rust/src/generated/instructions/update_metadata_account_v2.rs +++ b/clients/rust/src/generated/instructions/update_metadata_account_v2.rs @@ -75,7 +75,12 @@ pub struct UpdateMetadataAccountV2InstructionArgs { pub is_mutable: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateMetadataAccountV2`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` update_authority #[derive(Default)] pub struct UpdateMetadataAccountV2Builder { metadata: Option, @@ -274,7 +279,12 @@ impl<'a, 'b> UpdateMetadataAccountV2Cpi<'a, 'b> { } } -/// `update_metadata_account_v2` CPI instruction builder. +/// Instruction builder for `UpdateMetadataAccountV2` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` update_authority pub struct UpdateMetadataAccountV2CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_primary_sale_happened_via_token.rs b/clients/rust/src/generated/instructions/update_primary_sale_happened_via_token.rs index e8854b8f..555f1239 100644 --- a/clients/rust/src/generated/instructions/update_primary_sale_happened_via_token.rs +++ b/clients/rust/src/generated/instructions/update_primary_sale_happened_via_token.rs @@ -62,7 +62,13 @@ impl UpdatePrimarySaleHappenedViaTokenInstructionData { } } -/// Instruction builder. +/// Instruction builder for `UpdatePrimarySaleHappenedViaToken`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` owner +/// 2. `[]` token #[derive(Default)] pub struct UpdatePrimarySaleHappenedViaTokenBuilder { metadata: Option, @@ -236,7 +242,13 @@ impl<'a, 'b> UpdatePrimarySaleHappenedViaTokenCpi<'a, 'b> { } } -/// `update_primary_sale_happened_via_token` CPI instruction builder. +/// Instruction builder for `UpdatePrimarySaleHappenedViaToken` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` owner +/// 2. `[]` token pub struct UpdatePrimarySaleHappenedViaTokenCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/update_v1.rs b/clients/rust/src/generated/instructions/update_v1.rs index d9a24daa..7474c062 100644 --- a/clients/rust/src/generated/instructions/update_v1.rs +++ b/clients/rust/src/generated/instructions/update_v1.rs @@ -172,7 +172,21 @@ pub struct UpdateV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UpdateV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules #[derive(Default)] pub struct UpdateV1Builder { authority: Option, @@ -638,7 +652,21 @@ impl<'a, 'b> UpdateV1Cpi<'a, 'b> { } } -/// `update_v1` CPI instruction builder. +/// Instruction builder for `UpdateV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[optional]` edition +/// 6. `[writable, signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` authorization_rules_program +/// 10. `[optional]` authorization_rules pub struct UpdateV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/use.rs b/clients/rust/src/generated/instructions/use.rs index 9b121699..e58c27b3 100644 --- a/clients/rust/src/generated/instructions/use.rs +++ b/clients/rust/src/generated/instructions/use.rs @@ -165,7 +165,22 @@ pub struct UseInstructionArgs { pub use_args: UseArgs, } -/// Instruction builder. +/// Instruction builder for `Use`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[writable, optional]` delegate_record +/// 2. `[writable, optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[writable, optional]` edition +/// 6. `[signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` spl_token_program +/// 10. `[optional]` authorization_rules_program +/// 11. `[optional]` authorization_rules #[derive(Default)] pub struct UseBuilder { authority: Option, @@ -594,7 +609,22 @@ impl<'a, 'b> UseCpi<'a, 'b> { } } -/// `use` CPI instruction builder. +/// Instruction builder for `Use` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[writable, optional]` delegate_record +/// 2. `[writable, optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[writable, optional]` edition +/// 6. `[signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` spl_token_program +/// 10. `[optional]` authorization_rules_program +/// 11. `[optional]` authorization_rules pub struct UseCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/use_v1.rs b/clients/rust/src/generated/instructions/use_v1.rs index d0fc246d..20cbd388 100644 --- a/clients/rust/src/generated/instructions/use_v1.rs +++ b/clients/rust/src/generated/instructions/use_v1.rs @@ -169,7 +169,22 @@ pub struct UseV1InstructionArgs { pub authorization_data: Option, } -/// Instruction builder. +/// Instruction builder for `UseV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[writable, optional]` delegate_record +/// 2. `[writable, optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[writable, optional]` edition +/// 6. `[signer]` payer +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) +/// 9. `[optional]` spl_token_program +/// 10. `[optional]` authorization_rules_program +/// 11. `[optional]` authorization_rules #[derive(Default)] pub struct UseV1Builder { authority: Option, @@ -599,7 +614,22 @@ impl<'a, 'b> UseV1Cpi<'a, 'b> { } } -/// `use_v1` CPI instruction builder. +/// Instruction builder for `UseV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[writable, optional]` delegate_record +/// 2. `[writable, optional]` token +/// 3. `[]` mint +/// 4. `[writable]` metadata +/// 5. `[writable, optional]` edition +/// 6. `[signer]` payer +/// 7. `[]` system_program +/// 8. `[]` sysvar_instructions +/// 9. `[optional]` spl_token_program +/// 10. `[optional]` authorization_rules_program +/// 11. `[optional]` authorization_rules pub struct UseV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/utilize.rs b/clients/rust/src/generated/instructions/utilize.rs index 54e6f90f..3e59ce6f 100644 --- a/clients/rust/src/generated/instructions/utilize.rs +++ b/clients/rust/src/generated/instructions/utilize.rs @@ -122,7 +122,21 @@ pub struct UtilizeInstructionArgs { pub number_of_uses: u64, } -/// Instruction builder. +/// Instruction builder for `Utilize`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable]` token_account +/// 2. `[writable]` mint +/// 3. `[writable, signer]` use_authority +/// 4. `[]` owner +/// 5. `[optional]` token_program (default to `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`) +/// 6. `[optional]` ata_program (default to `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`) +/// 7. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 8. `[optional]` rent (default to `SysvarRent111111111111111111111111111111111`) +/// 9. `[writable, optional]` use_authority_record +/// 10. `[optional]` burner #[derive(Default)] pub struct UtilizeBuilder { metadata: Option, @@ -481,7 +495,21 @@ impl<'a, 'b> UtilizeCpi<'a, 'b> { } } -/// `utilize` CPI instruction builder. +/// Instruction builder for `Utilize` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable]` token_account +/// 2. `[writable]` mint +/// 3. `[writable, signer]` use_authority +/// 4. `[]` owner +/// 5. `[]` token_program +/// 6. `[]` ata_program +/// 7. `[]` system_program +/// 8. `[]` rent +/// 9. `[writable, optional]` use_authority_record +/// 10. `[optional]` burner pub struct UtilizeCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/verify.rs b/clients/rust/src/generated/instructions/verify.rs index 50e35514..c0193fbd 100644 --- a/clients/rust/src/generated/instructions/verify.rs +++ b/clients/rust/src/generated/instructions/verify.rs @@ -133,7 +133,18 @@ pub struct VerifyInstructionArgs { pub verification_args: VerificationArgs, } -/// Instruction builder. +/// Instruction builder for `Verify`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` collection_master_edition +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) #[derive(Default)] pub struct VerifyBuilder { authority: Option, @@ -474,7 +485,18 @@ impl<'a, 'b> VerifyCpi<'a, 'b> { } } -/// `verify` CPI instruction builder. +/// Instruction builder for `Verify` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` collection_master_edition +/// 6. `[]` system_program +/// 7. `[]` sysvar_instructions pub struct VerifyCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/verify_collection.rs b/clients/rust/src/generated/instructions/verify_collection.rs index 63c30a60..bcf040db 100644 --- a/clients/rust/src/generated/instructions/verify_collection.rs +++ b/clients/rust/src/generated/instructions/verify_collection.rs @@ -87,7 +87,17 @@ impl VerifyCollectionInstructionData { } } -/// Instruction builder. +/// Instruction builder for `VerifyCollection`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` collection_mint +/// 4. `[]` collection +/// 5. `[]` collection_master_edition_account +/// 6. `[optional]` collection_authority_record #[derive(Default)] pub struct VerifyCollectionBuilder { metadata: Option, @@ -352,7 +362,17 @@ impl<'a, 'b> VerifyCollectionCpi<'a, 'b> { } } -/// `verify_collection` CPI instruction builder. +/// Instruction builder for `VerifyCollection` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[writable, signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` collection_mint +/// 4. `[]` collection +/// 5. `[]` collection_master_edition_account +/// 6. `[optional]` collection_authority_record pub struct VerifyCollectionCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/verify_collection_v1.rs b/clients/rust/src/generated/instructions/verify_collection_v1.rs index e27c3fa7..9f02ea5d 100644 --- a/clients/rust/src/generated/instructions/verify_collection_v1.rs +++ b/clients/rust/src/generated/instructions/verify_collection_v1.rs @@ -119,7 +119,18 @@ impl VerifyCollectionV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `VerifyCollectionV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` collection_master_edition +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) #[derive(Default)] pub struct VerifyCollectionV1Builder { authority: Option, @@ -434,7 +445,18 @@ impl<'a, 'b> VerifyCollectionV1Cpi<'a, 'b> { } } -/// `verify_collection_v1` CPI instruction builder. +/// Instruction builder for `VerifyCollectionV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` collection_master_edition +/// 6. `[]` system_program +/// 7. `[]` sysvar_instructions pub struct VerifyCollectionV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/verify_creator_v1.rs b/clients/rust/src/generated/instructions/verify_creator_v1.rs index d9fcf453..faf120a6 100644 --- a/clients/rust/src/generated/instructions/verify_creator_v1.rs +++ b/clients/rust/src/generated/instructions/verify_creator_v1.rs @@ -124,7 +124,18 @@ impl VerifyCreatorV1InstructionData { } } -/// Instruction builder. +/// Instruction builder for `VerifyCreatorV1`. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` collection_master_edition +/// 6. `[optional]` system_program (default to `11111111111111111111111111111111`) +/// 7. `[optional]` sysvar_instructions (default to `Sysvar1nstructions1111111111111111111111111`) #[derive(Default)] pub struct VerifyCreatorV1Builder { authority: Option, @@ -447,7 +458,18 @@ impl<'a, 'b> VerifyCreatorV1Cpi<'a, 'b> { } } -/// `verify_creator_v1` CPI instruction builder. +/// Instruction builder for `VerifyCreatorV1` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[signer]` authority +/// 1. `[optional]` delegate_record +/// 2. `[writable]` metadata +/// 3. `[optional]` collection_mint +/// 4. `[writable, optional]` collection_metadata +/// 5. `[optional]` collection_master_edition +/// 6. `[]` system_program +/// 7. `[]` sysvar_instructions pub struct VerifyCreatorV1CpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/clients/rust/src/generated/instructions/verify_sized_collection_item.rs b/clients/rust/src/generated/instructions/verify_sized_collection_item.rs index 96de7086..1b1cd370 100644 --- a/clients/rust/src/generated/instructions/verify_sized_collection_item.rs +++ b/clients/rust/src/generated/instructions/verify_sized_collection_item.rs @@ -89,7 +89,17 @@ impl VerifySizedCollectionItemInstructionData { } } -/// Instruction builder. +/// Instruction builder for `VerifySizedCollectionItem`. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` collection_mint +/// 4. `[writable]` collection +/// 5. `[]` collection_master_edition_account +/// 6. `[optional]` collection_authority_record #[derive(Default)] pub struct VerifySizedCollectionItemBuilder { metadata: Option, @@ -356,7 +366,17 @@ impl<'a, 'b> VerifySizedCollectionItemCpi<'a, 'b> { } } -/// `verify_sized_collection_item` CPI instruction builder. +/// Instruction builder for `VerifySizedCollectionItem` via CPI. +/// +/// ### Accounts: +/// +/// 0. `[writable]` metadata +/// 1. `[signer]` collection_authority +/// 2. `[writable, signer]` payer +/// 3. `[]` collection_mint +/// 4. `[writable]` collection +/// 5. `[]` collection_master_edition_account +/// 6. `[optional]` collection_authority_record pub struct VerifySizedCollectionItemCpiBuilder<'a, 'b> { instruction: Box>, } diff --git a/package.json b/package.json index e2cb2810..9fe554f3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "devDependencies": { "@metaplex-foundation/amman": "^0.12.1", - "@metaplex-foundation/kinobi": "^0.16.6", + "@metaplex-foundation/kinobi": "^0.16.9", "@metaplex-foundation/shank-js": "^0.1.0", "typescript": "^4.9.4" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4aa75cc7..ba9b9a8f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,8 +5,8 @@ devDependencies: specifier: ^0.12.1 version: 0.12.1(typescript@4.9.5) '@metaplex-foundation/kinobi': - specifier: ^0.16.6 - version: 0.16.6 + specifier: ^0.16.9 + version: 0.16.9 '@metaplex-foundation/shank-js': specifier: ^0.1.0 version: 0.1.0 @@ -85,8 +85,8 @@ packages: resolution: {integrity: sha512-S9RulC2fFCFOQraz61bij+5YCHhSO9llJegK8c8Y6731fSi6snUSQJdCUqYS8AIgR0TKbQvdvgSyIIdbDFZbBA==} dev: true - /@metaplex-foundation/kinobi@0.16.6: - resolution: {integrity: sha512-5lGaBvDFCqmzSSKSn0uu6ieQhMtnk+w0KN35+x6kw0bGFSf5BjdVWNgXOb+63jMRNhWeguJrV+CXGM4aQBkuxg==} + /@metaplex-foundation/kinobi@0.16.9: + resolution: {integrity: sha512-3wXA9ni9CbMd/5T9xkx7PiSftOpLOpv4O8dU2DSji/a5PD+ls81U8G8CKKfAaF/cWqkQwqyZuYyDvSJnQNgHMw==} dependencies: '@noble/hashes': 1.2.0 chalk: 4.1.2 From 00f956408ac7019757b7a7a358191c6ec024494c Mon Sep 17 00:00:00 2001 From: febo Date: Fri, 24 Nov 2023 22:33:07 +0000 Subject: [PATCH 3/3] Add constants --- clients/rust/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients/rust/src/lib.rs b/clients/rust/src/lib.rs index b79da0fc..30418d9e 100644 --- a/clients/rust/src/lib.rs +++ b/clients/rust/src/lib.rs @@ -20,3 +20,9 @@ pub const MAX_CREATOR_LIMIT: usize = 5; /// Maximum number of bytes used by a creator data. pub const MAX_CREATOR_LEN: usize = 32 + 1 + 1; + +/// Maximum number of bytes used by a edition marker. +pub const MAX_EDITION_MARKER_SIZE: usize = 32; + +/// Number of bits used by a edition marker. +pub const EDITION_MARKER_BIT_SIZE: u64 = 248;