@rhinestone/deposit-modal 0.3.0-alpha.14 → 0.3.0-alpha.16

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 (35) hide show
  1. package/dist/{DepositModalReown-4I47KSPN.cjs → DepositModalReown-QRLLANTS.cjs} +7 -7
  2. package/dist/{DepositModalReown-DIUIB3MU.mjs → DepositModalReown-THU2QG76.mjs} +4 -4
  3. package/dist/{WithdrawModalReown-Y3NRAKXJ.cjs → WithdrawModalReown-PHWLYDZQ.cjs} +7 -7
  4. package/dist/{WithdrawModalReown-WRUEALDP.mjs → WithdrawModalReown-SSRJNUGZ.mjs} +4 -4
  5. package/dist/{constants-DqVn968d.d.ts → caip-CrQ2KKU-.d.cts} +11 -1
  6. package/dist/{constants-DqVn968d.d.cts → caip-CrQ2KKU-.d.ts} +11 -1
  7. package/dist/{chunk-SZIYS42B.mjs → chunk-6YRDD462.mjs} +63 -3
  8. package/dist/{chunk-N4XRQPVA.cjs → chunk-7W5M6WEE.cjs} +226 -203
  9. package/dist/{chunk-JTMGFWXO.mjs → chunk-E2K7XWMN.mjs} +2 -2
  10. package/dist/{chunk-2NUXDEEO.cjs → chunk-G5YDICEN.cjs} +93 -93
  11. package/dist/{chunk-7JIDIX27.cjs → chunk-MILJQWPT.cjs} +73 -13
  12. package/dist/{chunk-VD4WTEHP.mjs → chunk-PAK3NUGY.mjs} +5 -5
  13. package/dist/{chunk-3CYGTYMY.cjs → chunk-PXQBJMNF.cjs} +526 -451
  14. package/dist/{chunk-JTULAFMU.cjs → chunk-UD6QUZJS.cjs} +5 -5
  15. package/dist/{chunk-XG474KUR.mjs → chunk-YX3I7C2R.mjs} +101 -26
  16. package/dist/{chunk-4ZN726P5.mjs → chunk-Z7OJPEV2.mjs} +258 -235
  17. package/dist/constants.cjs +6 -2
  18. package/dist/constants.d.cts +1 -1
  19. package/dist/constants.d.ts +1 -1
  20. package/dist/constants.mjs +5 -1
  21. package/dist/deposit.cjs +4 -4
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +3 -3
  25. package/dist/index.cjs +9 -5
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.mjs +8 -4
  29. package/dist/{types-C8i2ebY1.d.cts → types-cXr3j4NV.d.cts} +26 -0
  30. package/dist/{types-C8i2ebY1.d.ts → types-cXr3j4NV.d.ts} +26 -0
  31. package/dist/withdraw.cjs +4 -4
  32. package/dist/withdraw.d.cts +2 -2
  33. package/dist/withdraw.d.ts +2 -2
  34. package/dist/withdraw.mjs +3 -3
  35. package/package.json +1 -1
@@ -30,9 +30,9 @@
30
30
 
31
31
 
32
32
 
33
- var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
34
33
 
35
34
 
35
+ var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
36
36
 
37
37
 
38
38
 
@@ -63,4 +63,8 @@ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
63
63
 
64
64
 
65
65
 
