You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

vinuswap-sdk

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinuswap-sdk

Wrapper for VinuSwap contracts


Version published
Weekly downloads
10
increased by25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vinuswap-sdk

Wrapper for VinuSwap contracts, based on Uniswap v3 SDK.

Install

npm install vinuswap-sdk

Usage

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.

Keywords

FAQs

Package last updated on 23 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc