@macalinao/clients-mpl-bubblegum 0.2.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/dist/generated/accounts/index.d.ts +2 -10
- package/dist/generated/accounts/treeConfig.d.ts +42 -38
- package/dist/generated/accounts/treeConfig.d.ts.map +1 -1
- package/dist/generated/accounts/treeConfig.js +70 -53
- package/dist/generated/accounts/treeConfig.js.map +1 -1
- package/dist/generated/accounts/voucher.d.ts +33 -30
- package/dist/generated/accounts/voucher.d.ts.map +1 -1
- package/dist/generated/accounts/voucher.js +61 -45
- package/dist/generated/accounts/voucher.js.map +1 -1
- package/dist/generated/errors/bubblegum.d.ts +71 -74
- package/dist/generated/errors/bubblegum.d.ts.map +1 -1
- package/dist/generated/errors/bubblegum.js +126 -133
- package/dist/generated/errors/bubblegum.js.map +1 -1
- package/dist/generated/errors/index.d.ts +1 -9
- package/dist/generated/index.d.ts +63 -13
- package/dist/generated/instructions/burn.d.ts +70 -65
- package/dist/generated/instructions/burn.d.ts.map +1 -1
- package/dist/generated/instructions/burn.js +168 -98
- package/dist/generated/instructions/burn.js.map +1 -1
- package/dist/generated/instructions/burnV2.d.ts +107 -96
- package/dist/generated/instructions/burnV2.d.ts.map +1 -1
- package/dist/generated/instructions/burnV2.js +239 -136
- package/dist/generated/instructions/burnV2.js.map +1 -1
- package/dist/generated/instructions/cancelRedeem.d.ts +54 -53
- package/dist/generated/instructions/cancelRedeem.d.ts.map +1 -1
- package/dist/generated/instructions/cancelRedeem.js +154 -90
- package/dist/generated/instructions/cancelRedeem.js.map +1 -1
- package/dist/generated/instructions/closeTreeV2.d.ts +64 -60
- package/dist/generated/instructions/closeTreeV2.d.ts.map +1 -1
- package/dist/generated/instructions/closeTreeV2.js +152 -84
- package/dist/generated/instructions/closeTreeV2.js.map +1 -1
- package/dist/generated/instructions/collectV2.d.ts +28 -35
- package/dist/generated/instructions/collectV2.d.ts.map +1 -1
- package/dist/generated/instructions/collectV2.js +63 -60
- package/dist/generated/instructions/collectV2.js.map +1 -1
- package/dist/generated/instructions/compress.d.ts +71 -71
- package/dist/generated/instructions/compress.d.ts.map +1 -1
- package/dist/generated/instructions/compress.js +233 -116
- package/dist/generated/instructions/compress.js.map +1 -1
- package/dist/generated/instructions/createTree.d.ts +62 -59
- package/dist/generated/instructions/createTree.d.ts.map +1 -1
- package/dist/generated/instructions/createTree.js +164 -94
- package/dist/generated/instructions/createTree.js.map +1 -1
- package/dist/generated/instructions/createTreeV2.d.ts +64 -61
- package/dist/generated/instructions/createTreeV2.d.ts.map +1 -1
- package/dist/generated/instructions/createTreeV2.js +168 -100
- package/dist/generated/instructions/createTreeV2.js.map +1 -1
- package/dist/generated/instructions/decompressV1.d.ts +73 -72
- package/dist/generated/instructions/decompressV1.d.ts.map +1 -1
- package/dist/generated/instructions/decompressV1.js +251 -128
- package/dist/generated/instructions/decompressV1.js.map +1 -1
- package/dist/generated/instructions/delegate.d.ts +73 -68
- package/dist/generated/instructions/delegate.d.ts.map +1 -1
- package/dist/generated/instructions/delegate.js +179 -107
- package/dist/generated/instructions/delegate.js.map +1 -1
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts +92 -84
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts.map +1 -1
- package/dist/generated/instructions/delegateAndFreezeV2.js +201 -136
- package/dist/generated/instructions/delegateAndFreezeV2.js.map +1 -1
- package/dist/generated/instructions/delegateV2.d.ts +92 -84
- package/dist/generated/instructions/delegateV2.d.ts.map +1 -1
- package/dist/generated/instructions/delegateV2.js +200 -134
- package/dist/generated/instructions/delegateV2.js.map +1 -1
- package/dist/generated/instructions/freezeV2.d.ts +99 -88
- package/dist/generated/instructions/freezeV2.d.ts.map +1 -1
- package/dist/generated/instructions/freezeV2.js +209 -123
- package/dist/generated/instructions/freezeV2.js.map +1 -1
- package/dist/generated/instructions/index.d.ts +36 -44
- package/dist/generated/instructions/mintToCollectionV1.d.ts +94 -89
- package/dist/generated/instructions/mintToCollectionV1.d.ts.map +1 -1
- package/dist/generated/instructions/mintToCollectionV1.js +277 -139
- package/dist/generated/instructions/mintToCollectionV1.js.map +1 -1
- package/dist/generated/instructions/mintV1.d.ts +61 -60
- package/dist/generated/instructions/mintV1.d.ts.map +1 -1
- package/dist/generated/instructions/mintV1.js +177 -97
- package/dist/generated/instructions/mintV1.js.map +1 -1
- package/dist/generated/instructions/mintV2.d.ts +86 -82
- package/dist/generated/instructions/mintV2.d.ts.map +1 -1
- package/dist/generated/instructions/mintV2.js +244 -135
- package/dist/generated/instructions/mintV2.js.map +1 -1
- package/dist/generated/instructions/redeem.d.ts +73 -68
- package/dist/generated/instructions/redeem.d.ts.map +1 -1
- package/dist/generated/instructions/redeem.js +179 -101
- package/dist/generated/instructions/redeem.js.map +1 -1
- package/dist/generated/instructions/setAndVerifyCollection.d.ts +133 -117
- package/dist/generated/instructions/setAndVerifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/setAndVerifyCollection.js +295 -151
- package/dist/generated/instructions/setAndVerifyCollection.js.map +1 -1
- package/dist/generated/instructions/setCollectionV2.d.ts +125 -110
- package/dist/generated/instructions/setCollectionV2.d.ts.map +1 -1
- package/dist/generated/instructions/setCollectionV2.js +257 -146
- package/dist/generated/instructions/setCollectionV2.js.map +1 -1
- package/dist/generated/instructions/setDecompressableState.d.ts +32 -39
- package/dist/generated/instructions/setDecompressableState.d.ts.map +1 -1
- package/dist/generated/instructions/setDecompressableState.js +66 -69
- package/dist/generated/instructions/setDecompressableState.js.map +1 -1
- package/dist/generated/instructions/setDecompressibleState.d.ts +32 -39
- package/dist/generated/instructions/setDecompressibleState.d.ts.map +1 -1
- package/dist/generated/instructions/setDecompressibleState.js +66 -69
- package/dist/generated/instructions/setDecompressibleState.js.map +1 -1
- package/dist/generated/instructions/setNonTransferableV2.d.ts +101 -90
- package/dist/generated/instructions/setNonTransferableV2.d.ts.map +1 -1
- package/dist/generated/instructions/setNonTransferableV2.js +210 -125
- package/dist/generated/instructions/setNonTransferableV2.js.map +1 -1
- package/dist/generated/instructions/setTreeDelegate.d.ts +44 -44
- package/dist/generated/instructions/setTreeDelegate.d.ts.map +1 -1
- package/dist/generated/instructions/setTreeDelegate.js +127 -77
- package/dist/generated/instructions/setTreeDelegate.js.map +1 -1
- package/dist/generated/instructions/thawAndRevokeV2.d.ts +87 -79
- package/dist/generated/instructions/thawAndRevokeV2.d.ts.map +1 -1
- package/dist/generated/instructions/thawAndRevokeV2.js +190 -124
- package/dist/generated/instructions/thawAndRevokeV2.js.map +1 -1
- package/dist/generated/instructions/thawV2.d.ts +99 -88
- package/dist/generated/instructions/thawV2.d.ts.map +1 -1
- package/dist/generated/instructions/thawV2.js +209 -123
- package/dist/generated/instructions/thawV2.js.map +1 -1
- package/dist/generated/instructions/transfer.d.ts +73 -68
- package/dist/generated/instructions/transfer.d.ts.map +1 -1
- package/dist/generated/instructions/transfer.js +179 -101
- package/dist/generated/instructions/transfer.js.map +1 -1
- package/dist/generated/instructions/transferV2.d.ts +104 -93
- package/dist/generated/instructions/transferV2.d.ts.map +1 -1
- package/dist/generated/instructions/transferV2.js +220 -126
- package/dist/generated/instructions/transferV2.js.map +1 -1
- package/dist/generated/instructions/unverifyCollection.d.ts +129 -114
- package/dist/generated/instructions/unverifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCollection.js +293 -146
- package/dist/generated/instructions/unverifyCollection.js.map +1 -1
- package/dist/generated/instructions/unverifyCreator.d.ts +81 -75
- package/dist/generated/instructions/unverifyCreator.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCreator.js +194 -106
- package/dist/generated/instructions/unverifyCreator.js.map +1 -1
- package/dist/generated/instructions/unverifyCreatorV2.d.ts +85 -79
- package/dist/generated/instructions/unverifyCreatorV2.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCreatorV2.js +198 -118
- package/dist/generated/instructions/unverifyCreatorV2.js.map +1 -1
- package/dist/generated/instructions/updateAssetDataV2.d.ts +108 -95
- package/dist/generated/instructions/updateAssetDataV2.d.ts.map +1 -1
- package/dist/generated/instructions/updateAssetDataV2.js +215 -136
- package/dist/generated/instructions/updateAssetDataV2.js.map +1 -1
- package/dist/generated/instructions/updateMetadata.d.ts +106 -96
- package/dist/generated/instructions/updateMetadata.d.ts.map +1 -1
- package/dist/generated/instructions/updateMetadata.js +243 -135
- package/dist/generated/instructions/updateMetadata.js.map +1 -1
- package/dist/generated/instructions/updateMetadataV2.d.ts +103 -91
- package/dist/generated/instructions/updateMetadataV2.d.ts.map +1 -1
- package/dist/generated/instructions/updateMetadataV2.js +212 -123
- package/dist/generated/instructions/updateMetadataV2.js.map +1 -1
- package/dist/generated/instructions/verifyCollection.d.ts +129 -114
- package/dist/generated/instructions/verifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCollection.js +293 -146
- package/dist/generated/instructions/verifyCollection.js.map +1 -1
- package/dist/generated/instructions/verifyCreator.d.ts +81 -75
- package/dist/generated/instructions/verifyCreator.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCreator.js +193 -107
- package/dist/generated/instructions/verifyCreator.js.map +1 -1
- package/dist/generated/instructions/verifyCreatorV2.d.ts +85 -79
- package/dist/generated/instructions/verifyCreatorV2.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCreatorV2.js +198 -118
- package/dist/generated/instructions/verifyCreatorV2.js.map +1 -1
- 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 +186 -143
- package/dist/generated/programs/bubblegum.d.ts.map +1 -1
- package/dist/generated/programs/bubblegum.js +839 -561
- package/dist/generated/programs/bubblegum.js.map +1 -1
- package/dist/generated/programs/index.d.ts +2 -9
- 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 +13 -16
- package/dist/generated/types/assetDataSchema.d.ts.map +1 -1
- package/dist/generated/types/assetDataSchema.js +16 -19
- package/dist/generated/types/assetDataSchema.js.map +1 -1
- package/dist/generated/types/bubblegumEventType.d.ts +12 -15
- package/dist/generated/types/bubblegumEventType.d.ts.map +1 -1
- package/dist/generated/types/bubblegumEventType.js +15 -18
- package/dist/generated/types/bubblegumEventType.js.map +1 -1
- package/dist/generated/types/collection.d.ts +12 -15
- package/dist/generated/types/collection.d.ts.map +1 -1
- package/dist/generated/types/collection.js +11 -20
- package/dist/generated/types/collection.js.map +1 -1
- package/dist/generated/types/creator.d.ts +18 -21
- package/dist/generated/types/creator.d.ts.map +1 -1
- package/dist/generated/types/creator.js +19 -22
- package/dist/generated/types/creator.js.map +1 -1
- package/dist/generated/types/decompressibleState.d.ts +12 -15
- package/dist/generated/types/decompressibleState.d.ts.map +1 -1
- package/dist/generated/types/decompressibleState.js +15 -18
- package/dist/generated/types/decompressibleState.js.map +1 -1
- package/dist/generated/types/index.d.ts +15 -23
- package/dist/generated/types/instructionName.d.ts +45 -48
- package/dist/generated/types/instructionName.d.ts.map +1 -1
- package/dist/generated/types/instructionName.js +48 -51
- package/dist/generated/types/instructionName.js.map +1 -1
- package/dist/generated/types/leafSchema.d.ts +48 -51
- package/dist/generated/types/leafSchema.d.ts.map +1 -1
- package/dist/generated/types/leafSchema.js +55 -72
- package/dist/generated/types/leafSchema.js.map +1 -1
- package/dist/generated/types/metadataArgs.d.ts +59 -58
- package/dist/generated/types/metadataArgs.d.ts.map +1 -1
- package/dist/generated/types/metadataArgs.js +42 -41
- package/dist/generated/types/metadataArgs.js.map +1 -1
- package/dist/generated/types/metadataArgsV2.d.ts +48 -50
- package/dist/generated/types/metadataArgsV2.d.ts.map +1 -1
- package/dist/generated/types/metadataArgsV2.js +33 -35
- package/dist/generated/types/metadataArgsV2.js.map +1 -1
- package/dist/generated/types/tokenProgramVersion.d.ts +12 -15
- package/dist/generated/types/tokenProgramVersion.d.ts.map +1 -1
- package/dist/generated/types/tokenProgramVersion.js +15 -18
- package/dist/generated/types/tokenProgramVersion.js.map +1 -1
- package/dist/generated/types/tokenStandard.d.ts +14 -17
- package/dist/generated/types/tokenStandard.d.ts.map +1 -1
- package/dist/generated/types/tokenStandard.js +17 -20
- package/dist/generated/types/tokenStandard.js.map +1 -1
- package/dist/generated/types/updateArgs.d.ts +25 -28
- package/dist/generated/types/updateArgs.d.ts.map +1 -1
- package/dist/generated/types/updateArgs.js +28 -49
- package/dist/generated/types/updateArgs.js.map +1 -1
- package/dist/generated/types/useMethod.d.ts +13 -16
- package/dist/generated/types/useMethod.d.ts.map +1 -1
- package/dist/generated/types/useMethod.js +16 -19
- package/dist/generated/types/useMethod.js.map +1 -1
- package/dist/generated/types/uses.d.ts +17 -20
- package/dist/generated/types/uses.d.ts.map +1 -1
- package/dist/generated/types/uses.js +20 -23
- package/dist/generated/types/uses.js.map +1 -1
- package/dist/generated/types/version.d.ts +12 -15
- package/dist/generated/types/version.d.ts.map +1 -1
- package/dist/generated/types/version.js +15 -18
- package/dist/generated/types/version.js.map +1 -1
- package/dist/index.d.ts +64 -8
- package/dist/index.js +64 -8
- package/package.json +7 -5
- package/src/generated/accounts/treeConfig.ts +22 -0
- package/src/generated/accounts/voucher.ts +22 -0
- package/src/generated/errors/bubblegum.ts +1 -1
- package/src/generated/index.ts +1 -0
- package/src/generated/instructions/burn.ts +155 -11
- package/src/generated/instructions/burnV2.ts +226 -16
- package/src/generated/instructions/cancelRedeem.ts +151 -11
- package/src/generated/instructions/closeTreeV2.ts +150 -11
- package/src/generated/instructions/collectV2.ts +3 -3
- package/src/generated/instructions/compress.ts +219 -18
- package/src/generated/instructions/createTree.ts +153 -11
- package/src/generated/instructions/createTreeV2.ts +154 -11
- package/src/generated/instructions/decompressV1.ts +258 -16
- package/src/generated/instructions/delegate.ts +170 -12
- package/src/generated/instructions/delegateAndFreezeV2.ts +184 -13
- package/src/generated/instructions/delegateV2.ts +184 -13
- package/src/generated/instructions/freezeV2.ts +188 -14
- package/src/generated/instructions/mintToCollectionV1.ts +296 -21
- package/src/generated/instructions/mintV1.ts +169 -13
- package/src/generated/instructions/mintV2.ts +231 -17
- package/src/generated/instructions/redeem.ts +164 -12
- package/src/generated/instructions/setAndVerifyCollection.ts +307 -21
- package/src/generated/instructions/setCollectionV2.ts +253 -19
- package/src/generated/instructions/setDecompressableState.ts +3 -3
- package/src/generated/instructions/setDecompressibleState.ts +3 -3
- package/src/generated/instructions/setNonTransferableV2.ts +189 -14
- package/src/generated/instructions/setTreeDelegate.ts +105 -7
- package/src/generated/instructions/thawAndRevokeV2.ts +168 -12
- package/src/generated/instructions/thawV2.ts +188 -14
- package/src/generated/instructions/transfer.ts +164 -12
- package/src/generated/instructions/transferV2.ts +198 -15
- package/src/generated/instructions/unverifyCollection.ts +306 -21
- package/src/generated/instructions/unverifyCreator.ts +174 -13
- package/src/generated/instructions/unverifyCreatorV2.ts +176 -13
- package/src/generated/instructions/updateAssetDataV2.ts +190 -14
- package/src/generated/instructions/updateMetadata.ts +233 -17
- package/src/generated/instructions/updateMetadataV2.ts +189 -14
- package/src/generated/instructions/verifyCollection.ts +306 -21
- package/src/generated/instructions/verifyCreator.ts +174 -13
- package/src/generated/instructions/verifyCreatorV2.ts +176 -13
- package/src/generated/pdas/assetId.ts +40 -0
- package/src/generated/pdas/bubblegumSigner.ts +23 -0
- package/{dist/generated/accounts/index.js → src/generated/pdas/index.ts} +6 -1
- 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 +208 -165
- package/src/generated/programs/index.ts +1 -0
- package/src/generated/programs/mplTokenMetadata.ts +42 -0
- package/dist/.tsbuildinfo +0 -1
- package/dist/generated/accounts/index.d.ts.map +0 -1
- package/dist/generated/accounts/index.js.map +0 -1
- package/dist/generated/errors/index.d.ts.map +0 -1
- package/dist/generated/errors/index.js +0 -9
- package/dist/generated/errors/index.js.map +0 -1
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/index.js +0 -13
- package/dist/generated/index.js.map +0 -1
- package/dist/generated/instructions/index.d.ts.map +0 -1
- package/dist/generated/instructions/index.js +0 -44
- package/dist/generated/instructions/index.js.map +0 -1
- package/dist/generated/programs/index.d.ts.map +0 -1
- package/dist/generated/programs/index.js +0 -9
- package/dist/generated/programs/index.js.map +0 -1
- package/dist/generated/types/index.d.ts.map +0 -1
- package/dist/generated/types/index.js +0 -23
- package/dist/generated/types/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -29,22 +29,22 @@ import type {
|
|
|
29
29
|
VoucherArgs,
|
|
30
30
|
} from "../accounts/index.js";
|
|
31
31
|
import type {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
BurnAsyncInput,
|
|
33
|
+
BurnV2AsyncInput,
|
|
34
|
+
CancelRedeemAsyncInput,
|
|
35
|
+
CloseTreeV2AsyncInput,
|
|
36
36
|
CollectV2Input,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
CompressAsyncInput,
|
|
38
|
+
CreateTreeAsyncInput,
|
|
39
|
+
CreateTreeV2AsyncInput,
|
|
40
|
+
DecompressV1AsyncInput,
|
|
41
|
+
DelegateAndFreezeV2AsyncInput,
|
|
42
|
+
DelegateAsyncInput,
|
|
43
|
+
DelegateV2AsyncInput,
|
|
44
|
+
FreezeV2AsyncInput,
|
|
45
|
+
MintToCollectionV1AsyncInput,
|
|
46
|
+
MintV1AsyncInput,
|
|
47
|
+
MintV2AsyncInput,
|
|
48
48
|
ParsedBurnInstruction,
|
|
49
49
|
ParsedBurnV2Instruction,
|
|
50
50
|
ParsedCancelRedeemInstruction,
|
|
@@ -81,26 +81,26 @@ import type {
|
|
|
81
81
|
ParsedVerifyCollectionInstruction,
|
|
82
82
|
ParsedVerifyCreatorInstruction,
|
|
83
83
|
ParsedVerifyCreatorV2Instruction,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
RedeemAsyncInput,
|
|
85
|
+
SetAndVerifyCollectionAsyncInput,
|
|
86
|
+
SetCollectionV2AsyncInput,
|
|
87
87
|
SetDecompressableStateInput,
|
|
88
88
|
SetDecompressibleStateInput,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
89
|
+
SetNonTransferableV2AsyncInput,
|
|
90
|
+
SetTreeDelegateAsyncInput,
|
|
91
|
+
ThawAndRevokeV2AsyncInput,
|
|
92
|
+
ThawV2AsyncInput,
|
|
93
|
+
TransferAsyncInput,
|
|
94
|
+
TransferV2AsyncInput,
|
|
95
|
+
UnverifyCollectionAsyncInput,
|
|
96
|
+
UnverifyCreatorAsyncInput,
|
|
97
|
+
UnverifyCreatorV2AsyncInput,
|
|
98
|
+
UpdateAssetDataV2AsyncInput,
|
|
99
|
+
UpdateMetadataAsyncInput,
|
|
100
|
+
UpdateMetadataV2AsyncInput,
|
|
101
|
+
VerifyCollectionAsyncInput,
|
|
102
|
+
VerifyCreatorAsyncInput,
|
|
103
|
+
VerifyCreatorV2AsyncInput,
|
|
104
104
|
} from "../instructions/index.js";
|
|
105
105
|
import {
|
|
106
106
|
assertIsInstructionWithAccounts,
|
|
@@ -119,42 +119,42 @@ import {
|
|
|
119
119
|
} from "@solana/program-client-core";
|
|
120
120
|
import { getTreeConfigCodec, getVoucherCodec } from "../accounts/index.js";
|
|
121
121
|
import {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
getBurnInstructionAsync,
|
|
123
|
+
getBurnV2InstructionAsync,
|
|
124
|
+
getCancelRedeemInstructionAsync,
|
|
125
|
+
getCloseTreeV2InstructionAsync,
|
|
126
126
|
getCollectV2Instruction,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
127
|
+
getCompressInstructionAsync,
|
|
128
|
+
getCreateTreeInstructionAsync,
|
|
129
|
+
getCreateTreeV2InstructionAsync,
|
|
130
|
+
getDecompressV1InstructionAsync,
|
|
131
|
+
getDelegateAndFreezeV2InstructionAsync,
|
|
132
|
+
getDelegateInstructionAsync,
|
|
133
|
+
getDelegateV2InstructionAsync,
|
|
134
|
+
getFreezeV2InstructionAsync,
|
|
135
|
+
getMintToCollectionV1InstructionAsync,
|
|
136
|
+
getMintV1InstructionAsync,
|
|
137
|
+
getMintV2InstructionAsync,
|
|
138
|
+
getRedeemInstructionAsync,
|
|
139
|
+
getSetAndVerifyCollectionInstructionAsync,
|
|
140
|
+
getSetCollectionV2InstructionAsync,
|
|
141
141
|
getSetDecompressableStateInstruction,
|
|
142
142
|
getSetDecompressibleStateInstruction,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
143
|
+
getSetNonTransferableV2InstructionAsync,
|
|
144
|
+
getSetTreeDelegateInstructionAsync,
|
|
145
|
+
getThawAndRevokeV2InstructionAsync,
|
|
146
|
+
getThawV2InstructionAsync,
|
|
147
|
+
getTransferInstructionAsync,
|
|
148
|
+
getTransferV2InstructionAsync,
|
|
149
|
+
getUnverifyCollectionInstructionAsync,
|
|
150
|
+
getUnverifyCreatorInstructionAsync,
|
|
151
|
+
getUnverifyCreatorV2InstructionAsync,
|
|
152
|
+
getUpdateAssetDataV2InstructionAsync,
|
|
153
|
+
getUpdateMetadataInstructionAsync,
|
|
154
|
+
getUpdateMetadataV2InstructionAsync,
|
|
155
|
+
getVerifyCollectionInstructionAsync,
|
|
156
|
+
getVerifyCreatorInstructionAsync,
|
|
157
|
+
getVerifyCreatorV2InstructionAsync,
|
|
158
158
|
parseBurnInstruction,
|
|
159
159
|
parseBurnV2Instruction,
|
|
160
160
|
parseCancelRedeemInstruction,
|
|
@@ -192,6 +192,13 @@ import {
|
|
|
192
192
|
parseVerifyCreatorInstruction,
|
|
193
193
|
parseVerifyCreatorV2Instruction,
|
|
194
194
|
} from "../instructions/index.js";
|
|
195
|
+
import {
|
|
196
|
+
findAssetIdPda,
|
|
197
|
+
findBubblegumSignerPda,
|
|
198
|
+
findMintAuthorityPda,
|
|
199
|
+
findTreeConfigPda,
|
|
200
|
+
findVoucherPda,
|
|
201
|
+
} from "../pdas/index.js";
|
|
195
202
|
|
|
196
203
|
export const BUBBLEGUM_PROGRAM_ADDRESS =
|
|
197
204
|
"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY" as Address<"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY">;
|
|
@@ -1061,6 +1068,7 @@ export function parseBubblegumInstruction<TProgram extends string>(
|
|
|
1061
1068
|
export interface BubblegumPlugin {
|
|
1062
1069
|
accounts: BubblegumPluginAccounts;
|
|
1063
1070
|
instructions: BubblegumPluginInstructions;
|
|
1071
|
+
pdas: BubblegumPluginPdas;
|
|
1064
1072
|
}
|
|
1065
1073
|
|
|
1066
1074
|
export interface BubblegumPluginAccounts {
|
|
@@ -1072,65 +1080,74 @@ export interface BubblegumPluginAccounts {
|
|
|
1072
1080
|
|
|
1073
1081
|
export interface BubblegumPluginInstructions {
|
|
1074
1082
|
burn: (
|
|
1075
|
-
input:
|
|
1076
|
-
) => ReturnType<typeof
|
|
1083
|
+
input: BurnAsyncInput,
|
|
1084
|
+
) => ReturnType<typeof getBurnInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1077
1085
|
burnV2: (
|
|
1078
|
-
input: MakeOptional<
|
|
1079
|
-
) => ReturnType<typeof
|
|
1086
|
+
input: MakeOptional<BurnV2AsyncInput, "payer">,
|
|
1087
|
+
) => ReturnType<typeof getBurnV2InstructionAsync> & SelfPlanAndSendFunctions;
|
|
1080
1088
|
cancelRedeem: (
|
|
1081
|
-
input:
|
|
1082
|
-
) => ReturnType<typeof
|
|
1089
|
+
input: CancelRedeemAsyncInput,
|
|
1090
|
+
) => ReturnType<typeof getCancelRedeemInstructionAsync> &
|
|
1091
|
+
SelfPlanAndSendFunctions;
|
|
1083
1092
|
closeTreeV2: (
|
|
1084
|
-
input:
|
|
1085
|
-
) => ReturnType<typeof
|
|
1093
|
+
input: CloseTreeV2AsyncInput,
|
|
1094
|
+
) => ReturnType<typeof getCloseTreeV2InstructionAsync> &
|
|
1095
|
+
SelfPlanAndSendFunctions;
|
|
1086
1096
|
collectV2: (
|
|
1087
1097
|
input: CollectV2Input,
|
|
1088
1098
|
) => ReturnType<typeof getCollectV2Instruction> & SelfPlanAndSendFunctions;
|
|
1089
1099
|
compress: (
|
|
1090
|
-
input: MakeOptional<
|
|
1091
|
-
) => ReturnType<typeof
|
|
1100
|
+
input: MakeOptional<CompressAsyncInput, "payer">,
|
|
1101
|
+
) => ReturnType<typeof getCompressInstructionAsync> &
|
|
1102
|
+
SelfPlanAndSendFunctions;
|
|
1092
1103
|
createTree: (
|
|
1093
|
-
input: MakeOptional<
|
|
1094
|
-
) => ReturnType<typeof
|
|
1104
|
+
input: MakeOptional<CreateTreeAsyncInput, "payer">,
|
|
1105
|
+
) => ReturnType<typeof getCreateTreeInstructionAsync> &
|
|
1106
|
+
SelfPlanAndSendFunctions;
|
|
1095
1107
|
createTreeV2: (
|
|
1096
|
-
input: MakeOptional<
|
|
1097
|
-
) => ReturnType<typeof
|
|
1108
|
+
input: MakeOptional<CreateTreeV2AsyncInput, "payer">,
|
|
1109
|
+
) => ReturnType<typeof getCreateTreeV2InstructionAsync> &
|
|
1110
|
+
SelfPlanAndSendFunctions;
|
|
1098
1111
|
decompressV1: (
|
|
1099
|
-
input:
|
|
1100
|
-
) => ReturnType<typeof
|
|
1112
|
+
input: DecompressV1AsyncInput,
|
|
1113
|
+
) => ReturnType<typeof getDecompressV1InstructionAsync> &
|
|
1114
|
+
SelfPlanAndSendFunctions;
|
|
1101
1115
|
delegate: (
|
|
1102
|
-
input:
|
|
1103
|
-
) => ReturnType<typeof
|
|
1116
|
+
input: DelegateAsyncInput,
|
|
1117
|
+
) => ReturnType<typeof getDelegateInstructionAsync> &
|
|
1118
|
+
SelfPlanAndSendFunctions;
|
|
1104
1119
|
delegateAndFreezeV2: (
|
|
1105
|
-
input: MakeOptional<
|
|
1106
|
-
) => ReturnType<typeof
|
|
1120
|
+
input: MakeOptional<DelegateAndFreezeV2AsyncInput, "payer">,
|
|
1121
|
+
) => ReturnType<typeof getDelegateAndFreezeV2InstructionAsync> &
|
|
1107
1122
|
SelfPlanAndSendFunctions;
|
|
1108
1123
|
delegateV2: (
|
|
1109
|
-
input: MakeOptional<
|
|
1110
|
-
) => ReturnType<typeof
|
|
1124
|
+
input: MakeOptional<DelegateV2AsyncInput, "payer">,
|
|
1125
|
+
) => ReturnType<typeof getDelegateV2InstructionAsync> &
|
|
1126
|
+
SelfPlanAndSendFunctions;
|
|
1111
1127
|
freezeV2: (
|
|
1112
|
-
input: MakeOptional<
|
|
1113
|
-
) => ReturnType<typeof
|
|
1128
|
+
input: MakeOptional<FreezeV2AsyncInput, "payer">,
|
|
1129
|
+
) => ReturnType<typeof getFreezeV2InstructionAsync> &
|
|
1130
|
+
SelfPlanAndSendFunctions;
|
|
1114
1131
|
mintToCollectionV1: (
|
|
1115
|
-
input: MakeOptional<
|
|
1116
|
-
) => ReturnType<typeof
|
|
1132
|
+
input: MakeOptional<MintToCollectionV1AsyncInput, "payer">,
|
|
1133
|
+
) => ReturnType<typeof getMintToCollectionV1InstructionAsync> &
|
|
1117
1134
|
SelfPlanAndSendFunctions;
|
|
1118
1135
|
mintV1: (
|
|
1119
|
-
input: MakeOptional<
|
|
1120
|
-
) => ReturnType<typeof
|
|
1136
|
+
input: MakeOptional<MintV1AsyncInput, "payer">,
|
|
1137
|
+
) => ReturnType<typeof getMintV1InstructionAsync> & SelfPlanAndSendFunctions;
|
|
1121
1138
|
mintV2: (
|
|
1122
|
-
input: MakeOptional<
|
|
1123
|
-
) => ReturnType<typeof
|
|
1139
|
+
input: MakeOptional<MintV2AsyncInput, "payer">,
|
|
1140
|
+
) => ReturnType<typeof getMintV2InstructionAsync> & SelfPlanAndSendFunctions;
|
|
1124
1141
|
redeem: (
|
|
1125
|
-
input:
|
|
1126
|
-
) => ReturnType<typeof
|
|
1142
|
+
input: RedeemAsyncInput,
|
|
1143
|
+
) => ReturnType<typeof getRedeemInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1127
1144
|
setAndVerifyCollection: (
|
|
1128
|
-
input: MakeOptional<
|
|
1129
|
-
) => ReturnType<typeof
|
|
1145
|
+
input: MakeOptional<SetAndVerifyCollectionAsyncInput, "payer">,
|
|
1146
|
+
) => ReturnType<typeof getSetAndVerifyCollectionInstructionAsync> &
|
|
1130
1147
|
SelfPlanAndSendFunctions;
|
|
1131
1148
|
setCollectionV2: (
|
|
1132
|
-
input: MakeOptional<
|
|
1133
|
-
) => ReturnType<typeof
|
|
1149
|
+
input: MakeOptional<SetCollectionV2AsyncInput, "payer">,
|
|
1150
|
+
) => ReturnType<typeof getSetCollectionV2InstructionAsync> &
|
|
1134
1151
|
SelfPlanAndSendFunctions;
|
|
1135
1152
|
setDecompressableState: (
|
|
1136
1153
|
input: SetDecompressableStateInput,
|
|
@@ -1141,64 +1158,74 @@ export interface BubblegumPluginInstructions {
|
|
|
1141
1158
|
) => ReturnType<typeof getSetDecompressibleStateInstruction> &
|
|
1142
1159
|
SelfPlanAndSendFunctions;
|
|
1143
1160
|
setNonTransferableV2: (
|
|
1144
|
-
input: MakeOptional<
|
|
1145
|
-
) => ReturnType<typeof
|
|
1161
|
+
input: MakeOptional<SetNonTransferableV2AsyncInput, "payer">,
|
|
1162
|
+
) => ReturnType<typeof getSetNonTransferableV2InstructionAsync> &
|
|
1146
1163
|
SelfPlanAndSendFunctions;
|
|
1147
1164
|
setTreeDelegate: (
|
|
1148
|
-
input:
|
|
1149
|
-
) => ReturnType<typeof
|
|
1165
|
+
input: SetTreeDelegateAsyncInput,
|
|
1166
|
+
) => ReturnType<typeof getSetTreeDelegateInstructionAsync> &
|
|
1150
1167
|
SelfPlanAndSendFunctions;
|
|
1151
1168
|
thawAndRevokeV2: (
|
|
1152
|
-
input: MakeOptional<
|
|
1153
|
-
) => ReturnType<typeof
|
|
1169
|
+
input: MakeOptional<ThawAndRevokeV2AsyncInput, "payer">,
|
|
1170
|
+
) => ReturnType<typeof getThawAndRevokeV2InstructionAsync> &
|
|
1154
1171
|
SelfPlanAndSendFunctions;
|
|
1155
1172
|
thawV2: (
|
|
1156
|
-
input: MakeOptional<
|
|
1157
|
-
) => ReturnType<typeof
|
|
1173
|
+
input: MakeOptional<ThawV2AsyncInput, "payer">,
|
|
1174
|
+
) => ReturnType<typeof getThawV2InstructionAsync> & SelfPlanAndSendFunctions;
|
|
1158
1175
|
transfer: (
|
|
1159
|
-
input:
|
|
1160
|
-
) => ReturnType<typeof
|
|
1176
|
+
input: TransferAsyncInput,
|
|
1177
|
+
) => ReturnType<typeof getTransferInstructionAsync> &
|
|
1178
|
+
SelfPlanAndSendFunctions;
|
|
1161
1179
|
transferV2: (
|
|
1162
|
-
input: MakeOptional<
|
|
1163
|
-
) => ReturnType<typeof
|
|
1180
|
+
input: MakeOptional<TransferV2AsyncInput, "payer">,
|
|
1181
|
+
) => ReturnType<typeof getTransferV2InstructionAsync> &
|
|
1182
|
+
SelfPlanAndSendFunctions;
|
|
1164
1183
|
unverifyCollection: (
|
|
1165
|
-
input: MakeOptional<
|
|
1166
|
-
) => ReturnType<typeof
|
|
1184
|
+
input: MakeOptional<UnverifyCollectionAsyncInput, "payer">,
|
|
1185
|
+
) => ReturnType<typeof getUnverifyCollectionInstructionAsync> &
|
|
1167
1186
|
SelfPlanAndSendFunctions;
|
|
1168
1187
|
unverifyCreator: (
|
|
1169
|
-
input: MakeOptional<
|
|
1170
|
-
) => ReturnType<typeof
|
|
1188
|
+
input: MakeOptional<UnverifyCreatorAsyncInput, "payer">,
|
|
1189
|
+
) => ReturnType<typeof getUnverifyCreatorInstructionAsync> &
|
|
1171
1190
|
SelfPlanAndSendFunctions;
|
|
1172
1191
|
unverifyCreatorV2: (
|
|
1173
|
-
input: MakeOptional<
|
|
1174
|
-
) => ReturnType<typeof
|
|
1192
|
+
input: MakeOptional<UnverifyCreatorV2AsyncInput, "payer">,
|
|
1193
|
+
) => ReturnType<typeof getUnverifyCreatorV2InstructionAsync> &
|
|
1175
1194
|
SelfPlanAndSendFunctions;
|
|
1176
1195
|
updateAssetDataV2: (
|
|
1177
|
-
input: MakeOptional<
|
|
1178
|
-
) => ReturnType<typeof
|
|
1196
|
+
input: MakeOptional<UpdateAssetDataV2AsyncInput, "payer">,
|
|
1197
|
+
) => ReturnType<typeof getUpdateAssetDataV2InstructionAsync> &
|
|
1179
1198
|
SelfPlanAndSendFunctions;
|
|
1180
1199
|
updateMetadata: (
|
|
1181
|
-
input: MakeOptional<
|
|
1182
|
-
) => ReturnType<typeof
|
|
1200
|
+
input: MakeOptional<UpdateMetadataAsyncInput, "payer">,
|
|
1201
|
+
) => ReturnType<typeof getUpdateMetadataInstructionAsync> &
|
|
1183
1202
|
SelfPlanAndSendFunctions;
|
|
1184
1203
|
updateMetadataV2: (
|
|
1185
|
-
input: MakeOptional<
|
|
1186
|
-
) => ReturnType<typeof
|
|
1204
|
+
input: MakeOptional<UpdateMetadataV2AsyncInput, "payer">,
|
|
1205
|
+
) => ReturnType<typeof getUpdateMetadataV2InstructionAsync> &
|
|
1187
1206
|
SelfPlanAndSendFunctions;
|
|
1188
1207
|
verifyCollection: (
|
|
1189
|
-
input: MakeOptional<
|
|
1190
|
-
) => ReturnType<typeof
|
|
1208
|
+
input: MakeOptional<VerifyCollectionAsyncInput, "payer">,
|
|
1209
|
+
) => ReturnType<typeof getVerifyCollectionInstructionAsync> &
|
|
1191
1210
|
SelfPlanAndSendFunctions;
|
|
1192
1211
|
verifyCreator: (
|
|
1193
|
-
input: MakeOptional<
|
|
1194
|
-
) => ReturnType<typeof
|
|
1212
|
+
input: MakeOptional<VerifyCreatorAsyncInput, "payer">,
|
|
1213
|
+
) => ReturnType<typeof getVerifyCreatorInstructionAsync> &
|
|
1195
1214
|
SelfPlanAndSendFunctions;
|
|
1196
1215
|
verifyCreatorV2: (
|
|
1197
|
-
input: MakeOptional<
|
|
1198
|
-
) => ReturnType<typeof
|
|
1216
|
+
input: MakeOptional<VerifyCreatorV2AsyncInput, "payer">,
|
|
1217
|
+
) => ReturnType<typeof getVerifyCreatorV2InstructionAsync> &
|
|
1199
1218
|
SelfPlanAndSendFunctions;
|
|
1200
1219
|
}
|
|
1201
1220
|
|
|
1221
|
+
export interface BubblegumPluginPdas {
|
|
1222
|
+
treeConfig: typeof findTreeConfigPda;
|
|
1223
|
+
voucher: typeof findVoucherPda;
|
|
1224
|
+
assetId: typeof findAssetIdPda;
|
|
1225
|
+
bubblegumSigner: typeof findBubblegumSignerPda;
|
|
1226
|
+
mintAuthority: typeof findMintAuthorityPda;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1202
1229
|
export type BubblegumPluginRequirements = ClientWithRpc<
|
|
1203
1230
|
GetAccountInfoApi & GetMultipleAccountsApi
|
|
1204
1231
|
> &
|
|
@@ -1218,11 +1245,11 @@ export function bubblegumProgram() {
|
|
|
1218
1245
|
},
|
|
1219
1246
|
instructions: {
|
|
1220
1247
|
burn: (input) =>
|
|
1221
|
-
addSelfPlanAndSendFunctions(client,
|
|
1248
|
+
addSelfPlanAndSendFunctions(client, getBurnInstructionAsync(input)),
|
|
1222
1249
|
burnV2: (input) =>
|
|
1223
1250
|
addSelfPlanAndSendFunctions(
|
|
1224
1251
|
client,
|
|
1225
|
-
|
|
1252
|
+
getBurnV2InstructionAsync({
|
|
1226
1253
|
...input,
|
|
1227
1254
|
payer: input.payer ?? client.payer,
|
|
1228
1255
|
}),
|
|
@@ -1230,19 +1257,19 @@ export function bubblegumProgram() {
|
|
|
1230
1257
|
cancelRedeem: (input) =>
|
|
1231
1258
|
addSelfPlanAndSendFunctions(
|
|
1232
1259
|
client,
|
|
1233
|
-
|
|
1260
|
+
getCancelRedeemInstructionAsync(input),
|
|
1234
1261
|
),
|
|
1235
1262
|
closeTreeV2: (input) =>
|
|
1236
1263
|
addSelfPlanAndSendFunctions(
|
|
1237
1264
|
client,
|
|
1238
|
-
|
|
1265
|
+
getCloseTreeV2InstructionAsync(input),
|
|
1239
1266
|
),
|
|
1240
1267
|
collectV2: (input) =>
|
|
1241
1268
|
addSelfPlanAndSendFunctions(client, getCollectV2Instruction(input)),
|
|
1242
1269
|
compress: (input) =>
|
|
1243
1270
|
addSelfPlanAndSendFunctions(
|
|
1244
1271
|
client,
|
|
1245
|
-
|
|
1272
|
+
getCompressInstructionAsync({
|
|
1246
1273
|
...input,
|
|
1247
1274
|
payer: input.payer ?? client.payer,
|
|
1248
1275
|
}),
|
|
@@ -1250,7 +1277,7 @@ export function bubblegumProgram() {
|
|
|
1250
1277
|
createTree: (input) =>
|
|
1251
1278
|
addSelfPlanAndSendFunctions(
|
|
1252
1279
|
client,
|
|
1253
|
-
|
|
1280
|
+
getCreateTreeInstructionAsync({
|
|
1254
1281
|
...input,
|
|
1255
1282
|
payer: input.payer ?? client.payer,
|
|
1256
1283
|
}),
|
|
@@ -1258,7 +1285,7 @@ export function bubblegumProgram() {
|
|
|
1258
1285
|
createTreeV2: (input) =>
|
|
1259
1286
|
addSelfPlanAndSendFunctions(
|
|
1260
1287
|
client,
|
|
1261
|
-
|
|
1288
|
+
getCreateTreeV2InstructionAsync({
|
|
1262
1289
|
...input,
|
|
1263
1290
|
payer: input.payer ?? client.payer,
|
|
1264
1291
|
}),
|
|
@@ -1266,14 +1293,17 @@ export function bubblegumProgram() {
|
|
|
1266
1293
|
decompressV1: (input) =>
|
|
1267
1294
|
addSelfPlanAndSendFunctions(
|
|
1268
1295
|
client,
|
|
1269
|
-
|
|
1296
|
+
getDecompressV1InstructionAsync(input),
|
|
1270
1297
|
),
|
|
1271
1298
|
delegate: (input) =>
|
|
1272
|
-
addSelfPlanAndSendFunctions(
|
|
1299
|
+
addSelfPlanAndSendFunctions(
|
|
1300
|
+
client,
|
|
1301
|
+
getDelegateInstructionAsync(input),
|
|
1302
|
+
),
|
|
1273
1303
|
delegateAndFreezeV2: (input) =>
|
|
1274
1304
|
addSelfPlanAndSendFunctions(
|
|
1275
1305
|
client,
|
|
1276
|
-
|
|
1306
|
+
getDelegateAndFreezeV2InstructionAsync({
|
|
1277
1307
|
...input,
|
|
1278
1308
|
payer: input.payer ?? client.payer,
|
|
1279
1309
|
}),
|
|
@@ -1281,7 +1311,7 @@ export function bubblegumProgram() {
|
|
|
1281
1311
|
delegateV2: (input) =>
|
|
1282
1312
|
addSelfPlanAndSendFunctions(
|
|
1283
1313
|
client,
|
|
1284
|
-
|
|
1314
|
+
getDelegateV2InstructionAsync({
|
|
1285
1315
|
...input,
|
|
1286
1316
|
payer: input.payer ?? client.payer,
|
|
1287
1317
|
}),
|
|
@@ -1289,7 +1319,7 @@ export function bubblegumProgram() {
|
|
|
1289
1319
|
freezeV2: (input) =>
|
|
1290
1320
|
addSelfPlanAndSendFunctions(
|
|
1291
1321
|
client,
|
|
1292
|
-
|
|
1322
|
+
getFreezeV2InstructionAsync({
|
|
1293
1323
|
...input,
|
|
1294
1324
|
payer: input.payer ?? client.payer,
|
|
1295
1325
|
}),
|
|
@@ -1297,7 +1327,7 @@ export function bubblegumProgram() {
|
|
|
1297
1327
|
mintToCollectionV1: (input) =>
|
|
1298
1328
|
addSelfPlanAndSendFunctions(
|
|
1299
1329
|
client,
|
|
1300
|
-
|
|
1330
|
+
getMintToCollectionV1InstructionAsync({
|
|
1301
1331
|
...input,
|
|
1302
1332
|
payer: input.payer ?? client.payer,
|
|
1303
1333
|
}),
|
|
@@ -1305,7 +1335,7 @@ export function bubblegumProgram() {
|
|
|
1305
1335
|
mintV1: (input) =>
|
|
1306
1336
|
addSelfPlanAndSendFunctions(
|
|
1307
1337
|
client,
|
|
1308
|
-
|
|
1338
|
+
getMintV1InstructionAsync({
|
|
1309
1339
|
...input,
|
|
1310
1340
|
payer: input.payer ?? client.payer,
|
|
1311
1341
|
}),
|
|
@@ -1313,17 +1343,20 @@ export function bubblegumProgram() {
|
|
|
1313
1343
|
mintV2: (input) =>
|
|
1314
1344
|
addSelfPlanAndSendFunctions(
|
|
1315
1345
|
client,
|
|
1316
|
-
|
|
1346
|
+
getMintV2InstructionAsync({
|
|
1317
1347
|
...input,
|
|
1318
1348
|
payer: input.payer ?? client.payer,
|
|
1319
1349
|
}),
|
|
1320
1350
|
),
|
|
1321
1351
|
redeem: (input) =>
|
|
1322
|
-
addSelfPlanAndSendFunctions(
|
|
1352
|
+
addSelfPlanAndSendFunctions(
|
|
1353
|
+
client,
|
|
1354
|
+
getRedeemInstructionAsync(input),
|
|
1355
|
+
),
|
|
1323
1356
|
setAndVerifyCollection: (input) =>
|
|
1324
1357
|
addSelfPlanAndSendFunctions(
|
|
1325
1358
|
client,
|
|
1326
|
-
|
|
1359
|
+
getSetAndVerifyCollectionInstructionAsync({
|
|
1327
1360
|
...input,
|
|
1328
1361
|
payer: input.payer ?? client.payer,
|
|
1329
1362
|
}),
|
|
@@ -1331,7 +1364,7 @@ export function bubblegumProgram() {
|
|
|
1331
1364
|
setCollectionV2: (input) =>
|
|
1332
1365
|
addSelfPlanAndSendFunctions(
|
|
1333
1366
|
client,
|
|
1334
|
-
|
|
1367
|
+
getSetCollectionV2InstructionAsync({
|
|
1335
1368
|
...input,
|
|
1336
1369
|
payer: input.payer ?? client.payer,
|
|
1337
1370
|
}),
|
|
@@ -1349,7 +1382,7 @@ export function bubblegumProgram() {
|
|
|
1349
1382
|
setNonTransferableV2: (input) =>
|
|
1350
1383
|
addSelfPlanAndSendFunctions(
|
|
1351
1384
|
client,
|
|
1352
|
-
|
|
1385
|
+
getSetNonTransferableV2InstructionAsync({
|
|
1353
1386
|
...input,
|
|
1354
1387
|
payer: input.payer ?? client.payer,
|
|
1355
1388
|
}),
|
|
@@ -1357,12 +1390,12 @@ export function bubblegumProgram() {
|
|
|
1357
1390
|
setTreeDelegate: (input) =>
|
|
1358
1391
|
addSelfPlanAndSendFunctions(
|
|
1359
1392
|
client,
|
|
1360
|
-
|
|
1393
|
+
getSetTreeDelegateInstructionAsync(input),
|
|
1361
1394
|
),
|
|
1362
1395
|
thawAndRevokeV2: (input) =>
|
|
1363
1396
|
addSelfPlanAndSendFunctions(
|
|
1364
1397
|
client,
|
|
1365
|
-
|
|
1398
|
+
getThawAndRevokeV2InstructionAsync({
|
|
1366
1399
|
...input,
|
|
1367
1400
|
payer: input.payer ?? client.payer,
|
|
1368
1401
|
}),
|
|
@@ -1370,17 +1403,20 @@ export function bubblegumProgram() {
|
|
|
1370
1403
|
thawV2: (input) =>
|
|
1371
1404
|
addSelfPlanAndSendFunctions(
|
|
1372
1405
|
client,
|
|
1373
|
-
|
|
1406
|
+
getThawV2InstructionAsync({
|
|
1374
1407
|
...input,
|
|
1375
1408
|
payer: input.payer ?? client.payer,
|
|
1376
1409
|
}),
|
|
1377
1410
|
),
|
|
1378
1411
|
transfer: (input) =>
|
|
1379
|
-
addSelfPlanAndSendFunctions(
|
|
1412
|
+
addSelfPlanAndSendFunctions(
|
|
1413
|
+
client,
|
|
1414
|
+
getTransferInstructionAsync(input),
|
|
1415
|
+
),
|
|
1380
1416
|
transferV2: (input) =>
|
|
1381
1417
|
addSelfPlanAndSendFunctions(
|
|
1382
1418
|
client,
|
|
1383
|
-
|
|
1419
|
+
getTransferV2InstructionAsync({
|
|
1384
1420
|
...input,
|
|
1385
1421
|
payer: input.payer ?? client.payer,
|
|
1386
1422
|
}),
|
|
@@ -1388,7 +1424,7 @@ export function bubblegumProgram() {
|
|
|
1388
1424
|
unverifyCollection: (input) =>
|
|
1389
1425
|
addSelfPlanAndSendFunctions(
|
|
1390
1426
|
client,
|
|
1391
|
-
|
|
1427
|
+
getUnverifyCollectionInstructionAsync({
|
|
1392
1428
|
...input,
|
|
1393
1429
|
payer: input.payer ?? client.payer,
|
|
1394
1430
|
}),
|
|
@@ -1396,7 +1432,7 @@ export function bubblegumProgram() {
|
|
|
1396
1432
|
unverifyCreator: (input) =>
|
|
1397
1433
|
addSelfPlanAndSendFunctions(
|
|
1398
1434
|
client,
|
|
1399
|
-
|
|
1435
|
+
getUnverifyCreatorInstructionAsync({
|
|
1400
1436
|
...input,
|
|
1401
1437
|
payer: input.payer ?? client.payer,
|
|
1402
1438
|
}),
|
|
@@ -1404,7 +1440,7 @@ export function bubblegumProgram() {
|
|
|
1404
1440
|
unverifyCreatorV2: (input) =>
|
|
1405
1441
|
addSelfPlanAndSendFunctions(
|
|
1406
1442
|
client,
|
|
1407
|
-
|
|
1443
|
+
getUnverifyCreatorV2InstructionAsync({
|
|
1408
1444
|
...input,
|
|
1409
1445
|
payer: input.payer ?? client.payer,
|
|
1410
1446
|
}),
|
|
@@ -1412,7 +1448,7 @@ export function bubblegumProgram() {
|
|
|
1412
1448
|
updateAssetDataV2: (input) =>
|
|
1413
1449
|
addSelfPlanAndSendFunctions(
|
|
1414
1450
|
client,
|
|
1415
|
-
|
|
1451
|
+
getUpdateAssetDataV2InstructionAsync({
|
|
1416
1452
|
...input,
|
|
1417
1453
|
payer: input.payer ?? client.payer,
|
|
1418
1454
|
}),
|
|
@@ -1420,7 +1456,7 @@ export function bubblegumProgram() {
|
|
|
1420
1456
|
updateMetadata: (input) =>
|
|
1421
1457
|
addSelfPlanAndSendFunctions(
|
|
1422
1458
|
client,
|
|
1423
|
-
|
|
1459
|
+
getUpdateMetadataInstructionAsync({
|
|
1424
1460
|
...input,
|
|
1425
1461
|
payer: input.payer ?? client.payer,
|
|
1426
1462
|
}),
|
|
@@ -1428,7 +1464,7 @@ export function bubblegumProgram() {
|
|
|
1428
1464
|
updateMetadataV2: (input) =>
|
|
1429
1465
|
addSelfPlanAndSendFunctions(
|
|
1430
1466
|
client,
|
|
1431
|
-
|
|
1467
|
+
getUpdateMetadataV2InstructionAsync({
|
|
1432
1468
|
...input,
|
|
1433
1469
|
payer: input.payer ?? client.payer,
|
|
1434
1470
|
}),
|
|
@@ -1436,7 +1472,7 @@ export function bubblegumProgram() {
|
|
|
1436
1472
|
verifyCollection: (input) =>
|
|
1437
1473
|
addSelfPlanAndSendFunctions(
|
|
1438
1474
|
client,
|
|
1439
|
-
|
|
1475
|
+
getVerifyCollectionInstructionAsync({
|
|
1440
1476
|
...input,
|
|
1441
1477
|
payer: input.payer ?? client.payer,
|
|
1442
1478
|
}),
|
|
@@ -1444,7 +1480,7 @@ export function bubblegumProgram() {
|
|
|
1444
1480
|
verifyCreator: (input) =>
|
|
1445
1481
|
addSelfPlanAndSendFunctions(
|
|
1446
1482
|
client,
|
|
1447
|
-
|
|
1483
|
+
getVerifyCreatorInstructionAsync({
|
|
1448
1484
|
...input,
|
|
1449
1485
|
payer: input.payer ?? client.payer,
|
|
1450
1486
|
}),
|
|
@@ -1452,12 +1488,19 @@ export function bubblegumProgram() {
|
|
|
1452
1488
|
verifyCreatorV2: (input) =>
|
|
1453
1489
|
addSelfPlanAndSendFunctions(
|
|
1454
1490
|
client,
|
|
1455
|
-
|
|
1491
|
+
getVerifyCreatorV2InstructionAsync({
|
|
1456
1492
|
...input,
|
|
1457
1493
|
payer: input.payer ?? client.payer,
|
|
1458
1494
|
}),
|
|
1459
1495
|
),
|
|
1460
1496
|
},
|
|
1497
|
+
pdas: {
|
|
1498
|
+
treeConfig: findTreeConfigPda,
|
|
1499
|
+
voucher: findVoucherPda,
|
|
1500
|
+
assetId: findAssetIdPda,
|
|
1501
|
+
bubblegumSigner: findBubblegumSignerPda,
|
|
1502
|
+
mintAuthority: findMintAuthorityPda,
|
|
1503
|
+
},
|
|
1461
1504
|
},
|
|
1462
1505
|
});
|
|
1463
1506
|
};
|