@wowok/agent-mcp 2.2.13 → 2.2.15
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/README.md +19 -11
- package/dist/index.js +44 -100
- package/dist/schema/query/index.js +1 -1
- 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/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,853 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations_contact.json",
|
|
4
|
+
"title": "Contact Operation",
|
|
5
|
+
"description": "On-chain contact operation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"operation_type": {
|
|
9
|
+
"const": "contact"
|
|
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
|
+
"anyOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "String format: Reference an EXISTING object by its name (local mark) or on-chain object ID. Use when the Permission object already exists."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"name": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The name of the object"
|
|
44
|
+
},
|
|
45
|
+
"tags": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"description": "The tags of the object"
|
|
51
|
+
},
|
|
52
|
+
"onChain": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"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. Only set to true for displaying the relationships you are willing to make public on the chain."
|
|
55
|
+
},
|
|
56
|
+
"replaceExistName": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name (e.g., 'I must use this name', 'force rename', 'replace the existing one'). WARNING: This will UNBIND the name from its original object and rebind it to the new one, potentially breaking existing references. If not specified or false: the operation will FAIL with an error when the name is already in use (safe default behavior)."
|
|
59
|
+
},
|
|
60
|
+
"permission": {
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
64
|
+
"description": "String format: Reference an EXISTING object by its name (local mark) or on-chain object ID. Example: 'my-object' or '0x1234...'"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"name": {
|
|
70
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name"
|
|
71
|
+
},
|
|
72
|
+
"tags": {
|
|
73
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/tags"
|
|
74
|
+
},
|
|
75
|
+
"onChain": {
|
|
76
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/onChain"
|
|
77
|
+
},
|
|
78
|
+
"replaceExistName": {
|
|
79
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/replaceExistName"
|
|
80
|
+
},
|
|
81
|
+
"description": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "The description of the object"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"description": "Object format: CREATE a NEW object with name, optional description, and visibility settings. Extends NamedObjectSchema with an additional 'description' field for detailed object information."
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"description": "Two ways to specify an object: (1) STRING - Reference an EXISTING object by name or ID; (2) OBJECT - CREATE a NEW object with full configuration including optional name, tags, description, and visibility settings (local private by default, or public on-chain with onChain:true)."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"description": "Object format: CREATE a NEW object with Permission-based access control. Includes optional name, tags, visibility settings, AND a Permission object (which itself can be referenced by string or created as a new object). Use this to create objects with managed access permissions."
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"description": "Two ways to specify a Permission-managed object: (1) STRING - Reference an EXISTING Permission object by name or ID; (2) OBJECT - CREATE a NEW object with Permission access control, where the Permission can also be either referenced (string) or newly created (object). This is used when you need permission management but don't need to specify a token type."
|
|
98
|
+
},
|
|
99
|
+
"my_status": {
|
|
100
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name",
|
|
101
|
+
"description": "Set your status message in this contact list. Only valid if your account is already in the IM list"
|
|
102
|
+
},
|
|
103
|
+
"description": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"description": "Contact object description or public information"
|
|
106
|
+
},
|
|
107
|
+
"location": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"description": "Physical or virtual location information for this contact"
|
|
110
|
+
},
|
|
111
|
+
"ims": {
|
|
112
|
+
"anyOf": [
|
|
113
|
+
{
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"op": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"const": "add",
|
|
119
|
+
"description": "Add new IM contacts to the list"
|
|
120
|
+
},
|
|
121
|
+
"im": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"items": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {
|
|
126
|
+
"at": {
|
|
127
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
128
|
+
"description": "Contact's account address or name for instant messaging"
|
|
129
|
+
},
|
|
130
|
+
"description": {
|
|
131
|
+
"$ref": "#/definitions/data/properties/location",
|
|
132
|
+
"description": "Optional description or note about this contact"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"at"
|
|
137
|
+
],
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"description": "An instant messaging contact entry with address and optional description"
|
|
140
|
+
},
|
|
141
|
+
"description": "List of IM contacts to add"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"required": [
|
|
145
|
+
"op",
|
|
146
|
+
"im"
|
|
147
|
+
],
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"description": "Add operation: Append new contacts to the existing IM list"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "object",
|
|
153
|
+
"properties": {
|
|
154
|
+
"op": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"const": "set",
|
|
157
|
+
"description": "Set/replace all IM contacts"
|
|
158
|
+
},
|
|
159
|
+
"im": {
|
|
160
|
+
"type": "array",
|
|
161
|
+
"items": {
|
|
162
|
+
"$ref": "#/definitions/data/properties/ims/anyOf/0/properties/im/items"
|
|
163
|
+
},
|
|
164
|
+
"description": "Complete list of IM contacts to set"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": [
|
|
168
|
+
"op",
|
|
169
|
+
"im"
|
|
170
|
+
],
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"description": "Set operation: Replace entire IM list with new contacts"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"op": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"const": "remove",
|
|
180
|
+
"description": "Remove specific IM contacts"
|
|
181
|
+
},
|
|
182
|
+
"im": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"items": {
|
|
185
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
186
|
+
"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)."
|
|
187
|
+
},
|
|
188
|
+
"description": "List of contact addresses or names to remove"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": [
|
|
192
|
+
"op",
|
|
193
|
+
"im"
|
|
194
|
+
],
|
|
195
|
+
"additionalProperties": false,
|
|
196
|
+
"description": "Remove operation: Delete specified contacts from the IM list"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"op": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"const": "clear",
|
|
204
|
+
"description": "Clear all IM contacts"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"required": [
|
|
208
|
+
"op"
|
|
209
|
+
],
|
|
210
|
+
"additionalProperties": false,
|
|
211
|
+
"description": "Clear operation: Remove all contacts from the IM list"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"description": "IM contact list operation: add, set, remove, or clear instant messaging contacts"
|
|
215
|
+
},
|
|
216
|
+
"owner_receive": {
|
|
217
|
+
"anyOf": [
|
|
218
|
+
{
|
|
219
|
+
"type": "array",
|
|
220
|
+
"items": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"id": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"minLength": 1,
|
|
226
|
+
"description": "Received object ID"
|
|
227
|
+
},
|
|
228
|
+
"type": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"minLength": 1,
|
|
231
|
+
"description": "Object type"
|
|
232
|
+
},
|
|
233
|
+
"content_raw": {
|
|
234
|
+
"description": "Raw content data"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"required": [
|
|
238
|
+
"id",
|
|
239
|
+
"type"
|
|
240
|
+
],
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"description": "Received normal object record"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "object",
|
|
247
|
+
"properties": {
|
|
248
|
+
"balance": {
|
|
249
|
+
"type": [
|
|
250
|
+
"number",
|
|
251
|
+
"string"
|
|
252
|
+
],
|
|
253
|
+
"description": "Balance type"
|
|
254
|
+
},
|
|
255
|
+
"token_type": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"description": "Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."
|
|
258
|
+
},
|
|
259
|
+
"received": {
|
|
260
|
+
"type": "array",
|
|
261
|
+
"items": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"id": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"description": "Received CoinWrapper object ID"
|
|
267
|
+
},
|
|
268
|
+
"balance": {
|
|
269
|
+
"$ref": "#/definitions/data/properties/owner_receive/anyOf/1/properties/balance"
|
|
270
|
+
},
|
|
271
|
+
"payment": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Payment object ID"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"required": [
|
|
277
|
+
"id",
|
|
278
|
+
"balance",
|
|
279
|
+
"payment"
|
|
280
|
+
],
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"description": "Received CoinWrapper object record"
|
|
283
|
+
},
|
|
284
|
+
"description": "Received records of Coin objects"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": [
|
|
288
|
+
"balance",
|
|
289
|
+
"token_type",
|
|
290
|
+
"received"
|
|
291
|
+
],
|
|
292
|
+
"additionalProperties": false,
|
|
293
|
+
"description": "Received record of Coin objects"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"type": "string",
|
|
297
|
+
"const": "recently"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"description": "Receive objects sent to this contact object and unwrap them to the permission owner"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"object"
|
|
305
|
+
],
|
|
306
|
+
"additionalProperties": false,
|
|
307
|
+
"description": "On-chain Contact operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Contact. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation."
|
|
308
|
+
},
|
|
309
|
+
"env": {
|
|
310
|
+
"type": "object",
|
|
311
|
+
"properties": {
|
|
312
|
+
"account": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"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).",
|
|
315
|
+
"default": ""
|
|
316
|
+
},
|
|
317
|
+
"permission_guard": {
|
|
318
|
+
"type": "array",
|
|
319
|
+
"items": {
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
322
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
323
|
+
},
|
|
324
|
+
"no_cache": {
|
|
325
|
+
"type": "boolean",
|
|
326
|
+
"description": "Whether to disable caching."
|
|
327
|
+
},
|
|
328
|
+
"network": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"enum": [
|
|
331
|
+
"localnet",
|
|
332
|
+
"testnet"
|
|
333
|
+
],
|
|
334
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
335
|
+
},
|
|
336
|
+
"referrer": {
|
|
337
|
+
"$ref": "#/definitions/env/properties/account",
|
|
338
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"additionalProperties": false,
|
|
342
|
+
"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."
|
|
343
|
+
},
|
|
344
|
+
"submission": {
|
|
345
|
+
"type": "object",
|
|
346
|
+
"properties": {
|
|
347
|
+
"type": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"const": "submission",
|
|
350
|
+
"description": "Type of call response: submission"
|
|
351
|
+
},
|
|
352
|
+
"guard": {
|
|
353
|
+
"type": "array",
|
|
354
|
+
"items": {
|
|
355
|
+
"type": "object",
|
|
356
|
+
"properties": {
|
|
357
|
+
"object": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"description": "Guard object name or ID."
|
|
360
|
+
},
|
|
361
|
+
"impack": {
|
|
362
|
+
"type": "boolean",
|
|
363
|
+
"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."
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"required": [
|
|
367
|
+
"object",
|
|
368
|
+
"impack"
|
|
369
|
+
],
|
|
370
|
+
"additionalProperties": false
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"submission": {
|
|
374
|
+
"type": "array",
|
|
375
|
+
"items": {
|
|
376
|
+
"type": "object",
|
|
377
|
+
"properties": {
|
|
378
|
+
"guard": {
|
|
379
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
380
|
+
"description": "Guard object name or ID."
|
|
381
|
+
},
|
|
382
|
+
"submission": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"items": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"identifier": {
|
|
388
|
+
"type": "integer",
|
|
389
|
+
"minimum": 0,
|
|
390
|
+
"maximum": 255,
|
|
391
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
392
|
+
},
|
|
393
|
+
"b_submission": {
|
|
394
|
+
"type": "boolean",
|
|
395
|
+
"description": "Whether user submission is required for this data"
|
|
396
|
+
},
|
|
397
|
+
"value_type": {
|
|
398
|
+
"anyOf": [
|
|
399
|
+
{
|
|
400
|
+
"type": "number",
|
|
401
|
+
"const": 0,
|
|
402
|
+
"description": "Bool (0)"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"type": "number",
|
|
406
|
+
"const": 1,
|
|
407
|
+
"description": "Address (1)"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"type": "number",
|
|
411
|
+
"const": 2,
|
|
412
|
+
"description": "String (2)"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"type": "number",
|
|
416
|
+
"const": 3,
|
|
417
|
+
"description": "U8 (3)"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "number",
|
|
421
|
+
"const": 4,
|
|
422
|
+
"description": "U16 (4)"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"type": "number",
|
|
426
|
+
"const": 5,
|
|
427
|
+
"description": "U32 (5)"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"type": "number",
|
|
431
|
+
"const": 6,
|
|
432
|
+
"description": "U64 (6)"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"type": "number",
|
|
436
|
+
"const": 7,
|
|
437
|
+
"description": "U128 (7)"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"type": "number",
|
|
441
|
+
"const": 8,
|
|
442
|
+
"description": "U256 (8)"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"type": "number",
|
|
446
|
+
"const": 9,
|
|
447
|
+
"description": "VecBool (9)"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"type": "number",
|
|
451
|
+
"const": 10,
|
|
452
|
+
"description": "VecAddress (10)"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"type": "number",
|
|
456
|
+
"const": 11,
|
|
457
|
+
"description": "VecString (11)"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "number",
|
|
461
|
+
"const": 12,
|
|
462
|
+
"description": "VecU8 (12)"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"type": "number",
|
|
466
|
+
"const": 13,
|
|
467
|
+
"description": "VecU16 (13)"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"type": "number",
|
|
471
|
+
"const": 14,
|
|
472
|
+
"description": "VecU32 (14)"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "number",
|
|
476
|
+
"const": 15,
|
|
477
|
+
"description": "VecU64 (15)"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "number",
|
|
481
|
+
"const": 16,
|
|
482
|
+
"description": "VecU128 (16)"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"type": "number",
|
|
486
|
+
"const": 17,
|
|
487
|
+
"description": "VecU256 (17)"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"type": "number",
|
|
491
|
+
"const": 18,
|
|
492
|
+
"description": "VecVecU8 (18)"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"type": "string",
|
|
496
|
+
"const": "Bool",
|
|
497
|
+
"description": "Bool"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"type": "string",
|
|
501
|
+
"const": "Address",
|
|
502
|
+
"description": "Address"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"type": "string",
|
|
506
|
+
"const": "String",
|
|
507
|
+
"description": "String"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"type": "string",
|
|
511
|
+
"const": "U8",
|
|
512
|
+
"description": "U8"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"type": "string",
|
|
516
|
+
"const": "U16",
|
|
517
|
+
"description": "U16"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"type": "string",
|
|
521
|
+
"const": "U32",
|
|
522
|
+
"description": "U32"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "string",
|
|
526
|
+
"const": "U64",
|
|
527
|
+
"description": "U64"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"type": "string",
|
|
531
|
+
"const": "U128",
|
|
532
|
+
"description": "U128"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"type": "string",
|
|
536
|
+
"const": "U256",
|
|
537
|
+
"description": "U256"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"type": "string",
|
|
541
|
+
"const": "VecBool",
|
|
542
|
+
"description": "VecBool"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"type": "string",
|
|
546
|
+
"const": "VecAddress",
|
|
547
|
+
"description": "VecAddress"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"type": "string",
|
|
551
|
+
"const": "VecString",
|
|
552
|
+
"description": "VecString"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"type": "string",
|
|
556
|
+
"const": "VecU8",
|
|
557
|
+
"description": "VecU8"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"type": "string",
|
|
561
|
+
"const": "VecU16",
|
|
562
|
+
"description": "VecU16"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"type": "string",
|
|
566
|
+
"const": "VecU32",
|
|
567
|
+
"description": "VecU32"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"type": "string",
|
|
571
|
+
"const": "VecU64",
|
|
572
|
+
"description": "VecU64"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"type": "string",
|
|
576
|
+
"const": "VecU128",
|
|
577
|
+
"description": "VecU128"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"type": "string",
|
|
581
|
+
"const": "VecU256",
|
|
582
|
+
"description": "VecU256"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"type": "string",
|
|
586
|
+
"const": "VecVecU8",
|
|
587
|
+
"description": "VecVecU8"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"type": "string",
|
|
591
|
+
"const": "bool",
|
|
592
|
+
"description": "bool"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"type": "string",
|
|
596
|
+
"const": "address",
|
|
597
|
+
"description": "address"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"type": "string",
|
|
601
|
+
"const": "string",
|
|
602
|
+
"description": "string"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"type": "string",
|
|
606
|
+
"const": "u8",
|
|
607
|
+
"description": "u8"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"type": "string",
|
|
611
|
+
"const": "u16",
|
|
612
|
+
"description": "u16"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"type": "string",
|
|
616
|
+
"const": "u32",
|
|
617
|
+
"description": "u32"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"type": "string",
|
|
621
|
+
"const": "u64",
|
|
622
|
+
"description": "u64"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"type": "string",
|
|
626
|
+
"const": "u128",
|
|
627
|
+
"description": "u128"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"type": "string",
|
|
631
|
+
"const": "u256",
|
|
632
|
+
"description": "u256"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"type": "string",
|
|
636
|
+
"const": "vecbool",
|
|
637
|
+
"description": "vecbool"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"type": "string",
|
|
641
|
+
"const": "vecaddress",
|
|
642
|
+
"description": "vecaddress"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"type": "string",
|
|
646
|
+
"const": "vecstring",
|
|
647
|
+
"description": "vecstring"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"type": "string",
|
|
651
|
+
"const": "vecu8",
|
|
652
|
+
"description": "vecu8"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"type": "string",
|
|
656
|
+
"const": "vecu16",
|
|
657
|
+
"description": "vecu16"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"type": "string",
|
|
661
|
+
"const": "vecu32",
|
|
662
|
+
"description": "vecu32"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"type": "string",
|
|
666
|
+
"const": "vecu64",
|
|
667
|
+
"description": "vecu64"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"type": "string",
|
|
671
|
+
"const": "vecu128",
|
|
672
|
+
"description": "vecu128"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"type": "string",
|
|
676
|
+
"const": "vecu256",
|
|
677
|
+
"description": "vecu256"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"type": "string",
|
|
681
|
+
"const": "vecvecu8",
|
|
682
|
+
"description": "vecvecu8"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"description": "Type of the value"
|
|
686
|
+
},
|
|
687
|
+
"value": {
|
|
688
|
+
"anyOf": [
|
|
689
|
+
{
|
|
690
|
+
"type": "boolean"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"anyOf": [
|
|
694
|
+
{
|
|
695
|
+
"type": "object",
|
|
696
|
+
"properties": {
|
|
697
|
+
"name_or_address": {
|
|
698
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
699
|
+
"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)."
|
|
700
|
+
},
|
|
701
|
+
"local_mark_first": {
|
|
702
|
+
"type": "boolean",
|
|
703
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"additionalProperties": false,
|
|
707
|
+
"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."
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"type": "string"
|
|
711
|
+
}
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"type": "string"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"type": "number"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"type": "array",
|
|
722
|
+
"items": {
|
|
723
|
+
"type": "boolean"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"anyOf": [
|
|
728
|
+
{
|
|
729
|
+
"type": "object",
|
|
730
|
+
"properties": {
|
|
731
|
+
"entities": {
|
|
732
|
+
"type": "array",
|
|
733
|
+
"items": {
|
|
734
|
+
"$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
"check_all_founded": {
|
|
738
|
+
"type": "boolean",
|
|
739
|
+
"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"
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"required": [
|
|
743
|
+
"entities"
|
|
744
|
+
],
|
|
745
|
+
"additionalProperties": false,
|
|
746
|
+
"description": "Used to batch find account or object IDs by name"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"type": "array",
|
|
750
|
+
"items": {
|
|
751
|
+
"type": "string"
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
]
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"type": "array",
|
|
758
|
+
"items": {
|
|
759
|
+
"type": "string"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"type": "array",
|
|
764
|
+
"items": {
|
|
765
|
+
"type": "number"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"type": "array",
|
|
770
|
+
"items": {
|
|
771
|
+
"type": "array",
|
|
772
|
+
"items": {
|
|
773
|
+
"type": "number"
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"description": "The actual value data"
|
|
779
|
+
},
|
|
780
|
+
"name": {
|
|
781
|
+
"type": "string",
|
|
782
|
+
"default": "",
|
|
783
|
+
"description": "Name or description of this data"
|
|
784
|
+
},
|
|
785
|
+
"object_type": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"enum": [
|
|
788
|
+
"Permission",
|
|
789
|
+
"Repository",
|
|
790
|
+
"Arb",
|
|
791
|
+
"Arbitration",
|
|
792
|
+
"Service",
|
|
793
|
+
"Machine",
|
|
794
|
+
"Order",
|
|
795
|
+
"Progress",
|
|
796
|
+
"Payment",
|
|
797
|
+
"Treasury",
|
|
798
|
+
"Guard",
|
|
799
|
+
"Demand",
|
|
800
|
+
"Passport",
|
|
801
|
+
"Allocation",
|
|
802
|
+
"Resource",
|
|
803
|
+
"Reward",
|
|
804
|
+
"Discount",
|
|
805
|
+
"EntityRegistrar",
|
|
806
|
+
"EntityLinker",
|
|
807
|
+
"Proof",
|
|
808
|
+
"WReceivedObject",
|
|
809
|
+
"Contact",
|
|
810
|
+
"TableItem_ProgressHistory",
|
|
811
|
+
"TableItem_PermissionPerm",
|
|
812
|
+
"TableItem_DemandPresenter",
|
|
813
|
+
"TableItem_MachineNode",
|
|
814
|
+
"TableItem_TreasuryHistory",
|
|
815
|
+
"TableItem_RepositoryData",
|
|
816
|
+
"TableItem_RewardRecord",
|
|
817
|
+
"TableItem_EntityLinker",
|
|
818
|
+
"TableItem_AddressMark",
|
|
819
|
+
"TableItem_EntityRegistrar"
|
|
820
|
+
],
|
|
821
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
"required": [
|
|
825
|
+
"identifier",
|
|
826
|
+
"b_submission",
|
|
827
|
+
"value_type"
|
|
828
|
+
],
|
|
829
|
+
"additionalProperties": false,
|
|
830
|
+
"description": "Guard table item"
|
|
831
|
+
},
|
|
832
|
+
"description": "User-submitted data required for Guard verification."
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"required": [
|
|
836
|
+
"guard",
|
|
837
|
+
"submission"
|
|
838
|
+
],
|
|
839
|
+
"additionalProperties": false,
|
|
840
|
+
"description": "Permission guard submission data."
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"required": [
|
|
845
|
+
"type",
|
|
846
|
+
"guard",
|
|
847
|
+
"submission"
|
|
848
|
+
],
|
|
849
|
+
"additionalProperties": false,
|
|
850
|
+
"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."
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|