66
- exports.CHAIN_BY_ID = _chunk7JIDIX27cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunk7JIDIX27cjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunk7JIDIX27cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunk7JIDIX27cjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunk7JIDIX27cjs.chainRegistry; exports.findChainIdForToken = _chunk7JIDIX27cjs.findChainIdForToken; exports.getChainBadge = _chunk7JIDIX27cjs.getChainBadge; exports.getChainIcon = _chunk7JIDIX27cjs.getChainIcon; exports.getChainId = _chunk7JIDIX27cjs.getChainId; exports.getChainName = _chunk7JIDIX27cjs.getChainName; exports.getChainObject = _chunk7JIDIX27cjs.getChainObject; exports.getExplorerName = _chunk7JIDIX27cjs.getExplorerName; exports.getExplorerTxUrl = _chunk7JIDIX27cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk7JIDIX27cjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunk7JIDIX27cjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunk7JIDIX27cjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunk7JIDIX27cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk7JIDIX27cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk7JIDIX27cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk7JIDIX27cjs.getTokenAddress; exports.getTokenDecimals = _chunk7JIDIX27cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk7JIDIX27cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk7JIDIX27cjs.getTokenIcon; exports.getTokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol; exports.getUsdcAddress = _chunk7JIDIX27cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk7JIDIX27cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk7JIDIX27cjs.isSupportedTokenAddressForChain;
66
+
67
+
68
+
69
+
70
+ exports.CHAIN_BY_ID = _chunkMILJQWPTcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS; exports.HYPERCORE_CHAIN_ID = _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkMILJQWPTcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkMILJQWPTcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkMILJQWPTcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMILJQWPTcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkMILJQWPTcjs.chainRegistry; exports.findChainIdForToken = _chunkMILJQWPTcjs.findChainIdForToken; exports.getChainBadge = _chunkMILJQWPTcjs.getChainBadge; exports.getChainIcon = _chunkMILJQWPTcjs.getChainIcon; exports.getChainId = _chunkMILJQWPTcjs.getChainId; exports.getChainName = _chunkMILJQWPTcjs.getChainName; exports.getChainObject = _chunkMILJQWPTcjs.getChainObject; exports.getExplorerName = _chunkMILJQWPTcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMILJQWPTcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMILJQWPTcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkMILJQWPTcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkMILJQWPTcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkMILJQWPTcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMILJQWPTcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMILJQWPTcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMILJQWPTcjs.getTokenAddress; exports.getTokenDecimals = _chunkMILJQWPTcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMILJQWPTcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMILJQWPTcjs.getTokenIcon; exports.getTokenSymbol = _chunkMILJQWPTcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMILJQWPTcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMILJQWPTcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMILJQWPTcjs.isSupportedTokenAddressForChain;
@@ -1,4 +1,4 @@
1
- export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, b as SUPPORTED_CHAINS, y as SupportedTokenOption, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, d as getChainIcon, e as getChainId, h as getChainName, i as getChainObject, j as getExplorerName, k as getExplorerTxUrl, l as getExplorerUrl, m as getSupportedChainIds, n as getSupportedTargetTokens, o as getSupportedTokenSymbolsForChain, p as getTargetTokenSymbolsForChain, q as getTokenAddress, r as getTokenDecimals, s as getTokenDecimalsByAddress, t as getTokenIcon, u as getTokenSymbol, v as getUsdcAddress, w as getUsdcDecimals, x as isSupportedTokenAddressForChain } from './constants-DqVn968d.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, z as SupportedTokenOption, 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 } from './caip-CrQ2KKU-.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, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, b as SUPPORTED_CHAINS, y as SupportedTokenOption, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, d as getChainIcon, e as getChainId, h as getChainName, i as getChainObject, j as getExplorerName, k as getExplorerTxUrl, l as getExplorerUrl, m as getSupportedChainIds, n as getSupportedTargetTokens, o as getSupportedTokenSymbolsForChain, p as getTargetTokenSymbolsForChain, q as getTokenAddress, r as getTokenDecimals, s as getTokenDecimalsByAddress, t as getTokenIcon, u as getTokenSymbol, v as getUsdcAddress, w as getUsdcDecimals, x as isSupportedTokenAddressForChain } from './constants-DqVn968d.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, z as SupportedTokenOption, 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 } from './caip-CrQ2KKU-.js';
2
2
  import 'viem/chains';
3
3
  import 'viem';
4
4
 
