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
10
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.0.0-alpha.8 to 3.0.0-alpha.9

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

10

dist/src/generated/errors/mplTokenMetadata.d.ts

@@ -927,3 +927,13 @@ import { Program, ProgramError } from '@metaplex-foundation/umi';

}
export declare class MissingCollectionMintError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
export declare class MissingCollectionMasterEditionError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
export declare function getMplTokenMetadataErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null;
export declare function getMplTokenMetadataErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null;

6

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

@@ -65,3 +65,6 @@ export * from './approveCollectionAuthority';

export * from './unlockV1';
export * from './unverify';
export * from './unverifyCollection';
export * from './unverifyCollectionV1';
export * from './unverifyCreatorV1';
export * from './unverifySizedCollectionItem';

@@ -78,3 +81,4 @@ export * from './update';

export * from './verifyCollection';
export * from './verifyCollectionV1';
export * from './verifyCreatorV1';
export * from './verifySizedCollectionItem';
export * from './verifyV1';

@@ -81,3 +81,6 @@ "use strict";

__exportStar(require("./unlockV1"), exports);
__exportStar(require("./unverify"), exports);
__exportStar(require("./unverifyCollection"), exports);
__exportStar(require("./unverifyCollectionV1"), exports);
__exportStar(require("./unverifyCreatorV1"), exports);
__exportStar(require("./unverifySizedCollectionItem"), exports);

@@ -94,4 +97,5 @@ __exportStar(require("./update"), exports);

__exportStar(require("./verifyCollection"), exports);
__exportStar(require("./verifyCollectionV1"), exports);
__exportStar(require("./verifyCreatorV1"), exports);
__exportStar(require("./verifySizedCollectionItem"), exports);
__exportStar(require("./verifyV1"), exports);
//# sourceMappingURL=index.js.map

19

dist/src/generated/instructions/verify.d.ts
import { Context, PublicKey, Serializer, Signer, WrappedInstruction } from '@metaplex-foundation/umi';
import { VerifyArgs, VerifyArgsArgs } from '../types';
import { VerificationArgs, VerificationArgsArgs } from '../types';
export type VerifyInstructionAccounts = {
authority?: Signer;
delegateRecord?: PublicKey;
metadata: PublicKey;
collectionAuthority: Signer;
payer?: Signer;
authorizationRules?: PublicKey;
authorizationRulesProgram?: PublicKey;
collectionMint?: PublicKey;
collectionMetadata?: PublicKey;
collectionMasterEdition?: PublicKey;
systemProgram?: PublicKey;
sysvarInstructions?: PublicKey;
};
export type VerifyInstructionData = {
discriminator: number;
verifyArgs: VerifyArgs;
verificationArgs: VerificationArgs;
};
export type VerifyInstructionDataArgs = {
verifyArgs: VerifyArgsArgs;
verificationArgs: VerificationArgsArgs;
};
export declare function getVerifyInstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<VerifyInstructionDataArgs, VerifyInstructionData>;
export declare function verify(context: Pick<Context, 'serializer' | 'programs' | 'payer'>, input: VerifyInstructionAccounts & VerifyInstructionDataArgs): WrappedInstruction;
export declare function verify(context: Pick<Context, 'serializer' | 'programs' | 'identity'>, input: VerifyInstructionAccounts & VerifyInstructionDataArgs): WrappedInstruction;

@@ -10,3 +10,3 @@ "use strict";

['discriminator', s.u8()],
['verifyArgs', (0, types_1.getVerifyArgsSerializer)(context)],
['verificationArgs', (0, types_1.getVerificationArgsSerializer)(context)],
], { description: 'VerifyInstructionData' }), (value) => ({ ...value, discriminator: 52 }));

@@ -19,14 +19,38 @@ }

