The Vexchange SDK is meant to simplify every aspect of integrating Vexchange into your project. It’s written in TypeScript, has a robust test suite, uses bignumber.js for math, and includes an optional data-fetching module which relies on ethers.js.
The SDK was built to be extremely easy to use, but also feature-rich. It offers various levels of abstraction that make it suitable for use nearly anywhere, from hackathon projects to production applications.
The SDK is divided into several modular components that perform tightly scoped tasks:
Additionally, it exports a number of custom types:
To start using the SDK, simply install it into your project…
yarn add @uniswap/sdk
…import some functions…
import { ... } from '@uniswap/sdk'
…and dive into the rest of the documentation to learn more!