1.0.6 • Published 3 years ago
solmint v1.0.6
SolMint
SolMint enables initializiation of a custom fork of Candy Machine contract on Solana that allows users to mint NFTs against a whitelist token and some Sol.
5% of the mint fees goes to the author of the contract and this package :)
Please check it on devnet first and reach out to me if you have any issues. This is still a work in progress and would probably need changes as per feedback.
Steps
Here are the steps for setting it up and minting. Please refer to example.js for an actual walk-through;
const whitelistMint = require("solmint");
Step 1: Initialize config
let { uuid, config, candyMachine, bump } = await whitelistMint.initConfig(solConnection, userKeyPair, values.length, symbol, sellerBPS, creators);
Step 2: Upload data
await whitelistMint.upload(solConnection, userKeyPair, config, values);
Step 3: Initilialize the contract
await whitelistMint.initCandyMachine(solConnection, userKeyPair, config, candyMachine, bump, values.length, tokenKey, tokenLamports, lamports, goLiveDate);
Step 4: Update the contract if needed
await whitelistMint.updateCandyMachine(solConnection, userKeyPair, candyMachine, tokenLamports, lamports, goLiveDate);
Step 5: Mint
await whitelistMint.mintOne(solConnection, userKeyPair, config, candyMachine);