From 833b066c1a2db31b2353f26d339f31d20cf70f9a Mon Sep 17 00:00:00 2001 From: npty Date: Wed, 10 Jan 2024 18:08:15 +0700 Subject: [PATCH] chore: add bsc and scroll --- src/adapters/squid/index.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/adapters/squid/index.ts b/src/adapters/squid/index.ts index cb7c39f4..3f3e4a18 100644 --- a/src/adapters/squid/index.ts +++ b/src/adapters/squid/index.ts @@ -9,7 +9,7 @@ import { axelarGatewayAddresses, squidRouterAddress } from "./constants"; const constructGatewayWithdrawalParams = (assets: any[], chain: string) => { let GatewayWithdrawalParams: PartialContractEventParams; - + return GatewayWithdrawalParams = { target: "", topic: "ContractCallWithToken(address,string,string,bytes32,bytes,string,uint256)", @@ -33,7 +33,7 @@ import { axelarGatewayAddresses, squidRouterAddress } from "./constants"; token: (log: any) => getTokenAddress(log.symbol, chain, assets) }, isDeposit: false, - + }; } @@ -78,7 +78,7 @@ const constructParams = (chain: string) => { const GatewayDepositParams = constructGatewayDepositParams(assets, chain); const deposit = {...GatewayDepositParams, target: axelarGatewayAddresses[chain], }; - + const GatewayWithdrawalParams = constructGatewayWithdrawalParams(assets, chain); const withdraw = {...GatewayWithdrawalParams, target: axelarGatewayAddresses[chain], }; @@ -87,14 +87,15 @@ const constructParams = (chain: string) => { return getTxDataFromEVMEventLogs("squid", chain as Chain, fromBlock, toBlock, eventParams); } - + }; const adapter: BridgeAdapter = { polygon: constructParams("polygon"), fantom: constructParams("fantom"), avalanche: constructParams("avax"), - // bsc: constructParams("bsc"), + bsc: constructParams("bsc"), + scroll: constructParams("scroll"), ethereum: constructParams("ethereum"), arbitrum: constructParams("arbitrum"), base: constructParams("base"),