@rhinestone/deposit-modal 0.6.1 → 0.8.0

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 (44) hide show
  1. package/dist/{DepositModalReown-ICBGUVAA.cjs → DepositModalReown-J5YFZKFS.cjs} +9 -9
  2. package/dist/{DepositModalReown-IVRDXQAA.mjs → DepositModalReown-RZ6VSMKP.mjs} +6 -6
  3. package/dist/{WithdrawModalReown-O7PR343Z.mjs → WithdrawModalReown-4YUV2WWV.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-6XWURPFZ.cjs → WithdrawModalReown-B6BGY52S.cjs} +8 -8
  5. package/dist/caip-C_ZYFIGa.d.cts +77 -0
  6. package/dist/caip-C_ZYFIGa.d.ts +77 -0
  7. package/dist/{chunk-NRNJAQUA.cjs → chunk-4IOQIWDY.cjs} +4 -4
  8. package/dist/{chunk-TCLBFO3S.mjs → chunk-5S5BQ2GM.mjs} +304 -115
  9. package/dist/{chunk-N73D3WN4.mjs → chunk-7JJ4EFDY.mjs} +13 -17
  10. package/dist/{chunk-VPWWFWZT.cjs → chunk-IRI34U6N.cjs} +331 -117
  11. package/dist/{chunk-SITLCMTI.cjs → chunk-JRFPKFL6.cjs} +102 -106
  12. package/dist/{chunk-7Q26RR6J.mjs → chunk-LXTAAHPC.mjs} +6 -4
  13. package/dist/{chunk-ABVRVW3P.cjs → chunk-PUMTR35E.cjs} +85 -31
  14. package/dist/{chunk-GBOCV2LQ.mjs → chunk-RXWJ267K.mjs} +366 -152
  15. package/dist/{chunk-WJX3TJFK.mjs → chunk-SX52FXKH.mjs} +84 -30
  16. package/dist/{chunk-F7P4MV72.mjs → chunk-TYB6AA6D.mjs} +1 -1
  17. package/dist/{chunk-VVKJRGX3.cjs → chunk-VURI4G2Z.cjs} +10 -8
  18. package/dist/{chunk-UEKPBRBY.cjs → chunk-WL7AXYQ4.cjs} +3 -3
  19. package/dist/{chunk-IZPUHIIN.cjs → chunk-XLXJW44N.cjs} +743 -554
  20. package/dist/{chunk-FJWLC4AM.mjs → chunk-YLIPI3NU.mjs} +1 -1
  21. package/dist/constants.cjs +4 -2
  22. package/dist/constants.d.cts +1 -1
  23. package/dist/constants.d.ts +1 -1
  24. package/dist/constants.mjs +5 -3
  25. package/dist/deposit.cjs +6 -6
  26. package/dist/deposit.d.cts +2 -2
  27. package/dist/deposit.d.ts +2 -2
  28. package/dist/deposit.mjs +5 -5
  29. package/dist/index.cjs +11 -7
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.mjs +12 -8
  33. package/dist/polymarket.cjs +6 -6
  34. package/dist/polymarket.mjs +3 -3
  35. package/dist/styles.css +86 -12
  36. package/dist/{types-6ROxwyfG.d.cts → types--LQWg_4W.d.cts} +1 -1
  37. package/dist/{types-6ROxwyfG.d.ts → types--LQWg_4W.d.ts} +1 -1
  38. package/dist/withdraw.cjs +5 -5
  39. package/dist/withdraw.d.cts +2 -2
  40. package/dist/withdraw.d.ts +2 -2
  41. package/dist/withdraw.mjs +4 -4
  42. package/package.json +1 -1
  43. package/dist/caip-CsslyHGL.d.cts +0 -62
  44. package/dist/caip-CsslyHGL.d.ts +0 -62
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SAFE_ABI
3
- } from "./chunk-F7P4MV72.mjs";
3
+ } from "./chunk-TYB6AA6D.mjs";
4
4
 
5
5
  // src/core/dapp-imports/polymarket/constants.ts
6
6
  var POLYMARKET_POLYGON_CHAIN_ID = 137;
@@ -32,8 +32,8 @@
32
32
 
33
33
 
34
34
 
35
- var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
36
35
 
36
+ var _chunkPUMTR35Ecjs = require('./chunk-PUMTR35E.cjs');
37
37
 
