Super Protocol SDK JavaScript
Installation
npm install @super-protocol/sdk-js
Supported Networks
The SDK supports multiple blockchain networks:
- Polygon Mainnet (Chain ID: 137)
- Polygon Amoy Testnet (Chain ID: 80002)
- opBNB Mainnet (Chain ID: 204)
- opBNB Testnet (Chain ID: 5611)
Prepare protobuf
Local Dev Setup
-
npm install
-
Just run npm run build
Scripts
npm run prettier
- run auto code style fixing
npm run build
- create production build (in build folder)
npm run dto:update
- generate TypeScript classes based on DTO submodule
npm test
- run all tests
Dependencies
- NodeJS v16.8.0
- NPM v7.21.0
Apple M1 instructions
Some dependencies is not supported arm64 architecture. You can face with error like dyld[12398]: missing symbol called
. To install everything correctly, do next:
- Install Rosetta2
- Run your shell for x86_64 architecture
arch -x86_64 /bin/bash
(or any shell in your /bin
folder).
- Install NodeJS in this shell
nvm install 16
(if you have Node with same version already installed but for arm64, you have to uninstall it npm uninstall 16
)
nvm use 16 && yarn install