@rhinestone/deposit-modal 0.0.0-dev-20260608080045
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.
- package/README.md +134 -0
- package/dist/DepositModalReown-6SUEC5IU.mjs +60 -0
- package/dist/DepositModalReown-DNW4GH6L.cjs +60 -0
- package/dist/QRCode-5DXFNKI2.cjs +58 -0
- package/dist/QRCode-WUC652SH.mjs +58 -0
- package/dist/WithdrawModalReown-7UAGSOSU.mjs +37 -0
- package/dist/WithdrawModalReown-OUWBSKSM.cjs +37 -0
- package/dist/caip-CsslyHGL.d.cts +62 -0
- package/dist/caip-CsslyHGL.d.ts +62 -0
- package/dist/chunk-2SMS542Q.cjs +1654 -0
- package/dist/chunk-33H6O5UU.cjs +162 -0
- package/dist/chunk-6YRDD462.mjs +614 -0
- package/dist/chunk-GPSBM66J.mjs +162 -0
- package/dist/chunk-KAWJABTW.mjs +3765 -0
- package/dist/chunk-KJ2RR2D4.mjs +7619 -0
- package/dist/chunk-MILJQWPT.cjs +614 -0
- package/dist/chunk-RABZINV3.cjs +3765 -0
- package/dist/chunk-TKQYTBU6.mjs +1654 -0
- package/dist/chunk-VVJAIMKB.cjs +7619 -0
- package/dist/constants.cjs +70 -0
- package/dist/constants.d.cts +21 -0
- package/dist/constants.d.ts +21 -0
- package/dist/constants.mjs +70 -0
- package/dist/deposit.cjs +8 -0
- package/dist/deposit.d.cts +11 -0
- package/dist/deposit.d.ts +11 -0
- package/dist/deposit.mjs +8 -0
- package/dist/index.cjs +86 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.mjs +86 -0
- package/dist/styles.css +5143 -0
- package/dist/styles.d.ts +3 -0
- package/dist/types-BMcGO5k_.d.cts +432 -0
- package/dist/types-BMcGO5k_.d.ts +432 -0
- package/dist/withdraw.cjs +8 -0
- package/dist/withdraw.d.cts +11 -0
- package/dist/withdraw.d.ts +11 -0
- package/dist/withdraw.mjs +8 -0
- package/package.json +190 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
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';
|
|
2
|
+
import 'viem/chains';
|
|
3
|
+
import 'viem';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
|
|
7
|
+
* can be imported from EVM code paths (e.g. `constants.ts`) without pulling
|
|
8
|
+
* the heavy Solana runtime into EVM-only bundles. The web3.js-backed runtime
|
|
9
|
+
* helpers (connections, transfers) live in `./solana`; import the token
|
|
10
|
+
* registry directly from this module, never via `./solana`.
|
|
11
|
+
*/
|
|
12
|
+
interface SolanaToken {
|
|
13
|
+
symbol: string;
|
|
14
|
+
mint: string;
|
|
15
|
+
decimals: number;
|
|
16
|
+
}
|
|
17
|
+
declare const SOLANA_TOKENS: SolanaToken[];
|
|
18
|
+
declare function getSolanaTokenBySymbol(symbol: string): SolanaToken | undefined;
|
|
19
|
+
declare function getSolanaTokenByMint(mint: string): SolanaToken | undefined;
|
|
20
|
+
|
|
21
|
+
export { SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
|
|
@@ -0,0 +1,21 @@
|
|
|
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';
|
|
2
|
+
import 'viem/chains';
|
|
3
|
+
import 'viem';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
|
|
7
|
+
* can be imported from EVM code paths (e.g. `constants.ts`) without pulling
|
|
8
|
+
* the heavy Solana runtime into EVM-only bundles. The web3.js-backed runtime
|
|
9
|
+
* helpers (connections, transfers) live in `./solana`; import the token
|
|
10
|
+
* registry directly from this module, never via `./solana`.
|
|
11
|
+
*/
|
|
12
|
+
interface SolanaToken {
|
|
13
|
+
symbol: string;
|
|
14
|
+
mint: string;
|
|
15
|
+
decimals: number;
|
|
16
|
+
}
|
|
17
|
+
declare const SOLANA_TOKENS: SolanaToken[];
|
|
18
|
+
declare function getSolanaTokenBySymbol(symbol: string): SolanaToken | undefined;
|
|
19
|
+
declare function getSolanaTokenByMint(mint: string): SolanaToken | undefined;
|
|
20
|
+
|
|
21
|
+
export { SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CHAIN_BY_ID,
|
|
3
|
+
DEFAULT_BACKEND_URL,
|
|
4
|
+
DEFAULT_SIGNER_ADDRESS,
|
|
5
|
+
HYPERCORE_CHAIN_ID,
|
|
6
|
+
HYPERCORE_USDC_ADDRESS,
|
|
7
|
+
NATIVE_TOKEN_ADDRESS,
|
|
8
|
+
SOLANA_TOKENS,
|
|
9
|
+
SOURCE_CHAINS,
|
|
10
|
+
SUPPORTED_CHAINS,
|
|
11
|
+
chainRegistry,
|
|
12
|
+
findChainIdForToken,
|
|
13
|
+
getChainBadge,
|
|
14
|
+
getChainIcon,
|
|
15
|
+
getChainId,
|
|
16
|
+
getChainName,
|
|
17
|
+
getChainObject,
|
|
18
|
+
getExplorerName,
|
|
19
|
+
getExplorerTxUrl,
|
|
20
|
+
getExplorerUrl,
|
|
21
|
+
getSolanaTokenByMint,
|
|
22
|
+
getSolanaTokenBySymbol,
|
|
23
|
+
getSupportedChainIds,
|
|
24
|
+
getSupportedTargetTokens,
|
|
25
|
+
getSupportedTokenSymbolsForChain,
|
|
26
|
+
getTargetTokenSymbolsForChain,
|
|
27
|
+
getTokenAddress,
|
|
28
|
+
getTokenDecimals,
|
|
29
|
+
getTokenDecimalsByAddress,
|
|
30
|
+
getTokenIcon,
|
|
31
|
+
getTokenSymbol,
|
|
32
|
+
getUsdcAddress,
|
|
33
|
+
getUsdcDecimals,
|
|
34
|
+
isSupportedTokenAddressForChain
|
|
35
|
+
} from "./chunk-6YRDD462.mjs";
|
|
36
|
+
export {
|
|
37
|
+
CHAIN_BY_ID,
|
|
38
|
+
DEFAULT_BACKEND_URL,
|
|
39
|
+
DEFAULT_SIGNER_ADDRESS,
|
|
40
|
+
HYPERCORE_CHAIN_ID,
|
|
41
|
+
HYPERCORE_USDC_ADDRESS,
|
|
42
|
+
NATIVE_TOKEN_ADDRESS,
|
|
43
|
+
SOLANA_TOKENS,
|
|
44
|
+
SOURCE_CHAINS,
|
|
45
|
+
SUPPORTED_CHAINS,
|
|
46
|
+
chainRegistry,
|
|
47
|
+
findChainIdForToken,
|
|
48
|
+
getChainBadge,
|
|
49
|
+
getChainIcon,
|
|
50
|
+
getChainId,
|
|
51
|
+
getChainName,
|
|
52
|
+
getChainObject,
|
|
53
|
+
getExplorerName,
|
|
54
|
+
getExplorerTxUrl,
|
|
55
|
+
getExplorerUrl,
|
|
56
|
+
getSolanaTokenByMint,
|
|
57
|
+
getSolanaTokenBySymbol,
|
|
58
|
+
getSupportedChainIds,
|
|
59
|
+
getSupportedTargetTokens,
|
|
60
|
+
getSupportedTokenSymbolsForChain,
|
|
61
|
+
getTargetTokenSymbolsForChain,
|
|
62
|
+
getTokenAddress,
|
|
63
|
+
getTokenDecimals,
|
|
64
|
+
getTokenDecimalsByAddress,
|
|
65
|
+
getTokenIcon,
|
|
66
|
+
getTokenSymbol,
|
|
67
|
+
getUsdcAddress,
|
|
68
|
+
getUsdcDecimals,
|
|
69
|
+
isSupportedTokenAddressForChain
|
|
70
|
+
};
|
package/dist/deposit.cjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { f as DepositModalProps } from './types-BMcGO5k_.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-BMcGO5k_.cjs';
|
|
4
|
+
import 'viem';
|
|
5
|
+
|
|
6
|
+
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
|
7
|
+
declare namespace DepositModal {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { DepositModal, DepositModalProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { f as DepositModalProps } from './types-BMcGO5k_.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-BMcGO5k_.js';
|
|
4
|
+
import 'viem';
|
|
5
|
+
|
|
6
|
+
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
|
7
|
+
declare namespace DepositModal {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { DepositModal, DepositModalProps };
|
package/dist/deposit.mjs
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkVVJAIMKBcjs = require('./chunk-VVJAIMKB.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk2SMS542Qcjs = require('./chunk-2SMS542Q.cjs');
|
|
7
|
+
require('./chunk-RABZINV3.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
|
|
40
|
+
|
|
41
|
+
// src/core/reown-disconnect.ts
|
|
42
|
+
var _react = require('@reown/appkit/react');
|
|
43
|
+
async function disconnectWallet() {
|
|
44
|
+
if (!_react.modal) {
|
|
45
|
+
console.warn(
|
|
46
|
+
"[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
|
|
47
|
+
);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
await _react.modal.disconnect();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
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 = _chunkVVJAIMKBcjs.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 = _chunk2SMS542Qcjs.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
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { DepositModal } from './deposit.cjs';
|
|
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-BMcGO5k_.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, 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
|
+
import 'react';
|
|
6
|
+
import 'viem';
|
|
7
|
+
import 'viem/chains';
|
|
8
|
+
|
|
9
|
+
declare function disconnectWallet(): Promise<void>;
|
|
10
|
+
|
|
11
|
+
export { disconnectWallet };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { DepositModal } from './deposit.js';
|
|
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-BMcGO5k_.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, 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
|
+
import 'react';
|
|
6
|
+
import 'viem';
|
|
7
|
+
import 'viem/chains';
|
|
8
|
+
|
|
9
|
+
declare function disconnectWallet(): Promise<void>;
|
|
10
|
+
|
|
11
|
+
export { disconnectWallet };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DepositModal
|
|
3
|
+
} from "./chunk-KJ2RR2D4.mjs";
|
|
4
|
+
import {
|
|
5
|
+
WithdrawModal
|
|
6
|
+
} from "./chunk-TKQYTBU6.mjs";
|
|
7
|
+
import "./chunk-KAWJABTW.mjs";
|
|
8
|
+
import {
|
|
9
|
+
CHAIN_BY_ID,
|
|
10
|
+
DEFAULT_BACKEND_URL,
|
|
11
|
+
DEFAULT_SIGNER_ADDRESS,
|
|
12
|
+
HYPERCORE_CHAIN_ID,
|
|
13
|
+
HYPERCORE_USDC_ADDRESS,
|
|
14
|
+
NATIVE_TOKEN_ADDRESS,
|
|
15
|
+
SOURCE_CHAINS,
|
|
16
|
+
SUPPORTED_CHAINS,
|
|
17
|
+
chainRegistry,
|
|
18
|
+
findChainIdForToken,
|
|
19
|
+
getChainBadge,
|
|
20
|
+
getChainIcon,
|
|
21
|
+
getChainId,
|
|
22
|
+
getChainName,
|
|
23
|
+
getChainObject,
|
|
24
|
+
getExplorerName,
|
|
25
|
+
getExplorerTxUrl,
|
|
26
|
+
getExplorerUrl,
|
|
27
|
+
getSupportedChainIds,
|
|
28
|
+
getSupportedTargetTokens,
|
|
29
|
+
getSupportedTokenSymbolsForChain,
|
|
30
|
+
getTargetTokenSymbolsForChain,
|
|
31
|
+
getTokenAddress,
|
|
32
|
+
getTokenDecimals,
|
|
33
|
+
getTokenDecimalsByAddress,
|
|
34
|
+
getTokenIcon,
|
|
35
|
+
getTokenSymbol,
|
|
36
|
+
getUsdcAddress,
|
|
37
|
+
getUsdcDecimals,
|
|
38
|
+
isSupportedTokenAddressForChain
|
|
39
|
+
} from "./chunk-6YRDD462.mjs";
|
|
40
|
+
|
|
41
|
+
// src/core/reown-disconnect.ts
|
|
42
|
+
import { modal } from "@reown/appkit/react";
|
|
43
|
+
async function disconnectWallet() {
|
|
44
|
+
if (!modal) {
|
|
45
|
+
console.warn(
|
|
46
|
+
"[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
|
|
47
|
+
);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
await modal.disconnect();
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
CHAIN_BY_ID,
|
|
54
|
+
DEFAULT_BACKEND_URL,
|
|
55
|
+
DEFAULT_SIGNER_ADDRESS,
|
|
56
|
+
DepositModal,
|
|
57
|
+
HYPERCORE_CHAIN_ID,
|
|
58
|
+
HYPERCORE_USDC_ADDRESS,
|
|
59
|
+
NATIVE_TOKEN_ADDRESS,
|
|
60
|
+
SOURCE_CHAINS,
|
|
61
|
+
SUPPORTED_CHAINS,
|
|
62
|
+
WithdrawModal,
|
|
63
|
+
chainRegistry,
|
|
64
|
+
disconnectWallet,
|
|
65
|
+
findChainIdForToken,
|
|
66
|
+
getChainBadge,
|
|
67
|
+
getChainIcon,
|
|
68
|
+
getChainId,
|
|
69
|
+
getChainName,
|
|
70
|
+
getChainObject,
|
|
71
|
+
getExplorerName,
|
|
72
|
+
getExplorerTxUrl,
|
|
73
|
+
getExplorerUrl,
|
|
74
|
+
getSupportedChainIds,
|
|
75
|
+
getSupportedTargetTokens,
|
|
76
|
+
getSupportedTokenSymbolsForChain,
|
|
77
|
+
getTargetTokenSymbolsForChain,
|
|
78
|
+
getTokenAddress,
|
|
79
|
+
getTokenDecimals,
|
|
80
|
+
getTokenDecimalsByAddress,
|
|
81
|
+
getTokenIcon,
|
|
82
|
+
getTokenSymbol,
|
|
83
|
+
getUsdcAddress,
|
|
84
|
+
getUsdcDecimals,
|
|
85
|
+
isSupportedTokenAddressForChain
|
|
86
|
+
};
|