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

@metaplex-foundation/mpl-candy-machine

Package Overview
Dependencies
Maintainers
10
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metaplex-foundation/mpl-candy-machine - npm Package Compare versions

Comparing version 6.0.0-alpha.12 to 6.0.0-alpha.13

dist/src/defaultGuards/allocation.d.ts

4

dist/src/createCandyMachine.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCandyMachine = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const umi_1 = require("@metaplex-foundation/umi");

@@ -12,3 +12,3 @@ const generated_1 = require("./generated");

return (0, umi_1.transactionBuilder)()
.add((0, mpl_essentials_1.createAccount)(context, {
.add((0, mpl_toolbox_1.createAccount)(context, {
newAccount: input.candyMachine,

@@ -15,0 +15,0 @@ lamports,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCandyMachineV2 = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const umi_1 = require("@metaplex-foundation/umi");

@@ -12,3 +12,3 @@ const generated_1 = require("./generated");

return (0, umi_1.transactionBuilder)()
.add((0, mpl_essentials_1.createAccount)(context, {
.add((0, mpl_toolbox_1.createAccount)(context, {
newAccount: input.candyMachine,

@@ -15,0 +15,0 @@ lamports,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLutAddressesForCandyMachine = exports.createLutForCandyMachine = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");

@@ -11,3 +11,3 @@ const umi_1 = require("@metaplex-foundation/umi");

const addresses = await (0, exports.getLutAddressesForCandyMachine)(context, candyMachine, collectionUpdateAuthority);
return (0, mpl_essentials_1.createLut)(context, {
return (0, mpl_toolbox_1.createLut)(context, {
recentSlot,

@@ -47,4 +47,4 @@ addresses,

: delegateRecordV2,
(0, mpl_essentials_1.getSysvar)('instructions'),
(0, mpl_essentials_1.getSysvar)('slotHashes'),
(0, mpl_toolbox_1.getSysvar)('instructions'),
(0, mpl_toolbox_1.getSysvar)('slotHashes'),
]);

@@ -51,0 +51,0 @@ };

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.allowListGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const umi_1 = require("@metaplex-foundation/umi");

@@ -70,3 +70,3 @@ const generated_1 = require("../generated");

},
{ isWritable: false, publicKey: (0, mpl_essentials_1.getSplSystemProgramId)(context) },
{ isWritable: false, publicKey: (0, mpl_toolbox_1.getSplSystemProgramId)(context) },
...(args.minter !== undefined

@@ -73,0 +73,0 @@ ? [{ isWritable: false, publicKey: (0, umi_1.publicKey)(args.minter) }]

import { Option } from '@metaplex-foundation/umi';
import { AddressGate, AddressGateArgs, AllowList, AllowListArgs, BotTax, BotTaxArgs, EndDate, EndDateArgs, FreezeSolPayment, FreezeSolPaymentArgs, FreezeTokenPayment, FreezeTokenPaymentArgs, Gatekeeper, GatekeeperArgs, MintLimit, MintLimitArgs, NftBurn, NftBurnArgs, NftGate, NftGateArgs, NftPayment, NftPaymentArgs, ProgramGate, ProgramGateArgs, RedeemedAmount, RedeemedAmountArgs, SolPayment, SolPaymentArgs, StartDate, StartDateArgs, ThirdPartySigner, ThirdPartySignerArgs, TokenBurn, TokenBurnArgs, TokenGate, TokenGateArgs, TokenPayment, TokenPaymentArgs } from '../generated';
import { AddressGate, AddressGateArgs, Allocation, AllocationArgs, AllowList, AllowListArgs, BotTax, BotTaxArgs, EndDate, EndDateArgs, FreezeSolPayment, FreezeSolPaymentArgs, FreezeTokenPayment, FreezeTokenPaymentArgs, Gatekeeper, GatekeeperArgs, MintLimit, MintLimitArgs, NftBurn, NftBurnArgs, NftGate, NftGateArgs, NftPayment, NftPaymentArgs, ProgramGate, ProgramGateArgs, RedeemedAmount, RedeemedAmountArgs, SolPayment, SolPaymentArgs, StartDate, StartDateArgs, ThirdPartySigner, ThirdPartySignerArgs, Token2022Payment, Token2022PaymentArgs, TokenBurn, TokenBurnArgs, TokenGate, TokenGateArgs, TokenPayment, TokenPaymentArgs } from '../generated';
import { GuardSet, GuardSetArgs, GuardSetMintArgs, GuardSetRouteArgs } from '../guards/guardSet';
import { AllocationMintArgs, AllocationRouteArgs } from './allocation';
import { AllowListMintArgs, AllowListRouteArgs } from './allowList';

@@ -17,2 +18,3 @@ import { FreezeSolPaymentMintArgs, FreezeSolPaymentRouteArgs } from './freezeSolPayment';

import { TokenPaymentMintArgs } from './tokenPayment';
import { Token2022PaymentMintArgs } from './token2022Payment';
/**

@@ -41,2 +43,4 @@ * The arguments for all default Candy Machine guards.

programGate: Option<ProgramGateArgs>;
allocation: Option<AllocationArgs>;
token2022Payment: Option<Token2022PaymentArgs>;
};

@@ -66,2 +70,4 @@ /**

programGate: Option<ProgramGate>;
allocation: Option<Allocation>;
token2022Payment: Option<Token2022Payment>;
};

@@ -85,2 +91,4 @@ /**

freezeTokenPayment: Option<FreezeTokenPaymentMintArgs>;
allocation: Option<AllocationMintArgs>;
token2022Payment: Option<Token2022PaymentMintArgs>;
};

@@ -94,2 +102,3 @@ /**

freezeTokenPayment: FreezeTokenPaymentRouteArgs;
allocation: AllocationRouteArgs;
};

@@ -96,0 +105,0 @@ /** @internal */

@@ -26,2 +26,4 @@ "use strict";

'programGate',
'allocation',
'token2022Payment',
];

@@ -28,0 +30,0 @@ /** @internal */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.freezeSolPaymentGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");

@@ -30,3 +30,3 @@ const programs_1 = require("../programs");

});
const nftAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const nftAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: mintContext.mint,

@@ -76,3 +76,3 @@ owner: mintContext.minter.publicKey,

{ signer: args.candyGuardAuthority, isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplSystemProgramId)(context), isWritable: false },
],

@@ -87,7 +87,7 @@ };

});
const nftFreezeAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const nftFreezeAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.nftMint,
owner: freezeEscrow,
});
const nftAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const nftAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.nftMint,

@@ -113,3 +113,3 @@ owner: args.nftOwner,

{ publicKey: nftEdition, isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_token_metadata_1.getMplTokenMetadataProgramId)(context), isWritable: false },

@@ -123,5 +123,5 @@ ];

{ publicKey: nftFreezeAta, isWritable: true },
{ publicKey: (0, mpl_essentials_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSysvar)('instructions'), isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplAssociatedTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSysvar)('instructions'), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplAssociatedTokenProgramId)(context), isWritable: false },
{ publicKey: nftAtaTokenRecord, isWritable: true },

