Catalog npm
Back to packageRELEASE DETAILS

2.0.2

npm

@0x/contracts-utils

Smart contract utils of 0x protocol

Published7 Feb 2019
Direct dependencies29
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 29

Native requirements
29 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.5runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^2.0.1runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^4.0.2runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^2.0.0runtime
@0x/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^6.0.0runtime
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
}
^4.0.1runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^4.0.1runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^4.0.0runtime
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.0.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.0.1development
@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.0.1development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
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.0.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "e43db407e95543e39edfd1f31cd4953f6dc4422b",
  "tarball": "https://registry.npmjs.org/@0x/contracts-utils/-/contracts-utils-2.0.2.tgz",
  "fileCount": 113,
  "integrity": "sha512-6atd3AOAQjznAIi04oFNsfEIawXSnJCZCAEWZz65AHiDVUjhtsRv3l0x8f64lvUT173RuDR7CppZO7jcf+iu4g==",
  "signatures": [
    {
      "sig": "MEUCIQCLQfJRdg8y81K8UyRoFWNwWe5UUeBq+utTGgDWeDsnOgIgA7MxFljbZcttntCQomPPCCs5j8mShdTKI4VqEWjnoGk=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 805463,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcW4+dCRA9TVsSAnZWagAA9XYQAJG0Fvss8U4f0JFRSxRq\nkAqrIcZFTugWsMOactFUp2+L36KIOlD9+ZqE8NI/Ky3jXe922i2IC7RCW3Sk\nZiwcDKnKjdISKISyXiAVCL3gzAXq/NE0aaAjF8fbwHHq7whpd2EkOIJyYp44\nkK+q2MIFinjfvyYTNk1GYh8WEvL4DGUgoPvn7J+XJCtFlhq7XjfZs97aXH5V\nwStmTRZmckxDf9mZHHHoJCsJicmST51fTMhhWKwkHcoeasBJRewmdyxP6gr2\nxDdC7zDjmIFW0MV9wREpx2puAI99LHI0DtFtPBPu4tFxBI2oLe0J6I4Y85me\n3Kz4dUKRSXtD27Lu5lQfMm3is0QI1lFkf13QFvBWqs2pJIJXjm3RgRapiKAx\n6B2YE2nUdWpbLg3r0t0X29AaWyrmWVC6MxkT8iXHf9bIOqGkxgTD8uSdSwCR\nIoiH7f+J4ZlzxpTcP0nyESZjGIgPAoc/rm4KsohdcVPyG4IB+zer3d2ftkhT\nddWOB2NifdrCJe9zTEYiyxJwkF2sahV8aTdI6OSbF/Y53fzO7kvF9A9NUSZT\n8tYOhqz7vtnOhFyQEKVoczCJoMvwrsboNShoXbePkIvKpbnN8xw7H5vdkG25\nX1WmGg1kW2q8UYQ1++lus7PniICLnD5rMG3jReJ74pZ6NqpttQDKt2JxA4tp\na6U7\r\n=vKJK\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:ce75c29daadbc201b43a1dd5c9185fc4e1ddc2c2a1a8a178a8d889e3f19bdcc1

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 →