Skip to content

Commit afa4653

Browse files
committed
!fix: details keys
1 parent e0443e4 commit afa4653

File tree

9 files changed

+48
-48
lines changed

9 files changed

+48
-48
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Follow the following steps to add a Decoding logic for an event from a contract
172172
};
173173
}[];
174174
details?: {
175-
title: string;
175+
heading: string;
176176
value: string;
177177
type: "address" | "text";
178178
}[];

services/decoder/decoder.types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type Configs = {
1717
}[];
1818

1919
export type EventDetails = {
20-
title: string;
20+
heading: string;
2121
value: string;
2222
type: "address" | "text";
2323
}[];

services/decoder/fallbacks/transfer/transfer.fallback.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ GoldRushDecoder.fallback(
6464

6565
const details: EventDetails = [
6666
{
67-
title: "From",
67+
heading: "From",
6868
value: decoded.from,
6969
type: "address",
7070
},
7171
{
72-
title: "To",
72+
heading: "To",
7373
value: decoded.to,
7474
type: "address",
7575
},

services/decoder/protocols/4337-entry-point/4337-entry-point.decoders.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,33 @@ GoldRushDecoder.on(
4343
},
4444
details: [
4545
{
46-
title: "Gas Cost",
46+
heading: "Gas Cost",
4747
value: (
4848
decoded.actualGasCost /
4949
BigInt(Math.pow(10, sender_contract_decimals))
5050
).toString(),
5151
type: "text",
5252
},
5353
{
54-
title: "Gas Used",
54+
heading: "Gas Used",
5555
value: (
5656
decoded.actualGasUsed /
5757
BigInt(Math.pow(10, sender_contract_decimals))
5858
).toString(),
5959
type: "text",
6060
},
6161
{
62-
title: "Paymaster",
62+
heading: "Paymaster",
6363
value: decoded.paymaster,
6464
type: "address",
6565
},
6666
{
67-
title: "Sender",
67+
heading: "Sender",
6868
value: decoded.sender,
6969
type: "address",
7070
},
7171
{
72-
title: "User Operation Hash",
72+
heading: "User Operation Hash",
7373
value: decoded.userOpHash,
7474
type: "address",
7575
},

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

+26-26
Original file line numberDiff line numberDiff line change
@@ -51,35 +51,35 @@ GoldRushDecoder.on(
5151

5252
const details: EventDetails = [
5353
{
54-
title: "Reserve",
54+
heading: "Reserve",
5555
value: decoded.reserve,
5656
type: "address",
5757
},
5858
{
59-
title: "User",
59+
heading: "User",
6060
value: decoded.user,
6161
type: "address",
6262
},
6363
{
64-
title: "On Behalf Of",
64+
heading: "On Behalf Of",
6565
value: decoded.onBehalfOf,
6666
type: "address",
6767
},
6868
{
69-
title: "Borrow Rate",
69+
heading: "Borrow Rate",
7070
value:
7171
new Intl.NumberFormat().format(
7272
(Number(decoded.borrowRate) / 1e27) * 100
7373
) + " %",
7474
type: "text",
7575
},
7676
{
77-
title: "Interest Rate Mode",
77+
heading: "Interest Rate Mode",
7878
value: INTEREST_RATE_MODE[decoded.interestRateMode],
7979
type: "text",
8080
},
8181
{
82-
title: "Referal Code",
82+
heading: "Referal Code",
8383
value: String(decoded.referralCode),
8484
type: "text",
8585
},
@@ -179,22 +179,22 @@ GoldRushDecoder.on(
179179

180180
const details: EventDetails = [
181181
{
182-
title: "Target",
182+
heading: "Target",
183183
value: decoded.target,
184184
type: "address",
185185
},
186186
{
187-
title: "Initiator",
187+
heading: "Initiator",
188188
value: decoded.initiator,
189189
type: "address",
190190
},
191191
{
192-
title: "Asset",
192+
heading: "Asset",
193193
value: decoded.asset,
194194
type: "address",
195195
},
196196
{
197-
title: "Interest Rate Mode",
197+
heading: "Interest Rate Mode",
198198
value: INTEREST_RATE_MODE[decoded.interestRateMode],
199199
type: "text",
200200
},
@@ -283,27 +283,27 @@ GoldRushDecoder.on(
283283

284284
const details: EventDetails = [
285285
{
286-
title: "Collateral Asset",
286+
heading: "Collateral Asset",
287287
value: decoded.collateralAsset,
288288
type: "address",
289289
},
290290
{
291-
title: "Debt Asset",
291+
heading: "Debt Asset",
292292
value: decoded.debtAsset,
293293
type: "address",
294294
},
295295
{
296-
title: "User",
296+
heading: "User",
297297
value: decoded.user,
298298
type: "address",
299299
},
300300
{
301-
title: "Liquidator",
301+
heading: "Liquidator",
302302
value: decoded.liquidator,
303303
type: "address",
304304
},
305305
{
306-
title: "Receive A Token",
306+
heading: "Receive A Token",
307307
value: decoded.receiveAToken ? "Yes" : "No",
308308
type: "text",
309309
},
@@ -408,22 +408,22 @@ GoldRushDecoder.on(
408408

409409
const details: EventDetails = [
410410
{
411-
title: "Reserve",
411+
heading: "Reserve",
412412
value: decoded.reserve,
413413
type: "address",
414414
},
415415
{
416-
title: "User",
416+
heading: "User",
417417
value: decoded.user,
418418
type: "address",
419419
},
420420
{
421-
title: "Repayer",
421+
heading: "Repayer",
422422
value: decoded.repayer,
423423
type: "address",
424424
},
425425
{
426-
title: "Use A Tokens",
426+
heading: "Use A Tokens",
427427
value: decoded.useATokens ? "Yes" : "No",
428428
type: "text",
429429
},
@@ -508,22 +508,22 @@ GoldRushDecoder.on(
508508

509509
const details: EventDetails = [
510510
{
511-
title: "Reserve",
511+
heading: "Reserve",
512512
value: decoded.reserve,
513513
type: "address",
514514
},
515515
{
516-
title: "User",
516+
heading: "User",
517517
value: decoded.user,
518518
type: "address",
519519
},
520520
{
521-
title: "On Behalf Of",
521+
heading: "On Behalf Of",
522522
value: decoded.onBehalfOf,
523523
type: "address",
524524
},
525525
{
526-
title: "Referal Code",
526+
heading: "Referal Code",
527527
value: String(decoded.referralCode),
528528
type: "text",
529529
},
@@ -604,17 +604,17 @@ GoldRushDecoder.on(
604604

605605
const details: EventDetails = [
606606
{
607-
title: "Reserve",
607+
heading: "Reserve",
608608
value: decoded.reserve,
609609
type: "address",
610610
},
611611
{
612-
title: "User",
612+
heading: "User",
613613
value: decoded.user,
614614
type: "address",
615615
},
616616
{
617-
title: "To",
617+
heading: "To",
618618
value: decoded.to,
619619
type: "address",
620620
},

services/decoder/protocols/covalent-network/covalent-network.decoders.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ GoldRushDecoder.on(
4141
},
4242
details: [
4343
{
44-
title: "Specimen Hash",
44+
heading: "Specimen Hash",
4545
value: decoded.specimenHash,
4646
type: "address",
4747
},
4848
{
49-
title: "Storage URL",
49+
heading: "Storage URL",
5050
value: decoded.storageURL,
5151
type: "text",
5252
},
5353
{
54-
title: "Submitted Stake",
54+
heading: "Submitted Stake",
5555
value: (
5656
decoded.submittedStake / BigInt(Math.pow(10, 18))
5757
).toString(),

services/decoder/protocols/opensea/opensea.decoders.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ GoldRushDecoder.on(
6262
const nfts: EventNFTs = [];
6363
const details: EventDetails = [
6464
{
65-
title: "Offerer",
65+
heading: "Offerer",
6666
value: decoded.offerer,
6767
type: "address",
6868
},
6969
{
70-
title: "Recipient",
70+
heading: "Recipient",
7171
value: decoded.recipient,
7272
type: "address",
7373
},
7474
{
75-
title: "Order Hash",
75+
heading: "Order Hash",
7676
value: decoded.orderHash,
7777
type: "address",
7878
},

services/decoder/protocols/paraswap-v5/paraswap-v5.decoders.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,22 @@ GoldRushDecoder.on(
5555

5656
const details: EventDetails = [
5757
{
58-
title: "UUID",
58+
heading: "UUID",
5959
value: decoded.uuid,
6060
type: "text",
6161
},
6262
{
63-
title: "Beneficiary",
63+
heading: "Beneficiary",
6464
value: decoded.beneficiary,
6565
type: "address",
6666
},
6767
{
68-
title: "Initiator",
68+
heading: "Initiator",
6969
value: decoded.initiator,
7070
type: "address",
7171
},
7272
{
73-
title: "Expected Amount",
73+
heading: "Expected Amount",
7474
value: calculatePrettyBalance(
7575
decoded.expectedAmount,
7676
destToken?.[0]?.contract_decimals ?? 0

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ GoldRushDecoder.on(
109109
},
110110
details: [
111111
{
112-
title: "Sender",
112+
heading: "Sender",
113113
type: "address",
114114
value: decoded.sender,
115115
},
116116
{
117-
title: "To",
117+
heading: "To",
118118
type: "address",
119119
value: decoded.to,
120120
},
@@ -206,7 +206,7 @@ GoldRushDecoder.on(
206206
},
207207
details: [
208208
{
209-
title: "Sender",
209+
heading: "Sender",
210210
type: "address",
211211
value: decoded.sender,
212212
},

0 commit comments

Comments
 (0)