@wowok/agent-mcp 2.2.13 → 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.js +42 -98
- 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 +7 -5
- package/dist/docs/index.d.ts +0 -3
- package/dist/docs/index.js +0 -2
- package/dist/docs/loader.d.ts +0 -12
- package/dist/docs/loader.js +0 -177
- package/dist/docs/search.d.ts +0 -17
- package/dist/docs/search.js +0 -325
- package/dist/docs/types.d.ts +0 -55
- package/dist/docs/types.js +0 -1
- package/docs/README.md +0 -249
- package/docs/WIP.md +0 -388
- package/docs/WTS.md +0 -536
- package/docs/docs/account.md +0 -914
- package/docs/docs/allocation.md +0 -635
- package/docs/docs/arbitration.md +0 -1804
- package/docs/docs/arbitration_state_machine.md +0 -270
- package/docs/docs/contact.md +0 -709
- package/docs/docs/demand.md +0 -948
- package/docs/docs/guard.md +0 -1465
- package/docs/docs/localinfo.md +0 -432
- package/docs/docs/localmark.md +0 -583
- package/docs/docs/machine.md +0 -2490
- package/docs/docs/messenger.md +0 -2098
- package/docs/docs/onchain_events.md +0 -267
- package/docs/docs/order.md +0 -1001
- package/docs/docs/payment.md +0 -512
- package/docs/docs/permission.md +0 -1438
- package/docs/docs/personal.md +0 -742
- package/docs/docs/progress.md +0 -1748
- package/docs/docs/query.md +0 -467
- package/docs/docs/repository.md +0 -1043
- package/docs/docs/reward.md +0 -833
- package/docs/docs/service.md +0 -2130
- package/docs/docs/stage-01-introduction.md +0 -243
- package/docs/docs/stage-02-trust.md +0 -302
- package/docs/docs/stage-03-collaboration.md +0 -337
- package/docs/docs/stage-04-transaction.md +0 -277
- package/docs/docs/stage-05-business.md +0 -151
- package/docs/docs/stage-06-personal.md +0 -203
- package/docs/docs/stage-07-query.md +0 -572
- package/docs/docs/stage-08-examples.md +0 -184
- package/docs/docs/treasury.md +0 -1149
- package/docs/docs/wowok_buildin_info.md +0 -740
- package/docs/examples/Insurance/Insurance.md +0 -594
- package/docs/examples/Insurance/Insurance_TestResults.md +0 -481
- package/docs/examples/Insurance/insurance_complete_guard_v1.json +0 -50
- package/docs/examples/MyShop/MyShop.md +0 -1353
- package/docs/examples/MyShop/MyShop_TestResults.md +0 -1003
- package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +0 -1898
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
- package/docs/examples/MyShop_Advanced/machine_nodes.json +0 -222
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +0 -776
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
- package/docs/examples/Travel/Travel.md +0 -1157
- package/docs/examples/Travel/Travel_TestResults.md +0 -743
- package/docs/examples/Travel/calc-weather-timestamps.js +0 -8
- package/docs/examples/Travel/travel_machine_v2_export.json +0 -104
- package/docs/examples/Travel/weather_check_guard_v1.json +0 -51
- package/docs/skills/WOWOK.md +0 -650
- package/docs/skills/onchain_operations/_common.md +0 -406
- package/docs/skills/onchain_operations/_index.md +0 -196
- package/docs/skills/onchain_operations/allocation.md +0 -28
- package/docs/skills/onchain_operations/arbitration.md +0 -106
- package/docs/skills/onchain_operations/contact.md +0 -40
- package/docs/skills/onchain_operations/demand.md +0 -53
- package/docs/skills/onchain_operations/gen_passport.md +0 -23
- package/docs/skills/onchain_operations/guard.md +0 -56
- package/docs/skills/onchain_operations/machine.md +0 -89
- package/docs/skills/onchain_operations/order.md +0 -56
- package/docs/skills/onchain_operations/payment.md +0 -24
- package/docs/skills/onchain_operations/permission.md +0 -68
- package/docs/skills/onchain_operations/personal.md +0 -58
- package/docs/skills/onchain_operations/progress.md +0 -38
- package/docs/skills/onchain_operations/repository.md +0 -70
- package/docs/skills/onchain_operations/reward.md +0 -38
- package/docs/skills/onchain_operations/service.md +0 -78
- package/docs/skills/onchain_operations/treasury.md +0 -68
- package/docs/skills/schema-account_operation.md +0 -402
- package/docs/skills/schema-guard2file.md +0 -153
- package/docs/skills/schema-local_info_operation.md +0 -160
- package/docs/skills/schema-local_mark_operation.md +0 -148
- package/docs/skills/schema-machineNode2file.md +0 -155
- package/docs/skills/schema-messenger_operation.md +0 -547
- package/docs/skills/schema-onchain_events.md +0 -201
- package/docs/skills/schema-onchain_table_data.md +0 -334
- package/docs/skills/schema-query_toolkit.md +0 -395
- package/docs/skills/schema-wip_file.md +0 -240
- package/docs/skills/schema-wowok_buildin_info.md +0 -296
- package/docs/wip-examples/three_body.html +0 -57
- package/docs/wip-examples/three_body.wip +0 -30
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations_order.json",
|
|
4
|
+
"title": "Order Operation",
|
|
5
|
+
"description": "On-chain order operation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"operation_type": {
|
|
9
|
+
"const": "order"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"$ref": "#/definitions/data",
|
|
13
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
14
|
+
},
|
|
15
|
+
"env": {
|
|
16
|
+
"$ref": "#/definitions/env",
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
},
|
|
19
|
+
"submission": {
|
|
20
|
+
"$ref": "#/definitions/submission",
|
|
21
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"operation_type",
|
|
26
|
+
"data"
|
|
27
|
+
],
|
|
28
|
+
"definitions": {
|
|
29
|
+
"data": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"object": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Order object ID or name."
|
|
35
|
+
},
|
|
36
|
+
"agents": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"entities": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"name_or_address": {
|
|
45
|
+
"$ref": "#/definitions/data/properties/object",
|
|
46
|
+
"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)."
|
|
47
|
+
},
|
|
48
|
+
"local_mark_first": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"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."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"check_all_founded": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"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"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"entities"
|
|
64
|
+
],
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"description": "Order agents. Agents can operate the order, such as canceling the order, modifying the order status, etc.; but cannot receive the funds received by the order."
|
|
67
|
+
},
|
|
68
|
+
"required_info": {
|
|
69
|
+
"anyOf": [
|
|
70
|
+
{
|
|
71
|
+
"$ref": "#/definitions/data/properties/agents/properties/entities/items/properties/name_or_address"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "null"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"description": "Contact object ID (recipient) or WTS Proof object (delivery proof) that information has been delivered via Wowok Messenger."
|
|
78
|
+
},
|
|
79
|
+
"progress": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"operation": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"next_node_name": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Next node name."
|
|
88
|
+
},
|
|
89
|
+
"forward": {
|
|
90
|
+
"$ref": "#/definitions/data/properties/progress/properties/operation/properties/next_node_name",
|
|
91
|
+
"description": "Next forward name."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"next_node_name",
|
|
96
|
+
"forward"
|
|
97
|
+
],
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"description": "Specify a specific operation between current node and next node."
|
|
100
|
+
},
|
|
101
|
+
"hold": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"description": "Whether to lock operation permission. When true, locks the permission; when false or omitted, submits operation result directly."
|
|
104
|
+
},
|
|
105
|
+
"adminUnhold": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"description": "Whether to allow admin to force unlock. Only applicable when hold is true."
|
|
108
|
+
},
|
|
109
|
+
"message": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Operation result message."
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"operation"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"description": "Advance order process"
|
|
119
|
+
},
|
|
120
|
+
"arb_confirm": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"arb": {
|
|
124
|
+
"$ref": "#/definitions/data/properties/object",
|
|
125
|
+
"description": "Arb object ID or name."
|
|
126
|
+
},
|
|
127
|
+
"confirm": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"description": "Whether to confirm that the submitted arbitration materials are valid for arbitration."
|
|
130
|
+
},
|
|
131
|
+
"description": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"description": "Message description for compensation application."
|
|
134
|
+
},
|
|
135
|
+
"proposition": {
|
|
136
|
+
"type": "array",
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"description": "Compensation claims."
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"arb",
|
|
145
|
+
"confirm"
|
|
146
|
+
],
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"description": "Submit compensation request and apply for arbitration"
|
|
149
|
+
},
|
|
150
|
+
"arb_objection": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"properties": {
|
|
153
|
+
"arb": {
|
|
154
|
+
"$ref": "#/definitions/data/properties/object",
|
|
155
|
+
"description": "Arb object ID or name."
|
|
156
|
+
},
|
|
157
|
+
"objection": {
|
|
158
|
+
"$ref": "#/definitions/data/properties/arb_confirm/properties/description",
|
|
159
|
+
"description": "Oppose and appeal the arbitration result, request re-arbitration"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"arb",
|
|
164
|
+
"objection"
|
|
165
|
+
],
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"description": "Oppose and appeal the arbitration result, request re-arbitration."
|
|
168
|
+
},
|
|
169
|
+
"arb_claim_compensation": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {
|
|
172
|
+
"arb": {
|
|
173
|
+
"$ref": "#/definitions/data/properties/object",
|
|
174
|
+
"description": "Arb object ID or name."
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": [
|
|
178
|
+
"arb"
|
|
179
|
+
],
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"description": "Specify the adjudicated Arb object to obtain order compensation."
|
|
182
|
+
},
|
|
183
|
+
"receive": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": {
|
|
186
|
+
"result": {
|
|
187
|
+
"anyOf": [
|
|
188
|
+
{
|
|
189
|
+
"type": "object",
|
|
190
|
+
"properties": {
|
|
191
|
+
"balance": {
|
|
192
|
+
"type": [
|
|
193
|
+
"number",
|
|
194
|
+
"string"
|
|
195
|
+
],
|
|
196
|
+
"description": "Balance type"
|
|
197
|
+
},
|
|
198
|
+
"token_type": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"description": "Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."
|
|
201
|
+
},
|
|
202
|
+
"received": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"id": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Received CoinWrapper object ID"
|
|
210
|
+
},
|
|
211
|
+
"balance": {
|
|
212
|
+
"$ref": "#/definitions/data/properties/receive/properties/result/anyOf/0/properties/balance"
|
|
213
|
+
},
|
|
214
|
+
"payment": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "Payment object ID"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": [
|
|
220
|
+
"id",
|
|
221
|
+
"balance",
|
|
222
|
+
"payment"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"description": "Received CoinWrapper object record"
|
|
226
|
+
},
|
|
227
|
+
"description": "Received records of Coin objects"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"required": [
|
|
231
|
+
"balance",
|
|
232
|
+
"token_type",
|
|
233
|
+
"received"
|
|
234
|
+
],
|
|
235
|
+
"additionalProperties": false,
|
|
236
|
+
"description": "Received record of Coin objects"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"type": "array",
|
|
240
|
+
"items": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"properties": {
|
|
243
|
+
"id": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"minLength": 1,
|
|
246
|
+
"description": "Received object ID"
|
|
247
|
+
},
|
|
248
|
+
"type": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"minLength": 1,
|
|
251
|
+
"description": "Object type"
|
|
252
|
+
},
|
|
253
|
+
"content_raw": {
|
|
254
|
+
"description": "Raw content data"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": [
|
|
258
|
+
"id",
|
|
259
|
+
"type"
|
|
260
|
+
],
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"description": "Received normal object record"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"description": "Received CoinWrapper object record or received other objects array"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": [
|
|
270
|
+
"result"
|
|
271
|
+
],
|
|
272
|
+
"additionalProperties": false,
|
|
273
|
+
"description": "Unwrap CoinWrapper objects or other objects received by the order and transfer them to the order owner"
|
|
274
|
+
},
|
|
275
|
+
"transfer_to": {
|
|
276
|
+
"$ref": "#/definitions/data/properties/agents/properties/entities/items",
|
|
277
|
+
"description": "Set new owner of the order. Requires order owner permission to set."
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"object"
|
|
282
|
+
],
|
|
283
|
+
"additionalProperties": false,
|
|
284
|
+
"description": "On-chain, operate on an Order object."
|
|
285
|
+
},
|
|
286
|
+
"env": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"properties": {
|
|
289
|
+
"account": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"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).",
|
|
292
|
+
"default": ""
|
|
293
|
+
},
|
|
294
|
+
"permission_guard": {
|
|
295
|
+
"type": "array",
|
|
296
|
+
"items": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
},
|
|
299
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
300
|
+
},
|
|
301
|
+
"no_cache": {
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"description": "Whether to disable caching."
|
|
304
|
+
},
|
|
305
|
+
"network": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"enum": [
|
|
308
|
+
"localnet",
|
|
309
|
+
"testnet"
|
|
310
|
+
],
|
|
311
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
312
|
+
},
|
|
313
|
+
"referrer": {
|
|
314
|
+
"$ref": "#/definitions/env/properties/account",
|
|
315
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"additionalProperties": false,
|
|
319
|
+
"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."
|
|
320
|
+
},
|
|
321
|
+
"submission": {
|
|
322
|
+
"type": "object",
|
|
323
|
+
"properties": {
|
|
324
|
+
"type": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"const": "submission",
|
|
327
|
+
"description": "Type of call response: submission"
|
|
328
|
+
},
|
|
329
|
+
"guard": {
|
|
330
|
+
"type": "array",
|
|
331
|
+
"items": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"properties": {
|
|
334
|
+
"object": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Guard object name or ID."
|
|
337
|
+
},
|
|
338
|
+
"impack": {
|
|
339
|
+
"type": "boolean",
|
|
340
|
+
"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."
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"required": [
|
|
344
|
+
"object",
|
|
345
|
+
"impack"
|
|
346
|
+
],
|
|
347
|
+
"additionalProperties": false
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"submission": {
|
|
351
|
+
"type": "array",
|
|
352
|
+
"items": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"guard": {
|
|
356
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
357
|
+
"description": "Guard object name or ID."
|
|
358
|
+
},
|
|
359
|
+
"submission": {
|
|
360
|
+
"type": "array",
|
|
361
|
+
"items": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"properties": {
|
|
364
|
+
"identifier": {
|
|
365
|
+
"type": "integer",
|
|
366
|
+
"minimum": 0,
|
|
367
|
+
"maximum": 255,
|
|
368
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
369
|
+
},
|
|
370
|
+
"b_submission": {
|
|
371
|
+
"type": "boolean",
|
|
372
|
+
"description": "Whether user submission is required for this data"
|
|
373
|
+
},
|
|
374
|
+
"value_type": {
|
|
375
|
+
"anyOf": [
|
|
376
|
+
{
|
|
377
|
+
"type": "number",
|
|
378
|
+
"const": 0,
|
|
379
|
+
"description": "Bool (0)"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"type": "number",
|
|
383
|
+
"const": 1,
|
|
384
|
+
"description": "Address (1)"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"type": "number",
|
|
388
|
+
"const": 2,
|
|
389
|
+
"description": "String (2)"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"type": "number",
|
|
393
|
+
"const": 3,
|
|
394
|
+
"description": "U8 (3)"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"type": "number",
|
|
398
|
+
"const": 4,
|
|
399
|
+
"description": "U16 (4)"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"type": "number",
|
|
403
|
+
"const": 5,
|
|
404
|
+
"description": "U32 (5)"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"type": "number",
|
|
408
|
+
"const": 6,
|
|
409
|
+
"description": "U64 (6)"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"type": "number",
|
|
413
|
+
"const": 7,
|
|
414
|
+
"description": "U128 (7)"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"type": "number",
|
|
418
|
+
"const": 8,
|
|
419
|
+
"description": "U256 (8)"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"type": "number",
|
|
423
|
+
"const": 9,
|
|
424
|
+
"description": "VecBool (9)"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"type": "number",
|
|
428
|
+
"const": 10,
|
|
429
|
+
"description": "VecAddress (10)"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"type": "number",
|
|
433
|
+
"const": 11,
|
|
434
|
+
"description": "VecString (11)"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"type": "number",
|
|
438
|
+
"const": 12,
|
|
439
|
+
"description": "VecU8 (12)"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"type": "number",
|
|
443
|
+
"const": 13,
|
|
444
|
+
"description": "VecU16 (13)"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"type": "number",
|
|
448
|
+
"const": 14,
|
|
449
|
+
"description": "VecU32 (14)"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"type": "number",
|
|
453
|
+
"const": 15,
|
|
454
|
+
"description": "VecU64 (15)"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"type": "number",
|
|
458
|
+
"const": 16,
|
|
459
|
+
"description": "VecU128 (16)"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"type": "number",
|
|
463
|
+
"const": 17,
|
|
464
|
+
"description": "VecU256 (17)"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"type": "number",
|
|
468
|
+
"const": 18,
|
|
469
|
+
"description": "VecVecU8 (18)"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"type": "string",
|
|
473
|
+
"const": "Bool",
|
|
474
|
+
"description": "Bool"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"type": "string",
|
|
478
|
+
"const": "Address",
|
|
479
|
+
"description": "Address"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"type": "string",
|
|
483
|
+
"const": "String",
|
|
484
|
+
"description": "String"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"type": "string",
|
|
488
|
+
"const": "U8",
|
|
489
|
+
"description": "U8"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"type": "string",
|
|
493
|
+
"const": "U16",
|
|
494
|
+
"description": "U16"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"type": "string",
|
|
498
|
+
"const": "U32",
|
|
499
|
+
"description": "U32"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"type": "string",
|
|
503
|
+
"const": "U64",
|
|
504
|
+
"description": "U64"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"type": "string",
|
|
508
|
+
"const": "U128",
|
|
509
|
+
"description": "U128"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"type": "string",
|
|
513
|
+
"const": "U256",
|
|
514
|
+
"description": "U256"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"type": "string",
|
|
518
|
+
"const": "VecBool",
|
|
519
|
+
"description": "VecBool"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"type": "string",
|
|
523
|
+
"const": "VecAddress",
|
|
524
|
+
"description": "VecAddress"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"type": "string",
|
|
528
|
+
"const": "VecString",
|
|
529
|
+
"description": "VecString"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "string",
|
|
533
|
+
"const": "VecU8",
|
|
534
|
+
"description": "VecU8"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"type": "string",
|
|
538
|
+
"const": "VecU16",
|
|
539
|
+
"description": "VecU16"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"type": "string",
|
|
543
|
+
"const": "VecU32",
|
|
544
|
+
"description": "VecU32"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"type": "string",
|
|
548
|
+
"const": "VecU64",
|
|
549
|
+
"description": "VecU64"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"type": "string",
|
|
553
|
+
"const": "VecU128",
|
|
554
|
+
"description": "VecU128"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"type": "string",
|
|
558
|
+
"const": "VecU256",
|
|
559
|
+
"description": "VecU256"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"type": "string",
|
|
563
|
+
"const": "VecVecU8",
|
|
564
|
+
"description": "VecVecU8"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"type": "string",
|
|
568
|
+
"const": "bool",
|
|
569
|
+
"description": "bool"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"type": "string",
|
|
573
|
+
"const": "address",
|
|
574
|
+
"description": "address"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"type": "string",
|
|
578
|
+
"const": "string",
|
|
579
|
+
"description": "string"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"type": "string",
|
|
583
|
+
"const": "u8",
|
|
584
|
+
"description": "u8"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"type": "string",
|
|
588
|
+
"const": "u16",
|
|
589
|
+
"description": "u16"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"type": "string",
|
|
593
|
+
"const": "u32",
|
|
594
|
+
"description": "u32"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"type": "string",
|
|
598
|
+
"const": "u64",
|
|
599
|
+
"description": "u64"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"type": "string",
|
|
603
|
+
"const": "u128",
|
|
604
|
+
"description": "u128"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"type": "string",
|
|
608
|
+
"const": "u256",
|
|
609
|
+
"description": "u256"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"type": "string",
|
|
613
|
+
"const": "vecbool",
|
|
614
|
+
"description": "vecbool"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"type": "string",
|
|
618
|
+
"const": "vecaddress",
|
|
619
|
+
"description": "vecaddress"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"type": "string",
|
|
623
|
+
"const": "vecstring",
|
|
624
|
+
"description": "vecstring"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"type": "string",
|
|
628
|
+
"const": "vecu8",
|
|
629
|
+
"description": "vecu8"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"type": "string",
|
|
633
|
+
"const": "vecu16",
|
|
634
|
+
"description": "vecu16"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"type": "string",
|
|
638
|
+
"const": "vecu32",
|
|
639
|
+
"description": "vecu32"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"type": "string",
|
|
643
|
+
"const": "vecu64",
|
|
644
|
+
"description": "vecu64"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"type": "string",
|
|
648
|
+
"const": "vecu128",
|
|
649
|
+
"description": "vecu128"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"type": "string",
|
|
653
|
+
"const": "vecu256",
|
|
654
|
+
"description": "vecu256"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"type": "string",
|
|
658
|
+
"const": "vecvecu8",
|
|
659
|
+
"description": "vecvecu8"
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"description": "Type of the value"
|
|
663
|
+
},
|
|
664
|
+
"value": {
|
|
665
|
+
"anyOf": [
|
|
666
|
+
{
|
|
667
|
+
"type": "boolean"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"anyOf": [
|
|
671
|
+
{
|
|
672
|
+
"type": "object",
|
|
673
|
+
"properties": {
|
|
674
|
+
"name_or_address": {
|
|
675
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
676
|
+
"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)."
|
|
677
|
+
},
|
|
678
|
+
"local_mark_first": {
|
|
679
|
+
"type": "boolean",
|
|
680
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
"additionalProperties": false,
|
|
684
|
+
"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."
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"type": "string"
|
|
688
|
+
}
|
|
689
|
+
]
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "number"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"type": "array",
|
|
699
|
+
"items": {
|
|
700
|
+
"type": "boolean"
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"anyOf": [
|
|
705
|
+
{
|
|
706
|
+
"type": "object",
|
|
707
|
+
"properties": {
|
|
708
|
+
"entities": {
|
|
709
|
+
"type": "array",
|
|
710
|
+
"items": {
|
|
711
|
+
"$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"check_all_founded": {
|
|
715
|
+
"type": "boolean",
|
|
716
|
+
"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"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
"required": [
|
|
720
|
+
"entities"
|
|
721
|
+
],
|
|
722
|
+
"additionalProperties": false,
|
|
723
|
+
"description": "Used to batch find account or object IDs by name"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"type": "array",
|
|
727
|
+
"items": {
|
|
728
|
+
"type": "string"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
]
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "array",
|
|
735
|
+
"items": {
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"type": "array",
|
|
741
|
+
"items": {
|
|
742
|
+
"type": "number"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"type": "array",
|
|
747
|
+
"items": {
|
|
748
|
+
"type": "array",
|
|
749
|
+
"items": {
|
|
750
|
+
"type": "number"
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
"description": "The actual value data"
|
|
756
|
+
},
|
|
757
|
+
"name": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"default": "",
|
|
760
|
+
"description": "Name or description of this data"
|
|
761
|
+
},
|
|
762
|
+
"object_type": {
|
|
763
|
+
"type": "string",
|
|
764
|
+
"enum": [
|
|
765
|
+
"Permission",
|
|
766
|
+
"Repository",
|
|
767
|
+
"Arb",
|
|
768
|
+
"Arbitration",
|
|
769
|
+
"Service",
|
|
770
|
+
"Machine",
|
|
771
|
+
"Order",
|
|
772
|
+
"Progress",
|
|
773
|
+
"Payment",
|
|
774
|
+
"Treasury",
|
|
775
|
+
"Guard",
|
|
776
|
+
"Demand",
|
|
777
|
+
"Passport",
|
|
778
|
+
"Allocation",
|
|
779
|
+
"Resource",
|
|
780
|
+
"Reward",
|
|
781
|
+
"Discount",
|
|
782
|
+
"EntityRegistrar",
|
|
783
|
+
"EntityLinker",
|
|
784
|
+
"Proof",
|
|
785
|
+
"WReceivedObject",
|
|
786
|
+
"Contact",
|
|
787
|
+
"TableItem_ProgressHistory",
|
|
788
|
+
"TableItem_PermissionPerm",
|
|
789
|
+
"TableItem_DemandPresenter",
|
|
790
|
+
"TableItem_MachineNode",
|
|
791
|
+
"TableItem_TreasuryHistory",
|
|
792
|
+
"TableItem_RepositoryData",
|
|
793
|
+
"TableItem_RewardRecord",
|
|
794
|
+
"TableItem_EntityLinker",
|
|
795
|
+
"TableItem_AddressMark",
|
|
796
|
+
"TableItem_EntityRegistrar"
|
|
797
|
+
],
|
|
798
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"required": [
|
|
802
|
+
"identifier",
|
|
803
|
+
"b_submission",
|
|
804
|
+
"value_type"
|
|
805
|
+
],
|
|
806
|
+
"additionalProperties": false,
|
|
807
|
+
"description": "Guard table item"
|
|
808
|
+
},
|
|
809
|
+
"description": "User-submitted data required for Guard verification."
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"required": [
|
|
813
|
+
"guard",
|
|
814
|
+
"submission"
|
|
815
|
+
],
|
|
816
|
+
"additionalProperties": false,
|
|
817
|
+
"description": "Permission guard submission data."
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"required": [
|
|
822
|
+
"type",
|
|
823
|
+
"guard",
|
|
824
|
+
"submission"
|
|
825
|
+
],
|
|
826
|
+
"additionalProperties": false,
|
|
827
|
+
"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."
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|