Skip to content

Commit

Permalink
Fix across zksync
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Aug 23, 2023
1 parent 59383c1 commit 2b2ceb2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
18 changes: 9 additions & 9 deletions src/adapters/across/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ For all tokens using 'spokepool' contracts:
const contracts = {
ethereum: {
spokePoolv2: "0x4D9079Bb4165aeb4084c526a32695dCfd2F77381",
spokePoolv2p5: "0x5c7BCd6E7De5423a257D81B442095A1a6ced35C5"
spokePoolv2p5: "0x5c7BCd6E7De5423a257D81B442095A1a6ced35C5",
},
polygon: {
spokePoolv2: "0x69B5c72837769eF1e7C164Abc6515DcFf217F920",
spokePoolv2p5: "0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096"
spokePoolv2p5: "0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096",
},
arbitrum: {
spokePoolv2: "0xB88690461dDbaB6f04Dfad7df66B7725942FEb9C",
spokePoolv2p5: "0xe35e9842fceaCA96570B734083f4a58e8F7C5f2A"
spokePoolv2p5: "0xe35e9842fceaCA96570B734083f4a58e8F7C5f2A",
},
optimism: {
spokePoolv2: "0xa420b2d1c0841415A695b81E5B867BCD07Dff8C9",
spokePoolv2p5: "0x6f26Bf09B1C792e3228e5467807a900A503c0281"
spokePoolv2p5: "0x6f26Bf09B1C792e3228e5467807a900A503c0281",
},
era: {
spokePoolv2p5: "0xE0B015E54d54fc84a6cB9B666099c46adE9335FF"
spokePoolv2p5: "0xE0B015E54d54fc84a6cB9B666099c46adE9335FF",
},
base: {
spokePoolv2p5: "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64"
}
spokePoolv2p5: "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64",
},
} as const;

type SupportedChains = keyof typeof contracts;
Expand Down Expand Up @@ -119,7 +119,7 @@ const relaysParamsv2: PartialContractEventParams = {
const constructParams = (chain: SupportedChains) => {
const eventParams: PartialContractEventParams[] = [];

const chainConfig = contracts[chain]
const chainConfig = contracts[chain];

// Old Spoke Pools
if ("spokePoolv2" in chainConfig) {
Expand Down Expand Up @@ -160,7 +160,7 @@ const adapter: BridgeAdapter = {
polygon: constructParams("polygon"),
arbitrum: constructParams("arbitrum"),
optimism: constructParams("optimism"),
era: constructParams("era"),
"zksync era": constructParams("era"),
base: constructParams("base"),
};

Expand Down
11 changes: 7 additions & 4 deletions src/data/bridgeNetworkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ export default [
// gnosis: "xdai",
// },
// },
// {
// id: 8,
// {
// id: 8,
// displayName: "ChainPort",
// bridgeDbName: "chainport",
// iconLink: "icons:chainport",
// largeTxThreshold: 10000,
// largeTxThreshold: 10000,
// url: "",
// chains: ["Ethereum", "Polygon", "Fantom", "Avalanche", "Aurora", "BSC"],
// chainMapping: {
// avalanche: "avax",
// },
// },
// },
{
id: 9,
displayName: "Portal by Wormhole",
Expand Down Expand Up @@ -295,6 +295,9 @@ export default [
largeTxThreshold: 10000,
url: "",
chains: ["Ethereum", "Polygon", "Arbitrum", "Optimism", "zkSync Era", "Base"],
chainMapping: {
"zksync era": "era",
},
},
/*
{
Expand Down

0 comments on commit 2b2ceb2

Please sign in to comment.