L3odr0id 48c86bd7d0 Try release 0.5.4 il y a 1 an
..
.yarn a9adb9eba7 yarn 1.x to 3.x migration il y a 2 ans
src 48c86bd7d0 Try release 0.5.4 il y a 1 an
test b961738646 add EVM api tests il y a 2 ans
.gitignore f46139f7ea wallet-connect v2 api update il y a 1 an
.yarnrc a9adb9eba7 yarn 1.x to 3.x migration il y a 2 ans
.yarnrc.yml a9adb9eba7 yarn 1.x to 3.x migration il y a 2 ans
LICENSE 0b7d01a251 remove submodule js_api il y a 3 ans
README.md b38fb83751 bump polkadot-js/api v7.9.1 il y a 2 ans
babel.config.js febc36aad3 bump bridge sdk 0.0.8-2 il y a 1 an
package-lock.json 48c86bd7d0 Try release 0.5.4 il y a 1 an
package.json 48c86bd7d0 Try release 0.5.4 il y a 1 an
tsconfig.json febc36aad3 bump bridge sdk 0.0.8-2 il y a 1 an
webpack.config.js 4c486d047e bump polkadot-js/api v10.x il y a 1 an
yarn.lock 48c86bd7d0 Try release 0.5.4 il y a 1 an

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.