@rhinestone/deposit-modal 0.1.65 → 0.1.66

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.
@@ -595,21 +595,61 @@ function createDepositService(baseUrl, options) {
595
595
  txHash: _optionalChain([result, 'optionalAccess', _15 => _15.txHash]) ? shortRef(result.txHash) : void 0
596
596
  });
597
597
  return result;
598
+ },
599
+ async fetchDepositHistory(params) {
600
+ const searchParams = new URLSearchParams({ account: params.account });
601
+ searchParams.set("limit", String(_nullishCoalesce(params.limit, () => ( 20))));
602
+ if (params.cursor) {
603
+ searchParams.set("cursor", params.cursor);
604
+ }
605
+ const url = apiUrl(`/deposits?${searchParams.toString()}`);
606
+ debugLog(debug, scope, "fetchDepositHistory:request", {
607
+ url,
608
+ account: shortRef(params.account),
609
+ cursor: params.cursor
610
+ });
611
+ const response = await fetch(url, {
612
+ method: "GET",
613
+ headers: { "Content-Type": "application/json" },
614
+ cache: "no-store"
615
+ });
616
+ if (!response.ok) {
617
+ const error = await response.json().catch(() => ({ error: "Unknown error" }));
618
+ debugError(
619
+ debug,
620
+ scope,
621
+ "fetchDepositHistory:failed",
622
+ error,
623
+ { status: response.status, account: shortRef(params.account) }
624
+ );
625
+ throw new Error(
626
+ error.error || `Deposit history fetch failed: ${response.status}`
627
+ );
628
+ }
629
+ const data = await response.json();
630
+ const deposits = Array.isArray(_optionalChain([data, 'optionalAccess', _16 => _16.deposits])) ? data.deposits : [];
631
+ const nextCursor = _nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'optionalAccess', _17 => _17.nextCursor]), () => ( _optionalChain([data, 'optionalAccess', _18 => _18.next_cursor]))), () => ( null));
632
+ debugLog(debug, scope, "fetchDepositHistory:success", {
633
+ account: shortRef(params.account),
634
+ count: deposits.length,
635
+ hasMore: Boolean(nextCursor)
636
+ });
637
+ return { deposits, nextCursor };
598
638
  }
599
639
  };
600
640
  }
601
641
  function normalizeDirectPortfolio(data) {
602
642
  const rawTokens = _nullishCoalesce(_nullishCoalesce(extractArray(data, "tokens"), () => ( extractArray(
603
- _optionalChain([data, 'optionalAccess', _16 => _16.data]),
643
+ _optionalChain([data, 'optionalAccess', _19 => _19.data]),
604
644
  "tokens"
605
645
  ))), () => ( []));
606
- const totalUsd = _nullishCoalesce(_nullishCoalesce(extractNumber(data, "totalUsd"), () => ( extractNumber(_optionalChain([data, 'optionalAccess', _17 => _17.data]), "totalUsd"))), () => ( 0));
646
+ const totalUsd = _nullishCoalesce(_nullishCoalesce(extractNumber(data, "totalUsd"), () => ( extractNumber(_optionalChain([data, 'optionalAccess', _20 => _20.data]), "totalUsd"))), () => ( 0));
607
647
  const tokens = rawTokens.map((token) => normalizeDirectToken(token)).filter((token) => Boolean(token));
608
648
  return { tokens, totalUsd };
609
649
  }
610
650
  function extractOrchestratorPortfolio(data) {
611
651
  const portfolio = _nullishCoalesce(extractArray(data, "portfolio"), () => ( extractArray(
612
- _optionalChain([data, 'optionalAccess', _18 => _18.data]),
652
+ _optionalChain([data, 'optionalAccess', _21 => _21.data]),
613
653
  "portfolio"
614
654
  )));
615
655
  if (!portfolio || !Array.isArray(portfolio)) return null;
@@ -620,7 +660,7 @@ function normalizeOrchestratorPortfolio(data) {
620
660
  for (const tokenData of data.portfolio || []) {
621
661
  const chainBalances = _nullishCoalesce(_nullishCoalesce(tokenData.tokenChainBalance, () => ( tokenData.chainBalances)), () => ( []));
622
662
  for (const chainBalance of chainBalances) {
623
- const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _19 => _19.balance, 'optionalAccess', _20 => _20.unlocked]), () => ( "0"));
663
+ const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _22 => _22.balance, 'optionalAccess', _23 => _23.unlocked]), () => ( "0"));
624
664
  const normalizedName = tokenData.tokenName.trim();
625
665
  const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
626
666
  const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkR6U6BHCVcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
@@ -654,7 +694,7 @@ function normalizeDirectToken(token) {
654
694
  if (chainId === null) return null;
655
695
  const symbol = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "symbol"), () => ( extractString(token, "tokenSymbol"))), () => ( extractString(token, "tokenName"))), () => ( extractString(token, "name")));
656
696
  if (!symbol) return null;
657
- const balanceValue = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "balance"), () => ( extractString(token, "amount"))), () => ( extractString(token, "value"))), () => ( extractString(token, "rawBalance"))), () => ( _optionalChain([extractNumber, 'call', _21 => _21(token, "balance"), 'optionalAccess', _22 => _22.toString, 'call', _23 => _23()]))), () => ( _optionalChain([extractNumber, 'call', _24 => _24(token, "amount"), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26()]))), () => ( _optionalChain([extractNumber, 'call', _27 => _27(token, "value"), 'optionalAccess', _28 => _28.toString, 'call', _29 => _29()]))), () => ( _optionalChain([extractNumber, 'call', _30 => _30(token, "rawBalance"), 'optionalAccess', _31 => _31.toString, 'call', _32 => _32()])));
697
+ const balanceValue = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "balance"), () => ( extractString(token, "amount"))), () => ( extractString(token, "value"))), () => ( extractString(token, "rawBalance"))), () => ( _optionalChain([extractNumber, 'call', _24 => _24(token, "balance"), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26()]))), () => ( _optionalChain([extractNumber, 'call', _27 => _27(token, "amount"), 'optionalAccess', _28 => _28.toString, 'call', _29 => _29()]))), () => ( _optionalChain([extractNumber, 'call', _30 => _30(token, "value"), 'optionalAccess', _31 => _31.toString, 'call', _32 => _32()]))), () => ( _optionalChain([extractNumber, 'call', _33 => _33(token, "rawBalance"), 'optionalAccess', _34 => _34.toString, 'call', _35 => _35()])));
658
698
  if (!balanceValue) return null;
