shawn c5711e2a1d replace jaguar server with inAppWebViewServer | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
dist | %!s(int64=2) %!d(string=hai) anos | |
src | %!s(int64=2) %!d(string=hai) anos | |
test | %!s(int64=3) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
LICENSE | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
babel.config.js | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=2) %!d(string=hai) anos | |
webpack.config.js | %!s(int64=2) %!d(string=hai) anos | |
yarn.lock | %!s(int64=2) %!d(string=hai) anos |
Wrap @polkadot-js/api
to provide APIs for polkawallet/sdk.
@polkadot-js/api: ^7.9.1
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
hackconnectWithRetry()
in node_modules/@polkadot/rpc-provider/ws/index.js
to avoid auto-connect.packageInfo.path
in node_modules/@polkadot/api/packageInfo.js
to avoid Invalid URL
issue in webview.bn.js: 4.12.0
to avoid this issue.