Skip to content
Branch: master
Find file History
alcuadrado Beta 7 release (#267)
* Bump core version

* Fix outdated tests

* Bump buidler-ethers version

* Bump buidler-solhint version

* Bump buidler-solpp version

* Bump buidler-web3 version

* Bump buidler-web3-legacy version

* Bump buidler-truffle4 version

* Bump buidler-truffle5 version

* Change lerna.json version to 0.0.0, we don't use that
Latest commit 288d7e8 May 13, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
scripts Import buidler-ethers Mar 31, 2019
src Plugin system refactor (#264) May 13, 2019
test Beta 7 release (#267) May 13, 2019
.env Update TypeScript setup Apr 5, 2019
.gitignore Fix all .gitignores Apr 5, 2019
LICENSE [buidler-ethers] Initial commit. Mar 31, 2019
README.md Plugin system refactor (#264) May 13, 2019
package-lock.json Beta 7 release (#267) May 13, 2019
package.json Beta 7 release (#267) May 13, 2019
tsconfig.json Update TypeScript setup Apr 5, 2019
tslint.json Import buidler-ethers Mar 31, 2019

README.md

npm

buidler-ethers

Buidler plugin for integration with ethers.js.

What

This plugin brings to Buidler the Ethereum library ethers.js, which allows you to interact with the Ethereum blockchain in a simple way.

Installation

npm install @nomiclabs/buidler-ethers ethers@^4.0.23

And add the following statement to your buidler.config.js:

usePlugin("@nomiclabs/buidler-ethers");

Tasks

This plugin creates no additional tasks.

Environment extensions

An initialized ethers object is injected into the environment:

ethers: {
  provider: JsonRpcProvider;
  getContract: (name: string) => Promise<ContractFactory>;
  signers: () => Promise<Signer[]>;
}

The ContractFactorys returned by getContract are connected by to the first signer returned by env.ethers.signers.

Usage

There are no additional steps you need to take for this plugin to work.

Install it and access ethers through the Buidler Runtime Environment anywhere you need it (tasks, scripts, tests, etc).

You can’t perform that action at this time.