hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.

OTHER License

Downloads
1.5M
Stars
7.2K
Committers
373

Bot releases are hidden (Show)

hardhat - @nomiclabs/hardhat-truffle4 v2.0.4

Published by alcuadrado over 2 years ago

This release improves the plugin's type definitions so that other plugins can extend them.

Changelog

  • Add support for artifacts type extensibility (#2318)
hardhat - @nomiclabs/hardhat-truffle5 v2.0.5

Published by alcuadrado over 2 years ago

This release improves the plugin's type definitions so that other plugins can extend them.

Changelog

  • Add support for artifacts type extensibility (#2318)
hardhat - @nomiclabs/hardhat-waffle v2.0.3

Published by alcuadrado over 2 years ago

This is a small patch release that improves how some errors are created.

Changelog

  • Improve how errors are created in the hardhat-waffle plugin (#2307)
hardhat - @nomiclabs/hardhat-etherscan v3.0.1

Published by alcuadrado over 2 years ago

This release adds support for the Moonbeam network.

hardhat - Hardhat v2.8.4

Published by alcuadrado over 2 years ago

This is a small patch version that improves the sample project and replaces a deprecated dependency.

Changelog

  • The sample projects now include an empty .prettierc to make IDEs auto-formatting work properly in some scenarios.
  • Replace deprecated eth-sig-util with @metamask/eth-sig-util (Thanks @frangio!)
  • Upgraded the version of @nomiclabs/hardhat-etherscan used by the sample projects (#2217)
hardhat - @nomiclabs/hardhat-ethers v2.0.5

Published by alcuadrado over 2 years ago

This is a small patch release that fixes an issue when using this plugin with TypeScript.

Changelog

Fix an issue that was causing typescript projects to also compile Hardhat's source (#2260).

hardhat - @nomiclabs/hardhat-truffle5 v2.0.4

Published by alcuadrado over 2 years ago

This is a small patch release that fixes an issue when using this plugin with TypeScript.

Changelog

Fix an issue that was causing typescript projects to also compile Hardhat's source (#2260).

hardhat - hardhat-waffle v2.0.2

Published by feuGeneA over 2 years ago

Add support for the hexEqual matcher (#2200)

hardhat - Hardhat v2.8.3

Published by feuGeneA over 2 years ago

  • Changes to support latest version of vyper plugin
  • Use 40s as the default value for mocha's timeout and for the localhost network's timeout (#1549)
hardhat - hardhat-vyper v3.0.0

Published by feuGeneA over 2 years ago

This release is a full revamp of our hardhat vyper plugin that fixes many issues (#2082, #1364, #1338, #1335, #1258). The most important changes are:

  • Compilation cache now works properly. This means that your vyper files won't be recompiled each time.
  • Docker is no longer a dependency. Vyper official binaries are used instead.
  • Compiling with multiple versions of vyper are now supported.

Check the README to learn more.

hardhat - Hardhat v2.8.2

Published by fvictorio almost 3 years ago

This release adds a better error message when Hardhat's project initialization fails in Git Bash.

For technical reasons (see this comment if you want to know more), project initialization doesn't work in Git Bash. Everything else should work, but you have to use PowerShell or cmd to create a project with npx hardhat.

hardhat - hardhat-etherscan v3.0.0

Published by fvictorio almost 3 years ago

This new major version includes one of our most requested features: the possibility to specify multiple API keys for the hardhat-etherscan plugin (#1448).

You can learn more here, but the bottom line is that you can now do this in your config:

etherscan: {
  apiKey: {
      mainnet: etherscanApiKey,
      rinkeby: etherscanApiKey,
      optimisticKovan: optimismEtherscanApiKey,
      polygonMumbai: polygonscanApiKey,
      arbitrumTestnet: arbiscanApiKey,
  }
}

Importantly, the name of these keys don't necessarily match the name of the network in your config. See the docs to learn which names need to be used for each chain.

hardhat - hardhat-ethers v2.0.4

Published by fvictorio almost 3 years ago

This version adds two methods to the ethers object included in the Hardhat Runtime Environment: getContractFactoryFromArtifact and getContractAt (#1716). These are low-level methods that are useful when you have your own artifact-loading logic, but that won't be necessary for most users.

hardhat - Hardhat v2.8.1

Published by fvictorio almost 3 years ago

This version fixes an issue that prevented the test task from being run programmatically twice in the same script (#1720).

Besides that, now a warning is shown if the exported configuration is an empty object. This helps in cases where a config object is created but the user forgets to export it (#1490).

hardhat - Hardhat v2.8.0

Published by fvictorio almost 3 years ago

This release adds support for using a custom hardfork history when forking networks that aren't officially supported by Hardhat (networks like xDai, Polygon, Avalanche, etc.) This is only relevant if you are forking one of those networks and making calls in the context of historical blocks. You can read more about this here.

This version also fixes a small problem with the output of the node task when it was redirected to a file (#467).

hardhat - Hardhat v2.7.1

Published by fvictorio almost 3 years ago

This release adds support for the Arrow Glacier hardfork.

Besides, it fixes an issue (#1466) that prevented Hardhat from working when the compilers list was partially downloaded.

hardhat - hardhat-truffle5 v2.0.3

Published by fvictorio almost 3 years ago

This release adds support for the Arrow Glacier hardfork.

hardhat - hardhat-truffle4 v2.0.3

Published by fvictorio almost 3 years ago

This release adds support for the Arrow Glacier hardfork.

hardhat - hardhat-ethers v2.0.3

Published by fvictorio almost 3 years ago

This release fixes an issue (#1247) with hardhat-ethers, where the provider wasn't correctly reset after hardhat_reset was called.

It also adds a better inspection result for ethers's BigNumber instances (issue #2109). So now if you evaluate a BigNumber in the console, the result will look like this:

> ethers.BigNumber.from(1000)
BigNumber { value: "1000" }
hardhat - Hardhat v2.7.0

Published by fvictorio almost 3 years ago

This release adds a FIFO mode to Hardhat Network's mempool and makes the coinbase address customizable. It also includes some minor bug fixes and improvements.

Mempool modes

The way Hardhat Network's mempool orders transactions is now customizable. By default, they are prioritized following Geth's rules, but you can enable a FIFO (first in, first out) mode instead. This mode ensures that transactions are added to blocks in the same order they are sent, and it's useful to recreate blocks from other networks.

You can enable the FIFO mode in your config with:

networks: {
  hardhat: {
    mining: {
      auto: false,
      mempool: {
        order: "fifo",
      },
    },
  },
}

Huge thanks to @ngotchac for this contribution!

Customizable coinbase address

You can configure the coinbase address via a config field and a new RPC method. This is the address that will receive the block reward when a new block is mined.

The config field is part of the Hardhat Network configuration:

networks: {
  hardhat: {
    coinbase: "0x590c193534A11590b1BcE02896d2805bAC54Da2C"
  },
},

You can also use the new hardhat_setCoinbase RPC method to change the coinbase address in runtime:

await network.provider.send("hardhat_setCoinbase", [
  "0x590c193534A11590b1BcE02896d2805bAC54Da2C",
]);

Other changes

  • Suggest similar artifact names when a given name is not found
  • Fixed how the cumulative gas is computed for receipts and added a missing field (Thanks @ngotchac!)
  • Improve validation of private keys in the Hardhat config
  • Fix an issue with new versions of Node.js that prevented clients from connecting to Hardhat's node using 127.0.0.1
  • Enable user configurable tsconfig path
  • Print warning when user tries to use solc remapping (#1877)
  • Bump uuid package to remove a deprecation warning (thanks @yhuard!)