Catalog npm
Back to packageRELEASE DETAILS

6.2.6

npm

@0x/contracts-extensions

Smart contract extensions of 0x protocol

Published3 Nov 2020
Direct dependencies40
Transitive dependenciesNot calculated

README

Current package documentation

Extensions

This package includes utility smart contracts that may be useful for developing on top of the core 0x Exchange. For example, MixinWethUtils includes functions to pay affiliate fees in ETH, wrap ETH to be used for 0x trades and protocol fees, and unwrap WETH to refund the sender.

Installation

Install

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

Bug bounty

A bug bounty for the 3.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-extensions yarn build

Or continuously rebuild on change:

PKG=@0x/contracts-extensions yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Testing options

Contracts testing options like coverage, profiling, revert traces or backing node choosing - are described here.

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 40

Native requirements
40 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
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
@0x/contracts-test-utils
Environment
{
  "local_name": "@0x/contracts-test-utils",
  "alias": false,
  "peer_metadata": null
}
^5.3.9runtime
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
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.0development
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^6.1.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/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
@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
ethereumjs-abi
Environment
{
  "local_name": "ethereumjs-abi",
  "alias": false,
  "peer_metadata": null
}
0.6.5development
@0x/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^10.4.4development
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-erc20
Environment
{
  "local_name": "@0x/contracts-erc20",
  "alias": false,
  "peer_metadata": null
}
^3.2.6development
@0x/contracts-utils
Environment
{
  "local_name": "@0x/contracts-utils",
  "alias": false,
  "peer_metadata": null
}
^4.5.6development
@0x/contracts-erc721
Environment
{
  "local_name": "@0x/contracts-erc721",
  "alias": false,
  "peer_metadata": null
}
^3.1.12development
@0x/contracts-exchange
Environment
{
  "local_name": "@0x/contracts-exchange",
  "alias": false,
  "peer_metadata": null
}
^3.2.12development
@0x/contracts-dev-utils
Environment
{
  "local_name": "@0x/contracts-dev-utils",
  "alias": false,
  "peer_metadata": null
}
^1.3.10development
@0x/contracts-asset-proxy
Environment
{
  "local_name": "@0x/contracts-asset-proxy",
  "alias": false,
  "peer_metadata": null
}
^3.6.3development
@0x/contracts-exchange-libs
Environment
{
  "local_name": "@0x/contracts-exchange-libs",
  "alias": false,
  "peer_metadata": null
}
^4.3.12development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "80dee9d29ab8c7873aa977378c6c947b03c514d0",
  "tarball": "https://registry.npmjs.org/@0x/contracts-extensions/-/contracts-extensions-6.2.6.tgz",
  "fileCount": 51,
  "integrity": "sha512-0H9tHzt9TK9DyQ6X+wkLVAWpF0qaGMYKKAAutZFiOO0DXq3RVFjzrXspkb96v6CusDIh0cn2ByhQCv7iOdAWnQ==",
  "signatures": [
    {
      "sig": "MEQCICDlBQc9T4Yu1nAtTQ0nJCW6QLbVjO3teAIKqjvsH9g0AiBkJQ2T4jSBdwcDRyGeMLnqGquZsRBTrVM25uPgEIQQrg==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 377229,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoNnWCRA9TVsSAnZWagAA0vAP/jMg7ceRXodKIm5fpbqN\n/+eYkERS/t61MVB6+gyRyyRmBlTJJy6vGFe8TT+V1f0D68sp9S/xvHPKwodS\njRMxkmRCGAbkPOBV4pX0jzxZqMYd5qNE1jFAcb1HhGu4FdqVXGraswIzndOB\n8xILtyd6RBHdw0BovfSTwZyynI8q/fuEMYTBmp5jpLuJGrbjCH+/Q5qhlHiU\n3lS1hpMn3RqkU5A3CFfpRJfrKHVk+tlYk40rAUWms4q6TMOyNE+v1JhpholO\n6qeIij/C2UnEX5Q565zRC1oSq0kz/AOPRn3yCGVxPmJOLulo4sKQw7VMWHpj\npcvL6HO2VVU8p+I8fEUbJFl4Q6AWv40eQ1/QngNEljbjZSQk99njhrYqCwGC\niF8UPrLz9KwzaCg7dCCUMEJ5O9STc3FN8GbPWx9BvwZkrDQ7iZIkTRL3Sxkc\ngqsGatI6sXreK0QkTdX7uuPtY59F6WLu7qrJAqoPLPpQuu47vU9GEr+Twouz\n6YCIQwdRTU0hN40ah3werVR4pxB6sf2vsveu8Gyodtr62kzQnxf/y+M/FfTp\nvYSni1UrSTObu9qY/kw3vV+BKQysBxU3jlklc+mVCkfPg7k6zVA03/C7E7hD\nh/3vr6gu9Z7kwfF3vNQ0Le4881mQYuIhLUHOHUGZfV9AsBBqjyyZ7TWeOw3R\nfEd7\r\n=7IaI\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:25 UTC

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

Record identity

package_version:6101c4e79ed2fe07cbb57bddfc641fbbe40aee8a40bad895ba5b2ef858e40c40

Other collected versions

6.2.3216 Aug6.2.3111 Aug6.2.306 Aug6.2.2922 Jun6.2.2811 Jun6.2.272 JunView all collected versions →