GithubHelp home page GithubHelp logo

studentofcoding / falleneclipse Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.66 MB

Fallen Eclipse NFT

Home Page: falleneclipse.vercel.app

License: MIT License

Shell 1.39% JavaScript 80.98% HTML 8.94% CSS 8.69%

falleneclipse's Introduction

FRONTEND : Setting up Candy machine mint page

This Candy-Machine-Mint project is designed to be customable with React compoment, please read the documentation listed below to get the basic :

The project itself are consist of several js component that can be customized based on your needs

  • Components folder that include Footer and Header
  • Pages folder that inlcude faq, home, and roadmap.js
  • Wallet.js to control the wallet details
  • and others (candy-machine.js, and index.js in which we will keep it default)

Prerequisites

  • Ensure you have recent versions of both node and yarn installed.

  • Follow the instructions here to install the Solana Command Line Toolkit.

  • Follow the instructions here to install the Metaplex Command Line Utility.

    • Installing the Command Line Package is currently an advanced task that will be simplified eventually.

Installation

  1. Fork the project, then clone down. Example:
git clone [email protected]:exiled-apes/name_of_project.git
  1. Build the project. Example:
cd name_of_project && yarn install && yarn build
  1. Define your environment variables using the instructions below, and start up the server with npm start.

Environment Variables

To run the project, first create a .env file at the root directory and define the following variables:

REACT_APP_CANDY_MACHINE_CONFIG="redacted"

This is a Solana account address. You can get the value for this from the .cache/temp file. This file is created when you run the metaplex upload command in terminal.

REACT_APP_CANDY_MACHINE_ID="redacted"

Same as above; this is a Solana account address. You can get the value for this from the ./cache/temp file. This file is created when you run the metaplex upload command in terminal.

REACT_APP_CANDY_START_DATE=1630422000000

This is a unix time stamp that configures when your mint will be open.

REACT_APP_SOLANA_NETWORK=devnet

This identifies the Solana network you want to connect to. Options are devnet, testnet, and mainnet.

REACT_APP_SOLANA_RPC_HOST=https://explorer-api.devnet.solana.com

This identifies the RPC server your web app will access the Solana network through.

REACT_APP_TREASURY_ADDRESS="redacted"

This the Solana address that receives the funds gathered during the minting process. More docs coming as we can test this.

BACKEND : Integrate with candy machine mint

  • Pull and Install the repository from this
  • Follow the guide and reference below

CANDY MACHINE TUTORIAL REFERENCE


Install and build

yarn install yarn build yarn run package:linuxb OR yarn run package:linux OR yarn run package:macos


You can now either use `metaplex` OR the `ts-node cli` to execute the following commands.

1. Upload your images and metadata. Refer to the NFT [standard](https://docs.metaplex.com/nft-standard) for the correct format.

metaplex upload ~/nft-test/mini_drop --keypair ~/.config/solana/id.json ts-node cli upload ~/nft-test/mini_drop --keypair ~/.config/solana/id.json


2. Verify everything is uploaded. Rerun the first command until it is.

metaplex verify --keypair ~/.config/solana/id.json ts-node cli verify --keypair ~/.config/solana/id.json


3. Create your candy machine. It can cost up to ~15 solana per 10,000 images.

metaplex create_candy_machine -k ~/.config/solana/id.json -p 1 ts-node cli create_candy_machine -k ~/.config/solana/id.json -p 3


4. Set the start date and update the price of your candy machine.

metaplex update_candy_machine -k ~/.config/solana/id.json -d "20 Apr 2021 04:20:00 GMT" -p 0.1 ts-node cli update_candy_machine -k ~/.config/solana/id.json -d "20 Apr 2021 04:20:00 GMT" -p 0.1


5. Test mint a token (provided it's after the start date)

metaplex mint_one_token -k ~/.config/solana/id.json ts-node cli mint_one_token -k ~/.config/solana/id.json


6. Check if you received any tokens.

spl-token accounts


7. If you are listed as a creator, run this command to sign your NFTs post sale. This will sign only the latest candy machine that you've created (stored in .cache/candyMachineList.json).

metaplex sign_candy_machine_metadata -k ~/.config/solana/id.json ts-node cli sign_candy_machine_metadata -k ~/.config/solana/id.json


8. If you wish to sign metadata from another candy machine run with the --cndy flag.

metaplex sign_candy_machine_metadata -k ~/.config/solana/id.json --cndy CANDY_MACHINE_ADDRESS_HERE ts-node cli sign_candy_machine_metadata -k ~/.config/solana/id.json --cndy CANDY_MACHINE_ADDRESS_HERE


falleneclipse's People

Contributors

studentofcoding avatar

Watchers

James Cloos avatar  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.