@skip-go/widget 3.14.4 → 3.14.5

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 (84) hide show
  1. package/build/add-BJQPsA8k.js +19 -0
  2. package/build/all-wallets-B11_4Ybe.js +10 -0
  3. package/build/app-store-CARimMW3.js +21 -0
  4. package/build/apple-DEuxqvQi.js +22 -0
  5. package/build/arrow-bottom-BsHbGBdB.js +12 -0
  6. package/build/arrow-bottom-circle-Cs2knW0e.js +15 -0
  7. package/build/arrow-left-DzEykZh_.js +12 -0
  8. package/build/arrow-right-BhBVwf9g.js +12 -0
  9. package/build/arrow-top-CQFpDrN4.js +12 -0
  10. package/build/bank-CjU2Dyen.js +18 -0
  11. package/build/basic-DEapmA0E.js +6930 -0
  12. package/build/browser-DuTL2ZwF.js +18 -0
  13. package/build/card-H_VBjXH3.js +18 -0
  14. package/build/checkmark-Dtjtjmf1.js +15 -0
  15. package/build/checkmark-bold-z4hM-TsC.js +12 -0
  16. package/build/chevron-bottom-CtArV2wF.js +12 -0
  17. package/build/chevron-left-DdvY2CTb.js +12 -0
  18. package/build/chevron-right-CFXUESPe.js +12 -0
  19. package/build/chevron-top-Dy9Hw3fV.js +12 -0
  20. package/build/chrome-store-C_pTffOw.js +65 -0
  21. package/build/clock-CMOyk9S9.js +12 -0
  22. package/build/close-Dms7aMSR.js +12 -0
  23. package/build/coinPlaceholder-B2cZTC3R.js +12 -0
  24. package/build/compass-DNOfEAM2.js +12 -0
  25. package/build/copy-DZbibH1K.js +19 -0
  26. package/build/core-BfKZ4PIC.js +13138 -0
  27. package/build/cursor-BbBjTjwp.js +7 -0
  28. package/build/cursor-transparent-DCOjv2sR.js +16 -0
  29. package/build/desktop-uyYbF0Mn.js +13 -0
  30. package/build/disconnect-CetZ4edH.js +12 -0
  31. package/build/discord-Cf_HZf3N.js +21 -0
  32. package/build/etherscan-C4OLKng2.js +10 -0
  33. package/build/exclamation-triangle-uVxTDhvu.js +8 -0
  34. package/build/extension-DxctmiWz.js +12 -0
  35. package/build/external-link-MqCcqsdd.js +12 -0
  36. package/build/facebook-C4dd-ziA.js +30 -0
  37. package/build/farcaster-CeVdeAEP.js +16 -0
  38. package/build/filters-BiMkQFV8.js +12 -0
  39. package/build/github-CU_W_N6N.js +22 -0
  40. package/build/google-7s8MQVzB.js +22 -0
  41. package/build/help-circle-C3-nycKi.js +16 -0
  42. package/build/id-C2tHtjX6.js +16 -0
  43. package/build/image-DPaMR_cv.js +8 -0
  44. package/build/{index-Be7LbriZ.js → index-jvbs7eGH.js} +880 -747
  45. package/build/index-omwtuTW1.js +1132 -0
  46. package/build/index.d.ts +39 -0
  47. package/build/index.es-LTt2Eg_D.js +8712 -0
  48. package/build/index.js +3 -2
  49. package/build/info-circle-B_IxCfxa.js +16 -0
  50. package/build/info-qKe_hnXy.js +7 -0
  51. package/build/lightbulb-1XI0Bxv-.js +7 -0
  52. package/build/mail-CJW1dmhW.js +12 -0
  53. package/build/mobile-DHY_7Eey.js +13 -0
  54. package/build/more-CHCKQBcM.js +15 -0
  55. package/build/network-placeholder-Bjoe5sTj.js +18 -0
  56. package/build/nftPlaceholder-BfGB28hh.js +12 -0
  57. package/build/off-Bf2iuTEi.js +12 -0
  58. package/build/play-store-BIvS0r4I.js +36 -0
  59. package/build/plus-qgz3JQAB.js +17 -0
  60. package/build/qr-code-BuWsCw2z.js +10 -0
  61. package/build/recycle-horizontal-B1CVSSLJ.js +13 -0
  62. package/build/refresh-BhvhNniM.js +12 -0
  63. package/build/reown-logo-C5z3wp07.js +16 -0
  64. package/build/search-BTpo0HGA.js +12 -0
  65. package/build/send-B8pnkBAp.js +19 -0
  66. package/build/swapHorizontal-A29wlFie.js +12 -0
  67. package/build/swapHorizontalBold-CG4RbMR8.js +12 -0
  68. package/build/swapHorizontalMedium-BZPbiWG7.js +20 -0
  69. package/build/swapHorizontalRoundedBold-CgYvX4sR.js +12 -0
  70. package/build/swapVertical-DGjhPMtl.js +12 -0
  71. package/build/telegram-BTYv80UF.js +20 -0
  72. package/build/three-dots-CK7eAfOP.js +9 -0
  73. package/build/twitch-K05X_UT8.js +22 -0
  74. package/build/twitterIcon-BE4qUrhF.js +10 -0
  75. package/build/verify-filled-BfZdE__v.js +12 -0
  76. package/build/verify-zHV40_w6.js +12 -0
  77. package/build/w3m-modal-DkheqxGa.js +1721 -0
  78. package/build/wallet-BTbqWApb.js +12 -0
  79. package/build/wallet-placeholder-B6hnZ20G.js +18 -0
  80. package/build/walletconnect-BgwXLnVI.js +38 -0
  81. package/build/warning-circle-B-OJt-sc.js +16 -0
  82. package/build/x-Dd85BL0v.js +16 -0
  83. package/package.json +2 -2
  84. package/build/index.es-D8nY1geH.js +0 -62088
@@ -1,9 +1,9 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- import o, { useContext, useState, useMemo, useEffect, useRef, useDebugValue, createElement, useCallback, Fragment as Fragment$1, memo, startTransition, forwardRef, Suspense } from "react";
2
+ import o, { useState, useMemo, useEffect, useContext, useDebugValue, createElement, useRef, useCallback, Fragment as Fragment$1, memo, startTransition, forwardRef, Suspense } from "react";
3
3
  import { Scope } from "react-shadow-scope";
4
4
  import { atom as atom$1, useAtomValue, useAtom, useSetAtom, createStore, Provider } from "jotai";
5
5
  import NiceModal, { useModal } from "@ebay/nice-modal-react";
6
- import { assets, chains, bridges, venues, ChainType, getSigningStargateClient, route, balances, executeMultipleRoutes, executeRoute, BridgeType, FeeType, GAS_STATION_CHAIN_IDS, subscribeToRouteStatus, setClientOptions } from "@skip-go/client";
6
+ import { assets, chains, bridges, venues, ChainType, getSigningStargateClient, route, balances, getRouteWithGasOnReceive, executeMultipleRoutes, executeRoute, BridgeType, FeeType, GAS_STATION_CHAIN_IDS, subscribeToRouteStatus, setClientOptions } from "@skip-go/client";
7
7
  import { atomWithQuery, atomWithMutation } from "jotai-tanstack-query";
8
8
  import pluralize from "pluralize";
9
9
  import { track, init, add, setUserId } from "@amplitude/analytics-browser";
