@xyo-network/diviner-payload-stats 5.5.2 → 5.5.4

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.
@@ -0,0 +1,10 @@
1
+ import type { DivinerConfig } from '@xyo-network/diviner-model';
2
+ import { type Payload } from '@xyo-network/payload-model';
3
+ export declare const PayloadStatsDivinerConfigSchema: string & {
4
+ readonly __schema: true;
5
+ };
6
+ export type PayloadStatsDivinerConfigSchema = typeof PayloadStatsDivinerConfigSchema;
7
+ export type PayloadStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<T & {
8
+ schema: PayloadStatsDivinerConfigSchema;
9
+ }>;
10
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAInE,eAAO,MAAM,+BAA+B;;CAAwD,CAAA;AACpG,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAA;AAEpF,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,aAAa,CAChF,CAAC,GAAG;IACF,MAAM,EAAE,+BAA+B,CAAA;CACxC,CACF,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { Address } from '@xylabs/sdk-js';
2
+ import { type Payload, type Schema } from '@xyo-network/payload-model';
3
+ import type { PayloadStatsDivinerParams } from './Params.ts';
4
+ import { PayloadStatsDiviner } from './PayloadStatsDiviner.ts';
5
+ export declare class MemoryPayloadStatsDiviner<TParams extends PayloadStatsDivinerParams = PayloadStatsDivinerParams> extends PayloadStatsDiviner<TParams> {
6
+ static readonly configSchemas: Schema[];
7
+ static readonly defaultConfigSchema: Schema;
8
+ protected divineAddress(address: Address): Promise<number>;
9
+ protected divineAllAddresses(): Promise<number>;
10
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
11
+ }
12
+ //# sourceMappingURL=MemoryPayloadStatsDiviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MemoryPayloadStatsDiviner.d.ts","sourceRoot":"","sources":["../../src/MemoryPayloadStatsDiviner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI7C,OAAO,EACU,KAAK,OAAO,EAAE,KAAK,MAAM,EACzC,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAK9D,qBAAa,yBAAyB,CAAC,OAAO,SAAS,yBAAyB,GAAG,yBAAyB,CAAE,SAAQ,mBAAmB,CAAC,OAAO,CAAC;IAChJ,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA4D;IAC5G,gBAAyB,mBAAmB,EAAE,MAAM,CAAkC;cAEtE,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;cAShD,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;cAM5B,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAcjF"}
@@ -0,0 +1,5 @@
1
+ import type { DivinerParams } from '@xyo-network/diviner-model';
2
+ import type { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import type { PayloadStatsDivinerConfig } from './Config.ts';
4
+ export type PayloadStatsDivinerParams = DivinerParams<AnyConfigSchema<PayloadStatsDivinerConfig>>;
5
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAE5D,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,eAAe,CAAC,yBAAyB,CAAC,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { PayloadStatsDivinerSchema } from './Schema.ts';
3
+ export type PayloadStatsPayload = Payload<{
4
+ count: number;
5
+ schema: PayloadStatsDivinerSchema;
6
+ }>;
7
+ export declare const isPayloadStatsPayload: (x?: Payload | null) => x is PayloadStatsPayload;
8
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAEvD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,yBAAyB,CAAA;CAAE,CAAC,CAAA;AAC/F,eAAO,MAAM,qBAAqB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,mBAA8D,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model';
3
+ import type { Payload } from '@xyo-network/payload-model';
4
+ import type { PayloadStatsDivinerParams } from './Params.ts';
5
+ export declare abstract class PayloadStatsDiviner<TParams extends PayloadStatsDivinerParams = PayloadStatsDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {
6
+ }
7
+ //# sourceMappingURL=PayloadStatsDiviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayloadStatsDiviner.d.ts","sourceRoot":"","sources":["../../src/PayloadStatsDiviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACzF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAE5D,8BAAsB,mBAAmB,CACvC,OAAO,SAAS,yBAAyB,GAAG,yBAAyB,EACrE,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,EAC9B,UAAU,SAAS,sBAAsB,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAChH,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EACnC,GAAG,EACH,IAAI,CACL,CACD,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC;CAAG"}
@@ -0,0 +1,10 @@
1
+ import { type Payload, type Query } from '@xyo-network/payload-model';
2
+ export declare const PayloadStatsQuerySchema: string & {
3
+ readonly __schema: true;
4
+ };
5
+ export type PayloadStatsQuerySchema = typeof PayloadStatsQuerySchema;
6
+ export type PayloadStatsQueryPayload = Query<{
7
+ schema: PayloadStatsQuerySchema;
8
+ }>;
9
+ export declare const isPayloadStatsQueryPayload: (x?: Payload | null) => x is PayloadStatsQueryPayload;
10
+ //# sourceMappingURL=Query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,KAAK,EACnC,MAAM,4BAA4B,CAAA;AAInC,eAAO,MAAM,uBAAuB;;CAAuD,CAAA;AAC3F,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,uBAAuB,CAAA;CAAE,CAAC,CAAA;AACjF,eAAO,MAAM,0BAA0B,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,wBAAiE,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const PayloadStatsDivinerSchema: "network.xyo.diviner.payload.stats" & {
2
+ readonly __schema: true;
3
+ };
4
+ export type PayloadStatsDivinerSchema = typeof PayloadStatsDivinerSchema;
5
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB;;CAAsD,CAAA;AAC5F,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './PayloadStatsDiviner.ts';
2
+ //# sourceMappingURL=abstract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../src/abstract.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,8 @@
1
+ // src/PayloadStatsDiviner.ts
2
+ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
3
+ var PayloadStatsDiviner = class extends AbstractDiviner {
4
+ };
5
+ export {
6
+ PayloadStatsDiviner
7
+ };
8
+ //# sourceMappingURL=abstract.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/PayloadStatsDiviner.ts"],"sourcesContent":["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { PayloadStatsDivinerParams } from './Params.ts'\n\nexport abstract class PayloadStatsDiviner<\n TParams extends PayloadStatsDivinerParams = PayloadStatsDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {}\n"],"mappings":";AAAA,SAAS,uBAAuB;AAMzB,IAAe,sBAAf,cASG,gBAAgD;AAAC;","names":[]}
@@ -1,4 +1,4 @@
1
- export * from '@xyo-network/diviner-payload-stats-abstract';
2
- export * from '@xyo-network/diviner-payload-stats-memory';
3
- export * from '@xyo-network/diviner-payload-stats-model';
1
+ export * from './abstract.ts';
2
+ export * from './memory.ts';
3
+ export * from './model.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAA;AAC3D,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
@@ -1,5 +1,66 @@
1
- // src/index.ts
2
- export * from "@xyo-network/diviner-payload-stats-abstract";
3
- export * from "@xyo-network/diviner-payload-stats-memory";
4
- export * from "@xyo-network/diviner-payload-stats-model";
1
+ // src/PayloadStatsDiviner.ts
2
+ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
3
+ var PayloadStatsDiviner = class extends AbstractDiviner {
4
+ };
5
+
6
+ // src/MemoryPayloadStatsDiviner.ts
7
+ import { assertEx } from "@xylabs/sdk-js";
8
+ import { isBoundWitness } from "@xyo-network/boundwitness-model";
9
+ import { PayloadBuilder } from "@xyo-network/payload-builder";
10
+ import {
11
+ isStorageMeta
12
+ } from "@xyo-network/payload-model";
13
+
14
+ // src/Config.ts
15
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
16
+
17
+ // src/Schema.ts
18
+ import { asSchema } from "@xyo-network/payload-model";
19
+ var PayloadStatsDivinerSchema = asSchema("network.xyo.diviner.payload.stats", true);
20
+
21
+ // src/Config.ts
22
+ var PayloadStatsDivinerConfigSchema = asSchema2(`${PayloadStatsDivinerSchema}.config`, true);
23
+
24
+ // src/Query.ts
25
+ import {
26
+ asSchema as asSchema3
27
+ } from "@xyo-network/payload-model";
28
+ var PayloadStatsQuerySchema = asSchema3(`${PayloadStatsDivinerSchema}.query`, true);
29
+ var isPayloadStatsQueryPayload = (x) => x?.schema === PayloadStatsQuerySchema;
30
+
31
+ // src/MemoryPayloadStatsDiviner.ts
32
+ var MemoryPayloadStatsDiviner = class extends PayloadStatsDiviner {
33
+ static configSchemas = [...super.configSchemas, PayloadStatsDivinerConfigSchema];
34
+ static defaultConfigSchema = PayloadStatsDivinerConfigSchema;
35
+ async divineAddress(address) {
36
+ const archivist = assertEx(await this.archivistInstance(), () => "Unable to resolve archivist");
37
+ return (await archivist.next({ limit: 2e4 })).filter((x) => isBoundWitness(x) && isStorageMeta(x)).filter((bw) => bw.addresses.includes(address)).map((bw) => bw.payload_hashes.length).reduce((total, count) => total + count, 0);
38
+ }
39
+ async divineAllAddresses() {
40
+ const archivist = assertEx(await this.archivistInstance(), () => "Unable to resolve archivist");
41
+ const all = await archivist.next({ limit: 2e4 });
42
+ return all.length;
43
+ }
44
+ async divineHandler(payloads) {
45
+ const query = payloads?.find(isPayloadStatsQueryPayload);
46
+ if (!query) return [];
47
+ const addresses = query?.address ? Array.isArray(query?.address) ? query.address : [query.address] : void 0;
48
+ const counts = addresses ? await Promise.all(addresses.map((address) => this.divineAddress(address))) : [await this.divineAllAddresses()];
49
+ return await Promise.all(
50
+ counts.map((count) => new PayloadBuilder({ schema: PayloadStatsDivinerSchema }).fields({ count }).build())
51
+ );
52
+ }
53
+ };
54
+
55
+ // src/Payload.ts
56
+ var isPayloadStatsPayload = (x) => x?.schema === PayloadStatsDivinerSchema;
57
+ export {
58
+ MemoryPayloadStatsDiviner,
59
+ PayloadStatsDiviner,
60
+ PayloadStatsDivinerConfigSchema,
61
+ PayloadStatsDivinerSchema,
62
+ PayloadStatsQuerySchema,
63
+ isPayloadStatsPayload,
64
+ isPayloadStatsQueryPayload
65
+ };
5
66
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@xyo-network/diviner-payload-stats-abstract'\nexport * from '@xyo-network/diviner-payload-stats-memory'\nexport * from '@xyo-network/diviner-payload-stats-model'\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/PayloadStatsDiviner.ts","../../src/MemoryPayloadStatsDiviner.ts","../../src/Config.ts","../../src/Schema.ts","../../src/Query.ts","../../src/Payload.ts"],"sourcesContent":["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { PayloadStatsDivinerParams } from './Params.ts'\n\nexport abstract class PayloadStatsDiviner<\n TParams extends PayloadStatsDivinerParams = PayloadStatsDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {}\n","import type { Address } from '@xylabs/sdk-js'\nimport { assertEx } from '@xylabs/sdk-js'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n isStorageMeta, type Payload, type Schema,\n} from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerConfigSchema } from './Config.ts'\nimport type { PayloadStatsDivinerParams } from './Params.ts'\nimport type { PayloadStatsPayload } from './Payload.ts'\nimport { PayloadStatsDiviner } from './PayloadStatsDiviner.ts'\nimport type { PayloadStatsQueryPayload } from './Query.ts'\nimport { isPayloadStatsQueryPayload } from './Query.ts'\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport class MemoryPayloadStatsDiviner<TParams extends PayloadStatsDivinerParams = PayloadStatsDivinerParams> extends PayloadStatsDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, PayloadStatsDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = PayloadStatsDivinerConfigSchema\n\n protected async divineAddress(address: Address): Promise<number> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n return (await archivist.next({ limit: 20_000 }))\n .filter(x => isBoundWitness(x) && isStorageMeta(x))\n .filter(bw => bw.addresses.includes(address))\n .map(bw => bw.payload_hashes.length)\n .reduce((total, count) => total + count, 0)\n }\n\n protected async divineAllAddresses(): Promise<number> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const all = await archivist.next({ limit: 20_000 })\n return all.length\n }\n\n protected override async divineHandler(payloads?: Payload[]): Promise<Payload[]> {\n const query = payloads?.find<PayloadStatsQueryPayload>(isPayloadStatsQueryPayload)\n if (!query) return []\n const addresses\n = query?.address\n ? Array.isArray(query?.address)\n ? query.address\n : [query.address]\n : undefined\n const counts = addresses ? await Promise.all(addresses.map(address => this.divineAddress(address))) : [await this.divineAllAddresses()]\n return await Promise.all(\n counts.map(count => new PayloadBuilder<PayloadStatsPayload>({ schema: PayloadStatsDivinerSchema }).fields({ count }).build()),\n )\n }\n}\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsDivinerConfigSchema = asSchema(`${PayloadStatsDivinerSchema}.config`, true)\nexport type PayloadStatsDivinerConfigSchema = typeof PayloadStatsDivinerConfigSchema\n\nexport type PayloadStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: PayloadStatsDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const PayloadStatsDivinerSchema = asSchema('network.xyo.diviner.payload.stats', true)\nexport type PayloadStatsDivinerSchema = typeof PayloadStatsDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsQuerySchema = asSchema(`${PayloadStatsDivinerSchema}.query`, true)\nexport type PayloadStatsQuerySchema = typeof PayloadStatsQuerySchema\n\nexport type PayloadStatsQueryPayload = Query<{ schema: PayloadStatsQuerySchema }>\nexport const isPayloadStatsQueryPayload = (x?: Payload | null): x is PayloadStatsQueryPayload => x?.schema === PayloadStatsQuerySchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport type PayloadStatsPayload = Payload<{ count: number; schema: PayloadStatsDivinerSchema }>\nexport const isPayloadStatsPayload = (x?: Payload | null): x is PayloadStatsPayload => x?.schema === PayloadStatsDivinerSchema\n"],"mappings":";AAAA,SAAS,uBAAuB;AAMzB,IAAe,sBAAf,cASG,gBAAgD;AAAC;;;ACd3D,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,OACK;;;ACLP,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,4BAA4B,SAAS,qCAAqC,IAAI;;;ADGpF,IAAM,kCAAkCC,UAAS,GAAG,yBAAyB,WAAW,IAAI;;;AELnG;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,0BAA0BC,UAAS,GAAG,yBAAyB,UAAU,IAAI;AAInF,IAAM,6BAA6B,CAAC,MAAsD,GAAG,WAAW;;;AHMxG,IAAM,4BAAN,cAA+G,oBAA6B;AAAA,EACjJ,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,+BAA+B;AAAA,EAC3G,OAAyB,sBAA8B;AAAA,EAEvD,MAAgB,cAAc,SAAmC;AAC/D,UAAM,YAAY,SAAS,MAAM,KAAK,kBAAkB,GAAG,MAAM,6BAA6B;AAC9F,YAAQ,MAAM,UAAU,KAAK,EAAE,OAAO,IAAO,CAAC,GAC3C,OAAO,OAAK,eAAe,CAAC,KAAK,cAAc,CAAC,CAAC,EACjD,OAAO,QAAM,GAAG,UAAU,SAAS,OAAO,CAAC,EAC3C,IAAI,QAAM,GAAG,eAAe,MAAM,EAClC,OAAO,CAAC,OAAO,UAAU,QAAQ,OAAO,CAAC;AAAA,EAC9C;AAAA,EAEA,MAAgB,qBAAsC;AACpD,UAAM,YAAY,SAAS,MAAM,KAAK,kBAAkB,GAAG,MAAM,6BAA6B;AAC9F,UAAM,MAAM,MAAM,UAAU,KAAK,EAAE,OAAO,IAAO,CAAC;AAClD,WAAO,IAAI;AAAA,EACb;AAAA,EAEA,MAAyB,cAAc,UAA0C;AAC/E,UAAM,QAAQ,UAAU,KAA+B,0BAA0B;AACjF,QAAI,CAAC,MAAO,QAAO,CAAC;AACpB,UAAM,YACF,OAAO,UACL,MAAM,QAAQ,OAAO,OAAO,IAC1B,MAAM,UACN,CAAC,MAAM,OAAO,IAChB;AACN,UAAM,SAAS,YAAY,MAAM,QAAQ,IAAI,UAAU,IAAI,aAAW,KAAK,cAAc,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,mBAAmB,CAAC;AACtI,WAAO,MAAM,QAAQ;AAAA,MACnB,OAAO,IAAI,WAAS,IAAI,eAAoC,EAAE,QAAQ,0BAA0B,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC;AAAA,IAC9H;AAAA,EACF;AACF;;;AI5CO,IAAM,wBAAwB,CAAC,MAAiD,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
@@ -0,0 +1,2 @@
1
+ export * from './MemoryPayloadStatsDiviner.ts';
2
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/memory.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA"}
@@ -0,0 +1,57 @@
1
+ // src/MemoryPayloadStatsDiviner.ts
2
+ import { assertEx } from "@xylabs/sdk-js";
3
+ import { isBoundWitness } from "@xyo-network/boundwitness-model";
4
+ import { PayloadBuilder } from "@xyo-network/payload-builder";
5
+ import {
6
+ isStorageMeta
7
+ } from "@xyo-network/payload-model";
8
+
9
+ // src/Config.ts
10
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
11
+
12
+ // src/Schema.ts
13
+ import { asSchema } from "@xyo-network/payload-model";
14
+ var PayloadStatsDivinerSchema = asSchema("network.xyo.diviner.payload.stats", true);
15
+
16
+ // src/Config.ts
17
+ var PayloadStatsDivinerConfigSchema = asSchema2(`${PayloadStatsDivinerSchema}.config`, true);
18
+
19
+ // src/PayloadStatsDiviner.ts
20
+ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
21
+ var PayloadStatsDiviner = class extends AbstractDiviner {
22
+ };
23
+
24
+ // src/Query.ts
25
+ import {
26
+ asSchema as asSchema3
27
+ } from "@xyo-network/payload-model";
28
+ var PayloadStatsQuerySchema = asSchema3(`${PayloadStatsDivinerSchema}.query`, true);
29
+ var isPayloadStatsQueryPayload = (x) => x?.schema === PayloadStatsQuerySchema;
30
+
31
+ // src/MemoryPayloadStatsDiviner.ts
32
+ var MemoryPayloadStatsDiviner = class extends PayloadStatsDiviner {
33
+ static configSchemas = [...super.configSchemas, PayloadStatsDivinerConfigSchema];
34
+ static defaultConfigSchema = PayloadStatsDivinerConfigSchema;
35
+ async divineAddress(address) {
36
+ const archivist = assertEx(await this.archivistInstance(), () => "Unable to resolve archivist");
37
+ return (await archivist.next({ limit: 2e4 })).filter((x) => isBoundWitness(x) && isStorageMeta(x)).filter((bw) => bw.addresses.includes(address)).map((bw) => bw.payload_hashes.length).reduce((total, count) => total + count, 0);
38
+ }
39
+ async divineAllAddresses() {
40
+ const archivist = assertEx(await this.archivistInstance(), () => "Unable to resolve archivist");
41
+ const all = await archivist.next({ limit: 2e4 });
42
+ return all.length;
43
+ }
44
+ async divineHandler(payloads) {
45
+ const query = payloads?.find(isPayloadStatsQueryPayload);
46
+ if (!query) return [];
47
+ const addresses = query?.address ? Array.isArray(query?.address) ? query.address : [query.address] : void 0;
48
+ const counts = addresses ? await Promise.all(addresses.map((address) => this.divineAddress(address))) : [await this.divineAllAddresses()];
49
+ return await Promise.all(
50
+ counts.map((count) => new PayloadBuilder({ schema: PayloadStatsDivinerSchema }).fields({ count }).build())
51
+ );
52
+ }
53
+ };
54
+ export {
55
+ MemoryPayloadStatsDiviner
56
+ };
57
+ //# sourceMappingURL=memory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/MemoryPayloadStatsDiviner.ts","../../src/Config.ts","../../src/Schema.ts","../../src/PayloadStatsDiviner.ts","../../src/Query.ts"],"sourcesContent":["import type { Address } from '@xylabs/sdk-js'\nimport { assertEx } from '@xylabs/sdk-js'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n isStorageMeta, type Payload, type Schema,\n} from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerConfigSchema } from './Config.ts'\nimport type { PayloadStatsDivinerParams } from './Params.ts'\nimport type { PayloadStatsPayload } from './Payload.ts'\nimport { PayloadStatsDiviner } from './PayloadStatsDiviner.ts'\nimport type { PayloadStatsQueryPayload } from './Query.ts'\nimport { isPayloadStatsQueryPayload } from './Query.ts'\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport class MemoryPayloadStatsDiviner<TParams extends PayloadStatsDivinerParams = PayloadStatsDivinerParams> extends PayloadStatsDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, PayloadStatsDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = PayloadStatsDivinerConfigSchema\n\n protected async divineAddress(address: Address): Promise<number> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n return (await archivist.next({ limit: 20_000 }))\n .filter(x => isBoundWitness(x) && isStorageMeta(x))\n .filter(bw => bw.addresses.includes(address))\n .map(bw => bw.payload_hashes.length)\n .reduce((total, count) => total + count, 0)\n }\n\n protected async divineAllAddresses(): Promise<number> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const all = await archivist.next({ limit: 20_000 })\n return all.length\n }\n\n protected override async divineHandler(payloads?: Payload[]): Promise<Payload[]> {\n const query = payloads?.find<PayloadStatsQueryPayload>(isPayloadStatsQueryPayload)\n if (!query) return []\n const addresses\n = query?.address\n ? Array.isArray(query?.address)\n ? query.address\n : [query.address]\n : undefined\n const counts = addresses ? await Promise.all(addresses.map(address => this.divineAddress(address))) : [await this.divineAllAddresses()]\n return await Promise.all(\n counts.map(count => new PayloadBuilder<PayloadStatsPayload>({ schema: PayloadStatsDivinerSchema }).fields({ count }).build()),\n )\n }\n}\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsDivinerConfigSchema = asSchema(`${PayloadStatsDivinerSchema}.config`, true)\nexport type PayloadStatsDivinerConfigSchema = typeof PayloadStatsDivinerConfigSchema\n\nexport type PayloadStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: PayloadStatsDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const PayloadStatsDivinerSchema = asSchema('network.xyo.diviner.payload.stats', true)\nexport type PayloadStatsDivinerSchema = typeof PayloadStatsDivinerSchema\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { PayloadStatsDivinerParams } from './Params.ts'\n\nexport abstract class PayloadStatsDiviner<\n TParams extends PayloadStatsDivinerParams = PayloadStatsDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {}\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsQuerySchema = asSchema(`${PayloadStatsDivinerSchema}.query`, true)\nexport type PayloadStatsQuerySchema = typeof PayloadStatsQuerySchema\n\nexport type PayloadStatsQueryPayload = Query<{ schema: PayloadStatsQuerySchema }>\nexport const isPayloadStatsQueryPayload = (x?: Payload | null): x is PayloadStatsQueryPayload => x?.schema === PayloadStatsQuerySchema\n"],"mappings":";AACA,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,OACK;;;ACLP,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,4BAA4B,SAAS,qCAAqC,IAAI;;;ADGpF,IAAM,kCAAkCC,UAAS,GAAG,yBAAyB,WAAW,IAAI;;;AELnG,SAAS,uBAAuB;AAMzB,IAAe,sBAAf,cASG,gBAAgD;AAAC;;;ACf3D;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,0BAA0BC,UAAS,GAAG,yBAAyB,UAAU,IAAI;AAInF,IAAM,6BAA6B,CAAC,MAAsD,GAAG,WAAW;;;AJMxG,IAAM,4BAAN,cAA+G,oBAA6B;AAAA,EACjJ,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,+BAA+B;AAAA,EAC3G,OAAyB,sBAA8B;AAAA,EAEvD,MAAgB,cAAc,SAAmC;AAC/D,UAAM,YAAY,SAAS,MAAM,KAAK,kBAAkB,GAAG,MAAM,6BAA6B;AAC9F,YAAQ,MAAM,UAAU,KAAK,EAAE,OAAO,IAAO,CAAC,GAC3C,OAAO,OAAK,eAAe,CAAC,KAAK,cAAc,CAAC,CAAC,EACjD,OAAO,QAAM,GAAG,UAAU,SAAS,OAAO,CAAC,EAC3C,IAAI,QAAM,GAAG,eAAe,MAAM,EAClC,OAAO,CAAC,OAAO,UAAU,QAAQ,OAAO,CAAC;AAAA,EAC9C;AAAA,EAEA,MAAgB,qBAAsC;AACpD,UAAM,YAAY,SAAS,MAAM,KAAK,kBAAkB,GAAG,MAAM,6BAA6B;AAC9F,UAAM,MAAM,MAAM,UAAU,KAAK,EAAE,OAAO,IAAO,CAAC;AAClD,WAAO,IAAI;AAAA,EACb;AAAA,EAEA,MAAyB,cAAc,UAA0C;AAC/E,UAAM,QAAQ,UAAU,KAA+B,0BAA0B;AACjF,QAAI,CAAC,MAAO,QAAO,CAAC;AACpB,UAAM,YACF,OAAO,UACL,MAAM,QAAQ,OAAO,OAAO,IAC1B,MAAM,UACN,CAAC,MAAM,OAAO,IAChB;AACN,UAAM,SAAS,YAAY,MAAM,QAAQ,IAAI,UAAU,IAAI,aAAW,KAAK,cAAc,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,mBAAmB,CAAC;AACtI,WAAO,MAAM,QAAQ;AAAA,MACnB,OAAO,IAAI,WAAS,IAAI,eAAoC,EAAE,QAAQ,0BAA0B,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC;AAAA,IAC9H;AAAA,EACF;AACF;","names":["asSchema","asSchema","asSchema","asSchema"]}
@@ -0,0 +1,6 @@
1
+ export * from './Config.ts';
2
+ export * from './Params.ts';
3
+ export * from './Payload.ts';
4
+ export * from './Query.ts';
5
+ export * from './Schema.ts';
6
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/model.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,27 @@
1
+ // src/Config.ts
2
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
3
+
4
+ // src/Schema.ts
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var PayloadStatsDivinerSchema = asSchema("network.xyo.diviner.payload.stats", true);
7
+
8
+ // src/Config.ts
9
+ var PayloadStatsDivinerConfigSchema = asSchema2(`${PayloadStatsDivinerSchema}.config`, true);
10
+
11
+ // src/Payload.ts
12
+ var isPayloadStatsPayload = (x) => x?.schema === PayloadStatsDivinerSchema;
13
+
14
+ // src/Query.ts
15
+ import {
16
+ asSchema as asSchema3
17
+ } from "@xyo-network/payload-model";
18
+ var PayloadStatsQuerySchema = asSchema3(`${PayloadStatsDivinerSchema}.query`, true);
19
+ var isPayloadStatsQueryPayload = (x) => x?.schema === PayloadStatsQuerySchema;
20
+ export {
21
+ PayloadStatsDivinerConfigSchema,
22
+ PayloadStatsDivinerSchema,
23
+ PayloadStatsQuerySchema,
24
+ isPayloadStatsPayload,
25
+ isPayloadStatsQueryPayload
26
+ };
27
+ //# sourceMappingURL=model.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsDivinerConfigSchema = asSchema(`${PayloadStatsDivinerSchema}.config`, true)\nexport type PayloadStatsDivinerConfigSchema = typeof PayloadStatsDivinerConfigSchema\n\nexport type PayloadStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: PayloadStatsDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const PayloadStatsDivinerSchema = asSchema('network.xyo.diviner.payload.stats', true)\nexport type PayloadStatsDivinerSchema = typeof PayloadStatsDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport type PayloadStatsPayload = Payload<{ count: number; schema: PayloadStatsDivinerSchema }>\nexport const isPayloadStatsPayload = (x?: Payload | null): x is PayloadStatsPayload => x?.schema === PayloadStatsDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsQuerySchema = asSchema(`${PayloadStatsDivinerSchema}.query`, true)\nexport type PayloadStatsQuerySchema = typeof PayloadStatsQuerySchema\n\nexport type PayloadStatsQueryPayload = Query<{ schema: PayloadStatsQuerySchema }>\nexport const isPayloadStatsQueryPayload = (x?: Payload | null): x is PayloadStatsQueryPayload => x?.schema === PayloadStatsQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,4BAA4B,SAAS,qCAAqC,IAAI;;;ADGpF,IAAM,kCAAkCC,UAAS,GAAG,yBAAyB,WAAW,IAAI;;;AEA5F,IAAM,wBAAwB,CAAC,MAAiD,GAAG,WAAW;;;ACLrG;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,0BAA0BC,UAAS,GAAG,yBAAyB,UAAU,IAAI;AAInF,IAAM,6BAA6B,CAAC,MAAsD,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-payload-stats",
3
- "version": "5.5.2",
3
+ "version": "5.5.4",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -24,6 +24,18 @@
24
24
  "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
