Catalog npm
Back to packageRELEASE DETAILS

4.7.1

npm

@0x/contracts-utils

Smart contract utils of 0x protocol

Published13 Jan 2021
Direct dependencies32
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 32

Native requirements
32 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
bn.js
Environment
{
  "local_name": "bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.8runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^6.1.1runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.4.0runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^6.2.14runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.1.6runtime
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
truffle
Environment
{
  "local_name": "truffle",
  "alias": false,
  "peer_metadata": null
}
^5.0.32development
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^3.3.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
}
^5.4.13development
@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/bn.js
Environment
{
  "local_name": "@types/bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.0development
@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.1.3development
@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/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^10.4.14development
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^5.1.1development
@0x/sol-compiler
Environment
{
  "local_name": "@0x/sol-compiler",
  "alias": false,
  "peer_metadata": null
}
^4.4.1development
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.3.0development
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.24development
@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-test-utils
Environment
{
  "local_name": "@0x/contracts-test-utils",
  "alias": false,
  "peer_metadata": null
}
^5.3.19development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "32cf6808a3d4dc651cb2ff9ebf7141ce9d62bec0",
  "tarball": "https://registry.npmjs.org/@0x/contracts-utils/-/contracts-utils-4.7.1.tgz",
  "fileCount": 158,
  "integrity": "sha512-FsGY22sTz5taDWiidJCCv+74UaYxIrmC6onl10P9eUdpWJfEBnFhmmetk0Dech+86HkrXEzdBwp3Djoq+9Q8nQ==",
  "signatures": [
    {
      "sig": "MEUCIQDFogDdbtXGLaH4Vf555CIM1FckArERtANoKpSK9beDLgIgSEg2c7NNVPCe9t5K5WpEYofvE/8ptqXs9MiB20Hqy6g=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 965426,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/nJdCRA9TVsSAnZWagAAP1cP/AkDhdBnYyiqCvVerV5H\nOgo2twQJdLOHsEU389DtBIWtmpCn9THb6MWn5d4REFC4mt/EVvUKfeFrn3j3\nedByZgMNU39BEuILu4MvI4EHaR5EqXHRJnOjmI9ZZtffyWCX+VEDa1rwokDp\nIgWW3G2dmd+tIINt1LNW1ML7mknHMEVKfBqg10ATJPS2GjoWpJF+OL9qdHbz\nTf+mMRBBzPSECBkPnJHkyF+Lv+cZe4rR5zx/tKS4lF3zEOuu61isIgdR/1wn\nn2tGUUr3LNDeQRQQeEs37fFdq8wR/88XbQa/5xvQqQ4YtzajJRnfUVGKcSOk\n/HGhkrFrFUJPSXYxlYX00BNQX97Yt6/ey2uU+s1p3d4ui3DLR2+Ly6XJzhHb\nV+0p6VcCCEnEAoiBozRw70cATFPxpg4bX+G7HaXCqIrMfWc7QnGbCy4tiMa3\nqEZfFm2Z4hDhk4lhupv85k8py7TZwt7L7OQNDoCZummfFuY9OtWlzrgdHQhd\nAUjkk5ZMp/prNHyUW1yi+8fM2us/mJfiMs+KU6SonreYLjHuQWIqWmLakkDd\nK4Bos2KvDKNH+jBdZcQE3C+UEhGb+RB8+63L+nryVwl7ktSZIdpVrwEb+pIo\ngK2i37EZSRIzb4xd1WzDfjszjqwTBsUcgDtaqFQOscaQnTOX21ERDmUbsjXq\nm3av\r\n=rx90\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:76a7b09c5a6325845189ea9f418ff2f16c1abc34ab3fa6128da70c4e513ea3f6

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 →