@rhinestone/deposit-modal 0.3.0-alpha.5 → 0.3.0-alpha.7

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 (36) hide show
  1. package/dist/{DepositModalReown-3VZ5AKV2.mjs → DepositModalReown-42D5V5II.mjs} +8 -5
  2. package/dist/{DepositModalReown-PPX34UAK.cjs → DepositModalReown-ABLVMYFL.cjs} +9 -6
  3. package/dist/{WithdrawModalReown-BB3MZAIO.mjs → WithdrawModalReown-EVHN5NOF.mjs} +3 -3
  4. package/dist/{WithdrawModalReown-4B6IMTBB.cjs → WithdrawModalReown-FJP3XTQ5.cjs} +4 -4
  5. package/dist/{chunk-QI6Q7V6O.mjs → chunk-3FHYC3K7.mjs} +26 -34
  6. package/dist/{chunk-ZUWAIMMH.mjs → chunk-44IFH7DZ.mjs} +1247 -917
  7. package/dist/{chunk-CTYKQ4B4.mjs → chunk-7VKAUBZ7.mjs} +201 -81
  8. package/dist/{chunk-BB6UVRAV.cjs → chunk-CPXERFGC.cjs} +110 -118
  9. package/dist/{chunk-DX2D2TRZ.cjs → chunk-ENMIKNXS.cjs} +241 -121
  10. package/dist/{chunk-TTD2FEA2.cjs → chunk-LEVCOJD6.cjs} +1193 -863
  11. package/dist/chunk-MHKHSCIA.cjs +554 -0
  12. package/dist/chunk-UCZXBHLH.mjs +554 -0
  13. package/dist/constants-DqVn968d.d.cts +52 -0
  14. package/dist/constants-DqVn968d.d.ts +52 -0
  15. package/dist/constants.cjs +8 -2
  16. package/dist/constants.d.cts +17 -48
  17. package/dist/constants.d.ts +17 -48
  18. package/dist/constants.mjs +7 -1
  19. package/dist/deposit.cjs +4 -4
  20. package/dist/deposit.d.cts +2 -2
  21. package/dist/deposit.d.ts +2 -2
  22. package/dist/deposit.mjs +3 -3
  23. package/dist/index.cjs +5 -5
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.mjs +4 -4
  27. package/dist/styles.css +185 -37
  28. package/dist/{types-xSHZSlrT.d.cts → types-D8Q4TMk7.d.cts} +17 -5
  29. package/dist/{types-xSHZSlrT.d.ts → types-D8Q4TMk7.d.ts} +17 -5
  30. package/dist/withdraw.cjs +4 -4
  31. package/dist/withdraw.d.cts +2 -2
  32. package/dist/withdraw.d.ts +2 -2
  33. package/dist/withdraw.mjs +3 -3
  34. package/package.json +1 -1
  35. package/dist/chunk-IVTXEYB2.cjs +0 -507
  36. package/dist/chunk-VA3ANS7D.mjs +0 -507
@@ -0,0 +1,52 @@
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
+ export { CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, SUPPORTED_CHAINS as b, chainRegistry as c, getChainIcon as d, getChainId as e, findChainIdForToken as f, getChainBadge as g, getChainName as h, getChainObject as i, getExplorerName as j, getExplorerTxUrl as k, getExplorerUrl as l, getSupportedChainIds as m, getSupportedTargetTokens as n, getSupportedTokenSymbolsForChain as o, getTargetTokenSymbolsForChain as p, getTokenAddress as q, getTokenDecimals as r, getTokenDecimalsByAddress as s, getTokenIcon as t, getTokenSymbol as u, getUsdcAddress as v, getUsdcDecimals as w, isSupportedTokenAddressForChain as x, type SupportedTokenOption as y };
@@ -0,0 +1,52 @@
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
+ export { CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, SUPPORTED_CHAINS as b, chainRegistry as c, getChainIcon as d, getChainId as e, findChainIdForToken as f, getChainBadge as g, getChainName as h, getChainObject as i, getExplorerName as j, getExplorerTxUrl as k, getExplorerUrl as l, getSupportedChainIds as m, getSupportedTargetTokens as n, getSupportedTokenSymbolsForChain as o, getTargetTokenSymbolsForChain as p, getTokenAddress as q, getTokenDecimals as r, getTokenDecimalsByAddress as s, getTokenIcon as t, getTokenSymbol as u, getUsdcAddress as v, getUsdcDecimals as w, isSupportedTokenAddressForChain as x, type SupportedTokenOption as y };
@@ -27,10 +27,10 @@
27
27
 
