@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,868 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "bridge-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": "br-header",
|
|
12
|
+
"type": "view",
|
|
13
|
+
"props": {
|
|
14
|
+
"layout": { "direction": "row", "gap": "md", "crossAlign": "center" }
|
|
15
|
+
},
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"id": "br-avatar",
|
|
19
|
+
"type": "media",
|
|
20
|
+
"props": {
|
|
21
|
+
"type": "avatar",
|
|
22
|
+
"variant": "did-motif",
|
|
23
|
+
"seed": "${content.address}",
|
|
24
|
+
"src": "${content.tokenInfo.icon}",
|
|
25
|
+
"size": 56
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "br-title-block",
|
|
30
|
+
"type": "view",
|
|
31
|
+
"props": { "layout": { "direction": "column", "gap": "xs", "crossAlign": "start" } },
|
|
32
|
+
"children": [
|
|
33
|
+
{
|
|
34
|
+
"id": "br-title",
|
|
35
|
+
"type": "text",
|
|
36
|
+
"props": {
|
|
37
|
+
"content": "${content.tokenInfo.symbol|default:Bridge} Bridge",
|
|
38
|
+
"level": 2
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "br-meta",
|
|
43
|
+
"type": "view",
|
|
44
|
+
"props": {
|
|
45
|
+
"layout": { "direction": "row", "gap": "sm", "crossAlign": "center" }
|
|
46
|
+
},
|
|
47
|
+
"children": [
|
|
48
|
+
{
|
|
49
|
+
"id": "br-addr",
|
|
50
|
+
"type": "text",
|
|
51
|
+
"props": {
|
|
52
|
+
"content": "${content.address}",
|
|
53
|
+
"scale": "sm",
|
|
54
|
+
"format": "did"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "br-status-badge",
|
|
59
|
+
"type": "text",
|
|
60
|
+
"props": {
|
|
61
|
+
"content": "${content.closed|boolean:Closed:Active}",
|
|
62
|
+
"variant": "badge",
|
|
63
|
+
"intent": "${content.closed|boolean:error:success}"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "br-paused-badge",
|
|
68
|
+
"type": "text",
|
|
69
|
+
"props": {
|
|
70
|
+
"content": "${content.paused|boolean:Paused:}",
|
|
71
|
+
"variant": "badge",
|
|
72
|
+
"intent": "warning"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "br-direction",
|
|
79
|
+
"type": "text",
|
|
80
|
+
"props": {
|
|
81
|
+
"content": "ArcBlock ↔ ${content.foreignToken.chainName|default:Foreign Chain}",
|
|
82
|
+
"scale": "sm",
|
|
83
|
+
"intent": "info"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "br-overview",
|
|
92
|
+
"type": "entity-overview",
|
|
93
|
+
"props": {
|
|
94
|
+
"layout": "3",
|
|
95
|
+
"data": "${content}",
|
|
96
|
+
"cards": [
|
|
97
|
+
{
|
|
98
|
+
"id": "br-card-chain-stats",
|
|
99
|
+
"title": "Chain Stats",
|
|
100
|
+
"fields": [
|
|
101
|
+
{
|
|
102
|
+
"key": "totalDepositAmount",
|
|
103
|
+
"label": "Total In",
|
|
104
|
+
"format": "bignum:@{tokenDecimal}",
|
|
105
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
106
|
+
"tooltip": "Cumulative amount deposited into the bridge from the foreign chain."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"key": "totalWithdrawAmount",
|
|
110
|
+
"label": "Total Out",
|
|
111
|
+
"format": "bignum:@{tokenDecimal}",
|
|
112
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
113
|
+
"tooltip": "Cumulative amount withdrawn from the bridge to the foreign chain."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"key": "blockHeight",
|
|
117
|
+
"label": "Block Height",
|
|
118
|
+
"format": "number",
|
|
119
|
+
"tooltip": "Latest bridge block height observed on-chain."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"key": "blockHash",
|
|
123
|
+
"label": "Block Hash",
|
|
124
|
+
"format": "did",
|
|
125
|
+
"tooltip": "Hash of the latest bridge block."
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "br-card-chain-config",
|
|
131
|
+
"title": "Chain Config",
|
|
132
|
+
"fields": [
|
|
133
|
+
{
|
|
134
|
+
"label": "Foreign Network",
|
|
135
|
+
"value": "${content.foreignToken.chainName|default:—} (${content.foreignToken.chainType|default:?}:${content.foreignToken.chainId|default:?})",
|
|
136
|
+
"tooltip": "Foreign chain identity: human-readable name, chain type (eth / bsc / matic / ...), and numeric chain ID."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"key": "foreignToken.contractAddress",
|
|
140
|
+
"label": "Foreign Contract",
|
|
141
|
+
"format": "did",
|
|
142
|
+
"hideWhenEmpty": true,
|
|
143
|
+
"tooltip": "ERC-20 contract address on the foreign chain."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "contractAddress",
|
|
147
|
+
"label": "Local Contract",
|
|
148
|
+
"format": "did",
|
|
149
|
+
"tooltip": "Local OCAP contract that owns the bridge state."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"key": "tokenAddress",
|
|
153
|
+
"label": "Token",
|
|
154
|
+
"format": "did",
|
|
155
|
+
"navigateTo": "tokens/{value}",
|
|
156
|
+
"tooltip": "OCAP token whose supply is bridged through this bridge."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"key": "vaultAddress",
|
|
160
|
+
"label": "Vault",
|
|
161
|
+
"format": "did",
|
|
162
|
+
"navigateTo": "accounts/{value}",
|
|
163
|
+
"tooltip": "Account holding tokens locked while bridged out."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"key": "issuer",
|
|
167
|
+
"label": "Issuer",
|
|
168
|
+
"format": "did",
|
|
169
|
+
"navigateTo": "accounts/{value}",
|
|
170
|
+
"tooltip": "Account that initially declared the bridge."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"key": "minBlockInterval",
|
|
174
|
+
"label": "Min Block Interval",
|
|
175
|
+
"format": "duration",
|
|
176
|
+
"tooltip": "Minimum interval between bridge blocks (chain-stored in seconds; rendered as a human-readable duration)."
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "br-card-deposit",
|
|
182
|
+
"title": "Deposit Config",
|
|
183
|
+
"fields": [
|
|
184
|
+
{
|
|
185
|
+
"key": "minDepositAmount",
|
|
186
|
+
"label": "Min Amount",
|
|
187
|
+
"format": "bignum:@{tokenDecimal}",
|
|
188
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
189
|
+
"tooltip": "Minimum amount allowed per deposit transaction."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"key": "maxDepositAmount",
|
|
193
|
+
"label": "Max Amount",
|
|
194
|
+
"format": "bignum:@{tokenDecimal}",
|
|
195
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
196
|
+
"tooltip": "Maximum amount allowed per deposit transaction."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"key": "depositFeeRate",
|
|
200
|
+
"label": "Fee Rate",
|
|
201
|
+
"format": "percent:10000:2",
|
|
202
|
+
"tooltip": "Fee rate charged on each deposit. Stored as basis points × 100 (10000 = 100%)."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"key": "minDepositFee",
|
|
206
|
+
"label": "Min Fee",
|
|
207
|
+
"format": "bignum:@{tokenDecimal}",
|
|
208
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
209
|
+
"tooltip": "Floor fee applied when the percentage rate would compute below this value."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"key": "maxDepositFee",
|
|
213
|
+
"label": "Max Fee",
|
|
214
|
+
"format": "bignum:@{tokenDecimal}",
|
|
215
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
216
|
+
"tooltip": "Cap fee applied when the percentage rate would compute above this value."
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "br-card-withdraw",
|
|
222
|
+
"title": "Withdraw Config",
|
|
223
|
+
"fields": [
|
|
224
|
+
{
|
|
225
|
+
"key": "minWithdrawAmount",
|
|
226
|
+
"label": "Min Amount",
|
|
227
|
+
"format": "bignum:@{tokenDecimal}",
|
|
228
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
229
|
+
"tooltip": "Minimum amount allowed per withdraw transaction."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"key": "maxWithdrawAmount",
|
|
233
|
+
"label": "Max Amount",
|
|
234
|
+
"format": "bignum:@{tokenDecimal}",
|
|
235
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
236
|
+
"tooltip": "Maximum amount allowed per withdraw transaction."
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"key": "withdrawFeeRate",
|
|
240
|
+
"label": "Fee Rate",
|
|
241
|
+
"format": "percent:10000:2",
|
|
242
|
+
"tooltip": "Fee rate charged on each withdraw. Stored as basis points × 100 (10000 = 100%)."
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"key": "minWithdrawFee",
|
|
246
|
+
"label": "Min Fee",
|
|
247
|
+
"format": "bignum:@{tokenDecimal}",
|
|
248
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
249
|
+
"tooltip": "Floor fee applied when the percentage rate would compute below this value."
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"key": "maxWithdrawFee",
|
|
253
|
+
"label": "Max Fee",
|
|
254
|
+
"format": "bignum:@{tokenDecimal}",
|
|
255
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
256
|
+
"tooltip": "Cap fee applied when the percentage rate would compute above this value."
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "br-card-node",
|
|
262
|
+
"title": "Node Config",
|
|
263
|
+
"fields": [
|
|
264
|
+
{
|
|
265
|
+
"key": "minStakeAmount",
|
|
266
|
+
"label": "Min Stake",
|
|
267
|
+
"format": "bignum:@{tokenDecimal}",
|
|
268
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
269
|
+
"tooltip": "Minimum stake a validator must lock when joining the bridge."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"key": "maxStakeAmount",
|
|
273
|
+
"label": "Max Stake",
|
|
274
|
+
"format": "bignum:@{tokenDecimal}",
|
|
275
|
+
"symbol": "${content.tokenInfo.symbol}",
|
|
276
|
+
"tooltip": "Maximum stake a single validator can lock in the bridge."
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"key": "proposerFeeShare",
|
|
280
|
+
"label": "Proposer Fee Share",
|
|
281
|
+
"format": "percent:10000:2",
|
|
282
|
+
"tooltip": "Share of the bridge fee paid to the tx proposer (chain stores 10000 = 100%; e.g. 3000 = 30%). Remainder splits between block publisher and signers."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"key": "publisherFeeShare",
|
|
286
|
+
"label": "Publisher Fee Share",
|
|
287
|
+
"format": "percent:10000:2",
|
|
288
|
+
"tooltip": "Share of the bridge fee paid to the block publisher (10000 = 100%; e.g. 6000 = 60%)."
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"key": "leaveWaitingPeriod",
|
|
292
|
+
"label": "Leave Waiting",
|
|
293
|
+
"format": "duration",
|
|
294
|
+
"tooltip": "Time validators must wait after leaving before staked tokens unlock (chain-stored in seconds; rendered as a human-readable duration)."
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"key": "publishWaitingPeriod",
|
|
298
|
+
"label": "Publish Waiting",
|
|
299
|
+
"format": "duration",
|
|
300
|
+
"tooltip": "Time a non-producer publisher must wait before publishing a block. Publishing earlier slashes the original producer (chain-stored in seconds)."
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"id": "br-card-block",
|
|
306
|
+
"title": "Block Config",
|
|
307
|
+
"fields": [
|
|
308
|
+
{
|
|
309
|
+
"key": "minBlockSize",
|
|
310
|
+
"label": "Min Block Size",
|
|
311
|
+
"format": "number",
|
|
312
|
+
"symbol": "tx",
|
|
313
|
+
"tooltip": "Minimum number of transactions per bridge block."
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"key": "maxBlockSize",
|
|
317
|
+
"label": "Max Block Size",
|
|
318
|
+
"format": "number",
|
|
319
|
+
"symbol": "tx",
|
|
320
|
+
"tooltip": "Maximum number of transactions per bridge block."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"key": "minSignerCount",
|
|
324
|
+
"label": "Min Signer Count",
|
|
325
|
+
"format": "number",
|
|
326
|
+
"tooltip": "Minimum number of validator signatures required to seal a block."
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"key": "maxSignerCount",
|
|
330
|
+
"label": "Max Signer Count",
|
|
331
|
+
"format": "number",
|
|
332
|
+
"tooltip": "Maximum number of validator signatures collected per block."
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"key": "minBlockConfirmation",
|
|
336
|
+
"label": "Min Confirmation",
|
|
337
|
+
"format": "number",
|
|
338
|
+
"tooltip": "Minimum confirmations a foreign-chain tx needs before it can be submitted into the bridge."
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"key": "publishSlashRate",
|
|
342
|
+
"label": "Publish Slash Rate",
|
|
343
|
+
"format": "percent:10000:2",
|
|
344
|
+
"tooltip": "Fraction of the producer's min_stake_amount slashed when a non-producer publishes the block first (10000 = 100%; e.g. 100 = 1%)."
|
|
345
|
+
}
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "br-tabs",
|
|
353
|
+
"type": "view",
|
|
354
|
+
"props": {
|
|
355
|
+
"mode": "tabs"
|
|
356
|
+
},
|
|
357
|
+
"children": [
|
|
358
|
+
{
|
|
359
|
+
"id": "br-tab-deposit",
|
|
360
|
+
"type": "view",
|
|
361
|
+
"props": {
|
|
362
|
+
"tabLabel": "Deposit",
|
|
363
|
+
"tabIcon": "arrow-down",
|
|
364
|
+
"layout": {
|
|
365
|
+
"direction": "column",
|
|
366
|
+
"gap": "none"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"children": [
|
|
370
|
+
{
|
|
371
|
+
"id": "br-deposit-list",
|
|
372
|
+
"type": "afs-list",
|
|
373
|
+
"src": "${_parentPath}/deposits",
|
|
374
|
+
"props": {
|
|
375
|
+
"layout": "table",
|
|
376
|
+
"columns": [
|
|
377
|
+
{
|
|
378
|
+
"key": "content.hash",
|
|
379
|
+
"label": "Hash",
|
|
380
|
+
"format": "did",
|
|
381
|
+
"width": "180px"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"key": "content.sender",
|
|
385
|
+
"label": "Account",
|
|
386
|
+
"format": "did",
|
|
387
|
+
"width": "180px"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"key": "content._itxAmount",
|
|
391
|
+
"label": "Amount",
|
|
392
|
+
"format": "bignum:@{content._itxTokenDecimal}",
|
|
393
|
+
"width": "130px",
|
|
394
|
+
"align": "right"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"key": "content._itxTokenSymbol",
|
|
398
|
+
"label": "Token",
|
|
399
|
+
"width": "80px",
|
|
400
|
+
"navigateTo": "tokens/{value}",
|
|
401
|
+
"linkValueKey": "content._itxTokenAddress"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"key": "content.time",
|
|
405
|
+
"label": "Time",
|
|
406
|
+
"format": "timeago",
|
|
407
|
+
"width": "120px"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"pageSize": 10,
|
|
411
|
+
"pagination": "manual",
|
|
412
|
+
"clickMode": "both",
|
|
413
|
+
"autoSelect": false,
|
|
414
|
+
"filter": {
|
|
415
|
+
"exclude": ".."
|
|
416
|
+
},
|
|
417
|
+
"showBreadcrumb": false
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"id": "br-tab-withdraw",
|
|
424
|
+
"type": "view",
|
|
425
|
+
"props": {
|
|
426
|
+
"tabLabel": "Withdraw",
|
|
427
|
+
"tabIcon": "arrow-up",
|
|
428
|
+
"layout": {
|
|
429
|
+
"direction": "column",
|
|
430
|
+
"gap": "none"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"children": [
|
|
434
|
+
{
|
|
435
|
+
"id": "br-withdraw-list",
|
|
436
|
+
"type": "afs-list",
|
|
437
|
+
"src": "${_parentPath}/withdrawals",
|
|
438
|
+
"props": {
|
|
439
|
+
"layout": "table",
|
|
440
|
+
"columns": [
|
|
441
|
+
{
|
|
442
|
+
"key": "content.hash",
|
|
443
|
+
"label": "Hash",
|
|
444
|
+
"format": "did",
|
|
445
|
+
"width": "180px"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"key": "content.sender",
|
|
449
|
+
"label": "Account",
|
|
450
|
+
"format": "did",
|
|
451
|
+
"width": "180px"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"key": "content._itxAmount",
|
|
455
|
+
"label": "Amount",
|
|
456
|
+
"format": "bignum:@{content._itxTokenDecimal}",
|
|
457
|
+
"width": "130px",
|
|
458
|
+
"align": "right"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"key": "content._itxTokenSymbol",
|
|
462
|
+
"label": "Token",
|
|
463
|
+
"width": "80px",
|
|
464
|
+
"navigateTo": "tokens/{value}",
|
|
465
|
+
"linkValueKey": "content._itxTokenAddress"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"key": "content.time",
|
|
469
|
+
"label": "Time",
|
|
470
|
+
"format": "timeago",
|
|
471
|
+
"width": "120px"
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"pageSize": 10,
|
|
475
|
+
"pagination": "manual",
|
|
476
|
+
"clickMode": "both",
|
|
477
|
+
"autoSelect": false,
|
|
478
|
+
"filter": {
|
|
479
|
+
"exclude": ".."
|
|
480
|
+
},
|
|
481
|
+
"showBreadcrumb": false
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"id": "br-tab-blocks",
|
|
488
|
+
"type": "view",
|
|
489
|
+
"props": {
|
|
490
|
+
"tabLabel": "Blocks",
|
|
491
|
+
"tabIcon": "git-branch",
|
|
492
|
+
"layout": {
|
|
493
|
+
"direction": "column",
|
|
494
|
+
"gap": "none"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"children": [
|
|
498
|
+
{
|
|
499
|
+
"id": "br-block-list",
|
|
500
|
+
"type": "afs-list",
|
|
501
|
+
"src": "${_parentPath}/blocks",
|
|
502
|
+
"props": {
|
|
503
|
+
"layout": "table",
|
|
504
|
+
"columns": [
|
|
505
|
+
{
|
|
506
|
+
"key": "content.height",
|
|
507
|
+
"label": "Height",
|
|
508
|
+
"format": "number",
|
|
509
|
+
"width": "80px",
|
|
510
|
+
"align": "right"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"key": "content.hash",
|
|
514
|
+
"label": "Hash",
|
|
515
|
+
"format": "did",
|
|
516
|
+
"width": "180px"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"key": "content.rewardAmount",
|
|
520
|
+
"label": "Reward",
|
|
521
|
+
"format": "bignum:@{content.tokenDecimal}",
|
|
522
|
+
"width": "120px",
|
|
523
|
+
"align": "right"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"key": "content.proposer",
|
|
527
|
+
"label": "Proposed By",
|
|
528
|
+
"format": "did",
|
|
529
|
+
"width": "160px"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"key": "content.governance",
|
|
533
|
+
"label": "Governance",
|
|
534
|
+
"format": "boolean:Yes:No",
|
|
535
|
+
"width": "100px"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"key": "content.renaissanceTime",
|
|
539
|
+
"label": "Created",
|
|
540
|
+
"format": "timeago",
|
|
541
|
+
"width": "120px"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"pageSize": 10,
|
|
545
|
+
"pagination": "manual",
|
|
546
|
+
"clickMode": "both",
|
|
547
|
+
"autoSelect": false,
|
|
548
|
+
"filter": {
|
|
549
|
+
"exclude": ".."
|
|
550
|
+
},
|
|
551
|
+
"showBreadcrumb": false
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"id": "br-tab-nodes",
|
|
558
|
+
"type": "view",
|
|
559
|
+
"props": {
|
|
560
|
+
"tabLabel": "Nodes",
|
|
561
|
+
"tabIcon": "hard-drive",
|
|
562
|
+
"layout": {
|
|
563
|
+
"direction": "column",
|
|
564
|
+
"gap": "none"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"children": [
|
|
568
|
+
{
|
|
569
|
+
"id": "br-node-list",
|
|
570
|
+
"type": "afs-list",
|
|
571
|
+
"src": "${_parentPath}/nodes",
|
|
572
|
+
"props": {
|
|
573
|
+
"layout": "table",
|
|
574
|
+
"columns": [
|
|
575
|
+
{
|
|
576
|
+
"key": "content.moniker",
|
|
577
|
+
"label": "Moniker",
|
|
578
|
+
"width": "120px"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"key": "content.address",
|
|
582
|
+
"label": "Address",
|
|
583
|
+
"format": "did",
|
|
584
|
+
"width": "160px"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"key": "content._status",
|
|
588
|
+
"label": "Status",
|
|
589
|
+
"format": "colored-badge",
|
|
590
|
+
"colorKey": "content._statusColor",
|
|
591
|
+
"width": "100px"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"key": "content.totalStake",
|
|
595
|
+
"label": "Total Stake",
|
|
596
|
+
"format": "bignum:18",
|
|
597
|
+
"width": "120px",
|
|
598
|
+
"align": "right"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"key": "content.availableStake",
|
|
602
|
+
"label": "Available",
|
|
603
|
+
"format": "bignum:18",
|
|
604
|
+
"width": "120px",
|
|
605
|
+
"align": "right"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"key": "content.proposedBlockCount",
|
|
609
|
+
"label": "Proposed",
|
|
610
|
+
"format": "number",
|
|
611
|
+
"width": "90px",
|
|
612
|
+
"align": "right"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"key": "content.verifiedBlockCount",
|
|
616
|
+
"label": "Verified",
|
|
617
|
+
"format": "number",
|
|
618
|
+
"width": "90px",
|
|
619
|
+
"align": "right"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"key": "content.latestBlockHeight",
|
|
623
|
+
"label": "Latest Block",
|
|
624
|
+
"format": "number",
|
|
625
|
+
"width": "100px",
|
|
626
|
+
"align": "right"
|
|
627
|
+
}
|
|
628
|
+
],
|
|
629
|
+
"pageSize": 20,
|
|
630
|
+
"pagination": "manual",
|
|
631
|
+
"clickMode": "both",
|
|
632
|
+
"autoSelect": false,
|
|
633
|
+
"filter": {
|
|
634
|
+
"exclude": ".."
|
|
635
|
+
},
|
|
636
|
+
"showBreadcrumb": false
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
]
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"id": "br-tab-stakes",
|
|
643
|
+
"type": "view",
|
|
644
|
+
"props": {
|
|
645
|
+
"tabLabel": "Stakes",
|
|
646
|
+
"tabIcon": "shield-check",
|
|
647
|
+
"layout": {
|
|
648
|
+
"direction": "column",
|
|
649
|
+
"gap": "none"
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"children": [
|
|
653
|
+
{
|
|
654
|
+
"id": "br-stake-list",
|
|
655
|
+
"type": "afs-list",
|
|
656
|
+
"src": "${_parentPath}/stakes",
|
|
657
|
+
"props": {
|
|
658
|
+
"layout": "table",
|
|
659
|
+
"columns": [
|
|
660
|
+
{
|
|
661
|
+
"key": "content.address",
|
|
662
|
+
"label": "Address",
|
|
663
|
+
"format": "did",
|
|
664
|
+
"width": "200px"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"key": "content.sender",
|
|
668
|
+
"label": "Sender",
|
|
669
|
+
"format": "did",
|
|
670
|
+
"width": "180px"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"key": "content.receiver",
|
|
674
|
+
"label": "Receiver",
|
|
675
|
+
"format": "did",
|
|
676
|
+
"width": "180px"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"key": "content.message",
|
|
680
|
+
"label": "Message",
|
|
681
|
+
"width": "200px"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"key": "content.genesisTime",
|
|
685
|
+
"label": "Created",
|
|
686
|
+
"format": "timeago",
|
|
687
|
+
"width": "120px"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"key": "content.renaissanceTime",
|
|
691
|
+
"label": "Updated",
|
|
692
|
+
"hideBelow": "tablet-wide",
|
|
693
|
+
"format": "timeago",
|
|
694
|
+
"width": "120px"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"pageSize": 10,
|
|
698
|
+
"pagination": "manual",
|
|
699
|
+
"clickMode": "both",
|
|
700
|
+
"autoSelect": false,
|
|
701
|
+
"filter": {
|
|
702
|
+
"exclude": ".."
|
|
703
|
+
},
|
|
704
|
+
"showBreadcrumb": false
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"id": "br-tab-governance",
|
|
711
|
+
"type": "view",
|
|
712
|
+
"props": {
|
|
713
|
+
"tabLabel": "Governance",
|
|
714
|
+
"tabIcon": "book-open",
|
|
715
|
+
"layout": {
|
|
716
|
+
"direction": "column",
|
|
717
|
+
"gap": "none"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"children": [
|
|
721
|
+
{
|
|
722
|
+
"id": "br-governance-list",
|
|
723
|
+
"type": "afs-list",
|
|
724
|
+
"src": "${_parentPath}/governance",
|
|
725
|
+
"props": {
|
|
726
|
+
"layout": "table",
|
|
727
|
+
"columns": [
|
|
728
|
+
{
|
|
729
|
+
"key": "content.hash",
|
|
730
|
+
"label": "Hash",
|
|
731
|
+
"format": "did",
|
|
732
|
+
"width": "180px"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"key": "content._typeName",
|
|
736
|
+
"label": "Type",
|
|
737
|
+
"format": "colored-badge",
|
|
738
|
+
"colorKey": "content._methodColor",
|
|
739
|
+
"width": "150px"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"key": "content.sender",
|
|
743
|
+
"label": "From",
|
|
744
|
+
"format": "did",
|
|
745
|
+
"width": "150px"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"label": "",
|
|
749
|
+
"format": "direction-pill",
|
|
750
|
+
"pillContextKey": "content._currentAccount",
|
|
751
|
+
"pillSenderKey": "content.sender",
|
|
752
|
+
"pillReceiverKey": "content.receiver",
|
|
753
|
+
"width": "60px",
|
|
754
|
+
"align": "center"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"key": "content.receiver",
|
|
758
|
+
"label": "To",
|
|
759
|
+
"format": "did",
|
|
760
|
+
"width": "150px"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"key": "content.value",
|
|
764
|
+
"label": "Value",
|
|
765
|
+
"format": "bignum:@{content.decimal}",
|
|
766
|
+
"symbol": "@{content.symbol}",
|
|
767
|
+
"width": "150px",
|
|
768
|
+
"align": "right"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"key": "content._gasFeeRaw",
|
|
772
|
+
"label": "Fee",
|
|
773
|
+
"hideBelow": "tablet-wide",
|
|
774
|
+
"format": "bignum:18",
|
|
775
|
+
"symbol": "ABT",
|
|
776
|
+
"strikethrough": "@{content._gasExempted}",
|
|
777
|
+
"width": "120px",
|
|
778
|
+
"align": "right"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"key": "content.time",
|
|
782
|
+
"label": "Time",
|
|
783
|
+
"format": "timeago",
|
|
784
|
+
"width": "120px"
|
|
785
|
+
}
|
|
786
|
+
],
|
|
787
|
+
"pageSize": 10,
|
|
788
|
+
"pagination": "manual",
|
|
789
|
+
"clickMode": "both",
|
|
790
|
+
"autoSelect": false,
|
|
791
|
+
"filter": {
|
|
792
|
+
"exclude": ".."
|
|
793
|
+
},
|
|
794
|
+
"showBreadcrumb": false
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
]
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"id": "br-tab-slash",
|
|
801
|
+
"type": "view",
|
|
802
|
+
"props": {
|
|
803
|
+
"tabLabel": "Slash",
|
|
804
|
+
"tabIcon": "alert-triangle",
|
|
805
|
+
"layout": {
|
|
806
|
+
"direction": "column",
|
|
807
|
+
"gap": "none"
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"children": [
|
|
811
|
+
{
|
|
812
|
+
"id": "br-slash-list",
|
|
813
|
+
"type": "afs-list",
|
|
814
|
+
"src": "${_parentPath}/slashes",
|
|
815
|
+
"props": {
|
|
816
|
+
"layout": "table",
|
|
817
|
+
"columns": [
|
|
818
|
+
{
|
|
819
|
+
"key": "content._slashBlockHeight",
|
|
820
|
+
"label": "Block Height",
|
|
821
|
+
"format": "number",
|
|
822
|
+
"width": "110px",
|
|
823
|
+
"align": "right"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"key": "content._slashedNode",
|
|
827
|
+
"label": "Slashed Node",
|
|
828
|
+
"format": "did",
|
|
829
|
+
"navigateTo": "accounts/{value}",
|
|
830
|
+
"width": "180px"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"key": "content._slashAmount",
|
|
834
|
+
"label": "Slash Amount",
|
|
835
|
+
"format": "bignum:18",
|
|
836
|
+
"symbol": "ABT",
|
|
837
|
+
"width": "150px",
|
|
838
|
+
"align": "right"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"key": "content.hash",
|
|
842
|
+
"label": "Tx",
|
|
843
|
+
"format": "did",
|
|
844
|
+
"width": "180px"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"key": "content.time",
|
|
848
|
+
"label": "Time",
|
|
849
|
+
"format": "timeago",
|
|
850
|
+
"width": "120px"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"pageSize": 10,
|
|
854
|
+
"pagination": "manual",
|
|
855
|
+
"clickMode": "both",
|
|
856
|
+
"autoSelect": false,
|
|
857
|
+
"filter": {
|
|
858
|
+
"exclude": ".."
|
|
859
|
+
},
|
|
860
|
+
"showBreadcrumb": false
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
]
|
|
864
|
+
}
|
|
865
|
+
]
|
|
866
|
+
}
|
|
867
|
+
]
|
|
868
|
+
}
|