@talismn/scale 0.2.1 → 0.3.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDynamicBuilder } from "@polkadot-api/metadata-builders";
|
|
2
2
|
export { getDynamicBuilder, getLookupFn, type MetadataLookup, } from "@polkadot-api/metadata-builders";
|
|
3
3
|
export type { Codec, UnifiedMetadata } from "@polkadot-api/substrate-bindings";
|
|
4
|
-
export { decAnyMetadata, unifyMetadata, metadata } from "@polkadot-api/substrate-bindings";
|
|
5
|
-
export { toHex, fromHex } from "@polkadot-api/utils";
|
|
4
|
+
export { decAnyMetadata, unifyMetadata, metadata, Binary, FixedSizeBinary, } from "@polkadot-api/substrate-bindings";
|
|
5
|
+
export { toHex, fromHex, mergeUint8 } from "@polkadot-api/utils";
|
|
6
6
|
/** Constant: https://docs.substrate.io/build/application-development/#metadata-format */
|
|
7
7
|
export declare const magicNumber = 1635018093;
|
|
8
8
|
export type MetadataBuilder = ReturnType<typeof getDynamicBuilder>;
|
|
@@ -418,6 +418,10 @@ Object.defineProperty(exports, "getLookupFn", {
|
|
|
418
418
|
enumerable: true,
|
|
419
419
|
get: function () { return metadataBuilders.getLookupFn; }
|
|
420
420
|
});
|
|
421
|
+
Object.defineProperty(exports, "Binary", {
|
|
422
|
+
enumerable: true,
|
|
423
|
+
get: function () { return substrateBindings.Binary; }
|
|
424
|
+
});
|
|
421
425
|
Object.defineProperty(exports, "Blake2128", {
|
|
422
426
|
enumerable: true,
|
|
423
427
|
get: function () { return substrateBindings.Blake2128; }
|
|
@@ -438,6 +442,10 @@ Object.defineProperty(exports, "Blake3256Concat", {
|
|
|
438
442
|
enumerable: true,
|
|
439
443
|
get: function () { return substrateBindings.Blake3256Concat; }
|
|
440
444
|
});
|
|
445
|
+
Object.defineProperty(exports, "FixedSizeBinary", {
|
|
446
|
+
enumerable: true,
|
|
447
|
+
get: function () { return substrateBindings.FixedSizeBinary; }
|
|
448
|
+
});
|
|
441
449
|
Object.defineProperty(exports, "Twox128", {
|
|
442
450
|
enumerable: true,
|
|
443
451
|
get: function () { return substrateBindings.Twox128; }
|
|
@@ -466,6 +474,10 @@ Object.defineProperty(exports, "fromHex", {
|
|
|
466
474
|
enumerable: true,
|
|
467
475
|
get: function () { return utils.fromHex; }
|
|
468
476
|
});
|
|
477
|
+
Object.defineProperty(exports, "mergeUint8", {
|
|
478
|
+
enumerable: true,
|
|
479
|
+
get: function () { return utils.mergeUint8; }
|
|
480
|
+
});
|
|
469
481
|
Object.defineProperty(exports, "toHex", {
|
|
470
482
|
enumerable: true,
|
|
471
483
|
get: function () { return utils.toHex; }
|
|
@@ -418,6 +418,10 @@ Object.defineProperty(exports, "getLookupFn", {
|
|
|
418
418
|
enumerable: true,
|
|
419
419
|
get: function () { return metadataBuilders.getLookupFn; }
|
|
420
420
|
});
|
|
421
|
+
Object.defineProperty(exports, "Binary", {
|
|
422
|
+
enumerable: true,
|
|
423
|
+
get: function () { return substrateBindings.Binary; }
|
|
424
|
+
});
|
|
421
425
|
Object.defineProperty(exports, "Blake2128", {
|
|
422
426
|
enumerable: true,
|
|
423
427
|
get: function () { return substrateBindings.Blake2128; }
|
|
@@ -438,6 +442,10 @@ Object.defineProperty(exports, "Blake3256Concat", {
|
|
|
438
442
|
enumerable: true,
|
|
439
443
|
get: function () { return substrateBindings.Blake3256Concat; }
|
|
440
444
|
});
|
|
445
|
+
Object.defineProperty(exports, "FixedSizeBinary", {
|
|
446
|
+
enumerable: true,
|
|
447
|
+
get: function () { return substrateBindings.FixedSizeBinary; }
|
|
448
|
+
});
|
|
441
449
|
Object.defineProperty(exports, "Twox128", {
|
|
442
450
|
enumerable: true,
|
|
443
451
|
get: function () { return substrateBindings.Twox128; }
|
|
@@ -466,6 +474,10 @@ Object.defineProperty(exports, "fromHex", {
|
|
|
466
474
|
enumerable: true,
|
|
467
475
|
get: function () { return utils.fromHex; }
|
|
468
476
|
});
|
|
477
|
+
Object.defineProperty(exports, "mergeUint8", {
|
|
478
|
+
enumerable: true,
|
|
479
|
+
get: function () { return utils.mergeUint8; }
|
|
480
|
+
});
|
|
469
481
|
Object.defineProperty(exports, "toHex", {
|
|
470
482
|
enumerable: true,
|
|
471
483
|
get: function () { return utils.toHex; }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getLookupFn, getDynamicBuilder } from '@polkadot-api/metadata-builders';
|
|
2
2
|
export { getDynamicBuilder, getLookupFn } from '@polkadot-api/metadata-builders';
|
|
3
3
|
import { metadata, Binary, decAnyMetadata, unifyMetadata, Twox128 } from '@polkadot-api/substrate-bindings';
|
|
4
|
-
export { Blake2128, Blake2128Concat, Blake2256, Blake3256, Blake3256Concat, Twox128, Twox256, Twox64Concat, decAnyMetadata, metadata, unifyMetadata } from '@polkadot-api/substrate-bindings';
|
|
4
|
+
export { Binary, Blake2128, Blake2128Concat, Blake2256, Blake3256, Blake3256Concat, FixedSizeBinary, Twox128, Twox256, Twox64Concat, decAnyMetadata, metadata, unifyMetadata } from '@polkadot-api/substrate-bindings';
|
|
5
5
|
import { toHex } from '@polkadot-api/utils';
|
|
6
|
-
export { fromHex, toHex } from '@polkadot-api/utils';
|
|
6
|
+
export { fromHex, mergeUint8, toHex } from '@polkadot-api/utils';
|
|
7
7
|
import anylogger from 'anylogger';
|
|
8
8
|
import { Struct, u8, u32 } from 'scale-ts';
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/scale",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"author": "Talisman",
|
|
5
5
|
"homepage": "https://talisman.xyz",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"ts-jest": "^29.2.5",
|
|
35
35
|
"typescript": "^5.6.3",
|
|
36
36
|
"@talismn/eslint-config": "0.0.3",
|
|
37
|
-
"@talismn/tsconfig": "0.0.
|
|
37
|
+
"@talismn/tsconfig": "0.0.3"
|
|
38
38
|
},
|
|
39
39
|
"eslintConfig": {
|
|
40
40
|
"root": true,
|