659
699
  const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
660
700
  token.token,
@@ -679,7 +719,7 @@ function normalizeDirectToken(token) {
679
719
  }
680
720
  function extractTokenAddress(tokenData, chainId) {
681
721
  const token = tokenData;
682
- return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(token.tokenAddress, () => ( token.address)), () => ( _optionalChain([token, 'access', _33 => _33.addresses, 'optionalAccess', _34 => _34[chainId]]))), () => ( _optionalChain([token, 'access', _35 => _35.token, 'optionalAccess', _36 => _36.address]))), () => ( _optionalChain([token, 'access', _37 => _37.token, 'optionalAccess', _38 => _38.addresses, 'optionalAccess', _39 => _39[chainId]])));
722
+ return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(token.tokenAddress, () => ( token.address)), () => ( _optionalChain([token, 'access', _36 => _36.addresses, 'optionalAccess', _37 => _37[chainId]]))), () => ( _optionalChain([token, 'access', _38 => _38.token, 'optionalAccess', _39 => _39.address]))), () => ( _optionalChain([token, 'access', _40 => _40.token, 'optionalAccess', _41 => _41.addresses, 'optionalAccess', _42 => _42[chainId]])));
683
723
  }
684
724
  function extractArray(data, key) {
685
725
  if (!data || typeof data !== "object") return null;
@@ -837,19 +877,19 @@ function setVar(targets, prop, value) {
837
877
  function applyTheme(element, theme) {
838
878
  if (!element) return;
839
879
  const parent = element.parentElement;
840
- const targets = _optionalChain([parent, 'optionalAccess', _40 => _40.classList, 'access', _41 => _41.contains, 'call', _42 => _42("rs-modal-content")]) ? [element, parent] : [element];
841
- if (_optionalChain([theme, 'optionalAccess', _43 => _43.mode])) {
880
+ const targets = _optionalChain([parent, 'optionalAccess', _43 => _43.classList, 'access', _44 => _44.contains, 'call', _45 => _45("rs-modal-content")]) ? [element, parent] : [element];
881
+ if (_optionalChain([theme, 'optionalAccess', _46 => _46.mode])) {
842
882
  element.setAttribute("data-theme", theme.mode);
843
883
  } else {
844
884
  element.removeAttribute("data-theme");
845
885
  }
846
- if (_optionalChain([theme, 'optionalAccess', _44 => _44.fontColor])) {
886
+ if (_optionalChain([theme, 'optionalAccess', _47 => _47.fontColor])) {
847
887
  setVar(targets, "--rs-foreground", theme.fontColor);
848
888
  }
849
- if (_optionalChain([theme, 'optionalAccess', _45 => _45.iconColor])) {
889
+ if (_optionalChain([theme, 'optionalAccess', _48 => _48.iconColor])) {
850
890
  setVar(targets, "--rs-icon", theme.iconColor);
851
891
  }
852
- if (_optionalChain([theme, 'optionalAccess', _46 => _46.ctaColor])) {
892
+ if (_optionalChain([theme, 'optionalAccess', _49 => _49.ctaColor])) {
853
893
  setVar(targets, "--rs-primary", theme.ctaColor);
854
894
  setVar(targets, "--rs-border-accent", theme.ctaColor);
855
895
  setVar(
@@ -857,17 +897,17 @@ function applyTheme(element, theme) {
857
897
  "--rs-primary-hover",
858
898
  _nullishCoalesce(theme.ctaHoverColor, () => ( theme.ctaColor))
859
899
  );
860
- } else if (_optionalChain([theme, 'optionalAccess', _47 => _47.ctaHoverColor])) {
900
+ } else if (_optionalChain([theme, 'optionalAccess', _50 => _50.ctaHoverColor])) {
861
901
  setVar(targets, "--rs-primary-hover", theme.ctaHoverColor);
862
902
  }
863
- if (_optionalChain([theme, 'optionalAccess', _48 => _48.borderColor])) {
903
+ if (_optionalChain([theme, 'optionalAccess', _51 => _51.borderColor])) {
864
904
  setVar(targets, "--rs-border", theme.borderColor);
865
905
  setVar(targets, "--rs-border-surface", theme.borderColor);
866
906
  }
867
- if (_optionalChain([theme, 'optionalAccess', _49 => _49.backgroundColor])) {
907
+ if (_optionalChain([theme, 'optionalAccess', _52 => _52.backgroundColor])) {
868
908
  setVar(targets, "--rs-background", theme.backgroundColor);
869
909
  }
870
- if (_optionalChain([theme, 'optionalAccess', _50 => _50.radius])) {
910
+ if (_optionalChain([theme, 'optionalAccess', _53 => _53.radius])) {
871
911
  const scale = RADIUS_SCALE[theme.radius];
872
912
  setVar(targets, "--rs-radius-sm", scale.sm);
873
913
  setVar(targets, "--rs-radius-md", scale.md);
@@ -1033,16 +1073,16 @@ function ConnectStep({
1033
1073
  continueButtonLabel = "Continue",
1034
1074
  connectButtonLabel = "Connect external wallet"
1035
1075
  }) {
1036
- const hasWalletOptions = (_nullishCoalesce(_optionalChain([walletOptions, 'optionalAccess', _51 => _51.length]), () => ( 0))) > 0;
1076
+ const hasWalletOptions = (_nullishCoalesce(_optionalChain([walletOptions, 'optionalAccess', _54 => _54.length]), () => ( 0))) > 0;
1037
1077
  if (hasWalletOptions) {
1038
- const hasReownWallet = _nullishCoalesce(_optionalChain([walletOptions, 'optionalAccess', _52 => _52.some, 'call', _53 => _53(
1078
+ const hasReownWallet = _nullishCoalesce(_optionalChain([walletOptions, 'optionalAccess', _55 => _55.some, 'call', _56 => _56(
1039
1079
  (option) => option.kind === "external" || option.kind === "solana"
1040
1080
  )]), () => ( false));
1041
1081
  const showConnectDifferentWalletOption = Boolean(onConnect) && !hasReownWallet;
1042
1082
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
1043
1083
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-centered rs-connect-centered--wallets", children: [
1044
1084
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-wallet-list", children: [
1045
- _optionalChain([walletOptions, 'optionalAccess', _54 => _54.map, 'call', _55 => _55((option) => {
1085
+ _optionalChain([walletOptions, 'optionalAccess', _57 => _57.map, 'call', _58 => _58((option) => {
1046
1086
  const isSelected = option.id === selectedWalletId;
1047
1087
  const rawAddress = _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id));
1048
1088
  const shortAddress = rawAddress.length > 12 ? `${rawAddress.slice(0, 6)}...${rawAddress.slice(-4)}` : rawAddress;
@@ -1051,7 +1091,7 @@ function ConnectStep({
1051
1091
  {
1052
1092
  type: "button",
1053
1093
  className: `rs-connect-wallet-row ${isSelected ? "rs-connect-wallet-row--selected" : ""}`,
1054
- onClick: () => _optionalChain([onSelectWallet, 'optionalCall', _56 => _56(option.id)]),
1094
+ onClick: () => _optionalChain([onSelectWallet, 'optionalCall', _59 => _59(option.id)]),
1055
1095
  children: [
1056
1096
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1057
1097
  "div",
@@ -1110,7 +1150,7 @@ function ConnectStep({
1110
1150
  }
1111
1151
  )
1112
1152
  ] }),
1113
- (onDisconnect || onConnect) && _optionalChain([walletOptions, 'optionalAccess', _57 => _57.some, 'call', _58 => _58(
1153
+ (onDisconnect || onConnect) && _optionalChain([walletOptions, 'optionalAccess', _60 => _60.some, 'call', _61 => _61(
1114
1154
  (option) => option.kind === "external" || option.kind === "solana"
1115
1155
  )]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1116
1156
  "button",
@@ -1327,7 +1367,7 @@ function asNumber(value) {
1327
1367
  const trimmed = value.trim();
1328
1368
  if (!trimmed) return void 0;
1329
1369
  const caipMatch = trimmed.match(/^eip155:(\d+)$/);
1330
- if (_optionalChain([caipMatch, 'optionalAccess', _59 => _59[1]])) {
1370
+ if (_optionalChain([caipMatch, 'optionalAccess', _62 => _62[1]])) {
1331
1371
  const parsed2 = Number(caipMatch[1]);
1332
1372
  return Number.isFinite(parsed2) ? parsed2 : void 0;
1333
1373
  }
@@ -1346,28 +1386,28 @@ function asAddress(value) {
1346
1386
  return /^0x[a-fA-F0-9]{40}$/.test(value) ? value : void 0;
1347
1387
  }
1348
1388
  function getEventTxHash(event) {
1349
- if (!_optionalChain([event, 'optionalAccess', _60 => _60.type])) return void 0;
1389
+ if (!_optionalChain([event, 'optionalAccess', _63 => _63.type])) return void 0;
1350
1390
  if (event.type === "deposit-received") {
1351
- return asString(_optionalChain([event, 'access', _61 => _61.data, 'optionalAccess', _62 => _62.transactionHash]));
1391
+ return asString(_optionalChain([event, 'access', _64 => _64.data, 'optionalAccess', _65 => _65.transactionHash]));
1352
1392
  }
1353
1393
  if (event.type === "bridge-started" || event.type === "bridge-complete") {
1354
- const deposit = isRecord(_optionalChain([event, 'access', _63 => _63.data, 'optionalAccess', _64 => _64.deposit])) ? event.data.deposit : void 0;
1355
- const source = isRecord(_optionalChain([event, 'access', _65 => _65.data, 'optionalAccess', _66 => _66.source])) ? event.data.source : void 0;
1356
- return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _67 => _67.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _68 => _68.transactionHash]))));
1394
+ const deposit = isRecord(_optionalChain([event, 'access', _66 => _66.data, 'optionalAccess', _67 => _67.deposit])) ? event.data.deposit : void 0;
1395
+ const source = isRecord(_optionalChain([event, 'access', _68 => _68.data, 'optionalAccess', _69 => _69.source])) ? event.data.source : void 0;
1396
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _70 => _70.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _71 => _71.transactionHash]))));
1357
1397
  }
1358
1398
  if (event.type === "bridge-failed" || event.type === "error") {
1359
- const deposit = isRecord(_optionalChain([event, 'access', _69 => _69.data, 'optionalAccess', _70 => _70.deposit])) ? event.data.deposit : void 0;
1360
- const source = isRecord(_optionalChain([event, 'access', _71 => _71.data, 'optionalAccess', _72 => _72.source])) ? event.data.source : void 0;
1361
- return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _73 => _73.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _74 => _74.transactionHash]))));
1399
+ const deposit = isRecord(_optionalChain([event, 'access', _72 => _72.data, 'optionalAccess', _73 => _73.deposit])) ? event.data.deposit : void 0;
1400
+ const source = isRecord(_optionalChain([event, 'access', _74 => _74.data, 'optionalAccess', _75 => _75.source])) ? event.data.source : void 0;
1401
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _76 => _76.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _77 => _77.transactionHash]))));
1362
1402
  }
1363
1403
  if (event.type === "post-bridge-swap-complete" || event.type === "post-bridge-swap-failed") {
1364
- const deposit = isRecord(_optionalChain([event, 'access', _75 => _75.data, 'optionalAccess', _76 => _76.deposit])) ? event.data.deposit : void 0;
1365
- return asString(_optionalChain([deposit, 'optionalAccess', _77 => _77.transactionHash]));
1404
+ const deposit = isRecord(_optionalChain([event, 'access', _78 => _78.data, 'optionalAccess', _79 => _79.deposit])) ? event.data.deposit : void 0;
1405
+ return asString(_optionalChain([deposit, 'optionalAccess', _80 => _80.transactionHash]));
1366
1406
  }
1367
1407
  return void 0;
1368
1408
  }
1369
1409
  function getEventSourceDetails(event) {
1370
- if (!_optionalChain([event, 'optionalAccess', _78 => _78.type]) || !isRecord(event.data)) return {};
1410
+ if (!_optionalChain([event, 'optionalAccess', _81 => _81.type]) || !isRecord(event.data)) return {};
1371
1411
  if (event.type === "deposit-received") {
1372
1412
  return {
1373
1413
  chainId: asNumber(event.data.chain),
@@ -1379,15 +1419,15 @@ function getEventSourceDetails(event) {
1379
1419
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
1380
1420
  if (event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "bridge-failed" || event.type === "error" || event.type === "post-bridge-swap-complete" || event.type === "post-bridge-swap-failed") {
1381
1421
  return {
1382
- chainId: _nullishCoalesce(asNumber(_optionalChain([source, 'optionalAccess', _79 => _79.chain])), () => ( asNumber(_optionalChain([deposit, 'optionalAccess', _80 => _80.chain])))),
1383
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _81 => _81.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _82 => _82.amount])))),
1384
- token: _nullishCoalesce(_nullishCoalesce(asAddress(_optionalChain([source, 'optionalAccess', _83 => _83.asset])), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _84 => _84.asset])))), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _85 => _85.token]))))
1422
+ chainId: _nullishCoalesce(asNumber(_optionalChain([source, 'optionalAccess', _82 => _82.chain])), () => ( asNumber(_optionalChain([deposit, 'optionalAccess', _83 => _83.chain])))),
1423
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _84 => _84.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _85 => _85.amount])))),
1424
+ token: _nullishCoalesce(_nullishCoalesce(asAddress(_optionalChain([source, 'optionalAccess', _86 => _86.asset])), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _87 => _87.asset])))), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _88 => _88.token]))))
1385
1425
  };
