Catalog npm
Back to packageRELEASE DETAILS

3.2.26

npm

@0x/contracts-exchange

Smart contract components of 0x protocol

Published24 Feb 2021
Direct dependencies42
Transitive dependenciesNot calculated

README

Current package documentation

Exchange

This package contains the implementation of the Exchange. This contract is responsible for settling trades and is typically the entry point for all transactions that interact with the 0x protocol. Lightweight examples of how external contracts can interact with the Exchange contract can be found in the examples directory. Addresses of the deployed contracts can be found in this 0x guide or the DEPLOYS file within this package.

Installation

Install

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

Bug bounty

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

Or continuously rebuild on change:

PKG=@0x/contracts-exchange 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 42

Native requirements
42 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^6.2.0runtime
@0x/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^10.4.17runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^6.2.18runtime
@0x/contracts-erc20
Environment
{
  "local_name": "@0x/contracts-erc20",
  "alias": false,
  "peer_metadata": null
}
^3.3.4runtime
@0x/contracts-erc721
Environment
{
  "local_name": "@0x/contracts-erc721",
  "alias": false,
  "peer_metadata": null
}
^3.1.25runtime
@0x/contracts-erc1155
Environment
{
  "local_name": "@0x/contracts-erc1155",
  "alias": false,
  "peer_metadata": null
}
^2.1.25runtime
@0x/contracts-dev-utils
Environment
{
  "local_name": "@0x/contracts-dev-utils",
  "alias": false,
  "peer_metadata": null
}
^1.3.24runtime
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
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.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.19development
@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.2.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
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.4.0development
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.5.2development
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.4.1development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
js-combinatorics
Environment
{
  "local_name": "js-combinatorics",
  "alias": false,
  "peer_metadata": null
}
^0.5.3development
@0x/contracts-gen
Environment
{
  "local_name": "@0x/contracts-gen",
  "alias": false,
  "peer_metadata": null
}
^2.0.30development
@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-utils
Environment
{
  "local_name": "@0x/contracts-utils",
  "alias": false,
  "peer_metadata": null
}
^4.7.4development
@0x/contracts-staking
Environment
{
  "local_name": "@0x/contracts-staking",
  "alias": false,
  "peer_metadata": null
}
^2.0.33development
@0x/contracts-multisig
Environment
{
  "local_name": "@0x/contracts-multisig",
  "alias": false,
  "peer_metadata": null
}
^4.1.26development
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.1.6development
@0x/contracts-test-utils
Environment
{
  "local_name": "@0x/contracts-test-utils",
  "alias": false,
  "peer_metadata": null
}
^5.3.22development
@0x/contracts-asset-proxy
Environment
{
  "local_name": "@0x/contracts-asset-proxy",
  "alias": false,
  "peer_metadata": null
}
^3.7.7development
@0x/contracts-exchange-libs
Environment
{
  "local_name": "@0x/contracts-exchange-libs",
  "alias": false,
  "peer_metadata": null
}
^4.3.25development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "c73135e05e433393c9255182c7c80d04ceec5d51",
  "tarball": "https://registry.npmjs.org/@0x/contracts-exchange/-/contracts-exchange-3.2.26.tgz",
  "fileCount": 54,
  "integrity": "sha512-5935k2Brf5zGKoMjR1mJtbWxbyk1W7+qUEpcTalSpBtJbGy3sh204DKDuiGjNrHev6w9jCtOyhU3S6g1Px8gYw==",
  "signatures": [
    {
      "sig": "MEYCIQCK01KFJbg04eN1LNH/VYfvdB1r1M1poOBGx44LsCWK1QIhAIUxnVUU/RGOB1l6crw38SuL+Qov4XEwQbIhFupzbIVl",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 2323130,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNdl4CRA9TVsSAnZWagAAiXkP/1F6DYClVW5jtRxfHF0G\nqjcxRbQu77BN9n1kxNk/KNR49T7HRAG1wHPup83fjzaUv4pC57aA/eUtgAvX\nHdKAvLE3Ai/Qua33hqTw0hdUk7BAy4jlTplOBEnuILfnD0735XJP76DdDCkW\n6p64P4CPSzFUXvJlv/+4BDHglYHbCKY8dxRiJFvhGQWxsyXWCYfWGzNOuJCO\nVHDO7mgsaaN2MrebR77e1cnI5hzD4NsoFkvN7LwB5k+6rOCDQSVROc3UMKG4\nvtb3NNVxPWv2bohb4H0CnIjZ2GJeizi4ifhnr2Z5s18JKrF9GGzin4tzXGjq\nDZg3MYPtGYupLWtls1DzUAh2zl81u6OC6VPs2JUFnRm837nyA865FMQZ3dwM\nA+oeaiv82rBYSHGoILRyHzq9phF8/U7dsax9MDHb81sTk4OmKLTtsZY9/q9G\nqDeOTPhSlFuo/6OiiblCGEsap2QeFy55sKRq0HTNKoblnbDgckDsDZcPVERP\nYgc9Gd4TVlThVFa93ZwDW/3Buq6hraInu12GWyREmTV0abaiTMIXEaDG4ThP\nCg7Hj2yXL6PmHgmaXOsJ02cF42P9hFojRyOHHy/MbT1g1SULU5b1op/pJFDv\nlUGhtaQA5TY8pTJVyNdKofLAAxqNmedkbQFFH5o++u8CON5I/Nt9QL/ZSVYM\n+gEZ\r\n=YnIV\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:23 UTC

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

Record identity

package_version:af61cc151ecba792eda0c540eaeaaca41a377212e1e97a2bc8563ea872005bf9

Other collected versions

3.2.3816 Aug3.2.3711 Aug3.2.366 Aug3.2.3522 Jun3.2.3411 Jun3.2.332 JunView all collected versions →