@rozoai/intent-common 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/token.js CHANGED
@@ -1,26 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.optimismUSDCe = exports.optimismUSDT = exports.optimismDAI = exports.optimismAxlUSDC = exports.optimismUSDC = exports.optimismWETH = exports.optimismETH = exports.mantleAxlUSDC = exports.mantleUSDT = exports.mantleBridgedUSDC = exports.mantleWMNT = exports.mantleMNT = exports.lineaDAI = exports.lineaAxlUSDC = exports.lineaUSDC = exports.lineaWETH = exports.lineaETH = exports.ethereumEURC = exports.ethereumUSDT = exports.ethereumDAI = exports.ethereumUSDC = exports.ethereumWETH = exports.ethereumETH = exports.celoCUSD = exports.celoUSDT = exports.celoUSDC = exports.celoAxlUSDC = exports.celoCelo = exports.bscUSDT = exports.bscUSDC = exports.bscAxlUSDC = exports.bscWBNB = exports.bscBNB = exports.baseAxlUSDC = exports.baseUSDT = exports.baseDAI = exports.baseUSDbC = exports.baseEURC = exports.baseUSDC = exports.baseWETH = exports.baseETH = exports.arbitrumUSDCe = exports.arbitrumUSDT = exports.arbitrumDAI = exports.arbitrumAxlUSDC = exports.arbitrumUSDC = exports.arbitrumWETH = exports.arbitrumETH = exports.TokenSymbol = exports.TokenLogo = void 0;
4
- exports.knownChains = exports.knownTokens = exports.supportedPayoutTokens = exports.supportedTokens = exports.avalancheUSDT = exports.avalancheUSDC = exports.avalancheAVAX = exports.gnosisUSDT = exports.gnosisUSDC = exports.gnosisXDAI = exports.hyperEVMUSDC = exports.worldchainWLD = exports.worldchainUSDC = exports.worldchainWBTC = exports.worldchainWETH = exports.worldchainETH = exports.rozoStellarEURC = exports.rozoStellarUSDC = exports.stellarUSDC = exports.stellarXLM = exports.rozoSolanaUSDT = exports.rozoSolanaUSDC = exports.solanaUSDT = exports.solanaUSDC = exports.solanaWSOL = exports.solanaSOL = exports.polygonUSDCe = exports.polygonUSDT = exports.polygonDAI = exports.polygonAxlUSDC = exports.polygonUSDC = exports.polygonWETH = exports.polygonWPOL = exports.polygonPOL = void 0;
5
- exports.defaultDisplayDecimals = defaultDisplayDecimals;
6
- exports.normalizeTokenAddress = normalizeTokenAddress;
7
- exports.getKnownToken = getKnownToken;
8
- exports.getChainNativeToken = getChainNativeToken;
9
- exports.getChainWrappedNativeToken = getChainWrappedNativeToken;
10
- exports.getChainNativeUSDC = getChainNativeUSDC;
11
- exports.getChainAxlUSDC = getChainAxlUSDC;
12
- exports.getChainBestUSDC = getChainBestUSDC;
13
- exports.getChainDAI = getChainDAI;
14
- exports.tokensEqual = tokensEqual;
15
- exports.token = token;
16
- const viem_1 = require("viem");
17
- const assert_1 = require("./assert");
18
- const chain_1 = require("./chain");
1
+ import { getAddress, zeroAddress } from "viem";
2
+ import { assertNotNull } from "./assert";
3
+ import { arbitrum, avalanche, base, bsc, celo, ethereum, gnosis, hyperEVM, linea, mantle, optimism, polygon, rozoSolana, rozoStellar, solana, stellar, worldchain, getChainById, } from "./chain";
19
4
  /** Fallback `displayDecimals` for a token when none is set explicitly. */
20
- function defaultDisplayDecimals(decimals) {
5
+ export function defaultDisplayDecimals(decimals) {
21
6
  return decimals === 18 ? 5 : decimals === 9 ? 4 : 6;
22
7
  }
23
- var TokenLogo;
8
+ export var TokenLogo;
24
9
  (function (TokenLogo) {
25
10
  TokenLogo["ETH"] = "https://imagedelivery.net/AKLvTMvIg6yc9W08fHl1Tg/5dbadc94-b4be-4961-0b5b-8407f885db00/public";
26
11
  TokenLogo["WETH"] = "https://imagedelivery.net/AKLvTMvIg6yc9W08fHl1Tg/5e0f069f-e47a-46f0-5042-6d872d935300/public";
@@ -41,8 +26,8 @@ var TokenLogo;
41
26
  TokenLogo["cUSD"] = "https://imagedelivery.net/AKLvTMvIg6yc9W08fHl1Tg/55fba2cb-ba84-4d6e-2bc7-8f0122412100/public";
42
27
  TokenLogo["XLM"] = "https://imagedelivery.net/AKLvTMvIg6yc9W08fHl1Tg/839e9764-9a82-4ffc-cadb-a0968a451100/public";
43
28
  TokenLogo["HYPE"] = "https://imagedelivery.net/AKLvTMvIg6yc9W08fHl1Tg/643544f5-b0bf-48a8-0289-2becb8224100/public";
44
- })(TokenLogo || (exports.TokenLogo = TokenLogo = {}));
45
- var TokenSymbol;
29
+ })(TokenLogo || (TokenLogo = {}));
30
+ export var TokenSymbol;
46
31
  (function (TokenSymbol) {
47
32
  TokenSymbol["AVAX"] = "AVAX";
48
33
  TokenSymbol["AXL_USDC"] = "axlUSDC";
@@ -67,59 +52,59 @@ var TokenSymbol;
67
52
  TokenSymbol["WSOL"] = "WSOL";
68
53
  TokenSymbol["XDAI"] = "XDAI";
69
54
  TokenSymbol["XLM"] = "XLM";
70
- })(TokenSymbol || (exports.TokenSymbol = TokenSymbol = {}));
55
+ })(TokenSymbol || (TokenSymbol = {}));
71
56
  /* --------------------- Tokens Constants --------------------- */
72
57
  //
73
58
  // Arbitrum
74
59
  //
