shawn f95d86d002 bump polkadot-js/api 12.4.2 | 2 months ago | |
---|---|---|
.. | ||
.yarn | 2 years ago | |
src | 4 months ago | |
test | 10 months ago | |
.gitignore | 1 year ago | |
.yarnrc | 2 years ago | |
.yarnrc.yml | 2 years ago | |
LICENSE | 3 years ago | |
README.md | 2 years ago | |
babel.config.js | 1 year ago | |
package.json | 2 months ago | |
tsconfig.json | 1 year ago | |
webpack.config.js | 1 year ago | |
yarn.lock | 2 months ago |
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.