Socket
Socket
Sign inDemoInstall

@metaplex-foundation/mpl-token-metadata

Package Overview
Dependencies
2
Maintainers
10
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-alpha.17 to 3.0.0-alpha.18

1

dist/src/fetchJsonMetadata.d.ts

@@ -8,2 +8,3 @@ import { Context } from '@metaplex-foundation/umi';

image?: string;
animation_url?: string;
external_url?: string;

@@ -10,0 +11,0 @@ attributes?: Array<{

@@ -37,1 +37,3 @@ /**

}): Pda;
export declare function fetchCollectionAuthorityRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findCollectionAuthorityRecordPda>[1], options?: RpcGetAccountOptions): Promise<CollectionAuthorityRecord>;
export declare function safeFetchCollectionAuthorityRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findCollectionAuthorityRecordPda>[1], options?: RpcGetAccountOptions): Promise<CollectionAuthorityRecord | null>;

15

dist/src/generated/accounts/collectionAuthorityRecord.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.findCollectionAuthorityRecordPda = exports.getCollectionAuthorityRecordGpaBuilder = exports.safeFetchAllCollectionAuthorityRecord = exports.fetchAllCollectionAuthorityRecord = exports.safeFetchCollectionAuthorityRecord = exports.fetchCollectionAuthorityRecord = exports.deserializeCollectionAuthorityRecord = exports.getCollectionAuthorityRecordAccountDataSerializer = void 0;
exports.safeFetchCollectionAuthorityRecordFromSeeds = exports.fetchCollectionAuthorityRecordFromSeeds = exports.findCollectionAuthorityRecordPda = exports.getCollectionAuthorityRecordGpaBuilder = exports.safeFetchAllCollectionAuthorityRecord = exports.fetchAllCollectionAuthorityRecord = exports.safeFetchCollectionAuthorityRecord = exports.fetchCollectionAuthorityRecord = exports.deserializeCollectionAuthorityRecord = exports.getCollectionAuthorityRecordAccountDataSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -20,6 +20,3 @@ const types_1 = require("../types");

['updateAuthority', s.option(s.publicKey())],
], { description: 'CollectionAuthorityRecordAccountData' }), (value) => ({
...value,
key: types_1.Key.CollectionAuthorityRecord,
}));
], { description: 'CollectionAuthorityRecordAccountData' }), (value) => ({ ...value, key: types_1.Key.CollectionAuthorityRecord }));
}

@@ -84,2 +81,10 @@ exports.getCollectionAuthorityRecordAccountDataSerializer = getCollectionAuthorityRecordAccountDataSerializer;

exports.findCollectionAuthorityRecordPda = findCollectionAuthorityRecordPda;
async function fetchCollectionAuthorityRecordFromSeeds(context, seeds, options) {
return fetchCollectionAuthorityRecord(context, findCollectionAuthorityRecordPda(context, seeds), options);
}
exports.fetchCollectionAuthorityRecordFromSeeds = fetchCollectionAuthorityRecordFromSeeds;
async function safeFetchCollectionAuthorityRecordFromSeeds(context, seeds, options) {
return safeFetchCollectionAuthorityRecord(context, findCollectionAuthorityRecordPda(context, seeds), options);
}
exports.safeFetchCollectionAuthorityRecordFromSeeds = safeFetchCollectionAuthorityRecordFromSeeds;
//# sourceMappingURL=collectionAuthorityRecord.js.map

@@ -36,1 +36,3 @@ /**

}): Pda;
export declare function fetchMasterEditionFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findMasterEditionPda>[1], options?: RpcGetAccountOptions): Promise<MasterEdition>;
export declare function safeFetchMasterEditionFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findMasterEditionPda>[1], options?: RpcGetAccountOptions): Promise<MasterEdition | null>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.findMasterEditionPda = exports.getMasterEditionSize = exports.getMasterEditionGpaBuilder = exports.safeFetchAllMasterEdition = exports.fetchAllMasterEdition = exports.safeFetchMasterEdition = exports.fetchMasterEdition = exports.deserializeMasterEdition = exports.getMasterEditionAccountDataSerializer = void 0;
exports.safeFetchMasterEditionFromSeeds = exports.fetchMasterEditionFromSeeds = exports.findMasterEditionPda = exports.getMasterEditionSize = exports.getMasterEditionGpaBuilder = exports.safeFetchAllMasterEdition = exports.fetchAllMasterEdition = exports.safeFetchMasterEdition = exports.fetchMasterEdition = exports.deserializeMasterEdition = exports.getMasterEditionAccountDataSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -83,2 +83,10 @@ const types_1 = require("../types");

exports.findMasterEditionPda = findMasterEditionPda;
async function fetchMasterEditionFromSeeds(context, seeds, options) {
return fetchMasterEdition(context, findMasterEditionPda(context, seeds), options);
}
exports.fetchMasterEditionFromSeeds = fetchMasterEditionFromSeeds;
async function safeFetchMasterEditionFromSeeds(context, seeds, options) {
return safeFetchMasterEdition(context, findMasterEditionPda(context, seeds), options);
}
exports.safeFetchMasterEditionFromSeeds = safeFetchMasterEditionFromSeeds;
//# sourceMappingURL=masterEdition.js.map

@@ -75,1 +75,3 @@ /**

}): Pda;
export declare function fetchMetadataFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findMetadataPda>[1], options?: RpcGetAccountOptions): Promise<Metadata>;
export declare function safeFetchMetadataFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findMetadataPda>[1], options?: RpcGetAccountOptions): Promise<Metadata | null>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.findMetadataPda = exports.getMetadataSize = exports.getMetadataGpaBuilder = exports.safeFetchAllMetadata = exports.fetchAllMetadata = exports.safeFetchMetadata = exports.fetchMetadata = exports.deserializeMetadata = exports.getMetadataAccountDataSerializer = void 0;
exports.safeFetchMetadataFromSeeds = exports.fetchMetadataFromSeeds = exports.findMetadataPda = exports.getMetadataSize = exports.getMetadataGpaBuilder = exports.safeFetchAllMetadata = exports.fetchAllMetadata = exports.safeFetchMetadata = exports.fetchMetadata = exports.deserializeMetadata = exports.getMetadataAccountDataSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -120,2 +120,10 @@ const types_1 = require("../types");

exports.findMetadataPda = findMetadataPda;
async function fetchMetadataFromSeeds(context, seeds, options) {
return fetchMetadata(context, findMetadataPda(context, seeds), options);
}
exports.fetchMetadataFromSeeds = fetchMetadataFromSeeds;
async function safeFetchMetadataFromSeeds(context, seeds, options) {
return safeFetchMetadata(context, findMetadataPda(context, seeds), options);
}
exports.safeFetchMetadataFromSeeds = safeFetchMetadataFromSeeds;
//# sourceMappingURL=metadata.js.map

@@ -50,1 +50,3 @@ /**

}): Pda;
export declare function fetchMetadataDelegateRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findMetadataDelegateRecordPda>[1], options?: RpcGetAccountOptions): Promise<MetadataDelegateRecord>;
export declare function safeFetchMetadataDelegateRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findMetadataDelegateRecordPda>[1], options?: RpcGetAccountOptions): Promise<MetadataDelegateRecord | null>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.findMetadataDelegateRecordPda = exports.getMetadataDelegateRecordSize = exports.getMetadataDelegateRecordGpaBuilder = exports.safeFetchAllMetadataDelegateRecord = exports.fetchAllMetadataDelegateRecord = exports.safeFetchMetadataDelegateRecord = exports.fetchMetadataDelegateRecord = exports.deserializeMetadataDelegateRecord = exports.getMetadataDelegateRecordAccountDataSerializer = void 0;
exports.safeFetchMetadataDelegateRecordFromSeeds = exports.fetchMetadataDelegateRecordFromSeeds = exports.findMetadataDelegateRecordPda = exports.getMetadataDelegateRecordSize = exports.getMetadataDelegateRecordGpaBuilder = exports.safeFetchAllMetadataDelegateRecord = exports.fetchAllMetadataDelegateRecord = exports.safeFetchMetadataDelegateRecord = exports.fetchMetadataDelegateRecord = exports.deserializeMetadataDelegateRecord = exports.getMetadataDelegateRecordAccountDataSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -89,2 +89,10 @@ const hooked_1 = require("../../hooked");

exports.findMetadataDelegateRecordPda = findMetadataDelegateRecordPda;
async function fetchMetadataDelegateRecordFromSeeds(context, seeds, options) {
return fetchMetadataDelegateRecord(context, findMetadataDelegateRecordPda(context, seeds), options);
}
exports.fetchMetadataDelegateRecordFromSeeds = fetchMetadataDelegateRecordFromSeeds;
async function safeFetchMetadataDelegateRecordFromSeeds(context, seeds, options) {
return safeFetchMetadataDelegateRecord(context, findMetadataDelegateRecordPda(context, seeds), options);
}
exports.safeFetchMetadataDelegateRecordFromSeeds = safeFetchMetadataDelegateRecordFromSeeds;
//# sourceMappingURL=metadataDelegateRecord.js.map

@@ -50,1 +50,3 @@ /**

}): Pda;
export declare function fetchTokenRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findTokenRecordPda>[1], options?: RpcGetAccountOptions): Promise<TokenRecord>;
export declare function safeFetchTokenRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findTokenRecordPda>[1], options?: RpcGetAccountOptions): Promise<TokenRecord | null>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.findTokenRecordPda = exports.getTokenRecordSize = exports.getTokenRecordGpaBuilder = exports.safeFetchAllTokenRecord = exports.fetchAllTokenRecord = exports.safeFetchTokenRecord = exports.fetchTokenRecord = exports.deserializeTokenRecord = exports.getTokenRecordAccountDataSerializer = void 0;
exports.safeFetchTokenRecordFromSeeds = exports.fetchTokenRecordFromSeeds = exports.findTokenRecordPda = exports.getTokenRecordSize = exports.getTokenRecordGpaBuilder = exports.safeFetchAllTokenRecord = exports.fetchAllTokenRecord = exports.safeFetchTokenRecord = exports.fetchTokenRecord = exports.deserializeTokenRecord = exports.getTokenRecordAccountDataSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -92,2 +92,10 @@ const types_1 = require("../types");

exports.findTokenRecordPda = findTokenRecordPda;
async function fetchTokenRecordFromSeeds(context, seeds, options) {
return fetchTokenRecord(context, findTokenRecordPda(context, seeds), options);
}
exports.fetchTokenRecordFromSeeds = fetchTokenRecordFromSeeds;
async function safeFetchTokenRecordFromSeeds(context, seeds, options) {
return safeFetchTokenRecord(context, findTokenRecordPda(context, seeds), options);
}
exports.safeFetchTokenRecordFromSeeds = safeFetchTokenRecordFromSeeds;
//# sourceMappingURL=tokenRecord.js.map

@@ -38,1 +38,3 @@ /**

}): Pda;
export declare function fetchUseAuthorityRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findUseAuthorityRecordPda>[1], options?: RpcGetAccountOptions): Promise<UseAuthorityRecord>;
export declare function safeFetchUseAuthorityRecordFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc' | 'serializer'>, seeds: Parameters<typeof findUseAuthorityRecordPda>[1], options?: RpcGetAccountOptions): Promise<UseAuthorityRecord | null>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.findUseAuthorityRecordPda = exports.getUseAuthorityRecordSize = exports.getUseAuthorityRecordGpaBuilder = exports.safeFetchAllUseAuthorityRecord = exports.fetchAllUseAuthorityRecord = exports.safeFetchUseAuthorityRecord = exports.fetchUseAuthorityRecord = exports.deserializeUseAuthorityRecord = exports.getUseAuthorityRecordAccountDataSerializer = void 0;
exports.safeFetchUseAuthorityRecordFromSeeds = exports.fetchUseAuthorityRecordFromSeeds = exports.findUseAuthorityRecordPda = exports.getUseAuthorityRecordSize = exports.getUseAuthorityRecordGpaBuilder = exports.safeFetchAllUseAuthorityRecord = exports.fetchAllUseAuthorityRecord = exports.safeFetchUseAuthorityRecord = exports.fetchUseAuthorityRecord = exports.deserializeUseAuthorityRecord = exports.getUseAuthorityRecordAccountDataSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -20,6 +20,3 @@ const types_1 = require("../types");

['bump', s.u8()],
], { description: 'UseAuthorityRecordAccountData' }), (value) => ({
...value,
key: types_1.Key.UseAuthorityRecord,
}));
], { description: 'UseAuthorityRecordAccountData' }), (value) => ({ ...value, key: types_1.Key.UseAuthorityRecord }));
}

@@ -88,2 +85,10 @@ exports.getUseAuthorityRecordAccountDataSerializer = getUseAuthorityRecordAccountDataSerializer;

exports.findUseAuthorityRecordPda = findUseAuthorityRecordPda;
async function fetchUseAuthorityRecordFromSeeds(context, seeds, options) {
return fetchUseAuthorityRecord(context, findUseAuthorityRecordPda(context, seeds), options);
}
exports.fetchUseAuthorityRecordFromSeeds = fetchUseAuthorityRecordFromSeeds;
async function safeFetchUseAuthorityRecordFromSeeds(context, seeds, options) {
return safeFetchUseAuthorityRecord(context, findUseAuthorityRecordPda(context, seeds), options);
}
exports.safeFetchUseAuthorityRecordFromSeeds = safeFetchUseAuthorityRecordFromSeeds;
//# sourceMappingURL=useAuthorityRecord.js.map

@@ -9,3 +9,3 @@ /**

import { Program, ProgramError } from '@metaplex-foundation/umi';
/** InstructionUnpackError: 'Failed to unpack instruction data' */
/** InstructionUnpackError: Failed to unpack instruction data */
export declare class InstructionUnpackErrorError extends ProgramError {

@@ -16,3 +16,3 @@ readonly name: string;

}
/** InstructionPackError: 'Failed to pack instruction data' */
/** InstructionPackError: Failed to pack instruction data */
export declare class InstructionPackErrorError extends ProgramError {

@@ -23,3 +23,3 @@ readonly name: string;

}
/** NotRentExempt: 'Lamport balance below rent-exempt threshold' */
/** NotRentExempt: Lamport balance below rent-exempt threshold */
export declare class NotRentExemptError extends ProgramError {

@@ -30,3 +30,3 @@ readonly name: string;

}
/** AlreadyInitialized: 'Already initialized' */
/** AlreadyInitialized: Already initialized */
export declare class AlreadyInitializedError extends ProgramError {

@@ -37,3 +37,3 @@ readonly name: string;

}
/** Uninitialized: 'Uninitialized' */
/** Uninitialized: Uninitialized */
export declare class UninitializedError extends ProgramError {

@@ -44,3 +44,3 @@ readonly name: string;

}
/** InvalidMetadataKey: ' Metadata's key must match seed of ['metadata', program id, mint] provided' */
/** InvalidMetadataKey: Metadata's key must match seed of ['metadata', program id, mint] provided */
export declare class InvalidMetadataKeyError extends ProgramError {

@@ -51,3 +51,3 @@ readonly name: string;

}
/** InvalidEditionKey: 'Edition's key must match seed of ['metadata', program id, name, 'edition'] provided' */
/** InvalidEditionKey: Edition's key must match seed of ['metadata', program id, name, 'edition'] provided */
export declare class InvalidEditionKeyError extends ProgramError {

@@ -58,3 +58,3 @@ readonly name: string;

}
/** UpdateAuthorityIncorrect: 'Update Authority given does not match' */
/** UpdateAuthorityIncorrect: Update Authority given does not match */
export declare class UpdateAuthorityIncorrectError extends ProgramError {

@@ -65,3 +65,3 @@ readonly name: string;

}
/** UpdateAuthorityIsNotSigner: 'Update Authority needs to be signer to update metadata' */
/** UpdateAuthorityIsNotSigner: Update Authority needs to be signer to update metadata */
export declare class UpdateAuthorityIsNotSignerError extends ProgramError {

@@ -72,3 +72,3 @@ readonly name: string;

}
/** NotMintAuthority: 'You must be the mint authority and signer on this transaction' */
/** NotMintAuthority: You must be the mint authority and signer on this transaction */
export declare class NotMintAuthorityError extends ProgramError {

@@ -79,3 +79,3 @@ readonly name: string;

}
/** InvalidMintAuthority: 'Mint authority provided does not match the authority on the mint' */
/** InvalidMintAuthority: Mint authority provided does not match the authority on the mint */
export declare class InvalidMintAuthorityError extends ProgramError {

@@ -86,3 +86,3 @@ readonly name: string;

}
/** NameTooLong: 'Name too long' */
/** NameTooLong: Name too long */
export declare class NameTooLongError extends ProgramError {

@@ -93,3 +93,3 @@ readonly name: string;

}
/** SymbolTooLong: 'Symbol too long' */
/** SymbolTooLong: Symbol too long */
export declare class SymbolTooLongError extends ProgramError {

@@ -100,3 +100,3 @@ readonly name: string;

}
/** UriTooLong: 'URI too long' */
/** UriTooLong: URI too long */
export declare class UriTooLongError extends ProgramError {

@@ -107,3 +107,3 @@ readonly name: string;

}
/** UpdateAuthorityMustBeEqualToMetadataAuthorityAndSigner: 'Update authority must be equivalent to the metadata's authority and also signer of this transaction' */
/** UpdateAuthorityMustBeEqualToMetadataAuthorityAndSigner: Update authority must be equivalent to the metadata's authority and also signer of this transaction */
export declare class UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError extends ProgramError {

@@ -114,3 +114,3 @@ readonly name: string;

}
/** MintMismatch: 'Mint given does not match mint on Metadata' */
/** MintMismatch: Mint given does not match mint on Metadata */
export declare class MintMismatchError extends ProgramError {

@@ -121,3 +121,3 @@ readonly name: string;

}
/** EditionsMustHaveExactlyOneToken: 'Editions must have exactly one token' */
/** EditionsMustHaveExactlyOneToken: Editions must have exactly one token */
export declare class EditionsMustHaveExactlyOneTokenError extends ProgramError {

@@ -128,3 +128,3 @@ readonly name: string;

}
/** MaxEditionsMintedAlready: 'Maximum editions printed already' */
/** MaxEditionsMintedAlready: Maximum editions printed already */
export declare class MaxEditionsMintedAlreadyError extends ProgramError {

@@ -135,3 +135,3 @@ readonly name: string;

}
/** TokenMintToFailed: 'Token mint to failed' */
/** TokenMintToFailed: Token mint to failed */
export declare class TokenMintToFailedError extends ProgramError {

@@ -142,3 +142,3 @@ readonly name: string;

}
/** MasterRecordMismatch: 'The master edition record passed must match the master record on the edition given' */
/** MasterRecordMismatch: The master edition record passed must match the master record on the edition given */
export declare class MasterRecordMismatchError extends ProgramError {

@@ -149,3 +149,3 @@ readonly name: string;

}
/** DestinationMintMismatch: 'The destination account does not have the right mint' */
/** DestinationMintMismatch: The destination account does not have the right mint */
export declare class DestinationMintMismatchError extends ProgramError {

@@ -156,3 +156,3 @@ readonly name: string;

}
/** EditionAlreadyMinted: 'An edition can only mint one of its kind!' */
/** EditionAlreadyMinted: An edition can only mint one of its kind! */
export declare class EditionAlreadyMintedError extends ProgramError {

@@ -163,3 +163,3 @@ readonly name: string;

}
/** PrintingMintDecimalsShouldBeZero: 'Printing mint decimals should be zero' */
/** PrintingMintDecimalsShouldBeZero: Printing mint decimals should be zero */
export declare class PrintingMintDecimalsShouldBeZeroError extends ProgramError {

@@ -170,3 +170,3 @@ readonly name: string;

}
/** OneTimePrintingAuthorizationMintDecimalsShouldBeZero: 'OneTimePrintingAuthorization mint decimals should be zero' */
/** OneTimePrintingAuthorizationMintDecimalsShouldBeZero: OneTimePrintingAuthorization mint decimals should be zero */
export declare class OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError extends ProgramError {

@@ -177,3 +177,3 @@ readonly name: string;

}
/** EditionMintDecimalsShouldBeZero: 'EditionMintDecimalsShouldBeZero' */
/** EditionMintDecimalsShouldBeZero: EditionMintDecimalsShouldBeZero */
export declare class EditionMintDecimalsShouldBeZeroError extends ProgramError {

@@ -184,3 +184,3 @@ readonly name: string;

}
/** TokenBurnFailed: 'Token burn failed' */
/** TokenBurnFailed: Token burn failed */
export declare class TokenBurnFailedError extends ProgramError {

@@ -191,3 +191,3 @@ readonly name: string;

}
/** TokenAccountOneTimeAuthMintMismatch: 'The One Time authorization mint does not match that on the token account!' */
/** TokenAccountOneTimeAuthMintMismatch: The One Time authorization mint does not match that on the token account! */
export declare class TokenAccountOneTimeAuthMintMismatchError extends ProgramError {

@@ -198,3 +198,3 @@ readonly name: string;

}
/** DerivedKeyInvalid: 'Derived key invalid' */
/** DerivedKeyInvalid: Derived key invalid */
export declare class DerivedKeyInvalidError extends ProgramError {

@@ -205,3 +205,3 @@ readonly name: string;

}
/** PrintingMintMismatch: 'The Printing mint does not match that on the master edition!' */
/** PrintingMintMismatch: The Printing mint does not match that on the master edition! */
export declare class PrintingMintMismatchError extends ProgramError {

@@ -212,3 +212,3 @@ readonly name: string;

}
/** OneTimePrintingAuthMintMismatch: 'The One Time Printing Auth mint does not match that on the master edition!' */
/** OneTimePrintingAuthMintMismatch: The One Time Printing Auth mint does not match that on the master edition! */
export declare class OneTimePrintingAuthMintMismatchError extends ProgramError {

@@ -219,3 +219,3 @@ readonly name: string;

}
/** TokenAccountMintMismatch: 'The mint of the token account does not match the Printing mint!' */
/** TokenAccountMintMismatch: The mint of the token account does not match the Printing mint! */
export declare class TokenAccountMintMismatchError extends ProgramError {

@@ -226,3 +226,3 @@ readonly name: string;

}
/** TokenAccountMintMismatchV2: 'The mint of the token account does not match the master metadata mint!' */
/** TokenAccountMintMismatchV2: The mint of the token account does not match the master metadata mint! */
export declare class TokenAccountMintMismatchV2Error extends ProgramError {

@@ -233,3 +233,3 @@ readonly name: string;

}
/** NotEnoughTokens: 'Not enough tokens to mint a limited edition' */
/** NotEnoughTokens: Not enough tokens to mint a limited edition */
export declare class NotEnoughTokensError extends ProgramError {

@@ -240,3 +240,3 @@ readonly name: string;

}
/** PrintingMintAuthorizationAccountMismatch: 'The mint on your authorization token holding account does not match your Printing mint!' */
/** PrintingMintAuthorizationAccountMismatch: The mint on your authorization token holding account does not match your Printing mint! */
export declare class PrintingMintAuthorizationAccountMismatchError extends ProgramError {

@@ -247,3 +247,3 @@ readonly name: string;

}
/** AuthorizationTokenAccountOwnerMismatch: 'The authorization token account has a different owner than the update authority for the master edition!' */
/** AuthorizationTokenAccountOwnerMismatch: The authorization token account has a different owner than the update authority for the master edition! */
export declare class AuthorizationTokenAccountOwnerMismatchError extends ProgramError {

@@ -254,3 +254,3 @@ readonly name: string;

}
/** Disabled: 'This feature is currently disabled.' */
/** Disabled: This feature is currently disabled. */
export declare class DisabledError extends ProgramError {

@@ -261,3 +261,3 @@ readonly name: string;

}
/** CreatorsTooLong: 'Creators list too long' */
/** CreatorsTooLong: Creators list too long */
export declare class CreatorsTooLongError extends ProgramError {

@@ -268,3 +268,3 @@ readonly name: string;

}
/** CreatorsMustBeAtleastOne: 'Creators must be at least one if set' */
/** CreatorsMustBeAtleastOne: Creators must be at least one if set */
export declare class CreatorsMustBeAtleastOneError extends ProgramError {

@@ -275,3 +275,3 @@ readonly name: string;

}
/** MustBeOneOfCreators: 'If using a creators array, you must be one of the creators listed' */
/** MustBeOneOfCreators: If using a creators array, you must be one of the creators listed */
export declare class MustBeOneOfCreatorsError extends ProgramError {

@@ -282,3 +282,3 @@ readonly name: string;

}
/** NoCreatorsPresentOnMetadata: 'This metadata does not have creators' */
/** NoCreatorsPresentOnMetadata: This metadata does not have creators */
export declare class NoCreatorsPresentOnMetadataError extends ProgramError {

@@ -289,3 +289,3 @@ readonly name: string;

}
/** CreatorNotFound: 'This creator address was not found' */
/** CreatorNotFound: This creator address was not found */
export declare class CreatorNotFoundError extends ProgramError {

@@ -296,3 +296,3 @@ readonly name: string;

}
/** InvalidBasisPoints: 'Basis points cannot be more than 10000' */
/** InvalidBasisPoints: Basis points cannot be more than 10000 */
export declare class InvalidBasisPointsError extends ProgramError {

@@ -303,3 +303,3 @@ readonly name: string;

}
/** PrimarySaleCanOnlyBeFlippedToTrue: 'Primary sale can only be flipped to true and is immutable' */
/** PrimarySaleCanOnlyBeFlippedToTrue: Primary sale can only be flipped to true and is immutable */
export declare class PrimarySaleCanOnlyBeFlippedToTrueError extends ProgramError {

@@ -310,3 +310,3 @@ readonly name: string;

}
/** OwnerMismatch: 'Owner does not match that on the account given' */
/** OwnerMismatch: Owner does not match that on the account given */
export declare class OwnerMismatchError extends ProgramError {

@@ -317,3 +317,3 @@ readonly name: string;

}
/** NoBalanceInAccountForAuthorization: 'This account has no tokens to be used for authorization' */
/** NoBalanceInAccountForAuthorization: This account has no tokens to be used for authorization */
export declare class NoBalanceInAccountForAuthorizationError extends ProgramError {

@@ -324,3 +324,3 @@ readonly name: string;

}
/** ShareTotalMustBe100: 'Share total must equal 100 for creator array' */
/** ShareTotalMustBe100: Share total must equal 100 for creator array */
export declare class ShareTotalMustBe100Error extends ProgramError {

@@ -331,3 +331,3 @@ readonly name: string;

}
/** ReservationExists: 'This reservation list already exists!' */
/** ReservationExists: This reservation list already exists! */
export declare class ReservationExistsError extends ProgramError {

@@ -338,3 +338,3 @@ readonly name: string;

}
/** ReservationDoesNotExist: 'This reservation list does not exist!' */
/** ReservationDoesNotExist: This reservation list does not exist! */
export declare class ReservationDoesNotExistError extends ProgramError {

@@ -345,3 +345,3 @@ readonly name: string;

}
/** ReservationNotSet: 'This reservation list exists but was never set with reservations' */
/** ReservationNotSet: This reservation list exists but was never set with reservations */
export declare class ReservationNotSetError extends ProgramError {

@@ -352,3 +352,3 @@ readonly name: string;

}
/** ReservationAlreadyMade: 'This reservation list has already been set!' */
/** ReservationAlreadyMade: This reservation list has already been set! */
export declare class ReservationAlreadyMadeError extends ProgramError {

@@ -359,3 +359,3 @@ readonly name: string;

}
/** BeyondMaxAddressSize: 'Provided more addresses than max allowed in single reservation' */
/** BeyondMaxAddressSize: Provided more addresses than max allowed in single reservation */
export declare class BeyondMaxAddressSizeError extends ProgramError {

@@ -366,3 +366,3 @@ readonly name: string;

}
/** NumericalOverflowError: 'NumericalOverflowError' */
/** NumericalOverflowError: NumericalOverflowError */
export declare class NumericalOverflowErrorError extends ProgramError {

@@ -373,3 +373,3 @@ readonly name: string;

}
/** ReservationBreachesMaximumSupply: 'This reservation would go beyond the maximum supply of the master edition!' */
/** ReservationBreachesMaximumSupply: This reservation would go beyond the maximum supply of the master edition! */
export declare class ReservationBreachesMaximumSupplyError extends ProgramError {

@@ -380,3 +380,3 @@ readonly name: string;

}
/** AddressNotInReservation: 'Address not in reservation!' */
/** AddressNotInReservation: Address not in reservation! */
export declare class AddressNotInReservationError extends ProgramError {

@@ -387,3 +387,3 @@ readonly name: string;

}
/** CannotVerifyAnotherCreator: 'You cannot unilaterally verify another creator, they must sign' */
/** CannotVerifyAnotherCreator: You cannot unilaterally verify another creator, they must sign */
export declare class CannotVerifyAnotherCreatorError extends ProgramError {

@@ -394,3 +394,3 @@ readonly name: string;

}
/** CannotUnverifyAnotherCreator: 'You cannot unilaterally unverify another creator' */
/** CannotUnverifyAnotherCreator: You cannot unilaterally unverify another creator */
export declare class CannotUnverifyAnotherCreatorError extends ProgramError {

@@ -401,3 +401,3 @@ readonly name: string;

}
/** SpotMismatch: 'In initial reservation setting, spots remaining should equal total spots' */
/** SpotMismatch: In initial reservation setting, spots remaining should equal total spots */
export declare class SpotMismatchError extends ProgramError {

@@ -408,3 +408,3 @@ readonly name: string;

}
/** IncorrectOwner: 'Incorrect account owner' */
/** IncorrectOwner: Incorrect account owner */
export declare class IncorrectOwnerError extends ProgramError {

@@ -415,3 +415,3 @@ readonly name: string;

}
/** PrintingWouldBreachMaximumSupply: 'printing these tokens would breach the maximum supply limit of the master edition' */
/** PrintingWouldBreachMaximumSupply: printing these tokens would breach the maximum supply limit of the master edition */
export declare class PrintingWouldBreachMaximumSupplyError extends ProgramError {

@@ -422,3 +422,3 @@ readonly name: string;

}
/** DataIsImmutable: 'Data is immutable' */
/** DataIsImmutable: Data is immutable */
export declare class DataIsImmutableError extends ProgramError {

@@ -429,3 +429,3 @@ readonly name: string;

}
/** DuplicateCreatorAddress: 'No duplicate creator addresses' */
/** DuplicateCreatorAddress: No duplicate creator addresses */
export declare class DuplicateCreatorAddressError extends ProgramError {

@@ -436,3 +436,3 @@ readonly name: string;

}
/** ReservationSpotsRemainingShouldMatchTotalSpotsAtStart: 'Reservation spots remaining should match total spots when first being created' */
/** ReservationSpotsRemainingShouldMatchTotalSpotsAtStart: Reservation spots remaining should match total spots when first being created */
export declare class ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError extends ProgramError {

@@ -443,3 +443,3 @@ readonly name: string;

}
/** InvalidTokenProgram: 'Invalid token program' */
/** InvalidTokenProgram: Invalid token program */
export declare class InvalidTokenProgramError extends ProgramError {

@@ -450,3 +450,3 @@ readonly name: string;

}
/** DataTypeMismatch: 'Data type mismatch' */
/** DataTypeMismatch: Data type mismatch */
export declare class DataTypeMismatchError extends ProgramError {

@@ -457,3 +457,3 @@ readonly name: string;

}
/** BeyondAlottedAddressSize: 'Beyond alotted address size in reservation!' */
/** BeyondAlottedAddressSize: Beyond alotted address size in reservation! */
export declare class BeyondAlottedAddressSizeError extends ProgramError {

@@ -464,3 +464,3 @@ readonly name: string;

}
/** ReservationNotComplete: 'The reservation has only been partially alotted' */
/** ReservationNotComplete: The reservation has only been partially alotted */
export declare class ReservationNotCompleteError extends ProgramError {

@@ -471,3 +471,3 @@ readonly name: string;

}
/** TriedToReplaceAnExistingReservation: 'You cannot splice over an existing reservation!' */
/** TriedToReplaceAnExistingReservation: You cannot splice over an existing reservation! */
export declare class TriedToReplaceAnExistingReservationError extends ProgramError {

@@ -478,3 +478,3 @@ readonly name: string;

}
/** InvalidOperation: 'Invalid operation' */
/** InvalidOperation: Invalid operation */
export declare class InvalidOperationError extends ProgramError {

@@ -485,3 +485,3 @@ readonly name: string;

}
/** InvalidOwner: 'Invalid Owner' */
/** InvalidOwner: Invalid Owner */
export declare class InvalidOwnerError extends ProgramError {

@@ -492,3 +492,3 @@ readonly name: string;

}
/** PrintingMintSupplyMustBeZeroForConversion: 'Printing mint supply must be zero for conversion' */
/** PrintingMintSupplyMustBeZeroForConversion: Printing mint supply must be zero for conversion */
export declare class PrintingMintSupplyMustBeZeroForConversionError extends ProgramError {

@@ -499,3 +499,3 @@ readonly name: string;

}
/** OneTimeAuthMintSupplyMustBeZeroForConversion: 'One Time Auth mint supply must be zero for conversion' */
/** OneTimeAuthMintSupplyMustBeZeroForConversion: One Time Auth mint supply must be zero for conversion */
export declare class OneTimeAuthMintSupplyMustBeZeroForConversionError extends ProgramError {

@@ -506,3 +506,3 @@ readonly name: string;

}
/** InvalidEditionIndex: 'You tried to insert one edition too many into an edition mark pda' */
/** InvalidEditionIndex: You tried to insert one edition too many into an edition mark pda */
export declare class InvalidEditionIndexError extends ProgramError {

@@ -513,3 +513,3 @@ readonly name: string;

}
/** ReservationArrayShouldBeSizeOne: 'In the legacy system the reservation needs to be of size one for cpu limit reasons' */
/** ReservationArrayShouldBeSizeOne: In the legacy system the reservation needs to be of size one for cpu limit reasons */
export declare class ReservationArrayShouldBeSizeOneError extends ProgramError {

@@ -520,3 +520,3 @@ readonly name: string;

}
/** IsMutableCanOnlyBeFlippedToFalse: 'Is Mutable can only be flipped to false' */
/** IsMutableCanOnlyBeFlippedToFalse: Is Mutable can only be flipped to false */
export declare class IsMutableCanOnlyBeFlippedToFalseError extends ProgramError {

@@ -527,3 +527,3 @@ readonly name: string;

}
/** CollectionCannotBeVerifiedInThisInstruction: 'Collection cannot be verified in this instruction' */
/** CollectionCannotBeVerifiedInThisInstruction: Collection cannot be verified in this instruction */
export declare class CollectionCannotBeVerifiedInThisInstructionError extends ProgramError {

@@ -534,3 +534,3 @@ readonly name: string;

}
/** Removed: 'This instruction was deprecated in a previous release and is now removed' */
/** Removed: This instruction was deprecated in a previous release and is now removed */
export declare class RemovedError extends ProgramError {

@@ -541,3 +541,3 @@ readonly name: string;

}
/** MustBeBurned: 'This token use method is burn and there are no remaining uses, it must be burned' */
/** MustBeBurned: This token use method is burn and there are no remaining uses, it must be burned */
export declare class MustBeBurnedError extends ProgramError {

@@ -548,3 +548,3 @@ readonly name: string;

}
/** InvalidUseMethod: 'This use method is invalid' */
/** InvalidUseMethod: This use method is invalid */
export declare class InvalidUseMethodError extends ProgramError {

@@ -555,3 +555,3 @@ readonly name: string;

}
/** CannotChangeUseMethodAfterFirstUse: 'Cannot Change Use Method after the first use' */
/** CannotChangeUseMethodAfterFirstUse: Cannot Change Use Method after the first use */
export declare class CannotChangeUseMethodAfterFirstUseError extends ProgramError {

@@ -562,3 +562,3 @@ readonly name: string;

}
/** CannotChangeUsesAfterFirstUse: 'Cannot Change Remaining or Available uses after the first use' */
/** CannotChangeUsesAfterFirstUse: Cannot Change Remaining or Available uses after the first use */
export declare class CannotChangeUsesAfterFirstUseError extends ProgramError {

@@ -569,3 +569,3 @@ readonly name: string;

}
/** CollectionNotFound: 'Collection Not Found on Metadata' */
/** CollectionNotFound: Collection Not Found on Metadata */
export declare class CollectionNotFoundError extends ProgramError {

@@ -576,3 +576,3 @@ readonly name: string;

}
/** InvalidCollectionUpdateAuthority: 'Collection Update Authority is invalid' */
/** InvalidCollectionUpdateAuthority: Collection Update Authority is invalid */
export declare class InvalidCollectionUpdateAuthorityError extends ProgramError {

@@ -583,3 +583,3 @@ readonly name: string;

}
/** CollectionMustBeAUniqueMasterEdition: 'Collection Must Be a Unique Master Edition v2' */
/** CollectionMustBeAUniqueMasterEdition: Collection Must Be a Unique Master Edition v2 */
export declare class CollectionMustBeAUniqueMasterEditionError extends ProgramError {

@@ -590,3 +590,3 @@ readonly name: string;

}
/** UseAuthorityRecordAlreadyExists: 'The Use Authority Record Already Exists, to modify it Revoke, then Approve' */
/** UseAuthorityRecordAlreadyExists: The Use Authority Record Already Exists, to modify it Revoke, then Approve */
export declare class UseAuthorityRecordAlreadyExistsError extends ProgramError {

@@ -597,3 +597,3 @@ readonly name: string;

}
/** UseAuthorityRecordAlreadyRevoked: 'The Use Authority Record is empty or already revoked' */
/** UseAuthorityRecordAlreadyRevoked: The Use Authority Record is empty or already revoked */
export declare class UseAuthorityRecordAlreadyRevokedError extends ProgramError {

@@ -604,3 +604,3 @@ readonly name: string;

}
/** Unusable: 'This token has no uses' */
/** Unusable: This token has no uses */
export declare class UnusableError extends ProgramError {

@@ -611,3 +611,3 @@ readonly name: string;

}
/** NotEnoughUses: 'There are not enough Uses left on this token.' */
/** NotEnoughUses: There are not enough Uses left on this token. */
export declare class NotEnoughUsesError extends ProgramError {

@@ -618,3 +618,3 @@ readonly name: string;

}
/** CollectionAuthorityRecordAlreadyExists: 'This Collection Authority Record Already Exists.' */
/** CollectionAuthorityRecordAlreadyExists: This Collection Authority Record Already Exists. */
export declare class CollectionAuthorityRecordAlreadyExistsError extends ProgramError {

@@ -625,3 +625,3 @@ readonly name: string;

}
/** CollectionAuthorityDoesNotExist: 'This Collection Authority Record Does Not Exist.' */
/** CollectionAuthorityDoesNotExist: This Collection Authority Record Does Not Exist. */
export declare class CollectionAuthorityDoesNotExistError extends ProgramError {

@@ -632,3 +632,3 @@ readonly name: string;

}
/** InvalidUseAuthorityRecord: 'This Use Authority Record is invalid.' */
/** InvalidUseAuthorityRecord: This Use Authority Record is invalid. */
export declare class InvalidUseAuthorityRecordError extends ProgramError {

@@ -639,3 +639,3 @@ readonly name: string;

}
/** InvalidCollectionAuthorityRecord: 'This Collection Authority Record is invalid.' */
/** InvalidCollectionAuthorityRecord: This Collection Authority Record is invalid. */
export declare class InvalidCollectionAuthorityRecordError extends ProgramError {

@@ -646,3 +646,3 @@ readonly name: string;

}
/** InvalidFreezeAuthority: 'Metadata does not match the freeze authority on the mint' */
/** InvalidFreezeAuthority: Metadata does not match the freeze authority on the mint */
export declare class InvalidFreezeAuthorityError extends ProgramError {

@@ -653,3 +653,3 @@ readonly name: string;

}
/** InvalidDelegate: 'All tokens in this account have not been delegated to this user.' */
/** InvalidDelegate: All tokens in this account have not been delegated to this user. */
export declare class InvalidDelegateError extends ProgramError {

@@ -660,3 +660,3 @@ readonly name: string;

}
/** CannotAdjustVerifiedCreator: 'Creator can not be adjusted once they are verified.' */
/** CannotAdjustVerifiedCreator: Creator can not be adjusted once they are verified. */
export declare class CannotAdjustVerifiedCreatorError extends ProgramError {

@@ -667,3 +667,3 @@ readonly name: string;

}
/** CannotRemoveVerifiedCreator: 'Verified creators cannot be removed.' */
/** CannotRemoveVerifiedCreator: Verified creators cannot be removed. */
export declare class CannotRemoveVerifiedCreatorError extends ProgramError {

@@ -674,3 +674,3 @@ readonly name: string;

}
/** CannotWipeVerifiedCreators: 'Can not wipe verified creators.' */
/** CannotWipeVerifiedCreators: Can not wipe verified creators. */
export declare class CannotWipeVerifiedCreatorsError extends ProgramError {

@@ -681,3 +681,3 @@ readonly name: string;

}
/** NotAllowedToChangeSellerFeeBasisPoints: 'Not allowed to change seller fee basis points.' */
/** NotAllowedToChangeSellerFeeBasisPoints: Not allowed to change seller fee basis points. */
export declare class NotAllowedToChangeSellerFeeBasisPointsError extends ProgramError {

@@ -688,3 +688,3 @@ readonly name: string;

}
/** EditionOverrideCannotBeZero: 'Edition override cannot be zero' */
/** EditionOverrideCannotBeZero: Edition override cannot be zero */
export declare class EditionOverrideCannotBeZeroError extends ProgramError {

@@ -695,3 +695,3 @@ readonly name: string;

}
/** InvalidUser: 'Invalid User' */
/** InvalidUser: Invalid User */
export declare class InvalidUserError extends ProgramError {

@@ -702,3 +702,3 @@ readonly name: string;

}
/** RevokeCollectionAuthoritySignerIncorrect: 'Revoke Collection Authority signer is incorrect' */
/** RevokeCollectionAuthoritySignerIncorrect: Revoke Collection Authority signer is incorrect */
export declare class RevokeCollectionAuthoritySignerIncorrectError extends ProgramError {

@@ -709,3 +709,3 @@ readonly name: string;

}
/** TokenCloseFailed: 'Token close failed' */
/** TokenCloseFailed: Token close failed */
export declare class TokenCloseFailedError extends ProgramError {

@@ -716,3 +716,3 @@ readonly name: string;

}
/** UnsizedCollection: 'Can't use this function on unsized collection' */
/** UnsizedCollection: Can't use this function on unsized collection */
export declare class UnsizedCollectionError extends ProgramError {

@@ -723,3 +723,3 @@ readonly name: string;

}
/** SizedCollection: 'Can't use this function on a sized collection' */
/** SizedCollection: Can't use this function on a sized collection */
export declare class SizedCollectionError extends ProgramError {

@@ -730,3 +730,3 @@ readonly name: string;

}
/** MissingCollectionMetadata: 'Missing collection metadata account' */
/** MissingCollectionMetadata: Missing collection metadata account */
export declare class MissingCollectionMetadataError extends ProgramError {

@@ -737,3 +737,3 @@ readonly name: string;

}
/** NotAMemberOfCollection: 'This NFT is not a member of the specified collection.' */
/** NotAMemberOfCollection: This NFT is not a member of the specified collection. */
export declare class NotAMemberOfCollectionError extends ProgramError {

@@ -744,3 +744,3 @@ readonly name: string;

}
/** NotVerifiedMemberOfCollection: 'This NFT is not a verified member of the specified collection.' */
/** NotVerifiedMemberOfCollection: This NFT is not a verified member of the specified collection. */
export declare class NotVerifiedMemberOfCollectionError extends ProgramError {

@@ -751,3 +751,3 @@ readonly name: string;

}
/** NotACollectionParent: 'This NFT is not a collection parent NFT.' */
/** NotACollectionParent: This NFT is not a collection parent NFT. */
export declare class NotACollectionParentError extends ProgramError {

@@ -758,3 +758,3 @@ readonly name: string;

}
/** CouldNotDetermineTokenStandard: 'Could not determine a TokenStandard type.' */
/** CouldNotDetermineTokenStandard: Could not determine a TokenStandard type. */
export declare class CouldNotDetermineTokenStandardError extends ProgramError {

@@ -765,3 +765,3 @@ readonly name: string;

}
/** MissingEditionAccount: 'This mint account has an edition but none was provided.' */
/** MissingEditionAccount: This mint account has an edition but none was provided. */
export declare class MissingEditionAccountError extends ProgramError {

@@ -772,3 +772,3 @@ readonly name: string;

}
/** NotAMasterEdition: 'This edition is not a Master Edition' */
/** NotAMasterEdition: This edition is not a Master Edition */
export declare class NotAMasterEditionError extends ProgramError {

@@ -779,3 +779,3 @@ readonly name: string;

}
/** MasterEditionHasPrints: 'This Master Edition has existing prints' */
/** MasterEditionHasPrints: This Master Edition has existing prints */
export declare class MasterEditionHasPrintsError extends ProgramError {

@@ -786,3 +786,3 @@ readonly name: string;

}
/** BorshDeserializationError: 'Borsh Deserialization Error' */
/** BorshDeserializationError: Borsh Deserialization Error */
export declare class BorshDeserializationErrorError extends ProgramError {

@@ -793,3 +793,3 @@ readonly name: string;

}
/** CannotUpdateVerifiedCollection: 'Cannot update a verified collection in this command' */
/** CannotUpdateVerifiedCollection: Cannot update a verified collection in this command */
export declare class CannotUpdateVerifiedCollectionError extends ProgramError {

@@ -800,3 +800,3 @@ readonly name: string;

}
/** CollectionMasterEditionAccountInvalid: 'Edition account doesnt match collection ' */
/** CollectionMasterEditionAccountInvalid: Edition account doesnt match collection */
export declare class CollectionMasterEditionAccountInvalidError extends ProgramError {

@@ -807,3 +807,3 @@ readonly name: string;

}
/** AlreadyVerified: 'Item is already verified.' */
/** AlreadyVerified: Item is already verified. */
export declare class AlreadyVerifiedError extends ProgramError {

@@ -814,3 +814,3 @@ readonly name: string;

}
/** AlreadyUnverified: 'Item is already unverified.' */
/** AlreadyUnverified: Item is already unverified. */
export declare class AlreadyUnverifiedError extends ProgramError {

@@ -821,3 +821,3 @@ readonly name: string;

}
/** NotAPrintEdition: 'This edition is not a Print Edition' */
/** NotAPrintEdition: This edition is not a Print Edition */
export declare class NotAPrintEditionError extends ProgramError {

@@ -828,3 +828,3 @@ readonly name: string;

}
/** InvalidMasterEdition: 'Invalid Master Edition' */
/** InvalidMasterEdition: Invalid Master Edition */
export declare class InvalidMasterEditionError extends ProgramError {

@@ -835,3 +835,3 @@ readonly name: string;

}
/** InvalidPrintEdition: 'Invalid Print Edition' */
/** InvalidPrintEdition: Invalid Print Edition */
export declare class InvalidPrintEditionError extends ProgramError {

@@ -842,3 +842,3 @@ readonly name: string;

}
/** InvalidEditionMarker: 'Invalid Edition Marker' */
/** InvalidEditionMarker: Invalid Edition Marker */
export declare class InvalidEditionMarkerError extends ProgramError {

@@ -849,3 +849,3 @@ readonly name: string;

}
/** ReservationListDeprecated: 'Reservation List is Deprecated' */
/** ReservationListDeprecated: Reservation List is Deprecated */
export declare class ReservationListDeprecatedError extends ProgramError {

@@ -856,3 +856,3 @@ readonly name: string;

}
/** PrintEditionDoesNotMatchMasterEdition: 'Print Edition does not match Master Edition' */
/** PrintEditionDoesNotMatchMasterEdition: Print Edition does not match Master Edition */
export declare class PrintEditionDoesNotMatchMasterEditionError extends ProgramError {

@@ -863,3 +863,3 @@ readonly name: string;

}
/** EditionNumberGreaterThanMaxSupply: 'Edition Number greater than max supply' */
/** EditionNumberGreaterThanMaxSupply: Edition Number greater than max supply */
export declare class EditionNumberGreaterThanMaxSupplyError extends ProgramError {

@@ -870,3 +870,3 @@ readonly name: string;

}
/** MustUnverify: 'Must unverify before migrating collections.' */
/** MustUnverify: Must unverify before migrating collections. */
export declare class MustUnverifyError extends ProgramError {

@@ -877,3 +877,3 @@ readonly name: string;

}
/** InvalidEscrowBumpSeed: 'Invalid Escrow Account Bump Seed' */
/** InvalidEscrowBumpSeed: Invalid Escrow Account Bump Seed */
export declare class InvalidEscrowBumpSeedError extends ProgramError {

@@ -884,3 +884,3 @@ readonly name: string;

}
/** MustBeEscrowAuthority: 'Must Escrow Authority' */
/** MustBeEscrowAuthority: Must Escrow Authority */
export declare class MustBeEscrowAuthorityError extends ProgramError {

@@ -891,3 +891,3 @@ readonly name: string;

}
/** InvalidSystemProgram: 'Invalid System Program' */
/** InvalidSystemProgram: Invalid System Program */
export declare class InvalidSystemProgramError extends ProgramError {

@@ -898,3 +898,3 @@ readonly name: string;

}
/** MustBeNonFungible: 'Must be a Non Fungible Token' */
/** MustBeNonFungible: Must be a Non Fungible Token */
export declare class MustBeNonFungibleError extends ProgramError {

@@ -905,3 +905,3 @@ readonly name: string;

}
/** InsufficientTokens: 'Insufficient tokens for transfer' */
/** InsufficientTokens: Insufficient tokens for transfer */
export declare class InsufficientTokensError extends ProgramError {

@@ -912,3 +912,3 @@ readonly name: string;

}
/** BorshSerializationError: 'Borsh Serialization Error' */
/** BorshSerializationError: Borsh Serialization Error */
export declare class BorshSerializationErrorError extends ProgramError {

@@ -919,3 +919,3 @@ readonly name: string;

}
/** NoFreezeAuthoritySet: 'Cannot create NFT with no Freeze Authority.' */
/** NoFreezeAuthoritySet: Cannot create NFT with no Freeze Authority. */
export declare class NoFreezeAuthoritySetError extends ProgramError {

@@ -926,3 +926,3 @@ readonly name: string;

}
/** InvalidCollectionSizeChange: 'Invalid collection size change' */
/** InvalidCollectionSizeChange: Invalid collection size change */
export declare class InvalidCollectionSizeChangeError extends ProgramError {

@@ -933,3 +933,3 @@ readonly name: string;

}
/** InvalidBubblegumSigner: 'Invalid bubblegum signer' */
/** InvalidBubblegumSigner: Invalid bubblegum signer */
export declare class InvalidBubblegumSignerError extends ProgramError {

@@ -940,3 +940,3 @@ readonly name: string;

}
/** EscrowParentHasDelegate: 'Escrow parent cannot have a delegate' */
/** EscrowParentHasDelegate: Escrow parent cannot have a delegate */
export declare class EscrowParentHasDelegateError extends ProgramError {

@@ -947,3 +947,3 @@ readonly name: string;

}
/** MintIsNotSigner: 'Mint needs to be signer to initialize the account' */
/** MintIsNotSigner: Mint needs to be signer to initialize the account */
export declare class MintIsNotSignerError extends ProgramError {

@@ -954,3 +954,3 @@ readonly name: string;

}
/** InvalidTokenStandard: 'Invalid token standard' */
/** InvalidTokenStandard: Invalid token standard */
export declare class InvalidTokenStandardError extends ProgramError {

@@ -961,3 +961,3 @@ readonly name: string;

}
/** InvalidMintForTokenStandard: 'Invalid mint account for specified token standard' */
/** InvalidMintForTokenStandard: Invalid mint account for specified token standard */
export declare class InvalidMintForTokenStandardError extends ProgramError {

@@ -968,3 +968,3 @@ readonly name: string;

}
/** InvalidAuthorizationRules: 'Invalid authorization rules account' */
/** InvalidAuthorizationRules: Invalid authorization rules account */
export declare class InvalidAuthorizationRulesError extends ProgramError {

@@ -975,3 +975,3 @@ readonly name: string;

}
/** MissingAuthorizationRules: 'Missing authorization rules account' */
/** MissingAuthorizationRules: Missing authorization rules account */
export declare class MissingAuthorizationRulesError extends ProgramError {

@@ -982,3 +982,3 @@ readonly name: string;

}
/** MissingProgrammableConfig: 'Missing programmable configuration' */
/** MissingProgrammableConfig: Missing programmable configuration */
export declare class MissingProgrammableConfigError extends ProgramError {

@@ -989,3 +989,3 @@ readonly name: string;

}
/** InvalidProgrammableConfig: 'Invalid programmable configuration' */
/** InvalidProgrammableConfig: Invalid programmable configuration */
export declare class InvalidProgrammableConfigError extends ProgramError {

@@ -996,3 +996,3 @@ readonly name: string;

}
/** DelegateAlreadyExists: 'Delegate already exists' */
/** DelegateAlreadyExists: Delegate already exists */
export declare class DelegateAlreadyExistsError extends ProgramError {

@@ -1003,3 +1003,3 @@ readonly name: string;

}
/** DelegateNotFound: 'Delegate not found' */
/** DelegateNotFound: Delegate not found */
export declare class DelegateNotFoundError extends ProgramError {

@@ -1010,3 +1010,3 @@ readonly name: string;

}
/** MissingAccountInBuilder: 'Required account not set in instruction builder' */
/** MissingAccountInBuilder: Required account not set in instruction builder */
export declare class MissingAccountInBuilderError extends ProgramError {

@@ -1017,3 +1017,3 @@ readonly name: string;

}
/** MissingArgumentInBuilder: 'Required argument not set in instruction builder' */
/** MissingArgumentInBuilder: Required argument not set in instruction builder */
export declare class MissingArgumentInBuilderError extends ProgramError {

@@ -1024,3 +1024,3 @@ readonly name: string;

}
/** FeatureNotSupported: 'Feature not supported currently' */
/** FeatureNotSupported: Feature not supported currently */
export declare class FeatureNotSupportedError extends ProgramError {

@@ -1031,3 +1031,3 @@ readonly name: string;

}
/** InvalidSystemWallet: 'Invalid system wallet' */
/** InvalidSystemWallet: Invalid system wallet */
export declare class InvalidSystemWalletError extends ProgramError {

@@ -1038,3 +1038,3 @@ readonly name: string;

}
/** OnlySaleDelegateCanTransfer: 'Only the sale delegate can transfer while its set' */
/** OnlySaleDelegateCanTransfer: Only the sale delegate can transfer while its set */
export declare class OnlySaleDelegateCanTransferError extends ProgramError {

@@ -1045,3 +1045,3 @@ readonly name: string;

}
/** MissingTokenAccount: 'Missing token account' */
/** MissingTokenAccount: Missing token account */
export declare class MissingTokenAccountError extends ProgramError {

@@ -1052,3 +1052,3 @@ readonly name: string;

}
/** MissingSplTokenProgram: 'Missing SPL token program' */
/** MissingSplTokenProgram: Missing SPL token program */
export declare class MissingSplTokenProgramError extends ProgramError {

@@ -1059,3 +1059,3 @@ readonly name: string;

}
/** MissingAuthorizationRulesProgram: 'Missing authorization rules program' */
/** MissingAuthorizationRulesProgram: Missing authorization rules program */
export declare class MissingAuthorizationRulesProgramError extends ProgramError {

@@ -1066,3 +1066,3 @@ readonly name: string;

}
/** InvalidDelegateRoleForTransfer: 'Invalid delegate role for transfer' */
/** InvalidDelegateRoleForTransfer: Invalid delegate role for transfer */
export declare class InvalidDelegateRoleForTransferError extends ProgramError {

@@ -1073,3 +1073,3 @@ readonly name: string;

}
/** InvalidTransferAuthority: 'Invalid transfer authority' */
/** InvalidTransferAuthority: Invalid transfer authority */
export declare class InvalidTransferAuthorityError extends ProgramError {

@@ -1080,3 +1080,3 @@ readonly name: string;

}
/** InstructionNotSupported: 'Instruction not supported for ProgrammableNonFungible assets' */
/** InstructionNotSupported: Instruction not supported for ProgrammableNonFungible assets */
export declare class InstructionNotSupportedError extends ProgramError {

@@ -1087,3 +1087,3 @@ readonly name: string;

}
/** KeyMismatch: 'Public key does not match expected value' */
/** KeyMismatch: Public key does not match expected value */
export declare class KeyMismatchError extends ProgramError {

@@ -1094,3 +1094,3 @@ readonly name: string;

}
/** LockedToken: 'Token is locked' */
/** LockedToken: Token is locked */
export declare class LockedTokenError extends ProgramError {

@@ -1101,3 +1101,3 @@ readonly name: string;

}
/** UnlockedToken: 'Token is unlocked' */
/** UnlockedToken: Token is unlocked */
export declare class UnlockedTokenError extends ProgramError {

@@ -1108,3 +1108,3 @@ readonly name: string;

}
/** MissingDelegateRole: 'Missing delegate role' */
/** MissingDelegateRole: Missing delegate role */
export declare class MissingDelegateRoleError extends ProgramError {

@@ -1115,3 +1115,3 @@ readonly name: string;

}
/** InvalidAuthorityType: 'Invalid authority type' */
/** InvalidAuthorityType: Invalid authority type */
export declare class InvalidAuthorityTypeError extends ProgramError {

@@ -1122,3 +1122,3 @@ readonly name: string;

}
/** MissingTokenRecord: 'Missing token record account' */
/** MissingTokenRecord: Missing token record account */
export declare class MissingTokenRecordError extends ProgramError {

@@ -1129,3 +1129,3 @@ readonly name: string;

}
/** MintSupplyMustBeZero: 'Mint supply must be zero for programmable assets' */
/** MintSupplyMustBeZero: Mint supply must be zero for programmable assets */
export declare class MintSupplyMustBeZeroError extends ProgramError {

@@ -1136,3 +1136,3 @@ readonly name: string;

}
/** DataIsEmptyOrZeroed: 'Data is empty or zeroed' */
/** DataIsEmptyOrZeroed: Data is empty or zeroed */
export declare class DataIsEmptyOrZeroedError extends ProgramError {

@@ -1143,3 +1143,3 @@ readonly name: string;

}
/** MissingTokenOwnerAccount: 'Missing token owner' */
/** MissingTokenOwnerAccount: Missing token owner */
export declare class MissingTokenOwnerAccountError extends ProgramError {

@@ -1150,3 +1150,3 @@ readonly name: string;

}
/** InvalidMasterEditionAccountLength: 'Master edition account has an invalid length' */
/** InvalidMasterEditionAccountLength: Master edition account has an invalid length */
export declare class InvalidMasterEditionAccountLengthError extends ProgramError {

@@ -1157,3 +1157,3 @@ readonly name: string;

}
/** IncorrectTokenState: 'Incorrect token state' */
/** IncorrectTokenState: Incorrect token state */
export declare class IncorrectTokenStateError extends ProgramError {

@@ -1164,3 +1164,3 @@ readonly name: string;

}
/** InvalidDelegateRole: 'Invalid delegate role' */
/** InvalidDelegateRole: Invalid delegate role */
export declare class InvalidDelegateRoleError extends ProgramError {

@@ -1171,3 +1171,3 @@ readonly name: string;

}
/** MissingPrintSupply: 'Print supply is required for non-fungibles' */
/** MissingPrintSupply: Print supply is required for non-fungibles */
export declare class MissingPrintSupplyError extends ProgramError {

@@ -1178,3 +1178,3 @@ readonly name: string;

}
/** MissingMasterEditionAccount: 'Missing master edition account' */
/** MissingMasterEditionAccount: Missing master edition account */
export declare class MissingMasterEditionAccountError extends ProgramError {

@@ -1185,3 +1185,3 @@ readonly name: string;

}
/** AmountMustBeGreaterThanZero: 'Amount must be greater than zero' */
/** AmountMustBeGreaterThanZero: Amount must be greater than zero */
export declare class AmountMustBeGreaterThanZeroError extends ProgramError {

@@ -1192,3 +1192,3 @@ readonly name: string;

}
/** InvalidDelegateArgs: 'Invalid delegate args' */
/** InvalidDelegateArgs: Invalid delegate args */
export declare class InvalidDelegateArgsError extends ProgramError {

@@ -1199,3 +1199,3 @@ readonly name: string;

}
/** MissingLockedTransferAddress: 'Missing address for locked transfer' */
/** MissingLockedTransferAddress: Missing address for locked transfer */
export declare class MissingLockedTransferAddressError extends ProgramError {

@@ -1206,3 +1206,3 @@ readonly name: string;

}
/** InvalidLockedTransferAddress: 'Invalid destination address for locked transfer' */
/** InvalidLockedTransferAddress: Invalid destination address for locked transfer */
export declare class InvalidLockedTransferAddressError extends ProgramError {

@@ -1213,3 +1213,3 @@ readonly name: string;

}
/** DataIncrementLimitExceeded: 'Exceeded account realloc increase limit' */
/** DataIncrementLimitExceeded: Exceeded account realloc increase limit */
export declare class DataIncrementLimitExceededError extends ProgramError {

@@ -1220,3 +1220,3 @@ readonly name: string;

}
/** CannotUpdateAssetWithDelegate: 'Cannot update the rule set of a programmable asset that has a delegate' */
/** CannotUpdateAssetWithDelegate: Cannot update the rule set of a programmable asset that has a delegate */
export declare class CannotUpdateAssetWithDelegateError extends ProgramError {

@@ -1227,3 +1227,3 @@ readonly name: string;

}
/** InvalidAmount: 'Invalid token amount for this operation or token standard' */
/** InvalidAmount: Invalid token amount for this operation or token standard */
export declare class InvalidAmountError extends ProgramError {

@@ -1234,3 +1234,3 @@ readonly name: string;

}
/** MissingMasterEditionMintAccount: 'Missing master edition mint account' */
/** MissingMasterEditionMintAccount: Missing master edition mint account */
export declare class MissingMasterEditionMintAccountError extends ProgramError {

@@ -1241,3 +1241,3 @@ readonly name: string;

}
/** MissingMasterEditionTokenAccount: 'Missing master edition token account' */
/** MissingMasterEditionTokenAccount: Missing master edition token account */
export declare class MissingMasterEditionTokenAccountError extends ProgramError {

@@ -1248,3 +1248,3 @@ readonly name: string;

}
/** MissingEditionMarkerAccount: 'Missing edition marker account' */
/** MissingEditionMarkerAccount: Missing edition marker account */
export declare class MissingEditionMarkerAccountError extends ProgramError {

@@ -1255,3 +1255,3 @@ readonly name: string;

}
/** CannotBurnWithDelegate: 'Cannot burn while persistent delegate is set' */
/** CannotBurnWithDelegate: Cannot burn while persistent delegate is set */
export declare class CannotBurnWithDelegateError extends ProgramError {

@@ -1262,3 +1262,3 @@ readonly name: string;

}
/** MissingEdition: 'Missing edition account' */
/** MissingEdition: Missing edition account */
export declare class MissingEditionError extends ProgramError {

@@ -1269,3 +1269,3 @@ readonly name: string;

}
/** InvalidAssociatedTokenAccountProgram: 'Invalid Associated Token Account Program' */
/** InvalidAssociatedTokenAccountProgram: Invalid Associated Token Account Program */
export declare class InvalidAssociatedTokenAccountProgramError extends ProgramError {

@@ -1276,3 +1276,3 @@ readonly name: string;

}
/** InvalidInstructionsSysvar: 'Invalid InstructionsSysvar' */
/** InvalidInstructionsSysvar: Invalid InstructionsSysvar */
export declare class InvalidInstructionsSysvarError extends ProgramError {

@@ -1283,3 +1283,3 @@ readonly name: string;

}
/** InvalidParentAccounts: 'Invalid or Unneeded parent accounts' */
/** InvalidParentAccounts: Invalid or Unneeded parent accounts */
export declare class InvalidParentAccountsError extends ProgramError {

@@ -1290,3 +1290,3 @@ readonly name: string;

}
/** InvalidUpdateArgs: 'Authority cannot apply all update args' */
/** InvalidUpdateArgs: Authority cannot apply all update args */
export declare class InvalidUpdateArgsError extends ProgramError {

@@ -1297,3 +1297,3 @@ readonly name: string;

}
/** InsufficientTokenBalance: 'Token account does not have enough tokens' */
/** InsufficientTokenBalance: Token account does not have enough tokens */
export declare class InsufficientTokenBalanceError extends ProgramError {

@@ -1304,3 +1304,3 @@ readonly name: string;

}
/** MissingCollectionMint: 'Missing collection account' */
/** MissingCollectionMint: Missing collection account */
export declare class MissingCollectionMintError extends ProgramError {

@@ -1311,3 +1311,3 @@ readonly name: string;

}
/** MissingCollectionMasterEdition: 'Missing collection master edition account' */
/** MissingCollectionMasterEdition: Missing collection master edition account */
export declare class MissingCollectionMasterEditionError extends ProgramError {

@@ -1318,3 +1318,3 @@ readonly name: string;

}
/** InvalidTokenRecord: 'Invalid token record account' */
/** InvalidTokenRecord: Invalid token record account */
export declare class InvalidTokenRecordError extends ProgramError {

@@ -1325,3 +1325,3 @@ readonly name: string;

}
/** InvalidCloseAuthority: 'The close authority needs to be revoked by the Utility Delegate' */
/** InvalidCloseAuthority: The close authority needs to be revoked by the Utility Delegate */
export declare class InvalidCloseAuthorityError extends ProgramError {

@@ -1328,0 +1328,0 @@ readonly name: string;

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'ApproveCollectionAuthorityInstructionData' }), (value) => ({
...value,
discriminator: 23,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'ApproveCollectionAuthorityInstructionData' }), (value) => ({ ...value, discriminator: 23 }));
}

