@macalinao/clients-mpl-bubblegum 0.3.0 → 0.3.2
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/dist/generated/accounts/index.d.ts +2 -1
- package/dist/generated/accounts/treeConfig.d.ts +22 -7
- package/dist/generated/accounts/treeConfig.d.ts.map +1 -1
- package/dist/generated/accounts/treeConfig.js +7 -0
- package/dist/generated/accounts/treeConfig.js.map +1 -1
- package/dist/generated/accounts/voucher.d.ts +14 -7
- package/dist/generated/accounts/voucher.d.ts.map +1 -1
- package/dist/generated/accounts/voucher.js +7 -0
- package/dist/generated/accounts/voucher.js.map +1 -1
- package/dist/generated/errors/bubblegum.d.ts +0 -1
- package/dist/generated/errors/bubblegum.d.ts.map +1 -1
- package/dist/generated/errors/bubblegum.js +66 -59
- package/dist/generated/errors/bubblegum.js.map +1 -1
- package/dist/generated/errors/index.d.ts +2 -1
- package/dist/generated/index.d.ts +8 -1
- package/dist/generated/instructions/burn.d.ts +141 -17
- package/dist/generated/instructions/burn.d.ts.map +1 -1
- package/dist/generated/instructions/burn.js +23 -0
- package/dist/generated/instructions/burn.js.map +1 -1
- package/dist/generated/instructions/burnV2.d.ts +179 -31
- package/dist/generated/instructions/burnV2.d.ts.map +1 -1
- package/dist/generated/instructions/burnV2.js +21 -0
- package/dist/generated/instructions/burnV2.js.map +1 -1
- package/dist/generated/instructions/cancelRedeem.d.ts +99 -13
- package/dist/generated/instructions/cancelRedeem.d.ts.map +1 -1
- package/dist/generated/instructions/cancelRedeem.js +19 -0
- package/dist/generated/instructions/cancelRedeem.js.map +1 -1
- package/dist/generated/instructions/closeTreeV2.d.ts +85 -19
- package/dist/generated/instructions/closeTreeV2.d.ts.map +1 -1
- package/dist/generated/instructions/closeTreeV2.js +21 -0
- package/dist/generated/instructions/closeTreeV2.js.map +1 -1
- package/dist/generated/instructions/collectV2.d.ts +20 -7
- package/dist/generated/instructions/collectV2.d.ts.map +1 -1
- package/dist/generated/instructions/collectV2.js +10 -0
- package/dist/generated/instructions/collectV2.js.map +1 -1
- package/dist/generated/instructions/compress.d.ts +119 -9
- package/dist/generated/instructions/compress.d.ts.map +1 -1
- package/dist/generated/instructions/compress.js +21 -0
- package/dist/generated/instructions/compress.js.map +1 -1
- package/dist/generated/instructions/createTree.d.ts +117 -11
- package/dist/generated/instructions/createTree.d.ts.map +1 -1
- package/dist/generated/instructions/createTree.js +23 -0
- package/dist/generated/instructions/createTree.js.map +1 -1
- package/dist/generated/instructions/createTreeV2.d.ts +109 -14
- package/dist/generated/instructions/createTreeV2.d.ts.map +1 -1
- package/dist/generated/instructions/createTreeV2.js +23 -0
- package/dist/generated/instructions/createTreeV2.js.map +1 -1
- package/dist/generated/instructions/decompressV1.d.ts +106 -11
- package/dist/generated/instructions/decompressV1.d.ts.map +1 -1
- package/dist/generated/instructions/decompressV1.js +25 -0
- package/dist/generated/instructions/decompressV1.js.map +1 -1
- package/dist/generated/instructions/delegate.d.ts +140 -17
- package/dist/generated/instructions/delegate.d.ts.map +1 -1
- package/dist/generated/instructions/delegate.js +19 -0
- package/dist/generated/instructions/delegate.js.map +1 -1
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts +171 -27
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts.map +1 -1
- package/dist/generated/instructions/delegateAndFreezeV2.js +17 -0
- package/dist/generated/instructions/delegateAndFreezeV2.js.map +1 -1
- package/dist/generated/instructions/delegateV2.d.ts +169 -27
- package/dist/generated/instructions/delegateV2.d.ts.map +1 -1
- package/dist/generated/instructions/delegateV2.js +15 -0
- package/dist/generated/instructions/delegateV2.js.map +1 -1
- package/dist/generated/instructions/freezeV2.d.ts +174 -28
- package/dist/generated/instructions/freezeV2.d.ts.map +1 -1
- package/dist/generated/instructions/freezeV2.js +23 -0
- package/dist/generated/instructions/freezeV2.js.map +1 -1
- package/dist/generated/instructions/index.d.ts +2 -1
- package/dist/generated/instructions/mintToCollectionV1.d.ts +171 -20
- package/dist/generated/instructions/mintToCollectionV1.d.ts.map +1 -1
- package/dist/generated/instructions/mintToCollectionV1.js +23 -0
- package/dist/generated/instructions/mintToCollectionV1.js.map +1 -1
- package/dist/generated/instructions/mintV1.d.ts +109 -11
- package/dist/generated/instructions/mintV1.d.ts.map +1 -1
- package/dist/generated/instructions/mintV1.js +21 -0
- package/dist/generated/instructions/mintV1.js.map +1 -1
- package/dist/generated/instructions/mintV2.d.ts +163 -17
- package/dist/generated/instructions/mintV2.d.ts.map +1 -1
- package/dist/generated/instructions/mintV2.js +45 -0
- package/dist/generated/instructions/mintV2.js.map +1 -1
- package/dist/generated/instructions/redeem.d.ts +153 -17
- package/dist/generated/instructions/redeem.d.ts.map +1 -1
- package/dist/generated/instructions/redeem.js +23 -0
- package/dist/generated/instructions/redeem.js.map +1 -1
- package/dist/generated/instructions/setAndVerifyCollection.d.ts +222 -38
- package/dist/generated/instructions/setAndVerifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/setAndVerifyCollection.js +21 -0
- package/dist/generated/instructions/setAndVerifyCollection.js.map +1 -1
- package/dist/generated/instructions/setCollectionV2.d.ts +186 -39
- package/dist/generated/instructions/setCollectionV2.d.ts.map +1 -1
- package/dist/generated/instructions/setCollectionV2.js +21 -0
- package/dist/generated/instructions/setCollectionV2.js.map +1 -1
- package/dist/generated/instructions/setDecompressableState.d.ts +40 -9
- package/dist/generated/instructions/setDecompressableState.d.ts.map +1 -1
- package/dist/generated/instructions/setDecompressableState.js +13 -0
- package/dist/generated/instructions/setDecompressableState.js.map +1 -1
- package/dist/generated/instructions/setDecompressibleState.d.ts +41 -9
- package/dist/generated/instructions/setDecompressibleState.d.ts.map +1 -1
- package/dist/generated/instructions/setDecompressibleState.js +14 -0
- package/dist/generated/instructions/setDecompressibleState.js.map +1 -1
- package/dist/generated/instructions/setNonTransferableV2.d.ts +166 -31
- package/dist/generated/instructions/setNonTransferableV2.d.ts.map +1 -1
- package/dist/generated/instructions/setNonTransferableV2.js +23 -0
- package/dist/generated/instructions/setNonTransferableV2.js.map +1 -1
- package/dist/generated/instructions/setTreeDelegate.d.ts +65 -9
- package/dist/generated/instructions/setTreeDelegate.d.ts.map +1 -1
- package/dist/generated/instructions/setTreeDelegate.js +21 -0
- package/dist/generated/instructions/setTreeDelegate.js.map +1 -1
- package/dist/generated/instructions/thawAndRevokeV2.d.ts +158 -24
- package/dist/generated/instructions/thawAndRevokeV2.d.ts.map +1 -1
- package/dist/generated/instructions/thawAndRevokeV2.js +17 -0
- package/dist/generated/instructions/thawAndRevokeV2.js.map +1 -1
- package/dist/generated/instructions/thawV2.d.ts +166 -28
- package/dist/generated/instructions/thawV2.d.ts.map +1 -1
- package/dist/generated/instructions/thawV2.js +15 -0
- package/dist/generated/instructions/thawV2.js.map +1 -1
- package/dist/generated/instructions/transfer.d.ts +140 -17
- package/dist/generated/instructions/transfer.d.ts.map +1 -1
- package/dist/generated/instructions/transfer.js +19 -0
- package/dist/generated/instructions/transfer.js.map +1 -1
- package/dist/generated/instructions/transferV2.d.ts +167 -31
- package/dist/generated/instructions/transferV2.d.ts.map +1 -1
- package/dist/generated/instructions/transferV2.js +21 -0
- package/dist/generated/instructions/transferV2.js.map +1 -1
- package/dist/generated/instructions/unverifyCollection.d.ts +215 -38
- package/dist/generated/instructions/unverifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCollection.js +19 -0
- package/dist/generated/instructions/unverifyCollection.js.map +1 -1
- package/dist/generated/instructions/unverifyCreator.d.ts +161 -17
- package/dist/generated/instructions/unverifyCreator.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCreator.js +19 -0
- package/dist/generated/instructions/unverifyCreator.js.map +1 -1
- package/dist/generated/instructions/unverifyCreatorV2.d.ts +143 -21
- package/dist/generated/instructions/unverifyCreatorV2.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCreatorV2.js +19 -0
- package/dist/generated/instructions/unverifyCreatorV2.js.map +1 -1
- package/dist/generated/instructions/updateAssetDataV2.d.ts +180 -28
- package/dist/generated/instructions/updateAssetDataV2.d.ts.map +1 -1
- package/dist/generated/instructions/updateAssetDataV2.js +21 -0
- package/dist/generated/instructions/updateAssetDataV2.js.map +1 -1
- package/dist/generated/instructions/updateMetadata.d.ts +183 -28
- package/dist/generated/instructions/updateMetadata.d.ts.map +1 -1
- package/dist/generated/instructions/updateMetadata.js +21 -0
- package/dist/generated/instructions/updateMetadata.js.map +1 -1
- package/dist/generated/instructions/updateMetadataV2.d.ts +162 -27
- package/dist/generated/instructions/updateMetadataV2.d.ts.map +1 -1
- package/dist/generated/instructions/updateMetadataV2.js +19 -0
- package/dist/generated/instructions/updateMetadataV2.js.map +1 -1
- package/dist/generated/instructions/verifyCollection.d.ts +215 -38
- package/dist/generated/instructions/verifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCollection.js +19 -0
- package/dist/generated/instructions/verifyCollection.js.map +1 -1
- package/dist/generated/instructions/verifyCreator.d.ts +161 -17
- package/dist/generated/instructions/verifyCreator.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCreator.js +19 -0
- package/dist/generated/instructions/verifyCreator.js.map +1 -1
- package/dist/generated/instructions/verifyCreatorV2.d.ts +143 -21
- package/dist/generated/instructions/verifyCreatorV2.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCreatorV2.js +19 -0
- package/dist/generated/instructions/verifyCreatorV2.js.map +1 -1
- package/dist/generated/pdas/assetId.d.ts +2 -3
- package/dist/generated/pdas/assetId.d.ts.map +1 -1
- package/dist/generated/pdas/assetId.js +7 -0
- package/dist/generated/pdas/assetId.js.map +1 -1
- package/dist/generated/pdas/bubblegumSigner.d.ts +0 -1
- package/dist/generated/pdas/bubblegumSigner.d.ts.map +1 -1
- package/dist/generated/pdas/bubblegumSigner.js +7 -0
- package/dist/generated/pdas/bubblegumSigner.js.map +1 -1
- package/dist/generated/pdas/index.d.ts +2 -1
- package/dist/generated/pdas/masterEdition.d.ts +2 -3
- package/dist/generated/pdas/masterEdition.d.ts.map +1 -1
- package/dist/generated/pdas/masterEdition.js +7 -0
- package/dist/generated/pdas/masterEdition.js.map +1 -1
- package/dist/generated/pdas/metadata.d.ts +2 -3
- package/dist/generated/pdas/metadata.d.ts.map +1 -1
- package/dist/generated/pdas/metadata.js +7 -0
- package/dist/generated/pdas/metadata.js.map +1 -1
- package/dist/generated/pdas/mintAuthority.d.ts +2 -3
- package/dist/generated/pdas/mintAuthority.d.ts.map +1 -1
- package/dist/generated/pdas/mintAuthority.js +7 -0
- package/dist/generated/pdas/mintAuthority.js.map +1 -1
- package/dist/generated/pdas/treeConfig.d.ts +2 -3
- package/dist/generated/pdas/treeConfig.d.ts.map +1 -1
- package/dist/generated/pdas/treeConfig.js +7 -0
- package/dist/generated/pdas/treeConfig.js.map +1 -1
- package/dist/generated/pdas/voucher.d.ts +2 -3
- package/dist/generated/pdas/voucher.d.ts.map +1 -1
- package/dist/generated/pdas/voucher.js +7 -0
- package/dist/generated/pdas/voucher.js.map +1 -1
- package/dist/generated/programs/bubblegum.d.ts +17 -12
- package/dist/generated/programs/bubblegum.d.ts.map +1 -1
- package/dist/generated/programs/bubblegum.js +11 -1
- package/dist/generated/programs/bubblegum.js.map +1 -1
- package/dist/generated/programs/index.d.ts +2 -1
- package/dist/generated/programs/mplTokenMetadata.d.ts +8 -8
- package/dist/generated/programs/mplTokenMetadata.d.ts.map +1 -1
- package/dist/generated/programs/mplTokenMetadata.js +7 -0
- package/dist/generated/programs/mplTokenMetadata.js.map +1 -1
- package/dist/generated/types/assetDataSchema.d.ts +4 -1
- package/dist/generated/types/assetDataSchema.d.ts.map +1 -1
- package/dist/generated/types/assetDataSchema.js +11 -0
- package/dist/generated/types/assetDataSchema.js.map +1 -1
- package/dist/generated/types/bubblegumEventType.d.ts +4 -1
- package/dist/generated/types/bubblegumEventType.d.ts.map +1 -1
- package/dist/generated/types/bubblegumEventType.js +11 -0
- package/dist/generated/types/bubblegumEventType.js.map +1 -1
- package/dist/generated/types/collection.d.ts +9 -3
- package/dist/generated/types/collection.d.ts.map +1 -1
- package/dist/generated/types/collection.js +7 -0
- package/dist/generated/types/collection.js.map +1 -1
- package/dist/generated/types/creator.d.ts +9 -7
- package/dist/generated/types/creator.d.ts.map +1 -1
- package/dist/generated/types/creator.js +7 -0
- package/dist/generated/types/creator.js.map +1 -1
- package/dist/generated/types/decompressibleState.d.ts +5 -1
- package/dist/generated/types/decompressibleState.d.ts.map +1 -1
- package/dist/generated/types/decompressibleState.js +12 -0
- package/dist/generated/types/decompressibleState.js.map +1 -1
- package/dist/generated/types/index.d.ts +2 -1
- package/dist/generated/types/instructionName.d.ts +4 -1
- package/dist/generated/types/instructionName.d.ts.map +1 -1
- package/dist/generated/types/instructionName.js +11 -0
- package/dist/generated/types/instructionName.js.map +1 -1
- package/dist/generated/types/leafSchema.d.ts +51 -13
- package/dist/generated/types/leafSchema.d.ts.map +1 -1
- package/dist/generated/types/leafSchema.js +7 -0
- package/dist/generated/types/leafSchema.js.map +1 -1
- package/dist/generated/types/metadataArgs.d.ts +19 -7
- package/dist/generated/types/metadataArgs.d.ts.map +1 -1
- package/dist/generated/types/metadataArgs.js +7 -0
- package/dist/generated/types/metadataArgs.js.map +1 -1
- package/dist/generated/types/metadataArgsV2.d.ts +14 -7
- package/dist/generated/types/metadataArgsV2.d.ts.map +1 -1
- package/dist/generated/types/metadataArgsV2.js +7 -0
- package/dist/generated/types/metadataArgsV2.js.map +1 -1
- package/dist/generated/types/tokenProgramVersion.d.ts +1 -1
- package/dist/generated/types/tokenProgramVersion.d.ts.map +1 -1
- package/dist/generated/types/tokenProgramVersion.js +8 -0
- package/dist/generated/types/tokenProgramVersion.js.map +1 -1
- package/dist/generated/types/tokenStandard.d.ts +5 -1
- package/dist/generated/types/tokenStandard.d.ts.map +1 -1
- package/dist/generated/types/tokenStandard.js +12 -0
- package/dist/generated/types/tokenStandard.js.map +1 -1
- package/dist/generated/types/updateArgs.d.ts +26 -7
- package/dist/generated/types/updateArgs.d.ts.map +1 -1
- package/dist/generated/types/updateArgs.js +7 -0
- package/dist/generated/types/updateArgs.js.map +1 -1
- package/dist/generated/types/useMethod.d.ts +1 -1
- package/dist/generated/types/useMethod.d.ts.map +1 -1
- package/dist/generated/types/useMethod.js +8 -0
- package/dist/generated/types/useMethod.js.map +1 -1
- package/dist/generated/types/uses.d.ts +16 -5
- package/dist/generated/types/uses.d.ts.map +1 -1
- package/dist/generated/types/uses.js +7 -0
- package/dist/generated/types/uses.js.map +1 -1
- package/dist/generated/types/version.d.ts +5 -1
- package/dist/generated/types/version.d.ts.map +1 -1
- package/dist/generated/types/version.js +12 -0
- package/dist/generated/types/version.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +8 -12
- package/src/generated/accounts/treeConfig.ts +36 -27
- package/src/generated/accounts/voucher.ts +30 -23
- package/src/generated/errors/bubblegum.ts +121 -154
- package/src/generated/instructions/burn.ts +163 -44
- package/src/generated/instructions/burnV2.ts +205 -64
- package/src/generated/instructions/cancelRedeem.ts +122 -41
- package/src/generated/instructions/closeTreeV2.ts +102 -44
- package/src/generated/instructions/collectV2.ts +34 -23
- package/src/generated/instructions/compress.ts +146 -45
- package/src/generated/instructions/createTree.ts +143 -42
- package/src/generated/instructions/createTreeV2.ts +134 -45
- package/src/generated/instructions/decompressV1.ts +136 -49
- package/src/generated/instructions/delegate.ts +165 -47
- package/src/generated/instructions/delegateAndFreezeV2.ts +197 -60
- package/src/generated/instructions/delegateV2.ts +195 -60
- package/src/generated/instructions/freezeV2.ts +199 -58
- package/src/generated/instructions/mintToCollectionV1.ts +196 -52
- package/src/generated/instructions/mintV1.ts +133 -40
- package/src/generated/instructions/mintV2.ts +192 -57
- package/src/generated/instructions/redeem.ts +178 -47
- package/src/generated/instructions/setAndVerifyCollection.ts +246 -69
- package/src/generated/instructions/setCollectionV2.ts +212 -73
- package/src/generated/instructions/setDecompressableState.ts +59 -31
- package/src/generated/instructions/setDecompressibleState.ts +60 -31
- package/src/generated/instructions/setNonTransferableV2.ts +190 -61
- package/src/generated/instructions/setTreeDelegate.ts +84 -31
- package/src/generated/instructions/thawAndRevokeV2.ts +185 -57
- package/src/generated/instructions/thawV2.ts +191 -58
- package/src/generated/instructions/transfer.ts +162 -44
- package/src/generated/instructions/transferV2.ts +191 -61
- package/src/generated/instructions/unverifyCollection.ts +239 -69
- package/src/generated/instructions/unverifyCreator.ts +187 -48
- package/src/generated/instructions/unverifyCreatorV2.ts +170 -55
- package/src/generated/instructions/updateAssetDataV2.ts +206 -59
- package/src/generated/instructions/updateMetadata.ts +210 -67
- package/src/generated/instructions/updateMetadataV2.ts +189 -63
- package/src/generated/instructions/verifyCollection.ts +239 -69
- package/src/generated/instructions/verifyCreator.ts +187 -48
- package/src/generated/instructions/verifyCreatorV2.ts +170 -55
- package/src/generated/pdas/assetId.ts +4 -3
- package/src/generated/pdas/bubblegumSigner.ts +6 -2
- package/src/generated/pdas/masterEdition.ts +4 -3
- package/src/generated/pdas/metadata.ts +4 -3
- package/src/generated/pdas/mintAuthority.ts +8 -4
- package/src/generated/pdas/treeConfig.ts +8 -4
- package/src/generated/pdas/voucher.ts +4 -3
- package/src/generated/programs/bubblegum.ts +146 -144
- package/src/generated/programs/mplTokenMetadata.ts +5 -10
- package/src/generated/types/assetDataSchema.ts +14 -8
- package/src/generated/types/bubblegumEventType.ts +13 -7
- package/src/generated/types/collection.ts +13 -8
- package/src/generated/types/creator.ts +11 -10
- package/src/generated/types/decompressibleState.ts +14 -7
- package/src/generated/types/instructionName.ts +46 -40
- package/src/generated/types/leafSchema.ts +59 -22
- package/src/generated/types/metadataArgs.ts +35 -27
- package/src/generated/types/metadataArgsV2.ts +23 -20
- package/src/generated/types/tokenProgramVersion.ts +10 -7
- package/src/generated/types/tokenStandard.ts +16 -9
- package/src/generated/types/updateArgs.ts +36 -15
- package/src/generated/types/useMethod.ts +11 -8
- package/src/generated/types/uses.ts +24 -11
- package/src/generated/types/version.ts +14 -7
|
@@ -6,24 +6,6 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type {
|
|
10
|
-
AccountMeta,
|
|
11
|
-
AccountSignerMeta,
|
|
12
|
-
Address,
|
|
13
|
-
Codec,
|
|
14
|
-
Decoder,
|
|
15
|
-
Encoder,
|
|
16
|
-
Instruction,
|
|
17
|
-
InstructionWithAccounts,
|
|
18
|
-
InstructionWithData,
|
|
19
|
-
ReadonlyAccount,
|
|
20
|
-
ReadonlySignerAccount,
|
|
21
|
-
ReadonlyUint8Array,
|
|
22
|
-
TransactionSigner,
|
|
23
|
-
WritableAccount,
|
|
24
|
-
} from "@solana/kit";
|
|
25
|
-
import type { ResolvedInstructionAccount } from "@solana/program-client-core";
|
|
26
|
-
import type { MetadataArgs, MetadataArgsArgs } from "../types/index.js";
|
|
27
9
|
import {
|
|
28
10
|
address,
|
|
29
11
|
combineCodec,
|
|
@@ -37,19 +19,34 @@ import {
|
|
|
37
19
|
getBytesEncoder,
|
|
38
20
|
getStructDecoder,
|
|
39
21
|
getStructEncoder,
|
|
40
|
-
getU8Decoder,
|
|
41
|
-
getU8Encoder,
|
|
42
22
|
getU32Decoder,
|
|
43
23
|
getU32Encoder,
|
|
44
24
|
getU64Decoder,
|
|
45
25
|
getU64Encoder,
|
|
26
|
+
getU8Decoder,
|
|
27
|
+
getU8Encoder,
|
|
46
28
|
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,
|
|
47
29
|
SolanaError,
|
|
48
30
|
transformEncoder,
|
|
31
|
+
type AccountMeta,
|
|
32
|
+
type AccountSignerMeta,
|
|
33
|
+
type Address,
|
|
34
|
+
type Codec,
|
|
35
|
+
type Decoder,
|
|
36
|
+
type Encoder,
|
|
37
|
+
type Instruction,
|
|
38
|
+
type InstructionWithAccounts,
|
|
39
|
+
type InstructionWithData,
|
|
40
|
+
type ReadonlyAccount,
|
|
41
|
+
type ReadonlySignerAccount,
|
|
42
|
+
type ReadonlyUint8Array,
|
|
43
|
+
type TransactionSigner,
|
|
44
|
+
type WritableAccount,
|
|
49
45
|
} from "@solana/kit";
|
|
50
46
|
import {
|
|
51
47
|
getAccountMetaFactory,
|
|
52
48
|
getAddressFromResolvedInstructionAccount,
|
|
49
|
+
type ResolvedInstructionAccount,
|
|
53
50
|
} from "@solana/program-client-core";
|
|
54
51
|
import {
|
|
55
52
|
findBubblegumSignerPda,
|
|
@@ -61,6 +58,8 @@ import { BUBBLEGUM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
|
61
58
|
import {
|
|
62
59
|
getMetadataArgsDecoder,
|
|
63
60
|
getMetadataArgsEncoder,
|
|
61
|
+
type MetadataArgs,
|
|
62
|
+
type MetadataArgsArgs,
|
|
64
63
|
} from "../types/index.js";
|
|
65
64
|
|
|
66
65
|
export const SET_AND_VERIFY_COLLECTION_DISCRIMINATOR: ReadonlyUint8Array =
|
|
@@ -81,25 +80,20 @@ export type SetAndVerifyCollectionInstruction<
|
|
|
81
80
|
TAccountPayer extends string | AccountMeta<string> = string,
|
|
82
81
|
TAccountTreeDelegate extends string | AccountMeta<string> = string,
|
|
83
82
|
TAccountCollectionAuthority extends string | AccountMeta<string> = string,
|
|
84
|
-
TAccountCollectionAuthorityRecordPda extends
|
|
85
|
-
|
|
86
|
-
| AccountMeta<string> = "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY",
|
|
83
|
+
TAccountCollectionAuthorityRecordPda extends string | AccountMeta<string> =
|
|
84
|
+
"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY",
|
|
87
85
|
TAccountCollectionMint extends string | AccountMeta<string> = string,
|
|
88
86
|
TAccountCollectionMetadata extends string | AccountMeta<string> = string,
|
|
89
87
|
TAccountEditionAccount extends string | AccountMeta<string> = string,
|
|
90
88
|
TAccountBubblegumSigner extends string | AccountMeta<string> = string,
|
|
91
|
-
TAccountLogWrapper extends
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
| AccountMeta<string> = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
|
|
100
|
-
TAccountSystemProgram extends
|
|
101
|
-
| string
|
|
102
|
-
| AccountMeta<string> = "11111111111111111111111111111111",
|
|
89
|
+
TAccountLogWrapper extends string | AccountMeta<string> =
|
|
90
|
+
"noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV",
|
|
91
|
+
TAccountCompressionProgram extends string | AccountMeta<string> =
|
|
92
|
+
"cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK",
|
|
93
|
+
TAccountTokenMetadataProgram extends string | AccountMeta<string> =
|
|
94
|
+
"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
|
|
95
|
+
TAccountSystemProgram extends string | AccountMeta<string> =
|
|
96
|
+
"11111111111111111111111111111111",
|
|
103
97
|
TRemainingAccounts extends readonly AccountMeta<string>[] = [],
|
|
104
98
|
> = Instruction<TProgram> &
|
|
105
99
|
InstructionWithData<ReadonlyUint8Array> &
|
|
@@ -159,26 +153,84 @@ export type SetAndVerifyCollectionInstruction<
|
|
|
159
153
|
]
|
|
160
154
|
>;
|
|
161
155
|
|
|
162
|
-
export
|
|
156
|
+
export type SetAndVerifyCollectionInstructionData = {
|
|
163
157
|
discriminator: ReadonlyUint8Array;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Current Merkle root of the tree, used together with the Merkle proof
|
|
160
|
+
* (passed as remaining accounts) to verify the leaf being operated on.
|
|
161
|
+
*/
|
|
162
|
+
root: Array<number>;
|
|
163
|
+
/**
|
|
164
|
+
* Keccak256 hash of the leaf's metadata, used together with `root` to
|
|
165
|
+
* verify the leaf before it is modified.
|
|
166
|
+
*/
|
|
167
|
+
dataHash: Array<number>;
|
|
168
|
+
/**
|
|
169
|
+
* Keccak256 hash of the leaf's creators array, used together with
|
|
170
|
+
* `root` to verify the leaf before it is modified.
|
|
171
|
+
*/
|
|
172
|
+
creatorHash: Array<number>;
|
|
173
|
+
/**
|
|
174
|
+
* Tree-scoped nonce identifying the leaf, equal to the tree's
|
|
175
|
+
* `numMinted` at the time the leaf was minted. Combined with the tree
|
|
176
|
+
* address to derive the leaf's asset id.
|
|
177
|
+
*/
|
|
167
178
|
nonce: bigint;
|
|
179
|
+
/**
|
|
180
|
+
* Position of the leaf within the Merkle tree, used with the Merkle
|
|
181
|
+
* proof to locate and verify the leaf.
|
|
182
|
+
*/
|
|
168
183
|
index: number;
|
|
184
|
+
/**
|
|
185
|
+
* The leaf's current metadata args, verified against `dataHash` before
|
|
186
|
+
* `collection` is set and marked verified.
|
|
187
|
+
*/
|
|
169
188
|
message: MetadataArgs;
|
|
189
|
+
/**
|
|
190
|
+
* Collection mint to set on the leaf's metadata and mark verified in
|
|
191
|
+
* the same instruction.
|
|
192
|
+
*/
|
|
170
193
|
collection: Address;
|
|
171
|
-
}
|
|
194
|
+
};
|
|
172
195
|
|
|
173
|
-
export
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
196
|
+
export type SetAndVerifyCollectionInstructionDataArgs = {
|
|
197
|
+
/**
|
|
198
|
+
* Current Merkle root of the tree, used together with the Merkle proof
|
|
199
|
+
* (passed as remaining accounts) to verify the leaf being operated on.
|
|
200
|
+
*/
|
|
201
|
+
root: Array<number>;
|
|
202
|
+
/**
|
|
203
|
+
* Keccak256 hash of the leaf's metadata, used together with `root` to
|
|
204
|
+
* verify the leaf before it is modified.
|
|
205
|
+
*/
|
|
206
|
+
dataHash: Array<number>;
|
|
207
|
+
/**
|
|
208
|
+
* Keccak256 hash of the leaf's creators array, used together with
|
|
209
|
+
* `root` to verify the leaf before it is modified.
|
|
210
|
+
*/
|
|
211
|
+
creatorHash: Array<number>;
|
|
212
|
+
/**
|
|
213
|
+
* Tree-scoped nonce identifying the leaf, equal to the tree's
|
|
214
|
+
* `numMinted` at the time the leaf was minted. Combined with the tree
|
|
215
|
+
* address to derive the leaf's asset id.
|
|
216
|
+
*/
|
|
177
217
|
nonce: number | bigint;
|
|
218
|
+
/**
|
|
219
|
+
* Position of the leaf within the Merkle tree, used with the Merkle
|
|
220
|
+
* proof to locate and verify the leaf.
|
|
221
|
+
*/
|
|
178
222
|
index: number;
|
|
223
|
+
/**
|
|
224
|
+
* The leaf's current metadata args, verified against `dataHash` before
|
|
225
|
+
* `collection` is set and marked verified.
|
|
226
|
+
*/
|
|
179
227
|
message: MetadataArgsArgs;
|
|
228
|
+
/**
|
|
229
|
+
* Collection mint to set on the leaf's metadata and mark verified in
|
|
230
|
+
* the same instruction.
|
|
231
|
+
*/
|
|
180
232
|
collection: Address;
|
|
181
|
-
}
|
|
233
|
+
};
|
|
182
234
|
|
|
183
235
|
export function getSetAndVerifyCollectionInstructionDataEncoder(): Encoder<SetAndVerifyCollectionInstructionDataArgs> {
|
|
184
236
|
return transformEncoder(
|
|
@@ -222,7 +274,7 @@ export function getSetAndVerifyCollectionInstructionDataCodec(): Codec<
|
|
|
222
274
|
);
|
|
223
275
|
}
|
|
224
276
|
|
|
225
|
-
export
|
|
277
|
+
export type SetAndVerifyCollectionAsyncInput<
|
|
226
278
|
TAccountTreeAuthority extends string = string,
|
|
227
279
|
TAccountLeafOwner extends string = string,
|
|
228
280
|
TAccountLeafDelegate extends string = string,
|
|
@@ -239,31 +291,68 @@ export interface SetAndVerifyCollectionAsyncInput<
|
|
|
239
291
|
TAccountCompressionProgram extends string = string,
|
|
240
292
|
TAccountTokenMetadataProgram extends string = string,
|
|
241
293
|
TAccountSystemProgram extends string = string,
|
|
242
|
-
> {
|
|
294
|
+
> = {
|
|
295
|
+
/**
|
|
296
|
+
* The tree's `TreeConfig` PDA, which stores its configuration and acts
|
|
297
|
+
* as the tree's authority for CPIs into the compression program.
|
|
298
|
+
*/
|
|
243
299
|
treeAuthority?: Address<TAccountTreeAuthority>;
|
|
300
|
+
/** Owner of the compressed NFT leaf being operated on. */
|
|
244
301
|
leafOwner: Address<TAccountLeafOwner>;
|
|
302
|
+
/**
|
|
303
|
+
* Delegate authority for the leaf; defaults to the leaf owner when no
|
|
304
|
+
* delegate is set.
|
|
305
|
+
*/
|
|
245
306
|
leafDelegate: Address<TAccountLeafDelegate>;
|
|
307
|
+
/**
|
|
308
|
+
* The concurrent Merkle tree account storing the compressed leaves,
|
|
309
|
+
* owned by the account compression program.
|
|
310
|
+
*/
|
|
246
311
|
merkleTree: Address<TAccountMerkleTree>;
|
|
312
|
+
/** Account that pays for the transaction and any account rent. */
|
|
247
313
|
payer: TransactionSigner<TAccountPayer>;
|
|
248
314
|
/**
|
|
249
|
-
*
|
|
250
|
-
* the
|
|
251
|
-
* we are actually changing the NFT metadata.
|
|
315
|
+
* Checked as a signer here because `setAndVerifyCollection` actually
|
|
316
|
+
* changes the leaf's metadata, unlike plain collection verification.
|
|
252
317
|
*/
|
|
253
318
|
treeDelegate: Address<TAccountTreeDelegate>;
|
|
319
|
+
/**
|
|
320
|
+
* Authority of the collection the asset is being added to or removed
|
|
321
|
+
* from (typically the collection's update authority or a delegate).
|
|
322
|
+
*/
|
|
254
323
|
collectionAuthority: TransactionSigner<TAccountCollectionAuthority>;
|
|
255
324
|
/**
|
|
256
|
-
* If there is no
|
|
257
|
-
*
|
|
325
|
+
* If there is no collection authority record PDA, pass the Bubblegum
|
|
326
|
+
* program address instead.
|
|
258
327
|
*/
|
|
259
328
|
collectionAuthorityRecordPda?: Address<TAccountCollectionAuthorityRecordPda>;
|
|
329
|
+
/** Mint account of the Token Metadata collection NFT. */
|
|
260
330
|
collectionMint: Address<TAccountCollectionMint>;
|
|
331
|
+
/** Metadata account of the Token Metadata collection NFT. */
|
|
261
332
|
collectionMetadata?: Address<TAccountCollectionMetadata>;
|
|
333
|
+
/** Master edition account of the Token Metadata collection NFT. */
|
|
262
334
|
editionAccount?: Address<TAccountEditionAccount>;
|
|
335
|
+
/**
|
|
336
|
+
* PDA Bubblegum uses to sign the CPI into the Token Metadata program
|
|
337
|
+
* that (un)verifies the collection.
|
|
338
|
+
*/
|
|
263
339
|
bubblegumSigner?: Address<TAccountBubblegumSigner>;
|
|
340
|
+
/**
|
|
341
|
+
* The SPL/MPL Noop program, used to log leaf data so off-chain indexers
|
|
342
|
+
* can reconstruct the tree.
|
|
343
|
+
*/
|
|
264
344
|
logWrapper?: Address<TAccountLogWrapper>;
|
|
345
|
+
/**
|
|
346
|
+
* The SPL/MPL Account Compression program that owns and manages the
|
|
347
|
+
* Merkle tree.
|
|
348
|
+
*/
|
|
265
349
|
compressionProgram?: Address<TAccountCompressionProgram>;
|
|
350
|
+
/**
|
|
351
|
+
* The Token Metadata program, invoked to read or (un)verify the
|
|
352
|
+
* legacy collection accounts.
|
|
353
|
+
*/
|
|
266
354
|
tokenMetadataProgram?: Address<TAccountTokenMetadataProgram>;
|
|
355
|
+
/** The Solana System program. */
|
|
267
356
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
268
357
|
root: SetAndVerifyCollectionInstructionDataArgs["root"];
|
|
269
358
|
dataHash: SetAndVerifyCollectionInstructionDataArgs["dataHash"];
|
|
@@ -272,8 +361,15 @@ export interface SetAndVerifyCollectionAsyncInput<
|
|
|
272
361
|
index: SetAndVerifyCollectionInstructionDataArgs["index"];
|
|
273
362
|
message: SetAndVerifyCollectionInstructionDataArgs["message"];
|
|
274
363
|
collection: SetAndVerifyCollectionInstructionDataArgs["collection"];
|
|
275
|
-
}
|
|
364
|
+
};
|
|
276
365
|
|
|
366
|
+
/**
|
|
367
|
+
* Sets a collection on a leaf's metadata and verifies it in one
|
|
368
|
+
* instruction.
|
|
369
|
+
*
|
|
370
|
+
* Equivalent to updating the leaf's `collection` field to `collection`
|
|
371
|
+
* and then verifying it, without a separate `verifyCollection` call.
|
|
372
|
+
*/
|
|
277
373
|
export async function getSetAndVerifyCollectionInstructionAsync<
|
|
278
374
|
TAccountTreeAuthority extends string,
|
|
279
375
|
TAccountLeafOwner extends string,
|
|
@@ -480,7 +576,7 @@ export async function getSetAndVerifyCollectionInstructionAsync<
|
|
|
480
576
|
>);
|
|
481
577
|
}
|
|
482
578
|
|
|
483
|
-
export
|
|
579
|
+
export type SetAndVerifyCollectionInput<
|
|
484
580
|
TAccountTreeAuthority extends string = string,
|
|
485
581
|
TAccountLeafOwner extends string = string,
|
|
486
582
|
TAccountLeafDelegate extends string = string,
|
|
@@ -497,31 +593,68 @@ export interface SetAndVerifyCollectionInput<
|
|
|
497
593
|
TAccountCompressionProgram extends string = string,
|
|
498
594
|
TAccountTokenMetadataProgram extends string = string,
|
|
499
595
|
TAccountSystemProgram extends string = string,
|
|
500
|
-
> {
|
|
596
|
+
> = {
|
|
597
|
+
/**
|
|
598
|
+
* The tree's `TreeConfig` PDA, which stores its configuration and acts
|
|
599
|
+
* as the tree's authority for CPIs into the compression program.
|
|
600
|
+
*/
|
|
501
601
|
treeAuthority: Address<TAccountTreeAuthority>;
|
|
602
|
+
/** Owner of the compressed NFT leaf being operated on. */
|
|
502
603
|
leafOwner: Address<TAccountLeafOwner>;
|
|
604
|
+
/**
|
|
605
|
+
* Delegate authority for the leaf; defaults to the leaf owner when no
|
|
606
|
+
* delegate is set.
|
|
607
|
+
*/
|
|
503
608
|
leafDelegate: Address<TAccountLeafDelegate>;
|
|
609
|
+
/**
|
|
610
|
+
* The concurrent Merkle tree account storing the compressed leaves,
|
|
611
|
+
* owned by the account compression program.
|
|
612
|
+
*/
|
|
504
613
|
merkleTree: Address<TAccountMerkleTree>;
|
|
614
|
+
/** Account that pays for the transaction and any account rent. */
|
|
505
615
|
payer: TransactionSigner<TAccountPayer>;
|
|
506
616
|
/**
|
|
507
|
-
*
|
|
508
|
-
* the
|
|
509
|
-
* we are actually changing the NFT metadata.
|
|
617
|
+
* Checked as a signer here because `setAndVerifyCollection` actually
|
|
618
|
+
* changes the leaf's metadata, unlike plain collection verification.
|
|
510
619
|
*/
|
|
511
620
|
treeDelegate: Address<TAccountTreeDelegate>;
|
|
621
|
+
/**
|
|
622
|
+
* Authority of the collection the asset is being added to or removed
|
|
623
|
+
* from (typically the collection's update authority or a delegate).
|
|
624
|
+
*/
|
|
512
625
|
collectionAuthority: TransactionSigner<TAccountCollectionAuthority>;
|
|
513
626
|
/**
|
|
514
|
-
* If there is no
|
|
515
|
-
*
|
|
627
|
+
* If there is no collection authority record PDA, pass the Bubblegum
|
|
628
|
+
* program address instead.
|
|
516
629
|
*/
|
|
517
630
|
collectionAuthorityRecordPda?: Address<TAccountCollectionAuthorityRecordPda>;
|
|
631
|
+
/** Mint account of the Token Metadata collection NFT. */
|
|
518
632
|
collectionMint: Address<TAccountCollectionMint>;
|
|
633
|
+
/** Metadata account of the Token Metadata collection NFT. */
|
|
519
634
|
collectionMetadata: Address<TAccountCollectionMetadata>;
|
|
635
|
+
/** Master edition account of the Token Metadata collection NFT. */
|
|
520
636
|
editionAccount: Address<TAccountEditionAccount>;
|
|
637
|
+
/**
|
|
638
|
+
* PDA Bubblegum uses to sign the CPI into the Token Metadata program
|
|
639
|
+
* that (un)verifies the collection.
|
|
640
|
+
*/
|
|
521
641
|
bubblegumSigner: Address<TAccountBubblegumSigner>;
|
|
642
|
+
/**
|
|
643
|
+
* The SPL/MPL Noop program, used to log leaf data so off-chain indexers
|
|
644
|
+
* can reconstruct the tree.
|
|
645
|
+
*/
|
|
522
646
|
logWrapper?: Address<TAccountLogWrapper>;
|
|
647
|
+
/**
|
|
648
|
+
* The SPL/MPL Account Compression program that owns and manages the
|
|
649
|
+
* Merkle tree.
|
|
650
|
+
*/
|
|
523
651
|
compressionProgram?: Address<TAccountCompressionProgram>;
|
|
652
|
+
/**
|
|
653
|
+
* The Token Metadata program, invoked to read or (un)verify the
|
|
654
|
+
* legacy collection accounts.
|
|
655
|
+
*/
|
|
524
656
|
tokenMetadataProgram?: Address<TAccountTokenMetadataProgram>;
|
|
657
|
+
/** The Solana System program. */
|
|
525
658
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
526
659
|
root: SetAndVerifyCollectionInstructionDataArgs["root"];
|
|
527
660
|
dataHash: SetAndVerifyCollectionInstructionDataArgs["dataHash"];
|
|
@@ -530,8 +663,15 @@ export interface SetAndVerifyCollectionInput<
|
|
|
530
663
|
index: SetAndVerifyCollectionInstructionDataArgs["index"];
|
|
531
664
|
message: SetAndVerifyCollectionInstructionDataArgs["message"];
|
|
532
665
|
collection: SetAndVerifyCollectionInstructionDataArgs["collection"];
|
|
533
|
-
}
|
|
666
|
+
};
|
|
534
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Sets a collection on a leaf's metadata and verifies it in one
|
|
670
|
+
* instruction.
|
|
671
|
+
*
|
|
672
|
+
* Equivalent to updating the leaf's `collection` field to `collection`
|
|
673
|
+
* and then verifying it, without a separate `verifyCollection` call.
|
|
674
|
+
*/
|
|
535
675
|
export function getSetAndVerifyCollectionInstruction<
|
|
536
676
|
TAccountTreeAuthority extends string,
|
|
537
677
|
TAccountLeafOwner extends string,
|
|
@@ -707,40 +847,77 @@ export function getSetAndVerifyCollectionInstruction<
|
|
|
707
847
|
>);
|
|
708
848
|
}
|
|
709
849
|
|
|
710
|
-
export
|
|
850
|
+
export type ParsedSetAndVerifyCollectionInstruction<
|
|
711
851
|
TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,
|
|
712
852
|
TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
|
|
713
|
-
> {
|
|
853
|
+
> = {
|
|
714
854
|
programAddress: Address<TProgram>;
|
|
715
855
|
accounts: {
|
|
856
|
+
/**
|
|
857
|
+
* The tree's `TreeConfig` PDA, which stores its configuration and acts
|
|
858
|
+
* as the tree's authority for CPIs into the compression program.
|
|
859
|
+
*/
|
|
716
860
|
treeAuthority: TAccountMetas[0];
|
|
861
|
+
/** Owner of the compressed NFT leaf being operated on. */
|
|
717
862
|
leafOwner: TAccountMetas[1];
|
|
863
|
+
/**
|
|
864
|
+
* Delegate authority for the leaf; defaults to the leaf owner when no
|
|
865
|
+
* delegate is set.
|
|
866
|
+
*/
|
|
718
867
|
leafDelegate: TAccountMetas[2];
|
|
868
|
+
/**
|
|
869
|
+
* The concurrent Merkle tree account storing the compressed leaves,
|
|
870
|
+
* owned by the account compression program.
|
|
871
|
+
*/
|
|
719
872
|
merkleTree: TAccountMetas[3];
|
|
873
|
+
/** Account that pays for the transaction and any account rent. */
|
|
720
874
|
payer: TAccountMetas[4];
|
|
721
875
|
/**
|
|
722
|
-
*
|
|
723
|
-
* the
|
|
724
|
-
* we are actually changing the NFT metadata.
|
|
876
|
+
* Checked as a signer here because `setAndVerifyCollection` actually
|
|
877
|
+
* changes the leaf's metadata, unlike plain collection verification.
|
|
725
878
|
*/
|
|
726
879
|
treeDelegate: TAccountMetas[5];
|
|
880
|
+
/**
|
|
881
|
+
* Authority of the collection the asset is being added to or removed
|
|
882
|
+
* from (typically the collection's update authority or a delegate).
|
|
883
|
+
*/
|
|
727
884
|
collectionAuthority: TAccountMetas[6];
|
|
728
885
|
/**
|
|
729
|
-
* If there is no
|
|
730
|
-
*
|
|
886
|
+
* If there is no collection authority record PDA, pass the Bubblegum
|
|
887
|
+
* program address instead.
|
|
731
888
|
*/
|
|
732
889
|
collectionAuthorityRecordPda: TAccountMetas[7];
|
|
890
|
+
/** Mint account of the Token Metadata collection NFT. */
|
|
733
891
|
collectionMint: TAccountMetas[8];
|
|
892
|
+
/** Metadata account of the Token Metadata collection NFT. */
|
|
734
893
|
collectionMetadata: TAccountMetas[9];
|
|
894
|
+
/** Master edition account of the Token Metadata collection NFT. */
|
|
735
895
|
editionAccount: TAccountMetas[10];
|
|
896
|
+
/**
|
|
897
|
+
* PDA Bubblegum uses to sign the CPI into the Token Metadata program
|
|
898
|
+
* that (un)verifies the collection.
|
|
899
|
+
*/
|
|
736
900
|
bubblegumSigner: TAccountMetas[11];
|
|
901
|
+
/**
|
|
902
|
+
* The SPL/MPL Noop program, used to log leaf data so off-chain indexers
|
|
903
|
+
* can reconstruct the tree.
|
|
904
|
+
*/
|
|
737
905
|
logWrapper: TAccountMetas[12];
|
|
906
|
+
/**
|
|
907
|
+
* The SPL/MPL Account Compression program that owns and manages the
|
|
908
|
+
* Merkle tree.
|
|
909
|
+
*/
|
|
738
910
|
compressionProgram: TAccountMetas[13];
|
|
911
|
+
/**
|
|
912
|
+
* The Token Metadata program, invoked to read or (un)verify the
|
|
913
|
+
* legacy collection accounts.
|
|
914
|
+
*/
|
|
739
915
|
tokenMetadataProgram: TAccountMetas[14];
|
|
916
|
+
/** The Solana System program. */
|
|
740
917
|
systemProgram: TAccountMetas[15];
|
|
741
918
|
};
|
|
742
919
|
data: SetAndVerifyCollectionInstructionData;
|
|
743
|
-
}
|
|
920
|
+
};
|
|
744
921
|
|
|
745
922
|
export function parseSetAndVerifyCollectionInstruction<
|
|
746
923
|
TProgram extends string,
|