@rhinestone/deposit-modal 0.10.0 → 0.11.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.
Files changed (49) hide show
  1. package/dist/{DepositModalReown-MTWT6Y66.mjs → DepositModalReown-MO5QDLIT.mjs} +96 -26
  2. package/dist/{DepositModalReown-S3DSFXTX.cjs → DepositModalReown-YGB73NMW.cjs} +97 -27
  3. package/dist/caip-D8aRWdEY.d.cts +40 -0
  4. package/dist/caip-D8aRWdEY.d.ts +40 -0
  5. package/dist/{chunk-NF4NBRUP.cjs → chunk-4FTI3GTB.cjs} +1 -1
  6. package/dist/{chunk-A223BLVC.mjs → chunk-53IFZGSF.mjs} +177 -21
  7. package/dist/{chunk-VDGT6NZQ.mjs → chunk-5746YXKC.mjs} +14 -31
  8. package/dist/{chunk-7TV7GLJB.mjs → chunk-CWGUBFJL.mjs} +763 -169
  9. package/dist/{chunk-LR7MKHYV.mjs → chunk-EIWOVX53.mjs} +27 -25
  10. package/dist/{chunk-VTVOHNXM.cjs → chunk-FVUXJ3RP.cjs} +3 -3
  11. package/dist/{chunk-A42XAHIB.cjs → chunk-HUHBNYD3.cjs} +84 -101
  12. package/dist/{chunk-YEBXUUH3.cjs → chunk-JPRV36DT.cjs} +2 -2
  13. package/dist/{chunk-UMCDZJMG.cjs → chunk-LQGYPM5B.cjs} +96 -94
  14. package/dist/{chunk-ILT2PITN.mjs → chunk-MZ53PDIX.mjs} +1 -1
  15. package/dist/{chunk-5NJYW5FT.mjs → chunk-OWYPKCYD.mjs} +12 -9
  16. package/dist/{chunk-W4YAOJPG.cjs → chunk-SSQ27YFB.cjs} +625 -568
  17. package/dist/{chunk-H577RJN5.cjs → chunk-TENL4H64.cjs} +186 -30
  18. package/dist/{chunk-5OEWGJR4.mjs → chunk-URFSTNRS.mjs} +1 -1
  19. package/dist/{chunk-KW32UBUQ.mjs → chunk-V6T7LORJ.mjs} +1 -1
  20. package/dist/{chunk-MHIOMTMM.mjs → chunk-YELNYILK.mjs} +391 -334
  21. package/dist/{chunk-PUJHXHRA.cjs → chunk-ZQR36NCV.cjs} +845 -251
  22. package/dist/{chunk-DEF767BA.cjs → chunk-ZRIRCIQM.cjs} +66 -63
  23. package/dist/claim.cjs +6 -6
  24. package/dist/claim.d.cts +3 -2
  25. package/dist/claim.d.ts +3 -2
  26. package/dist/claim.mjs +5 -5
  27. package/dist/{caip-523Zrc3r.d.cts → constants-FuzG3h4m.d.cts} +1 -18
  28. package/dist/{caip-523Zrc3r.d.ts → constants-FuzG3h4m.d.ts} +1 -18
  29. package/dist/constants.cjs +5 -3
  30. package/dist/constants.d.cts +3 -2
  31. package/dist/constants.d.ts +3 -2
  32. package/dist/constants.mjs +4 -2
  33. package/dist/deposit.cjs +8 -8
  34. package/dist/deposit.d.cts +3 -2
  35. package/dist/deposit.d.ts +3 -2
  36. package/dist/deposit.mjs +7 -7
  37. package/dist/index.cjs +12 -10
  38. package/dist/index.d.cts +3 -2
  39. package/dist/index.d.ts +3 -2
  40. package/dist/index.mjs +11 -9
  41. package/dist/polymarket.cjs +5 -5
  42. package/dist/polymarket.mjs +2 -2
  43. package/dist/{types-C0SGf-21.d.cts → types-CsGa-HxD.d.cts} +10 -3
  44. package/dist/{types-C0SGf-21.d.ts → types-DdS8OySJ.d.ts} +10 -3
  45. package/dist/withdraw.cjs +6 -6
  46. package/dist/withdraw.d.cts +3 -2
  47. package/dist/withdraw.d.ts +3 -2
  48. package/dist/withdraw.mjs +5 -5
  49. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  import * as react from 'react';
