@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freezeV2.js","sourceRoot":"","sources":["../../../src/generated/instructions/freezeV2.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsBH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,CAAC,MAAM,uBAAuB,GAAuB,IAAI,UAAU,CAAC;IACxE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B;IAC3C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAC9E,CAAC;AA8ED,MAAM,UAAU,iCAAiC;IAC/C,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,MAAM,EAAE,eAAe,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACvD,CAAC,UAAU,EAA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AAC;QACrC,MAAM,IAAI,WAAW,CACnB,yDAAyD,EACzD;YACE,kBAAkB,EAAE,WAAW,CAAC,QAAQ,CAAC,MAAM;YAC/C,oBAAoB,EAAE,EAAE;SACzB,CACF,CAAC;IACJ,CAAC;IACD,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,WAAW,GAAI,WAAW,CAAC,QAA0B,CAAC,YAAY,CAAE,CAAC;QAC3E,YAAY,IAAI,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;QACrC,OAAO,WAAW,CAAC,OAAO,KAAK,yBAAyB;YACtD,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,WAAW,CAAC;IAClB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,aAAa,EAAE,cAAc,EAAE;YAC/B,KAAK,EAAE,cAAc,EAAE;YACvB,SAAS,EAAE,sBAAsB,EAAE;YACnC,SAAS,EAAE,cAAc,EAAE;YAC3B,YAAY,EAAE,cAAc,EAAE;YAC9B,UAAU,EAAE,cAAc,EAAE;YAC5B,cAAc,EAAE,sBAAsB,EAAE;YACxC,UAAU,EAAE,cAAc,EAAE;YAC5B,kBAAkB,EAAE,cAAc,EAAE;YACpC,aAAa,EAAE,cAAc,EAAE;SAChC;QACD,IAAI,EAAE,iCAAiC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACnE,CAAC;AACJ,CAAC","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 AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n Option,\n OptionOrNullable,\n ReadonlyAccount,\n ReadonlySignerAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableAccount,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport {\n combineCodec,\n fixDecoderSize,\n fixEncoderSize,\n getArrayDecoder,\n getArrayEncoder,\n getBytesDecoder,\n getBytesEncoder,\n getOptionDecoder,\n getOptionEncoder,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n getU32Decoder,\n getU32Encoder,\n getU64Decoder,\n getU64Encoder,\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n SolanaError,\n transformEncoder,\n} from \"@solana/kit\";\nimport { getAccountMetaFactory } from \"@solana/program-client-core\";\nimport { BUBBLEGUM_PROGRAM_ADDRESS } from \"../programs/index.js\";\n\nexport const FREEZE_V2_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([\n 200, 151, 244, 102, 16, 195, 255, 3,\n]);\n\nexport function getFreezeV2DiscriminatorBytes(): ReadonlyUint8Array {\n return fixEncoderSize(getBytesEncoder(), 8).encode(FREEZE_V2_DISCRIMINATOR);\n}\n\nexport type FreezeV2Instruction<\n TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,\n TAccountTreeAuthority extends string | AccountMeta = string,\n TAccountPayer extends string | AccountMeta = string,\n TAccountAuthority extends string | AccountMeta = string,\n TAccountLeafOwner extends string | AccountMeta = string,\n TAccountLeafDelegate extends string | AccountMeta = string,\n TAccountMerkleTree extends string | AccountMeta = string,\n TAccountCoreCollection extends string | AccountMeta = string,\n TAccountLogWrapper extends string | AccountMeta = string,\n TAccountCompressionProgram extends string | AccountMeta = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta = \"11111111111111111111111111111111\",\n TRemainingAccounts extends readonly AccountMeta[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountTreeAuthority extends string\n ? WritableAccount<TAccountTreeAuthority>\n : TAccountTreeAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountLeafOwner extends string\n ? ReadonlyAccount<TAccountLeafOwner>\n : TAccountLeafOwner,\n TAccountLeafDelegate extends string\n ? ReadonlyAccount<TAccountLeafDelegate>\n : TAccountLeafDelegate,\n TAccountMerkleTree extends string\n ? WritableAccount<TAccountMerkleTree>\n : TAccountMerkleTree,\n TAccountCoreCollection extends string\n ? ReadonlyAccount<TAccountCoreCollection>\n : TAccountCoreCollection,\n TAccountLogWrapper extends string\n ? ReadonlyAccount<TAccountLogWrapper>\n : TAccountLogWrapper,\n TAccountCompressionProgram extends string\n ? ReadonlyAccount<TAccountCompressionProgram>\n : TAccountCompressionProgram,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface FreezeV2InstructionData {\n discriminator: ReadonlyUint8Array;\n root: number[];\n dataHash: number[];\n creatorHash: number[];\n assetDataHash: Option<number[]>;\n flags: Option<number>;\n nonce: bigint;\n index: number;\n}\n\nexport interface FreezeV2InstructionDataArgs {\n root: number[];\n dataHash: number[];\n creatorHash: number[];\n assetDataHash: OptionOrNullable<number[]>;\n flags: OptionOrNullable<number>;\n nonce: number | bigint;\n index: number;\n}\n\nexport function getFreezeV2InstructionDataEncoder(): Encoder<FreezeV2InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", fixEncoderSize(getBytesEncoder(), 8)],\n [\"root\", getArrayEncoder(getU8Encoder(), { size: 32 })],\n [\"dataHash\", getArrayEncoder(getU8Encoder(), { size: 32 })],\n [\"creatorHash\", getArrayEncoder(getU8Encoder(), { size: 32 })],\n [\n \"assetDataHash\",\n getOptionEncoder(getArrayEncoder(getU8Encoder(), { size: 32 })),\n ],\n [\"flags\", getOptionEncoder(getU8Encoder())],\n [\"nonce\", getU64Encoder()],\n [\"index\", getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: FREEZE_V2_DISCRIMINATOR }),\n );\n}\n\nexport function getFreezeV2InstructionDataDecoder(): Decoder<FreezeV2InstructionData> {\n return getStructDecoder([\n [\"discriminator\", fixDecoderSize(getBytesDecoder(), 8)],\n [\"root\", getArrayDecoder(getU8Decoder(), { size: 32 })],\n [\"dataHash\", getArrayDecoder(getU8Decoder(), { size: 32 })],\n [\"creatorHash\", getArrayDecoder(getU8Decoder(), { size: 32 })],\n [\n \"assetDataHash\",\n getOptionDecoder(getArrayDecoder(getU8Decoder(), { size: 32 })),\n ],\n [\"flags\", getOptionDecoder(getU8Decoder())],\n [\"nonce\", getU64Decoder()],\n [\"index\", getU32Decoder()],\n ]);\n}\n\nexport function getFreezeV2InstructionDataCodec(): Codec<\n FreezeV2InstructionDataArgs,\n FreezeV2InstructionData\n> {\n return combineCodec(\n getFreezeV2InstructionDataEncoder(),\n getFreezeV2InstructionDataDecoder(),\n );\n}\n\nexport interface FreezeV2Input<\n TAccountTreeAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountLeafOwner extends string = string,\n TAccountLeafDelegate extends string = string,\n TAccountMerkleTree extends string = string,\n TAccountCoreCollection extends string = string,\n TAccountLogWrapper extends string = string,\n TAccountCompressionProgram extends string = string,\n TAccountSystemProgram extends string = string,\n> {\n treeAuthority: Address<TAccountTreeAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n /**\n * Optional authority, defaults to `payer`. Must be either\n * the leaf delegate or collection permanent freeze delegate.\n */\n authority?: TransactionSigner<TAccountAuthority>;\n leafOwner: Address<TAccountLeafOwner>;\n leafDelegate: Address<TAccountLeafDelegate>;\n merkleTree: Address<TAccountMerkleTree>;\n coreCollection?: Address<TAccountCoreCollection>;\n logWrapper: Address<TAccountLogWrapper>;\n compressionProgram: Address<TAccountCompressionProgram>;\n systemProgram?: Address<TAccountSystemProgram>;\n root: FreezeV2InstructionDataArgs[\"root\"];\n dataHash: FreezeV2InstructionDataArgs[\"dataHash\"];\n creatorHash: FreezeV2InstructionDataArgs[\"creatorHash\"];\n assetDataHash: FreezeV2InstructionDataArgs[\"assetDataHash\"];\n flags: FreezeV2InstructionDataArgs[\"flags\"];\n nonce: FreezeV2InstructionDataArgs[\"nonce\"];\n index: FreezeV2InstructionDataArgs[\"index\"];\n}\n\nexport function getFreezeV2Instruction<\n TAccountTreeAuthority extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountLeafOwner extends string,\n TAccountLeafDelegate extends string,\n TAccountMerkleTree extends string,\n TAccountCoreCollection extends string,\n TAccountLogWrapper extends string,\n TAccountCompressionProgram extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends Address = typeof BUBBLEGUM_PROGRAM_ADDRESS,\n>(\n input: FreezeV2Input<\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress },\n): FreezeV2Instruction<\n TProgramAddress,\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n> {\n // Program address.\n const programAddress = config?.programAddress ?? BUBBLEGUM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n treeAuthority: { value: input.treeAuthority ?? null, isWritable: true },\n payer: { value: input.payer ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\n leafOwner: { value: input.leafOwner ?? null, isWritable: false },\n leafDelegate: { value: input.leafDelegate ?? null, isWritable: false },\n merkleTree: { value: input.merkleTree ?? null, isWritable: true },\n coreCollection: { value: input.coreCollection ?? null, isWritable: false },\n logWrapper: { value: input.logWrapper ?? null, isWritable: false },\n compressionProgram: {\n value: input.compressionProgram ?? null,\n isWritable: false,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedInstructionAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(\"treeAuthority\", accounts.treeAuthority),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"leafOwner\", accounts.leafOwner),\n getAccountMeta(\"leafDelegate\", accounts.leafDelegate),\n getAccountMeta(\"merkleTree\", accounts.merkleTree),\n getAccountMeta(\"coreCollection\", accounts.coreCollection),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n getAccountMeta(\"compressionProgram\", accounts.compressionProgram),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n ],\n data: getFreezeV2InstructionDataEncoder().encode(\n args as FreezeV2InstructionDataArgs,\n ),\n programAddress,\n } as FreezeV2Instruction<\n TProgramAddress,\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n >);\n}\n\nexport interface ParsedFreezeV2Instruction<\n TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> {\n programAddress: Address<TProgram>;\n accounts: {\n treeAuthority: TAccountMetas[0];\n payer: TAccountMetas[1];\n /**\n * Optional authority, defaults to `payer`. Must be either\n * the leaf delegate or collection permanent freeze delegate.\n */\n authority?: TAccountMetas[2] | undefined;\n leafOwner: TAccountMetas[3];\n leafDelegate: TAccountMetas[4];\n merkleTree: TAccountMetas[5];\n coreCollection?: TAccountMetas[6] | undefined;\n logWrapper: TAccountMetas[7];\n compressionProgram: TAccountMetas[8];\n systemProgram: TAccountMetas[9];\n };\n data: FreezeV2InstructionData;\n}\n\nexport function parseFreezeV2Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedFreezeV2Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 10) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 10,\n },\n );\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n const getNextOptionalAccount = () => {\n const accountMeta = getNextAccount();\n return accountMeta.address === BUBBLEGUM_PROGRAM_ADDRESS\n ? undefined\n : accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n treeAuthority: getNextAccount(),\n payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n leafOwner: getNextAccount(),\n leafDelegate: getNextAccount(),\n merkleTree: getNextAccount(),\n coreCollection: getNextOptionalAccount(),\n logWrapper: getNextAccount(),\n compressionProgram: getNextAccount(),\n systemProgram: getNextAccount(),\n },\n data: getFreezeV2InstructionDataDecoder().decode(instruction.data),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"freezeV2.js","names":[],"sources":["../../../src/generated/instructions/freezeV2.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 AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n Option,\n OptionOrNullable,\n ReadonlyAccount,\n ReadonlySignerAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableAccount,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport {\n combineCodec,\n fixDecoderSize,\n fixEncoderSize,\n getArrayDecoder,\n getArrayEncoder,\n getBytesDecoder,\n getBytesEncoder,\n getOptionDecoder,\n getOptionEncoder,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n getU32Decoder,\n getU32Encoder,\n getU64Decoder,\n getU64Encoder,\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n SolanaError,\n transformEncoder,\n} from \"@solana/kit\";\nimport {\n getAccountMetaFactory,\n getAddressFromResolvedInstructionAccount,\n} from \"@solana/program-client-core\";\nimport { findTreeConfigPda } from \"../pdas/index.js\";\nimport { BUBBLEGUM_PROGRAM_ADDRESS } from \"../programs/index.js\";\n\nexport const FREEZE_V2_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([\n 200, 151, 244, 102, 16, 195, 255, 3,\n]);\n\nexport function getFreezeV2DiscriminatorBytes(): ReadonlyUint8Array {\n return fixEncoderSize(getBytesEncoder(), 8).encode(FREEZE_V2_DISCRIMINATOR);\n}\n\nexport type FreezeV2Instruction<\n TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,\n TAccountTreeAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountLeafOwner extends string | AccountMeta<string> = string,\n TAccountLeafDelegate extends string | AccountMeta<string> = string,\n TAccountMerkleTree extends string | AccountMeta<string> = string,\n TAccountCoreCollection extends string | AccountMeta<string> = string,\n TAccountLogWrapper extends\n | string\n | AccountMeta<string> = \"mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3\",\n TAccountCompressionProgram extends\n | string\n | AccountMeta<string> = \"mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW\",\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = \"11111111111111111111111111111111\",\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountTreeAuthority extends string\n ? WritableAccount<TAccountTreeAuthority>\n : TAccountTreeAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountLeafOwner extends string\n ? ReadonlyAccount<TAccountLeafOwner>\n : TAccountLeafOwner,\n TAccountLeafDelegate extends string\n ? ReadonlyAccount<TAccountLeafDelegate>\n : TAccountLeafDelegate,\n TAccountMerkleTree extends string\n ? WritableAccount<TAccountMerkleTree>\n : TAccountMerkleTree,\n TAccountCoreCollection extends string\n ? ReadonlyAccount<TAccountCoreCollection>\n : TAccountCoreCollection,\n TAccountLogWrapper extends string\n ? ReadonlyAccount<TAccountLogWrapper>\n : TAccountLogWrapper,\n TAccountCompressionProgram extends string\n ? ReadonlyAccount<TAccountCompressionProgram>\n : TAccountCompressionProgram,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface FreezeV2InstructionData {\n discriminator: ReadonlyUint8Array;\n root: number[];\n dataHash: number[];\n creatorHash: number[];\n assetDataHash: Option<number[]>;\n flags: Option<number>;\n nonce: bigint;\n index: number;\n}\n\nexport interface FreezeV2InstructionDataArgs {\n root: number[];\n dataHash: number[];\n creatorHash: number[];\n assetDataHash: OptionOrNullable<number[]>;\n flags: OptionOrNullable<number>;\n nonce: number | bigint;\n index: number;\n}\n\nexport function getFreezeV2InstructionDataEncoder(): Encoder<FreezeV2InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", fixEncoderSize(getBytesEncoder(), 8)],\n [\"root\", getArrayEncoder(getU8Encoder(), { size: 32 })],\n [\"dataHash\", getArrayEncoder(getU8Encoder(), { size: 32 })],\n [\"creatorHash\", getArrayEncoder(getU8Encoder(), { size: 32 })],\n [\n \"assetDataHash\",\n getOptionEncoder(getArrayEncoder(getU8Encoder(), { size: 32 })),\n ],\n [\"flags\", getOptionEncoder(getU8Encoder())],\n [\"nonce\", getU64Encoder()],\n [\"index\", getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: FREEZE_V2_DISCRIMINATOR }),\n );\n}\n\nexport function getFreezeV2InstructionDataDecoder(): Decoder<FreezeV2InstructionData> {\n return getStructDecoder([\n [\"discriminator\", fixDecoderSize(getBytesDecoder(), 8)],\n [\"root\", getArrayDecoder(getU8Decoder(), { size: 32 })],\n [\"dataHash\", getArrayDecoder(getU8Decoder(), { size: 32 })],\n [\"creatorHash\", getArrayDecoder(getU8Decoder(), { size: 32 })],\n [\n \"assetDataHash\",\n getOptionDecoder(getArrayDecoder(getU8Decoder(), { size: 32 })),\n ],\n [\"flags\", getOptionDecoder(getU8Decoder())],\n [\"nonce\", getU64Decoder()],\n [\"index\", getU32Decoder()],\n ]);\n}\n\nexport function getFreezeV2InstructionDataCodec(): Codec<\n FreezeV2InstructionDataArgs,\n FreezeV2InstructionData\n> {\n return combineCodec(\n getFreezeV2InstructionDataEncoder(),\n getFreezeV2InstructionDataDecoder(),\n );\n}\n\nexport interface FreezeV2AsyncInput<\n TAccountTreeAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountLeafOwner extends string = string,\n TAccountLeafDelegate extends string = string,\n TAccountMerkleTree extends string = string,\n TAccountCoreCollection extends string = string,\n TAccountLogWrapper extends string = string,\n TAccountCompressionProgram extends string = string,\n TAccountSystemProgram extends string = string,\n> {\n treeAuthority?: Address<TAccountTreeAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n /**\n * Optional authority, defaults to `payer`. Must be either\n * the leaf delegate or collection permanent freeze delegate.\n */\n authority?: TransactionSigner<TAccountAuthority>;\n leafOwner: Address<TAccountLeafOwner>;\n leafDelegate: Address<TAccountLeafDelegate>;\n merkleTree: Address<TAccountMerkleTree>;\n coreCollection?: Address<TAccountCoreCollection>;\n logWrapper?: Address<TAccountLogWrapper>;\n compressionProgram?: Address<TAccountCompressionProgram>;\n systemProgram?: Address<TAccountSystemProgram>;\n root: FreezeV2InstructionDataArgs[\"root\"];\n dataHash: FreezeV2InstructionDataArgs[\"dataHash\"];\n creatorHash: FreezeV2InstructionDataArgs[\"creatorHash\"];\n assetDataHash: FreezeV2InstructionDataArgs[\"assetDataHash\"];\n flags: FreezeV2InstructionDataArgs[\"flags\"];\n nonce: FreezeV2InstructionDataArgs[\"nonce\"];\n index: FreezeV2InstructionDataArgs[\"index\"];\n}\n\nexport async function getFreezeV2InstructionAsync<\n TAccountTreeAuthority extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountLeafOwner extends string,\n TAccountLeafDelegate extends string,\n TAccountMerkleTree extends string,\n TAccountCoreCollection extends string,\n TAccountLogWrapper extends string,\n TAccountCompressionProgram extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends Address = typeof BUBBLEGUM_PROGRAM_ADDRESS,\n>(\n input: FreezeV2AsyncInput<\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress },\n): Promise<\n FreezeV2Instruction<\n TProgramAddress,\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n >\n> {\n // Program address.\n const programAddress = config?.programAddress ?? BUBBLEGUM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n treeAuthority: { value: input.treeAuthority ?? null, isWritable: true },\n payer: { value: input.payer ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\n leafOwner: { value: input.leafOwner ?? null, isWritable: false },\n leafDelegate: { value: input.leafDelegate ?? null, isWritable: false },\n merkleTree: { value: input.merkleTree ?? null, isWritable: true },\n coreCollection: { value: input.coreCollection ?? null, isWritable: false },\n logWrapper: { value: input.logWrapper ?? null, isWritable: false },\n compressionProgram: {\n value: input.compressionProgram ?? null,\n isWritable: false,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedInstructionAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.treeAuthority.value) {\n accounts.treeAuthority.value = await findTreeConfigPda({\n merkleTree: getAddressFromResolvedInstructionAccount(\n \"merkleTree\",\n accounts.merkleTree.value,\n ),\n });\n }\n if (!accounts.logWrapper.value) {\n accounts.logWrapper.value =\n \"mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3\" as Address<\"mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3\">;\n }\n if (!accounts.compressionProgram.value) {\n accounts.compressionProgram.value =\n \"mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW\" as Address<\"mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW\">;\n }\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(\"treeAuthority\", accounts.treeAuthority),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"leafOwner\", accounts.leafOwner),\n getAccountMeta(\"leafDelegate\", accounts.leafDelegate),\n getAccountMeta(\"merkleTree\", accounts.merkleTree),\n getAccountMeta(\"coreCollection\", accounts.coreCollection),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n getAccountMeta(\"compressionProgram\", accounts.compressionProgram),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n ],\n data: getFreezeV2InstructionDataEncoder().encode(\n args as FreezeV2InstructionDataArgs,\n ),\n programAddress,\n } as FreezeV2Instruction<\n TProgramAddress,\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n >);\n}\n\nexport interface FreezeV2Input<\n TAccountTreeAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountLeafOwner extends string = string,\n TAccountLeafDelegate extends string = string,\n TAccountMerkleTree extends string = string,\n TAccountCoreCollection extends string = string,\n TAccountLogWrapper extends string = string,\n TAccountCompressionProgram extends string = string,\n TAccountSystemProgram extends string = string,\n> {\n treeAuthority: Address<TAccountTreeAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n /**\n * Optional authority, defaults to `payer`. Must be either\n * the leaf delegate or collection permanent freeze delegate.\n */\n authority?: TransactionSigner<TAccountAuthority>;\n leafOwner: Address<TAccountLeafOwner>;\n leafDelegate: Address<TAccountLeafDelegate>;\n merkleTree: Address<TAccountMerkleTree>;\n coreCollection?: Address<TAccountCoreCollection>;\n logWrapper?: Address<TAccountLogWrapper>;\n compressionProgram?: Address<TAccountCompressionProgram>;\n systemProgram?: Address<TAccountSystemProgram>;\n root: FreezeV2InstructionDataArgs[\"root\"];\n dataHash: FreezeV2InstructionDataArgs[\"dataHash\"];\n creatorHash: FreezeV2InstructionDataArgs[\"creatorHash\"];\n assetDataHash: FreezeV2InstructionDataArgs[\"assetDataHash\"];\n flags: FreezeV2InstructionDataArgs[\"flags\"];\n nonce: FreezeV2InstructionDataArgs[\"nonce\"];\n index: FreezeV2InstructionDataArgs[\"index\"];\n}\n\nexport function getFreezeV2Instruction<\n TAccountTreeAuthority extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountLeafOwner extends string,\n TAccountLeafDelegate extends string,\n TAccountMerkleTree extends string,\n TAccountCoreCollection extends string,\n TAccountLogWrapper extends string,\n TAccountCompressionProgram extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends Address = typeof BUBBLEGUM_PROGRAM_ADDRESS,\n>(\n input: FreezeV2Input<\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress },\n): FreezeV2Instruction<\n TProgramAddress,\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n> {\n // Program address.\n const programAddress = config?.programAddress ?? BUBBLEGUM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n treeAuthority: { value: input.treeAuthority ?? null, isWritable: true },\n payer: { value: input.payer ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\n leafOwner: { value: input.leafOwner ?? null, isWritable: false },\n leafDelegate: { value: input.leafDelegate ?? null, isWritable: false },\n merkleTree: { value: input.merkleTree ?? null, isWritable: true },\n coreCollection: { value: input.coreCollection ?? null, isWritable: false },\n logWrapper: { value: input.logWrapper ?? null, isWritable: false },\n compressionProgram: {\n value: input.compressionProgram ?? null,\n isWritable: false,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedInstructionAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.logWrapper.value) {\n accounts.logWrapper.value =\n \"mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3\" as Address<\"mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3\">;\n }\n if (!accounts.compressionProgram.value) {\n accounts.compressionProgram.value =\n \"mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW\" as Address<\"mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW\">;\n }\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(\"treeAuthority\", accounts.treeAuthority),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"leafOwner\", accounts.leafOwner),\n getAccountMeta(\"leafDelegate\", accounts.leafDelegate),\n getAccountMeta(\"merkleTree\", accounts.merkleTree),\n getAccountMeta(\"coreCollection\", accounts.coreCollection),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n getAccountMeta(\"compressionProgram\", accounts.compressionProgram),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n ],\n data: getFreezeV2InstructionDataEncoder().encode(\n args as FreezeV2InstructionDataArgs,\n ),\n programAddress,\n } as FreezeV2Instruction<\n TProgramAddress,\n TAccountTreeAuthority,\n TAccountPayer,\n TAccountAuthority,\n TAccountLeafOwner,\n TAccountLeafDelegate,\n TAccountMerkleTree,\n TAccountCoreCollection,\n TAccountLogWrapper,\n TAccountCompressionProgram,\n TAccountSystemProgram\n >);\n}\n\nexport interface ParsedFreezeV2Instruction<\n TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> {\n programAddress: Address<TProgram>;\n accounts: {\n treeAuthority: TAccountMetas[0];\n payer: TAccountMetas[1];\n /**\n * Optional authority, defaults to `payer`. Must be either\n * the leaf delegate or collection permanent freeze delegate.\n */\n authority?: TAccountMetas[2] | undefined;\n leafOwner: TAccountMetas[3];\n leafDelegate: TAccountMetas[4];\n merkleTree: TAccountMetas[5];\n coreCollection?: TAccountMetas[6] | undefined;\n logWrapper: TAccountMetas[7];\n compressionProgram: TAccountMetas[8];\n systemProgram: TAccountMetas[9];\n };\n data: FreezeV2InstructionData;\n}\n\nexport function parseFreezeV2Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedFreezeV2Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 10) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 10,\n },\n );\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n const getNextOptionalAccount = () => {\n const accountMeta = getNextAccount();\n return accountMeta.address === BUBBLEGUM_PROGRAM_ADDRESS\n ? undefined\n : accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n treeAuthority: getNextAccount(),\n payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n leafOwner: getNextAccount(),\n leafDelegate: getNextAccount(),\n merkleTree: getNextAccount(),\n coreCollection: getNextOptionalAccount(),\n logWrapper: getNextAccount(),\n compressionProgram: getNextAccount(),\n systemProgram: getNextAccount(),\n },\n data: getFreezeV2InstructionDataDecoder().decode(instruction.data),\n };\n}\n"],"mappings":";;;;;AAyDA,MAAa,0BAA8C,IAAI,WAAW;CACxE;CAAK;CAAK;CAAK;CAAK;CAAI;CAAK;CAAK;AACpC,CAAC;AAED,SAAgB,gCAAoD;CAClE,OAAO,eAAe,gBAAgB,GAAG,CAAC,CAAC,CAAC,OAAO,uBAAuB;AAC5E;AAkFA,SAAgB,oCAA0E;CACxF,OAAO,iBACL,iBAAiB;EACf,CAAC,iBAAiB,eAAe,gBAAgB,GAAG,CAAC,CAAC;EACtD,CAAC,QAAQ,gBAAgB,aAAa,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;EACtD,CAAC,YAAY,gBAAgB,aAAa,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;EAC1D,CAAC,eAAe,gBAAgB,aAAa,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;EAC7D,CACE,iBACA,iBAAiB,gBAAgB,aAAa,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,CAChE;EACA,CAAC,SAAS,iBAAiB,aAAa,CAAC,CAAC;EAC1C,CAAC,SAAS,cAAc,CAAC;EACzB,CAAC,SAAS,cAAc,CAAC;CAC3B,CAAC,IACA,WAAW;EAAE,GAAG;EAAO,eAAe;CAAwB,EACjE;AACF;AAEA,SAAgB,oCAAsE;CACpF,OAAO,iBAAiB;EACtB,CAAC,iBAAiB,eAAe,gBAAgB,GAAG,CAAC,CAAC;EACtD,CAAC,QAAQ,gBAAgB,aAAa,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;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AgB,uBAAuB;GACvC,YAAY,eAAe;GAC3B,oBAAoB,eAAe;GACnC,eAAe,eAAe;EAChC;EACA,MAAM,kCAAkC,CAAC,CAAC,OAAO,YAAY,IAAI;CACnE;AACF"}
|
|
@@ -1,44 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export * from "./unverifyCreatorV2.js";
|
|
38
|
-
export * from "./updateAssetDataV2.js";
|
|
39
|
-
export * from "./updateMetadata.js";
|
|
40
|
-
export * from "./updateMetadataV2.js";
|
|
41
|
-
export * from "./verifyCollection.js";
|
|
42
|
-
export * from "./verifyCreator.js";
|
|
43
|
-
export * from "./verifyCreatorV2.js";
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { BURN_DISCRIMINATOR, BurnAsyncInput, BurnInput, BurnInstruction, BurnInstructionData, BurnInstructionDataArgs, ParsedBurnInstruction, getBurnDiscriminatorBytes, getBurnInstruction, getBurnInstructionAsync, getBurnInstructionDataCodec, getBurnInstructionDataDecoder, getBurnInstructionDataEncoder, parseBurnInstruction } from "./burn.js";
|
|
2
|
+
import { BURN_V2_DISCRIMINATOR, BurnV2AsyncInput, BurnV2Input, BurnV2Instruction, BurnV2InstructionData, BurnV2InstructionDataArgs, ParsedBurnV2Instruction, getBurnV2DiscriminatorBytes, getBurnV2Instruction, getBurnV2InstructionAsync, getBurnV2InstructionDataCodec, getBurnV2InstructionDataDecoder, getBurnV2InstructionDataEncoder, parseBurnV2Instruction } from "./burnV2.js";
|
|
3
|
+
import { CANCEL_REDEEM_DISCRIMINATOR, CancelRedeemAsyncInput, CancelRedeemInput, CancelRedeemInstruction, CancelRedeemInstructionData, CancelRedeemInstructionDataArgs, ParsedCancelRedeemInstruction, getCancelRedeemDiscriminatorBytes, getCancelRedeemInstruction, getCancelRedeemInstructionAsync, getCancelRedeemInstructionDataCodec, getCancelRedeemInstructionDataDecoder, getCancelRedeemInstructionDataEncoder, parseCancelRedeemInstruction } from "./cancelRedeem.js";
|
|
4
|
+
import { CLOSE_TREE_V2_DISCRIMINATOR, CloseTreeV2AsyncInput, CloseTreeV2Input, CloseTreeV2Instruction, CloseTreeV2InstructionData, CloseTreeV2InstructionDataArgs, ParsedCloseTreeV2Instruction, getCloseTreeV2DiscriminatorBytes, getCloseTreeV2Instruction, getCloseTreeV2InstructionAsync, getCloseTreeV2InstructionDataCodec, getCloseTreeV2InstructionDataDecoder, getCloseTreeV2InstructionDataEncoder, parseCloseTreeV2Instruction } from "./closeTreeV2.js";
|
|
5
|
+
import { COLLECT_V2_DISCRIMINATOR, CollectV2Input, CollectV2Instruction, CollectV2InstructionData, CollectV2InstructionDataArgs, ParsedCollectV2Instruction, getCollectV2DiscriminatorBytes, getCollectV2Instruction, getCollectV2InstructionDataCodec, getCollectV2InstructionDataDecoder, getCollectV2InstructionDataEncoder, parseCollectV2Instruction } from "./collectV2.js";
|
|
6
|
+
import { COMPRESS_DISCRIMINATOR, CompressAsyncInput, CompressInput, CompressInstruction, CompressInstructionData, CompressInstructionDataArgs, ParsedCompressInstruction, getCompressDiscriminatorBytes, getCompressInstruction, getCompressInstructionAsync, getCompressInstructionDataCodec, getCompressInstructionDataDecoder, getCompressInstructionDataEncoder, parseCompressInstruction } from "./compress.js";
|
|
7
|
+
import { CREATE_TREE_DISCRIMINATOR, CreateTreeAsyncInput, CreateTreeInput, CreateTreeInstruction, CreateTreeInstructionData, CreateTreeInstructionDataArgs, ParsedCreateTreeInstruction, getCreateTreeDiscriminatorBytes, getCreateTreeInstruction, getCreateTreeInstructionAsync, getCreateTreeInstructionDataCodec, getCreateTreeInstructionDataDecoder, getCreateTreeInstructionDataEncoder, parseCreateTreeInstruction } from "./createTree.js";
|
|
8
|
+
import { CREATE_TREE_V2_DISCRIMINATOR, CreateTreeV2AsyncInput, CreateTreeV2Input, CreateTreeV2Instruction, CreateTreeV2InstructionData, CreateTreeV2InstructionDataArgs, ParsedCreateTreeV2Instruction, getCreateTreeV2DiscriminatorBytes, getCreateTreeV2Instruction, getCreateTreeV2InstructionAsync, getCreateTreeV2InstructionDataCodec, getCreateTreeV2InstructionDataDecoder, getCreateTreeV2InstructionDataEncoder, parseCreateTreeV2Instruction } from "./createTreeV2.js";
|
|
9
|
+
import { DECOMPRESS_V1_DISCRIMINATOR, DecompressV1AsyncInput, DecompressV1Input, DecompressV1Instruction, DecompressV1InstructionData, DecompressV1InstructionDataArgs, ParsedDecompressV1Instruction, getDecompressV1DiscriminatorBytes, getDecompressV1Instruction, getDecompressV1InstructionAsync, getDecompressV1InstructionDataCodec, getDecompressV1InstructionDataDecoder, getDecompressV1InstructionDataEncoder, parseDecompressV1Instruction } from "./decompressV1.js";
|
|
10
|
+
import { DELEGATE_DISCRIMINATOR, DelegateAsyncInput, DelegateInput, DelegateInstruction, DelegateInstructionData, DelegateInstructionDataArgs, ParsedDelegateInstruction, getDelegateDiscriminatorBytes, getDelegateInstruction, getDelegateInstructionAsync, getDelegateInstructionDataCodec, getDelegateInstructionDataDecoder, getDelegateInstructionDataEncoder, parseDelegateInstruction } from "./delegate.js";
|
|
11
|
+
import { DELEGATE_AND_FREEZE_V2_DISCRIMINATOR, DelegateAndFreezeV2AsyncInput, DelegateAndFreezeV2Input, DelegateAndFreezeV2Instruction, DelegateAndFreezeV2InstructionData, DelegateAndFreezeV2InstructionDataArgs, ParsedDelegateAndFreezeV2Instruction, getDelegateAndFreezeV2DiscriminatorBytes, getDelegateAndFreezeV2Instruction, getDelegateAndFreezeV2InstructionAsync, getDelegateAndFreezeV2InstructionDataCodec, getDelegateAndFreezeV2InstructionDataDecoder, getDelegateAndFreezeV2InstructionDataEncoder, parseDelegateAndFreezeV2Instruction } from "./delegateAndFreezeV2.js";
|
|
12
|
+
import { DELEGATE_V2_DISCRIMINATOR, DelegateV2AsyncInput, DelegateV2Input, DelegateV2Instruction, DelegateV2InstructionData, DelegateV2InstructionDataArgs, ParsedDelegateV2Instruction, getDelegateV2DiscriminatorBytes, getDelegateV2Instruction, getDelegateV2InstructionAsync, getDelegateV2InstructionDataCodec, getDelegateV2InstructionDataDecoder, getDelegateV2InstructionDataEncoder, parseDelegateV2Instruction } from "./delegateV2.js";
|
|
13
|
+
import { FREEZE_V2_DISCRIMINATOR, FreezeV2AsyncInput, FreezeV2Input, FreezeV2Instruction, FreezeV2InstructionData, FreezeV2InstructionDataArgs, ParsedFreezeV2Instruction, getFreezeV2DiscriminatorBytes, getFreezeV2Instruction, getFreezeV2InstructionAsync, getFreezeV2InstructionDataCodec, getFreezeV2InstructionDataDecoder, getFreezeV2InstructionDataEncoder, parseFreezeV2Instruction } from "./freezeV2.js";
|
|
14
|
+
import { MINT_TO_COLLECTION_V1_DISCRIMINATOR, MintToCollectionV1AsyncInput, MintToCollectionV1Input, MintToCollectionV1Instruction, MintToCollectionV1InstructionData, MintToCollectionV1InstructionDataArgs, ParsedMintToCollectionV1Instruction, getMintToCollectionV1DiscriminatorBytes, getMintToCollectionV1Instruction, getMintToCollectionV1InstructionAsync, getMintToCollectionV1InstructionDataCodec, getMintToCollectionV1InstructionDataDecoder, getMintToCollectionV1InstructionDataEncoder, parseMintToCollectionV1Instruction } from "./mintToCollectionV1.js";
|
|
15
|
+
import { MINT_V1_DISCRIMINATOR, MintV1AsyncInput, MintV1Input, MintV1Instruction, MintV1InstructionData, MintV1InstructionDataArgs, ParsedMintV1Instruction, getMintV1DiscriminatorBytes, getMintV1Instruction, getMintV1InstructionAsync, getMintV1InstructionDataCodec, getMintV1InstructionDataDecoder, getMintV1InstructionDataEncoder, parseMintV1Instruction } from "./mintV1.js";
|
|
16
|
+
import { MINT_V2_DISCRIMINATOR, MintV2AsyncInput, MintV2Input, MintV2Instruction, MintV2InstructionData, MintV2InstructionDataArgs, ParsedMintV2Instruction, getMintV2DiscriminatorBytes, getMintV2Instruction, getMintV2InstructionAsync, getMintV2InstructionDataCodec, getMintV2InstructionDataDecoder, getMintV2InstructionDataEncoder, parseMintV2Instruction } from "./mintV2.js";
|
|
17
|
+
import { ParsedRedeemInstruction, REDEEM_DISCRIMINATOR, RedeemAsyncInput, RedeemInput, RedeemInstruction, RedeemInstructionData, RedeemInstructionDataArgs, getRedeemDiscriminatorBytes, getRedeemInstruction, getRedeemInstructionAsync, getRedeemInstructionDataCodec, getRedeemInstructionDataDecoder, getRedeemInstructionDataEncoder, parseRedeemInstruction } from "./redeem.js";
|
|
18
|
+
import { ParsedSetAndVerifyCollectionInstruction, SET_AND_VERIFY_COLLECTION_DISCRIMINATOR, SetAndVerifyCollectionAsyncInput, SetAndVerifyCollectionInput, SetAndVerifyCollectionInstruction, SetAndVerifyCollectionInstructionData, SetAndVerifyCollectionInstructionDataArgs, getSetAndVerifyCollectionDiscriminatorBytes, getSetAndVerifyCollectionInstruction, getSetAndVerifyCollectionInstructionAsync, getSetAndVerifyCollectionInstructionDataCodec, getSetAndVerifyCollectionInstructionDataDecoder, getSetAndVerifyCollectionInstructionDataEncoder, parseSetAndVerifyCollectionInstruction } from "./setAndVerifyCollection.js";
|
|
19
|
+
import { ParsedSetCollectionV2Instruction, SET_COLLECTION_V2_DISCRIMINATOR, SetCollectionV2AsyncInput, SetCollectionV2Input, SetCollectionV2Instruction, SetCollectionV2InstructionData, SetCollectionV2InstructionDataArgs, getSetCollectionV2DiscriminatorBytes, getSetCollectionV2Instruction, getSetCollectionV2InstructionAsync, getSetCollectionV2InstructionDataCodec, getSetCollectionV2InstructionDataDecoder, getSetCollectionV2InstructionDataEncoder, parseSetCollectionV2Instruction } from "./setCollectionV2.js";
|
|
20
|
+
import { ParsedSetDecompressableStateInstruction, SET_DECOMPRESSABLE_STATE_DISCRIMINATOR, SetDecompressableStateInput, SetDecompressableStateInstruction, SetDecompressableStateInstructionData, SetDecompressableStateInstructionDataArgs, getSetDecompressableStateDiscriminatorBytes, getSetDecompressableStateInstruction, getSetDecompressableStateInstructionDataCodec, getSetDecompressableStateInstructionDataDecoder, getSetDecompressableStateInstructionDataEncoder, parseSetDecompressableStateInstruction } from "./setDecompressableState.js";
|
|
21
|
+
import { ParsedSetDecompressibleStateInstruction, SET_DECOMPRESSIBLE_STATE_DISCRIMINATOR, SetDecompressibleStateInput, SetDecompressibleStateInstruction, SetDecompressibleStateInstructionData, SetDecompressibleStateInstructionDataArgs, getSetDecompressibleStateDiscriminatorBytes, getSetDecompressibleStateInstruction, getSetDecompressibleStateInstructionDataCodec, getSetDecompressibleStateInstructionDataDecoder, getSetDecompressibleStateInstructionDataEncoder, parseSetDecompressibleStateInstruction } from "./setDecompressibleState.js";
|
|
22
|
+
import { ParsedSetNonTransferableV2Instruction, SET_NON_TRANSFERABLE_V2_DISCRIMINATOR, SetNonTransferableV2AsyncInput, SetNonTransferableV2Input, SetNonTransferableV2Instruction, SetNonTransferableV2InstructionData, SetNonTransferableV2InstructionDataArgs, getSetNonTransferableV2DiscriminatorBytes, getSetNonTransferableV2Instruction, getSetNonTransferableV2InstructionAsync, getSetNonTransferableV2InstructionDataCodec, getSetNonTransferableV2InstructionDataDecoder, getSetNonTransferableV2InstructionDataEncoder, parseSetNonTransferableV2Instruction } from "./setNonTransferableV2.js";
|
|
23
|
+
import { ParsedSetTreeDelegateInstruction, SET_TREE_DELEGATE_DISCRIMINATOR, SetTreeDelegateAsyncInput, SetTreeDelegateInput, SetTreeDelegateInstruction, SetTreeDelegateInstructionData, SetTreeDelegateInstructionDataArgs, getSetTreeDelegateDiscriminatorBytes, getSetTreeDelegateInstruction, getSetTreeDelegateInstructionAsync, getSetTreeDelegateInstructionDataCodec, getSetTreeDelegateInstructionDataDecoder, getSetTreeDelegateInstructionDataEncoder, parseSetTreeDelegateInstruction } from "./setTreeDelegate.js";
|
|
24
|
+
import { ParsedThawAndRevokeV2Instruction, THAW_AND_REVOKE_V2_DISCRIMINATOR, ThawAndRevokeV2AsyncInput, ThawAndRevokeV2Input, ThawAndRevokeV2Instruction, ThawAndRevokeV2InstructionData, ThawAndRevokeV2InstructionDataArgs, getThawAndRevokeV2DiscriminatorBytes, getThawAndRevokeV2Instruction, getThawAndRevokeV2InstructionAsync, getThawAndRevokeV2InstructionDataCodec, getThawAndRevokeV2InstructionDataDecoder, getThawAndRevokeV2InstructionDataEncoder, parseThawAndRevokeV2Instruction } from "./thawAndRevokeV2.js";
|
|
25
|
+
import { ParsedThawV2Instruction, THAW_V2_DISCRIMINATOR, ThawV2AsyncInput, ThawV2Input, ThawV2Instruction, ThawV2InstructionData, ThawV2InstructionDataArgs, getThawV2DiscriminatorBytes, getThawV2Instruction, getThawV2InstructionAsync, getThawV2InstructionDataCodec, getThawV2InstructionDataDecoder, getThawV2InstructionDataEncoder, parseThawV2Instruction } from "./thawV2.js";
|
|
26
|
+
import { ParsedTransferInstruction, TRANSFER_DISCRIMINATOR, TransferAsyncInput, TransferInput, TransferInstruction, TransferInstructionData, TransferInstructionDataArgs, getTransferDiscriminatorBytes, getTransferInstruction, getTransferInstructionAsync, getTransferInstructionDataCodec, getTransferInstructionDataDecoder, getTransferInstructionDataEncoder, parseTransferInstruction } from "./transfer.js";
|
|
27
|
+
import { ParsedTransferV2Instruction, TRANSFER_V2_DISCRIMINATOR, TransferV2AsyncInput, TransferV2Input, TransferV2Instruction, TransferV2InstructionData, TransferV2InstructionDataArgs, getTransferV2DiscriminatorBytes, getTransferV2Instruction, getTransferV2InstructionAsync, getTransferV2InstructionDataCodec, getTransferV2InstructionDataDecoder, getTransferV2InstructionDataEncoder, parseTransferV2Instruction } from "./transferV2.js";
|
|
28
|
+
import { ParsedUnverifyCollectionInstruction, UNVERIFY_COLLECTION_DISCRIMINATOR, UnverifyCollectionAsyncInput, UnverifyCollectionInput, UnverifyCollectionInstruction, UnverifyCollectionInstructionData, UnverifyCollectionInstructionDataArgs, getUnverifyCollectionDiscriminatorBytes, getUnverifyCollectionInstruction, getUnverifyCollectionInstructionAsync, getUnverifyCollectionInstructionDataCodec, getUnverifyCollectionInstructionDataDecoder, getUnverifyCollectionInstructionDataEncoder, parseUnverifyCollectionInstruction } from "./unverifyCollection.js";
|
|
29
|
+
import { ParsedUnverifyCreatorInstruction, UNVERIFY_CREATOR_DISCRIMINATOR, UnverifyCreatorAsyncInput, UnverifyCreatorInput, UnverifyCreatorInstruction, UnverifyCreatorInstructionData, UnverifyCreatorInstructionDataArgs, getUnverifyCreatorDiscriminatorBytes, getUnverifyCreatorInstruction, getUnverifyCreatorInstructionAsync, getUnverifyCreatorInstructionDataCodec, getUnverifyCreatorInstructionDataDecoder, getUnverifyCreatorInstructionDataEncoder, parseUnverifyCreatorInstruction } from "./unverifyCreator.js";
|
|
30
|
+
import { ParsedUnverifyCreatorV2Instruction, UNVERIFY_CREATOR_V2_DISCRIMINATOR, UnverifyCreatorV2AsyncInput, UnverifyCreatorV2Input, UnverifyCreatorV2Instruction, UnverifyCreatorV2InstructionData, UnverifyCreatorV2InstructionDataArgs, getUnverifyCreatorV2DiscriminatorBytes, getUnverifyCreatorV2Instruction, getUnverifyCreatorV2InstructionAsync, getUnverifyCreatorV2InstructionDataCodec, getUnverifyCreatorV2InstructionDataDecoder, getUnverifyCreatorV2InstructionDataEncoder, parseUnverifyCreatorV2Instruction } from "./unverifyCreatorV2.js";
|
|
31
|
+
import { ParsedUpdateAssetDataV2Instruction, UPDATE_ASSET_DATA_V2_DISCRIMINATOR, UpdateAssetDataV2AsyncInput, UpdateAssetDataV2Input, UpdateAssetDataV2Instruction, UpdateAssetDataV2InstructionData, UpdateAssetDataV2InstructionDataArgs, getUpdateAssetDataV2DiscriminatorBytes, getUpdateAssetDataV2Instruction, getUpdateAssetDataV2InstructionAsync, getUpdateAssetDataV2InstructionDataCodec, getUpdateAssetDataV2InstructionDataDecoder, getUpdateAssetDataV2InstructionDataEncoder, parseUpdateAssetDataV2Instruction } from "./updateAssetDataV2.js";
|
|
32
|
+
import { ParsedUpdateMetadataInstruction, UPDATE_METADATA_DISCRIMINATOR, UpdateMetadataAsyncInput, UpdateMetadataInput, UpdateMetadataInstruction, UpdateMetadataInstructionData, UpdateMetadataInstructionDataArgs, getUpdateMetadataDiscriminatorBytes, getUpdateMetadataInstruction, getUpdateMetadataInstructionAsync, getUpdateMetadataInstructionDataCodec, getUpdateMetadataInstructionDataDecoder, getUpdateMetadataInstructionDataEncoder, parseUpdateMetadataInstruction } from "./updateMetadata.js";
|
|
33
|
+
import { ParsedUpdateMetadataV2Instruction, UPDATE_METADATA_V2_DISCRIMINATOR, UpdateMetadataV2AsyncInput, UpdateMetadataV2Input, UpdateMetadataV2Instruction, UpdateMetadataV2InstructionData, UpdateMetadataV2InstructionDataArgs, getUpdateMetadataV2DiscriminatorBytes, getUpdateMetadataV2Instruction, getUpdateMetadataV2InstructionAsync, getUpdateMetadataV2InstructionDataCodec, getUpdateMetadataV2InstructionDataDecoder, getUpdateMetadataV2InstructionDataEncoder, parseUpdateMetadataV2Instruction } from "./updateMetadataV2.js";
|
|
34
|
+
import { ParsedVerifyCollectionInstruction, VERIFY_COLLECTION_DISCRIMINATOR, VerifyCollectionAsyncInput, VerifyCollectionInput, VerifyCollectionInstruction, VerifyCollectionInstructionData, VerifyCollectionInstructionDataArgs, getVerifyCollectionDiscriminatorBytes, getVerifyCollectionInstruction, getVerifyCollectionInstructionAsync, getVerifyCollectionInstructionDataCodec, getVerifyCollectionInstructionDataDecoder, getVerifyCollectionInstructionDataEncoder, parseVerifyCollectionInstruction } from "./verifyCollection.js";
|
|
35
|
+
import { ParsedVerifyCreatorInstruction, VERIFY_CREATOR_DISCRIMINATOR, VerifyCreatorAsyncInput, VerifyCreatorInput, VerifyCreatorInstruction, VerifyCreatorInstructionData, VerifyCreatorInstructionDataArgs, getVerifyCreatorDiscriminatorBytes, getVerifyCreatorInstruction, getVerifyCreatorInstructionAsync, getVerifyCreatorInstructionDataCodec, getVerifyCreatorInstructionDataDecoder, getVerifyCreatorInstructionDataEncoder, parseVerifyCreatorInstruction } from "./verifyCreator.js";
|
|
36
|
+
import { ParsedVerifyCreatorV2Instruction, VERIFY_CREATOR_V2_DISCRIMINATOR, VerifyCreatorV2AsyncInput, VerifyCreatorV2Input, VerifyCreatorV2Instruction, VerifyCreatorV2InstructionData, VerifyCreatorV2InstructionDataArgs, getVerifyCreatorV2DiscriminatorBytes, getVerifyCreatorV2Instruction, getVerifyCreatorV2InstructionAsync, getVerifyCreatorV2InstructionDataCodec, getVerifyCreatorV2InstructionDataDecoder, getVerifyCreatorV2InstructionDataEncoder, parseVerifyCreatorV2Instruction } from "./verifyCreatorV2.js";
|
|
@@ -1,95 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare function getMintToCollectionV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type MintToCollectionV1Instruction<TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS, TAccountTreeAuthority extends string | AccountMeta = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountTreeDelegate extends string | AccountMeta = string, TAccountCollectionAuthority extends string | AccountMeta = string, TAccountCollectionAuthorityRecordPda extends string | AccountMeta = string, TAccountCollectionMint extends string | AccountMeta = string, TAccountCollectionMetadata extends string | AccountMeta = string, TAccountEditionAccount extends string | AccountMeta = string, TAccountBubblegumSigner extends string | AccountMeta = string, TAccountLogWrapper extends string | AccountMeta = string, TAccountCompressionProgram extends string | AccountMeta = string, TAccountTokenMetadataProgram extends string | AccountMeta = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s", TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
-
TAccountTreeAuthority extends string ? WritableAccount<TAccountTreeAuthority> : TAccountTreeAuthority,
|
|
15
|
-
TAccountLeafOwner extends string ? ReadonlyAccount<TAccountLeafOwner> : TAccountLeafOwner,
|
|
16
|
-
TAccountLeafDelegate extends string ? ReadonlyAccount<TAccountLeafDelegate> : TAccountLeafDelegate,
|
|
17
|
-
TAccountMerkleTree extends string ? WritableAccount<TAccountMerkleTree> : TAccountMerkleTree,
|
|
18
|
-
TAccountPayer extends string ? ReadonlySignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
19
|
-
TAccountTreeDelegate extends string ? ReadonlySignerAccount<TAccountTreeDelegate> & AccountSignerMeta<TAccountTreeDelegate> : TAccountTreeDelegate,
|
|
20
|
-
TAccountCollectionAuthority extends string ? ReadonlySignerAccount<TAccountCollectionAuthority> & AccountSignerMeta<TAccountCollectionAuthority> : TAccountCollectionAuthority,
|
|
21
|
-
TAccountCollectionAuthorityRecordPda extends string ? ReadonlyAccount<TAccountCollectionAuthorityRecordPda> : TAccountCollectionAuthorityRecordPda,
|
|
22
|
-
TAccountCollectionMint extends string ? ReadonlyAccount<TAccountCollectionMint> : TAccountCollectionMint,
|
|
23
|
-
TAccountCollectionMetadata extends string ? WritableAccount<TAccountCollectionMetadata> : TAccountCollectionMetadata,
|
|
24
|
-
TAccountEditionAccount extends string ? ReadonlyAccount<TAccountEditionAccount> : TAccountEditionAccount,
|
|
25
|
-
TAccountBubblegumSigner extends string ? ReadonlyAccount<TAccountBubblegumSigner> : TAccountBubblegumSigner,
|
|
26
|
-
TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper,
|
|
27
|
-
TAccountCompressionProgram extends string ? ReadonlyAccount<TAccountCompressionProgram> : TAccountCompressionProgram,
|
|
28
|
-
TAccountTokenMetadataProgram extends string ? ReadonlyAccount<TAccountTokenMetadataProgram> : TAccountTokenMetadataProgram,
|
|
29
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
30
|
-
...TRemainingAccounts
|
|
31
|
-
]>;
|
|
32
|
-
export interface MintToCollectionV1InstructionData {
|
|
33
|
-
discriminator: ReadonlyUint8Array;
|
|
34
|
-
metadataArgs: MetadataArgs;
|
|
1
|
+
import { MetadataArgs, MetadataArgsArgs } from "../types/metadataArgs.js";
|
|
2
|
+
import { BUBBLEGUM_PROGRAM_ADDRESS } from "../programs/bubblegum.js";
|
|
3
|
+
import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/instructions/mintToCollectionV1.d.ts
|
|
6
|
+
declare const MINT_TO_COLLECTION_V1_DISCRIMINATOR: ReadonlyUint8Array;
|
|
7
|
+
declare function getMintToCollectionV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type MintToCollectionV1Instruction<TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS, TAccountTreeAuthority extends string | AccountMeta<string> = string, TAccountLeafOwner extends string | AccountMeta<string> = string, TAccountLeafDelegate extends string | AccountMeta<string> = string, TAccountMerkleTree extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountTreeDelegate extends string | AccountMeta<string> = string, TAccountCollectionAuthority extends string | AccountMeta<string> = string, TAccountCollectionAuthorityRecordPda extends string | AccountMeta<string> = "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY", TAccountCollectionMint extends string | AccountMeta<string> = string, TAccountCollectionMetadata extends string | AccountMeta<string> = string, TAccountEditionAccount extends string | AccountMeta<string> = string, TAccountBubblegumSigner extends string | AccountMeta<string> = string, TAccountLogWrapper extends string | AccountMeta<string> = "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV", TAccountCompressionProgram extends string | AccountMeta<string> = "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK", TAccountTokenMetadataProgram extends string | AccountMeta<string> = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountTreeAuthority extends string ? WritableAccount<TAccountTreeAuthority> : TAccountTreeAuthority, TAccountLeafOwner extends string ? ReadonlyAccount<TAccountLeafOwner> : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount<TAccountLeafDelegate> : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount<TAccountMerkleTree> : TAccountMerkleTree, TAccountPayer extends string ? ReadonlySignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountTreeDelegate extends string ? ReadonlySignerAccount<TAccountTreeDelegate> & AccountSignerMeta<TAccountTreeDelegate> : TAccountTreeDelegate, TAccountCollectionAuthority extends string ? ReadonlySignerAccount<TAccountCollectionAuthority> & AccountSignerMeta<TAccountCollectionAuthority> : TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda extends string ? ReadonlyAccount<TAccountCollectionAuthorityRecordPda> : TAccountCollectionAuthorityRecordPda, TAccountCollectionMint extends string ? ReadonlyAccount<TAccountCollectionMint> : TAccountCollectionMint, TAccountCollectionMetadata extends string ? WritableAccount<TAccountCollectionMetadata> : TAccountCollectionMetadata, TAccountEditionAccount extends string ? ReadonlyAccount<TAccountEditionAccount> : TAccountEditionAccount, TAccountBubblegumSigner extends string ? ReadonlyAccount<TAccountBubblegumSigner> : TAccountBubblegumSigner, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount<TAccountCompressionProgram> : TAccountCompressionProgram, TAccountTokenMetadataProgram extends string ? ReadonlyAccount<TAccountTokenMetadataProgram> : TAccountTokenMetadataProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
9
|
+
interface MintToCollectionV1InstructionData {
|
|
10
|
+
discriminator: ReadonlyUint8Array;
|
|
11
|
+
metadataArgs: MetadataArgs;
|
|
35
12
|
}
|
|
36
|
-
|
|
37
|
-
|
|
13
|
+
interface MintToCollectionV1InstructionDataArgs {
|
|
14
|
+
metadataArgs: MetadataArgsArgs;
|
|
38
15
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
16
|
+
declare function getMintToCollectionV1InstructionDataEncoder(): Encoder<MintToCollectionV1InstructionDataArgs>;
|
|
17
|
+
declare function getMintToCollectionV1InstructionDataDecoder(): Decoder<MintToCollectionV1InstructionData>;
|
|
18
|
+
declare function getMintToCollectionV1InstructionDataCodec(): Codec<MintToCollectionV1InstructionDataArgs, MintToCollectionV1InstructionData>;
|
|
19
|
+
interface MintToCollectionV1AsyncInput<TAccountTreeAuthority extends string = string, TAccountLeafOwner extends string = string, TAccountLeafDelegate extends string = string, TAccountMerkleTree extends string = string, TAccountPayer extends string = string, TAccountTreeDelegate extends string = string, TAccountCollectionAuthority extends string = string, TAccountCollectionAuthorityRecordPda extends string = string, TAccountCollectionMint extends string = string, TAccountCollectionMetadata extends string = string, TAccountEditionAccount extends string = string, TAccountBubblegumSigner extends string = string, TAccountLogWrapper extends string = string, TAccountCompressionProgram extends string = string, TAccountTokenMetadataProgram extends string = string, TAccountSystemProgram extends string = string> {
|
|
20
|
+
treeAuthority?: Address<TAccountTreeAuthority>;
|
|
21
|
+
leafOwner: Address<TAccountLeafOwner>;
|
|
22
|
+
leafDelegate: Address<TAccountLeafDelegate>;
|
|
23
|
+
merkleTree: Address<TAccountMerkleTree>;
|
|
24
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
25
|
+
treeDelegate: TransactionSigner<TAccountTreeDelegate>;
|
|
26
|
+
collectionAuthority: TransactionSigner<TAccountCollectionAuthority>;
|
|
27
|
+
/**
|
|
28
|
+
* If there is no collecton authority record PDA then
|
|
29
|
+
* this must be the Bubblegum program address.
|
|
30
|
+
*/
|
|
31
|
+
collectionAuthorityRecordPda?: Address<TAccountCollectionAuthorityRecordPda>;
|
|
32
|
+
collectionMint: Address<TAccountCollectionMint>;
|
|
33
|
+
collectionMetadata?: Address<TAccountCollectionMetadata>;
|
|
34
|
+
editionAccount?: Address<TAccountEditionAccount>;
|
|
35
|
+
bubblegumSigner?: Address<TAccountBubblegumSigner>;
|
|
36
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
37
|
+
compressionProgram?: Address<TAccountCompressionProgram>;
|
|
38
|
+
tokenMetadataProgram?: Address<TAccountTokenMetadataProgram>;
|
|
39
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
40
|
+
metadataArgs: MintToCollectionV1InstructionDataArgs["metadataArgs"];
|
|
41
|
+
}
|
|
42
|
+
declare function getMintToCollectionV1InstructionAsync<TAccountTreeAuthority extends string, TAccountLeafOwner extends string, TAccountLeafDelegate extends string, TAccountMerkleTree extends string, TAccountPayer extends string, TAccountTreeDelegate extends string, TAccountCollectionAuthority extends string, TAccountCollectionAuthorityRecordPda extends string, TAccountCollectionMint extends string, TAccountCollectionMetadata extends string, TAccountEditionAccount extends string, TAccountBubblegumSigner extends string, TAccountLogWrapper extends string, TAccountCompressionProgram extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof BUBBLEGUM_PROGRAM_ADDRESS>(input: MintToCollectionV1AsyncInput<TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>, config?: {
|
|
43
|
+
programAddress?: TProgramAddress;
|
|
44
|
+
}): Promise<MintToCollectionV1Instruction<TProgramAddress, TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>>;
|
|
45
|
+
interface MintToCollectionV1Input<TAccountTreeAuthority extends string = string, TAccountLeafOwner extends string = string, TAccountLeafDelegate extends string = string, TAccountMerkleTree extends string = string, TAccountPayer extends string = string, TAccountTreeDelegate extends string = string, TAccountCollectionAuthority extends string = string, TAccountCollectionAuthorityRecordPda extends string = string, TAccountCollectionMint extends string = string, TAccountCollectionMetadata extends string = string, TAccountEditionAccount extends string = string, TAccountBubblegumSigner extends string = string, TAccountLogWrapper extends string = string, TAccountCompressionProgram extends string = string, TAccountTokenMetadataProgram extends string = string, TAccountSystemProgram extends string = string> {
|
|
46
|
+
treeAuthority: Address<TAccountTreeAuthority>;
|
|
47
|
+
leafOwner: Address<TAccountLeafOwner>;
|
|
48
|
+
leafDelegate: Address<TAccountLeafDelegate>;
|
|
49
|
+
merkleTree: Address<TAccountMerkleTree>;
|
|
50
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
51
|
+
treeDelegate: TransactionSigner<TAccountTreeDelegate>;
|
|
52
|
+
collectionAuthority: TransactionSigner<TAccountCollectionAuthority>;
|
|
53
|
+
/**
|
|
54
|
+
* If there is no collecton authority record PDA then
|
|
55
|
+
* this must be the Bubblegum program address.
|
|
56
|
+
*/
|
|
57
|
+
collectionAuthorityRecordPda?: Address<TAccountCollectionAuthorityRecordPda>;
|
|
58
|
+
collectionMint: Address<TAccountCollectionMint>;
|
|
59
|
+
collectionMetadata: Address<TAccountCollectionMetadata>;
|
|
60
|
+
editionAccount: Address<TAccountEditionAccount>;
|
|
61
|
+
bubblegumSigner: Address<TAccountBubblegumSigner>;
|
|
62
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
63
|
+
compressionProgram?: Address<TAccountCompressionProgram>;
|
|
64
|
+
tokenMetadataProgram?: Address<TAccountTokenMetadataProgram>;
|
|
65
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
66
|
+
metadataArgs: MintToCollectionV1InstructionDataArgs["metadataArgs"];
|
|
64
67
|
}
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
declare function getMintToCollectionV1Instruction<TAccountTreeAuthority extends string, TAccountLeafOwner extends string, TAccountLeafDelegate extends string, TAccountMerkleTree extends string, TAccountPayer extends string, TAccountTreeDelegate extends string, TAccountCollectionAuthority extends string, TAccountCollectionAuthorityRecordPda extends string, TAccountCollectionMint extends string, TAccountCollectionMetadata extends string, TAccountEditionAccount extends string, TAccountBubblegumSigner extends string, TAccountLogWrapper extends string, TAccountCompressionProgram extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof BUBBLEGUM_PROGRAM_ADDRESS>(input: MintToCollectionV1Input<TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>, config?: {
|
|
69
|
+
programAddress?: TProgramAddress;
|
|
67
70
|
}): MintToCollectionV1Instruction<TProgramAddress, TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
71
|
+
interface ParsedMintToCollectionV1Instruction<TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
72
|
+
programAddress: Address<TProgram>;
|
|
73
|
+
accounts: {
|
|
74
|
+
treeAuthority: TAccountMetas[0];
|
|
75
|
+
leafOwner: TAccountMetas[1];
|
|
76
|
+
leafDelegate: TAccountMetas[2];
|
|
77
|
+
merkleTree: TAccountMetas[3];
|
|
78
|
+
payer: TAccountMetas[4];
|
|
79
|
+
treeDelegate: TAccountMetas[5];
|
|
80
|
+
collectionAuthority: TAccountMetas[6];
|
|
81
|
+
/**
|
|
82
|
+
* If there is no collecton authority record PDA then
|
|
83
|
+
* this must be the Bubblegum program address.
|
|
84
|
+
*/
|
|
85
|
+
collectionAuthorityRecordPda: TAccountMetas[7];
|
|
86
|
+
collectionMint: TAccountMetas[8];
|
|
87
|
+
collectionMetadata: TAccountMetas[9];
|
|
88
|
+
editionAccount: TAccountMetas[10];
|
|
89
|
+
bubblegumSigner: TAccountMetas[11];
|
|
90
|
+
logWrapper: TAccountMetas[12];
|
|
91
|
+
compressionProgram: TAccountMetas[13];
|
|
92
|
+
tokenMetadataProgram: TAccountMetas[14];
|
|
93
|
+
systemProgram: TAccountMetas[15];
|
|
94
|
+
};
|
|
95
|
+
data: MintToCollectionV1InstructionData;
|
|
93
96
|
}
|
|
94
|
-
|
|
97
|
+
declare function parseMintToCollectionV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMintToCollectionV1Instruction<TProgram, TAccountMetas>;
|
|
98
|
+
//#endregion
|
|
99
|
+
export { MINT_TO_COLLECTION_V1_DISCRIMINATOR, MintToCollectionV1AsyncInput, MintToCollectionV1Input, MintToCollectionV1Instruction, MintToCollectionV1InstructionData, MintToCollectionV1InstructionDataArgs, ParsedMintToCollectionV1Instruction, getMintToCollectionV1DiscriminatorBytes, getMintToCollectionV1Instruction, getMintToCollectionV1InstructionAsync, getMintToCollectionV1InstructionDataCodec, getMintToCollectionV1InstructionDataDecoder, getMintToCollectionV1InstructionDataEncoder, parseMintToCollectionV1Instruction };
|
|
95
100
|
//# sourceMappingURL=mintToCollectionV1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintToCollectionV1.d.ts","
|
|
1
|
+
{"version":3,"file":"mintToCollectionV1.d.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