@rhinestone/deposit-modal 0.3.0-alpha.6 → 0.3.0-alpha.8

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 (38) hide show
  1. package/dist/{DepositModalReown-SBSP5ZW2.cjs → DepositModalReown-LWGABUOF.cjs} +12 -9
  2. package/dist/{DepositModalReown-3N7YYGB4.mjs → DepositModalReown-TYHATVOM.mjs} +9 -6
  3. package/dist/{WithdrawModalReown-4B6IMTBB.cjs → WithdrawModalReown-FCWED55P.cjs} +7 -7
  4. package/dist/{WithdrawModalReown-BB3MZAIO.mjs → WithdrawModalReown-H7HA3JP3.mjs} +4 -4
  5. package/dist/{chunk-CTYKQ4B4.mjs → chunk-5ZS4ZJPW.mjs} +272 -145
  6. package/dist/chunk-7JIDIX27.cjs +554 -0
  7. package/dist/{chunk-QI6Q7V6O.mjs → chunk-DW276H63.mjs} +26 -34
  8. package/dist/{chunk-5YXAQB6A.mjs → chunk-E46WOBZQ.mjs} +56 -16
  9. package/dist/{chunk-UVIIWUWP.cjs → chunk-GBFOGYMH.cjs} +1193 -862
  10. package/dist/{chunk-EJH36TH2.mjs → chunk-H7QMSMM5.mjs} +1247 -916
  11. package/dist/{chunk-YQFH2WSW.cjs → chunk-PKD7W5JG.cjs} +54 -14
  12. package/dist/chunk-SZIYS42B.mjs +554 -0
  13. package/dist/{chunk-BB6UVRAV.cjs → chunk-U3OLJZBT.cjs} +110 -118
  14. package/dist/{chunk-DX2D2TRZ.cjs → chunk-UELVNPGE.cjs} +312 -185
  15. package/dist/constants-DqVn968d.d.cts +52 -0
  16. package/dist/constants-DqVn968d.d.ts +52 -0
  17. package/dist/constants.cjs +8 -2
  18. package/dist/constants.d.cts +17 -48
  19. package/dist/constants.d.ts +17 -48
  20. package/dist/constants.mjs +7 -1
  21. package/dist/deposit.cjs +4 -4
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +3 -3
  25. package/dist/index.cjs +6 -6
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.mjs +5 -5
  29. package/dist/styles.css +180 -34
  30. package/dist/{types-xSHZSlrT.d.cts → types-D8Q4TMk7.d.cts} +17 -5
  31. package/dist/{types-xSHZSlrT.d.ts → types-D8Q4TMk7.d.ts} +17 -5
  32. package/dist/withdraw.cjs +4 -4
  33. package/dist/withdraw.d.cts +2 -2
  34. package/dist/withdraw.d.ts +2 -2
  35. package/dist/withdraw.mjs +3 -3
  36. package/package.json +5 -5
  37. package/dist/chunk-IVTXEYB2.cjs +0 -507
  38. package/dist/chunk-VA3ANS7D.mjs +0 -507
