Skip to content

Commit 7af43e7

Browse files
authored
chore: add TNT hyperlane routes (#122)
1 parent f5a781f commit 7af43e7

File tree

3 files changed

+104
-33
lines changed

3 files changed

+104
-33
lines changed

components/TokenContracts.tsx

Lines changed: 57 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface Token {
1515
symbol: string;
1616
address: string;
1717
icon: string;
18+
isNative?: boolean;
1819
chains: {
1920
name: string;
2021
address?: string;
@@ -55,6 +56,11 @@ const CHAIN_CONFIGS = {
5556
explorerLink: "https://etherscan.io/",
5657
icon: "/icons/chains/ethereum.svg",
5758
},
59+
LINEA: {
60+
name: "Linea",
61+
explorerLink: "https://lineascan.build/",
62+
icon: "/icons/chains/linea.svg",
63+
},
5864
};
5965

6066
const CHAIN_OPTIONS = Object.values(CHAIN_CONFIGS);
@@ -69,9 +75,49 @@ const CHAIN_NAME_TO_CONFIG: Record<
6975
Optimism: CHAIN_CONFIGS.OPTIMISM,
7076
Polygon: CHAIN_CONFIGS.POLYGON,
7177
Ethereum: CHAIN_CONFIGS.ETHEREUM,
78+
Linea: CHAIN_CONFIGS.LINEA,
7279
};
7380

7481
const TOKENS: Token[] = [
82+
{
83+
name: "Tangle",
84+
symbol: "TNT",
85+
address: "0x0000000000000000000000000000000000000000",
86+
icon: "/icons/tokens/tnt.svg",
87+
isNative: true,
88+
chains: [
89+
{
90+
...CHAIN_CONFIGS.ETHEREUM,
91+
address: "0x1465399089F3bFC43E7A52637a296C46423f8417",
92+
isNative: false,
93+
},
94+
{
95+
...CHAIN_CONFIGS.ARBITRUM,
96+
address: "0xB23565d388d03B95212Dc5b8F02e40D7edC77E1A",
97+
isNative: false,
98+
},
99+
{
100+
...CHAIN_CONFIGS.BNB,
101+
address: "0x108F919b5A76B64e80dBf74130Ff6441A62F6405",
102+
isNative: false,
103+
},
104+
{
105+
...CHAIN_CONFIGS.LINEA,
106+
address: "0x606F11cF2395881689eC7d1289A2282ab694bDa2",
107+
isNative: false,
108+
},
109+
{
110+
...CHAIN_CONFIGS.BASE,
111+
address: "0x64570ea315052A04E0b476254bb142BA21759DF5",
112+
isNative: false,
113+
},
114+
{
115+
...CHAIN_CONFIGS.OPTIMISM,
116+
address: "0xA06164d6440dd1E8cb51b743d7bEAB86c44f74f1",
117+
isNative: false,
118+
},
119+
],
120+
},
75121
{
76122
name: "Arbitrum",
77123
symbol: "ARB",
@@ -134,19 +180,6 @@ const TOKENS: Token[] = [
134180
},
135181
],
136182
},
137-
{
138-
name: "Avail (Wormhole)",
139-
symbol: "AVAIL",
140-
address: "0x4b7c2a96d1E9f3D37F979A8c74e17d53473fbf40",
141-
icon: "/icons/tokens/avail.svg",
142-
chains: [
143-
{
144-
...CHAIN_CONFIGS.BASE,
145-
address: "0xd89d90d26B48940FA8F58385Fe84625d468E057a",
146-
isNative: false,
147-
},
148-
],
149-
},
150183
{
151184
name: "BNB",
152185
symbol: "BNB",
@@ -564,19 +597,6 @@ const TOKENS: Token[] = [
564597
},
565598
],
566599
},
567-
{
568-
name: "Staked Avail (Wormhole)",
569-
symbol: "stAVAIL",
570-
address: "0xb0b1cb358f4597838859edA7dac076ada0E8aA34",
571-
icon: "/icons/tokens/stavail.svg",
572-
chains: [
573-
{
574-
...CHAIN_CONFIGS.BASE,
575-
address: "0x74cb668d23E6e54524e2E1e4d1c392F5fd611783",
576-
isNative: false,
577-
},
578-
],
579-
},
580600
{
581601
name: "Swell ETH",
582602
symbol: "swETH",
@@ -865,13 +885,17 @@ const TokenRow = memo(({ token }: { token: Token }) => (
865885

866886
{/* Address - Simplified */}
867887
<TableCell>
868-
<Link
869-
href={`https://explorer.tangle.tools/address/${token.address}`}
870-
target="_blank"
871-
className="font-mono text-sm text-blue-600 dark:text-blue-400 hover:underline"
872-
>
873-
{token.address}
874-
</Link>
888+
{token.isNative ? (
889+
"-"
890+
) : (
891+
<Link
892+
href={`https://explorer.tangle.tools/address/${token.address}`}
893+
target="_blank"
894+
className="font-mono text-sm text-blue-600 dark:text-blue-400 hover:underline"
895+
>
896+
{token.address}
897+
</Link>
898+
)}
875899
</TableCell>
876900
</TableRow>
877901
));

public/icons/chains/linea.svg

Lines changed: 21 additions & 0 deletions
Loading

public/icons/tokens/tnt.svg

Lines changed: 26 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)