L3odr0id 4456a3132e lock files 2 سال پیش
..
.devcontainer 8ed814f671 RPC_TYPES from wallet + build 2 سال پیش
dist 8ed814f671 RPC_TYPES from wallet + build 2 سال پیش
src 8ed814f671 RPC_TYPES from wallet + build 2 سال پیش
test 546cc21164 add keyring.checkMnemonicValid() in keyring.ts 3 سال پیش
.gitignore 0b7d01a251 remove submodule js_api 3 سال پیش
LICENSE 0b7d01a251 remove submodule js_api 3 سال پیش
README.md b38fb83751 bump polkadot-js/api v7.9.1 2 سال پیش
babel.config.js 2beab7fed5 js code fallback fix 2 سال پیش
package-lock.json 4456a3132e lock files 2 سال پیش
package.json 4456a3132e lock files 2 سال پیش
tsconfig.json 2beab7fed5 js code fallback fix 2 سال پیش
webpack.config.js 2beab7fed5 js code fallback fix 2 سال پیش
yarn.lock 4456a3132e lock files 2 سال پیش

README.md

js_api

Wrap @polkadot-js/api to provide APIs for polkawallet/sdk.

@polkadot-js/api: ^7.9.1

build & test

To build:

yarn install
yarn run build

To test: open ./test/index.html in chrome. open chrome dev console and run runTests().then(console.log)

polkadot-js/api hack

  1. remove connectWithRetry() in node_modules/@polkadot/rpc-provider/ws/index.js to avoid auto-connect.
  2. replace value of packageInfo.path in node_modules/@polkadot/api/packageInfo.js to avoid Invalid URL issue in webview.
  3. lock bn.js: 4.12.0 to avoid this issue.