Skip to content

Commit 4f736a4

Browse files
Add avalanche chain support for some protocols
1 parent 26cb24f commit 4f736a4

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ const configs: Configs = [
77
is_factory: false,
88
network: "matic-mainnet",
99
},
10+
{
11+
protocol_name: "4337-entry-point",
12+
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
13+
is_factory: false,
14+
network: "avalanche-mainnet",
15+
},
1016
];
1117

1218
export default configs;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import ABI from "./abis/4337-entry-point.abi.json";
99

1010
GoldRushDecoder.on(
1111
"4337-entry-point:UserOperationEvent",
12-
["matic-mainnet"],
12+
["matic-mainnet", "avalanche-mainnet"],
1313
ABI as Abi,
1414
async (log_event, tx, chain_name, covalent_client): Promise<EventType> => {
1515
const { raw_log_data, raw_log_topics, sender_contract_decimals } =

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

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ const configs: Configs = [
1313
protocol_name: "paraswap-v5",
1414
network: "matic-mainnet",
1515
},
16+
{
17+
address: "0xdef171fe48cf0115b1d80b88dc8eab59176fee57",
18+
is_factory: false,
19+
protocol_name: "paraswap-v5",
20+
network: "avalanche-mainnet",
21+
},
1622
];
1723

1824
export default configs;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717

1818
GoldRushDecoder.on(
1919
"paraswap-v5:SwappedV3",
20-
["eth-mainnet", "matic-mainnet"],
20+
["eth-mainnet", "matic-mainnet", "avalanche-mainnet"],
2121
SimpleSwapABI as Abi,
2222
async (log_event, tx, chain_name, covalent_client): Promise<EventType> => {
2323
const { raw_log_data, raw_log_topics } = log_event;

0 commit comments

Comments
 (0)