# @ensdomains/contracts

> Collection of varios smart contracts"

Latest version **0.0.3** (published 2021-03-08) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ensdomains/contracts
pnpm add @ensdomains/contracts
yarn add @ensdomains/contracts
bun add @ensdomains/contracts
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-03-08 |
| First published | 2020-11-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 66.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | makoto_inoue, decanus, nickjohnson, jefflau |

## Links

- npm: https://www.npmjs.com/package/@ensdomains/contracts
- npm.io page: https://npm.io/package/@ensdomains/contracts

## Recent versions

- 0.0.3 (latest) — 2021-03-08
- 0.0.2 — 2021-01-27
- 0.0.1 — 2020-11-13

## README

# Contracts

List of compiled ENS smart contracts

## How to install

```
npm install --save '@ensdomains/contracts'

```

## How to use

```
import { abi as ensContract } from 'ensdomain-contracts/abis/ens/ENS.json'
import { abi as reverseRegistrarContract } from 'ensdomain-contracts/abis/ens/ReverseRegistrar.json'
import { abi as oldResolverContract } from 'ensdomain-contracts/abis/ens-022/PublicResolver.json'
import { abi as resolverContract } from 'ensdomain-contracts/abis/resolver/Resolver.json'
import { abi as testRegistrarContract } from 'ensdomain-contracts/abis/ens/TestRegistrar.json'
import { abi as dnsRegistrarContract } from 'ensdomain-contracts/abis/dnsregistrar/DNSRegistrar.json'
import { abi as legacyAuctionRegistrarContract } from 'ensdomain-contracts/abis/ens/HashRegistrar'
import { abi as deedContract } from 'ensdomain-contracts/abis/ens/Deed'
import { abi as permanentRegistrarContract } from 'ensdomain-contracts/abis/ethregistrar/BaseRegistrarImplementation'
import { abi as permanentRegistrarControllerContract } from 'ensdomain-contracts/abis/ethregistrar/ETHRegistrarController'
import { abi as bulkRenewalContract } from 'ensdomain-contracts/abis/ethregistrar/BulkRenewal'
```


## How to add new contract

1. `yarn add --dev PACKAGENAME`
2. Add the package into `copy.rb`
3. Run `yearn pub` which runs `copy.rb` and publish the repo

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