GithubHelp home page GithubHelp logo

ashleyngo102 / coolcatsnft-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcelc63/coolcatsnft-template

1.0 0.0 0.0 152 KB

Start off your project using the contract that @coolcatsnft used

Solidity 65.25% JavaScript 34.75%

coolcatsnft-template's Introduction

Solidity Contract Template based on CoolCatsNFT @coolcatsnft

Source: https://etherscan.io/address/0x1a92f7381b9f03921564a437210bb9396471050c#contracts

The CoolCatsNFT contract is very well written and very gas efficient. Consider using this approach if you're creating NFTs off-chain. Can cost as low as $100 at 14 October 2021 ETH Price of $3,527. CoolCatsNFT team deployed this contract for $55.59 at $1,983 ETH Price from 27 June 2021.

The trick is to just use _safeMint without using _setTokenURI at all. Hence no ERC721Metadata.sol imported. tokenURI function will just concatenate the baseURI with the token id when calling the function.

Curated by @marcelc63 - marcelchristianis.com Each functions have been annotated based on my own research and findings from https://medium.com/coinmonks/what-i-learned-from-building-cool-cats-nft-4057f279d400

Feel free to use and modify as you see appropriate

Using the Template

Please do the followings

  1. Modify any code that's labeled with TODO
  2. Change the baseURI in deploy.js, run.js, and test.js
  3. Make sure to create your own .env and modify hardhat.config.js accordingly with your deployment URL and accounts private key.
  4. Remove the comments and annotation

Included in the Template

  1. Contract that CoolCatsNFT used
  2. Complete commentary on core functions
  3. Deployment Script
  4. Testing Script

Commands to use

// To test

npx hardhat run scripts/run.js
npx hardhat test

// To deploy to Rinkeby testnet

npx hardhart run scripts/deploy.js --network rinkeby

coolcatsnft-template's People

Contributors

marcelc63 avatar

Stargazers

Ashley Ngo 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.