@xyo-network/manifest 5.3.22 → 5.3.24
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/package.json +22 -28
- package/src/compilations/dapp-package-manifest-schema.json +0 -258
- package/src/compilations/schema.json +0 -254
- package/src/dapp-package-manifest-schema.json +0 -31
- package/src/index.ts +0 -2
- package/src/schema.json +0 -28
- package/src/shared/definitions-schema.json +0 -231
- package/src/spec/cases/dappManifest/index.ts +0 -2
- package/src/spec/cases/dappManifest/invalidCase.ts +0 -28
- package/src/spec/cases/dappManifest/validCase.ts +0 -29
- package/src/spec/cases/index.ts +0 -2
- package/src/spec/cases/manifest/index.ts +0 -2
- package/src/spec/cases/manifest/invalidCase.ts +0 -25
- package/src/spec/cases/manifest/validCase.ts +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/manifest",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.24",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -24,56 +24,50 @@
|
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
|
-
"./schema": {
|
|
28
|
-
"default": "./src/schema.json"
|
|
29
|
-
},
|
|
30
27
|
"./package.json": "./package.json"
|
|
31
28
|
},
|
|
32
29
|
"module": "dist/neutral/index.mjs",
|
|
33
30
|
"types": "dist/neutral/index.d.ts",
|
|
34
31
|
"files": [
|
|
35
32
|
"dist",
|
|
36
|
-
"
|
|
33
|
+
"json",
|
|
37
34
|
"!**/*.bench.*",
|
|
38
35
|
"!**/*.spec.*",
|
|
39
36
|
"!**/*.test.*",
|
|
40
37
|
"README.md"
|
|
41
38
|
],
|
|
42
39
|
"dependencies": {
|
|
43
|
-
"@xyo-network/manifest-model": "~5.3.
|
|
44
|
-
"@xyo-network/manifest-wrapper": "~5.3.
|
|
40
|
+
"@xyo-network/manifest-model": "~5.3.24",
|
|
41
|
+
"@xyo-network/manifest-wrapper": "~5.3.24"
|
|
45
42
|
},
|
|
46
43
|
"devDependencies": {
|
|
47
44
|
"@opentelemetry/api": "^1.9.1",
|
|
48
45
|
"@types/node": "^25.5.0",
|
|
49
|
-
"@xylabs/sdk-js": "^5.0.
|
|
50
|
-
"@xylabs/ts-scripts-common": "~7.6.
|
|
51
|
-
"@xylabs/ts-scripts-
|
|
52
|
-
"@xylabs/tsconfig": "~7.6.
|
|
53
|
-
"@xylabs/vitest-extended": "~5.0.
|
|
54
|
-
"@xyo-network/manifest-model": "~5.3.22",
|
|
55
|
-
"@xyo-network/manifest-wrapper": "~5.3.22",
|
|
56
|
-
"@xyo-network/module-factory-locator": "~5.3.22",
|
|
57
|
-
"@xyo-network/module-model": "~5.3.22",
|
|
58
|
-
"@xyo-network/node-memory": "~5.3.22",
|
|
59
|
-
"@xyo-network/node-model": "~5.3.22",
|
|
60
|
-
"@xyo-network/payload-model": "~5.3.22",
|
|
61
|
-
"@xyo-network/payload-wrapper": "~5.3.22",
|
|
62
|
-
"@xyo-network/wallet": "~5.3.22",
|
|
63
|
-
"@xyo-network/wallet-model": "~5.3.22",
|
|
46
|
+
"@xylabs/sdk-js": "^5.0.93",
|
|
47
|
+
"@xylabs/ts-scripts-common": "~7.6.16",
|
|
48
|
+
"@xylabs/ts-scripts-pnpm": "~7.6.16",
|
|
49
|
+
"@xylabs/tsconfig": "~7.6.16",
|
|
50
|
+
"@xylabs/vitest-extended": "~5.0.93",
|
|
64
51
|
"acorn": "^8.16.0",
|
|
65
52
|
"ajv": "~8.18.0",
|
|
66
53
|
"axios": "^1.14.0",
|
|
67
|
-
"
|
|
68
|
-
"esbuild": "^0.27.4",
|
|
69
|
-
"eslint": "^10.1.0",
|
|
54
|
+
"esbuild": "^0.28.0",
|
|
70
55
|
"ethers": "^6.16.0",
|
|
71
|
-
"rollup": "^4.60.1",
|
|
72
56
|
"tslib": "^2.8.1",
|
|
73
57
|
"typescript": "~5.9.3",
|
|
74
58
|
"vite": "^8.0.3",
|
|
75
59
|
"vitest": "~4.1.2",
|
|
76
|
-
"zod": "^4.3.6"
|
|
60
|
+
"zod": "^4.3.6",
|
|
61
|
+
"@xyo-network/manifest-wrapper": "~5.3.24",
|
|
62
|
+
"@xyo-network/manifest-model": "~5.3.24",
|
|
63
|
+
"@xyo-network/module-factory-locator": "~5.3.24",
|
|
64
|
+
"@xyo-network/node-model": "~5.3.24",
|
|
65
|
+
"@xyo-network/node-memory": "~5.3.24",
|
|
66
|
+
"@xyo-network/payload-model": "~5.3.24",
|
|
67
|
+
"@xyo-network/module-model": "~5.3.24",
|
|
68
|
+
"@xyo-network/wallet": "~5.3.24",
|
|
69
|
+
"@xyo-network/payload-wrapper": "~5.3.24",
|
|
70
|
+
"@xyo-network/wallet-model": "~5.3.24"
|
|
77
71
|
},
|
|
78
72
|
"peerDependencies": {
|
|
79
73
|
"@xylabs/sdk-js": "^5",
|
|
@@ -84,4 +78,4 @@
|
|
|
84
78
|
"publishConfig": {
|
|
85
79
|
"access": "public"
|
|
86
80
|
}
|
|
87
|
-
}
|
|
81
|
+
}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://xyo.network/schemas/dapp-package-manifest-schema.json",
|
|
4
|
-
"additionalProperties": false,
|
|
5
|
-
"definitions": {
|
|
6
|
-
"architecture": {
|
|
7
|
-
"description": "Architecture",
|
|
8
|
-
"enum": [
|
|
9
|
-
"386",
|
|
10
|
-
"amd64",
|
|
11
|
-
"arm",
|
|
12
|
-
"arm64",
|
|
13
|
-
"loong64",
|
|
14
|
-
"mips",
|
|
15
|
-
"mipsle",
|
|
16
|
-
"mips64",
|
|
17
|
-
"mips64le",
|
|
18
|
-
"ppc64",
|
|
19
|
-
"ppc64le",
|
|
20
|
-
"riscv64",
|
|
21
|
-
"s390x",
|
|
22
|
-
"wasm"
|
|
23
|
-
],
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"config": {
|
|
27
|
-
"additionalProperties": true,
|
|
28
|
-
"description": "Config for a module",
|
|
29
|
-
"properties": {
|
|
30
|
-
"accountPath": {
|
|
31
|
-
"description": "HDWallet path to derive account",
|
|
32
|
-
"type": "string"
|
|
33
|
-
},
|
|
34
|
-
"architecture": {
|
|
35
|
-
"$ref": "#/definitions/architecture"
|
|
36
|
-
},
|
|
37
|
-
"description": {
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"features": {
|
|
41
|
-
"items": {
|
|
42
|
-
"$ref": "#/definitions/feature"
|
|
43
|
-
},
|
|
44
|
-
"type": "array"
|
|
45
|
-
},
|
|
46
|
-
"language": {
|
|
47
|
-
"$ref": "#/definitions/language"
|
|
48
|
-
},
|
|
49
|
-
"name": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"os": {
|
|
53
|
-
"$ref": "#/definitions/os"
|
|
54
|
-
},
|
|
55
|
-
"schema": {
|
|
56
|
-
"type": "string"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": [
|
|
60
|
-
"name",
|
|
61
|
-
"schema"
|
|
62
|
-
],
|
|
63
|
-
"type": "object"
|
|
64
|
-
},
|
|
65
|
-
"external": {
|
|
66
|
-
"additionalProperties": false,
|
|
67
|
-
"definitions": {
|
|
68
|
-
"modules": {
|
|
69
|
-
"description": "A List of module permissions requests",
|
|
70
|
-
"items": {
|
|
71
|
-
"$ref": "#/definitions/external/definitions/moduleRequest"
|
|
72
|
-
},
|
|
73
|
-
"type": "array"
|
|
74
|
-
},
|
|
75
|
-
"moduleRequest": {
|
|
76
|
-
"description": "A module permissions request",
|
|
77
|
-
"additionalProperties": false,
|
|
78
|
-
"properties": {
|
|
79
|
-
"name": {
|
|
80
|
-
"description": "Name of the module the dApp is requesting permission to access",
|
|
81
|
-
"type": "string"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"type": "object"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"properties": {
|
|
88
|
-
"modules": {
|
|
89
|
-
"$ref": "#/definitions/external/definitions/modules"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"required": [
|
|
93
|
-
"modules"
|
|
94
|
-
],
|
|
95
|
-
"type": "object"
|
|
96
|
-
},
|
|
97
|
-
"feature": {
|
|
98
|
-
"description": "Framework",
|
|
99
|
-
"enum": [
|
|
100
|
-
"angular",
|
|
101
|
-
"asp.net",
|
|
102
|
-
"browser",
|
|
103
|
-
"cryengine",
|
|
104
|
-
"corona",
|
|
105
|
-
"django",
|
|
106
|
-
"flutter",
|
|
107
|
-
"ionic",
|
|
108
|
-
"jquery",
|
|
109
|
-
"nodejs",
|
|
110
|
-
"phonegap",
|
|
111
|
-
"react",
|
|
112
|
-
"react-native",
|
|
113
|
-
"spring",
|
|
114
|
-
"unity",
|
|
115
|
-
"unreal",
|
|
116
|
-
"vue",
|
|
117
|
-
"xamarin"
|
|
118
|
-
],
|
|
119
|
-
"type": "string"
|
|
120
|
-
},
|
|
121
|
-
"language": {
|
|
122
|
-
"description": "Language",
|
|
123
|
-
"enum": [
|
|
124
|
-
"c",
|
|
125
|
-
"c++",
|
|
126
|
-
"c#",
|
|
127
|
-
"go",
|
|
128
|
-
"java",
|
|
129
|
-
"javascript",
|
|
130
|
-
"kotlin",
|
|
131
|
-
"lua",
|
|
132
|
-
"python",
|
|
133
|
-
"ruby",
|
|
134
|
-
"rust",
|
|
135
|
-
"scala",
|
|
136
|
-
"solidity",
|
|
137
|
-
"swift"
|
|
138
|
-
],
|
|
139
|
-
"type": "string"
|
|
140
|
-
},
|
|
141
|
-
"module": {
|
|
142
|
-
"additionalProperties": false,
|
|
143
|
-
"description": "Module Definition",
|
|
144
|
-
"properties": {
|
|
145
|
-
"config": {
|
|
146
|
-
"$ref": "#/definitions/config"
|
|
147
|
-
},
|
|
148
|
-
"description": {
|
|
149
|
-
"type": "string"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"required": [
|
|
153
|
-
"config"
|
|
154
|
-
],
|
|
155
|
-
"type": "object"
|
|
156
|
-
},
|
|
157
|
-
"modules": {
|
|
158
|
-
"description": "List of Modules",
|
|
159
|
-
"items": {
|
|
160
|
-
"$ref": "#/definitions/module"
|
|
161
|
-
},
|
|
162
|
-
"nullable": true,
|
|
163
|
-
"type": "array"
|
|
164
|
-
},
|
|
165
|
-
"node": {
|
|
166
|
-
"additionalProperties": false,
|
|
167
|
-
"description": "Node Definition - Generally loaded into an existing or new Node Module",
|
|
168
|
-
"properties": {
|
|
169
|
-
"config": {
|
|
170
|
-
"$ref": "#/definitions/config"
|
|
171
|
-
},
|
|
172
|
-
"description": {
|
|
173
|
-
"type": "string"
|
|
174
|
-
},
|
|
175
|
-
"modules": {
|
|
176
|
-
"additionalProperties": false,
|
|
177
|
-
"description": "Modules in the Node",
|
|
178
|
-
"properties": {
|
|
179
|
-
"private": {
|
|
180
|
-
"$ref": "#/definitions/modules"
|
|
181
|
-
},
|
|
182
|
-
"public": {
|
|
183
|
-
"$ref": "#/definitions/modules"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"required": [],
|
|
187
|
-
"type": "object"
|
|
188
|
-
},
|
|
189
|
-
"name": {
|
|
190
|
-
"type": "string"
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
"required": [],
|
|
194
|
-
"type": "object"
|
|
195
|
-
},
|
|
196
|
-
"nodes": {
|
|
197
|
-
"description": "List of Node Manifests",
|
|
198
|
-
"items": {
|
|
199
|
-
"$ref": "#/definitions/node"
|
|
200
|
-
},
|
|
201
|
-
"type": "array"
|
|
202
|
-
},
|
|
203
|
-
"os": {
|
|
204
|
-
"description": "Operating System",
|
|
205
|
-
"enum": [
|
|
206
|
-
"aix",
|
|
207
|
-
"android",
|
|
208
|
-
"darwin",
|
|
209
|
-
"dragonfly",
|
|
210
|
-
"freebsd",
|
|
211
|
-
"illumos",
|
|
212
|
-
"ios",
|
|
213
|
-
"linux",
|
|
214
|
-
"netbsd",
|
|
215
|
-
"openbsd",
|
|
216
|
-
"osx",
|
|
217
|
-
"plan9",
|
|
218
|
-
"solaris",
|
|
219
|
-
"windows"
|
|
220
|
-
],
|
|
221
|
-
"type": "string"
|
|
222
|
-
},
|
|
223
|
-
"payloads": {
|
|
224
|
-
"description": "List of Modules",
|
|
225
|
-
"items": {
|
|
226
|
-
"$ref": "#/definitions/module"
|
|
227
|
-
},
|
|
228
|
-
"nullable": true,
|
|
229
|
-
"type": "array"
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"properties": {
|
|
233
|
-
"$schema": {
|
|
234
|
-
"type": "string"
|
|
235
|
-
},
|
|
236
|
-
"description": {
|
|
237
|
-
"type": "string"
|
|
238
|
-
},
|
|
239
|
-
"external": {
|
|
240
|
-
"$ref": "#/definitions/external",
|
|
241
|
-
"description": "The list of permission requests made by the dApp"
|
|
242
|
-
},
|
|
243
|
-
"nodes": {
|
|
244
|
-
"$ref": "#/definitions/nodes",
|
|
245
|
-
"description": "The list of Nodes that are defined in the manifest"
|
|
246
|
-
},
|
|
247
|
-
"schema": {
|
|
248
|
-
"pattern": "^network.xyo.manifest.package.dapp$",
|
|
249
|
-
"type": "string"
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"required": [
|
|
253
|
-
"nodes",
|
|
254
|
-
"schema"
|
|
255
|
-
],
|
|
256
|
-
"title": "XYO Dapp Manifest",
|
|
257
|
-
"type": "object"
|
|
258
|
-
}
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"additionalProperties": false,
|
|
4
|
-
"definitions": {
|
|
5
|
-
"architecture": {
|
|
6
|
-
"description": "Architecture",
|
|
7
|
-
"enum": [
|
|
8
|
-
"386",
|
|
9
|
-
"amd64",
|
|
10
|
-
"arm",
|
|
11
|
-
"arm64",
|
|
12
|
-
"loong64",
|
|
13
|
-
"mips",
|
|
14
|
-
"mipsle",
|
|
15
|
-
"mips64",
|
|
16
|
-
"mips64le",
|
|
17
|
-
"ppc64",
|
|
18
|
-
"ppc64le",
|
|
19
|
-
"riscv64",
|
|
20
|
-
"s390x",
|
|
21
|
-
"wasm"
|
|
22
|
-
],
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"config": {
|
|
26
|
-
"additionalProperties": true,
|
|
27
|
-
"description": "Config for a module",
|
|
28
|
-
"properties": {
|
|
29
|
-
"accountPath": {
|
|
30
|
-
"description": "HDWallet path to derive account",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"architecture": {
|
|
34
|
-
"$ref": "#/definitions/architecture"
|
|
35
|
-
},
|
|
36
|
-
"description": {
|
|
37
|
-
"type": "string"
|
|
38
|
-
},
|
|
39
|
-
"features": {
|
|
40
|
-
"items": {
|
|
41
|
-
"$ref": "#/definitions/feature"
|
|
42
|
-
},
|
|
43
|
-
"type": "array"
|
|
44
|
-
},
|
|
45
|
-
"language": {
|
|
46
|
-
"$ref": "#/definitions/language"
|
|
47
|
-
},
|
|
48
|
-
"name": {
|
|
49
|
-
"type": "string"
|
|
50
|
-
},
|
|
51
|
-
"os": {
|
|
52
|
-
"$ref": "#/definitions/os"
|
|
53
|
-
},
|
|
54
|
-
"schema": {
|
|
55
|
-
"type": "string"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"required": [
|
|
59
|
-
"name",
|
|
60
|
-
"schema"
|
|
61
|
-
],
|
|
62
|
-
"type": "object"
|
|
63
|
-
},
|
|
64
|
-
"external": {
|
|
65
|
-
"additionalProperties": false,
|
|
66
|
-
"definitions": {
|
|
67
|
-
"modules": {
|
|
68
|
-
"description": "A List of module permissions requests",
|
|
69
|
-
"items": {
|
|
70
|
-
"$ref": "#/definitions/external/definitions/moduleRequest"
|
|
71
|
-
},
|
|
72
|
-
"type": "array"
|
|
73
|
-
},
|
|
74
|
-
"moduleRequest": {
|
|
75
|
-
"description": "A module permissions request",
|
|
76
|
-
"additionalProperties": false,
|
|
77
|
-
"properties": {
|
|
78
|
-
"name": {
|
|
79
|
-
"description": "Name of the module the dApp is requesting permission to access",
|
|
80
|
-
"type": "string"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"type": "object"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"properties": {
|
|
87
|
-
"modules": {
|
|
88
|
-
"$ref": "#/definitions/external/definitions/modules"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"required": [
|
|
92
|
-
"modules"
|
|
93
|
-
],
|
|
94
|
-
"type": "object"
|
|
95
|
-
},
|
|
96
|
-
"feature": {
|
|
97
|
-
"description": "Framework",
|
|
98
|
-
"enum": [
|
|
99
|
-
"angular",
|
|
100
|
-
"asp.net",
|
|
101
|
-
"browser",
|
|
102
|
-
"cryengine",
|
|
103
|
-
"corona",
|
|
104
|
-
"django",
|
|
105
|
-
"flutter",
|
|
106
|
-
"ionic",
|
|
107
|
-
"jquery",
|
|
108
|
-
"nodejs",
|
|
109
|
-
"phonegap",
|
|
110
|
-
"react",
|
|
111
|
-
"react-native",
|
|
112
|
-
"spring",
|
|
113
|
-
"unity",
|
|
114
|
-
"unreal",
|
|
115
|
-
"vue",
|
|
116
|
-
"xamarin"
|
|
117
|
-
],
|
|
118
|
-
"type": "string"
|
|
119
|
-
},
|
|
120
|
-
"language": {
|
|
121
|
-
"description": "Language",
|
|
122
|
-
"enum": [
|
|
123
|
-
"c",
|
|
124
|
-
"c++",
|
|
125
|
-
"c#",
|
|
126
|
-
"go",
|
|
127
|
-
"java",
|
|
128
|
-
"javascript",
|
|
129
|
-
"kotlin",
|
|
130
|
-
"lua",
|
|
131
|
-
"python",
|
|
132
|
-
"ruby",
|
|
133
|
-
"rust",
|
|
134
|
-
"scala",
|
|
135
|
-
"solidity",
|
|
136
|
-
"swift"
|
|
137
|
-
],
|
|
138
|
-
"type": "string"
|
|
139
|
-
},
|
|
140
|
-
"module": {
|
|
141
|
-
"additionalProperties": false,
|
|
142
|
-
"description": "Module Definition",
|
|
143
|
-
"properties": {
|
|
144
|
-
"config": {
|
|
145
|
-
"$ref": "#/definitions/config"
|
|
146
|
-
},
|
|
147
|
-
"description": {
|
|
148
|
-
"type": "string"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"required": [
|
|
152
|
-
"config"
|
|
153
|
-
],
|
|
154
|
-
"type": "object"
|
|
155
|
-
},
|
|
156
|
-
"modules": {
|
|
157
|
-
"description": "List of Modules",
|
|
158
|
-
"items": {
|
|
159
|
-
"$ref": "#/definitions/module"
|
|
160
|
-
},
|
|
161
|
-
"nullable": true,
|
|
162
|
-
"type": "array"
|
|
163
|
-
},
|
|
164
|
-
"node": {
|
|
165
|
-
"additionalProperties": false,
|
|
166
|
-
"description": "Node Definition - Generally loaded into an existing or new Node Module",
|
|
167
|
-
"properties": {
|
|
168
|
-
"config": {
|
|
169
|
-
"$ref": "#/definitions/config"
|
|
170
|
-
},
|
|
171
|
-
"description": {
|
|
172
|
-
"type": "string"
|
|
173
|
-
},
|
|
174
|
-
"modules": {
|
|
175
|
-
"additionalProperties": false,
|
|
176
|
-
"description": "Modules in the Node",
|
|
177
|
-
"properties": {
|
|
178
|
-
"private": {
|
|
179
|
-
"$ref": "#/definitions/modules"
|
|
180
|
-
},
|
|
181
|
-
"public": {
|
|
182
|
-
"$ref": "#/definitions/modules"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"required": [],
|
|
186
|
-
"type": "object"
|
|
187
|
-
},
|
|
188
|
-
"name": {
|
|
189
|
-
"type": "string"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"required": [],
|
|
193
|
-
"type": "object"
|
|
194
|
-
},
|
|
195
|
-
"nodes": {
|
|
196
|
-
"description": "List of Node Manifests",
|
|
197
|
-
"items": {
|
|
198
|
-
"$ref": "#/definitions/node"
|
|
199
|
-
},
|
|
200
|
-
"type": "array"
|
|
201
|
-
},
|
|
202
|
-
"os": {
|
|
203
|
-
"description": "Operating System",
|
|
204
|
-
"enum": [
|
|
205
|
-
"aix",
|
|
206
|
-
"android",
|
|
207
|
-
"darwin",
|
|
208
|
-
"dragonfly",
|
|
209
|
-
"freebsd",
|
|
210
|
-
"illumos",
|
|
211
|
-
"ios",
|
|
212
|
-
"linux",
|
|
213
|
-
"netbsd",
|
|
214
|
-
"openbsd",
|
|
215
|
-
"osx",
|
|
216
|
-
"plan9",
|
|
217
|
-
"solaris",
|
|
218
|
-
"windows"
|
|
219
|
-
],
|
|
220
|
-
"type": "string"
|
|
221
|
-
},
|
|
222
|
-
"payloads": {
|
|
223
|
-
"description": "List of Modules",
|
|
224
|
-
"items": {
|
|
225
|
-
"$ref": "#/definitions/module"
|
|
226
|
-
},
|
|
227
|
-
"nullable": true,
|
|
228
|
-
"type": "array"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"description": "Describes an XYO Package which is a collection of XYO Modules",
|
|
232
|
-
"properties": {
|
|
233
|
-
"$schema": {
|
|
234
|
-
"type": "string"
|
|
235
|
-
},
|
|
236
|
-
"description": {
|
|
237
|
-
"type": "string"
|
|
238
|
-
},
|
|
239
|
-
"nodes": {
|
|
240
|
-
"$ref": "#/definitions/nodes",
|
|
241
|
-
"description": "The list of Nodes that are defined in the manifest"
|
|
242
|
-
},
|
|
243
|
-
"schema": {
|
|
244
|
-
"pattern": "^network.xyo.manifest$",
|
|
245
|
-
"type": "string"
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
"required": [
|
|
249
|
-
"nodes",
|
|
250
|
-
"schema"
|
|
251
|
-
],
|
|
252
|
-
"title": "XYO Manifest",
|
|
253
|
-
"type": "object"
|
|
254
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://xyo.network/schemas/dapp-package-manifest-schema.json",
|
|
4
|
-
"additionalProperties": false,
|
|
5
|
-
"properties": {
|
|
6
|
-
"$schema": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"description": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"external": {
|
|
13
|
-
"$ref": "definitions-schema.json#/definitions/external",
|
|
14
|
-
"description": "The list of permission requests made by the dApp"
|
|
15
|
-
},
|
|
16
|
-
"nodes": {
|
|
17
|
-
"$ref": "definitions-schema.json#/definitions/nodes",
|
|
18
|
-
"description": "The list of Nodes that are defined in the manifest"
|
|
19
|
-
},
|
|
20
|
-
"schema": {
|
|
21
|
-
"pattern": "^network.xyo.manifest.package.dapp$",
|
|
22
|
-
"type": "string"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"required": [
|
|
26
|
-
"nodes",
|
|
27
|
-
"schema"
|
|
28
|
-
],
|
|
29
|
-
"title": "XYO Dapp Manifest",
|
|
30
|
-
"type": "object"
|
|
31
|
-
}
|
package/src/index.ts
DELETED
package/src/schema.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://xyo.network/schemas/package-manifest-schema.json",
|
|
4
|
-
"additionalProperties": false,
|
|
5
|
-
"description": "Describes an XYO Package which is a collection of XYO Modules",
|
|
6
|
-
"properties": {
|
|
7
|
-
"$schema": {
|
|
8
|
-
"type": "string"
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
|
-
"nodes": {
|
|
14
|
-
"$ref": "definitions-schema.json#/definitions/nodes",
|
|
15
|
-
"description": "The list of Nodes that are defined in the manifest"
|
|
16
|
-
},
|
|
17
|
-
"schema": {
|
|
18
|
-
"pattern": "^network.xyo.manifest$",
|
|
19
|
-
"type": "string"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"required": [
|
|
23
|
-
"nodes",
|
|
24
|
-
"schema"
|
|
25
|
-
],
|
|
26
|
-
"title": "XYO Manifest",
|
|
27
|
-
"type": "object"
|
|
28
|
-
}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://xyo.network/schemas/definitions-schema.json",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"architecture": {
|
|
6
|
-
"description": "Architecture",
|
|
7
|
-
"enum": [
|
|
8
|
-
"386",
|
|
9
|
-
"amd64",
|
|
10
|
-
"arm",
|
|
11
|
-
"arm64",
|
|
12
|
-
"loong64",
|
|
13
|
-
"mips",
|
|
14
|
-
"mipsle",
|
|
15
|
-
"mips64",
|
|
16
|
-
"mips64le",
|
|
17
|
-
"ppc64",
|
|
18
|
-
"ppc64le",
|
|
19
|
-
"riscv64",
|
|
20
|
-
"s390x",
|
|
21
|
-
"wasm"
|
|
22
|
-
],
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"config": {
|
|
26
|
-
"additionalProperties": true,
|
|
27
|
-
"description": "Config for a module",
|
|
28
|
-
"properties": {
|
|
29
|
-
"accountPath": {
|
|
30
|
-
"description": "HDWallet path to derive account",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"architecture": {
|
|
34
|
-
"$ref": "#/definitions/architecture"
|
|
35
|
-
},
|
|
36
|
-
"description": {
|
|
37
|
-
"type": "string"
|
|
38
|
-
},
|
|
39
|
-
"features": {
|
|
40
|
-
"items": {
|
|
41
|
-
"$ref": "#/definitions/feature"
|
|
42
|
-
},
|
|
43
|
-
"type": "array"
|
|
44
|
-
},
|
|
45
|
-
"language": {
|
|
46
|
-
"$ref": "#/definitions/language"
|
|
47
|
-
},
|
|
48
|
-
"name": {
|
|
49
|
-
"type": "string"
|
|
50
|
-
},
|
|
51
|
-
"os": {
|
|
52
|
-
"$ref": "#/definitions/os"
|
|
53
|
-
},
|
|
54
|
-
"schema": {
|
|
55
|
-
"type": "string"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"required": [
|
|
59
|
-
"name",
|
|
60
|
-
"schema"
|
|
61
|
-
],
|
|
62
|
-
"type": "object"
|
|
63
|
-
},
|
|
64
|
-
"external": {
|
|
65
|
-
"additionalProperties": false,
|
|
66
|
-
"definitions": {
|
|
67
|
-
"modules": {
|
|
68
|
-
"description": "A List of module permissions requests",
|
|
69
|
-
"items": {
|
|
70
|
-
"$ref": "#/definitions/external/definitions/moduleRequest"
|
|
71
|
-
},
|
|
72
|
-
"type": "array"
|
|
73
|
-
},
|
|
74
|
-
"moduleRequest": {
|
|
75
|
-
"description": "A module permissions request",
|
|
76
|
-
"additionalProperties": false,
|
|
77
|
-
"properties": {
|
|
78
|
-
"name": {
|
|
79
|
-
"description": "Name of the module the dApp is requesting permission to access",
|
|
80
|
-
"type": "string"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"type": "object"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"properties": {
|
|
87
|
-
"modules": {
|
|
88
|
-
"$ref": "#/definitions/external/definitions/modules"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"required": [
|
|
92
|
-
"modules"
|
|
93
|
-
],
|
|
94
|
-
"type": "object"
|
|
95
|
-
},
|
|
96
|
-
"feature": {
|
|
97
|
-
"description": "Framework",
|
|
98
|
-
"enum": [
|
|
99
|
-
"angular",
|
|
100
|
-
"asp.net",
|
|
101
|
-
"browser",
|
|
102
|
-
"cryengine",
|
|
103
|
-
"corona",
|
|
104
|
-
"django",
|
|
105
|
-
"flutter",
|
|
106
|
-
"ionic",
|
|
107
|
-
"jquery",
|
|
108
|
-
"nodejs",
|
|
109
|
-
"phonegap",
|
|
110
|
-
"react",
|
|
111
|
-
"react-native",
|
|
112
|
-
"spring",
|
|
113
|
-
"unity",
|
|
114
|
-
"unreal",
|
|
115
|
-
"vue",
|
|
116
|
-
"xamarin"
|
|
117
|
-
],
|
|
118
|
-
"type": "string"
|
|
119
|
-
},
|
|
120
|
-
"language": {
|
|
121
|
-
"description": "Language",
|
|
122
|
-
"enum": [
|
|
123
|
-
"c",
|
|
124
|
-
"c++",
|
|
125
|
-
"c#",
|
|
126
|
-
"go",
|
|
127
|
-
"java",
|
|
128
|
-
"javascript",
|
|
129
|
-
"kotlin",
|
|
130
|
-
"lua",
|
|
131
|
-
"python",
|
|
132
|
-
"ruby",
|
|
133
|
-
"rust",
|
|
134
|
-
"scala",
|
|
135
|
-
"solidity",
|
|
136
|
-
"swift"
|
|
137
|
-
],
|
|
138
|
-
"type": "string"
|
|
139
|
-
},
|
|
140
|
-
"module": {
|
|
141
|
-
"additionalProperties": false,
|
|
142
|
-
"description": "Module Definition",
|
|
143
|
-
"properties": {
|
|
144
|
-
"config": {
|
|
145
|
-
"$ref": "#/definitions/config"
|
|
146
|
-
},
|
|
147
|
-
"description": {
|
|
148
|
-
"type": "string"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"required": [
|
|
152
|
-
"config"
|
|
153
|
-
],
|
|
154
|
-
"type": "object"
|
|
155
|
-
},
|
|
156
|
-
"modules": {
|
|
157
|
-
"description": "List of Modules",
|
|
158
|
-
"items": {
|
|
159
|
-
"$ref": "#/definitions/module"
|
|
160
|
-
},
|
|
161
|
-
"nullable": true,
|
|
162
|
-
"type": "array"
|
|
163
|
-
},
|
|
164
|
-
"node": {
|
|
165
|
-
"additionalProperties": false,
|
|
166
|
-
"description": "Node Definition - Generally loaded into an existing or new Node Module",
|
|
167
|
-
"properties": {
|
|
168
|
-
"config": {
|
|
169
|
-
"$ref": "#/definitions/config"
|
|
170
|
-
},
|
|
171
|
-
"description": {
|
|
172
|
-
"type": "string"
|
|
173
|
-
},
|
|
174
|
-
"modules": {
|
|
175
|
-
"additionalProperties": false,
|
|
176
|
-
"description": "Modules in the Node",
|
|
177
|
-
"properties": {
|
|
178
|
-
"private": {
|
|
179
|
-
"$ref": "#/definitions/modules"
|
|
180
|
-
},
|
|
181
|
-
"public": {
|
|
182
|
-
"$ref": "#/definitions/modules"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"required": [],
|
|
186
|
-
"type": "object"
|
|
187
|
-
},
|
|
188
|
-
"name": {
|
|
189
|
-
"type": "string"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"required": [],
|
|
193
|
-
"type": "object"
|
|
194
|
-
},
|
|
195
|
-
"nodes": {
|
|
196
|
-
"description": "List of Node Manifests",
|
|
197
|
-
"items": {
|
|
198
|
-
"$ref": "#/definitions/node"
|
|
199
|
-
},
|
|
200
|
-
"type": "array"
|
|
201
|
-
},
|
|
202
|
-
"os": {
|
|
203
|
-
"description": "Operating System",
|
|
204
|
-
"enum": [
|
|
205
|
-
"aix",
|
|
206
|
-
"android",
|
|
207
|
-
"darwin",
|
|
208
|
-
"dragonfly",
|
|
209
|
-
"freebsd",
|
|
210
|
-
"illumos",
|
|
211
|
-
"ios",
|
|
212
|
-
"linux",
|
|
213
|
-
"netbsd",
|
|
214
|
-
"openbsd",
|
|
215
|
-
"osx",
|
|
216
|
-
"plan9",
|
|
217
|
-
"solaris",
|
|
218
|
-
"windows"
|
|
219
|
-
],
|
|
220
|
-
"type": "string"
|
|
221
|
-
},
|
|
222
|
-
"payloads": {
|
|
223
|
-
"description": "List of Modules",
|
|
224
|
-
"items": {
|
|
225
|
-
"$ref": "#/definitions/module"
|
|
226
|
-
},
|
|
227
|
-
"nullable": true,
|
|
228
|
-
"type": "array"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export const invalidDappPackageManifestSchema = {
|
|
2
|
-
external: {
|
|
3
|
-
modules1: [
|
|
4
|
-
{ name: 0 },
|
|
5
|
-
],
|
|
6
|
-
},
|
|
7
|
-
nodes: [
|
|
8
|
-
{
|
|
9
|
-
config: {
|
|
10
|
-
accountPath: "0'",
|
|
11
|
-
name: 1,
|
|
12
|
-
schema: 'network.xyo.node.config',
|
|
13
|
-
},
|
|
14
|
-
modules: {
|
|
15
|
-
public: [
|
|
16
|
-
{
|
|
17
|
-
config: {
|
|
18
|
-
accountPath: "1'",
|
|
19
|
-
name: 'SomeArchivist',
|
|
20
|
-
schema: 'network.xyo.archivist.config',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
schema: 'network.xyo.foo.manifest',
|
|
28
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export const validDappPackageManifestSchema = {
|
|
2
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
3
|
-
external: {
|
|
4
|
-
modules: [
|
|
5
|
-
{ name: 'SomeModule' },
|
|
6
|
-
],
|
|
7
|
-
},
|
|
8
|
-
nodes: [
|
|
9
|
-
{
|
|
10
|
-
config: {
|
|
11
|
-
accountPath: "0'",
|
|
12
|
-
name: 'DappNode',
|
|
13
|
-
schema: 'network.xyo.node.config',
|
|
14
|
-
},
|
|
15
|
-
modules: {
|
|
16
|
-
public: [
|
|
17
|
-
{
|
|
18
|
-
config: {
|
|
19
|
-
accountPath: "1'",
|
|
20
|
-
name: 'SomeArchivist',
|
|
21
|
-
schema: 'network.xyo.archivist.config',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
schema: 'network.xyo.manifest.package.dapp',
|
|
29
|
-
}
|
package/src/spec/cases/index.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export const invalidPackageManifestSchema = {
|
|
2
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
3
|
-
foo: 'bar',
|
|
4
|
-
nodes: [
|
|
5
|
-
{
|
|
6
|
-
config3: {
|
|
7
|
-
accountPath: "0'",
|
|
8
|
-
name: 1,
|
|
9
|
-
schema: 'network.xyo.node.config',
|
|
10
|
-
},
|
|
11
|
-
modules: {
|
|
12
|
-
public2: [
|
|
13
|
-
{
|
|
14
|
-
config: {
|
|
15
|
-
accountPath: "1'",
|
|
16
|
-
name: 'SomeArchivist',
|
|
17
|
-
schema: 'network.xyo.archivist.config',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
schema: 'network.xyo.foo.manifest',
|
|
25
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export const validPackageManifestSchema = {
|
|
2
|
-
$schema: 'https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/compilations/schema.json',
|
|
3
|
-
nodes: [
|
|
4
|
-
{
|
|
5
|
-
config: {
|
|
6
|
-
accountPath: "0'",
|
|
7
|
-
name: 'DappNode',
|
|
8
|
-
schema: 'network.xyo.node.config',
|
|
9
|
-
},
|
|
10
|
-
modules: {
|
|
11
|
-
public: [
|
|
12
|
-
{
|
|
13
|
-
config: {
|
|
14
|
-
accountPath: "1'",
|
|
15
|
-
name: 'SomeArchivist',
|
|
16
|
-
schema: 'network.xyo.archivist.config',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
schema: 'network.xyo.manifest',
|
|
24
|
-
}
|