@novasamatech/product-sdk 0.7.1 → 0.7.2-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/dist/papiProvider.js +1 -1
- package/dist/payments.d.ts +0 -1
- package/dist/payments.js +1 -1
- package/package.json +2 -2
package/dist/papiProvider.js
CHANGED
|
@@ -152,7 +152,7 @@ __fallback, internal) {
|
|
|
152
152
|
case 'chainHead_v1_follow': {
|
|
153
153
|
const [withRuntime] = params;
|
|
154
154
|
const syntheticSubId = getNextSubId();
|
|
155
|
-
const subscription = hostApi.
|
|
155
|
+
const subscription = hostApi.chainHeadFollowSubscribe(enumValue(version, { genesisHash, withRuntime }), payload => {
|
|
156
156
|
if (payload.tag === version) {
|
|
157
157
|
const jsonRpcEvent = convertTypedEventToJsonRpc(payload.value);
|
|
158
158
|
sendFollowEvent(syntheticSubId, jsonRpcEvent);
|
package/dist/payments.d.ts
CHANGED
package/dist/payments.js
CHANGED
|
@@ -20,7 +20,7 @@ export const createPaymentManager = (transport = sandboxTransport) => {
|
|
|
20
20
|
const sourceCodec = source.type === 'productAccount'
|
|
21
21
|
? {
|
|
22
22
|
tag: 'ProductAccount',
|
|
23
|
-
value:
|
|
23
|
+
value: source.derivationIndex,
|
|
24
24
|
}
|
|
25
25
|
: { tag: 'PrivateKey', value: source.key };
|
|
26
26
|
return resultToPromise(unwrapVersionedResult(version, hostApi.paymentTopUp(enumValue(version, { amount, source: sourceCodec }))));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novasamatech/product-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2-0",
|
|
5
5
|
"description": "Polkadot product SDK: integrate and run your product inside Polkadot browser.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@polkadot/extension-inject": "^0.63.1",
|
|
29
29
|
"@polkadot-api/json-rpc-provider-proxy": "^0.4.0",
|
|
30
|
-
"@novasamatech/host-api": "0.7.
|
|
30
|
+
"@novasamatech/host-api": "0.7.2-0",
|
|
31
31
|
"polkadot-api": ">=2",
|
|
32
32
|
"neverthrow": "^8.2.0"
|
|
33
33
|
},
|