@@ -12,7 +12,7 @@ import { WalletType, isWalletConnect, useActiveWalletType, useDisconnect, getWal
12
12
  import { createPenumbraClient } from "@penumbra-zone/client";
13
13
  import { ViewService } from "@penumbra-zone/protobuf";
14
14
  import { bech32m, bech32 } from "bech32";
15
- import { createClient, custom, walletActions, getAddress as getAddress$1, UserRejectedRequestError, SwitchChainError, numberToHex as numberToHex$1, defineChain as defineChain$1, http, createPublicClient, isAddress as isAddress$1, fallback } from "viem";
15
+ import { createClient, custom, walletActions, getAddress as getAddress$1, SwitchChainError, numberToHex as numberToHex$1, UserRejectedRequestError, defineChain as defineChain$1, http, createPublicClient, isAddress as isAddress$1, fallback } from "viem";
16
16
  import { createConfig, createStorage, useAccount, useConnect, useConnectors, WagmiProvider } from "wagmi";
17
17
  import { ErrorBoundary } from "react-error-boundary";
18
18
  import { createPortal } from "react-dom";
@@ -26,7 +26,6 @@ import { GasPrice, calculateFee } from "@cosmjs/stargate";
26
26
  import { sessionReplayPlugin } from "@amplitude/plugin-session-replay-browser";
27
27
  import { v4 } from "uuid";
28
28
  import { LedgerWalletAdapter } from "@solana/wallet-adapter-ledger";
29
- import { WalletConnectWalletAdapter } from "@walletconnect/solana-adapter";
30
29
  function getDefaultExportFromCjs$1(x2) {
31
30
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
32
31
  }
@@ -172,10 +171,10 @@ process.removeAllListeners = noop;
172
171
  process.emit = noop;
173
172
  process.prependListener = noop;
174
173
  process.prependOnceListener = noop;
175
- process.listeners = function(name2) {
174
+ process.listeners = function(name) {
176
175
  return [];
177
176
  };
178
- process.binding = function(name2) {
177
+ process.binding = function(name) {
179
178
  throw new Error("process.binding is not supported");
180
179
  };
181
180
  process.cwd = function() {
@@ -342,8 +341,8 @@ var length = 0;
342
341
  var position = 0;
343
342
  var character = 0;
344
343
  var characters = "";
345
- function node(value, root, parent, type2, props, children, length2, siblings) {
346
- return { value, root, parent, type: type2, props, children, line, column, length: length2, return: "", siblings };
344
+ function node(value, root, parent, type, props, children, length2, siblings) {
345
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
347
346
  }
348
347
  function copy(root, props) {
349
348
  return assign$1(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
@@ -377,8 +376,8 @@ function caret() {
377
376
  function slice$1(begin, end) {
378
377
  return substr(characters, begin, end);
379
378
  }
380
- function token(type2) {
381
- switch (type2) {
379
+ function token(type) {
380
+ switch (type) {
382
381
  case 0:
383
382
  case 9:
384
383
  case 10:
@@ -415,16 +414,16 @@ function alloc(value) {
415
414
  function dealloc(value) {
416
415
  return characters = "", value;
417
416
  }
418
- function delimit(type2) {
419
- return trim$1(slice$1(position - 1, delimiter(type2 === 91 ? type2 + 2 : type2 === 40 ? type2 + 1 : type2)));
417
+ function delimit(type) {
418
+ return trim$1(slice$1(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
420
419
  }
421
- function whitespace(type2) {
420
+ function whitespace(type) {
422
421
  while (character = peek())
423
422
  if (character < 33)
424
423
  next();
425
424
  else
426
425
  break;
427
- return token(type2) > 2 || token(character) > 3 ? "" : " ";
426
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
428
427
  }
429
428
  function escaping(index, count) {
430
429
  while (--count && next())
@@ -432,19 +431,19 @@ function escaping(index, count) {
432
431
  break;
433
432
  return slice$1(index, caret() + (count < 6 && peek() == 32 && next() == 32));
434
433
  }
435
- function delimiter(type2) {
434
+ function delimiter(type) {
436
435
  while (next())
437
436
  switch (character) {
438
- case type2:
437
+ case type:
439
438
  return position;
440
439
  case 34:
441
440
  case 39:
442
- if (type2 !== 34 && type2 !== 39)
441
+ if (type !== 34 && type !== 39)
443
442
  delimiter(character);
444
443
  break;
445
444
  case 40:
446
- if (type2 === 41)
447
- delimiter(type2);
445
+ if (type === 41)
446
+ delimiter(type);
448
447
  break;
449
448
  case 92:
450
449
  next();
@@ -452,13 +451,13 @@ function delimiter(type2) {
452
451
  }
453
452
  return position;
454
453
  }
455
- function commenter(type2, index) {
454
+ function commenter(type, index) {
456
455
  while (next())
457
- if (type2 + character === 47 + 10)
456
+ if (type + character === 47 + 10)
458
457
  break;
459
- else if (type2 + character === 42 + 42 && peek() === 47)
458
+ else if (type + character === 42 + 42 && peek() === 47)
460
459
  break;
461
- return "/*" + slice$1(index, position - 1) + "*" + from(type2 === 47 ? type2 : next());
460
+ return "/*" + slice$1(index, position - 1) + "*" + from(type === 47 ? type : next());
462
461
  }
463
462
  function identifier(index) {
464
463
  while (!token(peek()))
@@ -479,11 +478,11 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
479
478
  var scanning = 1;
480
479
  var ampersand = 1;
481
480
  var character2 = 0;
482
- var type2 = "";
481
+ var type = "";
483
482
  var props = rules;
484
483
  var children = rulesets;
485
484
  var reference = rule;
486
- var characters2 = type2;
485
+ var characters2 = type;
487
486
  while (scanning)
488
487
  switch (previous = character2, character2 = next()) {
489
488
  case 40:
@@ -533,7 +532,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
533
532
  case 59:
534
533
  characters2 += ";";
535
534
  default:
536
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type2, props = [], children = [], length2, rulesets), rulesets);
535
+ append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
537
536
  if (character2 === 123)
538
537
  if (offset === 0)
539
538
  parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
@@ -543,13 +542,13 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
543
542
  case 108:
544
543
  case 109:
545
544
  case 115:
546
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type2, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
545
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
547
546
  break;
548
547
  default:
549
548
  parse(characters2, reference, reference, reference, [""], children, 0, points, children);
550
549
  }
551
550
  }
552
- index = offset = property = 0, variable = ampersand = 1, type2 = characters2 = "", length2 = pseudo;
551
+ index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
553
552
  break;
554
553
  case 58:
555
554
  length2 = 1 + strlen(characters2), property = previous;
@@ -570,7 +569,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
570
569
  case 64:
571
570
  if (peek() === 45)
572
571
  characters2 += delimit(next());
573
- atrule = peek(), offset = length2 = strlen(type2 = characters2 += identifier(caret())), character2++;
572
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
574
573
  break;
575
574
  case 45:
576
575
  if (previous === 45 && strlen(characters2) == 2)
@@ -579,7 +578,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
579
578
  }
580
579
  return rulesets;
581
580
  }
582
- function ruleset(value, root, parent, index, offset, rules, points, type2, props, children, length2, siblings) {
581
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
583
582
  var post = offset - 1;
584
583
  var rule = offset === 0 ? rules : [""];
585
584
  var size2 = sizeof(rule);
@@ -587,7 +586,7 @@ function ruleset(value, root, parent, index, offset, rules, points, type2, props
587
586
  for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size2; ++x2)
588
587
  if (z2 = trim$1(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
589
588
  props[k2++] = z2;
590
- return node(value, root, parent, offset === 0 ? RULESET : type2, props, children, length2, siblings);
589
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
591
590
  }
592
591
  function comment(value, root, parent, siblings) {
593
592
  return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
@@ -862,9 +861,9 @@ var unitlessKeys = {
862
861
  strokeOpacity: 1,
863
862
  strokeWidth: 1
864
863
  };
865
- var f = "undefined" != typeof process$1 && void 0 !== process$1.env && (process$1.env.REACT_APP_SC_ATTR || process$1.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.13", g = "/*!sc*/\n", S = "undefined" != typeof window && "HTMLElement" in window, w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process$1 && void 0 !== process$1.env && void 0 !== process$1.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process$1.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process$1.env.REACT_APP_SC_DISABLE_SPEEDY && process$1.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process$1 && void 0 !== process$1.env && void 0 !== process$1.env.SC_DISABLE_SPEEDY && "" !== process$1.env.SC_DISABLE_SPEEDY ? "false" !== process$1.env.SC_DISABLE_SPEEDY && process$1.env.SC_DISABLE_SPEEDY : "production" !== process$1.env.NODE_ENV), E = /invalid hook call/i, N = /* @__PURE__ */ new Set(), P = function(t, n) {
864
+ var f = "undefined" != typeof process$1 && void 0 !== process$1.env && (process$1.env.REACT_APP_SC_ATTR || process$1.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.19", g = "/*!sc*/\n", S = "undefined" != typeof window && "undefined" != typeof document, w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process$1 && void 0 !== process$1.env && void 0 !== process$1.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process$1.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process$1.env.REACT_APP_SC_DISABLE_SPEEDY && process$1.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process$1 && void 0 !== process$1.env && void 0 !== process$1.env.SC_DISABLE_SPEEDY && "" !== process$1.env.SC_DISABLE_SPEEDY ? "false" !== process$1.env.SC_DISABLE_SPEEDY && process$1.env.SC_DISABLE_SPEEDY : "production" !== process$1.env.NODE_ENV), E = /invalid hook call/i, N = /* @__PURE__ */ new Set(), P = function(t, n) {
866
865
  if ("production" !== process$1.env.NODE_ENV) {
867
- var o2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", i = console.error;
866
+ var o2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
868
867
  try {
869
868
  var a = true;
870
869
  console.error = function(t2) {
@@ -1334,7 +1333,7 @@ function it(e, r, s) {
1334
1333
  }(a2, g3);
1335
1334
  "production" !== process$1.env.NODE_ENV && e3.warnTooManyClasses && e3.warnTooManyClasses(E3);
1336
1335
  var N3 = ie(p3, d2);
1337
- return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[L(S3) && !A.has(S3) ? "class" : "className"] = N3, w3.ref = s2, createElement(S3, w3);
1336
+ return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[L(S3) && !A.has(S3) ? "class" : "className"] = N3, s2 && (w3.ref = s2), createElement(S3, w3);
1338
1337
  }(D2, e2, r2);
1339
1338
  }
1340
1339
  O2.displayName = y2;
@@ -1452,6 +1451,7 @@ const defaultTheme = {
1452
1451
  }
1453
1452
  },
1454
1453
  success: {
1454
+ background: "#152B00",
1455
1455
  text: "#6fde00"
1456
1456
  },
1457
1457
  warning: {
@@ -1486,6 +1486,7 @@ const lightTheme = {
1486
1486
  }
1487
1487
  },
1488
1488
  success: {
1489
+ background: "#E1FFC4",
1489
1490
  text: "#6bcf07"
1490
1491
  },
1491
1492
  warning: {
@@ -1544,9 +1545,13 @@ function shouldForwardProp(propName, target) {
1544
1545
  const disableShadowDomAtom = atom$1(false);
1545
1546
  const ShadowDomAndProviders = ({
1546
1547
  children,
1547
- theme
1548
+ theme,
1549
+ disableShadowDom
1548
1550
  }) => {
1549
- const disableShadowDom = useAtomValue(disableShadowDomAtom);
1551
+ const disableShadowDomAtomValue = useAtomValue(disableShadowDomAtom);
1552
+ if (disableShadowDom === void 0) {
1553
+ disableShadowDom = disableShadowDomAtomValue;
1554
+ }
1550
1555
  useInjectFontsToDocumentHead();
1551
1556
  const [localShadowRoot, setLocalShadowRoot] = useState();
1552
1557
  const onShadowDomLoaded = (element) => {
@@ -1573,7 +1578,7 @@ const ClientOnly = ({ children }) => {
1573
1578
  }, []);
1574
1579
  return /* @__PURE__ */ jsx(Fragment, { children: isHydrated ? children : null });
1575
1580
  };
1576
- const __vite_import_meta_env__$1 = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
1581
+ const __vite_import_meta_env__$1 = {};
1577
1582
  let keyCount = 0;
1578
1583
  function atom(read, write) {
1579
1584
  const key = `atom${++keyCount}`;
@@ -1603,7 +1608,7 @@ function defaultWrite(get, set, arg) {
1603
1608
  typeof arg === "function" ? arg(get(this)) : arg
1604
1609
  );
1605
1610
  }
1606
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
1611
+ const __vite_import_meta_env__ = {};
1607
1612
  const RESET = Symbol(
1608
1613
  (__vite_import_meta_env__ ? "production" : void 0) !== "production" ? "RESET" : ""
1609
1614
  );
@@ -1617,7 +1622,7 @@ function atomWithReset(initialValue) {
1617
1622
  );
1618
1623
  return anAtom;
1619
1624
  }
1620
- const isPromiseLike = (x2) => typeof (x2 == null ? void 0 : x2.then) === "function";
1625
+ const isPromiseLike$3 = (x2) => typeof (x2 == null ? void 0 : x2.then) === "function";
1621
1626
  function createJSONStorage(getStringStorage = () => {
1622
1627
  try {
1623
1628
  return window.localStorage;
@@ -1649,7 +1654,7 @@ function createJSONStorage(getStringStorage = () => {
1649
1654
  return lastValue;
1650
1655
  };
1651
1656
  const str = (_b = (_a2 = getStringStorage()) == null ? void 0 : _a2.getItem(key)) != null ? _b : null;
1652
- if (isPromiseLike(str)) {
1657
+ if (isPromiseLike$3(str)) {
1653
1658
  return str.then(parse2);
1654
1659
  }
1655
1660
  return parse2(str);
@@ -1727,7 +1732,7 @@ function atomWithStorage(key, initialValue, storage = defaultStorage, options) {
1727
1732
  set(baseAtom, initialValue);
1728
1733
  return storage.removeItem(key);
1729
1734
  }
1730
- if (nextValue instanceof Promise) {
1735
+ if (isPromiseLike$3(nextValue)) {
1731
1736
  return nextValue.then((resolvedValue) => {
1732
1737
  set(baseAtom, resolvedValue);
1733
1738
  return storage.setItem(key, resolvedValue);
@@ -1972,10 +1977,7 @@ const PenIcon = ({ color = "currentColor" }) => /* @__PURE__ */ jsx("svg", { xml
1972
1977
  fill: color
1973
1978
  }
1974
1979
  ) });
1975
- const HistoryIcon = ({
1976
- color = "currentColor",
1977
- ...props
1978
- }) => /* @__PURE__ */ jsxs(
1980
+ const HistoryIcon = ({ color = "currentColor", ...props }) => /* @__PURE__ */ jsxs(
1979
1981
  "svg",
1980
1982
  {
1981
1983
  width: "14",
@@ -2026,18 +2028,15 @@ const HamburgerIcon = ({ color = "currentColor" }) => /* @__PURE__ */ jsxs("svg"
2026
2028
  /* @__PURE__ */ jsx("line", { x1: "10", y1: "8.92412", x2: "-3.30781e-08", y2: "8.92412", stroke: color })
2027
2029
  ] });
2028
2030
  const HorizontalLineIcon = ({ color = "currentColor" }) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "2", viewBox: "0 0 10 2", fill: "none", children: /* @__PURE__ */ jsx("line", { x1: "10", y1: "1.09157", x2: "-3.30781e-08", y2: "1.09157", stroke: color }) });
2029
- const GoFastIcon = ({
2030
- backgroundColor = "currentColor",
2031
- ...props
2032
- }) => /* @__PURE__ */ jsx(
2031
+ const GoFastIcon = ({ backgroundColor = "currentColor", ...props }) => /* @__PURE__ */ jsx(
2033
2032
  "svg",
2034
2033
  {
2035
2034
  width: "40",
2036
2035
  height: "40",
2037
2036
  viewBox: "0 0 40 40",
2038
2037
  fill: "none",
2039
- ...props,
2040
2038
  xmlns: "http://www.w3.org/2000/svg",
2039
+ ...props,
2041
2040
  children: /* @__PURE__ */ jsx(
2042
2041
  "path",
2043
2042
  {
@@ -2217,7 +2216,7 @@ const convertToPxValue = (value) => {
2217
2216
  };
2218
2217
  const ErrorWarningPageContent = ({
2219
2218
  title,
2220
- description: description2,
2219
+ description,
2221
2220
  textColor,
2222
2221
  backgroundColor,
2223
2222
  icon = ICONS.none
@@ -2237,7 +2236,7 @@ const ErrorWarningPageContent = ({
2237
2236
  children: [
2238
2237
  /* @__PURE__ */ jsx(Icon, { backgroundColor: textColor, color: backgroundColor, height: 40, width: 40 }),
2239
2238
  typeof title === "string" ? /* @__PURE__ */ jsx(Text, { fontSize: 20, color: textColor, textAlign: "center", children: title }) : title,
2240
- typeof description2 === "string" ? /* @__PURE__ */ jsx(StyledErrorWarningTextInnerContainer, { children: /* @__PURE__ */ jsx(
2239
+ typeof description === "string" ? /* @__PURE__ */ jsx(StyledErrorWarningTextInnerContainer, { children: /* @__PURE__ */ jsx(
2241
2240
  SmallText,
2242
2241
  {
2243
2242
  color: textColor,
@@ -2245,9 +2244,9 @@ const ErrorWarningPageContent = ({
2245
2244
  style: {
2246
2245
  wordWrap: "break-word"
2247
2246
  },
2248
- children: description2
2247
+ children: description
2249
2248
  }
2250
- ) }) : description2
2249
+ ) }) : description
2251
2250
  ]
2252
2251
  }
2253
2252
  );
@@ -3194,7 +3193,7 @@ function clone(configObject) {
3194
3193
  for (; len < i; str += "0", len++) ;
3195
3194
  str = toExponential(str, e);
3196
3195
  } else {
3197
- i -= ne2;
3196
+ i -= ne2 + (id === 2 && e > ne2);
3198
3197
  str = toFixedPoint(str, e, "0");
3199
3198
  if (e + 1 > len) {
3200
3199
  if (--i > 0) for (str += "."; i--; str += "0") ;
@@ -3919,9 +3918,9 @@ function compare(x2, y2) {
3919
3918
  for (i = 0; i < j2; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;
3920
3919
  return k2 == l ? 0 : k2 > l ^ a ? 1 : -1;
3921
3920
  }
3922
- function intCheck(n, min, max, name2) {
3921
+ function intCheck(n, min, max, name) {
3923
3922
  if (n < min || n > max || n !== mathfloor(n)) {
3924
- throw Error(bignumberError + (name2 || "Argument") + (typeof n == "number" ? n < min || n > max ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(n));
3923
+ throw Error(bignumberError + (name || "Argument") + (typeof n == "number" ? n < min || n > max ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(n));
3925
3924
  }
3926
3925
  }
3927
3926
  function isOdd(n) {
@@ -4248,15 +4247,22 @@ const GhostButton = dt(SmallText).attrs({
4248
4247
  const Button = dt.button`
4249
4248
  ${removeButtonStyles}
4250
4249
  line-height: initial;
4251
- ${({ disabled }) => disabled ? lt`
4252
- &:hover {
4253
- cursor: not-allowed;
4254
- }
4255
- ` : lt`
4256
- &:hover {
4257
- cursor: pointer;
4258
- }
4259
- `}
4250
+ ${({ disabled, onClick }) => {
4251
+ if (disabled) {
4252
+ return lt`
4253
+ &:hover {
4254
+ cursor: not-allowed;
4255
+ }
4256
+ `;
4257
+ }
4258
+ if (onClick) {
4259
+ return lt`
4260
+ &:hover {
4261
+ cursor: pointer;
4262
+ }
4263
+ `;
4264
+ }
4265
+ }}
4260
4266
 
4261
4267
  ${flexProps};
4262
4268
  `;
@@ -4854,30 +4860,10 @@ const to = ({ bechLib, bData, prefix: prefix2, expectLength, expectBytes }) => {
4854
4860
  return bStr;
4855
4861
  };
4856
4862
  const Inner = {
4857
- passet: "inner",
4858
- pauctid: "inner",
4859
- penumbra: "inner",
4860
- penumbrafullviewingkey: "inner",
4861
- penumbragovern: "gk",
4862
- penumbraspendkey: "inner",
4863
- penumbravalid: "ik",
4864
- penumbrawalletid: "inner",
4865
- plpid: "inner",
4866
- penumbracompat1: "inner",
4867
- tpenumbra: "inner"
4863
+ penumbra: "inner"
4868
4864
  };
4869
4865
  const Prefixes = {
4870
- passet: "passet",
4871
- pauctid: "pauctid",
4872
- penumbra: "penumbra",
4873
- penumbrafullviewingkey: "penumbrafullviewingkey",
4874
- penumbragovern: "penumbragovern",
4875
- penumbraspendkey: "penumbraspendkey",
4876
- penumbravalid: "penumbravalid",
4877
- penumbrawalletid: "penumbrawalletid",
4878
- plpid: "plpid",
4879
- penumbracompat1: "penumbracompat1",
4880
- tpenumbra: "tpenumbra"
4866
+ penumbra: "penumbra"
4881
4867
  };
4882
4868
  const innerName = Inner.penumbra;
4883
4869
  const prefix = Prefixes.penumbra;
@@ -17038,150 +17024,175 @@ const _mainnetChains = [
17038
17024
  coinDecimals: 18
17039
17025
  },
17040
17026
  {
17041
- coinDenom: "PUNDIX",
17042
- coinMinimalDenom: "ibc/2EB516F83C9FF44AB6826F269CA98A5622608C6C955E12112E58F23A324FEE07",
17043
- coinDecimals: 18
17027
+ coinDenom: "dNTRN",
17028
+ coinMinimalDenom: "ibc/5D8012FB4C44BA0A7D355E37B8AC2CFA4DDBD6EE20F2056D8D4DF07C9D6015F3",
17029
+ coinDecimals: 6
17044
17030
  },
17045
17031
  {
17046
- coinDenom: "avalanche-usdc",
17047
- coinMinimalDenom: "ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",
17048
- coinDecimals: 6
17032
+ coinDenom: "fHAM",
17033
+ coinMinimalDenom: "factory/osmo1dywfmhyc8y0wga7qpzej0x0mgwqg25fj4eccp494w8yafzdpgamsx9ryyv/fHAM",
17034
+ coinDecimals: 9
17049
17035
  },
17050
17036
  {
17051
- coinDenom: "nom",
17052
- coinMinimalDenom: "ibc/F49DFB3BC8105C57EE7F17EC2402438825B31212CFDD81681EB87911E934F32C",
17037
+ coinDenom: "fCEWT",
17038
+ coinMinimalDenom: "factory/osmo1dywfmhyc8y0wga7qpzej0x0mgwqg25fj4eccp494w8yafzdpgamsx9ryyv/fCEWT",
17039
+ coinDecimals: 9
17040
+ },
17041
+ {
17042
+ coinDenom: "INIT",
17043
+ coinMinimalDenom: "ibc/DD7EA9AF1E58E9FDD7F9810976817E203D5B87BAEF7AEA592FA34DF73310620B",
17053
17044
  coinDecimals: 6
17054
17045
  },
17055
17046
  {
17056
- coinDenom: "ymos",
17057
- coinMinimalDenom: "factory/osmo1vdvnznwg597qngrq9mnfcfk0am9jdc9y446jewhcqdreqz4r75xq5j5zvy/ymos",
17047
+ coinDenom: "milk",
17048
+ coinMinimalDenom: "ibc/9D8D4CAE9D8F15B69E93969304AF3878D14BDED39FEAF0060566D6AC22288779",
17058
17049
  coinDecimals: 6
17059
17050
  },
17060
17051
  {
17061
- coinDenom: "factory/osmo13gu58hzw3e9aqpj25h67m7snwcjuccd7v4p55w/brnz",
17062
- coinMinimalDenom: "factory/osmo13gu58hzw3e9aqpj25h67m7snwcjuccd7v4p55w/brnz",
17063
- coinDecimals: 0
17052
+ coinDenom: "anubi",
17053
+ coinMinimalDenom: "ibc/F223D443CFBDFEDA198A63BE5633DC24ADE5B9F93822CF7BD641F99FEA2B56A7",
17054
+ coinDecimals: 18
17064
17055
  },
17065
17056
  {
17066
- coinDenom: "ashLAB",
17067
- coinMinimalDenom: "factory/osmo1svj5kd8kzj7xxtrd6ftjk0856ffpyj4egz7f9pd9dge5wr4kwansmefq07/lab.ash",
17068
- coinDecimals: 6
17057
+ coinDenom: "astonic",
17058
+ coinMinimalDenom: "ibc/856C6F01E48EC9A89EFF35B2B75C3BC0CDF51C23AB094CCC6AE31B6D30C2A6ED",
17059
+ coinDecimals: 18
17069
17060
  },
17070
17061
  {
17071
- coinDenom: "grac",
17072
- coinMinimalDenom: "ibc/58E4261D2E21FE3A459C290A9F97F3DCD257B28F48AAE828298B38E048804829",
17073
- coinDecimals: 6
17062
+ coinDenom: "ausd",
17063
+ coinMinimalDenom: "ibc/1C657376F808E4E06B75EB18169B68B31042EAC8AE3D8FBAD0224F1170AFDF45",
17064
+ coinDecimals: 18
17074
17065
  },
17075
17066
  {
17076
- coinDenom: "earnUSDC",
17077
- coinMinimalDenom: "factory/osmo1vf6e300hv2qe7r5rln8deft45ewgyytjnwfrdfcv5rgzrfy0s6cswjqf9r/mars-usdc-looped",
17078
- coinDecimals: 6
17067
+ coinDenom: "aeur",
17068
+ coinMinimalDenom: "ibc/484650D35669EBFD1A7D9E57D0B557B92664C4AF2C92DBC20C317F1F06DCBC4B",
17069
+ coinDecimals: 18
17079
17070
  },
17080
17071
  {
17081
- coinDenom: "earnCDT",
17082
- coinMinimalDenom: "factory/osmo1jw6r68y0uhfmqagc7uhtdddctc7wq95pncvrqnvtd47w4hx46p7se9nju5/earn-cdt",
17083
- coinDecimals: 6
17072
+ coinDenom: "abrl",
17073
+ coinMinimalDenom: "ibc/75D92821E64E9449B113A6CC156AE933DBD4B9BE9EE753B2550DE8DC71947E69",
17074
+ coinDecimals: 18
17084
17075
  },
17085
17076
  {
17086
- coinDenom: "ashION",
17087
- coinMinimalDenom: "factory/osmo1svj5kd8kzj7xxtrd6ftjk0856ffpyj4egz7f9pd9dge5wr4kwansmefq07/ion.ash",
17088
- coinDecimals: 6
17077
+ coinDenom: "wbtc",
17078
+ coinMinimalDenom: "ibc/88386AC48152D48B34B082648DF836F975506F0B57DBBFC10A54213B1BF484CB",
17079
+ coinDecimals: 8
17089
17080
  },
17090
17081
  {
17091
- coinDenom: "PLEB",
17092
- coinMinimalDenom: "ibc/EA0C8F1121425943740B2D1B1DC5BDD717D49A9D5A639DC7074C10E9212CC794",
17093
- coinDecimals: 6
17082
+ coinDenom: "eth",
17083
+ coinMinimalDenom: "ibc/20850C646CDDDC2270E9BBDB08558B5FEE57B647EC6827F41096AABFD8A0471B",
17084
+ coinDecimals: 18
17094
17085
  },
17095
17086
  {
17096
- coinDenom: "BITCOIN",
17097
- coinMinimalDenom: "ibc/648260E4FF8AEDD310F2A72930F25DD7F43DD82F45F66E53B4A70A0C216FA53B",
17087
+ coinDenom: "usdt",
17088
+ coinMinimalDenom: "ibc/7BC2F718C47C0749791F2612A914C8C39D1A4F533A27AF7285D924D4B617DDA6",
17098
17089
  coinDecimals: 6
17099
17090
  },
17100
17091
  {
17101
- coinDenom: "CRYPTO",
17102
- coinMinimalDenom: "ibc/1B23B6F7DAC37267F04E82466AB798CC59F941BD4AE5653C497730F174F14849",
17092
+ coinDenom: "GGE",
17093
+ coinMinimalDenom: "ibc/AAC5DA36E48226B906DE694EA8B0464DE5EE45D7449984E4D799F33B8089CD6B",
17103
17094
  coinDecimals: 6
17104
17095
  },
17105
17096
  {
17106
- coinDenom: "BRICS",
17107
- coinMinimalDenom: "ibc/54C7B977B96DFC56D877A7F74D22BD26B5E42CA6171F120F5A36AC82BFD4711A",
17097
+ coinDenom: "vdl",
17098
+ coinMinimalDenom: "ibc/40B814E343DAADAF39FF4491727C7FE6286EE0A9A787CF839B318461C6FEDF95",
17108
17099
  coinDecimals: 6
17109
17100
  },
17110
17101
  {
17111
- coinDenom: "INC",
17112
- coinMinimalDenom: "ibc/A436BC9498153DC580B56BD27043BBFE08A1754696C05FFF00B2A41EC796D180",
17102
+ coinDenom: "STLTH",
17103
+ coinMinimalDenom: "factory/osmo1q77cw0mmlluxu0wr29fcdd0tdnh78gzhkvhe4n6ulal9qvrtu43qtd0nh8/stlth",
17113
17104
  coinDecimals: 6
17114
17105
  },
17115
17106
  {
17116
- coinDenom: "allin",
17117
- coinMinimalDenom: "factory/osmo1gzcz4anh88fz3vanx0842gsa3y8jcvck3qw90e/uallin",
17107
+ coinDenom: "milkBABY",
17108
+ coinMinimalDenom: "ibc/040D0BE35BED6A09D9418C29961FDA0EE0C3B0C71053B2E3FE38FBA7E50FFEF6",
17118
17109
  coinDecimals: 6
17119
17110
  },
17120
17111
  {
17121
- coinDenom: "mfx",
17122
- coinMinimalDenom: "ibc/1A3DE66CCE39FA151DA710B21E06C8FBC47178C1DCE7BB35D2A79466F754CD51",
17112
+ coinDenom: "MTC",
17113
+ coinMinimalDenom: "factory/osmo1q77cw0mmlluxu0wr29fcdd0tdnh78gzhkvhe4n6ulal9qvrtu43qtd0nh8/mtc",
17123
17114
  coinDecimals: 6
17124
17115
  },
17125
17116
  {
17126
- coinDenom: "ccd",
17127
- coinMinimalDenom: "ibc/BA368CD4ED32975C333F69DA8FE0AB482D2E0F3C04227053EEB9B597A6789F6E",
17128
- coinDecimals: 6
17117
+ coinDenom: "arkeo",
17118
+ coinMinimalDenom: "ibc/AD969E97A63B64B30A6E4D9F598341A403B849F5ACFEAA9F18DBD9255305EC65",
17119
+ coinDecimals: 8
17129
17120
  },
17130
17121
  {
17131
- coinDenom: "fHAM",
17132
- coinMinimalDenom: "factory/osmo1dywfmhyc8y0wga7qpzej0x0mgwqg25fj4eccp494w8yafzdpgamsx9ryyv/fHAM",
17122
+ coinDenom: "sol",
17123
+ coinMinimalDenom: "ibc/A1465DD6AF456FCD0D998869608DFEEDA4F4C11EC0A12AF92A994A3F8CBEE546",
17133
17124
  coinDecimals: 9
17134
17125
  },
17135
17126
  {
17136
- coinDenom: "fCEWT",
17137
- coinMinimalDenom: "factory/osmo1dywfmhyc8y0wga7qpzej0x0mgwqg25fj4eccp494w8yafzdpgamsx9ryyv/fCEWT",
17138
- coinDecimals: 9
17127
+ coinDenom: "photon",
17128
+ coinMinimalDenom: "ibc/D6E02C5AE8A37FC2E3AB1FC8AC168878ADB870549383DFFEA9FD020C234520A7",
17129
+ coinDecimals: 6
17139
17130
  },
17140
17131
  {
17141
- coinDenom: "usdt",
17142
- coinMinimalDenom: "ibc/7BC2F718C47C0749791F2612A914C8C39D1A4F533A27AF7285D924D4B617DDA6",
17132
+ coinDenom: "xrp",
17133
+ coinMinimalDenom: "ibc/013DE940BE791C79142EAD4DF071E1ED280DFEAB8A9DCB5932A4603A74C25CBB",
17143
17134
  coinDecimals: 6
17144
17135
  },
17145
17136
  {
17146
- coinDenom: "eth",
17147
- coinMinimalDenom: "ibc/20850C646CDDDC2270E9BBDB08558B5FEE57B647EC6827F41096AABFD8A0471B",
17148
- coinDecimals: 18
17137
+ coinDenom: "OPHIR",
17138
+ coinMinimalDenom: "ibc/3AF2E322D4B54BB97EEE24760ED25B725842A9B62C759402AB8AADD75915FD14",
17139
+ coinDecimals: 6
17149
17140
  },
17150
17141
  {
17151
- coinDenom: "wbtc",
17152
- coinMinimalDenom: "ibc/88386AC48152D48B34B082648DF836F975506F0B57DBBFC10A54213B1BF484CB",
17142
+ coinDenom: "pumpbtc",
17143
+ coinMinimalDenom: "ibc/954F25C3AA0DCF2917393FB89D778F95815B0568EB093C43BA0B24CBD99CBFFB",
17153
17144
  coinDecimals: 8
17154
17145
  },
17155
17146
  {
17156
- coinDenom: "STLTH",
17157
- coinMinimalDenom: "factory/osmo1q77cw0mmlluxu0wr29fcdd0tdnh78gzhkvhe4n6ulal9qvrtu43qtd0nh8/stlth",
17158
- coinDecimals: 6
17147
+ coinDenom: "unibtc",
17148
+ coinMinimalDenom: "ibc/6E7CA61C5656D3F3007535F035386AEB8281833743CFCE0F069213331CEBBE1A",
17149
+ coinDecimals: 8
17159
17150
  },
17160
17151
  {
17161
- coinDenom: "MTC",
17162
- coinMinimalDenom: "factory/osmo1q77cw0mmlluxu0wr29fcdd0tdnh78gzhkvhe4n6ulal9qvrtu43qtd0nh8/mtc",
17163
- coinDecimals: 6
17152
+ coinDenom: "mbtc",
17153
+ coinMinimalDenom: "ibc/F15348F47575AAFE2BEFF8369CBE3647AE9DC06909CDBF8C97E48ACF7055E459",
17154
+ coinDecimals: 8
17164
17155
  },
17165
17156
  {
17166
- coinDenom: "sol",
17167
- coinMinimalDenom: "ibc/A1465DD6AF456FCD0D998869608DFEEDA4F4C11EC0A12AF92A994A3F8CBEE546",
17168
- coinDecimals: 9
17157
+ coinDenom: "kbtc",
17158
+ coinMinimalDenom: "ibc/67144554C6EE6D0FCF43CBA0DF18D821E2818FD1F320B93AB0349E741A0DC850",
17159
+ coinDecimals: 18
17169
17160
  },
17170
17161
  {
17171
- coinDenom: "OPHIR",
17172
- coinMinimalDenom: "ibc/3AF2E322D4B54BB97EEE24760ED25B725842A9B62C759402AB8AADD75915FD14",
17173
- coinDecimals: 6
17162
+ coinDenom: "ebtc",
17163
+ coinMinimalDenom: "ibc/4805A17C742D2325715167EA1167974821888307CC62066D6CFA2BD0F724821D",
17164
+ coinDecimals: 8
17165
+ },
17166
+ {
17167
+ coinDenom: "enzobtc",
17168
+ coinMinimalDenom: "ibc/FAE7862FCB5DC95168C415A6EE63DA8C38389EA1EAFF51C82F446C80C879156E",
17169
+ coinDecimals: 8
17170
+ },
17171
+ {
17172
+ coinDenom: "mBTC",
17173
+ coinMinimalDenom: "ibc/3FC3D99F9E5003057353AD968A6E3AC12AE50741B41441666BAB3890485C9D00",
17174
+ coinDecimals: 18
17174
17175
  },
17175
17176
  {
17176
17177
  coinDenom: "paxg",
17177
17178
  coinMinimalDenom: "ibc/0EF5630576C66968EF0787868CF09FD866FAD131BC148D24A148358A85F0EB62",
17178
17179
  coinDecimals: 18
17179
17180
  },
17181
+ {
17182
+ coinDenom: "ccd",
17183
+ coinMinimalDenom: "ibc/BA368CD4ED32975C333F69DA8FE0AB482D2E0F3C04227053EEB9B597A6789F6E",
17184
+ coinDecimals: 6
17185
+ },
17180
17186
  {
17181
17187
  coinDenom: "nam",
17182
17188
  coinMinimalDenom: "ibc/C7110DEC66869DAE9BE9C3C60F4B5313B16A2204AE020C3B0527DD6B322386A3",
17183
17189
  coinDecimals: 6
17184
17190
  },
17191
+ {
17192
+ coinDenom: "badge",
17193
+ coinMinimalDenom: "ibc/AEA658A560ADC30785492AB06B707BC260E7DAB3686A5A2A6F33CB3FFB1E1462",
17194
+ coinDecimals: 9
17195
+ },
17185
17196
  {
17186
17197
  coinDenom: "XRP",
17187
17198
  coinMinimalDenom: "ibc/46EB46DB30D3BBC6F404A9232C09785F36D40DA05C662A8E295712ECBAFF1609",
@@ -17197,21 +17208,31 @@ const _mainnetChains = [
17197
17208
  coinMinimalDenom: "factory/osmo12r3yc76u9lxe33yemstatnw8602culdjzrtr8lmnpycmd3z7d4jsxx60kc/FwNhFaW3zLxoLUgXCdWjqBzcvGNPaB7B2XZqm2xgrB93",
17198
17209
  coinDecimals: 6
17199
17210
  },
17211
+ {
17212
+ coinDenom: "usdn",
17213
+ coinMinimalDenom: "ibc/0C39BD03B5C57A1753A9B73164705871A9B549F1A5226CFD7E39BE7BF73CF8CF",
17214
+ coinDecimals: 6
17215
+ },
17200
17216
  {
17201
17217
  coinDenom: "FOST",
17202
17218
  coinMinimalDenom: "factory/osmo1q77cw0mmlluxu0wr29fcdd0tdnh78gzhkvhe4n6ulal9qvrtu43qtd0nh8/fost",
17203
17219
  coinDecimals: 6
17204
17220
  },
17205
17221
  {
17206
- coinDenom: "trump",
17207
- coinMinimalDenom: "ibc/51BFF64A432CBBA08A1ED95609BF0255EC4BBF699BFCDFF267F66CCD664CA350",
17208
- coinDecimals: 6
17222
+ coinDenom: "ibc/955E5E0BED298F85956121C3BD627CEB12B858A9EB7C1ED24B1515A658318CE4",
17223
+ coinMinimalDenom: "ibc/955E5E0BED298F85956121C3BD627CEB12B858A9EB7C1ED24B1515A658318CE4",
17224
+ coinDecimals: 0
17209
17225
  },
17210
17226
  {
17211
17227
  coinDenom: "pengu",
17212
17228
  coinMinimalDenom: "ibc/2C5CB5DB3D86F64FDE6155A3A94D7543A126DA55490309EEDF59A0765873DA1C",
17213
17229
  coinDecimals: 6
17214
17230
  },
17231
+ {
17232
+ coinDenom: "trump",
17233
+ coinMinimalDenom: "ibc/51BFF64A432CBBA08A1ED95609BF0255EC4BBF699BFCDFF267F66CCD664CA350",
17234
+ coinDecimals: 6
17235
+ },
17215
17236
  {
17216
17237
  coinDenom: "qfs",
17217
17238
  coinMinimalDenom: "ibc/83A99F99AF326090B74CD5D17EE61776C7791B537EE6808F4951A184EDCCA0D9",
@@ -17221,6 +17242,116 @@ const _mainnetChains = [
17221
17242
  coinDenom: "mtgbp",
17222
17243
  coinMinimalDenom: "ibc/698687E700D8B255FAB6B8145CE25B12591C99296965DB5C2C5DD5FE0AB685BF",
17223
17244
  coinDecimals: 6
17245
+ },
17246
+ {
17247
+ coinDenom: "mld",
17248
+ coinMinimalDenom: "ibc/41AD5D4AFA42104295D08E564ADC7B40FD9DAB4BCD3002ECFA8BDD1309B65F24",
17249
+ coinDecimals: 6
17250
+ },
17251
+ {
17252
+ coinDenom: "allTRUMP",
17253
+ coinMinimalDenom: "factory/osmo1524q4dt7ckx25daydfd0ya0hyu6t26ch5509nvmxm4gcvuhk0fvs8qzl5q/alloyed/allTRUMP",
17254
+ coinDecimals: 6
17255
+ },
17256
+ {
17257
+ coinDenom: "allPENGU",
17258
+ coinMinimalDenom: "factory/osmo10nu66efsxxkdgh70xs8xur9mygrg79m5ht7zcmzsrdzxkhz7hpssz9hg9k/alloyed/allPENGU",
17259
+ coinDecimals: 6
17260
+ },
17261
+ {
17262
+ coinDenom: "TAB",
17263
+ coinMinimalDenom: "ibc/29EA1818A218B35E18FADC287C85A01802C900A5FFC0D7C8FC592D05186AAFD0",
17264
+ coinDecimals: 6
17265
+ },
17266
+ {
17267
+ coinDenom: "PUNDIX",
17268
+ coinMinimalDenom: "ibc/2EB516F83C9FF44AB6826F269CA98A5622608C6C955E12112E58F23A324FEE07",
17269
+ coinDecimals: 18
17270
+ },
17271
+ {
17272
+ coinDenom: "avalanche-usdc",
17273
+ coinMinimalDenom: "ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",
17274
+ coinDecimals: 6
17275
+ },
17276
+ {
17277
+ coinDenom: "nom",
17278
+ coinMinimalDenom: "ibc/F49DFB3BC8105C57EE7F17EC2402438825B31212CFDD81681EB87911E934F32C",
17279
+ coinDecimals: 6
17280
+ },
17281
+ {
17282
+ coinDenom: "ymos",
17283
+ coinMinimalDenom: "factory/osmo1vdvnznwg597qngrq9mnfcfk0am9jdc9y446jewhcqdreqz4r75xq5j5zvy/ymos",
17284
+ coinDecimals: 6
17285
+ },
17286
+ {
17287
+ coinDenom: "factory/osmo13gu58hzw3e9aqpj25h67m7snwcjuccd7v4p55w/brnz",
17288
+ coinMinimalDenom: "factory/osmo13gu58hzw3e9aqpj25h67m7snwcjuccd7v4p55w/brnz",
17289
+ coinDecimals: 0
17290
+ },
17291
+ {
17292
+ coinDenom: "ashLAB",
17293
+ coinMinimalDenom: "factory/osmo1svj5kd8kzj7xxtrd6ftjk0856ffpyj4egz7f9pd9dge5wr4kwansmefq07/lab.ash",
17294
+ coinDecimals: 6
17295
+ },
17296
+ {
17297
+ coinDenom: "grac",
17298
+ coinMinimalDenom: "ibc/58E4261D2E21FE3A459C290A9F97F3DCD257B28F48AAE828298B38E048804829",
17299
+ coinDecimals: 6
17300
+ },
17301
+ {
17302
+ coinDenom: "earnUSDC",
17303
+ coinMinimalDenom: "factory/osmo1vf6e300hv2qe7r5rln8deft45ewgyytjnwfrdfcv5rgzrfy0s6cswjqf9r/mars-usdc-looped",
17304
+ coinDecimals: 6
17305
+ },
17306
+ {
17307
+ coinDenom: "earnCDT",
17308
+ coinMinimalDenom: "factory/osmo1jw6r68y0uhfmqagc7uhtdddctc7wq95pncvrqnvtd47w4hx46p7se9nju5/earn-cdt",
17309
+ coinDecimals: 6
17310
+ },
17311
+ {
17312
+ coinDenom: "ashION",
17313
+ coinMinimalDenom: "factory/osmo1svj5kd8kzj7xxtrd6ftjk0856ffpyj4egz7f9pd9dge5wr4kwansmefq07/ion.ash",
17314
+ coinDecimals: 6
17315
+ },
17316
+ {
17317
+ coinDenom: "PLEB",
17318
+ coinMinimalDenom: "ibc/EA0C8F1121425943740B2D1B1DC5BDD717D49A9D5A639DC7074C10E9212CC794",
17319
+ coinDecimals: 6
17320
+ },
17321
+ {
17322
+ coinDenom: "BITCOIN",
17323
+ coinMinimalDenom: "ibc/648260E4FF8AEDD310F2A72930F25DD7F43DD82F45F66E53B4A70A0C216FA53B",
17324
+ coinDecimals: 6
17325
+ },
17326
+ {
17327
+ coinDenom: "CRYPTO",
17328
+ coinMinimalDenom: "ibc/1B23B6F7DAC37267F04E82466AB798CC59F941BD4AE5653C497730F174F14849",
17329
+ coinDecimals: 6
17330
+ },
17331
+ {
17332
+ coinDenom: "BRICS",
17333
+ coinMinimalDenom: "ibc/54C7B977B96DFC56D877A7F74D22BD26B5E42CA6171F120F5A36AC82BFD4711A",
17334
+ coinDecimals: 6
17335
+ },
17336
+ {
17337
+ coinDenom: "INC",
17338
+ coinMinimalDenom: "ibc/A436BC9498153DC580B56BD27043BBFE08A1754696C05FFF00B2A41EC796D180",
17339
+ coinDecimals: 6
17340
+ },
17341
+ {
17342
+ coinDenom: "allin",
17343
+ coinMinimalDenom: "factory/osmo1gzcz4anh88fz3vanx0842gsa3y8jcvck3qw90e/uallin",
17344
+ coinDecimals: 6
17345
+ },
17346
+ {
17347
+ coinDenom: "mfx",
17348
+ coinMinimalDenom: "ibc/1A3DE66CCE39FA151DA710B21E06C8FBC47178C1DCE7BB35D2A79466F754CD51",
17349
+ coinDecimals: 6
17350
+ },
17351
+ {
17352
+ coinDenom: "allUSD",
17353
+ coinMinimalDenom: "factory/osmo1t82ql2w69m9g3un7c6sk5wss578ewst2uscr7zdkn6k8rmzc3e8qz9n4q2/alloyed/allUSD",
17354
+ coinDecimals: 6
17224
17355
  }
17225
17356
  ],
17226
17357
  rest: "https://lcd.osmosis.zone/",
@@ -17240,9 +17371,9 @@ const _mainnetChains = [
17240
17371
  coinMinimalDenom: "uosmo",
17241
17372
  coinDecimals: 6,
17242
17373
  gasPriceStep: {
17243
- low: 25e-4,
17244
- average: 0.025,
17245
- high: 0.04
17374
+ low: 0.01,
17375
+ average: 0.1,
17376
+ high: 0.16
17246
17377
  }
17247
17378
  },
17248
17379
  {
@@ -18147,6 +18278,47 @@ const _mainnetChains = [
18147
18278
  coinType: 118
18148
18279
  }
18149
18280
  },
18281
+ {
18282
+ chainId: "paxi-mainnet",
18283
+ currencies: [
18284
+ {
18285
+ coinDenom: "PAXI",
18286
+ coinMinimalDenom: "upaxi",
18287
+ coinDecimals: 6
18288
+ }
18289
+ ],
18290
+ rest: "https://mainnet-lcd.paxinet.io",
18291
+ rpc: "https://mainnet-rpc.paxinet.io",
18292
+ bech32Config: {
18293
+ bech32PrefixAccAddr: "paxi",
18294
+ bech32PrefixAccPub: "paxipub",
18295
+ bech32PrefixValAddr: "paxivaloper",
18296
+ bech32PrefixValPub: "paxivaloperpub",
18297
+ bech32PrefixConsAddr: "paxivalcons",
18298
+ bech32PrefixConsPub: "paxivalconspub"
18299
+ },
18300
+ chainName: "paxi",
18301
+ feeCurrencies: [
18302
+ {
18303
+ coinDenom: "PAXI",
18304
+ coinMinimalDenom: "upaxi",
18305
+ coinDecimals: 6,
18306
+ gasPriceStep: {
18307
+ low: 0.05,
18308
+ average: 0.1,
18309
+ high: 0.25
18310
+ }
18311
+ }
18312
+ ],
18313
+ stakeCurrency: {
18314
+ coinDenom: "PAXI",
18315
+ coinMinimalDenom: "upaxi",
18316
+ coinDecimals: 6
18317
+ },
18318
+ bip44: {
18319
+ coinType: 118
18320
+ }
18321
+ },
18150
18322
  {
18151
18323
  chainId: "core-1",
18152
18324
  currencies: [
@@ -23631,6 +23803,11 @@ const _mainnetChains = [
23631
23803
  coinDenom: "capa",
23632
23804
  coinMinimalDenom: "cw20:terra1t4p3u8khpd7f8qzurwyafxt648dya6mp6vur3vaapswt6m24gkuqrfdhar",
23633
23805
  coinDecimals: 6
23806
+ },
23807
+ {
23808
+ coinDenom: "ampCAPA",
23809
+ coinMinimalDenom: "factory/terra186rpfczl7l2kugdsqqedegl4es4hp624phfc7ddy8my02a4e8lgq5rlx7y/ampCAPA",
23810
+ coinDecimals: 6
23634
23811
  }
23635
23812
  ],
23636
23813
  rest: "https://lcd-terra.wildsage.io",
@@ -26300,7 +26477,7 @@ const _testnetChains = [
26300
26477
  }
26301
26478
  },
26302
26479
  {
26303
- chainId: "dymension_1405-1",
26480
+ chainId: "dymension_3405-1",
26304
26481
  currencies: [
26305
26482
  {
26306
26483
  coinDenom: "dym",
@@ -26308,8 +26485,8 @@ const _testnetChains = [
26308
26485
  coinDecimals: 18
26309
26486
  }
26310
26487
  ],
26311
- rest: "https://api-dym-migration-test-2.mzonder.com",
26312
- rpc: "https://rpc-dym-migration-test-2.mzonder.com",
26488
+ rest: "https://api-dymension-playground35.mzonder.com",
26489
+ rpc: "https://rpc-dymension-playground35.mzonder.com",
26313
26490
  bech32Config: {
26314
26491
  bech32PrefixAccAddr: "dym",
26315
26492
  bech32PrefixAccPub: "dympub",
@@ -26571,9 +26748,9 @@ const _testnetChains = [
26571
26748
  coinMinimalDenom: "atestfet",
26572
26749
  coinDecimals: 18,
26573
26750
  gasPriceStep: {
26574
- low: 0.025,
26575
- average: 0.025,
26576
- high: 0.035
26751
+ low: 1e9,
26752
+ average: 1e9,
26753
+ high: 1e9
26577
26754
  }
26578
26755
  }
26579
26756
  ],
@@ -28090,6 +28267,11 @@ const _testnetChains = [
28090
28267
  coinDenom: "atom",
28091
28268
  coinMinimalDenom: "ibc/A4DB47A9D3CF9A068D454513891B526702455D3EF08FB9EB558C561F9DC2B701",
28092
28269
  coinDecimals: 6
28270
+ },
28271
+ {
28272
+ coinDenom: "TREATS",
28273
+ coinMinimalDenom: "factory/mantra1uvn4qgh96lc83dzu8mpf3u93lk605ls0vg0nf2/TREATS",
28274
+ coinDecimals: 18
28093
28275
  }
28094
28276
  ],
28095
28277
  rest: "https://api.dukong.mantrachain.io",
@@ -36329,6 +36511,17 @@ const _explorers = [
36329
36511
  }
36330
36512
  ]
36331
36513
  },
36514
+ {
36515
+ chainId: "paxi-mainnet",
36516
+ explorers: [
36517
+ {
36518
+ kind: "paxi-explorer",
36519
+ url: "https://explorer.paxinet.io",
36520
+ txPage: "https://explorer.paxinet.io/tx/${txHash}",
36521
+ accountPage: "https://explorer.paxinet.io/address/${accountAddress}"
36522
+ }
36523
+ ]
36524
+ },
36332
36525
  {
36333
36526
  chainId: "core-1",
36334
36527
  explorers: [
@@ -37977,6 +38170,18 @@ const _explorers = [
37977
38170
  url: "https://risescan.sunriselayer.io",
37978
38171
  txPage: "https://risescan.sunriselayer.io/txs/${txHash}",
37979
38172
  accountPage: "https://risescan.sunriselayer.io/accounts/${accountAddress}"
38173
+ },
38174
+ {
38175
+ kind: "MekongLabs Explorer",
38176
+ url: "https://explorer.mekonglabs.tech/sunrise/staking",
38177
+ txPage: "https://explorer.mekonglabs.tech/sunrise/tx/${txHash}",
38178
+ accountPage: "https://explorer.mekonglabs.tech/sunrise/account/${accountAddress}"
38179
+ },
38180
+ {
38181
+ kind: "Explorer.ist",
38182
+ url: "https://explorer.ist/sunrise",
38183
+ txPage: "https://explorer.ist/sunrise/tx/${txHash}",
38184
+ accountPage: "https://explorer.ist/sunrise/account/${accountAddress}"
37980
38185
  }
37981
38186
  ]
37982
38187
  },
@@ -37988,6 +38193,12 @@ const _explorers = [
37988
38193
  url: "https://xplorer.vinjan.xyz/symphony",
37989
38194
  txPage: "https://xplorer.vinjan.xyz/symphony/tx/${txHash}",
37990
38195
  accountPage: "https://xplorer.vinjan.xyz/symphony/account/${accountAddress}"
38196
+ },
38197
+ {
38198
+ kind: "Sr20de Explorer",
38199
+ url: "https://explorer.sr20de.xyz/symphony",
38200
+ txPage: "https://explorer.sr20de.xyz/symphony/tx/${txHash}",
38201
+ accountPage: "https://explorer.sr20de.xyz/symphony/account/${accountAddress}"
37991
38202
  }
37992
38203
  ]
37993
38204
  },
@@ -39173,12 +39384,12 @@ const _explorers = [
39173
39384
  ]
39174
39385
  },
39175
39386
  {
39176
- chainId: "dymension_1405-1",
39387
+ chainId: "dymension_3405-1",
39177
39388
  explorers: [
39178
39389
  {
39179
39390
  kind: "dymscan",
39180
39391
  url: "https://pg.dym.fyi/",
39181
- txPage: "https://pg.dym.fyi//tx/${txHash}"
39392
+ txPage: "https://pg.dym.fyi/tx/${txHash}"
39182
39393
  }
39183
39394
  ]
39184
39395
  },
@@ -41283,7 +41494,7 @@ const resetWidget = ({ onlyClearInputValues } = {}) => {
41283
41494
  set(currentPageAtom, Routes.SwapPage);
41284
41495
  set(errorWarningAtom, void 0);
41285
41496
  };
41286
- const setAsset = ({ type: type2, ...assetDetails }) => {
41497
+ const setAsset = ({ type, ...assetDetails }) => {
41287
41498
  var _a;
41288
41499
  const { set, get } = jotaiStore;
41289
41500
  const { data: skipAssets } = get(skipAssetsAtom);
@@ -41291,7 +41502,7 @@ const setAsset = ({ type: type2, ...assetDetails }) => {
41291
41502
  (asset) => (asset == null ? void 0 : asset.chainId) === assetDetails.chainId && (asset == null ? void 0 : asset.denom) === (assetDetails == null ? void 0 : assetDetails.denom)
41292
41503
  );
41293
41504
  const assetAmount = (_a = assetDetails == null ? void 0 : assetDetails.amount) == null ? void 0 : _a.toString();
41294
- switch (type2) {
41505
+ switch (type) {
41295
41506
  case "source":
41296
41507
  set(sourceAssetAtom, { ...assetFound, amount: assetAmount });
41297
41508
  if (assetAmount) {
@@ -41399,8 +41610,7 @@ atom$1();
41399
41610
  const EVM_GAS_AMOUNT = 15e4;
41400
41611
  const COSMOS_GAS_AMOUNT = {
41401
41612
  DEFAULT: 3e5,
41402
- SWAP: 28e5,
41403
- CARBON: 1e6
41613
+ SWAP: 28e5
41404
41614
  };
41405
41615
  const defaultSwapSettings = {
41406
41616
  slippage: 1,
@@ -41663,12 +41873,12 @@ function getOperationDetailsAndType(operation) {
41663
41873
  details: {},
41664
41874
  type: void 0
41665
41875
  };
41666
- Object.values(OperationType).find((type2) => {
41876
+ Object.values(OperationType).find((type) => {
41667
41877
  var _a;
41668
- const originalDetails = combinedOperation == null ? void 0 : combinedOperation[type2];
41878
+ const originalDetails = combinedOperation == null ? void 0 : combinedOperation[type];
41669
41879
  if (originalDetails) {
41670
41880
  const operationDetails = { ...originalDetails };
41671
- switch (type2) {
41881
+ switch (type) {
41672
41882
  case "swap":
41673
41883
  case "evmSwap":
41674
41884
  operationDetails.toChainId = originalDetails.fromChainId;
@@ -41687,16 +41897,16 @@ function getOperationDetailsAndType(operation) {
41687
41897
  }
41688
41898
  returnValue = {
41689
41899
  details: operationDetails,
41690
- type: type2
41900
+ type
41691
41901
  };
41692
41902
  }
41693
41903
  });
41694
41904
  return returnValue;
41695
41905
  }
41696
41906
  function getClientOperation(operation) {
41697
- const { details, type: type2 } = getOperationDetailsAndType(operation);
41907
+ const { details, type } = getOperationDetailsAndType(operation);
41698
41908
  return {
41699
- type: type2,
41909
+ type,
41700
41910
  ...details,
41701
41911
  txIndex: operation.txIndex,
41702
41912
  amountIn: operation.amountIn,
@@ -41775,7 +41985,7 @@ function defineChain(chain) {
41775
41985
  ...chain
41776
41986
  };
41777
41987
  }
41778
- const version$2 = "2.21.55";
41988
+ const version$2 = "2.33.3";
41779
41989
  let errorConfig = {
41780
41990
  getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
41781
41991
  version: `viem@${version$2}`
@@ -41905,8 +42115,8 @@ class SliceOffsetOutOfBoundsError extends BaseError$1 {
41905
42115
  }
41906
42116
  }
41907
42117
  class SizeExceedsPaddingSizeError extends BaseError$1 {
41908
- constructor({ size: size2, targetSize, type: type2 }) {
41909
- super(`${type2.charAt(0).toUpperCase()}${type2.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
42118
+ constructor({ size: size2, targetSize, type }) {
42119
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
41910
42120
  }
41911
42121
  }
41912
42122
  function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
@@ -42098,7 +42308,7 @@ function hexToBigInt(hex, opts = {}) {
42098
42308
  function hexToNumber(hex, opts = {}) {
42099
42309
  return Number(hexToBigInt(hex, opts));
42100
42310
  }
42101
- function defineFormatter(type2, format) {
42311
+ function defineFormatter(type, format) {
42102
42312
  return ({ exclude, format: overrides }) => {
42103
42313
  return {
42104
42314
  exclude,
@@ -42114,7 +42324,7 @@ function defineFormatter(type2, format) {
42114
42324
  ...overrides(args)
42115
42325
  };
42116
42326
  },
42117
- type: type2
42327
+ type
42118
42328
  };
42119
42329
  };
42120
42330
  }
@@ -42179,7 +42389,7 @@ function formatTransaction(transaction) {
42179
42389
  const defineTransaction = /* @__PURE__ */ defineFormatter("transaction", formatTransaction);
42180
42390
  function formatAuthorizationList$1(authorizationList) {
42181
42391
  return authorizationList.map((authorization) => ({
42182
- contractAddress: authorization.address,
42392
+ address: authorization.address,
42183
42393
  chainId: Number(authorization.chainId),
42184
42394
  nonce: Number(authorization.nonce),
42185
42395
  r: authorization.r,
@@ -42296,9 +42506,9 @@ function formatTransactionRequest(request) {
42296
42506
  const defineTransactionRequest = /* @__PURE__ */ defineFormatter("transactionRequest", formatTransactionRequest);
42297
42507
  function formatAuthorizationList(authorizationList) {
42298
42508
  return authorizationList.map((authorization) => ({
42299
- address: authorization.contractAddress,
42300
- r: authorization.r,
42301
- s: authorization.s,
42509
+ address: authorization.address,
42510
+ r: authorization.r ? numberToHex(BigInt(authorization.r)) : authorization.r,
42511
+ s: authorization.s ? numberToHex(BigInt(authorization.s)) : authorization.s,
42302
42512
  chainId: numberToHex(authorization.chainId),
42303
42513
  nonce: numberToHex(authorization.nonce),
42304
42514
  ...typeof authorization.yParity !== "undefined" ? { yParity: numberToHex(authorization.yParity) } : {},
@@ -42417,7 +42627,7 @@ const staticCursor = {
42417
42627
  pushUint24(value) {
42418
42628
  this.assertPosition(this.position + 2);
42419
42629
  this.dataView.setUint16(this.position, value >> 8);
42420
- this.dataView.setUint8(this.position + 2, value & ~4294967040);
42630
+ this.dataView.setUint8(this.position + 2, value & 255);
42421
42631
  this.position += 3;
42422
42632
  },
42423
42633
  pushUint32(value) {
@@ -42657,6 +42867,22 @@ class InvalidStorageKeySizeError extends BaseError$1 {
42657
42867
  super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
42658
42868
  }
42659
42869
  }
42870
+ function serializeAuthorizationList(authorizationList) {
42871
+ if (!authorizationList || authorizationList.length === 0)
42872
+ return [];
42873
+ const serializedAuthorizationList = [];
42874
+ for (const authorization of authorizationList) {
42875
+ const { chainId, nonce, ...signature } = authorization;
42876
+ const contractAddress = authorization.address;
42877
+ serializedAuthorizationList.push([
42878
+ chainId ? toHex(chainId) : "0x",
42879
+ contractAddress,
42880
+ nonce ? toHex(nonce) : "0x",
42881
+ ...toYParitySignatureArray({}, signature)
42882
+ ]);
42883
+ }
42884
+ return serializedAuthorizationList;
42885
+ }
42660
42886
  function blobsToCommitments(parameters) {
42661
42887
  const { kzg } = parameters;
42662
42888
  const to2 = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
@@ -42679,13 +42905,14 @@ function blobsToProofs(parameters) {
42679
42905
  }
42680
42906
  return to2 === "bytes" ? proofs : proofs.map((x2) => bytesToHex(x2));
42681
42907
  }
42908
+ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
42909
+ function isBytes(a) {
42910
+ return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
42911
+ }
42682
42912
  function anumber(n) {
42683
42913
  if (!Number.isSafeInteger(n) || n < 0)
42684
42914
  throw new Error("positive integer expected, got " + n);
42685
42915
  }
42686
- function isBytes(a) {
42687
- return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
42688
- }
42689
42916
  function abytes(b, ...lengths) {
42690
42917
  if (!isBytes(b))
42691
42918
  throw new Error("Uint8Array expected");
@@ -42705,20 +42932,34 @@ function aoutput(out, instance) {
42705
42932
  throw new Error("digestInto() expects output buffer of length at least " + min);
42706
42933
  }
42707
42934
  }
42708
- /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
42709
- const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
42710
- const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
42711
- const rotr = (word, shift) => word << 32 - shift | word >>> shift;
42935
+ function u32(arr) {
42936
+ return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
42937
+ }
42938
+ function clean(...arrays) {
42939
+ for (let i = 0; i < arrays.length; i++) {
42940
+ arrays[i].fill(0);
42941
+ }
42942
+ }
42943
+ function createView(arr) {
42944
+ return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
42945
+ }
42946
+ function rotr(word, shift) {
42947
+ return word << 32 - shift | word >>> shift;
42948
+ }
42712
42949
  const isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
42713
- const byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
42950
+ function byteSwap(word) {
42951
+ return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
42952
+ }
42714
42953
  function byteSwap32(arr) {
42715
42954
  for (let i = 0; i < arr.length; i++) {
42716
42955
  arr[i] = byteSwap(arr[i]);
42717
42956
  }
42957
+ return arr;
42718
42958
  }
42959
+ const swap32IfBE = isLE ? (u) => u : byteSwap32;
42719
42960
  function utf8ToBytes(str) {
42720
42961
  if (typeof str !== "string")
42721
- throw new Error("utf8ToBytes expected string, got " + typeof str);
42962
+ throw new Error("string expected");
42722
42963
  return new Uint8Array(new TextEncoder().encode(str));
42723
42964
  }
42724
42965
  function toBytes(data) {
@@ -42728,12 +42969,8 @@ function toBytes(data) {
42728
42969
  return data;
42729
42970
  }
42730
42971
  class Hash {
42731
- // Safe version that clones internal state
42732
- clone() {
42733
- return this._cloneInto();
42734
- }
42735
42972
  }
42736
- function wrapConstructor(hashCons) {
42973
+ function createHasher(hashCons) {
42737
42974
  const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
42738
42975
  const tmp = hashCons();
42739
42976
  hashC.outputLen = tmp.outputLen;
@@ -42753,26 +42990,31 @@ function setBigUint64(view, byteOffset, value, isLE2) {
42753
42990
  view.setUint32(byteOffset + h, wh, isLE2);
42754
42991
  view.setUint32(byteOffset + l, wl, isLE2);
42755
42992
  }
42756
- const Chi = (a, b, c) => a & b ^ ~a & c;
42757
- const Maj = (a, b, c) => a & b ^ a & c ^ b & c;
42993
+ function Chi(a, b, c) {
42994
+ return a & b ^ ~a & c;
42995
+ }
42996
+ function Maj(a, b, c) {
42997
+ return a & b ^ a & c ^ b & c;
42998
+ }
42758
42999
  class HashMD extends Hash {
42759
43000
  constructor(blockLen, outputLen, padOffset, isLE2) {
42760
43001
  super();
42761
- this.blockLen = blockLen;
42762
- this.outputLen = outputLen;
42763
- this.padOffset = padOffset;
42764
- this.isLE = isLE2;
42765
43002
  this.finished = false;
42766
43003
  this.length = 0;
42767
43004
  this.pos = 0;
42768
43005
  this.destroyed = false;
43006
+ this.blockLen = blockLen;
43007
+ this.outputLen = outputLen;
43008
+ this.padOffset = padOffset;
43009
+ this.isLE = isLE2;
42769
43010
  this.buffer = new Uint8Array(blockLen);
42770
43011
  this.view = createView(this.buffer);
42771
43012
  }
42772
43013
  update(data) {
42773
43014
  aexists(this);
42774
- const { view, buffer, blockLen } = this;
42775
43015
  data = toBytes(data);
43016
+ abytes(data);
43017
+ const { view, buffer, blockLen } = this;
42776
43018
  const len = data.length;
42777
43019
  for (let pos = 0; pos < len; ) {
42778
43020
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -42801,7 +43043,7 @@ class HashMD extends Hash {
42801
43043
  const { buffer, view, blockLen, isLE: isLE2 } = this;
42802
43044
  let { pos } = this;
42803
43045
  buffer[pos++] = 128;
42804
- this.buffer.subarray(pos).fill(0);
43046
+ clean(this.buffer.subarray(pos));
42805
43047
  if (this.padOffset > blockLen - pos) {
42806
43048
  this.process(view, 0);
42807
43049
  pos = 0;
@@ -42832,16 +43074,50 @@ class HashMD extends Hash {
42832
43074
  to2 || (to2 = new this.constructor());
42833
43075
  to2.set(...this.get());
42834
43076
  const { blockLen, buffer, length: length2, finished, destroyed, pos } = this;
43077
+ to2.destroyed = destroyed;
43078
+ to2.finished = finished;
42835
43079
  to2.length = length2;
42836
43080
  to2.pos = pos;
42837
- to2.finished = finished;
42838
- to2.destroyed = destroyed;
42839
43081
  if (length2 % blockLen)
42840
43082
  to2.buffer.set(buffer);
42841
43083
  return to2;
42842
43084
  }
43085
+ clone() {
43086
+ return this._cloneInto();
43087
+ }
43088
+ }
43089
+ const SHA256_IV = /* @__PURE__ */ Uint32Array.from([
43090
+ 1779033703,
43091
+ 3144134277,
43092
+ 1013904242,
43093
+ 2773480762,
43094
+ 1359893119,
43095
+ 2600822924,
43096
+ 528734635,
43097
+ 1541459225
43098
+ ]);
43099
+ const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
43100
+ const _32n = /* @__PURE__ */ BigInt(32);
43101
+ function fromBig(n, le2 = false) {
43102
+ if (le2)
43103
+ return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
43104
+ return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
42843
43105
  }
42844
- const SHA256_K = /* @__PURE__ */ new Uint32Array([
43106
+ function split(lst, le2 = false) {
43107
+ const len = lst.length;
43108
+ let Ah = new Uint32Array(len);
43109
+ let Al = new Uint32Array(len);
43110
+ for (let i = 0; i < len; i++) {
43111
+ const { h, l } = fromBig(lst[i], le2);
43112
+ [Ah[i], Al[i]] = [h, l];
43113
+ }
43114
+ return [Ah, Al];
43115
+ }
43116
+ const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
43117
+ const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
43118
+ const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
43119
+ const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
43120
+ const SHA256_K = /* @__PURE__ */ Uint32Array.from([
42845
43121
  1116352408,
42846
43122
  1899447441,
42847
43123
  3049323471,
@@ -42907,20 +43183,10 @@ const SHA256_K = /* @__PURE__ */ new Uint32Array([
42907
43183
  3204031479,
42908
43184
  3329325298
42909
43185
  ]);
42910
- const SHA256_IV = /* @__PURE__ */ new Uint32Array([
42911
- 1779033703,
42912
- 3144134277,
42913
- 1013904242,
42914
- 2773480762,
42915
- 1359893119,
42916
- 2600822924,
42917
- 528734635,
42918
- 1541459225
42919
- ]);
42920
43186
  const SHA256_W = /* @__PURE__ */ new Uint32Array(64);
42921
43187
  class SHA256 extends HashMD {
42922
- constructor() {
42923
- super(64, 32, 8, false);
43188
+ constructor(outputLen = 32) {
43189
+ super(64, outputLen, 8, false);
42924
43190
  this.A = SHA256_IV[0] | 0;
42925
43191
  this.B = SHA256_IV[1] | 0;
42926
43192
  this.C = SHA256_IV[2] | 0;
@@ -42981,14 +43247,15 @@ class SHA256 extends HashMD {
42981
43247
  this.set(A2, B2, C2, D2, E2, F2, G2, H2);
42982
43248
  }
42983
43249
  roundClean() {
42984
- SHA256_W.fill(0);
43250
+ clean(SHA256_W);
42985
43251
  }
42986
43252
  destroy() {
42987
43253
  this.set(0, 0, 0, 0, 0, 0, 0, 0);
42988
- this.buffer.fill(0);
43254
+ clean(this.buffer);
42989
43255
  }
42990
43256
  }
42991
- const sha256$1 = /* @__PURE__ */ wrapConstructor(() => new SHA256());
43257
+ const sha256$2 = /* @__PURE__ */ createHasher(() => new SHA256());
43258
+ const sha256$1 = sha256$2;
42992
43259
  function sha256(value, to_) {
42993
43260
  const bytes = sha256$1(isHex(value, { strict: false }) ? toBytes$1(value) : value);
42994
43261
  return bytes;
@@ -43100,21 +43367,6 @@ function toBlobSidecars(parameters) {
43100
43367
  });
43101
43368
  return sidecars;
43102
43369
  }
43103
- function serializeAuthorizationList(authorizationList) {
43104
- if (!authorizationList || authorizationList.length === 0)
43105
- return [];
43106
- const serializedAuthorizationList = [];
43107
- for (const authorization of authorizationList) {
43108
- const { contractAddress, chainId, nonce, ...signature } = authorization;
43109
- serializedAuthorizationList.push([
43110
- chainId ? toHex(chainId) : "0x",
43111
- contractAddress,
43112
- nonce ? toHex(nonce) : "0x",
43113
- ...toYParitySignatureArray({}, signature)
43114
- ]);
43115
- }
43116
- return serializedAuthorizationList;
43117
- }
43118
43370
  class InvalidAddressError extends BaseError$1 {
43119
43371
  constructor({ address }) {
43120
43372
  super(`Address "${address}" is invalid.`, {
@@ -43338,35 +43590,15 @@ class LruMap extends Map {
43338
43590
  return this;
43339
43591
  }
43340
43592
  }
43341
- const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
43342
- const _32n = /* @__PURE__ */ BigInt(32);
43343
- function fromBig(n, le2 = false) {
43344
- if (le2)
43345
- return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
43346
- return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
43347
- }
43348
- function split(lst, le2 = false) {
43349
- let Ah = new Uint32Array(lst.length);
43350
- let Al = new Uint32Array(lst.length);
43351
- for (let i = 0; i < lst.length; i++) {
43352
- const { h, l } = fromBig(lst[i], le2);
43353
- [Ah[i], Al[i]] = [h, l];
43354
- }
43355
- return [Ah, Al];
43356
- }
43357
- const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
43358
- const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
43359
- const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
43360
- const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
43593
+ const _0n = BigInt(0);
43594
+ const _1n = BigInt(1);
43595
+ const _2n = BigInt(2);
43596
+ const _7n = BigInt(7);
43597
+ const _256n = BigInt(256);
43598
+ const _0x71n = BigInt(113);
43361
43599
  const SHA3_PI = [];
43362
43600
  const SHA3_ROTL = [];
43363
43601
  const _SHA3_IOTA = [];
43364
- const _0n = /* @__PURE__ */ BigInt(0);
43365
- const _1n = /* @__PURE__ */ BigInt(1);
43366
- const _2n = /* @__PURE__ */ BigInt(2);
43367
- const _7n = /* @__PURE__ */ BigInt(7);
43368
- const _256n = /* @__PURE__ */ BigInt(256);
43369
- const _0x71n = /* @__PURE__ */ BigInt(113);
43370
43602
  for (let round = 0, R2 = _1n, x2 = 1, y2 = 0; round < 24; round++) {
43371
43603
  [x2, y2] = [y2, (2 * x2 + 3 * y2) % 5];
43372
43604
  SHA3_PI.push(2 * (5 * y2 + x2));
@@ -43379,7 +43611,9 @@ for (let round = 0, R2 = _1n, x2 = 1, y2 = 0; round < 24; round++) {
43379
43611
  }
43380
43612
  _SHA3_IOTA.push(t);
43381
43613
  }
43382
- const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
43614
+ const IOTAS = split(_SHA3_IOTA, true);
43615
+ const SHA3_IOTA_H = IOTAS[0];
43616
+ const SHA3_IOTA_L = IOTAS[1];
43383
43617
  const rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
43384
43618
  const rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
43385
43619
  function keccakP(s, rounds = 24) {
@@ -43420,40 +43654,43 @@ function keccakP(s, rounds = 24) {
43420
43654
  s[0] ^= SHA3_IOTA_H[round];
43421
43655
  s[1] ^= SHA3_IOTA_L[round];
43422
43656
  }
43423
- B2.fill(0);
43657
+ clean(B2);
43424
43658
  }
43425
43659
  class Keccak extends Hash {
43426
43660
  // NOTE: we accept arguments in bytes instead of bits here.
43427
43661
  constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
43428
43662
  super();
43663
+ this.pos = 0;
43664
+ this.posOut = 0;
43665
+ this.finished = false;
43666
+ this.destroyed = false;
43667
+ this.enableXOF = false;
43429
43668
  this.blockLen = blockLen;
43430
43669
  this.suffix = suffix;
43431
43670
  this.outputLen = outputLen;
43432
43671
  this.enableXOF = enableXOF;
43433
43672
  this.rounds = rounds;
43434
- this.pos = 0;
43435
- this.posOut = 0;
43436
- this.finished = false;
43437
- this.destroyed = false;
43438
43673
  anumber(outputLen);
43439
- if (0 >= this.blockLen || this.blockLen >= 200)
43440
- throw new Error("Sha3 supports only keccak-f1600 function");
43674
+ if (!(0 < blockLen && blockLen < 200))
43675
+ throw new Error("only keccak-f1600 function is supported");
43441
43676
  this.state = new Uint8Array(200);
43442
43677
  this.state32 = u32(this.state);
43443
43678
  }
43679
+ clone() {
43680
+ return this._cloneInto();
43681
+ }
43444
43682
  keccak() {
43445
- if (!isLE)
43446
- byteSwap32(this.state32);
43683
+ swap32IfBE(this.state32);
43447
43684
  keccakP(this.state32, this.rounds);
43448
- if (!isLE)
43449
- byteSwap32(this.state32);
43685
+ swap32IfBE(this.state32);
43450
43686
  this.posOut = 0;
43451
43687
  this.pos = 0;
43452
43688
  }
43453
43689
  update(data) {
43454
43690
  aexists(this);
43455
- const { blockLen, state } = this;
43456
43691
  data = toBytes(data);
43692
+ abytes(data);
43693
+ const { blockLen, state } = this;
43457
43694
  const len = data.length;
43458
43695
  for (let pos = 0; pos < len; ) {
43459
43696
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -43513,7 +43750,7 @@ class Keccak extends Hash {
43513
43750
  }
43514
43751
  destroy() {
43515
43752
  this.destroyed = true;
43516
- this.state.fill(0);
43753
+ clean(this.state);
43517
43754
  }
43518
43755
  _cloneInto(to2) {
43519
43756
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
@@ -43530,8 +43767,8 @@ class Keccak extends Hash {
43530
43767
  return to2;
43531
43768
  }
43532
43769
  }
43533
- const gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
43534
- const keccak_256 = /* @__PURE__ */ gen(1, 136, 256 / 8);
43770
+ const gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
43771
+ const keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
43535
43772
  function keccak256(value, to_) {
43536
43773
  const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes$1(value) : value);
43537
43774
  return bytes;
@@ -43613,9 +43850,10 @@ function assertTransactionEIP7702(transaction) {
43613
43850
  const { authorizationList } = transaction;
43614
43851
  if (authorizationList) {
43615
43852
  for (const authorization of authorizationList) {
43616
- const { contractAddress, chainId } = authorization;
43617
- if (!isAddress(contractAddress))
43618
- throw new InvalidAddressError({ address: contractAddress });
43853
+ const { chainId } = authorization;
43854
+ const address = authorization.address;
43855
+ if (!isAddress(address))
43856
+ throw new InvalidAddressError({ address });
43619
43857
  if (chainId < 0)
43620
43858
  throw new InvalidChainIdError({ chainId });
43621
43859
  }
@@ -43710,14 +43948,14 @@ function serializeAccessList(accessList) {
43710
43948
  return serializedAccessList;
43711
43949
  }
43712
43950
  function serializeTransaction$2(transaction, signature) {
43713
- const type2 = getTransactionType(transaction);
43714
- if (type2 === "eip1559")
43951
+ const type = getTransactionType(transaction);
43952
+ if (type === "eip1559")
43715
43953
  return serializeTransactionEIP1559(transaction, signature);
43716
- if (type2 === "eip2930")
43954
+ if (type === "eip2930")
43717
43955
  return serializeTransactionEIP2930(transaction, signature);
43718
- if (type2 === "eip4844")
43956
+ if (type === "eip4844")
43719
43957
  return serializeTransactionEIP4844(transaction, signature);
43720
- if (type2 === "eip7702")
43958
+ if (type === "eip7702")
43721
43959
  return serializeTransactionEIP7702(transaction, signature);
43722
43960
  return serializeTransactionLegacy(transaction, signature);
43723
43961
  }
@@ -43729,13 +43967,13 @@ function serializeTransactionEIP7702(transaction, signature) {
43729
43967
  return concatHex([
43730
43968
  "0x04",
43731
43969
  toRlp([
43732
- toHex(chainId),
43733
- nonce ? toHex(nonce) : "0x",
43734
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
43735
- maxFeePerGas ? toHex(maxFeePerGas) : "0x",
43736
- gas ? toHex(gas) : "0x",
43970
+ numberToHex(chainId),
43971
+ nonce ? numberToHex(nonce) : "0x",
43972
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : "0x",
43973
+ maxFeePerGas ? numberToHex(maxFeePerGas) : "0x",
43974
+ gas ? numberToHex(gas) : "0x",
43737
43975
  to2 ?? "0x",
43738
- value ? toHex(value) : "0x",
43976
+ value ? numberToHex(value) : "0x",
43739
43977
  data ?? "0x",
43740
43978
  serializedAccessList,
43741
43979
  serializedAuthorizationList,
@@ -43766,16 +44004,16 @@ function serializeTransactionEIP4844(transaction, signature) {
43766
44004
  }
43767
44005
  const serializedAccessList = serializeAccessList(accessList);
43768
44006
  const serializedTransaction = [
43769
- toHex(chainId),
43770
- nonce ? toHex(nonce) : "0x",
43771
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
43772
- maxFeePerGas ? toHex(maxFeePerGas) : "0x",
43773
- gas ? toHex(gas) : "0x",
44007
+ numberToHex(chainId),
44008
+ nonce ? numberToHex(nonce) : "0x",
44009
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : "0x",
44010
+ maxFeePerGas ? numberToHex(maxFeePerGas) : "0x",
44011
+ gas ? numberToHex(gas) : "0x",
43774
44012
  to2 ?? "0x",
43775
- value ? toHex(value) : "0x",
44013
+ value ? numberToHex(value) : "0x",
43776
44014
  data ?? "0x",
43777
44015
  serializedAccessList,
43778
- maxFeePerBlobGas ? toHex(maxFeePerBlobGas) : "0x",
44016
+ maxFeePerBlobGas ? numberToHex(maxFeePerBlobGas) : "0x",
43779
44017
  blobVersionedHashes ?? [],
43780
44018
  ...toYParitySignatureArray(transaction, signature)
43781
44019
  ];
@@ -43805,13 +44043,13 @@ function serializeTransactionEIP1559(transaction, signature) {
43805
44043
  assertTransactionEIP1559(transaction);
43806
44044
  const serializedAccessList = serializeAccessList(accessList);
43807
44045
  const serializedTransaction = [
43808
- toHex(chainId),
43809
- nonce ? toHex(nonce) : "0x",
43810
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
43811
- maxFeePerGas ? toHex(maxFeePerGas) : "0x",
43812
- gas ? toHex(gas) : "0x",
44046
+ numberToHex(chainId),
44047
+ nonce ? numberToHex(nonce) : "0x",
44048
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : "0x",
44049
+ maxFeePerGas ? numberToHex(maxFeePerGas) : "0x",
44050
+ gas ? numberToHex(gas) : "0x",
43813
44051
  to2 ?? "0x",
43814
- value ? toHex(value) : "0x",
44052
+ value ? numberToHex(value) : "0x",
43815
44053
  data ?? "0x",
43816
44054
  serializedAccessList,
43817
44055
  ...toYParitySignatureArray(transaction, signature)
@@ -43826,12 +44064,12 @@ function serializeTransactionEIP2930(transaction, signature) {
43826
44064
  assertTransactionEIP2930(transaction);
43827
44065
  const serializedAccessList = serializeAccessList(accessList);
43828
44066
  const serializedTransaction = [
43829
- toHex(chainId),
43830
- nonce ? toHex(nonce) : "0x",
43831
- gasPrice ? toHex(gasPrice) : "0x",
43832
- gas ? toHex(gas) : "0x",
44067
+ numberToHex(chainId),
44068
+ nonce ? numberToHex(nonce) : "0x",
44069
+ gasPrice ? numberToHex(gasPrice) : "0x",
44070
+ gas ? numberToHex(gas) : "0x",
43833
44071
  to2 ?? "0x",
43834
- value ? toHex(value) : "0x",
44072
+ value ? numberToHex(value) : "0x",
43835
44073
  data ?? "0x",
43836
44074
  serializedAccessList,
43837
44075
  ...toYParitySignatureArray(transaction, signature)
@@ -43845,11 +44083,11 @@ function serializeTransactionLegacy(transaction, signature) {
43845
44083
  const { chainId = 0, gas, data, nonce, to: to2, value, gasPrice } = transaction;
43846
44084
  assertTransactionLegacy(transaction);
43847
44085
  let serializedTransaction = [
43848
- nonce ? toHex(nonce) : "0x",
43849
- gasPrice ? toHex(gasPrice) : "0x",
43850
- gas ? toHex(gas) : "0x",
44086
+ nonce ? numberToHex(nonce) : "0x",
44087
+ gasPrice ? numberToHex(gasPrice) : "0x",
44088
+ gas ? numberToHex(gas) : "0x",
43851
44089
  to2 ?? "0x",
43852
- value ? toHex(value) : "0x",
44090
+ value ? numberToHex(value) : "0x",
43853
44091
  data ?? "0x"
43854
44092
  ];
43855
44093
  if (signature) {
@@ -43871,14 +44109,14 @@ function serializeTransactionLegacy(transaction, signature) {
43871
44109
  const s = trim(signature.s);
43872
44110
  serializedTransaction = [
43873
44111
  ...serializedTransaction,
43874
- toHex(v2),
44112
+ numberToHex(v2),
43875
44113
  r === "0x00" ? "0x" : r,
43876
44114
  s === "0x00" ? "0x" : s
43877
44115
  ];
43878
44116
  } else if (chainId > 0) {
43879
44117
  serializedTransaction = [
43880
44118
  ...serializedTransaction,
43881
- toHex(chainId),
44119
+ numberToHex(chainId),
43882
44120
  "0x",
43883
44121
  "0x"
43884
44122
  ];
@@ -43898,12 +44136,12 @@ function toYParitySignatureArray(transaction, signature_) {
43898
44136
  const s = trim(signature.s);
43899
44137
  const yParity_ = (() => {
43900
44138
  if (typeof yParity === "number")
43901
- return yParity ? toHex(1) : "0x";
44139
+ return yParity ? numberToHex(1) : "0x";
43902
44140
  if (v2 === 0n)
43903
44141
  return "0x";
43904
44142
  if (v2 === 1n)
43905
- return toHex(1);
43906
- return v2 === 27n ? "0x" : toHex(1);
44143
+ return numberToHex(1);
44144
+ return v2 === 27n ? "0x" : numberToHex(1);
43907
44145
  })();
43908
44146
  return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
43909
44147
  }
@@ -44005,6 +44243,7 @@ function assertTransactionDeposit(transaction) {
44005
44243
  throw new InvalidAddressError({ address: to2 });
44006
44244
  }
44007
44245
  const chainConfig$2 = {
44246
+ blockTime: 2e3,
44008
44247
  contracts,
44009
44248
  formatters: formatters$1,
44010
44249
  serializers: serializers$1
@@ -44013,6 +44252,7 @@ const arbitrum = /* @__PURE__ */ defineChain({
44013
44252
  id: 42161,
44014
44253
  name: "Arbitrum One",
44015
44254
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
44255
+ blockTime: 250,
44016
44256
  rpcUrls: {
44017
44257
  default: {
44018
44258
  http: ["https://arb1.arbitrum.io/rpc"]
@@ -44035,6 +44275,7 @@ const arbitrum = /* @__PURE__ */ defineChain({
44035
44275
  const arbitrumSepolia = /* @__PURE__ */ defineChain({
44036
44276
  id: 421614,
44037
44277
  name: "Arbitrum Sepolia",
44278
+ blockTime: 250,
44038
44279
  nativeCurrency: {
44039
44280
  name: "Arbitrum Sepolia Ether",
44040
44281
  symbol: "ETH",
@@ -44160,6 +44401,15 @@ const base = /* @__PURE__ */ defineChain({
44160
44401
  },
44161
44402
  sourceId: sourceId$5
44162
44403
  });
44404
+ /* @__PURE__ */ defineChain({
44405
+ ...base,
44406
+ experimental_preconfirmationTime: 200,
44407
+ rpcUrls: {
44408
+ default: {
44409
+ http: ["https://mainnet-preconf.base.org"]
44410
+ }
44411
+ }
44412
+ });
44163
44413
  const sourceId$4 = 11155111;
44164
44414
  const baseSepolia = /* @__PURE__ */ defineChain({
44165
44415
  ...chainConfig$2,
@@ -44211,8 +44461,18 @@ const baseSepolia = /* @__PURE__ */ defineChain({
44211
44461
  testnet: true,
44212
44462
  sourceId: sourceId$4
44213
44463
  });
44464
+ /* @__PURE__ */ defineChain({
44465
+ ...baseSepolia,
44466
+ experimental_preconfirmationTime: 200,
44467
+ rpcUrls: {
44468
+ default: {
44469
+ http: ["https://sepolia-preconf.base.org"]
44470
+ }
44471
+ }
44472
+ });
44214
44473
  const sourceId$3 = 1;
44215
44474
  const blast = /* @__PURE__ */ defineChain({
44475
+ ...chainConfig$2,
44216
44476
  id: 81457,
44217
44477
  name: "Blast",
44218
44478
  nativeCurrency: {
@@ -44231,9 +44491,28 @@ const blast = /* @__PURE__ */ defineChain({
44231
44491
  }
44232
44492
  },
44233
44493
  contracts: {
44494
+ ...chainConfig$2.contracts,
44234
44495
  multicall3: {
44235
44496
  address: "0xcA11bde05977b3631167028862bE2a173976CA11",
44236
44497
  blockCreated: 212929
44498
+ },
44499
+ l2OutputOracle: {
44500
+ [sourceId$3]: {
44501
+ address: "0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",
44502
+ blockCreated: 19300358
44503
+ }
44504
+ },
44505
+ portal: {
44506
+ [sourceId$3]: {
44507
+ address: "0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",
44508
+ blockCreated: 19300357
44509
+ }
44510
+ },
44511
+ l1StandardBridge: {
44512
+ [sourceId$3]: {
44513
+ address: "0x697402166Fbf2F22E970df8a6486Ef171dbfc524",
44514
+ blockCreated: 19300360
44515
+ }
44237
44516
  }
44238
44517
  },
44239
44518
  sourceId: sourceId$3
@@ -44277,7 +44556,7 @@ const bsc = /* @__PURE__ */ defineChain({
44277
44556
  symbol: "BNB"
44278
44557
  },
44279
44558
  rpcUrls: {
44280
- default: { http: ["https://rpc.ankr.com/bsc"] }
44559
+ default: { http: ["https://56.rpc.thirdweb.com"] }
44281
44560
  },
44282
44561
  blockExplorers: {
44283
44562
  default: {
@@ -44295,7 +44574,7 @@ const bsc = /* @__PURE__ */ defineChain({
44295
44574
  });
44296
44575
  const bscTestnet = /* @__PURE__ */ defineChain({
44297
44576
  id: 97,
44298
- name: "Binance Smart Chain Testnet",
44577
+ name: "BNB Smart Chain Testnet",
44299
44578
  nativeCurrency: {
44300
44579
  decimals: 18,
44301
44580
  name: "BNB",
@@ -44333,13 +44612,13 @@ const fees = {
44333
44612
  var _a;
44334
44613
  if (!((_a = params.request) == null ? void 0 : _a.feeCurrency))
44335
44614
  return null;
44336
- const [maxFeePerGas, maxPriorityFeePerGas] = await Promise.all([
44615
+ const [gasPrice, maxPriorityFeePerGas] = await Promise.all([
44337
44616
  estimateFeePerGasInFeeCurrency(params.client, params.request.feeCurrency),
44338
44617
  estimateMaxPriorityFeePerGasInFeeCurrency(params.client, params.request.feeCurrency)
44339
44618
  ]);
44340
- const suggestedMaxFeePerGas = params.multiply(maxFeePerGas) + maxPriorityFeePerGas;
44619
+ const maxFeePerGas = params.multiply(gasPrice - maxPriorityFeePerGas) + maxPriorityFeePerGas;
44341
44620
  return {
44342
- maxFeePerGas: suggestedMaxFeePerGas,
44621
+ maxFeePerGas,
44343
44622
  maxPriorityFeePerGas
44344
44623
  };
44345
44624
  }
@@ -44391,8 +44670,7 @@ const formatters = {
44391
44670
  };
44392
44671
  });
44393
44672
  return {
44394
- transactions,
44395
- ...args.randomness ? { randomness: args.randomness } : {}
44673
+ transactions
44396
44674
  };
44397
44675
  }
44398
44676
  }),
@@ -44478,6 +44756,7 @@ function assertTransactionCIP64(transaction) {
44478
44756
  }
44479
44757
  }
44480
44758
  const chainConfig$1 = {
44759
+ blockTime: 1e3,
44481
44760
  contracts,
44482
44761
  formatters,
44483
44762
  serializers,
@@ -44519,7 +44798,7 @@ const fantom = /* @__PURE__ */ defineChain({
44519
44798
  symbol: "FTM"
44520
44799
  },
44521
44800
  rpcUrls: {
44522
- default: { http: ["https://rpc.ankr.com/fantom"] }
44801
+ default: { http: ["https://250.rpc.thirdweb.com"] }
44523
44802
  },
44524
44803
  blockExplorers: {
44525
44804
  default: {
@@ -44850,7 +45129,7 @@ async function estimateGas(client, args) {
44850
45129
  const account = parseAccount(account_);
44851
45130
  try {
44852
45131
  const { accessList, blockNumber, blockTag, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to: to2, value, ...rest } = args;
44853
- const blockNumberHex = blockNumber ? numberToHex(blockNumber) : void 0;
45132
+ const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : void 0;
44854
45133
  const block = blockNumberHex || blockTag;
44855
45134
  assertRequest(args);
44856
45135
  const chainFormat = (_c = (_b = (_a = client.chain) == null ? void 0 : _a.formatters) == null ? void 0 : _b.transactionRequest) == null ? void 0 : _c.format;
@@ -44903,7 +45182,7 @@ const chainConfig = {
44903
45182
  }
44904
45183
  }
44905
45184
  };
44906
- async function estimateFeesPerGas({ client, multiply, request, type: type2 }) {
45185
+ async function estimateFeesPerGas({ client, multiply, request, type }) {
44907
45186
  try {
44908
45187
  const response = await estimateGas(client, {
44909
45188
  ...request,
@@ -44912,7 +45191,7 @@ async function estimateFeesPerGas({ client, multiply, request, type: type2 }) {
44912
45191
  const { priorityFeePerGas: maxPriorityFeePerGas } = response;
44913
45192
  const baseFeePerGas = multiply(BigInt(response.baseFeePerGas));
44914
45193
  const maxFeePerGas = baseFeePerGas + maxPriorityFeePerGas;
44915
- if (type2 === "legacy")
45194
+ if (type === "legacy")
44916
45195
  return { gasPrice: maxFeePerGas };
44917
45196
  return {
44918
45197
  maxFeePerGas,
@@ -44944,8 +45223,17 @@ const linea = /* @__PURE__ */ defineChain({
44944
45223
  multicall3: {
44945
45224
  address: "0xcA11bde05977b3631167028862bE2a173976CA11",
44946
45225
  blockCreated: 42
45226
+ },
45227
+ ensRegistry: {
45228
+ address: "0x50130b669B28C339991d8676FA73CF122a121267",
45229
+ blockCreated: 6682888
45230
+ },
45231
+ ensUniversalResolver: {
45232
+ address: "0x3aA974fb3f8C1E02796048BDCdeD79e9D53a6965",
45233
+ blockCreated: 6683e3
44947
45234
  }
44948
45235
  },
45236
+ ensTlds: [".linea.eth"],
44949
45237
  testnet: false
44950
45238
  });
44951
45239
  const lineaSepolia = /* @__PURE__ */ defineChain({
@@ -44970,8 +45258,17 @@ const lineaSepolia = /* @__PURE__ */ defineChain({
44970
45258
  multicall3: {
44971
45259
  address: "0xca11bde05977b3631167028862be2a173976ca11",
44972
45260
  blockCreated: 227427
45261
+ },
45262
+ ensRegistry: {
45263
+ address: "0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7",
45264
+ blockCreated: 2395094
45265
+ },
45266
+ ensUniversalResolver: {
45267
+ address: "0x72560a31B3DAEE82B984a7F51c6b3b1bb7CC9F50",
45268
+ blockCreated: 2395255
44973
45269
  }
44974
45270
  },
45271
+ ensTlds: [".linea.eth"],
44975
45272
  testnet: true
44976
45273
  });
44977
45274
  const mainnet = /* @__PURE__ */ defineChain({
@@ -44980,7 +45277,7 @@ const mainnet = /* @__PURE__ */ defineChain({
44980
45277
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
44981
45278
  rpcUrls: {
44982
45279
  default: {
44983
- http: ["https://cloudflare-eth.com"]
45280
+ http: ["https://eth.merkle.io"]
44984
45281
  }
44985
45282
  },
44986
45283
  blockExplorers: {
@@ -45212,7 +45509,7 @@ const polygonMumbai = /* @__PURE__ */ defineChain({
45212
45509
  nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 },
45213
45510
  rpcUrls: {
45214
45511
  default: {
45215
- http: ["https://rpc.ankr.com/polygon_mumbai"]
45512
+ http: ["https://80001.rpc.thirdweb.com"]
45216
45513
  }
45217
45514
  },
45218
45515
  blockExplorers: {
@@ -45282,7 +45579,7 @@ const sepolia = /* @__PURE__ */ defineChain({
45282
45579
  },
45283
45580
  testnet: true
45284
45581
  });
45285
- const version$1 = "2.16.0";
45582
+ const version$1 = "2.19.0";
45286
45583
  const getVersion = () => `@wagmi/core@${version$1}`;
45287
45584
  var __classPrivateFieldGet = function(receiver, state, kind, f2) {
45288
45585
  if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a getter");
@@ -45434,7 +45731,11 @@ async function getConnectorClient(config2, parameters = {}) {
45434
45731
  if (config2.state.status === "reconnecting" && !connector2.getAccounts && !connector2.getChainId)
45435
45732
  throw new ConnectorUnavailableReconnectingError({ connector: connector2 });
45436
45733
  const [accounts, chainId2] = await Promise.all([
45437
- connector2.getAccounts(),
45734
+ connector2.getAccounts().catch((e) => {
45735
+ if (parameters.account === null)
45736
+ return [];
45737
+ throw e;
45738
+ }),
45438
45739
  connector2.getChainId()
45439
45740
  ]);
45440
45741
  connection = {
@@ -45457,7 +45758,8 @@ async function getConnectorClient(config2, parameters = {}) {
45457
45758
  if (connector.getClient)
45458
45759
  return connector.getClient({ chainId });
45459
45760
  const account = parseAccount(parameters.account ?? connection.accounts[0]);
45460
- account.address = getAddress(account.address);
45761
+ if (account)
45762
+ account.address = getAddress(account.address);
45461
45763
  if (parameters.account && !connection.accounts.some((x2) => x2.toLowerCase() === account.address.toLowerCase()))
45462
45764
  throw new ConnectorAccountNotFoundError({
45463
45765
  address: account.address,
@@ -45679,7 +45981,7 @@ function walletConnect(parameters) {
45679
45981
  const optionalChains = config2.chains.map((x2) => x2.id);
45680
45982
  if (!optionalChains.length)
45681
45983
  return;
45682
- const { EthereumProvider } = await import("./index.es-D8nY1geH.js");
45984
+ const { EthereumProvider } = await import("./index.es-LTt2Eg_D.js").then((n) => n.i);
45683
45985
  return await EthereumProvider.init({
45684
45986
  ...parameters,
45685
45987
  disableProviderPing: true,
@@ -46072,8 +46374,8 @@ const gasOnReceiveRouteRequestAtom = atom$1((get) => {
46072
46374
  })();
46073
46375
  const destinationFeeAssets = (() => {
46074
46376
  var _a2;
46377
+ const assets2 = get(skipAssetsAtom);
46075
46378
  if ((destinationChain == null ? void 0 : destinationChain.chainType) === ChainType.Evm) {
46076
- const assets2 = get(skipAssetsAtom);
46077
46379
  const evmFeeAsset = (_a2 = assets2.data) == null ? void 0 : _a2.find(
46078
46380
  (asset) => asset.chain_key === (destinationChain == null ? void 0 : destinationChain.chainId) && asset.denom.includes("-native")
46079
46381
  );
@@ -46082,12 +46384,15 @@ const gasOnReceiveRouteRequestAtom = atom$1((get) => {
46082
46384
  }
46083
46385
  }
46084
46386
  return destinationChain == null ? void 0 : destinationChain.feeAssets.map((asset) => {
46085
- var _a3, _b2, _c2;
46086
- const gasPrice = ((_a3 = asset.gasPrice) == null ? void 0 : _a3.average) ?? ((_b2 = asset.gasPrice) == null ? void 0 : _b2.high) ?? ((_c2 = asset.gasPrice) == null ? void 0 : _c2.low);
46387
+ var _a3, _b2, _c2, _d2;
46388
+ const destinationFeeAsset = (_a3 = assets2.data) == null ? void 0 : _a3.find(
46389
+ (a) => a.chain_key === (destinationChain == null ? void 0 : destinationChain.chainId) && a.denom === asset.denom
46390
+ );
46391
+ const gasPrice = ((_b2 = asset.gasPrice) == null ? void 0 : _b2.average) ?? ((_c2 = asset.gasPrice) == null ? void 0 : _c2.high) ?? ((_d2 = asset.gasPrice) == null ? void 0 : _d2.low);
46087
46392
  return {
46088
46393
  amountOut: gasPrice && convertHumanReadableAmountToCryptoAmount(
46089
46394
  BigNumber(gasPrice).multipliedBy(3).toNumber(),
46090
- destinationAsset == null ? void 0 : destinationAsset.decimals
46395
+ destinationFeeAsset == null ? void 0 : destinationFeeAsset.decimals
46091
46396
  ),
46092
46397
  denom: asset.denom
46093
46398
  };
@@ -46158,6 +46463,7 @@ const gasOnReceiveAtomEffect = atomEffect((get, set) => {
46158
46463
  }
46159
46464
  });
46160
46465
  const gasOnReceiveRouteAtom = atomWithQuery((get) => {
46466
+ var _a;
46161
46467
  const { data: chains2 } = get(skipChainsAtom);
46162
46468
  const { data: originalRoute } = get(skipRouteAtom);
46163
46469
  const params = get(skipRouteRequestAtom);
@@ -46171,17 +46477,19 @@ const gasOnReceiveRouteAtom = atomWithQuery((get) => {
46171
46477
  const chainAddresses = get(chainAddressesAtom);
46172
46478
  const chainAddressesArray = Object.values(chainAddresses);
46173
46479
  const destination = chainAddressesArray == null ? void 0 : chainAddressesArray[chainAddressesArray.length - 1];
46480
+ const sourceAddress = (_a = chainAddressesArray == null ? void 0 : chainAddressesArray[0]) == null ? void 0 : _a.address;
46174
46481
  const destinationAddress = destination == null ? void 0 : destination.address;
46175
46482
  const enabledDestinationChainType = [ChainType.Cosmos, ChainType.Evm];
46176
46483
  const disabledChainIds = ["1", "solana"];
46177
46484
  const chain = chains2 == null ? void 0 : chains2.find((i) => i.chainId === (destination == null ? void 0 : destination.chainId));
46178
46485
  const isRouteEnabled = (() => {
46179
46486
  if (!chain) return false;
46180
- if (!enabledDestinationChainType.includes(chain.chainType)) return false;
46181
46487
  if (disabledChainIds.includes(chain.chainId)) return false;
46488
+ if (!enabledDestinationChainType.includes(chain.chainType)) return false;
46182
46489
  return true;
46183
46490
  })();
46184
- const queryEnabled = originalRoute && currentPage === Routes.SwapExecutionPage && !destinationAssetIsAFeeAsset && !!destinationAddress && isRouteEnabled && !currentTransactionItem;
46491
+ const isSameChainAndAddress = (originalRoute == null ? void 0 : originalRoute.sourceAssetChainId) === (originalRoute == null ? void 0 : originalRoute.destAssetChainId) && sourceAddress === destinationAddress;
46492
+ const queryEnabled = originalRoute && currentPage === Routes.SwapExecutionPage && !destinationAssetIsAFeeAsset && !!destinationAddress && isRouteEnabled && !currentTransactionItem && !isSameChainAndAddress;
46185
46493
  return {
46186
46494
  enabled: queryEnabled,
46187
46495
  queryKey: [
@@ -46202,93 +46510,51 @@ const gasOnReceiveRouteAtom = atomWithQuery((get) => {
46202
46510
  refetchInterval: false,
46203
46511
  queryFn: async () => {
46204
46512
  if (!params) throw new Error("No route request provided");
46205
- let feeRoute;
46206
- if (destinationAssetIsAFeeAsset || !(gasOnReceiveRouteParams == null ? void 0 : gasOnReceiveRouteParams.destAssetDenoms) || gasOnReceiveRouteParams.destAssetDenoms.length === 0) {
46513
+ if (!originalRoute) return null;
46514
+ const routes = await getRouteWithGasOnReceive({
46515
+ routeRequest: {
46516
+ ...params,
46517
+ ...routeConfig,
46518
+ goFast: swapSettings.routePreference === RoutePreference.FASTEST
46519
+ },
46520
+ routeResponse: originalRoute
46521
+ });
46522
+ if (!routes.gasRoute) {
46207
46523
  return null;
46208
46524
  }
46209
- const {
46210
- destAssetDenoms,
46211
- amountIn: amountInFallback,
46212
- ...restParams
46213
- } = gasOnReceiveRouteParams;
46214
- const splitDenoms = chunkArray(destAssetDenoms);
46215
- for (const chunk of splitDenoms) {
46216
- const feeAssetRoutes = chunk.map(async ({ amountOut, denom }) => {
46217
- try {
46218
- const res = await route({
46219
- destAssetDenom: denom,
46220
- amountIn: amountOut ? void 0 : amountInFallback,
46221
- amountOut: amountOut ?? void 0,
46222
- ...restParams,
46223
- smartRelay: true,
46224
- ...routeConfig,
46225
- goFast: swapSettings.routePreference === RoutePreference.FASTEST,
46226
- allowMultiTx: false,
46227
- abortDuplicateRequests: true
46228
- });
46229
- return res;
46230
- } catch (_e2) {
46231
- return null;
46232
- }
46233
- });
46234
- const result = await Promise.all(feeAssetRoutes);
46235
- const _feeRoute = result.find((result2) => result2 == null ? void 0 : result2.usdAmountOut);
46236
- if (_feeRoute == null ? void 0 : _feeRoute.usdAmountOut) {
46237
- feeRoute = _feeRoute;
46238
- break;
46239
- }
46240
- }
46241
- if (!(feeRoute == null ? void 0 : feeRoute.amountOut) || !originalRoute) return null;
46242
- params.amountIn = BigNumber(originalRoute.amountIn ?? 0).minus(BigNumber((feeRoute == null ? void 0 : feeRoute.amountIn) ?? 0)).toString();
46243
- params.amountOut = void 0;
46244
- const mainRoute = await route({
46245
- ...params,
46246
- smartRelay: true,
46247
- ...routeConfig,
46248
- goFast: swapSettings.routePreference === RoutePreference.FASTEST,
46249
- abortDuplicateRequests: true
46250
- });
46251
- if (!mainRoute) return null;
46252
46525
  return {
46253
- mainRoute,
46254
- feeRoute,
46526
+ mainRoute: routes.mainRoute,
46527
+ gasRoute: routes.gasRoute,
46255
46528
  gasOnReceiveAsset: {
46256
- amountOut: feeRoute.amountOut,
46257
- amountUsd: feeRoute.usdAmountOut,
46258
- denom: feeRoute.destAssetDenom,
46259
- chainId: feeRoute.destAssetChainId
46529
+ amountOut: routes.gasRoute.amountOut,
46530
+ amountUsd: routes.gasRoute.usdAmountOut,
46531
+ denom: routes.gasRoute.destAssetDenom,
46532
+ chainId: routes.gasRoute.destAssetChainId
46260
46533
  }
46261
46534
  };
46262
46535
  }
46263
46536
  };
46264
46537
  });
46265
- const chunkArray = (arr, size2 = 3) => {
46266
- const result = [];
46267
- for (let i = 0; i < arr.length; i += size2) {
46268
- result.push(arr.slice(i, i + size2));
46269
- }
46270
- return result;
46271
- };
46272
46538
  const chainAddressesAtom = atom$1({});
46273
- const feeRouteChainAddressesAtom = atom$1({});
46274
- const feeRouteAddressesAtomEffect = atomEffect((get, set) => {
46539
+ const gasRouteChainAddressesAtom = atom$1({});
46540
+ const gasRouteAddressesAtomEffect = atomEffect((get, set) => {
46275
46541
  var _a;
46276
46542
  const isEnabled = get(gasOnReceiveAtom);
46277
46543
  const gasRoute = get(gasOnReceiveRouteAtom);
46278
46544
  const _chainAddresses = get(chainAddressesAtom);
46279
46545
  const chainAddresses = Object.values(_chainAddresses);
46280
46546
  const { data: chains2 } = get(skipChainsAtom);
46281
- if (isEnabled && ((_a = gasRoute.data) == null ? void 0 : _a.feeRoute)) {
46282
- gasRoute.data.feeRoute.requiredChainAddresses.forEach((chainId, i) => {
46547
+ if (isEnabled && ((_a = gasRoute.data) == null ? void 0 : _a.gasRoute)) {
46548
+ gasRoute.data.gasRoute.requiredChainAddresses.forEach((chainId, i) => {
46283
46549
  const chain = chains2 == null ? void 0 : chains2.find((c) => c.chainId === chainId);
46284
46550
  const findAddress = chainAddresses.find((address) => address.chainId === chainId);
46285
46551
  if (findAddress) {
46286
- set(feeRouteChainAddressesAtom, (prev2) => ({
46552
+ set(gasRouteChainAddressesAtom, (prev2) => ({
46287
46553
  ...prev2,
46288
46554
  [i]: findAddress
46289
46555
  }));
46290
46556
  } else {
46291
- set(feeRouteChainAddressesAtom, (prev2) => ({
46557
+ set(gasRouteChainAddressesAtom, (prev2) => ({
46292
46558
  ...prev2,
46293
46559
  [i]: {
46294
46560
  chainId,
@@ -46326,8 +46592,8 @@ const gasRouteEffect = atomEffect((get, set) => {
46326
46592
  return {
46327
46593
  ...prev2,
46328
46594
  mainRoute: gorRoute == null ? void 0 : gorRoute.mainRoute,
46329
- feeRoute: gorRoute == null ? void 0 : gorRoute.feeRoute,
46330
- isFeeRouteEnabled: isGorEnabled,
46595
+ gasRoute: gorRoute == null ? void 0 : gorRoute.gasRoute,
46596
+ isGasRouteEnabled: isGorEnabled,
46331
46597
  ...isGorEnabled && (gorRoute == null ? void 0 : gorRoute.mainRoute) ? {
46332
46598
  route: gorRoute.mainRoute,
46333
46599
  clientOperations: getClientOperations(gorRoute.mainRoute.operations)
@@ -46368,7 +46634,7 @@ const setSwapExecutionStateAtom = atom$1(null, (get, set) => {
46368
46634
  userAddresses: [],
46369
46635
  route: route2,
46370
46636
  originalRoute: route2,
46371
- feeRoute: void 0,
46637
+ gasRoute: void 0,
46372
46638
  mainRoute: void 0,
46373
46639
  clientOperations: getClientOperations(route2.operations),
46374
46640
  currentTransactionId: void 0
@@ -46376,11 +46642,11 @@ const setSwapExecutionStateAtom = atom$1(null, (get, set) => {
46376
46642
  set(submitSwapExecutionCallbacksAtom, {
46377
46643
  onRouteStatusUpdated: async (routeStatus) => {
46378
46644
  var _a2;
46379
- const failedFeeRoute = (_a2 = routeStatus == null ? void 0 : routeStatus.relatedRoutes) == null ? void 0 : _a2.find(
46645
+ const failedGasRoute = (_a2 = routeStatus == null ? void 0 : routeStatus.relatedRoutes) == null ? void 0 : _a2.find(
46380
46646
  (relatedRoute) => relatedRoute.status === "failed"
46381
46647
  );
46382
- if (failedFeeRoute) {
46383
- track("gas on receive: fee route failed", { feeRoute: failedFeeRoute });
46648
+ if (failedGasRoute) {
46649
+ track("gas on receive: fee route failed", { gasRoute: failedGasRoute });
46384
46650
  }
46385
46651
  set(setTransactionHistoryAtom, routeStatus);
46386
46652
  },
@@ -46511,8 +46777,8 @@ const userAddressesEffectAtom = atomEffect((get, set) => {
46511
46777
  userAddresses
46512
46778
  }));
46513
46779
  });
46514
- const feeRouteUserAddressesEffectAtom = atomEffect((get, set) => {
46515
- const chainAddresses = get(feeRouteChainAddressesAtom);
46780
+ const gasRouteUserAddressesEffectAtom = atomEffect((get, set) => {
46781
+ const chainAddresses = get(gasRouteChainAddressesAtom);
46516
46782
  const addressesMatch = Object.values(chainAddresses).every(
46517
46783
  (chainAddress) => !!chainAddress.address
46518
46784
  );
@@ -46525,7 +46791,7 @@ const feeRouteUserAddressesEffectAtom = atomEffect((get, set) => {
46525
46791
  });
46526
46792
  set(swapExecutionStateAtom, (prev2) => ({
46527
46793
  ...prev2,
46528
- feeRouteUserAddresses: userAddresses
46794
+ gasRouteUserAddresses: userAddresses
46529
46795
  }));
46530
46796
  });
46531
46797
  const submitSwapExecutionCallbacksAtom = atom$1();
@@ -46533,7 +46799,7 @@ const simulateTxAtom = atom$1();
46533
46799
  const batchSignTxsAtom = atom$1(true);
46534
46800
  const skipSubmitSwapExecutionAtom = atomWithMutation((get) => {
46535
46801
  var _a;
46536
- const { userAddresses, route: route2, mainRoute, feeRoute, isFeeRouteEnabled, feeRouteUserAddresses } = get(swapExecutionStateAtom);
46802
+ const { userAddresses, route: route2, mainRoute, gasRoute, isGasRouteEnabled, gasRouteUserAddresses } = get(swapExecutionStateAtom);
46537
46803
  const gorRoute = get(gasOnReceiveRouteAtom);
46538
46804
  const submitSwapExecutionCallbacks = get(submitSwapExecutionCallbacksAtom);
46539
46805
  const simulateTx = get(simulateTxAtom);
@@ -46606,27 +46872,27 @@ const skipSubmitSwapExecutionAtom = atomWithMutation((get) => {
46606
46872
  };
46607
46873
  };
46608
46874
  try {
46609
- if (isFeeRouteEnabled && mainRoute && feeRoute) {
46610
- if (!(feeRouteUserAddresses == null ? void 0 : feeRouteUserAddresses.length)) return;
46875
+ if (isGasRouteEnabled && mainRoute && gasRoute) {
46876
+ if (!(gasRouteUserAddresses == null ? void 0 : gasRouteUserAddresses.length)) return;
46611
46877
  track("execute route", {
46612
46878
  gasOnReceive: true,
46613
- isFeeRouteAvailable: true,
46879
+ isGasRouteAvailable: true,
46614
46880
  isDestinationFeeBalanceAvailable: isDestinationFeeBalanceAvailable.data,
46615
46881
  mainRoute,
46616
- feeRoute
46882
+ gasRoute
46617
46883
  });
46618
46884
  await executeMultipleRoutes({
46619
46885
  route: {
46620
46886
  mainRoute,
46621
- ...isFeeRouteEnabled ? { feeRoute } : {}
46887
+ ...isGasRouteEnabled ? { gasRoute } : {}
46622
46888
  },
46623
46889
  userAddresses: {
46624
46890
  mainRoute: userAddresses,
46625
- ...isFeeRouteEnabled ? { feeRoute: feeRouteUserAddresses } : {}
46891
+ ...isGasRouteEnabled ? { gasRoute: gasRouteUserAddresses } : {}
46626
46892
  },
46627
46893
  slippageTolerancePercent: {
46628
46894
  mainRoute: swapSettings.slippage.toString(),
46629
- ...isFeeRouteEnabled ? { feeRoute: "10" } : {}
46895
+ ...isGasRouteEnabled ? { gasRoute: "10" } : {}
46630
46896
  },
46631
46897
  ...createParams(mainRoute.sourceAssetChainId)
46632
46898
  });
@@ -46635,7 +46901,7 @@ const skipSubmitSwapExecutionAtom = atomWithMutation((get) => {
46635
46901
  if (!userAddresses.length) return;
46636
46902
  track("execute route", {
46637
46903
  gasOnReceive: false,
46638
- isFeeRouteAvailable: !!((_a2 = gorRoute.data) == null ? void 0 : _a2.gasOnReceiveAsset),
46904
+ isGasRouteAvailable: !!((_a2 = gorRoute.data) == null ? void 0 : _a2.gasOnReceiveAsset),
46639
46905
  isDestinationFeeBalanceAvailable: isDestinationFeeBalanceAvailable.data,
46640
46906
  mainRoute: route2
46641
46907
  });
@@ -46977,6 +47243,24 @@ const CogIcon = ({ color = "currentColor", ...props }) => /* @__PURE__ */ jsx(
46977
47243
  )
46978
47244
  }
46979
47245
  );
47246
+ const Container$2 = dt.div`
47247
+ position: relative;
47248
+ display: flex;
47249
+ gap: ${({ gap = 10 }) => convertToPxValue(gap)};
47250
+ flex-direction: ${({ flexDirection }) => flexDirection ?? "column"};
47251
+ height: ${({ height = "auto" }) => convertToPxValue(height)};
47252
+ width: ${({ width = "100%" }) => convertToPxValue(width)};
47253
+ padding: ${({ padding = 20 }) => convertToPxValue(padding)};
47254
+ border-radius: ${({ theme, borderRadius }) => {
47255
+ var _a;
47256
+ if (!borderRadius) return convertToPxValue((_a = theme.borderRadius) == null ? void 0 : _a.main);
47257
+ if (typeof borderRadius === "string" && theme.borderRadius && borderRadius in theme.borderRadius) {
47258
+ return convertToPxValue(theme.borderRadius[borderRadius]);
47259
+ }
47260
+ return convertToPxValue(borderRadius);
47261
+ }};
47262
+ background: ${({ theme, backgroundColor }) => backgroundColor ?? theme.primary.background.normal};
47263
+ `;
46980
47264
  const Modal = ({ children, drawer, container, onOpenChange, theme }) => {
46981
47265
  const [prevOverflowStyle, setPrevOverflowStyle] = useState("");
46982
47266
  const modalRef = useRef(null);
@@ -47060,7 +47344,9 @@ const createModal = (component) => {
47060
47344
  ErrorBoundary,
47061
47345
  {
47062
47346
  fallback: null,
47063
- onError: (error) => setErrorWarning({ errorWarningType: ErrorWarningType.Unexpected, error }),
47347
+ onError: (error) => {
47348
+ setErrorWarning({ errorWarningType: ErrorWarningType.Unexpected, error });
47349
+ },
47064
47350
  children: /* @__PURE__ */ jsx(Component, { ...props })
47065
47351
  }
47066
47352
  ) });
@@ -47177,18 +47463,10 @@ const StyledModalInnerContainer = dt(Column)`
47177
47463
  align-items: center;
47178
47464
  justify-content: center;
47179
47465
  `;
47180
- const StyledModalContainer = dt(Column)`
47181
- position: relative;
47182
- padding: 10px;
47183
- gap: 10px;
47184
- width: calc(100% - 20px);
47185
- border-radius: ${({ theme }) => {
47186
- var _a;
47187
- return convertToPxValue((_a = theme.borderRadius) == null ? void 0 : _a.modalContainer);
47188
- }};
47189
- background: ${({ theme }) => theme.primary.background.normal};
47190
- height: 100%;
47191
- `;
47466
+ const StyledModalContainer = dt(Container$2).attrs({
47467
+ borderRadius: "modalContainer",
47468
+ padding: 10
47469
+ })``;
47192
47470
  const ModalRowItem = ({
47193
47471
  leftContent,
47194
47472
  rightContent,
@@ -47432,26 +47710,26 @@ const CopyIcon = ({
47432
47710
  )
47433
47711
  }
47434
47712
  );
47435
- const useCopyAddress = () => {
47436
- const [isShowingCopyAddressFeedback, setIsShowingCopyAddressFeedback] = useState(false);
47713
+ const useClipboard = () => {
47714
+ const [isCopied, setIsShowingCopied] = useState(false);
47437
47715
  const [copyAddressTimeout, setCopyAddressTimeout] = useState();
47438
47716
  useEffect(() => {
47439
47717
  return () => {
47440
47718
  clearTimeout(copyAddressTimeout);
47441
47719
  };
47442
47720
  }, [copyAddressTimeout]);
47443
- const copyAddress = (address) => {
47444
- if (!address) return;
47445
- copyToClipboard(address);
47446
- setIsShowingCopyAddressFeedback(true);
47721
+ const saveToClipboard = (text) => {
47722
+ if (!text) return;
47723
+ copyToClipboard(text);
47724
+ setIsShowingCopied(true);
47447
47725
  const timeout = setTimeout(() => {
47448
- setIsShowingCopyAddressFeedback(false);
47726
+ setIsShowingCopied(false);
47449
47727
  }, 1e3);
47450
47728
  setCopyAddressTimeout(timeout);
47451
47729
  };
47452
47730
  return {
47453
- copyAddress,
47454
- isShowingCopyAddressFeedback
47731
+ saveToClipboard,
47732
+ isCopied
47455
47733
  };
47456
47734
  };
47457
47735
  const useGetBalance = () => {
@@ -47666,7 +47944,7 @@ const SwapExecutionPageRouteDetailedRow = ({
47666
47944
  var _a, _b;
47667
47945
  const theme = nt();
47668
47946
  const isMobileScreenSize = useIsMobileScreenSize();
47669
- const { copyAddress, isShowingCopyAddressFeedback } = useCopyAddress();
47947
+ const { saveToClipboard: copyAddress, isCopied: isShowingCopyAddressFeedback } = useClipboard();
47670
47948
  const assetDetails = useGetAssetDetails({
47671
47949
  assetDenom: denom,
47672
47950
  chainId,
@@ -47996,7 +48274,7 @@ const WalletRowItem = ({
47996
48274
  rightContent
47997
48275
  }) => {
47998
48276
  var _a;
47999
- const name2 = isMinimalWallet(wallet) ? wallet.walletPrettyName ?? wallet.walletName : wallet.walletName;
48277
+ const name = isMinimalWallet(wallet) ? wallet.walletPrettyName ?? wallet.walletName : wallet.walletName;
48000
48278
  const imageUrl = isMinimalWallet(wallet) ? (_a = wallet.walletInfo) == null ? void 0 : _a.logo : void 0;
48001
48279
  const isAvailable = isMinimalWallet(wallet) ? wallet.isAvailable : void 0;
48002
48280
  const croppedImage = useCroppedImage(imageUrl);
@@ -48010,17 +48288,17 @@ const WalletRowItem = ({
48010
48288
  width: 35,
48011
48289
  style: { objectFit: "cover" },
48012
48290
  src: croppedImage,
48013
- alt: `${name2}-logo`
48291
+ alt: `${name}-logo`
48014
48292
  }
48015
48293
  );
48016
48294
  } else {
48017
48295
  return /* @__PURE__ */ jsx(SkeletonElement, { width: 35, height: 35 });
48018
48296
  }
48019
- }, [croppedImage, name2, wallet]);
48297
+ }, [croppedImage, name, wallet]);
48020
48298
  const leftContent = /* @__PURE__ */ jsxs(Row, { style: { width: "100%" }, align: "center", justify: "space-between", children: [
48021
48299
  /* @__PURE__ */ jsxs(Row, { align: "center", gap: 10, children: [
48022
48300
  renderWalletImage,
48023
- /* @__PURE__ */ jsx(Text, { children: name2 })
48301
+ /* @__PURE__ */ jsx(Text, { children: name })
48024
48302
  ] }),
48025
48303
  isAvailable !== void 0 && /* @__PURE__ */ jsx(SmallText, { children: isAvailable ? "Installed" : "Not Installed" })
48026
48304
  ] });
@@ -48032,7 +48310,7 @@ const WalletRowItem = ({
48032
48310
  leftContent,
48033
48311
  rightContent
48034
48312
  },
48035
- name2
48313
+ name
48036
48314
  );
48037
48315
  };
48038
48316
  const RenderWalletList = ({
@@ -48772,7 +49050,7 @@ const ConnectEcoRow = ({
48772
49050
  connectedWalletModal = false
48773
49051
  }) => {
48774
49052
  var _a, _b;
48775
- const { copyAddress, isShowingCopyAddressFeedback } = useCopyAddress();
49053
+ const { saveToClipboard: copyAddress, isCopied: isShowingCopyAddressFeedback } = useClipboard();
48776
49054
  const { data: cosmosAccounts } = useAccount$1({
48777
49055
  multiChain: true
48778
49056
  });
@@ -49379,7 +49657,7 @@ const SwapSettingsDrawer = createModal(() => {
49379
49657
  if (!route2) return [];
49380
49658
  return getFeeList(route2);
49381
49659
  }, [route2]);
49382
- return /* @__PURE__ */ jsxs(StyledSwapPageSettings, { gap: 15, children: [
49660
+ return /* @__PURE__ */ jsxs(Container$2, { gap: 15, borderRadius: "modalContainer", children: [
49383
49661
  /* @__PURE__ */ jsxs(Column, { gap: 10, children: [
49384
49662
  route2 && /* @__PURE__ */ jsxs(Row, { justify: "space-between", align: "center", children: [
49385
49663
  /* @__PURE__ */ jsx(SwapDetailText, { children: "Route" }),
@@ -49451,15 +49729,6 @@ const SwapSettingsDrawer = createModal(() => {
49451
49729
  ) })
49452
49730
  ] });
49453
49731
  });
49454
- const StyledSwapPageSettings = dt(Column)`
49455
- width: 100%;
49456
- padding: 20px;
49457
- border-radius: ${({ theme }) => {
49458
- var _a;
49459
- return convertToPxValue((_a = theme.borderRadius) == null ? void 0 : _a.modalContainer);
49460
- }};
49461
- background: ${(props) => props.theme.primary.background.normal};
49462
- `;
49463
49732
  const SwapDetailText = dt(Row).attrs({
49464
49733
  as: SmallText,
49465
49734
  normalTextColor: true
@@ -50205,10 +50474,11 @@ const AssetAndChainSelectorModalSearchInput = ({
50205
50474
  onClickBack,
50206
50475
  searchTerm,
50207
50476
  setSearchTerm,
50208
- onKeyDown
50477
+ onKeyDown,
50478
+ overrideSelectedGroup
50209
50479
  }) => {
50210
50480
  const theme = nt();
50211
- const asset = groupedAsset == null ? void 0 : groupedAsset.assets[0];
50481
+ const asset = !overrideSelectedGroup && (groupedAsset == null ? void 0 : groupedAsset.assets[0]);
50212
50482
  const isMobileScreenSize = useIsMobileScreenSize();
50213
50483
  const mobile = isMobile();
50214
50484
  const inputRef = useRef(null);
@@ -50226,6 +50496,10 @@ const AssetAndChainSelectorModalSearchInput = ({
50226
50496
  (_a = inputRef.current) == null ? void 0 : _a.focus();
50227
50497
  }, 0);
50228
50498
  }, [asset, isMobileScreenSize, mobile]);
50499
+ const placeholder = useMemo(() => {
50500
+ if (overrideSelectedGroup || asset) return "Search networks";
50501
+ return "Search for an asset";
50502
+ }, [overrideSelectedGroup, asset]);
50229
50503
  return /* @__PURE__ */ jsxs(StyledSearchInputContainer, { align: "center", gap: 5, children: [
50230
50504
  asset ? /* @__PURE__ */ jsxs(Fragment, { children: [
50231
50505
  /* @__PURE__ */ jsx(Button, { onClick: onClickBack, children: /* @__PURE__ */ jsx(StyledLeftArrowIcon, { color: theme.primary.text.normal, maskedVersion: false }) }),
@@ -50240,7 +50514,7 @@ const AssetAndChainSelectorModalSearchInput = ({
50240
50514
  ref: inputRef,
50241
50515
  style: { paddingLeft: asset ? void 0 : 30 },
50242
50516
  type: "text",
50243
- placeholder: asset ? "Search networks" : "Search for an asset",
50517
+ placeholder,
50244
50518
  value: searchTerm,
50245
50519
  onChange: handleSearch,
50246
50520
  onKeyDown
@@ -50295,7 +50569,13 @@ const ITEM_HEIGHT = 65;
50295
50569
  const AssetAndChainSelectorModal = createModal(
50296
50570
  (modalProps) => {
50297
50571
  const modal = useModal();
50298
- const { onSelect: _onSelect, selectedAsset, selectChain, context } = modalProps;
50572
+ const {
50573
+ onSelect: _onSelect,
50574
+ selectedAsset,
50575
+ selectChain,
50576
+ context,
50577
+ overrideSelectedGroup
50578
+ } = modalProps;
50299
50579
  const { data: assets2, isFetching, isPending } = useAtomValue(skipAssetsAtom);
50300
50580
  const ibcEurekaHighlightedAssets = useAtomValue(ibcEurekaHighlightedAssetsAtom);
50301
50581
  const { isLoading: isChainsLoading } = useAtomValue(skipChainsAtom);
@@ -50326,12 +50606,18 @@ const AssetAndChainSelectorModal = createModal(
50326
50606
  );
50327
50607
  const groupedAssetsByRecommendedSymbol = useGroupedAssetByRecommendedSymbol({ context });
50328
50608
  const selectedGroup = useMemo(() => {
50609
+ if (overrideSelectedGroup) return overrideSelectedGroup;
50329
50610
  const asset = (groupedAssetSelected == null ? void 0 : groupedAssetSelected.assets[0]) || selectedAsset;
50330
50611
  if (!asset) return;
50331
50612
  return groupedAssetsByRecommendedSymbol == null ? void 0 : groupedAssetsByRecommendedSymbol.find(
50332
50613
  (group) => group.id === asset.recommendedSymbol
50333
50614
  );
50334
- }, [groupedAssetSelected == null ? void 0 : groupedAssetSelected.assets, selectedAsset, groupedAssetsByRecommendedSymbol]);
50615
+ }, [
50616
+ overrideSelectedGroup,
50617
+ groupedAssetSelected == null ? void 0 : groupedAssetSelected.assets,
50618
+ selectedAsset,
50619
+ groupedAssetsByRecommendedSymbol
50620
+ ]);
50335
50621
  const filteredAssets = useFilteredAssets({ groupedAssetsByRecommendedSymbol, searchQuery });
50336
50622
  const filteredChains = useFilteredChains({
50337
50623
  selectedGroup,
@@ -50411,7 +50697,8 @@ const AssetAndChainSelectorModal = createModal(
50411
50697
  groupedAsset: groupedAssetSelected ?? selectedGroup,
50412
50698
  searchTerm: searchQuery,
50413
50699
  setSearchTerm: setSearchQuery,
50414
- onKeyDown
50700
+ onKeyDown,
50701
+ overrideSelectedGroup: !!overrideSelectedGroup
50415
50702
  }
50416
50703
  ),
50417
50704
  showSkeleton || !filteredAssets && !filteredChains ? /* @__PURE__ */ jsx(StyledColumn, { height: listHeight, children: Array.from({ length: 8 }, (_2, index) => /* @__PURE__ */ jsx(Skeleton, {}, index)) }) : /* @__PURE__ */ jsx(
@@ -50504,9 +50791,9 @@ var WalletSource = /* @__PURE__ */ ((WalletSource2) => {
50504
50791
  const SetAddressModal = createModal((modalProps) => {
50505
50792
  var _a, _b, _c;
50506
50793
  const isMobileScreenSize = useIsMobileScreenSize();
50507
- const { chainId, chainAddressIndex, isFeeRoute } = modalProps;
50508
- const { route: route2, feeRoute } = useAtomValue(swapExecutionStateAtom);
50509
- const requiredChainAddresses = isFeeRoute ? feeRoute == null ? void 0 : feeRoute.requiredChainAddresses : route2 == null ? void 0 : route2.requiredChainAddresses;
50794
+ const { chainId, chainAddressIndex, isGasRoute } = modalProps;
50795
+ const { route: route2, gasRoute } = useAtomValue(swapExecutionStateAtom);
50796
+ const requiredChainAddresses = isGasRoute ? gasRoute == null ? void 0 : gasRoute.requiredChainAddresses : route2 == null ? void 0 : route2.requiredChainAddresses;
50510
50797
  if (modalProps.chainAddressIndex === void 0) {
50511
50798
  throw new Error("chain address index cannot be undefined");
50512
50799
  }
@@ -50519,9 +50806,9 @@ const SetAddressModal = createModal((modalProps) => {
50519
50806
  const [manualWalletAddress, setManualWalletAddress] = useState("");
50520
50807
  const _walletList = useWalletList({ chainId, destinationWalletList: true });
50521
50808
  const [_chainAddresses, _setChainAddresses] = useAtom(chainAddressesAtom);
50522
- const [feeRouteChainAddresses, setFeeRouteChainAddresses] = useAtom(feeRouteChainAddressesAtom);
50523
- const chainAddresses = isFeeRoute ? feeRouteChainAddresses : _chainAddresses;
50524
- const setChainAddresses = isFeeRoute ? setFeeRouteChainAddresses : _setChainAddresses;
50809
+ const [gasRouteChainAddresses, setGasRouteChainAddresses] = useAtom(gasRouteChainAddressesAtom);
50810
+ const chainAddresses = isGasRoute ? gasRouteChainAddresses : _chainAddresses;
50811
+ const setChainAddresses = isGasRoute ? setGasRouteChainAddresses : _setChainAddresses;
50525
50812
  const showWithdrawalWarning = new Set(Object.values(chainAddresses).map(({ chainId: chainId2 }) => chainId2)).size > 1;
50526
50813
  const mobile = isMobile();
50527
50814
  const manualWalletEntry = {
@@ -51184,7 +51471,7 @@ const SwapExecutionPageRouteSimpleRow = ({
51184
51471
  }) => {
51185
51472
  const theme = nt();
51186
51473
  const isMobileScreenSize = useIsMobileScreenSize();
51187
- const { copyAddress, isShowingCopyAddressFeedback } = useCopyAddress();
51474
+ const { saveToClipboard: copyAddress, isCopied: isShowingCopyAddressFeedback } = useClipboard();
51188
51475
  const assetDetails = useGetAssetDetails({
51189
51476
  assetDenom: denom,
51190
51477
  chainId,
@@ -51192,20 +51479,20 @@ const SwapExecutionPageRouteSimpleRow = ({
51192
51479
  });
51193
51480
  const groupedAssets = useGroupedAssetByRecommendedSymbol();
51194
51481
  const groupedAsset = groupedAssets == null ? void 0 : groupedAssets.find((i) => i.id === (assetDetails == null ? void 0 : assetDetails.symbol));
51195
- const { feeRoute } = useAtomValue(swapExecutionStateAtom);
51482
+ const { gasRoute } = useAtomValue(swapExecutionStateAtom);
51196
51483
  const isGorEnabled = useAtomValue(gasOnReceiveAtom);
51197
51484
  const { data: assets2 } = useAtomValue(skipAssetsAtom);
51198
51485
  const gasOnReceiveAsset = useMemo(() => {
51199
51486
  const gasAsset = {
51200
- chainId: feeRoute == null ? void 0 : feeRoute.destAssetChainId,
51201
- denom: feeRoute == null ? void 0 : feeRoute.destAssetDenom
51487
+ chainId: gasRoute == null ? void 0 : gasRoute.destAssetChainId,
51488
+ denom: gasRoute == null ? void 0 : gasRoute.destAssetDenom
51202
51489
  };
51203
51490
  if (!gasAsset) return;
51204
51491
  const asset = assets2 == null ? void 0 : assets2.find(
51205
51492
  (a) => a.chainId === (gasAsset == null ? void 0 : gasAsset.chainId) && a.denom === (gasAsset == null ? void 0 : gasAsset.denom)
51206
51493
  );
51207
51494
  return asset;
51208
- }, [assets2, feeRoute == null ? void 0 : feeRoute.destAssetChainId, feeRoute == null ? void 0 : feeRoute.destAssetDenom]);
51495
+ }, [assets2, gasRoute == null ? void 0 : gasRoute.destAssetChainId, gasRoute == null ? void 0 : gasRoute.destAssetDenom]);
51209
51496
  const chainAddresses = useAtomValue(chainAddressesAtom);
51210
51497
  const source = useMemo(() => {
51211
51498
  var _a, _b;
@@ -51241,11 +51528,11 @@ const SwapExecutionPageRouteSimpleRow = ({
51241
51528
  if (!isGorEnabled) return;
51242
51529
  if (context === "source") return;
51243
51530
  if (!gasOnReceiveAsset) return;
51244
- const amountUsd = feeRoute == null ? void 0 : feeRoute.usdAmountOut;
51531
+ const amountUsd = gasRoute == null ? void 0 : gasRoute.usdAmountOut;
51245
51532
  if (!amountUsd) return;
51246
51533
  const assetSymbol = ((_a = gasOnReceiveAsset == null ? void 0 : gasOnReceiveAsset.recommendedSymbol) == null ? void 0 : _a.toUpperCase()) ?? "";
51247
51534
  return `+ ${formatUSD(amountUsd)} in ${assetSymbol}`;
51248
- }, [context, feeRoute == null ? void 0 : feeRoute.usdAmountOut, gasOnReceiveAsset, isGorEnabled]);
51535
+ }, [context, gasRoute == null ? void 0 : gasRoute.usdAmountOut, gasOnReceiveAsset, isGorEnabled]);
51249
51536
  const renderExplorerLink = useMemo(() => {
51250
51537
  if (!explorerLink) return;
51251
51538
  if (isMobileScreenSize) {
@@ -51602,21 +51889,21 @@ const SwapExecutionPageRouteDetailed = ({
51602
51889
  (operation) => {
51603
51890
  const simpleOperationType = operationTypeToSimpleOperationType[operation.type];
51604
51891
  const bridgeOrSwapVenue = getBridgeSwapVenue(operation);
51892
+ const isBankSend = operation.type === OperationType.bankSend;
51893
+ const tooltipText = isBankSend ? `${simpleOperationType} with BankSend` : `${simpleOperationType} with ${bridgeOrSwapVenue.name}`;
51605
51894
  return /* @__PURE__ */ jsx(StyledOperationTypeAndTooltipContainer, { align: "center", children: /* @__PURE__ */ jsx(
51606
51895
  Tooltip,
51607
51896
  {
51608
51897
  content: /* @__PURE__ */ jsxs(SmallText, { normalTextColor: true, textWrap: "nowrap", children: [
51609
- simpleOperationType,
51610
- " with ",
51611
- bridgeOrSwapVenue.name,
51612
- bridgeOrSwapVenue.isSvg ? /* @__PURE__ */ jsx(StyledSwapVenueOrBridgeSvg, { svg: bridgeOrSwapVenue.image }) : /* @__PURE__ */ jsx(
51898
+ tooltipText,
51899
+ !isBankSend && bridgeOrSwapVenue.isSvg ? /* @__PURE__ */ jsx(StyledSwapVenueOrBridgeSvg, { svg: bridgeOrSwapVenue.image }) : !isBankSend && bridgeOrSwapVenue.image ? /* @__PURE__ */ jsx(
51613
51900
  StyledSwapVenueOrBridgeImage,
51614
51901
  {
51615
51902
  width: "10",
51616
51903
  height: "10",
51617
51904
  src: bridgeOrSwapVenue.image
51618
51905
  }
51619
- )
51906
+ ) : null
51620
51907
  ] }),
51621
51908
  children: /* @__PURE__ */ jsx(OperationTypeIconContainer, { justify: "center", children: operationTypeToIcon[operation.type] })
51622
51909
  }
@@ -51749,16 +52036,12 @@ const SwapExecutionPageRouteContainer = ({
51749
52036
  /* @__PURE__ */ jsx(StyledRouteWrapper, { ref: detailedRef, isVisible: showDetailed, isActive: showDetailed, children: /* @__PURE__ */ jsx(SwapExecutionPageRouteDetailed, { ...routeProps }) })
51750
52037
  ] });
51751
52038
  };
51752
- const StyledContainer$1 = dt.div`
51753
- position: relative;
52039
+ const StyledContainer$1 = dt(Container$2).attrs({
52040
+ padding: 0
52041
+ })`
51754
52042
  overflow: hidden;
51755
52043
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
51756
52044
  min-height: 225px;
51757
- background: ${({ theme }) => theme.primary.background.normal};
51758
- border-radius: ${({ theme }) => {
51759
- var _a;
51760
- return convertToPxValue((_a = theme.borderRadius) == null ? void 0 : _a.main);
51761
- }};
51762
52045
  `;
51763
52046
  const StyledRouteWrapper = dt.div`
51764
52047
  position: ${({ isActive: $isActive }) => $isActive ? "relative" : "absolute"};
@@ -51990,12 +52273,12 @@ function useSwapExecutionState({
51990
52273
  requiredChainAddresses,
51991
52274
  isGettingAddressesLoading,
51992
52275
  isFetchingDestinationBalance,
51993
- feeRouteChainAddresses,
51994
- feeRouteRequiredChainAddresses,
51995
- isGettingFeeRouteAddressesLoading
52276
+ gasRouteChainAddresses,
52277
+ gasRouteRequiredChainAddresses,
52278
+ isGettingGasRouteAddressesLoading
51996
52279
  }) {
51997
52280
  const currentTransaction = useAtomValue(currentTransactionAtom);
51998
- const isFeeRouteEnabled = useAtomValue(gasOnReceiveAtom);
52281
+ const isGasRouteEnabled = useAtomValue(gasOnReceiveAtom);
51999
52282
  const showSignaturesRemaining = useMemo(() => {
52000
52283
  if (!currentTransaction) return false;
52001
52284
  if ((currentTransaction == null ? void 0 : currentTransaction.txsRequired) >= 2 && (currentTransaction == null ? void 0 : currentTransaction.txsSigned) !== (currentTransaction == null ? void 0 : currentTransaction.txsRequired)) {
@@ -52007,8 +52290,8 @@ function useSwapExecutionState({
52007
52290
  var _a;
52008
52291
  if (isFetchingDestinationBalance) return SwapExecutionState.pendingGettingDestinationBalance;
52009
52292
  if (isGettingAddressesLoading) return SwapExecutionState.pendingGettingAddresses;
52010
- if (isFeeRouteEnabled && isGettingFeeRouteAddressesLoading)
52011
- return SwapExecutionState.pendingGettingFeeRouteAddresses;
52293
+ if (isGasRouteEnabled && isGettingGasRouteAddressesLoading)
52294
+ return SwapExecutionState.pendingGettingGasRouteAddresses;
52012
52295
  if (!chainAddresses) return SwapExecutionState.destinationAddressUnset;
52013
52296
  if (!requiredChainAddresses) return SwapExecutionState.destinationAddressUnset;
52014
52297
  const allAddressesSet = requiredChainAddresses.every(
@@ -52017,10 +52300,10 @@ function useSwapExecutionState({
52017
52300
  return (_a2 = chainAddresses[index]) == null ? void 0 : _a2.address;
52018
52301
  }
52019
52302
  );
52020
- const feeRouteAllAddressesSet = feeRouteRequiredChainAddresses == null ? void 0 : feeRouteRequiredChainAddresses.every(
52303
+ const gasRouteAllAddressesSet = gasRouteRequiredChainAddresses == null ? void 0 : gasRouteRequiredChainAddresses.every(
52021
52304
  (_chainId, index) => {
52022
52305
  var _a2;
52023
- return (_a2 = feeRouteChainAddresses == null ? void 0 : feeRouteChainAddresses[index]) == null ? void 0 : _a2.address;
52306
+ return (_a2 = gasRouteChainAddresses == null ? void 0 : gasRouteChainAddresses[index]) == null ? void 0 : _a2.address;
52024
52307
  }
52025
52308
  );
52026
52309
  const lastChainAddress = (_a = chainAddresses[requiredChainAddresses.length - 1]) == null ? void 0 : _a.address;
@@ -52051,20 +52334,20 @@ function useSwapExecutionState({
52051
52334
  if (!allAddressesSet) {
52052
52335
  return SwapExecutionState.recoveryAddressUnset;
52053
52336
  }
52054
- if (isFeeRouteEnabled && feeRouteRequiredChainAddresses && !feeRouteAllAddressesSet) {
52055
- return SwapExecutionState.feeRouteRecoveryAddressUnset;
52337
+ if (isGasRouteEnabled && gasRouteRequiredChainAddresses && !gasRouteAllAddressesSet) {
52338
+ return SwapExecutionState.gasRouteRecoveryAddressUnset;
52056
52339
  }
52057
52340
  return SwapExecutionState.ready;
52058
52341
  }, [
52059
52342
  isFetchingDestinationBalance,
52060
52343
  isGettingAddressesLoading,
52061
- isFeeRouteEnabled,
52062
- isGettingFeeRouteAddressesLoading,
52344
+ isGasRouteEnabled,
52345
+ isGettingGasRouteAddressesLoading,
52063
52346
  chainAddresses,
52064
52347
  requiredChainAddresses,
52065
- feeRouteRequiredChainAddresses,
52348
+ gasRouteRequiredChainAddresses,
52066
52349
  currentTransaction == null ? void 0 : currentTransaction.status,
52067
- feeRouteChainAddresses,
52350
+ gasRouteChainAddresses,
52068
52351
  showSignaturesRemaining
52069
52352
  ]);
52070
52353
  }
@@ -52164,7 +52447,7 @@ const SwapExecutionButton = ({
52164
52447
  signaturesRemaining,
52165
52448
  lastOperation,
52166
52449
  connectRequiredChains,
52167
- connectFeeRouteRequiredChains,
52450
+ connectGasRouteRequiredChains,
52168
52451
  submitExecuteRouteMutation
52169
52452
  }) => {
52170
52453
  var _a, _b, _c;
@@ -52206,7 +52489,7 @@ const SwapExecutionButton = ({
52206
52489
  }
52207
52490
  }
52208
52491
  );
52209
- case SwapExecutionState.feeRouteRecoveryAddressUnset:
52492
+ case SwapExecutionState.gasRouteRecoveryAddressUnset:
52210
52493
  return /* @__PURE__ */ jsx(
52211
52494
  MainButton,
52212
52495
  {
@@ -52214,7 +52497,7 @@ const SwapExecutionButton = ({
52214
52497
  icon: ICONS.rightArrow,
52215
52498
  onClick: () => {
52216
52499
  track("swap execution page: set recovery address button - clicked");
52217
- connectFeeRouteRequiredChains == null ? void 0 : connectFeeRouteRequiredChains(true);
52500
+ connectGasRouteRequiredChains == null ? void 0 : connectGasRouteRequiredChains(true);
52218
52501
  }
52219
52502
  }
52220
52503
  );
@@ -52491,7 +52774,7 @@ const GasOnReceive = ({ routeDetails, hideContainer } = {}) => {
52491
52774
  const theme = nt();
52492
52775
  const [gasOnReceive, setGasOnReceive] = useAtom(gasOnReceiveAtom);
52493
52776
  const { isLoading: fetchingGasRoute } = useAtomValue(gasOnReceiveRouteAtom);
52494
- const { feeRoute } = useAtomValue(swapExecutionStateAtom);
52777
+ const { gasRoute } = useAtomValue(swapExecutionStateAtom);
52495
52778
  const { data: assets2 } = useAtomValue(skipAssetsAtom);
52496
52779
  const isSomeDestinationFeeBalanceAvailable = useAtomValue(
52497
52780
  isSomeDestinationFeeBalanceAvailableAtom
@@ -52501,8 +52784,8 @@ const GasOnReceive = ({ routeDetails, hideContainer } = {}) => {
52501
52784
  const gasOnReceiveAsset = useMemo(() => {
52502
52785
  var _a2, _b2;
52503
52786
  const gasAsset = {
52504
- chainId: ((_a2 = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _a2.destAssetChainId) ?? (feeRoute == null ? void 0 : feeRoute.destAssetChainId),
52505
- denom: ((_b2 = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _b2.destAssetDenom) ?? (feeRoute == null ? void 0 : feeRoute.destAssetDenom)
52787
+ chainId: ((_a2 = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _a2.destAssetChainId) ?? (gasRoute == null ? void 0 : gasRoute.destAssetChainId),
52788
+ denom: ((_b2 = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _b2.destAssetDenom) ?? (gasRoute == null ? void 0 : gasRoute.destAssetDenom)
52506
52789
  };
52507
52790
  if (!gasAsset) return;
52508
52791
  const asset = assets2 == null ? void 0 : assets2.find(
@@ -52511,13 +52794,13 @@ const GasOnReceive = ({ routeDetails, hideContainer } = {}) => {
52511
52794
  return asset;
52512
52795
  }, [
52513
52796
  assets2,
52514
- feeRoute == null ? void 0 : feeRoute.destAssetChainId,
52515
- feeRoute == null ? void 0 : feeRoute.destAssetDenom,
52797
+ gasRoute == null ? void 0 : gasRoute.destAssetChainId,
52798
+ gasRoute == null ? void 0 : gasRoute.destAssetDenom,
52516
52799
  (_a = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _a.destAssetChainId,
52517
52800
  (_b = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _b.destAssetDenom
52518
52801
  ]);
52519
- const amountUsd = ((_c = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _c.usdAmountOut) ?? (feeRoute == null ? void 0 : feeRoute.usdAmountOut);
52520
- const amountOut = ((_d = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _d.amountOut) ?? (feeRoute == null ? void 0 : feeRoute.amountOut) ?? "";
52802
+ const amountUsd = ((_c = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _c.usdAmountOut) ?? (gasRoute == null ? void 0 : gasRoute.usdAmountOut);
52803
+ const amountOut = ((_d = routeDetails == null ? void 0 : routeDetails.route) == null ? void 0 : _d.amountOut) ?? (gasRoute == null ? void 0 : gasRoute.amountOut) ?? "";
52521
52804
  const assetSymbol = ((_e2 = gasOnReceiveAsset == null ? void 0 : gasOnReceiveAsset.recommendedSymbol) == null ? void 0 : _e2.toUpperCase()) ?? "";
52522
52805
  const gasOnReceiveText = useMemo(() => {
52523
52806
  var _a2;
@@ -52582,7 +52865,7 @@ const GasOnReceive = ({ routeDetails, hideContainer } = {}) => {
52582
52865
  }
52583
52866
  );
52584
52867
  }, [routeDetails == null ? void 0 : routeDetails.status, theme.primary.text.lowContrast, theme.warning.text]);
52585
- if (!routeDetails && (!feeRoute || !gasOnReceiveAsset)) {
52868
+ if (!routeDetails && (!gasRoute || !gasOnReceiveAsset)) {
52586
52869
  return null;
52587
52870
  }
52588
52871
  return /* @__PURE__ */ jsxs(GasOnReceiveContainer, { hideContainer, align: "center", justify: "space-between", children: [
@@ -52621,10 +52904,10 @@ const GasOnReceiveContainer = dt(Row)`
52621
52904
  return convertToPxValue((_a = theme.borderRadius) == null ? void 0 : _a.selectionButton);
52622
52905
  }};
52623
52906
  `;
52624
- const useFeeRouteAutoSetAddress = () => {
52907
+ const useGasRouteAutoSetAddress = () => {
52625
52908
  var _a, _b, _c;
52626
- const [feeRouteChainAddresses, setFeeRouteChainAddresses] = useAtom(feeRouteChainAddressesAtom);
52627
- const { feeRoute, isFeeRouteEnabled } = useAtomValue(swapExecutionStateAtom);
52909
+ const [gasRouteChainAddresses, setGasRouteChainAddresses] = useAtom(gasRouteChainAddressesAtom);
52910
+ const { gasRoute: feeRoute, isGasRouteEnabled: isFeeRouteEnabled } = useAtomValue(swapExecutionStateAtom);
52628
52911
  const [isLoading, setIsLoading] = useState(true);
52629
52912
  const connectedAddress = useAtomValue(connectedAddressesAtom);
52630
52913
  const sourceWallet = useAtomValue(walletsAtom);
@@ -52635,7 +52918,7 @@ const useFeeRouteAutoSetAddress = () => {
52635
52918
  const { createCosmosWallets } = useCreateCosmosWallets();
52636
52919
  const { createEvmWallets } = useCreateEvmWallets();
52637
52920
  const { createSolanaWallets } = useCreateSolanaWallets();
52638
- useAtom(feeRouteUserAddressesEffectAtom);
52921
+ useAtom(gasRouteUserAddressesEffectAtom);
52639
52922
  const connectRequiredChains = useCallback(
52640
52923
  async (openModal) => {
52641
52924
  setIsLoading(true);
@@ -52648,12 +52931,12 @@ const useFeeRouteAutoSetAddress = () => {
52648
52931
  if (!feeRoute || !isFeeRouteEnabled) return;
52649
52932
  const requiredChainAddresses = feeRoute.requiredChainAddresses;
52650
52933
  if (!requiredChainAddresses) return;
52651
- Object.entries(feeRouteChainAddresses).forEach(async ([_index, chainAddress], index) => {
52934
+ Object.entries(gasRouteChainAddresses).forEach(async ([_index, chainAddress], index) => {
52652
52935
  var _a2, _b2;
52653
52936
  if (!chainAddress.address || chainAddress.address === "") {
52654
52937
  const injectedAddress = connectedAddress == null ? void 0 : connectedAddress[chainAddress.chainId];
52655
52938
  if (injectedAddress) {
52656
- setFeeRouteChainAddresses((prev2) => ({
52939
+ setGasRouteChainAddresses((prev2) => ({
52657
52940
  ...prev2,
52658
52941
  [index]: {
52659
52942
  ...chainAddress,
@@ -52675,7 +52958,7 @@ const useFeeRouteAutoSetAddress = () => {
52675
52958
  return (response == null ? void 0 : response.logo) ?? ((_a3 = wallet == null ? void 0 : wallet.walletInfo) == null ? void 0 : _a3.logo);
52676
52959
  };
52677
52960
  if (response == null ? void 0 : response.address) {
52678
- setFeeRouteChainAddresses((prev2) => ({
52961
+ setGasRouteChainAddresses((prev2) => ({
52679
52962
  ...prev2,
52680
52963
  [index]: {
52681
52964
  ...chainAddress,
@@ -52714,9 +52997,9 @@ const useFeeRouteAutoSetAddress = () => {
52714
52997
  createEvmWallets,
52715
52998
  createSolanaWallets,
52716
52999
  feeRoute,
52717
- feeRouteChainAddresses,
53000
+ gasRouteChainAddresses,
52718
53001
  isFeeRouteEnabled,
52719
- setFeeRouteChainAddresses,
53002
+ setGasRouteChainAddresses,
52720
53003
  sourceWallet
52721
53004
  ]
52722
53005
  );
@@ -52785,32 +53068,32 @@ var SwapExecutionState = /* @__PURE__ */ ((SwapExecutionState2) => {
52785
53068
  SwapExecutionState2[SwapExecutionState2["approving"] = 8] = "approving";
52786
53069
  SwapExecutionState2[SwapExecutionState2["pendingGettingAddresses"] = 9] = "pendingGettingAddresses";
52787
53070
  SwapExecutionState2[SwapExecutionState2["pendingGettingDestinationBalance"] = 10] = "pendingGettingDestinationBalance";
52788
- SwapExecutionState2[SwapExecutionState2["pendingGettingFeeRouteAddresses"] = 11] = "pendingGettingFeeRouteAddresses";
52789
- SwapExecutionState2[SwapExecutionState2["feeRouteRecoveryAddressUnset"] = 12] = "feeRouteRecoveryAddressUnset";
53071
+ SwapExecutionState2[SwapExecutionState2["pendingGettingGasRouteAddresses"] = 11] = "pendingGettingGasRouteAddresses";
53072
+ SwapExecutionState2[SwapExecutionState2["gasRouteRecoveryAddressUnset"] = 12] = "gasRouteRecoveryAddressUnset";
52790
53073
  SwapExecutionState2[SwapExecutionState2["pendingError"] = 13] = "pendingError";
52791
53074
  return SwapExecutionState2;
52792
53075
  })(SwapExecutionState || {});
52793
53076
  const SwapExecutionPage = () => {
52794
53077
  const theme = nt();
52795
53078
  const setCurrentPage = useSetAtom(currentPageAtom);
52796
- const { route: route2, clientOperations, feeRoute } = useAtomValue(swapExecutionStateAtom);
53079
+ const { route: route2, clientOperations, gasRoute } = useAtomValue(swapExecutionStateAtom);
52797
53080
  const currentTransaction = useAtomValue(currentTransactionAtom);
52798
53081
  const chainAddresses = useAtomValue(chainAddressesAtom);
52799
- const feeRouteChainAddresses = useAtomValue(feeRouteChainAddressesAtom);
53082
+ const gasRouteChainAddresses = useAtomValue(gasRouteChainAddressesAtom);
52800
53083
  const { connectRequiredChains, isLoading: isGettingAddressesLoading } = useAutoSetAddress();
52801
53084
  const {
52802
- connectRequiredChains: connectFeeRouteRequiredChains,
52803
- isLoading: isGettingFeeRouteAddressesLoading
52804
- } = useFeeRouteAutoSetAddress();
53085
+ connectRequiredChains: connectGasRouteRequiredChains,
53086
+ isLoading: isGettingGasRouteAddressesLoading
53087
+ } = useGasRouteAutoSetAddress();
52805
53088
  const [simpleRoute, setSimpleRoute] = useState(true);
52806
53089
  const isSomeDestinationFeeBalanceAvailable = useAtomValue(
52807
53090
  isSomeDestinationFeeBalanceAvailableAtom
52808
53091
  );
52809
- const { data: gasRoute, isLoading: isGasRouteLoading } = useAtomValue(gasOnReceiveRouteAtom);
53092
+ const { data: gorRoute, isLoading: isGasRouteLoading } = useAtomValue(gasOnReceiveRouteAtom);
52810
53093
  const gasRouteEnabled = useAtomValue(gasOnReceiveAtom);
52811
53094
  const isFetchingDestinationBalance = isSomeDestinationFeeBalanceAvailable.isLoading || isGasRouteLoading;
52812
53095
  useAtom(gasRouteEffect);
52813
- useAtom(feeRouteAddressesAtomEffect);
53096
+ useAtom(gasRouteAddressesAtomEffect);
52814
53097
  useAtom(gasOnReceiveAtomEffect);
52815
53098
  const { mutate: submitExecuteRouteMutation, error } = useAtomValue(skipSubmitSwapExecutionAtom);
52816
53099
  const signaturesRemaining = useMemo(() => {
@@ -52824,10 +53107,10 @@ const SwapExecutionPage = () => {
52824
53107
  const swapExecutionState = useSwapExecutionState({
52825
53108
  chainAddresses,
52826
53109
  requiredChainAddresses: route2 == null ? void 0 : route2.requiredChainAddresses,
52827
- feeRouteChainAddresses,
52828
- feeRouteRequiredChainAddresses: feeRoute == null ? void 0 : feeRoute.requiredChainAddresses,
53110
+ gasRouteChainAddresses,
53111
+ gasRouteRequiredChainAddresses: gasRoute == null ? void 0 : gasRoute.requiredChainAddresses,
52829
53112
  isGettingAddressesLoading,
52830
- isGettingFeeRouteAddressesLoading,
53113
+ isGettingGasRouteAddressesLoading,
52831
53114
  isFetchingDestinationBalance
52832
53115
  });
52833
53116
  const isSafeToleave = (route2 == null ? void 0 : route2.txsRequired) === (currentTransaction == null ? void 0 : currentTransaction.transactionDetails.length);
@@ -52878,14 +53161,14 @@ const SwapExecutionPage = () => {
52878
53161
  const shouldRenderTrackProgressButton = lastTxHash && lastTxChainId && (route2 == null ? void 0 : route2.txsRequired) === (currentTransaction == null ? void 0 : currentTransaction.transactionDetails.length);
52879
53162
  const gasOnReceiveComponent = useMemo(() => {
52880
53163
  var _a;
52881
- return (gasRoute || feeRoute) && !isGasRouteLoading && !currentTransaction && !isFetchingDestinationBalance || currentTransaction && gasRouteEnabled ? /* @__PURE__ */ jsxs(Column, { children: [
53164
+ return (gorRoute || gasRoute) && !isGasRouteLoading && !currentTransaction && !isFetchingDestinationBalance || currentTransaction && gasRouteEnabled ? /* @__PURE__ */ jsxs(Column, { children: [
52882
53165
  /* @__PURE__ */ jsx(Spacer, { height: 30, showLine: true, lineColor: theme.secondary.background.transparent }),
52883
53166
  /* @__PURE__ */ jsx(GasOnReceive, { routeDetails: (_a = currentTransaction == null ? void 0 : currentTransaction.relatedRoutes) == null ? void 0 : _a[0] })
52884
53167
  ] }) : null;
52885
53168
  }, [
52886
53169
  currentTransaction,
52887
- feeRoute,
52888
53170
  gasRoute,
53171
+ gorRoute,
52889
53172
  gasRouteEnabled,
52890
53173
  isFetchingDestinationBalance,
52891
53174
  isGasRouteLoading,
@@ -52948,7 +53231,7 @@ const SwapExecutionPage = () => {
52948
53231
  signaturesRemaining,
52949
53232
  lastOperation,
52950
53233
  connectRequiredChains,
52951
- connectFeeRouteRequiredChains,
53234
+ connectGasRouteRequiredChains,
52952
53235
  submitExecuteRouteMutation
52953
53236
  }
52954
53237
  ),
@@ -53527,11 +53810,13 @@ const useTxHistory = ({ txHistoryItem }) => {
53527
53810
  routeDetails: route2,
53528
53811
  onRouteStatusUpdated: (routeStatus) => {
53529
53812
  var _a2;
53530
- const failedFeeRoute = (_a2 = routeStatus == null ? void 0 : routeStatus.relatedRoutes) == null ? void 0 : _a2.find(
53813
+ const failedGasRoute = (_a2 = routeStatus == null ? void 0 : routeStatus.relatedRoutes) == null ? void 0 : _a2.find(
53531
53814
  (relatedRoute) => relatedRoute.status === "failed"
53532
53815
  );
53533
- if (failedFeeRoute) {
53534
- track("gas on receive: fee route failed", { feeRoute: failedFeeRoute });
53816
+ if (failedGasRoute) {
53817
+ track("gas on receive: fee route failed", {
53818
+ gasRoute: failedGasRoute
53819
+ });
53535
53820
  }
53536
53821
  setTransactionHistory(routeStatus);
53537
53822
  }
@@ -53662,166 +53947,9 @@ const useConnectToMissingCosmosChain = () => {
53662
53947
  }, [sourceAsset, wallets, extraChainIdsToConnect, addExtraChainIdsToConnectForWalletType]);
53663
53948
  return { isAskingToApproveConnection };
53664
53949
  };
53665
- const name = "@skip-go/widget";
53666
- const description = "Swap widget";
53667
- const version = "3.14.4";
53668
- const repository = {
53669
- url: "https://github.com/skip-mev/skip-go",
53670
- directory: "packages/widget"
53671
- };
53672
- const type = "module";
53673
- const scripts = {
53674
- dev: "vite --force --host",
53675
- "dev:visual-test": "VISUAL_TEST=true yarn dev",
53676
- "dev:storybook": "storybook dev -p 6006",
53677
- build: "npm run generate-chains && NODE_OPTIONS=--max-old-space-size=16384 vite build",
53678
- "watch:build": "vite build --watch",
53679
- lint: "NODE_OPTIONS=--max-old-space-size=32384 eslint . --fix",
53680
- preview: "vite preview",
53681
- "build:web-component": "NODE_OPTIONS=--max-old-space-size=32384 webpack --config webpack.config.js",
53682
- "publish:web-component": "npm run build:web-component && cd web-component && npm publish && cd ..",
53683
- prepack: "yarn run pre",
53684
- postpack: "yarn run post",
53685
- pre: "npm run build && node scripts/prepublish.cjs",
53686
- post: "git checkout -- package.json",
53687
- "generate-chains": "node scripts/generate-chains.cjs",
53688
- "update-registries": "yarn up @initia/initia-registry chain-registry",
53689
- test: "yarn playwright test",
53690
- "update-screenshots": "UPDATE_SCREENSHOTS=true yarn playwright test Keplr.test.tsx",
53691
- "combine-images": "node scripts/combine-images.mjs"
53692
- };
53693
- const exports = {
53694
- ".": {
53695
- types: "./build/index.d.ts",
53696
- "import": "./build/index.js"
53697
- }
53698
- };
53699
- const types = "./build/index.d.ts";
53700
- const files = [
53701
- "build",
53702
- "README.md"
53703
- ];
53704
- const devDependencies = {
53705
- "@chromatic-com/storybook": "^1.6.1",
53706
- "@eslint/js": "^9.9.0",
53707
- "@initia/initia-registry": "^1.0.6",
53708
- "@keplr-wallet/types": "^0.12.125",
53709
- "@playwright/test": "^1.51.1",
53710
- "@storybook/addon-essentials": "^8.2.6",
53711
- "@storybook/addon-interactions": "^8.2.6",
53712
- "@storybook/addon-links": "^8.2.6",
53713
- "@storybook/addon-onboarding": "^8.2.6",
53714
- "@storybook/blocks": "^8.2.6",
53715
- "@storybook/react": "^8.2.6",
53716
- "@storybook/react-vite": "^8.2.6",
53717
- "@storybook/test": "^8.2.6",
53718
- "@testing-library/dom": "^10.4.0",
53719
- "@testing-library/react": "^16.2.0",
53720
- "@types/eslint__js": "^8.42.3",
53721
- "@types/pluralize": "^0.0.33",
53722
- "@types/pngjs": "^6.0.5",
53723
- "@types/react": "^19.0.10",
53724
- "@types/react-dom": "^19.0.4",
53725
- "@typescript-eslint/eslint-plugin": "^7.15.0",
53726
- "@typescript-eslint/parser": "^7.15.0",
53727
- "@vitejs/plugin-react": "^4.3.1",
53728
- buffer: "^6.0.3",
53729
- "chain-registry": "^2.0.37",
53730
- download: "^8.0.0",
53731
- eslint: "^9.9.0",
53732
- "eslint-config-prettier": "^9.1.0",
53733
- "eslint-plugin-prettier": "^5.2.1",
53734
- "eslint-plugin-react-hooks": "^4.6.2",
53735
- "fs-extra": "^11.3.0",
53736
- "node-polyfill-webpack-plugin": "^4.0.0",
53737
- "pino-pretty": "^13.0.0",
53738
- pixelmatch: "^7.1.0",
53739
- pngjs: "^7.0.0",
53740
- "postcss-loader": "^8.1.1",
53741
- prettier: "^3.4.2",
53742
- process: "^0.11.10",
53743
- pureimage: "^0.4.18",
53744
- "raw-loader": "^4.0.2",
53745
- react: ">=17.0.0",
53746
- "react-dom": ">=17.0.0",
53747
- starknet: "6.11.0",
53748
- storybook: "^8.2.6",
53749
- "ts-loader": "^9.5.1",
53750
- typescript: "^5.5.4",
53751
- "typescript-eslint": "^8.2.0",
53752
- "url-loader": "^4.1.1",
53753
- vite: "^5.3.4",
53754
- "vite-plugin-dts": "^4.0.0-beta.1",
53755
- "vite-plugin-node-polyfills": "^0.22.0",
53756
- webpack: "^5.94.0",
53757
- "webpack-cli": "^5.1.4"
53758
- };
53759
- const peerDependencies = {
53760
- "@tanstack/react-query": "^5.51.21",
53761
- react: ">=17.0.0",
53762
- "react-dom": ">=17.0.0",
53763
- viem: "^2.21.55",
53764
- wagmi: "^2.14.1"
53765
- };
53766
- const dependencies = {
53767
- "@amplitude/analytics-browser": "^2.11.12",
53768
- "@amplitude/plugin-session-replay-browser": "^1.16.5",
53769
- "@cosmjs/amino": "0.33.1",
53770
- "@cosmjs/cosmwasm-stargate": "0.33.1",
53771
- "@cosmjs/encoding": "0.33.1",
53772
- "@cosmjs/math": "0.33.1",
53773
- "@cosmjs/proto-signing": "0.33.1",
53774
- "@cosmjs/stargate": "0.33.1",
53775
- "@ebay/nice-modal-react": "^1.2.13",
53776
- "@eslint/compat": "^1.1.1",
53777
- "@penumbra-zone/bech32m": "^13.0.0",
53778
- "@penumbra-zone/client": "^24.0.0",
53779
- "@penumbra-zone/protobuf": "^7.2.0",
53780
- "@penumbra-zone/transport-dom": "^7.5.0",
53781
- "@r2wc/react-to-web-component": "^2.0.3",
53782
- "@skip-go/client": "workspace:^",
53783
- "@solana/spl-token": "^0.4.8",
53784
- "@solana/wallet-adapter-ledger": "^0.9.25",
53785
- "@solana/wallet-adapter-react": "^0.15.39",
53786
- "@solana/wallet-adapter-wallets": "^0.19.37",
53787
- "@solana/web3.js": "^1.95.8",
53788
- "@tanstack/query-core": "^5.51.21",
53789
- "@walletconnect/modal": "^2.7.0",
53790
- "@walletconnect/sign-client": "^2.20.3",
53791
- "@walletconnect/solana-adapter": "^0.0.8",
53792
- add: "^2.0.6",
53793
- bech32: "^2.0.0",
53794
- graz: "0.3.3",
53795
- jotai: "^2.10.1",
53796
- "jotai-effect": "^1.0.2",
53797
- "jotai-tanstack-query": "^0.8.6",
53798
- "lodash.debounce": "^4.0.8",
53799
- pluralize: "^8.0.0",
53800
- "rc-virtual-list": "^3.14.5",
53801
- "react-error-boundary": "^4.0.13",
53802
- "react-shadow-scope": "^1.0.5",
53803
- "styled-components": "^6.1.13",
53804
- uuid: "^11.1.0",
53805
- yarn: "^1.22.22",
53806
- zod: "^3.23.8"
53807
- };
53808
- const publishConfig = {
53809
- access: "public"
53810
- };
53950
+ const version = "3.14.5";
53811
53951
  const packageJson = {
53812
- name,
53813
- description,
53814
- version,
53815
- repository,
53816
- type,
53817
- scripts,
53818
- exports,
53819
- types,
53820
- files,
53821
- devDependencies,
53822
- peerDependencies,
53823
- dependencies,
53824
- publishConfig
53952
+ version
53825
53953
  };
53826
53954
  let isAmplitudeInitialized = false;
53827
53955
  const serverUrl = "https://go.skip.build/api/amplitude";
@@ -53873,7 +54001,7 @@ const SwapPage = () => {
53873
54001
  const getBalance = useGetBalance();
53874
54002
  const callbacks = useAtomValue(callbacksAtom);
53875
54003
  const setChainAddresses = useSetAtom(chainAddressesAtom);
53876
- const setFeeRouteChainAddresses = useSetAtom(feeRouteChainAddressesAtom);
54004
+ const setGasRouteChainAddresses = useSetAtom(gasRouteChainAddressesAtom);
53877
54005
  useFetchAllBalances();
53878
54006
  useCleanupDebouncedAtoms();
53879
54007
  useUpdateAmountWhenRouteChanges();
@@ -54078,7 +54206,7 @@ const SwapPage = () => {
54078
54206
  startTransition(() => {
54079
54207
  setError(void 0);
54080
54208
  setChainAddresses({});
54081
- setFeeRouteChainAddresses({});
54209
+ setGasRouteChainAddresses({});
54082
54210
  setSwapExecutionState();
54083
54211
  setCurrentPage(Routes.SwapExecutionPage);
54084
54212
  });
@@ -54171,7 +54299,7 @@ const SwapPage = () => {
54171
54299
  showGoFastWarning,
54172
54300
  isGoFast,
54173
54301
  setChainAddresses,
54174
- setFeeRouteChainAddresses,
54302
+ setGasRouteChainAddresses,
54175
54303
  setCurrentPage,
54176
54304
  setSwapExecutionState,
54177
54305
  setError
@@ -54996,9 +55124,9 @@ const getMobileDateFormat = (date, timeZone) => {
54996
55124
  };
54997
55125
  const formatter = new Intl.DateTimeFormat("en-US", options);
54998
55126
  const parts = formatter.formatToParts(date);
54999
- const lookup = (type2) => {
55127
+ const lookup = (type) => {
55000
55128
  var _a;
55001
- return ((_a = parts.find((p2) => p2.type === type2)) == null ? void 0 : _a.value) ?? "";
55129
+ return ((_a = parts.find((p2) => p2.type === type)) == null ? void 0 : _a.value) ?? "";
55002
55130
  };
55003
55131
  const hours = lookup("hour");
55004
55132
  const minutes = lookup("minute");
@@ -55298,16 +55426,8 @@ const TransactionHistoryPage = () => {
55298
55426
  ) })
55299
55427
  ] });
55300
55428
  };
55301
- const StyledContainer = dt(Column)`
55302
- position: relative;
55303
- padding: 20px;
55304
- width: 100%;
55429
+ const StyledContainer = dt(Container$2)`
55305
55430
  min-height: 300px;
55306
- border-radius: ${({ theme }) => {
55307
- var _a;
55308
- return convertToPxValue((_a = theme.borderRadius) == null ? void 0 : _a.main);
55309
- }};
55310
- background: ${({ theme }) => theme.primary.background.normal};
55311
55431
  `;
55312
55432
  const useKeepWalletStateSynced = () => {
55313
55433
  var _a;
@@ -55445,16 +55565,16 @@ const useInitDefaultRoute = (defaultRoute) => {
55445
55565
  }, [assets2, defaultRoute, setDefaultRoute, setRouteToDefaultRoute]);
55446
55566
  };
55447
55567
  const useMobileRouteConfig = () => {
55448
- const isMobile2 = useIsMobileScreenSize();
55568
+ const mobile = isMobile();
55449
55569
  const setRouteConfig = useSetAtom(routeConfigAtom);
55450
55570
  useEffect(() => {
55451
55571
  setRouteConfig((prev2) => ({
55452
55572
  ...prev2,
55453
- allowMultiTx: !isMobile2
55573
+ allowMultiTx: !mobile
55454
55574
  }));
55455
- }, [isMobile2, setRouteConfig]);
55575
+ }, [mobile, setRouteConfig]);
55456
55576
  };
55457
- const useInitWidget = (props) => {
55577
+ const useInitWidget = (props = {}) => {
55458
55578
  var _a, _b;
55459
55579
  if (props.enableAmplitudeAnalytics) {
55460
55580
  initAmplitude();
@@ -55874,26 +55994,38 @@ const CosmosProvider = ({ children }) => {
55874
55994
  }
55875
55995
  );
55876
55996
  };
55997
+ const solanaWallets = [new LedgerWalletAdapter()];
55877
55998
  var WalletAdapterNetwork;
55878
55999
  (function(WalletAdapterNetwork2) {
55879
56000
  WalletAdapterNetwork2["Mainnet"] = "mainnet-beta";
55880
56001
  WalletAdapterNetwork2["Testnet"] = "testnet";
55881
56002
  WalletAdapterNetwork2["Devnet"] = "devnet";
55882
56003
  })(WalletAdapterNetwork || (WalletAdapterNetwork = {}));
55883
- const solanaWallets = [
55884
- new LedgerWalletAdapter(),
55885
- new WalletConnectWalletAdapter({
55886
- network: WalletAdapterNetwork.Mainnet,
55887
- options: {
55888
- projectId: "ff1b9e9bd6329cfb07642bd7f4d11a8c"
55889
- }
55890
- })
55891
- ];
55892
56004
  const SolanaProvider = ({ children }) => {
56005
+ const query = useQuery({
56006
+ queryKey: ["solanaWallets"],
56007
+ queryFn: async () => {
56008
+ const wallets = [...solanaWallets];
56009
+ const { WalletConnectWalletAdapter } = await import("@walletconnect/solana-adapter");
56010
+ if (!wallets.some((wallet) => wallet.name === "WalletConnect")) {
56011
+ wallets.push(
56012
+ new WalletConnectWalletAdapter({
56013
+ network: WalletAdapterNetwork.Mainnet,
56014
+ options: {
56015
+ projectId: "ff1b9e9bd6329cfb07642bd7f4d11a8c"
56016
+ }
56017
+ })
56018
+ );
56019
+ }
56020
+ return wallets;
56021
+ },
56022
+ staleTime: Infinity,
56023
+ enabled: typeof window !== "undefined"
56024
+ });
55893
56025
  return /* @__PURE__ */ jsx(
55894
56026
  WalletProvider,
55895
56027
  {
55896
- wallets: solanaWallets,
56028
+ wallets: query.data ?? solanaWallets,
55897
56029
  autoConnect: true,
55898
56030
  localStorageKey: "skip-go-widget-solana-wallet",
55899
56031
  children
@@ -55945,13 +56077,14 @@ const WidgetContainer = dt.div`
55945
56077
  `;
55946
56078
  export {
55947
56079
  Widget as W,
55948
- getDefaultExportFromCjs as a,
56080
+ getAugmentedNamespace as a,
55949
56081
  commonjsGlobal as c,
55950
56082
  defaultTheme as d,
55951
- getAugmentedNamespace as g,
56083
+ getDefaultExportFromCjs as g,
55952
56084
  lightTheme as l,
55953
56085
  openAssetAndChainSelectorModal as o,
55954
56086
  process$1 as p,
55955
56087
  resetWidget as r,
55956
- setAsset as s
56088
+ setAsset as s,
56089
+ useGetAssetDetails as u
55957
56090
  };