# @uniswap/sdk

> 🛠 An SDK for building applications on top of Uniswap.

Latest version **3.0.3** (published 2020-09-14) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2020-09-14 |
| First published | 2019-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 7 |
| Unpacked size | 442.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | callil, ianlapham, gakonst, moodysalem, noahwz |
| Keywords | uniswap, ethereum |

## Links

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

## Dependencies (7)

- [jsbi](https://npm.io/package/jsbi.md) ^3.1.1
- [big.js](https://npm.io/package/big.js.md) ^5.2.2
- [toformat](https://npm.io/package/toformat.md) ^2.0.0
- [tiny-warning](https://npm.io/package/tiny-warning.md) ^1.0.3
- [tiny-invariant](https://npm.io/package/tiny-invariant.md) ^1.1.0
- [@uniswap/v2-core](https://npm.io/package/@uniswap/v2-core.md) ^1.0.0
- [decimal.js-light](https://npm.io/package/decimal.js-light.md) ^2.5.0

## Recent versions

- 3.0.3 (latest) — 2020-09-14
- 1.0.0-beta.4 (uniswap-v1) — 2019-08-08
- 3.0.3-beta.1 — 2020-07-25
- 3.0.2 — 2020-07-21
- 3.0.1 — 2020-07-13
- 3.0.0 — 2020-07-06
- 2.1.0 — 2020-07-06
- 2.0.6 — 2020-06-26
- 2.0.5 — 2020-05-13
- 2.0.4 — 2020-05-12
- 2.0.3 — 2020-05-06
- 2.0.2 — 2020-05-06
- 2.0.1 — 2020-05-05
- 2.0.0 — 2020-05-05
- 2.0.0-beta.23 — 2020-04-30
- … 27 more at https://npm.io/package/@uniswap/sdk/versions

## README

# Uniswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/Uniswap/uniswap-sdk/workflows/CI/badge.svg)](https://github.com/Uniswap/uniswap-sdk)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/Uniswap/uniswap-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd uniswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```

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