@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,1166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations_arbitration.json",
|
|
4
|
+
"title": "Arbitration Operation",
|
|
5
|
+
"description": "On-chain arbitration operation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"operation_type": {
|
|
9
|
+
"const": "arbitration"
|
|
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
|
+
"dispute": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"order": {
|
|
108
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
109
|
+
"description": "Order ID or name."
|
|
110
|
+
},
|
|
111
|
+
"description": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"description": "Dispute description."
|
|
114
|
+
},
|
|
115
|
+
"proposition": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"description": "List of dispute propositions."
|
|
121
|
+
},
|
|
122
|
+
"fee": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"balance": {
|
|
128
|
+
"type": [
|
|
129
|
+
"number",
|
|
130
|
+
"string"
|
|
131
|
+
],
|
|
132
|
+
"description": "Balance type"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"balance"
|
|
137
|
+
],
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"description": "Specify an amount value."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"coin": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"description": "Coin object ID or name(local mark). Use a specified Coin object."
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": [
|
|
150
|
+
"coin"
|
|
151
|
+
],
|
|
152
|
+
"additionalProperties": false
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"description": "Dispute processing fee."
|
|
156
|
+
},
|
|
157
|
+
"namedArb": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"properties": {
|
|
160
|
+
"name": {
|
|
161
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name"
|
|
162
|
+
},
|
|
163
|
+
"tags": {
|
|
164
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/tags"
|
|
165
|
+
},
|
|
166
|
+
"onChain": {
|
|
167
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/onChain"
|
|
168
|
+
},
|
|
169
|
+
"replaceExistName": {
|
|
170
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/replaceExistName"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"additionalProperties": false,
|
|
174
|
+
"description": "Name for the newly created arbitration object."
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": [
|
|
178
|
+
"order",
|
|
179
|
+
"proposition",
|
|
180
|
+
"fee"
|
|
181
|
+
],
|
|
182
|
+
"additionalProperties": false,
|
|
183
|
+
"description": "Create a new Arb object for the order."
|
|
184
|
+
},
|
|
185
|
+
"description": {
|
|
186
|
+
"$ref": "#/definitions/data/properties/dispute/properties/description",
|
|
187
|
+
"description": "Introduction of the Arbitration object."
|
|
188
|
+
},
|
|
189
|
+
"location": {
|
|
190
|
+
"$ref": "#/definitions/data/properties/dispute/properties/proposition/items",
|
|
191
|
+
"description": "Arbitration location."
|
|
192
|
+
},
|
|
193
|
+
"fee": {
|
|
194
|
+
"$ref": "#/definitions/data/properties/dispute/properties/fee/anyOf/0/properties/balance",
|
|
195
|
+
"description": "Arbitration fee."
|
|
196
|
+
},
|
|
197
|
+
"pause": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"description": "Whether to pause arbitration."
|
|
200
|
+
},
|
|
201
|
+
"confirm": {
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"arb": {
|
|
205
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
206
|
+
"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)."
|
|
207
|
+
},
|
|
208
|
+
"voting_deadline": {
|
|
209
|
+
"anyOf": [
|
|
210
|
+
{
|
|
211
|
+
"type": "integer",
|
|
212
|
+
"minimum": 0
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "null"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": [
|
|
221
|
+
"arb",
|
|
222
|
+
"voting_deadline"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"description": "Confirm the materials submitted by the user for arbitration."
|
|
226
|
+
},
|
|
227
|
+
"voting_deadline_change": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"arb": {
|
|
231
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
232
|
+
},
|
|
233
|
+
"voting_deadline": {
|
|
234
|
+
"type": [
|
|
235
|
+
"number",
|
|
236
|
+
"null"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"required": [
|
|
241
|
+
"arb",
|
|
242
|
+
"voting_deadline"
|
|
243
|
+
],
|
|
244
|
+
"additionalProperties": false,
|
|
245
|
+
"description": "Change the voting deadline."
|
|
246
|
+
},
|
|
247
|
+
"vote": {
|
|
248
|
+
"type": "object",
|
|
249
|
+
"properties": {
|
|
250
|
+
"arb": {
|
|
251
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
252
|
+
},
|
|
253
|
+
"votes": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "integer",
|
|
257
|
+
"minimum": 0,
|
|
258
|
+
"maximum": 255
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"voting_guard": {
|
|
262
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb",
|
|
263
|
+
"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)."
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"required": [
|
|
267
|
+
"arb",
|
|
268
|
+
"votes"
|
|
269
|
+
],
|
|
270
|
+
"additionalProperties": false,
|
|
271
|
+
"description": "Vote on user propositions."
|
|
272
|
+
},
|
|
273
|
+
"feedback": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"arb": {
|
|
277
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
278
|
+
},
|
|
279
|
+
"feedback": {
|
|
280
|
+
"$ref": "#/definitions/data/properties/dispute/properties/description",
|
|
281
|
+
"description": "Arbitration feedback."
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"required": [
|
|
285
|
+
"arb",
|
|
286
|
+
"feedback"
|
|
287
|
+
],
|
|
288
|
+
"additionalProperties": false,
|
|
289
|
+
"description": "Arbitration feedback for the Arb object."
|
|
290
|
+
},
|
|
291
|
+
"arbitration": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"properties": {
|
|
294
|
+
"arb": {
|
|
295
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
296
|
+
},
|
|
297
|
+
"feedback": {
|
|
298
|
+
"$ref": "#/definitions/data/properties/dispute/properties/description",
|
|
299
|
+
"description": "Arbitration feedback."
|
|
300
|
+
},
|
|
301
|
+
"indemnity": {
|
|
302
|
+
"type": "integer",
|
|
303
|
+
"minimum": 0
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"required": [
|
|
307
|
+
"arb",
|
|
308
|
+
"feedback",
|
|
309
|
+
"indemnity"
|
|
310
|
+
],
|
|
311
|
+
"additionalProperties": false,
|
|
312
|
+
"description": "Provide a definitive arbitration result."
|
|
313
|
+
},
|
|
314
|
+
"reset": {
|
|
315
|
+
"type": "object",
|
|
316
|
+
"properties": {
|
|
317
|
+
"arb": {
|
|
318
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
319
|
+
},
|
|
320
|
+
"feedback": {
|
|
321
|
+
"$ref": "#/definitions/data/properties/dispute/properties/description",
|
|
322
|
+
"description": "Arbitration feedback."
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": [
|
|
326
|
+
"arb",
|
|
327
|
+
"feedback"
|
|
328
|
+
],
|
|
329
|
+
"additionalProperties": false,
|
|
330
|
+
"description": "User applies to resubmit materials and restart arbitration."
|
|
331
|
+
},
|
|
332
|
+
"arb_withdraw": {
|
|
333
|
+
"type": "object",
|
|
334
|
+
"properties": {
|
|
335
|
+
"arb": {
|
|
336
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"arb"
|
|
341
|
+
],
|
|
342
|
+
"additionalProperties": false,
|
|
343
|
+
"description": "Withdraw arbitration fees from the Arb object."
|
|
344
|
+
},
|
|
345
|
+
"fees_transfer": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {
|
|
348
|
+
"to": {
|
|
349
|
+
"anyOf": [
|
|
350
|
+
{
|
|
351
|
+
"type": "object",
|
|
352
|
+
"properties": {
|
|
353
|
+
"allocation": {
|
|
354
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
355
|
+
"description": "Allocation object ID or name."
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"required": [
|
|
359
|
+
"allocation"
|
|
360
|
+
],
|
|
361
|
+
"additionalProperties": false
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "object",
|
|
365
|
+
"properties": {
|
|
366
|
+
"treasury": {
|
|
367
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
368
|
+
"description": "Treasury object ID or name."
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"required": [
|
|
372
|
+
"treasury"
|
|
373
|
+
],
|
|
374
|
+
"additionalProperties": false
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"description": "Transfer arbitration fees to the specified Allocation object or Treasury object."
|
|
378
|
+
},
|
|
379
|
+
"payment_remark": {
|
|
380
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name",
|
|
381
|
+
"description": "Payment remark."
|
|
382
|
+
},
|
|
383
|
+
"payment_index": {
|
|
384
|
+
"type": "integer",
|
|
385
|
+
"minimum": 0,
|
|
386
|
+
"description": "Payment index."
|
|
387
|
+
},
|
|
388
|
+
"newPayment": {
|
|
389
|
+
"$ref": "#/definitions/data/properties/dispute/properties/namedArb",
|
|
390
|
+
"description": "Name for the newly created payment object."
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"required": [
|
|
394
|
+
"to",
|
|
395
|
+
"payment_remark",
|
|
396
|
+
"payment_index"
|
|
397
|
+
],
|
|
398
|
+
"additionalProperties": false,
|
|
399
|
+
"description": "Distribute the withdrawn arbitration fees."
|
|
400
|
+
},
|
|
401
|
+
"usage_guard": {
|
|
402
|
+
"anyOf": [
|
|
403
|
+
{
|
|
404
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"type": "null"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"description": "Set Guard for verification when users apply for arbitration; if Guard verification fails, users will not be able to apply for arbitration."
|
|
411
|
+
},
|
|
412
|
+
"voting_guard": {
|
|
413
|
+
"anyOf": [
|
|
414
|
+
{
|
|
415
|
+
"type": "object",
|
|
416
|
+
"properties": {
|
|
417
|
+
"op": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"enum": [
|
|
420
|
+
"add",
|
|
421
|
+
"set"
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
"guards": {
|
|
425
|
+
"type": "array",
|
|
426
|
+
"items": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {
|
|
429
|
+
"guard": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"description": "Voting Guard object ID"
|
|
432
|
+
},
|
|
433
|
+
"vote_weight": {
|
|
434
|
+
"anyOf": [
|
|
435
|
+
{
|
|
436
|
+
"type": "object",
|
|
437
|
+
"properties": {
|
|
438
|
+
"GuardIdentifier": {
|
|
439
|
+
"type": "integer",
|
|
440
|
+
"minimum": 0,
|
|
441
|
+
"maximum": 255,
|
|
442
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"required": [
|
|
446
|
+
"GuardIdentifier"
|
|
447
|
+
],
|
|
448
|
+
"additionalProperties": false,
|
|
449
|
+
"description": "Use value corresponding to Guard object's Table index as voting weight"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"type": "object",
|
|
453
|
+
"properties": {
|
|
454
|
+
"FixedValue": {
|
|
455
|
+
"type": "integer",
|
|
456
|
+
"minimum": 0,
|
|
457
|
+
"maximum": 65535,
|
|
458
|
+
"description": "Fixed voting weight value"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"required": [
|
|
462
|
+
"FixedValue"
|
|
463
|
+
],
|
|
464
|
+
"additionalProperties": false,
|
|
465
|
+
"description": "Fixed voting weight"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"description": "Voting weight"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"required": [
|
|
472
|
+
"guard",
|
|
473
|
+
"vote_weight"
|
|
474
|
+
],
|
|
475
|
+
"additionalProperties": false,
|
|
476
|
+
"description": "Voting Guard object"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"op",
|
|
482
|
+
"guards"
|
|
483
|
+
],
|
|
484
|
+
"additionalProperties": false
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"type": "object",
|
|
488
|
+
"properties": {
|
|
489
|
+
"op": {
|
|
490
|
+
"type": "string",
|
|
491
|
+
"const": "remove"
|
|
492
|
+
},
|
|
493
|
+
"guards": {
|
|
494
|
+
"type": "array",
|
|
495
|
+
"items": {
|
|
496
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"required": [
|
|
501
|
+
"op",
|
|
502
|
+
"guards"
|
|
503
|
+
],
|
|
504
|
+
"additionalProperties": false
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"type": "object",
|
|
508
|
+
"properties": {
|
|
509
|
+
"op": {
|
|
510
|
+
"type": "string",
|
|
511
|
+
"const": "clear"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"required": [
|
|
515
|
+
"op"
|
|
516
|
+
],
|
|
517
|
+
"additionalProperties": false
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"description": "Set Guard for verification during arbitration voting; if Guard verification fails, arbitration voting will fail."
|
|
521
|
+
},
|
|
522
|
+
"owner_receive": {
|
|
523
|
+
"anyOf": [
|
|
524
|
+
{
|
|
525
|
+
"type": "array",
|
|
526
|
+
"items": {
|
|
527
|
+
"type": "object",
|
|
528
|
+
"properties": {
|
|
529
|
+
"id": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"minLength": 1,
|
|
532
|
+
"description": "Received object ID"
|
|
533
|
+
},
|
|
534
|
+
"type": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"minLength": 1,
|
|
537
|
+
"description": "Object type"
|
|
538
|
+
},
|
|
539
|
+
"content_raw": {
|
|
540
|
+
"description": "Raw content data"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"required": [
|
|
544
|
+
"id",
|
|
545
|
+
"type"
|
|
546
|
+
],
|
|
547
|
+
"additionalProperties": false,
|
|
548
|
+
"description": "Received normal object record"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"type": "object",
|
|
553
|
+
"properties": {
|
|
554
|
+
"balance": {
|
|
555
|
+
"$ref": "#/definitions/data/properties/dispute/properties/fee/anyOf/0/properties/balance"
|
|
556
|
+
},
|
|
557
|
+
"token_type": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"description": "Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."
|
|
560
|
+
},
|
|
561
|
+
"received": {
|
|
562
|
+
"type": "array",
|
|
563
|
+
"items": {
|
|
564
|
+
"type": "object",
|
|
565
|
+
"properties": {
|
|
566
|
+
"id": {
|
|
567
|
+
"type": "string",
|
|
568
|
+
"description": "Received CoinWrapper object ID"
|
|
569
|
+
},
|
|
570
|
+
"balance": {
|
|
571
|
+
"$ref": "#/definitions/data/properties/dispute/properties/fee/anyOf/0/properties/balance"
|
|
572
|
+
},
|
|
573
|
+
"payment": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"description": "Payment object ID"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"required": [
|
|
579
|
+
"id",
|
|
580
|
+
"balance",
|
|
581
|
+
"payment"
|
|
582
|
+
],
|
|
583
|
+
"additionalProperties": false,
|
|
584
|
+
"description": "Received CoinWrapper object record"
|
|
585
|
+
},
|
|
586
|
+
"description": "Received records of Coin objects"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"balance",
|
|
591
|
+
"token_type",
|
|
592
|
+
"received"
|
|
593
|
+
],
|
|
594
|
+
"additionalProperties": false,
|
|
595
|
+
"description": "Received record of Coin objects"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "string",
|
|
599
|
+
"const": "recently"
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"description": "Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."
|
|
603
|
+
},
|
|
604
|
+
"um": {
|
|
605
|
+
"anyOf": [
|
|
606
|
+
{
|
|
607
|
+
"$ref": "#/definitions/data/properties/confirm/properties/arb"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"type": "null"
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
"description": "Contact object."
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"required": [
|
|
617
|
+
"object"
|
|
618
|
+
],
|
|
619
|
+
"additionalProperties": false,
|
|
620
|
+
"description": "On-chain Arbitration operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create an Arbitration. 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."
|
|
621
|
+
},
|
|
622
|
+
"env": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"properties": {
|
|
625
|
+
"account": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"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).",
|
|
628
|
+
"default": ""
|
|
629
|
+
},
|
|
630
|
+
"permission_guard": {
|
|
631
|
+
"type": "array",
|
|
632
|
+
"items": {
|
|
633
|
+
"type": "string"
|
|
634
|
+
},
|
|
635
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
636
|
+
},
|
|
637
|
+
"no_cache": {
|
|
638
|
+
"type": "boolean",
|
|
639
|
+
"description": "Whether to disable caching."
|
|
640
|
+
},
|
|
641
|
+
"network": {
|
|
642
|
+
"type": "string",
|
|
643
|
+
"enum": [
|
|
644
|
+
"localnet",
|
|
645
|
+
"testnet"
|
|
646
|
+
],
|
|
647
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
648
|
+
},
|
|
649
|
+
"referrer": {
|
|
650
|
+
"$ref": "#/definitions/env/properties/account",
|
|
651
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"additionalProperties": false,
|
|
655
|
+
"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."
|
|
656
|
+
},
|
|
657
|
+
"submission": {
|
|
658
|
+
"type": "object",
|
|
659
|
+
"properties": {
|
|
660
|
+
"type": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"const": "submission",
|
|
663
|
+
"description": "Type of call response: submission"
|
|
664
|
+
},
|
|
665
|
+
"guard": {
|
|
666
|
+
"type": "array",
|
|
667
|
+
"items": {
|
|
668
|
+
"type": "object",
|
|
669
|
+
"properties": {
|
|
670
|
+
"object": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"description": "Guard object name or ID."
|
|
673
|
+
},
|
|
674
|
+
"impack": {
|
|
675
|
+
"type": "boolean",
|
|
676
|
+
"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."
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"required": [
|
|
680
|
+
"object",
|
|
681
|
+
"impack"
|
|
682
|
+
],
|
|
683
|
+
"additionalProperties": false
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"submission": {
|
|
687
|
+
"type": "array",
|
|
688
|
+
"items": {
|
|
689
|
+
"type": "object",
|
|
690
|
+
"properties": {
|
|
691
|
+
"guard": {
|
|
692
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
693
|
+
"description": "Guard object name or ID."
|
|
694
|
+
},
|
|
695
|
+
"submission": {
|
|
696
|
+
"type": "array",
|
|
697
|
+
"items": {
|
|
698
|
+
"type": "object",
|
|
699
|
+
"properties": {
|
|
700
|
+
"identifier": {
|
|
701
|
+
"type": "integer",
|
|
702
|
+
"minimum": 0,
|
|
703
|
+
"maximum": 255,
|
|
704
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
705
|
+
},
|
|
706
|
+
"b_submission": {
|
|
707
|
+
"type": "boolean",
|
|
708
|
+
"description": "Whether user submission is required for this data"
|
|
709
|
+
},
|
|
710
|
+
"value_type": {
|
|
711
|
+
"anyOf": [
|
|
712
|
+
{
|
|
713
|
+
"type": "number",
|
|
714
|
+
"const": 0,
|
|
715
|
+
"description": "Bool (0)"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"type": "number",
|
|
719
|
+
"const": 1,
|
|
720
|
+
"description": "Address (1)"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"type": "number",
|
|
724
|
+
"const": 2,
|
|
725
|
+
"description": "String (2)"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"type": "number",
|
|
729
|
+
"const": 3,
|
|
730
|
+
"description": "U8 (3)"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"type": "number",
|
|
734
|
+
"const": 4,
|
|
735
|
+
"description": "U16 (4)"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"type": "number",
|
|
739
|
+
"const": 5,
|
|
740
|
+
"description": "U32 (5)"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"type": "number",
|
|
744
|
+
"const": 6,
|
|
745
|
+
"description": "U64 (6)"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"type": "number",
|
|
749
|
+
"const": 7,
|
|
750
|
+
"description": "U128 (7)"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"type": "number",
|
|
754
|
+
"const": 8,
|
|
755
|
+
"description": "U256 (8)"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"type": "number",
|
|
759
|
+
"const": 9,
|
|
760
|
+
"description": "VecBool (9)"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"type": "number",
|
|
764
|
+
"const": 10,
|
|
765
|
+
"description": "VecAddress (10)"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"type": "number",
|
|
769
|
+
"const": 11,
|
|
770
|
+
"description": "VecString (11)"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"type": "number",
|
|
774
|
+
"const": 12,
|
|
775
|
+
"description": "VecU8 (12)"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"type": "number",
|
|
779
|
+
"const": 13,
|
|
780
|
+
"description": "VecU16 (13)"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"type": "number",
|
|
784
|
+
"const": 14,
|
|
785
|
+
"description": "VecU32 (14)"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"type": "number",
|
|
789
|
+
"const": 15,
|
|
790
|
+
"description": "VecU64 (15)"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"type": "number",
|
|
794
|
+
"const": 16,
|
|
795
|
+
"description": "VecU128 (16)"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"type": "number",
|
|
799
|
+
"const": 17,
|
|
800
|
+
"description": "VecU256 (17)"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"type": "number",
|
|
804
|
+
"const": 18,
|
|
805
|
+
"description": "VecVecU8 (18)"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"type": "string",
|
|
809
|
+
"const": "Bool",
|
|
810
|
+
"description": "Bool"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"type": "string",
|
|
814
|
+
"const": "Address",
|
|
815
|
+
"description": "Address"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"type": "string",
|
|
819
|
+
"const": "String",
|
|
820
|
+
"description": "String"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"type": "string",
|
|
824
|
+
"const": "U8",
|
|
825
|
+
"description": "U8"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"type": "string",
|
|
829
|
+
"const": "U16",
|
|
830
|
+
"description": "U16"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"type": "string",
|
|
834
|
+
"const": "U32",
|
|
835
|
+
"description": "U32"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"type": "string",
|
|
839
|
+
"const": "U64",
|
|
840
|
+
"description": "U64"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"type": "string",
|
|
844
|
+
"const": "U128",
|
|
845
|
+
"description": "U128"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"type": "string",
|
|
849
|
+
"const": "U256",
|
|
850
|
+
"description": "U256"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"type": "string",
|
|
854
|
+
"const": "VecBool",
|
|
855
|
+
"description": "VecBool"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"type": "string",
|
|
859
|
+
"const": "VecAddress",
|
|
860
|
+
"description": "VecAddress"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"type": "string",
|
|
864
|
+
"const": "VecString",
|
|
865
|
+
"description": "VecString"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"type": "string",
|
|
869
|
+
"const": "VecU8",
|
|
870
|
+
"description": "VecU8"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"type": "string",
|
|
874
|
+
"const": "VecU16",
|
|
875
|
+
"description": "VecU16"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"type": "string",
|
|
879
|
+
"const": "VecU32",
|
|
880
|
+
"description": "VecU32"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"type": "string",
|
|
884
|
+
"const": "VecU64",
|
|
885
|
+
"description": "VecU64"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"type": "string",
|
|
889
|
+
"const": "VecU128",
|
|
890
|
+
"description": "VecU128"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"type": "string",
|
|
894
|
+
"const": "VecU256",
|
|
895
|
+
"description": "VecU256"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"type": "string",
|
|
899
|
+
"const": "VecVecU8",
|
|
900
|
+
"description": "VecVecU8"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"type": "string",
|
|
904
|
+
"const": "bool",
|
|
905
|
+
"description": "bool"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"type": "string",
|
|
909
|
+
"const": "address",
|
|
910
|
+
"description": "address"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"type": "string",
|
|
914
|
+
"const": "string",
|
|
915
|
+
"description": "string"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"type": "string",
|
|
919
|
+
"const": "u8",
|
|
920
|
+
"description": "u8"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"type": "string",
|
|
924
|
+
"const": "u16",
|
|
925
|
+
"description": "u16"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"type": "string",
|
|
929
|
+
"const": "u32",
|
|
930
|
+
"description": "u32"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"type": "string",
|
|
934
|
+
"const": "u64",
|
|
935
|
+
"description": "u64"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"type": "string",
|
|
939
|
+
"const": "u128",
|
|
940
|
+
"description": "u128"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"type": "string",
|
|
944
|
+
"const": "u256",
|
|
945
|
+
"description": "u256"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"type": "string",
|
|
949
|
+
"const": "vecbool",
|
|
950
|
+
"description": "vecbool"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"type": "string",
|
|
954
|
+
"const": "vecaddress",
|
|
955
|
+
"description": "vecaddress"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"type": "string",
|
|
959
|
+
"const": "vecstring",
|
|
960
|
+
"description": "vecstring"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"type": "string",
|
|
964
|
+
"const": "vecu8",
|
|
965
|
+
"description": "vecu8"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"type": "string",
|
|
969
|
+
"const": "vecu16",
|
|
970
|
+
"description": "vecu16"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"type": "string",
|
|
974
|
+
"const": "vecu32",
|
|
975
|
+
"description": "vecu32"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"type": "string",
|
|
979
|
+
"const": "vecu64",
|
|
980
|
+
"description": "vecu64"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"type": "string",
|
|
984
|
+
"const": "vecu128",
|
|
985
|
+
"description": "vecu128"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"type": "string",
|
|
989
|
+
"const": "vecu256",
|
|
990
|
+
"description": "vecu256"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"type": "string",
|
|
994
|
+
"const": "vecvecu8",
|
|
995
|
+
"description": "vecvecu8"
|
|
996
|
+
}
|
|
997
|
+
],
|
|
998
|
+
"description": "Type of the value"
|
|
999
|
+
},
|
|
1000
|
+
"value": {
|
|
1001
|
+
"anyOf": [
|
|
1002
|
+
{
|
|
1003
|
+
"type": "boolean"
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"anyOf": [
|
|
1007
|
+
{
|
|
1008
|
+
"type": "object",
|
|
1009
|
+
"properties": {
|
|
1010
|
+
"name_or_address": {
|
|
1011
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
1012
|
+
"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)."
|
|
1013
|
+
},
|
|
1014
|
+
"local_mark_first": {
|
|
1015
|
+
"type": "boolean",
|
|
1016
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
"additionalProperties": false,
|
|
1020
|
+
"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."
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"type": "string"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"type": "number"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"type": "array",
|
|
1035
|
+
"items": {
|
|
1036
|
+
"type": "boolean"
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"anyOf": [
|
|
1041
|
+
{
|
|
1042
|
+
"type": "object",
|
|
1043
|
+
"properties": {
|
|
1044
|
+
"entities": {
|
|
1045
|
+
"type": "array",
|
|
1046
|
+
"items": {
|
|
1047
|
+
"$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"check_all_founded": {
|
|
1051
|
+
"type": "boolean",
|
|
1052
|
+
"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"
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
"required": [
|
|
1056
|
+
"entities"
|
|
1057
|
+
],
|
|
1058
|
+
"additionalProperties": false,
|
|
1059
|
+
"description": "Used to batch find account or object IDs by name"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"type": "array",
|
|
1063
|
+
"items": {
|
|
1064
|
+
"type": "string"
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
]
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"type": "array",
|
|
1071
|
+
"items": {
|
|
1072
|
+
"type": "string"
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"type": "array",
|
|
1077
|
+
"items": {
|
|
1078
|
+
"type": "number"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"type": "array",
|
|
1083
|
+
"items": {
|
|
1084
|
+
"type": "array",
|
|
1085
|
+
"items": {
|
|
1086
|
+
"type": "number"
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
],
|
|
1091
|
+
"description": "The actual value data"
|
|
1092
|
+
},
|
|
1093
|
+
"name": {
|
|
1094
|
+
"type": "string",
|
|
1095
|
+
"default": "",
|
|
1096
|
+
"description": "Name or description of this data"
|
|
1097
|
+
},
|
|
1098
|
+
"object_type": {
|
|
1099
|
+
"type": "string",
|
|
1100
|
+
"enum": [
|
|
1101
|
+
"Permission",
|
|
1102
|
+
"Repository",
|
|
1103
|
+
"Arb",
|
|
1104
|
+
"Arbitration",
|
|
1105
|
+
"Service",
|
|
1106
|
+
"Machine",
|
|
1107
|
+
"Order",
|
|
1108
|
+
"Progress",
|
|
1109
|
+
"Payment",
|
|
1110
|
+
"Treasury",
|
|
1111
|
+
"Guard",
|
|
1112
|
+
"Demand",
|
|
1113
|
+
"Passport",
|
|
1114
|
+
"Allocation",
|
|
1115
|
+
"Resource",
|
|
1116
|
+
"Reward",
|
|
1117
|
+
"Discount",
|
|
1118
|
+
"EntityRegistrar",
|
|
1119
|
+
"EntityLinker",
|
|
1120
|
+
"Proof",
|
|
1121
|
+
"WReceivedObject",
|
|
1122
|
+
"Contact",
|
|
1123
|
+
"TableItem_ProgressHistory",
|
|
1124
|
+
"TableItem_PermissionPerm",
|
|
1125
|
+
"TableItem_DemandPresenter",
|
|
1126
|
+
"TableItem_MachineNode",
|
|
1127
|
+
"TableItem_TreasuryHistory",
|
|
1128
|
+
"TableItem_RepositoryData",
|
|
1129
|
+
"TableItem_RewardRecord",
|
|
1130
|
+
"TableItem_EntityLinker",
|
|
1131
|
+
"TableItem_AddressMark",
|
|
1132
|
+
"TableItem_EntityRegistrar"
|
|
1133
|
+
],
|
|
1134
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
"required": [
|
|
1138
|
+
"identifier",
|
|
1139
|
+
"b_submission",
|
|
1140
|
+
"value_type"
|
|
1141
|
+
],
|
|
1142
|
+
"additionalProperties": false,
|
|
1143
|
+
"description": "Guard table item"
|
|
1144
|
+
},
|
|
1145
|
+
"description": "User-submitted data required for Guard verification."
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
"required": [
|
|
1149
|
+
"guard",
|
|
1150
|
+
"submission"
|
|
1151
|
+
],
|
|
1152
|
+
"additionalProperties": false,
|
|
1153
|
+
"description": "Permission guard submission data."
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"required": [
|
|
1158
|
+
"type",
|
|
1159
|
+
"guard",
|
|
1160
|
+
"submission"
|
|
1161
|
+
],
|
|
1162
|
+
"additionalProperties": false,
|
|
1163
|
+
"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."
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}
|