@polkadot-api/substrate-bindings 0.20.1-canary.e30969c → 0.20.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blake2.js","sources":["../../src/hashes/blake2.ts"],"sourcesContent":["import { mergeUint8 } from \"@polkadot-api/utils\"\nimport { blake2b } from \"@noble/hashes/blake2.js\"\n\nconst len32 = { dkLen: 32 }\nexport const Blake2256 = (encoded: Uint8Array)
|
|
1
|
+
{"version":3,"file":"blake2.js","sources":["../../src/hashes/blake2.ts"],"sourcesContent":["import { mergeUint8 } from \"@polkadot-api/utils\"\nimport { blake2b } from \"@noble/hashes/blake2.js\"\n\nconst len32 = { dkLen: 32 }\nexport const Blake2256 = (encoded: Uint8Array): Uint8Array =>\n blake2b(encoded, len32)\n\nconst len16 = { dkLen: 16 }\nexport const Blake2128 = (encoded: Uint8Array): Uint8Array =>\n blake2b(encoded, len16)\n\nexport const Blake2128Concat = (encoded: Uint8Array) =>\n mergeUint8([Blake2128(encoded), encoded])\n"],"names":[],"mappings":";;;AAGA,MAAM,KAAA,GAAQ,EAAE,KAAA,EAAO,EAAA,EAAG;AACnB,MAAM,SAAA,GAAY,CAAC,OAAA,KACxB,OAAA,CAAQ,SAAS,KAAK;AAExB,MAAM,KAAA,GAAQ,EAAE,KAAA,EAAO,EAAA,EAAG;AACnB,MAAM,SAAA,GAAY,CAAC,OAAA,KACxB,OAAA,CAAQ,SAAS,KAAK;AAEjB,MAAM,eAAA,GAAkB,CAAC,OAAA,KAC9B,UAAA,CAAW,CAAC,SAAA,CAAU,OAAO,CAAA,EAAG,OAAO,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blake3.js","sources":["../../src/hashes/blake3.ts"],"sourcesContent":["import { mergeUint8 } from \"@polkadot-api/utils\"\nimport { blake3 } from \"@noble/hashes/blake3.js\"\n\nconst len32 = { dkLen: 32 }\nexport const Blake3256 = (encoded: Uint8Array)
|
|
1
|
+
{"version":3,"file":"blake3.js","sources":["../../src/hashes/blake3.ts"],"sourcesContent":["import { mergeUint8 } from \"@polkadot-api/utils\"\nimport { blake3 } from \"@noble/hashes/blake3.js\"\n\nconst len32 = { dkLen: 32 }\nexport const Blake3256 = (encoded: Uint8Array): Uint8Array =>\n blake3(encoded, len32)\n\nexport const Blake3256Concat = (encoded: Uint8Array) =>\n mergeUint8([Blake3256(encoded), encoded])\n"],"names":[],"mappings":";;;AAGA,MAAM,KAAA,GAAQ,EAAE,KAAA,EAAO,EAAA,EAAG;AACnB,MAAM,SAAA,GAAY,CAAC,OAAA,KACxB,MAAA,CAAO,SAAS,KAAK;AAEhB,MAAM,eAAA,GAAkB,CAAC,OAAA,KAC9B,UAAA,CAAW,CAAC,SAAA,CAAU,OAAO,CAAA,EAAG,OAAO,CAAC;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2210,11 +2210,11 @@ type ExtrinsicFormat = {
|
|
|
2210
2210
|
};
|
|
2211
2211
|
declare const extrinsicFormat: scale_ts.Codec<ExtrinsicFormat>;
|
|
2212
2212
|
|
|
2213
|
-
declare const Blake2256: (encoded: Uint8Array) => Uint8Array
|
|
2214
|
-
declare const Blake2128: (encoded: Uint8Array) => Uint8Array
|
|
2213
|
+
declare const Blake2256: (encoded: Uint8Array) => Uint8Array;
|
|
2214
|
+
declare const Blake2128: (encoded: Uint8Array) => Uint8Array;
|
|
2215
2215
|
declare const Blake2128Concat: (encoded: Uint8Array) => Uint8Array<ArrayBufferLike>;
|
|
2216
2216
|
|
|
2217
|
-
declare const Blake3256: (encoded: Uint8Array) => Uint8Array
|
|
2217
|
+
declare const Blake3256: (encoded: Uint8Array) => Uint8Array;
|
|
2218
2218
|
declare const Blake3256Concat: (encoded: Uint8Array) => Uint8Array<ArrayBufferLike>;
|
|
2219
2219
|
|
|
2220
2220
|
declare const Identity: (encoded: Uint8Array) => Uint8Array;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polkadot-api/substrate-bindings",
|
|
3
|
-
"version": "0.20.1
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"author": "Josep M Sobrepere (https://github.com/josepot)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@noble/hashes": "^2.0
|
|
28
|
+
"@noble/hashes": "^2.2.0",
|
|
29
29
|
"@scure/base": "^2.0.0",
|
|
30
30
|
"scale-ts": "^1.6.1",
|
|
31
|
-
"@polkadot-api/utils": "0.4.
|
|
31
|
+
"@polkadot-api/utils": "0.4.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"bigint-conversion": "^2.4.3",
|