Super Protocol SDK JavaScript
Installation
npm install @super-protocol/sdk-js
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
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