@@ -22,0 +19,0 @@ exports.getApproveCollectionAuthorityInstructionDataSerializer = getApproveCollectionAuthorityInstructionDataSerializer;

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

['setCollectionSizeArgs', (0, types_1.getSetCollectionSizeArgsSerializer)(context)],
], { description: 'BubblegumSetCollectionSizeInstructionData' }), (value) => ({
...value,
discriminator: 36,
}));
], { description: 'BubblegumSetCollectionSizeInstructionData' }), (value) => ({ ...value, discriminator: 36 }));
}

@@ -25,0 +22,0 @@ exports.getBubblegumSetCollectionSizeInstructionDataSerializer = getBubblegumSetCollectionSizeInstructionDataSerializer;

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type BurnV1InstructionAccounts = {

@@ -22,3 +24,3 @@ /** Asset owner or Utility delegate */

/** Token account to close */
token: PublicKey;
token?: PublicKey;
/** Master edition account */

@@ -47,6 +49,10 @@ masterEdition?: PublicKey;

export type BurnV1InstructionDataArgs = {
amount: number | bigint;
amount?: number | bigint;
};
export declare function getBurnV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<BurnV1InstructionDataArgs, BurnV1InstructionData>;
export type BurnV1InstructionArgs = BurnV1InstructionDataArgs;
export declare function burnV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity'>, input: BurnV1InstructionAccounts & BurnV1InstructionArgs): TransactionBuilder;
export type BurnV1InstructionExtraArgs = {
tokenOwner: PublicKey;
tokenStandard: TokenStandardArgs;
};
export type BurnV1InstructionArgs = PickPartial<BurnV1InstructionDataArgs & BurnV1InstructionExtraArgs, 'tokenOwner'>;
export declare function burnV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: BurnV1InstructionAccounts & BurnV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.burnV1 = exports.getBurnV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -25,2 +27,3 @@ const shared_1 = require("../shared");

burnV1Discriminator: 0,
amount: value.amount ?? 1,
}));

