Super Protocol SDK JavaScript
Installation
yarn add @super-protocol/sdk-js
Prepare protobuf
-
git submodule init
git submodule update
-
Install protobuf (http://google.github.io/proto-lens/installing-protoc.html)
-
yarn dto::update
Local Dev Setup
-
npm install uplink-nodejs
-
Just run yarn
Scripts
yarn prettier
- run auto code style fixing
yarn build
- create production build (in build folder)
yarn dto:update
- generate TypeScript classes based on DTO submodule
Dependencies
- NodeJS v16.8.0
- NPM v7.21.0
- yarn v1.22.11
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