Catalog npm
Back to packageRELEASE DETAILS

3.1.9

npm

@0x/contracts-utils

Smart contract utils of 0x protocol

Published15 Jul 2019
Direct dependencies30
Transitive dependenciesNot calculated

README

Current package documentation

Contracts utils

This package contains smart contract utilities and libraries that are used throughout the entire codebase of smart contracts. These contracts are all generic and may helpful to use outside of the context of 0x protocol.

Installation

Install

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

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-utils yarn build

Or continuously rebuild on change:

PKG=@0x/contracts-utils 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
bn.js
Environment
{
  "local_name": "bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.8runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^2.4.0runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^4.4.0runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^2.1.3runtime
@0x/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^8.2.2runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^6.0.7runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^4.2.3runtime
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
}
^4.1.0development
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
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
}
^2.1.1development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
*development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
@types/bn.js
Environment
{
  "local_name": "@types/bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.0development
@0x/dev-utils
Environment
{
  "local_name": "@0x/dev-utils",
  "alias": false,
  "peer_metadata": null
}
^2.2.4development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
chai-bignumber
Environment
{
  "local_name": "chai-bignumber",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
@0x/sol-compiler
Environment
{
  "local_name": "@0x/sol-compiler",
  "alias": false,
  "peer_metadata": null
}
^3.1.9development
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
}
^1.0.10development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^3.0.1development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
@0x/contracts-test-utils
Environment
{
  "local_name": "@0x/contracts-test-utils",
  "alias": false,
  "peer_metadata": null
}
^3.1.10development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "9cef708ab92aaf0f41a44fc3c4d45f215d12fd4a",
  "tarball": "https://registry.npmjs.org/@0x/contracts-utils/-/contracts-utils-3.1.9.tgz",
  "fileCount": 130,
  "integrity": "sha512-rzu+d+WrCS8X+v1kLuexSvanaUCZUtG8ZELMTNGjFWQP5gk5HWMu6tPGf2gvLb1eBMuvQJzngb4C17JsbzqYWg==",
  "signatures": [
    {
      "sig": "MEUCIQDFUSMICLBthGRq+AFFJGk91gjVs44Hdf4bZhVtzBaPdgIgOZ1AdN0O30fkbpZ6rbv9SRuEVRQQDuNgTFruoM79o9s=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 1376981,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLHA/CRA9TVsSAnZWagAAoCwP/1NLIsFwRJHsSVzb3bB3\np/L/uzuakGZi4gkFJNva2845WRmRTbKXvfvxU72phx4nvGBj7BXNZ80kilnk\nic9HhCyRa5m4V9WoAgJlfRjkumZ3YmGbzViZC+UdppdW//6ANkEBPWE+zJk6\nCTYoovxTekRlvIff/sOUzU6WnyFRzfKBYXBwPJYiK1NejePSPUWKj3C5h9VZ\nf42dEgMBYMGwXTpNfxFaNLDj4jUplSWOjWmnyOneVYGceZwTguTEAIzslRaA\nvEdvMaMpVcdAsXpaEMH2tM6s7wqHxPPWBgklf5YC4vaEfeRK9bSBNltq2+7W\npf/3zrGYpaP1cT9Ew7bJBaCGVYFNIC3SvWVgeP1f1YfsThXMtiopOwaPWmZ0\ngN9Yvpw8HPJtRtiWULs3lwcbyiOJc5h2ZJtEVh97ywAPmGVjBsybHSsZn0Nm\nuo4G8qZLyf41rb6RKtPtNqBOvFSarLSpQ5LEsEJz38/yuRedm867Kp8XiGUB\nd6BvncZuHxClGdUqqD01GuR2tDb7cRagCZI6/Hu6iqsCaE/gqJ4AIIx+wTat\nWe/tUiFP6yG5gYcrdB3ajrKxLa/CaW1kIJ6r94ceGfmoJ1OmmtkAUIdw5t4l\nMWDpJPEqYzYNvTkLNimtEDkmMi9UrLvV083JzXvig7C4dt/EUHFA7YPJJJPr\n85T3\r\n=TXW1\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:26 UTC

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

Record identity

package_version:4fd41de58b44dab84e8bb1bb9edb63db3cce156dc6cd3fed543c99bc5e33310d

Other collected versions

4.8.5216 Nov4.8.5129 Aug4.8.5018 Aug4.8.499 Aug4.8.4821 Jul4.8.4719 JulView all collected versions →