@metaplex-foundation/mpl-bubblegum
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -10,3 +10,3 @@ /** | ||
import { Serializer } from '@metaplex-foundation/umi/serializers'; | ||
import { DecompressableState, DecompressableStateArgs } from '../types'; | ||
import { DecompressibleState, DecompressibleStateArgs } from '../types'; | ||
export declare type TreeConfig = Account<TreeConfigAccountData>; | ||
@@ -20,3 +20,3 @@ export declare type TreeConfigAccountData = { | ||
isPublic: boolean; | ||
isDecompressable: DecompressableState; | ||
isDecompressible: DecompressibleState; | ||
}; | ||
@@ -29,3 +29,3 @@ export declare type TreeConfigAccountDataArgs = { | ||
isPublic: boolean; | ||
isDecompressable: DecompressableStateArgs; | ||
isDecompressible: DecompressibleStateArgs; | ||
}; | ||
@@ -45,3 +45,3 @@ export declare function getTreeConfigAccountDataSerializer(): Serializer<TreeConfigAccountDataArgs, TreeConfigAccountData>; | ||
isPublic: boolean; | ||
isDecompressable: DecompressableStateArgs; | ||
isDecompressible: DecompressibleStateArgs; | ||
}>; | ||
@@ -48,0 +48,0 @@ export declare function getTreeConfigSize(): number; |
@@ -22,3 +22,3 @@ "use strict"; | ||
['isPublic', (0, serializers_1.bool)()], | ||
['isDecompressable', (0, types_1.getDecompressableStateSerializer)()], | ||
['isDecompressible', (0, types_1.getDecompressibleStateSerializer)()], | ||
], { description: 'TreeConfigAccountData' }), (value) => ({ | ||
@@ -70,3 +70,3 @@ ...value, | ||
isPublic: [88, (0, serializers_1.bool)()], | ||
isDecompressable: [89, (0, types_1.getDecompressableStateSerializer)()], | ||
isDecompressible: [89, (0, types_1.getDecompressibleStateSerializer)()], | ||
}) | ||
@@ -73,0 +73,0 @@ .deserializeUsing((account) => deserializeTreeConfig(account)) |
@@ -17,3 +17,3 @@ /** | ||
export * from './setAndVerifyCollection'; | ||
export * from './setDecompressableState'; | ||
export * from './setDecompressibleState'; | ||
export * from './setTreeDelegate'; | ||
@@ -20,0 +20,0 @@ export * from './transfer'; |
@@ -33,3 +33,3 @@ "use strict"; | ||
__exportStar(require("./setAndVerifyCollection"), exports); | ||
__exportStar(require("./setDecompressableState"), exports); | ||
__exportStar(require("./setDecompressibleState"), exports); | ||
__exportStar(require("./setTreeDelegate"), exports); | ||
@@ -36,0 +36,0 @@ __exportStar(require("./transfer"), exports); |
@@ -118,6 +118,2 @@ "use strict"; | ||
} | ||
if (!resolvedAccounts.collectionAuthorityRecordPda.value) { | ||
resolvedAccounts.collectionAuthorityRecordPda.value = programId; | ||
resolvedAccounts.collectionAuthorityRecordPda.isWritable = false; | ||
} | ||
if (!resolvedAccounts.collectionMetadata.value) { | ||
@@ -124,0 +120,0 @@ resolvedAccounts.collectionMetadata.value = (0, mpl_token_metadata_1.findMetadataPda)(context, { |
@@ -19,2 +19,3 @@ /** | ||
/** | ||
* This account is checked to be a signer in | ||
* the case of `set_and_verify_collection` where | ||
@@ -21,0 +22,0 @@ * we are actually changing the NFT metadata. |
@@ -129,6 +129,2 @@ "use strict"; | ||
} | ||
if (!resolvedAccounts.collectionAuthorityRecordPda.value) { | ||
resolvedAccounts.collectionAuthorityRecordPda.value = programId; | ||
resolvedAccounts.collectionAuthorityRecordPda.isWritable = false; | ||
} | ||
if (!resolvedAccounts.collectionMetadata.value) { | ||
@@ -135,0 +131,0 @@ resolvedAccounts.collectionMetadata.value = (0, mpl_token_metadata_1.findMetadataPda)(context, { |
@@ -19,2 +19,3 @@ /** | ||
/** | ||
* This account is checked to be a signer in | ||
* the case of `set_and_verify_collection` where | ||
@@ -21,0 +22,0 @@ * we are actually changing the NFT metadata. |
@@ -128,6 +128,2 @@ "use strict"; | ||
} | ||
if (!resolvedAccounts.collectionAuthorityRecordPda.value) { | ||
resolvedAccounts.collectionAuthorityRecordPda.value = programId; | ||
resolvedAccounts.collectionAuthorityRecordPda.isWritable = false; | ||
} | ||
if (!resolvedAccounts.collectionMetadata.value) { | ||
@@ -134,0 +130,0 @@ resolvedAccounts.collectionMetadata.value = (0, mpl_token_metadata_1.findMetadataPda)(context, { |
@@ -19,2 +19,3 @@ /** | ||
/** | ||
* This account is checked to be a signer in | ||
* the case of `set_and_verify_collection` where | ||
@@ -21,0 +22,0 @@ * we are actually changing the NFT metadata. |
@@ -128,6 +128,2 @@ "use strict"; | ||
} | ||
if (!resolvedAccounts.collectionAuthorityRecordPda.value) { | ||
resolvedAccounts.collectionAuthorityRecordPda.value = programId; | ||
resolvedAccounts.collectionAuthorityRecordPda.isWritable = false; | ||
} | ||
if (!resolvedAccounts.collectionMetadata.value) { | ||
@@ -134,0 +130,0 @@ resolvedAccounts.collectionMetadata.value = (0, mpl_token_metadata_1.findMetadataPda)(context, { |
@@ -13,2 +13,7 @@ /** | ||
verified: boolean; | ||
/** | ||
* The percentage share. | ||
* | ||
* The value is a percentage, not basis points. | ||
*/ | ||
share: number; | ||
@@ -15,0 +20,0 @@ }; |
@@ -14,4 +14,3 @@ /** | ||
export * from './creator'; | ||
export * from './decompressableState'; | ||
export * from './instructionName'; | ||
export * from './decompressibleState'; | ||
export * from './leafSchema'; | ||
@@ -18,0 +17,0 @@ export * from './metadataArgs'; |
@@ -30,4 +30,3 @@ "use strict"; | ||
__exportStar(require("./creator"), exports); | ||
__exportStar(require("./decompressableState"), exports); | ||
__exportStar(require("./instructionName"), exports); | ||
__exportStar(require("./decompressibleState"), exports); | ||
__exportStar(require("./leafSchema"), exports); | ||
@@ -34,0 +33,0 @@ __exportStar(require("./metadataArgs"), exports); |
{ | ||
"name": "@metaplex-foundation/mpl-bubblegum", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Create and interact with compressed Metaplex NFTs", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
386351
194
6006
1