@talismn/scale 0.0.0-pr2075-20250710124714 → 0.0.0-pr2075-20250710131942
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ScaleStorageCoder = ReturnType<
|
|
1
|
+
import { MetadataBuilder } from "../papito";
|
|
2
|
+
type ScaleStorageCoder = ReturnType<MetadataBuilder["buildStorage"]>;
|
|
3
3
|
export declare const decodeScale: <T>(scaleCoder: ScaleStorageCoder | undefined, change: string | null, error?: string) => T | null;
|
|
4
4
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ScaleStorageCoder = ReturnType<
|
|
1
|
+
import { MetadataBuilder } from "../papito";
|
|
2
|
+
export type ScaleStorageCoder = ReturnType<MetadataBuilder["buildStorage"]>;
|
|
3
3
|
export declare const encodeStateKey: (scaleCoder: ScaleStorageCoder | undefined, error?: string, ...args: any[]) => `0x${string}` | undefined;
|
|
@@ -360,13 +360,10 @@ const papiStringify = (value, space) => {
|
|
|
360
360
|
};
|
|
361
361
|
|
|
362
362
|
const parseMetadataRpc = metadataRpc => {
|
|
363
|
-
// const start = performance.now()
|
|
364
363
|
const metadata = substrateBindings.decAnyMetadata(metadataRpc);
|
|
365
364
|
const unifiedMetadata = substrateBindings.unifyMetadata(metadata);
|
|
366
365
|
const lookupFn = metadataBuilders.getLookupFn(unifiedMetadata);
|
|
367
366
|
const builder = metadataBuilders.getDynamicBuilder(lookupFn);
|
|
368
|
-
// log.debug(`parseMetadataRpc executed in ${(performance.now() - start).toFixed(2)}ms`)
|
|
369
|
-
|
|
370
367
|
return {
|
|
371
368
|
metadata,
|
|
372
369
|
unifiedMetadata,
|
|
@@ -360,13 +360,10 @@ const papiStringify = (value, space) => {
|
|
|
360
360
|
};
|
|
361
361
|
|
|
362
362
|
const parseMetadataRpc = metadataRpc => {
|
|
363
|
-
// const start = performance.now()
|
|
364
363
|
const metadata = substrateBindings.decAnyMetadata(metadataRpc);
|
|
365
364
|
const unifiedMetadata = substrateBindings.unifyMetadata(metadata);
|
|
366
365
|
const lookupFn = metadataBuilders.getLookupFn(unifiedMetadata);
|
|
367
366
|
const builder = metadataBuilders.getDynamicBuilder(lookupFn);
|
|
368
|
-
// log.debug(`parseMetadataRpc executed in ${(performance.now() - start).toFixed(2)}ms`)
|
|
369
|
-
|
|
370
367
|
return {
|
|
371
368
|
metadata,
|
|
372
369
|
unifiedMetadata,
|
|
@@ -357,13 +357,10 @@ const papiStringify = (value, space) => {
|
|
|
357
357
|
};
|
|
358
358
|
|
|
359
359
|
const parseMetadataRpc = metadataRpc => {
|
|
360
|
-
// const start = performance.now()
|
|
361
360
|
const metadata = decAnyMetadata(metadataRpc);
|
|
362
361
|
const unifiedMetadata = unifyMetadata(metadata);
|
|
363
362
|
const lookupFn = getLookupFn(unifiedMetadata);
|
|
364
363
|
const builder = getDynamicBuilder(lookupFn);
|
|
365
|
-
// log.debug(`parseMetadataRpc executed in ${(performance.now() - start).toFixed(2)}ms`)
|
|
366
|
-
|
|
367
364
|
return {
|
|
368
365
|
metadata,
|
|
369
366
|
unifiedMetadata,
|