@@ -2,6 +2,8 @@ import {
2
2
  CHAIN_BY_ID,
3
3
  DEFAULT_BACKEND_URL,
4
4
  DEFAULT_SIGNER_ADDRESS,
5
+ HYPERCORE_CHAIN_ID,
6
+ HYPERCORE_USDC_ADDRESS,
5
7
  NATIVE_TOKEN_ADDRESS,
6
8
  SOLANA_TOKENS,
7
9
  SOURCE_CHAINS,
@@ -30,11 +32,13 @@ import {
30
32
  getUsdcAddress,
31
33
  getUsdcDecimals,
32
34
  isSupportedTokenAddressForChain
33
- } from "./chunk-SZIYS42B.mjs";
35
+ } from "./chunk-6YRDD462.mjs";
34
36
  export {
35
37
  CHAIN_BY_ID,
36
38
  DEFAULT_BACKEND_URL,
37
39
  DEFAULT_SIGNER_ADDRESS,
40
+ HYPERCORE_CHAIN_ID,
41
+ HYPERCORE_USDC_ADDRESS,
38
42
  NATIVE_TOKEN_ADDRESS,
39
43
  SOLANA_TOKENS,
40
44
  SOURCE_CHAINS,
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3CYGTYMYcjs = require('./chunk-3CYGTYMY.cjs');
4
- require('./chunk-N4XRQPVA.cjs');
5
- require('./chunk-7JIDIX27.cjs');
3
+ var _chunkPXQBJMNFcjs = require('./chunk-PXQBJMNF.cjs');
4
+ require('./chunk-7W5M6WEE.cjs');
5
+ require('./chunk-MILJQWPT.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunk3CYGTYMYcjs.DepositModal;
8
+ exports.DepositModal = _chunkPXQBJMNFcjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { f as DepositModalProps } from './types-C8i2ebY1.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-C8i2ebY1.cjs';
2
+ import { f as DepositModalProps } from './types-cXr3j4NV.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-cXr3j4NV.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { f as DepositModalProps } from './types-C8i2ebY1.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-C8i2ebY1.js';
2
+ import { f as DepositModalProps } from './types-cXr3j4NV.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-cXr3j4NV.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
package/dist/deposit.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-XG474KUR.mjs";
4
- import "./chunk-4ZN726P5.mjs";
5
- import "./chunk-SZIYS42B.mjs";
3
+ } from "./chunk-YX3I7C2R.mjs";
4
+ import "./chunk-Z7OJPEV2.mjs";
5
+ import "./chunk-6YRDD462.mjs";
6
6
  export {
7
7
  DepositModal
8
8
  };
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3CYGTYMYcjs = require('./chunk-3CYGTYMY.cjs');
3
+ var _chunkPXQBJMNFcjs = require('./chunk-PXQBJMNF.cjs');
4
4
 
5
5
 
6
- var _chunk2NUXDEEOcjs = require('./chunk-2NUXDEEO.cjs');
7
- require('./chunk-N4XRQPVA.cjs');
6
+ var _chunkG5YDICENcjs = require('./chunk-G5YDICEN.cjs');
7
+ require('./chunk-7W5M6WEE.cjs');
8
8
 
9
9
 
10
10
 
@@ -34,7 +34,9 @@ require('./chunk-N4XRQPVA.cjs');
34
34
 
35
35
 
36
36
 
37
- var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
37
+
38
+
39
+ var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
38
40
 
39
41
  // src/core/reown-disconnect.ts
40
42
  var _react = require('@reown/appkit/react');
@@ -79,4 +81,6 @@ async function disconnectWallet() {
79
81
 
80
82
 
81
83
 
82
- exports.CHAIN_BY_ID = _chunk7JIDIX27cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk3CYGTYMYcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunk7JIDIX27cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunk7JIDIX27cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk2NUXDEEOcjs.WithdrawModal; exports.chainRegistry = _chunk7JIDIX27cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunk7JIDIX27cjs.findChainIdForToken; exports.getChainBadge = _chunk7JIDIX27cjs.getChainBadge; exports.getChainIcon = _chunk7JIDIX27cjs.getChainIcon; exports.getChainId = _chunk7JIDIX27cjs.getChainId; exports.getChainName = _chunk7JIDIX27cjs.getChainName; exports.getChainObject = _chunk7JIDIX27cjs.getChainObject; exports.getExplorerName = _chunk7JIDIX27cjs.getExplorerName; exports.getExplorerTxUrl = _chunk7JIDIX27cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk7JIDIX27cjs.getExplorerUrl; exports.getSupportedChainIds = _chunk7JIDIX27cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk7JIDIX27cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk7JIDIX27cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk7JIDIX27cjs.getTokenAddress; exports.getTokenDecimals = _chunk7JIDIX27cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk7JIDIX27cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk7JIDIX27cjs.getTokenIcon; exports.getTokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol; exports.getUsdcAddress = _chunk7JIDIX27cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk7JIDIX27cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk7JIDIX27cjs.isSupportedTokenAddressForChain;
84
+
85
+
86
+ exports.CHAIN_BY_ID = _chunkMILJQWPTcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkPXQBJMNFcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkMILJQWPTcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMILJQWPTcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMILJQWPTcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkG5YDICENcjs.WithdrawModal; exports.chainRegistry = _chunkMILJQWPTcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkMILJQWPTcjs.findChainIdForToken; exports.getChainBadge = _chunkMILJQWPTcjs.getChainBadge; exports.getChainIcon = _chunkMILJQWPTcjs.getChainIcon; exports.getChainId = _chunkMILJQWPTcjs.getChainId; exports.getChainName = _chunkMILJQWPTcjs.getChainName; exports.getChainObject = _chunkMILJQWPTcjs.getChainObject; exports.getExplorerName = _chunkMILJQWPTcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMILJQWPTcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMILJQWPTcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMILJQWPTcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMILJQWPTcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMILJQWPTcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMILJQWPTcjs.getTokenAddress; exports.getTokenDecimals = _chunkMILJQWPTcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMILJQWPTcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMILJQWPTcjs.getTokenIcon; exports.getTokenSymbol = _chunkMILJQWPTcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMILJQWPTcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMILJQWPTcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMILJQWPTcjs.isSupportedTokenAddressForChain;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
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-C8i2ebY1.cjs';
4
- export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, b as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, d as getChainIcon, e as getChainId, h as getChainName, i as getChainObject, j as getExplorerName, k as getExplorerTxUrl, l as getExplorerUrl, m as getSupportedChainIds, n as getSupportedTargetTokens, o as getSupportedTokenSymbolsForChain, p as getTargetTokenSymbolsForChain, q as getTokenAddress, r as getTokenDecimals, s as getTokenDecimalsByAddress, t as getTokenIcon, u as getTokenSymbol, v as getUsdcAddress, w as getUsdcDecimals, x as isSupportedTokenAddressForChain } from './constants-DqVn968d.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-cXr3j4NV.cjs';
4
+ 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 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 } from './caip-CrQ2KKU-.cjs';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';
7
7
  import 'viem/chains';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
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-C8i2ebY1.js';
4
- export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, b as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, d as getChainIcon, e as getChainId, h as getChainName, i as getChainObject, j as getExplorerName, k as getExplorerTxUrl, l as getExplorerUrl, m as getSupportedChainIds, n as getSupportedTargetTokens, o as getSupportedTokenSymbolsForChain, p as getTargetTokenSymbolsForChain, q as getTokenAddress, r as getTokenDecimals, s as getTokenDecimalsByAddress, t as getTokenIcon, u as getTokenSymbol, v as getUsdcAddress, w as getUsdcDecimals, x as isSupportedTokenAddressForChain } from './constants-DqVn968d.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-cXr3j4NV.js';
4
+ 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 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 } from './caip-CrQ2KKU-.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';
7
7
  import 'viem/chains';
