Skip to content

Commit 7d1d33a

Browse files
authored
Merge pull request #283 from spiehdid/master
Add new chains to eywa
2 parents 364cde5 + d9ead86 commit 7d1d33a

File tree

2 files changed

+27
-42
lines changed

2 files changed

+27
-42
lines changed

src/adapters/eywa/index.ts

+12-41
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,13 @@ enum Chains {
1010
ethereum = "ethereum",
1111
optimism = "optimism",
1212
base = "base",
13-
gnosis = "xdai"
13+
gnosis = "xdai",
14+
blast = "blast",
15+
linea = "linea",
16+
mantle = "mantle",
17+
taiko = "taiko",
1418
}
1519

16-
const contractAddresses = {
17-
[Chains.arbitrum]: {
18-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
19-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
20-
},
21-
[Chains.bsc]: {
22-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
23-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
24-
},
25-
[Chains.polygon]: {
26-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
27-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
28-
},
29-
[Chains.avax]: {
30-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
31-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
32-
},
33-
[Chains.fantom]: {
34-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
35-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
36-
},
37-
[Chains.ethereum]: {
38-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
39-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
40-
},
41-
[Chains.optimism]: {
42-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
43-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
44-
},
45-
[Chains.base]: {
46-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
47-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
48-
},
49-
[Chains.gnosis]: {
50-
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
51-
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
52-
},
53-
};
54-
5520
const depositPortalEventParams: ContractEventParams = {
5621
target: "",
5722
topic: "Locked(address,uint256,address,address)",
@@ -136,7 +101,9 @@ const mintSynthesisEventParams: ContractEventParams = {
136101
};
137102

138103
const constructParams = (chain: Chains) => {
139-
const { portal, synthesis } = contractAddresses[chain];
104+
const portal = "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe";
105+
const synthesis = "0xf370D9Ed0141207e81321158393Eea5D8a50CC72";
106+
140107
const eventParams: ContractEventParams[] = [
141108
{
142109
...depositPortalEventParams,
@@ -179,6 +146,10 @@ const adapter: BridgeAdapter = {
179146
avalanche: constructParams(Chains.avax),
180147
[Chains.base]: constructParams(Chains.base),
181148
[Chains.gnosis]: constructParams(Chains.gnosis),
149+
[Chains.blast]: constructParams(Chains.blast),
150+
[Chains.linea]: constructParams(Chains.linea),
151+
[Chains.mantle]: constructParams(Chains.mantle),
152+
[Chains.taiko]: constructParams(Chains.taiko),
182153
};
183154

184155
export default adapter;

src/data/bridgeNetworkData.ts

+15-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,21 @@ export default [
764764
iconLink: "icons:eywa",
765765
largeTxThreshold: 10000,
766766
url: "https://crosscurve.fi/",
767-
chains: ["Ethereum", "Polygon", "Fantom", "Avalanche", "Arbitrum", "Optimism", "BSC", "Base", "Gnosis"],
767+
chains: [
768+
"Ethereum",
769+
"Polygon",
770+
"Fantom",
771+
"Avalanche",
772+
"Arbitrum",
773+
"Optimism",
774+
"BSC",
775+
"Base",
776+
"Gnosis",
777+
"Blast",
778+
"Linea",
779+
"Mantle",
780+
"Taiko",
781+
],
768782
chainMapping: {
769783
avalanche: "avax",
770784
gnosis: "xdai",

0 commit comments

Comments
 (0)