@metaplex-foundation/mpl-token-metadata
Advanced tools
Comparing version 3.0.0-alpha.9 to 3.0.0-alpha.10
@@ -6,3 +6,3 @@ import { Context, PublicKey, Serializer, Signer, WrappedInstruction } from '@metaplex-foundation/umi'; | ||
metadata: PublicKey; | ||
collectionMint?: PublicKey; | ||
collectionMint: PublicKey; | ||
collectionMetadata?: PublicKey; | ||
@@ -18,2 +18,2 @@ systemProgram?: PublicKey; | ||
export declare function getUnverifyCollectionV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<UnverifyCollectionV1InstructionDataArgs, UnverifyCollectionV1InstructionData>; | ||
export declare function unverifyCollectionV1(context: Pick<Context, 'serializer' | 'programs' | 'identity'>, input: UnverifyCollectionV1InstructionAccounts): WrappedInstruction; | ||
export declare function unverifyCollectionV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity'>, input: UnverifyCollectionV1InstructionAccounts): WrappedInstruction; |
@@ -5,2 +5,3 @@ "use strict"; | ||
const umi_1 = require("@metaplex-foundation/umi"); | ||
const accounts_1 = require("../accounts"); | ||
function getUnverifyCollectionV1InstructionDataSerializer(context) { | ||
@@ -28,10 +29,5 @@ const s = context.serializer; | ||
const metadataAccount = input.metadata; | ||
const collectionMintAccount = input.collectionMint ?? { | ||
...programId, | ||
isWritable: false, | ||
}; | ||
const collectionMetadataAccount = input.collectionMetadata ?? { | ||
...programId, | ||
isWritable: false, | ||
}; | ||
const collectionMintAccount = input.collectionMint; | ||
const collectionMetadataAccount = input.collectionMetadata ?? | ||
(0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(collectionMintAccount) }); | ||
const systemProgramAccount = input.systemProgram ?? { | ||
@@ -38,0 +34,0 @@ ...context.programs.getPublicKey('splSystem', '11111111111111111111111111111111'), |
@@ -6,3 +6,3 @@ import { Context, PublicKey, Serializer, Signer, WrappedInstruction } from '@metaplex-foundation/umi'; | ||
metadata: PublicKey; | ||
collectionMint?: PublicKey; | ||
collectionMint: PublicKey; | ||
collectionMetadata?: PublicKey; | ||
@@ -19,2 +19,2 @@ collectionMasterEdition?: PublicKey; | ||
export declare function getVerifyCollectionV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<VerifyCollectionV1InstructionDataArgs, VerifyCollectionV1InstructionData>; | ||
export declare function verifyCollectionV1(context: Pick<Context, 'serializer' | 'programs' | 'identity'>, input: VerifyCollectionV1InstructionAccounts): WrappedInstruction; | ||
export declare function verifyCollectionV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity'>, input: VerifyCollectionV1InstructionAccounts): WrappedInstruction; |
@@ -5,2 +5,3 @@ "use strict"; | ||
const umi_1 = require("@metaplex-foundation/umi"); | ||
const accounts_1 = require("../accounts"); | ||
function getVerifyCollectionV1InstructionDataSerializer(context) { | ||
@@ -28,14 +29,7 @@ const s = context.serializer; | ||
const metadataAccount = input.metadata; | ||
const collectionMintAccount = input.collectionMint ?? { | ||
...programId, | ||
isWritable: false, | ||
}; | ||
const collectionMetadataAccount = input.collectionMetadata ?? { | ||
...programId, | ||
isWritable: false, | ||
}; | ||
const collectionMasterEditionAccount = input.collectionMasterEdition ?? { | ||
...programId, | ||
isWritable: false, | ||
}; | ||
const collectionMintAccount = input.collectionMint; | ||
const collectionMetadataAccount = input.collectionMetadata ?? | ||
(0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(collectionMintAccount) }); | ||
const collectionMasterEditionAccount = input.collectionMasterEdition ?? | ||
(0, accounts_1.findMasterEditionPda)(context, { mint: (0, umi_1.publicKey)(collectionMintAccount) }); | ||
const systemProgramAccount = input.systemProgram ?? { | ||
@@ -42,0 +36,0 @@ ...context.programs.getPublicKey('splSystem', '11111111111111111111111111111111'), |
{ | ||
"name": "@metaplex-foundation/mpl-token-metadata", | ||
"version": "3.0.0-alpha.9", | ||
"version": "3.0.0-alpha.10", | ||
"description": "JavaScript client for Token Metadata", | ||
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1175462
17386