@macalinao/clients-mpl-bubblegum 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/accounts/index.d.ts +2 -1
- package/dist/generated/accounts/treeConfig.d.ts +22 -7
- package/dist/generated/accounts/treeConfig.d.ts.map +1 -1
- package/dist/generated/accounts/treeConfig.js +7 -0
- package/dist/generated/accounts/treeConfig.js.map +1 -1
- package/dist/generated/accounts/voucher.d.ts +14 -7
- package/dist/generated/accounts/voucher.d.ts.map +1 -1
- package/dist/generated/accounts/voucher.js +7 -0
- package/dist/generated/accounts/voucher.js.map +1 -1
- package/dist/generated/errors/bubblegum.d.ts +0 -1
- package/dist/generated/errors/bubblegum.d.ts.map +1 -1
- package/dist/generated/errors/bubblegum.js +66 -59
- package/dist/generated/errors/bubblegum.js.map +1 -1
- package/dist/generated/errors/index.d.ts +2 -1
- package/dist/generated/index.d.ts +8 -1
- package/dist/generated/instructions/burn.d.ts +141 -17
- package/dist/generated/instructions/burn.d.ts.map +1 -1
- package/dist/generated/instructions/burn.js +23 -0
- package/dist/generated/instructions/burn.js.map +1 -1
- package/dist/generated/instructions/burnV2.d.ts +179 -31
- package/dist/generated/instructions/burnV2.d.ts.map +1 -1
- package/dist/generated/instructions/burnV2.js +21 -0
- package/dist/generated/instructions/burnV2.js.map +1 -1
- package/dist/generated/instructions/cancelRedeem.d.ts +99 -13
- package/dist/generated/instructions/cancelRedeem.d.ts.map +1 -1
- package/dist/generated/instructions/cancelRedeem.js +19 -0
- package/dist/generated/instructions/cancelRedeem.js.map +1 -1
- package/dist/generated/instructions/closeTreeV2.d.ts +85 -19
- package/dist/generated/instructions/closeTreeV2.d.ts.map +1 -1
- package/dist/generated/instructions/closeTreeV2.js +21 -0
- package/dist/generated/instructions/closeTreeV2.js.map +1 -1
- package/dist/generated/instructions/collectV2.d.ts +20 -7
- package/dist/generated/instructions/collectV2.d.ts.map +1 -1
- package/dist/generated/instructions/collectV2.js +10 -0
- package/dist/generated/instructions/collectV2.js.map +1 -1
- package/dist/generated/instructions/compress.d.ts +119 -9
- package/dist/generated/instructions/compress.d.ts.map +1 -1
- package/dist/generated/instructions/compress.js +21 -0
- package/dist/generated/instructions/compress.js.map +1 -1
- package/dist/generated/instructions/createTree.d.ts +117 -11
- package/dist/generated/instructions/createTree.d.ts.map +1 -1
- package/dist/generated/instructions/createTree.js +23 -0
- package/dist/generated/instructions/createTree.js.map +1 -1
- package/dist/generated/instructions/createTreeV2.d.ts +109 -14
- package/dist/generated/instructions/createTreeV2.d.ts.map +1 -1
- package/dist/generated/instructions/createTreeV2.js +23 -0
- package/dist/generated/instructions/createTreeV2.js.map +1 -1
- package/dist/generated/instructions/decompressV1.d.ts +106 -11
- package/dist/generated/instructions/decompressV1.d.ts.map +1 -1
- package/dist/generated/instructions/decompressV1.js +25 -0
- package/dist/generated/instructions/decompressV1.js.map +1 -1
- package/dist/generated/instructions/delegate.d.ts +140 -17
- package/dist/generated/instructions/delegate.d.ts.map +1 -1
- package/dist/generated/instructions/delegate.js +19 -0
- package/dist/generated/instructions/delegate.js.map +1 -1
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts +171 -27
- package/dist/generated/instructions/delegateAndFreezeV2.d.ts.map +1 -1
- package/dist/generated/instructions/delegateAndFreezeV2.js +17 -0
- package/dist/generated/instructions/delegateAndFreezeV2.js.map +1 -1
- package/dist/generated/instructions/delegateV2.d.ts +169 -27
- package/dist/generated/instructions/delegateV2.d.ts.map +1 -1
- package/dist/generated/instructions/delegateV2.js +15 -0
- package/dist/generated/instructions/delegateV2.js.map +1 -1
- package/dist/generated/instructions/freezeV2.d.ts +174 -28
- package/dist/generated/instructions/freezeV2.d.ts.map +1 -1
- package/dist/generated/instructions/freezeV2.js +23 -0
- package/dist/generated/instructions/freezeV2.js.map +1 -1
- package/dist/generated/instructions/index.d.ts +2 -1
- package/dist/generated/instructions/mintToCollectionV1.d.ts +171 -20
- package/dist/generated/instructions/mintToCollectionV1.d.ts.map +1 -1
- package/dist/generated/instructions/mintToCollectionV1.js +23 -0
- package/dist/generated/instructions/mintToCollectionV1.js.map +1 -1
- package/dist/generated/instructions/mintV1.d.ts +109 -11
- package/dist/generated/instructions/mintV1.d.ts.map +1 -1
- package/dist/generated/instructions/mintV1.js +21 -0
- package/dist/generated/instructions/mintV1.js.map +1 -1
- package/dist/generated/instructions/mintV2.d.ts +163 -17
- package/dist/generated/instructions/mintV2.d.ts.map +1 -1
- package/dist/generated/instructions/mintV2.js +45 -0
- package/dist/generated/instructions/mintV2.js.map +1 -1
- package/dist/generated/instructions/redeem.d.ts +153 -17
- package/dist/generated/instructions/redeem.d.ts.map +1 -1
- package/dist/generated/instructions/redeem.js +23 -0
- package/dist/generated/instructions/redeem.js.map +1 -1
- package/dist/generated/instructions/setAndVerifyCollection.d.ts +222 -38
- package/dist/generated/instructions/setAndVerifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/setAndVerifyCollection.js +21 -0
- package/dist/generated/instructions/setAndVerifyCollection.js.map +1 -1
- package/dist/generated/instructions/setCollectionV2.d.ts +186 -39
- package/dist/generated/instructions/setCollectionV2.d.ts.map +1 -1
- package/dist/generated/instructions/setCollectionV2.js +21 -0
- package/dist/generated/instructions/setCollectionV2.js.map +1 -1
- package/dist/generated/instructions/setDecompressableState.d.ts +40 -9
- package/dist/generated/instructions/setDecompressableState.d.ts.map +1 -1
- package/dist/generated/instructions/setDecompressableState.js +13 -0
- package/dist/generated/instructions/setDecompressableState.js.map +1 -1
- package/dist/generated/instructions/setDecompressibleState.d.ts +41 -9
- package/dist/generated/instructions/setDecompressibleState.d.ts.map +1 -1
- package/dist/generated/instructions/setDecompressibleState.js +14 -0
- package/dist/generated/instructions/setDecompressibleState.js.map +1 -1
- package/dist/generated/instructions/setNonTransferableV2.d.ts +166 -31
- package/dist/generated/instructions/setNonTransferableV2.d.ts.map +1 -1
- package/dist/generated/instructions/setNonTransferableV2.js +23 -0
- package/dist/generated/instructions/setNonTransferableV2.js.map +1 -1
- package/dist/generated/instructions/setTreeDelegate.d.ts +65 -9
- package/dist/generated/instructions/setTreeDelegate.d.ts.map +1 -1
- package/dist/generated/instructions/setTreeDelegate.js +21 -0
- package/dist/generated/instructions/setTreeDelegate.js.map +1 -1
- package/dist/generated/instructions/thawAndRevokeV2.d.ts +158 -24
- package/dist/generated/instructions/thawAndRevokeV2.d.ts.map +1 -1
- package/dist/generated/instructions/thawAndRevokeV2.js +17 -0
- package/dist/generated/instructions/thawAndRevokeV2.js.map +1 -1
- package/dist/generated/instructions/thawV2.d.ts +166 -28
- package/dist/generated/instructions/thawV2.d.ts.map +1 -1
- package/dist/generated/instructions/thawV2.js +15 -0
- package/dist/generated/instructions/thawV2.js.map +1 -1
- package/dist/generated/instructions/transfer.d.ts +140 -17
- package/dist/generated/instructions/transfer.d.ts.map +1 -1
- package/dist/generated/instructions/transfer.js +19 -0
- package/dist/generated/instructions/transfer.js.map +1 -1
- package/dist/generated/instructions/transferV2.d.ts +167 -31
- package/dist/generated/instructions/transferV2.d.ts.map +1 -1
- package/dist/generated/instructions/transferV2.js +21 -0
- package/dist/generated/instructions/transferV2.js.map +1 -1
- package/dist/generated/instructions/unverifyCollection.d.ts +215 -38
- package/dist/generated/instructions/unverifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCollection.js +19 -0
- package/dist/generated/instructions/unverifyCollection.js.map +1 -1
- package/dist/generated/instructions/unverifyCreator.d.ts +161 -17
- package/dist/generated/instructions/unverifyCreator.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCreator.js +19 -0
- package/dist/generated/instructions/unverifyCreator.js.map +1 -1
- package/dist/generated/instructions/unverifyCreatorV2.d.ts +143 -21
- package/dist/generated/instructions/unverifyCreatorV2.d.ts.map +1 -1
- package/dist/generated/instructions/unverifyCreatorV2.js +19 -0
- package/dist/generated/instructions/unverifyCreatorV2.js.map +1 -1
- package/dist/generated/instructions/updateAssetDataV2.d.ts +180 -28
- package/dist/generated/instructions/updateAssetDataV2.d.ts.map +1 -1
- package/dist/generated/instructions/updateAssetDataV2.js +21 -0
- package/dist/generated/instructions/updateAssetDataV2.js.map +1 -1
- package/dist/generated/instructions/updateMetadata.d.ts +183 -28
- package/dist/generated/instructions/updateMetadata.d.ts.map +1 -1
- package/dist/generated/instructions/updateMetadata.js +21 -0
- package/dist/generated/instructions/updateMetadata.js.map +1 -1
- package/dist/generated/instructions/updateMetadataV2.d.ts +162 -27
- package/dist/generated/instructions/updateMetadataV2.d.ts.map +1 -1
- package/dist/generated/instructions/updateMetadataV2.js +19 -0
- package/dist/generated/instructions/updateMetadataV2.js.map +1 -1
- package/dist/generated/instructions/verifyCollection.d.ts +215 -38
- package/dist/generated/instructions/verifyCollection.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCollection.js +19 -0
- package/dist/generated/instructions/verifyCollection.js.map +1 -1
- package/dist/generated/instructions/verifyCreator.d.ts +161 -17
- package/dist/generated/instructions/verifyCreator.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCreator.js +19 -0
- package/dist/generated/instructions/verifyCreator.js.map +1 -1
- package/dist/generated/instructions/verifyCreatorV2.d.ts +143 -21
- package/dist/generated/instructions/verifyCreatorV2.d.ts.map +1 -1
- package/dist/generated/instructions/verifyCreatorV2.js +19 -0
- package/dist/generated/instructions/verifyCreatorV2.js.map +1 -1
- package/dist/generated/pdas/assetId.d.ts +2 -3
- package/dist/generated/pdas/assetId.d.ts.map +1 -1
- package/dist/generated/pdas/assetId.js +7 -0
- package/dist/generated/pdas/assetId.js.map +1 -1
- package/dist/generated/pdas/bubblegumSigner.d.ts +0 -1
- package/dist/generated/pdas/bubblegumSigner.d.ts.map +1 -1
- package/dist/generated/pdas/bubblegumSigner.js +7 -0
- package/dist/generated/pdas/bubblegumSigner.js.map +1 -1
- package/dist/generated/pdas/index.d.ts +2 -1
- package/dist/generated/pdas/masterEdition.d.ts +2 -3
- package/dist/generated/pdas/masterEdition.d.ts.map +1 -1
- package/dist/generated/pdas/masterEdition.js +7 -0
- package/dist/generated/pdas/masterEdition.js.map +1 -1
- package/dist/generated/pdas/metadata.d.ts +2 -3
- package/dist/generated/pdas/metadata.d.ts.map +1 -1
- package/dist/generated/pdas/metadata.js +7 -0
- package/dist/generated/pdas/metadata.js.map +1 -1
- package/dist/generated/pdas/mintAuthority.d.ts +2 -3
- package/dist/generated/pdas/mintAuthority.d.ts.map +1 -1
- package/dist/generated/pdas/mintAuthority.js +7 -0
- package/dist/generated/pdas/mintAuthority.js.map +1 -1
- package/dist/generated/pdas/treeConfig.d.ts +2 -3
- package/dist/generated/pdas/treeConfig.d.ts.map +1 -1
- package/dist/generated/pdas/treeConfig.js +7 -0
- package/dist/generated/pdas/treeConfig.js.map +1 -1
- package/dist/generated/pdas/voucher.d.ts +2 -3
- package/dist/generated/pdas/voucher.d.ts.map +1 -1
- package/dist/generated/pdas/voucher.js +7 -0
- package/dist/generated/pdas/voucher.js.map +1 -1
- package/dist/generated/programs/bubblegum.d.ts +17 -12
- package/dist/generated/programs/bubblegum.d.ts.map +1 -1
- package/dist/generated/programs/bubblegum.js +11 -1
- package/dist/generated/programs/bubblegum.js.map +1 -1
- package/dist/generated/programs/index.d.ts +2 -1
- package/dist/generated/programs/mplTokenMetadata.d.ts +8 -8
- package/dist/generated/programs/mplTokenMetadata.d.ts.map +1 -1
- package/dist/generated/programs/mplTokenMetadata.js +7 -0
- package/dist/generated/programs/mplTokenMetadata.js.map +1 -1
- package/dist/generated/types/assetDataSchema.d.ts +4 -1
- package/dist/generated/types/assetDataSchema.d.ts.map +1 -1
- package/dist/generated/types/assetDataSchema.js +11 -0
- package/dist/generated/types/assetDataSchema.js.map +1 -1
- package/dist/generated/types/bubblegumEventType.d.ts +4 -1
- package/dist/generated/types/bubblegumEventType.d.ts.map +1 -1
- package/dist/generated/types/bubblegumEventType.js +11 -0
- package/dist/generated/types/bubblegumEventType.js.map +1 -1
- package/dist/generated/types/collection.d.ts +9 -3
- package/dist/generated/types/collection.d.ts.map +1 -1
- package/dist/generated/types/collection.js +7 -0
- package/dist/generated/types/collection.js.map +1 -1
- package/dist/generated/types/creator.d.ts +9 -7
- package/dist/generated/types/creator.d.ts.map +1 -1
- package/dist/generated/types/creator.js +7 -0
- package/dist/generated/types/creator.js.map +1 -1
- package/dist/generated/types/decompressibleState.d.ts +5 -1
- package/dist/generated/types/decompressibleState.d.ts.map +1 -1
- package/dist/generated/types/decompressibleState.js +12 -0
- package/dist/generated/types/decompressibleState.js.map +1 -1
- package/dist/generated/types/index.d.ts +2 -1
- package/dist/generated/types/instructionName.d.ts +4 -1
- package/dist/generated/types/instructionName.d.ts.map +1 -1
- package/dist/generated/types/instructionName.js +11 -0
- package/dist/generated/types/instructionName.js.map +1 -1
- package/dist/generated/types/leafSchema.d.ts +51 -13
- package/dist/generated/types/leafSchema.d.ts.map +1 -1
- package/dist/generated/types/leafSchema.js +7 -0
- package/dist/generated/types/leafSchema.js.map +1 -1
- package/dist/generated/types/metadataArgs.d.ts +19 -7
- package/dist/generated/types/metadataArgs.d.ts.map +1 -1
- package/dist/generated/types/metadataArgs.js +7 -0
- package/dist/generated/types/metadataArgs.js.map +1 -1
- package/dist/generated/types/metadataArgsV2.d.ts +14 -7
- package/dist/generated/types/metadataArgsV2.d.ts.map +1 -1
- package/dist/generated/types/metadataArgsV2.js +7 -0
- package/dist/generated/types/metadataArgsV2.js.map +1 -1
- package/dist/generated/types/tokenProgramVersion.d.ts +1 -1
- package/dist/generated/types/tokenProgramVersion.d.ts.map +1 -1
- package/dist/generated/types/tokenProgramVersion.js +8 -0
- package/dist/generated/types/tokenProgramVersion.js.map +1 -1
- package/dist/generated/types/tokenStandard.d.ts +5 -1
- package/dist/generated/types/tokenStandard.d.ts.map +1 -1
- package/dist/generated/types/tokenStandard.js +12 -0
- package/dist/generated/types/tokenStandard.js.map +1 -1
- package/dist/generated/types/updateArgs.d.ts +26 -7
- package/dist/generated/types/updateArgs.d.ts.map +1 -1
- package/dist/generated/types/updateArgs.js +7 -0
- package/dist/generated/types/updateArgs.js.map +1 -1
- package/dist/generated/types/useMethod.d.ts +1 -1
- package/dist/generated/types/useMethod.d.ts.map +1 -1
- package/dist/generated/types/useMethod.js +8 -0
- package/dist/generated/types/useMethod.js.map +1 -1
- package/dist/generated/types/uses.d.ts +16 -5
- package/dist/generated/types/uses.d.ts.map +1 -1
- package/dist/generated/types/uses.js +7 -0
- package/dist/generated/types/uses.js.map +1 -1
- package/dist/generated/types/version.d.ts +5 -1
- package/dist/generated/types/version.d.ts.map +1 -1
- package/dist/generated/types/version.js +12 -0
- package/dist/generated/types/version.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +6 -6
- package/src/generated/accounts/treeConfig.ts +36 -27
- package/src/generated/accounts/voucher.ts +30 -23
- package/src/generated/errors/bubblegum.ts +121 -154
- package/src/generated/instructions/burn.ts +157 -35
- package/src/generated/instructions/burnV2.ts +197 -52
- package/src/generated/instructions/cancelRedeem.ts +116 -32
- package/src/generated/instructions/closeTreeV2.ts +96 -35
- package/src/generated/instructions/collectV2.ts +34 -23
- package/src/generated/instructions/compress.ts +136 -30
- package/src/generated/instructions/createTree.ts +137 -33
- package/src/generated/instructions/createTreeV2.ts +128 -36
- package/src/generated/instructions/decompressV1.ts +124 -31
- package/src/generated/instructions/delegate.ts +159 -38
- package/src/generated/instructions/delegateAndFreezeV2.ts +191 -51
- package/src/generated/instructions/delegateV2.ts +189 -51
- package/src/generated/instructions/freezeV2.ts +193 -49
- package/src/generated/instructions/mintToCollectionV1.ts +186 -37
- package/src/generated/instructions/mintV1.ts +127 -31
- package/src/generated/instructions/mintV2.ts +184 -45
- package/src/generated/instructions/redeem.ts +172 -38
- package/src/generated/instructions/setAndVerifyCollection.ts +236 -54
- package/src/generated/instructions/setCollectionV2.ts +202 -58
- package/src/generated/instructions/setDecompressableState.ts +59 -31
- package/src/generated/instructions/setDecompressibleState.ts +60 -31
- package/src/generated/instructions/setNonTransferableV2.ts +184 -52
- package/src/generated/instructions/setTreeDelegate.ts +82 -28
- package/src/generated/instructions/thawAndRevokeV2.ts +179 -48
- package/src/generated/instructions/thawV2.ts +185 -49
- package/src/generated/instructions/transfer.ts +156 -35
- package/src/generated/instructions/transferV2.ts +185 -52
- package/src/generated/instructions/unverifyCollection.ts +229 -54
- package/src/generated/instructions/unverifyCreator.ts +181 -39
- package/src/generated/instructions/unverifyCreatorV2.ts +164 -46
- package/src/generated/instructions/updateAssetDataV2.ts +200 -50
- package/src/generated/instructions/updateMetadata.ts +200 -52
- package/src/generated/instructions/updateMetadataV2.ts +183 -54
- package/src/generated/instructions/verifyCollection.ts +229 -54
- package/src/generated/instructions/verifyCreator.ts +181 -39
- package/src/generated/instructions/verifyCreatorV2.ts +164 -46
- package/src/generated/pdas/assetId.ts +4 -3
- package/src/generated/pdas/bubblegumSigner.ts +6 -2
- package/src/generated/pdas/masterEdition.ts +4 -3
- package/src/generated/pdas/metadata.ts +4 -3
- package/src/generated/pdas/mintAuthority.ts +8 -4
- package/src/generated/pdas/treeConfig.ts +8 -4
- package/src/generated/pdas/voucher.ts +4 -3
- package/src/generated/programs/bubblegum.ts +146 -144
- package/src/generated/programs/mplTokenMetadata.ts +5 -10
- package/src/generated/types/assetDataSchema.ts +14 -8
- package/src/generated/types/bubblegumEventType.ts +13 -7
- package/src/generated/types/collection.ts +13 -8
- package/src/generated/types/creator.ts +11 -10
- package/src/generated/types/decompressibleState.ts +14 -7
- package/src/generated/types/instructionName.ts +46 -40
- package/src/generated/types/leafSchema.ts +59 -22
- package/src/generated/types/metadataArgs.ts +35 -27
- package/src/generated/types/metadataArgsV2.ts +23 -20
- package/src/generated/types/tokenProgramVersion.ts +10 -7
- package/src/generated/types/tokenStandard.ts +16 -9
- package/src/generated/types/updateArgs.ts +36 -15
- package/src/generated/types/useMethod.ts +11 -8
- package/src/generated/types/uses.ts +24 -11
- package/src/generated/types/version.ts +14 -7
|
@@ -1,25 +1,44 @@
|
|
|
1
1
|
import { Creator, CreatorArgs } from "./creator.js";
|
|
2
|
+
import "./index.js";
|
|
2
3
|
import { Codec, Decoder, Encoder, Option, OptionOrNullable } from "@solana/kit";
|
|
3
|
-
|
|
4
4
|
//#region src/generated/types/updateArgs.d.ts
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Metadata fields to change on a leaf via `updateMetadata` /
|
|
7
|
+
* `updateMetadataV2`. Every field is optional; omitted fields keep
|
|
8
|
+
* their current value.
|
|
9
|
+
*/
|
|
10
|
+
type UpdateArgs = {
|
|
11
|
+
/** New name for the asset, or unset to keep the current name. */
|
|
6
12
|
name: Option<string>;
|
|
13
|
+
/** New symbol for the asset, or unset to keep the current symbol. */
|
|
7
14
|
symbol: Option<string>;
|
|
15
|
+
/** New metadata URI for the asset, or unset to keep the current URI. */
|
|
8
16
|
uri: Option<string>;
|
|
9
|
-
creators
|
|
17
|
+
/** New creators array for the asset, or unset to keep the current creators. */
|
|
18
|
+
creators: Option<Array<Creator>>;
|
|
19
|
+
/** New royalty basis points, or unset to keep the current value. */
|
|
10
20
|
sellerFeeBasisPoints: Option<number>;
|
|
21
|
+
/** New primary sale flag, or unset to keep the current value. */
|
|
11
22
|
primarySaleHappened: Option<boolean>;
|
|
23
|
+
/** New mutability flag, or unset to keep the current value. */
|
|
12
24
|
isMutable: Option<boolean>;
|
|
13
|
-
}
|
|
14
|
-
|
|
25
|
+
};
|
|
26
|
+
type UpdateArgsArgs = {
|
|
27
|
+
/** New name for the asset, or unset to keep the current name. */
|
|
15
28
|
name: OptionOrNullable<string>;
|
|
29
|
+
/** New symbol for the asset, or unset to keep the current symbol. */
|
|
16
30
|
symbol: OptionOrNullable<string>;
|
|
31
|
+
/** New metadata URI for the asset, or unset to keep the current URI. */
|
|
17
32
|
uri: OptionOrNullable<string>;
|
|
18
|
-
creators
|
|
33
|
+
/** New creators array for the asset, or unset to keep the current creators. */
|
|
34
|
+
creators: OptionOrNullable<Array<CreatorArgs>>;
|
|
35
|
+
/** New royalty basis points, or unset to keep the current value. */
|
|
19
36
|
sellerFeeBasisPoints: OptionOrNullable<number>;
|
|
37
|
+
/** New primary sale flag, or unset to keep the current value. */
|
|
20
38
|
primarySaleHappened: OptionOrNullable<boolean>;
|
|
39
|
+
/** New mutability flag, or unset to keep the current value. */
|
|
21
40
|
isMutable: OptionOrNullable<boolean>;
|
|
22
|
-
}
|
|
41
|
+
};
|
|
23
42
|
declare function getUpdateArgsEncoder(): Encoder<UpdateArgsArgs>;
|
|
24
43
|
declare function getUpdateArgsDecoder(): Decoder<UpdateArgs>;
|
|
25
44
|
declare function getUpdateArgsCodec(): Codec<UpdateArgsArgs, UpdateArgs>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateArgs.d.ts","names":[],"sources":["../../../src/generated/types/updateArgs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateArgs.d.ts","names":[],"sources":["../../../src/generated/types/updateArgs.ts"],"mappings":";;;;;;;;;KA4CY;;EAEV,MAAM;;EAEN,QAAQ;;EAER,KAAK;;EAEL,UAAU,OAAO,MAAM;;EAEvB,sBAAsB;;EAEtB,qBAAqB;;EAErB,WAAW;;KAGD;;EAEV,MAAM;;EAEN,QAAQ;;EAER,KAAK;;EAEL,UAAU,iBAAiB,MAAM;;EAEjC,sBAAsB;;EAEtB,qBAAqB;;EAErB,WAAW;;iBAGG,wBAAwB,QAAQ;iBAqBhC,wBAAwB,QAAQ;iBAqBhC,sBAAsB,MAAM,gBAAgB"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { getCreatorDecoder, getCreatorEncoder } from "./creator.js";
|
|
2
2
|
import { addDecoderSizePrefix, addEncoderSizePrefix, combineCodec, getArrayDecoder, getArrayEncoder, getBooleanDecoder, getBooleanEncoder, getOptionDecoder, getOptionEncoder, getStructDecoder, getStructEncoder, getU16Decoder, getU16Encoder, getU32Decoder, getU32Encoder, getUtf8Decoder, getUtf8Encoder } from "@solana/kit";
|
|
3
3
|
//#region src/generated/types/updateArgs.ts
|
|
4
|
+
/**
|
|
5
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
6
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
7
|
+
* to add features, then rerun Codama to update it.
|
|
8
|
+
*
|
|
9
|
+
* @see https://github.com/codama-idl/codama
|
|
10
|
+
*/
|
|
4
11
|
function getUpdateArgsEncoder() {
|
|
5
12
|
return getStructEncoder([
|
|
6
13
|
["name", getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()))],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateArgs.js","names":[],"sources":["../../../src/generated/types/updateArgs.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
|
|
1
|
+
{"version":3,"file":"updateArgs.js","names":[],"sources":["../../../src/generated/types/updateArgs.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 {\n addDecoderSizePrefix,\n addEncoderSizePrefix,\n combineCodec,\n getArrayDecoder,\n getArrayEncoder,\n getBooleanDecoder,\n getBooleanEncoder,\n getOptionDecoder,\n getOptionEncoder,\n getStructDecoder,\n getStructEncoder,\n getU16Decoder,\n getU16Encoder,\n getU32Decoder,\n getU32Encoder,\n getUtf8Decoder,\n getUtf8Encoder,\n type Codec,\n type Decoder,\n type Encoder,\n type Option,\n type OptionOrNullable,\n} from \"@solana/kit\";\nimport {\n getCreatorDecoder,\n getCreatorEncoder,\n type Creator,\n type CreatorArgs,\n} from \"./index.js\";\n\n/**\n * Metadata fields to change on a leaf via `updateMetadata` /\n * `updateMetadataV2`. Every field is optional; omitted fields keep\n * their current value.\n */\nexport type UpdateArgs = {\n /** New name for the asset, or unset to keep the current name. */\n name: Option<string>;\n /** New symbol for the asset, or unset to keep the current symbol. */\n symbol: Option<string>;\n /** New metadata URI for the asset, or unset to keep the current URI. */\n uri: Option<string>;\n /** New creators array for the asset, or unset to keep the current creators. */\n creators: Option<Array<Creator>>;\n /** New royalty basis points, or unset to keep the current value. */\n sellerFeeBasisPoints: Option<number>;\n /** New primary sale flag, or unset to keep the current value. */\n primarySaleHappened: Option<boolean>;\n /** New mutability flag, or unset to keep the current value. */\n isMutable: Option<boolean>;\n};\n\nexport type UpdateArgsArgs = {\n /** New name for the asset, or unset to keep the current name. */\n name: OptionOrNullable<string>;\n /** New symbol for the asset, or unset to keep the current symbol. */\n symbol: OptionOrNullable<string>;\n /** New metadata URI for the asset, or unset to keep the current URI. */\n uri: OptionOrNullable<string>;\n /** New creators array for the asset, or unset to keep the current creators. */\n creators: OptionOrNullable<Array<CreatorArgs>>;\n /** New royalty basis points, or unset to keep the current value. */\n sellerFeeBasisPoints: OptionOrNullable<number>;\n /** New primary sale flag, or unset to keep the current value. */\n primarySaleHappened: OptionOrNullable<boolean>;\n /** New mutability flag, or unset to keep the current value. */\n isMutable: OptionOrNullable<boolean>;\n};\n\nexport function getUpdateArgsEncoder(): Encoder<UpdateArgsArgs> {\n return getStructEncoder([\n [\n \"name\",\n getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())),\n ],\n [\n \"symbol\",\n getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())),\n ],\n [\n \"uri\",\n getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())),\n ],\n [\"creators\", getOptionEncoder(getArrayEncoder(getCreatorEncoder()))],\n [\"sellerFeeBasisPoints\", getOptionEncoder(getU16Encoder())],\n [\"primarySaleHappened\", getOptionEncoder(getBooleanEncoder())],\n [\"isMutable\", getOptionEncoder(getBooleanEncoder())],\n ]);\n}\n\nexport function getUpdateArgsDecoder(): Decoder<UpdateArgs> {\n return getStructDecoder([\n [\n \"name\",\n getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())),\n ],\n [\n \"symbol\",\n getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())),\n ],\n [\n \"uri\",\n getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())),\n ],\n [\"creators\", getOptionDecoder(getArrayDecoder(getCreatorDecoder()))],\n [\"sellerFeeBasisPoints\", getOptionDecoder(getU16Decoder())],\n [\"primarySaleHappened\", getOptionDecoder(getBooleanDecoder())],\n [\"isMutable\", getOptionDecoder(getBooleanDecoder())],\n ]);\n}\n\nexport function getUpdateArgsCodec(): Codec<UpdateArgsArgs, UpdateArgs> {\n return combineCodec(getUpdateArgsEncoder(), getUpdateArgsDecoder());\n}\n"],"mappings":";;;;;;;;;;AA8EA,SAAgB,uBAAgD;CAC9D,OAAO,iBAAiB;EACtB,CACE,QACA,iBAAiB,qBAAqB,eAAe,GAAG,cAAc,CAAC,CAAC,CAC1E;EACA,CACE,UACA,iBAAiB,qBAAqB,eAAe,GAAG,cAAc,CAAC,CAAC,CAC1E;EACA,CACE,OACA,iBAAiB,qBAAqB,eAAe,GAAG,cAAc,CAAC,CAAC,CAC1E;EACA,CAAC,YAAY,iBAAiB,gBAAgB,kBAAkB,CAAC,CAAC,CAAC;EACnE,CAAC,wBAAwB,iBAAiB,cAAc,CAAC,CAAC;EAC1D,CAAC,uBAAuB,iBAAiB,kBAAkB,CAAC,CAAC;EAC7D,CAAC,aAAa,iBAAiB,kBAAkB,CAAC,CAAC;CACrD,CAAC;AACH;AAEA,SAAgB,uBAA4C;CAC1D,OAAO,iBAAiB;EACtB,CACE,QACA,iBAAiB,qBAAqB,eAAe,GAAG,cAAc,CAAC,CAAC,CAC1E;EACA,CACE,UACA,iBAAiB,qBAAqB,eAAe,GAAG,cAAc,CAAC,CAAC,CAC1E;EACA,CACE,OACA,iBAAiB,qBAAqB,eAAe,GAAG,cAAc,CAAC,CAAC,CAC1E;EACA,CAAC,YAAY,iBAAiB,gBAAgB,kBAAkB,CAAC,CAAC,CAAC;EACnE,CAAC,wBAAwB,iBAAiB,cAAc,CAAC,CAAC;EAC1D,CAAC,uBAAuB,iBAAiB,kBAAkB,CAAC,CAAC;EAC7D,CAAC,aAAa,iBAAiB,kBAAkB,CAAC,CAAC;CACrD,CAAC;AACH;AAEA,SAAgB,qBAAwD;CACtE,OAAO,aAAa,qBAAqB,GAAG,qBAAqB,CAAC;AACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMethod.d.ts","names":[],"sources":["../../../src/generated/types/useMethod.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useMethod.d.ts","names":[],"sources":["../../../src/generated/types/useMethod.ts"],"mappings":";;;aAkBY;EACV;EACA;EACA;;KAGU,gBAAgB;iBAEZ,uBAAuB,iBAAiB;iBAIxC,uBAAuB,iBAAiB;iBAIxC,qBAAqB,eAAe,eAAe"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { combineCodec, getEnumDecoder, getEnumEncoder } from "@solana/kit";
|
|
2
2
|
//#region src/generated/types/useMethod.ts
|
|
3
|
+
/**
|
|
4
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
5
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
6
|
+
* to add features, then rerun Codama to update it.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/codama-idl/codama
|
|
9
|
+
*/
|
|
10
|
+
/** How the remaining uses of an asset are consumed. */
|
|
3
11
|
let UseMethod = /* @__PURE__ */ function(UseMethod) {
|
|
4
12
|
UseMethod[UseMethod["Burn"] = 0] = "Burn";
|
|
5
13
|
UseMethod[UseMethod["Multiple"] = 1] = "Multiple";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMethod.js","names":[],"sources":["../../../src/generated/types/useMethod.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
|
|
1
|
+
{"version":3,"file":"useMethod.js","names":[],"sources":["../../../src/generated/types/useMethod.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 {\n combineCodec,\n getEnumDecoder,\n getEnumEncoder,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n} from \"@solana/kit\";\n\n/** How the remaining uses of an asset are consumed. */\nexport enum UseMethod {\n Burn,\n Multiple,\n Single,\n}\n\nexport type UseMethodArgs = UseMethod;\n\nexport function getUseMethodEncoder(): FixedSizeEncoder<UseMethodArgs> {\n return getEnumEncoder(UseMethod);\n}\n\nexport function getUseMethodDecoder(): FixedSizeDecoder<UseMethod> {\n return getEnumDecoder(UseMethod);\n}\n\nexport function getUseMethodCodec(): FixedSizeCodec<UseMethodArgs, UseMethod> {\n return combineCodec(getUseMethodEncoder(), getUseMethodDecoder());\n}\n"],"mappings":";;;;;;;;;;AAkBA,IAAY,YAAL,yBAAA,WAAA;CACL,UAAA,UAAA,UAAA,KAAA;CACA,UAAA,UAAA,cAAA,KAAA;CACA,UAAA,UAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;AAIA,SAAgB,sBAAuD;CACrE,OAAO,eAAe,SAAS;AACjC;AAEA,SAAgB,sBAAmD;CACjE,OAAO,eAAe,SAAS;AACjC;AAEA,SAAgB,oBAA8D;CAC5E,OAAO,aAAa,oBAAoB,GAAG,oBAAoB,CAAC;AAClE"}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { UseMethod, UseMethodArgs } from "./useMethod.js";
|
|
2
|
+
import "./index.js";
|
|
2
3
|
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
3
|
-
|
|
4
4
|
//#region src/generated/types/uses.d.ts
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Consumable-use configuration for an asset (e.g. tickets or
|
|
7
|
+
* redeemable passes), tracking how it may be used and how many uses
|
|
8
|
+
* remain.
|
|
9
|
+
*/
|
|
10
|
+
type Uses = {
|
|
11
|
+
/** How the remaining uses are consumed. */
|
|
6
12
|
useMethod: UseMethod;
|
|
13
|
+
/** Number of uses left. */
|
|
7
14
|
remaining: bigint;
|
|
15
|
+
/** Total number of uses the asset was minted with. */
|
|
8
16
|
total: bigint;
|
|
9
|
-
}
|
|
10
|
-
|
|
17
|
+
};
|
|
18
|
+
type UsesArgs = {
|
|
19
|
+
/** How the remaining uses are consumed. */
|
|
11
20
|
useMethod: UseMethodArgs;
|
|
21
|
+
/** Number of uses left. */
|
|
12
22
|
remaining: number | bigint;
|
|
23
|
+
/** Total number of uses the asset was minted with. */
|
|
13
24
|
total: number | bigint;
|
|
14
|
-
}
|
|
25
|
+
};
|
|
15
26
|
declare function getUsesEncoder(): FixedSizeEncoder<UsesArgs>;
|
|
16
27
|
declare function getUsesDecoder(): FixedSizeDecoder<Uses>;
|
|
17
28
|
declare function getUsesCodec(): FixedSizeCodec<UsesArgs, Uses>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uses.d.ts","names":[],"sources":["../../../src/generated/types/uses.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"uses.d.ts","names":[],"sources":["../../../src/generated/types/uses.ts"],"mappings":";;;;;;;;;KA8BY;;EAEV,WAAW;;EAEX;;EAEA;;KAGU;;EAEV,WAAW;;EAEX;;EAEA;;iBAGc,kBAAkB,iBAAiB;iBAQnC,kBAAkB,iBAAiB;iBAQnC,gBAAgB,eAAe,UAAU"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { getUseMethodDecoder, getUseMethodEncoder } from "./useMethod.js";
|
|
2
2
|
import { combineCodec, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder } from "@solana/kit";
|
|
3
3
|
//#region src/generated/types/uses.ts
|
|
4
|
+
/**
|
|
5
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
6
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
7
|
+
* to add features, then rerun Codama to update it.
|
|
8
|
+
*
|
|
9
|
+
* @see https://github.com/codama-idl/codama
|
|
10
|
+
*/
|
|
4
11
|
function getUsesEncoder() {
|
|
5
12
|
return getStructEncoder([
|
|
6
13
|
["useMethod", getUseMethodEncoder()],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uses.js","names":[],"sources":["../../../src/generated/types/uses.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
|
|
1
|
+
{"version":3,"file":"uses.js","names":[],"sources":["../../../src/generated/types/uses.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 {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU64Decoder,\n getU64Encoder,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n} from \"@solana/kit\";\nimport {\n getUseMethodDecoder,\n getUseMethodEncoder,\n type UseMethod,\n type UseMethodArgs,\n} from \"./index.js\";\n\n/**\n * Consumable-use configuration for an asset (e.g. tickets or\n * redeemable passes), tracking how it may be used and how many uses\n * remain.\n */\nexport type Uses = {\n /** How the remaining uses are consumed. */\n useMethod: UseMethod;\n /** Number of uses left. */\n remaining: bigint;\n /** Total number of uses the asset was minted with. */\n total: bigint;\n};\n\nexport type UsesArgs = {\n /** How the remaining uses are consumed. */\n useMethod: UseMethodArgs;\n /** Number of uses left. */\n remaining: number | bigint;\n /** Total number of uses the asset was minted with. */\n total: number | bigint;\n};\n\nexport function getUsesEncoder(): FixedSizeEncoder<UsesArgs> {\n return getStructEncoder([\n [\"useMethod\", getUseMethodEncoder()],\n [\"remaining\", getU64Encoder()],\n [\"total\", getU64Encoder()],\n ]);\n}\n\nexport function getUsesDecoder(): FixedSizeDecoder<Uses> {\n return getStructDecoder([\n [\"useMethod\", getUseMethodDecoder()],\n [\"remaining\", getU64Decoder()],\n [\"total\", getU64Decoder()],\n ]);\n}\n\nexport function getUsesCodec(): FixedSizeCodec<UsesArgs, Uses> {\n return combineCodec(getUsesEncoder(), getUsesDecoder());\n}\n"],"mappings":";;;;;;;;;;AAgDA,SAAgB,iBAA6C;CAC3D,OAAO,iBAAiB;EACtB,CAAC,aAAa,oBAAoB,CAAC;EACnC,CAAC,aAAa,cAAc,CAAC;EAC7B,CAAC,SAAS,cAAc,CAAC;CAC3B,CAAC;AACH;AAEA,SAAgB,iBAAyC;CACvD,OAAO,iBAAiB;EACtB,CAAC,aAAa,oBAAoB,CAAC;EACnC,CAAC,aAAa,cAAc,CAAC;EAC7B,CAAC,SAAS,cAAc,CAAC;CAC3B,CAAC;AACH;AAEA,SAAgB,eAA+C;CAC7D,OAAO,aAAa,eAAe,GAAG,eAAe,CAAC;AACxD"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit";
|
|
2
|
-
|
|
3
2
|
//#region src/generated/types/version.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Schema version of a tree's leaves: `V1` (Token Metadata
|
|
5
|
+
* collections) or `V2` (MPL Core collections, freezing, and
|
|
6
|
+
* non-transferable assets).
|
|
7
|
+
*/
|
|
4
8
|
declare enum Version {
|
|
5
9
|
V1 = 0,
|
|
6
10
|
V2 = 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","names":[],"sources":["../../../src/generated/types/version.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","names":[],"sources":["../../../src/generated/types/version.ts"],"mappings":";;;;;;;aAsBY;EACV;EACA;;KAGU,cAAc;iBAEV,qBAAqB,iBAAiB;iBAItC,qBAAqB,iBAAiB;iBAItC,mBAAmB,eAAe,aAAa"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { combineCodec, getEnumDecoder, getEnumEncoder } from "@solana/kit";
|
|
2
2
|
//#region src/generated/types/version.ts
|
|
3
|
+
/**
|
|
4
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
5
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
6
|
+
* to add features, then rerun Codama to update it.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/codama-idl/codama
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Schema version of a tree's leaves: `V1` (Token Metadata
|
|
12
|
+
* collections) or `V2` (MPL Core collections, freezing, and
|
|
13
|
+
* non-transferable assets).
|
|
14
|
+
*/
|
|
3
15
|
let Version = /* @__PURE__ */ function(Version) {
|
|
4
16
|
Version[Version["V1"] = 0] = "V1";
|
|
5
17
|
Version[Version["V2"] = 1] = "V2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":[],"sources":["../../../src/generated/types/version.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
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../../src/generated/types/version.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 {\n combineCodec,\n getEnumDecoder,\n getEnumEncoder,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n} from \"@solana/kit\";\n\n/**\n * Schema version of a tree's leaves: `V1` (Token Metadata\n * collections) or `V2` (MPL Core collections, freezing, and\n * non-transferable assets).\n */\nexport enum Version {\n V1,\n V2,\n}\n\nexport type VersionArgs = Version;\n\nexport function getVersionEncoder(): FixedSizeEncoder<VersionArgs> {\n return getEnumEncoder(Version);\n}\n\nexport function getVersionDecoder(): FixedSizeDecoder<Version> {\n return getEnumDecoder(Version);\n}\n\nexport function getVersionCodec(): FixedSizeCodec<VersionArgs, Version> {\n return combineCodec(getVersionEncoder(), getVersionDecoder());\n}\n"],"mappings":";;;;;;;;;;;;;;AAsBA,IAAY,UAAL,yBAAA,SAAA;CACL,QAAA,QAAA,QAAA,KAAA;CACA,QAAA,QAAA,QAAA,KAAA;;AACF,EAAA,CAAA,CAAA;AAIA,SAAgB,oBAAmD;CACjE,OAAO,eAAe,OAAO;AAC/B;AAEA,SAAgB,oBAA+C;CAC7D,OAAO,eAAe,OAAO;AAC/B;AAEA,SAAgB,kBAAwD;CACtE,OAAO,aAAa,kBAAkB,GAAG,kBAAkB,CAAC;AAC9D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -61,4 +61,5 @@ import { ParsedUpdateMetadataV2Instruction, UPDATE_METADATA_V2_DISCRIMINATOR, Up
|
|
|
61
61
|
import { ParsedVerifyCollectionInstruction, VERIFY_COLLECTION_DISCRIMINATOR, VerifyCollectionAsyncInput, VerifyCollectionInput, VerifyCollectionInstruction, VerifyCollectionInstructionData, VerifyCollectionInstructionDataArgs, getVerifyCollectionDiscriminatorBytes, getVerifyCollectionInstruction, getVerifyCollectionInstructionAsync, getVerifyCollectionInstructionDataCodec, getVerifyCollectionInstructionDataDecoder, getVerifyCollectionInstructionDataEncoder, parseVerifyCollectionInstruction } from "./generated/instructions/verifyCollection.js";
|
|
62
62
|
import { ParsedVerifyCreatorInstruction, VERIFY_CREATOR_DISCRIMINATOR, VerifyCreatorAsyncInput, VerifyCreatorInput, VerifyCreatorInstruction, VerifyCreatorInstructionData, VerifyCreatorInstructionDataArgs, getVerifyCreatorDiscriminatorBytes, getVerifyCreatorInstruction, getVerifyCreatorInstructionAsync, getVerifyCreatorInstructionDataCodec, getVerifyCreatorInstructionDataDecoder, getVerifyCreatorInstructionDataEncoder, parseVerifyCreatorInstruction } from "./generated/instructions/verifyCreator.js";
|
|
63
63
|
import { ParsedVerifyCreatorV2Instruction, VERIFY_CREATOR_V2_DISCRIMINATOR, VerifyCreatorV2AsyncInput, VerifyCreatorV2Input, VerifyCreatorV2Instruction, VerifyCreatorV2InstructionData, VerifyCreatorV2InstructionDataArgs, getVerifyCreatorV2DiscriminatorBytes, getVerifyCreatorV2Instruction, getVerifyCreatorV2InstructionAsync, getVerifyCreatorV2InstructionDataCodec, getVerifyCreatorV2InstructionDataDecoder, getVerifyCreatorV2InstructionDataEncoder, parseVerifyCreatorV2Instruction } from "./generated/instructions/verifyCreatorV2.js";
|
|
64
|
+
import "./generated/index.js";
|
|
64
65
|
export { AssetDataSchema, AssetDataSchemaArgs, AssetIdSeeds, BUBBLEGUM_ERROR__ALREADY_IN_COLLECTION, BUBBLEGUM_ERROR__ALREADY_NOT_IN_COLLECTION, BUBBLEGUM_ERROR__ALREADY_UNVERIFIED, BUBBLEGUM_ERROR__ALREADY_VERIFIED, BUBBLEGUM_ERROR__ASSET_DATA_LENGTH_TOO_LONG, BUBBLEGUM_ERROR__ASSET_IS_FROZEN, BUBBLEGUM_ERROR__ASSET_IS_NON_TRANSFERABLE, BUBBLEGUM_ERROR__ASSET_IS_NOT_FROZEN, BUBBLEGUM_ERROR__ASSET_OWNER_MISMATCH, BUBBLEGUM_ERROR__COLLECTION_CANNOT_BE_VERIFIED_IN_THIS_INSTRUCTION, BUBBLEGUM_ERROR__COLLECTION_IS_FROZEN, BUBBLEGUM_ERROR__COLLECTION_MASTER_EDITION_ACCOUNT_INVALID, BUBBLEGUM_ERROR__COLLECTION_MISMATCH, BUBBLEGUM_ERROR__COLLECTION_MUST_BE_A_UNIQUE_MASTER_EDITION, BUBBLEGUM_ERROR__COLLECTION_MUST_BE_SIZED, BUBBLEGUM_ERROR__COLLECTION_MUST_HAVE_BUBBLEGUM_PLUGIN, BUBBLEGUM_ERROR__COLLECTION_NOT_FOUND, BUBBLEGUM_ERROR__CREATORS_TOO_LONG, BUBBLEGUM_ERROR__CREATOR_DID_NOT_UNVERIFY, BUBBLEGUM_ERROR__CREATOR_DID_NOT_VERIFY, BUBBLEGUM_ERROR__CREATOR_HASH_MISMATCH, BUBBLEGUM_ERROR__CREATOR_NOT_FOUND, BUBBLEGUM_ERROR__CREATOR_SHARE_TOTAL_MUST_BE100, BUBBLEGUM_ERROR__DATA_HASH_MISMATCH, BUBBLEGUM_ERROR__DECOMPRESSION_DISABLED, BUBBLEGUM_ERROR__DUPLICATE_CREATOR_ADDRESS, BUBBLEGUM_ERROR__HASHING_MISMATCH, BUBBLEGUM_ERROR__INCORRECT_OWNER, BUBBLEGUM_ERROR__INSUFFICIENT_MINT_CAPACITY, BUBBLEGUM_ERROR__INVALID_AUTHORITY, BUBBLEGUM_ERROR__INVALID_CANOPY_SIZE, BUBBLEGUM_ERROR__INVALID_COLLECTION_AUTHORITY, BUBBLEGUM_ERROR__INVALID_COMPRESSION_PROGRAM, BUBBLEGUM_ERROR__INVALID_DELEGATE_RECORD, BUBBLEGUM_ERROR__INVALID_LOG_WRAPPER, BUBBLEGUM_ERROR__INVALID_TOKEN_STANDARD, BUBBLEGUM_ERROR__LEAF_AUTHORITY_MUST_SIGN, BUBBLEGUM_ERROR__LEAF_MUST_BE_DELEGATED, BUBBLEGUM_ERROR__METADATA_BASIS_POINTS_TOO_HIGH, BUBBLEGUM_ERROR__METADATA_IMMUTABLE, BUBBLEGUM_ERROR__METADATA_MINT_MISMATCH, BUBBLEGUM_ERROR__METADATA_NAME_TOO_LONG, BUBBLEGUM_ERROR__METADATA_SYMBOL_TOO_LONG, BUBBLEGUM_ERROR__METADATA_URI_TOO_LONG, BUBBLEGUM_ERROR__MISSING_COLLECTION_ACCOUNT, BUBBLEGUM_ERROR__MISSING_COLLECTION_METADATA_ACCOUNT, BUBBLEGUM_ERROR__MISSING_COLLECTION_MINT_ACCOUNT, BUBBLEGUM_ERROR__MISSING_MPL_CORE_CPI_SIGNER_ACCOUNT, BUBBLEGUM_ERROR__NOT_AVAILABLE, BUBBLEGUM_ERROR__NO_CREATORS_PRESENT, BUBBLEGUM_ERROR__NUMERICAL_OVERFLOW_ERROR, BUBBLEGUM_ERROR__PRIMARY_SALE_CAN_ONLY_BE_FLIPPED_TO_TRUE, BUBBLEGUM_ERROR__PUBLIC_KEY_MISMATCH, BUBBLEGUM_ERROR__TREE_AUTHORITY_INCORRECT, BUBBLEGUM_ERROR__UNKNOWN_EXTERNAL_ERROR, BUBBLEGUM_ERROR__UNSUPPORTED_SCHEMA_VERSION, BUBBLEGUM_ERROR__UPDATE_AUTHORITY_INCORRECT, BUBBLEGUM_PROGRAM_ADDRESS, BURN_DISCRIMINATOR, BURN_V2_DISCRIMINATOR, BubblegumAccount, BubblegumError, BubblegumEventType, BubblegumEventTypeArgs, BubblegumInstruction, BubblegumPlugin, BubblegumPluginAccounts, BubblegumPluginInstructions, BubblegumPluginPdas, BubblegumPluginRequirements, BurnAsyncInput, BurnInput, BurnInstruction, BurnInstructionData, BurnInstructionDataArgs, BurnV2AsyncInput, BurnV2Input, BurnV2Instruction, BurnV2InstructionData, BurnV2InstructionDataArgs, CANCEL_REDEEM_DISCRIMINATOR, CLOSE_TREE_V2_DISCRIMINATOR, COLLECT_V2_DISCRIMINATOR, COMPRESS_DISCRIMINATOR, CREATE_TREE_DISCRIMINATOR, CREATE_TREE_V2_DISCRIMINATOR, CancelRedeemAsyncInput, CancelRedeemInput, CancelRedeemInstruction, CancelRedeemInstructionData, CancelRedeemInstructionDataArgs, CloseTreeV2AsyncInput, CloseTreeV2Input, CloseTreeV2Instruction, CloseTreeV2InstructionData, CloseTreeV2InstructionDataArgs, CollectV2Input, CollectV2Instruction, CollectV2InstructionData, CollectV2InstructionDataArgs, Collection, CollectionArgs, CompressAsyncInput, CompressInput, CompressInstruction, CompressInstructionData, CompressInstructionDataArgs, CreateTreeAsyncInput, CreateTreeInput, CreateTreeInstruction, CreateTreeInstructionData, CreateTreeInstructionDataArgs, CreateTreeV2AsyncInput, CreateTreeV2Input, CreateTreeV2Instruction, CreateTreeV2InstructionData, CreateTreeV2InstructionDataArgs, Creator, CreatorArgs, DECOMPRESS_V1_DISCRIMINATOR, DELEGATE_AND_FREEZE_V2_DISCRIMINATOR, DELEGATE_DISCRIMINATOR, DELEGATE_V2_DISCRIMINATOR, DecompressV1AsyncInput, DecompressV1Input, DecompressV1Instruction, DecompressV1InstructionData, DecompressV1InstructionDataArgs, DecompressibleState, DecompressibleStateArgs, DelegateAndFreezeV2AsyncInput, DelegateAndFreezeV2Input, DelegateAndFreezeV2Instruction, DelegateAndFreezeV2InstructionData, DelegateAndFreezeV2InstructionDataArgs, DelegateAsyncInput, DelegateInput, DelegateInstruction, DelegateInstructionData, DelegateInstructionDataArgs, DelegateV2AsyncInput, DelegateV2Input, DelegateV2Instruction, DelegateV2InstructionData, DelegateV2InstructionDataArgs, FREEZE_V2_DISCRIMINATOR, FreezeV2AsyncInput, FreezeV2Input, FreezeV2Instruction, FreezeV2InstructionData, FreezeV2InstructionDataArgs, InstructionName, InstructionNameArgs, LeafSchema, LeafSchemaArgs, MINT_TO_COLLECTION_V1_DISCRIMINATOR, MINT_V1_DISCRIMINATOR, MINT_V2_DISCRIMINATOR, MPL_TOKEN_METADATA_PROGRAM_ADDRESS, MasterEditionSeeds, MetadataArgs, MetadataArgsArgs, MetadataArgsV2, MetadataArgsV2Args, MetadataSeeds, MintAuthoritySeeds, MintToCollectionV1AsyncInput, MintToCollectionV1Input, MintToCollectionV1Instruction, MintToCollectionV1InstructionData, MintToCollectionV1InstructionDataArgs, MintV1AsyncInput, MintV1Input, MintV1Instruction, MintV1InstructionData, MintV1InstructionDataArgs, MintV2AsyncInput, MintV2Input, MintV2Instruction, MintV2InstructionData, MintV2InstructionDataArgs, MplTokenMetadataPlugin, MplTokenMetadataPluginPdas, MplTokenMetadataPluginRequirements, ParsedBubblegumInstruction, ParsedBurnInstruction, ParsedBurnV2Instruction, ParsedCancelRedeemInstruction, ParsedCloseTreeV2Instruction, ParsedCollectV2Instruction, ParsedCompressInstruction, ParsedCreateTreeInstruction, ParsedCreateTreeV2Instruction, ParsedDecompressV1Instruction, ParsedDelegateAndFreezeV2Instruction, ParsedDelegateInstruction, ParsedDelegateV2Instruction, ParsedFreezeV2Instruction, ParsedMintToCollectionV1Instruction, ParsedMintV1Instruction, ParsedMintV2Instruction, ParsedRedeemInstruction, ParsedSetAndVerifyCollectionInstruction, ParsedSetCollectionV2Instruction, ParsedSetDecompressableStateInstruction, ParsedSetDecompressibleStateInstruction, ParsedSetNonTransferableV2Instruction, ParsedSetTreeDelegateInstruction, ParsedThawAndRevokeV2Instruction, ParsedThawV2Instruction, ParsedTransferInstruction, ParsedTransferV2Instruction, ParsedUnverifyCollectionInstruction, ParsedUnverifyCreatorInstruction, ParsedUnverifyCreatorV2Instruction, ParsedUpdateAssetDataV2Instruction, ParsedUpdateMetadataInstruction, ParsedUpdateMetadataV2Instruction, ParsedVerifyCollectionInstruction, ParsedVerifyCreatorInstruction, ParsedVerifyCreatorV2Instruction, REDEEM_DISCRIMINATOR, RedeemAsyncInput, RedeemInput, RedeemInstruction, RedeemInstructionData, RedeemInstructionDataArgs, SET_AND_VERIFY_COLLECTION_DISCRIMINATOR, SET_COLLECTION_V2_DISCRIMINATOR, SET_DECOMPRESSABLE_STATE_DISCRIMINATOR, SET_DECOMPRESSIBLE_STATE_DISCRIMINATOR, SET_NON_TRANSFERABLE_V2_DISCRIMINATOR, SET_TREE_DELEGATE_DISCRIMINATOR, SetAndVerifyCollectionAsyncInput, SetAndVerifyCollectionInput, SetAndVerifyCollectionInstruction, SetAndVerifyCollectionInstructionData, SetAndVerifyCollectionInstructionDataArgs, SetCollectionV2AsyncInput, SetCollectionV2Input, SetCollectionV2Instruction, SetCollectionV2InstructionData, SetCollectionV2InstructionDataArgs, SetDecompressableStateInput, SetDecompressableStateInstruction, SetDecompressableStateInstructionData, SetDecompressableStateInstructionDataArgs, SetDecompressibleStateInput, SetDecompressibleStateInstruction, SetDecompressibleStateInstructionData, SetDecompressibleStateInstructionDataArgs, SetNonTransferableV2AsyncInput, SetNonTransferableV2Input, SetNonTransferableV2Instruction, SetNonTransferableV2InstructionData, SetNonTransferableV2InstructionDataArgs, SetTreeDelegateAsyncInput, SetTreeDelegateInput, SetTreeDelegateInstruction, SetTreeDelegateInstructionData, SetTreeDelegateInstructionDataArgs, THAW_AND_REVOKE_V2_DISCRIMINATOR, THAW_V2_DISCRIMINATOR, TRANSFER_DISCRIMINATOR, TRANSFER_V2_DISCRIMINATOR, TREE_CONFIG_DISCRIMINATOR, ThawAndRevokeV2AsyncInput, ThawAndRevokeV2Input, ThawAndRevokeV2Instruction, ThawAndRevokeV2InstructionData, ThawAndRevokeV2InstructionDataArgs, ThawV2AsyncInput, ThawV2Input, ThawV2Instruction, ThawV2InstructionData, ThawV2InstructionDataArgs, TokenProgramVersion, TokenProgramVersionArgs, TokenStandard, TokenStandardArgs, TransferAsyncInput, TransferInput, TransferInstruction, TransferInstructionData, TransferInstructionDataArgs, TransferV2AsyncInput, TransferV2Input, TransferV2Instruction, TransferV2InstructionData, TransferV2InstructionDataArgs, TreeConfig, TreeConfigArgs, TreeConfigSeeds, UNVERIFY_COLLECTION_DISCRIMINATOR, UNVERIFY_CREATOR_DISCRIMINATOR, UNVERIFY_CREATOR_V2_DISCRIMINATOR, UPDATE_ASSET_DATA_V2_DISCRIMINATOR, UPDATE_METADATA_DISCRIMINATOR, UPDATE_METADATA_V2_DISCRIMINATOR, UnverifyCollectionAsyncInput, UnverifyCollectionInput, UnverifyCollectionInstruction, UnverifyCollectionInstructionData, UnverifyCollectionInstructionDataArgs, UnverifyCreatorAsyncInput, UnverifyCreatorInput, UnverifyCreatorInstruction, UnverifyCreatorInstructionData, UnverifyCreatorInstructionDataArgs, UnverifyCreatorV2AsyncInput, UnverifyCreatorV2Input, UnverifyCreatorV2Instruction, UnverifyCreatorV2InstructionData, UnverifyCreatorV2InstructionDataArgs, UpdateArgs, UpdateArgsArgs, UpdateAssetDataV2AsyncInput, UpdateAssetDataV2Input, UpdateAssetDataV2Instruction, UpdateAssetDataV2InstructionData, UpdateAssetDataV2InstructionDataArgs, UpdateMetadataAsyncInput, UpdateMetadataInput, UpdateMetadataInstruction, UpdateMetadataInstructionData, UpdateMetadataInstructionDataArgs, UpdateMetadataV2AsyncInput, UpdateMetadataV2Input, UpdateMetadataV2Instruction, UpdateMetadataV2InstructionData, UpdateMetadataV2InstructionDataArgs, UseMethod, UseMethodArgs, Uses, UsesArgs, VERIFY_COLLECTION_DISCRIMINATOR, VERIFY_CREATOR_DISCRIMINATOR, VERIFY_CREATOR_V2_DISCRIMINATOR, VOUCHER_DISCRIMINATOR, VerifyCollectionAsyncInput, VerifyCollectionInput, VerifyCollectionInstruction, VerifyCollectionInstructionData, VerifyCollectionInstructionDataArgs, VerifyCreatorAsyncInput, VerifyCreatorInput, VerifyCreatorInstruction, VerifyCreatorInstructionData, VerifyCreatorInstructionDataArgs, VerifyCreatorV2AsyncInput, VerifyCreatorV2Input, VerifyCreatorV2Instruction, VerifyCreatorV2InstructionData, VerifyCreatorV2InstructionDataArgs, Version, VersionArgs, Voucher, VoucherArgs, VoucherSeeds, bubblegumProgram, decodeTreeConfig, decodeVoucher, fetchAllMaybeTreeConfig, fetchAllMaybeVoucher, fetchAllTreeConfig, fetchAllVoucher, fetchMaybeTreeConfig, fetchMaybeTreeConfigFromSeeds, fetchMaybeVoucher, fetchMaybeVoucherFromSeeds, fetchTreeConfig, fetchTreeConfigFromSeeds, fetchVoucher, fetchVoucherFromSeeds, findAssetIdPda, findBubblegumSignerPda, findMasterEditionPda, findMetadataPda, findMintAuthorityPda, findTreeConfigPda, findVoucherPda, getAssetDataSchemaCodec, getAssetDataSchemaDecoder, getAssetDataSchemaEncoder, getBubblegumErrorMessage, getBubblegumEventTypeCodec, getBubblegumEventTypeDecoder, getBubblegumEventTypeEncoder, getBurnDiscriminatorBytes, getBurnInstruction, getBurnInstructionAsync, getBurnInstructionDataCodec, getBurnInstructionDataDecoder, getBurnInstructionDataEncoder, getBurnV2DiscriminatorBytes, getBurnV2Instruction, getBurnV2InstructionAsync, getBurnV2InstructionDataCodec, getBurnV2InstructionDataDecoder, getBurnV2InstructionDataEncoder, getCancelRedeemDiscriminatorBytes, getCancelRedeemInstruction, getCancelRedeemInstructionAsync, getCancelRedeemInstructionDataCodec, getCancelRedeemInstructionDataDecoder, getCancelRedeemInstructionDataEncoder, getCloseTreeV2DiscriminatorBytes, getCloseTreeV2Instruction, getCloseTreeV2InstructionAsync, getCloseTreeV2InstructionDataCodec, getCloseTreeV2InstructionDataDecoder, getCloseTreeV2InstructionDataEncoder, getCollectV2DiscriminatorBytes, getCollectV2Instruction, getCollectV2InstructionDataCodec, getCollectV2InstructionDataDecoder, getCollectV2InstructionDataEncoder, getCollectionCodec, getCollectionDecoder, getCollectionEncoder, getCompressDiscriminatorBytes, getCompressInstruction, getCompressInstructionAsync, getCompressInstructionDataCodec, getCompressInstructionDataDecoder, getCompressInstructionDataEncoder, getCreateTreeDiscriminatorBytes, getCreateTreeInstruction, getCreateTreeInstructionAsync, getCreateTreeInstructionDataCodec, getCreateTreeInstructionDataDecoder, getCreateTreeInstructionDataEncoder, getCreateTreeV2DiscriminatorBytes, getCreateTreeV2Instruction, getCreateTreeV2InstructionAsync, getCreateTreeV2InstructionDataCodec, getCreateTreeV2InstructionDataDecoder, getCreateTreeV2InstructionDataEncoder, getCreatorCodec, getCreatorDecoder, getCreatorEncoder, getDecompressV1DiscriminatorBytes, getDecompressV1Instruction, getDecompressV1InstructionAsync, getDecompressV1InstructionDataCodec, getDecompressV1InstructionDataDecoder, getDecompressV1InstructionDataEncoder, getDecompressibleStateCodec, getDecompressibleStateDecoder, getDecompressibleStateEncoder, getDelegateAndFreezeV2DiscriminatorBytes, getDelegateAndFreezeV2Instruction, getDelegateAndFreezeV2InstructionAsync, getDelegateAndFreezeV2InstructionDataCodec, getDelegateAndFreezeV2InstructionDataDecoder, getDelegateAndFreezeV2InstructionDataEncoder, getDelegateDiscriminatorBytes, getDelegateInstruction, getDelegateInstructionAsync, getDelegateInstructionDataCodec, getDelegateInstructionDataDecoder, getDelegateInstructionDataEncoder, getDelegateV2DiscriminatorBytes, getDelegateV2Instruction, getDelegateV2InstructionAsync, getDelegateV2InstructionDataCodec, getDelegateV2InstructionDataDecoder, getDelegateV2InstructionDataEncoder, getFreezeV2DiscriminatorBytes, getFreezeV2Instruction, getFreezeV2InstructionAsync, getFreezeV2InstructionDataCodec, getFreezeV2InstructionDataDecoder, getFreezeV2InstructionDataEncoder, getInstructionNameCodec, getInstructionNameDecoder, getInstructionNameEncoder, getLeafSchemaCodec, getLeafSchemaDecoder, getLeafSchemaEncoder, getMetadataArgsCodec, getMetadataArgsDecoder, getMetadataArgsEncoder, getMetadataArgsV2Codec, getMetadataArgsV2Decoder, getMetadataArgsV2Encoder, getMintToCollectionV1DiscriminatorBytes, getMintToCollectionV1Instruction, getMintToCollectionV1InstructionAsync, getMintToCollectionV1InstructionDataCodec, getMintToCollectionV1InstructionDataDecoder, getMintToCollectionV1InstructionDataEncoder, getMintV1DiscriminatorBytes, getMintV1Instruction, getMintV1InstructionAsync, getMintV1InstructionDataCodec, getMintV1InstructionDataDecoder, getMintV1InstructionDataEncoder, getMintV2DiscriminatorBytes, getMintV2Instruction, getMintV2InstructionAsync, getMintV2InstructionDataCodec, getMintV2InstructionDataDecoder, getMintV2InstructionDataEncoder, getRedeemDiscriminatorBytes, getRedeemInstruction, getRedeemInstructionAsync, getRedeemInstructionDataCodec, getRedeemInstructionDataDecoder, getRedeemInstructionDataEncoder, getSetAndVerifyCollectionDiscriminatorBytes, getSetAndVerifyCollectionInstruction, getSetAndVerifyCollectionInstructionAsync, getSetAndVerifyCollectionInstructionDataCodec, getSetAndVerifyCollectionInstructionDataDecoder, getSetAndVerifyCollectionInstructionDataEncoder, getSetCollectionV2DiscriminatorBytes, getSetCollectionV2Instruction, getSetCollectionV2InstructionAsync, getSetCollectionV2InstructionDataCodec, getSetCollectionV2InstructionDataDecoder, getSetCollectionV2InstructionDataEncoder, getSetDecompressableStateDiscriminatorBytes, getSetDecompressableStateInstruction, getSetDecompressableStateInstructionDataCodec, getSetDecompressableStateInstructionDataDecoder, getSetDecompressableStateInstructionDataEncoder, getSetDecompressibleStateDiscriminatorBytes, getSetDecompressibleStateInstruction, getSetDecompressibleStateInstructionDataCodec, getSetDecompressibleStateInstructionDataDecoder, getSetDecompressibleStateInstructionDataEncoder, getSetNonTransferableV2DiscriminatorBytes, getSetNonTransferableV2Instruction, getSetNonTransferableV2InstructionAsync, getSetNonTransferableV2InstructionDataCodec, getSetNonTransferableV2InstructionDataDecoder, getSetNonTransferableV2InstructionDataEncoder, getSetTreeDelegateDiscriminatorBytes, getSetTreeDelegateInstruction, getSetTreeDelegateInstructionAsync, getSetTreeDelegateInstructionDataCodec, getSetTreeDelegateInstructionDataDecoder, getSetTreeDelegateInstructionDataEncoder, getThawAndRevokeV2DiscriminatorBytes, getThawAndRevokeV2Instruction, getThawAndRevokeV2InstructionAsync, getThawAndRevokeV2InstructionDataCodec, getThawAndRevokeV2InstructionDataDecoder, getThawAndRevokeV2InstructionDataEncoder, getThawV2DiscriminatorBytes, getThawV2Instruction, getThawV2InstructionAsync, getThawV2InstructionDataCodec, getThawV2InstructionDataDecoder, getThawV2InstructionDataEncoder, getTokenProgramVersionCodec, getTokenProgramVersionDecoder, getTokenProgramVersionEncoder, getTokenStandardCodec, getTokenStandardDecoder, getTokenStandardEncoder, getTransferDiscriminatorBytes, getTransferInstruction, getTransferInstructionAsync, getTransferInstructionDataCodec, getTransferInstructionDataDecoder, getTransferInstructionDataEncoder, getTransferV2DiscriminatorBytes, getTransferV2Instruction, getTransferV2InstructionAsync, getTransferV2InstructionDataCodec, getTransferV2InstructionDataDecoder, getTransferV2InstructionDataEncoder, getTreeConfigCodec, getTreeConfigDecoder, getTreeConfigDiscriminatorBytes, getTreeConfigEncoder, getUnverifyCollectionDiscriminatorBytes, getUnverifyCollectionInstruction, getUnverifyCollectionInstructionAsync, getUnverifyCollectionInstructionDataCodec, getUnverifyCollectionInstructionDataDecoder, getUnverifyCollectionInstructionDataEncoder, getUnverifyCreatorDiscriminatorBytes, getUnverifyCreatorInstruction, getUnverifyCreatorInstructionAsync, getUnverifyCreatorInstructionDataCodec, getUnverifyCreatorInstructionDataDecoder, getUnverifyCreatorInstructionDataEncoder, getUnverifyCreatorV2DiscriminatorBytes, getUnverifyCreatorV2Instruction, getUnverifyCreatorV2InstructionAsync, getUnverifyCreatorV2InstructionDataCodec, getUnverifyCreatorV2InstructionDataDecoder, getUnverifyCreatorV2InstructionDataEncoder, getUpdateArgsCodec, getUpdateArgsDecoder, getUpdateArgsEncoder, getUpdateAssetDataV2DiscriminatorBytes, getUpdateAssetDataV2Instruction, getUpdateAssetDataV2InstructionAsync, getUpdateAssetDataV2InstructionDataCodec, getUpdateAssetDataV2InstructionDataDecoder, getUpdateAssetDataV2InstructionDataEncoder, getUpdateMetadataDiscriminatorBytes, getUpdateMetadataInstruction, getUpdateMetadataInstructionAsync, getUpdateMetadataInstructionDataCodec, getUpdateMetadataInstructionDataDecoder, getUpdateMetadataInstructionDataEncoder, getUpdateMetadataV2DiscriminatorBytes, getUpdateMetadataV2Instruction, getUpdateMetadataV2InstructionAsync, getUpdateMetadataV2InstructionDataCodec, getUpdateMetadataV2InstructionDataDecoder, getUpdateMetadataV2InstructionDataEncoder, getUseMethodCodec, getUseMethodDecoder, getUseMethodEncoder, getUsesCodec, getUsesDecoder, getUsesEncoder, getVerifyCollectionDiscriminatorBytes, getVerifyCollectionInstruction, getVerifyCollectionInstructionAsync, getVerifyCollectionInstructionDataCodec, getVerifyCollectionInstructionDataDecoder, getVerifyCollectionInstructionDataEncoder, getVerifyCreatorDiscriminatorBytes, getVerifyCreatorInstruction, getVerifyCreatorInstructionAsync, getVerifyCreatorInstructionDataCodec, getVerifyCreatorInstructionDataDecoder, getVerifyCreatorInstructionDataEncoder, getVerifyCreatorV2DiscriminatorBytes, getVerifyCreatorV2Instruction, getVerifyCreatorV2InstructionAsync, getVerifyCreatorV2InstructionDataCodec, getVerifyCreatorV2InstructionDataDecoder, getVerifyCreatorV2InstructionDataEncoder, getVersionCodec, getVersionDecoder, getVersionEncoder, getVoucherCodec, getVoucherDecoder, getVoucherDiscriminatorBytes, getVoucherEncoder, identifyBubblegumAccount, identifyBubblegumInstruction, isBubblegumError, isLeafSchema, leafSchema, mplTokenMetadataProgram, parseBubblegumInstruction, parseBurnInstruction, parseBurnV2Instruction, parseCancelRedeemInstruction, parseCloseTreeV2Instruction, parseCollectV2Instruction, parseCompressInstruction, parseCreateTreeInstruction, parseCreateTreeV2Instruction, parseDecompressV1Instruction, parseDelegateAndFreezeV2Instruction, parseDelegateInstruction, parseDelegateV2Instruction, parseFreezeV2Instruction, parseMintToCollectionV1Instruction, parseMintV1Instruction, parseMintV2Instruction, parseRedeemInstruction, parseSetAndVerifyCollectionInstruction, parseSetCollectionV2Instruction, parseSetDecompressableStateInstruction, parseSetDecompressibleStateInstruction, parseSetNonTransferableV2Instruction, parseSetTreeDelegateInstruction, parseThawAndRevokeV2Instruction, parseThawV2Instruction, parseTransferInstruction, parseTransferV2Instruction, parseUnverifyCollectionInstruction, parseUnverifyCreatorInstruction, parseUnverifyCreatorV2Instruction, parseUpdateAssetDataV2Instruction, parseUpdateMetadataInstruction, parseUpdateMetadataV2Instruction, parseVerifyCollectionInstruction, parseVerifyCreatorInstruction, parseVerifyCreatorV2Instruction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macalinao/clients-mpl-bubblegum",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "TypeScript client for the Metaplex Bubblegum program",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"@solana/program-client-core": "*"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@macalinao/coda": "^0.6.
|
|
45
|
+
"@macalinao/coda": "^0.6.3",
|
|
46
46
|
"@macalinao/tsconfig": "^3.2.5",
|
|
47
|
-
"@solana/kit": "^
|
|
48
|
-
"@solana/program-client-core": "^
|
|
49
|
-
"typescript": "^
|
|
50
|
-
"tsdown": "^0.22.
|
|
47
|
+
"@solana/kit": "^7.0.0",
|
|
48
|
+
"@solana/program-client-core": "^7.0.0",
|
|
49
|
+
"typescript": "^7.0.2",
|
|
50
|
+
"tsdown": "^0.22.5"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
@@ -6,26 +6,6 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type {
|
|
10
|
-
Account,
|
|
11
|
-
Address,
|
|
12
|
-
EncodedAccount,
|
|
13
|
-
FetchAccountConfig,
|
|
14
|
-
FetchAccountsConfig,
|
|
15
|
-
FixedSizeCodec,
|
|
16
|
-
FixedSizeDecoder,
|
|
17
|
-
FixedSizeEncoder,
|
|
18
|
-
MaybeAccount,
|
|
19
|
-
MaybeEncodedAccount,
|
|
20
|
-
ReadonlyUint8Array,
|
|
21
|
-
} from "@solana/kit";
|
|
22
|
-
import type { TreeConfigSeeds } from "../pdas/index.js";
|
|
23
|
-
import type {
|
|
24
|
-
DecompressibleState,
|
|
25
|
-
DecompressibleStateArgs,
|
|
26
|
-
Version,
|
|
27
|
-
VersionArgs,
|
|
28
|
-
} from "../types/index.js";
|
|
29
9
|
import {
|
|
30
10
|
assertAccountExists,
|
|
31
11
|
assertAccountsExist,
|
|
@@ -46,13 +26,28 @@ import {
|
|
|
46
26
|
getU64Decoder,
|
|
47
27
|
getU64Encoder,
|
|
48
28
|
transformEncoder,
|
|
29
|
+
type Account,
|
|
30
|
+
type Address,
|
|
31
|
+
type EncodedAccount,
|
|
32
|
+
type FetchAccountConfig,
|
|
33
|
+
type FetchAccountsConfig,
|
|
34
|
+
type FixedSizeCodec,
|
|
35
|
+
type FixedSizeDecoder,
|
|
36
|
+
type FixedSizeEncoder,
|
|
37
|
+
type MaybeAccount,
|
|
38
|
+
type MaybeEncodedAccount,
|
|
39
|
+
type ReadonlyUint8Array,
|
|
49
40
|
} from "@solana/kit";
|
|
50
|
-
import { findTreeConfigPda } from "../pdas/index.js";
|
|
41
|
+
import { findTreeConfigPda, type TreeConfigSeeds } from "../pdas/index.js";
|
|
51
42
|
import {
|
|
52
43
|
getDecompressibleStateDecoder,
|
|
53
44
|
getDecompressibleStateEncoder,
|
|
54
45
|
getVersionDecoder,
|
|
55
46
|
getVersionEncoder,
|
|
47
|
+
type DecompressibleState,
|
|
48
|
+
type DecompressibleStateArgs,
|
|
49
|
+
type Version,
|
|
50
|
+
type VersionArgs,
|
|
56
51
|
} from "../types/index.js";
|
|
57
52
|
|
|
58
53
|
export const TREE_CONFIG_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([
|
|
@@ -63,26 +58,40 @@ export function getTreeConfigDiscriminatorBytes(): ReadonlyUint8Array {
|
|
|
63
58
|
return fixEncoderSize(getBytesEncoder(), 8).encode(TREE_CONFIG_DISCRIMINATOR);
|
|
64
59
|
}
|
|
65
60
|
|
|
66
|
-
export
|
|
61
|
+
export type TreeConfig = {
|
|
67
62
|
discriminator: ReadonlyUint8Array;
|
|
63
|
+
/** Original creator of the tree. */
|
|
68
64
|
treeCreator: Address;
|
|
65
|
+
/** Current delegate authority of the tree, authorized to mint and manage it on the creator's behalf. */
|
|
69
66
|
treeDelegate: Address;
|
|
67
|
+
/** Maximum number of leaves the tree can ever hold, derived from its `maxDepth`. */
|
|
70
68
|
totalMintCapacity: bigint;
|
|
69
|
+
/** Number of leaves minted into the tree so far; used as the `nonce` for the next minted leaf. */
|
|
71
70
|
numMinted: bigint;
|
|
71
|
+
/** Whether any signer may mint into the tree, not just the tree delegate. */
|
|
72
72
|
isPublic: boolean;
|
|
73
|
+
/** Whether leaves in the tree may currently be redeemed and decompressed. */
|
|
73
74
|
isDecompressible: DecompressibleState;
|
|
75
|
+
/** Schema version (`V1` or `V2`) leaves minted into this tree use. */
|
|
74
76
|
version: Version;
|
|
75
|
-
}
|
|
77
|
+
};
|
|
76
78
|
|
|
77
|
-
export
|
|
79
|
+
export type TreeConfigArgs = {
|
|
80
|
+
/** Original creator of the tree. */
|
|
78
81
|
treeCreator: Address;
|
|
82
|
+
/** Current delegate authority of the tree, authorized to mint and manage it on the creator's behalf. */
|
|
79
83
|
treeDelegate: Address;
|
|
84
|
+
/** Maximum number of leaves the tree can ever hold, derived from its `maxDepth`. */
|
|
80
85
|
totalMintCapacity: number | bigint;
|
|
86
|
+
/** Number of leaves minted into the tree so far; used as the `nonce` for the next minted leaf. */
|
|
81
87
|
numMinted: number | bigint;
|
|
88
|
+
/** Whether any signer may mint into the tree, not just the tree delegate. */
|
|
82
89
|
isPublic: boolean;
|
|
90
|
+
/** Whether leaves in the tree may currently be redeemed and decompressed. */
|
|
83
91
|
isDecompressible: DecompressibleStateArgs;
|
|
92
|
+
/** Schema version (`V1` or `V2`) leaves minted into this tree use. */
|
|
84
93
|
version: VersionArgs;
|
|
85
|
-
}
|
|
94
|
+
};
|
|
86
95
|
|
|
87
96
|
/** Gets the encoder for {@link TreeConfigArgs} account data. */
|
|
88
97
|
export function getTreeConfigEncoder(): FixedSizeEncoder<TreeConfigArgs> {
|
|
@@ -159,7 +168,7 @@ export async function fetchMaybeTreeConfig<TAddress extends string = string>(
|
|
|
159
168
|
|
|
160
169
|
export async function fetchAllTreeConfig(
|
|
161
170
|
rpc: Parameters<typeof fetchEncodedAccounts>[0],
|
|
162
|
-
addresses: Address
|
|
171
|
+
addresses: Array<Address>,
|
|
163
172
|
config?: FetchAccountsConfig,
|
|
164
173
|
): Promise<Account<TreeConfig>[]> {
|
|
165
174
|
const maybeAccounts = await fetchAllMaybeTreeConfig(rpc, addresses, config);
|
|
@@ -169,7 +178,7 @@ export async function fetchAllTreeConfig(
|
|
|
169
178
|
|
|
170
179
|
export async function fetchAllMaybeTreeConfig(
|
|
171
180
|
rpc: Parameters<typeof fetchEncodedAccounts>[0],
|
|
172
|
-
addresses: Address
|
|
181
|
+
addresses: Array<Address>,
|
|
173
182
|
config?: FetchAccountsConfig,
|
|
174
183
|
): Promise<MaybeAccount<TreeConfig>[]> {
|
|
175
184
|
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|
|
@@ -6,21 +6,6 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type {
|
|
10
|
-
Account,
|
|
11
|
-
Address,
|
|
12
|
-
Codec,
|
|
13
|
-
Decoder,
|
|
14
|
-
EncodedAccount,
|
|
15
|
-
Encoder,
|
|
16
|
-
FetchAccountConfig,
|
|
17
|
-
FetchAccountsConfig,
|
|
18
|
-
MaybeAccount,
|
|
19
|
-
MaybeEncodedAccount,
|
|
20
|
-
ReadonlyUint8Array,
|
|
21
|
-
} from "@solana/kit";
|
|
22
|
-
import type { VoucherSeeds } from "../pdas/index.js";
|
|
23
|
-
import type { LeafSchema, LeafSchemaArgs } from "../types/index.js";
|
|
24
9
|
import {
|
|
25
10
|
assertAccountExists,
|
|
26
11
|
assertAccountsExist,
|
|
@@ -39,9 +24,25 @@ import {
|
|
|
39
24
|
getU32Decoder,
|
|
40
25
|
getU32Encoder,
|
|
41
26
|
transformEncoder,
|
|
27
|
+
type Account,
|
|
28
|
+
type Address,
|
|
29
|
+
type Codec,
|
|
30
|
+
type Decoder,
|
|
31
|
+
type EncodedAccount,
|
|
32
|
+
type Encoder,
|
|
33
|
+
type FetchAccountConfig,
|
|
34
|
+
type FetchAccountsConfig,
|
|
35
|
+
type MaybeAccount,
|
|
36
|
+
type MaybeEncodedAccount,
|
|
37
|
+
type ReadonlyUint8Array,
|
|
42
38
|
} from "@solana/kit";
|
|
43
|
-
import { findVoucherPda } from "../pdas/index.js";
|
|
44
|
-
import {
|
|
39
|
+
import { findVoucherPda, type VoucherSeeds } from "../pdas/index.js";
|
|
40
|
+
import {
|
|
41
|
+
getLeafSchemaDecoder,
|
|
42
|
+
getLeafSchemaEncoder,
|
|
43
|
+
type LeafSchema,
|
|
44
|
+
type LeafSchemaArgs,
|
|
45
|
+
} from "../types/index.js";
|
|
45
46
|
|
|
46
47
|
export const VOUCHER_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([
|
|
47
48
|
191, 204, 149, 234, 213, 165, 13, 65,
|
|
@@ -51,18 +52,24 @@ export function getVoucherDiscriminatorBytes(): ReadonlyUint8Array {
|
|
|
51
52
|
return fixEncoderSize(getBytesEncoder(), 8).encode(VOUCHER_DISCRIMINATOR);
|
|
52
53
|
}
|
|
53
54
|
|
|
54
|
-
export
|
|
55
|
+
export type Voucher = {
|
|
55
56
|
discriminator: ReadonlyUint8Array;
|
|
57
|
+
/** Snapshot of the redeemed leaf's data, preserved until it is decompressed or the redeem is cancelled. */
|
|
56
58
|
leafSchema: LeafSchema;
|
|
59
|
+
/** Position the leaf occupied in the Merkle tree before it was redeemed. */
|
|
57
60
|
index: number;
|
|
61
|
+
/** Address of the tree the leaf was redeemed from. */
|
|
58
62
|
merkleTree: Address;
|
|
59
|
-
}
|
|
63
|
+
};
|
|
60
64
|
|
|
61
|
-
export
|
|
65
|
+
export type VoucherArgs = {
|
|
66
|
+
/** Snapshot of the redeemed leaf's data, preserved until it is decompressed or the redeem is cancelled. */
|
|
62
67
|
leafSchema: LeafSchemaArgs;
|
|
68
|
+
/** Position the leaf occupied in the Merkle tree before it was redeemed. */
|
|
63
69
|
index: number;
|
|
70
|
+
/** Address of the tree the leaf was redeemed from. */
|
|
64
71
|
merkleTree: Address;
|
|
65
|
-
}
|
|
72
|
+
};
|
|
66
73
|
|
|
67
74
|
/** Gets the encoder for {@link VoucherArgs} account data. */
|
|
68
75
|
export function getVoucherEncoder(): Encoder<VoucherArgs> {
|
|
@@ -128,7 +135,7 @@ export async function fetchMaybeVoucher<TAddress extends string = string>(
|
|
|
128
135
|
|
|
129
136
|
export async function fetchAllVoucher(
|
|
130
137
|
rpc: Parameters<typeof fetchEncodedAccounts>[0],
|
|
131
|
-
addresses: Address
|
|
138
|
+
addresses: Array<Address>,
|
|
132
139
|
config?: FetchAccountsConfig,
|
|
133
140
|
): Promise<Account<Voucher>[]> {
|
|
134
141
|
const maybeAccounts = await fetchAllMaybeVoucher(rpc, addresses, config);
|
|
@@ -138,7 +145,7 @@ export async function fetchAllVoucher(
|
|
|
138
145
|
|
|
139
146
|
export async function fetchAllMaybeVoucher(
|
|
140
147
|
rpc: Parameters<typeof fetchEncodedAccounts>[0],
|
|
141
|
-
addresses: Address
|
|
148
|
+
addresses: Array<Address>,
|
|
142
149
|
config?: FetchAccountsConfig,
|
|
143
150
|
): Promise<MaybeAccount<Voucher>[]> {
|
|
144
151
|
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|