@wowok/agent-mcp 2.2.11 → 2.2.14
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/index.d.ts +12 -0
- package/dist/index.js +98 -47
- package/dist/schema-query/index.d.ts +29 -0
- package/dist/schema-query/index.js +149 -0
- package/dist/schemas/account_operation.schema.json +255 -0
- package/dist/schemas/guard2file.schema.json +71 -0
- package/dist/schemas/index.json +139 -0
- package/dist/schemas/local_info_operation.schema.json +142 -0
- package/dist/schemas/local_mark_operation.schema.json +119 -0
- package/dist/schemas/machineNode2file.schema.json +71 -0
- package/dist/schemas/messenger_operation.schema.json +1393 -0
- package/dist/schemas/onchain_events.schema.json +113 -0
- package/dist/schemas/onchain_operations.schema.json +376 -0
- package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
- package/dist/schemas/onchain_operations_contact.schema.json +853 -0
- package/dist/schemas/onchain_operations_demand.schema.json +984 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
- package/dist/schemas/onchain_operations_guard.schema.json +713 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
- package/dist/schemas/onchain_operations_order.schema.json +830 -0
- package/dist/schemas/onchain_operations_payment.schema.json +717 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
- package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
- package/dist/schemas/onchain_operations_progress.schema.json +751 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
- package/dist/schemas/onchain_operations_reward.schema.json +955 -0
- package/dist/schemas/onchain_operations_service.schema.json +1411 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
- package/dist/schemas/onchain_table_data.schema.json +35 -0
- package/dist/schemas/operations/guard.json +163 -0
- package/dist/schemas/operations/permission.json +22 -0
- package/dist/schemas/query_toolkit.schema.json +32 -0
- package/dist/schemas/schema_query.schema.json +33 -0
- package/dist/schemas/wip_file.schema.json +27 -0
- package/dist/schemas/wowok_buildin_info.schema.json +487 -0
- package/package.json +8 -5
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations_guard.json",
|
|
4
|
+
"title": "Guard Operation",
|
|
5
|
+
"description": "On-chain guard operation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"operation_type": {
|
|
9
|
+
"const": "guard"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"description": "On-chain Guard creation. IMPORTANT: All defined data (include all submitted data) must be defined in the 'table' field. USAGE: Set 'namedNew' field with {name, tags?, onChain?} to name the new Guard. The Guard is immutable once created. Define the validation logic in 'root' field. When root.type='file', the file can contain all Guard fields, and any fields defined in the schema will OVERRIDE the file content.",
|
|
14
|
+
"properties": {
|
|
15
|
+
"namedNew": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"description": "Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file.",
|
|
18
|
+
"properties": {
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The name of the object"
|
|
22
|
+
},
|
|
23
|
+
"tags": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"description": "The tags of the object"
|
|
29
|
+
},
|
|
30
|
+
"onChain": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone."
|
|
33
|
+
},
|
|
34
|
+
"replaceExistName": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name."
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
},
|
|
41
|
+
"description": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Guard description. When using root.type='file', this field OVERRIDES description in the file."
|
|
44
|
+
},
|
|
45
|
+
"table": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"description": "Data table of the Guard object. When using root.type='file', this field OVERRIDES table in the file.",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"identifier": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"minimum": 0,
|
|
54
|
+
"maximum": 255,
|
|
55
|
+
"description": "Identifier index (0-255) for referencing this value in Guard nodes"
|
|
56
|
+
},
|
|
57
|
+
"bWitness": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Whether this is a witness parameter (provided at runtime)"
|
|
60
|
+
},
|
|
61
|
+
"value_type": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Value type: Bool, Address, String, U8, U16, U32, U64, U128, U256, VecBool, VecAddress, VecString, VecU8, VecU16, VecU32, VecU64, VecU128, VecU256, VecVecU8"
|
|
64
|
+
},
|
|
65
|
+
"value": {
|
|
66
|
+
"description": "The actual value (omit if bWitness is true)"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": [
|
|
70
|
+
"identifier",
|
|
71
|
+
"bWitness",
|
|
72
|
+
"value_type"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"root": {
|
|
77
|
+
"description": "Root definition: either a direct node tree (type='node') or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content.",
|
|
78
|
+
"oneOf": [
|
|
79
|
+
{
|
|
80
|
+
"type": "object",
|
|
81
|
+
"description": "Direct node tree",
|
|
82
|
+
"properties": {
|
|
83
|
+
"type": {
|
|
84
|
+
"const": "node"
|
|
85
|
+
},
|
|
86
|
+
"node": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"description": "Guard computational tree root node. MUST return a Bool value (pass/fail). See GuardNode documentation for details.",
|
|
89
|
+
"properties": {
|
|
90
|
+
"type": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": true
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": [
|
|
98
|
+
"type",
|
|
99
|
+
"node"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "object",
|
|
104
|
+
"description": "File reference",
|
|
105
|
+
"properties": {
|
|
106
|
+
"type": {
|
|
107
|
+
"const": "file"
|
|
108
|
+
},
|
|
109
|
+
"file_path": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Path to JSON or Markdown file containing Guard definition"
|
|
112
|
+
},
|
|
113
|
+
"format": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"enum": [
|
|
116
|
+
"json",
|
|
117
|
+
"markdown"
|
|
118
|
+
],
|
|
119
|
+
"default": "json",
|
|
120
|
+
"description": "File format: 'json' or 'markdown'"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"type",
|
|
125
|
+
"file_path"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"rely": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"description": "All Guard objects that the new Guard object depends on.",
|
|
133
|
+
"properties": {
|
|
134
|
+
"guards": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"description": "List of dependent Guard object IDs or names."
|
|
140
|
+
},
|
|
141
|
+
"logic_or": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"description": "Whether to use logical OR operator."
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"guards"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"root"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"env": {
|
|
156
|
+
"$ref": "#/definitions/env",
|
|
157
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
158
|
+
},
|
|
159
|
+
"submission": {
|
|
160
|
+
"$ref": "#/definitions/submission",
|
|
161
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": [
|
|
165
|
+
"operation_type",
|
|
166
|
+
"data"
|
|
167
|
+
],
|
|
168
|
+
"definitions": {
|
|
169
|
+
"env": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {
|
|
172
|
+
"account": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters).",
|
|
175
|
+
"default": ""
|
|
176
|
+
},
|
|
177
|
+
"permission_guard": {
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
},
|
|
182
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
183
|
+
},
|
|
184
|
+
"no_cache": {
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"description": "Whether to disable caching."
|
|
187
|
+
},
|
|
188
|
+
"network": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"enum": [
|
|
191
|
+
"localnet",
|
|
192
|
+
"testnet"
|
|
193
|
+
],
|
|
194
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
195
|
+
},
|
|
196
|
+
"referrer": {
|
|
197
|
+
"$ref": "#/definitions/env/properties/account",
|
|
198
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"additionalProperties": false,
|
|
202
|
+
"description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
|
|
203
|
+
},
|
|
204
|
+
"submission": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"type": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"const": "submission",
|
|
210
|
+
"description": "Type of call response: submission"
|
|
211
|
+
},
|
|
212
|
+
"guard": {
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"object": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Guard object name or ID."
|
|
220
|
+
},
|
|
221
|
+
"impack": {
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"object",
|
|
228
|
+
"impack"
|
|
229
|
+
],
|
|
230
|
+
"additionalProperties": false
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"submission": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"items": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {
|
|
238
|
+
"guard": {
|
|
239
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
240
|
+
"description": "Guard object name or ID."
|
|
241
|
+
},
|
|
242
|
+
"submission": {
|
|
243
|
+
"type": "array",
|
|
244
|
+
"items": {
|
|
245
|
+
"type": "object",
|
|
246
|
+
"properties": {
|
|
247
|
+
"identifier": {
|
|
248
|
+
"type": "integer",
|
|
249
|
+
"minimum": 0,
|
|
250
|
+
"maximum": 255,
|
|
251
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
252
|
+
},
|
|
253
|
+
"b_submission": {
|
|
254
|
+
"type": "boolean",
|
|
255
|
+
"description": "Whether user submission is required for this data"
|
|
256
|
+
},
|
|
257
|
+
"value_type": {
|
|
258
|
+
"anyOf": [
|
|
259
|
+
{
|
|
260
|
+
"type": "number",
|
|
261
|
+
"const": 0,
|
|
262
|
+
"description": "Bool (0)"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "number",
|
|
266
|
+
"const": 1,
|
|
267
|
+
"description": "Address (1)"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "number",
|
|
271
|
+
"const": 2,
|
|
272
|
+
"description": "String (2)"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"type": "number",
|
|
276
|
+
"const": 3,
|
|
277
|
+
"description": "U8 (3)"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"type": "number",
|
|
281
|
+
"const": 4,
|
|
282
|
+
"description": "U16 (4)"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"type": "number",
|
|
286
|
+
"const": 5,
|
|
287
|
+
"description": "U32 (5)"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "number",
|
|
291
|
+
"const": 6,
|
|
292
|
+
"description": "U64 (6)"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"type": "number",
|
|
296
|
+
"const": 7,
|
|
297
|
+
"description": "U128 (7)"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"type": "number",
|
|
301
|
+
"const": 8,
|
|
302
|
+
"description": "U256 (8)"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"type": "number",
|
|
306
|
+
"const": 9,
|
|
307
|
+
"description": "VecBool (9)"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "number",
|
|
311
|
+
"const": 10,
|
|
312
|
+
"description": "VecAddress (10)"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"type": "number",
|
|
316
|
+
"const": 11,
|
|
317
|
+
"description": "VecString (11)"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"type": "number",
|
|
321
|
+
"const": 12,
|
|
322
|
+
"description": "VecU8 (12)"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"type": "number",
|
|
326
|
+
"const": 13,
|
|
327
|
+
"description": "VecU16 (13)"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "number",
|
|
331
|
+
"const": 14,
|
|
332
|
+
"description": "VecU32 (14)"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"type": "number",
|
|
336
|
+
"const": 15,
|
|
337
|
+
"description": "VecU64 (15)"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"type": "number",
|
|
341
|
+
"const": 16,
|
|
342
|
+
"description": "VecU128 (16)"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"type": "number",
|
|
346
|
+
"const": 17,
|
|
347
|
+
"description": "VecU256 (17)"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"type": "number",
|
|
351
|
+
"const": 18,
|
|
352
|
+
"description": "VecVecU8 (18)"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"type": "string",
|
|
356
|
+
"const": "Bool",
|
|
357
|
+
"description": "Bool"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "string",
|
|
361
|
+
"const": "Address",
|
|
362
|
+
"description": "Address"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"type": "string",
|
|
366
|
+
"const": "String",
|
|
367
|
+
"description": "String"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"type": "string",
|
|
371
|
+
"const": "U8",
|
|
372
|
+
"description": "U8"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"type": "string",
|
|
376
|
+
"const": "U16",
|
|
377
|
+
"description": "U16"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "string",
|
|
381
|
+
"const": "U32",
|
|
382
|
+
"description": "U32"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"type": "string",
|
|
386
|
+
"const": "U64",
|
|
387
|
+
"description": "U64"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"type": "string",
|
|
391
|
+
"const": "U128",
|
|
392
|
+
"description": "U128"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"type": "string",
|
|
396
|
+
"const": "U256",
|
|
397
|
+
"description": "U256"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"type": "string",
|
|
401
|
+
"const": "VecBool",
|
|
402
|
+
"description": "VecBool"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"type": "string",
|
|
406
|
+
"const": "VecAddress",
|
|
407
|
+
"description": "VecAddress"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"type": "string",
|
|
411
|
+
"const": "VecString",
|
|
412
|
+
"description": "VecString"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"type": "string",
|
|
416
|
+
"const": "VecU8",
|
|
417
|
+
"description": "VecU8"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "string",
|
|
421
|
+
"const": "VecU16",
|
|
422
|
+
"description": "VecU16"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"type": "string",
|
|
426
|
+
"const": "VecU32",
|
|
427
|
+
"description": "VecU32"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"type": "string",
|
|
431
|
+
"const": "VecU64",
|
|
432
|
+
"description": "VecU64"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"type": "string",
|
|
436
|
+
"const": "VecU128",
|
|
437
|
+
"description": "VecU128"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"type": "string",
|
|
441
|
+
"const": "VecU256",
|
|
442
|
+
"description": "VecU256"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"type": "string",
|
|
446
|
+
"const": "VecVecU8",
|
|
447
|
+
"description": "VecVecU8"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"type": "string",
|
|
451
|
+
"const": "bool",
|
|
452
|
+
"description": "bool"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"type": "string",
|
|
456
|
+
"const": "address",
|
|
457
|
+
"description": "address"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "string",
|
|
461
|
+
"const": "string",
|
|
462
|
+
"description": "string"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"type": "string",
|
|
466
|
+
"const": "u8",
|
|
467
|
+
"description": "u8"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"type": "string",
|
|
471
|
+
"const": "u16",
|
|
472
|
+
"description": "u16"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "string",
|
|
476
|
+
"const": "u32",
|
|
477
|
+
"description": "u32"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "string",
|
|
481
|
+
"const": "u64",
|
|
482
|
+
"description": "u64"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"type": "string",
|
|
486
|
+
"const": "u128",
|
|
487
|
+
"description": "u128"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"type": "string",
|
|
491
|
+
"const": "u256",
|
|
492
|
+
"description": "u256"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"type": "string",
|
|
496
|
+
"const": "vecbool",
|
|
497
|
+
"description": "vecbool"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"type": "string",
|
|
501
|
+
"const": "vecaddress",
|
|
502
|
+
"description": "vecaddress"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"type": "string",
|
|
506
|
+
"const": "vecstring",
|
|
507
|
+
"description": "vecstring"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"type": "string",
|
|
511
|
+
"const": "vecu8",
|
|
512
|
+
"description": "vecu8"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"type": "string",
|
|
516
|
+
"const": "vecu16",
|
|
517
|
+
"description": "vecu16"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"type": "string",
|
|
521
|
+
"const": "vecu32",
|
|
522
|
+
"description": "vecu32"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "string",
|
|
526
|
+
"const": "vecu64",
|
|
527
|
+
"description": "vecu64"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"type": "string",
|
|
531
|
+
"const": "vecu128",
|
|
532
|
+
"description": "vecu128"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"type": "string",
|
|
536
|
+
"const": "vecu256",
|
|
537
|
+
"description": "vecu256"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"type": "string",
|
|
541
|
+
"const": "vecvecu8",
|
|
542
|
+
"description": "vecvecu8"
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
"description": "Type of the value"
|
|
546
|
+
},
|
|
547
|
+
"value": {
|
|
548
|
+
"anyOf": [
|
|
549
|
+
{
|
|
550
|
+
"type": "boolean"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"anyOf": [
|
|
554
|
+
{
|
|
555
|
+
"type": "object",
|
|
556
|
+
"properties": {
|
|
557
|
+
"name_or_address": {
|
|
558
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
559
|
+
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
|
|
560
|
+
},
|
|
561
|
+
"local_mark_first": {
|
|
562
|
+
"type": "boolean",
|
|
563
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"additionalProperties": false,
|
|
567
|
+
"description": "Account or address lookup object. Use this to specify which account to use for an operation. EXAMPLE: { name_or_address: 'testor2' } - looks up account by name; EXAMPLE: { name_or_address: '0x1234...' } - uses address directly; If name_or_address is empty string '', uses the default local account."
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"type": "string"
|
|
571
|
+
}
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"type": "string"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"type": "number"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"type": "array",
|
|
582
|
+
"items": {
|
|
583
|
+
"type": "boolean"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"anyOf": [
|
|
588
|
+
{
|
|
589
|
+
"type": "object",
|
|
590
|
+
"properties": {
|
|
591
|
+
"entities": {
|
|
592
|
+
"type": "array",
|
|
593
|
+
"items": {
|
|
594
|
+
"$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"check_all_founded": {
|
|
598
|
+
"type": "boolean",
|
|
599
|
+
"description": "Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"required": [
|
|
603
|
+
"entities"
|
|
604
|
+
],
|
|
605
|
+
"additionalProperties": false,
|
|
606
|
+
"description": "Used to batch find account or object IDs by name"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"type": "array",
|
|
610
|
+
"items": {
|
|
611
|
+
"type": "string"
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"type": "array",
|
|
618
|
+
"items": {
|
|
619
|
+
"type": "string"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"type": "array",
|
|
624
|
+
"items": {
|
|
625
|
+
"type": "number"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"type": "array",
|
|
630
|
+
"items": {
|
|
631
|
+
"type": "array",
|
|
632
|
+
"items": {
|
|
633
|
+
"type": "number"
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"description": "The actual value data"
|
|
639
|
+
},
|
|
640
|
+
"name": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"default": "",
|
|
643
|
+
"description": "Name or description of this data"
|
|
644
|
+
},
|
|
645
|
+
"object_type": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"enum": [
|
|
648
|
+
"Permission",
|
|
649
|
+
"Repository",
|
|
650
|
+
"Arb",
|
|
651
|
+
"Arbitration",
|
|
652
|
+
"Service",
|
|
653
|
+
"Machine",
|
|
654
|
+
"Order",
|
|
655
|
+
"Progress",
|
|
656
|
+
"Payment",
|
|
657
|
+
"Treasury",
|
|
658
|
+
"Guard",
|
|
659
|
+
"Demand",
|
|
660
|
+
"Passport",
|
|
661
|
+
"Allocation",
|
|
662
|
+
"Resource",
|
|
663
|
+
"Reward",
|
|
664
|
+
"Discount",
|
|
665
|
+
"EntityRegistrar",
|
|
666
|
+
"EntityLinker",
|
|
667
|
+
"Proof",
|
|
668
|
+
"WReceivedObject",
|
|
669
|
+
"Contact",
|
|
670
|
+
"TableItem_ProgressHistory",
|
|
671
|
+
"TableItem_PermissionPerm",
|
|
672
|
+
"TableItem_DemandPresenter",
|
|
673
|
+
"TableItem_MachineNode",
|
|
674
|
+
"TableItem_TreasuryHistory",
|
|
675
|
+
"TableItem_RepositoryData",
|
|
676
|
+
"TableItem_RewardRecord",
|
|
677
|
+
"TableItem_EntityLinker",
|
|
678
|
+
"TableItem_AddressMark",
|
|
679
|
+
"TableItem_EntityRegistrar"
|
|
680
|
+
],
|
|
681
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": [
|
|
685
|
+
"identifier",
|
|
686
|
+
"b_submission",
|
|
687
|
+
"value_type"
|
|
688
|
+
],
|
|
689
|
+
"additionalProperties": false,
|
|
690
|
+
"description": "Guard table item"
|
|
691
|
+
},
|
|
692
|
+
"description": "User-submitted data required for Guard verification."
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"required": [
|
|
696
|
+
"guard",
|
|
697
|
+
"submission"
|
|
698
|
+
],
|
|
699
|
+
"additionalProperties": false,
|
|
700
|
+
"description": "Permission guard submission data."
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
"required": [
|
|
705
|
+
"type",
|
|
706
|
+
"guard",
|
|
707
|
+
"submission"
|
|
708
|
+
],
|
|
709
|
+
"additionalProperties": false,
|
|
710
|
+
"description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|