38
38
 
39
39
 
@@ -67,4 +67,6 @@ var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
67
67
 
68
68
 
69
69
 
70
- 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.HYPERCORE_CHAIN_ID = _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkABVRVW3Pcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkABVRVW3Pcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkABVRVW3Pcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkABVRVW3Pcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkABVRVW3Pcjs.chainRegistry; 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.getSolanaTokenByMint = _chunkABVRVW3Pcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkABVRVW3Pcjs.getSolanaTokenBySymbol; 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;
70
+
71
+
72
+ exports.CHAIN_BY_ID = _chunkPUMTR35Ecjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkPUMTR35Ecjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS; exports.HYPERCORE_CHAIN_ID = _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkPUMTR35Ecjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkPUMTR35Ecjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkPUMTR35Ecjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkPUMTR35Ecjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkPUMTR35Ecjs.chainRegistry; exports.findChainIdForToken = _chunkPUMTR35Ecjs.findChainIdForToken; exports.getChainBadge = _chunkPUMTR35Ecjs.getChainBadge; exports.getChainIcon = _chunkPUMTR35Ecjs.getChainIcon; exports.getChainId = _chunkPUMTR35Ecjs.getChainId; exports.getChainName = _chunkPUMTR35Ecjs.getChainName; exports.getChainObject = _chunkPUMTR35Ecjs.getChainObject; exports.getExplorerName = _chunkPUMTR35Ecjs.getExplorerName; exports.getExplorerTxUrl = _chunkPUMTR35Ecjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkPUMTR35Ecjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkPUMTR35Ecjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkPUMTR35Ecjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkPUMTR35Ecjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkPUMTR35Ecjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkPUMTR35Ecjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkPUMTR35Ecjs.getTokenAddress; exports.getTokenDecimals = _chunkPUMTR35Ecjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkPUMTR35Ecjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkPUMTR35Ecjs.getTokenIcon; exports.getTokenSymbol = _chunkPUMTR35Ecjs.getTokenSymbol; exports.getUsdcAddress = _chunkPUMTR35Ecjs.getUsdcAddress; exports.getUsdcDecimals = _chunkPUMTR35Ecjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkPUMTR35Ecjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkPUMTR35Ecjs.tokenIconUrl;
@@ -1,4 +1,4 @@
1
- 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, d as SupportedTokenOption, 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';
1
+ 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, d as SupportedTokenOption, 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, A as tokenIconUrl } from './caip-C_ZYFIGa.cjs';
2
2
  import 'viem/chains';
3
3
  import 'viem';
4
4
 
@@ -1,4 +1,4 @@
1
- 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, d as SupportedTokenOption, 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';
1
+ 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, d as SupportedTokenOption, 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, A as tokenIconUrl } from './caip-C_ZYFIGa.js';
2
2
  import 'viem/chains';
3
3
  import 'viem';
4
4
 
