@xyo-network/node-abstract 4.1.2 → 4.1.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.
- package/dist/neutral/index.d.ts +3 -50
- package/package.json +16 -16
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,50 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { QueryBoundWitness } from '@xyo-network/boundwitness-model';
|
|
5
|
-
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
6
|
-
import { AbstractModuleInstance } from '@xyo-network/module-abstract';
|
|
7
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
8
|
-
import { Module, ModuleInstance, ModuleIdentifier, ModuleQueryResult, AddressPayload, ModuleConfig, ModuleQueryHandlerResult } from '@xyo-network/module-model';
|
|
9
|
-
import * as _xyo_network_node_model from '@xyo-network/node-model';
|
|
10
|
-
import { NodeParams, NodeModuleEventData, AttachableNodeInstance, NodeInstance, NodeModule, ChildCertificationFields, ChildCertification } from '@xyo-network/node-model';
|
|
11
|
-
import { Schema, Payload } from '@xyo-network/payload-model';
|
|
12
|
-
|
|
13
|
-
declare abstract class AbstractNode<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends AbstractModuleInstance<TParams, TEventData> implements AttachableNodeInstance<TParams, TEventData>, Module<TParams, TEventData>, NodeInstance<TParams, TEventData>, ModuleInstance<TParams, TEventData>, NodeModule<TParams, TEventData> {
|
|
14
|
-
static readonly configSchemas: Schema[];
|
|
15
|
-
static readonly defaultConfigSchema: Schema;
|
|
16
|
-
static readonly uniqueName: string;
|
|
17
|
-
private readonly isNode;
|
|
18
|
-
get queries(): Schema[];
|
|
19
|
-
static isNode(mod: unknown): boolean;
|
|
20
|
-
attach(id: ModuleIdentifier, external?: boolean): Promise<Address | undefined>;
|
|
21
|
-
attachQuery(id: ModuleIdentifier, external?: boolean, account?: AccountInstance): Promise<ModuleQueryResult<AddressPayload>>;
|
|
22
|
-
attached(): Promise<Address[]>;
|
|
23
|
-
attachedHandler(): Promise<Address[]>;
|
|
24
|
-
attachedQuery(account?: AccountInstance): Promise<ModuleQueryResult<AddressPayload>>;
|
|
25
|
-
certify(id: ModuleIdentifier): Promise<ChildCertificationFields | undefined>;
|
|
26
|
-
certifyQuery(id: ModuleIdentifier, account?: AccountInstance): Promise<ModuleQueryResult<ChildCertification>>;
|
|
27
|
-
detach(id: ModuleIdentifier): Promise<Address | undefined>;
|
|
28
|
-
detachQuery(id: ModuleIdentifier, account?: AccountInstance): Promise<ModuleQueryResult<AddressPayload>>;
|
|
29
|
-
manifest(maxDepth?: number, ignoreAddresses?: Address[]): Promise<ModuleManifestPayload>;
|
|
30
|
-
privateChildren(): Promise<ModuleInstance[]>;
|
|
31
|
-
publicChildren(): Promise<ModuleInstance[]>;
|
|
32
|
-
registered(): Promise<Address[]>;
|
|
33
|
-
registeredQuery(account?: AccountInstance): Promise<ModuleQueryResult<AddressPayload>>;
|
|
34
|
-
protected attachedPrivateModules(maxDepth?: number): Promise<ModuleInstance[]>;
|
|
35
|
-
protected attachedPublicModules(maxDepth?: number): Promise<ModuleInstance[]>;
|
|
36
|
-
protected generateConfigAndAddress(maxDepth?: number): Promise<Payload[]>;
|
|
37
|
-
protected manifestHandler(maxDepth?: number, ignoreAddresses?: Address[]): Promise<ModuleManifestPayload>;
|
|
38
|
-
protected queryHandler<T extends QueryBoundWitness = QueryBoundWitness, TConfig extends ModuleConfig = ModuleConfig>(query: T, payloads?: Payload[], queryConfig?: TConfig): Promise<ModuleQueryHandlerResult>;
|
|
39
|
-
abstract attachHandler(id: ModuleIdentifier, external?: boolean): Promisable<Address | undefined>;
|
|
40
|
-
abstract certifyHandler(id: ModuleIdentifier): Promisable<ChildCertificationFields | undefined>;
|
|
41
|
-
abstract detachHandler(id: ModuleIdentifier): Promisable<Address | undefined>;
|
|
42
|
-
abstract registeredHandler(): Promisable<Address[]>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare const NodeHelper: {
|
|
46
|
-
attachedPrivateModules: (node: _xyo_network_node_model.NodeInstance, maxDepth?: number) => Promise<_xyo_network_module_model.ModuleInstance[]>;
|
|
47
|
-
attachedPublicModules: (node: _xyo_network_node_model.NodeInstance, maxDepth?: number) => Promise<_xyo_network_module_model.ModuleInstance[]>;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export { AbstractNode, NodeHelper };
|
|
1
|
+
export * from './AbstractNode.ts';
|
|
2
|
+
export * from './NodeHelper/index.ts';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/node-abstract",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.13.
|
|
33
|
-
"@xylabs/base": "^4.13.
|
|
34
|
-
"@xylabs/hex": "^4.13.
|
|
35
|
-
"@xylabs/promise": "^4.13.
|
|
36
|
-
"@xyo-network/account-model": "^4.1.
|
|
37
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
38
|
-
"@xyo-network/boundwitness-wrapper": "^4.1.
|
|
39
|
-
"@xyo-network/manifest-model": "^4.1.
|
|
40
|
-
"@xyo-network/module-abstract": "^4.1.
|
|
41
|
-
"@xyo-network/module-model": "^4.1.
|
|
42
|
-
"@xyo-network/node-model": "^4.1.
|
|
43
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
44
|
-
"@xyo-network/payload-model": "^4.1.
|
|
32
|
+
"@xylabs/assert": "^4.13.16",
|
|
33
|
+
"@xylabs/base": "^4.13.16",
|
|
34
|
+
"@xylabs/hex": "^4.13.16",
|
|
35
|
+
"@xylabs/promise": "^4.13.16",
|
|
36
|
+
"@xyo-network/account-model": "^4.1.4",
|
|
37
|
+
"@xyo-network/boundwitness-model": "^4.1.4",
|
|
38
|
+
"@xyo-network/boundwitness-wrapper": "^4.1.4",
|
|
39
|
+
"@xyo-network/manifest-model": "^4.1.4",
|
|
40
|
+
"@xyo-network/module-abstract": "^4.1.4",
|
|
41
|
+
"@xyo-network/module-model": "^4.1.4",
|
|
42
|
+
"@xyo-network/node-model": "^4.1.4",
|
|
43
|
+
"@xyo-network/payload-builder": "^4.1.4",
|
|
44
|
+
"@xyo-network/payload-model": "^4.1.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
48
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
47
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
48
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
49
49
|
"typescript": "^5.8.3"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|