Package Exports
- vinuswap-sdk
- vinuswap-sdk/lib/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vinuswap-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vinuswap-sdk
Wrapper for VinuSwap contracts, based on Uniswap v3 SDK.
Install
npm install vinuswap-sdkUsage
import { VinuSwap } from 'vinuswap-sdk';
const sdk = await VinuSwap.create(
tokenAAddress,
tokenBAddress,
poolAddress,
quoterAddress,
routerAddress,
positionManagerAddress,
signerOrProvider
);IMPORTANT: Uniswap (and, therefore, VinuSwap) uses an address-based ordering for tokens that does not necessarily match the order
in which they are passed to the constructor. Therefore, be sure to check which token is token0 and which token is token1 with
sdk.token0Address and sdk.token1Address.