@rhinestone/deposit-modal 0.8.1 → 0.9.0

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.
Files changed (65) hide show
  1. package/README.md +193 -29
  2. package/dist/{chunk-2JPB3PLB.mjs → DepositModalReown-6KUAO5ZC.mjs} +56 -4
  3. package/dist/{chunk-Q3W53BKR.cjs → DepositModalReown-XC5RIU7Z.cjs} +62 -10
  4. package/dist/{caip-C_ZYFIGa.d.cts → caip-523Zrc3r.d.cts} +1 -3
  5. package/dist/{caip-C_ZYFIGa.d.ts → caip-523Zrc3r.d.ts} +1 -3
  6. package/dist/{chunk-D3Y7ZBED.cjs → chunk-22RV33LK.cjs} +2170 -1460
  7. package/dist/chunk-4WB2FHGC.mjs +865 -0
  8. package/dist/chunk-A223BLVC.mjs +801 -0
  9. package/dist/{chunk-HQWZCOMS.cjs → chunk-DIX7M3SP.cjs} +232 -601
  10. package/dist/{chunk-T43VUEJH.mjs → chunk-E4G5BOZP.mjs} +167 -536
  11. package/dist/chunk-H577RJN5.cjs +801 -0
  12. package/dist/{chunk-DABKCJVL.mjs → chunk-ILT2PITN.mjs} +60 -3
  13. package/dist/{chunk-7KHEIMWD.mjs → chunk-KKHLNFSA.mjs} +2436 -1726
  14. package/dist/chunk-LGVJWVSS.mjs +81 -0
  15. package/dist/chunk-NEXUCY4B.cjs +11 -0
  16. package/dist/chunk-NMIMRASD.cjs +1785 -0
  17. package/dist/chunk-OSI2CFGL.mjs +11 -0
  18. package/dist/chunk-PAGMU4RQ.cjs +865 -0
  19. package/dist/chunk-T7LGQFP3.cjs +81 -0
  20. package/dist/chunk-VN4BLZYC.cjs +2273 -0
  21. package/dist/chunk-VOGZAZB2.mjs +2273 -0
  22. package/dist/chunk-WYXBY2MQ.mjs +1785 -0
  23. package/dist/{chunk-4NN7UTWQ.cjs → chunk-YEBXUUH3.cjs} +63 -6
  24. package/dist/claim.cjs +10 -0
  25. package/dist/claim.d.cts +8 -0
  26. package/dist/claim.d.ts +8 -0
  27. package/dist/claim.mjs +10 -0
  28. package/dist/constants.cjs +3 -3
  29. package/dist/constants.d.cts +4 -2
  30. package/dist/constants.d.ts +4 -2
  31. package/dist/constants.mjs +5 -5
  32. package/dist/deposit.cjs +8 -6
  33. package/dist/deposit.d.cts +2 -2
  34. package/dist/deposit.d.ts +2 -2
  35. package/dist/deposit.mjs +7 -5
  36. package/dist/index.cjs +22 -12
  37. package/dist/index.d.cts +15 -2
  38. package/dist/index.d.ts +15 -2
  39. package/dist/index.mjs +21 -11
  40. package/dist/polymarket.cjs +5 -6
  41. package/dist/polymarket.mjs +2 -3
  42. package/dist/server.cjs +96 -0
  43. package/dist/server.d.cts +65 -0
  44. package/dist/server.d.ts +65 -0
  45. package/dist/server.mjs +96 -0
  46. package/dist/styles.css +263 -12
  47. package/dist/types-C0SGf-21.d.cts +606 -0
  48. package/dist/types-C0SGf-21.d.ts +606 -0
  49. package/dist/withdraw.cjs +6 -5
  50. package/dist/withdraw.d.cts +3 -6
  51. package/dist/withdraw.d.ts +3 -6
  52. package/dist/withdraw.mjs +5 -4
  53. package/package.json +53 -6
  54. package/dist/DepositModalReown-4BSHOQ5Y.mjs +0 -63
  55. package/dist/DepositModalReown-UND3DEJH.cjs +0 -63
  56. package/dist/WithdrawModalReown-FVXSSGY5.mjs +0 -46
  57. package/dist/WithdrawModalReown-TVZWJKQI.cjs +0 -46
  58. package/dist/chunk-7OKA6GNA.cjs +0 -4537
  59. package/dist/chunk-NASHLEVQ.mjs +0 -4537
  60. package/dist/chunk-O5OKA27M.mjs +0 -800
  61. package/dist/chunk-U7SVYWVD.cjs +0 -800
  62. package/dist/chunk-WK5AFRSP.mjs +0 -295
  63. package/dist/chunk-XRWQMIBY.cjs +0 -295
  64. package/dist/types--LQWg_4W.d.cts +0 -468
  65. package/dist/types--LQWg_4W.d.ts +0 -468
