UNPKG

@opus-fi/lib

Version:

📖 Solidity libraries that are shared across Opus contracts

29 lines (17 loc) • 1.14 kB
# opus-lib [![Tests](https://github.com/opus-fi/opus-lib/workflows/Tests/badge.svg)](https://github.com/opus-fi/opus-lib/actions?query=workflow%3ATests) [![Static Analysis](https://github.com/opus-fi/opus-lib/workflows/Static%20Analysis/badge.svg)](https://github.com/opus-fi/opus-lib/actions?query=workflow%3A%22Static+Analysis%22) [![Lint](https://github.com/opus-fi/opus-lib/workflows/Lint/badge.svg)](https://github.com/opus-fi/opus-lib/actions?query=workflow%3ALint) [![Fuzz Testing](https://github.com/opus-fi/opus-lib/workflows/Fuzz%20Testing/badge.svg)](https://github.com/opus-fi/opus-lib/actions?query=workflow%3A%22Fuzz+Testing%22) [![npm](https://img.shields.io/npm/v/@opus-fi/lib)](https://unpkg.com/@opus-fi/lib@latest/) Solidity libraries that are shared across Opus 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 @opus-fi/lib` Then import the contracts via: ```solidity import '@opus-fi/lib/contracts/libraries/Babylonian.sol'; ```