UNPKG

@tokenlon/contracts-lib

Version:

Common utility functions (e.g., signing order, encoding data) to interact with [Tokenlon contracts](https://github.com/consenlabs/tokenlon-contracts).

26 lines (14 loc) 1.19 kB
# @tokenlon/contracts-lib ![Build Status](https://github.com/consenlabs/tokenlon-contracts-lib-js/actions/workflows/ci.yaml/badge.svg?branch=main) Common utility functions (e.g., signing order, encoding data) to interact with [Tokenlon contracts](https://github.com/consenlabs/tokenlon-contracts). ## Installation ```bash $ npm install @tokenlon/contracts-lib ``` This library requires `ethers` as peer dependency. Please remember to install `ethers` yourself with version in the caret range `^5.0.0`. ## Usage This library provides helpers for signing signature and encoding data that is required to interact with Tokenlon strategy contracts. Each version of Tokenlon will have its dedicated library which is separated by directory. For example, the latest Tokenlon version is `v5`, and the `v5` dedicated library will be located at `@tokenlon/contracts-lib/v5`. Please refer to the `README` in each version directory for more details. - [v5](https://github.com/consenlabs/tokenlon-contracts-lib-js/tree/main/src/v5/README.md) (latest) ## License © ConsenLabs, 2022-NOW Released under the [MIT License](https://github.com/consenlabs/tokenlon-contracts-lib-js/blob/main/LICENSE)