@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.
Files changed (58) hide show
  1. package/LICENSE.md +26 -0
  2. package/README.md +144 -0
  3. package/aup/accounts/default.json +64 -0
  4. package/aup/accounts/item.json +510 -0
  5. package/aup/assets/default.json +70 -0
  6. package/aup/assets/item.json +360 -0
  7. package/aup/bridges/_addr/blocks/item.json +168 -0
  8. package/aup/bridges/default.json +79 -0
  9. package/aup/bridges/item.json +868 -0
  10. package/aup/config/default.json +806 -0
  11. package/aup/default.json +387 -0
  12. package/aup/delegates/default.json +71 -0
  13. package/aup/delegates/item.json +241 -0
  14. package/aup/factories/default.json +78 -0
  15. package/aup/factories/item.json +310 -0
  16. package/aup/stakes/default.json +76 -0
  17. package/aup/stakes/item.json +374 -0
  18. package/aup/tokens/default.json +76 -0
  19. package/aup/tokens/item.json +384 -0
  20. package/aup/transactions/default.json +102 -0
  21. package/aup/transactions/item.json +286 -0
  22. package/aup/validators/default.json +57 -0
  23. package/aup/validators/item.json +99 -0
  24. package/dist/_virtual/_@oxc-project_runtime@0.108.0/helpers/decorate.cjs +11 -0
  25. package/dist/_virtual/_@oxc-project_runtime@0.108.0/helpers/decorate.mjs +10 -0
  26. package/dist/index.cjs +7 -0
  27. package/dist/index.d.cts +5 -0
  28. package/dist/index.d.mts +5 -0
  29. package/dist/index.mjs +4 -0
  30. package/dist/method-colors.cjs +137 -0
  31. package/dist/method-colors.mjs +136 -0
  32. package/dist/method-colors.mjs.map +1 -0
  33. package/dist/provider.cjs +2490 -0
  34. package/dist/provider.d.cts +453 -0
  35. package/dist/provider.d.cts.map +1 -0
  36. package/dist/provider.d.mts +453 -0
  37. package/dist/provider.d.mts.map +1 -0
  38. package/dist/provider.mjs +2490 -0
  39. package/dist/provider.mjs.map +1 -0
  40. package/dist/remote-source.cjs +338 -0
  41. package/dist/remote-source.d.cts +62 -0
  42. package/dist/remote-source.d.cts.map +1 -0
  43. package/dist/remote-source.d.mts +62 -0
  44. package/dist/remote-source.d.mts.map +1 -0
  45. package/dist/remote-source.mjs +339 -0
  46. package/dist/remote-source.mjs.map +1 -0
  47. package/dist/source.d.cts +77 -0
  48. package/dist/source.d.cts.map +1 -0
  49. package/dist/source.d.mts +77 -0
  50. package/dist/source.d.mts.map +1 -0
  51. package/dist/types.d.cts +572 -0
  52. package/dist/types.d.cts.map +1 -0
  53. package/dist/types.d.mts +572 -0
  54. package/dist/types.d.mts.map +1 -0
  55. package/dist/utils.cjs +581 -0
  56. package/dist/utils.mjs +557 -0
  57. package/dist/utils.mjs.map +1 -0
  58. package/package.json +61 -0