@@ -44,8 +47,17 @@ }

(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEditionMint', input.masterEditionMint ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveBurnMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEditionToken', input.masterEditionToken ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'editionMarker', input.editionMarker ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'systemProgram', input.systemProgram ?? {

@@ -52,0 +64,0 @@ ...context.programs.getPublicKey('splSystem', '11111111111111111111111111111111'),

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'ConvertMasterEditionV1ToV2InstructionData' }), (value) => ({
...value,
discriminator: 12,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'ConvertMasterEditionV1ToV2InstructionData' }), (value) => ({ ...value, discriminator: 12 }));
}

@@ -21,0 +18,0 @@ exports.getConvertMasterEditionV1ToV2InstructionDataSerializer = getConvertMasterEditionV1ToV2InstructionDataSerializer;

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

['isMutable', s.bool()],
], { description: 'CreateMetadataAccountV2InstructionData' }), (value) => ({
...value,
discriminator: 16,
}));
], { description: 'CreateMetadataAccountV2InstructionData' }), (value) => ({ ...value, discriminator: 16 }));
}

@@ -27,0 +24,0 @@ exports.getCreateMetadataAccountV2InstructionDataSerializer = getCreateMetadataAccountV2InstructionDataSerializer;

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

],
], { description: 'CreateMetadataAccountV3InstructionData' }), (value) => ({
...value,
discriminator: 33,
}));
], { description: 'CreateMetadataAccountV3InstructionData' }), (value) => ({ ...value, discriminator: 33 }));
}

