Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metaplex-foundation/mpl-token-metadata

Package Overview
Dependencies
Maintainers
6
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metaplex-foundation/mpl-token-metadata - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

12

dist/src/generated/instructions/createV1.d.ts

@@ -58,15 +58,15 @@ /**

isMutable?: boolean;
tokenStandard: TokenStandardArgs;
tokenStandard?: TokenStandardArgs;
collection?: OptionOrNullable<CollectionArgs>;
uses?: OptionOrNullable<UsesArgs>;
collectionDetails?: OptionOrNullable<CollectionDetailsArgs>;
collectionDetails: OptionOrNullable<CollectionDetailsArgs>;
ruleSet?: OptionOrNullable<PublicKey>;
decimals?: OptionOrNullable<number>;
printSupply?: OptionOrNullable<PrintSupplyArgs>;
decimals: OptionOrNullable<number>;
printSupply: OptionOrNullable<PrintSupplyArgs>;
};
export declare function getCreateV1InstructionDataSerializer(): Serializer<CreateV1InstructionDataArgs, CreateV1InstructionData>;
export type CreateV1InstructionExtraArgs = {
isCollection: boolean;
isCollection?: boolean;
};
export type CreateV1InstructionArgs = PickPartial<CreateV1InstructionDataArgs & CreateV1InstructionExtraArgs, 'tokenStandard' | 'isCollection' | 'collectionDetails' | 'decimals' | 'printSupply' | 'creators'>;
export type CreateV1InstructionArgs = PickPartial<CreateV1InstructionDataArgs & CreateV1InstructionExtraArgs, 'tokenStandard' | 'creators' | 'isCollection' | 'collectionDetails' | 'decimals' | 'printSupply'>;
export declare function createV1(context: Pick<Context, 'eddsa' | 'identity' | 'payer' | 'programs'>, input: CreateV1InstructionAccounts & CreateV1InstructionArgs): TransactionBuilder;

@@ -42,8 +42,6 @@ "use strict";

isMutable: value.isMutable ?? true,
tokenStandard: value.tokenStandard ?? types_1.TokenStandard.NonFungible,
collection: value.collection ?? (0, umi_1.none)(),
uses: value.uses ?? (0, umi_1.none)(),
collectionDetails: value.collectionDetails ?? (0, umi_1.none)(),
ruleSet: value.ruleSet ?? (0, umi_1.none)(),
decimals: value.decimals ?? (0, umi_1.none)(),
printSupply: value.printSupply ?? (0, umi_1.none)(),
}));

@@ -140,2 +138,5 @@ }

}
if (!resolvedArgs.creators) {
resolvedArgs.creators = (0, hooked_1.resolveCreators)(context, resolvedAccounts, resolvedArgs, programId, false);
}
if (!resolvedArgs.isCollection) {

@@ -153,5 +154,2 @@ resolvedArgs.isCollection = false;

}
if (!resolvedArgs.creators) {
resolvedArgs.creators = (0, hooked_1.resolveCreators)(context, resolvedAccounts, resolvedArgs, programId, false);
}
// Accounts in order.

@@ -158,0 +156,0 @@ const orderedAccounts = Object.values(resolvedAccounts).sort((a, b) => a.index - b.index);

@@ -114,5 +114,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.AuthorityItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -119,0 +119,0 @@ });

@@ -114,5 +114,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.CollectionItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -119,0 +119,0 @@ });

@@ -114,5 +114,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.Collection,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -119,0 +119,0 @@ });

@@ -114,5 +114,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.DataItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -119,0 +119,0 @@ });

@@ -114,5 +114,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.Data,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -119,0 +119,0 @@ });

@@ -116,5 +116,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.ProgrammableConfigItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -121,0 +121,0 @@ });

@@ -116,5 +116,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.ProgrammableConfig,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -121,0 +121,0 @@ });

@@ -48,4 +48,6 @@ /**

systemProgram?: PublicKey | Pda;
/** The Delegate Record authorizing escrowless edition printing. */
/** The Delegate Record authorizing escrowless edition printing */
holderDelegateRecord?: PublicKey | Pda;
/** The authority printing the edition for a delegated print */
delegate?: Signer;
};

@@ -52,0 +54,0 @@ export type PrintV2InstructionData = {

@@ -127,2 +127,7 @@ "use strict";

},
delegate: {
index: 19,
isWritable: false,
value: input.delegate ?? null,
},
};

