@aigne/afs-ocap 1.12.0-beta.5
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/LICENSE.md +26 -0
- package/README.md +144 -0
- package/aup/accounts/default.json +64 -0
- package/aup/accounts/item.json +510 -0
- package/aup/assets/default.json +70 -0
- package/aup/assets/item.json +360 -0
- package/aup/bridges/_addr/blocks/item.json +168 -0
- package/aup/bridges/default.json +79 -0
- package/aup/bridges/item.json +868 -0
- package/aup/config/default.json +806 -0
- package/aup/default.json +387 -0
- package/aup/delegates/default.json +71 -0
- package/aup/delegates/item.json +241 -0
- package/aup/factories/default.json +78 -0
- package/aup/factories/item.json +310 -0
- package/aup/stakes/default.json +76 -0
- package/aup/stakes/item.json +374 -0
- package/aup/tokens/default.json +76 -0
- package/aup/tokens/item.json +384 -0
- package/aup/transactions/default.json +102 -0
- package/aup/transactions/item.json +286 -0
- package/aup/validators/default.json +57 -0
- package/aup/validators/item.json +99 -0
- package/dist/_virtual/_@oxc-project_runtime@0.108.0/helpers/decorate.cjs +11 -0
- package/dist/_virtual/_@oxc-project_runtime@0.108.0/helpers/decorate.mjs +10 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +4 -0
- package/dist/method-colors.cjs +137 -0
- package/dist/method-colors.mjs +136 -0
- package/dist/method-colors.mjs.map +1 -0
- package/dist/provider.cjs +2490 -0
- package/dist/provider.d.cts +453 -0
- package/dist/provider.d.cts.map +1 -0
- package/dist/provider.d.mts +453 -0
- package/dist/provider.d.mts.map +1 -0
- package/dist/provider.mjs +2490 -0
- package/dist/provider.mjs.map +1 -0
- package/dist/remote-source.cjs +338 -0
- package/dist/remote-source.d.cts +62 -0
- package/dist/remote-source.d.cts.map +1 -0
- package/dist/remote-source.d.mts +62 -0
- package/dist/remote-source.d.mts.map +1 -0
- package/dist/remote-source.mjs +339 -0
- package/dist/remote-source.mjs.map +1 -0
- package/dist/source.d.cts +77 -0
- package/dist/source.d.cts.map +1 -0
- package/dist/source.d.mts +77 -0
- package/dist/source.d.mts.map +1 -0
- package/dist/types.d.cts +572 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +572 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/utils.cjs +581 -0
- package/dist/utils.mjs +557 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "asset-detail",
|
|
3
|
+
"type": "view",
|
|
4
|
+
"props": {
|
|
5
|
+
"layout": { "direction": "column", "gap": "md" },
|
|
6
|
+
"animate": "slide-up",
|
|
7
|
+
"style": { "padding": "16px 24px" }
|
|
8
|
+
},
|
|
9
|
+
"children": [
|
|
10
|
+
{
|
|
11
|
+
"id": "ast-header",
|
|
12
|
+
"type": "view",
|
|
13
|
+
"props": {
|
|
14
|
+
"layout": { "direction": "row", "gap": "md", "crossAlign": "center" }
|
|
15
|
+
},
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"id": "ast-avatar",
|
|
19
|
+
"type": "media",
|
|
20
|
+
"props": {
|
|
21
|
+
"type": "avatar",
|
|
22
|
+
"variant": "did-motif",
|
|
23
|
+
"seed": "${content.address}",
|
|
24
|
+
"size": 56
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "ast-title-block",
|
|
29
|
+
"type": "view",
|
|
30
|
+
"props": { "layout": { "direction": "column", "gap": "xs", "crossAlign": "start" } },
|
|
31
|
+
"children": [
|
|
32
|
+
{
|
|
33
|
+
"id": "ast-title",
|
|
34
|
+
"type": "text",
|
|
35
|
+
"props": {
|
|
36
|
+
"content": "${content.moniker|default:Asset}",
|
|
37
|
+
"level": 2
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "ast-meta",
|
|
42
|
+
"type": "view",
|
|
43
|
+
"props": {
|
|
44
|
+
"layout": { "direction": "row", "gap": "sm", "crossAlign": "center" }
|
|
45
|
+
},
|
|
46
|
+
"children": [
|
|
47
|
+
{
|
|
48
|
+
"id": "ast-addr",
|
|
49
|
+
"type": "text",
|
|
50
|
+
"props": {
|
|
51
|
+
"content": "${content.address}",
|
|
52
|
+
"scale": "sm",
|
|
53
|
+
"format": "did"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "ast-badge",
|
|
58
|
+
"type": "text",
|
|
59
|
+
"props": {
|
|
60
|
+
"content": "Asset",
|
|
61
|
+
"intent": "info",
|
|
62
|
+
"variant": "badge"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "ast-overview",
|
|
73
|
+
"type": "entity-overview",
|
|
74
|
+
"props": {
|
|
75
|
+
"layout": "2-1",
|
|
76
|
+
"data": "${content}",
|
|
77
|
+
"cards": [
|
|
78
|
+
{
|
|
79
|
+
"id": "ast-card-info",
|
|
80
|
+
"title": "Asset Info",
|
|
81
|
+
"fields": [
|
|
82
|
+
{
|
|
83
|
+
"key": "address",
|
|
84
|
+
"label": "Address",
|
|
85
|
+
"format": "did",
|
|
86
|
+
"tooltip": "Asset DID. Click to copy."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"key": "moniker",
|
|
90
|
+
"label": "Moniker",
|
|
91
|
+
"hideWhenEmpty": true,
|
|
92
|
+
"tooltip": "Optional human-readable name for the asset."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"key": "parent",
|
|
96
|
+
"label": "NFT Factory",
|
|
97
|
+
"format": "did",
|
|
98
|
+
"navigateTo": "factories/{value}",
|
|
99
|
+
"hideWhenEmpty": true,
|
|
100
|
+
"tooltip": "Parent factory that minted this asset."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"key": "issuer",
|
|
104
|
+
"label": "Created By",
|
|
105
|
+
"format": "did",
|
|
106
|
+
"navigateTo": "accounts/{value}",
|
|
107
|
+
"hideWhenEmpty": true,
|
|
108
|
+
"tooltip": "Account that issued this asset."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"key": "owner",
|
|
112
|
+
"label": "Owned By",
|
|
113
|
+
"format": "did",
|
|
114
|
+
"navigateTo": "accounts/{value}",
|
|
115
|
+
"tooltip": "Current owner of the asset."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "readonly",
|
|
119
|
+
"label": "Readonly",
|
|
120
|
+
"format": "boolean",
|
|
121
|
+
"tooltip": "If true, the asset's data field cannot be updated."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"key": "transferrable",
|
|
125
|
+
"label": "Transferable",
|
|
126
|
+
"format": "boolean",
|
|
127
|
+
"tooltip": "If true, ownership can be transferred between accounts."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "genesisTime",
|
|
131
|
+
"label": "Created",
|
|
132
|
+
"format": "datetime",
|
|
133
|
+
"interactive": true,
|
|
134
|
+
"tooltip": "Block timestamp when the asset was created on-chain. Click to switch between UTC, Local time, and Unix Timestamp."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "renaissanceTime",
|
|
138
|
+
"label": "Updated",
|
|
139
|
+
"format": "datetime",
|
|
140
|
+
"interactive": true,
|
|
141
|
+
"hideWhenEmpty": true,
|
|
142
|
+
"tooltip": "Block timestamp of the most recent state change. Click to switch between UTC, Local time, and Unix Timestamp."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"key": "consumedTime",
|
|
146
|
+
"label": "Consumed At",
|
|
147
|
+
"format": "datetime",
|
|
148
|
+
"interactive": true,
|
|
149
|
+
"hideWhenEmpty": true,
|
|
150
|
+
"tooltip": "Block timestamp when the asset was consumed (one-shot assets only). Click to switch between UTC, Local time, and Unix Timestamp."
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"key": "_ttlDisplay",
|
|
154
|
+
"label": "Expire After",
|
|
155
|
+
"tooltip": "Asset time-to-live; \"Never\" means the asset has no expiry."
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "ast-card-display",
|
|
161
|
+
"title": "Display",
|
|
162
|
+
"node": {
|
|
163
|
+
"id": "ast-nft",
|
|
164
|
+
"type": "nft-display",
|
|
165
|
+
"props": {
|
|
166
|
+
"data": "${content._nftDisplay}",
|
|
167
|
+
"imageFilter": { "f": "webp", "imageFilter": "resize", "h": "600" }
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "ast-tabs",
|
|
176
|
+
"type": "view",
|
|
177
|
+
"props": {
|
|
178
|
+
"mode": "tabs"
|
|
179
|
+
},
|
|
180
|
+
"children": [
|
|
181
|
+
{
|
|
182
|
+
"id": "ast-tab-txs",
|
|
183
|
+
"type": "view",
|
|
184
|
+
"props": {
|
|
185
|
+
"tabLabel": "Transactions",
|
|
186
|
+
"tabIcon": "file-text",
|
|
187
|
+
"layout": {
|
|
188
|
+
"direction": "column",
|
|
189
|
+
"gap": "none"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"children": [
|
|
193
|
+
{
|
|
194
|
+
"id": "ast-tx-list",
|
|
195
|
+
"type": "afs-list",
|
|
196
|
+
"src": "${_parentPath}/transactions",
|
|
197
|
+
"props": {
|
|
198
|
+
"layout": "table",
|
|
199
|
+
"columns": [
|
|
200
|
+
{
|
|
201
|
+
"key": "content.hash",
|
|
202
|
+
"label": "Hash",
|
|
203
|
+
"format": "did",
|
|
204
|
+
"width": "180px"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"key": "content._typeName",
|
|
208
|
+
"label": "Type",
|
|
209
|
+
"format": "colored-badge",
|
|
210
|
+
"colorKey": "content._methodColor",
|
|
211
|
+
"width": "150px"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"key": "content.sender",
|
|
215
|
+
"label": "From",
|
|
216
|
+
"format": "did",
|
|
217
|
+
"width": "150px"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"label": "",
|
|
221
|
+
"format": "direction-pill",
|
|
222
|
+
"pillContextKey": "content._currentAccount",
|
|
223
|
+
"pillSenderKey": "content.sender",
|
|
224
|
+
"pillReceiverKey": "content.receiver",
|
|
225
|
+
"width": "60px",
|
|
226
|
+
"align": "center"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"key": "content.receiver",
|
|
230
|
+
"label": "To",
|
|
231
|
+
"format": "did",
|
|
232
|
+
"width": "150px"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"key": "content.value",
|
|
236
|
+
"label": "Value",
|
|
237
|
+
"format": "bignum:@{content.decimal}",
|
|
238
|
+
"symbol": "@{content.symbol}",
|
|
239
|
+
"width": "150px",
|
|
240
|
+
"align": "right"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"key": "content._gasFeeRaw",
|
|
244
|
+
"label": "Fee",
|
|
245
|
+
"hideBelow": "tablet-wide",
|
|
246
|
+
"format": "bignum:18",
|
|
247
|
+
"symbol": "ABT",
|
|
248
|
+
"strikethrough": "@{content._gasExempted}",
|
|
249
|
+
"width": "120px",
|
|
250
|
+
"align": "right"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"key": "content.time",
|
|
254
|
+
"label": "Time",
|
|
255
|
+
"format": "timeago",
|
|
256
|
+
"width": "120px"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"pageSize": 10,
|
|
260
|
+
"pagination": "manual",
|
|
261
|
+
"clickMode": "both",
|
|
262
|
+
"autoSelect": false,
|
|
263
|
+
"filter": {
|
|
264
|
+
"exclude": ".."
|
|
265
|
+
},
|
|
266
|
+
"showBreadcrumb": false
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"id": "ast-tab-stakes",
|
|
273
|
+
"type": "view",
|
|
274
|
+
"props": {
|
|
275
|
+
"tabLabel": "Stakes",
|
|
276
|
+
"tabIcon": "shield-check",
|
|
277
|
+
"layout": {
|
|
278
|
+
"direction": "column",
|
|
279
|
+
"gap": "none"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"children": [
|
|
283
|
+
{
|
|
284
|
+
"id": "ast-stake-list",
|
|
285
|
+
"type": "afs-list",
|
|
286
|
+
"src": "${_parentPath}/stakes",
|
|
287
|
+
"props": {
|
|
288
|
+
"layout": "table",
|
|
289
|
+
"columns": [
|
|
290
|
+
{
|
|
291
|
+
"key": "content.address",
|
|
292
|
+
"label": "Address",
|
|
293
|
+
"format": "did",
|
|
294
|
+
"width": "200px"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"key": "content.sender",
|
|
298
|
+
"label": "Sender",
|
|
299
|
+
"format": "did",
|
|
300
|
+
"width": "180px"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"key": "content.receiver",
|
|
304
|
+
"label": "Receiver",
|
|
305
|
+
"format": "did",
|
|
306
|
+
"width": "180px"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"key": "content.genesisTime",
|
|
310
|
+
"label": "Created",
|
|
311
|
+
"format": "timeago",
|
|
312
|
+
"width": "120px"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"key": "content.renaissanceTime",
|
|
316
|
+
"label": "Updated",
|
|
317
|
+
"hideBelow": "tablet-wide",
|
|
318
|
+
"format": "timeago",
|
|
319
|
+
"width": "120px"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"pageSize": 10,
|
|
323
|
+
"pagination": "manual",
|
|
324
|
+
"clickMode": "both",
|
|
325
|
+
"autoSelect": false,
|
|
326
|
+
"filter": {
|
|
327
|
+
"exclude": ".."
|
|
328
|
+
},
|
|
329
|
+
"showBreadcrumb": false
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"id": "ast-tab-data",
|
|
336
|
+
"type": "view",
|
|
337
|
+
"props": {
|
|
338
|
+
"tabLabel": "Data",
|
|
339
|
+
"tabIcon": "hard-drive",
|
|
340
|
+
"layout": {
|
|
341
|
+
"direction": "column",
|
|
342
|
+
"gap": "none"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"children": [
|
|
346
|
+
{
|
|
347
|
+
"id": "ast-data-code",
|
|
348
|
+
"type": "text",
|
|
349
|
+
"props": {
|
|
350
|
+
"content": "${content.data|json:pretty}",
|
|
351
|
+
"format": "code",
|
|
352
|
+
"language": "json"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "block-detail",
|
|
3
|
+
"type": "view",
|
|
4
|
+
"props": {
|
|
5
|
+
"layout": { "direction": "column", "gap": "md" },
|
|
6
|
+
"animate": "slide-up",
|
|
7
|
+
"style": { "padding": "16px 24px" }
|
|
8
|
+
},
|
|
9
|
+
"children": [
|
|
10
|
+
{
|
|
11
|
+
"id": "blk-header",
|
|
12
|
+
"type": "view",
|
|
13
|
+
"props": {
|
|
14
|
+
"layout": { "direction": "row", "gap": "md", "crossAlign": "center" }
|
|
15
|
+
},
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"id": "blk-avatar",
|
|
19
|
+
"type": "media",
|
|
20
|
+
"props": {
|
|
21
|
+
"type": "avatar",
|
|
22
|
+
"variant": "did-motif",
|
|
23
|
+
"seed": "${content.hash}",
|
|
24
|
+
"size": 56
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "blk-title-block",
|
|
29
|
+
"type": "view",
|
|
30
|
+
"props": { "layout": { "direction": "column", "gap": "xs", "crossAlign": "start" } },
|
|
31
|
+
"children": [
|
|
32
|
+
{
|
|
33
|
+
"id": "blk-title-row",
|
|
34
|
+
"type": "view",
|
|
35
|
+
"props": {
|
|
36
|
+
"layout": { "direction": "row", "gap": "sm", "crossAlign": "center" }
|
|
37
|
+
},
|
|
38
|
+
"children": [
|
|
39
|
+
{
|
|
40
|
+
"id": "blk-title",
|
|
41
|
+
"type": "text",
|
|
42
|
+
"props": { "content": "Block", "level": 2 }
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "blk-governance-badge",
|
|
46
|
+
"type": "text",
|
|
47
|
+
"props": {
|
|
48
|
+
"content": "${content.governance|boolean:Governance:}",
|
|
49
|
+
"variant": "badge",
|
|
50
|
+
"intent": "info"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "blk-hash",
|
|
57
|
+
"type": "text",
|
|
58
|
+
"props": {
|
|
59
|
+
"content": "${content.hash}",
|
|
60
|
+
"scale": "sm",
|
|
61
|
+
"format": "did"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "blk-overview",
|
|
70
|
+
"type": "entity-overview",
|
|
71
|
+
"props": {
|
|
72
|
+
"layout": "2",
|
|
73
|
+
"data": "${content}",
|
|
74
|
+
"cards": [
|
|
75
|
+
{
|
|
76
|
+
"id": "blk-card-stats",
|
|
77
|
+
"title": "Block Stats",
|
|
78
|
+
"fields": [
|
|
79
|
+
{
|
|
80
|
+
"key": "height",
|
|
81
|
+
"label": "Block Height",
|
|
82
|
+
"format": "number",
|
|
83
|
+
"tooltip": "Sequential block number on this bridge."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"key": "rewardAmount",
|
|
87
|
+
"label": "Block Reward",
|
|
88
|
+
"format": "bignum:@{tokenDecimal}",
|
|
89
|
+
"tooltip": "Native token paid out to the proposer for producing this block."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"key": "mintedAmount",
|
|
93
|
+
"label": "Minted Amount",
|
|
94
|
+
"format": "bignum:@{tokenDecimal}",
|
|
95
|
+
"tooltip": "Total native token minted in this block."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "burnedAmount",
|
|
99
|
+
"label": "Burned Amount",
|
|
100
|
+
"format": "bignum:@{tokenDecimal}",
|
|
101
|
+
"tooltip": "Total native token burned in this block."
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "blk-card-info",
|
|
107
|
+
"title": "Block Info",
|
|
108
|
+
"fields": [
|
|
109
|
+
{
|
|
110
|
+
"key": "previousHash",
|
|
111
|
+
"label": "Previous Block Hash",
|
|
112
|
+
"format": "did",
|
|
113
|
+
"navigateTo": "bridges/${content.rollup}/blocks/{value}",
|
|
114
|
+
"tooltip": "Hash of the parent block. Click to navigate."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"key": "merkleRoot",
|
|
118
|
+
"label": "Merkle Root",
|
|
119
|
+
"monospace": true,
|
|
120
|
+
"tooltip": "Root of the Merkle tree over the transactions in this block."
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"key": "txsHash",
|
|
124
|
+
"label": "Txs Hash",
|
|
125
|
+
"monospace": true,
|
|
126
|
+
"tooltip": "Hash over the ordered transaction list."
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"key": "proposer",
|
|
130
|
+
"label": "Proposer",
|
|
131
|
+
"format": "did",
|
|
132
|
+
"navigateTo": "accounts/{value}",
|
|
133
|
+
"tooltip": "Validator account that proposed this block."
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"key": "rollup",
|
|
137
|
+
"label": "Bridge",
|
|
138
|
+
"format": "did",
|
|
139
|
+
"navigateTo": "bridges/{value}",
|
|
140
|
+
"tooltip": "Bridge that contains this block."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"key": "governance",
|
|
144
|
+
"label": "Governance Block?",
|
|
145
|
+
"format": "boolean",
|
|
146
|
+
"tooltip": "Block produced as part of a governance vote rather than a regular round."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"key": "context.genesisTime",
|
|
150
|
+
"label": "Genesis Time",
|
|
151
|
+
"format": "datetime",
|
|
152
|
+
"interactive": true,
|
|
153
|
+
"tooltip": "Wall-clock time when the block first appeared on-chain."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"key": "context.renaissanceTime",
|
|
157
|
+
"label": "Updated At",
|
|
158
|
+
"format": "datetime",
|
|
159
|
+
"interactive": true,
|
|
160
|
+
"tooltip": "Most recent time the block record was updated."
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "bridges-view",
|
|
3
|
+
"type": "view",
|
|
4
|
+
"props": {
|
|
5
|
+
"layout": {
|
|
6
|
+
"direction": "column",
|
|
7
|
+
"gap": "none"
|
|
8
|
+
},
|
|
9
|
+
"style": {
|
|
10
|
+
"flex": "1",
|
|
11
|
+
"overflow": "auto"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"children": [
|
|
15
|
+
{
|
|
16
|
+
"id": "bridges-title",
|
|
17
|
+
"type": "text",
|
|
18
|
+
"props": { "content": "Bridges", "level": 1 }
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "bridges-view-list",
|
|
22
|
+
"type": "afs-list",
|
|
23
|
+
"src": "${_parentPath}",
|
|
24
|
+
"props": {
|
|
25
|
+
"layout": "table",
|
|
26
|
+
"columns": [
|
|
27
|
+
{
|
|
28
|
+
"key": "content.address",
|
|
29
|
+
"label": "Address",
|
|
30
|
+
"mobileRole": "title",
|
|
31
|
+
"format": "did",
|
|
32
|
+
"width": "200px"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"key": "content.tokenAddress",
|
|
36
|
+
"label": "Token",
|
|
37
|
+
"format": "did",
|
|
38
|
+
"width": "180px"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "content.blockHeight",
|
|
42
|
+
"label": "Height",
|
|
43
|
+
"format": "number",
|
|
44
|
+
"width": "100px",
|
|
45
|
+
"align": "right"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "content._statusLabel",
|
|
49
|
+
"label": "Status",
|
|
50
|
+
"format": "colored-badge",
|
|
51
|
+
"colorKey": "content._statusColor",
|
|
52
|
+
"width": "140px"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"key": "content.genesisTime",
|
|
56
|
+
"label": "Created",
|
|
57
|
+
"format": "timeago",
|
|
58
|
+
"width": "120px"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"key": "content.renaissanceTime",
|
|
62
|
+
"label": "Updated",
|
|
63
|
+
"hideBelow": "tablet-wide",
|
|
64
|
+
"format": "timeago",
|
|
65
|
+
"width": "120px"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"pageSize": 20,
|
|
69
|
+
"pagination": "manual",
|
|
70
|
+
"clickMode": "both",
|
|
71
|
+
"autoSelect": false,
|
|
72
|
+
"filter": {
|
|
73
|
+
"exclude": ["..", "blocks", ".aup"]
|
|
74
|
+
},
|
|
75
|
+
"showBreadcrumb": false
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|