Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Uniswap/solidity-lib

📖 Solidity libraries that are shared across Uniswap contracts
https://github.com/Uniswap/solidity-lib

Last synced: 3 months ago
JSON representation

📖 Solidity libraries that are shared across Uniswap contracts

Awesome Lists containing this project

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';

```