@xyo-network/node-wrapper 2.73.4 → 2.74.1
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/NodeWrapper.d.mts +18 -0
- package/dist/NodeWrapper.d.mts.map +1 -0
- package/dist/NodeWrapper.d.ts +18 -0
- package/dist/NodeWrapper.d.ts.map +1 -0
- package/dist/docs.json +7346 -11529
- package/dist/index.d.mts +2 -119
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +2 -119
- package/dist/index.d.ts.map +1 -0
- package/package.json +10 -16
- package/tsup.config.ts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,119 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { NodeModule, NodeInstance } from '@xyo-network/node-model';
|
|
4
|
-
import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
|
|
5
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
6
|
-
import { ModuleInstance } from '@xyo-network/module-model';
|
|
7
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
8
|
-
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
9
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
10
|
-
import { NodeManifestPayload } from '@xyo-network/manifest-model';
|
|
11
|
-
import { ModuleWrapper } from '@xyo-network/module-wrapper';
|
|
12
|
-
import { Promisable } from '@xyo-network/promise';
|
|
13
|
-
|
|
14
|
-
declare class NodeWrapper<TWrappedModule extends NodeModule = NodeModule> extends ModuleWrapper<TWrappedModule> implements NodeInstance<TWrappedModule['params']> {
|
|
15
|
-
static instanceIdentityCheck: _xyo_network_object_identity.ObjectTypeCheck<NodeInstance<_xyo_network_core.BaseParamsFields & {
|
|
16
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
17
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
18
|
-
accountDerivationPath?: string | undefined;
|
|
19
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
20
|
-
readonly name?: string | undefined;
|
|
21
|
-
readonly paging?: Record<string, {
|
|
22
|
-
size?: number | undefined;
|
|
23
|
-
}> | undefined;
|
|
24
|
-
readonly schema: string;
|
|
25
|
-
readonly security?: {
|
|
26
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
27
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
28
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
readonly sign?: boolean | undefined;
|
|
31
|
-
readonly storeQueries?: boolean | undefined;
|
|
32
|
-
readonly timestamp?: boolean | undefined;
|
|
33
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
34
|
-
accountDerivationPath?: string | undefined;
|
|
35
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
36
|
-
readonly name?: string | undefined;
|
|
37
|
-
readonly paging?: Record<string, {
|
|
38
|
-
size?: number | undefined;
|
|
39
|
-
}> | undefined;
|
|
40
|
-
readonly schema: "network.xyo.node.config";
|
|
41
|
-
readonly security?: {
|
|
42
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
43
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
44
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
readonly sign?: boolean | undefined;
|
|
47
|
-
readonly storeQueries?: boolean | undefined;
|
|
48
|
-
readonly timestamp?: boolean | undefined;
|
|
49
|
-
} & Omit<{
|
|
50
|
-
archivist?: string | undefined;
|
|
51
|
-
schema: "network.xyo.node.config";
|
|
52
|
-
} & Omit<undefined, "schema">, "schema"> & {
|
|
53
|
-
schema: "network.xyo.node.config";
|
|
54
|
-
}, "schema"> & {
|
|
55
|
-
schema: string;
|
|
56
|
-
}, "schema"> & {
|
|
57
|
-
schema: string;
|
|
58
|
-
};
|
|
59
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
60
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
61
|
-
}, _xyo_network_node_model.NodeModuleEventData>>;
|
|
62
|
-
static moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<NodeModule<_xyo_network_core.BaseParamsFields & {
|
|
63
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
64
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
65
|
-
accountDerivationPath?: string | undefined;
|
|
66
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
67
|
-
readonly name?: string | undefined;
|
|
68
|
-
readonly paging?: Record<string, {
|
|
69
|
-
size?: number | undefined;
|
|
70
|
-
}> | undefined;
|
|
71
|
-
readonly schema: string;
|
|
72
|
-
readonly security?: {
|
|
73
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
74
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
75
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
readonly sign?: boolean | undefined;
|
|
78
|
-
readonly storeQueries?: boolean | undefined;
|
|
79
|
-
readonly timestamp?: boolean | undefined;
|
|
80
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
81
|
-
accountDerivationPath?: string | undefined;
|
|
82
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
83
|
-
readonly name?: string | undefined;
|
|
84
|
-
readonly paging?: Record<string, {
|
|
85
|
-
size?: number | undefined;
|
|
86
|
-
}> | undefined;
|
|
87
|
-
readonly schema: "network.xyo.node.config";
|
|
88
|
-
readonly security?: {
|
|
89
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
90
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
91
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
readonly sign?: boolean | undefined;
|
|
94
|
-
readonly storeQueries?: boolean | undefined;
|
|
95
|
-
readonly timestamp?: boolean | undefined;
|
|
96
|
-
} & Omit<{
|
|
97
|
-
archivist?: string | undefined;
|
|
98
|
-
schema: "network.xyo.node.config";
|
|
99
|
-
} & Omit<undefined, "schema">, "schema"> & {
|
|
100
|
-
schema: "network.xyo.node.config";
|
|
101
|
-
}, "schema"> & {
|
|
102
|
-
schema: string;
|
|
103
|
-
}, "schema"> & {
|
|
104
|
-
schema: string;
|
|
105
|
-
};
|
|
106
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
107
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
108
|
-
}, _xyo_network_node_model.NodeModuleEventData>>;
|
|
109
|
-
static requiredQueries: string[];
|
|
110
|
-
attach(nameOrAddress: string, external?: boolean): Promise<string | undefined>;
|
|
111
|
-
attached(): Promise<string[]>;
|
|
112
|
-
detach(nameOrAddress: string): Promise<string | undefined>;
|
|
113
|
-
manifest(): Promise<NodeManifestPayload>;
|
|
114
|
-
register(_module: ModuleInstance): void;
|
|
115
|
-
registered(): Promise<string[]>;
|
|
116
|
-
registeredModules(): Promisable<ModuleInstance[]>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export { NodeWrapper };
|
|
1
|
+
export * from './NodeWrapper';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,119 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { NodeModule, NodeInstance } from '@xyo-network/node-model';
|
|
4
|
-
import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
|
|
5
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
6
|
-
import { ModuleInstance } from '@xyo-network/module-model';
|
|
7
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
8
|
-
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
9
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
10
|
-
import { NodeManifestPayload } from '@xyo-network/manifest-model';
|
|
11
|
-
import { ModuleWrapper } from '@xyo-network/module-wrapper';
|
|
12
|
-
import { Promisable } from '@xyo-network/promise';
|
|
13
|
-
|
|
14
|
-
declare class NodeWrapper<TWrappedModule extends NodeModule = NodeModule> extends ModuleWrapper<TWrappedModule> implements NodeInstance<TWrappedModule['params']> {
|
|
15
|
-
static instanceIdentityCheck: _xyo_network_object_identity.ObjectTypeCheck<NodeInstance<_xyo_network_core.BaseParamsFields & {
|
|
16
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
17
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
18
|
-
accountDerivationPath?: string | undefined;
|
|
19
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
20
|
-
readonly name?: string | undefined;
|
|
21
|
-
readonly paging?: Record<string, {
|
|
22
|
-
size?: number | undefined;
|
|
23
|
-
}> | undefined;
|
|
24
|
-
readonly schema: string;
|
|
25
|
-
readonly security?: {
|
|
26
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
27
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
28
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
readonly sign?: boolean | undefined;
|
|
31
|
-
readonly storeQueries?: boolean | undefined;
|
|
32
|
-
readonly timestamp?: boolean | undefined;
|
|
33
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
34
|
-
accountDerivationPath?: string | undefined;
|
|
35
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
36
|
-
readonly name?: string | undefined;
|
|
37
|
-
readonly paging?: Record<string, {
|
|
38
|
-
size?: number | undefined;
|
|
39
|
-
}> | undefined;
|
|
40
|
-
readonly schema: "network.xyo.node.config";
|
|
41
|
-
readonly security?: {
|
|
42
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
43
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
44
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
readonly sign?: boolean | undefined;
|
|
47
|
-
readonly storeQueries?: boolean | undefined;
|
|
48
|
-
readonly timestamp?: boolean | undefined;
|
|
49
|
-
} & Omit<{
|
|
50
|
-
archivist?: string | undefined;
|
|
51
|
-
schema: "network.xyo.node.config";
|
|
52
|
-
} & Omit<undefined, "schema">, "schema"> & {
|
|
53
|
-
schema: "network.xyo.node.config";
|
|
54
|
-
}, "schema"> & {
|
|
55
|
-
schema: string;
|
|
56
|
-
}, "schema"> & {
|
|
57
|
-
schema: string;
|
|
58
|
-
};
|
|
59
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
60
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
61
|
-
}, _xyo_network_node_model.NodeModuleEventData>>;
|
|
62
|
-
static moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<NodeModule<_xyo_network_core.BaseParamsFields & {
|
|
63
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
64
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
65
|
-
accountDerivationPath?: string | undefined;
|
|
66
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
67
|
-
readonly name?: string | undefined;
|
|
68
|
-
readonly paging?: Record<string, {
|
|
69
|
-
size?: number | undefined;
|
|
70
|
-
}> | undefined;
|
|
71
|
-
readonly schema: string;
|
|
72
|
-
readonly security?: {
|
|
73
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
74
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
75
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
readonly sign?: boolean | undefined;
|
|
78
|
-
readonly storeQueries?: boolean | undefined;
|
|
79
|
-
readonly timestamp?: boolean | undefined;
|
|
80
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
81
|
-
accountDerivationPath?: string | undefined;
|
|
82
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
83
|
-
readonly name?: string | undefined;
|
|
84
|
-
readonly paging?: Record<string, {
|
|
85
|
-
size?: number | undefined;
|
|
86
|
-
}> | undefined;
|
|
87
|
-
readonly schema: "network.xyo.node.config";
|
|
88
|
-
readonly security?: {
|
|
89
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
90
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
91
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
readonly sign?: boolean | undefined;
|
|
94
|
-
readonly storeQueries?: boolean | undefined;
|
|
95
|
-
readonly timestamp?: boolean | undefined;
|
|
96
|
-
} & Omit<{
|
|
97
|
-
archivist?: string | undefined;
|
|
98
|
-
schema: "network.xyo.node.config";
|
|
99
|
-
} & Omit<undefined, "schema">, "schema"> & {
|
|
100
|
-
schema: "network.xyo.node.config";
|
|
101
|
-
}, "schema"> & {
|
|
102
|
-
schema: string;
|
|
103
|
-
}, "schema"> & {
|
|
104
|
-
schema: string;
|
|
105
|
-
};
|
|
106
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
107
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
108
|
-
}, _xyo_network_node_model.NodeModuleEventData>>;
|
|
109
|
-
static requiredQueries: string[];
|
|
110
|
-
attach(nameOrAddress: string, external?: boolean): Promise<string | undefined>;
|
|
111
|
-
attached(): Promise<string[]>;
|
|
112
|
-
detach(nameOrAddress: string): Promise<string | undefined>;
|
|
113
|
-
manifest(): Promise<NodeManifestPayload>;
|
|
114
|
-
register(_module: ModuleInstance): void;
|
|
115
|
-
registered(): Promise<string[]>;
|
|
116
|
-
registeredModules(): Promisable<ModuleInstance[]>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export { NodeWrapper };
|
|
1
|
+
export * from './NodeWrapper';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,25 +10,19 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/address-payload-plugin": "~2.
|
|
14
|
-
"@xyo-network/manifest-model": "~2.
|
|
15
|
-
"@xyo-network/module-model": "~2.
|
|
16
|
-
"@xyo-network/module-wrapper": "~2.
|
|
17
|
-
"@xyo-network/node-model": "~2.
|
|
18
|
-
"@xyo-network/payload-model": "~2.
|
|
19
|
-
"@xyo-network/promise": "~2.
|
|
13
|
+
"@xyo-network/address-payload-plugin": "~2.74.1",
|
|
14
|
+
"@xyo-network/manifest-model": "~2.74.1",
|
|
15
|
+
"@xyo-network/module-model": "~2.74.1",
|
|
16
|
+
"@xyo-network/module-wrapper": "~2.74.1",
|
|
17
|
+
"@xyo-network/node-model": "~2.74.1",
|
|
18
|
+
"@xyo-network/payload-model": "~2.74.1",
|
|
19
|
+
"@xyo-network/promise": "~2.74.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
23
|
-
"@xylabs/tsconfig": "^
|
|
24
|
-
"publint": "^0.2.2",
|
|
25
|
-
"tsup": "^7.2.0",
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.28",
|
|
23
|
+
"@xylabs/tsconfig": "^3.0.28",
|
|
26
24
|
"typescript": "^5.2.2"
|
|
27
25
|
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"package-compile": "tsup && publint",
|
|
30
|
-
"package-recompile": "tsup && publint"
|
|
31
|
-
},
|
|
32
26
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
33
27
|
"docs": "dist/docs.json",
|
|
34
28
|
"types": "dist/index.d.ts",
|
|
@@ -69,5 +63,5 @@
|
|
|
69
63
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
70
64
|
},
|
|
71
65
|
"sideEffects": false,
|
|
72
|
-
"version": "2.
|
|
66
|
+
"version": "2.74.1"
|
|
73
67
|
}
|
package/tsup.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-default-export
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
bundle: true,
|
|
6
|
-
cjsInterop: true,
|
|
7
|
-
clean: false,
|
|
8
|
-
dts: {
|
|
9
|
-
entry: ['src/index.ts'],
|
|
10
|
-
},
|
|
11
|
-
entry: ['src/index.ts'],
|
|
12
|
-
format: ['cjs', 'esm'],
|
|
13
|
-
sourcemap: true,
|
|
14
|
-
splitting: false,
|
|
15
|
-
tsconfig: 'tsconfig.json',
|
|
16
|
-
})
|