2
- import { i as DepositModalProps } from './types-C0SGf-21.cjs';
3
- export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-C0SGf-21.cjs';
2
+ import { i as DepositModalProps } from './types-CsGa-HxD.cjs';
3
+ export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-CsGa-HxD.cjs';
4
4
  import 'viem';
5
+ import './caip-D8aRWdEY.cjs';
5
6
 
6
7
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
7
8
  declare namespace DepositModal {
package/dist/deposit.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as react from 'react';
2
- import { i as DepositModalProps } from './types-C0SGf-21.js';
3
- export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-C0SGf-21.js';
2
+ import { i as DepositModalProps } from './types-DdS8OySJ.js';
3
+ export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-DdS8OySJ.js';
4
4
  import 'viem';
5
+ import './caip-D8aRWdEY.js';
5
6
 
6
7
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
7
8
  declare namespace DepositModal {
package/dist/deposit.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-MHIOMTMM.mjs";
4
- import "./chunk-VDGT6NZQ.mjs";
5
- import "./chunk-KW32UBUQ.mjs";
6
- import "./chunk-7TV7GLJB.mjs";
7
- import "./chunk-5OEWGJR4.mjs";
8
- import "./chunk-ILT2PITN.mjs";
9
- import "./chunk-A223BLVC.mjs";
3
+ } from "./chunk-YELNYILK.mjs";
4
+ import "./chunk-5746YXKC.mjs";
5
+ import "./chunk-V6T7LORJ.mjs";
6
+ import "./chunk-CWGUBFJL.mjs";
7
+ import "./chunk-URFSTNRS.mjs";
8
+ import "./chunk-MZ53PDIX.mjs";
9
+ import "./chunk-53IFZGSF.mjs";
10
10
  export {
11
11
  DepositModal
12
12
  };
package/dist/index.cjs CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
2
2
 
3
- var _chunkW4YAOJPGcjs = require('./chunk-W4YAOJPG.cjs');
3
+ var _chunkSSQ27YFBcjs = require('./chunk-SSQ27YFB.cjs');
4
4
 
5
5
 
6
- var _chunkUMCDZJMGcjs = require('./chunk-UMCDZJMG.cjs');
7
- require('./chunk-A42XAHIB.cjs');
6
+ var _chunkLQGYPM5Bcjs = require('./chunk-LQGYPM5B.cjs');
7
+ require('./chunk-HUHBNYD3.cjs');
8
8
 
9
9
 
10
- var _chunkDEF767BAcjs = require('./chunk-DEF767BA.cjs');
11
- require('./chunk-VTVOHNXM.cjs');
12
- require('./chunk-PUJHXHRA.cjs');
13
- require('./chunk-NF4NBRUP.cjs');
14
- require('./chunk-YEBXUUH3.cjs');
10
+ var _chunkZRIRCIQMcjs = require('./chunk-ZRIRCIQM.cjs');
11
+ require('./chunk-FVUXJ3RP.cjs');
12
+ require('./chunk-ZQR36NCV.cjs');
13
+ require('./chunk-4FTI3GTB.cjs');
14
+ require('./chunk-JPRV36DT.cjs');
15
15
 
16
16
 
17
17
 
@@ -43,7 +43,8 @@ require('./chunk-YEBXUUH3.cjs');
43
43
 
44
44
 
45
45
 
46
- var _chunkH577RJN5cjs = require('./chunk-H577RJN5.cjs');
46
+
47
+ var _chunkTENL4H64cjs = require('./chunk-TENL4H64.cjs');
47
48
 
48
49
  // src/core/reown-disconnect.ts
49
50
  async function disconnectWallet() {
@@ -99,4 +100,5 @@ async function disconnectWallet() {
99
100
 
100
101
 
101
102
 
102
- exports.CHAIN_BY_ID = _chunkH577RJN5cjs.CHAIN_BY_ID; exports.ClaimModal = _chunkDEF767BAcjs.ClaimModal; exports.DepositModal = _chunkW4YAOJPGcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkH577RJN5cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkH577RJN5cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkH577RJN5cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkH577RJN5cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkUMCDZJMGcjs.WithdrawModal; exports.chainRegistry = _chunkH577RJN5cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkH577RJN5cjs.findChainIdForToken; exports.getChainBadge = _chunkH577RJN5cjs.getChainBadge; exports.getChainIcon = _chunkH577RJN5cjs.getChainIcon; exports.getChainId = _chunkH577RJN5cjs.getChainId; exports.getChainName = _chunkH577RJN5cjs.getChainName; exports.getChainObject = _chunkH577RJN5cjs.getChainObject; exports.getExplorerName = _chunkH577RJN5cjs.getExplorerName; exports.getExplorerTxUrl = _chunkH577RJN5cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkH577RJN5cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkH577RJN5cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkH577RJN5cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkH577RJN5cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkH577RJN5cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkH577RJN5cjs.getTokenAddress; exports.getTokenDecimals = _chunkH577RJN5cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkH577RJN5cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkH577RJN5cjs.getTokenIcon; exports.getTokenSymbol = _chunkH577RJN5cjs.getTokenSymbol; exports.getUsdcAddress = _chunkH577RJN5cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkH577RJN5cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkH577RJN5cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkH577RJN5cjs.tokenIconUrl;
103
+
104
+ exports.CHAIN_BY_ID = _chunkTENL4H64cjs.CHAIN_BY_ID; exports.ClaimModal = _chunkZRIRCIQMcjs.ClaimModal; exports.DepositModal = _chunkSSQ27YFBcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkTENL4H64cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkTENL4H64cjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkTENL4H64cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkTENL4H64cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkTENL4H64cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkTENL4H64cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkTENL4H64cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkLQGYPM5Bcjs.WithdrawModal; exports.chainRegistry = _chunkTENL4H64cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkTENL4H64cjs.findChainIdForToken; exports.getChainBadge = _chunkTENL4H64cjs.getChainBadge; exports.getChainIcon = _chunkTENL4H64cjs.getChainIcon; exports.getChainId = _chunkTENL4H64cjs.getChainId; exports.getChainName = _chunkTENL4H64cjs.getChainName; exports.getChainObject = _chunkTENL4H64cjs.getChainObject; exports.getExplorerName = _chunkTENL4H64cjs.getExplorerName; exports.getExplorerTxUrl = _chunkTENL4H64cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkTENL4H64cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkTENL4H64cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkTENL4H64cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkTENL4H64cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkTENL4H64cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkTENL4H64cjs.getTokenAddress; exports.getTokenDecimals = _chunkTENL4H64cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkTENL4H64cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkTENL4H64cjs.getTokenIcon; exports.getTokenSymbol = _chunkTENL4H64cjs.getTokenSymbol; exports.getUsdcAddress = _chunkTENL4H64cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkTENL4H64cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkTENL4H64cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkTENL4H64cjs.tokenIconUrl;
package/dist/index.d.cts CHANGED
@@ -1,9 +1,10 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
3
  export { ClaimModal } from './claim.cjs';
4
- export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-C0SGf-21.cjs';
4
+ export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-CsGa-HxD.cjs';
5
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
6
- export { C as CHAIN_BY_ID, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_USDC_ADDRESS, b as HYPERCORE_USDT0_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as chainRegistry, f as findChainIdForToken, g as getChainBadge, e as getChainIcon, h as getChainId, i as getChainName, j as getChainObject, k as getExplorerName, l as getExplorerTxUrl, m as getExplorerUrl, n as getSupportedChainIds, o as getSupportedTargetTokens, p as getSupportedTokenSymbolsForChain, q as getTargetTokenSymbolsForChain, r as getTokenAddress, s as getTokenDecimals, t as getTokenDecimalsByAddress, u as getTokenIcon, v as getTokenSymbol, w as getUsdcAddress, x as getUsdcDecimals, y as isSupportedTokenAddressForChain, z as tokenIconUrl } from './caip-523Zrc3r.cjs';
6
+ export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.cjs';
7
+ export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.cjs';
7
8
  import 'react';
8
9
  import 'viem';
9
10
  import 'viem/chains';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
3
  export { ClaimModal } from './claim.js';
4
- export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-C0SGf-21.js';
4
+ export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-DdS8OySJ.js';
5
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
6
- export { C as CHAIN_BY_ID, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_USDC_ADDRESS, b as HYPERCORE_USDT0_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as chainRegistry, f as findChainIdForToken, g as getChainBadge, e as getChainIcon, h as getChainId, i as getChainName, j as getChainObject, k as getExplorerName, l as getExplorerTxUrl, m as getExplorerUrl, n as getSupportedChainIds, o as getSupportedTargetTokens, p as getSupportedTokenSymbolsForChain, q as getTargetTokenSymbolsForChain, r as getTokenAddress, s as getTokenDecimals, t as getTokenDecimalsByAddress, u as getTokenIcon, v as getTokenSymbol, w as getUsdcAddress, x as getUsdcDecimals, y as isSupportedTokenAddressForChain, z as tokenIconUrl } from './caip-523Zrc3r.js';
6
+ export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.js';
7
+ export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.js';
7
8
  import 'react';
8
9
  import 'viem';
9
10
  import 'viem/chains';
package/dist/index.mjs CHANGED
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-MHIOMTMM.mjs";
3
+ } from "./chunk-YELNYILK.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-LR7MKHYV.mjs";
7
- import "./chunk-VDGT6NZQ.mjs";
6
+ } from "./chunk-EIWOVX53.mjs";
7
+ import "./chunk-5746YXKC.mjs";
8
8
  import {
9
9
  ClaimModal
10
- } from "./chunk-5NJYW5FT.mjs";
11
- import "./chunk-KW32UBUQ.mjs";
12
- import "./chunk-7TV7GLJB.mjs";
13
- import "./chunk-5OEWGJR4.mjs";
14
- import "./chunk-ILT2PITN.mjs";
10
+ } from "./chunk-OWYPKCYD.mjs";
11
+ import "./chunk-V6T7LORJ.mjs";
12
+ import "./chunk-CWGUBFJL.mjs";
13
+ import "./chunk-URFSTNRS.mjs";
14
+ import "./chunk-MZ53PDIX.mjs";
15
15
  import {
16
16
  CHAIN_BY_ID,
17
17
  HYPERCORE_CHAIN_ID,
18
+ HYPERCORE_SPOT_CAIP2,
18
19
  HYPERCORE_USDC_ADDRESS,
19
20
  HYPERCORE_USDT0_ADDRESS,
20
21
  NATIVE_TOKEN_ADDRESS,
@@ -43,7 +44,7 @@ import {
43
44
  getUsdcDecimals,
44
45
  isSupportedTokenAddressForChain,
45
46
  tokenIconUrl
46
- } from "./chunk-A223BLVC.mjs";
47
+ } from "./chunk-53IFZGSF.mjs";
47
48
 