@@ -157,3 +162,8 @@ // Arguments.

if (resolvedAccounts.holderDelegateRecord.value) {
resolvedAccounts.editionMintAuthority.value = (0, shared_1.expectSome)(resolvedAccounts.payer.value);
if (resolvedAccounts.delegate.value) {
resolvedAccounts.editionMintAuthority.value = (0, shared_1.expectSome)(resolvedAccounts.delegate.value);
}
else {
resolvedAccounts.editionMintAuthority.value = (0, shared_1.expectSome)(resolvedAccounts.payer.value);
}
}

@@ -160,0 +170,0 @@ else {

@@ -112,5 +112,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.AuthorityItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -117,0 +117,0 @@ });

@@ -112,5 +112,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.CollectionItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -117,0 +117,0 @@ });

@@ -112,5 +112,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.Collection,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -117,0 +117,0 @@ });

@@ -112,5 +112,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.DataItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -117,0 +117,0 @@ });

@@ -108,5 +108,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.Data,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -113,0 +113,0 @@ });

@@ -114,5 +114,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.ProgrammableConfigItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -119,0 +119,0 @@ });

@@ -112,5 +112,5 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.ProgrammableConfig,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.delegate.value),

@@ -117,0 +117,0 @@ });

@@ -161,4 +161,4 @@ "use strict";

resolvedAccounts.destinationTokenRecord.value = (0, accounts_1.findTokenRecordPda)(context, {
token: (0, shared_1.expectPublicKey)(resolvedAccounts.destinationToken.value),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
token: (0, shared_1.expectPublicKey)(resolvedAccounts.destinationToken.value),
});

@@ -165,0 +165,0 @@ }

@@ -108,6 +108,6 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.AuthorityItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.authority.value),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
});

@@ -114,0 +114,0 @@ }

@@ -102,6 +102,6 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.CollectionItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.authority.value),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
});

@@ -108,0 +108,0 @@ }

@@ -100,6 +100,6 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.DataItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.authority.value),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
});

@@ -106,0 +106,0 @@ }

@@ -100,6 +100,6 @@ "use strict";

resolvedAccounts.delegateRecord.value = (0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
delegateRole: types_1.MetadataDelegateRole.ProgrammableConfigItem,
updateAuthority: (0, shared_1.expectSome)(resolvedArgs.updateAuthority),
delegate: (0, shared_1.expectPublicKey)(resolvedAccounts.authority.value),
mint: (0, shared_1.expectPublicKey)(resolvedAccounts.mint.value),
});

@@ -106,0 +106,0 @@ }

@@ -12,2 +12,5 @@ /**

size: bigint;
} | {
__kind: 'V2';
padding: Array<number>;
};

@@ -17,7 +20,11 @@ export type CollectionDetailsArgs = {

size: number | bigint;
} | {
__kind: 'V2';
padding: Array<number>;
};
export declare function getCollectionDetailsSerializer(): Serializer<CollectionDetailsArgs, CollectionDetails>;
export declare function collectionDetails(kind: 'V1', data: GetDataEnumKindContent<CollectionDetailsArgs, 'V1'>): GetDataEnumKind<CollectionDetailsArgs, 'V1'>;
export declare function collectionDetails(kind: 'V2', data: GetDataEnumKindContent<CollectionDetailsArgs, 'V2'>): GetDataEnumKind<CollectionDetailsArgs, 'V2'>;
export declare function isCollectionDetails<K extends CollectionDetails['__kind']>(kind: K, value: CollectionDetails): value is CollectionDetails & {
__kind: K;
};

@@ -20,2 +20,8 @@ "use strict";

],
[
'V2',
(0, serializers_1.struct)([
['padding', (0, serializers_1.array)((0, serializers_1.u8)(), { size: 8 })],
]),
],
], { description: 'CollectionDetails' });

@@ -22,0 +28,0 @@ }

{
"name": "@metaplex-foundation/mpl-token-metadata",
"version": "3.2.0",
"version": "3.2.1",
"description": "JavaScript client for Token Metadata",

@@ -22,3 +22,3 @@ "main": "dist/src/index.js",

"dependencies": {
"@metaplex-foundation/mpl-toolbox": "^0.9.0"
"@metaplex-foundation/mpl-toolbox": "^0.9.4"
},

@@ -25,0 +25,0 @@ "devDependencies": {

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc