Catalog npm
PACKAGE EXPLORERView in registry

@0x/contracts-zero-ex

npm

Extensible contracts for interacting with the 0x protocol

Versions collected98
Direct dependencies37From release 0.49.0
Last observed20 Oct, 22:27 UTC

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.

Versions 98

Collected releases
VersionPublishedDirect dependenciesOpen version
0.49.0Registry latest16 Nov 202337
0.48.029 Aug 202337
0.47.018 Aug 202337
0.46.09 Aug 202337
0.45.121 Jul 202337
0.45.019 Jul 202337
0.44.010 May 202337
0.43.01 May 202337
0.42.124 Apr 202337
0.42.020 Apr 202337
0.41.017 Apr 202337
0.39.110 Mar 202337
0.39.01 Mar 202337
0.38.61 Feb 202337
0.38.530 Jan 202337
0.38.423 Jan 202337
0.38.312 Dec 202238
0.38.223 Nov 202238
0.38.115 Nov 202238
0.38.05 Nov 202238

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:9a5c9f49945c6befb763a70128219bf2d551bc17ccc10d234ff47fb2e389a555