Skip to content

Commit 74e3a54

Browse files
committed
add TAC config
1 parent cdbf213 commit 74e3a54

File tree

4 files changed

+214
-0
lines changed

4 files changed

+214
-0
lines changed

.env.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ RPC_URL_130=""
3434
RPC_URL_60808=""
3535
# avalanche
3636
RPC_URL_43114=""
37+
# tac
38+
RPC_URL_239=""
3739

3840
# Provider API keys
3941
LIFI_API_KEY=""

src/common/utils/contractBook.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const contractBook: any = {
1414
[80094]: "0x4A35e6A872cf35623cd3fD07ebECEDFc0170D705",
1515
[130]: "0x319E8ecd3BaB57fE684ca1aCfaB60c5603087B3A",
1616
[60808]: "0x697Ca30D765c1603890D88AAffBa3BeCCe72059d",
17+
[239]: "0x5ff07e50D83769861db40C5087753124D389c1c0",
1718
[chains.arbitrum.id]: "0x6eE488A00A2ef1E2764cD7245F8a77C40060A7C7",
1819
},
1920
},
@@ -30,6 +31,7 @@ const contractBook: any = {
3031
[80094]: "0x6fFf8Ac4AB123B62FF5e92aBb9fF702DCBD6C939",
3132
[130]: "0x7eaf8C22480129E5D7426e3A33880D7bE19B50a7",
3233
[60808]: "0x296041DbdBC92171293F23c0a31e1574b791060d",
34+
[239]: "0x5a8610DB17CfF800C8abEb6Da31B9bB1fF51843f",
3335
[chains.arbitrum.id]: "0x7b16DAaFa76CfeC8C08D7a68aF31949B37ebfdF5",
3436
},
3537
},

src/common/utils/viemClients.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,27 @@ const sonicnetwork = defineChain({
102102
},
103103
})
104104

105+
export const tac = defineChain({
106+
id: 239,
107+
name: "TAC",
108+
nativeCurrency: {
109+
decimals: 18,
110+
name: "TAC",
111+
symbol: "TAC",
112+
},
113+
blockExplorers: {
114+
default: {
115+
name: "TAC Explorer",
116+
url: "https://explorer.tac.build/",
117+
},
118+
},
119+
rpcUrls: {
120+
default: {
121+
http: ["https://rpc.tac.xyz"],
122+
},
123+
},
124+
} as const)
125+
105126
export const RPC_URLS: Record<number, string> = {
106127
[chains.mainnet.id]: process.env.RPC_URL_1 || "",
107128
[chains.sepolia.id]: process.env.RPC_URL_11155111 || "",
@@ -112,6 +133,7 @@ export const RPC_URLS: Record<number, string> = {
112133
[chains.avalanche.id]: process.env.RPC_URL_43114 || "",
113134
[146]: process.env.RPC_URL_146 || "",
114135
[130]: process.env.RPC_URL_130 || "",
136+
[tac.id]: process.env.RPC_URL_239 || "",
115137
[chains.foundry.id]: process.env.RPC_URL_31337 || "http://localhost:8545",
116138
} as const
117139

@@ -155,6 +177,10 @@ export const createClients = (): Record<number, Client<Transport, Chain>> => ({
155177
transport: http(RPC_URLS[chains.avalanche.id]),
156178
}),
157179
[unichain.id]: createChainConfig(unichain),
180+
[tac.id]: createClient({
181+
chain: tac,
182+
transport: http(RPC_URLS[tac.id]),
183+
}),
158184
})
159185

160186
export const viemClients = createClients()

