Skip to content

Commit 5b44dad

Browse files
committed
fix lint errors
1 parent 757b48a commit 5b44dad

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

services/decoder/protocols/blur/blur.decoders.ts

+45-45
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ GoldRushDecoder.on(
2323

2424
enum SIDE {
2525
"BUY" = 0,
26-
"SELL" = 1
26+
"SELL" = 1,
2727
}
2828

2929
const { args: decoded } = decodeEventLog({
3030
abi: ABI,
3131
topics: raw_log_topics as [],
3232
data: raw_log_data as `0x${string}`,
3333
eventName: "OrdersMatched",
34-
}) as {
34+
}) as {
3535
eventName: "OrdersMatched";
3636
args: {
3737
maker: string;
@@ -53,9 +53,9 @@ GoldRushDecoder.on(
5353
}[];
5454
salt: bigint;
5555
extraParams: string;
56-
};
57-
sellHash: string;
58-
buy: {
56+
};
57+
sellHash: string;
58+
buy: {
5959
trader: string;
6060
side: SIDE;
6161
matchingPolicy: string;
@@ -72,8 +72,8 @@ GoldRushDecoder.on(
7272
}[];
7373
salt: bigint;
7474
extraParams: string;
75-
};
76-
buyHash: string;
75+
};
76+
buyHash: string;
7777
}
7878
};
7979

@@ -104,14 +104,14 @@ GoldRushDecoder.on(
104104

105105
const date = TimestampParser(block_signed_at, "YYYY-MM-DD");
106106
const { data: tokenPriceData } = await covalent_client.PricingService.getTokenPrices(
107-
chain_name,
108-
"USD",
109-
decoded.sell.collection || decoded.buy.collection,
110-
{
111-
from: date,
112-
to: date,
113-
}
114-
);
107+
chain_name,
108+
"USD",
109+
decoded.sell.collection || decoded.buy.collection,
110+
{
111+
from: date,
112+
to: date,
113+
}
114+
);
115115
tokens.push({
116116
heading: `Matched to ${decoded.buy.trader}`,
117117
value: decoded.sell.amount.toString() || decoded.buy.amount.toString(),
@@ -120,12 +120,12 @@ GoldRushDecoder.on(
120120
?.contract_decimals ?? 18,
121121
pretty_quote: prettifyCurrency(
122122
tokenPriceData?.[0]?.items?.[0]?.price *
123-
(Number(decoded.sell.amount.toString() || decoded.buy.amount.toString()) /
124-
Math.pow(
125-
10,
126-
tokenPriceData?.[0]?.items?.[0]?.contract_metadata
127-
?.contract_decimals ?? 18
128-
))
123+
(Number(decoded.sell.amount.toString() || decoded.buy.amount.toString()) /
124+
Math.pow(
125+
10,
126+
tokenPriceData?.[0]?.items?.[0]?.contract_metadata
127+
?.contract_decimals ?? 18
128+
))
129129
),
130130
ticker_symbol:
131131
tokenPriceData?.[0]?.items?.[0]?.contract_metadata
@@ -143,30 +143,30 @@ GoldRushDecoder.on(
143143
withUncached: true,
144144
}
145145
);
146-
nfts.push({
147-
heading: `Matched to ${decoded.buy.trader}`,
148-
collection_address: data?.items?.[0]?.contract_address,
149-
collection_name:
150-
data?.items?.[0]?.nft_data?.external_data?.name ||
151-
null,
152-
token_identifier:
153-
data?.items?.[0]?.nft_data?.token_id?.toString() ||
154-
null,
155-
images: {
156-
"1024":
157-
data?.items?.[0]?.nft_data?.external_data
158-
?.image_1024 || null,
159-
"512":
160-
data?.items?.[0]?.nft_data?.external_data
161-
?.image_512 || null,
162-
"256":
163-
data?.items?.[0]?.nft_data?.external_data
164-
?.image_256 || null,
165-
default:
166-
data?.items?.[0]?.nft_data?.external_data
167-
?.image || null,
168-
},
169-
});
146+
nfts.push({
147+
heading: `Matched to ${decoded.buy.trader}`,
148+
collection_address: data?.items?.[0]?.contract_address,
149+
collection_name:
150+
data?.items?.[0]?.nft_data?.external_data?.name ||
151+
null,
152+
token_identifier:
153+
data?.items?.[0]?.nft_data?.token_id?.toString() ||
154+
null,
155+
images: {
156+
"1024":
157+
data?.items?.[0]?.nft_data?.external_data
158+
?.image_1024 || null,
159+
"512":
160+
data?.items?.[0]?.nft_data?.external_data
161+
?.image_512 || null,
162+
"256":
163+
data?.items?.[0]?.nft_data?.external_data
164+
?.image_256 || null,
165+
default:
166+
data?.items?.[0]?.nft_data?.external_data
167+
?.image || null,
168+
},
169+
});
170170

171171
return {
172172
action: DECODED_ACTION.SWAPPED,

0 commit comments

Comments
 (0)