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
3
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 3.1.5 to 4.0.0

dist/src/generated/types/ErrorCode.d.ts

8

dist/src/generated/accounts/CandyMachine.d.ts
/// <reference types="node" />
import * as web3 from '@solana/web3.js';
import * as beet from '@metaplex-foundation/beet';
import * as definedTypes from '../types';
import { CandyMachineData } from '../types/CandyMachineData';
export declare type CandyMachineArgs = {

@@ -10,3 +10,3 @@ authority: web3.PublicKey;

itemsRedeemed: beet.bignum;
data: definedTypes.CandyMachineData;
data: CandyMachineData;
};

@@ -18,3 +18,3 @@ export declare class CandyMachine implements CandyMachineArgs {

readonly itemsRedeemed: beet.bignum;
readonly data: definedTypes.CandyMachineData;
readonly data: CandyMachineData;
private constructor();

@@ -33,3 +33,3 @@ static fromArgs(args: CandyMachineArgs): CandyMachine;

itemsRedeemed: beet.bignum;
data: definedTypes.CandyMachineData;
data: CandyMachineData;
};

@@ -36,0 +36,0 @@ }

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

const beet = __importStar(require("@metaplex-foundation/beet"));
const definedTypes = __importStar(require("../types"));
const beetSolana = __importStar(require("@metaplex-foundation/beet-solana"));
const CandyMachineData_1 = require("../types/CandyMachineData");
const candyMachineDiscriminator = [51, 173, 177, 113, 25, 241, 109, 189];

@@ -89,4 +89,4 @@ class CandyMachine {

['itemsRedeemed', beet.u64],
['data', definedTypes.candyMachineDataBeet],
['data', CandyMachineData_1.candyMachineDataBeet],
], CandyMachine.fromArgs, 'CandyMachine');
//# sourceMappingURL=CandyMachine.js.map
import { PublicKey } from '@solana/web3.js';
export * from './accounts';
export * from './errors';
export * from './instructions';

@@ -5,0 +4,0 @@ export * from './types';

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

__exportStar(require("./accounts"), exports);
__exportStar(require("./errors"), exports);
__exportStar(require("./instructions"), exports);

@@ -23,0 +22,0 @@ __exportStar(require("./types"), exports);

@@ -1,6 +0,6 @@

import * as definedTypes from '../types';
import * as web3 from '@solana/web3.js';
import { ConfigLine } from '../types/ConfigLine';
export declare type AddConfigLinesInstructionArgs = {
index: number;
configLines: definedTypes.ConfigLine[];
configLines: ConfigLine[];
};

@@ -7,0 +7,0 @@ export declare type AddConfigLinesInstructionAccounts = {

@@ -27,9 +27,9 @@ "use strict";

exports.createAddConfigLinesInstruction = void 0;
const definedTypes = __importStar(require("../types"));
const beet = __importStar(require("@metaplex-foundation/beet"));
const web3 = __importStar(require("@solana/web3.js"));
const ConfigLine_1 = require("../types/ConfigLine");
const addConfigLinesStruct = new beet.FixableBeetArgsStruct([
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
['index', beet.u32],
['configLines', beet.array(definedTypes.configLineBeet)],
['configLines', beet.array(ConfigLine_1.configLineBeet)],
], 'AddConfigLinesInstructionArgs');

@@ -36,0 +36,0 @@ const addConfigLinesInstructionDiscriminator = [223, 50, 224, 227, 151, 8, 115, 106];

@@ -1,5 +0,5 @@

import * as definedTypes from '../types';
import * as web3 from '@solana/web3.js';
import { CandyMachineData } from '../types/CandyMachineData';
export declare type InitializeCandyMachineInstructionArgs = {
data: definedTypes.CandyMachineData;
data: CandyMachineData;
};

@@ -6,0 +6,0 @@ export declare type InitializeCandyMachineInstructionAccounts = {

@@ -27,8 +27,8 @@ "use strict";

exports.createInitializeCandyMachineInstruction = void 0;
const definedTypes = __importStar(require("../types"));
const beet = __importStar(require("@metaplex-foundation/beet"));
const web3 = __importStar(require("@solana/web3.js"));
const CandyMachineData_1 = require("../types/CandyMachineData");
const initializeCandyMachineStruct = new beet.FixableBeetArgsStruct([
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
['data', definedTypes.candyMachineDataBeet],
['data', CandyMachineData_1.candyMachineDataBeet],
], 'InitializeCandyMachineInstructionArgs');

@@ -35,0 +35,0 @@ const initializeCandyMachineInstructionDiscriminator = [142, 137, 167, 107, 47, 39, 240, 124];

@@ -1,5 +0,5 @@

import * as definedTypes from '../types';
import * as web3 from '@solana/web3.js';
import { CandyMachineData } from '../types/CandyMachineData';
export declare type UpdateCandyMachineInstructionArgs = {
data: definedTypes.CandyMachineData;
data: CandyMachineData;
};

@@ -6,0 +6,0 @@ export declare type UpdateCandyMachineInstructionAccounts = {

@@ -27,8 +27,8 @@ "use strict";

exports.createUpdateCandyMachineInstruction = void 0;
const definedTypes = __importStar(require("../types"));
const beet = __importStar(require("@metaplex-foundation/beet"));
const web3 = __importStar(require("@solana/web3.js"));
const CandyMachineData_1 = require("../types/CandyMachineData");
const updateCandyMachineStruct = new beet.FixableBeetArgsStruct([
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
['data', definedTypes.candyMachineDataBeet],
['data', CandyMachineData_1.candyMachineDataBeet],
], 'UpdateCandyMachineInstructionArgs');

@@ -35,0 +35,0 @@ const updateCandyMachineInstructionDiscriminator = [243, 251, 124, 156, 211, 211, 118, 239];

import * as beet from '@metaplex-foundation/beet';
import * as definedTypes from '../types';
import { EndSettings } from './EndSettings';
import { Creator } from './Creator';
import { HiddenSettings } from './HiddenSettings';
import { WhitelistMintSettings } from './WhitelistMintSettings';
import { GatekeeperConfig } from './GatekeeperConfig';
export declare type CandyMachineData = {

@@ -12,9 +16,9 @@ uuid: string;

goLiveDate: beet.COption<beet.bignum>;
endSettings: beet.COption<definedTypes.EndSettings>;
creators: definedTypes.Creator[];
hiddenSettings: beet.COption<definedTypes.HiddenSettings>;
whitelistMintSettings: beet.COption<definedTypes.WhitelistMintSettings>;
endSettings: beet.COption<EndSettings>;
creators: Creator[];
hiddenSettings: beet.COption<HiddenSettings>;
whitelistMintSettings: beet.COption<WhitelistMintSettings>;
itemsAvailable: beet.bignum;
gatekeeper: beet.COption<definedTypes.GatekeeperConfig>;
gatekeeper: beet.COption<GatekeeperConfig>;
};
export declare const candyMachineDataBeet: beet.FixableBeetArgsStruct<definedTypes.CandyMachineData>;
export declare const candyMachineDataBeet: beet.FixableBeetArgsStruct<CandyMachineData>;

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

const beet = __importStar(require("@metaplex-foundation/beet"));
const definedTypes = __importStar(require("../types"));
const EndSettings_1 = require("./EndSettings");
const Creator_1 = require("./Creator");
const HiddenSettings_1 = require("./HiddenSettings");
const WhitelistMintSettings_1 = require("./WhitelistMintSettings");
const GatekeeperConfig_1 = require("./GatekeeperConfig");
exports.candyMachineDataBeet = new beet.FixableBeetArgsStruct([

@@ -39,9 +43,9 @@ ['uuid', beet.utf8String],

['goLiveDate', beet.coption(beet.i64)],
['endSettings', beet.coption(definedTypes.endSettingsBeet)],
['creators', beet.array(definedTypes.creatorBeet)],
['hiddenSettings', beet.coption(definedTypes.hiddenSettingsBeet)],
['whitelistMintSettings', beet.coption(definedTypes.whitelistMintSettingsBeet)],
['endSettings', beet.coption(EndSettings_1.endSettingsBeet)],
['creators', beet.array(Creator_1.creatorBeet)],
['hiddenSettings', beet.coption(HiddenSettings_1.hiddenSettingsBeet)],
['whitelistMintSettings', beet.coption(WhitelistMintSettings_1.whitelistMintSettingsBeet)],
['itemsAvailable', beet.u64],
['gatekeeper', beet.coption(definedTypes.gatekeeperConfigBeet)],
['gatekeeper', beet.coption(GatekeeperConfig_1.gatekeeperConfigBeet)],
], 'CandyMachineData');
//# sourceMappingURL=CandyMachineData.js.map

@@ -1,7 +0,7 @@

import * as definedTypes from '../types';
import * as beet from '@metaplex-foundation/beet';
import { EndSettingType } from './EndSettingType';
export declare type EndSettings = {
endSettingType: definedTypes.EndSettingType;
endSettingType: EndSettingType;
number: beet.bignum;
};
export declare const endSettingsBeet: beet.BeetArgsStruct<definedTypes.EndSettings>;
export declare const endSettingsBeet: beet.BeetArgsStruct<EndSettings>;

@@ -27,8 +27,8 @@ "use strict";

exports.endSettingsBeet = void 0;
const definedTypes = __importStar(require("../types"));
const beet = __importStar(require("@metaplex-foundation/beet"));
const EndSettingType_1 = require("./EndSettingType");
exports.endSettingsBeet = new beet.BeetArgsStruct([
['endSettingType', definedTypes.endSettingTypeBeet],
['endSettingType', EndSettingType_1.endSettingTypeBeet],
['number', beet.u64],
], 'EndSettings');
//# sourceMappingURL=EndSettings.js.map

@@ -6,2 +6,3 @@ export * from './CandyMachineData';

export * from './EndSettings';
export * from './ErrorCode';
export * from './GatekeeperConfig';

@@ -8,0 +9,0 @@ export * from './HiddenSettings';

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

__exportStar(require("./EndSettings"), exports);
__exportStar(require("./ErrorCode"), exports);
__exportStar(require("./GatekeeperConfig"), exports);

@@ -24,0 +25,0 @@ __exportStar(require("./HiddenSettings"), exports);

@@ -1,6 +0,6 @@

import * as definedTypes from '../types';
import * as web3 from '@solana/web3.js';
import * as beet from '@metaplex-foundation/beet';
import { WhitelistMintMode } from './WhitelistMintMode';
export declare type WhitelistMintSettings = {
mode: definedTypes.WhitelistMintMode;
mode: WhitelistMintMode;
mint: web3.PublicKey;

@@ -10,2 +10,2 @@ presale: boolean;

};
export declare const whitelistMintSettingsBeet: beet.FixableBeetArgsStruct<definedTypes.WhitelistMintSettings>;
export declare const whitelistMintSettingsBeet: beet.FixableBeetArgsStruct<WhitelistMintSettings>;

@@ -27,7 +27,7 @@ "use strict";

exports.whitelistMintSettingsBeet = void 0;
const definedTypes = __importStar(require("../types"));
const beet = __importStar(require("@metaplex-foundation/beet"));
const beetSolana = __importStar(require("@metaplex-foundation/beet-solana"));
const WhitelistMintMode_1 = require("./WhitelistMintMode");
exports.whitelistMintSettingsBeet = new beet.FixableBeetArgsStruct([
['mode', definedTypes.whitelistMintModeBeet],
['mode', WhitelistMintMode_1.whitelistMintModeBeet],
['mint', beetSolana.publicKey],

@@ -34,0 +34,0 @@ ['presale', beet.bool],

{
"name": "@metaplex-foundation/mpl-candy-machine",
"version": "3.1.5",
"version": "4.0.0",
"programVersion": "3.1.3",
"description": "MPL Candy Machine JavaScript API. This MPL package is for the current generation of candy machine which is 2.0.0",

@@ -5,0 +6,0 @@ "main": "dist/src/mpl-candy-machine.js",

# mpl-candy-machine
#

@@ -3,0 +4,0 @@ This package contains the Candy Machine contract SDK code. This MPL package targets the current generation of candy machine on the v2.0.0 release line.

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