All Projects → jellydn → dapp-starter

jellydn / dapp-starter

Licence: MIT license
Opinionated Dapp Starter Template

Programming Languages

typescript
32286 projects
solidity
1140 projects

Projects that are alternatives of or similar to dapp-starter

nft-app
How to create your own NFT and mint NFT token
Stars: ✭ 145 (-29.95%)
Mutual labels:  web3, openzeppelin, hardhat, etherjs, dapp-starter
Skill-Tree
Skill tree for the Freshman Track at LearnWeb3DAO
Stars: ✭ 57 (-72.46%)
Mutual labels:  web3, hardhat
typescript-eth-starter
🔌 Ethereum Dapp Basic Typescript Starter
Stars: ✭ 125 (-39.61%)
Mutual labels:  web3, hardhat
nextjs-dapp-starter-ts
A fullstack monorepo template to develop ethereum dapps
Stars: ✭ 228 (+10.14%)
Mutual labels:  web3, hardhat
simple-nft-marketplace
This project provides sample codes to build a simple NFT marketplace with Amazon Managed Blockchain.
Stars: ✭ 59 (-71.5%)
Mutual labels:  openzeppelin, hardhat
Artion-Server
Artion API Server
Stars: ✭ 26 (-87.44%)
Mutual labels:  web3, etherjs
ESSE
Encrypted peer-to-peer system for data security. Own data, own privacy. (Rust+Flutter)
Stars: ✭ 440 (+112.56%)
Mutual labels:  web3
vortex-components
⚛️Vortex Components is a collection of React Components that helps developers build Ethereum Dapps powered by the Vortex Redux Store.
Stars: ✭ 14 (-93.24%)
Mutual labels:  web3
ether-swr
Ether-SWR is a React hook that fetches Ethereum data. It streamlines the chores to keep the internal state of the Decentralized App (DApp), batches the RPC calls to an Ethereum node and cache the responses
Stars: ✭ 125 (-39.61%)
Mutual labels:  web3
eth-self-token-example
在本地网络发布一个名叫 YuTou 的 token
Stars: ✭ 8 (-96.14%)
Mutual labels:  web3
hardhat-contract-sizer
Output Ethereum contract sizes with Hardhat 📐
Stars: ✭ 55 (-73.43%)
Mutual labels:  hardhat
ipfs-blog
IPFS Blog & News
Stars: ✭ 31 (-85.02%)
Mutual labels:  web3
OpenLoginSdk
Pluggable auth infrastructure for Web3 wallets and dapps
Stars: ✭ 108 (-47.83%)
Mutual labels:  web3
launch
Matic network mainnet v1 launch
Stars: ✭ 56 (-72.95%)
Mutual labels:  web3
superhighway84
USENET-inspired, uncensorable, decentralized internet discussion system running on IPFS & OrbitDB
Stars: ✭ 437 (+111.11%)
Mutual labels:  web3
eth-provider
A Universal Ethereum Provider Client
Stars: ✭ 139 (-32.85%)
Mutual labels:  web3
lemverse
The first-ever coworking metaverse
Stars: ✭ 91 (-56.04%)
Mutual labels:  web3
hardhat-starter-kit
A repo for boilerplate code for testing, deploying, and shipping chainlink solidity code.
Stars: ✭ 730 (+252.66%)
Mutual labels:  hardhat
alice-NFT
Ethereum for Javascript devs
Stars: ✭ 38 (-81.64%)
Mutual labels:  hardhat
cyberevents
The protocol for EVENTs and TICKETs
Stars: ✭ 16 (-92.27%)
Mutual labels:  web3

Welcome to dapp-starter 👋

All Contributors

Version License: MIT Twitter: jellydn

Opinionated Dapp Starter Template

🏠 Homepage

Demo

Screenshot

./screenshot.png

Connect to MetaMask

https://gyazo.com/6b8f75171de1fab24de552ff7930f4b8.gif

Wallet Connect

https://gyazo.com/2995c3a2c4bdbda806821839826449dc.gif

Show balance and sign message

https://gyazo.com/8e8ca7c89193d6f1463081bcd41c587e.gif

Features

  • ⚡️ The React Framework for Production NextJs
  • 📦 Hardhat - Ethereum development environment for professionals
  • 🦾 TypeChain Hardhat plugin - Automatically generate TypeScript bindings for smartcontracts while using Hardhat.
  • 🔥 web3-react - A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps
  • 🎨 daisyUI Tailwind CSS Components - clean HTML with component classes
  • 🎨 OpenZeppelin - standard for secure blockchain applications

Install

yarn install

Usage

yarn dev

Run tests

yarn test

Hardhat guideline

This project demonstrates an advanced Hardhat use case, integrating other tools commonly used alongside Hardhat in the ecosystem.

The project comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts. It also comes with a variety of other tools, preconfigured to work with the project code.

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile --network localhost
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy_greeter.ts --network localhost
node scripts/deploy.ts
npx eslint '**/*.ts'
npx eslint '**/*.ts' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix

Deploy to Ropsten Testnet

Etherscan verification

To try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Ropsten.

In this project, copy the .env.example file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your Ropsten node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env file in place, first deploy your contract:

npx hardhat run --network ropsten scripts/deploy_greeter.ts

Then, copy the deployment address and paste it in to replace DEPLOYED_CONTRACT_ADDRESS in this command:

npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "Hello, Hardhat!"

Contract upgrade

OpenZeppelin provides tooling for deploying and securing upgradeable smart contracts.

Smart contracts deployed using OpenZeppelin Upgrades Plugins can be upgraded to modify their code, while preserving their address, state, and balance. This allows you to iteratively add new features to your project, or fix any bugs you may find in production.

In this project, there are a 2 versions of contract: Box and BoxV2 which is improvement of Box. First deploy your contract:

npx hardhat run --network localhost scripts/deploy_upgradeable_box.ts

Then, deploy the upgrade smart contract

npx hardhat run --network localhost scripts/upgrade_box.ts

Examples

  • Simple Store App: counter-like smart contract, read/write value and listen to event from smart contract.
  • ICO Token App: How to create An ERC20 token and implement ICO smart contract (CrowdSale).
  • NFT App: How to create An ERC721 token.

Author

👤 Dung Huynh

Stargazers 🌟

Stargazers repo roster for jellydn/dapp-starter

Show your support

Give a ⭐️ if this project helped you!

ko-fi

Contributors

Thanks goes to these wonderful people (emoji key):


Dung Duc Huynh (Kaka)

📖 💻

This project follows the all-contributors specification. Contributions of any kind welcome!


This README was generated with ❤️ by readme-md-generator

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].