@@ -151,3 +151,3 @@ { publicKey: nftFreezeAtaTokenRecord, isWritable: true },

{ publicKey: args.destination, isWritable: true },
{ publicKey: (0, mpl_essentials_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplSystemProgramId)(context), isWritable: false },
],

@@ -154,0 +154,0 @@ };

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.freezeTokenPaymentGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");

@@ -30,11 +30,11 @@ const errors_1 = require("../errors");

});
const nftAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const nftAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: mintContext.mint,
owner: mintContext.minter.publicKey,
});
const tokenAddress = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const tokenAddress = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,
owner: mintContext.minter.publicKey,
});
const freezeAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const freezeAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -76,3 +76,3 @@ owner: freezeEscrow,

});
const freezeAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const freezeAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -91,7 +91,7 @@ owner: freezeEscrow,

{ signer: args.candyGuardAuthority, isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: freezeAta, isWritable: true },
{ publicKey: args.mint, isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplAssociatedTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplAssociatedTokenProgramId)(context), isWritable: false },
{ publicKey: args.destinationAta, isWritable: true },

@@ -107,7 +107,7 @@ ],

});
const nftFreezeAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const nftFreezeAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.nftMint,
owner: freezeEscrow,
});
const nftAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const nftAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.nftMint,

@@ -133,3 +133,3 @@ owner: args.nftOwner,

{ publicKey: nftEdition, isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_token_metadata_1.getMplTokenMetadataProgramId)(context), isWritable: false },

