L3odr0id 6d67ad9158 Some test пре 1 година
..
.devcontainer cb849db39e Local building stuff пре 1 година
.yarn a9adb9eba7 yarn 1.x to 3.x migration пре 2 година
src 7338432b20 Try another txUpdateEvent id пре 1 година
test 6d67ad9158 Some test пре 1 година
.gitignore a9adb9eba7 yarn 1.x to 3.x migration пре 2 година
.yarnrc a9adb9eba7 yarn 1.x to 3.x migration пре 2 година
.yarnrc.yml a9adb9eba7 yarn 1.x to 3.x migration пре 2 година
LICENSE 0b7d01a251 remove submodule js_api пре 4 година
README.md b38fb83751 bump polkadot-js/api v7.9.1 пре 2 година
babel.config.js 2beab7fed5 js code fallback fix пре 2 година
package-lock.json 04c2dc5e26 Some experimental stuff пре 1 година
package.json 04c2dc5e26 Some experimental stuff пре 1 година
tsconfig.json 2beab7fed5 js code fallback fix пре 2 година
webpack.config.js 95339f1664 add signTypedData пре 2 година
yarn.lock 7338432b20 Try another txUpdateEvent id пре 1 година

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.