+ "./abstract": {
28
+ "types": "./dist/neutral/abstract.d.ts",
29
+ "default": "./dist/neutral/abstract.mjs"
30
+ },
31
+ "./memory": {
32
+ "types": "./dist/neutral/memory.d.ts",
33
+ "default": "./dist/neutral/memory.mjs"
34
+ },
35
+ "./model": {
36
+ "types": "./dist/neutral/model.d.ts",
37
+ "default": "./dist/neutral/model.mjs"
38
+ },
27
39
  "./package.json": "./package.json"
28
40
  },
29
41
  "files": [
@@ -34,9 +46,9 @@
34
46
  "README.md"
35
47
  ],
36
48
  "dependencies": {
37
- "@xyo-network/diviner-payload-stats-abstract": "~5.5.2",
38
- "@xyo-network/diviner-payload-stats-memory": "~5.5.2",
39
- "@xyo-network/diviner-payload-stats-model": "~5.5.2"
49
+ "@xyo-network/diviner-abstract": "~5.5.4",
50
+ "@xyo-network/diviner-model": "~5.5.4",
51
+ "@xyo-network/module-model": "~5.5.4"
40
52
  },
41
53
  "devDependencies": {
42
54
  "@bitauth/libauth": "~3.0.0",
@@ -45,26 +57,19 @@
45
57
  "@scure/base": "~2.2.0",
46
58
  "@xylabs/sdk-js": "^5.0.100",
47
59
  "@xylabs/threads": "~5.0.100",
48
- "@xylabs/toolchain": "~7.11.5",
49
- "@xylabs/tsconfig": "~7.11.5",
50
- "@xyo-network/account": "~5.5",
51
- "@xyo-network/account-model": "~5.5",
52
- "@xyo-network/boundwitness-builder": "~5.5",
53
- "@xyo-network/boundwitness-model": "~5.5",
54
- "@xyo-network/boundwitness-validator": "~5.5",
55
- "@xyo-network/boundwitness-wrapper": "~5.5",
56
- "@xyo-network/config-payload-plugin": "~5.5",
57
- "@xyo-network/data": "~5.5",
58
- "@xyo-network/elliptic": "~5.5",
59
- "@xyo-network/hash": "~5.5",
60
- "@xyo-network/manifest-model": "~5.5",
61
- "@xyo-network/payload-builder": "~5.5",
62
- "@xyo-network/payload-model": "~5.5",
63
- "@xyo-network/payload-validator": "~5.5",
64
- "@xyo-network/previous-hash-store-model": "~5.5",
65
- "@xyo-network/query-payload-plugin": "~5.5",
66
- "@xyo-network/wallet-model": "~5.5",
67
- "@xyo-network/wasm": "~5.5",
60
+ "@xylabs/toolchain": "~7.11.8",
61
+ "@xylabs/tsconfig": "~7.11.8",
62
+ "@xyo-network/account": "~5.5.1",
63
+ "@xyo-network/account-model": "~5.5.1",
64
+ "@xyo-network/boundwitness-builder": "~5.5.1",
65
+ "@xyo-network/boundwitness-model": "~5.5.1",
66
+ "@xyo-network/boundwitness-wrapper": "~5.5.1",
67
+ "@xyo-network/config-payload-plugin": "~5.5.1",
68
+ "@xyo-network/manifest-model": "~5.5.1",
69
+ "@xyo-network/payload-builder": "~5.5.1",
70
+ "@xyo-network/payload-model": "~5.5.1",
71
+ "@xyo-network/query-payload-plugin": "~5.5.1",
72
+ "@xyo-network/wallet-model": "~5.5.1",
68
73
  "async-mutex": "^0.5",
69
74
  "bn.js": "^5",
70
75
  "buffer": "^6",
@@ -78,39 +83,25 @@
78
83
  "pako": "~2.1.0",
79
84
  "typescript": "~5.9.3",
80
85
  "wasm-feature-detect": "~1.8.0",
81
- "zod": "^4.3.6",
82
- "@xyo-network/archivist-model": "~5.5.2",
83
- "@xyo-network/diviner-abstract": "~5.5.2",
84
- "@xyo-network/diviner-model": "~5.5.2",
85
- "@xyo-network/module-abstract": "~5.5.2",
86
- "@xyo-network/diviner-payload-model": "~5.5.2",
87
- "@xyo-network/module-model": "~5.5.2",
88
- "@xyo-network/witness-model": "~5.5.2",
89
- "@xyo-network/module-resolver": "~5.5.2",
90
- "@xyo-network/node-model": "~5.5.2"
86
+ "zod": "^4.3.6"
91
87
  },
