@xyo-network/module-abstract 3.9.2 → 3.9.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.
@@ -1,5 +1,3 @@
1
- import * as _xylabs_object from '@xylabs/object';
2
- import { JsonValue } from '@xylabs/object';
3
1
  import { Address, Hash } from '@xylabs/hex';
4
2
  import { Logger } from '@xylabs/logger';
5
3
  import { Promisable, PromiseEx } from '@xylabs/promise';
@@ -11,13 +9,13 @@ import { ModuleManifestPayload } from '@xyo-network/manifest-model';
11
9
  import { BaseEmitter } from '@xyo-network/module-event-emitter';
12
10
  import * as _xyo_network_module_model from '@xyo-network/module-model';
13
11
  import { AnyConfigSchema, ModuleConfig, Module, ModuleParams, ModuleEventData, Labels, ModuleDetailsError, ArchivingModuleConfig, ModuleStatus, ModuleResolverInstance, AttachableModuleInstance, CreatableModule, CreatableModuleFactory, ModuleQueryResult, ModuleDescriptionPayload, AddressPreviousHashPayload, AddressPayload, ModuleQueryHandlerResult, ModuleNameResolver, ModuleInstance, ModuleFilterOptions, ModuleIdentifier, ObjectFilterOptions } from '@xyo-network/module-model';
14
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
15
12
  import { Payload, Schema, Query, ModuleError, WithOptionalSources } from '@xyo-network/payload-model';
16
13
  import { WalletInstance } from '@xyo-network/wallet-model';
17
14
  import { LRUCache } from 'lru-cache';
18
15
  import * as _xyo_network_module_resolver from '@xyo-network/module-resolver';
19
16
  import { CompositeModuleResolver } from '@xyo-network/module-resolver';
20
17
  import { NodeInstance } from '@xyo-network/node-model';
18
+ import { JsonValue } from '@xylabs/object';
21
19
  import { PayloadBuilder } from '@xyo-network/payload-builder';
22
20
 
23
21
  type Queryable<T extends QueryBoundWitness = QueryBoundWitness> = (query: T, payloads?: Payload[]) => Promisable<boolean>;
@@ -55,49 +53,7 @@ declare abstract class AbstractModule<TParams extends ModuleParams = ModuleParam
55
53
  static readonly uniqueName: string;
56
54
  protected static privateConstructorKey: string;
57
55
  protected _account: AccountInstance;
58
- protected _cachedManifests: LRUCache<number, _xylabs_object.DeepRestrictToStringKeys<{
59
- schema: "network.xyo.module.manifest";
60
- config: {
61
- accountPath?: string | undefined;
62
- features?: string[] | undefined;
63
- labels?: {
64
- [x: string]: string | undefined;
65
- } | undefined;
66
- language?: string | undefined;
67
- name: string;
68
- os?: string | undefined;
69
- schema: string;
70
- };
71
- lazyStart?: boolean | undefined;
72
- status?: {
73
- address: Address;
74
- children?: {
75
- [x: Lowercase<string>]: string | null;
76
- } | undefined;
77
- } | undefined;
78
- description?: string | undefined;
79
- }> | _xylabs_object.DeepRestrictToStringKeys<{
80
- schema: "network.xyo.node.manifest";
81
- config: {
82
- accountPath?: string | undefined;
83
- features?: string[] | undefined;
84
- labels?: {
85
- [x: string]: string | undefined;
86
- } | undefined;
87
- language?: string | undefined;
88
- name: string;
89
- os?: string | undefined;
90
- schema: string;
91
- };
92
- lazyStart?: boolean | undefined;
93
- status?: {
94
- address: Address;
95
- children?: {
96
- [x: Lowercase<string>]: string | null;
97
- } | undefined;
98
- } | undefined;
99
- description?: string | undefined;
100
- }>, unknown>;
56
+ protected _cachedManifests: LRUCache<number, ModuleManifestPayload, unknown>;
101
57
  protected _lastError?: ModuleDetailsError;
102
58
  protected _startPromise: Promisable<boolean> | undefined;
103
59
  protected _started: Promisable<boolean> | undefined;
@@ -204,9 +160,7 @@ declare abstract class AbstractModuleInstance<TParams extends ModuleParams = Mod
204
160
  resolvePrivate<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
205
161
  resolvePrivate<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
206
162
  siblings(): Promise<ModuleInstance[]>;
207
- state(): Promise<_xylabs_object.DeepRestrictToStringKeys<{
208
- schema: _xyo_network_payload_model.Schema;
209
- }>[]>;
163
+ state(): Promise<Payload[]>;
210
164
  stateQuery(account: AccountInstance): Promise<ModuleQueryResult>;
211
165
  subscribe(_queryAccount?: AccountInstance): void;
212
166
  protected manifestHandler(maxDepth?: number, _ignoreAddresses?: Address[]): Promise<ModuleManifestPayload>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/module-abstract",
3
- "version": "3.9.2",
3
+ "version": "3.9.4",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -38,22 +38,22 @@
38
38
  "@xylabs/object": "^4.5.1",
39
39
  "@xylabs/promise": "^4.5.1",
40
40
  "@xylabs/typeof": "^4.5.1",
41
- "@xyo-network/account": "^3.9.2",
42
- "@xyo-network/account-model": "^3.9.2",
43
- "@xyo-network/archivist-model": "^3.9.2",
44
- "@xyo-network/boundwitness-builder": "^3.9.2",
45
- "@xyo-network/boundwitness-model": "^3.9.2",
46
- "@xyo-network/boundwitness-wrapper": "^3.9.2",
47
- "@xyo-network/config-payload-plugin": "^3.9.2",
48
- "@xyo-network/manifest-model": "^3.9.2",
49
- "@xyo-network/module-event-emitter": "^3.9.2",
50
- "@xyo-network/module-model": "^3.9.2",
51
- "@xyo-network/module-resolver": "^3.9.2",
52
- "@xyo-network/node-model": "^3.9.2",
53
- "@xyo-network/payload-builder": "^3.9.2",
54
- "@xyo-network/payload-model": "^3.9.2",
55
- "@xyo-network/query-payload-plugin": "^3.9.2",
56
- "@xyo-network/wallet-model": "^3.9.2",
41
+ "@xyo-network/account": "^3.9.4",
42
+ "@xyo-network/account-model": "^3.9.4",
43
+ "@xyo-network/archivist-model": "^3.9.4",
44
+ "@xyo-network/boundwitness-builder": "^3.9.4",
45
+ "@xyo-network/boundwitness-model": "^3.9.4",
46
+ "@xyo-network/boundwitness-wrapper": "^3.9.4",
47
+ "@xyo-network/config-payload-plugin": "^3.9.4",
48
+ "@xyo-network/manifest-model": "^3.9.4",
49
+ "@xyo-network/module-event-emitter": "^3.9.4",
50
+ "@xyo-network/module-model": "^3.9.4",
51
+ "@xyo-network/module-resolver": "^3.9.4",
52
+ "@xyo-network/node-model": "^3.9.4",
53
+ "@xyo-network/payload-builder": "^3.9.4",
54
+ "@xyo-network/payload-model": "^3.9.4",
55
+ "@xyo-network/query-payload-plugin": "^3.9.4",
56
+ "@xyo-network/wallet-model": "^3.9.4",
57
57
  "lru-cache": "^11.0.2"
58
58
  },
59
59
  "devDependencies": {