@macalinao/clients-mpl-bubblegum 0.0.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/generated/accounts/index.d.ts +2 -0
- package/dist/generated/accounts/treeConfig.d.ts +48 -0
- package/dist/generated/accounts/treeConfig.d.ts.map +1 -0
- package/dist/generated/accounts/treeConfig.js +84 -0
- package/dist/generated/accounts/treeConfig.js.map +1 -0
- package/dist/generated/accounts/voucher.d.ts +39 -0
- package/dist/generated/accounts/voucher.d.ts.map +1 -0
- package/dist/generated/accounts/voucher.js +75 -0
- package/dist/generated/accounts/voucher.js.map +1 -0
- package/dist/generated/errors/bubblegum.d.ts +131 -0
- package/dist/generated/errors/bubblegum.d.ts.map +1 -0
- package/dist/generated/errors/bubblegum.js +188 -0
- package/dist/generated/errors/bubblegum.js.map +1 -0
- package/dist/generated/errors/index.d.ts +1 -0
- package/dist/generated/index.d.ts +63 -0
- package/dist/generated/instructions/burn.d.ts +76 -0
- package/dist/generated/instructions/burn.d.ts.map +1 -0
- package/dist/generated/instructions/burn.js +176 -0
- package/dist/generated/instructions/burn.js.map +1 -0
- package/dist/generated/instructions/burnV2.d.ts +113 -0
- package/dist/generated/instructions/burnV2.d.ts.map +1 -0
- package/dist/generated/instructions/burnV2.js +247 -0
- package/dist/generated/instructions/burnV2.js.map +1 -0
- package/dist/generated/instructions/cancelRedeem.d.ts +60 -0
- package/dist/generated/instructions/cancelRedeem.d.ts.map +1 -0
- package/dist/generated/instructions/cancelRedeem.js +162 -0
- package/dist/generated/instructions/cancelRedeem.js.map +1 -0
- package/dist/generated/instructions/closeTreeV2.d.ts +69 -0
- package/dist/generated/instructions/closeTreeV2.d.ts.map +1 -0
- package/dist/generated/instructions/closeTreeV2.js +160 -0
- package/dist/generated/instructions/closeTreeV2.js.map +1 -0
- package/dist/generated/instructions/collectV2.d.ts +33 -0
- package/dist/generated/instructions/collectV2.d.ts.map +1 -0
- package/dist/generated/instructions/collectV2.js +72 -0
- package/dist/generated/instructions/collectV2.js.map +1 -0
- package/dist/generated/instructions/compress.d.ts +76 -0
- package/dist/generated/instructions/compress.d.ts.map +1 -0
- package/dist/generated/instructions/compress.js +241 -0
- package/dist/generated/instructions/compress.js.map +1 -0
- package/dist/generated/instructions/createTree.d.ts +68 -0
- package/dist/generated/instructions/createTree.d.ts.map +1 -0
- package/dist/generated/instructions/createTree.js +172 -0
- package/dist/generated/instructions/createTree.js.map +1 -0
- package/dist/generated/instructions/createTreeV2.d.ts +70 -0
- package/dist/generated/instructions/createTreeV2.d.ts.map +1 -0
- package/dist/generated/instructions/createTreeV2.js +176 -0
- package/dist/generated/instructions/createTreeV2.js.map +1 -0
- package/dist/generated/instructions/decompressV1.d.ts +79 -0
- package/dist/generated/instructions/decompressV1.d.ts.map +1 -0
- package/dist/generated/instructions/decompressV1.js +259 -0
- package/dist/generated/instructions/decompressV1.js.map +1 -0
- package/dist/generated/instructions/delegate.d.ts +79 -0
- package/dist/generated/instructions/delegate.d.ts.map +1 -0
- package/dist/generated/instructions/delegate.js +187 -0
- package/dist/generated/instructions/delegate.js.map +1 -0
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts +98 -0
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts.map +1 -0
- package/dist/generated/instructions/delegateAndFreezeV2.js +208 -0
- package/dist/generated/instructions/delegateAndFreezeV2.js.map +1 -0
- package/dist/generated/instructions/delegateV2.d.ts +98 -0
- package/dist/generated/instructions/delegateV2.d.ts.map +1 -0
- package/dist/generated/instructions/delegateV2.js +208 -0
- package/dist/generated/instructions/delegateV2.js.map +1 -0
- package/dist/generated/instructions/freezeV2.d.ts +105 -0
- package/dist/generated/instructions/freezeV2.d.ts.map +1 -0
- package/dist/generated/instructions/freezeV2.js +217 -0
- package/dist/generated/instructions/freezeV2.js.map +1 -0
- package/dist/generated/instructions/index.d.ts +36 -0
- package/dist/generated/instructions/mintToCollectionV1.d.ts +100 -0
- package/dist/generated/instructions/mintToCollectionV1.d.ts.map +1 -0
- package/dist/generated/instructions/mintToCollectionV1.js +284 -0
- package/dist/generated/instructions/mintToCollectionV1.js.map +1 -0
- package/dist/generated/instructions/mintV1.d.ts +67 -0
- package/dist/generated/instructions/mintV1.d.ts.map +1 -0
- package/dist/generated/instructions/mintV1.js +185 -0
- package/dist/generated/instructions/mintV1.js.map +1 -0
- package/dist/generated/instructions/mintV2.d.ts +92 -0
- package/dist/generated/instructions/mintV2.d.ts.map +1 -0
- package/dist/generated/instructions/mintV2.js +252 -0
- package/dist/generated/instructions/mintV2.js.map +1 -0
- package/dist/generated/instructions/redeem.d.ts +79 -0
- package/dist/generated/instructions/redeem.d.ts.map +1 -0
- package/dist/generated/instructions/redeem.js +187 -0
- package/dist/generated/instructions/redeem.js.map +1 -0
- package/dist/generated/instructions/setAndVerifyCollection.d.ts +139 -0
- package/dist/generated/instructions/setAndVerifyCollection.d.ts.map +1 -0
- package/dist/generated/instructions/setAndVerifyCollection.js +302 -0
- package/dist/generated/instructions/setAndVerifyCollection.js.map +1 -0
- package/dist/generated/instructions/setCollectionV2.d.ts +131 -0
- package/dist/generated/instructions/setCollectionV2.d.ts.map +1 -0
- package/dist/generated/instructions/setCollectionV2.js +264 -0
- package/dist/generated/instructions/setCollectionV2.js.map +1 -0
- package/dist/generated/instructions/setDecompressableState.d.ts +38 -0
- package/dist/generated/instructions/setDecompressableState.d.ts.map +1 -0
- package/dist/generated/instructions/setDecompressableState.js +74 -0
- package/dist/generated/instructions/setDecompressableState.js.map +1 -0
- package/dist/generated/instructions/setDecompressibleState.d.ts +38 -0
- package/dist/generated/instructions/setDecompressibleState.d.ts.map +1 -0
- package/dist/generated/instructions/setDecompressibleState.js +74 -0
- package/dist/generated/instructions/setDecompressibleState.js.map +1 -0
- package/dist/generated/instructions/setNonTransferableV2.d.ts +107 -0
- package/dist/generated/instructions/setNonTransferableV2.d.ts.map +1 -0
- package/dist/generated/instructions/setNonTransferableV2.js +217 -0
- package/dist/generated/instructions/setNonTransferableV2.js.map +1 -0
- package/dist/generated/instructions/setTreeDelegate.d.ts +49 -0
- package/dist/generated/instructions/setTreeDelegate.d.ts.map +1 -0
- package/dist/generated/instructions/setTreeDelegate.js +134 -0
- package/dist/generated/instructions/setTreeDelegate.js.map +1 -0
- package/dist/generated/instructions/thawAndRevokeV2.d.ts +93 -0
- package/dist/generated/instructions/thawAndRevokeV2.d.ts.map +1 -0
- package/dist/generated/instructions/thawAndRevokeV2.js +197 -0
- package/dist/generated/instructions/thawAndRevokeV2.js.map +1 -0
- package/dist/generated/instructions/thawV2.d.ts +105 -0
- package/dist/generated/instructions/thawV2.d.ts.map +1 -0
- package/dist/generated/instructions/thawV2.js +217 -0
- package/dist/generated/instructions/thawV2.js.map +1 -0
- package/dist/generated/instructions/transfer.d.ts +79 -0
- package/dist/generated/instructions/transfer.d.ts.map +1 -0
- package/dist/generated/instructions/transfer.js +187 -0
- package/dist/generated/instructions/transfer.js.map +1 -0
- package/dist/generated/instructions/transferV2.d.ts +110 -0
- package/dist/generated/instructions/transferV2.d.ts.map +1 -0
- package/dist/generated/instructions/transferV2.js +228 -0
- package/dist/generated/instructions/transferV2.js.map +1 -0
- package/dist/generated/instructions/unverifyCollection.d.ts +135 -0
- package/dist/generated/instructions/unverifyCollection.d.ts.map +1 -0
- package/dist/generated/instructions/unverifyCollection.js +300 -0
- package/dist/generated/instructions/unverifyCollection.js.map +1 -0
- package/dist/generated/instructions/unverifyCreator.d.ts +87 -0
- package/dist/generated/instructions/unverifyCreator.d.ts.map +1 -0
- package/dist/generated/instructions/unverifyCreator.js +201 -0
- package/dist/generated/instructions/unverifyCreator.js.map +1 -0
- package/dist/generated/instructions/unverifyCreatorV2.d.ts +91 -0
- package/dist/generated/instructions/unverifyCreatorV2.d.ts.map +1 -0
- package/dist/generated/instructions/unverifyCreatorV2.js +205 -0
- package/dist/generated/instructions/unverifyCreatorV2.js.map +1 -0
- package/dist/generated/instructions/updateAssetDataV2.d.ts +114 -0
- package/dist/generated/instructions/updateAssetDataV2.d.ts.map +1 -0
- package/dist/generated/instructions/updateAssetDataV2.js +222 -0
- package/dist/generated/instructions/updateAssetDataV2.js.map +1 -0
- package/dist/generated/instructions/updateMetadata.d.ts +112 -0
- package/dist/generated/instructions/updateMetadata.d.ts.map +1 -0
- package/dist/generated/instructions/updateMetadata.js +250 -0
- package/dist/generated/instructions/updateMetadata.js.map +1 -0
- package/dist/generated/instructions/updateMetadataV2.d.ts +109 -0
- package/dist/generated/instructions/updateMetadataV2.d.ts.map +1 -0
- package/dist/generated/instructions/updateMetadataV2.js +219 -0
- package/dist/generated/instructions/updateMetadataV2.js.map +1 -0
- package/dist/generated/instructions/verifyCollection.d.ts +135 -0
- package/dist/generated/instructions/verifyCollection.d.ts.map +1 -0
- package/dist/generated/instructions/verifyCollection.js +300 -0
- package/dist/generated/instructions/verifyCollection.js.map +1 -0
- package/dist/generated/instructions/verifyCreator.d.ts +87 -0
- package/dist/generated/instructions/verifyCreator.d.ts.map +1 -0
- package/dist/generated/instructions/verifyCreator.js +201 -0
- package/dist/generated/instructions/verifyCreator.js.map +1 -0
- package/dist/generated/instructions/verifyCreatorV2.d.ts +91 -0
- package/dist/generated/instructions/verifyCreatorV2.d.ts.map +1 -0
- package/dist/generated/instructions/verifyCreatorV2.js +205 -0
- package/dist/generated/instructions/verifyCreatorV2.js.map +1 -0
- package/dist/generated/pdas/assetId.d.ts +16 -0
- package/dist/generated/pdas/assetId.d.ts.map +1 -0
- package/dist/generated/pdas/assetId.js +18 -0
- package/dist/generated/pdas/assetId.js.map +1 -0
- package/dist/generated/pdas/bubblegumSigner.d.ts +10 -0
- package/dist/generated/pdas/bubblegumSigner.d.ts.map +1 -0
- package/dist/generated/pdas/bubblegumSigner.js +14 -0
- package/dist/generated/pdas/bubblegumSigner.js.map +1 -0
- package/dist/generated/pdas/index.d.ts +7 -0
- package/dist/generated/pdas/masterEdition.d.ts +14 -0
- package/dist/generated/pdas/masterEdition.d.ts.map +1 -0
- package/dist/generated/pdas/masterEdition.js +19 -0
- package/dist/generated/pdas/masterEdition.js.map +1 -0
- package/dist/generated/pdas/metadata.d.ts +14 -0
- package/dist/generated/pdas/metadata.d.ts.map +1 -0
- package/dist/generated/pdas/metadata.js +18 -0
- package/dist/generated/pdas/metadata.js.map +1 -0
- package/dist/generated/pdas/mintAuthority.d.ts +14 -0
- package/dist/generated/pdas/mintAuthority.d.ts.map +1 -0
- package/dist/generated/pdas/mintAuthority.js +14 -0
- package/dist/generated/pdas/mintAuthority.js.map +1 -0
- package/dist/generated/pdas/treeConfig.d.ts +14 -0
- package/dist/generated/pdas/treeConfig.d.ts.map +1 -0
- package/dist/generated/pdas/treeConfig.js +14 -0
- package/dist/generated/pdas/treeConfig.js.map +1 -0
- package/dist/generated/pdas/voucher.d.ts +16 -0
- package/dist/generated/pdas/voucher.d.ts.map +1 -0
- package/dist/generated/pdas/voucher.js +18 -0
- package/dist/generated/pdas/voucher.js.map +1 -0
- package/dist/generated/programs/bubblegum.d.ts +232 -0
- package/dist/generated/programs/bubblegum.d.ts.map +1 -0
- package/dist/generated/programs/bubblegum.js +844 -0
- package/dist/generated/programs/bubblegum.js.map +1 -0
- package/dist/generated/programs/index.d.ts +2 -0
- package/dist/generated/programs/mplTokenMetadata.d.ts +20 -0
- package/dist/generated/programs/mplTokenMetadata.d.ts.map +1 -0
- package/dist/generated/programs/mplTokenMetadata.js +17 -0
- package/dist/generated/programs/mplTokenMetadata.js.map +1 -0
- package/dist/generated/types/assetDataSchema.d.ts +15 -0
- package/dist/generated/types/assetDataSchema.d.ts.map +1 -0
- package/dist/generated/types/assetDataSchema.js +21 -0
- package/dist/generated/types/assetDataSchema.js.map +1 -0
- package/dist/generated/types/bubblegumEventType.d.ts +14 -0
- package/dist/generated/types/bubblegumEventType.d.ts.map +1 -0
- package/dist/generated/types/bubblegumEventType.js +20 -0
- package/dist/generated/types/bubblegumEventType.js.map +1 -0
- package/dist/generated/types/collection.d.ts +14 -0
- package/dist/generated/types/collection.d.ts.map +1 -0
- package/dist/generated/types/collection.js +15 -0
- package/dist/generated/types/collection.js.map +1 -0
- package/dist/generated/types/creator.d.ts +20 -0
- package/dist/generated/types/creator.d.ts.map +1 -0
- package/dist/generated/types/creator.js +23 -0
- package/dist/generated/types/creator.js.map +1 -0
- package/dist/generated/types/decompressibleState.d.ts +14 -0
- package/dist/generated/types/decompressibleState.d.ts.map +1 -0
- package/dist/generated/types/decompressibleState.js +20 -0
- package/dist/generated/types/decompressibleState.js.map +1 -0
- package/dist/generated/types/index.d.ts +15 -0
- package/dist/generated/types/instructionName.d.ts +47 -0
- package/dist/generated/types/instructionName.d.ts.map +1 -0
- package/dist/generated/types/instructionName.js +53 -0
- package/dist/generated/types/instructionName.js.map +1 -0
- package/dist/generated/types/leafSchema.d.ts +54 -0
- package/dist/generated/types/leafSchema.d.ts.map +1 -0
- package/dist/generated/types/leafSchema.js +61 -0
- package/dist/generated/types/leafSchema.js.map +1 -0
- package/dist/generated/types/metadataArgs.d.ts +62 -0
- package/dist/generated/types/metadataArgs.d.ts.map +1 -0
- package/dist/generated/types/metadataArgs.js +46 -0
- package/dist/generated/types/metadataArgs.js.map +1 -0
- package/dist/generated/types/metadataArgsV2.d.ts +51 -0
- package/dist/generated/types/metadataArgsV2.d.ts.map +1 -0
- package/dist/generated/types/metadataArgsV2.js +37 -0
- package/dist/generated/types/metadataArgsV2.js.map +1 -0
- package/dist/generated/types/tokenProgramVersion.d.ts +14 -0
- package/dist/generated/types/tokenProgramVersion.d.ts.map +1 -0
- package/dist/generated/types/tokenProgramVersion.js +20 -0
- package/dist/generated/types/tokenProgramVersion.js.map +1 -0
- package/dist/generated/types/tokenStandard.d.ts +16 -0
- package/dist/generated/types/tokenStandard.d.ts.map +1 -0
- package/dist/generated/types/tokenStandard.js +22 -0
- package/dist/generated/types/tokenStandard.js.map +1 -0
- package/dist/generated/types/updateArgs.d.ts +28 -0
- package/dist/generated/types/updateArgs.d.ts.map +1 -0
- package/dist/generated/types/updateArgs.js +32 -0
- package/dist/generated/types/updateArgs.js.map +1 -0
- package/dist/generated/types/useMethod.d.ts +15 -0
- package/dist/generated/types/useMethod.d.ts.map +1 -0
- package/dist/generated/types/useMethod.js +21 -0
- package/dist/generated/types/useMethod.js.map +1 -0
- package/dist/generated/types/uses.d.ts +20 -0
- package/dist/generated/types/uses.d.ts.map +1 -0
- package/dist/generated/types/uses.js +24 -0
- package/dist/generated/types/uses.js.map +1 -0
- package/dist/generated/types/version.d.ts +14 -0
- package/dist/generated/types/version.d.ts.map +1 -0
- package/dist/generated/types/version.js +20 -0
- package/dist/generated/types/version.js.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +64 -0
- package/package.json +53 -5
- package/src/generated/accounts/index.ts +10 -0
- package/src/generated/accounts/treeConfig.ts +197 -0
- package/src/generated/accounts/voucher.ts +166 -0
- package/src/generated/errors/bubblegum.ts +309 -0
- package/src/generated/errors/index.ts +9 -0
- package/src/generated/index.ts +14 -0
- package/src/generated/instructions/burn.ts +454 -0
- package/src/generated/instructions/burnV2.ts +641 -0
- package/src/generated/instructions/cancelRedeem.ts +432 -0
- package/src/generated/instructions/closeTreeV2.ts +424 -0
- package/src/generated/instructions/collectV2.ts +184 -0
- package/src/generated/instructions/compress.ts +589 -0
- package/src/generated/instructions/createTree.ts +448 -0
- package/src/generated/instructions/createTreeV2.ts +459 -0
- package/src/generated/instructions/decompressV1.ts +646 -0
- package/src/generated/instructions/delegate.ts +492 -0
- package/src/generated/instructions/delegateAndFreezeV2.ts +568 -0
- package/src/generated/instructions/delegateV2.ts +562 -0
- package/src/generated/instructions/freezeV2.ts +566 -0
- package/src/generated/instructions/index.ts +44 -0
- package/src/generated/instructions/mintToCollectionV1.ts +732 -0
- package/src/generated/instructions/mintV1.ts +476 -0
- package/src/generated/instructions/mintV2.ts +649 -0
- package/src/generated/instructions/redeem.ts +480 -0
- package/src/generated/instructions/setAndVerifyCollection.ts +792 -0
- package/src/generated/instructions/setCollectionV2.ts +711 -0
- package/src/generated/instructions/setDecompressableState.ts +218 -0
- package/src/generated/instructions/setDecompressibleState.ts +218 -0
- package/src/generated/instructions/setNonTransferableV2.ts +575 -0
- package/src/generated/instructions/setTreeDelegate.ts +344 -0
- package/src/generated/instructions/thawAndRevokeV2.ts +526 -0
- package/src/generated/instructions/thawV2.ts +566 -0
- package/src/generated/instructions/transfer.ts +476 -0
- package/src/generated/instructions/transferV2.ts +591 -0
- package/src/generated/instructions/unverifyCollection.ts +781 -0
- package/src/generated/instructions/unverifyCreator.ts +515 -0
- package/src/generated/instructions/unverifyCreatorV2.ts +538 -0
- package/src/generated/instructions/updateAssetDataV2.ts +599 -0
- package/src/generated/instructions/updateMetadata.ts +665 -0
- package/src/generated/instructions/updateMetadataV2.ts +582 -0
- package/src/generated/instructions/verifyCollection.ts +779 -0
- package/src/generated/instructions/verifyCreator.ts +516 -0
- package/src/generated/instructions/verifyCreatorV2.ts +538 -0
- package/src/generated/pdas/assetId.ts +40 -0
- package/src/generated/pdas/bubblegumSigner.ts +23 -0
- package/src/generated/pdas/index.ts +15 -0
- package/src/generated/pdas/masterEdition.ts +38 -0
- package/src/generated/pdas/metadata.ts +37 -0
- package/src/generated/pdas/mintAuthority.ts +29 -0
- package/src/generated/pdas/treeConfig.ts +29 -0
- package/src/generated/pdas/voucher.ts +40 -0
- package/src/generated/programs/bubblegum.ts +1509 -0
- package/src/generated/programs/index.ts +10 -0
- package/src/generated/programs/mplTokenMetadata.ts +42 -0
- package/src/generated/types/assetDataSchema.ts +37 -0
- package/src/generated/types/bubblegumEventType.ts +39 -0
- package/src/generated/types/collection.ts +51 -0
- package/src/generated/types/creator.ts +58 -0
- package/src/generated/types/decompressibleState.ts +39 -0
- package/src/generated/types/index.ts +23 -0
- package/src/generated/types/instructionName.ts +69 -0
- package/src/generated/types/leafSchema.ts +166 -0
- package/src/generated/types/metadataArgs.ts +148 -0
- package/src/generated/types/metadataArgsV2.ts +126 -0
- package/src/generated/types/tokenProgramVersion.ts +39 -0
- package/src/generated/types/tokenStandard.ts +38 -0
- package/src/generated/types/updateArgs.ts +102 -0
- package/src/generated/types/useMethod.ts +34 -0
- package/src/generated/types/uses.ts +54 -0
- package/src/generated/types/version.ts +33 -0
- package/src/index.ts +8 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubblegum.js","names":[],"sources":["../../../src/generated/programs/bubblegum.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n Address,\n ClientWithPayer,\n ClientWithRpc,\n ClientWithTransactionPlanning,\n ClientWithTransactionSending,\n GetAccountInfoApi,\n GetMultipleAccountsApi,\n Instruction,\n InstructionWithData,\n ReadonlyUint8Array,\n} from \"@solana/kit\";\nimport type {\n SelfFetchFunctions,\n SelfPlanAndSendFunctions,\n} from \"@solana/program-client-core\";\nimport type {\n TreeConfig,\n TreeConfigArgs,\n Voucher,\n VoucherArgs,\n} from \"../accounts/index.js\";\nimport type {\n BurnAsyncInput,\n BurnV2AsyncInput,\n CancelRedeemAsyncInput,\n CloseTreeV2AsyncInput,\n CollectV2Input,\n CompressAsyncInput,\n CreateTreeAsyncInput,\n CreateTreeV2AsyncInput,\n DecompressV1AsyncInput,\n DelegateAndFreezeV2AsyncInput,\n DelegateAsyncInput,\n DelegateV2AsyncInput,\n FreezeV2AsyncInput,\n MintToCollectionV1AsyncInput,\n MintV1AsyncInput,\n MintV2AsyncInput,\n ParsedBurnInstruction,\n ParsedBurnV2Instruction,\n ParsedCancelRedeemInstruction,\n ParsedCloseTreeV2Instruction,\n ParsedCollectV2Instruction,\n ParsedCompressInstruction,\n ParsedCreateTreeInstruction,\n ParsedCreateTreeV2Instruction,\n ParsedDecompressV1Instruction,\n ParsedDelegateAndFreezeV2Instruction,\n ParsedDelegateInstruction,\n ParsedDelegateV2Instruction,\n ParsedFreezeV2Instruction,\n ParsedMintToCollectionV1Instruction,\n ParsedMintV1Instruction,\n ParsedMintV2Instruction,\n ParsedRedeemInstruction,\n ParsedSetAndVerifyCollectionInstruction,\n ParsedSetCollectionV2Instruction,\n ParsedSetDecompressableStateInstruction,\n ParsedSetDecompressibleStateInstruction,\n ParsedSetNonTransferableV2Instruction,\n ParsedSetTreeDelegateInstruction,\n ParsedThawAndRevokeV2Instruction,\n ParsedThawV2Instruction,\n ParsedTransferInstruction,\n ParsedTransferV2Instruction,\n ParsedUnverifyCollectionInstruction,\n ParsedUnverifyCreatorInstruction,\n ParsedUnverifyCreatorV2Instruction,\n ParsedUpdateAssetDataV2Instruction,\n ParsedUpdateMetadataInstruction,\n ParsedUpdateMetadataV2Instruction,\n ParsedVerifyCollectionInstruction,\n ParsedVerifyCreatorInstruction,\n ParsedVerifyCreatorV2Instruction,\n RedeemAsyncInput,\n SetAndVerifyCollectionAsyncInput,\n SetCollectionV2AsyncInput,\n SetDecompressableStateInput,\n SetDecompressibleStateInput,\n SetNonTransferableV2AsyncInput,\n SetTreeDelegateAsyncInput,\n ThawAndRevokeV2AsyncInput,\n ThawV2AsyncInput,\n TransferAsyncInput,\n TransferV2AsyncInput,\n UnverifyCollectionAsyncInput,\n UnverifyCreatorAsyncInput,\n UnverifyCreatorV2AsyncInput,\n UpdateAssetDataV2AsyncInput,\n UpdateMetadataAsyncInput,\n UpdateMetadataV2AsyncInput,\n VerifyCollectionAsyncInput,\n VerifyCreatorAsyncInput,\n VerifyCreatorV2AsyncInput,\n} from \"../instructions/index.js\";\nimport {\n assertIsInstructionWithAccounts,\n containsBytes,\n extendClient,\n fixEncoderSize,\n getBytesEncoder,\n SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,\n SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,\n SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,\n SolanaError,\n} from \"@solana/kit\";\nimport {\n addSelfFetchFunctions,\n addSelfPlanAndSendFunctions,\n} from \"@solana/program-client-core\";\nimport { getTreeConfigCodec, getVoucherCodec } from \"../accounts/index.js\";\nimport {\n getBurnInstructionAsync,\n getBurnV2InstructionAsync,\n getCancelRedeemInstructionAsync,\n getCloseTreeV2InstructionAsync,\n getCollectV2Instruction,\n getCompressInstructionAsync,\n getCreateTreeInstructionAsync,\n getCreateTreeV2InstructionAsync,\n getDecompressV1InstructionAsync,\n getDelegateAndFreezeV2InstructionAsync,\n getDelegateInstructionAsync,\n getDelegateV2InstructionAsync,\n getFreezeV2InstructionAsync,\n getMintToCollectionV1InstructionAsync,\n getMintV1InstructionAsync,\n getMintV2InstructionAsync,\n getRedeemInstructionAsync,\n getSetAndVerifyCollectionInstructionAsync,\n getSetCollectionV2InstructionAsync,\n getSetDecompressableStateInstruction,\n getSetDecompressibleStateInstruction,\n getSetNonTransferableV2InstructionAsync,\n getSetTreeDelegateInstructionAsync,\n getThawAndRevokeV2InstructionAsync,\n getThawV2InstructionAsync,\n getTransferInstructionAsync,\n getTransferV2InstructionAsync,\n getUnverifyCollectionInstructionAsync,\n getUnverifyCreatorInstructionAsync,\n getUnverifyCreatorV2InstructionAsync,\n getUpdateAssetDataV2InstructionAsync,\n getUpdateMetadataInstructionAsync,\n getUpdateMetadataV2InstructionAsync,\n getVerifyCollectionInstructionAsync,\n getVerifyCreatorInstructionAsync,\n getVerifyCreatorV2InstructionAsync,\n parseBurnInstruction,\n parseBurnV2Instruction,\n parseCancelRedeemInstruction,\n parseCloseTreeV2Instruction,\n parseCollectV2Instruction,\n parseCompressInstruction,\n parseCreateTreeInstruction,\n parseCreateTreeV2Instruction,\n parseDecompressV1Instruction,\n parseDelegateAndFreezeV2Instruction,\n parseDelegateInstruction,\n parseDelegateV2Instruction,\n parseFreezeV2Instruction,\n parseMintToCollectionV1Instruction,\n parseMintV1Instruction,\n parseMintV2Instruction,\n parseRedeemInstruction,\n parseSetAndVerifyCollectionInstruction,\n parseSetCollectionV2Instruction,\n parseSetDecompressableStateInstruction,\n parseSetDecompressibleStateInstruction,\n parseSetNonTransferableV2Instruction,\n parseSetTreeDelegateInstruction,\n parseThawAndRevokeV2Instruction,\n parseThawV2Instruction,\n parseTransferInstruction,\n parseTransferV2Instruction,\n parseUnverifyCollectionInstruction,\n parseUnverifyCreatorInstruction,\n parseUnverifyCreatorV2Instruction,\n parseUpdateAssetDataV2Instruction,\n parseUpdateMetadataInstruction,\n parseUpdateMetadataV2Instruction,\n parseVerifyCollectionInstruction,\n parseVerifyCreatorInstruction,\n parseVerifyCreatorV2Instruction,\n} from \"../instructions/index.js\";\nimport {\n findAssetIdPda,\n findBubblegumSignerPda,\n findMintAuthorityPda,\n findTreeConfigPda,\n findVoucherPda,\n} from \"../pdas/index.js\";\n\nexport const BUBBLEGUM_PROGRAM_ADDRESS =\n \"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY\" as Address<\"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY\">;\n\nexport enum BubblegumAccount {\n TreeConfig = 0,\n Voucher = 1,\n}\n\nexport function identifyBubblegumAccount(\n account: { data: ReadonlyUint8Array } | ReadonlyUint8Array,\n): BubblegumAccount {\n const data = \"data\" in account ? account.data : account;\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([122, 245, 175, 248, 171, 34, 0, 207]),\n ),\n 0,\n )\n ) {\n return BubblegumAccount.TreeConfig;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([191, 204, 149, 234, 213, 165, 13, 65]),\n ),\n 0,\n )\n ) {\n return BubblegumAccount.Voucher;\n }\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,\n { accountData: data, programName: \"bubblegum\" },\n );\n}\n\nexport enum BubblegumInstruction {\n Burn = 0,\n BurnV2 = 1,\n CancelRedeem = 2,\n CloseTreeV2 = 3,\n CollectV2 = 4,\n Compress = 5,\n CreateTree = 6,\n CreateTreeV2 = 7,\n DecompressV1 = 8,\n Delegate = 9,\n DelegateAndFreezeV2 = 10,\n DelegateV2 = 11,\n FreezeV2 = 12,\n MintToCollectionV1 = 13,\n MintV1 = 14,\n MintV2 = 15,\n Redeem = 16,\n SetAndVerifyCollection = 17,\n SetCollectionV2 = 18,\n SetDecompressableState = 19,\n SetDecompressibleState = 20,\n SetNonTransferableV2 = 21,\n SetTreeDelegate = 22,\n ThawAndRevokeV2 = 23,\n ThawV2 = 24,\n Transfer = 25,\n TransferV2 = 26,\n UnverifyCollection = 27,\n UnverifyCreator = 28,\n UnverifyCreatorV2 = 29,\n UpdateAssetDataV2 = 30,\n UpdateMetadata = 31,\n UpdateMetadataV2 = 32,\n VerifyCollection = 33,\n VerifyCreator = 34,\n VerifyCreatorV2 = 35,\n}\n\nexport function identifyBubblegumInstruction(\n instruction: { data: ReadonlyUint8Array } | ReadonlyUint8Array,\n): BubblegumInstruction {\n const data = \"data\" in instruction ? instruction.data : instruction;\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([116, 110, 29, 56, 107, 219, 42, 93]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.Burn;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([115, 210, 34, 240, 232, 143, 183, 16]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.BurnV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([111, 76, 232, 50, 39, 175, 48, 242]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.CancelRedeem;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([45, 172, 6, 94, 28, 90, 157, 70]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.CloseTreeV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([21, 11, 159, 47, 4, 195, 106, 56]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.CollectV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([82, 193, 176, 117, 176, 21, 115, 253]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.Compress;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([165, 83, 136, 142, 89, 202, 47, 220]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.CreateTree;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([55, 99, 95, 215, 142, 203, 227, 205]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.CreateTreeV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([54, 85, 76, 70, 228, 250, 164, 81]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.DecompressV1;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([90, 147, 75, 178, 85, 88, 4, 137]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.Delegate;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([17, 229, 35, 218, 190, 241, 250, 123]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.DelegateAndFreezeV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([95, 87, 125, 140, 181, 131, 128, 227]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.DelegateV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([200, 151, 244, 102, 16, 195, 255, 3]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.FreezeV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([153, 18, 178, 47, 197, 158, 86, 15]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.MintToCollectionV1;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([145, 98, 192, 118, 184, 147, 118, 104]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.MintV1;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([120, 121, 23, 146, 173, 110, 199, 205]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.MintV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([184, 12, 86, 149, 70, 196, 97, 225]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.Redeem;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([235, 242, 121, 216, 158, 234, 180, 234]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.SetAndVerifyCollection;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([229, 35, 61, 91, 15, 14, 99, 160]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.SetCollectionV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([18, 135, 238, 168, 246, 195, 61, 115]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.SetDecompressableState;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([82, 104, 152, 6, 149, 111, 100, 13]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.SetDecompressibleState;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([181, 141, 206, 58, 242, 199, 152, 168]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.SetNonTransferableV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([253, 118, 66, 37, 190, 49, 154, 102]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.SetTreeDelegate;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([86, 214, 190, 37, 167, 4, 28, 116]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.ThawAndRevokeV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([96, 133, 101, 93, 82, 220, 146, 191]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.ThawV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([163, 52, 200, 231, 140, 3, 69, 186]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.Transfer;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([119, 40, 6, 235, 234, 221, 248, 49]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.TransferV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([250, 251, 42, 106, 41, 137, 186, 168]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.UnverifyCollection;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([107, 178, 57, 39, 105, 115, 112, 152]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.UnverifyCreator;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([174, 112, 29, 142, 230, 100, 239, 7]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.UnverifyCreatorV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([59, 56, 111, 43, 95, 14, 11, 61]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.UpdateAssetDataV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([170, 182, 43, 239, 97, 78, 225, 186]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.UpdateMetadata;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([43, 103, 89, 42, 121, 242, 62, 72]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.UpdateMetadataV2;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([56, 113, 101, 253, 79, 55, 122, 169]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.VerifyCollection;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([52, 17, 96, 132, 71, 4, 85, 194]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.VerifyCreator;\n }\n if (\n containsBytes(\n data,\n fixEncoderSize(getBytesEncoder(), 8).encode(\n new Uint8Array([85, 138, 140, 42, 22, 241, 118, 102]),\n ),\n 0,\n )\n ) {\n return BubblegumInstruction.VerifyCreatorV2;\n }\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,\n { instructionData: data, programName: \"bubblegum\" },\n );\n}\n\nexport type ParsedBubblegumInstruction<\n TProgram extends string = \"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY\",\n> =\n | ({\n instructionType: BubblegumInstruction.Burn;\n } & ParsedBurnInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.BurnV2;\n } & ParsedBurnV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.CancelRedeem;\n } & ParsedCancelRedeemInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.CloseTreeV2;\n } & ParsedCloseTreeV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.CollectV2;\n } & ParsedCollectV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.Compress;\n } & ParsedCompressInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.CreateTree;\n } & ParsedCreateTreeInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.CreateTreeV2;\n } & ParsedCreateTreeV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.DecompressV1;\n } & ParsedDecompressV1Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.Delegate;\n } & ParsedDelegateInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.DelegateAndFreezeV2;\n } & ParsedDelegateAndFreezeV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.DelegateV2;\n } & ParsedDelegateV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.FreezeV2;\n } & ParsedFreezeV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.MintToCollectionV1;\n } & ParsedMintToCollectionV1Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.MintV1;\n } & ParsedMintV1Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.MintV2;\n } & ParsedMintV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.Redeem;\n } & ParsedRedeemInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.SetAndVerifyCollection;\n } & ParsedSetAndVerifyCollectionInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.SetCollectionV2;\n } & ParsedSetCollectionV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.SetDecompressableState;\n } & ParsedSetDecompressableStateInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.SetDecompressibleState;\n } & ParsedSetDecompressibleStateInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.SetNonTransferableV2;\n } & ParsedSetNonTransferableV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.SetTreeDelegate;\n } & ParsedSetTreeDelegateInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.ThawAndRevokeV2;\n } & ParsedThawAndRevokeV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.ThawV2;\n } & ParsedThawV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.Transfer;\n } & ParsedTransferInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.TransferV2;\n } & ParsedTransferV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.UnverifyCollection;\n } & ParsedUnverifyCollectionInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.UnverifyCreator;\n } & ParsedUnverifyCreatorInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.UnverifyCreatorV2;\n } & ParsedUnverifyCreatorV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.UpdateAssetDataV2;\n } & ParsedUpdateAssetDataV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.UpdateMetadata;\n } & ParsedUpdateMetadataInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.UpdateMetadataV2;\n } & ParsedUpdateMetadataV2Instruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.VerifyCollection;\n } & ParsedVerifyCollectionInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.VerifyCreator;\n } & ParsedVerifyCreatorInstruction<TProgram>)\n | ({\n instructionType: BubblegumInstruction.VerifyCreatorV2;\n } & ParsedVerifyCreatorV2Instruction<TProgram>);\n\nexport function parseBubblegumInstruction<TProgram extends string>(\n instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>,\n): ParsedBubblegumInstruction<TProgram> {\n const instructionType = identifyBubblegumInstruction(instruction);\n switch (instructionType) {\n case BubblegumInstruction.Burn: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.Burn,\n ...parseBurnInstruction(instruction),\n };\n }\n case BubblegumInstruction.BurnV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.BurnV2,\n ...parseBurnV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.CancelRedeem: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.CancelRedeem,\n ...parseCancelRedeemInstruction(instruction),\n };\n }\n case BubblegumInstruction.CloseTreeV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.CloseTreeV2,\n ...parseCloseTreeV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.CollectV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.CollectV2,\n ...parseCollectV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.Compress: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.Compress,\n ...parseCompressInstruction(instruction),\n };\n }\n case BubblegumInstruction.CreateTree: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.CreateTree,\n ...parseCreateTreeInstruction(instruction),\n };\n }\n case BubblegumInstruction.CreateTreeV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.CreateTreeV2,\n ...parseCreateTreeV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.DecompressV1: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.DecompressV1,\n ...parseDecompressV1Instruction(instruction),\n };\n }\n case BubblegumInstruction.Delegate: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.Delegate,\n ...parseDelegateInstruction(instruction),\n };\n }\n case BubblegumInstruction.DelegateAndFreezeV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.DelegateAndFreezeV2,\n ...parseDelegateAndFreezeV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.DelegateV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.DelegateV2,\n ...parseDelegateV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.FreezeV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.FreezeV2,\n ...parseFreezeV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.MintToCollectionV1: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.MintToCollectionV1,\n ...parseMintToCollectionV1Instruction(instruction),\n };\n }\n case BubblegumInstruction.MintV1: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.MintV1,\n ...parseMintV1Instruction(instruction),\n };\n }\n case BubblegumInstruction.MintV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.MintV2,\n ...parseMintV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.Redeem: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.Redeem,\n ...parseRedeemInstruction(instruction),\n };\n }\n case BubblegumInstruction.SetAndVerifyCollection: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.SetAndVerifyCollection,\n ...parseSetAndVerifyCollectionInstruction(instruction),\n };\n }\n case BubblegumInstruction.SetCollectionV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.SetCollectionV2,\n ...parseSetCollectionV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.SetDecompressableState: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.SetDecompressableState,\n ...parseSetDecompressableStateInstruction(instruction),\n };\n }\n case BubblegumInstruction.SetDecompressibleState: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.SetDecompressibleState,\n ...parseSetDecompressibleStateInstruction(instruction),\n };\n }\n case BubblegumInstruction.SetNonTransferableV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.SetNonTransferableV2,\n ...parseSetNonTransferableV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.SetTreeDelegate: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.SetTreeDelegate,\n ...parseSetTreeDelegateInstruction(instruction),\n };\n }\n case BubblegumInstruction.ThawAndRevokeV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.ThawAndRevokeV2,\n ...parseThawAndRevokeV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.ThawV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.ThawV2,\n ...parseThawV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.Transfer: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.Transfer,\n ...parseTransferInstruction(instruction),\n };\n }\n case BubblegumInstruction.TransferV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.TransferV2,\n ...parseTransferV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.UnverifyCollection: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.UnverifyCollection,\n ...parseUnverifyCollectionInstruction(instruction),\n };\n }\n case BubblegumInstruction.UnverifyCreator: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.UnverifyCreator,\n ...parseUnverifyCreatorInstruction(instruction),\n };\n }\n case BubblegumInstruction.UnverifyCreatorV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.UnverifyCreatorV2,\n ...parseUnverifyCreatorV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.UpdateAssetDataV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.UpdateAssetDataV2,\n ...parseUpdateAssetDataV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.UpdateMetadata: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.UpdateMetadata,\n ...parseUpdateMetadataInstruction(instruction),\n };\n }\n case BubblegumInstruction.UpdateMetadataV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.UpdateMetadataV2,\n ...parseUpdateMetadataV2Instruction(instruction),\n };\n }\n case BubblegumInstruction.VerifyCollection: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.VerifyCollection,\n ...parseVerifyCollectionInstruction(instruction),\n };\n }\n case BubblegumInstruction.VerifyCreator: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.VerifyCreator,\n ...parseVerifyCreatorInstruction(instruction),\n };\n }\n case BubblegumInstruction.VerifyCreatorV2: {\n assertIsInstructionWithAccounts(instruction);\n return {\n instructionType: BubblegumInstruction.VerifyCreatorV2,\n ...parseVerifyCreatorV2Instruction(instruction),\n };\n }\n default:\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,\n {\n instructionType: instructionType as string,\n programName: \"bubblegum\",\n },\n );\n }\n}\n\nexport interface BubblegumPlugin {\n accounts: BubblegumPluginAccounts;\n instructions: BubblegumPluginInstructions;\n pdas: BubblegumPluginPdas;\n}\n\nexport interface BubblegumPluginAccounts {\n treeConfig: ReturnType<typeof getTreeConfigCodec> &\n SelfFetchFunctions<TreeConfigArgs, TreeConfig>;\n voucher: ReturnType<typeof getVoucherCodec> &\n SelfFetchFunctions<VoucherArgs, Voucher>;\n}\n\nexport interface BubblegumPluginInstructions {\n burn: (\n input: BurnAsyncInput,\n ) => ReturnType<typeof getBurnInstructionAsync> & SelfPlanAndSendFunctions;\n burnV2: (\n input: MakeOptional<BurnV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getBurnV2InstructionAsync> & SelfPlanAndSendFunctions;\n cancelRedeem: (\n input: CancelRedeemAsyncInput,\n ) => ReturnType<typeof getCancelRedeemInstructionAsync> &\n SelfPlanAndSendFunctions;\n closeTreeV2: (\n input: CloseTreeV2AsyncInput,\n ) => ReturnType<typeof getCloseTreeV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n collectV2: (\n input: CollectV2Input,\n ) => ReturnType<typeof getCollectV2Instruction> & SelfPlanAndSendFunctions;\n compress: (\n input: MakeOptional<CompressAsyncInput, \"payer\">,\n ) => ReturnType<typeof getCompressInstructionAsync> &\n SelfPlanAndSendFunctions;\n createTree: (\n input: MakeOptional<CreateTreeAsyncInput, \"payer\">,\n ) => ReturnType<typeof getCreateTreeInstructionAsync> &\n SelfPlanAndSendFunctions;\n createTreeV2: (\n input: MakeOptional<CreateTreeV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getCreateTreeV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n decompressV1: (\n input: DecompressV1AsyncInput,\n ) => ReturnType<typeof getDecompressV1InstructionAsync> &\n SelfPlanAndSendFunctions;\n delegate: (\n input: DelegateAsyncInput,\n ) => ReturnType<typeof getDelegateInstructionAsync> &\n SelfPlanAndSendFunctions;\n delegateAndFreezeV2: (\n input: MakeOptional<DelegateAndFreezeV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getDelegateAndFreezeV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n delegateV2: (\n input: MakeOptional<DelegateV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getDelegateV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n freezeV2: (\n input: MakeOptional<FreezeV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getFreezeV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n mintToCollectionV1: (\n input: MakeOptional<MintToCollectionV1AsyncInput, \"payer\">,\n ) => ReturnType<typeof getMintToCollectionV1InstructionAsync> &\n SelfPlanAndSendFunctions;\n mintV1: (\n input: MakeOptional<MintV1AsyncInput, \"payer\">,\n ) => ReturnType<typeof getMintV1InstructionAsync> & SelfPlanAndSendFunctions;\n mintV2: (\n input: MakeOptional<MintV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getMintV2InstructionAsync> & SelfPlanAndSendFunctions;\n redeem: (\n input: RedeemAsyncInput,\n ) => ReturnType<typeof getRedeemInstructionAsync> & SelfPlanAndSendFunctions;\n setAndVerifyCollection: (\n input: MakeOptional<SetAndVerifyCollectionAsyncInput, \"payer\">,\n ) => ReturnType<typeof getSetAndVerifyCollectionInstructionAsync> &\n SelfPlanAndSendFunctions;\n setCollectionV2: (\n input: MakeOptional<SetCollectionV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getSetCollectionV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n setDecompressableState: (\n input: SetDecompressableStateInput,\n ) => ReturnType<typeof getSetDecompressableStateInstruction> &\n SelfPlanAndSendFunctions;\n setDecompressibleState: (\n input: SetDecompressibleStateInput,\n ) => ReturnType<typeof getSetDecompressibleStateInstruction> &\n SelfPlanAndSendFunctions;\n setNonTransferableV2: (\n input: MakeOptional<SetNonTransferableV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getSetNonTransferableV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n setTreeDelegate: (\n input: SetTreeDelegateAsyncInput,\n ) => ReturnType<typeof getSetTreeDelegateInstructionAsync> &\n SelfPlanAndSendFunctions;\n thawAndRevokeV2: (\n input: MakeOptional<ThawAndRevokeV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getThawAndRevokeV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n thawV2: (\n input: MakeOptional<ThawV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getThawV2InstructionAsync> & SelfPlanAndSendFunctions;\n transfer: (\n input: TransferAsyncInput,\n ) => ReturnType<typeof getTransferInstructionAsync> &\n SelfPlanAndSendFunctions;\n transferV2: (\n input: MakeOptional<TransferV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getTransferV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n unverifyCollection: (\n input: MakeOptional<UnverifyCollectionAsyncInput, \"payer\">,\n ) => ReturnType<typeof getUnverifyCollectionInstructionAsync> &\n SelfPlanAndSendFunctions;\n unverifyCreator: (\n input: MakeOptional<UnverifyCreatorAsyncInput, \"payer\">,\n ) => ReturnType<typeof getUnverifyCreatorInstructionAsync> &\n SelfPlanAndSendFunctions;\n unverifyCreatorV2: (\n input: MakeOptional<UnverifyCreatorV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getUnverifyCreatorV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n updateAssetDataV2: (\n input: MakeOptional<UpdateAssetDataV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getUpdateAssetDataV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n updateMetadata: (\n input: MakeOptional<UpdateMetadataAsyncInput, \"payer\">,\n ) => ReturnType<typeof getUpdateMetadataInstructionAsync> &\n SelfPlanAndSendFunctions;\n updateMetadataV2: (\n input: MakeOptional<UpdateMetadataV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getUpdateMetadataV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n verifyCollection: (\n input: MakeOptional<VerifyCollectionAsyncInput, \"payer\">,\n ) => ReturnType<typeof getVerifyCollectionInstructionAsync> &\n SelfPlanAndSendFunctions;\n verifyCreator: (\n input: MakeOptional<VerifyCreatorAsyncInput, \"payer\">,\n ) => ReturnType<typeof getVerifyCreatorInstructionAsync> &\n SelfPlanAndSendFunctions;\n verifyCreatorV2: (\n input: MakeOptional<VerifyCreatorV2AsyncInput, \"payer\">,\n ) => ReturnType<typeof getVerifyCreatorV2InstructionAsync> &\n SelfPlanAndSendFunctions;\n}\n\nexport interface BubblegumPluginPdas {\n treeConfig: typeof findTreeConfigPda;\n voucher: typeof findVoucherPda;\n assetId: typeof findAssetIdPda;\n bubblegumSigner: typeof findBubblegumSignerPda;\n mintAuthority: typeof findMintAuthorityPda;\n}\n\nexport type BubblegumPluginRequirements = ClientWithRpc<\n GetAccountInfoApi & GetMultipleAccountsApi\n> &\n ClientWithPayer &\n ClientWithTransactionPlanning &\n ClientWithTransactionSending;\n\nexport function bubblegumProgram() {\n return <T extends BubblegumPluginRequirements>(\n client: T,\n ): Omit<T, \"bubblegum\"> & { bubblegum: BubblegumPlugin } => {\n return extendClient(client, {\n bubblegum: <BubblegumPlugin>{\n accounts: {\n treeConfig: addSelfFetchFunctions(client, getTreeConfigCodec()),\n voucher: addSelfFetchFunctions(client, getVoucherCodec()),\n },\n instructions: {\n burn: (input) =>\n addSelfPlanAndSendFunctions(client, getBurnInstructionAsync(input)),\n burnV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getBurnV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n cancelRedeem: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getCancelRedeemInstructionAsync(input),\n ),\n closeTreeV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getCloseTreeV2InstructionAsync(input),\n ),\n collectV2: (input) =>\n addSelfPlanAndSendFunctions(client, getCollectV2Instruction(input)),\n compress: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getCompressInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n createTree: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getCreateTreeInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n createTreeV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getCreateTreeV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n decompressV1: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getDecompressV1InstructionAsync(input),\n ),\n delegate: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getDelegateInstructionAsync(input),\n ),\n delegateAndFreezeV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getDelegateAndFreezeV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n delegateV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getDelegateV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n freezeV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getFreezeV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n mintToCollectionV1: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getMintToCollectionV1InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n mintV1: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getMintV1InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n mintV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getMintV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n redeem: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getRedeemInstructionAsync(input),\n ),\n setAndVerifyCollection: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getSetAndVerifyCollectionInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n setCollectionV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getSetCollectionV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n setDecompressableState: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getSetDecompressableStateInstruction(input),\n ),\n setDecompressibleState: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getSetDecompressibleStateInstruction(input),\n ),\n setNonTransferableV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getSetNonTransferableV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n setTreeDelegate: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getSetTreeDelegateInstructionAsync(input),\n ),\n thawAndRevokeV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getThawAndRevokeV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n thawV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getThawV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n transfer: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getTransferInstructionAsync(input),\n ),\n transferV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getTransferV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n unverifyCollection: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getUnverifyCollectionInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n unverifyCreator: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getUnverifyCreatorInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n unverifyCreatorV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getUnverifyCreatorV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n updateAssetDataV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getUpdateAssetDataV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n updateMetadata: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getUpdateMetadataInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n updateMetadataV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getUpdateMetadataV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n verifyCollection: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getVerifyCollectionInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n verifyCreator: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getVerifyCreatorInstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n verifyCreatorV2: (input) =>\n addSelfPlanAndSendFunctions(\n client,\n getVerifyCreatorV2InstructionAsync({\n ...input,\n payer: input.payer ?? client.payer,\n }),\n ),\n },\n pdas: {\n treeConfig: findTreeConfigPda,\n voucher: findVoucherPda,\n assetId: findAssetIdPda,\n bubblegumSigner: findBubblegumSignerPda,\n mintAuthority: findMintAuthorityPda,\n },\n },\n });\n };\n}\n\ntype MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0MA,MAAa,4BACX;AAEF,IAAY,mBAAL,yBAAA,kBAAA;CACL,iBAAA,iBAAA,gBAAA,KAAA;CACA,iBAAA,iBAAA,aAAA,KAAA;;AACF,EAAA,CAAA,CAAA;AAEA,SAAgB,yBACd,SACkB;CAClB,MAAM,OAAO,UAAU,UAAU,QAAQ,OAAO;CAChD,IACE,cACE,MACA,eAAe,gBAAgB,GAAG,CAAC,CAAC,CAAC,OACnC,IAAI,WAAW;EAAC;EAAK;EAAK;EAAK;EAAK;EAAK;EAAI;EAAG;CAAG,CAAC,CACtD,GACA,CACF,GAEA,OAAA;CAEF,IACE,cACE,MACA,eAAe,gBAAgB,GAAG,CAAC,CAAC,CAAC,OACnC,IAAI,WAAW;EAAC;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;EAAI;CAAE,CAAC,CACvD,GACA,CACF,GAEA,OAAA;CAEF,MAAM,IAAI,YACR,2DACA;EAAE,aAAa;EAAM,aAAa;CAAY,CAChD;AACF;AAEA,IAAY,uBAAL,yBAAA,sBAAA;CACL,qBAAA,qBAAA,UAAA,KAAA;CACA,qBAAA,qBAAA,YAAA,KAAA;CACA,qBAAA,qBAAA,kBAAA,KAAA;CACA,qBAAA,qBAAA,iBAAA,KAAA;CACA,qBAAA,qBAAA,eAAA,KAAA;CACA,qBAAA,qBAAA,cAAA,KAAA;CACA,qBAAA,qBAAA,gBAAA,KAAA;CACA,qBAAA,qBAAA,kBAAA,KAAA;CACA,qBAAA,qBAAA,kBAAA,KAAA;CACA,qBAAA,qBAAA,c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@@
|
|
|
1
|
+
import { BUBBLEGUM_PROGRAM_ADDRESS, BubblegumAccount, BubblegumInstruction, BubblegumPlugin, BubblegumPluginAccounts, BubblegumPluginInstructions, BubblegumPluginPdas, BubblegumPluginRequirements, ParsedBubblegumInstruction, bubblegumProgram, identifyBubblegumAccount, identifyBubblegumInstruction, parseBubblegumInstruction } from "./bubblegum.js";
|
|
2
|
+
import { MPL_TOKEN_METADATA_PROGRAM_ADDRESS, MplTokenMetadataPlugin, MplTokenMetadataPluginPdas, MplTokenMetadataPluginRequirements, mplTokenMetadataProgram } from "./mplTokenMetadata.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { findMasterEditionPda } from "../pdas/masterEdition.js";
|
|
2
|
+
import { findMetadataPda } from "../pdas/metadata.js";
|
|
3
|
+
import { Address } from "@solana/kit";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/programs/mplTokenMetadata.d.ts
|
|
6
|
+
declare const MPL_TOKEN_METADATA_PROGRAM_ADDRESS: Address<"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s">;
|
|
7
|
+
interface MplTokenMetadataPlugin {
|
|
8
|
+
pdas: MplTokenMetadataPluginPdas;
|
|
9
|
+
}
|
|
10
|
+
interface MplTokenMetadataPluginPdas {
|
|
11
|
+
metadata: typeof findMetadataPda;
|
|
12
|
+
masterEdition: typeof findMasterEditionPda;
|
|
13
|
+
}
|
|
14
|
+
type MplTokenMetadataPluginRequirements = object;
|
|
15
|
+
declare function mplTokenMetadataProgram(): <T extends MplTokenMetadataPluginRequirements>(client: T) => Omit<T, "mplTokenMetadata"> & {
|
|
16
|
+
mplTokenMetadata: MplTokenMetadataPlugin;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { MPL_TOKEN_METADATA_PROGRAM_ADDRESS, MplTokenMetadataPlugin, MplTokenMetadataPluginPdas, MplTokenMetadataPluginRequirements, mplTokenMetadataProgram };
|
|
20
|
+
//# sourceMappingURL=mplTokenMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mplTokenMetadata.d.ts","names":[],"sources":["../../../src/generated/programs/mplTokenMetadata.ts"],"mappings":";;;;;cAYa,kCAAA,EACsC,OAAA;AAAA,UAElC,sBAAA;EACf,IAAA,EAAM,0BAAA;AAAA;AAAA,UAGS,0BAAA;EACf,QAAA,SAAiB,eAAA;EACjB,aAAA,SAAsB,oBAAA;AAAA;AAAA,KAGZ,kCAAA;AAAA,iBAEI,uBAAA,eACI,kCAAA,EAChB,MAAA,EAAQ,CAAA,KACP,IAAA,CAAK,CAAA;EACN,gBAAA,EAAkB,sBAAA;AAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { findMasterEditionPda } from "../pdas/masterEdition.js";
|
|
2
|
+
import { findMetadataPda } from "../pdas/metadata.js";
|
|
3
|
+
import { extendClient } from "@solana/kit";
|
|
4
|
+
//#region src/generated/programs/mplTokenMetadata.ts
|
|
5
|
+
const MPL_TOKEN_METADATA_PROGRAM_ADDRESS = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s";
|
|
6
|
+
function mplTokenMetadataProgram() {
|
|
7
|
+
return (client) => {
|
|
8
|
+
return extendClient(client, { mplTokenMetadata: { pdas: {
|
|
9
|
+
metadata: findMetadataPda,
|
|
10
|
+
masterEdition: findMasterEditionPda
|
|
11
|
+
} } });
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MPL_TOKEN_METADATA_PROGRAM_ADDRESS, mplTokenMetadataProgram };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=mplTokenMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mplTokenMetadata.js","names":[],"sources":["../../../src/generated/programs/mplTokenMetadata.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type { Address } from \"@solana/kit\";\nimport { extendClient } from \"@solana/kit\";\nimport { findMasterEditionPda, findMetadataPda } from \"../pdas/index.js\";\n\nexport const MPL_TOKEN_METADATA_PROGRAM_ADDRESS =\n \"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s\" as Address<\"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s\">;\n\nexport interface MplTokenMetadataPlugin {\n pdas: MplTokenMetadataPluginPdas;\n}\n\nexport interface MplTokenMetadataPluginPdas {\n metadata: typeof findMetadataPda;\n masterEdition: typeof findMasterEditionPda;\n}\n\nexport type MplTokenMetadataPluginRequirements = object;\n\nexport function mplTokenMetadataProgram() {\n return <T extends MplTokenMetadataPluginRequirements>(\n client: T,\n ): Omit<T, \"mplTokenMetadata\"> & {\n mplTokenMetadata: MplTokenMetadataPlugin;\n } => {\n return extendClient(client, {\n mplTokenMetadata: <MplTokenMetadataPlugin>{\n pdas: {\n metadata: findMetadataPda,\n masterEdition: findMasterEditionPda,\n },\n },\n });\n };\n}\n"],"mappings":";;;;AAYA,MAAa,qCACX;AAaF,SAAgB,0BAA0B;CACxC,QACE,WAGG;EACH,OAAO,aAAa,QAAQ,EAC1B,kBAA0C,EACxC,MAAM;GACJ,UAAU;GACV,eAAe;EACjB,EACF,EACF,CAAC;CACH;AACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/types/assetDataSchema.d.ts
|
|
4
|
+
declare enum AssetDataSchema {
|
|
5
|
+
Binary = 0,
|
|
6
|
+
Json = 1,
|
|
7
|
+
MsgPack = 2
|
|
8
|
+
}
|
|
9
|
+
type AssetDataSchemaArgs = AssetDataSchema;
|
|
10
|
+
declare function getAssetDataSchemaEncoder(): FixedSizeEncoder<AssetDataSchemaArgs>;
|
|
11
|
+
declare function getAssetDataSchemaDecoder(): FixedSizeDecoder<AssetDataSchema>;
|
|
12
|
+
declare function getAssetDataSchemaCodec(): FixedSizeCodec<AssetDataSchemaArgs, AssetDataSchema>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AssetDataSchema, AssetDataSchemaArgs, getAssetDataSchemaCodec, getAssetDataSchemaDecoder, getAssetDataSchemaEncoder };
|
|
15
|
+
//# sourceMappingURL=assetDataSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assetDataSchema.d.ts","names":[],"sources":["../../../src/generated/types/assetDataSchema.ts"],"mappings":";;;aAeY,eAAA;EACV,MAAA;EACA,IAAA;EACA,OAAA;AAAA;AAAA,KAGU,mBAAA,GAAsB,eAAA;AAAA,iBAElB,yBAAA,IAA6B,gBAAA,CAAiB,mBAAA;AAAA,iBAI9C,yBAAA,IAA6B,gBAAA,CAAiB,eAAA;AAAA,iBAI9C,uBAAA,IAA2B,cAAA,CACzC,mBAAA,EACA,eAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { combineCodec, getEnumDecoder, getEnumEncoder } from "@solana/kit";
|
|
2
|
+
//#region src/generated/types/assetDataSchema.ts
|
|
3
|
+
let AssetDataSchema = /* @__PURE__ */ function(AssetDataSchema) {
|
|
4
|
+
AssetDataSchema[AssetDataSchema["Binary"] = 0] = "Binary";
|
|
5
|
+
AssetDataSchema[AssetDataSchema["Json"] = 1] = "Json";
|
|
6
|
+
AssetDataSchema[AssetDataSchema["MsgPack"] = 2] = "MsgPack";
|
|
7
|
+
return AssetDataSchema;
|
|
8
|
+
}({});
|
|
9
|
+
function getAssetDataSchemaEncoder() {
|
|
10
|
+
return getEnumEncoder(AssetDataSchema);
|
|
11
|
+
}
|
|
12
|
+
function getAssetDataSchemaDecoder() {
|
|
13
|
+
return getEnumDecoder(AssetDataSchema);
|
|
14
|
+
}
|
|
15
|
+
function getAssetDataSchemaCodec() {
|
|
16
|
+
return combineCodec(getAssetDataSchemaEncoder(), getAssetDataSchemaDecoder());
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { AssetDataSchema, getAssetDataSchemaCodec, getAssetDataSchemaDecoder, getAssetDataSchemaEncoder };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=assetDataSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assetDataSchema.js","names":[],"sources":["../../../src/generated/types/assetDataSchema.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\n} from \"@solana/kit\";\nimport { combineCodec, getEnumDecoder, getEnumEncoder } from \"@solana/kit\";\n\nexport enum AssetDataSchema {\n Binary = 0,\n Json = 1,\n MsgPack = 2,\n}\n\nexport type AssetDataSchemaArgs = AssetDataSchema;\n\nexport function getAssetDataSchemaEncoder(): FixedSizeEncoder<AssetDataSchemaArgs> {\n return getEnumEncoder(AssetDataSchema);\n}\n\nexport function getAssetDataSchemaDecoder(): FixedSizeDecoder<AssetDataSchema> {\n return getEnumDecoder(AssetDataSchema);\n}\n\nexport function getAssetDataSchemaCodec(): FixedSizeCodec<\n AssetDataSchemaArgs,\n AssetDataSchema\n> {\n return combineCodec(getAssetDataSchemaEncoder(), getAssetDataSchemaDecoder());\n}\n"],"mappings":";;AAeA,IAAY,kBAAL,yBAAA,iBAAA;CACL,gBAAA,gBAAA,YAAA,KAAA;CACA,gBAAA,gBAAA,UAAA,KAAA;CACA,gBAAA,gBAAA,aAAA,KAAA;;AACF,EAAA,CAAA,CAAA;AAIA,SAAgB,4BAAmE;CACjF,OAAO,eAAe,eAAe;AACvC;AAEA,SAAgB,4BAA+D;CAC7E,OAAO,eAAe,eAAe;AACvC;AAEA,SAAgB,0BAGd;CACA,OAAO,aAAa,0BAA0B,GAAG,0BAA0B,CAAC;AAC9E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/types/bubblegumEventType.d.ts
|
|
4
|
+
declare enum BubblegumEventType {
|
|
5
|
+
Uninitialized = 0,
|
|
6
|
+
LeafSchemaEvent = 1
|
|
7
|
+
}
|
|
8
|
+
type BubblegumEventTypeArgs = BubblegumEventType;
|
|
9
|
+
declare function getBubblegumEventTypeEncoder(): FixedSizeEncoder<BubblegumEventTypeArgs>;
|
|
10
|
+
declare function getBubblegumEventTypeDecoder(): FixedSizeDecoder<BubblegumEventType>;
|
|
11
|
+
declare function getBubblegumEventTypeCodec(): FixedSizeCodec<BubblegumEventTypeArgs, BubblegumEventType>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BubblegumEventType, BubblegumEventTypeArgs, getBubblegumEventTypeCodec, getBubblegumEventTypeDecoder, getBubblegumEventTypeEncoder };
|
|
14
|
+
//# sourceMappingURL=bubblegumEventType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubblegumEventType.d.ts","names":[],"sources":["../../../src/generated/types/bubblegumEventType.ts"],"mappings":";;;aAeY,kBAAA;EACV,aAAA;EACA,eAAA;AAAA;AAAA,KAGU,sBAAA,GAAyB,kBAAA;AAAA,iBAErB,4BAAA,IAAgC,gBAAA,CAAiB,sBAAA;AAAA,iBAIjD,4BAAA,IAAgC,gBAAA,CAAiB,kBAAA;AAAA,iBAIjD,0BAAA,IAA8B,cAAA,CAC5C,sBAAA,EACA,kBAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { combineCodec, getEnumDecoder, getEnumEncoder } from "@solana/kit";
|
|
2
|
+
//#region src/generated/types/bubblegumEventType.ts
|
|
3
|
+
let BubblegumEventType = /* @__PURE__ */ function(BubblegumEventType) {
|
|
4
|
+
BubblegumEventType[BubblegumEventType["Uninitialized"] = 0] = "Uninitialized";
|
|
5
|
+
BubblegumEventType[BubblegumEventType["LeafSchemaEvent"] = 1] = "LeafSchemaEvent";
|
|
6
|
+
return BubblegumEventType;
|
|
7
|
+
}({});
|
|
8
|
+
function getBubblegumEventTypeEncoder() {
|
|
9
|
+
return getEnumEncoder(BubblegumEventType);
|
|
10
|
+
}
|
|
11
|
+
function getBubblegumEventTypeDecoder() {
|
|
12
|
+
return getEnumDecoder(BubblegumEventType);
|
|
13
|
+
}
|
|
14
|
+
function getBubblegumEventTypeCodec() {
|
|
15
|
+
return combineCodec(getBubblegumEventTypeEncoder(), getBubblegumEventTypeDecoder());
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { BubblegumEventType, getBubblegumEventTypeCodec, getBubblegumEventTypeDecoder, getBubblegumEventTypeEncoder };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=bubblegumEventType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubblegumEventType.js","names":[],"sources":["../../../src/generated/types/bubblegumEventType.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\n} from \"@solana/kit\";\nimport { combineCodec, getEnumDecoder, getEnumEncoder } from \"@solana/kit\";\n\nexport enum BubblegumEventType {\n Uninitialized = 0,\n LeafSchemaEvent = 1,\n}\n\nexport type BubblegumEventTypeArgs = BubblegumEventType;\n\nexport function getBubblegumEventTypeEncoder(): FixedSizeEncoder<BubblegumEventTypeArgs> {\n return getEnumEncoder(BubblegumEventType);\n}\n\nexport function getBubblegumEventTypeDecoder(): FixedSizeDecoder<BubblegumEventType> {\n return getEnumDecoder(BubblegumEventType);\n}\n\nexport function getBubblegumEventTypeCodec(): FixedSizeCodec<\n BubblegumEventTypeArgs,\n BubblegumEventType\n> {\n return combineCodec(\n getBubblegumEventTypeEncoder(),\n getBubblegumEventTypeDecoder(),\n );\n}\n"],"mappings":";;AAeA,IAAY,qBAAL,yBAAA,oBAAA;CACL,mBAAA,mBAAA,mBAAA,KAAA;CACA,mBAAA,mBAAA,qBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;AAIA,SAAgB,+BAAyE;CACvF,OAAO,eAAe,kBAAkB;AAC1C;AAEA,SAAgB,+BAAqE;CACnF,OAAO,eAAe,kBAAkB;AAC1C;AAEA,SAAgB,6BAGd;CACA,OAAO,aACL,6BAA6B,GAC7B,6BAA6B,CAC/B;AACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/types/collection.d.ts
|
|
4
|
+
interface Collection {
|
|
5
|
+
verified: boolean;
|
|
6
|
+
key: Address;
|
|
7
|
+
}
|
|
8
|
+
type CollectionArgs = Collection;
|
|
9
|
+
declare function getCollectionEncoder(): FixedSizeEncoder<CollectionArgs>;
|
|
10
|
+
declare function getCollectionDecoder(): FixedSizeDecoder<Collection>;
|
|
11
|
+
declare function getCollectionCodec(): FixedSizeCodec<CollectionArgs, Collection>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Collection, CollectionArgs, getCollectionCodec, getCollectionDecoder, getCollectionEncoder };
|
|
14
|
+
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection.d.ts","names":[],"sources":["../../../src/generated/types/collection.ts"],"mappings":";;;UAwBiB,UAAA;EACf,QAAA;EACA,GAAA,EAAK,OAAA;AAAA;AAAA,KAGK,cAAA,GAAiB,UAAA;AAAA,iBAEb,oBAAA,IAAwB,gBAAA,CAAiB,cAAA;AAAA,iBAOzC,oBAAA,IAAwB,gBAAA,CAAiB,UAAA;AAAA,iBAOzC,kBAAA,IAAsB,cAAA,CACpC,cAAA,EACA,UAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { combineCodec, getAddressDecoder, getAddressEncoder, getBooleanDecoder, getBooleanEncoder, getStructDecoder, getStructEncoder } from "@solana/kit";
|
|
2
|
+
//#region src/generated/types/collection.ts
|
|
3
|
+
function getCollectionEncoder() {
|
|
4
|
+
return getStructEncoder([["verified", getBooleanEncoder()], ["key", getAddressEncoder()]]);
|
|
5
|
+
}
|
|
6
|
+
function getCollectionDecoder() {
|
|
7
|
+
return getStructDecoder([["verified", getBooleanDecoder()], ["key", getAddressDecoder()]]);
|
|
8
|
+
}
|
|
9
|
+
function getCollectionCodec() {
|
|
10
|
+
return combineCodec(getCollectionEncoder(), getCollectionDecoder());
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getCollectionCodec, getCollectionDecoder, getCollectionEncoder };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=collection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection.js","names":[],"sources":["../../../src/generated/types/collection.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n Address,\n FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\n} from \"@solana/kit\";\nimport {\n combineCodec,\n getAddressDecoder,\n getAddressEncoder,\n getBooleanDecoder,\n getBooleanEncoder,\n getStructDecoder,\n getStructEncoder,\n} from \"@solana/kit\";\n\nexport interface Collection {\n verified: boolean;\n key: Address;\n}\n\nexport type CollectionArgs = Collection;\n\nexport function getCollectionEncoder(): FixedSizeEncoder<CollectionArgs> {\n return getStructEncoder([\n [\"verified\", getBooleanEncoder()],\n [\"key\", getAddressEncoder()],\n ]);\n}\n\nexport function getCollectionDecoder(): FixedSizeDecoder<Collection> {\n return getStructDecoder([\n [\"verified\", getBooleanDecoder()],\n [\"key\", getAddressDecoder()],\n ]);\n}\n\nexport function getCollectionCodec(): FixedSizeCodec<\n CollectionArgs,\n Collection\n> {\n return combineCodec(getCollectionEncoder(), getCollectionDecoder());\n}\n"],"mappings":";;AA+BA,SAAgB,uBAAyD;CACvE,OAAO,iBAAiB,CACtB,CAAC,YAAY,kBAAkB,CAAC,GAChC,CAAC,OAAO,kBAAkB,CAAC,CAC7B,CAAC;AACH;AAEA,SAAgB,uBAAqD;CACnE,OAAO,iBAAiB,CACtB,CAAC,YAAY,kBAAkB,CAAC,GAChC,CAAC,OAAO,kBAAkB,CAAC,CAC7B,CAAC;AACH;AAEA,SAAgB,qBAGd;CACA,OAAO,aAAa,qBAAqB,GAAG,qBAAqB,CAAC;AACpE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/types/creator.d.ts
|
|
4
|
+
interface Creator {
|
|
5
|
+
address: Address;
|
|
6
|
+
verified: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The percentage share.
|
|
9
|
+
*
|
|
10
|
+
* The value is a percentage, not basis points.
|
|
11
|
+
*/
|
|
12
|
+
share: number;
|
|
13
|
+
}
|
|
14
|
+
type CreatorArgs = Creator;
|
|
15
|
+
declare function getCreatorEncoder(): FixedSizeEncoder<CreatorArgs>;
|
|
16
|
+
declare function getCreatorDecoder(): FixedSizeDecoder<Creator>;
|
|
17
|
+
declare function getCreatorCodec(): FixedSizeCodec<CreatorArgs, Creator>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Creator, CreatorArgs, getCreatorCodec, getCreatorDecoder, getCreatorEncoder };
|
|
20
|
+
//# sourceMappingURL=creator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creator.d.ts","names":[],"sources":["../../../src/generated/types/creator.ts"],"mappings":";;;UA0BiB,OAAA;EACf,OAAA,EAAS,OAAA;EACT,QAAA;EAMA;AAAA;AAGF;;;EAHE,KAAA;AAAA;AAAA,KAGU,WAAA,GAAc,OAAA;AAAA,iBAEV,iBAAA,IAAqB,gBAAA,CAAiB,WAAA;AAAA,iBAQtC,iBAAA,IAAqB,gBAAA,CAAiB,OAAA;AAAA,iBAQtC,eAAA,IAAmB,cAAA,CAAe,WAAA,EAAa,OAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { combineCodec, getAddressDecoder, getAddressEncoder, getBooleanDecoder, getBooleanEncoder, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder } from "@solana/kit";
|
|
2
|
+
//#region src/generated/types/creator.ts
|
|
3
|
+
function getCreatorEncoder() {
|
|
4
|
+
return getStructEncoder([
|
|
5
|
+
["address", getAddressEncoder()],
|
|
6
|
+
["verified", getBooleanEncoder()],
|
|
7
|
+
["share", getU8Encoder()]
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
function getCreatorDecoder() {
|
|
11
|
+
return getStructDecoder([
|
|
12
|
+
["address", getAddressDecoder()],
|
|
13
|
+
["verified", getBooleanDecoder()],
|
|
14
|
+
["share", getU8Decoder()]
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
function getCreatorCodec() {
|
|
18
|
+
return combineCodec(getCreatorEncoder(), getCreatorDecoder());
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { getCreatorCodec, getCreatorDecoder, getCreatorEncoder };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=creator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creator.js","names":[],"sources":["../../../src/generated/types/creator.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n Address,\n FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\n} from \"@solana/kit\";\nimport {\n combineCodec,\n getAddressDecoder,\n getAddressEncoder,\n getBooleanDecoder,\n getBooleanEncoder,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n} from \"@solana/kit\";\n\nexport interface Creator {\n address: Address;\n verified: boolean;\n /**\n * The percentage share.\n *\n * The value is a percentage, not basis points.\n */\n share: number;\n}\n\nexport type CreatorArgs = Creator;\n\nexport function getCreatorEncoder(): FixedSizeEncoder<CreatorArgs> {\n return getStructEncoder([\n [\"address\", getAddressEncoder()],\n [\"verified\", getBooleanEncoder()],\n [\"share\", getU8Encoder()],\n ]);\n}\n\nexport function getCreatorDecoder(): FixedSizeDecoder<Creator> {\n return getStructDecoder([\n [\"address\", getAddressDecoder()],\n [\"verified\", getBooleanDecoder()],\n [\"share\", getU8Decoder()],\n ]);\n}\n\nexport function getCreatorCodec(): FixedSizeCodec<CreatorArgs, Creator> {\n return combineCodec(getCreatorEncoder(), getCreatorDecoder());\n}\n"],"mappings":";;AAuCA,SAAgB,oBAAmD;CACjE,OAAO,iBAAiB;EACtB,CAAC,WAAW,kBAAkB,CAAC;EAC/B,CAAC,YAAY,kBAAkB,CAAC;EAChC,CAAC,SAAS,aAAa,CAAC;CAC1B,CAAC;AACH;AAEA,SAAgB,oBAA+C;CAC7D,OAAO,iBAAiB;EACtB,CAAC,WAAW,kBAAkB,CAAC;EAC/B,CAAC,YAAY,kBAAkB,CAAC;EAChC,CAAC,SAAS,aAAa,CAAC;CAC1B,CAAC;AACH;AAEA,SAAgB,kBAAwD;CACtE,OAAO,aAAa,kBAAkB,GAAG,kBAAkB,CAAC;AAC9D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/types/decompressibleState.d.ts
|
|
4
|
+
declare enum DecompressibleState {
|
|
5
|
+
Enabled = 0,
|
|
6
|
+
Disabled = 1
|
|
7
|
+
}
|
|
8
|
+
type DecompressibleStateArgs = DecompressibleState;
|
|
9
|
+
declare function getDecompressibleStateEncoder(): FixedSizeEncoder<DecompressibleStateArgs>;
|
|
10
|
+
declare function getDecompressibleStateDecoder(): FixedSizeDecoder<DecompressibleState>;
|
|
11
|
+
declare function getDecompressibleStateCodec(): FixedSizeCodec<DecompressibleStateArgs, DecompressibleState>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DecompressibleState, DecompressibleStateArgs, getDecompressibleStateCodec, getDecompressibleStateDecoder, getDecompressibleStateEncoder };
|
|
14
|
+
//# sourceMappingURL=decompressibleState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decompressibleState.d.ts","names":[],"sources":["../../../src/generated/types/decompressibleState.ts"],"mappings":";;;aAeY,mBAAA;EACV,OAAA;EACA,QAAA;AAAA;AAAA,KAGU,uBAAA,GAA0B,mBAAA;AAAA,iBAEtB,6BAAA,IAAiC,gBAAA,CAAiB,uBAAA;AAAA,iBAIlD,6BAAA,IAAiC,gBAAA,CAAiB,mBAAA;AAAA,iBAIlD,2BAAA,IAA+B,cAAA,CAC7C,uBAAA,EACA,mBAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { combineCodec, getEnumDecoder, getEnumEncoder } from "@solana/kit";
|
|
2
|
+
//#region src/generated/types/decompressibleState.ts
|
|
3
|
+
let DecompressibleState = /* @__PURE__ */ function(DecompressibleState) {
|
|
4
|
+
DecompressibleState[DecompressibleState["Enabled"] = 0] = "Enabled";
|
|
5
|
+
DecompressibleState[DecompressibleState["Disabled"] = 1] = "Disabled";
|
|
6
|
+
return DecompressibleState;
|
|
7
|
+
}({});
|
|
8
|
+
function getDecompressibleStateEncoder() {
|
|
9
|
+
return getEnumEncoder(DecompressibleState);
|
|
10
|
+
}
|
|
11
|
+
function getDecompressibleStateDecoder() {
|
|
12
|
+
return getEnumDecoder(DecompressibleState);
|
|
13
|
+
}
|
|
14
|
+
function getDecompressibleStateCodec() {
|
|
15
|
+
return combineCodec(getDecompressibleStateEncoder(), getDecompressibleStateDecoder());
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DecompressibleState, getDecompressibleStateCodec, getDecompressibleStateDecoder, getDecompressibleStateEncoder };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=decompressibleState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decompressibleState.js","names":[],"sources":["../../../src/generated/types/decompressibleState.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\n} from \"@solana/kit\";\nimport { combineCodec, getEnumDecoder, getEnumEncoder } from \"@solana/kit\";\n\nexport enum DecompressibleState {\n Enabled = 0,\n Disabled = 1,\n}\n\nexport type DecompressibleStateArgs = DecompressibleState;\n\nexport function getDecompressibleStateEncoder(): FixedSizeEncoder<DecompressibleStateArgs> {\n return getEnumEncoder(DecompressibleState);\n}\n\nexport function getDecompressibleStateDecoder(): FixedSizeDecoder<DecompressibleState> {\n return getEnumDecoder(DecompressibleState);\n}\n\nexport function getDecompressibleStateCodec(): FixedSizeCodec<\n DecompressibleStateArgs,\n DecompressibleState\n> {\n return combineCodec(\n getDecompressibleStateEncoder(),\n getDecompressibleStateDecoder(),\n );\n}\n"],"mappings":";;AAeA,IAAY,sBAAL,yBAAA,qBAAA;CACL,oBAAA,oBAAA,aAAA,KAAA;CACA,oBAAA,oBAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;AAIA,SAAgB,gCAA2E;CACzF,OAAO,eAAe,mBAAmB;AAC3C;AAEA,SAAgB,gCAAuE;CACrF,OAAO,eAAe,mBAAmB;AAC3C;AAEA,SAAgB,8BAGd;CACA,OAAO,aACL,8BAA8B,GAC9B,8BAA8B,CAChC;AACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AssetDataSchema, AssetDataSchemaArgs, getAssetDataSchemaCodec, getAssetDataSchemaDecoder, getAssetDataSchemaEncoder } from "./assetDataSchema.js";
|
|
2
|
+
import { BubblegumEventType, BubblegumEventTypeArgs, getBubblegumEventTypeCodec, getBubblegumEventTypeDecoder, getBubblegumEventTypeEncoder } from "./bubblegumEventType.js";
|
|
3
|
+
import { Collection, CollectionArgs, getCollectionCodec, getCollectionDecoder, getCollectionEncoder } from "./collection.js";
|
|
4
|
+
import { Creator, CreatorArgs, getCreatorCodec, getCreatorDecoder, getCreatorEncoder } from "./creator.js";
|
|
5
|
+
import { DecompressibleState, DecompressibleStateArgs, getDecompressibleStateCodec, getDecompressibleStateDecoder, getDecompressibleStateEncoder } from "./decompressibleState.js";
|
|
6
|
+
import { InstructionName, InstructionNameArgs, getInstructionNameCodec, getInstructionNameDecoder, getInstructionNameEncoder } from "./instructionName.js";
|
|
7
|
+
import { LeafSchema, LeafSchemaArgs, getLeafSchemaCodec, getLeafSchemaDecoder, getLeafSchemaEncoder, isLeafSchema, leafSchema } from "./leafSchema.js";
|
|
8
|
+
import { MetadataArgs, MetadataArgsArgs, getMetadataArgsCodec, getMetadataArgsDecoder, getMetadataArgsEncoder } from "./metadataArgs.js";
|
|
9
|
+
import { MetadataArgsV2, MetadataArgsV2Args, getMetadataArgsV2Codec, getMetadataArgsV2Decoder, getMetadataArgsV2Encoder } from "./metadataArgsV2.js";
|
|
10
|
+
import { TokenProgramVersion, TokenProgramVersionArgs, getTokenProgramVersionCodec, getTokenProgramVersionDecoder, getTokenProgramVersionEncoder } from "./tokenProgramVersion.js";
|
|
11
|
+
import { TokenStandard, TokenStandardArgs, getTokenStandardCodec, getTokenStandardDecoder, getTokenStandardEncoder } from "./tokenStandard.js";
|
|
12
|
+
import { UpdateArgs, UpdateArgsArgs, getUpdateArgsCodec, getUpdateArgsDecoder, getUpdateArgsEncoder } from "./updateArgs.js";
|
|
13
|
+
import { UseMethod, UseMethodArgs, getUseMethodCodec, getUseMethodDecoder, getUseMethodEncoder } from "./useMethod.js";
|
|
14
|
+
import { Uses, UsesArgs, getUsesCodec, getUsesDecoder, getUsesEncoder } from "./uses.js";
|
|
15
|
+
import { Version, VersionArgs, getVersionCodec, getVersionDecoder, getVersionEncoder } from "./version.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/types/instructionName.d.ts
|
|
4
|
+
declare enum InstructionName {
|
|
5
|
+
Unknown = 0,
|
|
6
|
+
MintV1 = 1,
|
|
7
|
+
Redeem = 2,
|
|
8
|
+
CancelRedeem = 3,
|
|
9
|
+
Transfer = 4,
|
|
10
|
+
Delegate = 5,
|
|
11
|
+
DecompressV1 = 6,
|
|
12
|
+
Compress = 7,
|
|
13
|
+
Burn = 8,
|
|
14
|
+
CreateTree = 9,
|
|
15
|
+
VerifyCreator = 10,
|
|
16
|
+
UnverifyCreator = 11,
|
|
17
|
+
VerifyCollection = 12,
|
|
18
|
+
UnverifyCollection = 13,
|
|
19
|
+
SetAndVerifyCollection = 14,
|
|
20
|
+
MintToCollectionV1 = 15,
|
|
21
|
+
SetDecompressibleState = 16,
|
|
22
|
+
UpdateMetadata = 17,
|
|
23
|
+
BurnV2 = 18,
|
|
24
|
+
CollectV2 = 19,
|
|
25
|
+
CreateTreeV2 = 20,
|
|
26
|
+
DelegateAndFreezeV2 = 21,
|
|
27
|
+
DelegateV2 = 22,
|
|
28
|
+
FreezeV2 = 23,
|
|
29
|
+
MintV2 = 24,
|
|
30
|
+
SetCollectionV2 = 25,
|
|
31
|
+
SetNonTransferableV2 = 26,
|
|
32
|
+
ThawAndRevokeV2 = 27,
|
|
33
|
+
ThawV2 = 28,
|
|
34
|
+
TransferV2 = 29,
|
|
35
|
+
UnverifyCreatorV2 = 30,
|
|
36
|
+
UpdateAssetDataV2 = 31,
|
|
37
|
+
UpdateMetadataV2 = 32,
|
|
38
|
+
VerifyCreatorV2 = 33,
|
|
39
|
+
CloseTreeV2 = 34
|
|
40
|
+
}
|
|
41
|
+
type InstructionNameArgs = InstructionName;
|
|
42
|
+
declare function getInstructionNameEncoder(): FixedSizeEncoder<InstructionNameArgs>;
|
|
43
|
+
declare function getInstructionNameDecoder(): FixedSizeDecoder<InstructionName>;
|
|
44
|
+
declare function getInstructionNameCodec(): FixedSizeCodec<InstructionNameArgs, InstructionName>;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { InstructionName, InstructionNameArgs, getInstructionNameCodec, getInstructionNameDecoder, getInstructionNameEncoder };
|
|
47
|
+
//# sourceMappingURL=instructionName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instructionName.d.ts","names":[],"sources":["../../../src/generated/types/instructionName.ts"],"mappings":";;;aAeY,eAAA;EACV,OAAA;EACA,MAAA;EACA,MAAA;EACA,YAAA;EACA,QAAA;EACA,QAAA;EACA,YAAA;EACA,QAAA;EACA,IAAA;EACA,UAAA;EACA,aAAA;EACA,eAAA;EACA,gBAAA;EACA,kBAAA;EACA,sBAAA;EACA,kBAAA;EACA,sBAAA;EACA,cAAA;EACA,MAAA;EACA,SAAA;EACA,YAAA;EACA,mBAAA;EACA,UAAA;EACA,QAAA;EACA,MAAA;EACA,eAAA;EACA,oBAAA;EACA,eAAA;EACA,MAAA;EACA,UAAA;EACA,iBAAA;EACA,iBAAA;EACA,gBAAA;EACA,eAAA;EACA,WAAA;AAAA;AAAA,KAGU,mBAAA,GAAsB,eAAA;AAAA,iBAElB,yBAAA,IAA6B,gBAAA,CAAiB,mBAAA;AAAA,iBAI9C,yBAAA,IAA6B,gBAAA,CAAiB,eAAA;AAAA,iBAI9C,uBAAA,IAA2B,cAAA,CACzC,mBAAA,EACA,eAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { combineCodec, getEnumDecoder, getEnumEncoder } from "@solana/kit";
|
|
2
|
+
//#region src/generated/types/instructionName.ts
|
|
3
|
+
let InstructionName = /* @__PURE__ */ function(InstructionName) {
|
|
4
|
+
InstructionName[InstructionName["Unknown"] = 0] = "Unknown";
|
|
5
|
+
InstructionName[InstructionName["MintV1"] = 1] = "MintV1";
|
|
6
|
+
InstructionName[InstructionName["Redeem"] = 2] = "Redeem";
|
|
7
|
+
InstructionName[InstructionName["CancelRedeem"] = 3] = "CancelRedeem";
|
|
8
|
+
InstructionName[InstructionName["Transfer"] = 4] = "Transfer";
|
|
9
|
+
InstructionName[InstructionName["Delegate"] = 5] = "Delegate";
|
|
10
|
+
InstructionName[InstructionName["DecompressV1"] = 6] = "DecompressV1";
|
|
11
|
+
InstructionName[InstructionName["Compress"] = 7] = "Compress";
|
|
12
|
+
InstructionName[InstructionName["Burn"] = 8] = "Burn";
|
|
13
|
+
InstructionName[InstructionName["CreateTree"] = 9] = "CreateTree";
|
|
14
|
+
InstructionName[InstructionName["VerifyCreator"] = 10] = "VerifyCreator";
|
|
15
|
+
InstructionName[InstructionName["UnverifyCreator"] = 11] = "UnverifyCreator";
|
|
16
|
+
InstructionName[InstructionName["VerifyCollection"] = 12] = "VerifyCollection";
|
|
17
|
+
InstructionName[InstructionName["UnverifyCollection"] = 13] = "UnverifyCollection";
|
|
18
|
+
InstructionName[InstructionName["SetAndVerifyCollection"] = 14] = "SetAndVerifyCollection";
|
|
19
|
+
InstructionName[InstructionName["MintToCollectionV1"] = 15] = "MintToCollectionV1";
|
|
20
|
+
InstructionName[InstructionName["SetDecompressibleState"] = 16] = "SetDecompressibleState";
|
|
21
|
+
InstructionName[InstructionName["UpdateMetadata"] = 17] = "UpdateMetadata";
|
|
22
|
+
InstructionName[InstructionName["BurnV2"] = 18] = "BurnV2";
|
|
23
|
+
InstructionName[InstructionName["CollectV2"] = 19] = "CollectV2";
|
|
24
|
+
InstructionName[InstructionName["CreateTreeV2"] = 20] = "CreateTreeV2";
|
|
25
|
+
InstructionName[InstructionName["DelegateAndFreezeV2"] = 21] = "DelegateAndFreezeV2";
|
|
26
|
+
InstructionName[InstructionName["DelegateV2"] = 22] = "DelegateV2";
|
|
27
|
+
InstructionName[InstructionName["FreezeV2"] = 23] = "FreezeV2";
|
|
28
|
+
InstructionName[InstructionName["MintV2"] = 24] = "MintV2";
|
|
29
|
+
InstructionName[InstructionName["SetCollectionV2"] = 25] = "SetCollectionV2";
|
|
30
|
+
InstructionName[InstructionName["SetNonTransferableV2"] = 26] = "SetNonTransferableV2";
|
|
31
|
+
InstructionName[InstructionName["ThawAndRevokeV2"] = 27] = "ThawAndRevokeV2";
|
|
32
|
+
InstructionName[InstructionName["ThawV2"] = 28] = "ThawV2";
|
|
33
|
+
InstructionName[InstructionName["TransferV2"] = 29] = "TransferV2";
|
|
34
|
+
InstructionName[InstructionName["UnverifyCreatorV2"] = 30] = "UnverifyCreatorV2";
|
|
35
|
+
InstructionName[InstructionName["UpdateAssetDataV2"] = 31] = "UpdateAssetDataV2";
|
|
36
|
+
InstructionName[InstructionName["UpdateMetadataV2"] = 32] = "UpdateMetadataV2";
|
|
37
|
+
InstructionName[InstructionName["VerifyCreatorV2"] = 33] = "VerifyCreatorV2";
|
|
38
|
+
InstructionName[InstructionName["CloseTreeV2"] = 34] = "CloseTreeV2";
|
|
39
|
+
return InstructionName;
|
|
40
|
+
}({});
|
|
41
|
+
function getInstructionNameEncoder() {
|
|
42
|
+
return getEnumEncoder(InstructionName);
|
|
43
|
+
}
|
|
44
|
+
function getInstructionNameDecoder() {
|
|
45
|
+
return getEnumDecoder(InstructionName);
|
|
46
|
+
}
|
|
47
|
+
function getInstructionNameCodec() {
|
|
48
|
+
return combineCodec(getInstructionNameEncoder(), getInstructionNameDecoder());
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { InstructionName, getInstructionNameCodec, getInstructionNameDecoder, getInstructionNameEncoder };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=instructionName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instructionName.js","names":[],"sources":["../../../src/generated/types/instructionName.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\n} from \"@solana/kit\";\nimport { combineCodec, getEnumDecoder, getEnumEncoder } from \"@solana/kit\";\n\nexport enum InstructionName {\n Unknown = 0,\n MintV1 = 1,\n Redeem = 2,\n CancelRedeem = 3,\n Transfer = 4,\n Delegate = 5,\n DecompressV1 = 6,\n Compress = 7,\n Burn = 8,\n CreateTree = 9,\n VerifyCreator = 10,\n UnverifyCreator = 11,\n VerifyCollection = 12,\n UnverifyCollection = 13,\n SetAndVerifyCollection = 14,\n MintToCollectionV1 = 15,\n SetDecompressibleState = 16,\n UpdateMetadata = 17,\n BurnV2 = 18,\n CollectV2 = 19,\n CreateTreeV2 = 20,\n DelegateAndFreezeV2 = 21,\n DelegateV2 = 22,\n FreezeV2 = 23,\n MintV2 = 24,\n SetCollectionV2 = 25,\n SetNonTransferableV2 = 26,\n ThawAndRevokeV2 = 27,\n ThawV2 = 28,\n TransferV2 = 29,\n UnverifyCreatorV2 = 30,\n UpdateAssetDataV2 = 31,\n UpdateMetadataV2 = 32,\n VerifyCreatorV2 = 33,\n CloseTreeV2 = 34,\n}\n\nexport type InstructionNameArgs = InstructionName;\n\nexport function getInstructionNameEncoder(): FixedSizeEncoder<InstructionNameArgs> {\n return getEnumEncoder(InstructionName);\n}\n\nexport function getInstructionNameDecoder(): FixedSizeDecoder<InstructionName> {\n return getEnumDecoder(InstructionName);\n}\n\nexport function getInstructionNameCodec(): FixedSizeCodec<\n InstructionNameArgs,\n InstructionName\n> {\n return combineCodec(getInstructionNameEncoder(), getInstructionNameDecoder());\n}\n"],"mappings":";;AAeA,IAAY,kBAAL,yBAAA,iBAAA;CACL,gBAAA,gBAAA,aAAA,KAAA;CACA,gBAAA,gBAAA,YAAA,KAAA;CACA,gBAAA,gBAAA,YAAA,KAAA;CACA,gBAAA,gBAAA,kBAAA,KAAA;CACA,gBAAA,gBAAA,cAAA,KAAA;CACA,gBAAA,gBAAA,cAAA,KAAA;CACA,gBAAA,gBAAA,kBAAA,KAAA;CACA,gBAAA,gBAAA,cAAA,KAAA;CACA,gBAAA,gBAAA,UAAA,KAAA;CACA,gBAAA,gBAAA,gBAAA,KAAA;CACA,gBAAA,gBAAA,mBAAA,MAAA;CACA,gBAAA,gBAAA,qBAAA,MAAA;CACA,gBAAA,gBAAA,sBAAA,MAAA;CACA,gBAAA,gBAAA,wBAAA,MAAA;CACA,gBAAA,gBAAA,4BAAA,MAAA;CACA,gBAAA,gBAAA,wBAAA,MAAA;CACA,gBAAA,gBAAA,4BAAA,MAAA;CACA,gBAAA,gBAAA,oBAAA,MAAA;CACA,gBAAA,gBAAA,YAAA,MAAA;CACA,gBAAA,gBAAA,eAAA,MAAA;CACA,gBAAA,gBAAA,kBAAA,MAAA;CACA,gBAAA,gBAAA,yBAAA,MAAA;CACA,gBAAA,gBAAA,gBAAA,MAAA;CACA,gBAAA,gBAAA,cAAA,MAAA;CACA,gBAAA,gBAAA,YAAA,MAAA;CACA,gBAAA,gBAAA,qBAAA,MAAA;CACA,gBAAA,gBAAA,0BAAA,MAAA;CACA,gBAAA,gBAAA,qBAAA,MAAA;CACA,gBAAA,gBAAA,YAAA,MAAA;CACA,gBAAA,gBAAA,gBAAA,MAAA;CACA,gBAAA,gBAAA,uBAAA,MAAA;CACA,gBAAA,gBAAA,uBAAA,MAAA;CACA,gBAAA,gBAAA,sBAAA,MAAA;CACA,gBAAA,gBAAA,qBAAA,MAAA;CACA,gBAAA,gB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