@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
package/docs/docs/personal.md
DELETED
|
@@ -1,742 +0,0 @@
|
|
|
1
|
-
# Personal Component (🆔 Public Identity)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Component Overview
|
|
6
|
-
|
|
7
|
-
The Personal component is used to establish and manage on-chain public identity.
|
|
8
|
-
|
|
9
|
-
⚠️ **CRITICAL: All content here will be permanently public on the blockchain!**
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Function List
|
|
14
|
-
|
|
15
|
-
| Name | Purpose | Usage Scenario | Significance |
|
|
16
|
-
|------|---------|----------------|--------------|
|
|
17
|
-
| **Set Profile Description** | Add or update public profile description | Introducing yourself publicly on-chain | Establishes your public identity presence |
|
|
18
|
-
| **Add Personal Info** | Add public personal information (social media, URLs) | Sharing GitHub, Twitter, website links | Provides verifiable public contact points |
|
|
19
|
-
| **Remove Personal Info** | Remove specific public information items | Updating or removing outdated links | Keeps public profile current and accurate |
|
|
20
|
-
| **Clear All Personal Info** | Remove all public personal information | Resetting public profile completely | Wipes all public personal data from identity |
|
|
21
|
-
| **Add On-Chain Mark** | Add public marks (name + tags) to addresses | Labeling your services or addresses publicly | Creates public, verifiable identity labels |
|
|
22
|
-
| **Remove Mark Tags** | Remove specific tags from on-chain marks | Updating or deprecating service labels | Keeps public marking accurate over time |
|
|
23
|
-
| **Clear Marks** | Clear all marks from specified addresses | Removing public labels from addresses | Wipes public identity marks from addresses |
|
|
24
|
-
| **Transfer Mark** | Transfer on-chain identity mark to another address | Selling or transferring mark ownership | Allows mark ownership to change hands |
|
|
25
|
-
| **Replace Mark** | Replace current mark with a new mark object | Upgrading or replacing mark system | Enables mark system migration |
|
|
26
|
-
| **Destroy Mark** | Permanently destroy on-chain identity mark | Removing mark from blockchain permanently | Irreversibly removes public identity mark |
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Schema Tree
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
personal
|
|
34
|
-
├── operation_type: "personal"
|
|
35
|
-
├── data
|
|
36
|
-
│ ├── description (Profile description, optional)
|
|
37
|
-
│ ├── referrer (Referrer ID or null, optional)
|
|
38
|
-
│ ├── information
|
|
39
|
-
│ │ ├── op: "add"
|
|
40
|
-
│ │ │ └── data (Personal info array)
|
|
41
|
-
│ │ │ ├── name (Info name)
|
|
42
|
-
│ │ │ ├── value_type (Value type)
|
|
43
|
-
│ │ │ └── value (Value)
|
|
44
|
-
│ │ ├── op: "remove"
|
|
45
|
-
│ │ │ └── name (Info name array)
|
|
46
|
-
│ │ └── op: "clear"
|
|
47
|
-
│ ├── mark
|
|
48
|
-
│ │ ├── op: "add"
|
|
49
|
-
│ │ │ └── data (Mark data array)
|
|
50
|
-
│ │ │ ├── address (Address)
|
|
51
|
-
│ │ │ ├── name (Name, optional)
|
|
52
|
-
│ │ │ └── tags (Tag array, optional)
|
|
53
|
-
│ │ ├── op: "remove"
|
|
54
|
-
│ │ │ └── data (Removal data array)
|
|
55
|
-
│ │ │ ├── address (Address)
|
|
56
|
-
│ │ │ └── tags (Tag array, optional)
|
|
57
|
-
│ │ ├── op: "clear"
|
|
58
|
-
│ │ │ └── address (Address array)
|
|
59
|
-
│ │ ├── op: "transfer"
|
|
60
|
-
│ │ │ └── to (Target address)
|
|
61
|
-
│ │ ├── op: "replace"
|
|
62
|
-
│ │ │ └── new_mark_object (New mark object ID)
|
|
63
|
-
│ │ └── op: "destroy"
|
|
64
|
-
└── env (optional, execution environment)
|
|
65
|
-
├── account (string, optional) - account name or address, empty string for default
|
|
66
|
-
├── network (string, optional) - "testnet" or "localnet"
|
|
67
|
-
├── permission_guard (array, optional) - list of permission guard IDs
|
|
68
|
-
├── no_cache (boolean, optional) - disable caching
|
|
69
|
-
└── referrer (string, optional) - referrer ID
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Complete Tool Call Structure
|
|
75
|
-
|
|
76
|
-
Personal operations use the following top-level structure:
|
|
77
|
-
|
|
78
|
-
```json
|
|
79
|
-
{
|
|
80
|
-
"operation_type": "personal",
|
|
81
|
-
"data": { ... },
|
|
82
|
-
"env": { ... }
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## Function 1: Set Profile Description (description)
|
|
89
|
-
|
|
90
|
-
### Description
|
|
91
|
-
|
|
92
|
-
Set or update your public profile description. This will be permanently public on the blockchain.
|
|
93
|
-
|
|
94
|
-
### Parameters
|
|
95
|
-
|
|
96
|
-
| Path | Type | Required | Description |
|
|
97
|
-
|------|------|----------|-------------|
|
|
98
|
-
| `operation_type` | string | Yes | Fixed value "personal" |
|
|
99
|
-
| `data.description` | string | Yes | Profile description (max 4000 bcs characters) |
|
|
100
|
-
| `data.referrer` | string/null | No | Referrer ID or null |
|
|
101
|
-
| `env` | object | No | Execution environment |
|
|
102
|
-
|
|
103
|
-
### Important Notes
|
|
104
|
-
|
|
105
|
-
⚠️ **Description is permanently public!** Do not include sensitive information.
|
|
106
|
-
|
|
107
|
-
### Return Value
|
|
108
|
-
|
|
109
|
-
Returns transaction block information (WowTransactionBlockSchema).
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
### Examples
|
|
114
|
-
|
|
115
|
-
#### Example 1.1: Set Basic Profile Description
|
|
116
|
-
|
|
117
|
-
**Prompt**: Set public profile description to "Web3 developer and open source contributor".
|
|
118
|
-
|
|
119
|
-
```json
|
|
120
|
-
{
|
|
121
|
-
"operation_type": "personal",
|
|
122
|
-
"data": {
|
|
123
|
-
"description": "Web3 developer and open source contributor"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
#### Example 1.2: Set Description with Referrer
|
|
131
|
-
|
|
132
|
-
**Prompt**: Set profile description and referrer to "alice".
|
|
133
|
-
|
|
134
|
-
```json
|
|
135
|
-
{
|
|
136
|
-
"operation_type": "personal",
|
|
137
|
-
"data": {
|
|
138
|
-
"description": "Blockchain enthusiast and builder",
|
|
139
|
-
"referrer": "alice"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
**Execution Result**:
|
|
145
|
-
```json
|
|
146
|
-
{
|
|
147
|
-
"status": "success",
|
|
148
|
-
"objects": [
|
|
149
|
-
{
|
|
150
|
-
"type": "TableItem_EntityRegistrar",
|
|
151
|
-
"object": "0xe597...d5f4",
|
|
152
|
-
"version": "72768",
|
|
153
|
-
"change": "mutated"
|
|
154
|
-
}
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## Function 2: Manage Personal Information (information)
|
|
162
|
-
|
|
163
|
-
### Description
|
|
164
|
-
|
|
165
|
-
Manage on-chain public personal information. Safe content: social media accounts, URLs, public emails. Never include: phone numbers, addresses, private keys.
|
|
166
|
-
|
|
167
|
-
### Parameters
|
|
168
|
-
|
|
169
|
-
| Path | Type | Required | Description |
|
|
170
|
-
|------|------|----------|-------------|
|
|
171
|
-
| `operation_type` | string | Yes | Fixed value "personal" |
|
|
172
|
-
| `data.information.op` | string | Yes | Operation type: "add" \| "remove" \| "clear" |
|
|
173
|
-
| `data.information.data` | array | No | Personal info array (required when op="add") |
|
|
174
|
-
| `data.information.name` | array | No | Info name array (required when op="remove") |
|
|
175
|
-
| `data.description` | string | No | Profile description |
|
|
176
|
-
| `data.referrer` | string/null | No | Referrer ID |
|
|
177
|
-
| `env` | object | No | Execution environment |
|
|
178
|
-
|
|
179
|
-
### Important Notes
|
|
180
|
-
|
|
181
|
-
⚠️ **All content is permanently public!** Do not include sensitive information.
|
|
182
|
-
|
|
183
|
-
⚠️ **Safe content: social media, URLs, public emails!**
|
|
184
|
-
|
|
185
|
-
⚠️ **Never include: phone numbers, addresses, private keys!**
|
|
186
|
-
|
|
187
|
-
### Return Value
|
|
188
|
-
|
|
189
|
-
Returns transaction block information (WowTransactionBlockSchema).
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
|
-
### Examples
|
|
194
|
-
|
|
195
|
-
#### Example 2.1: Add Personal Information
|
|
196
|
-
|
|
197
|
-
**Prompt**: Add public personal information: GitHub link "https://github.com/devuser" and Twitter handle "@devuser".
|
|
198
|
-
|
|
199
|
-
```json
|
|
200
|
-
{
|
|
201
|
-
"operation_type": "personal",
|
|
202
|
-
"data": {
|
|
203
|
-
"information": {
|
|
204
|
-
"op": "add",
|
|
205
|
-
"data": [
|
|
206
|
-
{
|
|
207
|
-
"name": "github",
|
|
208
|
-
"value_type": "String",
|
|
209
|
-
"value": "https://github.com/devuser"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"name": "twitter",
|
|
213
|
-
"value_type": "String",
|
|
214
|
-
"value": "@devuser"
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
**Execution Result**:
|
|
223
|
-
```json
|
|
224
|
-
{
|
|
225
|
-
"status": "success",
|
|
226
|
-
"objects": [
|
|
227
|
-
{
|
|
228
|
-
"type": "TableItem_EntityRegistrar",
|
|
229
|
-
"object": "0xe597...d5f4",
|
|
230
|
-
"version": "75363",
|
|
231
|
-
"change": "mutated"
|
|
232
|
-
}
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
---
|
|
238
|
-
|
|
239
|
-
#### Example 2.2: Remove Personal Information
|
|
240
|
-
|
|
241
|
-
**Prompt**: Remove personal information named "old_website".
|
|
242
|
-
|
|
243
|
-
```json
|
|
244
|
-
{
|
|
245
|
-
"operation_type": "personal",
|
|
246
|
-
"data": {
|
|
247
|
-
"information": {
|
|
248
|
-
"op": "remove",
|
|
249
|
-
"name": ["old_website"]
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
**Execution Result**:
|
|
256
|
-
```json
|
|
257
|
-
{
|
|
258
|
-
"status": "success",
|
|
259
|
-
"objects": []
|
|
260
|
-
}
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
---
|
|
264
|
-
|
|
265
|
-
#### Example 2.3: Clear All Personal Information
|
|
266
|
-
|
|
267
|
-
**Prompt**: Clear all public personal information from profile.
|
|
268
|
-
|
|
269
|
-
```json
|
|
270
|
-
{
|
|
271
|
-
"operation_type": "personal",
|
|
272
|
-
"data": {
|
|
273
|
-
"information": {
|
|
274
|
-
"op": "clear"
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
**Execution Result**:
|
|
281
|
-
```json
|
|
282
|
-
{
|
|
283
|
-
"status": "success",
|
|
284
|
-
"objects": [
|
|
285
|
-
{
|
|
286
|
-
"type": "TableItem_EntityRegistrar",
|
|
287
|
-
"object": "0xe597...d5f4",
|
|
288
|
-
"version": "75365",
|
|
289
|
-
"change": "mutated"
|
|
290
|
-
}
|
|
291
|
-
]
|
|
292
|
-
}
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
---
|
|
296
|
-
|
|
297
|
-
#### Example 2.4: Add Personal Info with Description
|
|
298
|
-
|
|
299
|
-
**Prompt**: Add website info "https://myproject.io" and set profile description.
|
|
300
|
-
|
|
301
|
-
```json
|
|
302
|
-
{
|
|
303
|
-
"operation_type": "personal",
|
|
304
|
-
"data": {
|
|
305
|
-
"description": "Building the future of decentralized applications",
|
|
306
|
-
"information": {
|
|
307
|
-
"op": "add",
|
|
308
|
-
"data": [
|
|
309
|
-
{
|
|
310
|
-
"name": "website",
|
|
311
|
-
"value_type": "String",
|
|
312
|
-
"value": "https://myproject.io"
|
|
313
|
-
}
|
|
314
|
-
]
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
**Execution Result**:
|
|
321
|
-
```json
|
|
322
|
-
{
|
|
323
|
-
"status": "success",
|
|
324
|
-
"objects": [
|
|
325
|
-
{
|
|
326
|
-
"type": "TableItem_EntityRegistrar",
|
|
327
|
-
"object": "0xe597...d5f4",
|
|
328
|
-
"version": "76707",
|
|
329
|
-
"change": "mutated"
|
|
330
|
-
}
|
|
331
|
-
]
|
|
332
|
-
}
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
---
|
|
336
|
-
|
|
337
|
-
## Function 3: Manage On-Chain Identity Marks (mark)
|
|
338
|
-
|
|
339
|
-
### Description
|
|
340
|
-
|
|
341
|
-
Manage on-chain identity marks. For private marks, please use the 'local' tool.
|
|
342
|
-
|
|
343
|
-
### Parameters
|
|
344
|
-
|
|
345
|
-
| Path | Type | Required | Description |
|
|
346
|
-
|------|------|----------|-------------|
|
|
347
|
-
| `operation_type` | string | Yes | Fixed value "personal" |
|
|
348
|
-
| `data.mark.op` | string | Yes | Operation type: "add" \| "remove" \| "clear" \| "transfer" \| "replace" \| "destroy" |
|
|
349
|
-
| `data.mark.data` | array | No | Mark data array (required for "add"/"remove") |
|
|
350
|
-
| `data.mark.address` | array | No | Address array (required for "clear") |
|
|
351
|
-
| `data.mark.to` | string | No | Target address (required for "transfer") |
|
|
352
|
-
| `data.mark.new_mark_object` | string | No | New mark object ID (required for "replace") |
|
|
353
|
-
| `env` | object | No | Execution environment |
|
|
354
|
-
|
|
355
|
-
### Important Notes
|
|
356
|
-
|
|
357
|
-
⚠️ **This is on-chain public marks!** For private marks, please use the 'local' tool.
|
|
358
|
-
|
|
359
|
-
⚠️ **Marks are permanently public!**
|
|
360
|
-
|
|
361
|
-
### Return Value
|
|
362
|
-
|
|
363
|
-
Returns transaction block information (WowTransactionBlockSchema).
|
|
364
|
-
|
|
365
|
-
---
|
|
366
|
-
|
|
367
|
-
### Examples
|
|
368
|
-
|
|
369
|
-
#### Example 3.1: Add On-Chain Mark
|
|
370
|
-
|
|
371
|
-
**Prompt**: Add on-chain mark for address "service_wallet", name as "my_decentralized_service", tags as "service" and "active".
|
|
372
|
-
|
|
373
|
-
```json
|
|
374
|
-
{
|
|
375
|
-
"operation_type": "personal",
|
|
376
|
-
"data": {
|
|
377
|
-
"mark": {
|
|
378
|
-
"op": "add",
|
|
379
|
-
"data": [
|
|
380
|
-
{
|
|
381
|
-
"address": "service_wallet",
|
|
382
|
-
"name": "my_decentralized_service",
|
|
383
|
-
"tags": ["service", "active"]
|
|
384
|
-
}
|
|
385
|
-
]
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
**Execution Result**:
|
|
392
|
-
```json
|
|
393
|
-
{
|
|
394
|
-
"status": "success",
|
|
395
|
-
"objects": [
|
|
396
|
-
{
|
|
397
|
-
"type": "Resource",
|
|
398
|
-
"object": "0x6db5...efbe",
|
|
399
|
-
"version": "76708",
|
|
400
|
-
"change": "mutated"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"type": "TableItem_AddressMark",
|
|
404
|
-
"object": "0xed10...9f66",
|
|
405
|
-
"version": "76708",
|
|
406
|
-
"change": "created"
|
|
407
|
-
}
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
---
|
|
413
|
-
|
|
414
|
-
#### Example 3.2: Remove On-Chain Mark Tags
|
|
415
|
-
|
|
416
|
-
**Prompt**: Remove "deprecated" tag from address "old_service_wallet".
|
|
417
|
-
|
|
418
|
-
```json
|
|
419
|
-
{
|
|
420
|
-
"operation_type": "personal",
|
|
421
|
-
"data": {
|
|
422
|
-
"mark": {
|
|
423
|
-
"op": "remove",
|
|
424
|
-
"data": [
|
|
425
|
-
{
|
|
426
|
-
"address": "old_service_wallet",
|
|
427
|
-
"tags": ["deprecated"]
|
|
428
|
-
}
|
|
429
|
-
]
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
```
|
|
434
|
-
|
|
435
|
-
**Execution Result**:
|
|
436
|
-
```json
|
|
437
|
-
{
|
|
438
|
-
"status": "success",
|
|
439
|
-
"objects": [
|
|
440
|
-
{
|
|
441
|
-
"type": "Resource",
|
|
442
|
-
"object": "0x6db5...efbe",
|
|
443
|
-
"version": "76709",
|
|
444
|
-
"change": "mutated"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"type": "TableItem_AddressMark",
|
|
448
|
-
"object": "0xed10...9f66",
|
|
449
|
-
"version": "76709",
|
|
450
|
-
"change": "mutated"
|
|
451
|
-
}
|
|
452
|
-
]
|
|
453
|
-
}
|
|
454
|
-
```
|
|
455
|
-
|
|
456
|
-
---
|
|
457
|
-
|
|
458
|
-
#### Example 3.3: Clear On-Chain Marks
|
|
459
|
-
|
|
460
|
-
**Prompt**: Clear all marks for addresses "wallet_1" and "wallet_2".
|
|
461
|
-
|
|
462
|
-
```json
|
|
463
|
-
{
|
|
464
|
-
"operation_type": "personal",
|
|
465
|
-
"data": {
|
|
466
|
-
"mark": {
|
|
467
|
-
"op": "clear",
|
|
468
|
-
"address": ["wallet_1", "wallet_2"]
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
```
|
|
473
|
-
|
|
474
|
-
**Execution Result**:
|
|
475
|
-
```json
|
|
476
|
-
{
|
|
477
|
-
"status": "success",
|
|
478
|
-
"objects": [
|
|
479
|
-
{
|
|
480
|
-
"type": "Resource",
|
|
481
|
-
"object": "0x6db5...efbe",
|
|
482
|
-
"version": "76710",
|
|
483
|
-
"change": "mutated"
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
"type": "TableItem_AddressMark",
|
|
487
|
-
"object": "0xed10...9f66",
|
|
488
|
-
"version": "76710",
|
|
489
|
-
"change": "deleted"
|
|
490
|
-
}
|
|
491
|
-
]
|
|
492
|
-
}
|
|
493
|
-
```
|
|
494
|
-
|
|
495
|
-
---
|
|
496
|
-
|
|
497
|
-
#### Example 3.4: Transfer On-Chain Mark
|
|
498
|
-
|
|
499
|
-
**Prompt**: Transfer on-chain identity mark to address "new_owner_wallet".
|
|
500
|
-
|
|
501
|
-
```json
|
|
502
|
-
{
|
|
503
|
-
"operation_type": "personal",
|
|
504
|
-
"data": {
|
|
505
|
-
"mark": {
|
|
506
|
-
"op": "transfer",
|
|
507
|
-
"to": "new_owner_wallet"
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
```
|
|
512
|
-
|
|
513
|
-
**Execution Result**:
|
|
514
|
-
```json
|
|
515
|
-
{
|
|
516
|
-
"status": "success",
|
|
517
|
-
"objects": [
|
|
518
|
-
{
|
|
519
|
-
"type": "Resource",
|
|
520
|
-
"object": "0x6db5...efbe",
|
|
521
|
-
"version": "76712",
|
|
522
|
-
"change": "mutated"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"type": "TableItem_EntityRegistrar",
|
|
526
|
-
"object": "0xe597...d5f4",
|
|
527
|
-
"version": "76712",
|
|
528
|
-
"change": "mutated"
|
|
529
|
-
}
|
|
530
|
-
]
|
|
531
|
-
}
|
|
532
|
-
```
|
|
533
|
-
|
|
534
|
-
---
|
|
535
|
-
|
|
536
|
-
#### Example 3.5: Replace On-Chain Mark
|
|
537
|
-
|
|
538
|
-
**Prompt**: Replace current on-chain identity mark with new mark object "new_mark_object_id".
|
|
539
|
-
|
|
540
|
-
```json
|
|
541
|
-
{
|
|
542
|
-
"operation_type": "personal",
|
|
543
|
-
"data": {
|
|
544
|
-
"mark": {
|
|
545
|
-
"op": "replace",
|
|
546
|
-
"new_mark_object": "new_mark_object_id"
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
```
|
|
551
|
-
|
|
552
|
-
**Execution Result**:
|
|
553
|
-
```json
|
|
554
|
-
{
|
|
555
|
-
"status": "success",
|
|
556
|
-
"objects": [
|
|
557
|
-
{
|
|
558
|
-
"type": "TableItem_EntityRegistrar",
|
|
559
|
-
"object": "0xe597...d5f4",
|
|
560
|
-
"version": "172994",
|
|
561
|
-
"change": "mutated"
|
|
562
|
-
}
|
|
563
|
-
]
|
|
564
|
-
}
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
---
|
|
568
|
-
|
|
569
|
-
#### Example 3.6: Destroy On-Chain Mark
|
|
570
|
-
|
|
571
|
-
**Prompt**: Permanently destroy on-chain identity mark.
|
|
572
|
-
|
|
573
|
-
```json
|
|
574
|
-
{
|
|
575
|
-
"operation_type": "personal",
|
|
576
|
-
"data": {
|
|
577
|
-
"mark": {
|
|
578
|
-
"op": "destroy"
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
```
|
|
583
|
-
|
|
584
|
-
**Execution Result**:
|
|
585
|
-
```json
|
|
586
|
-
{
|
|
587
|
-
"status": "success",
|
|
588
|
-
"objects": [
|
|
589
|
-
{
|
|
590
|
-
"type": "TableItem_EntityRegistrar",
|
|
591
|
-
"object": "0xe597...d5f4",
|
|
592
|
-
"version": "172995",
|
|
593
|
-
"change": "mutated"
|
|
594
|
-
}
|
|
595
|
-
]
|
|
596
|
-
}
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
---
|
|
600
|
-
|
|
601
|
-
## Function 4: Combined Operations
|
|
602
|
-
|
|
603
|
-
### Description
|
|
604
|
-
|
|
605
|
-
Execute multiple Personal operations in one transaction, such as adding personal information and marks simultaneously.
|
|
606
|
-
|
|
607
|
-
### Important Notes
|
|
608
|
-
|
|
609
|
-
⚠️ **Combined operations execute in the same transaction!** All operations are atomic, either all succeed or all fail.
|
|
610
|
-
|
|
611
|
-
### Examples
|
|
612
|
-
|
|
613
|
-
#### Example 4.1: Add Personal Info + Add Mark
|
|
614
|
-
|
|
615
|
-
**Prompt**: Add GitHub info, add mark for "service_wallet", and set profile description.
|
|
616
|
-
|
|
617
|
-
```json
|
|
618
|
-
{
|
|
619
|
-
"operation_type": "personal",
|
|
620
|
-
"data": {
|
|
621
|
-
"description": "Full-stack developer building decentralized services",
|
|
622
|
-
"information": {
|
|
623
|
-
"op": "add",
|
|
624
|
-
"data": [
|
|
625
|
-
{
|
|
626
|
-
"name": "github",
|
|
627
|
-
"value_type": "String",
|
|
628
|
-
"value": "https://github.com/devbuilder"
|
|
629
|
-
}
|
|
630
|
-
]
|
|
631
|
-
},
|
|
632
|
-
"mark": {
|
|
633
|
-
"op": "add",
|
|
634
|
-
"data": [
|
|
635
|
-
{
|
|
636
|
-
"address": "service_wallet",
|
|
637
|
-
"name": "my_service",
|
|
638
|
-
"tags": ["service"]
|
|
639
|
-
}
|
|
640
|
-
]
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
```
|
|
645
|
-
|
|
646
|
-
**Execution Result**:
|
|
647
|
-
```json
|
|
648
|
-
{
|
|
649
|
-
"status": "success",
|
|
650
|
-
"objects": [
|
|
651
|
-
{
|
|
652
|
-
"type": "TableItem_EntityRegistrar",
|
|
653
|
-
"object": "0xe597...d5f4",
|
|
654
|
-
"version": "172993",
|
|
655
|
-
"change": "mutated"
|
|
656
|
-
}
|
|
657
|
-
]
|
|
658
|
-
}
|
|
659
|
-
```
|
|
660
|
-
|
|
661
|
-
---
|
|
662
|
-
|
|
663
|
-
#### Example 4.2: Full Parameters Example
|
|
664
|
-
|
|
665
|
-
**Prompt**: On testnet network, set description, add personal info, add mark, and set referrer to "bob".
|
|
666
|
-
|
|
667
|
-
```json
|
|
668
|
-
{
|
|
669
|
-
"operation_type": "personal",
|
|
670
|
-
"data": {
|
|
671
|
-
"description": "Complete public identity profile",
|
|
672
|
-
"referrer": "bob",
|
|
673
|
-
"information": {
|
|
674
|
-
"op": "add",
|
|
675
|
-
"data": [
|
|
676
|
-
{
|
|
677
|
-
"name": "website",
|
|
678
|
-
"value_type": "String",
|
|
679
|
-
"value": "https://myprofile.io"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"name": "twitter",
|
|
683
|
-
"value_type": "String",
|
|
684
|
-
"value": "@myprofile"
|
|
685
|
-
}
|
|
686
|
-
]
|
|
687
|
-
},
|
|
688
|
-
"mark": {
|
|
689
|
-
"op": "add",
|
|
690
|
-
"data": [
|
|
691
|
-
{
|
|
692
|
-
"address": "main_wallet",
|
|
693
|
-
"name": "primary_wallet",
|
|
694
|
-
"tags": ["personal", "primary"]
|
|
695
|
-
}
|
|
696
|
-
]
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
|
-
"env": {
|
|
700
|
-
"account": "",
|
|
701
|
-
"network": "testnet"
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
```
|
|
705
|
-
|
|
706
|
-
**Execution Result**:
|
|
707
|
-
```json
|
|
708
|
-
{
|
|
709
|
-
"status": "success",
|
|
710
|
-
"objects": [
|
|
711
|
-
{
|
|
712
|
-
"type": "TableItem_EntityRegistrar",
|
|
713
|
-
"object": "0xe597...d5f4",
|
|
714
|
-
"version": "173106",
|
|
715
|
-
"change": "mutated"
|
|
716
|
-
}
|
|
717
|
-
]
|
|
718
|
-
}
|
|
719
|
-
```
|
|
720
|
-
|
|
721
|
-
---
|
|
722
|
-
|
|
723
|
-
## Important Notes
|
|
724
|
-
|
|
725
|
-
⚠️ **All content is permanently public!** Do not include sensitive information.
|
|
726
|
-
|
|
727
|
-
⚠️ **Safe content: social media, URLs, public emails!**
|
|
728
|
-
|
|
729
|
-
⚠️ **Never include: phone numbers, addresses, private keys!**
|
|
730
|
-
|
|
731
|
-
⚠️ **On-chain marks are permanently public!** For private marks, please use the 'local' tool.
|
|
732
|
-
|
|
733
|
-
---
|
|
734
|
-
|
|
735
|
-
## Related Components
|
|
736
|
-
|
|
737
|
-
| Component | Description |
|
|
738
|
-
|-----------|-------------|
|
|
739
|
-
| **[Service](service.md)** | WYSIWYG product trading |
|
|
740
|
-
| **[Contact](contact.md)** | Public contact information |
|
|
741
|
-
| **[LocalMark](localmark.md)** | User/Object naming and categorization |
|
|
742
|
-
| **[Account](account.md)** | Local wallet management |
|