@@ -0,0 +1,554 @@
1
+ // src/core/solana-tokens.ts
2
+ var SOLANA_TOKENS = [
3
+ { symbol: "SOL", mint: "native", decimals: 9 },
4
+ {
5
+ symbol: "USDC",
6
+ mint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
7
+ decimals: 6
8
+ },
9
+ {
10
+ symbol: "USDT",
11
+ mint: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
12
+ decimals: 6
13
+ }
14
+ ];
15
+ function getSolanaTokenBySymbol(symbol) {
16
+ return SOLANA_TOKENS.find(
17
+ (t) => t.symbol.toUpperCase() === symbol.toUpperCase()
18
+ );
19
+ }
20
+ function getSolanaTokenByMint(mint) {
21
+ return SOLANA_TOKENS.find((t) => t.mint === mint);
22
+ }
23
+ function isNativeSol(token) {
24
+ return token.mint === "native";
25
+ }
26
+
27
+ // src/core/icons.ts
28
+ import {
29
+ arbitrum,
30
+ base,
31
+ bsc,
32
+ gnosis,
33
+ hyperliquid,
34
+ mainnet,
35
+ monad,
36
+ optimism,
37
+ plasma,
38
+ polygon,
39
+ sonic,
40
+ soneium
41
+ } from "viem/chains";
42
+ var CHAIN_ICONS = {
43
+ [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",
44
+ [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",
45
+ [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",
46
+ [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",
47
+ [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",
48
+ [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",
49
+ [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",
50
+ [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",
51
+ [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",
52
+ [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",
53
+ [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",
54
+ [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"
55
+ };
56
+ var TOKEN_ICONS = {
57
+ USDC: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 2000'%3E%3Cpath d='M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z' fill='%232775ca'/%3E%3Cpath d='M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z' fill='%23fff'/%3E%3Cpath d='M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zm441.67-1300c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z' fill='%23fff'/%3E%3C/svg%3E",
58
+ ETH: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.99987 19.9319C15.4852 19.9319 19.9319 15.4852 19.9319 9.9999C19.9319 4.51461 15.4852 0.0679016 9.99987 0.0679016C4.51458 0.0679016 0.0678711 4.51461 0.0678711 9.9999C0.0678711 15.4852 4.51458 19.9319 9.99987 19.9319Z' fill='%23E3E3E3'/%3E%3Cpath d='M10.0073 2.18121L14.6948 9.99371L10.0247 7.98052L10.0073 2.18121Z' fill='%232F3030'/%3E%3Cpath d='M5.31982 9.99371L9.98998 2.18121L10.0073 7.98052L5.31982 9.99371Z' fill='%23828384'/%3E%3Cpath d='M9.98998 12.8062L5.31982 10.047L10.0073 8.11871L9.98998 12.8062Z' fill='%23343535'/%3E%3Cpath d='M14.6948 10.047L10.0247 8.11871L10.0073 12.8062L14.6948 10.047Z' fill='%23131313'/%3E%3Cpath d='M10.0073 14.0046L14.6948 11.2437L10.0073 17.8062V14.0046Z' fill='%232F3030'/%3E%3Cpath d='M10.0073 14.0046L5.31982 11.2437L10.0073 17.8062V14.0046Z' fill='%23828384'/%3E%3C/svg%3E",
59
+ USDT: "data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2326A17B'/%3E%3Cpath fill='%23FFF' d='M17.922 17.383v-.002c-.11.008-.677.042-1.942.042-1.01 0-1.721-.03-1.971-.042v.003c-3.888-.171-6.79-.848-6.79-1.658 0-.809 2.902-1.486 6.79-1.66v2.644c.254.018.982.061 1.988.061 1.207 0 1.812-.05 1.925-.06v-2.643c3.88.173 6.775.85 6.775 1.658 0 .81-2.895 1.485-6.775 1.657m0-3.59v-2.366h5.414V7.819H8.595v3.608h5.414v2.365c-4.4.202-7.709 1.074-7.709 2.118 0 1.044 3.309 1.915 7.709 2.118v7.582h3.913v-7.584c4.393-.202 7.694-1.073 7.694-2.116 0-1.043-3.301-1.914-7.694-2.117'/%3E%3C/g%3E%3C/svg%3E",
60
+ USDT0: "data:image/svg+xml,%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 { fill: %23009393; } .cls-1%2C .cls-2 { stroke-width: 0px; } .cls-2 { fill: %23fff; fill-rule: evenodd; } %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Ccircle class='cls-1' cx='400' cy='400' r='400'/%3E%3Cpath class='cls-2' d='M400.49%2C428.59c68.79%2C0%2C126.28-11.63%2C140.33-27.17-11.93-13.18-55.08-23.56-109.88-26.4v32.83c-9.81.51-20.01.76-30.46.76s-20.65-.25-30.48-.76v-32.83c-54.78%2C2.84-97.95%2C13.22-109.88%2C26.4%2C14.07%2C15.54%2C71.57%2C27.17%2C140.36%2C27.17ZM522.71%2C274.06v45.21h-91.77v31.35c64.46%2C3.35%2C112.83%2C17.13%2C113.19%2C33.62v34.38c-.36%2C16.49-48.73%2C30.24-113.19%2C33.6v76.94h-60.93v-76.94c-64.46-3.35-112.81-17.11-113.17-33.6v-34.38c.36-16.49%2C48.71-30.27%2C113.17-33.62v-31.35h-91.77v-45.21h244.48ZM242.15%2C202.11h322.16c7.7%2C0%2C14.79%2C4.05%2C18.63%2C10.63l93.85%2C161.16c4.86%2C8.36%2C3.42%2C18.91-3.52%2C25.68l-258.34%2C252.18c-8.38%2C8.17-21.84%2C8.17-30.2%2C0L126.71%2C399.92c-7.09-6.94-8.43-17.79-3.2-26.19l100.33-161.49c3.91-6.28%2C10.85-10.12%2C18.32-10.12Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",
61
+ WETH: "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path fill-rule='evenodd' clip-rule='evenodd' fill='%2325292E' d='M250,500c138.1,0,250-111.9,250-250S388.1,0,250,0S0,111.9,0,250S111.9,500,250,500z'/><path fill-rule='evenodd' clip-rule='evenodd' fill='%23FFFFFF' d='M386.1,86.8C349.3,56,301.8,37.5,250,37.5S150.7,56,113.9,86.8c-2.8,2.3-2.9,6.5-0.3,9l4.5,4.5c2.3,2.3,6.1,2.4,8.6,0.3c33.5-27.7,76.5-44.4,123.4-44.4s89.9,16.7,123.4,44.4c2.5,2.1,6.3,2,8.6-0.3l4.5-4.5C389,93.3,388.9,89.1,386.1,86.8z M100.3,118c2.3,2.3,2.4,6.1,0.3,8.6C72.9,160.1,56.2,203.1,56.2,250s16.7,89.9,44.4,123.4c2.1,2.5,2,6.3-0.3,8.6l-4.5,4.5c-2.5,2.5-6.7,2.4-9-0.3C56,349.3,37.5,301.8,37.5,250S56,150.7,86.8,113.9c2.3-2.8,6.5-2.9,9-0.3L100.3,118z M399.4,373.4c-2.1,2.5-2,6.3,0.3,8.6l4.5,4.5c2.5,2.5,6.7,2.4,9-0.3c30.8-36.9,49.3-84.3,49.3-136.1s-18.5-99.3-49.3-136.1c-2.3-2.8-6.5-2.9-9-0.3l-4.5,4.5c-2.3,2.3-2.4,6.1-0.3,8.6c27.7,33.5,44.4,76.5,44.4,123.4S427.1,339.9,399.4,373.4z M113.9,413.2c36.9,30.8,84.3,49.3,136.1,49.3s99.3-18.5,136.1-49.3c2.8-2.3,2.9-6.5,0.3-9l-4.5-4.5c-2.3-2.3-6.1-2.4-8.6-0.3c-33.5,27.7-76.5,44.4-123.4,44.4s-89.9-16.7-123.4-44.4c-2.5-2.1-6.3-2-8.6,0.3l-4.5,4.5C111,406.7,111.1,410.9,113.9,413.2z'/><linearGradient id='wethG' gradientUnits='userSpaceOnUse' x1='249.9919' y1='238.4098' x2='249.9919' y2='119.4948' gradientTransform='matrix(1 0 0 -1 0 499.8898)'><stop offset='0' stop-color='%23FFFFFF'/><stop offset='1' stop-color='%23FFFFFF' stop-opacity='0.9'/></linearGradient><path fill='url(%23wethG)' d='M165.6,261.5l84.4,49.9l84.4-49.9L250,380.4L165.6,261.5z'/><path fill='%23FFFFFF' d='M250,292.8l-84.4-49.9L250,110l84.4,132.9L250,292.8z'/></svg>",
62
+ BNB: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2496 2496'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23F0B90B' d='M1248%2C0c689.3%2C0%2C1248%2C558.7%2C1248%2C1248s-558.7%2C1248-1248%2C1248S0%2C1937.3%2C0%2C1248S558.7%2C0%2C1248%2C0z'/%3E%3Cpath fill='%23FFFFFF' d='M685.9%2C1248l0.9%2C330l280.4%2C165v193.2l-444.5-260.7v-524L685.9%2C1248z M685.9%2C918v192.3l-163.3-96.6V821.4l163.3-96.6l164.1%2C96.6L685.9%2C918z M1084.3%2C821.4l163.3-96.6l164.1%2C96.6L1247.6%2C918L1084.3%2C821.4z'/%3E%3Cpath fill='%23FFFFFF' d='M803.9%2C1509.6v-193.2l163.3%2C96.6v192.3L803.9%2C1509.6z M1084.3%2C1812.2l163.3%2C96.6l164.1-96.6v192.3l-164.1%2C96.6l-163.3-96.6V1812.2z M1645.9%2C821.4l163.3-96.6l164.1%2C96.6v192.3l-164.1%2C96.6V918L1645.9%2C821.4z M1809.2%2C1578l0.9-330l163.3-96.6v524l-444.5%2C260.7v-193.2L1809.2%2C1578z'/%3E%3Cpolygon fill='%23FFFFFF' points='1692.1%2C1509.6 1528.8%2C1605.3 1528.8%2C1413 1692.1%2C1316.4 1692.1%2C1509.6'/%3E%3Cpath fill='%23FFFFFF' d='M1692.1%2C986.4l0.9%2C193.2l-281.2%2C165v330.8l-163.3%2C95.7l-163.3-95.7v-330.8l-281.2-165V986.4L968%2C889.8l279.5%2C165.8l281.2-165.8l164.1%2C96.6H1692.1z M803.9%2C656.5l443.7-261.6l444.5%2C261.6l-163.3%2C96.6l-281.2-165.8L967.2%2C753.1L803.9%2C656.5z'/%3E%3C/svg%3E",
63
+ XPL: "data:image/svg+xml,%3Csvg width='166' height='166' viewBox='0 0 166 166' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='166' height='166' fill='%23162F29'/%3E%3Cpath d='M133 83.268C133 83.7749 132.993 84.2819 132.978 84.7888H108.659V83.6808H85.2523C85.2523 83.449 85.2596 83.2173 85.2596 82.9928C85.2596 82.7682 85.2596 82.5293 85.2523 82.3047H108.659V81.2039H132.957C132.986 81.8919 133 82.58 133 83.268ZM84.8395 78.2781L107.747 75.4609L107.884 76.5617L132.073 73.5852C131.841 72.3974 131.566 71.2242 131.255 70.0727L107.442 73.0058L107.58 74.1066L84.5643 76.9383C84.6657 77.3873 84.7598 77.8363 84.8395 78.2926V78.2781ZM83.6446 73.8459L105.538 68.378L105.806 69.4499L129.039 63.6489C128.561 62.5264 128.046 61.4183 127.496 60.3392L104.944 65.9736L105.212 67.0455L83.1376 72.564C83.3187 72.9913 83.4852 73.4186 83.6446 73.8531V73.8459ZM81.7036 69.6961L102.17 61.9687L102.561 63.0043L124.215 54.8279C123.513 53.7995 122.774 52.8001 121.992 51.8297L101.294 59.644L101.685 60.6796L80.9722 68.5012C81.2257 68.8922 81.4719 69.2906 81.7036 69.6961ZM79.0168 65.8578L97.0933 56.4357L97.6002 57.4206L117.589 46.9991C116.669 46.1083 115.713 45.261 114.728 44.4426L95.9418 54.2341L96.4487 55.219L78.0681 64.8004C78.3867 65.148 78.7054 65.4957 79.0096 65.8578H79.0168ZM74.657 61.7152L91.0243 51.3082L91.6182 52.2425L109.68 40.7564C108.543 40.0322 107.384 39.3586 106.189 38.7286L89.699 49.2152L90.2929 50.1495L73.4548 60.8534C73.8676 61.1286 74.2659 61.4183 74.6642 61.7152H74.657ZM70.7897 59.2963L84.5064 48.0492L85.2089 48.9038L100.656 36.23C99.3456 35.7303 97.9985 35.2813 96.637 34.8902L82.9348 46.1301L83.6373 46.9846L69.4209 58.6446C69.8844 58.8473 70.3407 59.0646 70.7897 59.2963ZM65.6695 57.3048L76.5038 46.5211L77.2787 47.3033L91.0461 33.6228C89.5542 33.3766 88.0406 33.1955 86.5052 33.0797L74.7656 44.7613L75.5406 45.5435L64.0979 56.9282C64.6266 57.0368 65.148 57.1599 65.6695 57.3048ZM59.6802 56.3995L68.3201 45.9273L69.1747 46.6298L80.4218 33C78.7126 33.0797 77.0252 33.2462 75.3667 33.4925L66.4082 44.3485L67.2627 45.051L57.9058 56.3922C58.1666 56.385 58.4345 56.3777 58.6952 56.3777C59.0284 56.3777 59.3543 56.3778 59.6802 56.3922V56.3995ZM54.502 56.7109L61.1576 46.4125L62.0846 47.0136L70.1306 34.5571C68.2911 35.0351 66.4951 35.6144 64.7425 36.2879L59.0791 45.0582L60.0061 45.6593L52.6335 57.073C53.2491 56.9282 53.872 56.805 54.502 56.7036V56.7109ZM48.7517 58.3114L53.5388 49.3384L54.5093 49.8598L60.8462 37.9899C58.8111 38.982 56.8557 40.1046 54.9873 41.3502L51.3444 48.1724L52.3221 48.6938L46.6877 59.2529C47.354 58.9125 48.042 58.6011 48.7445 58.3187L48.7517 58.3114ZM44.6237 60.4189L46.6587 54.6396L47.7016 55.009L51.6559 43.7836C49.6498 45.3769 47.7668 47.115 46.0214 48.9907L44.3195 53.8213L45.3624 54.1906L42.6973 61.7515C43.3201 61.2807 43.9574 60.8389 44.6165 60.4261L44.6237 60.4189ZM39.5469 64.5542L40.445 60.3537L41.524 60.5855L43.3346 52.1266C41.4299 54.5455 39.7425 57.1454 38.3013 59.8902L39.1052 60.064L37.4539 67.0165C38.0985 66.1547 38.801 65.3291 39.5469 64.5542ZM35.8172 69.4644V63.9024C34.4702 67.4583 33.5142 71.8833 33 76.2213C33.6301 73.8169 34.586 71.5501 35.8172 69.4644ZM33.0362 89.909C33.5649 93.6098 34.4919 97.1802 35.781 100.577V96.4704C34.5933 94.4426 33.659 92.241 33.0362 89.909ZM37.6278 99.2152L39.0689 105.936L38.2651 106.11C39.7063 108.862 41.3937 111.455 43.2984 113.873L41.4878 105.415L40.4087 105.646L39.4962 101.395C38.8372 100.7 38.2071 99.9757 37.6278 99.208V99.2152ZM42.6466 104.212L45.3262 111.817L44.2833 112.186L45.9852 117.017C47.7306 118.892 49.6136 120.63 51.6196 122.224L47.6654 110.998L46.6225 111.368L44.5802 105.559C43.9212 105.139 43.2767 104.698 42.6538 104.227L42.6466 104.212ZM46.6443 106.725L52.2932 117.313L51.3155 117.835L54.9583 124.657C56.8268 125.903 58.7822 127.025 60.8172 128.017L54.4803 116.147L53.5026 116.669L48.701 107.674C47.9985 107.392 47.3105 107.073 46.637 106.733L46.6443 106.725ZM52.5901 108.913L59.9699 120.341L59.0429 120.942L64.7063 129.712C66.4589 130.386 68.2549 130.965 70.0944 131.443L62.0484 118.986L61.1214 119.587L54.4586 109.275C53.8285 109.173 53.1984 109.05 52.5828 108.905L52.5901 108.913ZM57.8624 109.608L67.2193 120.949L66.3647 121.652L75.3233 132.508C76.9817 132.754 78.6692 132.92 80.3783 133L69.1312 119.363L68.2766 120.065L59.6367 109.593C59.3253 109.608 59.0067 109.608 58.688 109.608C58.4128 109.608 58.1304 109.608 57.8552 109.593L57.8624 109.608ZM64.0689 109.072L75.5043 120.449L74.7294 121.231L86.469 132.913C88.0043 132.797 89.518 132.616 91.0098 132.37L77.2497 118.682L76.4676 119.472L65.6405 108.695C65.1263 108.833 64.5976 108.963 64.0689 109.072ZM69.3992 107.37L83.6011 119.023L82.8986 119.877L96.6008 131.117C97.9623 130.726 99.3094 130.277 100.62 129.777L85.1654 117.103L84.4629 117.958L70.7607 106.718C70.3117 106.95 69.8554 107.167 69.3919 107.37H69.3992ZM73.4258 105.154L90.2422 115.851L89.6483 116.785L106.139 127.271C107.334 126.641 108.5 125.961 109.629 125.244L91.5675 113.758L90.9736 114.692L74.628 104.299C74.2297 104.596 73.8314 104.886 73.4186 105.161L73.4258 105.154ZM78.0608 101.214L96.4198 110.781L95.9128 111.766L114.699 121.557C115.684 120.739 116.64 119.892 117.56 119.001L97.5713 108.579L97.0643 109.564L79.0096 100.157C78.7054 100.519 78.394 100.874 78.0681 101.214H78.0608ZM80.9649 97.5061L101.649 105.32L101.258 106.356L121.956 114.17C122.731 113.2 123.469 112.2 124.179 111.172L102.525 102.996L102.134 104.031L81.6964 96.3111C81.4646 96.7167 81.2184 97.115 80.9649 97.5061ZM83.1304 93.4505L105.168 98.9545L104.9 100.026L127.452 105.661C128.01 104.582 128.524 103.474 129.002 102.351L105.769 96.5501L105.501 97.622L83.6373 92.1614C83.478 92.5959 83.3042 93.0232 83.1304 93.4505ZM84.5643 89.0762L107.544 91.9006L107.406 93.0014L131.218 95.9345C131.53 94.7758 131.805 93.6026 132.037 92.4221L107.848 89.4455L107.71 90.5463L84.8395 87.7291C84.7598 88.1854 84.6657 88.6344 84.5643 89.0834V89.0762Z' fill='white'/%3E%3C/svg%3E"
64
+ };
65
+ 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";
66
+ var SOLANA_CHAIN_ICON = SOL_BADGE_SVG;
67
+ var SOLANA_TOKEN_ICON = SOL_BADGE_SVG;
68
+ function getChainIcon(chainId) {
69
+ if (chainId === "solana") return SOLANA_CHAIN_ICON;
70
+ return CHAIN_ICONS[chainId];
71
+ }
72
+ function getTokenIcon(symbol) {
73
+ const upper = symbol.toUpperCase();
74
+ if (upper === "SOL") return SOLANA_TOKEN_ICON;
75
+ return TOKEN_ICONS[upper];
76
+ }
77
+
78
+ // src/core/constants.ts
79
+ import {
80
+ arbitrum as arbitrum2,
81
+ base as base2,
82
+ bsc as bsc2,
83
+ gnosis as gnosis2,
84
+ hyperliquid as hyperliquid2,
85
+ mainnet as mainnet2,
86
+ monad as monad2,
87
+ optimism as optimism2,
88
+ plasma as plasma2,
89
+ polygon as polygon2,
90
+ sonic as sonic2,
91
+ soneium as soneium2
92
+ } from "viem/chains";
93
+ var DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
94
+ var DEFAULT_SIGNER_ADDRESS = "0x177bfcdd15bc01e99013dcc5d2b09cd87a18ce9c";
95
+ var NATIVE_TOKEN_ADDRESS = "0x0000000000000000000000000000000000000000";
96
+ var ALL_CHAINS_BY_ID = {
97
+ [mainnet2.id]: mainnet2,
98
+ [base2.id]: base2,
99
+ [optimism2.id]: optimism2,
100
+ [arbitrum2.id]: arbitrum2,
101
+ [polygon2.id]: polygon2,
102
+ [bsc2.id]: bsc2,
103
+ [plasma2.id]: plasma2,
104
+ [soneium2.id]: soneium2
105
+ };
106
+ var SUPPORTED_TOKEN_MATRIX = {
107
+ ETH: [mainnet2.id, base2.id, arbitrum2.id, optimism2.id, polygon2.id, soneium2.id],
108
+ WETH: [mainnet2.id, base2.id, arbitrum2.id, optimism2.id, polygon2.id, soneium2.id],
109
+ USDC: [mainnet2.id, base2.id, arbitrum2.id, optimism2.id, polygon2.id, soneium2.id],
110
+ USDT: [mainnet2.id, bsc2.id, soneium2.id],
111
+ USDT0: [arbitrum2.id, optimism2.id, polygon2.id, plasma2.id]
112
+ };
113
+ var CHAIN_DISPLAY_ORDER = [
114
+ mainnet2.id,
115
+ base2.id,
116
+ arbitrum2.id,
117
+ optimism2.id,
118
+ polygon2.id,
119
+ bsc2.id,
120
+ plasma2.id,
121
+ soneium2.id
122
+ ];
123
+ var supportedChainSet = /* @__PURE__ */ new Set();
124
+ for (const chainIds of Object.values(SUPPORTED_TOKEN_MATRIX)) {
125
+ for (const chainId of chainIds) {
126
+ supportedChainSet.add(chainId);
127
+ }
128
+ }
129
+ var SUPPORTED_CHAIN_IDS = CHAIN_DISPLAY_ORDER.filter(
130
+ (chainId) => supportedChainSet.has(chainId) && Boolean(ALL_CHAINS_BY_ID[chainId])
131
+ );
132
+ var CHAIN_BY_ID = Object.fromEntries(
133
+ SUPPORTED_CHAIN_IDS.map((id) => [id, ALL_CHAINS_BY_ID[id]])
134
+ );
135
+ var SOURCE_CHAINS = SUPPORTED_CHAIN_IDS.map(
136
+ (id) => CHAIN_BY_ID[id]
137
+ );
138
+ var SUPPORTED_CHAINS = SOURCE_CHAINS;
139
+ var SUPPORTED_TOKENS_BY_CHAIN = Object.fromEntries(
140
+ SUPPORTED_CHAIN_IDS.map((chainId) => {
141
+ const symbols = Object.entries(SUPPORTED_TOKEN_MATRIX).filter(([, chainIds]) => chainIds.includes(chainId)).map(([symbol]) => symbol);
142
+ return [chainId, symbols];
143
+ })
144
+ );
145
+ var chainRegistry = {
146
+ [mainnet2.id]: {
147
+ name: mainnet2.name,
148
+ tokens: [
149
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
150
+ {
151
+ symbol: "USDC",
152
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
153
+ decimals: 6
154
+ },
155
+ {
156
+ symbol: "WETH",
157
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
158
+ decimals: 18
159
+ },
160
+ {
161
+ symbol: "USDT",
162
+ address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
163
+ decimals: 6
164
+ }
165
+ ]
166
+ },
167
+ [base2.id]: {
168
+ name: base2.name,
169
+ tokens: [
170
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
171
+ {
172
+ symbol: "USDC",
173
+ address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
174
+ decimals: 6
175
+ },
176
+ {
177
+ symbol: "WETH",
178
+ address: "0x4200000000000000000000000000000000000006",
179
+ decimals: 18
180
+ }
181
+ ]
182
+ },
183
+ [arbitrum2.id]: {
184
+ name: arbitrum2.name,
185
+ tokens: [
186
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
187
+ {
188
+ symbol: "USDC",
189
+ address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
190
+ decimals: 6
191
+ },
192
+ {
193
+ symbol: "WETH",
194
+ address: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
195
+ decimals: 18
196
+ },
197
+ {
198
+ symbol: "USDT0",
199
+ address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
200
+ decimals: 6
201
+ }
202
+ ]
203
+ },
204
+ [optimism2.id]: {
205
+ name: optimism2.name,
206
+ tokens: [
207
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
208
+ {
209
+ symbol: "USDC",
210
+ address: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
211
+ decimals: 6
212
+ },
213
+ {
214
+ symbol: "WETH",
215
+ address: "0x4200000000000000000000000000000000000006",
216
+ decimals: 18
217
+ },
218
+ {
219
+ symbol: "USDT0",
220
+ address: "0x01bFF41798a0BcF287b996046Ca68b395DbC1071",
221
+ decimals: 6
222
+ }
223
+ ]
224
+ },
225
+ [polygon2.id]: {
226
+ name: polygon2.name,
227
+ tokens: [
228
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
229
+ {
230
+ symbol: "USDC",
231
+ address: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
232
+ decimals: 6
233
+ },
234
+ // Bridged USDC.e — what Polymarket withdrawals arrive as. Mapped to the
235
+ // USDC symbol/icon for display and 6 decimals so history rows resolve
236
+ // correctly. Listed after native USDC so symbol→address lookups (and
237
+ // the selectable token list, which is driven separately by
238
+ // SUPPORTED_TOKENS_BY_CHAIN) keep resolving USDC to the native address.
239
+ {
240
+ symbol: "USDC",
241
+ address: "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
242
+ decimals: 6
243
+ },
244
+ {
245
+ symbol: "WETH",
246
+ address: "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
247
+ decimals: 18
248
+ },
249
+ {
250
+ symbol: "USDT0",
251
+ address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
252
+ decimals: 6
253
+ }
254
+ ]
255
+ },
256
+ [bsc2.id]: {
257
+ name: bsc2.name,
258
+ tokens: [
259
+ {
260
+ symbol: "USDC",
261
+ address: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
262
+ decimals: 18
263
+ },
264
+ {
265
+ symbol: "WETH",
266
+ address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
267
+ decimals: 18
268
+ },
269
+ {
270
+ symbol: "USDT",
271
+ address: "0x55d398326f99059fF775485246999027B3197955",
272
+ decimals: 18
273
+ }
274
+ ]
275
+ },
276
+ [plasma2.id]: {
277
+ name: plasma2.name,
278
+ tokens: [
279
+ {
280
+ symbol: "USDT0",
281
+ address: "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb",
282
+ decimals: 6
283
+ }
284
+ ]
285
+ },
286
+ [soneium2.id]: {
287
+ name: soneium2.name,
288
+ tokens: [
289
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
290
+ {
291
+ symbol: "USDC",
292
+ address: "0xbA9986D2381edf1DA03B0B9c1f8b00dc4AacC369",
293
+ decimals: 6
294
+ },
295
+ {
296
+ symbol: "WETH",
297
+ address: "0x4200000000000000000000000000000000000006",
298
+ decimals: 18
299
+ },
300
+ {
301
+ symbol: "USDT",
302
+ address: "0x3A337a6adA9d885b6Ad95ec48F9b75f197b5AE35",
303
+ decimals: 6
304
+ }
305
+ ]
306
+ }
307
+ };
308
+ function getChainId(chain) {
309
+ return typeof chain === "number" ? chain : chain.id;
310
+ }
311
+ function getChainObject(chain) {
312
+ if (typeof chain === "number") {
313
+ return CHAIN_BY_ID[chain];
314
+ }
315
+ return chain;
316
+ }
317
+ function normalizeTokenSymbol(symbol) {
318
+ const trimmed = symbol.trim();
319
+ const wrapped = trimmed.match(/\(([^)]+)\)/);
320
+ if (wrapped?.[1]) {
321
+ return wrapped[1].trim().toUpperCase();
322
+ }
323
+ return trimmed.toUpperCase();
324
+ }
325
+ function isSymbolSupportedOnChain(symbol, chainId) {
326
+ const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId];
327
+ if (!symbols) return false;
328
+ return symbols.includes(normalizeTokenSymbol(symbol));
329
+ }
330
+ function getTokenFromRegistry(chainId, symbol) {
331
+ const chainEntry = chainRegistry[String(chainId)];
332
+ if (!chainEntry) return void 0;
333
+ const normalized = normalizeTokenSymbol(symbol);
334
+ const token = chainEntry.tokens.find(
335
+ (t) => t.symbol.toUpperCase() === normalized
336
+ );
337
+ if (token) {
338
+ return { address: token.address, decimals: token.decimals };
339
+ }
340
+ return void 0;
341
+ }
342
+ function getUsdcAddress(chainId) {
343
+ const token = getTokenFromRegistry(chainId, "USDC");
344
+ return token?.address;
345
+ }
346
+ function getUsdcDecimals(chainId) {
347
+ const token = getTokenFromRegistry(chainId, "USDC");
348
+ return token?.decimals ?? 6;
349
+ }
350
+ function getTokenAddress(symbol, chainId) {
351
+ if (symbol.toUpperCase() === "ETH") {
352
+ if (!isSymbolSupportedOnChain("ETH", chainId)) {
353
+ return void 0;
354
+ }
355
+ return NATIVE_TOKEN_ADDRESS;
356
+ }
357
+ if (!isSymbolSupportedOnChain(symbol, chainId)) {
358
+ return void 0;
359
+ }
360
+ const token = getTokenFromRegistry(chainId, symbol);
361
+ return token?.address;
362
+ }
363
+ function getTokenDecimals(symbol, chainId) {
364
+ if (symbol.toUpperCase() === "ETH") {
365
+ return 18;
366
+ }
367
+ const token = getTokenFromRegistry(chainId, symbol);
368
+ return token?.decimals ?? 18;
369
+ }
370
+ function getTargetTokenSymbolsForChain(chainId) {
371
+ const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId] ?? [];
372
+ return [...symbols];
373
+ }
374
+ function getSupportedTokenSymbolsForChain(chainId) {
375
+ return getTargetTokenSymbolsForChain(chainId);
376
+ }
377
+ function getSupportedChainIds() {
378
+ return [...SUPPORTED_CHAIN_IDS];
379
+ }
380
+ function isSupportedTokenAddressForChain(token, chainId) {
381
+ const normalized = token.toLowerCase();
382
+ if (normalized === NATIVE_TOKEN_ADDRESS) {
383
+ return isSymbolSupportedOnChain("ETH", chainId);
384
+ }
385
+ const symbol = getTokenSymbol(token, chainId);
386
+ if (!symbol || symbol === "Token") return false;
387
+ if (!isSymbolSupportedOnChain(symbol, chainId)) return false;
388
+ const expected = getTokenFromRegistry(chainId, symbol);
389
+ if (!expected) return false;
390
+ return expected.address.toLowerCase() === normalized;
391
+ }
392
+ function getSupportedTargetTokens(chainId) {
393
+ const symbols = getSupportedTokenSymbolsForChain(chainId);
394
+ const options = [];
395
+ for (const symbol of symbols) {
396
+ const address = getTokenAddress(symbol, chainId);
397
+ if (!address) continue;
398
+ options.push({
399
+ symbol,
400
+ address,
401
+ decimals: getTokenDecimals(symbol, chainId)
402
+ });
403
+ }
404
+ return options;
405
+ }
406
+ function getTokenDecimalsByAddress(token, chainId) {
407
+ const normalized = token.toLowerCase();
408
+ if (normalized === NATIVE_TOKEN_ADDRESS) {
409
+ return 18;
410
+ }
411
+ if (chainId) {
412
+ const chainEntry = chainRegistry[String(chainId)];
413
+ if (chainEntry) {
414
+ const found = chainEntry.tokens.find(
415
+ (t) => t.address.toLowerCase() === normalized
416
+ );
417
+ if (found) return found.decimals;
418
+ }
419
+ }
420
+ for (const chainEntry of Object.values(chainRegistry)) {
421
+ const found = chainEntry.tokens.find(
422
+ (t) => t.address.toLowerCase() === normalized
423
+ );
424
+ if (found) return found.decimals;
425
+ }
426
+ return 18;
427
+ }
428
+ function findChainIdForToken(address) {
429
+ const normalized = address.toLowerCase();
430
+ for (const [chainIdStr, chainEntry] of Object.entries(chainRegistry)) {
431
+ for (const token of chainEntry.tokens) {
432
+ if (token.address.toLowerCase() === normalized) {
433
+ return Number(chainIdStr);
434
+ }
435
+ }
436
+ }
437
+ return void 0;
438
+ }
439
+ function getTokenSymbol(token, chainId) {
440
+ const normalized = token.toLowerCase();
441
+ if (normalized === NATIVE_TOKEN_ADDRESS) {
442
+ return chainId === 56 ? "BNB" : chainId === 9745 ? "XPL" : "ETH";
443
+ }
444
+ if (chainId) {
445
+ const chainEntry = chainRegistry[String(chainId)];
446
+ if (chainEntry) {
447
+ const found = chainEntry.tokens.find(
448
+ (t) => t.address.toLowerCase() === normalized
449
+ );
450
+ if (found) return found.symbol;
451
+ }
452
+ }
453
+ for (const chainEntry of Object.values(chainRegistry)) {
454
+ const found = chainEntry.tokens.find(
455
+ (t) => t.address.toLowerCase() === normalized
456
+ );
457
+ if (found) return found.symbol;
458
+ }
459
+ return "Token";
460
+ }
461
+ function getTargetTokenSymbol(token, chain) {
462
+ if (chain === "solana") {
463
+ return getSolanaTokenByMint(String(token))?.symbol ?? "Token";
464
+ }
465
+ return getTokenSymbol(token, chain);
466
+ }
467
+ function isStablecoinSymbol(symbol) {
468
+ return /^(usdc|usdt|usdt0|dai|usd)$/i.test(symbol);
469
+ }
470
+ var CHAIN_BADGES = {
471
+ [mainnet2.id]: { shortLabel: "ETH", color: "#627EEA", bg: "#EEF2FF" },
472
+ [base2.id]: { shortLabel: "Base", color: "#0052FF", bg: "#E7F0FF" },
473
+ [optimism2.id]: { shortLabel: "OP", color: "#FF0420", bg: "#FFE9EC" },
474
+ [arbitrum2.id]: { shortLabel: "Arb", color: "#28A0F0", bg: "#E6F6FF" },
475
+ [polygon2.id]: { shortLabel: "Matic", color: "#8247E5", bg: "#EFE7FF" },
476
+ [bsc2.id]: { shortLabel: "BSC", color: "#F3BA2F", bg: "#FFF8E0" },
477
+ [plasma2.id]: { shortLabel: "Plasma", color: "#6C47FF", bg: "#EDE7FF" },
478
+ [soneium2.id]: { shortLabel: "Soneium", color: "#0D0D0D", bg: "#E8E8E8" },
479
+ [sonic2.id]: { shortLabel: "Sonic", color: "#5B6DEF", bg: "#EDEFFE" },
480
+ [gnosis2.id]: { shortLabel: "Gnosis", color: "#3E6957", bg: "#E5F0EB" },
481
+ [hyperliquid2.id]: { shortLabel: "Hyper", color: "#5BE7C4", bg: "#E5FFF8" },
482
+ [monad2.id]: { shortLabel: "Monad", color: "#6E54FF", bg: "#EEEBFF" }
483
+ };
484
+ function getChainName(chainId) {
485
+ if (chainId === "solana") return "Solana";
486
+ const chain = CHAIN_BY_ID[chainId];
487
+ if (chain) return chain.name;
488
+ const chainEntry = chainRegistry[String(chainId)];
489
+ if (chainEntry) return chainEntry.name;
490
+ return `Chain ${chainId}`;
491
+ }
492
+ function getChainBadge(chainId) {
493
+ if (chainId === "solana") {
494
+ return { shortLabel: "SOL", color: "#9945FF", bg: "#F3EEFF" };
495
+ }
496
+ return CHAIN_BADGES[chainId] || {
497
+ shortLabel: "Net",
498
+ color: "#64748B",
499
+ bg: "#F1F5F9"
500
+ };
501
+ }
502
+ function getExplorerUrl(chainId) {
503
+ if (chainId === "solana") return "https://solscan.io";
504
+ const chain = CHAIN_BY_ID[chainId];
505
+ return chain?.blockExplorers?.default?.url;
506
+ }
507
+ function getExplorerTxUrl(chainId, txHash) {
508
+ if (chainId === "solana") return `https://solscan.io/tx/${txHash}`;
509
+ const url = getExplorerUrl(chainId);
510
+ if (!url) return void 0;
511
+ return `${url}/tx/${txHash}`;
512
+ }
513
+ function getExplorerName(chainId) {
514
+ if (chainId === "solana") return "Solscan";
515
+ const chain = CHAIN_BY_ID[chainId];
516
+ return chain?.blockExplorers?.default?.name ?? "Explorer";
517
+ }
518
+
519
+ export {
520
+ SOLANA_TOKENS,
521
+ getSolanaTokenBySymbol,
522
+ getSolanaTokenByMint,
523
+ isNativeSol,
524
+ getChainIcon,
525
+ getTokenIcon,
526
+ DEFAULT_BACKEND_URL,
527
+ DEFAULT_SIGNER_ADDRESS,
528
+ NATIVE_TOKEN_ADDRESS,
529
+ CHAIN_BY_ID,
530
+ SOURCE_CHAINS,
531
+ SUPPORTED_CHAINS,
532
+ chainRegistry,
533
+ getChainId,
534
+ getChainObject,
535
+ getUsdcAddress,
536
+ getUsdcDecimals,
537
+ getTokenAddress,
538
+ getTokenDecimals,
539
+ getTargetTokenSymbolsForChain,
540
+ getSupportedTokenSymbolsForChain,
541
+ getSupportedChainIds,
542
+ isSupportedTokenAddressForChain,
543
+ getSupportedTargetTokens,
544
+ getTokenDecimalsByAddress,
545
+ findChainIdForToken,
546
+ getTokenSymbol,
547
+ getTargetTokenSymbol,
548
+ isStablecoinSymbol,
549
+ getChainName,
550
+ getChainBadge,
551
+ getExplorerUrl,
552
+ getExplorerTxUrl,
553
+ getExplorerName
554
+ };