Giter Club home page Giter Club logo

web3-quick-starter's Introduction

Web3 Quick-starter

Tech Stack

  1. HEWT stack
    • Hardhat (Solidity Framework)
    • Ethers.js (Ethereum Wallet Library)
    • Waffle (Test Framework)
    • Typechain (Typescript for Web3)
  2. Hardhat plugins
    • hardhat-ethers
    • hardhat-waffle
    • hardhat-deploy
  3. Additional dependencies
    • mocha
    • chai
    • dotenv
    • nft.storage
    • prettier

Installation

  1. Clone the repo

  2. Create a file named .env in the root directory

  3. Add keys and values

    1. MASTER_ADDR=xxx
    2. ALCHEMY_API_KEY=xxx
    3. ALCHEMY_PRV_KEY=xxx
    4. ETHERSCAN_API_KEY=xxx
    5. NFT_STORAGE_API_KEY=xxx

Smart Contract Deployment

  1. Write deploy script in /deploy folder to use hardhat-deploy

  2. Compile the contract

    yarn compile
    • typechain will generate type files in /typechain-types folder
  3. Test the contract

    yarn test
  4. Deploy to local chain

    yarn deploy-local
  5. Deploy to Rinkeby Ethereum testnet

    yarn deploy-remote
    yarn verify
  6. hardhat-deploy will output ABIs under /deployment folder

web3-quick-starter's People

Contributors

dependabot[bot] avatar junekimdev avatar

Stargazers

 avatar

Watchers

 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.