@novasamatech/statement-store 0.5.4-9 → 0.5.5
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/adapter/rpc.js +2 -0
- package/dist/session/session.js +3 -0
- package/package.json +4 -4
package/dist/adapter/rpc.js
CHANGED
|
@@ -35,7 +35,9 @@ export function createPapiStatementStoreAdapter(lazyClient) {
|
|
|
35
35
|
const transportProvider = {
|
|
36
36
|
queryStatements(topics, destination) {
|
|
37
37
|
return fromPromise(sdk.getStatements({
|
|
38
|
+
// @ts-expect-error unmatched types of @polkadot-api/sdk-statement and @polkadot-api/substrate-bindings
|
|
38
39
|
topics: topics.map(t => Binary.fromBytes(t)),
|
|
40
|
+
// @ts-expect-error unmatched types of @polkadot-api/sdk-statement and @polkadot-api/substrate-bindings
|
|
39
41
|
dest: destination ? Binary.fromBytes(destination) : null,
|
|
40
42
|
}), toError);
|
|
41
43
|
},
|
package/dist/session/session.js
CHANGED
|
@@ -15,8 +15,11 @@ export function createSession({ localAccount, remoteAccount, statementStore, enc
|
|
|
15
15
|
.encrypt(data)
|
|
16
16
|
.map(data => ({
|
|
17
17
|
priority: getPriority(now()),
|
|
18
|
+
// @ts-expect-error unmatched types of @polkadot-api/sdk-statement and @polkadot-api/substrate-bindings
|
|
18
19
|
channel: Binary.fromBytes(channel),
|
|
20
|
+
// @ts-expect-error unmatched types of @polkadot-api/sdk-statement and @polkadot-api/substrate-bindings
|
|
19
21
|
topics: [Binary.fromBytes(sessionId)],
|
|
22
|
+
// @ts-expect-error unmatched types of @polkadot-api/sdk-statement and @polkadot-api/substrate-bindings
|
|
20
23
|
data: Binary.fromBytes(data),
|
|
21
24
|
}))
|
|
22
25
|
.asyncAndThen(prover.generateMessageProof)
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novasamatech/statement-store",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.5",
|
|
5
5
|
"description": "Statement store integration",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/Polkadot-Community-Foundation/triangle-js-sdks.git"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"polkadot"
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@polkadot-api/sdk-statement": "^0.3.0",
|
|
28
|
-
"@polkadot-api/substrate-bindings": "^0.
|
|
28
|
+
"@polkadot-api/substrate-bindings": "^0.17.0",
|
|
29
29
|
"@polkadot-api/utils": "0.2.0",
|
|
30
30
|
"@polkadot-labs/hdkd-helpers": "0.0.27",
|
|
31
31
|
"@noble/hashes": "2.0.1",
|
|
32
32
|
"@noble/ciphers": "2.1.1",
|
|
33
33
|
"@scure/sr25519": "1.0.0",
|
|
34
|
-
"polkadot-api": "^1.23.
|
|
34
|
+
"polkadot-api": "^1.23.3",
|
|
35
35
|
"neverthrow": "^8.2.0",
|
|
36
36
|
"scale-ts": "1.6.1"
|
|
37
37
|
},
|