# @uniswap/lib

> 📖 Solidity libraries that are shared across Uniswap contracts

Latest version **4.0.1-alpha** (published 2020-12-16) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @uniswap/lib
pnpm add @uniswap/lib
yarn add @uniswap/lib
bun add @uniswap/lib
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.1-alpha |
| Published | 2020-12-16 |
| First published | 2020-04-22 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 54.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 160 |
| Maintainers | noahwz, moodysalem, gakonst, ianlapham, callil, haydenadams |

## Links

- npm: https://www.npmjs.com/package/@uniswap/lib
- Repository: https://github.com/Uniswap/uniswap-lib
- Homepage: https://uniswap.org
- Issues: https://github.com/Uniswap/uniswap-lib/issues
- npm.io page: https://npm.io/package/@uniswap/lib

## Recent versions

- 4.0.1-alpha (latest) — 2020-12-16
- 5.0.0-alpha (solc-0.8) — 2020-12-18
- 4.0.0-alpha — 2020-11-30
- 2.2.0-alpha — 2020-11-19
- 2.1.0 — 2020-11-13
- 2.0.6 — 2020-10-29
- 2.0.5 — 2020-10-27
- 2.0.4 — 2020-10-22
- 2.0.3 — 2020-10-19
- 2.0.2 — 2020-10-17
- 2.0.1 — 2020-10-16
- 2.0.0 — 2020-10-15
- 1.1.4 — 2020-08-31
- 1.1.3 — 2020-08-31
- 1.1.2 — 2020-05-04
- … 1 more at https://npm.io/package/@uniswap/lib/versions

## README

# uniswap-lib

[![Tests](https://github.com/Uniswap/uniswap-lib/workflows/Tests/badge.svg)](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3ATests)
[![Static Analysis](https://github.com/Uniswap/uniswap-lib/workflows/Static%20Analysis/badge.svg)](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3A%22Static+Analysis%22)
[![Lint](https://github.com/Uniswap/uniswap-lib/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3ALint)
[![Fuzz Testing](https://github.com/Uniswap/uniswap-lib/workflows/Fuzz%20Testing/badge.svg)](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3A%22Fuzz+Testing%22)
[![npm](https://img.shields.io/npm/v/@uniswap/lib)](https://unpkg.com/@uniswap/lib@latest/)

Solidity libraries that are shared across Uniswap contracts. This package focuses on safety and execution gas efficiency.

## Install

Run `yarn` to install dependencies.

## Test

Run `yarn test` to execute the test suite.

## Usage

Install this in another project via `yarn add @uniswap/lib`

Then import the contracts via:

```solidity
import '@uniswap/lib/contracts/libraries/Babylonian.sol';

```

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