# @0x/protocol-utils

> 0x protocol utils

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

## Install

```sh
npm install @0x/protocol-utils
pnpm add @0x/protocol-utils
yarn add @0x/protocol-utils
bun add @0x/protocol-utils
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 11.24.2 |
| Published | 2023-11-16 |
| First published | 2020-12-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.12 |
| Dependencies | 12 |
| Unpacked size | 202.6 KB |
| 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/protocol-utils
- Repository: https://github.com/0xProject/protocol
- Homepage: https://github.com/0xProject/protocol/tree/main/packages/protocol-utils
- Issues: https://github.com/0xProject/protocol/issues
- npm.io page: https://npm.io/package/@0x/protocol-utils

## Dependencies (12)

- [chai](https://npm.io/package/chai.md) ^4.0.1
- [ethers](https://npm.io/package/ethers.md) ~4.0.4
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [@0x/utils](https://npm.io/package/@0x/utils.md) ^7.0.0
- [@0x/assert](https://npm.io/package/@0x/assert.md) ^3.0.36
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^7.0.10
- [@0x/json-schemas](https://npm.io/package/@0x/json-schemas.md) ^6.4.4
- [@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/contract-wrappers](https://npm.io/package/@0x/contract-wrappers.md) ^13.23.8
- [@0x/contract-addresses](https://npm.io/package/@0x/contract-addresses.md) ^8.13.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.38.0

## Recent versions

- 11.24.2 (latest) — 2023-11-16
- 1.3.1-multiplex.0 (multiplex) — 2021-03-16
- 11.24.1 — 2023-08-29
- 11.24.0 — 2023-08-18
- 11.23.0 — 2023-08-09
- 11.22.4 — 2023-07-21
- 11.22.3 — 2023-07-19
- 11.22.2 — 2023-05-10
- 11.22.1 — 2023-05-01
- 11.22.0 — 2023-04-24
- 11.21.0 — 2023-04-20
- 11.20.0 — 2023-04-17
- 11.18.1 — 2023-03-10
- 11.18.0 — 2023-03-01
- 11.17.6 — 2023-02-01
- … 64 more at https://npm.io/package/@0x/protocol-utils/versions

## README

## @0x/protocol-utils

0x protocol-related utilities for the V4/Exchange Proxy constellation of contracts, with tooling related to:

-   Limit orders
-   Rfq orders
-   Transformers
-   Signatures
-   EIP712 hashing

### Read the [Documentation](https://0x.org/docs/protocol/protocol-utils).

## Installation

```bash
yarn add @0x/protocol-utils
```

If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:

```json
"compilerOptions": {
    "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}
```

## Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

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/protocol-utils yarn build
```

Or continuously rebuild on change:

```bash
PKG=@0x/protocol-utils yarn watch
```

### Clean

```bash
yarn clean
```

### Lint

```bash
yarn lint
```

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