@rhinestone/deposit-modal 0.7.0 → 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 (43) hide show
  1. package/dist/{DepositModalReown-CHVDFNEX.cjs → DepositModalReown-J5YFZKFS.cjs} +9 -9
  2. package/dist/{DepositModalReown-T4RRW5FM.mjs → DepositModalReown-RZ6VSMKP.mjs} +6 -6
  3. package/dist/{WithdrawModalReown-Q6MUMZTX.mjs → WithdrawModalReown-4YUV2WWV.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-YZMZTN6E.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-XOBLFIGV.cjs → chunk-4IOQIWDY.cjs} +4 -4
  8. package/dist/{chunk-UZENNYHS.mjs → chunk-5S5BQ2GM.mjs} +83 -53
  9. package/dist/{chunk-CLUR2J72.mjs → chunk-7JJ4EFDY.mjs} +13 -17
  10. package/dist/{chunk-UN6MEOOA.cjs → chunk-IRI34U6N.cjs} +71 -33
  11. package/dist/{chunk-KUURQOTT.cjs → chunk-JRFPKFL6.cjs} +102 -106
  12. package/dist/{chunk-J52W34Y7.mjs → chunk-LXTAAHPC.mjs} +2 -2
  13. package/dist/{chunk-HH46H6ZI.cjs → chunk-PUMTR35E.cjs} +49 -24
  14. package/dist/{chunk-OYPFPEIT.mjs → chunk-RXWJ267K.mjs} +153 -115
  15. package/dist/{chunk-CPMHRMPH.mjs → chunk-SX52FXKH.mjs} +48 -23
  16. package/dist/{chunk-K6J3RDDK.mjs → chunk-TYB6AA6D.mjs} +1 -1
  17. package/dist/{chunk-6P3WNDED.cjs → chunk-VURI4G2Z.cjs} +7 -7
  18. package/dist/{chunk-RLMXWLF4.cjs → chunk-WL7AXYQ4.cjs} +3 -3
  19. package/dist/{chunk-QSMPJQTX.cjs → chunk-XLXJW44N.cjs} +384 -354
  20. package/dist/{chunk-4JLYWRQA.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/{types-6ROxwyfG.d.cts → types--LQWg_4W.d.cts} +1 -1
  36. package/dist/{types-6ROxwyfG.d.ts → types--LQWg_4W.d.ts} +1 -1
  37. package/dist/withdraw.cjs +5 -5
  38. package/dist/withdraw.d.cts +2 -2
  39. package/dist/withdraw.d.ts +2 -2
  40. package/dist/withdraw.mjs +4 -4
  41. package/package.json +1 -1
  42. package/dist/caip-CsslyHGL.d.cts +0 -62
  43. package/dist/caip-CsslyHGL.d.ts +0 -62
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SAFE_ABI
3
- } from "./chunk-K6J3RDDK.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 _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.cjs');
36
35
 
36
+ var _chunkPUMTR35Ecjs = require('./chunk-PUMTR35E.cjs');
37
37
 
38
38
 
39
39
 
@@ -67,4 +67,6 @@ var _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.cjs');
67
67
 
68
68
 
69
69
 