75
- exports.arbitrumETH = nativeETH(chain_1.arbitrum.chainId);
76
- exports.arbitrumWETH = token({
77
- chainId: chain_1.arbitrum.chainId,
78
- token: (0, viem_1.getAddress)("0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"),
60
+ export const arbitrumETH = nativeETH(arbitrum.chainId);
61
+ export const arbitrumWETH = token({
62
+ chainId: arbitrum.chainId,
63
+ token: getAddress("0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"),
79
64
  decimals: 18,
80
65
  name: "Wrapped Ether",
81
66
  symbol: TokenSymbol.WETH,
82
67
  logoURI: TokenLogo.WETH,
83
68
  });
84
- exports.arbitrumUSDC = token({
85
- chainId: chain_1.arbitrum.chainId,
86
- token: (0, viem_1.getAddress)("0xaf88d065e77c8cC2239327C5EDb3A432268e5831"),
69
+ export const arbitrumUSDC = token({
70
+ chainId: arbitrum.chainId,
71
+ token: getAddress("0xaf88d065e77c8cC2239327C5EDb3A432268e5831"),
87
72
  name: "USD Coin",
88
73
  symbol: TokenSymbol.USDC,
89
74
  fiatISO: "USD",
90
75
  decimals: 6,
91
76
  logoURI: TokenLogo.USDC,
92
77
  });
93
- exports.arbitrumAxlUSDC = token({
94
- chainId: chain_1.arbitrum.chainId,
95
- token: (0, viem_1.getAddress)("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
78
+ export const arbitrumAxlUSDC = token({
79
+ chainId: arbitrum.chainId,
80
+ token: getAddress("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
96
81
  decimals: 6,
97
82
  fiatISO: "USD",
98
83
  name: "Axelar Wrapped USDC",
99
84
  symbol: TokenSymbol.AXL_USDC,
100
85
  logoURI: TokenLogo.USDC,
101
86
  });
102
- exports.arbitrumDAI = token({
103
- chainId: chain_1.arbitrum.chainId,
104
- token: (0, viem_1.getAddress)("0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"),
87
+ export const arbitrumDAI = token({
88
+ chainId: arbitrum.chainId,
89
+ token: getAddress("0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"),
105
90
  decimals: 18,
106
91
  fiatISO: "USD",
107
92
  name: "Dai Stablecoin",
108
93
  symbol: TokenSymbol.DAI,
109
94
  logoURI: TokenLogo.DAI,
110
95
  });
111
- exports.arbitrumUSDT = token({
112
- chainId: chain_1.arbitrum.chainId,
113
- token: (0, viem_1.getAddress)("0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"),
96
+ export const arbitrumUSDT = token({
97
+ chainId: arbitrum.chainId,
98
+ token: getAddress("0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"),
114
99
  decimals: 6,
115
100
  fiatISO: "USD",
116
101
  name: "Tether USD",
117
102
  symbol: TokenSymbol.USDT,
118
103
  logoURI: TokenLogo.USDT,
119
104
  });
120
- exports.arbitrumUSDCe = token({
121
- chainId: chain_1.arbitrum.chainId,
122
- token: (0, viem_1.getAddress)("0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8"),
105
+ export const arbitrumUSDCe = token({
106
+ chainId: arbitrum.chainId,
107
+ token: getAddress("0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8"),
123
108
  decimals: 6,
124
109
  fiatISO: "USD",
125
110
  name: "Bridged USD Coin",
@@ -127,74 +112,74 @@ exports.arbitrumUSDCe = token({
127
112
  logoURI: TokenLogo.USDC,
128
113
  });
129
114
  const arbitrumTokens = [
130
- exports.arbitrumETH,
131
- exports.arbitrumWETH,
132
- exports.arbitrumUSDC,
133
- exports.arbitrumAxlUSDC,
134
- exports.arbitrumDAI,
135
- exports.arbitrumUSDT,
136
- exports.arbitrumUSDCe,
115
+ arbitrumETH,
116
+ arbitrumWETH,
117
+ arbitrumUSDC,
118
+ arbitrumAxlUSDC,
119
+ arbitrumDAI,
120
+ arbitrumUSDT,
121
+ arbitrumUSDCe,
137
122
  ];
138
123
  //
139
124
  // Base Mainnet
140
125
  //
141
- exports.baseETH = nativeETH(chain_1.base.chainId);
142
- exports.baseWETH = token({
143
- chainId: chain_1.base.chainId,
144
- token: (0, viem_1.getAddress)("0x4200000000000000000000000000000000000006"),
126
+ export const baseETH = nativeETH(base.chainId);
127
+ export const baseWETH = token({
128
+ chainId: base.chainId,
129
+ token: getAddress("0x4200000000000000000000000000000000000006"),
145
130
  decimals: 18,
146
131
  name: "Wrapped Ether",
147
132
  symbol: TokenSymbol.WETH,
148
133
  logoURI: TokenLogo.WETH,
149
134
  });
150
- exports.baseUSDC = token({
151
- chainId: chain_1.base.chainId,
152
- token: (0, viem_1.getAddress)("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"),
135
+ export const baseUSDC = token({
136
+ chainId: base.chainId,
137
+ token: getAddress("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"),
153
138
  name: "USD Coin",
154
139
  symbol: TokenSymbol.USDC,
155
140
  fiatISO: "USD",
156
141
  decimals: 6,
157
142
  logoURI: TokenLogo.USDC,
158
143
  });
159
- exports.baseEURC = token({
160
- chainId: chain_1.base.chainId,
161
- token: (0, viem_1.getAddress)("0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42"),
144
+ export const baseEURC = token({
145
+ chainId: base.chainId,
146
+ token: getAddress("0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42"),
162
147
  decimals: 6,
163
148
  fiatISO: "EUR",
164
149
  name: "EUR Coin",
165
150
  symbol: TokenSymbol.EURC,
166
151
  logoURI: TokenLogo.EURC,
167
152
  });
168
- exports.baseUSDbC = token({
169
- chainId: chain_1.base.chainId,
170
- token: (0, viem_1.getAddress)("0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA"),
153
+ export const baseUSDbC = token({
154
+ chainId: base.chainId,
155
+ token: getAddress("0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA"),
171
156
  name: "Bridged USD Coin", // USDbC has a bad name & logo on CoinGecko
172
157
  symbol: TokenSymbol.USDbC,
173
158
  fiatISO: "USD",
174
159
  decimals: 6,
175
160
  logoURI: "https://pay.daimo.com/coin-logos/usdbc.png",
176
161
  });
177
- exports.baseDAI = token({
178
- chainId: chain_1.base.chainId,
179
- token: (0, viem_1.getAddress)("0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb"),
162
+ export const baseDAI = token({
163
+ chainId: base.chainId,
164
+ token: getAddress("0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb"),
180
165
  name: "Dai Stablecoin",
181
166
  symbol: TokenSymbol.DAI,
182
167
  fiatISO: "USD",
183
168
  decimals: 18,
184
169
  logoURI: TokenLogo.DAI,
185
170
  });
186
- exports.baseUSDT = token({
187
- chainId: chain_1.base.chainId,
188
- token: (0, viem_1.getAddress)("0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"),
171
+ export const baseUSDT = token({
172
+ chainId: base.chainId,
173
+ token: getAddress("0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"),
189
174
  name: "Tether USD",
190
175
  symbol: TokenSymbol.USDT,
191
176
  fiatISO: "USD",
192
177
  decimals: 6,
193
178
  logoURI: TokenLogo.USDT,
194
179
  });
195
- exports.baseAxlUSDC = token({
196
- chainId: chain_1.base.chainId,
197
- token: (0, viem_1.getAddress)("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
180
+ export const baseAxlUSDC = token({
181
+ chainId: base.chainId,
182
+ token: getAddress("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
198
183
  decimals: 6,
199
184
  fiatISO: "USD",
200
185
  name: "Axelar Wrapped USDC",
@@ -202,151 +187,151 @@ exports.baseAxlUSDC = token({
202
187
  logoURI: TokenLogo.USDC,
203
188
  });
204
189
  const baseTokens = [
205
- exports.baseETH,
206
- exports.baseWETH,
207
- exports.baseUSDC,
208
- exports.baseEURC,
209
- exports.baseUSDbC,
210
- exports.baseDAI,
211
- exports.baseUSDT,
212
- exports.baseAxlUSDC,
190
+ baseETH,
191
+ baseWETH,
192
+ baseUSDC,
193
+ baseEURC,
194
+ baseUSDbC,
195
+ baseDAI,
196
+ baseUSDT,
197
+ baseAxlUSDC,
213
198
  ];
214
199
  //
215
200
  // BNB Smart Chain
216
201
  //
217
- exports.bscBNB = nativeToken({
218
- chainId: chain_1.bsc.chainId,
202
+ export const bscBNB = nativeToken({
203
+ chainId: bsc.chainId,
219
204
  name: "BNB",
220
205
  symbol: TokenSymbol.BNB,
221
206
  logoURI: TokenLogo.BNB,
222
207
  });
223
- exports.bscWBNB = token({
224
- chainId: chain_1.bsc.chainId,
225
- token: (0, viem_1.getAddress)("0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"),
208
+ export const bscWBNB = token({
209
+ chainId: bsc.chainId,
210
+ token: getAddress("0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"),
226
211
  decimals: 18,
227
212
  name: "Wrapped BNB",
228
213
  symbol: TokenSymbol.WBNB,
229
214
  logoURI: TokenLogo.BNB,
230
215
  });
231
- exports.bscAxlUSDC = token({
232
- chainId: chain_1.bsc.chainId,
233
- token: (0, viem_1.getAddress)("0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3"),
216
+ export const bscAxlUSDC = token({
217
+ chainId: bsc.chainId,
218
+ token: getAddress("0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3"),
234
219
  decimals: 6,
235
220
  fiatISO: "USD",
236
221
  name: "Axelar Wrapped USDC",
237
222
  symbol: TokenSymbol.AXL_USDC,
238
223
  logoURI: TokenLogo.USDC,
239
224
  });
240
- exports.bscUSDC = token({
241
- chainId: chain_1.bsc.chainId,
242
- token: (0, viem_1.getAddress)("0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"),
225
+ export const bscUSDC = token({
226
+ chainId: bsc.chainId,
227
+ token: getAddress("0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"),
243
228
  decimals: 18,
244
229
  fiatISO: "USD",
245
230
  name: "USD Coin",
246
231
  symbol: TokenSymbol.USDC,
247
232
  logoURI: TokenLogo.USDC,
248
233
  });
249
- exports.bscUSDT = token({
250
- chainId: chain_1.bsc.chainId,
251
- token: (0, viem_1.getAddress)("0x55d398326f99059fF775485246999027B3197955"),
234
+ export const bscUSDT = token({
235
+ chainId: bsc.chainId,
236
+ token: getAddress("0x55d398326f99059fF775485246999027B3197955"),
252
237
  decimals: 18,
253
238
  fiatISO: "USD",
254
239
  name: "Tether USD",
255
240
  symbol: TokenSymbol.USDT,
256
241
  logoURI: TokenLogo.USDT,
257
242
  });
258
- const bscTokens = [exports.bscBNB, exports.bscWBNB, exports.bscAxlUSDC, exports.bscUSDC, exports.bscUSDT];
243
+ const bscTokens = [bscBNB, bscWBNB, bscAxlUSDC, bscUSDC, bscUSDT];
259
244
  //
260
245
  // Celo
261
246
  //
262
247
  // CELO functions as both a native token and an ERC-20 compatible token
263
- exports.celoCelo = token({
264
- chainId: chain_1.celo.chainId,
265
- token: (0, viem_1.getAddress)("0x471EcE3750Da237f93B8E339c536989b8978a438"),
248
+ export const celoCelo = token({
249
+ chainId: celo.chainId,
250
+ token: getAddress("0x471EcE3750Da237f93B8E339c536989b8978a438"),
266
251
  decimals: 18,
267
252
  name: "Celo",
268
253
  symbol: TokenSymbol.CELO,
269
254
  logoURI: TokenLogo.CELO,
270
255
  });
271
- exports.celoAxlUSDC = token({
272
- chainId: chain_1.celo.chainId,
273
- token: (0, viem_1.getAddress)("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
256
+ export const celoAxlUSDC = token({
257
+ chainId: celo.chainId,
258
+ token: getAddress("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
274
259
  decimals: 6,
275
260
  fiatISO: "USD",
276
261
  name: "Axelar Wrapped USDC",
277
262
  symbol: TokenSymbol.AXL_USDC,
278
263
  logoURI: TokenLogo.USDC,
279
264
  });
280
- exports.celoUSDC = token({
281
- chainId: chain_1.celo.chainId,
282
- token: (0, viem_1.getAddress)("0xcebA9300f2b948710d2653dD7B07f33A8B32118C"),
265
+ export const celoUSDC = token({
266
+ chainId: celo.chainId,
267
+ token: getAddress("0xcebA9300f2b948710d2653dD7B07f33A8B32118C"),
283
268
  decimals: 6,
284
269
  fiatISO: "USD",
285
270
  name: "USD Coin",
286
271
  symbol: TokenSymbol.USDC,
287
272
  logoURI: TokenLogo.USDC,
288
273
  });
289
- exports.celoUSDT = token({
290
- chainId: chain_1.celo.chainId,
291
- token: (0, viem_1.getAddress)("0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"),
274
+ export const celoUSDT = token({
275
+ chainId: celo.chainId,
276
+ token: getAddress("0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"),
292
277
  decimals: 6,
293
278
  fiatISO: "USD",
294
279
  name: "Tether USD",
295
280
  symbol: TokenSymbol.USDT,
296
281
  logoURI: TokenLogo.USDT,
297
282
  });
298
- exports.celoCUSD = token({
299
- chainId: chain_1.celo.chainId,
300
- token: (0, viem_1.getAddress)("0x765DE816845861e75A25fCA122bb6898B8B1282a"),
283
+ export const celoCUSD = token({
284
+ chainId: celo.chainId,
285
+ token: getAddress("0x765DE816845861e75A25fCA122bb6898B8B1282a"),
301
286
  decimals: 18,
302
287
  fiatISO: "USD",
303
288
  name: "Celo Dollar",
304
289
  symbol: TokenSymbol.cUSD,
305
290
  logoURI: TokenLogo.cUSD,
306
291
  });
307
- const celoTokens = [exports.celoCelo, exports.celoAxlUSDC, exports.celoUSDC, exports.celoUSDT, exports.celoCUSD];
292
+ const celoTokens = [celoCelo, celoAxlUSDC, celoUSDC, celoUSDT, celoCUSD];
308
293
  //
309
294
  // Ethereum
310
295
  //
311
- exports.ethereumETH = nativeETH(chain_1.ethereum.chainId);
312
- exports.ethereumWETH = token({
313
- chainId: chain_1.ethereum.chainId,
314
- token: (0, viem_1.getAddress)("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"),
296
+ export const ethereumETH = nativeETH(ethereum.chainId);
297
+ export const ethereumWETH = token({
298
+ chainId: ethereum.chainId,
299
+ token: getAddress("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"),
315
300
  decimals: 18,
316
301
  name: "Wrapped Ether",
317
302
  symbol: TokenSymbol.WETH,
318
303
  logoURI: TokenLogo.WETH,
319
304
  });
320
- exports.ethereumUSDC = token({
321
- chainId: chain_1.ethereum.chainId,
322
- token: (0, viem_1.getAddress)("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"),
305
+ export const ethereumUSDC = token({
306
+ chainId: ethereum.chainId,
307
+ token: getAddress("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"),
323
308
  decimals: 6,
324
309
  fiatISO: "USD",
325
310
  name: "USD Coin",
326
311
  symbol: TokenSymbol.USDC,
327
312
  logoURI: TokenLogo.USDC,
328
313
  });
329
- exports.ethereumDAI = token({
330
- chainId: chain_1.ethereum.chainId,
331
- token: (0, viem_1.getAddress)("0x6B175474E89094C44Da98b954EedeAC495271d0F"),
314
+ export const ethereumDAI = token({
315
+ chainId: ethereum.chainId,
316
+ token: getAddress("0x6B175474E89094C44Da98b954EedeAC495271d0F"),
332
317
  decimals: 18,
333
318
  fiatISO: "USD",
334
319
  name: "Dai Stablecoin",
335
320
  symbol: TokenSymbol.DAI,
336
321
  logoURI: TokenLogo.DAI,
337
322
  });
338
- exports.ethereumUSDT = token({
339
- chainId: chain_1.ethereum.chainId,
340
- token: (0, viem_1.getAddress)("0xdAC17F958D2ee523a2206206994597C13D831ec7"),
323
+ export const ethereumUSDT = token({
324
+ chainId: ethereum.chainId,
325
+ token: getAddress("0xdAC17F958D2ee523a2206206994597C13D831ec7"),
341
326
  decimals: 6,
342
327
  fiatISO: "USD",
343
328
  name: "Tether USD",
344
329
  symbol: TokenSymbol.USDT,
345
330
  logoURI: TokenLogo.USDT,
346
331
  });
347
- exports.ethereumEURC = token({
348
- chainId: chain_1.ethereum.chainId,
349
- token: (0, viem_1.getAddress)("0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c"),
332
+ export const ethereumEURC = token({
333
+ chainId: ethereum.chainId,
334
+ token: getAddress("0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c"),
350
335
  decimals: 6,
351
336
  fiatISO: "EUR",
352
337
  name: "EUR Coin",
@@ -354,149 +339,149 @@ exports.ethereumEURC = token({
354
339
  logoURI: TokenLogo.EURC,
355
340
  });
356
341
  const ethereumTokens = [
357
- exports.ethereumETH,
358
- exports.ethereumWETH,
359
- exports.ethereumUSDC,
360
- exports.ethereumEURC,
361
- exports.ethereumDAI,
362
- exports.ethereumUSDT,
342
+ ethereumETH,
343
+ ethereumWETH,
344
+ ethereumUSDC,
345
+ ethereumEURC,
346
+ ethereumDAI,
347
+ ethereumUSDT,
363
348
  ];
364
349
  //
365
350
  // Linea
366
351
  //
367
- exports.lineaETH = nativeETH(chain_1.linea.chainId);
368
- exports.lineaWETH = token({
369
- chainId: chain_1.linea.chainId,
370
- token: (0, viem_1.getAddress)("0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f"),
352
+ export const lineaETH = nativeETH(linea.chainId);
353
+ export const lineaWETH = token({
354
+ chainId: linea.chainId,
355
+ token: getAddress("0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f"),
371
356
  decimals: 18,
372
357
  name: "Wrapped Ether",
373
358
  symbol: TokenSymbol.WETH,
374
359
  logoURI: TokenLogo.WETH,
375
360
  });
376
- exports.lineaUSDC = token({
377
- chainId: chain_1.linea.chainId,
378
- token: (0, viem_1.getAddress)("0x176211869cA2b568f2A7D4EE941E073a821EE1ff"),
361
+ export const lineaUSDC = token({
362
+ chainId: linea.chainId,
363
+ token: getAddress("0x176211869cA2b568f2A7D4EE941E073a821EE1ff"),
379
364
  decimals: 6,
380
365
  fiatISO: "USD",
381
366
  name: "USD Coin",
382
367
  symbol: TokenSymbol.USDC,
383
368
  logoURI: TokenLogo.USDC,
384
369
  });
385
- exports.lineaAxlUSDC = token({
386
- chainId: chain_1.linea.chainId,
387
- token: (0, viem_1.getAddress)("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
370
+ export const lineaAxlUSDC = token({
371
+ chainId: linea.chainId,
372
+ token: getAddress("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
388
373
  decimals: 6,
389
374
  fiatISO: "USD",
390
375
  name: "Axelar Wrapped USDC",
391
376
  symbol: TokenSymbol.AXL_USDC,
392
377
  logoURI: TokenLogo.USDC,
393
378
  });
394
- exports.lineaDAI = token({
395
- chainId: chain_1.linea.chainId,
396
- token: (0, viem_1.getAddress)("0x4AF15ec2A0BD43Db75dd04E62FAA3B8EF36b00d5"),
379
+ export const lineaDAI = token({
380
+ chainId: linea.chainId,
381
+ token: getAddress("0x4AF15ec2A0BD43Db75dd04E62FAA3B8EF36b00d5"),
397
382
  decimals: 18,
398
383
  fiatISO: "USD",
399
384
  name: "Dai Stablecoin",
400
385
  symbol: TokenSymbol.DAI,
401
386
  logoURI: TokenLogo.DAI,
402
387
  });
403
- const lineaTokens = [exports.lineaETH, exports.lineaWETH, exports.lineaUSDC, exports.lineaAxlUSDC, exports.lineaDAI];
388
+ const lineaTokens = [lineaETH, lineaWETH, lineaUSDC, lineaAxlUSDC, lineaDAI];
404
389
  //
405
390
  // Mantle
406
391
  //
407
- exports.mantleMNT = nativeToken({
408
- chainId: chain_1.mantle.chainId,
392
+ export const mantleMNT = nativeToken({
393
+ chainId: mantle.chainId,
409
394
  name: "Mantle",
410
395
  symbol: TokenSymbol.MNT,
411
396
  logoURI: TokenLogo.MNT,
412
397
  });
413
- exports.mantleWMNT = token({
414
- chainId: chain_1.mantle.chainId,
415
- token: (0, viem_1.getAddress)("0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"),
398
+ export const mantleWMNT = token({
399
+ chainId: mantle.chainId,
400
+ token: getAddress("0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"),
416
401
  decimals: 18,
417
402
  name: "Wrapped Mantle",
418
403
  symbol: TokenSymbol.WMNT,
419
404
  logoURI: TokenLogo.MNT,
420
405
  });
421
- exports.mantleBridgedUSDC = token({
422
- chainId: chain_1.mantle.chainId,
423
- token: (0, viem_1.getAddress)("0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9"),
406
+ export const mantleBridgedUSDC = token({
407
+ chainId: mantle.chainId,
408
+ token: getAddress("0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9"),
424
409
  decimals: 6,
425
410
  fiatISO: "USD",
426
411
  name: "USD Coin",
427
412
  symbol: TokenSymbol.USDC,
428
413
  logoURI: TokenLogo.USDC,
429
414
  });
430
- exports.mantleUSDT = token({
431
- chainId: chain_1.mantle.chainId,
432
- token: (0, viem_1.getAddress)("0x201eba5cc46d216ce6dc03f6a759e8e766e956ae"),
415
+ export const mantleUSDT = token({
416
+ chainId: mantle.chainId,
417
+ token: getAddress("0x201eba5cc46d216ce6dc03f6a759e8e766e956ae"),
433
418
  decimals: 6,
434
419
  fiatISO: "USD",
435
420
  name: "Tether USD",
436
421
  symbol: TokenSymbol.USDT,
437
422
  logoURI: TokenLogo.USDT,
438
423
  });
439
- exports.mantleAxlUSDC = token({
440
- chainId: chain_1.mantle.chainId,
441
- token: (0, viem_1.getAddress)("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
424
+ export const mantleAxlUSDC = token({
425
+ chainId: mantle.chainId,
426
+ token: getAddress("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
442
427
  decimals: 6,
443
428
  fiatISO: "USD",
444
429
  name: "Axelar Wrapped USDC",
445
430
  symbol: TokenSymbol.AXL_USDC,
446
431
  logoURI: TokenLogo.USDC,
447
432
  });
448
- const mantleTokens = [exports.mantleMNT, exports.mantleWMNT, exports.mantleBridgedUSDC, exports.mantleUSDT, exports.mantleAxlUSDC];
433
+ const mantleTokens = [mantleMNT, mantleWMNT, mantleBridgedUSDC, mantleUSDT, mantleAxlUSDC];
449
434
  //
450
435
  // Optimism
451
436
  //
452
- exports.optimismETH = nativeETH(chain_1.optimism.chainId);
453
- exports.optimismWETH = token({
454
- chainId: chain_1.optimism.chainId,
455
- token: (0, viem_1.getAddress)("0x4200000000000000000000000000000000000006"),
437
+ export const optimismETH = nativeETH(optimism.chainId);
438
+ export const optimismWETH = token({
439
+ chainId: optimism.chainId,
440
+ token: getAddress("0x4200000000000000000000000000000000000006"),
456
441
  decimals: 18,
457
442
  name: "Wrapped Ether",
458
443
  symbol: TokenSymbol.WETH,
459
444
  logoURI: TokenLogo.WETH,
460
445
  });
461
- exports.optimismUSDC = token({
462
- chainId: chain_1.optimism.chainId,
463
- token: (0, viem_1.getAddress)("0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"),
446
+ export const optimismUSDC = token({
447
+ chainId: optimism.chainId,
448
+ token: getAddress("0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"),
464
449
  decimals: 6,
465
450
  fiatISO: "USD",
466
451
  name: "USD Coin",
467
452
  symbol: TokenSymbol.USDC,
468
453
  logoURI: TokenLogo.USDC,
469
454
  });
470
- exports.optimismAxlUSDC = token({
471
- chainId: chain_1.optimism.chainId,
472
- token: (0, viem_1.getAddress)("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
455
+ export const optimismAxlUSDC = token({
456
+ chainId: optimism.chainId,
457
+ token: getAddress("0xEB466342C4d449BC9f53A865D5Cb90586f405215"),
473
458
  decimals: 6,
474
459
  fiatISO: "USD",
475
460
  name: "Axelar Wrapped USDC",
476
461
  symbol: TokenSymbol.AXL_USDC,
477
462
  logoURI: TokenLogo.USDC,
478
463
  });
479
- exports.optimismDAI = token({
480
- chainId: chain_1.optimism.chainId,
481
- token: (0, viem_1.getAddress)("0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"),
464
+ export const optimismDAI = token({
465
+ chainId: optimism.chainId,
466
+ token: getAddress("0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"),
482
467
  decimals: 18,
483
468
  fiatISO: "USD",
484
469
  name: "Dai Stablecoin",
485
470
  symbol: TokenSymbol.DAI,
486
471
  logoURI: TokenLogo.DAI,
487
472
  });
488
- exports.optimismUSDT = token({
489
- chainId: chain_1.optimism.chainId,
490
- token: (0, viem_1.getAddress)("0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"),
473
+ export const optimismUSDT = token({
474
+ chainId: optimism.chainId,
475
+ token: getAddress("0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"),
491
476
  decimals: 6,
492
477
  fiatISO: "USD",
493
478
  name: "Tether USD",
494
479
  symbol: TokenSymbol.USDT,
495
480
  logoURI: TokenLogo.USDT,
496
481
  });
497
- exports.optimismUSDCe = token({
498
- chainId: chain_1.optimism.chainId,
499
- token: (0, viem_1.getAddress)("0x7F5c764cBc14f9669B88837ca1490cCa17c31607"),
482
+ export const optimismUSDCe = token({
483
+ chainId: optimism.chainId,
484
+ token: getAddress("0x7F5c764cBc14f9669B88837ca1490cCa17c31607"),
500
485
  decimals: 6,
501
486
  fiatISO: "USD",
502
487
  name: "Bridged USD Coin",
@@ -504,78 +489,78 @@ exports.optimismUSDCe = token({
504
489
  logoURI: TokenLogo.USDC,
505
490
  });
506
491
  const optimismTokens = [
507
- exports.optimismETH,
508
- exports.optimismWETH,
509
- exports.optimismUSDC,
510
- exports.optimismAxlUSDC,
511
- exports.optimismDAI,
512
- exports.optimismUSDT,
513
- exports.optimismUSDCe,
492
+ optimismETH,
493
+ optimismWETH,
494
+ optimismUSDC,
495
+ optimismAxlUSDC,
496
+ optimismDAI,
497
+ optimismUSDT,
498
+ optimismUSDCe,
514
499
  ];
515
500
  //
516
501
  // Polygon
517
502
  //
518
- exports.polygonPOL = nativeToken({
519
- chainId: chain_1.polygon.chainId,
503
+ export const polygonPOL = nativeToken({
504
+ chainId: polygon.chainId,
520
505
  name: "Polygon",
521
506
  symbol: TokenSymbol.POL,
522
507
  logoURI: TokenLogo.POL,
523
508
  });
524
- exports.polygonWPOL = token({
525
- chainId: chain_1.polygon.chainId,
526
- token: (0, viem_1.getAddress)("0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"),
509
+ export const polygonWPOL = token({
510
+ chainId: polygon.chainId,
511
+ token: getAddress("0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"),
527
512
  decimals: 18,
528
513
  name: "Wrapped Polygon",
529
514
  symbol: TokenSymbol.WPOL,
530
515
  logoURI: TokenLogo.POL,
531
516
  });
532
- exports.polygonWETH = token({
533
- chainId: chain_1.polygon.chainId,
534
- token: (0, viem_1.getAddress)("0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"),
517
+ export const polygonWETH = token({
518
+ chainId: polygon.chainId,
519
+ token: getAddress("0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"),
535
520
  decimals: 18,
536
521
  name: "Wrapped Ether",
537
522
  symbol: TokenSymbol.WETH,
538
523
  logoURI: TokenLogo.WETH,
539
524
  });
540
- exports.polygonUSDC = token({
541
- chainId: chain_1.polygon.chainId,
542
- token: (0, viem_1.getAddress)("0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"),
525
+ export const polygonUSDC = token({
526
+ chainId: polygon.chainId,
527
+ token: getAddress("0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"),
543
528
  decimals: 6,
544
529
  fiatISO: "USD",
545
530
  name: "USD Coin",
546
531
  symbol: TokenSymbol.USDC,
547
532
  logoURI: TokenLogo.USDC,
548
533
  });
549
- exports.polygonAxlUSDC = token({
550
- chainId: chain_1.polygon.chainId,
551
- token: (0, viem_1.getAddress)("0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed"),
534
+ export const polygonAxlUSDC = token({
535
+ chainId: polygon.chainId,
536
+ token: getAddress("0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed"),
552
537
  decimals: 6,
553
538
  fiatISO: "USD",
554
539
  name: "Axelar Wrapped USDC",
555
540
  symbol: TokenSymbol.AXL_USDC,
556
541
  logoURI: TokenLogo.USDC,
557
542
  });
558
- exports.polygonDAI = token({
559
- chainId: chain_1.polygon.chainId,
560
- token: (0, viem_1.getAddress)("0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"),
543
+ export const polygonDAI = token({
544
+ chainId: polygon.chainId,
545
+ token: getAddress("0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"),
561
546
  decimals: 18,
562
547
  fiatISO: "USD",
563
548
  name: "Dai Stablecoin",
564
549
  symbol: TokenSymbol.DAI,
565
550
  logoURI: TokenLogo.DAI,
566
551
  });
567
- exports.polygonUSDT = token({
568
- chainId: chain_1.polygon.chainId,
569
- token: (0, viem_1.getAddress)("0xc2132D05D31c914a87C6611C10748AEb04B58e8F"),
552
+ export const polygonUSDT = token({
553
+ chainId: polygon.chainId,
554
+ token: getAddress("0xc2132D05D31c914a87C6611C10748AEb04B58e8F"),
570
555
  decimals: 6,
571
556
  fiatISO: "USD",
572
557
  name: "Tether USD",
573
558
  symbol: TokenSymbol.USDT,
574
559
  logoURI: TokenLogo.USDT,
575
560
  });
576
- exports.polygonUSDCe = token({
577
- chainId: chain_1.polygon.chainId,
578
- token: (0, viem_1.getAddress)("0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"),
561
+ export const polygonUSDCe = token({
562
+ chainId: polygon.chainId,
563
+ token: getAddress("0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"),
579
564
  decimals: 6,
580
565
  fiatISO: "USD",
581
566
  name: "USD Coin (PoS)",
@@ -583,36 +568,36 @@ exports.polygonUSDCe = token({
583
568
  logoURI: TokenLogo.USDC,
584
569
  });
585
570
  const polygonTokens = [
586
- exports.polygonPOL,
587
- exports.polygonWPOL,
588
- exports.polygonWETH,
589
- exports.polygonUSDC,
590
- exports.polygonAxlUSDC,
591
- exports.polygonDAI,
592
- exports.polygonUSDT,
593
- exports.polygonUSDCe,
571
+ polygonPOL,
572
+ polygonWPOL,
573
+ polygonWETH,
574
+ polygonUSDC,
575
+ polygonAxlUSDC,
576
+ polygonDAI,
577
+ polygonUSDT,
578
+ polygonUSDCe,
594
579
  ];
595
580
  //
596
581
  // Solana
597
582
  //
598
- exports.solanaSOL = nativeToken({
599
- chainId: chain_1.solana.chainId,
583
+ export const solanaSOL = nativeToken({
584
+ chainId: solana.chainId,
600
585
  name: "Solana",
601
586
  symbol: TokenSymbol.SOL,
602
587
  logoURI: TokenLogo.SOL,
603
588
  token: "11111111111111111111111111111111",
604
589
  decimals: 9,
605
590
  });
606
- exports.solanaWSOL = token({
607
- chainId: chain_1.solana.chainId,
591
+ export const solanaWSOL = token({
592
+ chainId: solana.chainId,
608
593
  token: "So11111111111111111111111111111111111111112",
609
594
  decimals: 9,
610
595
  name: "Wrapped SOL",
611
596
  symbol: TokenSymbol.WSOL,
612
597
  logoURI: TokenLogo.SOL,
613
598
  });
614
- exports.solanaUSDC = token({
615
- chainId: chain_1.solana.chainId,
599
+ export const solanaUSDC = token({
600
+ chainId: solana.chainId,
616
601
  token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
617
602
  decimals: 6,
618
603
  fiatISO: "USD",
@@ -620,8 +605,8 @@ exports.solanaUSDC = token({
620
605
  symbol: TokenSymbol.USDC,
621
606
  logoURI: TokenLogo.USDC,
622
607
  });
623
- exports.solanaUSDT = token({
624
- chainId: chain_1.solana.chainId,
608
+ export const solanaUSDT = token({
609
+ chainId: solana.chainId,
625
610
  token: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
626
611
  decimals: 6,
627
612
  fiatISO: "USD",
@@ -629,8 +614,8 @@ exports.solanaUSDT = token({
629
614
  symbol: TokenSymbol.USDT,
630
615
  logoURI: TokenLogo.USDT,
631
616
  });
632
- exports.rozoSolanaUSDC = token({
633
- chainId: chain_1.rozoSolana.chainId,
617
+ export const rozoSolanaUSDC = token({
618
+ chainId: rozoSolana.chainId,
634
619
  token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
635
620
  decimals: 6,
636
621
  fiatISO: "USD",
@@ -638,8 +623,8 @@ exports.rozoSolanaUSDC = token({
638
623
  symbol: TokenSymbol.USDC,
639
624
  logoURI: TokenLogo.USDC,
640
625
  });
641
- exports.rozoSolanaUSDT = token({
642
- chainId: chain_1.rozoSolana.chainId,
626
+ export const rozoSolanaUSDT = token({
627
+ chainId: rozoSolana.chainId,
643
628
  token: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
644
629
  decimals: 6,
645
630
  fiatISO: "USD",
@@ -648,26 +633,26 @@ exports.rozoSolanaUSDT = token({
648
633
  logoURI: TokenLogo.USDT,
649
634
  });
650
635
  const solanaTokens = [
651
- exports.solanaUSDC,
652
- exports.solanaWSOL,
653
- exports.solanaSOL,
654
- exports.solanaUSDT,
655
- exports.rozoSolanaUSDC,
656
- exports.rozoSolanaUSDT,
636
+ solanaUSDC,
637
+ solanaWSOL,
638
+ solanaSOL,
639
+ solanaUSDT,
640
+ rozoSolanaUSDC,
641
+ rozoSolanaUSDT,
657
642
  ];
658
643
  //
659
644
  // Stellar
660
645
  //
661
- exports.stellarXLM = nativeToken({
662
- chainId: chain_1.stellar.chainId,
646
+ export const stellarXLM = nativeToken({
647
+ chainId: stellar.chainId,
663
648
  name: "Stellar",
664
649
  symbol: TokenSymbol.XLM,
665
650
  logoURI: TokenLogo.XLM,
666
651
  token: "11111111111111111111111111111111",
667
652
  decimals: 9,
668
653
  });
669
- exports.stellarUSDC = token({
670
- chainId: chain_1.stellar.chainId,
654
+ export const stellarUSDC = token({
655
+ chainId: stellar.chainId,
671
656
  token: "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
672
657
  decimals: 7,
673
658
  fiatISO: "USD",
@@ -675,8 +660,8 @@ exports.stellarUSDC = token({
675
660
  symbol: TokenSymbol.USDC,
676
661
  logoURI: TokenLogo.USDC,
677
662
  });
678
- exports.rozoStellarUSDC = token({
679
- chainId: chain_1.rozoStellar.chainId,
663
+ export const rozoStellarUSDC = token({
664
+ chainId: rozoStellar.chainId,
680
665
  token: "USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
681
666
  decimals: 7,
682
667
  fiatISO: "USD",
@@ -684,8 +669,8 @@ exports.rozoStellarUSDC = token({
684
669
  symbol: TokenSymbol.USDC,
685
670
  logoURI: TokenLogo.USDC,
686
671
  });
687
- exports.rozoStellarEURC = token({
688
- chainId: chain_1.rozoStellar.chainId,
672
+ export const rozoStellarEURC = token({
673
+ chainId: rozoStellar.chainId,
689
674
  token: "EURC:GDHU6WRG4IEQXM5NZ4BMPKOXHW76MZM4Y2IEMFDVXBSDP6SJY4ITNPP2",
690
675
  decimals: 6,
691
676
  fiatISO: "EUR",
@@ -693,141 +678,141 @@ exports.rozoStellarEURC = token({
693
678
  symbol: TokenSymbol.EURC,
694
679
  logoURI: TokenLogo.EURC,
695
680
  });
696
- const stellarTokens = [exports.stellarXLM, exports.stellarUSDC, exports.rozoStellarUSDC, exports.rozoStellarEURC];
681
+ const stellarTokens = [stellarXLM, stellarUSDC, rozoStellarUSDC, rozoStellarEURC];
697
682
  //
698
683
  // Worldchain
699
684
  //
700
- exports.worldchainETH = nativeETH(chain_1.worldchain.chainId);
701
- exports.worldchainWETH = token({
702
- chainId: chain_1.worldchain.chainId,
703
- token: (0, viem_1.getAddress)("0x4200000000000000000000000000000000000006"),
685
+ export const worldchainETH = nativeETH(worldchain.chainId);
686
+ export const worldchainWETH = token({
687
+ chainId: worldchain.chainId,
688
+ token: getAddress("0x4200000000000000000000000000000000000006"),
704
689
  decimals: 18,
705
690
  name: "Wrapped Ether",
706
691
  symbol: TokenSymbol.WETH,
707
692
  logoURI: TokenLogo.WETH,
708
693
  });
709
- exports.worldchainWBTC = token({
710
- chainId: chain_1.worldchain.chainId,
711
- token: (0, viem_1.getAddress)("0x03c7054bcb39f7b2e5b2c7acb37583e32d70cfa3"),
694
+ export const worldchainWBTC = token({
695
+ chainId: worldchain.chainId,
696
+ token: getAddress("0x03c7054bcb39f7b2e5b2c7acb37583e32d70cfa3"),
712
697
  decimals: 8,
713
698
  name: "Wrapped Bitcoin",
714
699
  symbol: TokenSymbol.WBTC,
715
700
  logoURI: TokenLogo.WBTC,
716
701
  });
717
- exports.worldchainUSDC = token({
718
- chainId: chain_1.worldchain.chainId,
719
- token: (0, viem_1.getAddress)("0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"),
702
+ export const worldchainUSDC = token({
703
+ chainId: worldchain.chainId,
704
+ token: getAddress("0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"),
720
705
  decimals: 6,
721
706
  fiatISO: "USD",
722
707
  name: "USD Coin",
723
708
  symbol: TokenSymbol.USDC,
724
709
  logoURI: TokenLogo.USDC,
725
710
  });
726
- exports.worldchainWLD = token({
727
- chainId: chain_1.worldchain.chainId,
728
- token: (0, viem_1.getAddress)("0x2cFc85d8E48F8EAB294be644d9E25C3030863003"),
711
+ export const worldchainWLD = token({
712
+ chainId: worldchain.chainId,
713
+ token: getAddress("0x2cFc85d8E48F8EAB294be644d9E25C3030863003"),
729
714
  decimals: 18,
730
715
  name: "Worldcoin",
731
716
  symbol: TokenSymbol.WLD,
732
717
  logoURI: TokenLogo.WLD,
733
718
  });
734
719
  const worldchainTokens = [
735
- exports.worldchainETH,
736
- exports.worldchainWETH,
737
- exports.worldchainWBTC,
738
- exports.worldchainUSDC,
739
- exports.worldchainWLD,
720
+ worldchainETH,
721
+ worldchainWETH,
722
+ worldchainWBTC,
723
+ worldchainUSDC,
724
+ worldchainWLD,
740
725
  ];
741
726
  //
742
727
  // HyperEVM
743
728
  //
744
- exports.hyperEVMUSDC = token({
745
- chainId: chain_1.hyperEVM.chainId,
746
- token: (0, viem_1.getAddress)("0xb88339CB7199b77E23DB6E890353E22632Ba630f"),
729
+ export const hyperEVMUSDC = token({
730
+ chainId: hyperEVM.chainId,
731
+ token: getAddress("0xb88339CB7199b77E23DB6E890353E22632Ba630f"),
747
732
  decimals: 6,
748
733
  fiatISO: "USD",
749
734
  name: "USD Coin",
750
735
  symbol: TokenSymbol.USDC,
751
736
  logoURI: TokenLogo.USDC,
752
737
  });
753
- const hyperEVMTokens = [exports.hyperEVMUSDC];
738
+ const hyperEVMTokens = [hyperEVMUSDC];
754
739
  //
755
740
  // Gnosis
756
741
  //
757
- exports.gnosisXDAI = nativeToken({
758
- chainId: chain_1.gnosis.chainId,
742
+ export const gnosisXDAI = nativeToken({
743
+ chainId: gnosis.chainId,
759
744
  name: "xDAI",
760
745
  symbol: TokenSymbol.XDAI,
761
746
  logoURI: TokenLogo.DAI,
762
747
  });
763
- exports.gnosisUSDC = token({
764
- chainId: chain_1.gnosis.chainId,
765
- token: (0, viem_1.getAddress)("0x2a22f9c3b484c3629090feed35f17ff8f88f76f0"),
748
+ export const gnosisUSDC = token({
749
+ chainId: gnosis.chainId,
750
+ token: getAddress("0x2a22f9c3b484c3629090feed35f17ff8f88f76f0"),
766
751
  decimals: 6,
767
752
  fiatISO: "USD",
768
753
  name: "USD Coin",
769
754
  symbol: TokenSymbol.USDC,
770
755
  logoURI: TokenLogo.USDC,
771
756
  });
772
- exports.gnosisUSDT = token({
773
- chainId: chain_1.gnosis.chainId,
774
- token: (0, viem_1.getAddress)("0x4ecaba5870353805a9f068101a40e0f32ed605c6"),
757
+ export const gnosisUSDT = token({
758
+ chainId: gnosis.chainId,
759
+ token: getAddress("0x4ecaba5870353805a9f068101a40e0f32ed605c6"),
775
760
  decimals: 6,
776
761
  fiatISO: "USD",
777
762
  name: "Tether USD",
778
763
  symbol: TokenSymbol.USDT,
779
764
  logoURI: TokenLogo.USDT,
780
765
  });
781
- const gnosisTokens = [exports.gnosisXDAI, exports.gnosisUSDC, exports.gnosisUSDT];
766
+ const gnosisTokens = [gnosisXDAI, gnosisUSDC, gnosisUSDT];
782
767
  //
783
768
  // Avalanche
784
769
  //
785
- exports.avalancheAVAX = nativeToken({
786
- chainId: chain_1.avalanche.chainId,
770
+ export const avalancheAVAX = nativeToken({
771
+ chainId: avalanche.chainId,
787
772
  name: "Avalanche",
788
773
  symbol: TokenSymbol.AVAX,
789
774
  logoURI: TokenLogo.AVAX,
790
775
  });
791
- exports.avalancheUSDC = token({
792
- chainId: chain_1.avalanche.chainId,
793
- token: (0, viem_1.getAddress)("0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"),
776
+ export const avalancheUSDC = token({
777
+ chainId: avalanche.chainId,
778
+ token: getAddress("0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"),
794
779
  decimals: 6,
795
780
  fiatISO: "USD",
796
781
  name: "USD Coin",
797
782
  symbol: TokenSymbol.USDC,
798
783
  logoURI: TokenLogo.USDC,
799
784
  });
800
- exports.avalancheUSDT = token({
801
- chainId: chain_1.avalanche.chainId,
802
- token: (0, viem_1.getAddress)("0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"),
785
+ export const avalancheUSDT = token({
786
+ chainId: avalanche.chainId,
787
+ token: getAddress("0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"),
803
788
  decimals: 6,
804
789
  fiatISO: "USD",
805
790
  name: "Tether USD",
806
791
  symbol: TokenSymbol.USDT,
807
792
  logoURI: TokenLogo.USDT,
808
793
  });
809
- const avalancheTokens = [exports.avalancheAVAX, exports.avalancheUSDC, exports.avalancheUSDT];
794
+ const avalancheTokens = [avalancheAVAX, avalancheUSDC, avalancheUSDT];
810
795
  /** Support tokens for Rozo Pay */
811
- exports.supportedTokens = new Map([
812
- [chain_1.arbitrum.chainId, [exports.arbitrumUSDC, exports.arbitrumUSDT]],
813
- [chain_1.base.chainId, [exports.baseUSDC, exports.baseEURC]],
814
- [chain_1.bsc.chainId, [exports.bscUSDC, exports.bscUSDT]],
815
- [chain_1.ethereum.chainId, [exports.ethereumUSDC, exports.ethereumUSDT]],
816
- [chain_1.polygon.chainId, [exports.polygonUSDC, exports.polygonUSDT]],
817
- [chain_1.hyperEVM.chainId, [exports.hyperEVMUSDC]],
818
- [chain_1.solana.chainId, [exports.solanaUSDC, exports.solanaUSDT]],
819
- [chain_1.rozoSolana.chainId, [exports.rozoSolanaUSDC, exports.rozoSolanaUSDT]],
820
- [chain_1.rozoStellar.chainId, [exports.rozoStellarUSDC, exports.rozoStellarEURC]],
796
+ export const supportedTokens = new Map([
797
+ [arbitrum.chainId, [arbitrumUSDC, arbitrumUSDT]],
798
+ [base.chainId, [baseUSDC, baseEURC]],
799
+ [bsc.chainId, [bscUSDC, bscUSDT]],
800
+ [ethereum.chainId, [ethereumUSDC, ethereumUSDT]],
801
+ [polygon.chainId, [polygonUSDC, polygonUSDT]],
802
+ [hyperEVM.chainId, [hyperEVMUSDC]],
803
+ [solana.chainId, [solanaUSDC, solanaUSDT]],
804
+ [rozoSolana.chainId, [rozoSolanaUSDC, rozoSolanaUSDT]],
805
+ [rozoStellar.chainId, [rozoStellarUSDC, rozoStellarEURC]],
821
806
  ]);
822
- exports.supportedPayoutTokens = new Map([
823
- [chain_1.arbitrum.chainId, [exports.arbitrumUSDC]],
824
- [chain_1.ethereum.chainId, [exports.ethereumUSDC]],
825
- [chain_1.base.chainId, [exports.baseUSDC, exports.baseEURC]],
826
- [chain_1.bsc.chainId, [exports.bscUSDC]],
827
- [chain_1.polygon.chainId, [exports.polygonUSDC]],
828
- [chain_1.hyperEVM.chainId, [exports.hyperEVMUSDC]],
829
- [chain_1.rozoSolana.chainId, [exports.rozoSolanaUSDC]],
830
- [chain_1.rozoStellar.chainId, [exports.rozoStellarUSDC, exports.rozoStellarEURC]],
807
+ export const supportedPayoutTokens = new Map([
808
+ [arbitrum.chainId, [arbitrumUSDC]],
809
+ [ethereum.chainId, [ethereumUSDC]],
810
+ [base.chainId, [baseUSDC, baseEURC]],
811
+ [bsc.chainId, [bscUSDC]],
812
+ [polygon.chainId, [polygonUSDC]],
813
+ [hyperEVM.chainId, [hyperEVMUSDC]],
814
+ [rozoSolana.chainId, [rozoSolanaUSDC]],
815
+ [rozoStellar.chainId, [rozoStellarUSDC, rozoStellarEURC]],
831
816
  ]);
832
817
  /**
833
818
  * Common tokens, included for convenience.
@@ -835,8 +820,8 @@ exports.supportedPayoutTokens = new Map([
835
820
  * Rozo Pay supports payment in many more tokens. In general, the goal for
836
821
  * Pay is to accept all tokens with DEX liquidity on any major chain.
837
822
  */
838
- exports.knownTokens = Array.from(exports.supportedTokens.values()).flat();
839
- exports.knownChains = Array.from(exports.supportedTokens.keys());
823
+ export const knownTokens = Array.from(supportedTokens.values()).flat();
824
+ export const knownChains = Array.from(supportedTokens.keys());
840
825
  /* --------------------- Tokens By Address --------------------- */
841
826
  /**
842
827
  * Chain-aware address normalizer. EVM addresses are case-insensitive (EIP-55),
@@ -844,24 +829,24 @@ exports.knownChains = Array.from(exports.supportedTokens.keys());
844
829
  * case-sensitive, so lowercasing would corrupt them. Pass `chainId` so the
845
830
  * right rule applies. Null-safe: returns undefined for a missing address.
846
831
  */
847
- function normalizeTokenAddress(chainId, address) {
832
+ export function normalizeTokenAddress(chainId, address) {
848
833
  if (address == null)
849
834
  return undefined;
850
835
  // ponytail: getChainById throws on unknown chain; never crash a comparison
851
836
  let type;
852
837
  try {
853
- type = (0, chain_1.getChainById)(chainId).type;
838
+ type = getChainById(chainId).type;
854
839
  }
855
840
  catch {
856
841
  type = undefined;
857
842
  }
858
843
  return type === "evm" ? address.toLowerCase() : address;
859
844
  }
860
- const tokensByChainAddr = new Map(exports.knownTokens.map((t) => [
845
+ const tokensByChainAddr = new Map(knownTokens.map((t) => [
861
846
  `${t.chainId}-${normalizeTokenAddress(t.chainId, t.token) ?? t.token}`,
862
847
  t,
863
848
  ]));
864
- function getKnownToken(chainId, tokenAddress) {
849
+ export function getKnownToken(chainId, tokenAddress) {
865
850
  if (tokenAddress == null)
866
851
  return undefined;
867
852
  return tokensByChainAddr.get(`${chainId}-${normalizeTokenAddress(chainId, tokenAddress) ?? tokenAddress}`);
@@ -879,170 +864,170 @@ var TokenType;
879
864
  })(TokenType || (TokenType = {}));
880
865
  const tokensByChainAndType = new Map([
881
866
  [
882
- chain_1.arbitrum.chainId,
867
+ arbitrum.chainId,
883
868
  {
884
- [TokenType.NATIVE]: exports.arbitrumETH,
885
- [TokenType.WRAPPED_NATIVE]: exports.arbitrumWETH,
886
- [TokenType.NATIVE_USDC]: exports.arbitrumUSDC,
887
- [TokenType.BRIDGED_USDC]: exports.arbitrumUSDCe,
888
- [TokenType.AXL_USDC]: exports.arbitrumAxlUSDC,
889
- [TokenType.DAI]: exports.arbitrumDAI,
869
+ [TokenType.NATIVE]: arbitrumETH,
870
+ [TokenType.WRAPPED_NATIVE]: arbitrumWETH,
871
+ [TokenType.NATIVE_USDC]: arbitrumUSDC,
872
+ [TokenType.BRIDGED_USDC]: arbitrumUSDCe,
873
+ [TokenType.AXL_USDC]: arbitrumAxlUSDC,
874
+ [TokenType.DAI]: arbitrumDAI,
890
875
  },
891
876
  ],
892
877
  [
893
- chain_1.base.chainId,
878
+ base.chainId,
894
879
  {
895
- [TokenType.NATIVE]: exports.baseETH,
896
- [TokenType.WRAPPED_NATIVE]: exports.baseWETH,
897
- [TokenType.NATIVE_USDC]: exports.baseUSDC,
898
- [TokenType.BRIDGED_USDC]: exports.baseUSDbC,
899
- [TokenType.AXL_USDC]: exports.baseAxlUSDC,
900
- [TokenType.DAI]: exports.baseDAI,
901
- [TokenType.NATIVE_EURC]: exports.baseEURC,
880
+ [TokenType.NATIVE]: baseETH,
881
+ [TokenType.WRAPPED_NATIVE]: baseWETH,
882
+ [TokenType.NATIVE_USDC]: baseUSDC,
883
+ [TokenType.BRIDGED_USDC]: baseUSDbC,
884
+ [TokenType.AXL_USDC]: baseAxlUSDC,
885
+ [TokenType.DAI]: baseDAI,
886
+ [TokenType.NATIVE_EURC]: baseEURC,
902
887
  },
903
888
  ],
904
889
  [
905
- chain_1.bsc.chainId,
890
+ bsc.chainId,
906
891
  {
907
- [TokenType.NATIVE]: exports.bscBNB,
908
- [TokenType.WRAPPED_NATIVE]: exports.bscWBNB,
909
- [TokenType.BRIDGED_USDC]: exports.bscUSDC,
910
- [TokenType.AXL_USDC]: exports.bscAxlUSDC,
892
+ [TokenType.NATIVE]: bscBNB,
893
+ [TokenType.WRAPPED_NATIVE]: bscWBNB,
894
+ [TokenType.BRIDGED_USDC]: bscUSDC,
895
+ [TokenType.AXL_USDC]: bscAxlUSDC,
911
896
  },
912
897
  ],
913
898
  [
914
- chain_1.celo.chainId,
899
+ celo.chainId,
915
900
  {
916
901
  // CELO functions as both a native token and an ERC-20 compatible token
917
- [TokenType.NATIVE]: exports.celoCelo,
918
- [TokenType.WRAPPED_NATIVE]: exports.celoCelo,
919
- [TokenType.NATIVE_USDC]: exports.celoUSDC,
920
- [TokenType.AXL_USDC]: exports.celoAxlUSDC,
902
+ [TokenType.NATIVE]: celoCelo,
903
+ [TokenType.WRAPPED_NATIVE]: celoCelo,
904
+ [TokenType.NATIVE_USDC]: celoUSDC,
905
+ [TokenType.AXL_USDC]: celoAxlUSDC,
921
906
  },
922
907
  ],
923
908
  [
924
- chain_1.ethereum.chainId,
909
+ ethereum.chainId,
925
910
  {
926
- [TokenType.NATIVE]: exports.ethereumETH,
927
- [TokenType.WRAPPED_NATIVE]: exports.ethereumWETH,
928
- [TokenType.NATIVE_USDC]: exports.ethereumUSDC,
929
- [TokenType.DAI]: exports.ethereumDAI,
911
+ [TokenType.NATIVE]: ethereumETH,
912
+ [TokenType.WRAPPED_NATIVE]: ethereumWETH,
913
+ [TokenType.NATIVE_USDC]: ethereumUSDC,
914
+ [TokenType.DAI]: ethereumDAI,
930
915
  },
931
916
  ],
932
917
  [
933
- chain_1.linea.chainId,
918
+ linea.chainId,
934
919
  {
935
- [TokenType.NATIVE]: exports.lineaETH,
936
- [TokenType.WRAPPED_NATIVE]: exports.lineaWETH,
937
- [TokenType.NATIVE_USDC]: exports.lineaUSDC,
938
- [TokenType.AXL_USDC]: exports.lineaAxlUSDC,
939
- [TokenType.DAI]: exports.lineaDAI,
920
+ [TokenType.NATIVE]: lineaETH,
921
+ [TokenType.WRAPPED_NATIVE]: lineaWETH,
922
+ [TokenType.NATIVE_USDC]: lineaUSDC,
923
+ [TokenType.AXL_USDC]: lineaAxlUSDC,
924
+ [TokenType.DAI]: lineaDAI,
940
925
  },
941
926
  ],
942
927
  [
943
- chain_1.mantle.chainId,
928
+ mantle.chainId,
944
929
  {
945
- [TokenType.NATIVE]: exports.mantleMNT,
946
- [TokenType.WRAPPED_NATIVE]: exports.mantleWMNT,
947
- [TokenType.BRIDGED_USDC]: exports.mantleBridgedUSDC,
948
- [TokenType.AXL_USDC]: exports.mantleAxlUSDC,
930
+ [TokenType.NATIVE]: mantleMNT,
931
+ [TokenType.WRAPPED_NATIVE]: mantleWMNT,
932
+ [TokenType.BRIDGED_USDC]: mantleBridgedUSDC,
933
+ [TokenType.AXL_USDC]: mantleAxlUSDC,
949
934
  },
950
935
  ],
951
936
  [
952
- chain_1.optimism.chainId,
937
+ optimism.chainId,
953
938
  {
954
- [TokenType.NATIVE]: exports.optimismETH,
955
- [TokenType.WRAPPED_NATIVE]: exports.optimismWETH,
956
- [TokenType.NATIVE_USDC]: exports.optimismUSDC,
957
- [TokenType.BRIDGED_USDC]: exports.optimismUSDCe,
958
- [TokenType.AXL_USDC]: exports.optimismAxlUSDC,
959
- [TokenType.DAI]: exports.optimismDAI,
939
+ [TokenType.NATIVE]: optimismETH,
940
+ [TokenType.WRAPPED_NATIVE]: optimismWETH,
941
+ [TokenType.NATIVE_USDC]: optimismUSDC,
942
+ [TokenType.BRIDGED_USDC]: optimismUSDCe,
943
+ [TokenType.AXL_USDC]: optimismAxlUSDC,
944
+ [TokenType.DAI]: optimismDAI,
960
945
  },
961
946
  ],
962
947
  [
963
- chain_1.polygon.chainId,
948
+ polygon.chainId,
964
949
  {
965
- [TokenType.NATIVE]: exports.polygonPOL,
966
- [TokenType.WRAPPED_NATIVE]: exports.polygonWPOL,
967
- [TokenType.NATIVE_USDC]: exports.polygonUSDC,
968
- [TokenType.BRIDGED_USDC]: exports.polygonUSDCe,
969
- [TokenType.AXL_USDC]: exports.polygonAxlUSDC,
970
- [TokenType.DAI]: exports.polygonDAI,
950
+ [TokenType.NATIVE]: polygonPOL,
951
+ [TokenType.WRAPPED_NATIVE]: polygonWPOL,
952
+ [TokenType.NATIVE_USDC]: polygonUSDC,
953
+ [TokenType.BRIDGED_USDC]: polygonUSDCe,
954
+ [TokenType.AXL_USDC]: polygonAxlUSDC,
955
+ [TokenType.DAI]: polygonDAI,
971
956
  },
972
957
  ],
973
958
  [
974
- chain_1.solana.chainId,
959
+ solana.chainId,
975
960
  {
976
- [TokenType.NATIVE]: exports.solanaSOL,
977
- [TokenType.WRAPPED_NATIVE]: exports.solanaWSOL,
978
- [TokenType.NATIVE_USDC]: exports.solanaUSDC,
961
+ [TokenType.NATIVE]: solanaSOL,
962
+ [TokenType.WRAPPED_NATIVE]: solanaWSOL,
963
+ [TokenType.NATIVE_USDC]: solanaUSDC,
979
964
  },
980
965
  ],
981
966
  [
982
- chain_1.stellar.chainId,
967
+ stellar.chainId,
983
968
  {
984
- [TokenType.NATIVE]: exports.stellarXLM,
985
- [TokenType.NATIVE_USDC]: exports.stellarUSDC,
969
+ [TokenType.NATIVE]: stellarXLM,
970
+ [TokenType.NATIVE_USDC]: stellarUSDC,
986
971
  },
987
972
  ],
988
973
  [
989
- chain_1.rozoSolana.chainId,
974
+ rozoSolana.chainId,
990
975
  {
991
- [TokenType.NATIVE]: exports.solanaSOL,
992
- [TokenType.NATIVE_USDC]: exports.rozoSolanaUSDC,
976
+ [TokenType.NATIVE]: solanaSOL,
977
+ [TokenType.NATIVE_USDC]: rozoSolanaUSDC,
993
978
  },
994
979
  ],
995
980
  [
996
- chain_1.rozoStellar.chainId,
981
+ rozoStellar.chainId,
997
982
  {
998
- [TokenType.NATIVE]: exports.stellarXLM,
999
- [TokenType.NATIVE_USDC]: exports.rozoStellarUSDC,
1000
- [TokenType.NATIVE_EURC]: exports.rozoStellarEURC,
983
+ [TokenType.NATIVE]: stellarXLM,
984
+ [TokenType.NATIVE_USDC]: rozoStellarUSDC,
985
+ [TokenType.NATIVE_EURC]: rozoStellarEURC,
1001
986
  },
1002
987
  ],
1003
988
  [
1004
- chain_1.gnosis.chainId,
989
+ gnosis.chainId,
1005
990
  {
1006
- [TokenType.NATIVE]: exports.gnosisXDAI,
1007
- [TokenType.NATIVE_USDC]: exports.gnosisUSDC,
991
+ [TokenType.NATIVE]: gnosisXDAI,
992
+ [TokenType.NATIVE_USDC]: gnosisUSDC,
1008
993
  },
1009
994
  ],
1010
995
  [
1011
- chain_1.avalanche.chainId,
996
+ avalanche.chainId,
1012
997
  {
1013
- [TokenType.NATIVE]: exports.avalancheAVAX,
1014
- [TokenType.NATIVE_USDC]: exports.avalancheUSDC,
998
+ [TokenType.NATIVE]: avalancheAVAX,
999
+ [TokenType.NATIVE_USDC]: avalancheUSDC,
1015
1000
  },
1016
1001
  ],
1017
1002
  [
1018
- chain_1.hyperEVM.chainId,
1003
+ hyperEVM.chainId,
1019
1004
  {
1020
- [TokenType.NATIVE_USDC]: exports.hyperEVMUSDC,
1005
+ [TokenType.NATIVE_USDC]: hyperEVMUSDC,
1021
1006
  },
1022
1007
  ],
1023
1008
  ]);
1024
- function getChainNativeToken(chainId) {
1025
- return (0, assert_1.assertNotNull)(tokensByChainAndType.get(chainId)?.[TokenType.NATIVE], () => `missing native token for chainId ${chainId}`);
1009
+ export function getChainNativeToken(chainId) {
1010
+ return assertNotNull(tokensByChainAndType.get(chainId)?.[TokenType.NATIVE], () => `missing native token for chainId ${chainId}`);
1026
1011
  }
1027
- function getChainWrappedNativeToken(chainId) {
1028
- return (0, assert_1.assertNotNull)(tokensByChainAndType.get(chainId)?.[TokenType.WRAPPED_NATIVE], () => `missing wrapped native token for chainId ${chainId}`);
1012
+ export function getChainWrappedNativeToken(chainId) {
1013
+ return assertNotNull(tokensByChainAndType.get(chainId)?.[TokenType.WRAPPED_NATIVE], () => `missing wrapped native token for chainId ${chainId}`);
1029
1014
  }
1030
- function getChainNativeUSDC(chainId) {
1015
+ export function getChainNativeUSDC(chainId) {
1031
1016
  return tokensByChainAndType.get(chainId)?.[TokenType.NATIVE_USDC];
1032
1017
  }
1033
- function getChainAxlUSDC(chainId) {
1018
+ export function getChainAxlUSDC(chainId) {
1034
1019
  return tokensByChainAndType.get(chainId)?.[TokenType.AXL_USDC];
1035
1020
  }
1036
1021
  /** Returns native USDC when available, otherwise bridged USDC. */
1037
- function getChainBestUSDC(chainId) {
1022
+ export function getChainBestUSDC(chainId) {
1038
1023
  const t = tokensByChainAndType.get(chainId);
1039
1024
  return t?.[TokenType.NATIVE_USDC] ?? t?.[TokenType.BRIDGED_USDC];
1040
1025
  }
1041
- function getChainDAI(chainId) {
1026
+ export function getChainDAI(chainId) {
1042
1027
  return tokensByChainAndType.get(chainId)?.[TokenType.DAI];
1043
1028
  }
1044
1029
  /** Returns true if two tokens are equal (same chain and token address). */
1045
- function tokensEqual(a, b) {
1030
+ export function tokensEqual(a, b) {
1046
1031
  return a.chainId === b.chainId && a.token === b.token;
1047
1032
  }
1048
1033
  /* --------------------- Native Token Utils --------------------- */
@@ -1054,7 +1039,7 @@ function nativeETH(chainId) {
1054
1039
  logoURI: TokenLogo.ETH,
1055
1040
  });
1056
1041
  }
1057
- function nativeToken({ chainId, name, symbol, logoURI, token = viem_1.zeroAddress, decimals = 18, }) {
1042
+ function nativeToken({ chainId, name, symbol, logoURI, token = zeroAddress, decimals = 18, }) {
1058
1043
  return {
1059
1044
  chainId,
1060
1045
  token,
@@ -1066,7 +1051,7 @@ function nativeToken({ chainId, name, symbol, logoURI, token = viem_1.zeroAddres
1066
1051
  logoSourceURI: logoURI,
1067
1052
  };
1068
1053
  }
1069
- function token({ chainId, token, name, symbol, decimals, displayDecimals, fiatISO, logoURI, }) {
1054
+ export function token({ chainId, token, name, symbol, decimals, displayDecimals, fiatISO, logoURI, }) {
1070
1055
  return {
1071
1056
  chainId,
1072
1057
  token,