Code Monkey home page Code Monkey logo

robopunksnft's Introduction

Basic Sample Hardhat Project

Project initialisation steps.

1. Build the basic project structure with npx create-react-app full-mint-website

2. npm i -D hardhat

3. npx hardhat to build the default hardhat project.

4. npm i -D @openzeppelin/contracts for using openzeppelin wrapped contracts when writing solidity

Pick up the rinkeby test network ETH tap address:

https://faucets.chain.link/rinkeby [Available and recommended] https://fauceth.komputing.org/ https://faucet.rinkeby.io/

Create the application on infura and set the Endpoints type to rinkeby

https://infura.io/dashboard

Commands related to hardhat deployment.

1. npx hardhat clean --clean

2. npx hardhat compile --compile

The compiled contract is stored in: artifacts/contracts/RoboPunksNFT.sol/RoboPunksNFT.json

3. npx hardhat run scripts/deploy_RoboPunksNFT.js --network rinkeby
You need to have ETH in your account at the time of deployment
The basic idea of deploying and running.
scripts/deploy_RoboPunksNFT.js will call the local configuration in hardhat.config.js to deploy

The network parameter is specified in hardhat.config.js, and multiple networks can be configured in hardhat.config.js, specified by the --network parameter

4. npx hardhat verify --network rinkeby contract address
The purpose of the above command is to verify our contract again and then see the code in the contract and the corresponding methods when the contract is found on etherscan.io.
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help

robopunksnft's People

Contributors

trifida 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.