UNPKG

@magiceden/magiceden-sdk

Version:

A TypeScript SDK for interacting with Magic Eden's API across multiple chains.

1,482 lines (1,481 loc) 70.1 kB
import { z } from 'zod'; import { Blockchain } from '../../chains'; import { EvmProtocolType, SolProtocolType } from '../../protocol'; /** * Parameters for updating a launchpad */ export declare const BaseUpdateLaunchpadParamsSchema: z.ZodObject<{ /** * The collection address/ID to update. */ collectionId: z.ZodString; /** * The owner wallet address. */ owner: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; /** * The blockchain where the collection is deployed. */ chain: z.ZodNativeEnum<typeof Blockchain>; /** * The protocol used for the token. */ protocol: z.ZodUnion<[z.ZodNativeEnum<typeof EvmProtocolType>, z.ZodNativeEnum<typeof SolProtocolType>]>; /** * The collection name. */ name: z.ZodOptional<z.ZodString>; /** * URL pointing to the collection image. * For all collections, this image represents the entire collection. * For open editions, this is also used as the default image for individual NFTs if tokenImageUrl is not provided. */ imageUrl: z.ZodOptional<z.ZodString>; /** * The collection description. */ description: z.ZodOptional<z.ZodString>; /** * The royalty basis points. */ royaltyBps: z.ZodOptional<z.ZodNumber>; /** * The royalty recipients and their shares. */ royaltyRecipients: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{ address: z.ZodString; share: z.ZodNumber; }, "strip", z.ZodTypeAny, { address: string; share: number; }, { address: string; share: number; }>, "many">, { address: string; share: number; }[], { address: string; share: number; }[]>>; /** * The payout recipient address of mint proceeds. */ payoutRecipient: z.ZodOptional<z.ZodString>; /** * For non-open editions: Required URL pointing to a directory containing metadata JSON files for each NFT (0.json, 1.json, etc.). * Each JSON file should include its own image URL for that specific NFT. * * For open editions: Optional URL for additional metadata. */ nftMetadataUrl: z.ZodOptional<z.ZodString>; /** * The mint stages. */ mintStages: z.ZodOptional<z.ZodObject<{ stages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Public>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Allowlist>; allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>]>, "many">>; tokenId: z.ZodOptional<z.ZodNumber>; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; }, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; }>>; /** * For open editions only: URL pointing to the image used for all NFTs in the open edition. * If not provided for open editions, imageUrl will be used instead. * Not used for non-open editions, as individual NFT images are defined in the metadata files at nftMetadataUrl. * * This will be ignored for non-open editions. */ tokenImageUrl: z.ZodOptional<z.ZodString>; /** * Token ID for ERC1155. */ tokenId: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { chain: Blockchain; owner: string; protocol: EvmProtocolType | SolProtocolType; collectionId: string; name?: string | undefined; description?: string | undefined; tokenId?: number | undefined; imageUrl?: string | undefined; royaltyBps?: number | undefined; royaltyRecipients?: { address: string; share: number; }[] | undefined; payoutRecipient?: string | undefined; nftMetadataUrl?: string | undefined; tokenImageUrl?: string | undefined; mintStages?: { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; } | undefined; }, { chain: Blockchain; owner: string; protocol: EvmProtocolType | SolProtocolType; collectionId: string; name?: string | undefined; description?: string | undefined; tokenId?: number | undefined; imageUrl?: string | undefined; royaltyBps?: number | undefined; royaltyRecipients?: { address: string; share: number; }[] | undefined; payoutRecipient?: string | undefined; nftMetadataUrl?: string | undefined; tokenImageUrl?: string | undefined; mintStages?: { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; } | undefined; }>; export declare const EvmUpdateLaunchpadParamsSchema: z.ZodObject<z.objectUtil.extendShape<{ /** * The collection address/ID to update. */ collectionId: z.ZodString; /** * The owner wallet address. */ owner: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; /** * The blockchain where the collection is deployed. */ chain: z.ZodNativeEnum<typeof Blockchain>; /** * The protocol used for the token. */ protocol: z.ZodUnion<[z.ZodNativeEnum<typeof EvmProtocolType>, z.ZodNativeEnum<typeof SolProtocolType>]>; /** * The collection name. */ name: z.ZodOptional<z.ZodString>; /** * URL pointing to the collection image. * For all collections, this image represents the entire collection. * For open editions, this is also used as the default image for individual NFTs if tokenImageUrl is not provided. */ imageUrl: z.ZodOptional<z.ZodString>; /** * The collection description. */ description: z.ZodOptional<z.ZodString>; /** * The royalty basis points. */ royaltyBps: z.ZodOptional<z.ZodNumber>; /** * The royalty recipients and their shares. */ royaltyRecipients: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{ address: z.ZodString; share: z.ZodNumber; }, "strip", z.ZodTypeAny, { address: string; share: number; }, { address: string; share: number; }>, "many">, { address: string; share: number; }[], { address: string; share: number; }[]>>; /** * The payout recipient address of mint proceeds. */ payoutRecipient: z.ZodOptional<z.ZodString>; /** * For non-open editions: Required URL pointing to a directory containing metadata JSON files for each NFT (0.json, 1.json, etc.). * Each JSON file should include its own image URL for that specific NFT. * * For open editions: Optional URL for additional metadata. */ nftMetadataUrl: z.ZodOptional<z.ZodString>; /** * The mint stages. */ mintStages: z.ZodOptional<z.ZodObject<{ stages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Public>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Allowlist>; allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>]>, "many">>; tokenId: z.ZodOptional<z.ZodNumber>; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; }, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; }>>; /** * For open editions only: URL pointing to the image used for all NFTs in the open edition. * If not provided for open editions, imageUrl will be used instead. * Not used for non-open editions, as individual NFT images are defined in the metadata files at nftMetadataUrl. * * This will be ignored for non-open editions. */ tokenImageUrl: z.ZodOptional<z.ZodString>; /** * Token ID for ERC1155. */ tokenId: z.ZodOptional<z.ZodNumber>; }, { /** * The collection address/ID to update. */ collectionId: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; /** * The blockchain where the collection is deployed. */ chain: z.ZodEnum<[Blockchain.ETHEREUM, Blockchain.BASE, Blockchain.POLYGON, Blockchain.SEI, Blockchain.ARBITRUM, Blockchain.APECHAIN, Blockchain.BERACHAIN, Blockchain.MONAD_TESTNET, Blockchain.BSC, Blockchain.ABSTRACT]>; /** * The protocol used for the token. */ protocol: z.ZodEnum<[EvmProtocolType.ERC721, EvmProtocolType.ERC1155]>; }>, "strip", z.ZodTypeAny, { chain: Blockchain.ETHEREUM | Blockchain.POLYGON | Blockchain.BASE | Blockchain.SEI | Blockchain.ARBITRUM | Blockchain.APECHAIN | Blockchain.BERACHAIN | Blockchain.MONAD_TESTNET | Blockchain.BSC | Blockchain.ABSTRACT; owner: string; protocol: EvmProtocolType.ERC721 | EvmProtocolType.ERC1155; collectionId: string; name?: string | undefined; description?: string | undefined; tokenId?: number | undefined; imageUrl?: string | undefined; royaltyBps?: number | undefined; royaltyRecipients?: { address: string; share: number; }[] | undefined; payoutRecipient?: string | undefined; nftMetadataUrl?: string | undefined; tokenImageUrl?: string | undefined; mintStages?: { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; } | undefined; }, { chain: Blockchain.ETHEREUM | Blockchain.POLYGON | Blockchain.BASE | Blockchain.SEI | Blockchain.ARBITRUM | Blockchain.APECHAIN | Blockchain.BERACHAIN | Blockchain.MONAD_TESTNET | Blockchain.BSC | Blockchain.ABSTRACT; owner: string; protocol: EvmProtocolType.ERC721 | EvmProtocolType.ERC1155; collectionId: string; name?: string | undefined; description?: string | undefined; tokenId?: number | undefined; imageUrl?: string | undefined; royaltyBps?: number | undefined; royaltyRecipients?: { address: string; share: number; }[] | undefined; payoutRecipient?: string | undefined; nftMetadataUrl?: string | undefined; tokenImageUrl?: string | undefined; mintStages?: { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; } | undefined; }>; export declare const SolanaUpdateLaunchpadParamsSchema: z.ZodObject<z.objectUtil.extendShape<{ /** * The collection address/ID to update. */ collectionId: z.ZodString; /** * The owner wallet address. */ owner: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; /** * The blockchain where the collection is deployed. */ chain: z.ZodNativeEnum<typeof Blockchain>; /** * The protocol used for the token. */ protocol: z.ZodUnion<[z.ZodNativeEnum<typeof EvmProtocolType>, z.ZodNativeEnum<typeof SolProtocolType>]>; /** * The collection name. */ name: z.ZodOptional<z.ZodString>; /** * URL pointing to the collection image. * For all collections, this image represents the entire collection. * For open editions, this is also used as the default image for individual NFTs if tokenImageUrl is not provided. */ imageUrl: z.ZodOptional<z.ZodString>; /** * The collection description. */ description: z.ZodOptional<z.ZodString>; /** * The royalty basis points. */ royaltyBps: z.ZodOptional<z.ZodNumber>; /** * The royalty recipients and their shares. */ royaltyRecipients: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{ address: z.ZodString; share: z.ZodNumber; }, "strip", z.ZodTypeAny, { address: string; share: number; }, { address: string; share: number; }>, "many">, { address: string; share: number; }[], { address: string; share: number; }[]>>; /** * The payout recipient address of mint proceeds. */ payoutRecipient: z.ZodOptional<z.ZodString>; /** * For non-open editions: Required URL pointing to a directory containing metadata JSON files for each NFT (0.json, 1.json, etc.). * Each JSON file should include its own image URL for that specific NFT. * * For open editions: Optional URL for additional metadata. */ nftMetadataUrl: z.ZodOptional<z.ZodString>; /** * The mint stages. */ mintStages: z.ZodOptional<z.ZodObject<{ stages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Public>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Allowlist>; allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>]>, "many">>; tokenId: z.ZodOptional<z.ZodNumber>; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; }, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; }>>; /** * For open editions only: URL pointing to the image used for all NFTs in the open edition. * If not provided for open editions, imageUrl will be used instead. * Not used for non-open editions, as individual NFT images are defined in the metadata files at nftMetadataUrl. * * This will be ignored for non-open editions. */ tokenImageUrl: z.ZodOptional<z.ZodString>; /** * Token ID for ERC1155. */ tokenId: z.ZodOptional<z.ZodNumber>; }, { /** * The collection address/ID to update. */ collectionId: z.ZodString; /** * The blockchain where the collection is deployed. */ chain: z.ZodLiteral<Blockchain.SOLANA>; /** * The protocol used for the token. */ protocol: z.ZodLiteral<SolProtocolType.METAPLEX_CORE>; /** * The payout recipient address of mint proceeds. */ payoutRecipient: z.ZodString; /** * The payer address for transaction fees. */ payer: z.ZodString; /** * The social media links. */ social: z.ZodOptional<z.ZodObject<{ discordUrl: z.ZodOptional<z.ZodString>; externalUrl: z.ZodOptional<z.ZodString>; telegramUrl: z.ZodOptional<z.ZodString>; twitterUsername: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { discordUrl?: string | undefined; externalUrl?: string | undefined; telegramUrl?: string | undefined; twitterUsername?: string | undefined; }, { discordUrl?: string | undefined; externalUrl?: string | undefined; telegramUrl?: string | undefined; twitterUsername?: string | undefined; }>>; /** * The collection name. */ name: z.ZodString; /** * The current collection symbol. */ symbol: z.ZodEffects<z.ZodString, string, string>; /** * The new collection symbol to update to. */ newSymbol: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; /** * The candy machine ID associated with the collection. */ candyMachineId: z.ZodString; /** * The owner address of the collection. */ owner: z.ZodString; /** * External link for the collection. */ externalLink: z.ZodOptional<z.ZodString>; /** * The royalty recipients and their shares. */ royaltyRecipients: z.ZodEffects<z.ZodArray<z.ZodObject<{ address: z.ZodString; share: z.ZodNumber; }, "strip", z.ZodTypeAny, { address: string; share: number; }, { address: string; share: number; }>, "many">, { address: string; share: number; }[], { address: string; share: number; }[]>; }>, "strip", z.ZodTypeAny, { symbol: string; chain: Blockchain.SOLANA; name: string; owner: string; protocol: SolProtocolType.METAPLEX_CORE; royaltyRecipients: { address: string; share: number; }[]; payoutRecipient: string; collectionId: string; payer: string; candyMachineId: string; description?: string | undefined; tokenId?: number | undefined; imageUrl?: string | undefined; royaltyBps?: number | undefined; nftMetadataUrl?: string | undefined; tokenImageUrl?: string | undefined; mintStages?: { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; } | undefined; social?: { discordUrl?: string | undefined; externalUrl?: string | undefined; telegramUrl?: string | undefined; twitterUsername?: string | undefined; } | undefined; newSymbol?: string | undefined; externalLink?: string | undefined; }, { symbol: string; chain: Blockchain.SOLANA; name: string; owner: string; protocol: SolProtocolType.METAPLEX_CORE; royaltyRecipients: { address: string; share: number; }[]; payoutRecipient: string; collectionId: string; payer: string; candyMachineId: string; description?: string | undefined; tokenId?: number | undefined; imageUrl?: string | undefined; royaltyBps?: number | undefined; nftMetadataUrl?: string | undefined; tokenImageUrl?: string | undefined; mintStages?: { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; } | undefined; social?: { discordUrl?: string | undefined; externalUrl?: string | undefined; telegramUrl?: string | undefined; twitterUsername?: string | undefined; } | undefined; newSymbol?: string | undefined; externalLink?: string | undefined; }>; export type EvmUpdateLaunchpadParams = z.infer<typeof EvmUpdateLaunchpadParamsSchema>; export type SolanaUpdateLaunchpadParams = z.infer<typeof SolanaUpdateLaunchpadParamsSchema>; export declare const UpdateLaunchpadParams: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ /** * The collection address/ID to update. */ collectionId: z.ZodString; /** * The owner wallet address. */ owner: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; /** * The blockchain where the collection is deployed. */ chain: z.ZodNativeEnum<typeof Blockchain>; /** * The protocol used for the token. */ protocol: z.ZodUnion<[z.ZodNativeEnum<typeof EvmProtocolType>, z.ZodNativeEnum<typeof SolProtocolType>]>; /** * The collection name. */ name: z.ZodOptional<z.ZodString>; /** * URL pointing to the collection image. * For all collections, this image represents the entire collection. * For open editions, this is also used as the default image for individual NFTs if tokenImageUrl is not provided. */ imageUrl: z.ZodOptional<z.ZodString>; /** * The collection description. */ description: z.ZodOptional<z.ZodString>; /** * The royalty basis points. */ royaltyBps: z.ZodOptional<z.ZodNumber>; /** * The royalty recipients and their shares. */ royaltyRecipients: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{ address: z.ZodString; share: z.ZodNumber; }, "strip", z.ZodTypeAny, { address: string; share: number; }, { address: string; share: number; }>, "many">, { address: string; share: number; }[], { address: string; share: number; }[]>>; /** * The payout recipient address of mint proceeds. */ payoutRecipient: z.ZodOptional<z.ZodString>; /** * For non-open editions: Required URL pointing to a directory containing metadata JSON files for each NFT (0.json, 1.json, etc.). * Each JSON file should include its own image URL for that specific NFT. * * For open editions: Optional URL for additional metadata. */ nftMetadataUrl: z.ZodOptional<z.ZodString>; /** * The mint stages. */ mintStages: z.ZodOptional<z.ZodObject<{ stages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Public>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<import("./shared").MintStageKind.Allowlist>; allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; price: z.ZodObject<{ currency: z.ZodObject<{ chain: z.ZodNativeEnum<typeof Blockchain>; assetId: z.ZodString; }, "strip", z.ZodTypeAny, { chain: Blockchain; assetId: string; }, { chain: Blockchain; assetId: string; }>; raw: z.ZodString; }, "strip", z.ZodTypeAny, { currency: { chain: Blockchain; assetId: string; }; raw: string; }, { currency: { chain: Blockchain; assetId: string; }; raw: string; }>; startTime: z.ZodString; endTime: z.ZodString; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }, { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; }>]>, "many">>; tokenId: z.ZodOptional<z.ZodNumber>; walletLimit: z.ZodOptional<z.ZodNumber>; maxSupply: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined; maxSupply?: number | null | undefined; })[] | undefined; tokenId?: number | undefined; }, { walletLimit?: number | undefined; maxSupply?: number | null | undefined; stages?: ({ kind: import("./shared").MintStageKind.Public; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; walletLimit?: number | undefined; maxSupply?: number | null | undefined; } | { kind: import("./shared").MintStageKind.Allowlist; price: { currency: { chain: Blockchain; assetId: string; }; raw: string; }; startTime: string; endTime: string; allowlist?: string[] | undefined; walletLimit?: number | undefined;