@rhinestone/deposit-modal 0.4.3 → 0.5.1

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.
@@ -31,6 +31,7 @@ import {
31
31
  PlusCircleIcon,
32
32
  PoweredBy,
33
33
  ProcessingStep,
34
+ RpcUrlsProvider,
34
35
  Spinner,
35
36
  Tooltip,
36
37
  TransferCryptoIcon,
@@ -60,11 +61,14 @@ import {
60
61
  isNativeAsset,
61
62
  loadSessionOwnerFromStorage,
62
63
  portfolioToAssets,
64
+ rpcUrlFor,
63
65
  saveSessionOwnerToStorage,
64
66
  tokenFormatter,
65
67
  txRefsMatch,
66
- useLatestRef
67
- } from "./chunk-7EQQD7B4.mjs";
68
+ useLatestRef,
69
+ useRpcUrls,
70
+ useStableRpcUrls
71
+ } from "./chunk-4YLVKTSU.mjs";
68
72
  import {
69
73
  SAFE_ABI
70
74
  } from "./chunk-F7P4MV72.mjs";
@@ -2057,7 +2061,19 @@ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
2057
2061
  function FinalisingDepositStep() {
2058
2062
  return /* @__PURE__ */ jsxs7("div", { className: "rs-screen rs-finalising", children: [
2059
2063
  /* @__PURE__ */ jsxs7("div", { className: "rs-screen-body rs-finalising-body", children: [
2060
- /* @__PURE__ */ jsx7("span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ jsx7(Spinner, {}) }),
2064
+ /* @__PURE__ */ jsxs7(
2065
+ "svg",
2066
+ {
2067
+ className: "rs-finalising-spinner",
2068
+ viewBox: "0 0 80 80",
2069
+ fill: "none",
2070
+ "aria-hidden": "true",
2071
+ children: [
2072
+ /* @__PURE__ */ jsx7("circle", { className: "rs-finalising-spinner-track", cx: "40", cy: "40", r: "34" }),
2073
+ /* @__PURE__ */ jsx7("circle", { className: "rs-finalising-spinner-head", cx: "40", cy: "40", r: "34" })
2074
+ ]
2075
+ }
2076
+ ),
2061
2077
  /* @__PURE__ */ jsxs7("div", { className: "rs-finalising-text", children: [
2062
2078
  /* @__PURE__ */ jsx7("h2", { className: "rs-finalising-title", children: "Finalising deposit" }),
2063
2079
  /* @__PURE__ */ jsx7("p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
@@ -2079,7 +2095,6 @@ var STEP_LABELS = [
2079
2095
  function SwappedOrderTracker({
2080
2096
  amount,
2081
2097
  currency = "USDC",
2082
- chainLabel = "Base",
2083
2098
  stepStates,
2084
2099
  terminal = null,
2085
2100
  onRetry
@@ -2088,7 +2103,7 @@ function SwappedOrderTracker({
2088
2103
  const title = terminal ? terminal.kind === "cancelled" ? "Order cancelled" : "Deposit failed" : formattedAmount ? `Depositing ${formattedAmount} ${currency}` : `Depositing ${currency}`;
2089
2104
  const labels = [
2090
2105
  STEP_LABELS[0],
2091
- `${currency} received on ${chainLabel}`,
2106
+ `${currency} received`,
2092
2107
  STEP_LABELS[2],
2093
2108
  STEP_LABELS[3]
2094
2109
  ];
@@ -2108,7 +2123,15 @@ function SwappedOrderTracker({
2108
2123
  {
2109
2124
  className: "rs-swapped-tracker-step-marker",
2110
2125
  "aria-hidden": "true",
2111
- children: status === "complete" ? /* @__PURE__ */ jsx8(CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ jsx8(CloseIcon, {}) : status === "active" ? /* @__PURE__ */ jsx8(Spinner, {}) : null
2126
+ children: status === "complete" ? /* @__PURE__ */ jsx8(CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ jsx8(CloseIcon, {}) : status === "active" ? /* @__PURE__ */ jsx8(Spinner, {}) : /* @__PURE__ */ jsx8(
2127
+ "svg",
2128
+ {
2129
+ className: "rs-swapped-tracker-step-ring",
2130
+ viewBox: "0 0 16 16",
2131
+ "aria-hidden": "true",
2132
+ children: /* @__PURE__ */ jsx8("circle", { cx: "8", cy: "8", r: "7" })
2133
+ }
2134
+ )
2112
2135
  }
2113
2136
  )
2114
2137
  ]
@@ -2154,6 +2177,7 @@ var DEPOSIT_POLL_FAST_INITIAL_DELAY_MS = 1e3;
2154
2177
  var DEPOSIT_POLL_FAST_INTERVAL_MS = 500;
2155
2178
  var IFRAME_LOAD_TIMEOUT_MS = 15e3;
2156
2179
  var SWAPPED_IFRAME_ORIGINS = /* @__PURE__ */ new Set([
2180
+ "https://connect.swapped.com",
2157
2181
  "https://sandbox.swapped.com",
2158
2182
  "https://widget.swapped.com"
2159
2183
  ]);
@@ -2213,6 +2237,7 @@ function SwappedIframeStep({
2213
2237
  const [orderState, setOrderState] = useState6(null);
2214
2238
  const [latestEvent, setLatestEvent] = useState6(null);
2215
2239
  const [phase, setPhase] = useState6("iframe");
2240
+ const iframeRef = useRef6(null);
2216
2241
  const completeFiredRef = useRef6(false);
2217
2242
  const failedFiredRef = useRef6(false);
2218
2243
  const expectedOrderUuidRef = useRef6(null);
@@ -2335,10 +2360,15 @@ function SwappedIframeStep({
2335
2360
  useEffect6(() => {
2336
2361
  function onMessage(e) {
2337
2362
  if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
2363
+ if (e.source !== iframeRef.current?.contentWindow) return;
2338
2364
  const parsed = parseSwappedIframeMessage(e.data);
2339
2365
  if (!parsed) return;
2366
+ const orderId = parsed.orderId;
2367
+ if (!orderId || orderId !== expectedOrderUuidRef.current) {
2368
+ return;
2369
+ }
2340
2370
  setOrderState((prev) => ({
2341
- orderId: parsed.orderId ?? prev?.orderId ?? "",
2371
+ orderId,
2342
2372
  status: parsed.status,
2343
2373
  orderCrypto: parsed.orderCrypto ?? prev?.orderCrypto ?? null,
2344
2374
  orderCryptoAmount: parsed.orderCryptoAmount ?? prev?.orderCryptoAmount ?? null,
@@ -2438,6 +2468,7 @@ function SwappedIframeStep({
2438
2468
  widgetUrl && !loadError && /* @__PURE__ */ jsx9(
2439
2469
  "iframe",
2440
2470
  {
2471
+ ref: iframeRef,
2441
2472
  src: widgetUrl,
2442
2473
  title: iframeTitle,
2443
2474
  className: "rs-fiat-onramp-iframe",
@@ -3347,21 +3378,15 @@ import {
3347
3378
  createTransferInstruction
3348
3379
  } from "@solana/spl-token";
3349
3380
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3350
- var configuredSolanaRpcUrl = null;
3351
3381
  var cachedConnections = /* @__PURE__ */ new Map();
3352
- function configureSolanaRpcUrl(rpcUrl) {
3353
- const normalized = rpcUrl?.trim();
3354
- configuredSolanaRpcUrl = normalized ? normalized : null;
3355
- cachedConnections.clear();
3356
- }
3357
- function getSolanaRpcUrl() {
3358
- return configuredSolanaRpcUrl ?? DEFAULT_SOLANA_RPC_URL;
3382
+ function getSolanaRpcUrl(rpcUrls) {
3383
+ return rpcUrlFor(rpcUrls, "solana") ?? DEFAULT_SOLANA_RPC_URL;
3359
3384
  }
3360
- function hasConfiguredSolanaRpcUrl() {
3361
- return configuredSolanaRpcUrl !== null;
3385
+ function hasConfiguredSolanaRpcUrl(rpcUrls) {
3386
+ return rpcUrlFor(rpcUrls, "solana") !== void 0;
3362
3387
  }
3363
- function getSolanaConnection() {
3364
- const rpcUrl = getSolanaRpcUrl();
3388
+ function getSolanaConnection(rpcUrls) {
3389
+ const rpcUrl = getSolanaRpcUrl(rpcUrls);
3365
3390
  const cached = cachedConnections.get(rpcUrl);
3366
3391
  if (cached) {
3367
3392
  return cached;
@@ -3460,6 +3485,7 @@ function SolanaConfirmStep({
3460
3485
  onError,
3461
3486
  debug
3462
3487
  }) {
3488
+ const rpcUrls = useRpcUrls();
3463
3489
  const [isSubmitting, setIsSubmitting] = useState10(false);
3464
3490
  const [error, setError] = useState10(null);
3465
3491
  const targetSymbol = getTargetTokenSymbol(targetToken, targetChain);
@@ -3525,7 +3551,7 @@ function SolanaConfirmStep({
3525
3551
  "Deposit account is not registered yet. Please restart setup and try again."
3526
3552
  );
3527
3553
  }
3528
- const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : solanaConnection ?? getSolanaConnection();
3554
+ const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : solanaConnection ?? getSolanaConnection(rpcUrls);
3529
3555
  const amountUnits = parseUnits4(sourceAmount, token.decimals);
3530
3556
  debugLog(debug, "solana-confirm", "tx:build:start", {
3531
3557
  token: token.symbol,
@@ -4584,7 +4610,8 @@ function applyAction(state, action) {
4584
4610
  processing: {
4585
4611
  ...state.processing,
4586
4612
  txHash: action.txHash,
4587
- directTransfer: action.directTransfer ?? false
4613
+ directTransfer: action.directTransfer ?? false,
4614
+ swappedContext: action.swappedContext ?? null
4588
4615
  },
4589
4616
  flow: { ...state.flow, step: "processing" }
4590
4617
  };
@@ -4753,7 +4780,8 @@ function applyAction(state, action) {
4753
4780
  deposit: { ...state.deposit, ...RESET_DEPOSIT_FIELDS },
4754
4781
  processing: {
4755
4782
  txHash: null,
4756
- directTransfer: false
4783
+ directTransfer: false,
4784
+ swappedContext: null
4757
4785
  },
4758
4786
  // Drop fetched availability wholesale. The fetch effect refetches
4759
4787
  // unconditionally on remount (so keeping the map saves nothing),
@@ -4834,7 +4862,8 @@ function createInitialState(overrides) {
4834
4862
  },
4835
4863
  processing: {
4836
4864
  txHash: null,
4837
- directTransfer: false
4865
+ directTransfer: false,
4866
+ swappedContext: null
4838
4867
  },
4839
4868
  dappImport: {
4840
4869
  activeProviderId: null,
@@ -5300,7 +5329,8 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
5300
5329
  sourceSymbol: d.sourceSymbol ?? void 0,
5301
5330
  sourceDecimals: d.sourceDecimals ?? void 0,
5302
5331
  inputAmountUsd: d.inputAmountUsd ?? void 0,
5303
- directTransfer: p.directTransfer
5332
+ directTransfer: p.directTransfer,
5333
+ swappedContext: p.swappedContext ?? void 0
5304
5334
  };
5305
5335
  }
5306
5336
  }
@@ -5358,6 +5388,7 @@ function DepositFlow({
5358
5388
  onError,
5359
5389
  debug
5360
5390
  }) {
5391
+ const rpcUrls = useRpcUrls();
5361
5392
  const onStepChangeRef = useLatestRef(onStepChange);
5362
5393
  const onEventRef = useLatestRef(onEvent);
5363
5394
  const onLifecycleRef = useLatestRef(onLifecycle);
@@ -5497,7 +5528,7 @@ function DepositFlow({
5497
5528
  return {
5498
5529
  ownerAddress: dappAddress,
5499
5530
  walletClient: void 0,
5500
- publicClient: dappPublicClient ?? getPublicClient(setupChainId),
5531
+ publicClient: dappPublicClient ?? getPublicClient(setupChainId, rpcUrls),
5501
5532
  switchChain: void 0
5502
5533
  };
5503
5534
  }
@@ -5506,7 +5537,7 @@ function DepositFlow({
5506
5537
  return {
5507
5538
  ownerAddress: dappWalletClient.account.address,
5508
5539
  walletClient: dappWalletClient,
5509
- publicClient: dappPublicClient ?? getPublicClient(fallbackChainId),
5540
+ publicClient: dappPublicClient ?? getPublicClient(fallbackChainId, rpcUrls),
5510
5541
  switchChain: dappSwitchChain
5511
5542
  };
5512
5543
  }
@@ -5520,7 +5551,7 @@ function DepositFlow({
5520
5551
  return {
5521
5552
  ownerAddress: dappAddress,
5522
5553
  walletClient: void 0,
5523
- publicClient: dappPublicClient ?? getPublicClient(setupChainId),
5554
+ publicClient: dappPublicClient ?? getPublicClient(setupChainId, rpcUrls),
5524
5555
  switchChain: void 0
5525
5556
  };
5526
5557
  }
@@ -5529,7 +5560,7 @@ function DepositFlow({
5529
5560
  return {
5530
5561
  ownerAddress: dappWalletClient.account.address,
5531
5562
  walletClient: dappWalletClient,
5532
- publicClient: dappPublicClient ?? getPublicClient(fallbackChainId),
5563
+ publicClient: dappPublicClient ?? getPublicClient(fallbackChainId, rpcUrls),
5533
5564
  switchChain: dappSwitchChain
5534
5565
  };
5535
5566
  }
@@ -5537,7 +5568,7 @@ function DepositFlow({
5537
5568
  return {
5538
5569
  ownerAddress: reownWallet.address,
5539
5570
  walletClient: reownWallet.walletClient,
5540
- publicClient: reownWallet.publicClient ?? getPublicClient(setupChainId),
5571
+ publicClient: reownWallet.publicClient ?? getPublicClient(setupChainId, rpcUrls),
5541
5572
  switchChain: reownWallet.switchChain
5542
5573
  };
5543
5574
  }
@@ -5552,7 +5583,8 @@ function DepositFlow({
5552
5583
  dappSwitchChain,
5553
5584
  dappAddress,
5554
5585
  reownWallet,
5555
- setupChainId
5586
+ setupChainId,
5587
+ rpcUrls
5556
5588
  ]);
5557
5589
  useEffect10(() => {
5558
5590
  if (flowMode !== "wallet" && flowMode !== "dapp-import") {
@@ -5575,7 +5607,7 @@ function DepositFlow({
5575
5607
  return {
5576
5608
  ownerAddress: dappAddress,
5577
5609
  walletClient: void 0,
5578
- publicClient: dappPublicClient ?? getPublicClient(setupChainId),
5610
+ publicClient: dappPublicClient ?? getPublicClient(setupChainId, rpcUrls),
5579
5611
  switchChain: void 0
5580
5612
  };
5581
5613
  }
@@ -5894,7 +5926,7 @@ function DepositFlow({
5894
5926
  eoa: dappImportOwner,
5895
5927
  getPublicClient: (chainId) => {
5896
5928
  try {
5897
- return getPublicClient(chainId);
5929
+ return getPublicClient(chainId, rpcUrls);
5898
5930
  } catch {
5899
5931
  return null;
5900
5932
  }
@@ -5922,7 +5954,8 @@ function DepositFlow({
5922
5954
  dappImportOwner,
5923
5955
  enabledDappImportProviders,
5924
5956
  dappImportAttemptNonce,
5925
- storeApi
5957
+ storeApi,
5958
+ rpcUrls
5926
5959
  ]);
5927
5960
  useLayoutEffect2(() => {
5928
5961
  if (!initialDappImportProvider) return;
@@ -6394,6 +6427,14 @@ function DepositFlow({
6394
6427
  orderCrypto: info.orderCrypto
6395
6428
  });
6396
6429
  const amount = info.amount ?? "0";
6430
+ const stateAtComplete = storeApi.getState();
6431
+ const swappedContext = stateAtComplete.flow.mode === "exchange-connect" ? {
6432
+ variant: "connect",
6433
+ method: stateAtComplete.exchange.selectedConnection
6434
+ } : stateAtComplete.flow.mode === "fiat-onramp" ? {
6435
+ variant: "fiat",
6436
+ method: stateAtComplete.fiat.selectedMethod
6437
+ } : void 0;
6397
6438
  storeApi.dispatch({
6398
6439
  type: "deposit/submitted",
6399
6440
  txHash: info.txHash,
@@ -6401,7 +6442,8 @@ function DepositFlow({
6401
6442
  sourceToken: SWAPPED_SOURCE_TOKEN,
6402
6443
  amount,
6403
6444
  sourceSymbol: info.orderCrypto ?? "USDC",
6404
- sourceDecimals: SWAPPED_SOURCE_DECIMALS
6445
+ sourceDecimals: SWAPPED_SOURCE_DECIMALS,
6446
+ swappedContext
6405
6447
  });
6406
6448
  onLifecycleRef.current?.({
6407
6449
  type: "submitted",
@@ -6663,6 +6705,7 @@ function DepositFlow({
6663
6705
  sourceSymbol: step.sourceSymbol,
6664
6706
  sourceDecimals: step.sourceDecimals,
6665
6707
  amountUsd: step.inputAmountUsd,
6708
+ swappedContext: step.swappedContext,
6666
6709
  hasPostBridgeActions: Boolean(postBridgeActions?.length),
6667
6710
  service,
6668
6711
  directTransfer: step.directTransfer,
@@ -6730,6 +6773,7 @@ function DepositFlow({
6730
6773
  sourceSymbol: step.sourceSymbol,
6731
6774
  sourceDecimals: step.sourceDecimals,
6732
6775
  amountUsd: step.inputAmountUsd,
6776
+ swappedContext: step.swappedContext,
6733
6777
  hasPostBridgeActions: Boolean(postBridgeActions?.length),
6734
6778
  service,
6735
6779
  directTransfer: step.directTransfer,
@@ -6900,7 +6944,7 @@ function DepositFlow({
6900
6944
  if (signerContext.publicClient.chain?.id === chainId) {
6901
6945
  return signerContext.publicClient;
6902
6946
  }
6903
- return getPublicClient(chainId);
6947
+ return getPublicClient(chainId, rpcUrls);
6904
6948
  };
6905
6949
  return /* @__PURE__ */ jsxs17("div", { className: "rs-modal-body", children: [
6906
6950
  effectiveStep.type === "setup" && /* @__PURE__ */ jsx19(
@@ -7325,7 +7369,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7325
7369
  // src/DepositModal.tsx
7326
7370
  import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
7327
7371
  var ReownDepositInner = lazy2(
7328
- () => import("./DepositModalReown-ORSBSEMO.mjs").then((m) => ({ default: m.DepositModalReown }))
7372
+ () => import("./DepositModalReown-YJBDBCRA.mjs").then((m) => ({ default: m.DepositModalReown }))
7329
7373
  );
7330
7374
  function sortByCreatedAtDesc(items) {
7331
7375
  return [...items].sort((a, b) => {
@@ -7375,7 +7419,7 @@ function DepositModalInner({
7375
7419
  recipient,
7376
7420
  appBalanceUsd,
7377
7421
  backendUrl = DEFAULT_BACKEND_URL,
7378
- solanaRpcUrl,
7422
+ rpcUrls: rpcUrlsProp,
7379
7423
  signerAddress = DEFAULT_SIGNER_ADDRESS,
7380
7424
  sessionChainIds,
7381
7425
  forceRegister = false,
@@ -7422,6 +7466,7 @@ function DepositModalInner({
7422
7466
  const historyLoadedRef = useRef9(false);
7423
7467
  const targetChain = targetChainProp === "solana" ? "solana" : getChainId(targetChainProp);
7424
7468
  const sourceChain = sourceChainProp ? getChainId(sourceChainProp) : void 0;
7469
+ const rpcUrls = useStableRpcUrls(rpcUrlsProp);
7425
7470
  const [recipientIsContract, setRecipientIsContract] = useState13(false);
7426
7471
  const onErrorRef = useLatestRef(onError);
7427
7472
  useEffect11(() => {
@@ -7430,7 +7475,7 @@ function DepositModalInner({
7430
7475
  return;
7431
7476
  }
7432
7477
  let cancelled = false;
7433
- getHyperEvmReadClient().getCode({ address: recipient }).then((code) => {
7478
+ getHyperEvmReadClient(rpcUrls).getCode({ address: recipient }).then((code) => {
7434
7479
  if (cancelled) return;
7435
7480
  const isContract = isContractBytecode(code);
7436
7481
  setRecipientIsContract(isContract);
@@ -7446,7 +7491,7 @@ function DepositModalInner({
7446
7491
  return () => {
7447
7492
  cancelled = true;
7448
7493
  };
7449
- }, [targetChain, recipient, onErrorRef]);
7494
+ }, [targetChain, recipient, onErrorRef, rpcUrls]);
7450
7495
  const service = useMemo9(
7451
7496
  () => createDepositService(backendUrl, {
7452
7497
  debug,
@@ -7467,9 +7512,6 @@ function DepositModalInner({
7467
7512
  applyTheme(modalRef.current, theme);
7468
7513
  }
7469
7514
  }, [isOpen, theme]);
7470
- useEffect11(() => {
7471
- configureSolanaRpcUrl(solanaRpcUrl);
7472
- }, [solanaRpcUrl]);
7473
7515
  useEffect11(() => {
7474
7516
  if (isOpen) {
7475
7517
  onReadyRef.current?.();
@@ -7579,7 +7621,7 @@ function DepositModalInner({
7579
7621
  }, [isOpen, store]);
7580
7622
  const showBackButton = uiConfig?.showBackButton ?? true;
7581
7623
  const canGoBack = backHandler !== void 0;
7582
- return /* @__PURE__ */ jsx21(DepositStoreProvider, { store, children: /* @__PURE__ */ jsx21(
7624
+ return /* @__PURE__ */ jsx21(RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ jsx21(DepositStoreProvider, { store, children: /* @__PURE__ */ jsx21(
7583
7625
  Modal,
7584
7626
  {
7585
7627
  isOpen,
@@ -7680,7 +7722,7 @@ function DepositModalInner({
7680
7722
  )
7681
7723
  ] })
7682
7724
  }
7683
- ) });
7725
+ ) }) });
7684
7726
  }
7685
7727
 
7686
7728
  export {
package/dist/deposit.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk36R7XKXPcjs = require('./chunk-36R7XKXP.cjs');
3
+ var _chunkAMEXFHB4cjs = require('./chunk-AMEXFHB4.cjs');
4
4
  require('./chunk-NRNJAQUA.cjs');
5
- require('./chunk-EDUWRMQI.cjs');
5
+ require('./chunk-PDFLALUT.cjs');
6
6
  require('./chunk-UEKPBRBY.cjs');
7
7
  require('./chunk-ABVRVW3P.cjs');
8
8
 
9
9
 
10
- exports.DepositModal = _chunk36R7XKXPcjs.DepositModal;
10
+ exports.DepositModal = _chunkAMEXFHB4cjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { f as DepositModalProps } from './types-CUOqIIvZ.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-CUOqIIvZ.cjs';
2
+ import { f as DepositModalProps } from './types-_m8w8BYq.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, k as RpcUrlMap } from './types-_m8w8BYq.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { f as DepositModalProps } from './types-CUOqIIvZ.js';
3
- export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-CUOqIIvZ.js';
2
+ import { f as DepositModalProps } from './types-_m8w8BYq.js';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, k as RpcUrlMap } from './types-_m8w8BYq.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
package/dist/deposit.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-ANPDY6NJ.mjs";
3
+ } from "./chunk-XPJJWJPM.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
- import "./chunk-7EQQD7B4.mjs";
5
+ import "./chunk-4YLVKTSU.mjs";
6
6
  import "./chunk-F7P4MV72.mjs";
7
7
  import "./chunk-WJX3TJFK.mjs";
8
8
  export {
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk36R7XKXPcjs = require('./chunk-36R7XKXP.cjs');
3
+ var _chunkAMEXFHB4cjs = require('./chunk-AMEXFHB4.cjs');
4
4
  require('./chunk-NRNJAQUA.cjs');
5
5
 
6
6
 
7
- var _chunk3NZUMDSTcjs = require('./chunk-3NZUMDST.cjs');
8
- require('./chunk-EDUWRMQI.cjs');
7
+ var _chunkV4XVFT25cjs = require('./chunk-V4XVFT25.cjs');
8
+ require('./chunk-PDFLALUT.cjs');
9
9
  require('./chunk-UEKPBRBY.cjs');
10
10
 
11
11
 
@@ -85,4 +85,4 @@ async function disconnectWallet() {
85
85
 
86
86
 
87
87
 
88
- exports.CHAIN_BY_ID = _chunkABVRVW3Pcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk36R7XKXPcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkABVRVW3Pcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkABVRVW3Pcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkABVRVW3Pcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk3NZUMDSTcjs.WithdrawModal; exports.chainRegistry = _chunkABVRVW3Pcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkABVRVW3Pcjs.findChainIdForToken; exports.getChainBadge = _chunkABVRVW3Pcjs.getChainBadge; exports.getChainIcon = _chunkABVRVW3Pcjs.getChainIcon; exports.getChainId = _chunkABVRVW3Pcjs.getChainId; exports.getChainName = _chunkABVRVW3Pcjs.getChainName; exports.getChainObject = _chunkABVRVW3Pcjs.getChainObject; exports.getExplorerName = _chunkABVRVW3Pcjs.getExplorerName; exports.getExplorerTxUrl = _chunkABVRVW3Pcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkABVRVW3Pcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkABVRVW3Pcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkABVRVW3Pcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkABVRVW3Pcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkABVRVW3Pcjs.getTokenAddress; exports.getTokenDecimals = _chunkABVRVW3Pcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon; exports.getTokenSymbol = _chunkABVRVW3Pcjs.getTokenSymbol; exports.getUsdcAddress = _chunkABVRVW3Pcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkABVRVW3Pcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkABVRVW3Pcjs.isSupportedTokenAddressForChain;
88
+ exports.CHAIN_BY_ID = _chunkABVRVW3Pcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkAMEXFHB4cjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkABVRVW3Pcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkABVRVW3Pcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkABVRVW3Pcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkV4XVFT25cjs.WithdrawModal; exports.chainRegistry = _chunkABVRVW3Pcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkABVRVW3Pcjs.findChainIdForToken; exports.getChainBadge = _chunkABVRVW3Pcjs.getChainBadge; exports.getChainIcon = _chunkABVRVW3Pcjs.getChainIcon; exports.getChainId = _chunkABVRVW3Pcjs.getChainId; exports.getChainName = _chunkABVRVW3Pcjs.getChainName; exports.getChainObject = _chunkABVRVW3Pcjs.getChainObject; exports.getExplorerName = _chunkABVRVW3Pcjs.getExplorerName; exports.getExplorerTxUrl = _chunkABVRVW3Pcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkABVRVW3Pcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkABVRVW3Pcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkABVRVW3Pcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkABVRVW3Pcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkABVRVW3Pcjs.getTokenAddress; exports.getTokenDecimals = _chunkABVRVW3Pcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon; exports.getTokenSymbol = _chunkABVRVW3Pcjs.getTokenSymbol; exports.getUsdcAddress = _chunkABVRVW3Pcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkABVRVW3Pcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkABVRVW3Pcjs.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 DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-CUOqIIvZ.cjs';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, k as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, l as WithdrawCompleteEventData, m as WithdrawFailedEventData, n as WithdrawLifecycleEvent, o as WithdrawModalProps, p as WithdrawSubmittedEventData } from './types-_m8w8BYq.cjs';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
5
5
  export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.cjs';
6
6
  import 'react';
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 DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-CUOqIIvZ.js';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, k as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, l as WithdrawCompleteEventData, m as WithdrawFailedEventData, n as WithdrawLifecycleEvent, o as WithdrawModalProps, p as WithdrawSubmittedEventData } from './types-_m8w8BYq.js';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
5
5
  export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.js';
6
6
  import 'react';
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-ANPDY6NJ.mjs";
3
+ } from "./chunk-XPJJWJPM.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
5
  import {
6
6
  WithdrawModal
7
- } from "./chunk-IDJBMNV2.mjs";
8
- import "./chunk-7EQQD7B4.mjs";
7
+ } from "./chunk-KYHPKMTK.mjs";
8
+ import "./chunk-4YLVKTSU.mjs";
9
9
  import "./chunk-F7P4MV72.mjs";
10
10
  import {
11
11
  CHAIN_BY_ID,