Catalog npm
Back to packageRELEASE DETAILS

0.36.3

npm

@0x/contracts-zero-ex

Extensible contracts for interacting with the 0x protocol

Published10 Aug 2022
Direct dependencies37
Transitive dependenciesNot calculated

README

Current package documentation

ZeroEx (ExchangeProxy)

This package contains contracts for the ZeroEx extensible contract architecture.

NOTE: This repo is undergoing a tooling change. If adding a contract, you will need to add it to compiler.json. You can generate the entire list by running the following: find . -type f -name "*.sol" | grep -v foundry | grep -v "contracts/dep" | grep -v "node_modules"

Installation

Install

npm install @0x/contracts-zero-ex --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-zero-ex yarn build

Or continuously rebuild on change:

PKG=@0x/contracts-zero-ex yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Run Integration Tests

you will need to create a .env that the root of /contracts/zero-ex containing rpc's for all 7 chains the tests will be run on

ARBITRUM_RPC_URL=https://arb-mainnet........
AVALANCHE_RPC_URL=https://avalanche-mainnet......
BSC_RPC_URL=https://bsc-mainnet......
FANTOM_RPC_URL=https://fantom-mainnet......
MAINNET_RPC_URL=https://eth-mainnet......
OPTIMISM_RPC_URL=https://opt-mainnet......
POLYGON_RPC_URL=https://polygon-mainnet......
git submodule update --init --recursive
foundryup
yarn test:integration

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 37

Native requirements
37 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
~4.0.4runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^3.3.6runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^6.5.3runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.7.0runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^7.0.10runtime
@0x/subproviders
Environment
{
  "local_name": "@0x/subproviders",
  "alias": false,
  "peer_metadata": null
}
^6.6.5runtime
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.6.5runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^6.5.0runtime
@0x/protocol-utils
Environment
{
  "local_name": "@0x/protocol-utils",
  "alias": false,
  "peer_metadata": null
}
^11.16.3runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.3.1runtime
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
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
prompts
Environment
{
  "local_name": "prompts",
  "alias": false,
  "peer_metadata": null
}
^2.4.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
typechain
Environment
{
  "local_name": "typechain",
  "alias": false,
  "peer_metadata": null
}
^8.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
4.6.3development
@0x/abi-gen
Environment
{
  "local_name": "@0x/abi-gen",
  "alias": false,
  "peer_metadata": null
}
^5.8.0development
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.14development
@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
@types/prompts
Environment
{
  "local_name": "@types/prompts",
  "alias": false,
  "peer_metadata": null
}
^2.0.9development
@0x/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^10.4.28development
@0x/sol-compiler
Environment
{
  "local_name": "@0x/sol-compiler",
  "alias": false,
  "peer_metadata": null
}
^4.8.1development
isomorphic-fetch
Environment
{
  "local_name": "isomorphic-fetch",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
@0x/contracts-gen
Environment
{
  "local_name": "@0x/contracts-gen",
  "alias": false,
  "peer_metadata": null
}
^2.0.46development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.1.4development
@0x/contracts-erc20
Environment
{
  "local_name": "@0x/contracts-erc20",
  "alias": false,
  "peer_metadata": null
}
^3.3.36development
@typechain/ethers-v5
Environment
{
  "local_name": "@typechain/ethers-v5",
  "alias": false,
  "peer_metadata": null
}
^10.0.0development
@0x/contract-addresses
Environment
{
  "local_name": "@0x/contract-addresses",
  "alias": false,
  "peer_metadata": null
}
^6.19.2development
@types/isomorphic-fetch
Environment
{
  "local_name": "@types/isomorphic-fetch",
  "alias": false,
  "peer_metadata": null
}
^0.0.35development
@0x/contracts-test-utils
Environment
{
  "local_name": "@0x/contracts-test-utils",
  "alias": false,
  "peer_metadata": null
}
^5.4.27development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a904296852ff8dd6fc003eb4d6fcf78ebfc9f086",
  "tarball": "https://registry.npmjs.org/@0x/contracts-zero-ex/-/contracts-zero-ex-0.36.3.tgz",
  "fileCount": 384,
  "integrity": "sha512-ipQXBdJ05zFGvm+4RYatjXyC58FfL3gIFEzXvurSP4uP+Lko7bMHhkI5LTJw0si4m94liu84HknqBvImuKKU2A==",
  "signatures": [
    {
      "sig": "MEUCIDJkq+jTJb0STs/Dg/Wo4B+RI9maRYx3MoMKnJaVHE+gAiEAjPNoZWzZ7pvrEpX8qkC7H3NRaQWGeOqbHRraoWcdU9k=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 15606070,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8wYMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9ZRAAmRfCInEqAnnI2RVtprfuIlVBrMic4UY9QXu1bGLm+sRiE/0P\r\n+PH7+r42y1SDRYYthefU8BdxF4WzsyJSJELCG//zDry6v27HVzU7EDEroiit\r\nicodvJ4KYJ/ofSRy6qttzbdvS9URsivNaedet2Otrf2b5ZSXdWxGN0jlqI6c\r\n06u8+6u86tK7JNtbTGDlImY+CInnqC40MDMuMD5cC9SDb0DvetsJ+6LV0NgR\r\nYG69OxOsu5oSf8t8xUJqNkG4sd2+ymIauS8B9Mffq9838wVYhOY21Q+kCneE\r\nzKW1MruqS0KHuA9FB7z9ahHY2bShDqPxKIR9EWlGeNsIkx7+4HmgrZ586Y/M\r\n09ArjRc6kKHRfiBzTJSqM1x/0GwDADs1jiXpK3CpnkGAFFAev3lMdi8JLQ7c\r\nYl03/3rsyrVnRzk3SPzX+tuOp+heVG1uf8ADkZCHeQ2MLnwtkQ996UDdGWbZ\r\nObIG5hIV75W1EMRYXR6BJLFgljbVOcQSCepKAscRKtNNGjIlnQkQzvjtQO6f\r\n3AqwO1a6DDhySzIRmXKcendVLCXgVnoS/4yWilTzyuDfh/sVPUyqsAmgeDvj\r\njpgNtCq980gamCoItyZsuZZP40Vg6SYmnESg7c424I0o5L8tn4ZhgXKPrHw3\r\npfMOm5lkSp33SFpRsIsfjRdD47327SSUN9w=\r\n=uXsi\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:27 UTC

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

Record identity

package_version:06d5f9109b9901fa10fa8309418fecc1bebbc2f32dc416ae0dda39d2f4ec92f2

Other collected versions

0.49.016 Nov0.48.029 Aug0.47.018 Aug0.46.09 Aug0.45.121 Jul0.45.019 JulView all collected versions →