1386
1426
  }
1387
1427
  return {};
1388
1428
  }
1389
1429
  function isDepositEvent(event) {
1390
- return _optionalChain([event, 'optionalAccess', _86 => _86.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _87 => _87.type]) === "bridge-started" || _optionalChain([event, 'optionalAccess', _88 => _88.type]) === "bridge-complete" || _optionalChain([event, 'optionalAccess', _89 => _89.type]) === "bridge-failed" || _optionalChain([event, 'optionalAccess', _90 => _90.type]) === "post-bridge-swap-complete" || _optionalChain([event, 'optionalAccess', _91 => _91.type]) === "post-bridge-swap-failed" || _optionalChain([event, 'optionalAccess', _92 => _92.type]) === "error";
1430
+ return _optionalChain([event, 'optionalAccess', _89 => _89.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _90 => _90.type]) === "bridge-started" || _optionalChain([event, 'optionalAccess', _91 => _91.type]) === "bridge-complete" || _optionalChain([event, 'optionalAccess', _92 => _92.type]) === "bridge-failed" || _optionalChain([event, 'optionalAccess', _93 => _93.type]) === "post-bridge-swap-complete" || _optionalChain([event, 'optionalAccess', _94 => _94.type]) === "post-bridge-swap-failed" || _optionalChain([event, 'optionalAccess', _95 => _95.type]) === "error";
1391
1431
  }