28
28
 
29
29
 
30
- var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
31
30
 
32
31
 
33
32
 
33
+ var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.cjs');
34
34
 
35
35
 
36
36
 
@@ -57,4 +57,10 @@ var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
57
57
 
58
58
 
59
59
 
60
- exports.CHAIN_BY_ID = _chunkIVTXEYB2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkIVTXEYB2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkIVTXEYB2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkIVTXEYB2cjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkIVTXEYB2cjs.chainRegistry; exports.findChainIdForToken = _chunkIVTXEYB2cjs.findChainIdForToken; exports.getChainBadge = _chunkIVTXEYB2cjs.getChainBadge; exports.getChainIcon = _chunkIVTXEYB2cjs.getChainIcon; exports.getChainId = _chunkIVTXEYB2cjs.getChainId; exports.getChainName = _chunkIVTXEYB2cjs.getChainName; exports.getChainObject = _chunkIVTXEYB2cjs.getChainObject; exports.getExplorerName = _chunkIVTXEYB2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkIVTXEYB2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkIVTXEYB2cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkIVTXEYB2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkIVTXEYB2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkIVTXEYB2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkIVTXEYB2cjs.getTokenAddress; exports.getTokenDecimals = _chunkIVTXEYB2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkIVTXEYB2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon; exports.getTokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkIVTXEYB2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkIVTXEYB2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkIVTXEYB2cjs.isSupportedTokenAddressForChain;
60
+
61
+
62
+
63
+
64
+
65
+
66
+ exports.CHAIN_BY_ID = _chunkMHKHSCIAcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMHKHSCIAcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMHKHSCIAcjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkMHKHSCIAcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkMHKHSCIAcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkMHKHSCIAcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMHKHSCIAcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkMHKHSCIAcjs.chainRegistry; exports.findChainIdForToken = _chunkMHKHSCIAcjs.findChainIdForToken; exports.getChainBadge = _chunkMHKHSCIAcjs.getChainBadge; exports.getChainIcon = _chunkMHKHSCIAcjs.getChainIcon; exports.getChainId = _chunkMHKHSCIAcjs.getChainId; exports.getChainName = _chunkMHKHSCIAcjs.getChainName; exports.getChainObject = _chunkMHKHSCIAcjs.getChainObject; exports.getExplorerName = _chunkMHKHSCIAcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMHKHSCIAcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMHKHSCIAcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkMHKHSCIAcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkMHKHSCIAcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkMHKHSCIAcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMHKHSCIAcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMHKHSCIAcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMHKHSCIAcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMHKHSCIAcjs.getTokenAddress; exports.getTokenDecimals = _chunkMHKHSCIAcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMHKHSCIAcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMHKHSCIAcjs.getTokenIcon; exports.getTokenSymbol = _chunkMHKHSCIAcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMHKHSCIAcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMHKHSCIAcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMHKHSCIAcjs.isSupportedTokenAddressForChain;
@@ -1,52 +1,21 @@
1
- import { Chain } from 'viem/chains';
2
- import { Address } from 'viem';
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';
2
+ import 'viem/chains';
3
+ import 'viem';
3
4
 
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 = {
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 {
24
13
  symbol: string;
25
- address: Address;
14
+ mint: string;
26
15
  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;
16
+ }
17
+ declare const SOLANA_TOKENS: SolanaToken[];
18
+ declare function getSolanaTokenBySymbol(symbol: string): SolanaToken | undefined;
19
+ declare function getSolanaTokenByMint(mint: string): SolanaToken | undefined;
51
20
 
52
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, type SupportedTokenOption, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
21
+ export { SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
@@ -1,52 +1,21 @@
1
- import { Chain } from 'viem/chains';
2
- import { Address } from 'viem';
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';
2
+ import 'viem/chains';
3
+ import 'viem';
3
4
 
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 = {
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 {
24
13
  symbol: string;
25
- address: Address;
14
+ mint: string;
26
15
  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;
16
+ }
17
+ declare const SOLANA_TOKENS: SolanaToken[];
18
+ declare function getSolanaTokenBySymbol(symbol: string): SolanaToken | undefined;
19
+ declare function getSolanaTokenByMint(mint: string): SolanaToken | undefined;
51
20
 
52
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, type SupportedTokenOption, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
21
+ export { SOLANA_TOKENS, type SolanaToken, getSolanaTokenByMint, getSolanaTokenBySymbol };
@@ -3,6 +3,7 @@ import {
3
3
  DEFAULT_BACKEND_URL,
4
4
  DEFAULT_SIGNER_ADDRESS,
5
5
  NATIVE_TOKEN_ADDRESS,
6
+ SOLANA_TOKENS,
6
7
  SOURCE_CHAINS,
7
8
  SUPPORTED_CHAINS,
8
9
  chainRegistry,
@@ -15,6 +16,8 @@ import {
15
16
  getExplorerName,
16
17
  getExplorerTxUrl,
17
18
  getExplorerUrl,
19
+ getSolanaTokenByMint,
20
+ getSolanaTokenBySymbol,
18
21
  getSupportedChainIds,
19
22
  getSupportedTargetTokens,
20
23
  getSupportedTokenSymbolsForChain,
@@ -27,12 +30,13 @@ import {
27
30
  getUsdcAddress,
28
31
  getUsdcDecimals,
29
32
  isSupportedTokenAddressForChain
30
- } from "./chunk-VA3ANS7D.mjs";
33
+ } from "./chunk-UCZXBHLH.mjs";
31
34
  export {
32
35
  CHAIN_BY_ID,
33
36
  DEFAULT_BACKEND_URL,
34
37
  DEFAULT_SIGNER_ADDRESS,
35
38
  NATIVE_TOKEN_ADDRESS,
39
+ SOLANA_TOKENS,
36
40
  SOURCE_CHAINS,
37
41
  SUPPORTED_CHAINS,
38
42
  chainRegistry,
@@ -45,6 +49,8 @@ export {
45
49
  getExplorerName,
46
50
  getExplorerTxUrl,
47
51
  getExplorerUrl,
52
+ getSolanaTokenByMint,
53
+ getSolanaTokenBySymbol,
48
54
  getSupportedChainIds,
49
55
  getSupportedTargetTokens,
50
56
  getSupportedTokenSymbolsForChain,
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTTD2FEA2cjs = require('./chunk-TTD2FEA2.cjs');
4
- require('./chunk-DX2D2TRZ.cjs');
5
- require('./chunk-IVTXEYB2.cjs');
3
+ var _chunkLEVCOJD6cjs = require('./chunk-LEVCOJD6.cjs');
4
+ require('./chunk-ENMIKNXS.cjs');
5
+ require('./chunk-MHKHSCIA.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkTTD2FEA2cjs.DepositModal;
8
+ exports.DepositModal = _chunkLEVCOJD6cjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { f as DepositModalProps } from './types-xSHZSlrT.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-xSHZSlrT.cjs';
2
+ import { f as DepositModalProps } from './types-D8Q4TMk7.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-D8Q4TMk7.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-xSHZSlrT.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-xSHZSlrT.js';
2
+ import { f as DepositModalProps } from './types-D8Q4TMk7.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-D8Q4TMk7.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-ZUWAIMMH.mjs";
4
- import "./chunk-CTYKQ4B4.mjs";
5
- import "./chunk-VA3ANS7D.mjs";
3
+ } from "./chunk-44IFH7DZ.mjs";
4
+ import "./chunk-7VKAUBZ7.mjs";
5
+ import "./chunk-UCZXBHLH.mjs";
6
6
  export {
7
7
  DepositModal
8
8
  };
package/dist/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTTD2FEA2cjs = require('./chunk-TTD2FEA2.cjs');
3
+ var _chunkLEVCOJD6cjs = require('./chunk-LEVCOJD6.cjs');
4
4
 
5
5
 
6
- var _chunkBB6UVRAVcjs = require('./chunk-BB6UVRAV.cjs');
6
+ var _chunkCPXERFGCcjs = require('./chunk-CPXERFGC.cjs');
7
7
 
8
8
 
9
9
  var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
10
- require('./chunk-DX2D2TRZ.cjs');
10
+ require('./chunk-ENMIKNXS.cjs');
11
11
 
12
12
 
13
13
 
@@ -37,7 +37,7 @@ require('./chunk-DX2D2TRZ.cjs');
37
37
 
38
38
 
39
39
 
40
- var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
40
+ var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.cjs');
41
41
 
42
42
 
43
43
 
@@ -70,4 +70,4 @@ var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
70
70
 
71
71
 
72
72
 
73
- exports.CHAIN_BY_ID = _chunkIVTXEYB2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkIVTXEYB2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkTTD2FEA2cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkIVTXEYB2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkIVTXEYB2cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkBB6UVRAVcjs.WithdrawModal; exports.chainRegistry = _chunkIVTXEYB2cjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkIVTXEYB2cjs.findChainIdForToken; exports.getChainBadge = _chunkIVTXEYB2cjs.getChainBadge; exports.getChainIcon = _chunkIVTXEYB2cjs.getChainIcon; exports.getChainId = _chunkIVTXEYB2cjs.getChainId; exports.getChainName = _chunkIVTXEYB2cjs.getChainName; exports.getChainObject = _chunkIVTXEYB2cjs.getChainObject; exports.getExplorerName = _chunkIVTXEYB2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkIVTXEYB2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkIVTXEYB2cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkIVTXEYB2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkIVTXEYB2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkIVTXEYB2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkIVTXEYB2cjs.getTokenAddress; exports.getTokenDecimals = _chunkIVTXEYB2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkIVTXEYB2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon; exports.getTokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkIVTXEYB2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkIVTXEYB2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkIVTXEYB2cjs.isSupportedTokenAddressForChain;
73
+ exports.CHAIN_BY_ID = _chunkMHKHSCIAcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMHKHSCIAcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMHKHSCIAcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkLEVCOJD6cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkMHKHSCIAcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMHKHSCIAcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMHKHSCIAcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkCPXERFGCcjs.WithdrawModal; exports.chainRegistry = _chunkMHKHSCIAcjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkMHKHSCIAcjs.findChainIdForToken; exports.getChainBadge = _chunkMHKHSCIAcjs.getChainBadge; exports.getChainIcon = _chunkMHKHSCIAcjs.getChainIcon; exports.getChainId = _chunkMHKHSCIAcjs.getChainId; exports.getChainName = _chunkMHKHSCIAcjs.getChainName; exports.getChainObject = _chunkMHKHSCIAcjs.getChainObject; exports.getExplorerName = _chunkMHKHSCIAcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMHKHSCIAcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMHKHSCIAcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMHKHSCIAcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMHKHSCIAcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMHKHSCIAcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMHKHSCIAcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMHKHSCIAcjs.getTokenAddress; exports.getTokenDecimals = _chunkMHKHSCIAcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMHKHSCIAcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMHKHSCIAcjs.getTokenIcon; exports.getTokenSymbol = _chunkMHKHSCIAcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMHKHSCIAcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMHKHSCIAcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMHKHSCIAcjs.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-xSHZSlrT.cjs';
4
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.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-D8Q4TMk7.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';
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-xSHZSlrT.js';
4
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.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-D8Q4TMk7.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';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';
7
7
  import 'viem/chains';
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-ZUWAIMMH.mjs";
3
+ } from "./chunk-44IFH7DZ.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-QI6Q7V6O.mjs";
6
+ } from "./chunk-3FHYC3K7.mjs";
7
7
  import {
8
8
  disconnectWallet
9
9
  } from "./chunk-5YXAQB6A.mjs";
10
- import "./chunk-CTYKQ4B4.mjs";
10
+ import "./chunk-7VKAUBZ7.mjs";
11
11
  import {
12
12
  CHAIN_BY_ID,
13
13
  DEFAULT_BACKEND_URL,
@@ -37,7 +37,7 @@ import {
37
37
  getUsdcAddress,
38
38
  getUsdcDecimals,
39
39
  isSupportedTokenAddressForChain
40
- } from "./chunk-VA3ANS7D.mjs";
40
+ } from "./chunk-UCZXBHLH.mjs";
41
41
  export {
42
42
  CHAIN_BY_ID,
43
43
  DEFAULT_BACKEND_URL,