const programId = context.programs.getPublicKey('mplTokenMetadata', 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s');
const authorityAccount = input.authority ?? context.identity;
const delegateRecordAccount = input.delegateRecord ?? {
...programId,
isWritable: false,
};
const metadataAccount = input.metadata;
const collectionAuthorityAccount = input.collectionAuthority;
const payerAccount = input.payer ?? context.payer;
const authorizationRulesAccount = input.authorizationRules ?? {
const collectionMintAccount = input.collectionMint ?? {
...programId,
isWritable: false,
};
const authorizationRulesProgramAccount = input.authorizationRulesProgram ?? {
const collectionMetadataAccount = input.collectionMetadata ?? {
...programId,
isWritable: false,
};
const collectionMasterEditionAccount = input.collectionMasterEdition ?? {
...programId,
isWritable: false,
};
const systemProgramAccount = input.systemProgram ?? {
...context.programs.getPublicKey('splSystem', '11111111111111111111111111111111'),
isWritable: false,
};
const sysvarInstructionsAccount = input.sysvarInstructions ??
(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111');
signers.push(authorityAccount);
keys.push({
pubkey: authorityAccount.publicKey,
isSigner: true,
isWritable: (0, umi_1.checkForIsWritableOverride)(authorityAccount, false),
});
keys.push({
pubkey: delegateRecordAccount,
isSigner: false,
isWritable: (0, umi_1.checkForIsWritableOverride)(delegateRecordAccount, false),
});
keys.push({
pubkey: metadataAccount,

@@ -36,24 +60,27 @@ isSigner: false,

});
signers.push(collectionAuthorityAccount);
keys.push({
pubkey: collectionAuthorityAccount.publicKey,
isSigner: true,
isWritable: (0, umi_1.checkForIsWritableOverride)(collectionAuthorityAccount, true),
pubkey: collectionMintAccount,
isSigner: false,
isWritable: (0, umi_1.checkForIsWritableOverride)(collectionMintAccount, false),
});
signers.push(payerAccount);
keys.push({
pubkey: payerAccount.publicKey,
isSigner: true,
isWritable: (0, umi_1.checkForIsWritableOverride)(payerAccount, true),
pubkey: collectionMetadataAccount,
isSigner: false,
isWritable: (0, umi_1.checkForIsWritableOverride)(collectionMetadataAccount, true),
});
keys.push({
pubkey: authorizationRulesAccount,
pubkey: collectionMasterEditionAccount,
isSigner: false,
isWritable: (0, umi_1.checkForIsWritableOverride)(authorizationRulesAccount, false),
isWritable: (0, umi_1.checkForIsWritableOverride)(collectionMasterEditionAccount, false),
});
keys.push({
pubkey: authorizationRulesProgramAccount,
pubkey: systemProgramAccount,
isSigner: false,
isWritable: (0, umi_1.checkForIsWritableOverride)(authorizationRulesProgramAccount, false),
isWritable: (0, umi_1.checkForIsWritableOverride)(systemProgramAccount, false),
});
keys.push({
pubkey: sysvarInstructionsAccount,
isSigner: false,
isWritable: (0, umi_1.checkForIsWritableOverride)(sysvarInstructionsAccount, false),
});
const data = getVerifyInstructionDataSerializer(context).serialize(input);

@@ -60,0 +87,0 @@ const bytesCreatedOnChain = 0;

@@ -44,2 +44,2 @@ export * from './authorityType';

export * from './usesToggle';
export * from './verifyArgs';
export * from './verificationArgs';

@@ -60,3 +60,3 @@ "use strict";

__exportStar(require("./usesToggle"), exports);
__exportStar(require("./verifyArgs"), exports);
__exportStar(require("./verificationArgs"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@metaplex-foundation/mpl-token-metadata",
"version": "3.0.0-alpha.8",
"version": "3.0.0-alpha.9",
"description": "JavaScript client for Token Metadata",

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

"dependencies": {
"@metaplex-foundation/mpl-essentials": "^0.3.1"
"@metaplex-foundation/mpl-essentials": "^0.3.4"
},

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

Sorry, the diff of this file is too big to display

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