@polkadot-api/sm-provider 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
1
|
# @polkadot-api/sm-provider
|
|
2
|
+
|
|
3
|
+
`JsonRpcProvider` to connect to a chain via Smoldot.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function getSmProvider(
|
|
7
|
+
chain: smoldot.Chain | Promise<smoldot.Chain>,
|
|
8
|
+
): JsonRpcProvider
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The parameter it takes is a `Chain` from smoldot, the return value of calling `smoldot.addChain(..)`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polkadot-api/sm-provider",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"author": "Josep M Sobrepere (https://github.com/josepot)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"trailingComma": "all"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@polkadot-api/json-rpc-provider-proxy": "0.0
|
|
43
|
+
"@polkadot-api/json-rpc-provider-proxy": "0.1.0",
|
|
44
44
|
"@polkadot-api/json-rpc-provider": "0.0.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"smoldot": ">=2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"smoldot": "
|
|
50
|
+
"smoldot": "2.0.25"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsc --noEmit && tsup-node src/index.ts --clean --sourcemap --platform neutral --target=es2020 --format esm,cjs --dts && tsup-node src/index.ts --clean --sourcemap --platform neutral --target=es2020 --format cjs --dts --minify --out-dir dist/min",
|