Skip to content

Commit 48ba9bc

Browse files
committed
Made Headings more user friendly
1 parent 3ea438f commit 48ba9bc

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

services/decoder/protocols/uniswap-v3/uniswap-v3.decoders.ts

+48-48
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@ GoldRushDecoder.on(
3636

3737
const details: EventDetails = [
3838
{
39-
heading: "token0",
39+
heading: "Token 0",
4040
value: decoded.token0,
4141
type: "address",
4242
},
4343
{
44-
heading: "token1",
44+
heading: "Token 1",
4545
value: decoded.token0,
4646
type: "address",
4747
},
4848
{
49-
heading: "fee",
49+
heading: "Fee",
5050
value:
5151
new Intl.NumberFormat().format(Number(decoded.fee) / 1e4) +
5252
"%",
5353
type: "text",
5454
},
5555
{
56-
heading: "tickSpacing",
56+
heading: "Tick Spacing",
5757
value: decoded.tickSpacing.toString(),
5858
type: "text",
5959
},
6060
{
61-
heading: "pool",
61+
heading: "Pool",
6262
value: decoded.pool,
6363
type: "address",
6464
},
@@ -147,32 +147,32 @@ GoldRushDecoder.on(
147147

148148
const details: EventDetails = [
149149
{
150-
heading: "owner",
150+
heading: "Owner",
151151
value: decoded.owner,
152152
type: "address",
153153
},
154154
{
155-
heading: "tickLower",
155+
heading: "Tick Lower",
156156
value: decoded.tickLower.toString(),
157157
type: "text",
158158
},
159159
{
160-
heading: "tickUpper",
160+
heading: "Tick Upper",
161161
value: decoded.tickUpper.toString(),
162162
type: "text",
163163
},
164164
{
165-
heading: "amount",
165+
heading: "Amount",
166166
value: decoded.amount.toString(),
167167
type: "text",
168168
},
169169
{
170-
heading: "amount0",
170+
heading: "Amount 0",
171171
value: decoded.amount0.toString(),
172172
type: "text",
173173
},
174174
{
175-
heading: "amount1",
175+
heading: "Amount 1",
176176
value: decoded.amount1.toString(),
177177
type: "text",
178178
},
@@ -218,37 +218,37 @@ GoldRushDecoder.on(
218218

219219
const details: EventDetails = [
220220
{
221-
heading: "sender",
221+
heading: "Sender",
222222
value: decoded.sender,
223223
type: "address",
224224
},
225225
{
226-
heading: "owner",
226+
heading: "Owner",
227227
value: decoded.owner,
228228
type: "address",
229229
},
230230
{
231-
heading: "tickLower",
231+
heading: "Tick Lower",
232232
value: decoded.tickLower.toString(),
233233
type: "text",
234234
},
235235
{
236-
heading: "tickUpper",
236+
heading: "Tick Upper",
237237
value: decoded.tickUpper.toString(),
238238
type: "text",
239239
},
240240
{
241-
heading: "amount",
241+
heading: "Amount",
242242
value: decoded.amount.toString(),
243243
type: "text",
244244
},
245245
{
246-
heading: "amount0",
246+
heading: "Amount 0",
247247
value: decoded.amount0.toString(),
248248
type: "text",
249249
},
250250
{
251-
heading: "amount1",
251+
heading: "Amount 1",
252252
value: decoded.amount1.toString(),
253253
type: "text",
254254
},
@@ -294,22 +294,22 @@ GoldRushDecoder.on(
294294

295295
const details: EventDetails = [
296296
{
297-
heading: "sender",
297+
heading: "Sender",
298298
value: decoded.sender,
299299
type: "address",
300300
},
301301
{
302-
heading: "recipient",
302+
heading: "Recipient",
303303
value: decoded.recipient,
304304
type: "address",
305305
},
306306
{
307-
heading: "amount0",
307+
heading: "Amount 0",
308308
value: decoded.amount0.toString(),
309309
type: "text",
310310
},
311311
{
312-
heading: "amount1",
312+
heading: "Amount 1",
313313
value: decoded.amount1.toString(),
314314
type: "text",
315315
},
@@ -319,12 +319,12 @@ GoldRushDecoder.on(
319319
type: "text",
320320
},
321321
{
322-
heading: "liquidity",
322+
heading: "Liquidity",
323323
value: decoded.liquidity.toString(),
324324
type: "text",
325325
},
326326
{
327-
heading: "tick",
327+
heading: "Tick",
328328
value: decoded.tick.toString(),
329329
type: "text",
330330
},
@@ -369,32 +369,32 @@ GoldRushDecoder.on(
369369

370370
const details: EventDetails = [
371371
{
372-
heading: "owner",
372+
heading: "Owner",
373373
value: decoded.owner,
374374
type: "address",
375375
},
376376
{
377-
heading: "recipient",
377+
heading: "Recipient",
378378
value: decoded.recipient,
379379
type: "address",
380380
},
381381
{
382-
heading: "tickLower",
382+
heading: "Tick Lower",
383383
value: decoded.tickLower.toString(),
384384
type: "text",
385385
},
386386
{
387-
heading: "tickUpper",
387+
heading: "Tick Upper",
388388
value: decoded.tickUpper.toString(),
389389
type: "text",
390390
},
391391
{
392-
heading: "amount0",
392+
heading: "Amount 0",
393393
value: decoded.amount0.toString(),
394394
type: "text",
395395
},
396396
{
397-
heading: "amount1",
397+
heading: "Amount 1",
398398
value: decoded.amount1.toString(),
399399
type: "text",
400400
},
@@ -439,32 +439,32 @@ GoldRushDecoder.on(
439439

440440
const details: EventDetails = [
441441
{
442-
heading: "sender",
442+
heading: "Sender",
443443
value: decoded.sender,
444444
type: "address",
445445
},
446446
{
447-
heading: "recipient",
447+
heading: "Recipient",
448448
value: decoded.recipient,
449449
type: "address",
450450
},
451451
{
452-
heading: "amount0",
452+
heading: "Amount 0",
453453
value: decoded.amount0.toString(),
454454
type: "text",
455455
},
456456
{
457-
heading: "amount1",
457+
heading: "Amount 1",
458458
value: decoded.amount1.toString(),
459459
type: "text",
460460
},
461461
{
462-
heading: "paid0",
462+
heading: "Paid 0",
463463
value: decoded.paid0.toString(),
464464
type: "text",
465465
},
466466
{
467-
heading: "paid1",
467+
heading: "Paid 1",
468468
value: decoded.paid1.toString(),
469469
type: "text",
470470
},
@@ -507,22 +507,22 @@ GoldRushDecoder.on(
507507

508508
const details: EventDetails = [
509509
{
510-
heading: "tokenId",
510+
heading: "Token ID",
511511
value: decoded.tokenId.toString(),
512512
type: "text",
513513
},
514514
{
515-
heading: "liquidity",
515+
heading: "Liquidity",
516516
value: decoded.liquidity.toString(),
517517
type: "text",
518518
},
519519
{
520-
heading: "amount0",
520+
heading: "Amount 0",
521521
value: decoded.amount0.toString(),
522522
type: "text",
523523
},
524524
{
525-
heading: "amount1",
525+
heading: "Amount 1",
526526
value: decoded.amount1.toString(),
527527
type: "text",
528528
},
@@ -565,22 +565,22 @@ GoldRushDecoder.on(
565565

566566
const details: EventDetails = [
567567
{
568-
heading: "tokenId",
568+
heading: "Token ID",
569569
value: decoded.tokenId.toString(),
570570
type: "text",
571571
},
572572
{
573-
heading: "liquidity",
573+
heading: "Liquidity",
574574
value: decoded.liquidity.toString(),
575575
type: "text",
576576
},
577577
{
578-
heading: "amount0",
578+
heading: "Amount 0",
579579
value: decoded.amount0.toString(),
580580
type: "text",
581581
},
582582
{
583-
heading: "amount1",
583+
heading: "Amount 1",
584584
value: decoded.amount1.toString(),
585585
type: "text",
586586
},
@@ -623,22 +623,22 @@ GoldRushDecoder.on(
623623

624624
const details: EventDetails = [
625625
{
626-
heading: "tokenId",
626+
heading: "Token ID",
627627
value: decoded.tokenId.toString(),
628628
type: "text",
629629
},
630630
{
631-
heading: "recipient",
631+
heading: "Recipient",
632632
value: decoded.recipient,
633633
type: "address",
634634
},
635635
{
636-
heading: "amount0",
636+
heading: "Amount 0",
637637
value: decoded.amount0.toString(),
638638
type: "text",
639639
},
640640
{
641-
heading: "amount1",
641+
heading: "Amount 1",
642642
value: decoded.amount1.toString(),
643643
type: "text",
644644
},

0 commit comments

Comments
 (0)