# @0x/base-contract

> 0x Base TS contract

Latest version **7.0.1** (published 2023-04-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @0x/base-contract
pnpm add @0x/base-contract
yarn add @0x/base-contract
bun add @0x/base-contract
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.1 |
| Published | 2023-04-07 |
| First published | 2018-10-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.12 |
| Dependencies | 11 |
| Unpacked size | 104.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 98 |
| Maintainers | rhinodavid, mwelche, savdont, eobbad, aeph4muh, idokleinman, jadetran, kyuc, henryzhu, tobernguyen, dex_tracker, dekz, amirbandeali, phil-ociraptor |

## Links

- npm: https://www.npmjs.com/package/@0x/base-contract
- Repository: https://github.com/0xProject/tools
- Homepage: https://github.com/0xProject/tools/tree/main/base-contract
- Issues: https://github.com/0xProject/tools/issues
- npm.io page: https://npm.io/package/@0x/base-contract

## Dependencies (11)

- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [ethers](https://npm.io/package/ethers.md) ~4.0.4
- [js-sha3](https://npm.io/package/js-sha3.md) ^0.7.0
- [@0x/utils](https://npm.io/package/@0x/utils.md) ^7.0.0
- [@0x/assert](https://npm.io/package/@0x/assert.md) ^3.0.36
- [@types/node](https://npm.io/package/@types/node.md) 12.12.54
- [@ethereumjs/vm](https://npm.io/package/@ethereumjs/vm.md) ^5.9.3
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^7.1.5
- [@0x/json-schemas](https://npm.io/package/@0x/json-schemas.md) ^6.4.6
- [@0x/web3-wrapper](https://npm.io/package/@0x/web3-wrapper.md) ^8.0.1
- [ethereumjs-blockstream](https://npm.io/package/ethereumjs-blockstream.md) ^7.0.0

## Recent versions

- 7.0.1 (latest) — 2023-04-07
- 5.5.0-beta.4 (protocolV3) — 2019-12-02
- 7.0.0 — 2022-08-18
- 6.5.0 — 2022-03-16
- 6.4.7 — 2022-03-16
- 6.4.6 — 2022-02-26
- 6.4.5 — 2022-01-19
- 6.4.4 — 2021-10-27
- 6.4.3 — 2021-09-23
- 6.4.2 — 2021-08-25
- 6.4.1 — 2021-06-28
- 6.4.0 — 2021-04-28
- 6.3.2 — 2021-04-26
- 6.3.1 — 2021-04-26
- 6.3.0 — 2021-04-26
- … 62 more at https://npm.io/package/@0x/base-contract/versions

## README

## @0x/base-contract

BaseContract to derive all auto-generated wrappers from

## Installation

```bash
yarn add @0x/base-contract
```

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"],
}
```

## Usage

```javascript
import { BaseContract } from '@0x/base-contract';
```

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

Please read our [contribution guidelines](../../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/base-contract yarn build
```

Or continuously rebuild on change:

```bash
PKG=@0x/base-contract yarn watch
```

### Lint

```bash
yarn lint
```

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