Unlock the cosmos with the Funky Planets NFT collection, a whimsical take on the 4525 registered exoplanets identified by NASA. Each planet in this collection is a unique creation, algorithmically generated with distinct traits like background, shape, rings, life, and technological advancement. Some planets even come complete with satellites, water bodies, and bustling cities.
- Dependencies
- NFT Contract (Solidity)
- NFT Contract Deployment Process
- Test Contract
- Deploy Using Truffle
- Scripts
Make sure you have the following dependencies installed:
- Node.js and npm: Download and Install Node.js and npm
- Solhint: Install Solhint globally to lint your Solidity code.
npm install -g solhint
- Ganache: Download and Install Ganache for local blockchain development.
contracts/Migrations.sol
contracts/FunkyPlanets.sol
Explore the solidity contracts that power the Funky Planets NFT collection.
Follow these migration scripts to deploy the Funky Planets NFT contract using JavaScript.
migrations/1_initial_migration.js
migrations/2_smart_contract_migration.js
Make sure your contract adheres to best practices with Solhint.
solhint contracts/FunkyPlanets.sol
Ensure the contract functionality with Truffle's testing suite.
truffle test
Initialize, compile, and migrate the contract to your desired network.
truffle init
truffle compile
truffle migrate --network <network_name>
Make your development process smoother with these npm script commands:
- Compile Contracts:
npm run compile
- Migrate Contracts::
npm run migrate
- Deploy to Specific Network:
npm run deploy --network <network_name>