48
49
  // src/core/reown-disconnect.ts
49
50
  async function disconnectWallet() {
@@ -69,6 +70,7 @@ export {
69
70
  ClaimModal,
70
71
  DepositModal,
71
72
  HYPERCORE_CHAIN_ID,
73
+ HYPERCORE_SPOT_CAIP2,
72
74
  HYPERCORE_USDC_ADDRESS,
73
75
  HYPERCORE_USDT0_ADDRESS,
74
76
  NATIVE_TOKEN_ADDRESS,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYEBXUUH3cjs = require('./chunk-YEBXUUH3.cjs');
6
- require('./chunk-H577RJN5.cjs');
5
+ var _chunkJPRV36DTcjs = require('./chunk-JPRV36DT.cjs');
6
+ require('./chunk-TENL4H64.cjs');
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
 
@@ -22,12 +22,12 @@ async function getPolymarketAccount(params) {
22
22
  );
23
23
  }
24
24
  const eoa = _viem.getAddress.call(void 0, params.eoa);
25
- const proxyWallet = await _chunkYEBXUUH3cjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
25
+ const proxyWallet = await _chunkJPRV36DTcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
26
26
  if (!proxyWallet) return null;
27
27
  throwIfAborted(signal);
28
28
  let balances = { pusd: 0n, usdce: 0n };
29
29
  try {
30
- balances = await _chunkYEBXUUH3cjs.readPolymarketBalances.call(void 0, {
30
+ balances = await _chunkJPRV36DTcjs.readPolymarketBalances.call(void 0, {
31
31
  publicClient: polygonClient(rpcUrl),
32
32
  proxyWallet
33
33
  });
@@ -39,7 +39,7 @@ async function getPolymarketAccount(params) {
39
39
  return {
40
40
  eoa,
41
41
  proxyWallet,
42
- chainId: _chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID,
42
+ chainId: _chunkJPRV36DTcjs.POLYMARKET_POLYGON_CHAIN_ID,
43
43
  pusd,
44
44
  usdce,
45
45
  totalUsd: pusd.usd + usdce.usd
@@ -2,8 +2,8 @@ import {
2
2
  POLYMARKET_POLYGON_CHAIN_ID,
3
3
  fetchPolymarketProxyWallet,
4
4
  readPolymarketBalances
5
- } from "./chunk-ILT2PITN.mjs";
6
- import "./chunk-A223BLVC.mjs";
5
+ } from "./chunk-MZ53PDIX.mjs";
6
+ import "./chunk-53IFZGSF.mjs";
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
  import {
@@ -1,4 +1,5 @@
1
1
  import { TypedDataDefinition, Address, Hex, WalletClient, PublicClient, Chain } from 'viem';
2
+ import { T as TargetChain } from './caip-D8aRWdEY.cjs';
2
3
 
3
4
  /**
4
5
  * Public config shape exposed on DepositModalProps. Each provider defaults to
@@ -116,7 +117,7 @@ interface DepositCompleteEventData {
116
117
  amount: string;
117
118
  sourceChain: ChainId | "unknown";
118
119
  sourceToken?: string;
119
- targetChain: number | "solana";
120
+ targetChain: TargetChain;
120
121
  targetToken: string;
121
122
  }
122
123
  interface DepositFailedEventData {
@@ -145,6 +146,12 @@ interface WithdrawFailedEventData {
145
146
  interface ErrorEventData {
146
147
  message: string;
147
148
  code?: string;
149
+ /**
150
+ * The underlying wallet/RPC error, verbatim. `message` is written for the
151
+ * end user and drops the detail a bug report needs — log this instead. Never
152
+ * render it: it is unsanitized and can carry RPC URLs.
153
+ */
154
+ cause?: string;
148
155
  }
149
156
  interface OutputTokenRule {
150
157
  match: {
@@ -180,7 +187,7 @@ interface DepositModalProps {
180
187
  walletClient?: WalletClient | null;
181
188
  /** Read client paired with `walletClient`. Defaults to the modal's own. */
182
189
  publicClient?: PublicClient | null;
183
- targetChain: Chain | number | "solana";
190
+ targetChain: Chain | TargetChain;
184
191
  targetToken: Address | string;
185
192
  isOpen: boolean;
186
193
  onClose: () => void;
@@ -460,7 +467,7 @@ type DepositLifecycleEvent = {
460
467
  * input (QR transfer, fiat onramp, exchange connect).
461
468
  */
462
469
  amountUsd?: string;
463
- targetChain: number | "solana";
470
+ targetChain: TargetChain;
464
471
  targetToken: string;
465
472
  } | {
466
473
  type: "failed";
@@ -1,4 +1,5 @@
1
1
  import { TypedDataDefinition, Address, Hex, WalletClient, PublicClient, Chain } from 'viem';
2
+ import { T as TargetChain } from './caip-D8aRWdEY.js';
2
3
 
3
4
  /**
4
5
  * Public config shape exposed on DepositModalProps. Each provider defaults to
@@ -116,7 +117,7 @@ interface DepositCompleteEventData {
116
117
  amount: string;
117
118
  sourceChain: ChainId | "unknown";
118
119
  sourceToken?: string;
119
- targetChain: number | "solana";
120
+ targetChain: TargetChain;
120
121
  targetToken: string;
121
122
  }
122
123
  interface DepositFailedEventData {
@@ -145,6 +146,12 @@ interface WithdrawFailedEventData {
145
146
  interface ErrorEventData {
146
147
  message: string;
147
148
  code?: string;
149
+ /**
150
+ * The underlying wallet/RPC error, verbatim. `message` is written for the
151
+ * end user and drops the detail a bug report needs — log this instead. Never
152
+ * render it: it is unsanitized and can carry RPC URLs.
153
+ */
154
+ cause?: string;
148
155
  }
149
156
  interface OutputTokenRule {
150
157
  match: {
@@ -180,7 +187,7 @@ interface DepositModalProps {
180
187
  walletClient?: WalletClient | null;
181
188
  /** Read client paired with `walletClient`. Defaults to the modal's own. */
182
189
  publicClient?: PublicClient | null;
183
- targetChain: Chain | number | "solana";
190
+ targetChain: Chain | TargetChain;
184
191
  targetToken: Address | string;
185
192
  isOpen: boolean;
186
193
  onClose: () => void;
@@ -460,7 +467,7 @@ type DepositLifecycleEvent = {
460
467
  * input (QR transfer, fiat onramp, exchange connect).
461
468
  */
462
469
  amountUsd?: string;
463
- targetChain: number | "solana";
470
+ targetChain: TargetChain;
464
471
  targetToken: string;
465
472
  } | {
466
473
  type: "failed";
package/dist/withdraw.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUMCDZJMGcjs = require('./chunk-UMCDZJMG.cjs');
4
- require('./chunk-A42XAHIB.cjs');
5
- require('./chunk-PUJHXHRA.cjs');
6
- require('./chunk-NF4NBRUP.cjs');
7
- require('./chunk-H577RJN5.cjs');
3
+ var _chunkLQGYPM5Bcjs = require('./chunk-LQGYPM5B.cjs');
4
+ require('./chunk-HUHBNYD3.cjs');
5
+ require('./chunk-ZQR36NCV.cjs');
6
+ require('./chunk-4FTI3GTB.cjs');
7
+ require('./chunk-TENL4H64.cjs');
8
8
 
9
9
 
10
- exports.WithdrawModal = _chunkUMCDZJMGcjs.WithdrawModal;
10
+ exports.WithdrawModal = _chunkLQGYPM5Bcjs.WithdrawModal;
@@ -1,7 +1,8 @@
1
1
  import * as react from 'react';
2
- import { p as WithdrawModalProps } from './types-C0SGf-21.cjs';
3
- export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-C0SGf-21.cjs';
2
+ import { p as WithdrawModalProps } from './types-CsGa-HxD.cjs';
3
+ export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-CsGa-HxD.cjs';
4
4
  import 'viem';
5
+ import './caip-D8aRWdEY.cjs';
5
6
 
6
7
  declare function WithdrawModal({ accountAddress, sourceChain: sourceChainProp, sourceToken, targetChain: targetChainProp, targetToken, recipient, defaultAmount, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, forceRegister, onSendTransaction, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, ...removedProps }: WithdrawModalProps): react.JSX.Element;
7
8
 
@@ -1,7 +1,8 @@
1
1
  import * as react from 'react';
2
- import { p as WithdrawModalProps } from './types-C0SGf-21.js';
3
- export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-C0SGf-21.js';
2
+ import { p as WithdrawModalProps } from './types-DdS8OySJ.js';
3
+ export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-DdS8OySJ.js';
4
4
  import 'viem';
5
+ import './caip-D8aRWdEY.js';
5
6
 
6
7
  declare function WithdrawModal({ accountAddress, sourceChain: sourceChainProp, sourceToken, targetChain: targetChainProp, targetToken, recipient, defaultAmount, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, forceRegister, onSendTransaction, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, ...removedProps }: WithdrawModalProps): react.JSX.Element;
7
8
 
package/dist/withdraw.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-LR7MKHYV.mjs";
4
- import "./chunk-VDGT6NZQ.mjs";
5
- import "./chunk-7TV7GLJB.mjs";
6
- import "./chunk-5OEWGJR4.mjs";
7
- import "./chunk-A223BLVC.mjs";
3
+ } from "./chunk-EIWOVX53.mjs";
4
+ import "./chunk-5746YXKC.mjs";
5
+ import "./chunk-CWGUBFJL.mjs";
6
+ import "./chunk-URFSTNRS.mjs";
7
+ import "./chunk-53IFZGSF.mjs";
8
8
  export {
9
9
  WithdrawModal
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {