@wowok/agent-mcp 2.2.13 → 2.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -11
- package/dist/index.js +44 -100
- package/dist/schema/query/index.js +1 -1
- package/dist/schema-query/index.d.ts +29 -0
- package/dist/schema-query/index.js +149 -0
- package/dist/schemas/account_operation.schema.json +255 -0
- package/dist/schemas/guard2file.schema.json +71 -0
- package/dist/schemas/index.json +139 -0
- package/dist/schemas/local_info_operation.schema.json +142 -0
- package/dist/schemas/local_mark_operation.schema.json +119 -0
- package/dist/schemas/machineNode2file.schema.json +71 -0
- package/dist/schemas/messenger_operation.schema.json +1393 -0
- package/dist/schemas/onchain_events.schema.json +113 -0
- package/dist/schemas/onchain_operations.schema.json +376 -0
- package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
- package/dist/schemas/onchain_operations_contact.schema.json +853 -0
- package/dist/schemas/onchain_operations_demand.schema.json +984 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
- package/dist/schemas/onchain_operations_guard.schema.json +713 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
- package/dist/schemas/onchain_operations_order.schema.json +830 -0
- package/dist/schemas/onchain_operations_payment.schema.json +717 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
- package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
- package/dist/schemas/onchain_operations_progress.schema.json +751 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
- package/dist/schemas/onchain_operations_reward.schema.json +955 -0
- package/dist/schemas/onchain_operations_service.schema.json +1411 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
- package/dist/schemas/onchain_table_data.schema.json +35 -0
- package/dist/schemas/query_toolkit.schema.json +32 -0
- package/dist/schemas/schema_query.schema.json +33 -0
- package/dist/schemas/wip_file.schema.json +27 -0
- package/dist/schemas/wowok_buildin_info.schema.json +487 -0
- package/package.json +7 -5
- package/dist/docs/index.d.ts +0 -3
- package/dist/docs/index.js +0 -2
- package/dist/docs/loader.d.ts +0 -12
- package/dist/docs/loader.js +0 -177
- package/dist/docs/search.d.ts +0 -17
- package/dist/docs/search.js +0 -325
- package/dist/docs/types.d.ts +0 -55
- package/dist/docs/types.js +0 -1
- package/docs/README.md +0 -249
- package/docs/WIP.md +0 -388
- package/docs/WTS.md +0 -536
- package/docs/docs/account.md +0 -914
- package/docs/docs/allocation.md +0 -635
- package/docs/docs/arbitration.md +0 -1804
- package/docs/docs/arbitration_state_machine.md +0 -270
- package/docs/docs/contact.md +0 -709
- package/docs/docs/demand.md +0 -948
- package/docs/docs/guard.md +0 -1465
- package/docs/docs/localinfo.md +0 -432
- package/docs/docs/localmark.md +0 -583
- package/docs/docs/machine.md +0 -2490
- package/docs/docs/messenger.md +0 -2098
- package/docs/docs/onchain_events.md +0 -267
- package/docs/docs/order.md +0 -1001
- package/docs/docs/payment.md +0 -512
- package/docs/docs/permission.md +0 -1438
- package/docs/docs/personal.md +0 -742
- package/docs/docs/progress.md +0 -1748
- package/docs/docs/query.md +0 -467
- package/docs/docs/repository.md +0 -1043
- package/docs/docs/reward.md +0 -833
- package/docs/docs/service.md +0 -2130
- package/docs/docs/stage-01-introduction.md +0 -243
- package/docs/docs/stage-02-trust.md +0 -302
- package/docs/docs/stage-03-collaboration.md +0 -337
- package/docs/docs/stage-04-transaction.md +0 -277
- package/docs/docs/stage-05-business.md +0 -151
- package/docs/docs/stage-06-personal.md +0 -203
- package/docs/docs/stage-07-query.md +0 -572
- package/docs/docs/stage-08-examples.md +0 -184
- package/docs/docs/treasury.md +0 -1149
- package/docs/docs/wowok_buildin_info.md +0 -740
- package/docs/examples/Insurance/Insurance.md +0 -594
- package/docs/examples/Insurance/Insurance_TestResults.md +0 -481
- package/docs/examples/Insurance/insurance_complete_guard_v1.json +0 -50
- package/docs/examples/MyShop/MyShop.md +0 -1353
- package/docs/examples/MyShop/MyShop_TestResults.md +0 -1003
- package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +0 -1898
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
- package/docs/examples/MyShop_Advanced/machine_nodes.json +0 -222
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +0 -776
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
- package/docs/examples/Travel/Travel.md +0 -1157
- package/docs/examples/Travel/Travel_TestResults.md +0 -743
- package/docs/examples/Travel/calc-weather-timestamps.js +0 -8
- package/docs/examples/Travel/travel_machine_v2_export.json +0 -104
- package/docs/examples/Travel/weather_check_guard_v1.json +0 -51
- package/docs/skills/WOWOK.md +0 -650
- package/docs/skills/onchain_operations/_common.md +0 -406
- package/docs/skills/onchain_operations/_index.md +0 -196
- package/docs/skills/onchain_operations/allocation.md +0 -28
- package/docs/skills/onchain_operations/arbitration.md +0 -106
- package/docs/skills/onchain_operations/contact.md +0 -40
- package/docs/skills/onchain_operations/demand.md +0 -53
- package/docs/skills/onchain_operations/gen_passport.md +0 -23
- package/docs/skills/onchain_operations/guard.md +0 -56
- package/docs/skills/onchain_operations/machine.md +0 -89
- package/docs/skills/onchain_operations/order.md +0 -56
- package/docs/skills/onchain_operations/payment.md +0 -24
- package/docs/skills/onchain_operations/permission.md +0 -68
- package/docs/skills/onchain_operations/personal.md +0 -58
- package/docs/skills/onchain_operations/progress.md +0 -38
- package/docs/skills/onchain_operations/repository.md +0 -70
- package/docs/skills/onchain_operations/reward.md +0 -38
- package/docs/skills/onchain_operations/service.md +0 -78
- package/docs/skills/onchain_operations/treasury.md +0 -68
- package/docs/skills/schema-account_operation.md +0 -402
- package/docs/skills/schema-guard2file.md +0 -153
- package/docs/skills/schema-local_info_operation.md +0 -160
- package/docs/skills/schema-local_mark_operation.md +0 -148
- package/docs/skills/schema-machineNode2file.md +0 -155
- package/docs/skills/schema-messenger_operation.md +0 -547
- package/docs/skills/schema-onchain_events.md +0 -201
- package/docs/skills/schema-onchain_table_data.md +0 -334
- package/docs/skills/schema-query_toolkit.md +0 -395
- package/docs/skills/schema-wip_file.md +0 -240
- package/docs/skills/schema-wowok_buildin_info.md +0 -296
- package/docs/wip-examples/three_body.html +0 -57
- package/docs/wip-examples/three_body.wip +0 -30
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations_payment.json",
|
|
4
|
+
"title": "Payment Operation",
|
|
5
|
+
"description": "On-chain payment operation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"operation_type": {
|
|
9
|
+
"const": "payment"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"$ref": "#/definitions/data",
|
|
13
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
14
|
+
},
|
|
15
|
+
"env": {
|
|
16
|
+
"$ref": "#/definitions/env",
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
},
|
|
19
|
+
"submission": {
|
|
20
|
+
"$ref": "#/definitions/submission",
|
|
21
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"operation_type",
|
|
26
|
+
"data"
|
|
27
|
+
],
|
|
28
|
+
"definitions": {
|
|
29
|
+
"data": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"object": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"name": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "The name of the object"
|
|
38
|
+
},
|
|
39
|
+
"tags": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"description": "The tags of the object"
|
|
45
|
+
},
|
|
46
|
+
"onChain": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"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."
|
|
49
|
+
},
|
|
50
|
+
"replaceExistName": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"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)."
|
|
53
|
+
},
|
|
54
|
+
"type_parameter": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Token type of the on-chain object, e.g. '0x2::wow::WOW'. Defines what token this object can use for payments.",
|
|
57
|
+
"default": "0x2::wow::WOW"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"description": "Create a new named object (with optional tags) and specify a token type for payments (e.g., WOW)."
|
|
62
|
+
},
|
|
63
|
+
"revenue": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"recipient": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"name_or_address": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"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)."
|
|
74
|
+
},
|
|
75
|
+
"local_mark_first": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"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."
|
|
82
|
+
},
|
|
83
|
+
"amount": {
|
|
84
|
+
"anyOf": [
|
|
85
|
+
{
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"balance": {
|
|
89
|
+
"type": [
|
|
90
|
+
"number",
|
|
91
|
+
"string"
|
|
92
|
+
],
|
|
93
|
+
"description": "Balance type"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"balance"
|
|
98
|
+
],
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"description": "Specify an amount value."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"coin": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Coin object ID or name(local mark). Use a specified Coin object."
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": [
|
|
111
|
+
"coin"
|
|
112
|
+
],
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"description": "Specify the amount to pay from the transaction account, or the Coin ID owned by the transaction account. Used for payment."
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"required": [
|
|
120
|
+
"recipient",
|
|
121
|
+
"amount"
|
|
122
|
+
],
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"description": "Payment recipient and amount"
|
|
125
|
+
},
|
|
126
|
+
"description": "Array of payment recipients and amounts"
|
|
127
|
+
},
|
|
128
|
+
"info": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"properties": {
|
|
131
|
+
"for_object": {
|
|
132
|
+
"type": [
|
|
133
|
+
"string",
|
|
134
|
+
"null"
|
|
135
|
+
],
|
|
136
|
+
"description": "Payment for a specific object ID"
|
|
137
|
+
},
|
|
138
|
+
"for_guard": {
|
|
139
|
+
"type": [
|
|
140
|
+
"string",
|
|
141
|
+
"null"
|
|
142
|
+
],
|
|
143
|
+
"description": "Payment to satisfy verification of a Guard object"
|
|
144
|
+
},
|
|
145
|
+
"remark": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "Payment record remark"
|
|
148
|
+
},
|
|
149
|
+
"index": {
|
|
150
|
+
"type": [
|
|
151
|
+
"number",
|
|
152
|
+
"string"
|
|
153
|
+
],
|
|
154
|
+
"description": "Payment record index"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"remark",
|
|
159
|
+
"index"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"description": "Payment information"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"required": [
|
|
166
|
+
"object",
|
|
167
|
+
"revenue",
|
|
168
|
+
"info"
|
|
169
|
+
],
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"description": "On-chain Payment creation. USAGE: Set 'object' field with {name, type, ...} to create a named Payment. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. Payment is an immutable object - it can only be created, not modified. The 'object' field is CRITICAL and REQUIRED."
|
|
172
|
+
},
|
|
173
|
+
"env": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"properties": {
|
|
176
|
+
"account": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"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).",
|
|
179
|
+
"default": ""
|
|
180
|
+
},
|
|
181
|
+
"permission_guard": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
187
|
+
},
|
|
188
|
+
"no_cache": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"description": "Whether to disable caching."
|
|
191
|
+
},
|
|
192
|
+
"network": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"enum": [
|
|
195
|
+
"localnet",
|
|
196
|
+
"testnet"
|
|
197
|
+
],
|
|
198
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
199
|
+
},
|
|
200
|
+
"referrer": {
|
|
201
|
+
"$ref": "#/definitions/env/properties/account",
|
|
202
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"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."
|
|
207
|
+
},
|
|
208
|
+
"submission": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"properties": {
|
|
211
|
+
"type": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"const": "submission",
|
|
214
|
+
"description": "Type of call response: submission"
|
|
215
|
+
},
|
|
216
|
+
"guard": {
|
|
217
|
+
"type": "array",
|
|
218
|
+
"items": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"properties": {
|
|
221
|
+
"object": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Guard object name or ID."
|
|
224
|
+
},
|
|
225
|
+
"impack": {
|
|
226
|
+
"type": "boolean",
|
|
227
|
+
"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."
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"required": [
|
|
231
|
+
"object",
|
|
232
|
+
"impack"
|
|
233
|
+
],
|
|
234
|
+
"additionalProperties": false
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"submission": {
|
|
238
|
+
"type": "array",
|
|
239
|
+
"items": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"properties": {
|
|
242
|
+
"guard": {
|
|
243
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
244
|
+
"description": "Guard object name or ID."
|
|
245
|
+
},
|
|
246
|
+
"submission": {
|
|
247
|
+
"type": "array",
|
|
248
|
+
"items": {
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"identifier": {
|
|
252
|
+
"type": "integer",
|
|
253
|
+
"minimum": 0,
|
|
254
|
+
"maximum": 255,
|
|
255
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
256
|
+
},
|
|
257
|
+
"b_submission": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"description": "Whether user submission is required for this data"
|
|
260
|
+
},
|
|
261
|
+
"value_type": {
|
|
262
|
+
"anyOf": [
|
|
263
|
+
{
|
|
264
|
+
"type": "number",
|
|
265
|
+
"const": 0,
|
|
266
|
+
"description": "Bool (0)"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"type": "number",
|
|
270
|
+
"const": 1,
|
|
271
|
+
"description": "Address (1)"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "number",
|
|
275
|
+
"const": 2,
|
|
276
|
+
"description": "String (2)"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "number",
|
|
280
|
+
"const": 3,
|
|
281
|
+
"description": "U8 (3)"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"type": "number",
|
|
285
|
+
"const": 4,
|
|
286
|
+
"description": "U16 (4)"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "number",
|
|
290
|
+
"const": 5,
|
|
291
|
+
"description": "U32 (5)"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"type": "number",
|
|
295
|
+
"const": 6,
|
|
296
|
+
"description": "U64 (6)"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"type": "number",
|
|
300
|
+
"const": 7,
|
|
301
|
+
"description": "U128 (7)"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "number",
|
|
305
|
+
"const": 8,
|
|
306
|
+
"description": "U256 (8)"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"type": "number",
|
|
310
|
+
"const": 9,
|
|
311
|
+
"description": "VecBool (9)"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "number",
|
|
315
|
+
"const": 10,
|
|
316
|
+
"description": "VecAddress (10)"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "number",
|
|
320
|
+
"const": 11,
|
|
321
|
+
"description": "VecString (11)"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"type": "number",
|
|
325
|
+
"const": 12,
|
|
326
|
+
"description": "VecU8 (12)"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"type": "number",
|
|
330
|
+
"const": 13,
|
|
331
|
+
"description": "VecU16 (13)"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"type": "number",
|
|
335
|
+
"const": 14,
|
|
336
|
+
"description": "VecU32 (14)"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"type": "number",
|
|
340
|
+
"const": 15,
|
|
341
|
+
"description": "VecU64 (15)"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"type": "number",
|
|
345
|
+
"const": 16,
|
|
346
|
+
"description": "VecU128 (16)"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"type": "number",
|
|
350
|
+
"const": 17,
|
|
351
|
+
"description": "VecU256 (17)"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"type": "number",
|
|
355
|
+
"const": 18,
|
|
356
|
+
"description": "VecVecU8 (18)"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"type": "string",
|
|
360
|
+
"const": "Bool",
|
|
361
|
+
"description": "Bool"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "string",
|
|
365
|
+
"const": "Address",
|
|
366
|
+
"description": "Address"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"type": "string",
|
|
370
|
+
"const": "String",
|
|
371
|
+
"description": "String"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "string",
|
|
375
|
+
"const": "U8",
|
|
376
|
+
"description": "U8"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"type": "string",
|
|
380
|
+
"const": "U16",
|
|
381
|
+
"description": "U16"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"type": "string",
|
|
385
|
+
"const": "U32",
|
|
386
|
+
"description": "U32"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"type": "string",
|
|
390
|
+
"const": "U64",
|
|
391
|
+
"description": "U64"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"type": "string",
|
|
395
|
+
"const": "U128",
|
|
396
|
+
"description": "U128"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"type": "string",
|
|
400
|
+
"const": "U256",
|
|
401
|
+
"description": "U256"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"type": "string",
|
|
405
|
+
"const": "VecBool",
|
|
406
|
+
"description": "VecBool"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"type": "string",
|
|
410
|
+
"const": "VecAddress",
|
|
411
|
+
"description": "VecAddress"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"type": "string",
|
|
415
|
+
"const": "VecString",
|
|
416
|
+
"description": "VecString"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "string",
|
|
420
|
+
"const": "VecU8",
|
|
421
|
+
"description": "VecU8"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "string",
|
|
425
|
+
"const": "VecU16",
|
|
426
|
+
"description": "VecU16"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"type": "string",
|
|
430
|
+
"const": "VecU32",
|
|
431
|
+
"description": "VecU32"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"type": "string",
|
|
435
|
+
"const": "VecU64",
|
|
436
|
+
"description": "VecU64"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"type": "string",
|
|
440
|
+
"const": "VecU128",
|
|
441
|
+
"description": "VecU128"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"type": "string",
|
|
445
|
+
"const": "VecU256",
|
|
446
|
+
"description": "VecU256"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"type": "string",
|
|
450
|
+
"const": "VecVecU8",
|
|
451
|
+
"description": "VecVecU8"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"type": "string",
|
|
455
|
+
"const": "bool",
|
|
456
|
+
"description": "bool"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "string",
|
|
460
|
+
"const": "address",
|
|
461
|
+
"description": "address"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"type": "string",
|
|
465
|
+
"const": "string",
|
|
466
|
+
"description": "string"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"type": "string",
|
|
470
|
+
"const": "u8",
|
|
471
|
+
"description": "u8"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"type": "string",
|
|
475
|
+
"const": "u16",
|
|
476
|
+
"description": "u16"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"type": "string",
|
|
480
|
+
"const": "u32",
|
|
481
|
+
"description": "u32"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"type": "string",
|
|
485
|
+
"const": "u64",
|
|
486
|
+
"description": "u64"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"type": "string",
|
|
490
|
+
"const": "u128",
|
|
491
|
+
"description": "u128"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"type": "string",
|
|
495
|
+
"const": "u256",
|
|
496
|
+
"description": "u256"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"type": "string",
|
|
500
|
+
"const": "vecbool",
|
|
501
|
+
"description": "vecbool"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"type": "string",
|
|
505
|
+
"const": "vecaddress",
|
|
506
|
+
"description": "vecaddress"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"type": "string",
|
|
510
|
+
"const": "vecstring",
|
|
511
|
+
"description": "vecstring"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"type": "string",
|
|
515
|
+
"const": "vecu8",
|
|
516
|
+
"description": "vecu8"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"type": "string",
|
|
520
|
+
"const": "vecu16",
|
|
521
|
+
"description": "vecu16"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"type": "string",
|
|
525
|
+
"const": "vecu32",
|
|
526
|
+
"description": "vecu32"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"type": "string",
|
|
530
|
+
"const": "vecu64",
|
|
531
|
+
"description": "vecu64"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"type": "string",
|
|
535
|
+
"const": "vecu128",
|
|
536
|
+
"description": "vecu128"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"type": "string",
|
|
540
|
+
"const": "vecu256",
|
|
541
|
+
"description": "vecu256"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"type": "string",
|
|
545
|
+
"const": "vecvecu8",
|
|
546
|
+
"description": "vecvecu8"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"description": "Type of the value"
|
|
550
|
+
},
|
|
551
|
+
"value": {
|
|
552
|
+
"anyOf": [
|
|
553
|
+
{
|
|
554
|
+
"type": "boolean"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"anyOf": [
|
|
558
|
+
{
|
|
559
|
+
"type": "object",
|
|
560
|
+
"properties": {
|
|
561
|
+
"name_or_address": {
|
|
562
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
563
|
+
"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)."
|
|
564
|
+
},
|
|
565
|
+
"local_mark_first": {
|
|
566
|
+
"type": "boolean",
|
|
567
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"additionalProperties": false,
|
|
571
|
+
"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."
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"type": "string"
|
|
575
|
+
}
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"type": "number"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"type": "array",
|
|
586
|
+
"items": {
|
|
587
|
+
"type": "boolean"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"anyOf": [
|
|
592
|
+
{
|
|
593
|
+
"type": "object",
|
|
594
|
+
"properties": {
|
|
595
|
+
"entities": {
|
|
596
|
+
"type": "array",
|
|
597
|
+
"items": {
|
|
598
|
+
"$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"check_all_founded": {
|
|
602
|
+
"type": "boolean",
|
|
603
|
+
"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"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"required": [
|
|
607
|
+
"entities"
|
|
608
|
+
],
|
|
609
|
+
"additionalProperties": false,
|
|
610
|
+
"description": "Used to batch find account or object IDs by name"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"type": "array",
|
|
614
|
+
"items": {
|
|
615
|
+
"type": "string"
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"type": "array",
|
|
622
|
+
"items": {
|
|
623
|
+
"type": "string"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"type": "array",
|
|
628
|
+
"items": {
|
|
629
|
+
"type": "number"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"type": "array",
|
|
634
|
+
"items": {
|
|
635
|
+
"type": "array",
|
|
636
|
+
"items": {
|
|
637
|
+
"type": "number"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
],
|
|
642
|
+
"description": "The actual value data"
|
|
643
|
+
},
|
|
644
|
+
"name": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"default": "",
|
|
647
|
+
"description": "Name or description of this data"
|
|
648
|
+
},
|
|
649
|
+
"object_type": {
|
|
650
|
+
"type": "string",
|
|
651
|
+
"enum": [
|
|
652
|
+
"Permission",
|
|
653
|
+
"Repository",
|
|
654
|
+
"Arb",
|
|
655
|
+
"Arbitration",
|
|
656
|
+
"Service",
|
|
657
|
+
"Machine",
|
|
658
|
+
"Order",
|
|
659
|
+
"Progress",
|
|
660
|
+
"Payment",
|
|
661
|
+
"Treasury",
|
|
662
|
+
"Guard",
|
|
663
|
+
"Demand",
|
|
664
|
+
"Passport",
|
|
665
|
+
"Allocation",
|
|
666
|
+
"Resource",
|
|
667
|
+
"Reward",
|
|
668
|
+
"Discount",
|
|
669
|
+
"EntityRegistrar",
|
|
670
|
+
"EntityLinker",
|
|
671
|
+
"Proof",
|
|
672
|
+
"WReceivedObject",
|
|
673
|
+
"Contact",
|
|
674
|
+
"TableItem_ProgressHistory",
|
|
675
|
+
"TableItem_PermissionPerm",
|
|
676
|
+
"TableItem_DemandPresenter",
|
|
677
|
+
"TableItem_MachineNode",
|
|
678
|
+
"TableItem_TreasuryHistory",
|
|
679
|
+
"TableItem_RepositoryData",
|
|
680
|
+
"TableItem_RewardRecord",
|
|
681
|
+
"TableItem_EntityLinker",
|
|
682
|
+
"TableItem_AddressMark",
|
|
683
|
+
"TableItem_EntityRegistrar"
|
|
684
|
+
],
|
|
685
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"required": [
|
|
689
|
+
"identifier",
|
|
690
|
+
"b_submission",
|
|
691
|
+
"value_type"
|
|
692
|
+
],
|
|
693
|
+
"additionalProperties": false,
|
|
694
|
+
"description": "Guard table item"
|
|
695
|
+
},
|
|
696
|
+
"description": "User-submitted data required for Guard verification."
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"required": [
|
|
700
|
+
"guard",
|
|
701
|
+
"submission"
|
|
702
|
+
],
|
|
703
|
+
"additionalProperties": false,
|
|
704
|
+
"description": "Permission guard submission data."
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"required": [
|
|
709
|
+
"type",
|
|
710
|
+
"guard",
|
|
711
|
+
"submission"
|
|
712
|
+
],
|
|
713
|
+
"additionalProperties": false,
|
|
714
|
+
"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."
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|