1 | # draswap-lib
|
2 |
|
3 | [![Tests](https://github.com/Draswap/draswap-lib/workflows/Tests/badge.svg)](https://github.com/Draswap/draswap-lib/actions?query=workflow%3ATests)
|
4 | [![Static Analysis](https://github.com/Draswap/draswap-lib/workflows/Static%20Analysis/badge.svg)](https://github.com/Draswap/draswap-lib/actions?query=workflow%3A%22Static+Analysis%22)
|
5 | [![Lint](https://github.com/Draswap/draswap-lib/workflows/Lint/badge.svg)](https://github.com/Draswap/draswap-lib/actions?query=workflow%3ALint)
|
6 | [![Fuzz Testing](https://github.com/Draswap/draswap-lib/workflows/Fuzz%20Testing/badge.svg)](https://github.com/Draswap/draswap-lib/actions?query=workflow%3A%22Fuzz+Testing%22)
|
7 | [![npm](https://img.shields.io/npm/v/@draswap/lib)](https://unpkg.com/@draswap/lib@latest/)
|
8 |
|
9 | Solidity libraries that are shared across Draswap contracts. This package focuses on safety and execution gas efficiency.
|
10 |
|
11 | ## Install
|
12 |
|
13 | Run `yarn` to install dependencies.
|
14 |
|
15 | ## Test
|
16 |
|
17 | Run `yarn test` to execute the test suite.
|
18 |
|
19 | ## Usage
|
20 |
|
21 | Install this in another project via `yarn add @draswap/lib`
|
22 |
|
23 | Then import the contracts via:
|
24 |
|
25 | ```solidity
|
26 | import '@draswap/lib/contracts/libraries/Babylonian.sol';
|
27 |
|
28 | ```
|