@@ -0,0 +1,387 @@
1
+ {
2
+ "id": "chain-overview",
3
+ "type": "view",
4
+ "props": {
5
+ "layout": { "direction": "column", "gap": "lg" },
6
+ "animate": "slide-up",
7
+ "style": { "padding": "16px 24px" }
8
+ },
9
+ "children": [
10
+ {
11
+ "id": "co-metrics",
12
+ "type": "view",
13
+ "props": { "layout": { "direction": "row", "gap": "md", "wrap": "wrap" } },
14
+ "children": [
15
+ {
16
+ "id": "co-stat-numTxs",
17
+ "type": "view",
18
+ "props": { "mode": "card", "size": { "flex": 1 }, "navigateTo": "transactions" },
19
+ "children": [
20
+ {
21
+ "id": "co-stat-numTxs-l",
22
+ "type": "text",
23
+ "props": { "content": "Transactions", "scale": "caption", "intent": "info" }
24
+ },
25
+ {
26
+ "id": "co-stat-numTxs-v",
27
+ "type": "text",
28
+ "props": { "content": "${content.numTxs|number}", "level": 2 }
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "id": "co-stat-accountCount",
34
+ "type": "view",
35
+ "props": { "mode": "card", "size": { "flex": 1 }, "navigateTo": "accounts" },
36
+ "children": [
37
+ {
38
+ "id": "co-stat-accountCount-l",
39
+ "type": "text",
40
+ "props": { "content": "Accounts", "scale": "caption", "intent": "info" }
41
+ },
42
+ {
43
+ "id": "co-stat-accountCount-v",
44
+ "type": "text",
45
+ "props": { "content": "${content.accountCount|number}", "level": 2 }
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "id": "co-stat-tokenCount",
51
+ "type": "view",
52
+ "props": { "mode": "card", "size": { "flex": 1 }, "navigateTo": "tokens" },
53
+ "children": [
54
+ {
55
+ "id": "co-stat-tokenCount-l",
56
+ "type": "text",
57
+ "props": { "content": "Tokens", "scale": "caption", "intent": "info" }
58
+ },
59
+ {
60
+ "id": "co-stat-tokenCount-v",
61
+ "type": "text",
62
+ "props": { "content": "${content.tokenCount|number}", "level": 2 }
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "id": "co-stat-assetCount",
68
+ "type": "view",
69
+ "props": { "mode": "card", "size": { "flex": 1 }, "navigateTo": "assets" },
70
+ "children": [
71
+ {
72
+ "id": "co-stat-assetCount-l",
73
+ "type": "text",
74
+ "props": { "content": "Assets", "scale": "caption", "intent": "info" }
75
+ },
76
+ {
77
+ "id": "co-stat-assetCount-v",
78
+ "type": "text",
79
+ "props": { "content": "${content.assetCount|number}", "level": 2 }
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "id": "co-stat-factoryCount",
85
+ "type": "view",
86
+ "props": { "mode": "card", "size": { "flex": 1 }, "navigateTo": "factories" },
87
+ "children": [
88
+ {
89
+ "id": "co-stat-factoryCount-l",
90
+ "type": "text",
91
+ "props": { "content": "Factories", "scale": "caption", "intent": "info" }
92
+ },
93
+ {
94
+ "id": "co-stat-factoryCount-v",
95
+ "type": "text",
96
+ "props": { "content": "${content.factoryCount|number}", "level": 2 }
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "id": "co-stat-stakeCount",
102
+ "type": "view",
103
+ "props": { "mode": "card", "size": { "flex": 1 }, "navigateTo": "stakes" },
104
+ "children": [
105
+ {
106
+ "id": "co-stat-stakeCount-l",
107
+ "type": "text",
108
+ "props": { "content": "Stakes", "scale": "caption", "intent": "info" }
109
+ },
110
+ {
111
+ "id": "co-stat-stakeCount-v",
112
+ "type": "text",
113
+ "props": { "content": "${content.stakeCount|number}", "level": 2 }
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "id": "co-stat-bridgeCount",
119
+ "type": "view",
120
+ "props": { "mode": "card", "size": { "flex": 1 }, "navigateTo": "bridges" },
121
+ "children": [
122
+ {
123
+ "id": "co-stat-bridgeCount-l",
124
+ "type": "text",
125
+ "props": { "content": "Bridges", "scale": "caption", "intent": "info" }
126
+ },
127
+ {
128
+ "id": "co-stat-bridgeCount-v",
129
+ "type": "text",
130
+ "props": { "content": "${content.bridgeCount|number}", "level": 2 }
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "id": "co-activity",
138
+ "type": "view",
139
+ "props": {
140
+ "layout": {
141
+ "direction": "row",
142
+ "gap": "lg",
143
+ "crossAlign": "flex-start",
144
+ "stackBelow": "tablet-wide"
145
+ }
146
+ },
147
+ "children": [
148
+ {
149
+ "id": "co-recent-txs",
150
+ "type": "view",
151
+ "props": {
152
+ "mode": "card",
153
+ "layout": { "direction": "column", "gap": "sm" },
154
+ "size": { "flex": 2 },
155
+ "style": { "minWidth": "0" }
156
+ },
157
+ "children": [
158
+ {
159
+ "id": "co-recent-txs-header",
160
+ "type": "view",
161
+ "props": {
162
+ "layout": { "direction": "row", "align": "between", "crossAlign": "center" }
163
+ },
164
+ "children": [
165
+ {
166
+ "id": "co-recent-txs-label",
167
+ "type": "text",
168
+ "props": {
169
+ "content": "Recent Transactions",
170
+ "scale": "caption",
171
+ "intent": "info",
172
+ "style": { "textTransform": "uppercase", "letterSpacing": "0.08em" }
173
+ }
174
+ },
175
+ {
176
+ "id": "co-recent-txs-viewall",
177
+ "type": "text",
178
+ "props": {
179
+ "content": "View all →",
180
+ "scale": "caption",
181
+ "navigateTo": "transactions"
182
+ }
183
+ }
184
+ ]
185
+ },
186
+ {
187
+ "id": "co-recent-txs-list",
188
+ "type": "afs-list",
189
+ "src": "${_parentPath}/transactions",
190
+ "props": {
191
+ "layout": "table",
192
+ "columns": [
193
+ {
194
+ "key": "content.hash",
195
+ "label": "Hash",
196
+ "mobileRole": "title",
197
+ "format": "did",
198
+ "width": "150px"
199
+ },
200
+ {
201
+ "key": "content._typeName",
202
+ "label": "Type",
203
+ "format": "colored-badge",
204
+ "colorKey": "content._methodColor",
205
+ "width": "130px"
206
+ },
207
+ {
208
+ "key": "content.sender",
209
+ "label": "From",
210
+ "format": "did"
211
+ },
212
+ {
213
+ "key": "content.value",
214
+ "label": "Value",
215
+ "format": "bignum:@{content.decimal}",
216
+ "symbol": "@{content.symbol}",
217
+ "width": "140px",
218
+ "align": "right"
219
+ },
220
+ {
221
+ "key": "content.time",
222
+ "label": "Time",
223
+ "format": "timeago",
224
+ "width": "100px",
225
+ "align": "right"
226
+ }
227
+ ],
228
+ "pageSize": 20,
229
+ "pagination": "none",
230
+ "clickMode": "both",
231
+ "autoSelect": false,
232
+ "filter": { "exclude": ".." },
233
+ "showBreadcrumb": false
234
+ }
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "id": "co-right-col",
240
+ "type": "view",
241
+ "props": {
242
+ "layout": { "direction": "column", "gap": "lg" },
243
+ "size": { "flex": 1 },
244
+ "style": { "minWidth": "0" }
245
+ },
246
+ "children": [
247
+ {
248
+ "id": "co-tokens",
249
+ "type": "view",
250
+ "props": {
251
+ "mode": "card",
252
+ "layout": { "direction": "column", "gap": "sm" },
253
+ "style": { "minWidth": "0" }
254
+ },
255
+ "children": [
256
+ {
257
+ "id": "co-tokens-header",
258
+ "type": "view",
259
+ "props": {
260
+ "layout": { "direction": "row", "align": "between", "crossAlign": "center" }
261
+ },
262
+ "children": [
263
+ {
264
+ "id": "co-tokens-label",
265
+ "type": "text",
266
+ "props": {
267
+ "content": "Tokens",
268
+ "scale": "caption",
269
+ "intent": "info",
270
+ "style": { "textTransform": "uppercase", "letterSpacing": "0.08em" }
271
+ }
272
+ },
273
+ {
274
+ "id": "co-tokens-viewall",
275
+ "type": "text",
276
+ "props": {
277
+ "content": "View all →",
278
+ "scale": "caption",
279
+ "navigateTo": "tokens"
280
+ }
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "id": "co-tokens-list",
286
+ "type": "afs-list",
287
+ "src": "${_parentPath}/tokens",
288
+ "props": {
289
+ "layout": "table",
290
+ "columns": [
291
+ { "key": "content.symbol", "label": "Symbol", "width": "80px" },
292
+ { "key": "content.name", "label": "Name", "mobileRole": "title" },
293
+ {
294
+ "key": "content.totalSupply",
295
+ "label": "Total Supply",
296
+ "format": "bignum:@{content.decimal}",
297
+ "symbol": "@{content.symbol}",
298
+ "width": "180px",
299
+ "align": "right"
300
+ }
301
+ ],
302
+ "pageSize": 10,
303
+ "pagination": "none",
304
+ "clickMode": "both",
305
+ "autoSelect": false,
306
+ "filter": { "exclude": ".." },
307
+ "showBreadcrumb": false
308
+ }
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "id": "co-factories",
314
+ "type": "view",
315
+ "props": {
316
+ "mode": "card",
317
+ "layout": { "direction": "column", "gap": "sm" },
318
+ "style": { "minWidth": "0" }
319
+ },
320
+ "children": [
321
+ {
322
+ "id": "co-factories-header",
323
+ "type": "view",
324
+ "props": {
325
+ "layout": { "direction": "row", "align": "between", "crossAlign": "center" }
326
+ },
327
+ "children": [
328
+ {
329
+ "id": "co-factories-label",
330
+ "type": "text",
331
+ "props": {
332
+ "content": "Factories",
333
+ "scale": "caption",
334
+ "intent": "info",
335
+ "style": { "textTransform": "uppercase", "letterSpacing": "0.08em" }
336
+ }
337
+ },
338
+ {
339
+ "id": "co-factories-viewall",
340
+ "type": "text",
341
+ "props": {
342
+ "content": "View all →",
343
+ "scale": "caption",
344
+ "navigateTo": "factories"
345
+ }
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "id": "co-factories-list",
351
+ "type": "afs-list",
352
+ "src": "${_parentPath}/factories",
353
+ "props": {
354
+ "layout": "table",
355
+ "columns": [
356
+ { "key": "content.name", "label": "Name", "mobileRole": "title" },
357
+ {
358
+ "key": "content.numMinted",
359
+ "label": "Minted",
360
+ "format": "number",
361
+ "width": "90px",
362
+ "align": "right"
363
+ },
364
+ {
365
+ "key": "content.genesisTime",
366
+ "label": "Created",
367
+ "format": "timeago",
368
+ "width": "110px",
369
+ "align": "right"
370
+ }
371
+ ],
372
+ "pageSize": 10,
373
+ "pagination": "none",
374
+ "clickMode": "both",
375
+ "autoSelect": false,
376
+ "filter": { "exclude": ".." },
377
+ "showBreadcrumb": false
378
+ }
379
+ }
380
+ ]
381
+ }
382
+ ]
383
+ }
384
+ ]
385
+ }
386
+ ]
387
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "id": "delegates-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": "delegates-title",
17
+ "type": "text",
18
+ "props": { "content": "Delegates", "level": 1 }
19
+ },
20
+ {
21
+ "id": "delegates-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.from",
36
+ "label": "From",
37
+ "format": "did",
38
+ "width": "180px"
39
+ },
40
+ {
41
+ "key": "content.to",
42
+ "label": "To",
43
+ "format": "did",
44
+ "width": "180px"
45
+ },
46
+ {
47
+ "key": "content.genesisTime",
48
+ "label": "Created",
49
+ "format": "timeago",
50
+ "width": "120px"
51
+ },
52
+ {
53
+ "key": "content.renaissanceTime",
54
+ "label": "Updated",
55
+ "hideBelow": "tablet-wide",
56
+ "format": "timeago",
57
+ "width": "120px"
58
+ }
59
+ ],
60
+ "pageSize": 20,
61
+ "pagination": "manual",
62
+ "clickMode": "both",
63
+ "autoSelect": false,
64
+ "filter": {
65
+ "exclude": ".."
66
+ },
67
+ "showBreadcrumb": false
68
+ }
69
+ }
70
+ ]
71
+ }