tokenLists/tokenList_239.json

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
[
2+
{
3+
"addressInfo": "0xB63B9f0eb4A6E6f191529D71d4D88cc8900Df2C9",
4+
"chainId": 239,
5+
"name": "Wrapped TAC",
6+
"symbol": "WTAC",
7+
"decimals": 18,
8+
"logoURI": "https://assets.coingecko.com/coins/images/50882/standard/hyperliquid.jpg?1729431300",
9+
"meta": {}
10+
},
11+
{
12+
"addressInfo": "0xb76d91340F5CE3577f0a056D29f6e3Eb4E88B140",
13+
"chainId": 239,
14+
"name": "TON",
15+
"symbol": "TON",
16+
"decimals": 9,
17+
"logoURI": "/tokens/239/ton.png",
18+
"meta": {}
19+
},
20+
{
21+
"addressInfo": "0x61D66bC21fED820938021B06e9b2291f3FB91945",
22+
"chainId": 239,
23+
"name": "WETH",
24+
"symbol": "WETH",
25+
"decimals": 18,
26+
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
27+
"meta": {}
28+
},
29+
{
30+
"addressInfo": "0xAf368c91793CB22739386DFCbBb2F1A9e4bCBeBf",
31+
"chainId": 239,
32+
"name": "Wrapped liquid staked Ether 2.0",
33+
"symbol": "wstETH",
34+
"decimals": 18,
35+
"logoURI": "https://tokens.1inch.io/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0.png",
36+
"meta": {
37+
"provider": "DEFILLAMA",
38+
"poolId": "747c1d2a-c668-4682-b9f9-296708a3dd90"
39+
}
40+
},
41+
{
42+
"addressInfo": "0xAF988C3f7CB2AceAbB15f96b19388a259b6C438f",
43+
"chainId": 239,
44+
"name": "USDT",
45+
"symbol": "USDT",
46+
"decimals": 6,
47+
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
48+
"meta": {}
49+
},
50+
{
51+
"addressInfo": "0xb1b385542B6E80F77B94393Ba8342c3Af699f15c",
52+
"chainId": 239,
53+
"name": "USR",
54+
"symbol": "USR",
55+
"decimals": 18,
56+
"logoURI": "https://coin-images.coingecko.com/coins/images/40008/large/USR_LOGO.png?1725222638",
57+
"meta": {}
58+
},
59+
{
60+
"addressInfo": "0x2a52B289bA68bBd02676640aA9F605700c9e5699",
61+
"chainId": 239,
62+
"name": "wstUSR",
63+
"symbol": "wstUSR",
64+
"decimals": 18,
65+
"logoURI": "https://coin-images.coingecko.com/coins/images/40008/large/USR_LOGO.png?1725222638",
66+
"meta": {
67+
"provider": "DEFILLAMA",
68+
"poolId": "0aedb3f6-9298-49de-8bb0-2f611a4df784"
69+
}
70+
},
71+
{
72+
"addressInfo": "0x35533f54740F1F1aA4179E57bA37039dfa16868B",
73+
"chainId": 239,
74+
"name": "RLP",
75+
"symbol": "RLP",
76+
"decimals": 18,
77+
"logoURI": "/tokens/1/0x4956b52aE2fF65D74CA2d61207523288e4528f96.webp",
78+
"meta": {}
79+
},
80+
{
81+
"addressInfo": "0x51A30E647D33A044967FA3DBb04d6ED6F45455F6",
82+
"chainId": 239,
83+
"name": "USN",
84+
"symbol": "USN",
85+
"decimals": 18,
86+
"logoURI": "https://coin-images.coingecko.com/coins/images/53948/large/image_%289%29.png?1737788246",
87+
"meta": {}
88+
},
89+
{
90+
"addressInfo": "0x5Ced7F73B76A555CCB372cc0F0137bEc5665F81E",
91+
"chainId": 239,
92+
"name": "sUSN",
93+
"symbol": "sUSN",
94+
"decimals": 18,
95+
"logoURI": "https://coin-images.coingecko.com/coins/images/53948/large/image_%289%29.png?1737788246",
96+
"meta": {
97+
"provider": "NOON"
98+
}
99+
},
100+
{
101+
"addressInfo": "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
102+
"chainId": 239,
103+
"name": "Lombard Staked Bitcoin",
104+
"symbol": "LBTC",
105+
"decimals": 8,
106+
"logoURI": "https://coin-images.coingecko.com/coins/images/39969/large/LBTC_Logo.png?1724959872",
107+
"meta": {}
108+
},
109+
{
110+
"addressInfo": "0xe82dbD543FD729418613d68Cd1E8FC67b0f46E31",
111+
"chainId": 239,
112+
"name": "Merlin’s Seal BTC",
113+
"symbol": "M-BTC",
114+
"decimals": 18,
115+
"logoURI": "https://assets.coingecko.com/coins/images/36566/standard/photo_2024-03-25_22-04-42.jpg",
116+
"meta": {}
117+
},
118+
{
119+
"addressInfo": "0x9bB6983Ca454320BD8691409690B4FCCD489EE96",
120+
"chainId": 239,
121+
"name": "USD0",
122+
"symbol": "USD0",
123+
"decimals": 18,
124+
"logoURI": "https://assets.coingecko.com/coins/images/38272/standard/USD0LOGO.png?1716962811",
125+
"meta": {}
126+
},
127+
{
128+
"addressInfo": "0x1791BAff6a5e2F2A1340e8B7C1EA2B0c1E2DD1ea",
129+
"chainId": 239,
130+
"name": "USD0++",
131+
"symbol": "USD0++",
132+
"decimals": 18,
133+
"logoURI": "https://assets.coingecko.com/coins/images/38272/standard/USD0LOGO.png?1716962811",
134+
"meta": {
135+
"provider": "DEFILLAMA",
136+
"poolId": "55b0893b-1dbb-47fd-9912-5e439cd3d511"
137+
}
138+
},
139+
{
140+
"addressInfo": "0x6bedE1c6009a78c222D9BDb7974bb67847fdB68c",
141+
"chainId": 239,
142+
"name": "BUSD",
143+
"symbol": "BUSD",
144+
"decimals": 18,
145+
"logoURI": "https://assets.coingecko.com/coins/images/31273/standard/new_binance-peg-busd.png?1696530096",
146+
"meta": {}
147+
},
148+
{
149+
"addressInfo": "0x7048c9e4aBD0cf0219E95a17A8C6908dfC4f0Ee4",
150+
"chainId": 239,
151+
"name": "cbBTC",
152+
"symbol": "cbBTC",
153+
"decimals": 8,
154+
"logoURI": "https://coin-images.coingecko.com/coins/images/40143/large/cbbtc.webp?1726136727",
155+
"meta": {}
156+
},
157+
{
158+
"addressInfo": "0xD44F691aeD69fe43180B95b6F82f89c18Fb93094",
159+
"chainId": 239,
160+
"name": "tsTON",
161+
"symbol": "tsTON",
162+
"decimals": 9,
163+
"logoURI": "https://assets.coingecko.com/coins/images/35404/standard/icon_%281%29.png?1708499119",
164+
"meta": {}
165+
},
166+
{
167+
"addressInfo": "0x20512cF15E60242aB5237E0A76c873a338281397",
168+
"chainId": 239,
169+
"name": "bmTON",
170+
"symbol": "bmTON",
171+
"decimals": 9,
172+
"logoURI": "https://assets.coingecko.com/coins/images/55380/standard/IMG_4061.jpeg?1745682979",
173+
"meta": {}
174+
},
175+
{
176+
"addressInfo": "0x27e4Ade13d78Aad45bea31D448f5504031e4871E",
177+
"chainId": 239,
178+
"name": "WIF",
179+
"symbol": "WIF",
180+
"decimals": 18,
181+
"logoURI": "https://assets.coingecko.com/coins/images/33566/standard/dogwifhat.jpg?1702499428",
182+
"meta": {}
183+
}
184+
]

0 commit comments

Comments
 (0)