# @0x/contracts-zero-ex

> Extensible contracts for interacting with the 0x protocol

Latest version **0.49.0** (published 2023-11-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @0x/contracts-zero-ex
pnpm add @0x/contracts-zero-ex
yarn add @0x/contracts-zero-ex
bun add @0x/contracts-zero-ex
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.49.0 |
| Published | 2023-11-16 |
| First published | 2020-06-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.12 |
| Dependencies | 10 |
| Unpacked size | 16.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 406 |
| Maintainers | aeph4muh, rhinodavid, mwelche, savdont, kyuc, henryzhu, tobernguyen, dekz, amirbandeali, phil-ociraptor |

## Links

- npm: https://www.npmjs.com/package/@0x/contracts-zero-ex
- Repository: https://github.com/0xProject/protocol
- Homepage: https://github.com/0xProject/protocol/tree/main/contracts/zero-ex
- Issues: https://github.com/0xProject/protocol/issues
- npm.io page: https://npm.io/package/@0x/contracts-zero-ex

## Dependencies (10)

- [ethers](https://npm.io/package/ethers.md) ~4.0.4
- [@0x/types](https://npm.io/package/@0x/types.md) ^3.3.7
- [@0x/utils](https://npm.io/package/@0x/utils.md) ^7.0.0
- [ethereum-types](https://npm.io/package/ethereum-types.md) ^3.7.1
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^7.0.10
- [@0x/subproviders](https://npm.io/package/@0x/subproviders.md) ^8.0.1
- [@0x/web3-wrapper](https://npm.io/package/@0x/web3-wrapper.md) ^8.0.1
- [@0x/base-contract](https://npm.io/package/@0x/base-contract.md) ^7.0.0
- [@0x/protocol-utils](https://npm.io/package/@0x/protocol-utils.md) ^11.24.2
- [@0x/typescript-typings](https://npm.io/package/@0x/typescript-typings.md) ^5.3.1

## Recent versions

- 0.49.0 (latest) — 2023-11-16
- 0.20.0-multiplex (multiplex) — 2021-03-16
- 0.48.0 — 2023-08-29
- 0.47.0 — 2023-08-18
- 0.46.0 — 2023-08-09
- 0.45.1 — 2023-07-21
- 0.45.0 — 2023-07-19
- 0.44.0 — 2023-05-10
- 0.43.0 — 2023-05-01
- 0.42.1 — 2023-04-24
- 0.42.0 — 2023-04-20
- 0.41.0 — 2023-04-17
- 0.39.1 — 2023-03-10
- 0.39.0 — 2023-03-01
- 0.38.6 — 2023-02-01
- … 83 more at https://npm.io/package/@0x/contracts-zero-ex/versions

## README

## 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**

```bash
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)](https://github.com/0xProject/ZEIPs) repository and follow the contribution guidelines provided therein.

Please read our [contribution guidelines](../../.github/CONTRIBUTING.md) before getting started.

### Install Dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

```bash
yarn config set workspaces-experimental true
```

Then install dependencies

```bash
yarn install
```

### Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

```bash
PKG=@0x/contracts-zero-ex yarn build
```

Or continuously rebuild on change:

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

### Clean

```bash
yarn clean
```

### Lint

```bash
yarn lint
```

### Run Tests

```bash
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

```sh
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......
```

```bash
git submodule update --init --recursive
foundryup
yarn test:integration
```

---
_Source: https://npm.io/package/@0x/contracts-zero-ex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