@@ -143,5 +143,5 @@ ];

{ publicKey: nftFreezeAta, isWritable: true },
{ publicKey: (0, mpl_essentials_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSysvar)('instructions'), isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplAssociatedTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSysvar)('instructions'), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplAssociatedTokenProgramId)(context), isWritable: false },
{ publicKey: nftAtaTokenRecord, isWritable: true },

@@ -165,3 +165,3 @@ { publicKey: nftFreezeAtaTokenRecord, isWritable: true },

});
const freezeAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const freezeAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -177,4 +177,4 @@ owner: freezeEscrow,

{ publicKey: args.destinationAta, isWritable: true },
{ publicKey: (0, mpl_essentials_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_essentials_1.getSplSystemProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplTokenProgramId)(context), isWritable: false },
{ publicKey: (0, mpl_toolbox_1.getSplSystemProgramId)(context), isWritable: false },
],

@@ -181,0 +181,0 @@ };

export * from './addressGate';
export * from './allocation';
export * from './allowList';

@@ -21,1 +22,2 @@ export * from './botTax';

export * from './tokenPayment';
export * from './token2022Payment';

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

__exportStar(require("./addressGate"), exports);
__exportStar(require("./allocation"), exports);
__exportStar(require("./allowList"), exports);

@@ -38,2 +39,3 @@ __exportStar(require("./botTax"), exports);

__exportStar(require("./tokenPayment"), exports);
__exportStar(require("./token2022Payment"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nftBurnGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");

@@ -22,3 +22,3 @@ const generated_1 = require("../generated");

const nftTokenAccount = args.tokenAccount ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
(0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -25,0 +25,0 @@ owner: mintContext.minter.publicKey,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nftGateGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");

@@ -20,3 +20,3 @@ const generated_1 = require("../generated");

const tokenAccount = args.tokenAccount ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
(0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -23,0 +23,0 @@ owner: mintContext.minter.publicKey,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nftPaymentGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");

@@ -24,3 +24,3 @@ const programs_1 = require("../programs");

const nftTokenAccount = args.tokenAccount ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
(0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -30,3 +30,3 @@ owner: mintContext.minter.publicKey,

const nftMetadata = (0, mpl_token_metadata_1.findMetadataPda)(context, { mint: args.mint });
const destinationAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const destinationAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -42,3 +42,3 @@ owner: args.destination,

{
publicKey: (0, mpl_essentials_1.getSplAssociatedTokenProgramId)(context),
publicKey: (0, mpl_toolbox_1.getSplAssociatedTokenProgramId)(context),
isWritable: false,

@@ -45,0 +45,0 @@ },

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tokenBurnGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const generated_1 = require("../generated");

@@ -20,3 +20,3 @@ const guards_1 = require("../guards");

mintParser: (context, mintContext, args) => {
const tokenAccount = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const tokenAccount = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -23,0 +23,0 @@ owner: mintContext.minter.publicKey,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tokenGateGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const generated_1 = require("../generated");

@@ -20,3 +20,3 @@ const guards_1 = require("../guards");

mintParser: (context, mintContext, args) => {
const tokenAccount = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const tokenAccount = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -23,0 +23,0 @@ owner: mintContext.minter.publicKey,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tokenPaymentGuardManifest = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const generated_1 = require("../generated");

@@ -20,3 +20,3 @@ const guards_1 = require("../guards");

mintParser: (context, mintContext, args) => {
const sourceAta = (0, mpl_essentials_1.findAssociatedTokenPda)(context, {
const sourceAta = (0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: args.mint,

@@ -23,0 +23,0 @@ owner: mintContext.minter.publicKey,

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

...value,
discriminator: [95, 25, 33, 117, 164, 206, 9, 250],
discriminator: [44, 207, 199, 184, 112, 103, 34, 181],
}));

@@ -69,3 +69,3 @@ }

.deserializeUsing((account) => deserializeCandyGuard(context, account))
.whereField('discriminator', [95, 25, 33, 117, 164, 206, 9, 250]);
.whereField('discriminator', [44, 207, 199, 184, 112, 103, 34, 181]);
}

@@ -72,0 +72,0 @@ exports.getCandyGuardGpaBuilder = getCandyGuardGpaBuilder;

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

.deserializeUsing((account) => deserializeCandyMachine(context, account))
.whereField('discriminator', [115, 157, 18, 166, 35, 44, 221, 13]);
.whereField('discriminator', [51, 173, 177, 113, 25, 241, 109, 189]);
}
exports.getCandyMachineGpaBuilder = getCandyMachineGpaBuilder;
//# sourceMappingURL=candyMachine.js.map

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

...value,
discriminator: [100, 4, 61, 102, 0, 123, 141, 187],
discriminator: [227, 186, 40, 152, 7, 174, 131, 184],
}));

@@ -77,3 +77,3 @@ }

.deserializeUsing((account) => deserializeFreezeEscrow(context, account))
.whereField('discriminator', [100, 4, 61, 102, 0, 123, 141, 187]);
.whereField('discriminator', [227, 186, 40, 152, 7, 174, 131, 184]);
}