@@ -31,0 +28,0 @@ exports.getCreateMetadataAccountV3InstructionDataSerializer = getCreateMetadataAccountV3InstructionDataSerializer;

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateCollectionV1InstructionAccounts = {

@@ -47,6 +48,10 @@ /** Delegate record account */

export type DelegateCollectionV1InstructionDataArgs = {
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateCollectionV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateCollectionV1InstructionDataArgs, DelegateCollectionV1InstructionData>;
export type DelegateCollectionV1InstructionArgs = DelegateCollectionV1InstructionDataArgs;
export type DelegateCollectionV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
updateAuthority: PublicKey;
};
export type DelegateCollectionV1InstructionArgs = PickPartial<DelegateCollectionV1InstructionDataArgs & DelegateCollectionV1InstructionExtraArgs, 'updateAuthority'>;
export declare function delegateCollectionV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateCollectionV1InstructionAccounts & DelegateCollectionV1InstructionArgs): TransactionBuilder;

@@ -12,2 +12,3 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -29,2 +30,3 @@ const shared_1 = require("../shared");

delegateCollectionV1Discriminator: 0,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -45,7 +47,16 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'updateAuthority', input.updateAuthority ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
delegateRole: types_1.MetadataDelegateRole.Collection,
updateAuthority: resolvingArgs.updateAuthority,
delegate: (0, umi_1.publicKey)(input.delegate),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -60,4 +71,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -64,0 +76,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateLockedTransferV1InstructionAccounts = {

@@ -49,8 +50,12 @@ /** Delegate record account */

export type DelegateLockedTransferV1InstructionDataArgs = {
amount: number | bigint;
amount?: number | bigint;
lockedAddress: PublicKey;
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateLockedTransferV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateLockedTransferV1InstructionDataArgs, DelegateLockedTransferV1InstructionData>;
export type DelegateLockedTransferV1InstructionArgs = DelegateLockedTransferV1InstructionDataArgs;
export type DelegateLockedTransferV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type DelegateLockedTransferV1InstructionArgs = PickPartial<DelegateLockedTransferV1InstructionDataArgs & DelegateLockedTransferV1InstructionExtraArgs, 'tokenOwner'>;
export declare function delegateLockedTransferV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateLockedTransferV1InstructionAccounts & DelegateLockedTransferV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.delegateLockedTransferV1 = exports.getDelegateLockedTransferV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -31,2 +33,4 @@ const shared_1 = require("../shared");

delegateLockedTransferV1Discriminator: 7,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -47,7 +51,18 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -61,5 +76,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -66,0 +85,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateProgrammableConfigV1InstructionAccounts = {

@@ -47,6 +48,10 @@ /** Delegate record account */

export type DelegateProgrammableConfigV1InstructionDataArgs = {
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateProgrammableConfigV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateProgrammableConfigV1InstructionDataArgs, DelegateProgrammableConfigV1InstructionData>;
export type DelegateProgrammableConfigV1InstructionArgs = DelegateProgrammableConfigV1InstructionDataArgs;
export type DelegateProgrammableConfigV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
updateAuthority: PublicKey;
};
export type DelegateProgrammableConfigV1InstructionArgs = PickPartial<DelegateProgrammableConfigV1InstructionDataArgs & DelegateProgrammableConfigV1InstructionExtraArgs, 'updateAuthority'>;
export declare function delegateProgrammableConfigV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateProgrammableConfigV1InstructionAccounts & DelegateProgrammableConfigV1InstructionArgs): TransactionBuilder;

@@ -12,2 +12,3 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -29,2 +30,3 @@ const shared_1 = require("../shared");

delegateProgrammableConfigV1Discriminator: 8,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -45,7 +47,16 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'updateAuthority', input.updateAuthority ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
delegateRole: types_1.MetadataDelegateRole.ProgrammableConfig,
updateAuthority: resolvingArgs.updateAuthority,
delegate: (0, umi_1.publicKey)(input.delegate),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -60,4 +71,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -64,0 +76,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateSaleV1InstructionAccounts = {

@@ -48,7 +49,11 @@ /** Delegate record account */

export type DelegateSaleV1InstructionDataArgs = {
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateSaleV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateSaleV1InstructionDataArgs, DelegateSaleV1InstructionData>;
export type DelegateSaleV1InstructionArgs = DelegateSaleV1InstructionDataArgs;
export type DelegateSaleV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type DelegateSaleV1InstructionArgs = PickPartial<DelegateSaleV1InstructionDataArgs & DelegateSaleV1InstructionExtraArgs, 'tokenOwner'>;
export declare function delegateSaleV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateSaleV1InstructionAccounts & DelegateSaleV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.delegateSaleV1 = exports.getDelegateSaleV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -30,2 +32,4 @@ const shared_1 = require("../shared");

delegateSaleV1Discriminator: 1,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -46,7 +50,18 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -60,5 +75,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -65,0 +84,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateStakingV1InstructionAccounts = {

@@ -48,7 +49,11 @@ /** Delegate record account */

export type DelegateStakingV1InstructionDataArgs = {
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateStakingV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateStakingV1InstructionDataArgs, DelegateStakingV1InstructionData>;
export type DelegateStakingV1InstructionArgs = DelegateStakingV1InstructionDataArgs;
export type DelegateStakingV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type DelegateStakingV1InstructionArgs = PickPartial<DelegateStakingV1InstructionDataArgs & DelegateStakingV1InstructionExtraArgs, 'tokenOwner'>;
export declare function delegateStakingV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateStakingV1InstructionAccounts & DelegateStakingV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.delegateStakingV1 = exports.getDelegateStakingV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -30,2 +32,4 @@ const shared_1 = require("../shared");

delegateStakingV1Discriminator: 5,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -46,7 +50,18 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -60,5 +75,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -65,0 +84,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type DelegateStandardV1InstructionAccounts = {

@@ -46,6 +48,10 @@ /** Delegate record account */

export type DelegateStandardV1InstructionDataArgs = {
amount: number | bigint;
amount?: number | bigint;
};
export declare function getDelegateStandardV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateStandardV1InstructionDataArgs, DelegateStandardV1InstructionData>;
export type DelegateStandardV1InstructionArgs = DelegateStandardV1InstructionDataArgs;
export type DelegateStandardV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type DelegateStandardV1InstructionArgs = PickPartial<DelegateStandardV1InstructionDataArgs & DelegateStandardV1InstructionExtraArgs, 'tokenOwner'>;
export declare function delegateStandardV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateStandardV1InstructionAccounts & DelegateStandardV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.delegateStandardV1 = exports.getDelegateStandardV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -25,2 +27,3 @@ const shared_1 = require("../shared");

delegateStandardV1Discriminator: 6,
amount: value.amount ?? 1,
}));

@@ -41,7 +44,17 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -55,5 +68,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -60,0 +77,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateTransferV1InstructionAccounts = {

@@ -48,7 +49,11 @@ /** Delegate record account */

export type DelegateTransferV1InstructionDataArgs = {
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateTransferV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateTransferV1InstructionDataArgs, DelegateTransferV1InstructionData>;
export type DelegateTransferV1InstructionArgs = DelegateTransferV1InstructionDataArgs;
export type DelegateTransferV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type DelegateTransferV1InstructionArgs = PickPartial<DelegateTransferV1InstructionDataArgs & DelegateTransferV1InstructionExtraArgs, 'tokenOwner'>;
export declare function delegateTransferV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateTransferV1InstructionAccounts & DelegateTransferV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.delegateTransferV1 = exports.getDelegateTransferV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -30,2 +32,4 @@ const shared_1 = require("../shared");

delegateTransferV1Discriminator: 2,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -46,7 +50,18 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -60,5 +75,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -65,0 +84,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateUpdateV1InstructionAccounts = {

@@ -47,6 +48,10 @@ /** Delegate record account */

export type DelegateUpdateV1InstructionDataArgs = {
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateUpdateV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateUpdateV1InstructionDataArgs, DelegateUpdateV1InstructionData>;
export type DelegateUpdateV1InstructionArgs = DelegateUpdateV1InstructionDataArgs;
export type DelegateUpdateV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
updateAuthority: PublicKey;
};
export type DelegateUpdateV1InstructionArgs = PickPartial<DelegateUpdateV1InstructionDataArgs & DelegateUpdateV1InstructionExtraArgs, 'updateAuthority'>;
export declare function delegateUpdateV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateUpdateV1InstructionAccounts & DelegateUpdateV1InstructionArgs): TransactionBuilder;

@@ -12,2 +12,3 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -29,2 +30,3 @@ const shared_1 = require("../shared");

delegateUpdateV1Discriminator: 3,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -45,7 +47,16 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'updateAuthority', input.updateAuthority ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
delegateRole: types_1.MetadataDelegateRole.Update,
updateAuthority: resolvingArgs.updateAuthority,
delegate: (0, umi_1.publicKey)(input.delegate),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -60,4 +71,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -64,0 +76,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -9,3 +9,4 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type DelegateUtilityV1InstructionAccounts = {

@@ -48,7 +49,11 @@ /** Delegate record account */

export type DelegateUtilityV1InstructionDataArgs = {
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getDelegateUtilityV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateUtilityV1InstructionDataArgs, DelegateUtilityV1InstructionData>;
export type DelegateUtilityV1InstructionArgs = DelegateUtilityV1InstructionDataArgs;
export type DelegateUtilityV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type DelegateUtilityV1InstructionArgs = PickPartial<DelegateUtilityV1InstructionDataArgs & DelegateUtilityV1InstructionExtraArgs, 'tokenOwner'>;
export declare function delegateUtilityV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: DelegateUtilityV1InstructionAccounts & DelegateUtilityV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.delegateUtilityV1 = exports.getDelegateUtilityV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -30,2 +32,4 @@ const shared_1 = require("../shared");

delegateUtilityV1Discriminator: 4,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -46,7 +50,18 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -60,5 +75,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -65,0 +84,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

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

],
], { description: 'DeprecatedCreateMasterEditionInstructionData' }), (value) => ({
...value,
discriminator: 2,
}));
], { description: 'DeprecatedCreateMasterEditionInstructionData' }), (value) => ({ ...value, discriminator: 2 }));
}