92
88
  "peerDependencies": {
93
89
  "@scure/base": "~2.2.0",
94
90
  "@xylabs/sdk-js": "^5.0.100",
95
- "@xyo-network/account-model": "~5.5",
96
- "@xyo-network/archivist-model": "~5.5",
97
- "@xyo-network/boundwitness-model": "~5.5",
98
- "@xyo-network/boundwitness-validator": "~5.5",
99
- "@xyo-network/boundwitness-wrapper": "~5.5",
100
- "@xyo-network/data": "~5.5",
101
- "@xyo-network/diviner-model": "~5.5",
102
- "@xyo-network/elliptic": "~5.5",
103
- "@xyo-network/hash": "~5.5",
104
- "@xyo-network/manifest-model": "~5.5",
105
- "@xyo-network/module-abstract": "~5.5",
106
- "@xyo-network/module-model": "~5.5",
107
- "@xyo-network/payload-builder": "~5.5",
108
- "@xyo-network/payload-model": "~5.5",
109
- "@xyo-network/payload-validator": "~5.5",
110
- "@xyo-network/previous-hash-store-model": "~5.5",
111
- "@xyo-network/witness-model": "~5.5",
91
+ "@xyo-network/account": "~5.5.1",
92
+ "@xyo-network/account-model": "~5.5.1",
93
+ "@xyo-network/boundwitness-builder": "~5.5.1",
94
+ "@xyo-network/boundwitness-model": "~5.5.1",
95
+ "@xyo-network/boundwitness-wrapper": "~5.5.1",
96
+ "@xyo-network/config-payload-plugin": "~5.5.1",
97
+ "@xyo-network/manifest-model": "~5.5.1",
98
+ "@xyo-network/payload-builder": "~5.5.1",
99
+ "@xyo-network/payload-model": "~5.5.1",
100
+ "@xyo-network/query-payload-plugin": "~5.5.1",
101
+ "@xyo-network/wallet-model": "~5.5.1",
112
102
  "async-mutex": "~0.5.0",
113
103
  "ethers": "^6",
104
+ "lru-cache": "~11.3.5",
114
105
  "zod": "^4"
115
106
  },
116
107
  "publishConfig": {