riktar / contract-starter

Smart Contract Starter - A simple scaffolding for build and deploy Solidity contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contract Starter - A simple scaffolding for build and deploy Solidity contracts

This project demonstrates a basic Hardhat use case.

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

Getting Started

Clone, open in the terminal and run:

npm i
cp .env.sample .env

Run tests

npx hardhat test

Deploy contract on localhost

In a terminal, run:

npx hardhat node

In another terminal run:

npx hardhat run scripts/deploy.js --network localhost

About

Smart Contract Starter - A simple scaffolding for build and deploy Solidity contracts


Languages

Language:JavaScript 83.5%Language:Solidity 16.5%