@@ -1,800 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/core/caip.ts
2
- var SOLANA_MAINNET_GENESIS = "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
3
- var SOLANA_MAINNET_CAIP2 = `solana:${SOLANA_MAINNET_GENESIS}`;
4
- function toEvmCaip2(chainId) {
5
- return `eip155:${chainId}`;
6
- }
7
- function targetChainToCaip2(targetChain) {
8
- if (targetChain === "solana") return SOLANA_MAINNET_CAIP2;
9
- if (targetChain === HYPERCORE_CHAIN_ID) return HYPERCORE_MAINNET_CAIP2;
10
- return toEvmCaip2(targetChain);
11
- }
12
- function parseEvmChainId(value) {
13
- if (typeof value === "number" && Number.isFinite(value)) {
14
- return value;
15
- }
16
- if (typeof value !== "string") return null;
17
- const match = value.match(/^eip155:(\d+)$/);
18
- if (!_optionalChain([match, 'optionalAccess', _ => _[1]])) return null;
19
- const parsed = Number.parseInt(match[1], 10);
20
- return Number.isFinite(parsed) ? parsed : null;
21
- }
22
- function isSolanaCaip2(value) {
23
- return typeof value === "string" && value.startsWith("solana:");
24
- }
25
- function isHyperCoreCaip2(value) {
26
- return typeof value === "string" && value.startsWith("hypercore:");
27
- }
28
- var HYPERCORE_CHAIN_ID = 1337;
29
- var HYPERCORE_MAINNET_CAIP2 = "hypercore:mainnet";
30
- var HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
31
- var HYPERCORE_USDT0_ADDRESS = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
32
- var HYPERCORE_SOURCE_TOKENS = [
33
- { symbol: "USDC", address: HYPERCORE_USDC_ADDRESS, decimals: 6 },
34
- { symbol: "USDT0", address: HYPERCORE_USDT0_ADDRESS, decimals: 6 }
35
- ];
36
- var HYPERCORE_MIN_DEPOSIT_USD = 1;
37
- function isVirtualDestination(targetChain) {
38
- return targetChain === "solana" || targetChain === HYPERCORE_CHAIN_ID;
39
- }
40
- function isContractBytecode(code) {
41
- if (!code || code === "0x") return false;
42
- if (code.toLowerCase().startsWith("0xef0100")) return false;
43
- return true;
44
- }
45
-
46
- // src/core/solana-tokens.ts
47
- var SOLANA_TOKENS = [
48
- { symbol: "SOL", mint: "native", decimals: 9 },
49
- {
50
- symbol: "USDC",
51
- mint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
52
- decimals: 6
53
- },
54
- {
55
- symbol: "USDT",
56
- mint: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
57
- decimals: 6
58
- }
59
- ];
60
- function getSolanaTokenBySymbol(symbol) {
61
- return SOLANA_TOKENS.find(
62
- (t) => t.symbol.toUpperCase() === symbol.toUpperCase()
63
- );
64
- }
65
- function getSolanaTokenByMint(mint) {
66
- return SOLANA_TOKENS.find((t) => t.mint === mint);
67
- }
68
- function isNativeSol(token) {
69
- return token.mint === "native";
70
- }
71
-
72
- // src/core/icons.ts
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
- var _chains = require('viem/chains');
89
- var CHAIN_ICONS = {
90
- [_chains.mainnet.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%2224%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2244%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%23627EEA%22%2F%3E%3Cpath%20d%3D%22M43.9834%2038V47.4455L51.9664%2051.0132L43.9834%2038Z%22%20fill%3D%22white%22%20fill-opacity%3D%220.602%22%2F%3E%3Cpath%20d%3D%22M43.983%2038L36%2051.0132L43.983%2047.4455V38Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M43.9834%2057.1333V63.5514L51.9711%2052.499L43.9834%2057.1333Z%22%20fill%3D%22white%22%20fill-opacity%3D%220.602%22%2F%3E%3Cpath%20d%3D%22M43.983%2063.5514V57.1333L36%2052.499L43.983%2063.5514Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M43.9834%2055.6472L51.9664%2051.013L43.9834%2047.4453V55.6472Z%22%20fill%3D%22white%22%20fill-opacity%3D%220.2%22%2F%3E%3Cpath%20d%3D%22M36%2051.013L43.983%2055.6472V47.4453L36%2051.013Z%22%20fill%3D%22white%22%20fill-opacity%3D%220.602%22%2F%3E%3C%2Fsvg%3E",
91
- [_chains.optimism.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%2294%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22114%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%23FF0420%22%2F%3E%3Cpath%20d%3D%22M114%2035C105.2%2035%2098%2042.2%2098%2051C98%2059.8%20105.2%2067%20114%2067C122.8%2067%20130%2059.8%20130%2051C130%2042.2%20122.8%2035%20114%2035ZM114%2059.16V65.16C107.84%2065.16%20102.88%2060.2%20102.88%2054.04C102.88%2047.88%20107.84%2042.92%20114%2042.92V36.92C120.16%2036.92%20125.12%2041.88%20125.12%2048.04C125.12%2054.2%20120.16%2059.16%20114%2059.16Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M114.08%2045.4805H114C112.8%2047.8805%20110.96%2049.7205%20108.56%2050.9205C110.96%2052.2005%20112.8%2054.0405%20114%2056.5205H114.08C115.28%2054.1205%20117.12%2052.2805%20119.52%2051.0805C117.12%2049.8005%20115.28%2047.9605%20114.08%2045.4805Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
92
- [_chains.base.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22164%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22184%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%230052FF%22%2F%3E%3Cmask%20id%3D%22mask0_2463_193894%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%22171%22%20y%3D%2238%22%20width%3D%2226%22%20height%3D%2226%22%3E%3Cpath%20d%3D%22M197%2038H171V64H197V38Z%22%20fill%3D%22white%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_2463_193894%29%22%3E%3Cpath%20d%3D%22M183.896%2063.8823C191.043%2063.8823%20196.837%2058.0884%20196.837%2050.9412C196.837%2043.794%20191.043%2038%20183.896%2038C177.115%2038%20171.552%2043.2152%20171%2049.8534H188.105V52.0289H171C171.552%2058.6671%20177.115%2063.8823%20183.896%2063.8823Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",
93
- [_chains.arbitrum.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22234%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22254%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%232D374B%22%2F%3E%3Cpath%20d%3D%22M252.708%2038.3172L243.19%2043.8146C242.828%2044.0235%20242.527%2044.324%20242.319%2044.6859C242.11%2045.0478%20242%2045.4583%20242%2045.8761L242.006%2056.8831C242.006%2057.3003%20242.116%2057.7101%20242.325%2058.0714C242.533%2058.4327%20242.833%2058.7327%20243.194%2058.9416L252.723%2064.4501C253.085%2064.6589%20253.496%2064.7689%20253.913%2064.7689C254.331%2064.7689%20254.741%2064.6589%20255.103%2064.4501L264.621%2058.9543C264.983%2058.7454%20265.283%2058.4448%20265.492%2058.083C265.701%2057.7211%20265.811%2057.3106%20265.811%2056.8927L265.805%2045.8858C265.804%2045.4686%20265.694%2045.0589%20265.486%2044.6976C265.277%2044.3364%20264.977%2044.0363%20264.616%2043.8275L255.087%2038.3188C254.726%2038.1099%20254.315%2038%20253.897%2038C253.48%2038%20253.069%2038.1099%20252.708%2038.3188V38.3172Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M249.566%2060.7295C249.581%2060.6578%20249.613%2060.5908%20249.66%2060.5344C252.507%2055.7033%20255.354%2050.8723%20258.203%2046.0415C258.242%2045.9744%20258.279%2045.9055%20258.313%2045.8454C258.287%2045.8017%20258.259%2045.8107%20258.235%2045.8107C257.018%2045.8151%20255.801%2045.8229%20254.583%2045.8214C254.531%2045.8205%20254.48%2045.8355%20254.437%2045.8645C254.394%2045.8935%20254.361%2045.935%20254.342%2045.9835C253.424%2047.5014%20252.505%2049.019%20251.584%2050.5361C249.635%2053.7524%20247.685%2056.9686%20245.736%2060.1847C245.718%2060.2132%20245.7%2060.2411%20245.685%2060.2704C245.651%2060.3369%20245.611%2060.3474%20245.541%2060.3068C245.239%2060.1281%20244.933%2059.9552%20244.612%2059.7703L253.289%2045.854C253.27%2045.7974%20253.231%2045.8116%20253.202%2045.8105C252.737%2045.7966%20252.272%2045.7765%20251.807%2045.7724C251.154%2045.7531%20250.504%2045.8579%20249.89%2046.0813C249.332%2046.2882%20248.857%2046.6738%20248.539%2047.1781C246.954%2049.6509%20245.363%2052.1198%20243.765%2054.5849C243.74%2054.6239%20243.714%2054.662%20243.688%2054.7006C243.596%2054.7006%20243.61%2054.6251%20243.601%2054.5724C243.593%2054.493%20243.591%2054.4131%20243.596%2054.3334C243.596%2051.6069%20243.605%2048.8803%20243.587%2046.1539C243.573%2045.919%20243.629%2045.6852%20243.749%2045.4827C243.869%2045.2803%20244.047%2045.1185%20244.26%2045.0183C246.357%2043.8231%20248.44%2042.6032%20250.53%2041.3958C251.463%2040.8569%20252.398%2040.3232%20253.324%2039.773C253.498%2039.6562%20253.703%2039.5938%20253.913%2039.5938C254.123%2039.5938%20254.328%2039.6562%20254.502%2039.773C256.205%2040.7722%20257.922%2041.7482%20259.634%2042.7332C260.925%2043.4765%20262.216%2044.2184%20263.508%2044.9591C263.601%2045.0118%20263.691%2045.0682%20263.783%2045.1201C263.935%2045.2004%20264.059%2045.3222%20264.144%2045.4713C264.228%2045.6203%20264.267%2045.7903%20264.258%2045.9611C264.26%2048.927%20264.26%2051.8929%20264.258%2054.8587C264.264%2054.9317%20264.256%2055.0052%20264.234%2055.0752C264.132%2055.1742%20264.095%2055.0631%20264.057%2055.0103C263.904%2054.7939%20263.765%2054.566%20263.622%2054.342C262.478%2052.5499%20261.329%2050.7602%20260.176%2048.9728C259.789%2048.3687%20259.397%2047.7671%20259.014%2047.1605C258.924%2047.019%20258.908%2047.0169%20258.819%2047.1689C258.24%2048.1472%20257.663%2049.1258%20257.085%2050.1045C257.053%2050.1589%20257.04%2050.2219%20257.046%2050.2846C257.052%2050.3472%20257.078%2050.4063%20257.12%2050.4532C257.596%2051.2215%20258.072%2051.9903%20258.546%2052.7597L260.978%2056.694C261.307%2057.2257%20261.635%2057.7569%20261.965%2058.2877C262.026%2058.3588%20262.06%2058.4491%20262.062%2058.5429C261.996%2058.6737%20261.859%2058.7104%20261.744%2058.7699C261.557%2058.9053%20261.351%2059.0129%20261.133%2059.0893C261.015%2059.06%20260.973%2058.9537%20260.917%2058.8667C260.164%2057.6922%20259.421%2056.5117%20258.673%2055.3342C257.903%2054.124%20257.138%2052.9092%20256.365%2051.7002C256.266%2051.5451%20256.25%2051.5441%20256.157%2051.7002C255.485%2052.8311%20254.822%2053.9673%20254.148%2055.0969C254.114%2055.1498%20254.097%2055.2123%20254.1%2055.2754C254.103%2055.3385%20254.125%2055.399%20254.165%2055.4485C255.072%2056.8475%20255.959%2058.2588%20256.857%2059.6647C257.108%2060.0565%20257.36%2060.4469%20257.606%2060.8415C257.654%2060.9182%20257.719%2060.9948%20257.676%2061.0985C257.44%2061.282%20257.186%2061.4401%20256.917%2061.5703C256.078%2062.0584%20255.239%2062.5458%20254.399%2063.0325C254.265%2063.1193%20254.108%2063.1655%20253.948%2063.1655C253.788%2063.1655%20253.631%2063.1193%20253.497%2063.0325C252.26%2062.317%20251.021%2061.6047%20249.78%2060.8957C249.694%2060.8617%20249.62%2060.8041%20249.566%2060.7295Z%22%20fill%3D%22%232D374B%22%2F%3E%3Cpath%20d%3D%22M264.198%2055.1042C264.201%2055.6884%20264.214%2056.2734%20264.201%2056.8568C264.204%2056.9935%20264.17%2057.1285%20264.102%2057.2469C264.033%2057.3653%20263.933%2057.4624%20263.813%2057.5276C263.225%2057.8607%20262.647%2058.2127%20262.054%2058.5368C261.818%2058.106%20261.545%2057.6958%20261.287%2057.2773C259.947%2055.1051%20258.605%2052.9342%20257.262%2050.7645C257.181%2050.6344%20257.108%2050.4994%20257.018%2050.3766C256.989%2050.3413%20256.973%2050.2969%20256.973%2050.2511C256.973%2050.2053%20256.989%2050.161%20257.018%2050.1257C257.339%2049.5895%20257.654%2049.0502%20257.971%2048.5118L258.852%2047.0176C258.868%2046.9821%20258.895%2046.9531%20258.93%2046.9355C259.083%2047.1716%20259.237%2047.4098%20259.392%2047.6482C260.318%2049.0909%20261.245%2050.5336%20262.171%2051.9764C262.799%2052.9552%20263.427%2053.9342%20264.055%2054.9132C264.09%2054.9859%20264.138%2055.0508%20264.198%2055.1042Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M261.129%2059.0722C260.747%2059.3232%20260.341%2059.5368%20259.947%2059.7696C259.232%2060.1899%20258.512%2060.6024%20257.795%2061.018C257.754%2061.0412%20257.713%2061.0629%20257.674%2061.0853C257.664%2061.0189%20257.636%2060.9567%20257.591%2060.9066C256.953%2059.9027%20256.314%2058.899%20255.675%2057.8955C255.15%2057.0715%20254.623%2056.2482%20254.095%2055.4258C254.06%2055.3831%20254.039%2055.3299%20254.036%2055.2743C254.034%2055.2187%20254.05%2055.1638%20254.082%2055.1181C254.787%2053.9295%20255.49%2052.739%20256.19%2051.5468C256.207%2051.5193%20256.22%2051.4873%20256.261%2051.4785C256.319%2051.4914%20256.333%2051.5489%20256.36%2051.5917C257.632%2053.595%20258.903%2055.5984%20260.175%2057.602C260.446%2058.0285%20260.715%2058.456%20260.987%2058.8816C261.022%2058.9536%20261.07%2059.0181%20261.129%2059.0722Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
94
- [_chains.polygon.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22304%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22324%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%238247E5%22%2F%3E%3Cpath%20d%3D%22M330.612%2046.6104C330.163%2046.3537%20329.585%2046.3537%20329.072%2046.6104L325.478%2048.7284L323.039%2050.0761L319.509%2052.194C319.06%2052.4507%20318.482%2052.4507%20317.969%2052.194L315.209%2050.5254C314.76%2050.2687%20314.439%2049.7552%20314.439%2049.1776V45.9687C314.439%2045.4552%20314.695%2044.9418%20315.209%2044.6209L317.969%2043.0164C318.418%2042.7597%20318.995%2042.7597%20319.509%2043.0164L322.269%2044.6851C322.718%2044.9418%20323.039%2045.4552%20323.039%2046.0328V48.1507L325.478%2046.7388V44.5567C325.478%2044.0433%20325.221%2043.5299%20324.708%2043.209L319.573%2040.1925C319.124%2039.9358%20318.546%2039.9358%20318.033%2040.1925L312.77%2043.2731C312.257%2043.5299%20312%2044.0433%20312%2044.5567V50.5896C312%2051.103%20312.257%2051.6164%20312.77%2051.9373L317.969%2054.9537C318.418%2055.2104%20318.995%2055.2104%20319.509%2054.9537L323.039%2052.9L325.478%2051.4881L329.007%2049.4343C329.457%2049.1776%20330.034%2049.1776%20330.548%2049.4343L333.308%2051.0388C333.757%2051.2955%20334.078%2051.809%20334.078%2052.3866V55.5955C334.078%2056.109%20333.821%2056.6224%20333.308%2056.9433L330.612%2058.5478C330.163%2058.8045%20329.585%2058.8045%20329.072%2058.5478L326.312%2056.9433C325.863%2056.6866%20325.542%2056.1731%20325.542%2055.5955V53.5418L323.103%2054.9537V57.0716C323.103%2057.5851%20323.36%2058.0985%20323.873%2058.4194L329.072%2061.4358C329.521%2061.6925%20330.099%2061.6925%20330.612%2061.4358L335.81%2058.4194C336.26%2058.1627%20336.581%2057.6493%20336.581%2057.0716V50.9746C336.581%2050.4612%20336.324%2049.9478%20335.81%2049.6269L330.612%2046.6104Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
95
- [_chains.bsc.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22374%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22394%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%2314151A%22%2F%3E%3Cpath%20d%3D%22M386.479%2041.2888L394%2037L401.522%2041.2888L398.756%2042.8732L394%2040.1688L389.244%2042.8732L386.479%2041.2888ZM401.522%2046.6976L398.756%2045.1132L394%2047.8177L389.244%2045.1132L386.479%2046.6976V49.8664L391.235%2052.5707V57.9796L394%2059.5641L396.765%2057.9796V52.5707L401.522%2049.8664V46.6976ZM401.522%2055.2751V52.1063L398.756%2053.6907V56.8596L401.522%2055.2751ZM403.485%2056.3952L398.729%2059.0994V62.2683L406.25%2057.9796V49.4021L403.485%2050.9862V56.3952ZM400.72%2043.9931L403.485%2045.5775V48.7464L406.25%2047.162V43.9931L403.485%2042.4088L400.72%2043.9931ZM391.235%2060.2469V63.4157L394%2065.0001L396.765%2063.4157V60.2469L394%2061.8313L391.235%2060.2469ZM386.479%2055.2751L389.244%2056.8596V53.6907L386.479%2052.1063V55.2751ZM391.235%2043.9931L394%2045.5775L396.765%2043.9931L394%2042.4088L391.235%2043.9931ZM384.515%2045.5775L387.281%2043.9931L384.515%2042.4088L381.75%2043.9931V47.162L384.515%2048.7464V45.5775ZM384.515%2050.9862L381.75%2049.4021V57.9796L389.272%2062.2683V59.0994L384.515%2056.3952V50.9862Z%22%20fill%3D%22%23F0B90B%22%2F%3E%3C%2Fsvg%3E",
96
- [_chains.sonic.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22444%2031%2040%2040%22%20fill%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_2463_193894%22%20x1%3D%22444%22%20y1%3D%2276%22%20x2%3D%22495%22%20y2%3D%2219%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23FAC461%22%2F%3E%3Cstop%20offset%3D%220.28%22%20stop-color%3D%22%23E3570A%22%2F%3E%3Cstop%20offset%3D%220.55%22%20stop-color%3D%22%237F6562%22%2F%3E%3Cstop%20offset%3D%220.73%22%20stop-color%3D%22%233B5D88%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23203F55%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%22464%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22url%28%23paint0_linear_2463_193894%29%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M464%2038C471.175%2038%20477%2043.8251%20477%2051C477%2058.1749%20471.175%2064%20464%2064C456.825%2064%20451%2058.1749%20451%2051C451%2043.8251%20456.825%2038%20464%2038ZM474.693%2052.2721C468.061%2053.3628%20463.482%2056.5719%20459.894%2060.7197C461.154%2061.2202%20462.532%2061.4961%20463.976%2061.4961C469.496%2061.4961%20474.054%2057.4647%20474.693%2052.2721ZM458.309%2059.935C460.211%2057.5136%20462.88%2055.3822%20466.083%2053.608C462.826%2054.3488%20459.583%2056.179%20456.46%2058.5348C457.02%2059.0635%20457.64%2059.5337%20458.309%2059.935ZM453.212%2051.915C453.371%2054.0218%20454.174%2055.8376%20455.43%2057.4154C458.232%2054.8037%20461.925%2052.8922%20466.49%2051.8411L453.212%2051.915ZM455.439%2044.607C454.195%2046.166%20453.405%2047.9545%20453.231%2050.0348L466.479%2050.1549C461.771%2048.9265%20458.091%2047.1331%20455.439%2044.607ZM474.7%2049.8117C474.083%2044.5952%20469.514%2040.5386%20463.977%2040.5386C462.536%2040.5386%20461.161%2040.813%20459.905%2041.3108C462.251%2044.664%20468.912%2049.1226%20474.7%2049.8117ZM458.344%2042.0787C457.698%2042.463%20457.098%2042.9113%20456.551%2043.4143C458.635%2045.4168%20461.699%2047.1596%20466.229%2048.51C462.942%2046.6944%20460.376%2044.5397%20458.344%2042.0787Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
97
- [_chains.soneium.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22514%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22534%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M535.666%2058.031C534.468%2058.3188%20533.216%2058.2946%20532.03%2057.9605C530.844%2057.6265%20529.763%2056.9938%20528.891%2056.1229C527.736%2055.0189%20526.994%2053.5525%20526.788%2051.9676C526.582%2050.3826%20526.924%2048.7749%20527.758%2047.4118C528.306%2046.5233%20528.965%2045.7091%20529.721%2044.9896C532.118%2042.5991%20536.52%2038.2493%20536.52%2038.2493C533.247%2037.5991%20529.85%2038.2343%20527.033%2040.0231C524.215%2041.8119%20522.194%2044.6172%20521.387%2047.8574C520.579%2051.0973%20521.048%2054.524%20522.695%2057.428C524.342%2060.3321%20527.041%2062.4911%20530.235%2063.4583L535.666%2058.031Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M532.323%2043.9752C533.52%2043.6868%20534.772%2043.7108%20535.958%2044.0448C537.144%2044.3789%20538.225%2045.0119%20539.096%2045.8832C541.472%2048.2614%20541.936%2051.7908%20540.221%2054.5814C539.672%2055.4705%20539.013%2056.286%20538.258%2057.0079C535.86%2059.3948%20531.458%2063.7474%20531.458%2063.7474C534.734%2064.4041%20538.136%2063.7725%20540.958%2061.9837C543.781%2060.1949%20545.806%2057.3866%20546.613%2054.1423C547.422%2050.8982%20546.951%2047.4671%20545.299%2044.5612C543.647%2041.6552%20540.94%2039.4975%20537.74%2038.5356L532.323%2043.9752Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
98
- [_chains.plasma.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22584%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22604%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%23162F29%22%2F%3E%3Cpath%20d%3D%22M615.289%2051.2043C615.289%2051.3173%20615.288%2051.4303%20615.284%2051.5433H609.864V51.2963H604.647C604.647%2051.2447%20604.648%2051.193%20604.648%2051.143C604.648%2051.0929%20604.648%2051.0397%20604.647%2050.9896H609.864V50.7442H615.28C615.286%2050.8976%20615.289%2051.051%20615.289%2051.2043ZM604.555%2050.0921L609.66%2049.4642L609.691%2049.7095L615.083%2049.0461C615.031%2048.7813%20614.969%2048.5199%20614.9%2048.2632L609.593%2048.917L609.623%2049.1623L604.493%2049.7935C604.516%2049.8936%20604.537%2049.9936%20604.555%2050.0953V50.0921ZM604.288%2049.1042L609.168%2047.8855L609.228%2048.1244L614.406%2046.8314C614.3%2046.5812%20614.185%2046.3342%20614.062%2046.0937L609.036%2047.3495L609.095%2047.5885L604.175%2048.8185C604.216%2048.9137%20604.253%2049.009%20604.288%2049.1058V49.1042ZM603.856%2048.1793L608.417%2046.4569L608.505%2046.6877L613.331%2044.8653C613.175%2044.636%20613.01%2044.4133%20612.836%2044.197L608.222%2045.9387L608.309%2046.1695L603.693%2047.9129C603.749%2048.0001%20603.804%2048.0889%20603.856%2048.1793ZM603.257%2047.3237L607.286%2045.2236L607.399%2045.4431L611.854%2043.1203C611.649%2042.9217%20611.436%2042.7329%20611.216%2042.5505L607.029%2044.7329L607.142%2044.9524L603.045%2047.088C603.116%2047.1655%20603.187%2047.243%20603.255%2047.3237H603.257ZM602.285%2046.4004L605.933%2044.0807L606.066%2044.289L610.091%2041.7288C609.838%2041.5674%20609.58%2041.4173%20609.313%2041.2769L605.638%2043.6142L605.77%2043.8225L602.017%2046.2083C602.109%2046.2696%20602.198%2046.3342%20602.287%2046.4004H602.285ZM601.423%2045.8612L604.48%2043.3543L604.637%2043.5448L608.08%2040.7199C607.788%2040.6086%20607.488%2040.5085%20607.184%2040.4213L604.13%2042.9266L604.287%2043.117L601.118%2045.716C601.221%2045.7611%20601.323%2045.8096%20601.423%2045.8612ZM600.282%2045.4173L602.697%2043.0137L602.869%2043.1881L605.938%2040.1388C605.605%2040.0839%20605.268%2040.0436%20604.926%2040.0178L602.309%2042.6215L602.482%2042.7958L599.932%2045.3334C600.049%2045.3576%20600.165%2045.385%20600.282%2045.4173ZM598.947%2045.2156L600.873%2042.8814L601.063%2043.038L603.57%2040C603.189%2040.0178%20602.813%2040.0549%20602.443%2040.1098L600.446%2042.5295L600.637%2042.6861L598.551%2045.2139C598.609%2045.2123%20598.669%2045.2107%20598.727%2045.2107C598.801%2045.2107%20598.874%2045.2107%20598.947%2045.2139V45.2156ZM597.793%2045.285L599.276%2042.9895L599.483%2043.1235L601.276%2040.3471C600.866%2040.4536%20600.466%2040.5827%20600.075%2040.7329L598.813%2042.6877L599.019%2042.8217L597.376%2045.3657C597.513%2045.3334%20597.652%2045.3059%20597.793%2045.2833V45.285ZM596.511%2045.6417L597.578%2043.6417L597.794%2043.7579L599.207%2041.1122C598.753%2041.3333%20598.317%2041.5836%20597.901%2041.8612L597.089%2043.3818L597.307%2043.498L596.051%2045.8516C596.199%2045.7757%20596.353%2045.7063%20596.509%2045.6433L596.511%2045.6417ZM595.591%2046.1114L596.044%2044.8233L596.277%2044.9056L597.158%2042.4036C596.711%2042.7587%20596.291%2043.1461%20595.902%2043.5642L595.523%2044.6409L595.755%2044.7232L595.161%2046.4085C595.3%2046.3035%20595.442%2046.2051%20595.589%2046.113L595.591%2046.1114ZM594.459%2047.0332L594.659%2046.0969L594.9%2046.1486L595.304%2044.2632C594.879%2044.8023%20594.503%2045.3818%20594.182%2045.9936L594.361%2046.0323L593.993%2047.582C594.136%2047.3899%20594.293%2047.2059%20594.459%2047.0332ZM593.628%2048.1276V46.8879C593.328%2047.6805%20593.115%2048.6668%20593%2049.6337C593.14%2049.0977%20593.354%2048.5925%20593.628%2048.1276ZM593.008%2052.6845C593.126%2053.5094%20593.333%2054.3052%20593.62%2055.0623V54.147C593.355%2053.695%20593.147%2053.2043%20593.008%2052.6845ZM594.031%2054.7588L594.353%2056.2568L594.174%2056.2956C594.495%2056.909%20594.871%2057.487%20595.295%2058.0259L594.892%2056.1407L594.651%2056.1922L594.448%2055.2447C594.301%2055.0898%20594.161%2054.9283%20594.031%2054.7572V54.7588ZM595.15%2055.8726L595.747%2057.5676L595.515%2057.6499L595.894%2058.7267C596.283%2059.1446%20596.703%2059.532%20597.15%2059.8873L596.269%2057.3851L596.036%2057.4676L595.581%2056.1728C595.434%2056.0792%20595.291%2055.9809%20595.152%2055.8759L595.15%2055.8726ZM596.041%2056.4327L597.3%2058.7927L597.082%2058.909L597.894%2060.4296C598.311%2060.7073%20598.747%2060.9574%20599.2%2061.1785L597.788%2058.5328L597.57%2058.6491L596.5%2056.6442C596.343%2056.5814%20596.19%2056.5102%20596.04%2056.4345L596.041%2056.4327ZM597.366%2056.9204L599.011%2059.4676L598.805%2059.6015L600.067%2061.5563C600.458%2061.7065%20600.858%2061.8356%20601.268%2061.9421L599.475%2059.1656L599.268%2059.2995L597.783%2057.0011C597.642%2056.9783%20597.502%2056.9509%20597.365%2056.9186L597.366%2056.9204ZM598.542%2057.0753L600.627%2059.6031L600.437%2059.7598L602.434%2062.1795C602.803%2062.2343%20603.179%2062.2713%20603.56%2062.2892L601.053%2059.2496L600.863%2059.4061L598.937%2057.0719C598.868%2057.0753%20598.797%2057.0753%20598.726%2057.0753C598.664%2057.0753%20598.601%2057.0753%20598.54%2057.0719L598.542%2057.0753ZM599.925%2056.9558L602.474%2059.4916L602.301%2059.6659L604.918%2062.2698C605.26%2062.2439%20605.597%2062.2036%20605.93%2062.1487L602.863%2059.0978L602.689%2059.2739L600.275%2056.8718C600.161%2056.9025%20600.043%2056.9315%20599.925%2056.9558ZM601.113%2056.5764L604.279%2059.1738L604.122%2059.3642L607.176%2061.8695C607.479%2061.7823%20607.78%2061.6822%20608.072%2061.5708L604.627%2058.7459L604.471%2058.9364L601.417%2056.4311C601.316%2056.4828%20601.215%2056.5312%20601.111%2056.5764H601.113ZM602.011%2056.0825L605.759%2058.4668L605.626%2058.675L609.302%2061.0122C609.568%2060.8718%20609.828%2060.7202%20610.08%2060.5604L606.054%2058.0003L605.922%2058.2085L602.278%2055.8919C602.19%2055.9581%20602.101%2056.0228%20602.009%2056.0841L602.011%2056.0825ZM603.044%2055.2043L607.136%2057.3367L607.023%2057.5563L611.21%2059.7386C611.43%2059.5563%20611.643%2059.3675%20611.848%2059.1689L607.392%2056.8459L607.279%2057.0655L603.255%2054.9687C603.187%2055.0494%20603.118%2055.1285%20603.045%2055.2043H603.044ZM603.691%2054.3779L608.301%2056.1195L608.214%2056.3504L612.827%2058.0921C613%2057.8759%20613.165%2057.653%20613.323%2057.4239L608.497%2055.6015L608.409%2055.8322L603.854%2054.1115C603.802%2054.2019%20603.748%2054.2907%20603.691%2054.3779ZM604.174%2053.4739L609.086%2054.7007L609.026%2054.9395L614.053%2056.1955C614.177%2055.955%20614.292%2055.7081%20614.398%2055.4578L609.22%2054.1648L609.16%2054.4037L604.287%2053.1866C604.251%2053.2834%20604.212%2053.3787%20604.174%2053.4739ZM604.493%2052.4989L609.615%2053.1284L609.584%2053.3738L614.892%2054.0276C614.962%2053.7693%20615.023%2053.5078%20615.074%2053.2447L609.683%2052.5812L609.652%2052.8266L604.555%2052.1987C604.537%2052.3004%20604.516%2052.4004%20604.493%2052.5005V52.4989Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
99
- [_chains.gnosis.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22654%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22674%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%2300193C%22%2F%3E%3Cpath%20d%3D%22M668.389%2052.8873C669.173%2052.8879%20669.934%2052.6275%20670.553%2052.1472L665.589%2047.1836C665.184%2047.7072%20664.934%2048.3338%20664.868%2048.9923C664.801%2049.6507%20664.92%2050.3147%20665.212%2050.9089C665.503%2051.503%20665.956%2052.0036%20666.517%2052.3537C667.079%2052.7039%20667.727%2052.8896%20668.389%2052.8899V52.8873Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M683.153%2049.3453C683.153%2048.5619%20682.893%2047.8006%20682.413%2047.1816L677.446%2052.1453C677.97%2052.5503%20678.596%2052.8005%20679.255%2052.8673C679.914%2052.9341%20680.578%2052.815%20681.172%2052.5234C681.766%2052.2318%20682.267%2051.7794%20682.617%2051.2177C682.967%2050.6559%20683.153%2050.0072%20683.153%2049.3453Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M685.649%2043.9453L683.452%2046.142C684.253%2047.1007%20684.667%2048.3245%20684.611%2049.5727C684.555%2050.8208%20684.035%2052.003%20683.151%2052.8865C682.268%2053.77%20681.086%2054.2909%20679.838%2054.3466C678.589%2054.4024%20677.366%2053.989%20676.407%2053.1879L674%2055.5939L671.593%2053.1879C670.635%2053.989%20669.411%2054.4024%20668.163%2054.3466C666.914%2054.2909%20665.732%2053.77%20664.849%2052.8865C663.965%2052.003%20663.445%2050.8208%20663.389%2049.5727C663.333%2048.3245%20663.747%2047.1007%20664.548%2046.142L663.419%2045.0131L662.355%2043.9453C661.062%2046.0714%20660.379%2048.5124%20660.382%2051.0007C660.382%2058.5219%20666.479%2064.6189%20674%2064.6189C681.521%2064.6189%20687.618%2058.5219%20687.618%2051.0007C687.622%2048.5127%20686.94%2046.0718%20685.649%2043.9453Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M683.853%2041.6017C682.581%2040.2681%20681.053%2039.2065%20679.359%2038.4812C677.665%2037.7558%20675.842%2037.3818%20674%2037.3818C672.157%2037.3818%20670.334%2037.7558%20668.641%2038.4812C666.947%2039.2065%20665.418%2040.2681%20664.147%2041.6017C663.809%2041.9559%20663.491%2042.3278%20663.192%2042.716L674%2053.524L684.808%2042.716C684.509%2042.3278%20684.191%2041.9558%20683.853%2041.6017ZM674%2039.1638C677.185%2039.1638%20680.146%2040.3926%20682.372%2042.6313L674%2051.004L665.627%2042.6313C667.854%2040.3926%20670.818%2039.1638%20674%2039.1638Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
100
- [_chains.hyperliquid.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22724%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22744%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M757.527%2050.8739C757.527%2059.7716%20752.052%2062.6267%20749.168%2060.0846C746.794%2058.0117%20746.087%2053.6312%20742.516%2053.1815C737.984%2052.6144%20737.591%2058.618%20734.609%2058.618C731.136%2058.618%20730.468%2053.5921%20730.468%2051.0109C730.468%2048.3707%20731.214%2044.7725%20734.177%2044.7725C737.63%2044.7725%20737.827%2049.9157%20742.143%2049.6419C746.441%2049.3486%20746.519%2043.9904%20749.306%2041.7023C751.739%2039.7272%20757.527%2041.8588%20757.527%2050.8739Z%22%20fill%3D%22%23072723%22%2F%3E%3C%2Fsvg%3E",
101
- [_chains.monad.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22794%2031%2040%2040%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%22814%22%20cy%3D%2251%22%20r%3D%2220%22%20fill%3D%22%236E54FF%22%2F%3E%3Cpath%20d%3D%22M814%2037.25C810.029%2037.25%20800.25%2047.029%20800.25%2050.9999C800.25%2054.9709%20810.029%2064.75%20814%2064.75C817.971%2064.75%20827.75%2054.9706%20827.75%2050.9999C827.75%2047.0293%20817.971%2037.25%20814%2037.25ZM811.857%2058.8626C810.183%2058.4064%20805.681%2050.5316%20806.137%2048.8573C806.594%2047.1827%20814.468%2042.6811%20816.143%2043.1374C817.817%2043.5936%20822.319%2051.4682%20821.863%2053.1427C821.406%2054.8172%20813.532%2059.3189%20811.857%2058.8626Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
102
- [_chains.unichain.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2212%22%20fill%3D%22%23F50DB4%22%2F%3E%3Cpath%20d%3D%22M20%2011.8478C15.6637%2011.8478%2012.1523%208.33274%2012.1523%204H11.8478V11.8478H4V12.1522C8.33628%2012.1522%2011.8478%2015.6673%2011.8478%2020H12.1523V12.1522H20V11.8478Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",
103
- [_chains.katana.id]: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22katana-grad%22%20x1%3D%2212%22%20y1%3D%220%22%20x2%3D%2212%22%20y2%3D%2224%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220.09%22%20stop-color%3D%22%23101631%22%2F%3E%3Cstop%20offset%3D%220.557692%22%20stop-color%3D%22%230441B2%22%2F%3E%3Cstop%20offset%3D%220.813935%22%20stop-color%3D%22%23019EED%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23C5EAFC%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2212%22%20fill%3D%22url(%23katana-grad)%22%2F%3E%3Cpath%20d%3D%22M10.7916%209.57541L13.9865%204H17.1816L14.7853%2011.9801H12.4093L18.7994%2015.1721L15.5844%2020L10.7916%2014.3881V18.3641H5.2002L7.11722%2011.9801H5.2002L7.59649%204H10.7916V9.57541Z%22%20fill%3D%22%23F6FF0D%22%2F%3E%3C%2Fsvg%3E"
104
- };
105
- var SOL_BADGE_SVG = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Crect width='20' height='20' rx='10' fill='%230C0C0C'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.62391 9.04404H13.8799C13.9959 9.04404 14.1039 9.08804 14.1839 9.17204L15.6479 10.644C15.9199 10.916 15.7279 11.38 15.3439 11.38H6.08791C5.97191 11.38 5.86391 11.336 5.78391 11.252L4.31991 9.78004C4.04791 9.51203 4.23991 9.04404 4.62391 9.04404ZM4.31591 7.09204L5.77991 5.62003C5.86391 5.53603 5.97191 5.49203 6.08391 5.49203H15.3359C15.7199 5.49203 15.9159 5.95603 15.6399 6.22803L14.1799 7.70003C14.0999 7.78403 13.9879 7.82803 13.8759 7.82803H4.62391C4.23991 7.82803 4.04791 7.36404 4.31591 7.09204ZM15.6439 13.34L14.1799 14.816C14.0999 14.896 13.9879 14.944 13.8759 14.944H4.62391C4.23991 14.944 4.04791 14.48 4.31591 14.208L5.77991 12.732C5.86391 12.652 5.97191 12.604 6.08391 12.604H15.3359C15.7239 12.6 15.9199 13.064 15.6439 13.34Z' fill='url(%23sol-grad)'/%3E%3Cdefs%3E%3ClinearGradient id='sol-grad' x1='4.85031' y1='15.3466' x2='15.1135' y2='5.08343' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23CB4EE8'/%3E%3Cstop offset='1' stop-color='%2310F4B1'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E";
106
- var SOLANA_CHAIN_ICON = SOL_BADGE_SVG;
107
- function getChainIcon(chainId) {
108
- if (chainId === "solana") return SOLANA_CHAIN_ICON;
109
- if (chainId === "hypercore" || chainId === HYPERCORE_CHAIN_ID) {
110
- return CHAIN_ICONS[_chains.hyperliquid.id];
111
- }
112
- return CHAIN_ICONS[chainId];
113
- }
114
- var ICON_SLUG_ALIASES = {
115
- "usdc.e": "usdc",
116
- wsol: "sol",
117
- xdai: "dai"
118
- };
119
- function tokenIconUrl(symbol) {
120
- const key = symbol.toLowerCase();
121
- const slug = _nullishCoalesce(ICON_SLUG_ALIASES[key], () => ( key));
122
- return `https://s3.rhinestone.dev/tokens/${slug}.svg`;
123
- }
124
- function getTokenIcon(symbol) {
125
- return tokenIconUrl(symbol);
126
- }
127
-
128
- // src/core/constants.ts
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- var DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
146
- var DEFAULT_SIGNER_ADDRESS = "0x177bfcdd15bc01e99013dcc5d2b09cd87a18ce9c";
147
- var NATIVE_TOKEN_ADDRESS = "0x0000000000000000000000000000000000000000";
148
- var ALL_CHAINS_BY_ID = {
149
- [_chains.mainnet.id]: _chains.mainnet,
150
- [_chains.base.id]: _chains.base,
151
- [_chains.optimism.id]: _chains.optimism,
152
- [_chains.arbitrum.id]: _chains.arbitrum,
153
- [_chains.polygon.id]: _chains.polygon,
154
- [_chains.bsc.id]: _chains.bsc,
155
- [_chains.plasma.id]: _chains.plasma,
156
- [_chains.soneium.id]: _chains.soneium,
157
- [_chains.gnosis.id]: _chains.gnosis,
158
- [_chains.sonic.id]: _chains.sonic,
159
- [_chains.monad.id]: _chains.monad,
160
- [_chains.unichain.id]: _chains.unichain,
161
- [_chains.katana.id]: _chains.katana,
162
- [_chains.hyperliquid.id]: _chains.hyperliquid
163
- };
164
- var SUPPORTED_TOKEN_MATRIX = {
165
- ETH: [
166
- _chains.mainnet.id,
167
- _chains.base.id,
168
- _chains.arbitrum.id,
169
- _chains.optimism.id,
170
- _chains.soneium.id,
171
- _chains.unichain.id,
172
- _chains.katana.id
173
- ],
174
- // Polygon's native gas token is POL, not ETH (address 0x0 on 137 is POL).
175
- POL: [_chains.polygon.id],
176
- WETH: [
177
- _chains.mainnet.id,
178
- _chains.base.id,
179
- _chains.arbitrum.id,
180
- _chains.optimism.id,
181
- _chains.polygon.id,
182
- _chains.soneium.id,
183
- _chains.unichain.id,
184
- _chains.katana.id
185
- ],
186
- USDC: [
187
- _chains.mainnet.id,
188
- _chains.base.id,
189
- _chains.arbitrum.id,
190
- _chains.optimism.id,
191
- _chains.polygon.id,
192
- _chains.soneium.id,
193
- _chains.gnosis.id,
194
- _chains.sonic.id,
195
- _chains.monad.id,
196
- _chains.unichain.id,
197
- _chains.katana.id,
198
- _chains.hyperliquid.id
199
- ],
200
- USDT: [_chains.mainnet.id, _chains.bsc.id, _chains.soneium.id, _chains.katana.id],
201
- USDT0: [_chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.plasma.id, _chains.monad.id, _chains.unichain.id]
202
- };
203
- var CHAIN_DISPLAY_ORDER = [
204
- _chains.mainnet.id,
205
- _chains.base.id,
206
- _chains.arbitrum.id,
207
- _chains.optimism.id,
208
- _chains.polygon.id,
209
- _chains.bsc.id,
210
- _chains.plasma.id,
211
- _chains.soneium.id,
212
- _chains.gnosis.id,
213
- _chains.sonic.id,
214
- _chains.monad.id,
215
- _chains.unichain.id,
216
- _chains.katana.id,
217
- _chains.hyperliquid.id
218
- ];
219
- var supportedChainSet = /* @__PURE__ */ new Set();
220
- for (const chainIds of Object.values(SUPPORTED_TOKEN_MATRIX)) {
221
- for (const chainId of chainIds) {
222
- supportedChainSet.add(chainId);
223
- }
224
- }
225
- var SUPPORTED_CHAIN_IDS = CHAIN_DISPLAY_ORDER.filter(
226
- (chainId) => supportedChainSet.has(chainId) && Boolean(ALL_CHAINS_BY_ID[chainId])
227
- );
228
- var CHAIN_BY_ID = Object.fromEntries(
229
- SUPPORTED_CHAIN_IDS.map((id) => [id, ALL_CHAINS_BY_ID[id]])
230
- );
231
- var SOURCE_CHAINS = SUPPORTED_CHAIN_IDS.map(
232
- (id) => CHAIN_BY_ID[id]
233
- );
234
- var SUPPORTED_CHAINS = SOURCE_CHAINS;
235
- var SUPPORTED_TOKENS_BY_CHAIN = Object.fromEntries(
236
- SUPPORTED_CHAIN_IDS.map((chainId) => {
237
- const symbols = Object.entries(SUPPORTED_TOKEN_MATRIX).filter(([, chainIds]) => chainIds.includes(chainId)).map(([symbol]) => symbol);
238
- return [chainId, symbols];
239
- })
240
- );
241
- var chainRegistry = {
242
- [_chains.mainnet.id]: {
243
- name: _chains.mainnet.name,
244
- tokens: [
245
- { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
246
- {
247
- symbol: "USDC",
248
- address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
249
- decimals: 6
250
- },
251
- {
252
- symbol: "WETH",
253
- address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
254
- decimals: 18
255
- },
256
- {
257
- symbol: "USDT",
258
- address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
259
- decimals: 6
260
- }
261
- ]
262
- },
263
- [_chains.hyperliquid.id]: {
264
- name: "HyperEVM",
265
- tokens: [
266
- { symbol: "HYPE", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
267
- {
268
- symbol: "USDC",
269
- address: HYPERCORE_USDC_ADDRESS,
270
- decimals: 6
271
- }
272
- ]
273
- },
274
- [_chains.base.id]: {
275
- name: _chains.base.name,
276
- tokens: [
277
- { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
278
- {
279
- symbol: "USDC",
280
- address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
281
- decimals: 6
282
- },
283
- {
284
- symbol: "WETH",
285
- address: "0x4200000000000000000000000000000000000006",
286
- decimals: 18
287
- }
288
- ]
289
- },
290
- [_chains.arbitrum.id]: {
291
- name: _chains.arbitrum.name,
292
- tokens: [
293
- { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
294
- {
295
- symbol: "USDC",
296
- address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
297
- decimals: 6
298
- },
299
- {
300
- symbol: "WETH",
301
- address: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
302
- decimals: 18
303
- },
304
- {
305
- symbol: "USDT0",
306
- address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
307
- decimals: 6
308
- }
309
- ]
310
- },
311
- [_chains.optimism.id]: {
312
- name: _chains.optimism.name,
313
- tokens: [
314
- { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
315
- {
316
- symbol: "USDC",
317
- address: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
318
- decimals: 6
319
- },
320
- {
321
- symbol: "WETH",
322
- address: "0x4200000000000000000000000000000000000006",
323
- decimals: 18
324
- },
325
- {
326
- symbol: "USDT0",
327
- address: "0x01bFF41798a0BcF287b996046Ca68b395DbC1071",
328
- decimals: 6
329
- }
330
- ]
331
- },
332
- [_chains.polygon.id]: {
333
- name: _chains.polygon.name,
334
- tokens: [
335
- // Polygon's native gas token is POL (0x0 on 137), not ETH.
336
- { symbol: "POL", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
337
- {
338
- symbol: "USDC",
339
- address: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
340
- decimals: 6
341
- },
342
- // Bridged USDC.e — what Polymarket withdrawals arrive as. Mapped to the
343
- // USDC symbol/icon for display and 6 decimals so history rows resolve
344
- // correctly. Listed after native USDC so symbol→address lookups (and
345
- // the selectable token list, which is driven separately by
346
- // SUPPORTED_TOKENS_BY_CHAIN) keep resolving USDC to the native address.
347
- {
348
- symbol: "USDC",
349
- address: "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
350
- decimals: 6
351
- },
352
- {
353
- symbol: "WETH",
354
- address: "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
355
- decimals: 18
356
- },
357
- {
358
- symbol: "USDT0",
359
- address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
360
- decimals: 6
361
- }
362
- ]
363
- },
364
- [_chains.bsc.id]: {
365
- name: _chains.bsc.name,
366
- tokens: [
367
- {
368
- symbol: "USDC",
369
- address: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
370
- decimals: 18
371
- },
372
- {
373
- symbol: "WETH",
374
- address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
375
- decimals: 18
376
- },
377
- {
378
- symbol: "USDT",
379
- address: "0x55d398326f99059fF775485246999027B3197955",
380
- decimals: 18
381
- }
382
- ]
383
- },
384
- [_chains.plasma.id]: {
385
- name: _chains.plasma.name,
386
- tokens: [
387
- {
388
- symbol: "USDT0",
389
- address: "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb",
390
- decimals: 6
391
- }
392
- ]
393
- },
394
- [_chains.soneium.id]: {
395
- name: _chains.soneium.name,
396
- tokens: [
397
- { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
398
- {
399
- symbol: "USDC",
400
- address: "0xbA9986D2381edf1DA03B0B9c1f8b00dc4AacC369",
401
- decimals: 6
402
- },
403
- {
404
- symbol: "WETH",
405
- address: "0x4200000000000000000000000000000000000006",
406
- decimals: 18
407
- },
408
- {
409
- symbol: "USDT",
410
- address: "0x3A337a6adA9d885b6Ad95ec48F9b75f197b5AE35",
411
- decimals: 6
412
- }
413
- ]
414
- },
415
- [_chains.gnosis.id]: {
416
- name: _chains.gnosis.name,
417
- tokens: [
418
- {
419
- symbol: "USDC",
420
- address: "0x2a22f9c3b484c3629090feed35f17ff8f88f76f0",
421
- decimals: 6
422
- }
423
- ]
424
- },
425
- [_chains.sonic.id]: {
426
- name: _chains.sonic.name,
427
- tokens: [
428
- {
429
- symbol: "USDC",
430
- address: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894",
431
- decimals: 6
432
- }
433
- ]
434
- },
435
- [_chains.monad.id]: {
436
- name: _chains.monad.name,
437
- tokens: [
438
- {
439
- symbol: "USDC",
440
- address: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
441
- decimals: 6
442
- },
443
- {
444
- symbol: "USDT0",
445
- address: "0xe7cd86e13AC4309349F30B3435a9d337750fC82D",
446
- decimals: 6
447
- }
448
- ]
449
- },
450
- [_chains.unichain.id]: {
451
- name: _chains.unichain.name,
452
- tokens: [
453
- { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
454
- {
455
- symbol: "USDC",
456
- address: "0x078d782b760474a361dda0af3839290b0ef57ad6",
457
- decimals: 6
458
- },
459
- {
460
- symbol: "WETH",
461
- address: "0x4200000000000000000000000000000000000006",
462
- decimals: 18
463
- },
464
- {
465
- symbol: "USDT0",
466
- address: "0x9151434b16b9763660705744891fA906F660EcC5",
467
- decimals: 6
468
- }
469
- ]
470
- },
471
- [_chains.katana.id]: {
472
- name: _chains.katana.name,
473
- tokens: [
474
- { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
475
- {
476
- symbol: "USDC",
477
- address: "0x203a662b0bd271a6ed5a60edfbd04bfce608fd36",
478
- decimals: 6
479
- },
480
- {
481
- symbol: "USDT",
482
- address: "0x2dca96907fde857dd3d816880a0df407eeb2d2f2",
483
- decimals: 6
484
- },
485
- {
486
- symbol: "WETH",
487
- address: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62",
488
- decimals: 18
489
- }
490
- ]
491
- },
492
- // HyperCore (virtual chain 1337) is a USDC-only deposit *destination*. It has
493
- // no viem chain / RPC, so it lives only here for name + token resolution —
494
- // deliberately absent from the source-chain matrices above.
495
- [HYPERCORE_CHAIN_ID]: {
496
- name: "HyperCore",
497
- // Destination truth: HyperCore delivery is USDC-only. The source path accepts
498
- // USDT0 too, but that lives in HYPERCORE_SOURCE_TOKENS (caip.ts) so it can't
499
- // leak into destination registration/display via this shared registry.
500
- tokens: [{ symbol: "USDC", address: HYPERCORE_USDC_ADDRESS, decimals: 6 }]
501
- }
502
- };
503
- function getChainId(chain) {
504
- return typeof chain === "number" ? chain : chain.id;
505
- }
506
- function getChainObject(chain) {
507
- if (typeof chain === "number") {
508
- return CHAIN_BY_ID[chain];
509
- }
510
- return chain;
511
- }
512
- function normalizeTokenSymbol(symbol) {
513
- const trimmed = symbol.trim();
514
- const wrapped = trimmed.match(/\(([^)]+)\)/);
515
- if (_optionalChain([wrapped, 'optionalAccess', _2 => _2[1]])) {
516
- return wrapped[1].trim().toUpperCase();
517
- }
518
- return trimmed.toUpperCase();
519
- }
520
- function isSymbolSupportedOnChain(symbol, chainId) {
521
- const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId];
522
- if (!symbols) return false;
523
- return symbols.includes(normalizeTokenSymbol(symbol));
524
- }
525
- function getTokenFromRegistry(chainId, symbol) {
526
- const chainEntry = chainRegistry[String(chainId)];
527
- if (!chainEntry) return void 0;
528
- const normalized = normalizeTokenSymbol(symbol);
529
- const token = chainEntry.tokens.find(
530
- (t) => t.symbol.toUpperCase() === normalized
531
- );
532
- if (token) {
533
- return { address: token.address, decimals: token.decimals };
534
- }
535
- return void 0;
536
- }
537
- function getUsdcAddress(chainId) {
538
- const token = getTokenFromRegistry(chainId, "USDC");
539
- return _optionalChain([token, 'optionalAccess', _3 => _3.address]);
540
- }
541
- function getUsdcDecimals(chainId) {
542
- const token = getTokenFromRegistry(chainId, "USDC");
543
- return _nullishCoalesce(_optionalChain([token, 'optionalAccess', _4 => _4.decimals]), () => ( 6));
544
- }
545
- function getTokenAddress(symbol, chainId) {
546
- if (symbol.toUpperCase() === "ETH") {
547
- if (!isSymbolSupportedOnChain("ETH", chainId)) {
548
- return void 0;
549
- }
550
- return NATIVE_TOKEN_ADDRESS;
551
- }
552
- if (!isSymbolSupportedOnChain(symbol, chainId)) {
553
- return void 0;
554
- }
555
- const token = getTokenFromRegistry(chainId, symbol);
556
- return _optionalChain([token, 'optionalAccess', _5 => _5.address]);
557
- }
558
- function getTokenDecimals(symbol, chainId) {
559
- if (symbol.toUpperCase() === "ETH") {
560
- return 18;
561
- }
562
- const token = getTokenFromRegistry(chainId, symbol);
563
- return _nullishCoalesce(_optionalChain([token, 'optionalAccess', _6 => _6.decimals]), () => ( 18));
564
- }
565
- function getTargetTokenSymbolsForChain(chainId) {
566
- const symbols = _nullishCoalesce(SUPPORTED_TOKENS_BY_CHAIN[chainId], () => ( []));
567
- return [...symbols];
568
- }
569
- function getSupportedTokenSymbolsForChain(chainId) {
570
- return getTargetTokenSymbolsForChain(chainId);
571
- }
572
- function getSupportedChainIds() {
573
- return [...SUPPORTED_CHAIN_IDS];
574
- }
575
- function isSupportedTokenAddressForChain(token, chainId) {
576
- const normalized = token.toLowerCase();
577
- if (normalized === NATIVE_TOKEN_ADDRESS) {
578
- return Boolean(SUPPORTED_TOKENS_BY_CHAIN[chainId]);
579
- }
580
- const symbol = getTokenSymbol(token, chainId);
581
- if (!symbol || symbol === "Token") return false;
582
- if (!isSymbolSupportedOnChain(symbol, chainId)) return false;
583
- const expected = getTokenFromRegistry(chainId, symbol);
584
- if (!expected) return false;
585
- return expected.address.toLowerCase() === normalized;
586
- }
587
- function getSupportedTargetTokens(chainId) {
588
- const symbols = getSupportedTokenSymbolsForChain(chainId);
589
- const options = [];
590
- for (const symbol of symbols) {
591
- const address = getTokenAddress(symbol, chainId);
592
- if (!address) continue;
593
- options.push({
594
- symbol,
595
- address,
596
- decimals: getTokenDecimals(symbol, chainId)
597
- });
598
- }
599
- return options;
600
- }
601
- function findTokenDecimals(token, chainId) {
602
- const normalized = token.toLowerCase();
603
- if (normalized === NATIVE_TOKEN_ADDRESS) {
604
- return 18;
605
- }
606
- if (chainId) {
607
- const chainEntry = chainRegistry[String(chainId)];
608
- if (chainEntry) {
609
- const found = chainEntry.tokens.find(
610
- (t) => t.address.toLowerCase() === normalized
611
- );
612
- if (found) return found.decimals;
613
- }
614
- }
615
- for (const chainEntry of Object.values(chainRegistry)) {
616
- const found = chainEntry.tokens.find(
617
- (t) => t.address.toLowerCase() === normalized
618
- );
619
- if (found) return found.decimals;
620
- }
621
- return void 0;
622
- }
623
- function getTokenDecimalsByAddress(token, chainId) {
624
- return _nullishCoalesce(findTokenDecimals(token, chainId), () => ( 18));
625
- }
626
- function findChainIdForToken(address) {
627
- const normalized = address.toLowerCase();
628
- for (const [chainIdStr, chainEntry] of Object.entries(chainRegistry)) {
629
- for (const token of chainEntry.tokens) {
630
- if (token.address.toLowerCase() === normalized) {
631
- return Number(chainIdStr);
632
- }
633
- }
634
- }
635
- return void 0;
636
- }
637
- function isRegistryTokenOnChain(token, chainId) {
638
- const normalized = token.toLowerCase();
639
- if (normalized === NATIVE_TOKEN_ADDRESS) return true;
640
- const chainEntry = chainRegistry[String(chainId)];
641
- return chainEntry ? chainEntry.tokens.some((t) => t.address.toLowerCase() === normalized) : false;
642
- }
643
- var NATIVE_SYMBOL_BY_CHAIN = {
644
- [_chains.bsc.id]: "BNB",
645
- [_chains.plasma.id]: "XPL",
646
- [_chains.polygon.id]: "POL",
647
- [_chains.gnosis.id]: "XDAI",
648
- [_chains.sonic.id]: "S",
649
- [_chains.monad.id]: "MON",
650
- [_chains.hyperliquid.id]: "HYPE"
651
- };
652
- function getNativeSymbol(chainId) {
653
- return chainId != null && NATIVE_SYMBOL_BY_CHAIN[chainId] || "ETH";
654
- }
655
- function getTokenSymbol(token, chainId) {
656
- const normalized = token.toLowerCase();
657
- if (normalized === NATIVE_TOKEN_ADDRESS) {
658
- return getNativeSymbol(chainId);
659
- }
660
- if (chainId) {
661
- const chainEntry = chainRegistry[String(chainId)];
662
- if (chainEntry) {
663
- const found = chainEntry.tokens.find(
664
- (t) => t.address.toLowerCase() === normalized
665
- );
666
- if (found) return found.symbol;
667
- }
668
- }
669
- for (const chainEntry of Object.values(chainRegistry)) {
670
- const found = chainEntry.tokens.find(
671
- (t) => t.address.toLowerCase() === normalized
672
- );
673
- if (found) return found.symbol;
674
- }
675
- return "Token";
676
- }
677
- function getTargetTokenSymbol(token, chain) {
678
- if (chain === "solana") {
679
- return _nullishCoalesce(_optionalChain([getSolanaTokenByMint, 'call', _7 => _7(String(token)), 'optionalAccess', _8 => _8.symbol]), () => ( "Token"));
680
- }
681
- return getTokenSymbol(token, chain);
682
- }
683
- function isStablecoinSymbol(symbol) {
684
- return /^(usdc|usdt|usdt0|dai|usd)$/i.test(symbol);
685
- }
686
- var CHAIN_BADGES = {
687
- [_chains.mainnet.id]: { shortLabel: "ETH", color: "#627EEA", bg: "#EEF2FF" },
688
- [_chains.base.id]: { shortLabel: "Base", color: "#0052FF", bg: "#E7F0FF" },
689
- [_chains.optimism.id]: { shortLabel: "OP", color: "#FF0420", bg: "#FFE9EC" },
690
- [_chains.arbitrum.id]: { shortLabel: "Arb", color: "#28A0F0", bg: "#E6F6FF" },
691
- [_chains.polygon.id]: { shortLabel: "Matic", color: "#8247E5", bg: "#EFE7FF" },
692
- [_chains.bsc.id]: { shortLabel: "BSC", color: "#F3BA2F", bg: "#FFF8E0" },
693
- [_chains.plasma.id]: { shortLabel: "Plasma", color: "#6C47FF", bg: "#EDE7FF" },
694
- [_chains.soneium.id]: { shortLabel: "Soneium", color: "#0D0D0D", bg: "#E8E8E8" },
695
- [_chains.sonic.id]: { shortLabel: "Sonic", color: "#5B6DEF", bg: "#EDEFFE" },
696
- [_chains.gnosis.id]: { shortLabel: "Gnosis", color: "#3E6957", bg: "#E5F0EB" },
697
- [_chains.hyperliquid.id]: { shortLabel: "Hyper", color: "#5BE7C4", bg: "#E5FFF8" },
698
- [_chains.monad.id]: { shortLabel: "Monad", color: "#6E54FF", bg: "#EEEBFF" },
699
- [_chains.unichain.id]: { shortLabel: "Uni", color: "#F50DB4", bg: "#FFE5F5" },
700
- [_chains.katana.id]: { shortLabel: "Katana", color: "#0441B2", bg: "#E5EEFC" },
701
- [HYPERCORE_CHAIN_ID]: {
702
- shortLabel: "HyperCore",
703
- color: "#5BE7C4",
704
- bg: "#E5FFF8"
705
- }
706
- };
707
- function resolveDisplayChainId(chainId) {
708
- return chainId === "hypercore" ? HYPERCORE_CHAIN_ID : chainId;
709
- }
710
- var HYPERCORE_EXPLORER_URL = "https://app.hyperliquid.xyz/explorer";
711
- function getChainName(chainId) {
712
- if (chainId === "solana") return "Solana";
713
- const id = resolveDisplayChainId(chainId);
714
- const chain = CHAIN_BY_ID[id];
715
- if (chain) return chain.name;
716
- const chainEntry = chainRegistry[String(id)];
717
- if (chainEntry) return chainEntry.name;
718
- return `Chain ${id}`;
719
- }
720
- function getChainBadge(chainId) {
721
- if (chainId === "solana") {
722
- return { shortLabel: "SOL", color: "#9945FF", bg: "#F3EEFF" };
723
- }
724
- return CHAIN_BADGES[resolveDisplayChainId(chainId)] || {
725
- shortLabel: "Net",
726
- color: "#64748B",
727
- bg: "#F1F5F9"
728
- };
729
- }
730
- function getExplorerUrl(chainId) {
731
- if (chainId === "solana") return "https://solscan.io";
732
- if (chainId === "hypercore") return HYPERCORE_EXPLORER_URL;
733
- return _optionalChain([CHAIN_BY_ID, 'access', _9 => _9[chainId], 'optionalAccess', _10 => _10.blockExplorers, 'optionalAccess', _11 => _11.default, 'optionalAccess', _12 => _12.url]);
734
- }
735
- function getExplorerTxUrl(chainId, txHash) {
736
- if (chainId === "solana") return `https://solscan.io/tx/${txHash}`;
737
- if (chainId === "hypercore" && !txHash.startsWith("0x")) return void 0;
738
- const url = getExplorerUrl(chainId);
739
- if (!url) return void 0;
740
- return `${url}/tx/${txHash}`;
741
- }
742
- function getExplorerName(chainId) {
743
- if (chainId === "solana") return "Solscan";
744
- if (chainId === "hypercore") return "Hyperliquid Explorer";
745
- return _nullishCoalesce(_optionalChain([CHAIN_BY_ID, 'access', _13 => _13[chainId], 'optionalAccess', _14 => _14.blockExplorers, 'optionalAccess', _15 => _15.default, 'optionalAccess', _16 => _16.name]), () => ( "Explorer"));
746
- }
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
-
783
-
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
-
796
-
797
-
798
-
799
-
800
- exports.toEvmCaip2 = toEvmCaip2; exports.targetChainToCaip2 = targetChainToCaip2; exports.parseEvmChainId = parseEvmChainId; exports.isSolanaCaip2 = isSolanaCaip2; exports.isHyperCoreCaip2 = isHyperCoreCaip2; exports.HYPERCORE_CHAIN_ID = HYPERCORE_CHAIN_ID; exports.HYPERCORE_MAINNET_CAIP2 = HYPERCORE_MAINNET_CAIP2; exports.HYPERCORE_USDC_ADDRESS = HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = HYPERCORE_USDT0_ADDRESS; exports.HYPERCORE_SOURCE_TOKENS = HYPERCORE_SOURCE_TOKENS; exports.HYPERCORE_MIN_DEPOSIT_USD = HYPERCORE_MIN_DEPOSIT_USD; exports.isVirtualDestination = isVirtualDestination; exports.isContractBytecode = isContractBytecode; exports.SOLANA_TOKENS = SOLANA_TOKENS; exports.getSolanaTokenBySymbol = getSolanaTokenBySymbol; exports.getSolanaTokenByMint = getSolanaTokenByMint; exports.isNativeSol = isNativeSol; exports.getChainIcon = getChainIcon; exports.tokenIconUrl = tokenIconUrl; exports.getTokenIcon = getTokenIcon; exports.DEFAULT_BACKEND_URL = DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = NATIVE_TOKEN_ADDRESS; exports.CHAIN_BY_ID = CHAIN_BY_ID; exports.SOURCE_CHAINS = SOURCE_CHAINS; exports.SUPPORTED_CHAINS = SUPPORTED_CHAINS; exports.chainRegistry = chainRegistry; exports.getChainId = getChainId; exports.getChainObject = getChainObject; exports.getUsdcAddress = getUsdcAddress; exports.getUsdcDecimals = getUsdcDecimals; exports.getTokenAddress = getTokenAddress; exports.getTokenDecimals = getTokenDecimals; exports.getTargetTokenSymbolsForChain = getTargetTokenSymbolsForChain; exports.getSupportedTokenSymbolsForChain = getSupportedTokenSymbolsForChain; exports.getSupportedChainIds = getSupportedChainIds; exports.isSupportedTokenAddressForChain = isSupportedTokenAddressForChain; exports.getSupportedTargetTokens = getSupportedTargetTokens; exports.findTokenDecimals = findTokenDecimals; exports.getTokenDecimalsByAddress = getTokenDecimalsByAddress; exports.findChainIdForToken = findChainIdForToken; exports.isRegistryTokenOnChain = isRegistryTokenOnChain; exports.getNativeSymbol = getNativeSymbol; exports.getTokenSymbol = getTokenSymbol; exports.getTargetTokenSymbol = getTargetTokenSymbol; exports.isStablecoinSymbol = isStablecoinSymbol; exports.getChainName = getChainName; exports.getChainBadge = getChainBadge; exports.getExplorerUrl = getExplorerUrl; exports.getExplorerTxUrl = getExplorerTxUrl; exports.getExplorerName = getExplorerName;