@@ -31,8 +31,9 @@ import {
31
31
  getTokenSymbol,
32
32
  getUsdcAddress,
33
33
  getUsdcDecimals,
34
- isSupportedTokenAddressForChain
35
- } from "./chunk-WJX3TJFK.mjs";
34
+ isSupportedTokenAddressForChain,
35
+ tokenIconUrl
36
+ } from "./chunk-SX52FXKH.mjs";
36
37
  export {
37
38
  CHAIN_BY_ID,
38
39
  DEFAULT_BACKEND_URL,
@@ -66,5 +67,6 @@ export {
66
67
  getTokenSymbol,
67
68
  getUsdcAddress,
68
69
  getUsdcDecimals,
69
- isSupportedTokenAddressForChain
70
+ isSupportedTokenAddressForChain,
71
+ tokenIconUrl
70
72
  };
package/dist/deposit.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIZPUHIINcjs = require('./chunk-IZPUHIIN.cjs');
4
- require('./chunk-NRNJAQUA.cjs');
5
- require('./chunk-VPWWFWZT.cjs');
6
- require('./chunk-UEKPBRBY.cjs');
7
- require('./chunk-ABVRVW3P.cjs');
3
+ var _chunkXLXJW44Ncjs = require('./chunk-XLXJW44N.cjs');
4
+ require('./chunk-4IOQIWDY.cjs');
5
+ require('./chunk-IRI34U6N.cjs');
6
+ require('./chunk-WL7AXYQ4.cjs');
7
+ require('./chunk-PUMTR35E.cjs');
8
8
 
9
9
 
10
- exports.DepositModal = _chunkIZPUHIINcjs.DepositModal;
10
+ exports.DepositModal = _chunkXLXJW44Ncjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { f as DepositModalProps } from './types-6ROxwyfG.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, j as RpcUrlMap } from './types-6ROxwyfG.cjs';
2
+ import { f as DepositModalProps } from './types--LQWg_4W.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, j as RpcUrlMap } from './types--LQWg_4W.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-6ROxwyfG.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, j as RpcUrlMap } from './types-6ROxwyfG.js';
2
+ import { f as DepositModalProps } from './types--LQWg_4W.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, j as RpcUrlMap } from './types--LQWg_4W.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
package/dist/deposit.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-TCLBFO3S.mjs";
4
- import "./chunk-FJWLC4AM.mjs";
5
- import "./chunk-GBOCV2LQ.mjs";
6
- import "./chunk-F7P4MV72.mjs";
7
- import "./chunk-WJX3TJFK.mjs";
3
+ } from "./chunk-5S5BQ2GM.mjs";
4
+ import "./chunk-YLIPI3NU.mjs";
5
+ import "./chunk-RXWJ267K.mjs";
6
+ import "./chunk-TYB6AA6D.mjs";
7
+ import "./chunk-SX52FXKH.mjs";
8
8
  export {
9
9
  DepositModal
10
10
  };
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIZPUHIINcjs = require('./chunk-IZPUHIIN.cjs');
4
- require('./chunk-NRNJAQUA.cjs');
3
+ var _chunkXLXJW44Ncjs = require('./chunk-XLXJW44N.cjs');
4
+ require('./chunk-4IOQIWDY.cjs');
5
5
 
6
6
 
7
- var _chunkSITLCMTIcjs = require('./chunk-SITLCMTI.cjs');
8
- require('./chunk-VPWWFWZT.cjs');
9
- require('./chunk-UEKPBRBY.cjs');
7
+ var _chunkJRFPKFL6cjs = require('./chunk-JRFPKFL6.cjs');
8
+ require('./chunk-IRI34U6N.cjs');
9
+ require('./chunk-WL7AXYQ4.cjs');
10
10
 
11
11
 
12
12
 
@@ -38,7 +38,9 @@ require('./chunk-UEKPBRBY.cjs');
38
38
 
39
39
 
40
40
 
41
- var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
41
+
42
+
43
+ var _chunkPUMTR35Ecjs = require('./chunk-PUMTR35E.cjs');
42
44
 
43
45
  // src/core/reown-disconnect.ts
44
46
  var _react = require('@reown/appkit/react');
@@ -85,4 +87,6 @@ async function disconnectWallet() {
85
87
 
86
88
 
87
89
 
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 = _chunkIZPUHIINcjs.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 = _chunkSITLCMTIcjs.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;
90
+
91
+
92
+ exports.CHAIN_BY_ID = _chunkPUMTR35Ecjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkPUMTR35Ecjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkXLXJW44Ncjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkPUMTR35Ecjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkPUMTR35Ecjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkPUMTR35Ecjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkPUMTR35Ecjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkJRFPKFL6cjs.WithdrawModal; exports.chainRegistry = _chunkPUMTR35Ecjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkPUMTR35Ecjs.findChainIdForToken; exports.getChainBadge = _chunkPUMTR35Ecjs.getChainBadge; exports.getChainIcon = _chunkPUMTR35Ecjs.getChainIcon; exports.getChainId = _chunkPUMTR35Ecjs.getChainId; exports.getChainName = _chunkPUMTR35Ecjs.getChainName; exports.getChainObject = _chunkPUMTR35Ecjs.getChainObject; exports.getExplorerName = _chunkPUMTR35Ecjs.getExplorerName; exports.getExplorerTxUrl = _chunkPUMTR35Ecjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkPUMTR35Ecjs.getExplorerUrl; exports.getSupportedChainIds = _chunkPUMTR35Ecjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkPUMTR35Ecjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkPUMTR35Ecjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkPUMTR35Ecjs.getTokenAddress; exports.getTokenDecimals = _chunkPUMTR35Ecjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkPUMTR35Ecjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkPUMTR35Ecjs.getTokenIcon; exports.getTokenSymbol = _chunkPUMTR35Ecjs.getTokenSymbol; exports.getUsdcAddress = _chunkPUMTR35Ecjs.getUsdcAddress; exports.getUsdcDecimals = _chunkPUMTR35Ecjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkPUMTR35Ecjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkPUMTR35Ecjs.tokenIconUrl;
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
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 OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.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 OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types--LQWg_4W.cjs';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
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';
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, B as HYPERCORE_USDT0_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, A as tokenIconUrl } from './caip-C_ZYFIGa.cjs';
6
6
  import 'react';
