shawn c5711e2a1d replace jaguar server with inAppWebViewServer %!s(int64=2) %!d(string=hai) anos
..
dist c5711e2a1d replace jaguar server with inAppWebViewServer %!s(int64=2) %!d(string=hai) anos
src c5711e2a1d replace jaguar server with inAppWebViewServer %!s(int64=2) %!d(string=hai) anos
test 546cc21164 add keyring.checkMnemonicValid() in keyring.ts %!s(int64=3) %!d(string=hai) anos
.gitignore 0b7d01a251 remove submodule js_api %!s(int64=4) %!d(string=hai) anos
LICENSE 0b7d01a251 remove submodule js_api %!s(int64=4) %!d(string=hai) anos
README.md b38fb83751 bump polkadot-js/api v7.9.1 %!s(int64=2) %!d(string=hai) anos
babel.config.js 2beab7fed5 js code fallback fix %!s(int64=2) %!d(string=hai) anos
package.json c194cd6e82 eth account support WIP %!s(int64=2) %!d(string=hai) anos
tsconfig.json 2beab7fed5 js code fallback fix %!s(int64=2) %!d(string=hai) anos
webpack.config.js 2beab7fed5 js code fallback fix %!s(int64=2) %!d(string=hai) anos
yarn.lock c194cd6e82 eth account support WIP %!s(int64=2) %!d(string=hai) anos

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.