shawn f95d86d002 bump polkadot-js/api 12.4.2 | 2 miesięcy temu | |
---|---|---|
.. | ||
.yarn | 2 lat temu | |
src | 4 miesięcy temu | |
test | 10 miesięcy temu | |
.gitignore | 1 rok temu | |
.yarnrc | 2 lat temu | |
.yarnrc.yml | 2 lat temu | |
LICENSE | 3 lat temu | |
README.md | 2 lat temu | |
babel.config.js | 1 rok temu | |
package.json | 2 miesięcy temu | |
tsconfig.json | 1 rok temu | |
webpack.config.js | 1 rok temu | |
yarn.lock | 2 miesięcy temu |
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.