70
- exports.CHAIN_BY_ID = _chunkHH46H6ZIcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkHH46H6ZIcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS; exports.HYPERCORE_CHAIN_ID = _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkHH46H6ZIcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkHH46H6ZIcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkHH46H6ZIcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkHH46H6ZIcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkHH46H6ZIcjs.chainRegistry; exports.findChainIdForToken = _chunkHH46H6ZIcjs.findChainIdForToken; exports.getChainBadge = _chunkHH46H6ZIcjs.getChainBadge; exports.getChainIcon = _chunkHH46H6ZIcjs.getChainIcon; exports.getChainId = _chunkHH46H6ZIcjs.getChainId; exports.getChainName = _chunkHH46H6ZIcjs.getChainName; exports.getChainObject = _chunkHH46H6ZIcjs.getChainObject; exports.getExplorerName = _chunkHH46H6ZIcjs.getExplorerName; exports.getExplorerTxUrl = _chunkHH46H6ZIcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkHH46H6ZIcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkHH46H6ZIcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkHH46H6ZIcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkHH46H6ZIcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkHH46H6ZIcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkHH46H6ZIcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkHH46H6ZIcjs.getTokenAddress; exports.getTokenDecimals = _chunkHH46H6ZIcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkHH46H6ZIcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon; exports.getTokenSymbol = _chunkHH46H6ZIcjs.getTokenSymbol; exports.getUsdcAddress = _chunkHH46H6ZIcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkHH46H6ZIcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkHH46H6ZIcjs.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-CPMHRMPH.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 _chunkQSMPJQTXcjs = require('./chunk-QSMPJQTX.cjs');
4
- require('./chunk-XOBLFIGV.cjs');
5
- require('./chunk-UN6MEOOA.cjs');
6
- require('./chunk-RLMXWLF4.cjs');
7
- require('./chunk-HH46H6ZI.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 = _chunkQSMPJQTXcjs.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-UZENNYHS.mjs";
4
- import "./chunk-4JLYWRQA.mjs";
5
- import "./chunk-OYPFPEIT.mjs";
6
- import "./chunk-K6J3RDDK.mjs";
7
- import "./chunk-CPMHRMPH.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 _chunkQSMPJQTXcjs = require('./chunk-QSMPJQTX.cjs');
4
- require('./chunk-XOBLFIGV.cjs');
3
+ var _chunkXLXJW44Ncjs = require('./chunk-XLXJW44N.cjs');
4
+ require('./chunk-4IOQIWDY.cjs');
5
5
 
6
6
 
7
- var _chunkKUURQOTTcjs = require('./chunk-KUURQOTT.cjs');
8
- require('./chunk-UN6MEOOA.cjs');
9
- require('./chunk-RLMXWLF4.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-RLMXWLF4.cjs');
38
38
 
39
39
 
40
40
 
41
- var _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.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 = _chunkHH46H6ZIcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkHH46H6ZIcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkQSMPJQTXcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkHH46H6ZIcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkHH46H6ZIcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkHH46H6ZIcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkKUURQOTTcjs.WithdrawModal; exports.chainRegistry = _chunkHH46H6ZIcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkHH46H6ZIcjs.findChainIdForToken; exports.getChainBadge = _chunkHH46H6ZIcjs.getChainBadge; exports.getChainIcon = _chunkHH46H6ZIcjs.getChainIcon; exports.getChainId = _chunkHH46H6ZIcjs.getChainId; exports.getChainName = _chunkHH46H6ZIcjs.getChainName; exports.getChainObject = _chunkHH46H6ZIcjs.getChainObject; exports.getExplorerName = _chunkHH46H6ZIcjs.getExplorerName; exports.getExplorerTxUrl = _chunkHH46H6ZIcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkHH46H6ZIcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkHH46H6ZIcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkHH46H6ZIcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkHH46H6ZIcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkHH46H6ZIcjs.getTokenAddress; exports.getTokenDecimals = _chunkHH46H6ZIcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkHH46H6ZIcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon; exports.getTokenSymbol = _chunkHH46H6ZIcjs.getTokenSymbol; exports.getUsdcAddress = _chunkHH46H6ZIcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkHH46H6ZIcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkHH46H6ZIcjs.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-UZENNYHS.mjs";
4
- import "./chunk-4JLYWRQA.mjs";
3
+ } from "./chunk-5S5BQ2GM.mjs";
4
+ import "./chunk-YLIPI3NU.mjs";
5
5
  import {
6
6
  WithdrawModal
7
- } from "./chunk-CLUR2J72.mjs";
8
- import "./chunk-OYPFPEIT.mjs";
9
- import "./chunk-K6J3RDDK.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-CPMHRMPH.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 _chunkXOBLFIGVcjs = require('./chunk-XOBLFIGV.cjs');
6
- require('./chunk-RLMXWLF4.cjs');
7
- require('./chunk-HH46H6ZI.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 _chunkXOBLFIGVcjs.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 _chunkXOBLFIGVcjs.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: _chunkXOBLFIGVcjs.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-4JLYWRQA.mjs";
6
- import "./chunk-K6J3RDDK.mjs";
7
- import "./chunk-CPMHRMPH.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 {
@@ -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 _chunkKUURQOTTcjs = require('./chunk-KUURQOTT.cjs');
4
- require('./chunk-UN6MEOOA.cjs');
5
- require('./chunk-RLMXWLF4.cjs');
6
- require('./chunk-HH46H6ZI.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 = _chunkKUURQOTTcjs.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-CLUR2J72.mjs";
4
- import "./chunk-OYPFPEIT.mjs";
5
- import "./chunk-K6J3RDDK.mjs";
6
- import "./chunk-CPMHRMPH.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.7.0",
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 };
@@ -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 };