1392
1432
  function isHexString(value) {
1393
1433
  return value.startsWith("0x") || value.startsWith("0X");
@@ -1442,7 +1482,7 @@ function isEventForTx(event, txHash) {
1442
1482
  return txRefsMatch(eventTxHash, txHash);
1443
1483
  }
1444
1484
  function formatBridgeFailedMessage(event) {
1445
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _93 => _93.data]), () => ( {}));
1485
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _96 => _96.data]), () => ( {}));
1446
1486
  const code = typeof eventData.errorCode === "string" ? eventData.errorCode : void 0;
1447
1487
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
1448
1488
  function toUserFacingFailure(raw) {
@@ -1474,12 +1514,12 @@ function formatBridgeFailedMessage(event) {
1474
1514
  return { message: "Bridge failed" };
1475
1515
  }
1476
1516
  function parseWebhookTimestamp(event) {
1477
- if (typeof _optionalChain([event, 'optionalAccess', _94 => _94.time]) !== "string") return void 0;
1517
+ if (typeof _optionalChain([event, 'optionalAccess', _97 => _97.time]) !== "string") return void 0;
1478
1518
  const timestamp = Date.parse(event.time);
1479
1519
  return Number.isFinite(timestamp) ? timestamp : void 0;
1480
1520
  }
1481
1521
  function syncPhaseTimings(previous, event) {
1482
- if (!_optionalChain([event, 'optionalAccess', _95 => _95.type])) return previous;
1522
+ if (!_optionalChain([event, 'optionalAccess', _98 => _98.type])) return previous;
1483
1523
  const timestamp = _nullishCoalesce(parseWebhookTimestamp(event), () => ( Date.now()));
1484
1524
  const setReceived = (event.type === "deposit-received" || event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "bridge-failed" || event.type === "post-bridge-swap-complete" || event.type === "post-bridge-swap-failed" || event.type === "error") && previous.receivedAt === void 0;
1485
1525
  const setBridging = (event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "post-bridge-swap-complete") && previous.bridgingAt === void 0;
@@ -1520,9 +1560,9 @@ function getCurrentPhaseId(state, phaseTimings, isEarlyComplete) {
1520
1560
  if (state.type === "complete") {
1521
1561
  return void 0;
1522
1562
  }
1523
- if (_optionalChain([state, 'access', _96 => _96.lastEvent, 'optionalAccess', _97 => _97.type]) === "bridge-started" || _optionalChain([state, 'access', _98 => _98.lastEvent, 'optionalAccess', _99 => _99.type]) === "bridge-complete")
1563
+ if (_optionalChain([state, 'access', _99 => _99.lastEvent, 'optionalAccess', _100 => _100.type]) === "bridge-started" || _optionalChain([state, 'access', _101 => _101.lastEvent, 'optionalAccess', _102 => _102.type]) === "bridge-complete")
1524
1564
  return "bridging";
1525
- if (_optionalChain([state, 'access', _100 => _100.lastEvent, 'optionalAccess', _101 => _101.type]) === "deposit-received") return "received";
1565
+ if (_optionalChain([state, 'access', _103 => _103.lastEvent, 'optionalAccess', _104 => _104.type]) === "deposit-received") return "received";
1526
1566
  return "confirming";
1527
1567
  }
1528
1568
  function ProcessingStep({
@@ -1576,7 +1616,7 @@ function ProcessingStep({
1576
1616
  txHash,
1577
1617
  flowLabel
1578
1618
  });
1579
- _optionalChain([onDepositComplete, 'optionalCall', _102 => _102(txHash, void 0, {
1619
+ _optionalChain([onDepositComplete, 'optionalCall', _105 => _105(txHash, void 0, {
1580
1620
  amount,
1581
1621
  sourceChain,
1582
1622
  sourceToken,
@@ -1617,7 +1657,7 @@ function ProcessingStep({
1617
1657
  _react.useEffect.call(void 0, () => {
1618
1658
  if (!state.lastEvent) return;
1619
1659
  setPhaseTimings((previous) => syncPhaseTimings(previous, state.lastEvent));
1620
- }, [_optionalChain([state, 'access', _103 => _103.lastEvent, 'optionalAccess', _104 => _104.time]), _optionalChain([state, 'access', _105 => _105.lastEvent, 'optionalAccess', _106 => _106.type])]);
1660
+ }, [_optionalChain([state, 'access', _106 => _106.lastEvent, 'optionalAccess', _107 => _107.time]), _optionalChain([state, 'access', _108 => _108.lastEvent, 'optionalAccess', _109 => _109.type])]);
1621
1661
  _react.useEffect.call(void 0, () => {
1622
1662
  savePhaseTimings(txHash, phaseTimings);
1623
1663
  }, [txHash, phaseTimings]);
@@ -1644,20 +1684,20 @@ function ProcessingStep({
1644
1684
  debugLog(debug, "processing", "poll:event", {
1645
1685
  type: lastEvent2.type,
1646
1686
  matchesTx: eventMatchesTx,
1647
- intentId: _optionalChain([eventData, 'optionalAccess', _107 => _107.intentId])
1687
+ intentId: _optionalChain([eventData, 'optionalAccess', _110 => _110.intentId])
1648
1688
  });
1649
1689
  }
1650
1690
  if (!isMounted) return;
1651
1691
  const awaitingPostBridgeSwap = waitForFinalTx && hasPostBridgeActions;
1652
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _108 => _108.type]) === "post-bridge-swap-complete") {
1692
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _111 => _111.type]) === "post-bridge-swap-complete") {
1653
1693
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1654
- const swapTxHash = _optionalChain([eventForCurrentTx, 'access', _109 => _109.data, 'optionalAccess', _110 => _110.swap, 'optionalAccess', _111 => _111.transactionHash]);
1694
+ const swapTxHash = _optionalChain([eventForCurrentTx, 'access', _112 => _112.data, 'optionalAccess', _113 => _113.swap, 'optionalAccess', _114 => _114.transactionHash]);
1655
1695
  debugLog(debug, "processing", "state:complete", {
1656
1696
  txHash,
1657
1697
  destinationTxHash: swapTxHash,
1658
1698
  event: eventForCurrentTx.type
1659
1699
  });
1660
- _optionalChain([onDepositComplete, 'optionalCall', _112 => _112(txHash, swapTxHash, {
1700
+ _optionalChain([onDepositComplete, 'optionalCall', _115 => _115(txHash, swapTxHash, {
1661
1701
  amount,
1662
1702
  sourceChain,
1663
1703
  sourceToken,
@@ -1666,7 +1706,7 @@ function ProcessingStep({
1666
1706
  })]);
1667
1707
  return;
1668
1708
  }
1669
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _113 => _113.type]) === "post-bridge-swap-failed") {
1709
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _116 => _116.type]) === "post-bridge-swap-failed") {
1670
1710
  const formatted = formatBridgeFailedMessage(eventForCurrentTx);
1671
1711
  setState({
1672
1712
  type: "failed",
@@ -1678,18 +1718,18 @@ function ProcessingStep({
1678
1718
  message: formatted.message,
1679
1719
  code: formatted.code
1680
1720
  });
1681
- _optionalChain([onDepositFailed, 'optionalCall', _114 => _114(txHash, formatted.message)]);
1721
+ _optionalChain([onDepositFailed, 'optionalCall', _117 => _117(txHash, formatted.message)]);
1682
1722
  return;
1683
1723
  }
1684
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _115 => _115.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1724
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _118 => _118.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1685
1725
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1686
- const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _116 => _116.data, 'optionalAccess', _117 => _117.destination, 'optionalAccess', _118 => _118.transactionHash]);
1726
+ const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _119 => _119.data, 'optionalAccess', _120 => _120.destination, 'optionalAccess', _121 => _121.transactionHash]);
1687
1727
  debugLog(debug, "processing", "state:complete", {
1688
1728
  txHash,
1689
1729
  destinationTxHash: destinationTxHash2,
1690
1730
  event: eventForCurrentTx.type
1691
1731
  });
1692
- _optionalChain([onDepositComplete, 'optionalCall', _119 => _119(txHash, destinationTxHash2, {
1732
+ _optionalChain([onDepositComplete, 'optionalCall', _122 => _122(txHash, destinationTxHash2, {
1693
1733
  amount,
1694
1734
  sourceChain,
1695
1735
  sourceToken,
@@ -1698,13 +1738,13 @@ function ProcessingStep({
1698
1738
  })]);
1699
1739
  return;
1700
1740
  }
1701
- if (!waitForFinalTx && _optionalChain([eventForCurrentTx, 'optionalAccess', _120 => _120.type]) === "bridge-started") {
1741
+ if (!waitForFinalTx && _optionalChain([eventForCurrentTx, 'optionalAccess', _123 => _123.type]) === "bridge-started") {
1702
1742
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1703
1743
  debugLog(debug, "processing", "state:early-complete", {
1704
1744
  txHash,
1705
1745
  event: eventForCurrentTx.type
1706
1746
  });
1707
- _optionalChain([onDepositComplete, 'optionalCall', _121 => _121(txHash, void 0, {
1747
+ _optionalChain([onDepositComplete, 'optionalCall', _124 => _124(txHash, void 0, {
1708
1748
  amount,
1709
1749
  sourceChain,
1710
1750
  sourceToken,
@@ -1713,7 +1753,7 @@ function ProcessingStep({
1713
1753
  })]);
1714
1754
  return;
1715
1755
  }
1716
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _122 => _122.type]) === "bridge-failed") {
1756
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _125 => _125.type]) === "bridge-failed") {
1717
1757
  const formatted = formatBridgeFailedMessage(eventForCurrentTx);
1718
1758
  setState({
1719
1759
  type: "failed",
@@ -1725,11 +1765,11 @@ function ProcessingStep({
1725
1765
  message: formatted.message,
1726
1766
  code: formatted.code
1727
1767
  });
1728
- _optionalChain([onDepositFailed, 'optionalCall', _123 => _123(txHash, formatted.message)]);
1768
+ _optionalChain([onDepositFailed, 'optionalCall', _126 => _126(txHash, formatted.message)]);
1729
1769
  return;
1730
1770
  }
1731
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _124 => _124.type]) === "error") {
1732
- const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _125 => _125.data, 'optionalAccess', _126 => _126.message]), () => ( "Unknown error"));
1771
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _127 => _127.type]) === "error") {
1772
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _128 => _128.data, 'optionalAccess', _129 => _129.message]), () => ( "Unknown error"));
1733
1773
  setState({
1734
1774
  type: "failed",
1735
1775
  message: errorMessage,
@@ -1739,7 +1779,7 @@ function ProcessingStep({
1739
1779
  txHash,
1740
1780
  message: errorMessage
1741
1781
  });
1742
- _optionalChain([onDepositFailed, 'optionalCall', _127 => _127(txHash, errorMessage)]);
1782
+ _optionalChain([onDepositFailed, 'optionalCall', _130 => _130(txHash, errorMessage)]);
1743
1783
  return;
1744
1784
  }
1745
1785
  setState((previous) => ({
@@ -1804,7 +1844,7 @@ function ProcessingStep({
1804
1844
  txHash,
1805
1845
  timeoutMs: ESCALATED_DELAY_MS
1806
1846
  });
1807
- _optionalChain([onError, 'optionalCall', _128 => _128(message, "PROCESS_TIMEOUT")]);
1847
+ _optionalChain([onError, 'optionalCall', _131 => _131(message, "PROCESS_TIMEOUT")]);
1808
1848
  }, ESCALATED_DELAY_MS);
1809
1849
  return () => clearTimeout(timeoutId);
1810
1850
  }, [debug, directTransfer, onError, state.type, txHash]);
@@ -1813,13 +1853,13 @@ function ProcessingStep({
1813
1853
  const isProcessing = state.type === "processing";
1814
1854
  const lastEvent = state.lastEvent;
1815
1855
  const failureMessage = state.type === "failed" ? state.message : void 0;
1816
- const isEarlyComplete = !waitForFinalTx && _optionalChain([lastEvent, 'optionalAccess', _129 => _129.type]) === "bridge-started";
1856
+ const isEarlyComplete = !waitForFinalTx && _optionalChain([lastEvent, 'optionalAccess', _132 => _132.type]) === "bridge-started";
1817
1857
  const timelineNowMs = _nullishCoalesce(phaseTimings.endedAt, () => ( Date.now()));
1818
1858
  const flowNoun = flowLabel === "withdraw" ? "withdrawal" : "deposit";
1819
1859
  const flowCapitalized = flowLabel === "withdraw" ? "Withdrawal" : "Deposit";
1820
- const isPostBridgeSwapEvent = _optionalChain([lastEvent, 'optionalAccess', _130 => _130.type]) === "post-bridge-swap-complete" || _optionalChain([lastEvent, 'optionalAccess', _131 => _131.type]) === "post-bridge-swap-failed";
1821
- const destinationTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess', _132 => _132.data, 'optionalAccess', _133 => _133.swap, 'optionalAccess', _134 => _134.transactionHash]) || null : _optionalChain([lastEvent, 'optionalAccess', _135 => _135.data, 'optionalAccess', _136 => _136.destination, 'optionalAccess', _137 => _137.transactionHash]) || null;
1822
- const bridgeTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess', _138 => _138.data, 'optionalAccess', _139 => _139.bridge, 'optionalAccess', _140 => _140.transactionHash]) || null : null;
1860
+ const isPostBridgeSwapEvent = _optionalChain([lastEvent, 'optionalAccess', _133 => _133.type]) === "post-bridge-swap-complete" || _optionalChain([lastEvent, 'optionalAccess', _134 => _134.type]) === "post-bridge-swap-failed";
1861
+ const destinationTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess', _135 => _135.data, 'optionalAccess', _136 => _136.swap, 'optionalAccess', _137 => _137.transactionHash]) || null : _optionalChain([lastEvent, 'optionalAccess', _138 => _138.data, 'optionalAccess', _139 => _139.destination, 'optionalAccess', _140 => _140.transactionHash]) || null;
1862
+ const bridgeTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess', _141 => _141.data, 'optionalAccess', _142 => _142.bridge, 'optionalAccess', _143 => _143.transactionHash]) || null : null;
1823
1863
  const sourceDetails = getEventSourceDetails(lastEvent);
1824
1864
  const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
1825
1865
  const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
@@ -1850,7 +1890,7 @@ function ProcessingStep({
1850
1890
  const activePhaseElapsedMs = isProcessing && activePhaseStartedAt !== void 0 ? timelineNowMs - activePhaseStartedAt : 0;
1851
1891
  const delayPhaseId = isProcessing && currentPhaseId && activePhaseElapsedMs >= SOFT_DELAY_MS[currentPhaseId] ? currentPhaseId : void 0;
1852
1892
  const headerTitle = isFailed ? `${flowCapitalized} could not be completed` : isComplete ? isEarlyComplete ? `${flowCapitalized} confirmed` : `${flowCapitalized} successful` : delayPhaseId === "received" ? "Bridge pending" : delayPhaseId === "bridging" ? "Bridge delayed" : delayPhaseId === "confirming" ? `Confirming ${flowNoun}` : `Submitting transaction...`;
1853
- const headerDescription = isFailed ? _nullishCoalesce(failureMessage, () => ( "The transfer could not be completed.")) : isComplete ? directTransfer ? "Your transfer is complete." : isEarlyComplete ? "The bridge has started. Funds will arrive shortly." : "Your funds were successfully deposited." : delayPhaseId === "received" ? "Funds are in. We are still waiting for the bridge transaction to begin." : delayPhaseId === "bridging" ? "The bridge has started but settlement is taking longer than expected." : delayPhaseId === "confirming" ? "The source transaction has not been picked up yet, but we are still polling automatically." : _optionalChain([state, 'access', _141 => _141.lastEvent, 'optionalAccess', _142 => _142.type]) === "deposit-received" ? "Transfer received. Preparing bridge execution." : _optionalChain([state, 'access', _143 => _143.lastEvent, 'optionalAccess', _144 => _144.type]) === "bridge-started" ? `Bridge started. Sending funds to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, targetChain)}.` : "Filling your transaction on the blockchain.";
1893
+ const headerDescription = isFailed ? _nullishCoalesce(failureMessage, () => ( "The transfer could not be completed.")) : isComplete ? directTransfer ? "Your transfer is complete." : isEarlyComplete ? "The bridge has started. Funds will arrive shortly." : "Your funds were successfully deposited." : delayPhaseId === "received" ? "Funds are in. We are still waiting for the bridge transaction to begin." : delayPhaseId === "bridging" ? "The bridge has started but settlement is taking longer than expected." : delayPhaseId === "confirming" ? "The source transaction has not been picked up yet, but we are still polling automatically." : _optionalChain([state, 'access', _144 => _144.lastEvent, 'optionalAccess', _145 => _145.type]) === "deposit-received" ? "Transfer received. Preparing bridge execution." : _optionalChain([state, 'access', _146 => _146.lastEvent, 'optionalAccess', _147 => _147.type]) === "bridge-started" ? `Bridge started. Sending funds to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, targetChain)}.` : "Filling your transaction on the blockchain.";
1854
1894
  const showAlert = !isFailed && (delayPhaseId !== void 0 || hasEscalatedDelay);
1855
1895
  const alertMessage = hasEscalatedDelay ? "Taking longer than expected. You can close this window \u2014 processing continues in the background." : "This step is slower than usual but still processing.";
1856
1896
  const fillStatus = isComplete ? "Successful" : isFailed ? "Failed" : "Processing";
@@ -2168,4 +2208,6 @@ function getPublicClient(chainId) {
2168
2208
 
2169
2209
 
2170
2210
 
2171
- exports.Modal = Modal; exports.Spinner = Spinner; exports.Button = Button; exports.ConnectStep = ConnectStep; exports.debugLog = debugLog; exports.debugError = debugError; exports.toEvmCaip2 = toEvmCaip2; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.PoweredBy = PoweredBy; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.formatUserError = formatUserError; exports.getEventTxHash = getEventTxHash; exports.isDepositEvent = isDepositEvent; exports.txRefsMatch = txRefsMatch; exports.ProcessingStep = ProcessingStep; exports.getPublicClient = getPublicClient; exports.useLatestRef = useLatestRef; exports.applyTheme = applyTheme;
2211
+
2212
+
2213
+ exports.Modal = Modal; exports.Spinner = Spinner; exports.Button = Button; exports.ConnectStep = ConnectStep; exports.debugLog = debugLog; exports.debugError = debugError; exports.toEvmCaip2 = toEvmCaip2; exports.parseEvmChainId = parseEvmChainId; exports.isSolanaCaip2 = isSolanaCaip2; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.PoweredBy = PoweredBy; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.formatUserError = formatUserError; exports.getEventTxHash = getEventTxHash; exports.isDepositEvent = isDepositEvent; exports.txRefsMatch = txRefsMatch; exports.ProcessingStep = ProcessingStep; exports.getPublicClient = getPublicClient; exports.useLatestRef = useLatestRef; exports.applyTheme = applyTheme;
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOWV4KVBMcjs = require('./chunk-OWV4KVBM.cjs');
4
- require('./chunk-4CZ7W3RS.cjs');
3
+ var _chunk5GN4QU67cjs = require('./chunk-5GN4QU67.cjs');
4
+ require('./chunk-JZWCK7C3.cjs');
5
5
  require('./chunk-R6U6BHCV.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkOWV4KVBMcjs.DepositModal;
8
+ exports.DepositModal = _chunk5GN4QU67cjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { e as DepositModalProps } from './types-7IoN8k-P.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-7IoN8k-P.cjs';
2
+ import { e as DepositModalProps } from './types-DjaZ9sa8.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-DjaZ9sa8.cjs';
4
4
  import 'viem';
5
5
  import './safe.cjs';
6
6
 
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { e as DepositModalProps } from './types-BLIqLF0c.js';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-BLIqLF0c.js';
2
+ import { e as DepositModalProps } from './types-ymKENnUK.js';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-ymKENnUK.js';
4
4
  import 'viem';
5
5
  import './safe.js';
6
6
 
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-IYZGLNY6.mjs";
4
- import "./chunk-GAHX5RAT.mjs";
3
+ } from "./chunk-JDO7QPPH.mjs";
4
+ import "./chunk-FWGLRTWF.mjs";
5
5
  import "./chunk-CIXHTOO3.mjs";
6
6
  export {
7
7
  DepositModal
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOWV4KVBMcjs = require('./chunk-OWV4KVBM.cjs');
3
+ var _chunk5GN4QU67cjs = require('./chunk-5GN4QU67.cjs');
4
4
 
5
5
 
6
- var _chunkMGV75YLVcjs = require('./chunk-MGV75YLV.cjs');
7
- require('./chunk-4CZ7W3RS.cjs');
6
+ var _chunk75LRORPOcjs = require('./chunk-75LRORPO.cjs');
7
+ require('./chunk-JZWCK7C3.cjs');
8
8
 
9
9
 
10
10
 
@@ -66,4 +66,4 @@ var _chunkR6U6BHCVcjs = require('./chunk-R6U6BHCV.cjs');
66
66
 
67
67
 
68
68
 
69
- exports.CHAIN_BY_ID = _chunkR6U6BHCVcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkOWV4KVBMcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkMGV75YLVcjs.WithdrawModal; exports.chainRegistry = _chunkR6U6BHCVcjs.chainRegistry; exports.findChainIdForToken = _chunkR6U6BHCVcjs.findChainIdForToken; exports.getChainBadge = _chunkR6U6BHCVcjs.getChainBadge; exports.getChainIcon = _chunkR6U6BHCVcjs.getChainIcon; exports.getChainId = _chunkR6U6BHCVcjs.getChainId; exports.getChainName = _chunkR6U6BHCVcjs.getChainName; exports.getChainObject = _chunkR6U6BHCVcjs.getChainObject; exports.getExplorerName = _chunkR6U6BHCVcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR6U6BHCVcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR6U6BHCVcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR6U6BHCVcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR6U6BHCVcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR6U6BHCVcjs.getTokenAddress; exports.getTokenDecimals = _chunkR6U6BHCVcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR6U6BHCVcjs.getTokenIcon; exports.getTokenSymbol = _chunkR6U6BHCVcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR6U6BHCVcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR6U6BHCVcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR6U6BHCVcjs.isSupportedTokenAddressForChain;
69
+ exports.CHAIN_BY_ID = _chunkR6U6BHCVcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk5GN4QU67cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk75LRORPOcjs.WithdrawModal; exports.chainRegistry = _chunkR6U6BHCVcjs.chainRegistry; exports.findChainIdForToken = _chunkR6U6BHCVcjs.findChainIdForToken; exports.getChainBadge = _chunkR6U6BHCVcjs.getChainBadge; exports.getChainIcon = _chunkR6U6BHCVcjs.getChainIcon; exports.getChainId = _chunkR6U6BHCVcjs.getChainId; exports.getChainName = _chunkR6U6BHCVcjs.getChainName; exports.getChainObject = _chunkR6U6BHCVcjs.getChainObject; exports.getExplorerName = _chunkR6U6BHCVcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR6U6BHCVcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR6U6BHCVcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR6U6BHCVcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR6U6BHCVcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR6U6BHCVcjs.getTokenAddress; exports.getTokenDecimals = _chunkR6U6BHCVcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR6U6BHCVcjs.getTokenIcon; exports.getTokenSymbol = _chunkR6U6BHCVcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR6U6BHCVcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR6U6BHCVcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR6U6BHCVcjs.isSupportedTokenAddressForChain;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, i as WithdrawEvent, j as WithdrawFailedEventData, k as WithdrawModalProps, l as WithdrawSubmittedEventData } from './types-7IoN8k-P.cjs';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, i as WithdrawEvent, j as WithdrawFailedEventData, k as WithdrawModalProps, l as WithdrawSubmittedEventData } from './types-DjaZ9sa8.cjs';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
5
5
  export { SafeTransactionRequest } from './safe.cjs';
6
6
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, i as WithdrawEvent, j as WithdrawFailedEventData, k as WithdrawModalProps, l as WithdrawSubmittedEventData } from './types-BLIqLF0c.js';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, i as WithdrawEvent, j as WithdrawFailedEventData, k as WithdrawModalProps, l as WithdrawSubmittedEventData } from './types-ymKENnUK.js';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
5
5
  export { SafeTransactionRequest } from './safe.js';
6
6
  import 'react/jsx-runtime';
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-IYZGLNY6.mjs";
3
+ } from "./chunk-JDO7QPPH.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-RKRF7ANK.mjs";
7
- import "./chunk-GAHX5RAT.mjs";
6
+ } from "./chunk-CULXRW6U.mjs";
7
+ import "./chunk-FWGLRTWF.mjs";
8
8
  import {
9
9
  CHAIN_BY_ID,
10
10
  DEFAULT_BACKEND_URL,
package/dist/reown.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOWV4KVBMcjs = require('./chunk-OWV4KVBM.cjs');
3
+ var _chunk5GN4QU67cjs = require('./chunk-5GN4QU67.cjs');
4
4
 
5
5
 
6
- var _chunkMGV75YLVcjs = require('./chunk-MGV75YLV.cjs');
7
- require('./chunk-4CZ7W3RS.cjs');
6
+ var _chunk75LRORPOcjs = require('./chunk-75LRORPO.cjs');
7
+ require('./chunk-JZWCK7C3.cjs');
8
8
  require('./chunk-R6U6BHCV.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.DepositModal = _chunkOWV4KVBMcjs.DepositModal; exports.WithdrawModal = _chunkMGV75YLVcjs.WithdrawModal;
12
+ exports.DepositModal = _chunk5GN4QU67cjs.DepositModal; exports.WithdrawModal = _chunk75LRORPOcjs.WithdrawModal;
package/dist/reown.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, k as WithdrawModalProps, l as WithdrawSubmittedEventData } from './types-7IoN8k-P.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, k as WithdrawModalProps, l as WithdrawSubmittedEventData } from './types-DjaZ9sa8.cjs';
4
4
  export { SafeTransactionRequest } from './safe.cjs';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';