Complete Ethereum library and wallet implementation in JavaScript.
Go to file
2020-02-25 13:51:51 -05:00
.circleci Added libudev to CircleCI. 2020-02-10 16:13:39 -05:00
admin Added automatic createRelease to publish-all. 2020-02-12 17:18:43 -05:00
docs Updated generated documentaiton. 2020-02-17 17:56:50 -05:00
docs.wrm Updated documentation source. 2020-02-17 17:56:13 -05:00
github-cache Synced GitHub issue cache. 2020-02-04 00:54:36 -05:00
packages Fix log parsing when no matching topic is found (#733). 2020-02-25 13:51:33 -05:00
.gitignore Updated Changelog. 2019-09-06 17:58:37 -04:00
CHANGELOG.md Updated changelog. 2020-02-12 17:12:25 -05:00
karma-esm.conf.js add circleci and parity test files 2019-12-09 23:01:21 -05:00
karma-umd.conf.js Increase UMD karma test timeout (for CI). 2020-02-13 16:23:53 -05:00
lerna.json Initial v5 branch commit. 2019-05-14 18:25:46 -04:00
LICENSE.md Initial v5 branch commit. 2019-05-14 18:25:46 -04:00
package-lock.json Updates dist files (for CI). 2020-02-12 14:39:03 -05:00
package.json Added dist files for hardware-wallets. 2020-01-10 20:09:40 -05:00
README.md Updated README. 2019-12-15 02:08:02 -05:00
rollup-ancillary.config.js Browser support (with dist files) for Ledger. 2020-01-10 19:59:20 -05:00
rollup-tests.config.js Browser testcases work again. 2019-11-23 21:15:06 +09:00
rollup.config.js Updated dist files (sorted package.json to reduce package version change chatter). 2019-11-23 21:38:13 +09:00
tsconfig.package.json Major overhaul in compilation to enable ES6 module generation. 2019-08-25 02:39:20 -04:00
tsconfig.project.json Include asm in generated TypeScript dependencies. 2020-02-01 03:37:02 -05:00

The Ethers Project

EXPERIMENTAL

This branch is the next release of ethers.js, which should be promoted to the official release shortly.

I would recommend it for most new projects and personally use it for my own projects.

The new documentation is still a bit sparse, but is coming along as well and will be complete before the promotion to master.

Installing

node.js

/home/ricmoo/some_project> npm install --save ethers@next

browser (UMD)

<script src="https://cdn.ethers.io/lib/ethers-5.0.umd.min.js" type="text/javasctipt">
</script>

browser (ESM)

<script type="module">
    import { ethers } from "https://cdn.ethers.io/lib/ethers-5.0.umd.min.js";
</script>

Ancillary Packages

These are a number of packages not included in the umbrella ethers npm package, and additional packages are always being added. Often these packages are for specific use-cases, so rather than adding them to the umbrella package, they are added as ancillary packaged, which can be included by those who need them, while not bloating everyone else with packages they do not need.

We will keep a list of useful pacakges here.

  • @ethersproject/experimental
  • @ethersproject/cli
  • @ethersproject/ens
  • @ethersproject/ledger
  • @ethersproject/trezor

Hacking

This project uses a combination of Lerna and the ./admin scripts to manage itself as a package of packages.

The umbrella package can be found in packages/ethers, and all packages in general can be found in the packages/ folder.

If you add new dependencies to any package (incuding internal dependencies), you will need to re-create the internal links and re-build teh dependency graph::

/home/ethers> npm run bootstrap

To run a continuous build (with incremental TypeScript compilation):

/home/ethers> npm run auto-build

Finally, once you have made all your changes, you will need to bump the version of packages that changed their NPM tarballs, as well as update the _version.* and distribution builds (which is what we host on the CDN for browser-based apps). To do this, run:

/home/ethers> npm run update-versions

Which will also list all packages that have changed along with the specifc files.

License

MIT License (including all dependencies).