shawn f95d86d002 bump polkadot-js/api 12.4.2 vor 2 Monaten
..
.yarn a9adb9eba7 yarn 1.x to 3.x migration vor 2 Jahren
src d81a674a53 add multiChain connect api & bump bridge sdk 0.1.7-9 vor 4 Monaten
test c697bc1f30 bridge api add statemint support vor 10 Monaten
.gitignore f46139f7ea wallet-connect v2 api update vor 1 Jahr
.yarnrc a9adb9eba7 yarn 1.x to 3.x migration vor 2 Jahren
.yarnrc.yml a9adb9eba7 yarn 1.x to 3.x migration vor 2 Jahren
LICENSE 0b7d01a251 remove submodule js_api vor 3 Jahren
README.md b38fb83751 bump polkadot-js/api v7.9.1 vor 2 Jahren
babel.config.js 0b80b0bd31 bump polkadot-js/api 10.10.1 vor 1 Jahr
package.json f95d86d002 bump polkadot-js/api 12.4.2 vor 2 Monaten
tsconfig.json febc36aad3 bump bridge sdk 0.0.8-2 vor 1 Jahr
webpack.config.js 4c486d047e bump polkadot-js/api v10.x vor 1 Jahr
yarn.lock f95d86d002 bump polkadot-js/api 12.4.2 vor 2 Monaten

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.