maxcoto / ethpool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ETHPool

Hardhat task to query the total amount of ETH held in the contract:

npx hardhat --network rinkeby balance --account 0x9598775d63fE58E210Fb3c25c2d8d73d494559e8

Quickstart

  1. Clone the repo
  2. Run yarn install

What’s Included?

  • Hardhat: Ethereum development environment for professionals.
  • Waffle: The most advanced framework for testing smart contracts
  • Typechain: TypeScript bindings for Ethereum smart contracts
  • Tenderly: Real-time monitoring, alerting, and troubleshooting for Smart Contracts.
  • Ethers: A complete Ethereum wallet implementation and utilities in JavaScript (and TypeScript).
  • Etherscan: Verify contracts in The Ethereum Blockchain Explorer

Hardhat Plugins

  • ABI Exporter
  • Gas Reporter
  • Contract Sizer
  • OpenZeppelin Upgrades

Usage

Look at the package.json inside scripts section to see available commands. A number of helper build scripts are located in /scripts.

Build contracts

Compiles contracts and creates Typechain bindings.

yarn build

Run tests

Runs all tests in the /test folder.

yarn test

Run tests with gas report

Run all tests calculating gas estimations.

yarn test:gas

The gas report will be saved on the /reports folder.

Deploy to Ethereum

Create/modify network config in hardhat.config.ts and add API key and private key, then run:

npx hardhat run --network rinkeby scripts/deploy.ts

Verify on Etherscan

Using the hardhat-etherscan plugin, add Etherscan API key to hardhat.config.ts, then run:

npx hardhat verify --network rinkeby <DEPLOYED ADDRESS>

About

License:MIT License


Languages

Language:TypeScript 68.3%Language:Shell 17.2%Language:Solidity 12.7%Language:JavaScript 1.8%