Skip to content

Commit d5c6bc4

Browse files
committed
nit
1 parent 0ca5521 commit d5c6bc4

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "",
1515
"license": "ISC",
1616
"dependencies": {
17-
"@covalenthq/client-sdk": "^0.8.5",
17+
"@covalenthq/client-sdk": "^0.8.7",
1818
"cors": "^2.8.5",
1919
"dotenv": "^16.3.1",
2020
"enquirer": "^2.4.1",

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ GoldRushDecoder.on(
3838
name: "User Operation Event",
3939
protocol: {
4040
logo: log.sender_logo_url as string,
41-
name: log.sender_name as string,
41+
name: "4337 Entry Point",
4242
},
4343
details: [
4444
{
@@ -70,7 +70,7 @@ GoldRushDecoder.on(
7070
{
7171
title: "User Operation Hash",
7272
value: decoded.userOpHash,
73-
type: "text",
73+
type: "address",
7474
},
7575
],
7676
};

services/decoder/protocols/grindery-one/grindery-one.decoders.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GoldRushDecoder.on(
1212
["matic-mainnet"],
1313
ABI as Abi,
1414
async (log, chain_name, covalent_client): Promise<EventType> => {
15-
const { raw_log_data, raw_log_topics, sender_contract_decimals } = log;
15+
const { raw_log_data, raw_log_topics } = log;
1616

1717
const { args: decoded } = decodeEventLog({
1818
abi: ABI,
@@ -47,13 +47,15 @@ GoldRushDecoder.on(
4747
value: decoded.to,
4848
type: "address",
4949
},
50+
],
51+
tokens: [
5052
{
51-
title: "Value",
52-
value: (
53-
decoded.value /
54-
BigInt(Math.pow(10, sender_contract_decimals))
55-
).toString(),
56-
type: "text",
53+
decimals: log.sender_contract_decimals,
54+
heading: "Token Amount",
55+
pretty_quote: "",
56+
ticker_logo: log.sender_logo_url,
57+
ticker_symbol: log.sender_contract_ticker_symbol,
58+
value: decoded.value.toString(),
5759
},
5860
],
5961
};

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,10 @@
314314
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
315315
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
316316

317-
"@covalenthq/client-sdk@^0.8.5":
318-
version "0.8.5"
319-
resolved "https://registry.yarnpkg.com/@covalenthq/client-sdk/-/client-sdk-0.8.5.tgz#36a72239af37690a340a2f9f5818939ebb53d701"
320-
integrity sha512-iAaAqCdthoVe3qHcckxOkZ/dPAhlJiT3SKcDGl/bY7EttkrGuMD7ZRG9lbMBHCEO73upsTOL0QyT88K55w/jig==
317+
"@covalenthq/client-sdk@^0.8.7":
318+
version "0.8.7"
319+
resolved "https://registry.yarnpkg.com/@covalenthq/client-sdk/-/client-sdk-0.8.7.tgz#ff59da4ac5abeb3a8e96a17946f70c01a81671b3"
320+
integrity sha512-SEUisC1057tHsfqUZejq6yqsgNlWf0iJUx2rzP0GsZ+iUBkbsvr6qUE2JVMBVa6QkezyWoN9xeB8kTiHc6Y9RA==
321321
dependencies:
322322
"@rollup/plugin-commonjs" "^25.0.4"
323323
"@rollup/plugin-node-resolve" "^15.2.1"

0 commit comments

Comments
 (0)