@biswap/common-library
v1.0.30
Published
All common tools, utils, services and etc. for Biswap products
Downloads
3
Maintainers
Readme
Biswap Common Library
Prerequisites
- Node v14 and above.
- Environment variables must be specified in the project where Common library is used
Content
Constants
- Addresses
- Tokens
Enums
- Balance types
- 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
- Log levels
- Project names
Helpers
- Common functions
- Big Number
Services
- Request API - Requests to BS backend
- Blockchain
- exchanges
- DB contracts
- ETH contracts
- pairs
- token addresses
- Log - Prints the string you pass to it to the console
Types
- Balance
- Blockchain
- Pair# common-library