@@ -29,0 +26,0 @@ exports.getDeprecatedCreateMasterEditionInstructionDataSerializer = getDeprecatedCreateMasterEditionInstructionDataSerializer;

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

description: 'DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionData',
}), (value) => ({
...value,
discriminator: 3,
}));
}), (value) => ({ ...value, discriminator: 3 }));
}

@@ -24,0 +21,0 @@ exports.getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionDataSerializer = getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionDataSerializer;

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

],
], { description: 'DeprecatedMintPrintingTokensInstructionData' }), (value) => ({
...value,
discriminator: 9,
}));
], { description: 'DeprecatedMintPrintingTokensInstructionData' }), (value) => ({ ...value, discriminator: 9 }));
}

@@ -28,0 +25,0 @@ exports.getDeprecatedMintPrintingTokensInstructionDataSerializer = getDeprecatedMintPrintingTokensInstructionDataSerializer;

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

],
], { description: 'DeprecatedMintPrintingTokensViaTokenInstructionData' }), (value) => ({
...value,
discriminator: 8,
}));
], { description: 'DeprecatedMintPrintingTokensViaTokenInstructionData' }), (value) => ({ ...value, discriminator: 8 }));
}

@@ -28,0 +25,0 @@ exports.getDeprecatedMintPrintingTokensViaTokenInstructionDataSerializer = getDeprecatedMintPrintingTokensViaTokenInstructionDataSerializer;

@@ -11,3 +11,2 @@ /**

export * from './bubblegumSetCollectionSize';
export * from './burn';
export * from './burnEditionNft';

@@ -18,3 +17,2 @@ export * from './burnNft';

export * from './convertMasterEditionV1ToV2';
export * from './create';
export * from './createEscrowAccount';

@@ -27,3 +25,2 @@ export * from './createMasterEdition';

export * from './createV1';
export * from './delegate';
export * from './delegateCollectionV1';

@@ -43,7 +40,4 @@ export * from './delegateLockedTransferV1';

export * from './freezeDelegatedAccount';
export * from './lock';
export * from './lockV1';
export * from './migrate';
export * from './migrateV1';
export * from './mint';
export * from './mintNewEditionFromMasterEditionViaToken';

@@ -54,3 +48,2 @@ export * from './mintNewEditionFromMasterEditionViaVaultProxy';

export * from './removeCreatorVerification';
export * from './revoke';
export * from './revokeCollectionAuthority';

@@ -74,8 +67,5 @@ export * from './revokeCollectionV1';

export * from './thawDelegatedAccount';
export * from './transfer';
export * from './transferOutOfEscrow';
export * from './transferV1';
export * from './unlock';
export * from './unlockV1';
export * from './unverify';
export * from './unverifyCollection';

@@ -85,3 +75,2 @@ export * from './unverifyCollectionV1';

export * from './unverifySizedCollectionItem';
export * from './update';
export * from './updateMetadataAccount';

@@ -91,6 +80,4 @@ export * from './updateMetadataAccountV2';

export * from './updateV1';
export * from './use';
export * from './useV1';
export * from './utilize';
export * from './verify';
export * from './verifyCollection';

@@ -97,0 +84,0 @@ export * from './verifyCollectionV1';

@@ -27,3 +27,2 @@ "use strict";

__exportStar(require("./bubblegumSetCollectionSize"), exports);
__exportStar(require("./burn"), exports);
__exportStar(require("./burnEditionNft"), exports);

@@ -34,3 +33,2 @@ __exportStar(require("./burnNft"), exports);

__exportStar(require("./convertMasterEditionV1ToV2"), exports);
__exportStar(require("./create"), exports);
__exportStar(require("./createEscrowAccount"), exports);

@@ -43,3 +41,2 @@ __exportStar(require("./createMasterEdition"), exports);

__exportStar(require("./createV1"), exports);
__exportStar(require("./delegate"), exports);
__exportStar(require("./delegateCollectionV1"), exports);

@@ -59,7 +56,4 @@ __exportStar(require("./delegateLockedTransferV1"), exports);

__exportStar(require("./freezeDelegatedAccount"), exports);
__exportStar(require("./lock"), exports);
__exportStar(require("./lockV1"), exports);
__exportStar(require("./migrate"), exports);
__exportStar(require("./migrateV1"), exports);
__exportStar(require("./mint"), exports);
__exportStar(require("./mintNewEditionFromMasterEditionViaToken"), exports);

@@ -70,3 +64,2 @@ __exportStar(require("./mintNewEditionFromMasterEditionViaVaultProxy"), exports);

__exportStar(require("./removeCreatorVerification"), exports);
__exportStar(require("./revoke"), exports);
__exportStar(require("./revokeCollectionAuthority"), exports);

@@ -90,8 +83,5 @@ __exportStar(require("./revokeCollectionV1"), exports);

__exportStar(require("./thawDelegatedAccount"), exports);
__exportStar(require("./transfer"), exports);
__exportStar(require("./transferOutOfEscrow"), exports);
__exportStar(require("./transferV1"), exports);
__exportStar(require("./unlock"), exports);
__exportStar(require("./unlockV1"), exports);
__exportStar(require("./unverify"), exports);
__exportStar(require("./unverifyCollection"), exports);

@@ -101,3 +91,2 @@ __exportStar(require("./unverifyCollectionV1"), exports);

__exportStar(require("./unverifySizedCollectionItem"), exports);
__exportStar(require("./update"), exports);
__exportStar(require("./updateMetadataAccount"), exports);

@@ -107,6 +96,4 @@ __exportStar(require("./updateMetadataAccountV2"), exports);

__exportStar(require("./updateV1"), exports);
__exportStar(require("./use"), exports);
__exportStar(require("./useV1"), exports);
__exportStar(require("./utilize"), exports);
__exportStar(require("./verify"), exports);
__exportStar(require("./verifyCollection"), exports);

@@ -113,0 +100,0 @@ __exportStar(require("./verifyCollectionV1"), exports);

@@ -9,3 +9,3 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type LockV1InstructionAccounts = {

@@ -17,3 +17,3 @@ /** Delegate or freeze authority */

/** Token account */
token: PublicKey;
token?: PublicKey;
/** Mint account */

@@ -46,6 +46,9 @@ mint: PublicKey;

export type LockV1InstructionDataArgs = {
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getLockV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<LockV1InstructionDataArgs, LockV1InstructionData>;
export type LockV1InstructionArgs = LockV1InstructionDataArgs;
export type LockV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
};
export type LockV1InstructionArgs = LockV1InstructionDataArgs & LockV1InstructionExtraArgs;
export declare function lockV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: LockV1InstructionAccounts & LockV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.lockV1 = exports.getLockV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -29,2 +31,3 @@ const shared_1 = require("../shared");

lockV1Discriminator: 0,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -46,6 +49,14 @@ }

(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenOwner', input.tokenOwner ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenOwner', input.tokenOwner ??
(0, hooked_1.resolveOptionalTokenOwner)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: (0, umi_1.publicKey)(resolvingAccounts.tokenOwner),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

@@ -58,5 +69,7 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'systemProgram', input.systemProgram ?? {

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ??
(0, hooked_1.resolveTokenProgramForNonProgrammables)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -63,0 +76,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -12,2 +12,3 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -23,7 +24,3 @@ const shared_1 = require("../shared");

['ruleSet', s.option(s.publicKey())],
], { description: 'MigrateV1InstructionData' }), (value) => ({
...value,
discriminator: 48,
migrateV1Discriminator: 0,
}));
], { description: 'MigrateV1InstructionData' }), (value) => ({ ...value, discriminator: 48, migrateV1Discriminator: 0 }));
}

@@ -63,4 +60,5 @@ exports.getMigrateV1InstructionDataSerializer = getMigrateV1InstructionDataSerializer;

});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -67,0 +65,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

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

],
], { description: 'MintNewEditionFromMasterEditionViaTokenInstructionData' }), (value) => ({
...value,
discriminator: 11,
}));
], { description: 'MintNewEditionFromMasterEditionViaTokenInstructionData' }), (value) => ({ ...value, discriminator: 11 }));
}

@@ -28,0 +25,0 @@ exports.getMintNewEditionFromMasterEditionViaTokenInstructionDataSerializer = getMintNewEditionFromMasterEditionViaTokenInstructionDataSerializer;

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

description: 'MintNewEditionFromMasterEditionViaVaultProxyInstructionData',
}), (value) => ({
...value,
discriminator: 13,
}));
}), (value) => ({ ...value, discriminator: 13 }));
}

@@ -30,0 +27,0 @@ exports.getMintNewEditionFromMasterEditionViaVaultProxyInstructionDataSerializer = getMintNewEditionFromMasterEditionViaVaultProxyInstructionDataSerializer;

@@ -49,3 +49,3 @@ /**

export type MintV1InstructionDataArgs = {
amount: number | bigint;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;

@@ -52,0 +52,0 @@ };

@@ -31,2 +31,3 @@ "use strict";

mintV1Discriminator: 0,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),

@@ -49,3 +50,3 @@ }));

(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenOwner', input.tokenOwner ??
(0, hooked_1.resolveMintTokenOwner)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, hooked_1.resolveOptionalTokenOwner)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??

@@ -78,4 +79,5 @@ (0, mpl_essentials_1.findAssociatedTokenPda)(context, {

});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -82,0 +84,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'RemoveCreatorVerificationInstructionData' }), (value) => ({
...value,
discriminator: 28,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'RemoveCreatorVerificationInstructionData' }), (value) => ({ ...value, discriminator: 28 }));
}

@@ -21,0 +18,0 @@ exports.getRemoveCreatorVerificationInstructionDataSerializer = getRemoveCreatorVerificationInstructionDataSerializer;

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'RevokeCollectionAuthorityInstructionData' }), (value) => ({
...value,
discriminator: 24,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'RevokeCollectionAuthorityInstructionData' }), (value) => ({ ...value, discriminator: 24 }));
}

@@ -22,0 +19,0 @@ exports.getRevokeCollectionAuthorityInstructionDataSerializer = getRevokeCollectionAuthorityInstructionDataSerializer;

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeCollectionV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeCollectionV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeCollectionV1InstructionDataArgs, RevokeCollectionV1InstructionData>;
export declare function revokeCollectionV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeCollectionV1InstructionAccounts): TransactionBuilder;
export type RevokeCollectionV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
updateAuthority: PublicKey;
};
export type RevokeCollectionV1InstructionArgs = PickPartial<RevokeCollectionV1InstructionExtraArgs, 'updateAuthority'>;
export declare function revokeCollectionV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeCollectionV1InstructionAccounts & RevokeCollectionV1InstructionArgs): TransactionBuilder;

@@ -12,4 +12,6 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");
const shared_1 = require("../shared");
const types_1 = require("../types");
function getRevokeCollectionV1InstructionDataSerializer(context) {

@@ -38,7 +40,17 @@ const s = context.serializer;

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'updateAuthority', input.updateAuthority ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
delegateRole: types_1.MetadataDelegateRole.Collection,
updateAuthority: resolvingArgs.updateAuthority,
delegate: (0, umi_1.publicKey)(input.delegate),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -53,4 +65,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +70,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeLockedTransferV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeLockedTransferV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeLockedTransferV1InstructionDataArgs, RevokeLockedTransferV1InstructionData>;
export declare function revokeLockedTransferV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeLockedTransferV1InstructionAccounts): TransactionBuilder;
export type RevokeLockedTransferV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type RevokeLockedTransferV1InstructionArgs = PickPartial<RevokeLockedTransferV1InstructionExtraArgs, 'tokenOwner'>;
export declare function revokeLockedTransferV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeLockedTransferV1InstructionAccounts & RevokeLockedTransferV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.revokeLockedTransferV1 = exports.getRevokeLockedTransferV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -38,7 +40,19 @@ const shared_1 = require("../shared");

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -52,5 +66,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +75,0 @@ // Delegate Record.

@@ -9,2 +9,3 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { TokenStandardArgs } from '../types';
export type RevokeMigrationV1InstructionAccounts = {

@@ -46,2 +47,6 @@ /** Delegate record account */

