# @0x/contracts-utils

> Smart contract utils of 0x protocol

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

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.8.52 |
| Published | 2023-11-16 |
| First published | 2018-12-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.12 |
| Dependencies | 5 |
| Unpacked size | 549.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/contracts-utils
- Repository: https://github.com/0xProject/protocol
- Homepage: https://github.com/0xProject/protocol/tree/main/contracts/utils
- Issues: https://github.com/0xProject/protocol/issues
- npm.io page: https://npm.io/package/@0x/contracts-utils

## Dependencies (5)

- [bn.js](https://npm.io/package/bn.js.md) ^4.11.8
- [@0x/utils](https://npm.io/package/@0x/utils.md) ^7.0.0
- [ethereum-types](https://npm.io/package/ethereum-types.md) ^3.7.1
- [@0x/base-contract](https://npm.io/package/@0x/base-contract.md) ^7.0.0
- [@0x/typescript-typings](https://npm.io/package/@0x/typescript-typings.md) ^5.3.1

## Recent versions

- 4.8.52 (latest) — 2023-11-16
- 4.7.5-multiplex.0 (multiplex) — 2021-03-16
- 3.3.0-beta.4 (protocolV3) — 2019-12-02
- 4.8.51 — 2023-08-29
- 4.8.50 — 2023-08-18
- 4.8.49 — 2023-08-09
- 4.8.48 — 2023-07-21
- 4.8.47 — 2023-07-19
- 4.8.46 — 2023-05-10
- 4.8.45 — 2023-05-01
- 4.8.44 — 2023-04-20
- 4.8.43 — 2023-04-17
- 4.8.42 — 2023-04-17
- 4.8.40 — 2023-03-10
- 4.8.39 — 2023-03-01
- … 120 more at https://npm.io/package/@0x/contracts-utils/versions

## README

## Contracts utils

This package contains smart contract utilities and libraries that are used throughout the entire codebase of smart contracts. These contracts are all generic and may helpful to use outside of the context of 0x protocol.

## Installation

**Install**

```bash
npm install @0x/contracts-utils --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-utils yarn build
```

Or continuously rebuild on change:

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

### Clean

```bash
yarn clean
```

### Lint

```bash
yarn lint
```

### Run Tests

```bash
yarn test
```

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