https://github.com/Uniswap/uniswap-lib
📖 Solidity libraries that are shared across Uniswap contracts
https://github.com/Uniswap/uniswap-lib
Last synced: 3 months ago
JSON representation
📖 Solidity libraries that are shared across Uniswap contracts
- Host: GitHub
- URL: https://github.com/Uniswap/uniswap-lib
- Owner: Uniswap
- License: gpl-3.0
- Archived: true
- Created: 2020-04-20T18:35:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-02T10:06:22.000Z (over 3 years ago)
- Last Synced: 2024-12-16T17:04:49.961Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 995 KB
- Stars: 154
- Watchers: 8
- Forks: 282
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-uniswap-v3 - Uniswap library - Solidity libraries that are shared across Uniswap contracts. This package focuses on safety and execution gas efficiency. (Developer tools / v3 Smart contracts)
- awesome-uniswap - Uniswap library - Solidity libraries that are shared across Uniswap contracts. This package focuses on safety and execution gas efficiency. (Implementations / Uniswap V3)
README
# uniswap-lib
[](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3ATests)
[](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3A%22Static+Analysis%22)
[](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3ALint)
[](https://github.com/Uniswap/uniswap-lib/actions?query=workflow%3A%22Fuzz+Testing%22)
[](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';```