export declare function getRevokeMigrationV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeMigrationV1InstructionDataArgs, RevokeMigrationV1InstructionData>;
export declare function revokeMigrationV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeMigrationV1InstructionAccounts): TransactionBuilder;
export type RevokeMigrationV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
};
export type RevokeMigrationV1InstructionArgs = RevokeMigrationV1InstructionExtraArgs;
export declare function revokeMigrationV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeMigrationV1InstructionAccounts & RevokeMigrationV1InstructionArgs): TransactionBuilder;

@@ -12,2 +12,3 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -38,7 +39,10 @@ const shared_1 = require("../shared");

const resolvingAccounts = {};
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -53,4 +57,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +62,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeProgrammableConfigV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeProgrammableConfigV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeProgrammableConfigV1InstructionDataArgs, RevokeProgrammableConfigV1InstructionData>;
export declare function revokeProgrammableConfigV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeProgrammableConfigV1InstructionAccounts): TransactionBuilder;
export type RevokeProgrammableConfigV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
updateAuthority: PublicKey;
};
export type RevokeProgrammableConfigV1InstructionArgs = PickPartial<RevokeProgrammableConfigV1InstructionExtraArgs, 'updateAuthority'>;
export declare function revokeProgrammableConfigV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeProgrammableConfigV1InstructionAccounts & RevokeProgrammableConfigV1InstructionArgs): TransactionBuilder;

@@ -12,4 +12,6 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");
const shared_1 = require("../shared");
const types_1 = require("../types");
function getRevokeProgrammableConfigV1InstructionDataSerializer(context) {

@@ -38,7 +40,17 @@ const s = context.serializer;

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'updateAuthority', input.updateAuthority ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
delegateRole: types_1.MetadataDelegateRole.ProgrammableConfig,
updateAuthority: resolvingArgs.updateAuthority,
delegate: (0, umi_1.publicKey)(input.delegate),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -53,4 +65,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +70,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeSaleV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeSaleV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeSaleV1InstructionDataArgs, RevokeSaleV1InstructionData>;
export declare function revokeSaleV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeSaleV1InstructionAccounts): TransactionBuilder;
export type RevokeSaleV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type RevokeSaleV1InstructionArgs = PickPartial<RevokeSaleV1InstructionExtraArgs, 'tokenOwner'>;
export declare function revokeSaleV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeSaleV1InstructionAccounts & RevokeSaleV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.revokeSaleV1 = exports.getRevokeSaleV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -20,7 +22,3 @@ const shared_1 = require("../shared");

['revokeSaleV1Discriminator', s.u8()],
], { description: 'RevokeSaleV1InstructionData' }), (value) => ({
...value,
discriminator: 45,
revokeSaleV1Discriminator: 1,
}));
], { description: 'RevokeSaleV1InstructionData' }), (value) => ({ ...value, discriminator: 45, revokeSaleV1Discriminator: 1 }));
}

@@ -39,7 +37,19 @@ exports.getRevokeSaleV1InstructionDataSerializer = getRevokeSaleV1InstructionDataSerializer;

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -53,5 +63,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -58,0 +72,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeStakingV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeStakingV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeStakingV1InstructionDataArgs, RevokeStakingV1InstructionData>;
export declare function revokeStakingV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeStakingV1InstructionAccounts): TransactionBuilder;
export type RevokeStakingV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type RevokeStakingV1InstructionArgs = PickPartial<RevokeStakingV1InstructionExtraArgs, 'tokenOwner'>;
export declare function revokeStakingV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeStakingV1InstructionAccounts & RevokeStakingV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.revokeStakingV1 = exports.getRevokeStakingV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -38,7 +40,19 @@ const shared_1 = require("../shared");

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -52,5 +66,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +75,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeStandardV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeStandardV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeStandardV1InstructionDataArgs, RevokeStandardV1InstructionData>;
export declare function revokeStandardV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeStandardV1InstructionAccounts): TransactionBuilder;
export type RevokeStandardV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type RevokeStandardV1InstructionArgs = PickPartial<RevokeStandardV1InstructionExtraArgs, 'tokenOwner'>;
export declare function revokeStandardV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeStandardV1InstructionAccounts & RevokeStandardV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.revokeStandardV1 = exports.getRevokeStandardV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -38,7 +40,18 @@ const shared_1 = require("../shared");

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -52,5 +65,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +74,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeTransferV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeTransferV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeTransferV1InstructionDataArgs, RevokeTransferV1InstructionData>;
export declare function revokeTransferV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeTransferV1InstructionAccounts): TransactionBuilder;
export type RevokeTransferV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type RevokeTransferV1InstructionArgs = PickPartial<RevokeTransferV1InstructionExtraArgs, 'tokenOwner'>;
export declare function revokeTransferV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeTransferV1InstructionAccounts & RevokeTransferV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.revokeTransferV1 = exports.getRevokeTransferV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -38,7 +40,19 @@ const shared_1 = require("../shared");

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -52,5 +66,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +75,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeUpdateV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeUpdateV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeUpdateV1InstructionDataArgs, RevokeUpdateV1InstructionData>;
export declare function revokeUpdateV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeUpdateV1InstructionAccounts): TransactionBuilder;
export type RevokeUpdateV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
updateAuthority: PublicKey;
};
export type RevokeUpdateV1InstructionArgs = PickPartial<RevokeUpdateV1InstructionExtraArgs, 'updateAuthority'>;
export declare function revokeUpdateV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeUpdateV1InstructionAccounts & RevokeUpdateV1InstructionArgs): TransactionBuilder;

@@ -12,4 +12,6 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");
const shared_1 = require("../shared");
const types_1 = require("../types");
function getRevokeUpdateV1InstructionDataSerializer(context) {

@@ -20,7 +22,3 @@ const s = context.serializer;

['revokeUpdateV1Discriminator', s.u8()],
], { description: 'RevokeUpdateV1InstructionData' }), (value) => ({
...value,
discriminator: 45,
revokeUpdateV1Discriminator: 3,
}));
], { description: 'RevokeUpdateV1InstructionData' }), (value) => ({ ...value, discriminator: 45, revokeUpdateV1Discriminator: 3 }));
}

@@ -39,7 +37,17 @@ exports.getRevokeUpdateV1InstructionDataSerializer = getRevokeUpdateV1InstructionDataSerializer;

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'updateAuthority', input.updateAuthority ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findMetadataDelegateRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
delegateRole: types_1.MetadataDelegateRole.Update,
updateAuthority: resolvingArgs.updateAuthority,
delegate: (0, umi_1.publicKey)(input.delegate),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -54,4 +62,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -58,0 +67,0 @@ // Delegate Record.

@@ -9,2 +9,4 @@ /**

import { Context, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { PickPartial } from '../shared';
import { TokenStandardArgs } from '../types';
export type RevokeUtilityV1InstructionAccounts = {

@@ -46,2 +48,7 @@ /** Delegate record account */

export declare function getRevokeUtilityV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<RevokeUtilityV1InstructionDataArgs, RevokeUtilityV1InstructionData>;
export declare function revokeUtilityV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeUtilityV1InstructionAccounts): TransactionBuilder;
export type RevokeUtilityV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
tokenOwner: PublicKey;
};
export type RevokeUtilityV1InstructionArgs = PickPartial<RevokeUtilityV1InstructionExtraArgs, 'tokenOwner'>;
export declare function revokeUtilityV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: RevokeUtilityV1InstructionAccounts & RevokeUtilityV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.revokeUtilityV1 = exports.getRevokeUtilityV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -38,7 +40,19 @@ const shared_1 = require("../shared");

const resolvingAccounts = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ?? programId);
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingArgs, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: resolvingArgs.tokenOwner,
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'delegateRecord', input.delegateRecord ??
(0, accounts_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
token: (0, umi_1.publicKey)(resolvingAccounts.token),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'masterEdition', input.masterEdition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -52,5 +66,9 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -57,0 +75,0 @@ // Delegate Record.

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'SetAndVerifySizedCollectionItemInstructionData' }), (value) => ({
...value,
discriminator: 32,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'SetAndVerifySizedCollectionItemInstructionData' }), (value) => ({ ...value, discriminator: 32 }));
}

@@ -21,0 +18,0 @@ exports.getSetAndVerifySizedCollectionItemInstructionDataSerializer = getSetAndVerifySizedCollectionItemInstructionDataSerializer;

@@ -42,3 +42,3 @@ /**

export type TransferOutOfEscrowInstructionDataArgs = {
amount: number | bigint;
amount?: number | bigint;
};

@@ -45,0 +45,0 @@ export declare function getTransferOutOfEscrowInstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<TransferOutOfEscrowInstructionDataArgs, TransferOutOfEscrowInstructionData>;

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

['amount', s.u64()],
], { description: 'TransferOutOfEscrowInstructionData' }), (value) => ({ ...value, discriminator: 40 }));
], { description: 'TransferOutOfEscrowInstructionData' }), (value) => ({ ...value, discriminator: 40, amount: value.amount ?? 1 }));
}

@@ -21,0 +21,0 @@ exports.getTransferOutOfEscrowInstructionDataSerializer = getTransferOutOfEscrowInstructionDataSerializer;

@@ -9,10 +9,10 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type TransferV1InstructionAccounts = {
/** Token account */
token: PublicKey;
token?: PublicKey;
/** Token account owner */
tokenOwner: PublicKey;
tokenOwner?: PublicKey;
/** Destination token account */
destination: PublicKey;
destinationToken?: PublicKey;
/** Destination token account owner */

@@ -27,3 +27,3 @@ destinationOwner: PublicKey;

/** Owner token record account */
ownerTokenRecord?: PublicKey;
tokenRecord?: PublicKey;
/** Destination token record account */

@@ -55,7 +55,10 @@ destinationTokenRecord?: PublicKey;

export type TransferV1InstructionDataArgs = {
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getTransferV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<TransferV1InstructionDataArgs, TransferV1InstructionData>;
export type TransferV1InstructionArgs = TransferV1InstructionDataArgs;
export type TransferV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
};
export type TransferV1InstructionArgs = TransferV1InstructionDataArgs & TransferV1InstructionExtraArgs;
export declare function transferV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: TransferV1InstructionAccounts & TransferV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.transferV1 = exports.getTransferV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -30,2 +32,4 @@ const shared_1 = require("../shared");

transferV1Discriminator: 0,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -46,6 +50,20 @@ }

const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenOwner', input.tokenOwner ?? context.identity.publicKey);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: (0, umi_1.publicKey)(resolvingAccounts.tokenOwner),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'destinationToken', input.destinationToken ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: (0, umi_1.publicKey)(input.destinationOwner),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'ownerTokenRecord', input.ownerTokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'destinationTokenRecord', input.destinationTokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ??
(0, hooked_1.resolveMasterEditionForProgrammables)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'destinationTokenRecord', input.destinationTokenRecord ??
(0, hooked_1.resolveDestinationTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);

@@ -67,4 +85,5 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

});
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -84,7 +103,7 @@ const resolvedArgs = { ...input, ...resolvingArgs };

});
// Destination.
// Destination Token.
keys.push({
pubkey: resolvedAccounts.destination,
pubkey: resolvedAccounts.destinationToken,
isSigner: false,
isWritable: (0, shared_1.isWritable)(resolvedAccounts.destination, true),
isWritable: (0, shared_1.isWritable)(resolvedAccounts.destinationToken, true),
});

@@ -115,7 +134,7 @@ // Destination Owner.

});
// Owner Token Record.
// Token Record.
keys.push({
pubkey: resolvedAccounts.ownerTokenRecord,
pubkey: resolvedAccounts.tokenRecord,
isSigner: false,
isWritable: (0, shared_1.isWritable)(resolvedAccounts.ownerTokenRecord, true),
isWritable: (0, shared_1.isWritable)(resolvedAccounts.tokenRecord, true),
});

@@ -122,0 +141,0 @@ // Destination Token Record.

@@ -9,3 +9,3 @@ /**

import { Context, Option, PublicKey, Serializer, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { AuthorizationData, AuthorizationDataArgs } from '../types';
import { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types';
export type UnlockV1InstructionAccounts = {

@@ -17,3 +17,3 @@ /** Delegate or freeze authority */

/** Token account */
token: PublicKey;
token?: PublicKey;
/** Mint account */

@@ -46,6 +46,9 @@ mint: PublicKey;

export type UnlockV1InstructionDataArgs = {
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};
export declare function getUnlockV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<UnlockV1InstructionDataArgs, UnlockV1InstructionData>;
export type UnlockV1InstructionArgs = UnlockV1InstructionDataArgs;
export type UnlockV1InstructionExtraArgs = {
tokenStandard: TokenStandardArgs;
};
export type UnlockV1InstructionArgs = UnlockV1InstructionDataArgs & UnlockV1InstructionExtraArgs;
export declare function unlockV1(context: Pick<Context, 'serializer' | 'programs' | 'eddsa' | 'identity' | 'payer'>, input: UnlockV1InstructionAccounts & UnlockV1InstructionArgs): TransactionBuilder;

@@ -11,3 +11,5 @@ "use strict";

exports.unlockV1 = exports.getUnlockV1InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -29,2 +31,3 @@ const shared_1 = require("../shared");

unlockV1Discriminator: 0,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -46,6 +49,14 @@ }

(0, shared_1.addObjectProperty)(resolvingAccounts, 'authority', input.authority ?? context.identity);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenOwner', input.tokenOwner ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenOwner', input.tokenOwner ??
(0, hooked_1.resolveOptionalTokenOwner)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint),
owner: (0, umi_1.publicKey)(resolvingAccounts.tokenOwner),
}));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'metadata', input.metadata ?? (0, accounts_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint) }));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'edition', input.edition ??
(0, hooked_1.resolveMasterEdition)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'tokenRecord', input.tokenRecord ??
(0, hooked_1.resolveTokenRecord)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'payer', input.payer ?? context.payer);

@@ -58,5 +69,7 @@ (0, shared_1.addObjectProperty)(resolvingAccounts, 'systemProgram', input.systemProgram ?? {

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ??
(0, hooked_1.resolveTokenProgramForNonProgrammables)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -63,0 +76,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'UnverifySizedCollectionItemInstructionData' }), (value) => ({
...value,
discriminator: 31,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'UnverifySizedCollectionItemInstructionData' }), (value) => ({ ...value, discriminator: 31 }));
}

@@ -21,0 +18,0 @@ exports.getUnverifySizedCollectionItemInstructionDataSerializer = getUnverifySizedCollectionItemInstructionDataSerializer;

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

['isMutable', s.option(s.bool())],
], { description: 'UpdateMetadataAccountV2InstructionData' }), (value) => ({
...value,
discriminator: 15,
}));
], { description: 'UpdateMetadataAccountV2InstructionData' }), (value) => ({ ...value, discriminator: 15 }));
}

@@ -28,0 +25,0 @@ exports.getUpdateMetadataAccountV2InstructionDataSerializer = getUpdateMetadataAccountV2InstructionDataSerializer;

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'UpdatePrimarySaleHappenedViaTokenInstructionData' }), (value) => ({
...value,
discriminator: 4,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'UpdatePrimarySaleHappenedViaTokenInstructionData' }), (value) => ({ ...value, discriminator: 4 }));
}