7
7
  import 'viem';
8
8
  import 'viem/chains';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
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 OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.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 OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types--LQWg_4W.js';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
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';
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, B as HYPERCORE_USDT0_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, A as tokenIconUrl } from './caip-C_ZYFIGa.js';
6
6
  import 'react';
7
7
  import 'viem';
8
8
  import 'viem/chains';
package/dist/index.mjs CHANGED
@@ -1,18 +1,19 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-TCLBFO3S.mjs";
4
- import "./chunk-FJWLC4AM.mjs";
3
+ } from "./chunk-5S5BQ2GM.mjs";
4
+ import "./chunk-YLIPI3NU.mjs";
5
5
  import {
6
6
  WithdrawModal
7
- } from "./chunk-N73D3WN4.mjs";
8
- import "./chunk-GBOCV2LQ.mjs";
9
- import "./chunk-F7P4MV72.mjs";
7
+ } from "./chunk-7JJ4EFDY.mjs";
8
+ import "./chunk-RXWJ267K.mjs";
9
+ import "./chunk-TYB6AA6D.mjs";
10
10
  import {
11
11
  CHAIN_BY_ID,
12
12
  DEFAULT_BACKEND_URL,
13
13
  DEFAULT_SIGNER_ADDRESS,
14
14
  HYPERCORE_CHAIN_ID,
15
15
  HYPERCORE_USDC_ADDRESS,
16
+ HYPERCORE_USDT0_ADDRESS,
16
17
  NATIVE_TOKEN_ADDRESS,
17
18
  SOURCE_CHAINS,
18
19
  SUPPORTED_CHAINS,
@@ -37,8 +38,9 @@ import {
37
38
  getTokenSymbol,
38
39
  getUsdcAddress,
39
40
  getUsdcDecimals,
40
- isSupportedTokenAddressForChain
41
- } from "./chunk-WJX3TJFK.mjs";
41
+ isSupportedTokenAddressForChain,
42
+ tokenIconUrl
43
+ } from "./chunk-SX52FXKH.mjs";
42
44
 
43
45
  // src/core/reown-disconnect.ts
44
46
  import { modal } from "@reown/appkit/react";
