Catalog npm
Back to packageRELEASE DETAILS

3.3.4

npm

@0x/contracts-erc20

Token contracts used by 0x protocol

Published24 Feb 2021
Direct dependencies30
Transitive dependenciesNot calculated

README

Current package documentation

ERC20 Tokens

This package contains implementations of various ERC20 tokens, including WETH (Wrapped Ether) and ZRX. Addresses of the deployed contracts can be found in this 0x guide or the DEPLOYS file within this package.

Installation

Install

npm install @0x/contracts-erc20 --save

Bug bounty

A bug bounty for the 2.0.0 contracts is ongoing! Instructions can be found here.

Contributing

We strongly recommend that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.

For proposals regarding the 0x protocol's smart contract architecture, message format, or additional functionality, go to the 0x Improvement Proposals (ZEIPs) repository and follow the contribution guidelines provided therein.

Please read our contribution guidelines before getting started.

Install Dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x/contracts-erc20 yarn build

Or continuously rebuild on change:

PKG=@0x/contracts-erc20 yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 30

Native requirements
30 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^6.2.18runtime
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
solhint
Environment
{
  "local_name": "solhint",
  "alias": false,
  "peer_metadata": null
}
^1.4.1development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
~0.16.11development
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^3.3.1development
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
@0x/abi-gen
Environment
{
  "local_name": "@0x/abi-gen",
  "alias": false,
  "peer_metadata": null
}
^5.4.19development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
12.12.54development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^5.2.7development
@0x/dev-utils
Environment
{
  "local_name": "@0x/dev-utils",
  "alias": false,
  "peer_metadata": null
}
^4.2.1development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
@0x/ts-doc-gen
Environment
{
  "local_name": "@0x/ts-doc-gen",
  "alias": false,
  "peer_metadata": null
}
^0.0.28development
chai-bignumber
Environment
{
  "local_name": "chai-bignumber",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.4.0development
@0x/sol-compiler
Environment
{
  "local_name": "@0x/sol-compiler",
  "alias": false,
  "peer_metadata": null
}
^4.5.2development
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.4.1development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
@0x/contracts-gen
Environment
{
  "local_name": "@0x/contracts-gen",
  "alias": false,
  "peer_metadata": null
}
^2.0.30development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.1.3development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
@0x/contracts-utils
Environment
{
  "local_name": "@0x/contracts-utils",
  "alias": false,
  "peer_metadata": null
}
^4.7.4development
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.1.6development
@0x/contracts-test-utils
Environment
{
  "local_name": "@0x/contracts-test-utils",
  "alias": false,
  "peer_metadata": null
}
^5.3.22development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "b2faff0b271791576355c1d38e55aa6dee647772",
  "tarball": "https://registry.npmjs.org/@0x/contracts-erc20/-/contracts-erc20-3.3.4.tgz",
  "fileCount": 58,
  "integrity": "sha512-5rL3Kf+mLXuxwMdqeb7IWupJcZfK3AgF1VPnG/LWzQJvg5XoesNIkMXzar1NmIjuqNMtIuZsA+g7chai6Acu2Q==",
  "signatures": [
    {
      "sig": "MEYCIQCAGUfFfktp+48JLQPJy6oDy3z2RiGVwxRuSa1Ice/TYAIhAOQXykqW415IERmoYGGuiNy0AY2RanJHZaaixui9Z15j",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 1407448,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNdlKCRA9TVsSAnZWagAAtfcQAIDgtA9854PbjUdCn70f\nefe4WXFRIE5UHj2ZRUWB3ccqtR5mJqO9DUr3XZhQIzahH3IPEjqVSnrW2oPp\nQCT/kd4QwrwxEn5p3NA1nvLF7beenGB3J/IO65M10xuqTGIX7Ma8Uol+VKvP\n3plZTAKQy7vSu9DPtMl+A+e1EJ3f2s1vc+WT7rRT/C/2r9oGyLPqqms8QSAr\nMUn9BYxwdjkQpkW2aCGWonRlLRPPfXQ/jkyReGQWz6BmpMWlL1J/NhaalNg+\nTyaUjhsLz20oLlMPfoFk9MF95sNnNSuCnmvn5shqgQ75Ge3FHjoyaCvluENx\nANb+92beN6E9Vzuvr2KujPcjGAwAZU8f0tMMHfSLuFVa7jsjY8kDflfgIYCu\nL5Iqw+3GUNjVL1/w+/J5ztV53Tiek2TMs68Qu2Q8i+RXH46Bv8Qv3tuERQqC\nkeVWM4G9XBvhCd1JjCJ3bUkV5/upDybGE/yPVl+veGG3rvb1Flvl12ImJ9pY\npHH2jLPu6x8FIPKOaTtxyIfCPtcLvA3LoMUmUnc9ip5l4xxPB8kFW17sT6gi\n81XKC3GPrLZGRyq7L+IPlp6I2s8IPBqkYly4A5AcQfNwZxJZG0Cwt9jBUZpB\nHjMdVU+SBFKF0Nc86vv/4CgHATzyJ1JI9A4iQOvC/O4Vm/w2y3b+7Pk+ss/i\n+Vhy\r\n=MB3T\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xproject/protocol

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:23 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:0aba7465fd47d67a05e867b625afc60c2ffc9fe04e6e2f6e4518d17bbf23ba3b

Other collected versions

4.0.1416 Nov4.0.1329 Aug4.0.1218 Aug4.0.119 Aug4.0.1021 Jul4.0.919 JulView all collected versions →