Catalog npm
Back to packageRELEASE DETAILS

4.6.0

npm

@0x/contracts-utils

Smart contract utils of 0x protocol

Published19 Nov 2020
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.0runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.3.3runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^6.2.11runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.1.5runtime
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.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.7development
@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.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/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^10.4.7development
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.2.7development
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.2.8development
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.18development
@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.12development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "d7b1bcbf2a7ccc4514bc2fff81c3e6d2dfd8cf53",
  "tarball": "https://registry.npmjs.org/@0x/contracts-utils/-/contracts-utils-4.6.0.tgz",
  "fileCount": 158,
  "integrity": "sha512-6hVSAYpenOw8IeaLBn4a++fxxP31RURKGyug6dyv2ILclZTCLr+/vJ2tHAdi3bdhC5W6v3iLedhGefMeULUqlQ==",
  "signatures": [
    {
      "sig": "MEYCIQDLpZfihYbhR6jjKn3jgXEiqFReOq9C908MSE1HhjZ7VAIhALhmRzcH9Mb5BDYsPYv7598gr3yuxjBl4sxQdJvG9fFJ",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 962433,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftgNmCRA9TVsSAnZWagAAuJoP/i7hgZQRCP14Q7eJcakJ\ncaACOhF/VxUSE/m+oYbWHRjREhwL5gh/h0I1PMdG6A6vtVZbVxfrwevq8bIQ\nSLX9F8VsOMAxx8RdS1aIKO38rs2TE0hkp9/ACTwc7IyzNkxSre9RmJ3FrxyK\nSeGyZvntHqMcos9f6780J+EyodefYU1Pp3XwK7gjhpivZPDCld8Tb3oEXmbb\nOyF2kpNlMy6vDN4X6JZ27l5oV1kLgGgUo7ZyIcUa6MXVWXpCgPVpODpULwj7\nnwGjn3IF7m4hB43om/0bR11pxMZsVK9b+qd2aB1cNO7yPLlWlC3Mx9G7LYqT\nsORTBRSBmFUxRXszWbQbt7SF4/afb6WSu8kmwnDBqe8asId789ESea3NW1cO\nkAa0EWBPn/y/CV6NYpr8kTmtbygIP/LJlhmSupCmcIds/h6LaYA4FuaWZI8Z\ny3xBZ5MIRAIkU+K4mQDxCacNGWDV4pxXQzDRNl0Y72ezVAGU0yKZ+6++Jkg6\nsJA0Zl2EstQ67hmoTW/qj2WlWTi/oGIMpYihaephfRPOuN1bDFD3mkITnzEG\nQdTsbOE7Fm6ELEGm1RhHrd5RO8lMcJQNLim0phGVXsbsrX9gSGvHgBOI966d\ngeF1FhPn+nqqkHxhLJgrOgFxyVW/PRdTGwxa4wk+geph9pCWY8vX3d3FJk7o\n34Ll\r\n=Ybx5\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:69aef682bad9b9ebe83da06321b13b6346fec7e07701d482aff814287c63596c

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 →