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.16 to 6.0.0-alpha.17

2

dist/src/create.d.ts

@@ -6,5 +6,5 @@ import { TransactionBuilder } from '@metaplex-foundation/umi';

import { GuardRepository, GuardSetArgs } from './guards';
export type CreateInput<DA extends GuardSetArgs = DefaultGuardSetArgs> = Parameters<typeof createCandyMachineV2>[1] & CreateCandyGuardInstructionDataArgs<DA>;
export declare type CreateInput<DA extends GuardSetArgs = DefaultGuardSetArgs> = Parameters<typeof createCandyMachineV2>[1] & CreateCandyGuardInstructionDataArgs<DA>;
export declare const create: <DA extends GuardSetArgs = DefaultGuardSetArgs>(context: Parameters<typeof createCandyMachineV2>[0] & {
guards: GuardRepository;
}, input: CreateInput<DA extends undefined ? DefaultGuardSetArgs : DA>) => Promise<TransactionBuilder>;

@@ -7,8 +7,8 @@ import { TransactionBuilder } from '@metaplex-foundation/umi';

export { CreateCandyGuardInstructionAccounts };
export type CreateCandyGuardInstructionData<D extends GuardSet> = {
export declare type CreateCandyGuardInstructionData<D extends GuardSet> = {
discriminator: Array<number>;
} & CandyGuardData<D>;
export type CreateCandyGuardInstructionDataArgs<DA extends GuardSetArgs> = Partial<CandyGuardDataArgs<DA>>;
export declare type CreateCandyGuardInstructionDataArgs<DA extends GuardSetArgs> = Partial<CandyGuardDataArgs<DA>>;
export declare function createCandyGuard<DA extends GuardSetArgs = DefaultGuardSetArgs>(context: Parameters<typeof baseCreateCandyGuard>[0] & {
guards: GuardRepository;
}, input: CreateCandyGuardInstructionAccounts & CreateCandyGuardInstructionDataArgs<DA extends undefined ? DefaultGuardSetArgs : DA>): TransactionBuilder;
import { Context, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { initializeCandyMachine } from './generated';
export type CreateCandyMachineInput = Omit<Parameters<typeof initializeCandyMachine>[1], 'candyMachine'> & {
export declare type CreateCandyMachineInput = Omit<Parameters<typeof initializeCandyMachine>[1], 'candyMachine'> & {
candyMachine: Signer;
};
export declare const createCandyMachine: (context: Parameters<typeof initializeCandyMachine>[0] & Pick<Context, 'rpc'>, input: CreateCandyMachineInput) => Promise<TransactionBuilder>;
import { Context, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { initializeCandyMachineV2 } from './generated';
export type CreateCandyMachineV2Input = Omit<Parameters<typeof initializeCandyMachineV2>[1], 'candyMachine'> & {
export declare type CreateCandyMachineV2Input = Omit<Parameters<typeof initializeCandyMachineV2>[1], 'candyMachine'> & {
candyMachine: Signer;
};
export declare const createCandyMachineV2: (context: Parameters<typeof initializeCandyMachineV2>[0] & Pick<Context, 'rpc'>, input: CreateCandyMachineV2Input) => Promise<TransactionBuilder>;
import { AddressLookupTableInput, Context, PublicKey, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
export declare const createLutForCandyMachine: (context: Pick<Context, 'rpc' | 'eddsa' | 'programs' | 'identity' | 'payer'>, recentSlot: number, candyMachine: PublicKey, collectionUpdateAuthority?: PublicKey, lutAuthority?: Signer) => Promise<[TransactionBuilder, AddressLookupTableInput]>;
export declare const getLutAddressesForCandyMachine: (context: Pick<Context, 'rpc' | 'eddsa' | 'programs' | 'identity'>, candyMachine: PublicKey, collectionUpdateAuthority?: PublicKey) => Promise<PublicKey[]>;
export declare const createLutForCandyMachine: (context: Pick<Context, 'rpc' | 'eddsa' | 'programs' | 'identity' | 'payer'>, recentSlot: number, candyMachine: PublicKey, collectionUpdateAuthority?: PublicKey<string> | undefined, lutAuthority?: Signer | undefined) => Promise<[TransactionBuilder, AddressLookupTableInput]>;
export declare const getLutAddressesForCandyMachine: (context: Pick<Context, 'rpc' | 'eddsa' | 'programs' | 'identity'>, candyMachine: PublicKey, collectionUpdateAuthority?: PublicKey<string> | undefined) => Promise<PublicKey[]>;

@@ -9,3 +9,3 @@ import { Signer } from '@metaplex-foundation/umi';

export declare const allocationGuardManifest: GuardManifest<AllocationArgs, Allocation, AllocationMintArgs, AllocationRouteArgs>;
export type AllocationMintArgs = Omit<AllocationArgs, 'limit'>;
export declare type AllocationMintArgs = Omit<AllocationArgs, 'limit'>;
/**

@@ -15,5 +15,5 @@ * The allocation guard arguments that should be provided

*/
export type AllocationRouteArgs = Omit<AllocationArgs, 'limit'> & {
export declare type AllocationRouteArgs = Omit<AllocationArgs, 'limit'> & {
/** The authority of the Candy Guard as a Signer. */
candyGuardAuthority: Signer;
};

@@ -37,3 +37,3 @@ import { PublicKey, Signer } from '@metaplex-foundation/umi';

export declare const allowListGuardManifest: GuardManifest<AllowListArgs, AllowList, AllowListMintArgs, AllowListRouteArgs>;
export type AllowListMintArgs = AllowListArgs;
export declare type AllowListMintArgs = AllowListArgs;
/**

@@ -63,3 +63,3 @@ * The settings for the allowList guard that should be provided

*/
export type AllowListRouteArgs = AllowListArgs & {
export declare type AllowListRouteArgs = AllowListArgs & {
/** Selects the path to execute in the route instruction. */

@@ -66,0 +66,0 @@ path: 'proof';

@@ -22,3 +22,3 @@ import { Option, OptionOrNullable } from '@metaplex-foundation/umi';

*/
export type DefaultGuardSetArgs = GuardSetArgs & {
export declare type DefaultGuardSetArgs = GuardSetArgs & {
botTax: OptionOrNullable<BotTaxArgs>;

@@ -49,3 +49,3 @@ solPayment: OptionOrNullable<SolPaymentArgs>;

*/
export type DefaultGuardSet = GuardSet & {
export declare type DefaultGuardSet = GuardSet & {
botTax: Option<BotTax>;

@@ -76,3 +76,3 @@ solPayment: Option<SolPayment>;

*/
export type DefaultGuardSetMintArgs = GuardSetMintArgs & {
export declare type DefaultGuardSetMintArgs = GuardSetMintArgs & {
solPayment: OptionOrNullable<SolPaymentMintArgs>;

@@ -97,3 +97,3 @@ tokenPayment: OptionOrNullable<TokenPaymentMintArgs>;

*/
export type DefaultGuardSetRouteArgs = GuardSetRouteArgs & {
export declare type DefaultGuardSetRouteArgs = GuardSetRouteArgs & {
allowList: AllowListRouteArgs;

@@ -100,0 +100,0 @@ freezeSolPayment: FreezeSolPaymentRouteArgs;

@@ -18,3 +18,3 @@ import { TokenStandard } from '@metaplex-foundation/mpl-token-metadata';

export declare const freezeSolPaymentGuardManifest: GuardManifest<FreezeSolPaymentArgs, FreezeSolPayment, FreezeSolPaymentMintArgs, FreezeSolPaymentRouteArgs>;
export type FreezeSolPaymentMintArgs = Omit<FreezeSolPaymentArgs, 'lamports'> & {
export declare type FreezeSolPaymentMintArgs = Omit<FreezeSolPaymentArgs, 'lamports'> & {
/** The ruleSet of the minted NFT, if any. */

@@ -27,3 +27,3 @@ nftRuleSet?: PublicKey;

*/
export type FreezeSolPaymentRouteArgs = FreezeSolPaymentRouteArgsInitialize | FreezeSolPaymentRouteArgsThaw | FreezeSolPaymentRouteArgsUnlockFunds;
export declare type FreezeSolPaymentRouteArgs = FreezeSolPaymentRouteArgsInitialize | FreezeSolPaymentRouteArgsThaw | FreezeSolPaymentRouteArgsUnlockFunds;
/**

@@ -47,3 +47,3 @@ * The `initialize` path creates the freeze escrow account that will

*/
export type FreezeSolPaymentRouteArgsInitialize = Omit<FreezeSolPaymentArgs, 'lamports'> & {
export declare type FreezeSolPaymentRouteArgsInitialize = Omit<FreezeSolPaymentArgs, 'lamports'> & {
/** Selects the path to execute in the route instruction. */

@@ -80,3 +80,3 @@ path: 'initialize';

*/
export type FreezeSolPaymentRouteArgsThaw = Omit<FreezeSolPaymentArgs, 'lamports'> & {
export declare type FreezeSolPaymentRouteArgsThaw = Omit<FreezeSolPaymentArgs, 'lamports'> & {
/** Selects the path to execute in the route instruction. */

@@ -109,3 +109,3 @@ path: 'thaw';

*/
export type FreezeSolPaymentRouteArgsUnlockFunds = Omit<FreezeSolPaymentArgs, 'lamports'> & {
export declare type FreezeSolPaymentRouteArgsUnlockFunds = Omit<FreezeSolPaymentArgs, 'lamports'> & {
/** Selects the path to execute in the route instruction. */

@@ -112,0 +112,0 @@ path: 'unlockFunds';

@@ -18,3 +18,3 @@ import { TokenStandard } from '@metaplex-foundation/mpl-token-metadata';

export declare const freezeTokenPaymentGuardManifest: GuardManifest<FreezeTokenPaymentArgs, FreezeTokenPayment, FreezeTokenPaymentMintArgs, FreezeTokenPaymentRouteArgs>;
export type FreezeTokenPaymentMintArgs = Omit<FreezeTokenPaymentArgs, 'amount'> & {
export declare type FreezeTokenPaymentMintArgs = Omit<FreezeTokenPaymentArgs, 'amount'> & {
/** The ruleSet of the minted NFT, if any. */

@@ -27,3 +27,3 @@ nftRuleSet?: PublicKey;

*/
export type FreezeTokenPaymentRouteArgs = FreezeTokenPaymentRouteArgsInitialize | FreezeTokenPaymentRouteArgsThaw | FreezeTokenPaymentRouteArgsUnlockFunds;
export declare type FreezeTokenPaymentRouteArgs = FreezeTokenPaymentRouteArgsInitialize | FreezeTokenPaymentRouteArgsThaw | FreezeTokenPaymentRouteArgsUnlockFunds;
/**

@@ -48,3 +48,3 @@ * The `initialize` path creates the freeze escrow account that will

*/
export type FreezeTokenPaymentRouteArgsInitialize = Omit<FreezeTokenPaymentArgs, 'amount'> & {
export declare type FreezeTokenPaymentRouteArgsInitialize = Omit<FreezeTokenPaymentArgs, 'amount'> & {
/** Selects the path to execute in the route instruction. */

@@ -82,3 +82,3 @@ path: 'initialize';

*/
export type FreezeTokenPaymentRouteArgsThaw = Omit<FreezeTokenPaymentArgs, 'amount'> & {
export declare type FreezeTokenPaymentRouteArgsThaw = Omit<FreezeTokenPaymentArgs, 'amount'> & {
/** Selects the path to execute in the route instruction. */

@@ -112,3 +112,3 @@ path: 'thaw';

*/
export type FreezeTokenPaymentRouteArgsUnlockFunds = Omit<FreezeTokenPaymentArgs, 'amount'> & {
export declare type FreezeTokenPaymentRouteArgsUnlockFunds = Omit<FreezeTokenPaymentArgs, 'amount'> & {
/** Selects the path to execute in the route instruction. */

@@ -115,0 +115,0 @@ path: 'unlockFunds';

@@ -25,3 +25,3 @@ import { PublicKey } from '@metaplex-foundation/umi';

export declare const gatekeeperGuardManifest: GuardManifest<GatekeeperArgs, Gatekeeper, GatekeeperMintArgs>;
export type GatekeeperMintArgs = GatekeeperArgs & {
export declare type GatekeeperMintArgs = GatekeeperArgs & {
/**

@@ -28,0 +28,0 @@ * The Gateway Token PDA derived from the payer

@@ -14,2 +14,2 @@ import { MintLimit, MintLimitArgs } from '../generated';

export declare const mintLimitGuardManifest: GuardManifest<MintLimitArgs, MintLimit, MintLimitMintArgs>;
export type MintLimitMintArgs = Omit<MintLimitArgs, 'limit'>;
export declare type MintLimitMintArgs = Omit<MintLimitArgs, 'limit'>;

@@ -15,3 +15,3 @@ import { TokenStandard } from '@metaplex-foundation/mpl-token-metadata';

export declare const nftBurnGuardManifest: GuardManifest<NftBurnArgs, NftBurn, NftBurnMintArgs>;
export type NftBurnMintArgs = NftBurnArgs & {
export declare type NftBurnMintArgs = NftBurnArgs & {
/**

@@ -18,0 +18,0 @@ * The mint address of the NFT to burn.

@@ -12,3 +12,3 @@ import { PublicKey } from '@metaplex-foundation/umi';

export declare const nftGateGuardManifest: GuardManifest<NftGateArgs, NftGate, NftGateMintArgs>;
export type NftGateMintArgs = {
export declare type NftGateMintArgs = {
/**

@@ -15,0 +15,0 @@ * The mint address of an NFT from the required

@@ -16,3 +16,3 @@ import { TokenStandard } from '@metaplex-foundation/mpl-token-metadata';

export declare const nftPaymentGuardManifest: GuardManifest<NftPaymentArgs, NftPayment, NftPaymentMintArgs>;
export type NftPaymentMintArgs = Omit<NftPaymentArgs, 'requiredCollection'> & {
export declare type NftPaymentMintArgs = Omit<NftPaymentArgs, 'requiredCollection'> & {
/**

@@ -19,0 +19,0 @@ * The mint address of the NFT to pay with.

@@ -9,2 +9,2 @@ import { RedeemedAmount, RedeemedAmountArgs } from '../generated';

export declare const redeemedAmountGuardManifest: GuardManifest<RedeemedAmountArgs, RedeemedAmount, RedeemedAmountMintArgs>;
export type RedeemedAmountMintArgs = Omit<RedeemedAmountArgs, 'limit'>;
export declare type RedeemedAmountMintArgs = Omit<RedeemedAmountArgs, 'limit'>;

@@ -8,2 +8,2 @@ import { SolPayment, SolPaymentArgs } from '../generated';

export declare const solPaymentGuardManifest: GuardManifest<SolPaymentArgs, SolPayment, SolPaymentMintArgs>;
export type SolPaymentMintArgs = Omit<SolPaymentArgs, 'lamports'>;
export declare type SolPaymentMintArgs = Omit<SolPaymentArgs, 'lamports'>;

@@ -13,4 +13,4 @@ import { Signer } from '@metaplex-foundation/umi';

export declare const thirdPartySignerGuardManifest: GuardManifest<ThirdPartySignerArgs, ThirdPartySigner, ThirdPartySignerMintArgs>;
export type ThirdPartySignerMintArgs = {
export declare type ThirdPartySignerMintArgs = {
signer: Signer;
};

@@ -14,2 +14,2 @@ import { Token2022Payment, Token2022PaymentArgs } from '../generated';

export declare const token2022PaymentGuardManifest: GuardManifest<Token2022PaymentArgs, Token2022Payment, Token2022PaymentMintArgs>;
export type Token2022PaymentMintArgs = Omit<Token2022PaymentArgs, 'amount'>;
export declare type Token2022PaymentMintArgs = Omit<Token2022PaymentArgs, 'amount'>;

@@ -13,2 +13,2 @@ import { TokenBurn, TokenBurnArgs } from '../generated';

export declare const tokenBurnGuardManifest: GuardManifest<TokenBurnArgs, TokenBurn, TokenBurnMintArgs>;
export type TokenBurnMintArgs = Omit<TokenBurnArgs, 'amount'>;
export declare type TokenBurnMintArgs = Omit<TokenBurnArgs, 'amount'>;

@@ -13,2 +13,2 @@ import { TokenGate, TokenGateArgs } from '../generated';

export declare const tokenGateGuardManifest: GuardManifest<TokenGateArgs, TokenGate, TokenGateMintArgs>;
export type TokenGateMintArgs = Omit<TokenGateArgs, 'amount'>;
export declare type TokenGateMintArgs = Omit<TokenGateArgs, 'amount'>;

@@ -13,2 +13,2 @@ import { TokenPayment, TokenPaymentArgs } from '../generated';

export declare const tokenPaymentGuardManifest: GuardManifest<TokenPaymentArgs, TokenPayment, TokenPaymentMintArgs>;
export type TokenPaymentMintArgs = Omit<TokenPaymentArgs, 'amount'>;
export declare type TokenPaymentMintArgs = Omit<TokenPaymentArgs, 'amount'>;

@@ -11,7 +11,7 @@ /**

/** PDA to track the number of mints. */
export type AllocationTracker = Account<AllocationTrackerAccountData>;
export type AllocationTrackerAccountData = {
export declare type AllocationTracker = Account<AllocationTrackerAccountData>;
export declare type AllocationTrackerAccountData = {
count: number;
};
export type AllocationTrackerAccountDataArgs = AllocationTrackerAccountData;
export declare type AllocationTrackerAccountDataArgs = AllocationTrackerAccountData;
/** @deprecated Use `getAllocationTrackerAccountDataSerializer()` without any argument instead. */

@@ -18,0 +18,0 @@ export declare function getAllocationTrackerAccountDataSerializer(_context: object): Serializer<AllocationTrackerAccountDataArgs, AllocationTrackerAccountData>;

@@ -11,7 +11,7 @@ /**

/** PDA to track whether an address has been validated or not. */
export type AllowListProof = Account<AllowListProofAccountData>;
export type AllowListProofAccountData = {
export declare type AllowListProof = Account<AllowListProofAccountData>;
export declare type AllowListProofAccountData = {
timestamp: bigint;
};
export type AllowListProofAccountDataArgs = {
export declare type AllowListProofAccountDataArgs = {
timestamp: number | bigint;

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

@@ -10,4 +10,4 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type CandyGuard = Account<CandyGuardAccountData>;
export type CandyGuardAccountData = {
export declare type CandyGuard = Account<CandyGuardAccountData>;
export declare type CandyGuardAccountData = {
discriminator: Array<number>;

@@ -18,3 +18,3 @@ base: PublicKey;

};
export type CandyGuardAccountDataArgs = {
export declare type CandyGuardAccountDataArgs = {
base: PublicKey;

@@ -21,0 +21,0 @@ bump: number;

@@ -13,3 +13,3 @@ /**

/** Candy machine state and config data. */
export type CandyMachine = Account<CandyMachineAccountData>;
export declare type CandyMachine = Account<CandyMachineAccountData>;
/** @deprecated Use `deserializeCandyMachine(rawAccount)` without any context instead. */

@@ -16,0 +16,0 @@ export declare function deserializeCandyMachine(context: object, rawAccount: RpcAccount): CandyMachine;

@@ -11,4 +11,4 @@ /**

/** PDA to store the frozen funds. */
export type FreezeEscrow = Account<FreezeEscrowAccountData>;
export type FreezeEscrowAccountData = {
export declare type FreezeEscrow = Account<FreezeEscrowAccountData>;
export declare type FreezeEscrowAccountData = {
discriminator: Array<number>;

@@ -40,3 +40,3 @@ /** Candy guard address associated with this escrow. */

};
export type FreezeEscrowAccountDataArgs = {
export declare type FreezeEscrowAccountDataArgs = {
/** Candy guard address associated with this escrow. */

@@ -43,0 +43,0 @@ candyGuard: PublicKey;

@@ -11,7 +11,7 @@ /**

/** PDA to track the number of mints for an individual address. */
export type MintCounter = Account<MintCounterAccountData>;
export type MintCounterAccountData = {
export declare type MintCounter = Account<MintCounterAccountData>;
export declare type MintCounterAccountData = {
count: number;
};
export type MintCounterAccountDataArgs = MintCounterAccountData;
export declare type MintCounterAccountDataArgs = MintCounterAccountData;
/** @deprecated Use `getMintCounterAccountDataSerializer()` without any argument instead. */

@@ -18,0 +18,0 @@ export declare function getMintCounterAccountDataSerializer(_context: object): Serializer<MintCounterAccountDataArgs, MintCounterAccountData>;

@@ -11,7 +11,7 @@ /**

import { ConfigLine, ConfigLineArgs } from '../types';
export type AddConfigLinesInstructionAccounts = {
export declare type AddConfigLinesInstructionAccounts = {
candyMachine: PublicKey | Pda;
authority?: Signer;
};
export type AddConfigLinesInstructionData = {
export declare type AddConfigLinesInstructionData = {
discriminator: Array<number>;

@@ -21,3 +21,3 @@ index: number;

};
export type AddConfigLinesInstructionDataArgs = {
export declare type AddConfigLinesInstructionDataArgs = {
index: number;

@@ -29,3 +29,3 @@ configLines: Array<ConfigLineArgs>;

export declare function getAddConfigLinesInstructionDataSerializer(): Serializer<AddConfigLinesInstructionDataArgs, AddConfigLinesInstructionData>;
export type AddConfigLinesInstructionArgs = AddConfigLinesInstructionDataArgs;
export declare type AddConfigLinesInstructionArgs = AddConfigLinesInstructionDataArgs;
export declare function addConfigLines(context: Pick<Context, 'programs' | 'identity'>, input: AddConfigLinesInstructionAccounts & AddConfigLinesInstructionArgs): TransactionBuilder;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type CreateCandyGuardInstructionAccounts = {
export declare type CreateCandyGuardInstructionAccounts = {
candyGuard?: PublicKey | Pda;

@@ -18,7 +18,7 @@ base: Signer;

};
export type CreateCandyGuardInstructionData = {
export declare type CreateCandyGuardInstructionData = {
discriminator: Array<number>;
data: Uint8Array;
};
export type CreateCandyGuardInstructionDataArgs = {
export declare type CreateCandyGuardInstructionDataArgs = {
data: Uint8Array;

@@ -29,3 +29,3 @@ };

export declare function getCreateCandyGuardInstructionDataSerializer(): Serializer<CreateCandyGuardInstructionDataArgs, CreateCandyGuardInstructionData>;
export type CreateCandyGuardInstructionArgs = CreateCandyGuardInstructionDataArgs;
export declare type CreateCandyGuardInstructionArgs = CreateCandyGuardInstructionDataArgs;
export declare function createCandyGuard(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: CreateCandyGuardInstructionAccounts & CreateCandyGuardInstructionArgs): TransactionBuilder;

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

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type DeleteCandyGuardInstructionAccounts = {
export declare type DeleteCandyGuardInstructionAccounts = {
candyGuard: PublicKey | Pda;
authority?: Signer;
};
export type DeleteCandyGuardInstructionData = {
export declare type DeleteCandyGuardInstructionData = {
discriminator: Array<number>;
};
export type DeleteCandyGuardInstructionDataArgs = {};
export declare type DeleteCandyGuardInstructionDataArgs = {};
/** @deprecated Use `getDeleteCandyGuardInstructionDataSerializer()` without any argument instead. */

@@ -20,0 +20,0 @@ export declare function getDeleteCandyGuardInstructionDataSerializer(_context: object): Serializer<DeleteCandyGuardInstructionDataArgs, DeleteCandyGuardInstructionData>;

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

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type DeleteCandyMachineInstructionAccounts = {
export declare type DeleteCandyMachineInstructionAccounts = {
candyMachine: PublicKey | Pda;
authority?: Signer;
};
export type DeleteCandyMachineInstructionData = {
export declare type DeleteCandyMachineInstructionData = {
discriminator: Array<number>;
};
export type DeleteCandyMachineInstructionDataArgs = {};
export declare type DeleteCandyMachineInstructionDataArgs = {};
/** @deprecated Use `getDeleteCandyMachineInstructionDataSerializer()` without any argument instead. */

@@ -20,0 +20,0 @@ export declare function getDeleteCandyMachineInstructionDataSerializer(_context: object): Serializer<DeleteCandyMachineInstructionDataArgs, DeleteCandyMachineInstructionData>;

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

import { ConfigLineSettings, ConfigLineSettingsArgs, Creator, CreatorArgs, HiddenSettings, HiddenSettingsArgs } from '../types';
export type InitializeCandyMachineInstructionAccounts = {
export declare type InitializeCandyMachineInstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -25,3 +25,3 @@ authorityPda?: PublicKey | Pda;

};
export type InitializeCandyMachineInstructionData = {
export declare type InitializeCandyMachineInstructionData = {
discriminator: Array<number>;

@@ -45,3 +45,3 @@ /** Number of assets available */

};
export type InitializeCandyMachineInstructionDataArgs = {
export declare type InitializeCandyMachineInstructionDataArgs = {
/** Number of assets available */

@@ -67,3 +67,3 @@ itemsAvailable: number | bigint;

export declare function getInitializeCandyMachineInstructionDataSerializer(): Serializer<InitializeCandyMachineInstructionDataArgs, InitializeCandyMachineInstructionData>;
export type InitializeCandyMachineInstructionArgs = InitializeCandyMachineInstructionDataArgs;
export declare type InitializeCandyMachineInstructionArgs = InitializeCandyMachineInstructionDataArgs;
export declare function initializeCandyMachine(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: InitializeCandyMachineInstructionAccounts & InitializeCandyMachineInstructionArgs): TransactionBuilder;

@@ -12,3 +12,3 @@ /**

import { ConfigLineSettings, ConfigLineSettingsArgs, Creator, CreatorArgs, HiddenSettings, HiddenSettingsArgs } from '../types';
export type InitializeCandyMachineV2InstructionAccounts = {
export declare type InitializeCandyMachineV2InstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -30,3 +30,3 @@ authorityPda?: PublicKey | Pda;

};
export type InitializeCandyMachineV2InstructionData = {
export declare type InitializeCandyMachineV2InstructionData = {
discriminator: Array<number>;

@@ -51,3 +51,3 @@ /** Number of assets available */

};
export type InitializeCandyMachineV2InstructionDataArgs = {
export declare type InitializeCandyMachineV2InstructionDataArgs = {
/** Number of assets available */

@@ -74,3 +74,3 @@ itemsAvailable: number | bigint;

export declare function getInitializeCandyMachineV2InstructionDataSerializer(): Serializer<InitializeCandyMachineV2InstructionDataArgs, InitializeCandyMachineV2InstructionData>;
export type InitializeCandyMachineV2InstructionArgs = InitializeCandyMachineV2InstructionDataArgs;
export declare type InitializeCandyMachineV2InstructionArgs = InitializeCandyMachineV2InstructionDataArgs;
export declare function initializeCandyMachineV2(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: InitializeCandyMachineV2InstructionAccounts & InitializeCandyMachineV2InstructionArgs): TransactionBuilder;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type MintInstructionAccounts = {
export declare type MintInstructionAccounts = {
candyGuard?: PublicKey | Pda;

@@ -32,3 +32,3 @@ candyMachineProgram?: PublicKey | Pda;

};
export type MintInstructionData = {
export declare type MintInstructionData = {
discriminator: Array<number>;

@@ -38,3 +38,3 @@ mintArgs: Uint8Array;

};
export type MintInstructionDataArgs = {
export declare type MintInstructionDataArgs = {
mintArgs: Uint8Array;

@@ -46,3 +46,3 @@ group: OptionOrNullable<string>;

export declare function getMintInstructionDataSerializer(): Serializer<MintInstructionDataArgs, MintInstructionData>;
export type MintInstructionArgs = MintInstructionDataArgs;
export declare type MintInstructionArgs = MintInstructionDataArgs;
export declare function mint(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: MintInstructionAccounts & MintInstructionArgs): TransactionBuilder;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type MintFromCandyMachineInstructionAccounts = {
export declare type MintFromCandyMachineInstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -30,6 +30,6 @@ authorityPda?: PublicKey | Pda;

};
export type MintFromCandyMachineInstructionData = {
export declare type MintFromCandyMachineInstructionData = {
discriminator: Array<number>;
};
export type MintFromCandyMachineInstructionDataArgs = {};
export declare type MintFromCandyMachineInstructionDataArgs = {};
/** @deprecated Use `getMintFromCandyMachineInstructionDataSerializer()` without any argument instead. */

@@ -36,0 +36,0 @@ export declare function getMintFromCandyMachineInstructionDataSerializer(_context: object): Serializer<MintFromCandyMachineInstructionDataArgs, MintFromCandyMachineInstructionData>;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type MintFromCandyMachineV2InstructionAccounts = {
export declare type MintFromCandyMachineV2InstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -37,6 +37,6 @@ authorityPda?: PublicKey | Pda;

};
export type MintFromCandyMachineV2InstructionData = {
export declare type MintFromCandyMachineV2InstructionData = {
discriminator: Array<number>;
};
export type MintFromCandyMachineV2InstructionDataArgs = {};
export declare type MintFromCandyMachineV2InstructionDataArgs = {};
/** @deprecated Use `getMintFromCandyMachineV2InstructionDataSerializer()` without any argument instead. */

@@ -43,0 +43,0 @@ export declare function getMintFromCandyMachineV2InstructionDataSerializer(_context: object): Serializer<MintFromCandyMachineV2InstructionDataArgs, MintFromCandyMachineV2InstructionData>;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type MintV2InstructionAccounts = {
export declare type MintV2InstructionAccounts = {
candyGuard?: PublicKey | Pda;

@@ -38,3 +38,3 @@ candyMachineProgram?: PublicKey | Pda;

};
export type MintV2InstructionData = {
export declare type MintV2InstructionData = {
discriminator: Array<number>;

@@ -44,3 +44,3 @@ mintArgs: Uint8Array;

};
export type MintV2InstructionDataArgs = {
export declare type MintV2InstructionDataArgs = {
mintArgs: Uint8Array;

@@ -52,3 +52,3 @@ group: OptionOrNullable<string>;

export declare function getMintV2InstructionDataSerializer(): Serializer<MintV2InstructionDataArgs, MintV2InstructionData>;
export type MintV2InstructionArgs = MintV2InstructionDataArgs;
export declare type MintV2InstructionArgs = MintV2InstructionDataArgs;
export declare function mintV2(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: MintV2InstructionAccounts & MintV2InstructionArgs): TransactionBuilder;

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

import { GuardType, GuardTypeArgs } from '../types';
export type RouteInstructionAccounts = {
export declare type RouteInstructionAccounts = {
candyGuard?: PublicKey | Pda;

@@ -17,3 +17,3 @@ candyMachine: PublicKey | Pda;

};
export type RouteInstructionData = {
export declare type RouteInstructionData = {
discriminator: Array<number>;

@@ -26,3 +26,3 @@ /** The target guard type. */

};
export type RouteInstructionDataArgs = {
export declare type RouteInstructionDataArgs = {
/** The target guard type. */

@@ -37,3 +37,3 @@ guard: GuardTypeArgs;

export declare function getRouteInstructionDataSerializer(): Serializer<RouteInstructionDataArgs, RouteInstructionData>;
export type RouteInstructionArgs = RouteInstructionDataArgs;
export declare type RouteInstructionArgs = RouteInstructionDataArgs;
export declare function route(context: Pick<Context, 'programs' | 'eddsa' | 'payer'>, input: RouteInstructionAccounts & RouteInstructionArgs): TransactionBuilder;

@@ -10,11 +10,11 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type SetCandyGuardAuthorityInstructionAccounts = {
export declare type SetCandyGuardAuthorityInstructionAccounts = {
candyGuard: PublicKey | Pda;
authority?: Signer;
};
export type SetCandyGuardAuthorityInstructionData = {
export declare type SetCandyGuardAuthorityInstructionData = {
discriminator: Array<number>;
newAuthority: PublicKey;
};
export type SetCandyGuardAuthorityInstructionDataArgs = {
export declare type SetCandyGuardAuthorityInstructionDataArgs = {
newAuthority: PublicKey;

@@ -25,3 +25,3 @@ };

export declare function getSetCandyGuardAuthorityInstructionDataSerializer(): Serializer<SetCandyGuardAuthorityInstructionDataArgs, SetCandyGuardAuthorityInstructionData>;
export type SetCandyGuardAuthorityInstructionArgs = SetCandyGuardAuthorityInstructionDataArgs;
export declare type SetCandyGuardAuthorityInstructionArgs = SetCandyGuardAuthorityInstructionDataArgs;
export declare function setCandyGuardAuthority(context: Pick<Context, 'programs' | 'identity'>, input: SetCandyGuardAuthorityInstructionAccounts & SetCandyGuardAuthorityInstructionArgs): TransactionBuilder;

@@ -10,11 +10,11 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type SetCandyMachineAuthorityInstructionAccounts = {
export declare type SetCandyMachineAuthorityInstructionAccounts = {
candyMachine: PublicKey | Pda;
authority?: Signer;
};
export type SetCandyMachineAuthorityInstructionData = {
export declare type SetCandyMachineAuthorityInstructionData = {
discriminator: Array<number>;
newAuthority: PublicKey;
};
export type SetCandyMachineAuthorityInstructionDataArgs = {
export declare type SetCandyMachineAuthorityInstructionDataArgs = {
newAuthority: PublicKey;

@@ -25,3 +25,3 @@ };

export declare function getSetCandyMachineAuthorityInstructionDataSerializer(): Serializer<SetCandyMachineAuthorityInstructionDataArgs, SetCandyMachineAuthorityInstructionData>;
export type SetCandyMachineAuthorityInstructionArgs = SetCandyMachineAuthorityInstructionDataArgs;
export declare type SetCandyMachineAuthorityInstructionArgs = SetCandyMachineAuthorityInstructionDataArgs;
export declare function setCandyMachineAuthority(context: Pick<Context, 'programs' | 'identity'>, input: SetCandyMachineAuthorityInstructionAccounts & SetCandyMachineAuthorityInstructionArgs): TransactionBuilder;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type SetCollectionInstructionAccounts = {
export declare type SetCollectionInstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -27,6 +27,6 @@ authority?: Signer;

};
export type SetCollectionInstructionData = {
export declare type SetCollectionInstructionData = {
discriminator: Array<number>;
};
export type SetCollectionInstructionDataArgs = {};
export declare type SetCollectionInstructionDataArgs = {};
/** @deprecated Use `getSetCollectionInstructionDataSerializer()` without any argument instead. */

@@ -33,0 +33,0 @@ export declare function getSetCollectionInstructionDataSerializer(_context: object): Serializer<SetCollectionInstructionDataArgs, SetCollectionInstructionData>;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type SetCollectionV2InstructionAccounts = {
export declare type SetCollectionV2InstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -31,6 +31,6 @@ authority?: Signer;

};
export type SetCollectionV2InstructionData = {
export declare type SetCollectionV2InstructionData = {
discriminator: Array<number>;
};
export type SetCollectionV2InstructionDataArgs = {};
export declare type SetCollectionV2InstructionDataArgs = {};
/** @deprecated Use `getSetCollectionV2InstructionDataSerializer()` without any argument instead. */

@@ -37,0 +37,0 @@ export declare function getSetCollectionV2InstructionDataSerializer(_context: object): Serializer<SetCollectionV2InstructionDataArgs, SetCollectionV2InstructionData>;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type SetMintAuthorityInstructionAccounts = {
export declare type SetMintAuthorityInstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -16,6 +16,6 @@ authority?: Signer;

};
export type SetMintAuthorityInstructionData = {
export declare type SetMintAuthorityInstructionData = {
discriminator: Array<number>;
};
export type SetMintAuthorityInstructionDataArgs = {};
export declare type SetMintAuthorityInstructionDataArgs = {};
/** @deprecated Use `getSetMintAuthorityInstructionDataSerializer()` without any argument instead. */

@@ -22,0 +22,0 @@ export declare function getSetMintAuthorityInstructionDataSerializer(_context: object): Serializer<SetMintAuthorityInstructionDataArgs, SetMintAuthorityInstructionData>;

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

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type SetTokenStandardInstructionAccounts = {
export declare type SetTokenStandardInstructionAccounts = {
candyMachine: PublicKey | Pda;

@@ -29,7 +29,7 @@ authority?: Signer;

};
export type SetTokenStandardInstructionData = {
export declare type SetTokenStandardInstructionData = {
discriminator: Array<number>;
tokenStandard: TokenStandard;
};
export type SetTokenStandardInstructionDataArgs = {
export declare type SetTokenStandardInstructionDataArgs = {
tokenStandard: TokenStandardArgs;

@@ -40,3 +40,3 @@ };

export declare function getSetTokenStandardInstructionDataSerializer(): Serializer<SetTokenStandardInstructionDataArgs, SetTokenStandardInstructionData>;
export type SetTokenStandardInstructionArgs = SetTokenStandardInstructionDataArgs;
export declare type SetTokenStandardInstructionArgs = SetTokenStandardInstructionDataArgs;
export declare function setTokenStandard(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: SetTokenStandardInstructionAccounts & SetTokenStandardInstructionArgs): TransactionBuilder;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type UnwrapInstructionAccounts = {
export declare type UnwrapInstructionAccounts = {
candyGuard: PublicKey | Pda;

@@ -18,6 +18,6 @@ authority?: Signer;

};
export type UnwrapInstructionData = {
export declare type UnwrapInstructionData = {
discriminator: Array<number>;
};
export type UnwrapInstructionDataArgs = {};
export declare type UnwrapInstructionDataArgs = {};
/** @deprecated Use `getUnwrapInstructionDataSerializer()` without any argument instead. */

@@ -24,0 +24,0 @@ export declare function getUnwrapInstructionDataSerializer(_context: object): Serializer<UnwrapInstructionDataArgs, UnwrapInstructionData>;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type UpdateCandyGuardInstructionAccounts = {
export declare type UpdateCandyGuardInstructionAccounts = {
candyGuard: PublicKey | Pda;

@@ -17,7 +17,7 @@ authority?: Signer;

};
export type UpdateCandyGuardInstructionData = {
export declare type UpdateCandyGuardInstructionData = {
discriminator: Array<number>;
data: Uint8Array;
};
export type UpdateCandyGuardInstructionDataArgs = {
export declare type UpdateCandyGuardInstructionDataArgs = {
data: Uint8Array;

@@ -28,3 +28,3 @@ };

export declare function getUpdateCandyGuardInstructionDataSerializer(): Serializer<UpdateCandyGuardInstructionDataArgs, UpdateCandyGuardInstructionData>;
export type UpdateCandyGuardInstructionArgs = UpdateCandyGuardInstructionDataArgs;
export declare type UpdateCandyGuardInstructionArgs = UpdateCandyGuardInstructionDataArgs;
export declare function updateCandyGuard(context: Pick<Context, 'programs' | 'identity' | 'payer'>, input: UpdateCandyGuardInstructionAccounts & UpdateCandyGuardInstructionArgs): TransactionBuilder;

@@ -11,11 +11,11 @@ /**

import { CandyMachineData, CandyMachineDataArgs } from '../types';
export type UpdateCandyMachineInstructionAccounts = {
export declare type UpdateCandyMachineInstructionAccounts = {
candyMachine: PublicKey | Pda;
authority?: Signer;
};
export type UpdateCandyMachineInstructionData = {
export declare type UpdateCandyMachineInstructionData = {
discriminator: Array<number>;
data: CandyMachineData;
};
export type UpdateCandyMachineInstructionDataArgs = {
export declare type UpdateCandyMachineInstructionDataArgs = {
data: CandyMachineDataArgs;

@@ -26,3 +26,3 @@ };

export declare function getUpdateCandyMachineInstructionDataSerializer(): Serializer<UpdateCandyMachineInstructionDataArgs, UpdateCandyMachineInstructionData>;
export type UpdateCandyMachineInstructionArgs = UpdateCandyMachineInstructionDataArgs;
export declare type UpdateCandyMachineInstructionArgs = UpdateCandyMachineInstructionDataArgs;
export declare function updateCandyMachine(context: Pick<Context, 'programs' | 'identity'>, input: UpdateCandyMachineInstructionAccounts & UpdateCandyMachineInstructionArgs): TransactionBuilder;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type WrapInstructionAccounts = {
export declare type WrapInstructionAccounts = {
candyGuard: PublicKey | Pda;

@@ -18,6 +18,6 @@ authority?: Signer;

};
export type WrapInstructionData = {
export declare type WrapInstructionData = {
discriminator: Array<number>;
};
export type WrapInstructionDataArgs = {};
export declare type WrapInstructionDataArgs = {};
/** @deprecated Use `getWrapInstructionDataSerializer()` without any argument instead. */

@@ -24,0 +24,0 @@ export declare function getWrapInstructionDataSerializer(_context: object): Serializer<WrapInstructionDataArgs, WrapInstructionData>;

@@ -13,3 +13,3 @@ /**

*/
export type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
export declare type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
/**

@@ -19,3 +19,3 @@ * Defines an instruction account that keeps track of whether it is writable or not.

*/
export type WithWritable<T extends PublicKey | Pda | Signer | undefined> = readonly [T, boolean];
export declare type WithWritable<T extends PublicKey | Pda | Signer | undefined> = readonly [T, boolean];
/**

@@ -22,0 +22,0 @@ * Helper function that dynamically updates the type of

@@ -14,5 +14,5 @@ /**

}
export type AccountVersionArgs = AccountVersion;
export declare type AccountVersionArgs = AccountVersion;
/** @deprecated Use `getAccountVersionSerializer()` without any argument instead. */
export declare function getAccountVersionSerializer(_context: object): Serializer<AccountVersionArgs, AccountVersion>;
export declare function getAccountVersionSerializer(): Serializer<AccountVersionArgs, AccountVersion>;

@@ -11,8 +11,8 @@ /**

/** Guard that restricts access to a specific address. */
export type AddressGate = {
export declare type AddressGate = {
address: PublicKey;
};
export type AddressGateArgs = AddressGate;
export declare type AddressGateArgs = AddressGate;
/** @deprecated Use `getAddressGateSerializer()` without any argument instead. */
export declare function getAddressGateSerializer(_context: object): Serializer<AddressGateArgs, AddressGate>;
export declare function getAddressGateSerializer(): Serializer<AddressGateArgs, AddressGate>;

@@ -18,3 +18,3 @@ /**

*/
export type Allocation = {
export declare type Allocation = {
/** Unique identifier of the allocation. */

@@ -25,5 +25,5 @@ id: number;

};
export type AllocationArgs = Allocation;
export declare type AllocationArgs = Allocation;
/** @deprecated Use `getAllocationSerializer()` without any argument instead. */
export declare function getAllocationSerializer(_context: object): Serializer<AllocationArgs, Allocation>;
export declare function getAllocationSerializer(): Serializer<AllocationArgs, Allocation>;

@@ -17,9 +17,9 @@ /**

*/
export type AllowList = {
export declare type AllowList = {
/** Merkle root of the addresses allowed to mint. */
merkleRoot: Uint8Array;
};
export type AllowListArgs = AllowList;
export declare type AllowListArgs = AllowList;
/** @deprecated Use `getAllowListSerializer()` without any argument instead. */
export declare function getAllowListSerializer(_context: object): Serializer<AllowListArgs, AllowList>;
export declare function getAllowListSerializer(): Serializer<AllowListArgs, AllowList>;

@@ -19,9 +19,9 @@ /**

*/
export type BotTax = {
export declare type BotTax = {
lamports: SolAmount;
lastInstruction: boolean;
};
export type BotTaxArgs = BotTax;
export declare type BotTaxArgs = BotTax;
/** @deprecated Use `getBotTaxSerializer()` without any argument instead. */
export declare function getBotTaxSerializer(_context: object): Serializer<BotTaxArgs, BotTax>;
export declare function getBotTaxSerializer(): Serializer<BotTaxArgs, BotTax>;

@@ -13,3 +13,3 @@ /**

/** Candy machine state and config data. */
export type CandyMachineAccountData = {
export declare type CandyMachineAccountData = {
discriminator: Array<number>;

@@ -33,3 +33,3 @@ /** Version of the account. */

};
export type CandyMachineAccountDataArgs = {
export declare type CandyMachineAccountDataArgs = {
/** Version of the account. */

@@ -36,0 +36,0 @@ version: AccountVersionArgs;

@@ -12,3 +12,3 @@ /**

/** Candy machine configuration data. */
export type CandyMachineData = {
export declare type CandyMachineData = {
/** Number of assets available */

@@ -31,3 +31,3 @@ itemsAvailable: bigint;

};
export type CandyMachineDataArgs = {
export declare type CandyMachineDataArgs = {
/** Number of assets available */

@@ -34,0 +34,0 @@ itemsAvailable: number | bigint;

@@ -10,3 +10,3 @@ /**

/** Config line struct for storing asset (NFT) data pre-mint. */
export type ConfigLine = {
export declare type ConfigLine = {
/** Name of the asset. */

@@ -17,5 +17,5 @@ name: string;

};
export type ConfigLineArgs = ConfigLine;
export declare type ConfigLineArgs = ConfigLine;
/** @deprecated Use `getConfigLineSerializer()` without any argument instead. */
export declare function getConfigLineSerializer(_context: object): Serializer<ConfigLineArgs, ConfigLine>;
export declare function getConfigLineSerializer(): Serializer<ConfigLineArgs, ConfigLine>;

@@ -10,3 +10,3 @@ /**

/** Config line settings to allocate space for individual name + URI. */
export type ConfigLineSettings = {
export declare type ConfigLineSettings = {
/** Common name prefix */

@@ -23,5 +23,5 @@ prefixName: string;

};
export type ConfigLineSettingsArgs = ConfigLineSettings;
export declare type ConfigLineSettingsArgs = ConfigLineSettings;
/** @deprecated Use `getConfigLineSettingsSerializer()` without any argument instead. */
export declare function getConfigLineSettingsSerializer(_context: object): Serializer<ConfigLineSettingsArgs, ConfigLineSettings>;
export declare function getConfigLineSettingsSerializer(): Serializer<ConfigLineSettingsArgs, ConfigLineSettings>;

@@ -10,3 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
export type Creator = {
export declare type Creator = {
/** Pubkey address */

@@ -18,5 +18,5 @@ address: PublicKey;

};
export type CreatorArgs = Creator;
export declare type CreatorArgs = Creator;
/** @deprecated Use `getCreatorSerializer()` without any argument instead. */
export declare function getCreatorSerializer(_context: object): Serializer<CreatorArgs, Creator>;
export declare function getCreatorSerializer(): Serializer<CreatorArgs, Creator>;

@@ -11,6 +11,6 @@ /**

/** Guard that sets a specific date for the mint to stop. */
export type EndDate = {
export declare type EndDate = {
date: DateTime;
};
export type EndDateArgs = {
export declare type EndDateArgs = {
date: DateTimeInput;

@@ -17,0 +17,0 @@ };

@@ -14,5 +14,5 @@ /**

}
export type FreezeInstructionArgs = FreezeInstruction;
export declare type FreezeInstructionArgs = FreezeInstruction;
/** @deprecated Use `getFreezeInstructionSerializer()` without any argument instead. */
export declare function getFreezeInstructionSerializer(_context: object): Serializer<FreezeInstructionArgs, FreezeInstruction>;
export declare function getFreezeInstructionSerializer(): Serializer<FreezeInstructionArgs, FreezeInstruction>;

@@ -21,9 +21,9 @@ /**

*/
export type FreezeSolPayment = {
export declare type FreezeSolPayment = {
lamports: SolAmount;
destination: PublicKey;
};
export type FreezeSolPaymentArgs = FreezeSolPayment;
export declare type FreezeSolPaymentArgs = FreezeSolPayment;
/** @deprecated Use `getFreezeSolPaymentSerializer()` without any argument instead. */
export declare function getFreezeSolPaymentSerializer(_context: object): Serializer<FreezeSolPaymentArgs, FreezeSolPayment>;
export declare function getFreezeSolPaymentSerializer(): Serializer<FreezeSolPaymentArgs, FreezeSolPayment>;

@@ -24,3 +24,3 @@ /**

*/
export type FreezeTokenPayment = {
export declare type FreezeTokenPayment = {
amount: bigint;

@@ -30,3 +30,3 @@ mint: PublicKey;

};
export type FreezeTokenPaymentArgs = {
export declare type FreezeTokenPaymentArgs = {
amount: number | bigint;

@@ -33,0 +33,0 @@ mint: PublicKey;

@@ -20,3 +20,3 @@ /**

*/
export type Gatekeeper = {
export declare type Gatekeeper = {
/** The network for the gateway token required */

@@ -30,5 +30,5 @@ gatekeeperNetwork: PublicKey;

};
export type GatekeeperArgs = Gatekeeper;
export declare type GatekeeperArgs = Gatekeeper;
/** @deprecated Use `getGatekeeperSerializer()` without any argument instead. */
export declare function getGatekeeperSerializer(_context: object): Serializer<GatekeeperArgs, Gatekeeper>;
export declare function getGatekeeperSerializer(): Serializer<GatekeeperArgs, Gatekeeper>;

@@ -33,5 +33,5 @@ /**

}
export type GuardTypeArgs = GuardType;
export declare type GuardTypeArgs = GuardType;
/** @deprecated Use `getGuardTypeSerializer()` without any argument instead. */
export declare function getGuardTypeSerializer(_context: object): Serializer<GuardTypeArgs, GuardType>;
export declare function getGuardTypeSerializer(): Serializer<GuardTypeArgs, GuardType>;

@@ -10,3 +10,3 @@ /**

/** Hidden settings for large mints used with off-chain data. */
export type HiddenSettings = {
export declare type HiddenSettings = {
/** Asset prefix name */

@@ -19,5 +19,5 @@ name: string;

};
export type HiddenSettingsArgs = HiddenSettings;
export declare type HiddenSettingsArgs = HiddenSettings;
/** @deprecated Use `getHiddenSettingsSerializer()` without any argument instead. */
export declare function getHiddenSettingsSerializer(_context: object): Serializer<HiddenSettingsArgs, HiddenSettings>;
export declare function getHiddenSettingsSerializer(): Serializer<HiddenSettingsArgs, HiddenSettings>;

@@ -18,3 +18,3 @@ /**

*/
export type MintLimit = {
export declare type MintLimit = {
/** Unique identifier of the mint limit. */

@@ -25,5 +25,5 @@ id: number;

};
export type MintLimitArgs = MintLimit;
export declare type MintLimitArgs = MintLimit;
/** @deprecated Use `getMintLimitSerializer()` without any argument instead. */
export declare function getMintLimitSerializer(_context: object): Serializer<MintLimitArgs, MintLimit>;
export declare function getMintLimitSerializer(): Serializer<MintLimitArgs, MintLimit>;

@@ -22,8 +22,8 @@ /**

*/
export type NftBurn = {
export declare type NftBurn = {
requiredCollection: PublicKey;
};
export type NftBurnArgs = NftBurn;
export declare type NftBurnArgs = NftBurn;
/** @deprecated Use `getNftBurnSerializer()` without any argument instead. */
export declare function getNftBurnSerializer(_context: object): Serializer<NftBurnArgs, NftBurn>;
export declare function getNftBurnSerializer(): Serializer<NftBurnArgs, NftBurn>;

@@ -18,8 +18,8 @@ /**

*/
export type NftGate = {
export declare type NftGate = {
requiredCollection: PublicKey;
};
export type NftGateArgs = NftGate;
export declare type NftGateArgs = NftGate;
/** @deprecated Use `getNftGateSerializer()` without any argument instead. */
export declare function getNftGateSerializer(_context: object): Serializer<NftGateArgs, NftGate>;
export declare function getNftGateSerializer(): Serializer<NftGateArgs, NftGate>;

@@ -28,9 +28,9 @@ /**

*/
export type NftPayment = {
export declare type NftPayment = {
requiredCollection: PublicKey;
destination: PublicKey;
};
export type NftPaymentArgs = NftPayment;
export declare type NftPaymentArgs = NftPayment;
/** @deprecated Use `getNftPaymentSerializer()` without any argument instead. */
export declare function getNftPaymentSerializer(_context: object): Serializer<NftPaymentArgs, NftPayment>;
export declare function getNftPaymentSerializer(): Serializer<NftPaymentArgs, NftPayment>;

@@ -14,8 +14,8 @@ /**

*/
export type ProgramGate = {
export declare type ProgramGate = {
additional: Array<PublicKey>;
};
export type ProgramGateArgs = ProgramGate;
export declare type ProgramGateArgs = ProgramGate;
/** @deprecated Use `getProgramGateSerializer()` without any argument instead. */
export declare function getProgramGateSerializer(_context: object): Serializer<ProgramGateArgs, ProgramGate>;
export declare function getProgramGateSerializer(): Serializer<ProgramGateArgs, ProgramGate>;

@@ -13,6 +13,6 @@ /**

*/
export type RedeemedAmount = {
export declare type RedeemedAmount = {
maximum: bigint;
};
export type RedeemedAmountArgs = {
export declare type RedeemedAmountArgs = {
maximum: number | bigint;

@@ -19,0 +19,0 @@ };

@@ -17,9 +17,9 @@ /**

*/
export type SolPayment = {
export declare type SolPayment = {
lamports: SolAmount;
destination: PublicKey;
};
export type SolPaymentArgs = SolPayment;
export declare type SolPaymentArgs = SolPayment;
/** @deprecated Use `getSolPaymentSerializer()` without any argument instead. */
export declare function getSolPaymentSerializer(_context: object): Serializer<SolPaymentArgs, SolPayment>;
export declare function getSolPaymentSerializer(): Serializer<SolPaymentArgs, SolPayment>;

@@ -11,6 +11,6 @@ /**

/** Guard that sets a specific start date for the mint. */
export type StartDate = {
export declare type StartDate = {
date: DateTime;
};
export type StartDateArgs = {
export declare type StartDateArgs = {
date: DateTimeInput;

@@ -17,0 +17,0 @@ };

@@ -17,8 +17,8 @@ /**

*/
export type ThirdPartySigner = {
export declare type ThirdPartySigner = {
signerKey: PublicKey;
};
export type ThirdPartySignerArgs = ThirdPartySigner;
export declare type ThirdPartySignerArgs = ThirdPartySigner;
/** @deprecated Use `getThirdPartySignerSerializer()` without any argument instead. */
export declare function getThirdPartySignerSerializer(_context: object): Serializer<ThirdPartySignerArgs, ThirdPartySigner>;
export declare function getThirdPartySignerSerializer(): Serializer<ThirdPartySignerArgs, ThirdPartySigner>;

@@ -20,3 +20,3 @@ /**

*/
export type Token2022Payment = {
export declare type Token2022Payment = {
amount: bigint;

@@ -26,3 +26,3 @@ mint: PublicKey;

};
export type Token2022PaymentArgs = {
export declare type Token2022PaymentArgs = {
amount: number | bigint;

@@ -29,0 +29,0 @@ mint: PublicKey;

@@ -19,7 +19,7 @@ /**

*/
export type TokenBurn = {
export declare type TokenBurn = {
amount: bigint;
mint: PublicKey;
};
export type TokenBurnArgs = {
export declare type TokenBurnArgs = {
amount: number | bigint;

@@ -26,0 +26,0 @@ mint: PublicKey;

@@ -17,7 +17,7 @@ /**

*/
export type TokenGate = {
export declare type TokenGate = {
amount: bigint;
mint: PublicKey;
};
export type TokenGateArgs = {
export declare type TokenGateArgs = {
amount: number | bigint;

@@ -24,0 +24,0 @@ mint: PublicKey;

@@ -18,3 +18,3 @@ /**

*/
export type TokenPayment = {
export declare type TokenPayment = {
amount: bigint;

@@ -24,3 +24,3 @@ mint: PublicKey;

};
export type TokenPaymentArgs = {
export declare type TokenPaymentArgs = {
amount: number | bigint;

@@ -27,0 +27,0 @@ mint: PublicKey;

@@ -8,7 +8,7 @@ import { Serializer } from '@metaplex-foundation/umi/serializers';

*/
export type GuardGroup<D extends GuardSet> = {
export declare type GuardGroup<D extends GuardSet> = {
label: string;
guards: D;
};
export type GuardGroupArgs<DA extends GuardSetArgs> = {
export declare type GuardGroupArgs<DA extends GuardSetArgs> = {
label: string;

@@ -15,0 +15,0 @@ guards: Partial<DA>;

import { Context, PublicKey, Signer } from '@metaplex-foundation/umi';
import { Serializer } from '@metaplex-foundation/umi/serializers';
export type GuardManifest<DA extends object = {}, D extends DA = DA, MA extends object = {}, RA extends object = {}> = {
export declare type GuardManifest<DA extends object = {}, D extends DA = DA, MA extends object = {}, RA extends object = {}> = {
name: string;

@@ -9,6 +9,6 @@ serializer: () => Serializer<DA, D>;

};
export type MintParser<MA extends object> = (context: Pick<Context, 'eddsa' | 'programs'>, mintContext: MintContext, args: MA) => GuardInstructionExtras;
export type RouteParser<RA extends object> = (context: Pick<Context, 'eddsa' | 'programs'>, routeContext: RouteContext, args: RA) => GuardInstructionExtras;
export declare type MintParser<MA extends object> = (context: Pick<Context, 'eddsa' | 'programs'>, mintContext: MintContext, args: MA) => GuardInstructionExtras;
export declare type RouteParser<RA extends object> = (context: Pick<Context, 'eddsa' | 'programs'>, routeContext: RouteContext, args: RA) => GuardInstructionExtras;
export declare const noopParser: MintParser<{}> & RouteParser<{}>;
export type MintContext = {
export declare type MintContext = {
/** The wallet to use for validation and non-SOL fees, this is typically the payer. */

@@ -25,5 +25,5 @@ minter: Signer;

};
export type RouteContext = Omit<MintContext, 'minter' | 'mint'>;
export declare type RouteContext = Omit<MintContext, 'minter' | 'mint'>;
/** Additional data and accounts to pass to the mint or route instruction. */
export type GuardInstructionExtras = {
export declare type GuardInstructionExtras = {
/** The serialized data to pass to the instruction. */

@@ -39,3 +39,3 @@ data: Uint8Array;

*/
export type GuardRemainingAccount = {
export declare type GuardRemainingAccount = {
publicKey: PublicKey;

@@ -42,0 +42,0 @@ isWritable: boolean;

import { Program } from '@metaplex-foundation/umi';
import { GuardManifest } from './guardManifest';
export type AnyGuardManifest = GuardManifest<any, any, any, any>;
export type CandyGuardProgram = Program & {
export declare type AnyGuardManifest = GuardManifest<any, any, any, any>;
export declare type CandyGuardProgram = Program & {
availableGuards: string[];

@@ -6,0 +6,0 @@ };

@@ -5,12 +5,12 @@ import { AccountMeta, Context, Option, OptionOrNullable, Signer } from '@metaplex-foundation/umi';

import { CandyGuardProgram, GuardRepository } from './guardRepository';
export type GuardSetArgs = {
export declare type GuardSetArgs = {
[name: string]: OptionOrNullable<object>;
};
export type GuardSet = {
export declare type GuardSet = {
[name: string]: Option<object>;
};
export type GuardSetMintArgs = {
export declare type GuardSetMintArgs = {
[name: string]: OptionOrNullable<object>;
};
export type GuardSetRouteArgs = {
export declare type GuardSetRouteArgs = {
[name: string]: object;

@@ -17,0 +17,0 @@ };

@@ -8,4 +8,4 @@ import { Account, Context, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi';

export { findCandyGuardPda };
export type CandyGuard<D extends GuardSet = DefaultGuardSet> = Account<CandyGuardAccountData<D>>;
export type CandyGuardAccountData<D extends GuardSet = DefaultGuardSet> = {
export declare type CandyGuard<D extends GuardSet = DefaultGuardSet> = Account<CandyGuardAccountData<D>>;
export declare type CandyGuardAccountData<D extends GuardSet = DefaultGuardSet> = {
discriminator: Array<number>;

@@ -16,3 +16,3 @@ base: PublicKey;

} & CandyGuardData<D>;
export type CandyGuardAccountDataArgs<DA extends GuardSetArgs = DefaultGuardSetArgs> = {
export declare type CandyGuardAccountDataArgs<DA extends GuardSetArgs = DefaultGuardSetArgs> = {
base: PublicKey;

@@ -19,0 +19,0 @@ bump: number;

import { Serializer } from '@metaplex-foundation/umi/serializers';
import { CandyGuardProgram, GuardGroup, GuardGroupArgs, GuardRepository, GuardSet, GuardSetArgs } from '../guards';
export type CandyGuardData<D extends GuardSet> = {
export declare type CandyGuardData<D extends GuardSet> = {
guards: D;
groups: Array<GuardGroup<D>>;
};
export type CandyGuardDataArgs<DA extends GuardSetArgs> = {
export declare type CandyGuardDataArgs<DA extends GuardSetArgs> = {
guards: Partial<DA>;

@@ -9,0 +9,0 @@ groups: Array<GuardGroupArgs<DA>>;

import { Option, PublicKey } from '@metaplex-foundation/umi';
import { Serializer } from '@metaplex-foundation/umi/serializers';
import { CandyMachineAccountData as BaseCandyMachineAccountData, CandyMachineAccountDataArgs as BaseCandyMachineAccountDataArgs } from '../generated/types/candyMachineAccountData';
export type CandyMachineAccountData = BaseCandyMachineAccountData & {
export declare type CandyMachineAccountData = BaseCandyMachineAccountData & {
itemsLoaded: number;

@@ -9,3 +9,3 @@ items: CandyMachineItem[];

};
export type CandyMachineAccountDataArgs = BaseCandyMachineAccountDataArgs;
export declare type CandyMachineAccountDataArgs = BaseCandyMachineAccountDataArgs;
/**

@@ -19,3 +19,3 @@ * Represent an item inside a Candy Machine that has been or

*/
export type CandyMachineItem = {
export declare type CandyMachineItem = {
/** The index of the config line. */

@@ -22,0 +22,0 @@ readonly index: number;

@@ -6,3 +6,3 @@ import { MerkleTree } from 'merkletreejs';

*/
type MerkleTreeInput = Uint8Array | string;
declare type MerkleTreeInput = Uint8Array | string;
/**

@@ -27,3 +27,3 @@ * Creates a Merkle Tree from the provided data.

*/
export declare const getMerkleProof: (data: MerkleTreeInput[], leaf: MerkleTreeInput, index?: number) => Uint8Array[];
export declare const getMerkleProof: (data: MerkleTreeInput[], leaf: MerkleTreeInput, index?: number | undefined) => Uint8Array[];
/**

@@ -30,0 +30,0 @@ * Creates a Merkle Proof for a data item at a given index.

@@ -6,3 +6,3 @@ import { Option, OptionOrNullable, TransactionBuilder } from '@metaplex-foundation/umi';

export { MintInstructionAccounts };
export type MintInstructionData<MA extends GuardSetMintArgs> = {
export declare type MintInstructionData<MA extends GuardSetMintArgs> = {
discriminator: Array<number>;

@@ -12,3 +12,3 @@ mintArgs: MA;

};
export type MintInstructionDataArgs<MA extends GuardSetMintArgs> = {
export declare type MintInstructionDataArgs<MA extends GuardSetMintArgs> = {
mintArgs?: Partial<MA>;

@@ -15,0 +15,0 @@ group?: OptionOrNullable<string>;

@@ -7,3 +7,3 @@ import { TokenStandard } from '@metaplex-foundation/mpl-token-metadata';

export { MintV2InstructionAccounts };
export type MintV2InstructionData<MA extends GuardSetMintArgs> = {
export declare type MintV2InstructionData<MA extends GuardSetMintArgs> = {
discriminator: Array<number>;

@@ -13,3 +13,3 @@ mintArgs: MA;

};
export type MintV2InstructionDataArgs<MA extends GuardSetMintArgs> = {
export declare type MintV2InstructionDataArgs<MA extends GuardSetMintArgs> = {
mintArgs?: Partial<MA>;

@@ -16,0 +16,0 @@ group?: OptionOrNullable<string>;

@@ -1,2 +0,2 @@

import { Option, TransactionBuilder } from '@metaplex-foundation/umi';
import { Option, OptionOrNullable, TransactionBuilder } from '@metaplex-foundation/umi';
import { DefaultGuardSetRouteArgs } from './defaultGuards';

@@ -6,3 +6,3 @@ import { route as baseRoute, RouteInstructionAccounts } from './generated/instructions/route';

export { RouteInstructionAccounts };
export type RouteInstructionData<G extends keyof RA & string, RA extends GuardSetRouteArgs> = {
export declare type RouteInstructionData<G extends keyof RA & string, RA extends GuardSetRouteArgs> = {
discriminator: Array<number>;

@@ -13,6 +13,6 @@ guard: G;

};
export type RouteInstructionDataArgs<G extends keyof RA & string, RA extends GuardSetRouteArgs> = {
export declare type RouteInstructionDataArgs<G extends keyof RA & string, RA extends GuardSetRouteArgs> = {
guard: G;
routeArgs: RA[G];
group?: Option<string>;
group?: OptionOrNullable<string>;
};

@@ -19,0 +19,0 @@ export declare function route<G extends keyof RA & string, RA extends GuardSetRouteArgs = DefaultGuardSetRouteArgs>(context: Parameters<typeof baseRoute>[0] & {

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

guard: guardIndex,
data: (0, umi_1.mergeBytes)([prefix, data]),
data: (0, serializers_1.mergeBytes)([prefix, data]),
group,

@@ -26,0 +26,0 @@ }).items[0];

@@ -7,8 +7,8 @@ import { TransactionBuilder } from '@metaplex-foundation/umi';

export { UpdateCandyGuardInstructionAccounts };
export type UpdateCandyGuardInstructionData<D extends GuardSet> = {
export declare type UpdateCandyGuardInstructionData<D extends GuardSet> = {
discriminator: Array<number>;
} & CandyGuardData<D>;
export type UpdateCandyGuardInstructionDataArgs<DA extends GuardSetArgs> = CandyGuardDataArgs<DA>;
export declare type UpdateCandyGuardInstructionDataArgs<DA extends GuardSetArgs> = CandyGuardDataArgs<DA>;
export declare function updateCandyGuard<DA extends GuardSetArgs = DefaultGuardSetArgs>(context: Parameters<typeof baseUpdateCandyGuard>[0] & {
guards: GuardRepository;
}, input: UpdateCandyGuardInstructionAccounts & UpdateCandyGuardInstructionDataArgs<DA extends undefined ? DefaultGuardSetArgs : DA>): TransactionBuilder;
{
"name": "@metaplex-foundation/mpl-candy-machine",
"version": "6.0.0-alpha.16",
"version": "6.0.0-alpha.17",
"description": "Client library for Candy Machine related programs",

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

"@ava/typescript": "^3.0.1",
"@identity.com/solana-gateway-ts": "^0.9.0",
"@identity.com/solana-gateway-ts": "^0.12.0",
"@metaplex-foundation/umi": "^0.8.2",

@@ -32,0 +32,0 @@ "@metaplex-foundation/umi-bundle-tests": "^0.8.2",

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