@@ -58,6 +60,7 @@ export {
58
60
  DepositModal,
59
61
  HYPERCORE_CHAIN_ID,
60
62
  HYPERCORE_USDC_ADDRESS,
63
+ HYPERCORE_USDT0_ADDRESS,
61
64
  NATIVE_TOKEN_ADDRESS,
62
65
  SOURCE_CHAINS,
63
66
  SUPPORTED_CHAINS,
@@ -84,5 +87,6 @@ export {
84
87
  getTokenSymbol,
85
88
  getUsdcAddress,
86
89
  getUsdcDecimals,
87
- isSupportedTokenAddressForChain
90
+ isSupportedTokenAddressForChain,
91
+ tokenIconUrl
88
92
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkNRNJAQUAcjs = require('./chunk-NRNJAQUA.cjs');
6
- require('./chunk-UEKPBRBY.cjs');
7
- require('./chunk-ABVRVW3P.cjs');
5
+ var _chunk4IOQIWDYcjs = require('./chunk-4IOQIWDY.cjs');
6
+ require('./chunk-WL7AXYQ4.cjs');
7
+ require('./chunk-PUMTR35E.cjs');
8
8
 
9
9
  // src/core/dapp-imports/polymarket/account.ts
10
10
 
@@ -23,12 +23,12 @@ async function getPolymarketAccount(params) {
23
23
  );
24
24
  }
25
25
  const eoa = _viem.getAddress.call(void 0, params.eoa);
26
- const proxyWallet = await _chunkNRNJAQUAcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
26
+ const proxyWallet = await _chunk4IOQIWDYcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
27
27
  if (!proxyWallet) return null;
28
28
  throwIfAborted(signal);
29
29
  let balances = { pusd: 0n, usdce: 0n };
30
30
  try {
31
- balances = await _chunkNRNJAQUAcjs.readPolymarketBalances.call(void 0, {
31
+ balances = await _chunk4IOQIWDYcjs.readPolymarketBalances.call(void 0, {
32
32
  publicClient: polygonClient(rpcUrl),
33
33
  proxyWallet
34
34
  });
@@ -40,7 +40,7 @@ async function getPolymarketAccount(params) {
40
40
  return {
41
41
  eoa,
42
42
  proxyWallet,
43
- chainId: _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID,
43
+ chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
44
44
  pusd,
45
45
  usdce,
46
46
  totalUsd: pusd.usd + usdce.usd
@@ -2,9 +2,9 @@ import {
2
2
  POLYMARKET_POLYGON_CHAIN_ID,
3
3
  fetchPolymarketProxyWallet,
4
4
  readPolymarketBalances
5
- } from "./chunk-FJWLC4AM.mjs";
6
- import "./chunk-F7P4MV72.mjs";
7
- import "./chunk-WJX3TJFK.mjs";
5
+ } from "./chunk-YLIPI3NU.mjs";
6
+ import "./chunk-TYB6AA6D.mjs";
7
+ import "./chunk-SX52FXKH.mjs";
8
8
 
9
9
  // src/core/dapp-imports/polymarket/account.ts
10
10
  import {
package/dist/styles.css CHANGED
@@ -169,6 +169,15 @@
169
169
  gap: 16px;
170
170
  }
171
171
 
172
+ .rs-modal--swapped-iframe {
173
+ /* Full-bleed embedded iframe: no header chrome, no footer, so it fills the
174
+ modal top-to-bottom. Only the vertical padding is dropped — the horizontal
175
+ inset is already cancelled by the body's negative margin for full width. */
176
+ padding-top: 0;
177
+ padding-bottom: 0;
178
+ gap: 0;
179
+ }
180
+
172
181
  /* =============================================================================
173
182
  Dark Mode
174
183
  ============================================================================= */
@@ -2252,6 +2261,22 @@
2252
2261
  justify-content: space-between;
2253
2262
  gap: 12px;
2254
2263
  width: 100%;
2264
+ font-size: 14px;
2265
+ font-weight: 500;
2266
+ line-height: normal;
2267
+ color: var(--rs-muted);
2268
+ }
2269
+
2270
+ .rs-fees-accordion-label {
2271
+ display: inline-flex;
2272
+ align-items: center;
2273
+ gap: 4px;
2274
+ }
2275
+
2276
+ .rs-fees-accordion-toggle {
2277
+ display: inline-flex;
2278
+ align-items: center;
2279
+ gap: 4px;
2255
2280
  padding: 0;
2256
2281
  background: none;
2257
2282
  border: 0;
@@ -2261,13 +2286,14 @@
2261
2286
  line-height: normal;
2262
2287
  color: var(--rs-muted);
2263
2288
  cursor: pointer;
2289
+ font-feature-settings: "tnum";
2264
2290
  }
2265
2291
 
2266
- .rs-fees-accordion-summary:disabled {
2292
+ .rs-fees-accordion-toggle:disabled {
2267
2293
  cursor: default;
2268
2294
  }
2269
2295
 
2270
- .rs-fees-accordion-summary:focus-visible {
2296
+ .rs-fees-accordion-toggle:focus-visible {
2271
2297
  outline: 2px solid var(--rs-border-accent);
2272
2298
  outline-offset: 2px;
2273
2299
  border-radius: 4px;
@@ -3303,6 +3329,9 @@
3303
3329
  line-height: normal;
3304
3330
  color: var(--rs-foreground);
3305
3331
  font-family: inherit;
3332
+ /* Never wrap the chain/token label to a 2nd line (it would resize the
3333
+ modal). Labels are abbreviated; this is the belt-and-suspenders. */
3334
+ white-space: nowrap;
3306
3335
  }
3307
3336
 
3308
3337
  .rs-deposit-address-dropdown-trigger:hover {
@@ -3326,6 +3355,21 @@
3326
3355
  flex-shrink: 0;
3327
3356
  }
3328
3357
 
3358
+ /* Text-badge fallback when a token has no bundled icon (mirrors the wallet
3359
+ asset list), so dropdown rows never render a blank icon slot. */
3360
+ .rs-deposit-address-dropdown-icon--fallback {
3361
+ display: flex;
3362
+ align-items: center;
3363
+ justify-content: center;
3364
+ background-color: var(--rs-surface);
3365
+ color: inherit;
3366
+ font-size: 9px;
3367
+ font-weight: 600;
3368
+ text-transform: uppercase;
3369
+ letter-spacing: -0.2px;
3370
+ overflow: hidden;
3371
+ }
3372
+
3329
3373
  .rs-deposit-address-dropdown-chevron {
3330
3374
  width: 24px;
3331
3375
  height: 24px;
@@ -4878,14 +4922,24 @@
4878
4922
 
4879
4923
  /* Card-network chips: exported Figma tiles are all 38×24. */
4880
4924
  .rs-list-row-meta-icons--cards > .rs-card-network {
4925
+ position: relative;
4881
4926
  width: 29px;
4882
4927
  height: 18px;
4883
4928
  border-radius: 3.25px;
4884
4929
  overflow: hidden;
4885
- background: transparent;
4930
+ background: #fff;
4886
4931
  box-shadow: none;
4887
4932
  }
4888
4933
 
4934
+ .rs-list-row-meta-icons--cards > .rs-card-network::after {
4935
+ content: "";
4936
+ position: absolute;
4937
+ inset: 0;
4938
+ border: 1px solid var(--rs-surface-subtle);
4939
+ border-radius: inherit;
4940
+ pointer-events: none;
4941
+ }
4942
+
4889
4943
  .rs-list-row-meta-icons--cards > .rs-card-network + .rs-card-network {
4890
4944
  margin-left: -7px;
4891
4945
  }
@@ -4893,6 +4947,7 @@
4893
4947
  .rs-list-row-meta-icons--cards .rs-card-network svg {
4894
4948
  width: 100%;
4895
4949
  height: 100%;
4950
+ display: block;
4896
4951
  }
4897
4952
 
4898
4953
  .rs-list-row-chevron {
@@ -4937,8 +4992,8 @@
4937
4992
 
4938
4993
  /* `.rs-fiat-onramp` is a marker class on the .rs-screen root so the
4939
4994
  modal-content `:has()` rules below can size correctly. The Swapped iframe
4940
- phase intentionally omits the BodyHeader so the embedded widget starts
4941
- immediately below the modal nav chrome. */
4995
+ phase intentionally omits our header chrome so the embedded widget owns the
4996
+ top of the modal. */
4942
4997
 
4943
4998
  .rs-fiat-onramp-body {
4944
4999
  gap: 0;
@@ -4988,6 +5043,14 @@
4988
5043
  padding-inline: 0;
4989
5044
  }
4990
5045
 
5046
+ /* Connect keeps our back/close chrome above the embedded widget. In the iframe
5047
+ phase, drop only the bottom shell padding so the iframe lands flush with the
5048
+ modal bottom edge; the side inset still lets the body negative margin expand
5049
+ iframe phases cleanly to the modal edges. */
5050
+ .rs-modal:has(.rs-modal-body[data-flow-mode="exchange-connect"] .rs-fiat-onramp) {
5051
+ padding: 16px 16px 0;
5052
+ }
5053
+
4991
5054
  /* Iframe wrap sized to Swapped's documented heights. Width deliberately spans
4992
5055
  the full modal body in the iframe phase; the modal itself controls the
4993
5056
  product-specific width below. */
@@ -5220,9 +5283,9 @@
5220
5283
  Fiat keeps the default modal width. Connect uses Swapped's wider documented
5221
5284
  iframe width and applies it from the moment the user enters exchange-connect
5222
5285
  mode (`data-flow-mode` on rs-modal-body), so the modal width is stable
5223
- across SetupStep → SwappedIframeStep. Height grows with the Rhinestone
5224
- chrome (header + iframe + PoweredBy); cap to viewport so smaller laptops get
5225
- a scrollable modal-body instead of overflowing the screen. */
5286
+ across SetupStep → SwappedIframeStep. Height grows to the active screen's
5287
+ chrome; cap to viewport so smaller laptops get a scrollable modal-body
5288
+ instead of overflowing the screen. */
5226
5289
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"]) {
5227
5290
  max-width: 445px;
5228
5291
  }
@@ -5249,15 +5312,26 @@
5249
5312
  a tall empty area below the tracker. Applied on modal-content (not
5250
5313
  modal-body) so the transition on its min-height animates smoothly
5251
5314
  when the iframe→tracker phase swap fires. */
5252
- .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"][data-step-type="setup"]),
5253
- .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"] .rs-fiat-onramp) {
5315
+ .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"][data-step-type="setup"]) {
5254
5316
  min-height: 699px;
5255
5317
  }
5256
- .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"][data-step-type="setup"]),
5257
- .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"] .rs-fiat-onramp) {
5318
+
5319
+ .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"][data-step-type="setup"]) {
5258
5320
  min-height: 698px;
5259
5321
  }
5260
5322
 
5323
+ /* Iframe phase: with no header/footer chrome the modal is sized to the
5324
+ embedded iframe exactly (586 fiat / 585 connect) so it fills the modal with
5325
+ no whitespace below. The taller setup values above pre-reserve the space
5326
+ before SwappedIframeStep mounts. */
5327
+ .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"] .rs-fiat-onramp) {
5328
+ min-height: 586px;
5329
+ }
5330
+
5331
+ .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"] .rs-fiat-onramp) {
5332
+ min-height: 585px;
5333
+ }
5334
+
5261
5335
  /* =============================================================================
5262
5336
  Custom order tracker
5263
5337
  =============================================================================
@@ -82,7 +82,7 @@ type ChainKey = number | "solana";
82
82
  type RpcUrlMap = Partial<Record<ChainKey, string>>;
83
83
 
84
84
  type Caip2ChainId = `eip155:${number}` | `solana:${string}`;
85
- type ChainId = number | "solana" | Caip2ChainId;
85
+ type ChainId = number | "solana" | "hypercore" | Caip2ChainId;
86
86
  interface DepositModalTheme {
87
87
  mode?: "light" | "dark";
88
88
  radius?: "none" | "sm" | "md" | "lg" | "full";
@@ -82,7 +82,7 @@ type ChainKey = number | "solana";
82
82
  type RpcUrlMap = Partial<Record<ChainKey, string>>;
83
83
 
84
84
  type Caip2ChainId = `eip155:${number}` | `solana:${string}`;
85
- type ChainId = number | "solana" | Caip2ChainId;
85
+ type ChainId = number | "solana" | "hypercore" | Caip2ChainId;
86
86
  interface DepositModalTheme {
87
87
  mode?: "light" | "dark";
88
88
  radius?: "none" | "sm" | "md" | "lg" | "full";
package/dist/withdraw.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSITLCMTIcjs = require('./chunk-SITLCMTI.cjs');
4
- require('./chunk-VPWWFWZT.cjs');
5
- require('./chunk-UEKPBRBY.cjs');
6
- require('./chunk-ABVRVW3P.cjs');
3
+ var _chunkJRFPKFL6cjs = require('./chunk-JRFPKFL6.cjs');
4
+ require('./chunk-IRI34U6N.cjs');
5
+ require('./chunk-WL7AXYQ4.cjs');
6
+ require('./chunk-PUMTR35E.cjs');
7
7
 
8
8
 
9
- exports.WithdrawModal = _chunkSITLCMTIcjs.WithdrawModal;
9
+ exports.WithdrawModal = _chunkJRFPKFL6cjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { n as WithdrawModalProps } from './types-6ROxwyfG.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, j as RpcUrlMap, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.cjs';
2
+ import { n as WithdrawModalProps } from './types--LQWg_4W.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, j as RpcUrlMap, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types--LQWg_4W.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { n as WithdrawModalProps } from './types-6ROxwyfG.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, j as RpcUrlMap, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.js';
2
+ import { n as WithdrawModalProps } from './types--LQWg_4W.js';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, j as RpcUrlMap, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types--LQWg_4W.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
package/dist/withdraw.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-N73D3WN4.mjs";
4
- import "./chunk-GBOCV2LQ.mjs";
5
- import "./chunk-F7P4MV72.mjs";
6
- import "./chunk-WJX3TJFK.mjs";
3
+ } from "./chunk-7JJ4EFDY.mjs";
4
+ import "./chunk-RXWJ267K.mjs";
5
+ import "./chunk-TYB6AA6D.mjs";
6
+ import "./chunk-SX52FXKH.mjs";
7
7
  export {
8
8
  WithdrawModal
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.6.1",
3
+ "version": "0.8.0",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {
@@ -1,62 +0,0 @@
1
- import { Chain } from 'viem/chains';
2
- import { Address } from 'viem';
3
-
4
- declare function getChainIcon(chainId: number | "solana"): string | undefined;
5
- declare function getTokenIcon(symbol: string): string | undefined;
6
-
7
- declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
8
- declare const DEFAULT_SIGNER_ADDRESS: Address;
9
- declare const NATIVE_TOKEN_ADDRESS: Address;
10
- declare const CHAIN_BY_ID: Record<number, Chain>;
11
- declare const SOURCE_CHAINS: Chain[];
12
- declare const SUPPORTED_CHAINS: Chain[];
13
- type ChainRegistryToken = {
14
- symbol: string;
15
- address: Address;
16
- decimals: number;
17
- };
18
- type ChainRegistryEntry = {
19
- name: string;
20
- tokens: readonly ChainRegistryToken[];
21
- };
22
- declare const chainRegistry: Record<string, ChainRegistryEntry>;
23
- type SupportedTokenOption = {
24
- symbol: string;
25
- address: Address;
26
- decimals: number;
27
- };
28
- declare function getChainId(chain: Chain | number): number;
29
- declare function getChainObject(chain: Chain | number): Chain | undefined;
30
- declare function getUsdcAddress(chainId: number): Address | undefined;
31
- declare function getUsdcDecimals(chainId: number): number;
32
- declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
33
- declare function getTokenDecimals(symbol: string, chainId: number): number;
34
- declare function getTargetTokenSymbolsForChain(chainId: number): string[];
35
- declare function getSupportedTokenSymbolsForChain(chainId: number): string[];
36
- declare function getSupportedChainIds(): number[];
37
- declare function isSupportedTokenAddressForChain(token: Address, chainId: number): boolean;
38
- declare function getSupportedTargetTokens(chainId: number): SupportedTokenOption[];
39
- declare function getTokenDecimalsByAddress(token: Address, chainId?: number): number;
40
- declare function findChainIdForToken(address: Address): number | undefined;
41
- declare function getTokenSymbol(token: Address, chainId?: number): string;
42
- declare function getChainName(chainId: number | "solana"): string;
43
- declare function getChainBadge(chainId: number | "solana"): {
44
- shortLabel: string;
45
- color: string;
46
- bg: string;
47
- };
48
- declare function getExplorerUrl(chainId: number | "solana"): string | undefined;
49
- declare function getExplorerTxUrl(chainId: number | "solana", txHash: string): string | undefined;
50
- declare function getExplorerName(chainId: number | "solana"): string;
51
-
52
- /**
53
- * HyperCore — Hyperliquid's virtual trading L1 (chain id 1337), settling on
54
- * HyperEVM (999). It is USDC-only and requires an EOA recipient. It has no node
55
- * of its own, so `targetChainToCaip2(1337)` still emits `eip155:1337` (the
56
- * backend maps 1337 → 999), but it must never be used as an EVM RPC target.
57
- */
58
- declare const HYPERCORE_CHAIN_ID = 1337;
59
- /** Canonical USDC on HyperEVM (999), the HyperCore settlement chain. */
60
- declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
61
-
62
- export { CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, HYPERCORE_USDC_ADDRESS as b, SUPPORTED_CHAINS as c, type SupportedTokenOption as d, chainRegistry as e, findChainIdForToken as f, getChainBadge as g, getChainIcon as h, getChainId as i, getChainName as j, getChainObject as k, getExplorerName as l, getExplorerTxUrl as m, getExplorerUrl as n, getSupportedChainIds as o, getSupportedTargetTokens as p, getSupportedTokenSymbolsForChain as q, getTargetTokenSymbolsForChain as r, getTokenAddress as s, getTokenDecimals as t, getTokenDecimalsByAddress as u, getTokenIcon as v, getTokenSymbol as w, getUsdcAddress as x, getUsdcDecimals as y, isSupportedTokenAddressForChain as z };