@@ -80,0 +80,0 @@ exports.getFreezeEscrowGpaBuilder = getFreezeEscrowGpaBuilder;

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

*/
export * from './allocationTracker';
export * from './allowListProof';

@@ -10,0 +11,0 @@ export * from './candyMachine';

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

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./allocationTracker"), exports);
__exportStar(require("./allowListProof"), exports);

@@ -26,0 +27,0 @@ __exportStar(require("./candyMachine"), exports);

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

exports.mintFromCandyMachineV2 = exports.getMintFromCandyMachineV2InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const umi_1 = require("@metaplex-foundation/umi");

@@ -47,3 +47,3 @@ const hooked_1 = require("../../hooked");

(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
(0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.nftMint),

@@ -50,0 +50,0 @@ owner: (0, umi_1.publicKey)(input.nftOwner),

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

exports.mintV2 = exports.getMintV2InstructionDataSerializer = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const umi_1 = require("@metaplex-foundation/umi");

@@ -59,3 +59,3 @@ const hooked_1 = require("../../hooked");

(0, shared_1.addObjectProperty)(resolvingAccounts, 'token', input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
(0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.nftMint),

@@ -62,0 +62,0 @@ owner: (0, umi_1.publicKey)(resolvingAccounts.minter),

@@ -14,3 +14,3 @@ /**

*
* 0. `[writable]` Mint tracker PDA. The PDA is derived
* 0. `[writable]` Allocation tracker PDA. The PDA is derived
* using the seed `["allocation", allocation id,

@@ -22,6 +22,6 @@ * candy guard pubkey, candy machine pubkey]`.

id: number;
/** The size of the allocation. */
size: number;
/** The limit of the allocation. */
limit: number;
};
export type AllocationArgs = Allocation;
export declare function getAllocationSerializer(context: Pick<Context, 'serializer'>): Serializer<AllocationArgs, Allocation>;

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

['id', s.u8()],
['size', s.u32()],
['limit', s.u32()],
], { description: 'Allocation' });

@@ -18,0 +18,0 @@ }

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

...value,
discriminator: [115, 157, 18, 166, 35, 44, 221, 13],
discriminator: [51, 173, 177, 113, 25, 241, 109, 189],
}));

@@ -31,0 +31,0 @@ }

@@ -30,5 +30,6 @@ /**

ProgramGate = 18,
Allocation = 19
Allocation = 19,
Token2022Payment = 20
}
export type GuardTypeArgs = GuardType;
export declare function getGuardTypeSerializer(context: Pick<Context, 'serializer'>): Serializer<GuardTypeArgs, GuardType>;

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

GuardType[GuardType["Allocation"] = 19] = "Allocation";
GuardType[GuardType["Token2022Payment"] = 20] = "Token2022Payment";
})(GuardType = exports.GuardType || (exports.GuardType = {}));

@@ -36,0 +37,0 @@ function getGuardTypeSerializer(context) {

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

export * from './mintLimit';
export * from './mintTracker';
export * from './nftBurn';

@@ -35,4 +34,5 @@ export * from './nftGate';

export * from './thirdPartySigner';
export * from './token2022Payment';
export * from './tokenBurn';
export * from './tokenGate';
export * from './tokenPayment';

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

__exportStar(require("./mintLimit"), exports);
__exportStar(require("./mintTracker"), exports);
__exportStar(require("./nftBurn"), exports);

@@ -51,2 +50,3 @@ __exportStar(require("./nftGate"), exports);

__exportStar(require("./thirdPartySigner"), exports);
__exportStar(require("./token2022Payment"), exports);
__exportStar(require("./tokenBurn"), exports);

@@ -53,0 +53,0 @@ __exportStar(require("./tokenGate"), exports);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mintV2 = void 0;
const mpl_essentials_1 = require("@metaplex-foundation/mpl-essentials");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");

@@ -30,3 +30,3 @@ const umi_1 = require("@metaplex-foundation/umi");

token: input.token ??
(0, mpl_essentials_1.findAssociatedTokenPda)(context, {
(0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.nftMint),

@@ -50,3 +50,3 @@ owner: (0, umi_1.publicKey)(input.minter ?? context.identity),

ix.bytesCreatedOnChain +=
(0, mpl_essentials_1.getMintSize)() + (0, mpl_essentials_1.getTokenSize)() + 2 * umi_1.ACCOUNT_HEADER_SIZE;
(0, mpl_toolbox_1.getMintSize)() + (0, mpl_toolbox_1.getTokenSize)() + 2 * umi_1.ACCOUNT_HEADER_SIZE;
}

@@ -53,0 +53,0 @@ if ((0, mpl_token_metadata_1.isProgrammable)(tokenStandard)) {

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

umi.guards = new guards_1.DefaultGuardRepository(umi);
umi.guards.add(defaultGuards_1.botTaxGuardManifest, defaultGuards_1.solPaymentGuardManifest, defaultGuards_1.tokenPaymentGuardManifest, defaultGuards_1.startDateGuardManifest, defaultGuards_1.thirdPartySignerGuardManifest, defaultGuards_1.tokenGateGuardManifest, defaultGuards_1.gatekeeperGuardManifest, defaultGuards_1.endDateGuardManifest, defaultGuards_1.allowListGuardManifest, defaultGuards_1.mintLimitGuardManifest, defaultGuards_1.nftPaymentGuardManifest, defaultGuards_1.redeemedAmountGuardManifest, defaultGuards_1.addressGateGuardManifest, defaultGuards_1.nftGateGuardManifest, defaultGuards_1.nftBurnGuardManifest, defaultGuards_1.tokenBurnGuardManifest, defaultGuards_1.freezeSolPaymentGuardManifest, defaultGuards_1.freezeTokenPaymentGuardManifest, defaultGuards_1.programGateGuardManifest);
umi.guards.add(defaultGuards_1.botTaxGuardManifest, defaultGuards_1.solPaymentGuardManifest, defaultGuards_1.tokenPaymentGuardManifest, defaultGuards_1.startDateGuardManifest, defaultGuards_1.thirdPartySignerGuardManifest, defaultGuards_1.tokenGateGuardManifest, defaultGuards_1.gatekeeperGuardManifest, defaultGuards_1.endDateGuardManifest, defaultGuards_1.allowListGuardManifest, defaultGuards_1.mintLimitGuardManifest, defaultGuards_1.nftPaymentGuardManifest, defaultGuards_1.redeemedAmountGuardManifest, defaultGuards_1.addressGateGuardManifest, defaultGuards_1.nftGateGuardManifest, defaultGuards_1.nftBurnGuardManifest, defaultGuards_1.tokenBurnGuardManifest, defaultGuards_1.freezeSolPaymentGuardManifest, defaultGuards_1.freezeTokenPaymentGuardManifest, defaultGuards_1.programGateGuardManifest, defaultGuards_1.allocationGuardManifest, defaultGuards_1.token2022PaymentGuardManifest);
},

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

{
"name": "@metaplex-foundation/mpl-candy-machine",
"version": "6.0.0-alpha.12",
"version": "6.0.0-alpha.13",
"description": "Client library for Candy Machine related programs",

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

"dependencies": {
"@metaplex-foundation/mpl-essentials": "^0.5.8",
"@metaplex-foundation/mpl-token-metadata": "3.0.0-alpha.18",
"@metaplex-foundation/mpl-toolbox": "^0.6.1",
"@metaplex-foundation/mpl-token-metadata": "3.0.0-alpha.22",
"@noble/hashes": "^1.2.0",

@@ -26,0 +26,0 @@ "merkletreejs": "^0.3.9"

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc