@super-protocol/sdk-js
v3.18.1
Published
## Installation
Maintainers
Keywords
Readme
Super Protocol SDK JavaScript
Installation
npm install @super-protocol/sdk-jsSupported 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
git submodule init git submodule update
Install protobuf (http://google.github.io/proto-lens/installing-protoc.html)
npm run dto::update
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/binfolder). - Install NodeJS in this shell
nvm install 16(if you have Node with same version already installed but for arm64, you have to uninstall itnpm uninstall 16) nvm use 16 && yarn install
