GithubHelp home page GithubHelp logo

leonidalekseev / candy-machine-mint-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coherencenft/candy-machine-mint-1

0.0 0.0 0.0 14.86 MB

Shell 30.12% HTML 5.83% CSS 1.34% TypeScript 60.95% JavaScript 1.77%

candy-machine-mint-1's Introduction

Candy Machine Mint

The Candy Machine Mint project is designed to let users fork, customize, and deploy their own candy machine mint app to a custom domain ultra fast.

A candy machine is an on-chain Solana program (or smart contract) for managing fair mint.

Fair mints:

  • Start and finish at the same time for everyone.
  • Won't accept your funds if they're out of NFTs to sell.

The Candy Machine Mint project is meant to be as simple and usable as possible, accessible to everyone from long-time crypto devs to junior React devs with a vague interest in NFTs. Our goal is to empower users to create their own frontends to display, sell, and manage their NFTs as simply as possible by just updating a few styled components and following a well-documented process for setup and shipping.

Setup

Setup Metaplex and all dependencies

./ops setup

Configure Solana for Devnet

Devnet serves as a playground for anyone who wants to take Solana for a test drive, as a user, token holder, app developer, or NFT publisher. NFT publishers should target devnet before going for mainnet.

./ops config-devnet

Organize Assets

Here’s how you should organize the files you want to upload.

Notice that these come in numerical pairs. eg: 4.png & 4.json are two halves of the NFT – one is the art, the other is the metadata. If you have a 10k collection then there should be 20k files in this directory.

Also notice that we’re starting with 0.json + 0.png, because that’s the default value for the --start-with. Staying close to the defaults ensures you don’t have surprises like publishing fewer NFTs than you meant to.

Look in the assets folder for example json + png pairs.

0.json
0.png
1.json
1.png
2.json
2.png
3.json
3.png
4.json
...

Verify Assets

Don’t speed run this section. This is where permanent mistakes are made.

Once all of your assets are organized you can check some basic metrics to make sure everything looks correct.

./ops verify-assets

Upload Assets

Once you've verified all your assets you can upload them.

Upload sends files to Arweave and also registers those files with your Candy Machine. After a successful run both Arweave and Solana are initialized.

It’s normal for the Upload command to emit numerous errors espescially on larger collections.The program authors are aware of this and carefully designed the program so that it’s safe to simply re-run the upload command until everything goes through completely and cleanly.

Arweave is rarely able to show your your assets right away. It’s not uncommon for me to wait 10-15 minutes to see it serve images and metadata. I don’t fully understand the replication process but know that it takes time.

./ops upload-assets

Validate Candy Machine

You can confirm the health of your on-chain assets using metaplex verify.

./ops metaplex-verify

# output:
# Looking at key  0
# Name {redacted-name} 4 with https://arweave.net/{redacted-tx-id} checked out
# Looking at key  1
# Name {redacted-name} 1 with https://arweave.net/{redacted-tx-id} checked out

Resources

candy-machine-mint-1's People

Contributors

tylerthebuildor avatar alexander-bui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.