Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@biswap/common-library

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biswap/common-library

All common tools, utils, services and etc. for Biswap products

  • 1.0.30
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Biswap Common Library

Prerequisites
  • Node v14 and above.
  • Environment variables must be specified in the project where Common library is used

Content

  1. Constants
  2. Enums
  3. Helpers
  4. Services
  5. Types

Constants

  1. Addresses
  2. Tokens

Enums

  1. Balance types
  2. Blockchain
    • Chain IDs
    • Contract types
      • default - Contract ABI is used for many contracts, for example - pair contract, ERC20
      • single - Contract in a single instance (address + ABI)
      • double-pool - Double pool contract in a single instance that requires a staked token addresses
  3. Log levels
  4. Project names

Helpers

  1. Common functions
  2. Big Number

Services

  1. Request API - Requests to BS backend
  2. Blockchain
    • exchanges
    • DB contracts
    • ETH contracts
    • pairs
    • token addresses
  3. Log - Prints the string you pass to it to the console

Types

  1. Balance
  2. Blockchain
  3. Pair# common-library

Keywords

FAQs

Package last updated on 20 Mar 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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc