• Stars
    star
    123
  • Rank 283,609 (Top 6 %)
  • Language
    JavaScript
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Hardhat examples

This repository contains examples showing how to do certain things in Hardhat. If you want to see something else included, feel free to open an issue.

Parallel tests

You can run your Hardhat tests in parallel. All you have to do is to install mocha and change the command you use to run them. Check the example to learn more.

Wait until the node is started

When you run hh node, a JSON-RPC server is started that you can use via http (and using --network localhost). Sometimes you want to wait until the node is ready to do something. You can accomplish this with the TASK_NODE_SERVER_READY subtask. See the example to learn more.

Customize generated artifacts

This example shows how to customize the artifacts emitted by Hardhat.

Use a custom version of solc

If you want to use a custom solc version (for example, a modified solc or a nightly version), check this example.

Reading events

This example shows how to use waffle to test the events emitted by a contract. It also includes a script for getting the emitted events from a transaction.

Tasks hooks

This example shows how to run some code before and/or after a task is executed.

Read returned value from tx

This example shows how to get the return value from a mined transaction.

Ignore solidity files during compilation

This example shows how to ignore some of your files during compilation.

Fail if there are solc warnings

This example shows how to make the compile task fail if there are solc warnings.

More Repositories

1

evm-puzzles

A collection of EVM puzzles
JavaScript
700
star
2

completely

Generate shell completion scripts from a JSON description of a command.
Shell
27
star
3

vim-yank-queue

Paste things in the same order in which you copied them
Vim Script
26
star
4

vim-extract-variable

Vim plugin to extract an expression to a variable
Vim Script
25
star
5

solhint-plugin-prettier

A Solhint plugin for checking your contracts style
JavaScript
22
star
6

zk-nft

Solidity
18
star
7

prettier-plugin-toml

JavaScript
14
star
8

berlin-gas-costs

JavaScript
8
star
9

vim-textobj-backticks

Vim text objects for regions inside backticks
Vim Script
7
star
10

mundial

See today's FIFA World Cup matches results in your terminal
JavaScript
7
star
11

repl-maker

Make a customized node REPL with ease
JavaScript
6
star
12

0x-launch-kit-wizard

TypeScript
5
star
13

can-i-use-this-address

Check if an Ethereum address is compromised
TypeScript
5
star
14

hardhat-diagrams

TypeScript
5
star
15

hardhat-ledger-tests

JavaScript
5
star
16

ganache-explorer-poc

A proof of concept of a frontend-only block explorer for ganache
TypeScript
4
star
17

spark-nnd

An efficient implementation of the NND algorithm on Spark
Scala
4
star
18

gsc

Create a docker image of a ganache instance with all your required projects already deployed
JavaScript
2
star
19

hardhat-compile-single-file-script

JavaScript
1
star
20

solidity-comments-extractor-ts

TypeScript
1
star
21

vim-eval-expression

Evaluate a selection or text object and replace it with its result.
Vim Script
1
star
22

fuzzy

MATLAB
1
star
23

ruth

Rust
1
star
24

docker-geth-hardhat-account

Dockerfile
1
star
25

hardhat-3476

JavaScript
1
star
26

go-ethereum

Official Go implementation of the Ethereum protocol
Go
1
star
27

fvictorio.github.io

1
star
28

hardhat-prettier

TypeScript
1
star
29

github-repo-age

Command line tool to get the age of a GitHub repository
JavaScript
1
star
30

vim-smartfold

Vim Script
1
star
31

uva_online_judge

Some solved problems from uva.onlinejudge.org
C++
1
star
32

julia-subreddits-data

Julia
1
star
33

fzf-git

Shell
1
star
34

ic_som

Inteligencia computacional - Mapas auto-organizativos
C++
1
star
35

zsh-nvm

Shell
1
star
36

hardhat-parallel-compilations-bug

Solidity
1
star
37

abed

Statistical classification library
C++
1
star
38

ic_rbf

Inteligencia computacional - Red neuronal con funciones de base radial
C++
1
star