package/dist/index.mjs CHANGED
@@ -1,14 +1,16 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-XG474KUR.mjs";
3
+ } from "./chunk-YX3I7C2R.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-VD4WTEHP.mjs";
7
- import "./chunk-4ZN726P5.mjs";
6
+ } from "./chunk-PAK3NUGY.mjs";
7
+ import "./chunk-Z7OJPEV2.mjs";
8
8
  import {
9
9
  CHAIN_BY_ID,
10
10
  DEFAULT_BACKEND_URL,
11
11
  DEFAULT_SIGNER_ADDRESS,
12
+ HYPERCORE_CHAIN_ID,
13
+ HYPERCORE_USDC_ADDRESS,
12
14
  NATIVE_TOKEN_ADDRESS,
13
15
  SOURCE_CHAINS,
14
16
  SUPPORTED_CHAINS,
@@ -34,7 +36,7 @@ import {
34
36
  getUsdcAddress,
35
37
  getUsdcDecimals,
36
38
  isSupportedTokenAddressForChain
37
- } from "./chunk-SZIYS42B.mjs";
39
+ } from "./chunk-6YRDD462.mjs";
38
40
 
39
41
  // src/core/reown-disconnect.ts
40
42
  import { modal } from "@reown/appkit/react";
@@ -52,6 +54,8 @@ export {
52
54
  DEFAULT_BACKEND_URL,
53
55
  DEFAULT_SIGNER_ADDRESS,
54
56
  DepositModal,
57
+ HYPERCORE_CHAIN_ID,
58
+ HYPERCORE_USDC_ADDRESS,
55
59
  NATIVE_TOKEN_ADDRESS,
56
60
  SOURCE_CHAINS,
57
61
  SUPPORTED_CHAINS,
@@ -299,14 +299,40 @@ type DepositLifecycleEvent = {
299
299
  type: "submitted";
300
300
  txHash: string;
301
301
  sourceChain: ChainId | "unknown";
302
+ /** Source-token base units (e.g. "1100000" for 1.10 USDC). */
302
303
  amount: string;
304
+ /**
305
+ * Decimals of the source token, for converting `amount` to a
306
+ * human-readable value. Omitted when the token is not recognised
307
+ * (e.g. a QR deposit of an unlisted token).
308
+ */
309
+ sourceDecimals?: number;
310
+ /**
311
+ * USD equivalent of the deposit as entered in the modal (token units
312
+ * for unpriced non-stablecoins). Omitted for flows without an amount
313
+ * input (QR transfer, fiat onramp, exchange connect).
314
+ */
315
+ amountUsd?: string;
303
316
  } | {
304
317
  type: "complete";
305
318
  txHash: string;
306
319
  destinationTxHash?: string;
320
+ /** Source-token base units (e.g. "1100000" for 1.10 USDC). */
307
321
  amount: string;
308
322
  sourceChain: ChainId | "unknown";
309
323
  sourceToken?: string;
324
+ /**
325
+ * Decimals of the source token, for converting `amount` to a
326
+ * human-readable value. Omitted when the token is not recognised
327
+ * (e.g. a QR deposit of an unlisted token).
328
+ */
329
+ sourceDecimals?: number;
330
+ /**
331
+ * USD equivalent of the deposit as entered in the modal (token units
332
+ * for unpriced non-stablecoins). Omitted for flows without an amount
333
+ * input (QR transfer, fiat onramp, exchange connect).
334
+ */
335
+ amountUsd?: string;
310
336
  targetChain: number | "solana";
311
337
  targetToken: string;
312
338
  } | {
@@ -299,14 +299,40 @@ type DepositLifecycleEvent = {
299
299
  type: "submitted";
300
300
  txHash: string;
301
301
  sourceChain: ChainId | "unknown";
302
+ /** Source-token base units (e.g. "1100000" for 1.10 USDC). */
302
303
  amount: string;
304
+ /**
305
+ * Decimals of the source token, for converting `amount` to a
306
+ * human-readable value. Omitted when the token is not recognised
307
+ * (e.g. a QR deposit of an unlisted token).
308
+ */
309
+ sourceDecimals?: number;
310
+ /**
311
+ * USD equivalent of the deposit as entered in the modal (token units
312
+ * for unpriced non-stablecoins). Omitted for flows without an amount
313
+ * input (QR transfer, fiat onramp, exchange connect).
314
+ */
315
+ amountUsd?: string;
303
316
  } | {
304
317
  type: "complete";
305
318
  txHash: string;
306
319
  destinationTxHash?: string;
320
+ /** Source-token base units (e.g. "1100000" for 1.10 USDC). */
307
321
  amount: string;
308
322
  sourceChain: ChainId | "unknown";
309
323
  sourceToken?: string;
324
+ /**
325
+ * Decimals of the source token, for converting `amount` to a
326
+ * human-readable value. Omitted when the token is not recognised
327
+ * (e.g. a QR deposit of an unlisted token).
328
+ */
329
+ sourceDecimals?: number;
330
+ /**
331
+ * USD equivalent of the deposit as entered in the modal (token units
332
+ * for unpriced non-stablecoins). Omitted for flows without an amount
333
+ * input (QR transfer, fiat onramp, exchange connect).
334
+ */
335
+ amountUsd?: string;
310
336
  targetChain: number | "solana";
311
337
  targetToken: string;
312
338
  } | {
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2NUXDEEOcjs = require('./chunk-2NUXDEEO.cjs');
4
- require('./chunk-N4XRQPVA.cjs');
5
- require('./chunk-7JIDIX27.cjs');
3
+ var _chunkG5YDICENcjs = require('./chunk-G5YDICEN.cjs');
4
+ require('./chunk-7W5M6WEE.cjs');
5
+ require('./chunk-MILJQWPT.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunk2NUXDEEOcjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunkG5YDICENcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { n as WithdrawModalProps } from './types-C8i2ebY1.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-C8i2ebY1.cjs';
2
+ import { n as WithdrawModalProps } from './types-cXr3j4NV.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-cXr3j4NV.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { n as WithdrawModalProps } from './types-C8i2ebY1.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-C8i2ebY1.js';
2
+ import { n as WithdrawModalProps } from './types-cXr3j4NV.js';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-cXr3j4NV.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
package/dist/withdraw.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-VD4WTEHP.mjs";
4
- import "./chunk-4ZN726P5.mjs";
5
- import "./chunk-SZIYS42B.mjs";
3
+ } from "./chunk-PAK3NUGY.mjs";
4
+ import "./chunk-Z7OJPEV2.mjs";
5
+ import "./chunk-6YRDD462.mjs";
6
6
  export {
7
7
  WithdrawModal
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.3.0-alpha.14",
3
+ "version": "0.3.0-alpha.16",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {