@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,1411 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations_service.json",
|
|
4
|
+
"title": "Service Operation",
|
|
5
|
+
"description": "On-chain service operation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"operation_type": {
|
|
9
|
+
"const": "service"
|
|
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 this when the object already exists and you want to reference it."
|
|
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
|
+
"type_parameter": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Type parameter (token type) of the on-chain object, e.g. '0x2::wow::WOW'. Defines what token this object can use for payments.",
|
|
95
|
+
"default": "0x2::wow::WOW"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"description": "Object format: CREATE a NEW object with COMPLETE configuration including: optional name, tags, description, token type for payments (e.g., '0x2::wow::WOW'), AND Permission-based access control. Use this for creating sophisticated objects with both payment token specification and permission management."
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"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 name, tags, description, token type for payments, and Permission-based access control. The object format is used when you need both token specification AND permission management."
|
|
103
|
+
},
|
|
104
|
+
"order_new": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"buy": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"items": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {
|
|
115
|
+
"name": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "Name of the product or service to purchase"
|
|
118
|
+
},
|
|
119
|
+
"stock": {
|
|
120
|
+
"type": [
|
|
121
|
+
"number",
|
|
122
|
+
"string"
|
|
123
|
+
],
|
|
124
|
+
"description": "Quantity of the product or service to purchase"
|
|
125
|
+
},
|
|
126
|
+
"wip_hash": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "WIP file hash of the item"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": [
|
|
132
|
+
"name",
|
|
133
|
+
"stock",
|
|
134
|
+
"wip_hash"
|
|
135
|
+
],
|
|
136
|
+
"additionalProperties": false
|
|
137
|
+
},
|
|
138
|
+
"description": "List of products or services to purchase"
|
|
139
|
+
},
|
|
140
|
+
"total_pay": {
|
|
141
|
+
"anyOf": [
|
|
142
|
+
{
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"balance": {
|
|
146
|
+
"type": [
|
|
147
|
+
"number",
|
|
148
|
+
"string"
|
|
149
|
+
],
|
|
150
|
+
"description": "Balance type"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": [
|
|
154
|
+
"balance"
|
|
155
|
+
],
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"description": "Specify an amount value."
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "object",
|
|
161
|
+
"properties": {
|
|
162
|
+
"coin": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"description": "Coin object ID or name(local mark). Use a specified Coin object."
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": [
|
|
168
|
+
"coin"
|
|
169
|
+
],
|
|
170
|
+
"additionalProperties": false
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"description": "Actual payment amount"
|
|
174
|
+
},
|
|
175
|
+
"discount": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"description": "Discount object ID or name"
|
|
178
|
+
},
|
|
179
|
+
"payment_remark": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "Payment remark"
|
|
182
|
+
},
|
|
183
|
+
"payment_index": {
|
|
184
|
+
"type": "number",
|
|
185
|
+
"description": "Payment index"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"required": [
|
|
189
|
+
"items",
|
|
190
|
+
"total_pay"
|
|
191
|
+
],
|
|
192
|
+
"additionalProperties": false
|
|
193
|
+
},
|
|
194
|
+
"agents": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"properties": {
|
|
197
|
+
"entities": {
|
|
198
|
+
"type": "array",
|
|
199
|
+
"items": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"name_or_address": {
|
|
203
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
204
|
+
"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)."
|
|
205
|
+
},
|
|
206
|
+
"local_mark_first": {
|
|
207
|
+
"type": "boolean",
|
|
208
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"additionalProperties": false,
|
|
212
|
+
"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."
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"check_all_founded": {
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"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"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": [
|
|
221
|
+
"entities"
|
|
222
|
+
],
|
|
223
|
+
"additionalProperties": false,
|
|
224
|
+
"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."
|
|
225
|
+
},
|
|
226
|
+
"order_required_info": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"description": "Contact object ID or WTS Proof object"
|
|
229
|
+
},
|
|
230
|
+
"transfer": {
|
|
231
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items",
|
|
232
|
+
"description": "Set the new owner of the order. Requires order owner permission to set."
|
|
233
|
+
},
|
|
234
|
+
"namedNewOrder": {
|
|
235
|
+
"type": "object",
|
|
236
|
+
"properties": {
|
|
237
|
+
"name": {
|
|
238
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name"
|
|
239
|
+
},
|
|
240
|
+
"tags": {
|
|
241
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/tags"
|
|
242
|
+
},
|
|
243
|
+
"onChain": {
|
|
244
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/onChain"
|
|
245
|
+
},
|
|
246
|
+
"replaceExistName": {
|
|
247
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/replaceExistName"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"additionalProperties": false,
|
|
251
|
+
"description": "Set the local name of the order object."
|
|
252
|
+
},
|
|
253
|
+
"namedNewAllocation": {
|
|
254
|
+
"$ref": "#/definitions/data/properties/order_new/properties/namedNewOrder",
|
|
255
|
+
"description": "Set the local name of the order's Allocation object."
|
|
256
|
+
},
|
|
257
|
+
"namedNewProgress": {
|
|
258
|
+
"$ref": "#/definitions/data/properties/order_new/properties/namedNewOrder",
|
|
259
|
+
"description": "Set the local name of the order's Progress object."
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"required": [
|
|
263
|
+
"buy"
|
|
264
|
+
],
|
|
265
|
+
"additionalProperties": false,
|
|
266
|
+
"description": "Create new order."
|
|
267
|
+
},
|
|
268
|
+
"description": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"description": "Description string (max 4000 bcs characters)"
|
|
271
|
+
},
|
|
272
|
+
"location": {
|
|
273
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/items/items/properties/name",
|
|
274
|
+
"description": "Location of the Service"
|
|
275
|
+
},
|
|
276
|
+
"sales": {
|
|
277
|
+
"anyOf": [
|
|
278
|
+
{
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"op": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"const": "add"
|
|
284
|
+
},
|
|
285
|
+
"sales": {
|
|
286
|
+
"type": "array",
|
|
287
|
+
"items": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"properties": {
|
|
290
|
+
"name": {
|
|
291
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/items/items/properties/name",
|
|
292
|
+
"description": "Name of the product or service for sale"
|
|
293
|
+
},
|
|
294
|
+
"price": {
|
|
295
|
+
"type": [
|
|
296
|
+
"number",
|
|
297
|
+
"string"
|
|
298
|
+
],
|
|
299
|
+
"description": "Price of the product or service"
|
|
300
|
+
},
|
|
301
|
+
"stock": {
|
|
302
|
+
"type": [
|
|
303
|
+
"number",
|
|
304
|
+
"string"
|
|
305
|
+
],
|
|
306
|
+
"description": "Stock of the product or service"
|
|
307
|
+
},
|
|
308
|
+
"suspension": {
|
|
309
|
+
"type": "boolean",
|
|
310
|
+
"description": "Whether sale is suspended"
|
|
311
|
+
},
|
|
312
|
+
"wip": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"description": "HTTP URL of wip file"
|
|
315
|
+
},
|
|
316
|
+
"wip_hash": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "Hash of WIP. If EMPTY string, the hash within wip will be automatically used; else, the consistency of the hash within wip will be verified with the provided hash."
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"required": [
|
|
322
|
+
"name",
|
|
323
|
+
"price",
|
|
324
|
+
"stock",
|
|
325
|
+
"suspension",
|
|
326
|
+
"wip",
|
|
327
|
+
"wip_hash"
|
|
328
|
+
],
|
|
329
|
+
"additionalProperties": false,
|
|
330
|
+
"description": "Service sale"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"required": [
|
|
335
|
+
"op",
|
|
336
|
+
"sales"
|
|
337
|
+
],
|
|
338
|
+
"additionalProperties": false,
|
|
339
|
+
"description": "Add new sales products or services."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"type": "object",
|
|
343
|
+
"properties": {
|
|
344
|
+
"op": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"const": "set"
|
|
347
|
+
},
|
|
348
|
+
"sales": {
|
|
349
|
+
"type": "array",
|
|
350
|
+
"items": {
|
|
351
|
+
"$ref": "#/definitions/data/properties/sales/anyOf/0/properties/sales/items"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"required": [
|
|
356
|
+
"op",
|
|
357
|
+
"sales"
|
|
358
|
+
],
|
|
359
|
+
"additionalProperties": false,
|
|
360
|
+
"description": "Set sales products or services."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "object",
|
|
364
|
+
"properties": {
|
|
365
|
+
"op": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"const": "remove"
|
|
368
|
+
},
|
|
369
|
+
"sales_name": {
|
|
370
|
+
"type": "array",
|
|
371
|
+
"items": {
|
|
372
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/items/items/properties/name",
|
|
373
|
+
"description": "Sales name"
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"required": [
|
|
378
|
+
"op",
|
|
379
|
+
"sales_name"
|
|
380
|
+
],
|
|
381
|
+
"additionalProperties": false,
|
|
382
|
+
"description": "Remove existing sales products or services."
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"op": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"const": "clear"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"required": [
|
|
393
|
+
"op"
|
|
394
|
+
],
|
|
395
|
+
"additionalProperties": false,
|
|
396
|
+
"description": "Clear all sales products or services."
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
"description": "Service sales products or services list."
|
|
400
|
+
},
|
|
401
|
+
"repositories": {
|
|
402
|
+
"anyOf": [
|
|
403
|
+
{
|
|
404
|
+
"type": "object",
|
|
405
|
+
"properties": {
|
|
406
|
+
"op": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"enum": [
|
|
409
|
+
"add",
|
|
410
|
+
"set"
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
"objects": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items/properties/name_or_address"
|
|
417
|
+
},
|
|
418
|
+
"description": "List of object IDs or names to add or set"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"required": [
|
|
422
|
+
"op",
|
|
423
|
+
"objects"
|
|
424
|
+
],
|
|
425
|
+
"additionalProperties": false
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"type": "object",
|
|
429
|
+
"properties": {
|
|
430
|
+
"op": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"const": "remove"
|
|
433
|
+
},
|
|
434
|
+
"objects": {
|
|
435
|
+
"type": "array",
|
|
436
|
+
"items": {
|
|
437
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items/properties/name_or_address"
|
|
438
|
+
},
|
|
439
|
+
"description": "List of object IDs or names to remove"
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"required": [
|
|
443
|
+
"op",
|
|
444
|
+
"objects"
|
|
445
|
+
],
|
|
446
|
+
"additionalProperties": false
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"type": "object",
|
|
450
|
+
"properties": {
|
|
451
|
+
"op": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"const": "clear"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"required": [
|
|
457
|
+
"op"
|
|
458
|
+
],
|
|
459
|
+
"additionalProperties": false
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"description": "Service Repository object list."
|
|
463
|
+
},
|
|
464
|
+
"rewards": {
|
|
465
|
+
"$ref": "#/definitions/data/properties/repositories",
|
|
466
|
+
"description": "Service Reward object list."
|
|
467
|
+
},
|
|
468
|
+
"arbitrations": {
|
|
469
|
+
"$ref": "#/definitions/data/properties/repositories",
|
|
470
|
+
"description": "Service Arbitration object list."
|
|
471
|
+
},
|
|
472
|
+
"machine": {
|
|
473
|
+
"anyOf": [
|
|
474
|
+
{
|
|
475
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items/properties/name_or_address"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"type": "null"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"description": "Service Machine object ID or name. The Machine object must be in published state."
|
|
482
|
+
},
|
|
483
|
+
"discount": {
|
|
484
|
+
"type": "object",
|
|
485
|
+
"properties": {
|
|
486
|
+
"name": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"description": "Discount name"
|
|
489
|
+
},
|
|
490
|
+
"discount_type": {
|
|
491
|
+
"anyOf": [
|
|
492
|
+
{
|
|
493
|
+
"type": "number",
|
|
494
|
+
"const": 0,
|
|
495
|
+
"description": "Rate discount type"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"type": "number",
|
|
499
|
+
"const": 1,
|
|
500
|
+
"description": "Fixed discount type"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"description": "Discount type"
|
|
504
|
+
},
|
|
505
|
+
"discount_value": {
|
|
506
|
+
"type": [
|
|
507
|
+
"number",
|
|
508
|
+
"string"
|
|
509
|
+
],
|
|
510
|
+
"description": "Discount value"
|
|
511
|
+
},
|
|
512
|
+
"benchmark": {
|
|
513
|
+
"type": [
|
|
514
|
+
"number",
|
|
515
|
+
"string"
|
|
516
|
+
],
|
|
517
|
+
"description": "Discount benchmark value. Discount is only applied if the amount exceeds this value"
|
|
518
|
+
},
|
|
519
|
+
"time_ms_start": {
|
|
520
|
+
"type": "number",
|
|
521
|
+
"description": "Discount start time (milliseconds)"
|
|
522
|
+
},
|
|
523
|
+
"time_ms_end": {
|
|
524
|
+
"type": "number",
|
|
525
|
+
"description": "Discount end time (milliseconds)"
|
|
526
|
+
},
|
|
527
|
+
"count": {
|
|
528
|
+
"type": "number",
|
|
529
|
+
"description": "Discount usage count"
|
|
530
|
+
},
|
|
531
|
+
"recipient": {
|
|
532
|
+
"type": "object",
|
|
533
|
+
"properties": {
|
|
534
|
+
"entities": {
|
|
535
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities"
|
|
536
|
+
},
|
|
537
|
+
"check_all_founded": {
|
|
538
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/check_all_founded"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"required": [
|
|
542
|
+
"entities"
|
|
543
|
+
],
|
|
544
|
+
"additionalProperties": false,
|
|
545
|
+
"description": "Discount recipient"
|
|
546
|
+
},
|
|
547
|
+
"transferable": {
|
|
548
|
+
"type": "boolean",
|
|
549
|
+
"description": "Whether the discount object recipient can transfer the discount object"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"required": [
|
|
553
|
+
"name",
|
|
554
|
+
"discount_type",
|
|
555
|
+
"discount_value",
|
|
556
|
+
"recipient"
|
|
557
|
+
],
|
|
558
|
+
"additionalProperties": false,
|
|
559
|
+
"description": "Issue discount."
|
|
560
|
+
},
|
|
561
|
+
"discount_destroy": {
|
|
562
|
+
"type": "array",
|
|
563
|
+
"items": {
|
|
564
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items/properties/name_or_address"
|
|
565
|
+
},
|
|
566
|
+
"description": "Destroy existing discount object ID list."
|
|
567
|
+
},
|
|
568
|
+
"customer_required": {
|
|
569
|
+
"type": "array",
|
|
570
|
+
"items": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"minLength": 1
|
|
573
|
+
},
|
|
574
|
+
"description": "Customer required information. Such as phone, email, etc."
|
|
575
|
+
},
|
|
576
|
+
"order_allocators": {
|
|
577
|
+
"anyOf": [
|
|
578
|
+
{
|
|
579
|
+
"type": "object",
|
|
580
|
+
"properties": {
|
|
581
|
+
"description": {
|
|
582
|
+
"$ref": "#/definitions/data/properties/description",
|
|
583
|
+
"description": "Description of fund allocator list"
|
|
584
|
+
},
|
|
585
|
+
"threshold": {
|
|
586
|
+
"type": [
|
|
587
|
+
"number",
|
|
588
|
+
"string"
|
|
589
|
+
],
|
|
590
|
+
"description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold."
|
|
591
|
+
},
|
|
592
|
+
"allocators": {
|
|
593
|
+
"type": "array",
|
|
594
|
+
"items": {
|
|
595
|
+
"type": "object",
|
|
596
|
+
"properties": {
|
|
597
|
+
"guard": {
|
|
598
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
599
|
+
"description": "Guard object ID. If Guard verification passes, fund allocation will start automatically."
|
|
600
|
+
},
|
|
601
|
+
"sharing": {
|
|
602
|
+
"type": "array",
|
|
603
|
+
"items": {
|
|
604
|
+
"type": "object",
|
|
605
|
+
"properties": {
|
|
606
|
+
"who": {
|
|
607
|
+
"anyOf": [
|
|
608
|
+
{
|
|
609
|
+
"type": "object",
|
|
610
|
+
"properties": {
|
|
611
|
+
"GuardIdentifier": {
|
|
612
|
+
"type": "integer",
|
|
613
|
+
"minimum": 0,
|
|
614
|
+
"maximum": 255,
|
|
615
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"required": [
|
|
619
|
+
"GuardIdentifier"
|
|
620
|
+
],
|
|
621
|
+
"additionalProperties": false,
|
|
622
|
+
"description": "Guard verified recipient ID. Get recipient ID from specified data index in Guard table. The ID must be of address type."
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"type": "object",
|
|
626
|
+
"properties": {
|
|
627
|
+
"Entity": {
|
|
628
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items"
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"required": [
|
|
632
|
+
"Entity"
|
|
633
|
+
],
|
|
634
|
+
"additionalProperties": false,
|
|
635
|
+
"description": "Determined ID"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"type": "object",
|
|
639
|
+
"properties": {
|
|
640
|
+
"Signer": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"const": "signer"
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"required": [
|
|
646
|
+
"Signer"
|
|
647
|
+
],
|
|
648
|
+
"additionalProperties": false,
|
|
649
|
+
"description": "Current transaction signer ID"
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"description": "Recipient ID"
|
|
653
|
+
},
|
|
654
|
+
"sharing": {
|
|
655
|
+
"type": [
|
|
656
|
+
"number",
|
|
657
|
+
"string"
|
|
658
|
+
],
|
|
659
|
+
"description": "Reward allocation value"
|
|
660
|
+
},
|
|
661
|
+
"mode": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"enum": [
|
|
664
|
+
"Amount",
|
|
665
|
+
"Rate",
|
|
666
|
+
"Surplus"
|
|
667
|
+
],
|
|
668
|
+
"description": "Reward allocation mode"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"required": [
|
|
672
|
+
"who",
|
|
673
|
+
"sharing",
|
|
674
|
+
"mode"
|
|
675
|
+
],
|
|
676
|
+
"additionalProperties": false,
|
|
677
|
+
"description": "Fund allocation item"
|
|
678
|
+
},
|
|
679
|
+
"description": "Fund allocation item list. Each item represents a recipient and their corresponding reward allocation value."
|
|
680
|
+
},
|
|
681
|
+
"fix": {
|
|
682
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/total_pay/anyOf/0/properties/balance",
|
|
683
|
+
"description": "Fixed allocation amount. If specified, all recipients will receive the fixed allocation amount."
|
|
684
|
+
},
|
|
685
|
+
"max": {
|
|
686
|
+
"anyOf": [
|
|
687
|
+
{
|
|
688
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/total_pay/anyOf/0/properties/balance"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"type": "null"
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"description": "Maximum allocation amount. If specified, allocation amount cannot exceed maximum allocation amount."
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
"required": [
|
|
698
|
+
"guard",
|
|
699
|
+
"sharing"
|
|
700
|
+
],
|
|
701
|
+
"additionalProperties": false,
|
|
702
|
+
"description": "Fund allocator"
|
|
703
|
+
},
|
|
704
|
+
"description": "Fund allocator list. Each fund allocator represents a fund allocation strategy."
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"required": [
|
|
708
|
+
"description",
|
|
709
|
+
"threshold",
|
|
710
|
+
"allocators"
|
|
711
|
+
],
|
|
712
|
+
"additionalProperties": false,
|
|
713
|
+
"description": "Fund allocator list"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"type": "null"
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
"description": "Order fund allocator."
|
|
720
|
+
},
|
|
721
|
+
"buy_guard": {
|
|
722
|
+
"anyOf": [
|
|
723
|
+
{
|
|
724
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items/properties/name_or_address"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"type": "null"
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
"description": "Buy guard object ID or name."
|
|
731
|
+
},
|
|
732
|
+
"compensation_fund_add": {
|
|
733
|
+
"anyOf": [
|
|
734
|
+
{
|
|
735
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/total_pay/anyOf/0"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/total_pay/anyOf/1"
|
|
739
|
+
}
|
|
740
|
+
],
|
|
741
|
+
"description": "Compensation fund. Used to claim compensation based on the arbitration result of the Arb object when resolving order disputes."
|
|
742
|
+
},
|
|
743
|
+
"setting_locked_time_add": {
|
|
744
|
+
"type": "number",
|
|
745
|
+
"description": "Additional lock duration (milliseconds) to extend the 'setting_lock_duration'. Initial value is 30 days, can only be increased, not decreased. Affects: rewards, arbitrations, and compensation_fund_receive."
|
|
746
|
+
},
|
|
747
|
+
"compensation_fund_receive": {
|
|
748
|
+
"anyOf": [
|
|
749
|
+
{
|
|
750
|
+
"type": "object",
|
|
751
|
+
"properties": {
|
|
752
|
+
"balance": {
|
|
753
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/total_pay/anyOf/0/properties/balance"
|
|
754
|
+
},
|
|
755
|
+
"token_type": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"description": "Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."
|
|
758
|
+
},
|
|
759
|
+
"received": {
|
|
760
|
+
"type": "array",
|
|
761
|
+
"items": {
|
|
762
|
+
"type": "object",
|
|
763
|
+
"properties": {
|
|
764
|
+
"id": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"description": "Received CoinWrapper object ID"
|
|
767
|
+
},
|
|
768
|
+
"balance": {
|
|
769
|
+
"$ref": "#/definitions/data/properties/order_new/properties/buy/properties/total_pay/anyOf/0/properties/balance"
|
|
770
|
+
},
|
|
771
|
+
"payment": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "Payment object ID"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"required": [
|
|
777
|
+
"id",
|
|
778
|
+
"balance",
|
|
779
|
+
"payment"
|
|
780
|
+
],
|
|
781
|
+
"additionalProperties": false,
|
|
782
|
+
"description": "Received CoinWrapper object record"
|
|
783
|
+
},
|
|
784
|
+
"description": "Received records of Coin objects"
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"required": [
|
|
788
|
+
"balance",
|
|
789
|
+
"token_type",
|
|
790
|
+
"received"
|
|
791
|
+
],
|
|
792
|
+
"additionalProperties": false,
|
|
793
|
+
"description": "Received record of Coin objects"
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"type": "string",
|
|
797
|
+
"const": "recently"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"description": "Receive order compensation funds."
|
|
801
|
+
},
|
|
802
|
+
"owner_receive": {
|
|
803
|
+
"anyOf": [
|
|
804
|
+
{
|
|
805
|
+
"type": "array",
|
|
806
|
+
"items": {
|
|
807
|
+
"type": "object",
|
|
808
|
+
"properties": {
|
|
809
|
+
"id": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"minLength": 1,
|
|
812
|
+
"description": "Received object ID"
|
|
813
|
+
},
|
|
814
|
+
"type": {
|
|
815
|
+
"type": "string",
|
|
816
|
+
"minLength": 1,
|
|
817
|
+
"description": "Object type"
|
|
818
|
+
},
|
|
819
|
+
"content_raw": {
|
|
820
|
+
"description": "Raw content data"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
"required": [
|
|
824
|
+
"id",
|
|
825
|
+
"type"
|
|
826
|
+
],
|
|
827
|
+
"additionalProperties": false,
|
|
828
|
+
"description": "Received normal object record"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"$ref": "#/definitions/data/properties/compensation_fund_receive/anyOf/0"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"type": "string",
|
|
836
|
+
"const": "recently"
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
"description": "Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."
|
|
840
|
+
},
|
|
841
|
+
"um": {
|
|
842
|
+
"anyOf": [
|
|
843
|
+
{
|
|
844
|
+
"$ref": "#/definitions/data/properties/order_new/properties/agents/properties/entities/items/properties/name_or_address"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"type": "null"
|
|
848
|
+
}
|
|
849
|
+
],
|
|
850
|
+
"description": "Contact object ID or name."
|
|
851
|
+
},
|
|
852
|
+
"pause": {
|
|
853
|
+
"type": "boolean",
|
|
854
|
+
"description": "Whether to pause accepting new orders."
|
|
855
|
+
},
|
|
856
|
+
"publish": {
|
|
857
|
+
"type": "boolean",
|
|
858
|
+
"description": "Whether to publish the Service. After publishing, customers can place orders; at the same time, service commitments such as machine, order_allocators, arbitrations, etc. will be immutable."
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
"required": [
|
|
862
|
+
"object"
|
|
863
|
+
],
|
|
864
|
+
"additionalProperties": false,
|
|
865
|
+
"description": "On-chain Service operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create a Service. 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."
|
|
866
|
+
},
|
|
867
|
+
"env": {
|
|
868
|
+
"type": "object",
|
|
869
|
+
"properties": {
|
|
870
|
+
"account": {
|
|
871
|
+
"type": "string",
|
|
872
|
+
"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).",
|
|
873
|
+
"default": ""
|
|
874
|
+
},
|
|
875
|
+
"permission_guard": {
|
|
876
|
+
"type": "array",
|
|
877
|
+
"items": {
|
|
878
|
+
"type": "string"
|
|
879
|
+
},
|
|
880
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
881
|
+
},
|
|
882
|
+
"no_cache": {
|
|
883
|
+
"type": "boolean",
|
|
884
|
+
"description": "Whether to disable caching."
|
|
885
|
+
},
|
|
886
|
+
"network": {
|
|
887
|
+
"type": "string",
|
|
888
|
+
"enum": [
|
|
889
|
+
"localnet",
|
|
890
|
+
"testnet"
|
|
891
|
+
],
|
|
892
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
893
|
+
},
|
|
894
|
+
"referrer": {
|
|
895
|
+
"$ref": "#/definitions/env/properties/account",
|
|
896
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"additionalProperties": false,
|
|
900
|
+
"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."
|
|
901
|
+
},
|
|
902
|
+
"submission": {
|
|
903
|
+
"type": "object",
|
|
904
|
+
"properties": {
|
|
905
|
+
"type": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"const": "submission",
|
|
908
|
+
"description": "Type of call response: submission"
|
|
909
|
+
},
|
|
910
|
+
"guard": {
|
|
911
|
+
"type": "array",
|
|
912
|
+
"items": {
|
|
913
|
+
"type": "object",
|
|
914
|
+
"properties": {
|
|
915
|
+
"object": {
|
|
916
|
+
"type": "string",
|
|
917
|
+
"description": "Guard object name or ID."
|
|
918
|
+
},
|
|
919
|
+
"impack": {
|
|
920
|
+
"type": "boolean",
|
|
921
|
+
"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."
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"required": [
|
|
925
|
+
"object",
|
|
926
|
+
"impack"
|
|
927
|
+
],
|
|
928
|
+
"additionalProperties": false
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"submission": {
|
|
932
|
+
"type": "array",
|
|
933
|
+
"items": {
|
|
934
|
+
"type": "object",
|
|
935
|
+
"properties": {
|
|
936
|
+
"guard": {
|
|
937
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
938
|
+
"description": "Guard object name or ID."
|
|
939
|
+
},
|
|
940
|
+
"submission": {
|
|
941
|
+
"type": "array",
|
|
942
|
+
"items": {
|
|
943
|
+
"type": "object",
|
|
944
|
+
"properties": {
|
|
945
|
+
"identifier": {
|
|
946
|
+
"type": "integer",
|
|
947
|
+
"minimum": 0,
|
|
948
|
+
"maximum": 255,
|
|
949
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
950
|
+
},
|
|
951
|
+
"b_submission": {
|
|
952
|
+
"type": "boolean",
|
|
953
|
+
"description": "Whether user submission is required for this data"
|
|
954
|
+
},
|
|
955
|
+
"value_type": {
|
|
956
|
+
"anyOf": [
|
|
957
|
+
{
|
|
958
|
+
"type": "number",
|
|
959
|
+
"const": 0,
|
|
960
|
+
"description": "Bool (0)"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"type": "number",
|
|
964
|
+
"const": 1,
|
|
965
|
+
"description": "Address (1)"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"type": "number",
|
|
969
|
+
"const": 2,
|
|
970
|
+
"description": "String (2)"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"type": "number",
|
|
974
|
+
"const": 3,
|
|
975
|
+
"description": "U8 (3)"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"type": "number",
|
|
979
|
+
"const": 4,
|
|
980
|
+
"description": "U16 (4)"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"type": "number",
|
|
984
|
+
"const": 5,
|
|
985
|
+
"description": "U32 (5)"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"type": "number",
|
|
989
|
+
"const": 6,
|
|
990
|
+
"description": "U64 (6)"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"type": "number",
|
|
994
|
+
"const": 7,
|
|
995
|
+
"description": "U128 (7)"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"type": "number",
|
|
999
|
+
"const": 8,
|
|
1000
|
+
"description": "U256 (8)"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"type": "number",
|
|
1004
|
+
"const": 9,
|
|
1005
|
+
"description": "VecBool (9)"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"type": "number",
|
|
1009
|
+
"const": 10,
|
|
1010
|
+
"description": "VecAddress (10)"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"type": "number",
|
|
1014
|
+
"const": 11,
|
|
1015
|
+
"description": "VecString (11)"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"type": "number",
|
|
1019
|
+
"const": 12,
|
|
1020
|
+
"description": "VecU8 (12)"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"type": "number",
|
|
1024
|
+
"const": 13,
|
|
1025
|
+
"description": "VecU16 (13)"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"type": "number",
|
|
1029
|
+
"const": 14,
|
|
1030
|
+
"description": "VecU32 (14)"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"type": "number",
|
|
1034
|
+
"const": 15,
|
|
1035
|
+
"description": "VecU64 (15)"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"type": "number",
|
|
1039
|
+
"const": 16,
|
|
1040
|
+
"description": "VecU128 (16)"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"type": "number",
|
|
1044
|
+
"const": 17,
|
|
1045
|
+
"description": "VecU256 (17)"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"type": "number",
|
|
1049
|
+
"const": 18,
|
|
1050
|
+
"description": "VecVecU8 (18)"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"const": "Bool",
|
|
1055
|
+
"description": "Bool"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"type": "string",
|
|
1059
|
+
"const": "Address",
|
|
1060
|
+
"description": "Address"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"type": "string",
|
|
1064
|
+
"const": "String",
|
|
1065
|
+
"description": "String"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"type": "string",
|
|
1069
|
+
"const": "U8",
|
|
1070
|
+
"description": "U8"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"type": "string",
|
|
1074
|
+
"const": "U16",
|
|
1075
|
+
"description": "U16"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"type": "string",
|
|
1079
|
+
"const": "U32",
|
|
1080
|
+
"description": "U32"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"type": "string",
|
|
1084
|
+
"const": "U64",
|
|
1085
|
+
"description": "U64"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"type": "string",
|
|
1089
|
+
"const": "U128",
|
|
1090
|
+
"description": "U128"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"type": "string",
|
|
1094
|
+
"const": "U256",
|
|
1095
|
+
"description": "U256"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"const": "VecBool",
|
|
1100
|
+
"description": "VecBool"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"const": "VecAddress",
|
|
1105
|
+
"description": "VecAddress"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"type": "string",
|
|
1109
|
+
"const": "VecString",
|
|
1110
|
+
"description": "VecString"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"const": "VecU8",
|
|
1115
|
+
"description": "VecU8"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"type": "string",
|
|
1119
|
+
"const": "VecU16",
|
|
1120
|
+
"description": "VecU16"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"const": "VecU32",
|
|
1125
|
+
"description": "VecU32"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"type": "string",
|
|
1129
|
+
"const": "VecU64",
|
|
1130
|
+
"description": "VecU64"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"type": "string",
|
|
1134
|
+
"const": "VecU128",
|
|
1135
|
+
"description": "VecU128"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"type": "string",
|
|
1139
|
+
"const": "VecU256",
|
|
1140
|
+
"description": "VecU256"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"type": "string",
|
|
1144
|
+
"const": "VecVecU8",
|
|
1145
|
+
"description": "VecVecU8"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"const": "bool",
|
|
1150
|
+
"description": "bool"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"type": "string",
|
|
1154
|
+
"const": "address",
|
|
1155
|
+
"description": "address"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"const": "string",
|
|
1160
|
+
"description": "string"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"type": "string",
|
|
1164
|
+
"const": "u8",
|
|
1165
|
+
"description": "u8"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"type": "string",
|
|
1169
|
+
"const": "u16",
|
|
1170
|
+
"description": "u16"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"type": "string",
|
|
1174
|
+
"const": "u32",
|
|
1175
|
+
"description": "u32"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"type": "string",
|
|
1179
|
+
"const": "u64",
|
|
1180
|
+
"description": "u64"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"type": "string",
|
|
1184
|
+
"const": "u128",
|
|
1185
|
+
"description": "u128"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"type": "string",
|
|
1189
|
+
"const": "u256",
|
|
1190
|
+
"description": "u256"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"type": "string",
|
|
1194
|
+
"const": "vecbool",
|
|
1195
|
+
"description": "vecbool"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"type": "string",
|
|
1199
|
+
"const": "vecaddress",
|
|
1200
|
+
"description": "vecaddress"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"type": "string",
|
|
1204
|
+
"const": "vecstring",
|
|
1205
|
+
"description": "vecstring"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"type": "string",
|
|
1209
|
+
"const": "vecu8",
|
|
1210
|
+
"description": "vecu8"
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"type": "string",
|
|
1214
|
+
"const": "vecu16",
|
|
1215
|
+
"description": "vecu16"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"type": "string",
|
|
1219
|
+
"const": "vecu32",
|
|
1220
|
+
"description": "vecu32"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"type": "string",
|
|
1224
|
+
"const": "vecu64",
|
|
1225
|
+
"description": "vecu64"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"type": "string",
|
|
1229
|
+
"const": "vecu128",
|
|
1230
|
+
"description": "vecu128"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"const": "vecu256",
|
|
1235
|
+
"description": "vecu256"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"type": "string",
|
|
1239
|
+
"const": "vecvecu8",
|
|
1240
|
+
"description": "vecvecu8"
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"description": "Type of the value"
|
|
1244
|
+
},
|
|
1245
|
+
"value": {
|
|
1246
|
+
"anyOf": [
|
|
1247
|
+
{
|
|
1248
|
+
"type": "boolean"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"anyOf": [
|
|
1252
|
+
{
|
|
1253
|
+
"type": "object",
|
|
1254
|
+
"properties": {
|
|
1255
|
+
"name_or_address": {
|
|
1256
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
1257
|
+
"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)."
|
|
1258
|
+
},
|
|
1259
|
+
"local_mark_first": {
|
|
1260
|
+
"type": "boolean",
|
|
1261
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
"additionalProperties": false,
|
|
1265
|
+
"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."
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"type": "string"
|
|
1269
|
+
}
|
|
1270
|
+
]
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"type": "string"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"type": "number"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"type": "array",
|
|
1280
|
+
"items": {
|
|
1281
|
+
"type": "boolean"
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"anyOf": [
|
|
1286
|
+
{
|
|
1287
|
+
"type": "object",
|
|
1288
|
+
"properties": {
|
|
1289
|
+
"entities": {
|
|
1290
|
+
"type": "array",
|
|
1291
|
+
"items": {
|
|
1292
|
+
"$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
"check_all_founded": {
|
|
1296
|
+
"type": "boolean",
|
|
1297
|
+
"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"
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
"required": [
|
|
1301
|
+
"entities"
|
|
1302
|
+
],
|
|
1303
|
+
"additionalProperties": false,
|
|
1304
|
+
"description": "Used to batch find account or object IDs by name"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"type": "array",
|
|
1308
|
+
"items": {
|
|
1309
|
+
"type": "string"
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"type": "array",
|
|
1316
|
+
"items": {
|
|
1317
|
+
"type": "string"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"type": "array",
|
|
1322
|
+
"items": {
|
|
1323
|
+
"type": "number"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"type": "array",
|
|
1328
|
+
"items": {
|
|
1329
|
+
"type": "array",
|
|
1330
|
+
"items": {
|
|
1331
|
+
"type": "number"
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
],
|
|
1336
|
+
"description": "The actual value data"
|
|
1337
|
+
},
|
|
1338
|
+
"name": {
|
|
1339
|
+
"type": "string",
|
|
1340
|
+
"default": "",
|
|
1341
|
+
"description": "Name or description of this data"
|
|
1342
|
+
},
|
|
1343
|
+
"object_type": {
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"enum": [
|
|
1346
|
+
"Permission",
|
|
1347
|
+
"Repository",
|
|
1348
|
+
"Arb",
|
|
1349
|
+
"Arbitration",
|
|
1350
|
+
"Service",
|
|
1351
|
+
"Machine",
|
|
1352
|
+
"Order",
|
|
1353
|
+
"Progress",
|
|
1354
|
+
"Payment",
|
|
1355
|
+
"Treasury",
|
|
1356
|
+
"Guard",
|
|
1357
|
+
"Demand",
|
|
1358
|
+
"Passport",
|
|
1359
|
+
"Allocation",
|
|
1360
|
+
"Resource",
|
|
1361
|
+
"Reward",
|
|
1362
|
+
"Discount",
|
|
1363
|
+
"EntityRegistrar",
|
|
1364
|
+
"EntityLinker",
|
|
1365
|
+
"Proof",
|
|
1366
|
+
"WReceivedObject",
|
|
1367
|
+
"Contact",
|
|
1368
|
+
"TableItem_ProgressHistory",
|
|
1369
|
+
"TableItem_PermissionPerm",
|
|
1370
|
+
"TableItem_DemandPresenter",
|
|
1371
|
+
"TableItem_MachineNode",
|
|
1372
|
+
"TableItem_TreasuryHistory",
|
|
1373
|
+
"TableItem_RepositoryData",
|
|
1374
|
+
"TableItem_RewardRecord",
|
|
1375
|
+
"TableItem_EntityLinker",
|
|
1376
|
+
"TableItem_AddressMark",
|
|
1377
|
+
"TableItem_EntityRegistrar"
|
|
1378
|
+
],
|
|
1379
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"required": [
|
|
1383
|
+
"identifier",
|
|
1384
|
+
"b_submission",
|
|
1385
|
+
"value_type"
|
|
1386
|
+
],
|
|
1387
|
+
"additionalProperties": false,
|
|
1388
|
+
"description": "Guard table item"
|
|
1389
|
+
},
|
|
1390
|
+
"description": "User-submitted data required for Guard verification."
|
|
1391
|
+
}
|
|
1392
|
+
},
|
|
1393
|
+
"required": [
|
|
1394
|
+
"guard",
|
|
1395
|
+
"submission"
|
|
1396
|
+
],
|
|
1397
|
+
"additionalProperties": false,
|
|
1398
|
+
"description": "Permission guard submission data."
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"required": [
|
|
1403
|
+
"type",
|
|
1404
|
+
"guard",
|
|
1405
|
+
"submission"
|
|
1406
|
+
],
|
|
1407
|
+
"additionalProperties": false,
|
|
1408
|
+
"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."
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}
|