@@ -21,0 +18,0 @@ exports.getUpdatePrimarySaleHappenedViaTokenInstructionDataSerializer = getUpdatePrimarySaleHappenedViaTokenInstructionDataSerializer;

@@ -12,2 +12,3 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -82,4 +83,5 @@ const shared_1 = require("../shared");

(0, umi_1.publicKey)('Sysvar1nstructions1111111111111111111111111'));
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -86,0 +88,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

@@ -42,3 +42,3 @@ /**

export type UseV1InstructionDataArgs = {
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};

@@ -45,0 +45,0 @@ export declare function getUseV1InstructionDataSerializer(context: Pick<Context, 'serializer'>): Serializer<UseV1InstructionDataArgs, UseV1InstructionData>;

@@ -12,2 +12,3 @@ "use strict";

const umi_1 = require("@metaplex-foundation/umi");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -29,2 +30,3 @@ const shared_1 = require("../shared");

useV1Discriminator: 0,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
}));

@@ -58,4 +60,5 @@ }

(0, shared_1.addObjectProperty)(resolvingAccounts, 'splTokenProgram', input.splTokenProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRules', input.authorizationRules ?? programId);
(0, shared_1.addObjectProperty)(resolvingAccounts, 'authorizationRulesProgram', input.authorizationRulesProgram ??
(0, hooked_1.resolveAuthorizationRulesProgram)(context, { ...input, ...resolvingAccounts }, { ...input, ...resolvingArgs }, programId));
const resolvedAccounts = { ...input, ...resolvingAccounts };

@@ -62,0 +65,0 @@ const resolvedArgs = { ...input, ...resolvingArgs };

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

const s = context.serializer;
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'VerifySizedCollectionItemInstructionData' }), (value) => ({
...value,
discriminator: 30,
}));
return (0, umi_1.mapSerializer)(s.struct([['discriminator', s.u8()]], { description: 'VerifySizedCollectionItemInstructionData' }), (value) => ({ ...value, discriminator: 30 }));
}

@@ -21,0 +18,0 @@ exports.getVerifySizedCollectionItemInstructionDataSerializer = getVerifySizedCollectionItemInstructionDataSerializer;

@@ -15,3 +15,3 @@ /**

__kind: 'V1';
amount: number | bigint;
amount?: number | bigint;
};

@@ -18,0 +18,0 @@ export declare function getBurnArgsSerializer(context: Pick<Context, 'serializer'>): Serializer<BurnArgsArgs, BurnArgs>;

@@ -11,2 +11,3 @@ "use strict";

exports.isBurnArgs = exports.burnArgs = exports.getBurnArgsSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");
function getBurnArgsSerializer(context) {

@@ -17,3 +18,5 @@ const s = context.serializer;

'V1',
s.struct([['amount', s.u64()]]),
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],
]), (value) => ({ ...value, amount: value.amount ?? 1 })),
],

@@ -20,0 +23,0 @@ ], { description: 'BurnArgs' });

@@ -46,33 +46,33 @@ /**

__kind: 'CollectionV1';
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
} | {
__kind: 'SaleV1';
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
} | {
__kind: 'TransferV1';
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
} | {
__kind: 'UpdateV1';
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
} | {
__kind: 'UtilityV1';
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
} | {
__kind: 'StakingV1';
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
} | {
__kind: 'StandardV1';
amount: number | bigint;
amount?: number | bigint;
} | {
__kind: 'LockedTransferV1';
amount: number | bigint;
amount?: number | bigint;
lockedAddress: PublicKey;
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
} | {
__kind: 'ProgrammableConfigV1';
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};

@@ -79,0 +79,0 @@ export declare function getDelegateArgsSerializer(context: Pick<Context, 'serializer'>): Serializer<DelegateArgsArgs, DelegateArgs>;

@@ -11,2 +11,3 @@ "use strict";

exports.isDelegateArgs = exports.delegateArgs = exports.getDelegateArgsSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");
const _1 = require(".");

@@ -18,3 +19,3 @@ function getDelegateArgsSerializer(context) {

'CollectionV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
[

@@ -24,7 +25,10 @@ 'authorizationData',

],
]),
]), (value) => ({
...value,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],
[
'SaleV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],

@@ -35,7 +39,11 @@ [

],
]),
]), (value) => ({
...value,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],
[
'TransferV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],

@@ -46,7 +54,11 @@ [

],
]),
]), (value) => ({
...value,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],
[
'UpdateV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
[

@@ -56,7 +68,10 @@ 'authorizationData',

],
]),
]), (value) => ({
...value,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],
[
'UtilityV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],

@@ -67,7 +82,11 @@ [

],
]),
]), (value) => ({
...value,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],
[
'StakingV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],

@@ -78,13 +97,17 @@ [

],
]),
]), (value) => ({
...value,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],
[
'StandardV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],
]),
]), (value) => ({ ...value, amount: value.amount ?? 1 })),
],
[
'LockedTransferV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],

@@ -96,7 +119,11 @@ ['lockedAddress', s.publicKey()],

],
]),
]), (value) => ({
...value,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],
[
'ProgrammableConfigV1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
[

@@ -106,3 +133,6 @@ 'authorizationData',

],
]),
]), (value) => ({
...value,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],

@@ -109,0 +139,0 @@ ], { description: 'DelegateArgs' });

@@ -16,3 +16,3 @@ /**

__kind: 'V1';
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};

@@ -19,0 +19,0 @@ export declare function getLockArgsSerializer(context: Pick<Context, 'serializer'>): Serializer<LockArgsArgs, LockArgs>;

@@ -11,2 +11,3 @@ "use strict";

exports.isLockArgs = exports.lockArgs = exports.getLockArgsSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");
const _1 = require(".");

@@ -18,3 +19,3 @@ function getLockArgsSerializer(context) {

'V1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
[

@@ -24,3 +25,6 @@ 'authorizationData',

],
]),
]), (value) => ({
...value,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],

@@ -27,0 +31,0 @@ ], { description: 'LockArgs' });

@@ -17,3 +17,3 @@ /**

__kind: 'V1';
amount: number | bigint;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;

@@ -20,0 +20,0 @@ };

@@ -26,2 +26,3 @@ "use strict";

...value,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),

@@ -28,0 +29,0 @@ })),

@@ -17,4 +17,4 @@ /**

__kind: 'V1';
amount: number | bigint;
authorizationData: Option<AuthorizationDataArgs>;
amount?: number | bigint;
authorizationData?: Option<AuthorizationDataArgs>;
};

@@ -21,0 +21,0 @@ export declare function getTransferArgsSerializer(context: Pick<Context, 'serializer'>): Serializer<TransferArgsArgs, TransferArgs>;

@@ -11,2 +11,3 @@ "use strict";

exports.isTransferArgs = exports.transferArgs = exports.getTransferArgsSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");
const _1 = require(".");

@@ -18,3 +19,3 @@ function getTransferArgsSerializer(context) {

'V1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
['amount', s.u64()],

@@ -25,3 +26,7 @@ [

],
]),
]), (value) => ({
...value,
amount: value.amount ?? 1,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],

@@ -28,0 +33,0 @@ ], { description: 'TransferArgs' });

@@ -16,3 +16,3 @@ /**

__kind: 'V1';
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};

@@ -19,0 +19,0 @@ export declare function getUnlockArgsSerializer(context: Pick<Context, 'serializer'>): Serializer<UnlockArgsArgs, UnlockArgs>;

@@ -11,2 +11,3 @@ "use strict";

exports.isUnlockArgs = exports.unlockArgs = exports.getUnlockArgsSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");
const _1 = require(".");

@@ -18,3 +19,3 @@ function getUnlockArgsSerializer(context) {

'V1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
[

@@ -24,3 +25,6 @@ 'authorizationData',

],
]),
]), (value) => ({
...value,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],

@@ -27,0 +31,0 @@ ], { description: 'UnlockArgs' });

@@ -16,3 +16,3 @@ /**

__kind: 'V1';
authorizationData: Option<AuthorizationDataArgs>;
authorizationData?: Option<AuthorizationDataArgs>;
};

@@ -19,0 +19,0 @@ export declare function getUseArgsSerializer(context: Pick<Context, 'serializer'>): Serializer<UseArgsArgs, UseArgs>;

@@ -11,2 +11,3 @@ "use strict";

exports.isUseArgs = exports.useArgs = exports.getUseArgsSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");
const _1 = require(".");

@@ -18,3 +19,3 @@ function getUseArgsSerializer(context) {

'V1',
s.struct([
(0, umi_1.mapSerializer)(s.struct([
[

@@ -24,3 +25,6 @@ 'authorizationData',

],
]),
]), (value) => ({
...value,
authorizationData: value.authorizationData ?? (0, umi_1.none)(),
})),
],

@@ -27,0 +31,0 @@ ], { description: 'UseArgs' });

@@ -11,2 +11,7 @@ import { Context, Option, Pda, PublicKey, Signer } from '@metaplex-foundation/umi';

}, programId: PublicKey) => PublicKey | Pda;
export declare const resolveMasterEditionForProgrammables: (context: Pick<Context, 'eddsa' | 'serializer' | 'programs'>, accounts: {
mint: PublicKey | Signer;
}, args: {
tokenStandard: TokenStandard;
}, programId: PublicKey) => PublicKey | Pda;
export declare const resolveDecimals: (context: any, accounts: any, args: {

@@ -24,10 +29,29 @@ tokenStandard: TokenStandard;

}, programId: any) => number;
export declare const resolveMintTokenOwner: (context: Pick<Context, 'identity'>, accounts: {
export declare const resolveOptionalTokenOwner: (context: Pick<Context, 'identity'>, accounts: {
token?: PublicKey;
}, args: any, programId: PublicKey) => PublicKey | Pda;
}, args: any, programId: PublicKey) => PublicKey;
export declare const resolveTokenRecord: (context: Pick<Context, 'eddsa' | 'serializer' | 'programs'>, accounts: {
mint: PublicKey | Signer;
token: PublicKey;
token?: PublicKey;
}, args: {
tokenStandard: TokenStandard;
}, programId: PublicKey) => PublicKey | Pda;
export declare const resolveDestinationTokenRecord: (context: Pick<Context, 'eddsa' | 'serializer' | 'programs'>, accounts: {
mint: PublicKey | Signer;
destinationToken: PublicKey;
}, args: {
tokenStandard: TokenStandard;
}, programId: PublicKey) => PublicKey | Pda;
export declare const resolveAuthorizationRulesProgram: (context: Pick<Context, 'programs'>, accounts: {
authorizationRules?: PublicKey;
}, args: any, programId: PublicKey) => PublicKey & {
isWritable?: false;
};
export declare const resolveTokenProgramForNonProgrammables: (context: Pick<Context, 'programs'>, accounts: any, args: {
tokenStandard: TokenStandard;
}, programId: PublicKey) => PublicKey & {
isWritable?: false;
};
export declare const resolveBurnMasterEdition: (context: Pick<Context, 'eddsa' | 'serializer' | 'programs'>, accounts: {
masterEditionMint: PublicKey;
}, args: any, programId: PublicKey) => PublicKey | Pda;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveTokenRecord = exports.resolveMintTokenOwner = exports.resolveCreateV1Bytes = exports.resolveCreators = exports.resolvePrintSupply = exports.resolveDecimals = exports.resolveMasterEdition = exports.resolveCollectionDetails = void 0;
exports.resolveBurnMasterEdition = exports.resolveTokenProgramForNonProgrammables = exports.resolveAuthorizationRulesProgram = exports.resolveDestinationTokenRecord = exports.resolveTokenRecord = exports.resolveOptionalTokenOwner = exports.resolveCreateV1Bytes = exports.resolveCreators = exports.resolvePrintSupply = exports.resolveDecimals = exports.resolveMasterEditionForProgrammables = exports.resolveMasterEdition = exports.resolveCollectionDetails = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -14,2 +14,6 @@ const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");

exports.resolveMasterEdition = resolveMasterEdition;
const resolveMasterEditionForProgrammables = (context, accounts, args, programId) => (0, digitalAsset_1.isNonFungible)(args.tokenStandard) && (0, digitalAsset_1.isProgrammable)(args.tokenStandard)
? (0, generated_1.findMasterEditionPda)(context, { mint: (0, umi_1.publicKey)(accounts.mint) })
: programId;
exports.resolveMasterEditionForProgrammables = resolveMasterEditionForProgrammables;
const resolveDecimals = (context, accounts, args, programId) => ((0, digitalAsset_1.isNonFungible)(args.tokenStandard) ? (0, umi_1.none)() : (0, umi_1.some)(0));

@@ -31,5 +35,5 @@ exports.resolveDecimals = resolveDecimals;

exports.resolveCreateV1Bytes = resolveCreateV1Bytes;
const resolveMintTokenOwner = (context, accounts, args, programId) => (accounts.token ? programId : context.identity.publicKey);
exports.resolveMintTokenOwner = resolveMintTokenOwner;
const resolveTokenRecord = (context, accounts, args, programId) => (0, digitalAsset_1.isProgrammable)(args.tokenStandard)
const resolveOptionalTokenOwner = (context, accounts, args, programId) => (accounts.token ? programId : context.identity.publicKey);
exports.resolveOptionalTokenOwner = resolveOptionalTokenOwner;
const resolveTokenRecord = (context, accounts, args, programId) => (0, digitalAsset_1.isProgrammable)(args.tokenStandard) && accounts.token
? (0, generated_1.findTokenRecordPda)(context, {

@@ -41,2 +45,29 @@ mint: (0, umi_1.publicKey)(accounts.mint),

exports.resolveTokenRecord = resolveTokenRecord;
const resolveDestinationTokenRecord = (context, accounts, args, programId) => (0, digitalAsset_1.isProgrammable)(args.tokenStandard)
? (0, generated_1.findTokenRecordPda)(context, {
mint: (0, umi_1.publicKey)(accounts.mint),
token: accounts.destinationToken,
})
: programId;
exports.resolveDestinationTokenRecord = resolveDestinationTokenRecord;
const resolveAuthorizationRulesProgram = (context, accounts, args, programId) => accounts.authorizationRules
? {
...context.programs.getPublicKey('mplTokenAuthRules', 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg'),
isWritable: false,
}
: programId;
exports.resolveAuthorizationRulesProgram = resolveAuthorizationRulesProgram;
const resolveTokenProgramForNonProgrammables = (context, accounts, args, programId) => !(0, digitalAsset_1.isProgrammable)(args.tokenStandard)
? {
...context.programs.getPublicKey('splToken', 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'),
isWritable: false,
}
: programId;
exports.resolveTokenProgramForNonProgrammables = resolveTokenProgramForNonProgrammables;
const resolveBurnMasterEdition = (context, accounts, args, programId) => (0, umi_1.samePublicKey)(accounts.masterEditionMint, programId)
? programId
: (0, generated_1.findMasterEditionPda)(context, {
mint: (0, umi_1.publicKey)(accounts.masterEditionMint),
});
exports.resolveBurnMasterEdition = resolveBurnMasterEdition;
//# sourceMappingURL=resolvers.js.map
{
"name": "@metaplex-foundation/mpl-token-metadata",
"version": "3.0.0-alpha.17",
"version": "3.0.0-alpha.18",
"description": "JavaScript client for Token Metadata",

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

"dependencies": {
"@metaplex-foundation/mpl-essentials": "^0.5.5"
"@metaplex-foundation/mpl-essentials": "^0.5.8"
},

@@ -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 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

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

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

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc