@leda-mint-io/candymachine-client-sdk
Version:
Metaplex Candy Machine Client SDK
24 lines (23 loc) • 1.07 kB
TypeScript
import { Program } from "@j0nnyboi/anchor";
import { PublicKey } from "@safecoin/web3.js";
/**
*
* Update a given candy machine with the new settings passed and cache.
* At the end of the update, the updated cache can be downloaded.
* @newSettings The new settings to update the candy machine with.
* @candyMachinePubkey The public key of the candy machine to update.
* @publicKey The public key of the authority of the candy machine
* @treasuryWallet The public key of the treasury wallet
* @anchorProgram The program that is used to update the candy machine.
* @cache The cache to update the candy machine with.
* @newAuthority (Optional) The new authority of the candy machine.
*/
export declare function updateV2({ newSettings, candyMachinePubkey, publicKey, treasuryWallet, anchorProgram, cache, newAuthority, }: {
newSettings: any;
candyMachinePubkey: string | string[];
publicKey: PublicKey;
treasuryWallet: PublicKey;
anchorProgram: Program;
cache: string;
newAuthority: string;
}): Promise<void>;