Skip to content

Commit 24a5b32

Browse files
RohanNerovrtnd
authored andcommitted
Added new chains (Goat, Plume, Plasma, Hyperliquid)
1 parent d2f5299 commit 24a5b32

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

src/adapters/axelar/index.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ const axelarChains = {
5050
its: "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C",
5151
gateway: "0xe432150cce91c13a887f7D836923d5597adD8E31",
5252
},
53+
hyperliquid: {
54+
its: "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C",
55+
gateway: "0xe432150cce91c13a887f7D836923d5597adD8E31",
56+
},
5357
imx: {
5458
its: "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C",
5559
gateway: "0xe432150cce91c13a887f7D836923d5597adD8E31",
@@ -74,6 +78,10 @@ const axelarChains = {
7478
its: "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C",
7579
gateway: "0xe432150cce91c13a887f7D836923d5597adD8E31",
7680
},
81+
plume: {
82+
its: "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C",
83+
gateway: "0xe432150cce91c13a887f7D836923d5597adD8E31",
84+
},
7785
polygon: {
7886
its: "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C",
7987
gateway: "0x6f015F16De9fC8791b234eF68D486d2bF203FBA8",
@@ -302,7 +310,7 @@ const constructParams = (chain: SupportedChains) => {
302310
token: (log: any) => {
303311
const asset = itsAssets.find((item: any) => item.id.toLowerCase() === log.tokenId.toLowerCase());
304312
const chainName = chain === "avax" ? "avalanche" : chain;
305-
return asset && asset.chains && asset.chains[chainName] && asset.chains[chainName].tokenAddress
313+
return asset && asset.chains && asset.chains[chainName] && asset.chains[chainName].tokenAddress
306314
? asset.chains[chainName].tokenAddress
307315
: "";
308316

@@ -320,7 +328,7 @@ const constructParams = (chain: SupportedChains) => {
320328
token: (log: any) => {
321329
const asset = itsAssets.find((item: any) => item.id.toLowerCase() === log.tokenId.toLowerCase());
322330
const chainName = chain === "avax" ? "avalanche" : chain;
323-
return asset && asset.chains && asset.chains[chainName] && asset.chains[chainName].tokenAddress
331+
return asset && asset.chains && asset.chains[chainName] && asset.chains[chainName].tokenAddress
324332
? asset.chains[chain].tokenAddress
325333
: "";
326334
},
@@ -352,12 +360,14 @@ const adapter: BridgeAdapter = {
352360
fantom: constructParams("fantom"),
353361
filecoin: constructParams("filecoin"),
354362
fraxtal: constructParams("fraxtal"),
363+
hyperliquid: constructParams("hyperliquid"),
355364
imx: constructParams("imx"),
356365
kava: constructParams("kava"),
357366
linea: constructParams("linea"),
358367
mantle: constructParams("mantle"),
359368
moonbeam: constructParams("moonbeam"),
360369
optimism: constructParams("optimism"),
370+
plume: constructParams("plume"),
361371
polygon: constructParams("polygon"),
362372
scroll: constructParams("scroll"),
363373
};

src/adapters/debridgedln/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const nativeTokenAddress = {
3030
base: "0x4200000000000000000000000000000000000006", // WETH
3131
bsc: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", // BNB
3232
sonic: "0x0000000000000000000000000000000000000000", // S
33+
plume: "0x0000000000000000000000000000000000000000", // PLUME
34+
plasma: "0x0000000000000000000000000000000000000000", // XPL
3335
};
3436

3537
type SupportedChains = keyof typeof nativeTokenAddress;
@@ -153,6 +155,8 @@ const adapter: BridgeAdapter = {
153155
base: constructParams("base"),
154156
solana: getSolanaEvents,
155157
sonic: constructParams("sonic"),
158+
plasma: constructParams("plasma"),
159+
plume: constructParams("plume"),
156160
};
157161

158162
export default adapter;

src/adapters/stargate/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ const v2Addresses: Record<string, { token: string; pool: string }[]> = {
463463
{ token: "0x2a22f9c3b484c3629090FeED35F17Ff8F88f76F0", pool: "0xB1EeAD6959cb5bB9B20417d6689922523B2B86C3" }, // usdc
464464
{ token: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1", pool: "0xe9aBA835f813ca05E50A6C0ce65D0D74390F7dE7" }, // weth
465465
],
466+
goat: [
467+
{ token: "0x3a1293Bdb83bBbDd5Ebf4fAc96605aD2021BbC0f", pool: "0x88853D410299BCBfE5fCC9Eef93c03115E908279" }, // weth
468+
{ token: "0x3022b87ac063DE95b1570F46f5e470F8B53112D8", pool: "0xbbA60da06c2c5424f03f7434542280FCAd453d10" }, // usdc
469+
{ token: "0xE1AD845D93853fff44990aE0DcecD8575293681e", pool: "0x549943e04f40284185054145c6E4e9568C1D3241" }, // usdt
470+
],
466471
gravity: [
467472
{ token: "0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6", pool: "0xC1B8045A6ef2934Cf0f78B0dbD489969Fa9Be7E4" }, // usdc
468473
{ token: "0x816E810f9F787d669FB71932DeabF6c83781Cd48", pool: "0x0B38e83B86d491735fEaa0a791F65c2B99535396" }, // usdt
@@ -494,6 +499,9 @@ const v2Addresses: Record<string, { token: string; pool: string }[]> = {
494499
{ token: "0x43F2376D5D03553aE72F4A8093bbe9de4336EB08", pool: "0xC16977205c53Cd854136031BD2128F75D6ff63C9" }, // usdt
495500
{ token: "0xcdA5b77E2E2268D9E09c874c1b9A4c3F07b37555", pool: "0x108f4c02C9fcDF862e5f5131054c50f13703f916" }, // weth
496501
],
502+
plasma: [
503+
{ token: "0x9895D81bB462A195b4922ED7De0e3ACD007c32CB", pool: "0x0cEb237E109eE22374a567c6b09F373C73FA4cBb" }, // weth
504+
],
497505
peaq: [
498506
{ token: "0xbbA60da06c2c5424f03f7434542280FCAd453d10", pool: "0x5c1a97C144A97E9b370F833a06c70Ca8F2f30DE5" }, // usdc
499507
{ token: "0xf4D9235269a96aaDaFc9aDAe454a0618eBE37949", pool: "0x07cd5A2702394E512aaaE54f7a250ea0576E5E8C" }, // usdt
@@ -745,6 +753,7 @@ const adapter: BridgeAdapter = {
745753
flare: constructParams("flare"),
746754
flow: constructParams("flow"),
747755
fuse: constructParams("fuse"),
756+
goat: constructParams("goat"),
748757
gnosis: constructParams("xdai"),
749758
gravity: constructParams("gravity"),
750759
hemi: constructParams("hemi"),
@@ -753,6 +762,7 @@ const adapter: BridgeAdapter = {
753762
islander: constructParams("vana"),
754763
manta: constructParams("manta"),
755764
nibiru: constructParams("nibiru"),
765+
plasma: constructParams("plasma"),
756766
peaq: constructParams("peaq"),
757767
plume: constructParams("plume"),
758768
plumephoenix: constructParams("plume_mainnet"),

0 commit comments

Comments
 (0)