@rhinestone/deposit-modal 0.14.1 → 0.15.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.
- package/README.md +6 -0
- package/bridge-transcript.json +14 -0
- package/dist/ClaimModal-GFDBVCN5.cjs +11 -0
- package/dist/ClaimModal-VQS3AKEL.mjs +11 -0
- package/dist/{DepositModalReown-2EVV64OA.mjs → DepositModalReown-KOJ7VEY7.mjs} +6 -7
- package/dist/{DepositModalReown-GAD45GIC.cjs → DepositModalReown-R37SSHUF.cjs} +21 -22
- package/dist/WithdrawModal-QVXHMH43.mjs +12 -0
- package/dist/WithdrawModal-RY2NMFLE.cjs +12 -0
- package/dist/{caip-D8aRWdEY.d.cts → caip-BMi-9t09.d.cts} +27 -3
- package/dist/{caip-D8aRWdEY.d.ts → caip-BMi-9t09.d.ts} +27 -3
- package/dist/{chunk-HAQOFI3D.cjs → chunk-3OOY67VJ.cjs} +1046 -226
- package/dist/{chunk-AQVJUXSG.cjs → chunk-5P2PVLS4.cjs} +1 -1
- package/dist/{chunk-UX35GYLM.mjs → chunk-5VONFVQN.mjs} +918 -98
- package/dist/chunk-6HUHVXCY.cjs +704 -0
- package/dist/{chunk-GZ4GQ5MC.mjs → chunk-7UQ6OUEE.mjs} +166 -45
- package/dist/{chunk-LMG46EP2.mjs → chunk-CXBMIZUF.mjs} +1 -1
- package/dist/{chunk-A6JPBMYY.cjs → chunk-DTVZUBHI.cjs} +236 -115
- package/dist/{chunk-VUATPOWJ.mjs → chunk-EAGMY3QE.mjs} +74 -17
- package/dist/{chunk-RN5VKWI6.mjs → chunk-FTWKAJGN.mjs} +1 -1
- package/dist/{chunk-5Q5CSVKF.mjs → chunk-IKUYZA7A.mjs} +195 -495
- package/dist/{chunk-DW2EQA2U.cjs → chunk-LVCD6RHF.cjs} +2 -2
- package/dist/{chunk-4KCSH4T3.cjs → chunk-OY5N3E6L.cjs} +86 -29
- package/dist/chunk-QJ7RCCU7.mjs +704 -0
- package/dist/{chunk-XCTRKCNM.mjs → chunk-UCBUCX2W.mjs} +1515 -194
- package/dist/{chunk-NQMC5VKQ.cjs → chunk-VPDCGD2D.cjs} +552 -852
- package/dist/{chunk-4J5ADVIN.cjs → chunk-X4D52IZK.cjs} +1496 -175
- package/dist/claim.cjs +5 -7
- package/dist/claim.d.cts +3 -3
- package/dist/claim.d.ts +3 -3
- package/dist/claim.mjs +4 -6
- package/dist/{constants-DBrWhJWE.d.cts → constants-BT4ctuHo.d.cts} +7 -6
- package/dist/{constants-DBrWhJWE.d.ts → constants-D21ZdNOP.d.ts} +7 -6
- package/dist/constants.cjs +3 -3
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.mjs +2 -2
- package/dist/deposit.cjs +7 -8
- package/dist/deposit.d.cts +3 -3
- package/dist/deposit.d.ts +3 -3
- package/dist/deposit.mjs +6 -7
- package/dist/embed.cjs +135 -44
- package/dist/embed.d.cts +2 -2
- package/dist/embed.d.ts +2 -2
- package/dist/embed.mjs +116 -25
- package/dist/index.cjs +13 -11
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +12 -10
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +2 -2
- package/dist/styles.css +132 -100
- package/dist/{types-DP_3KwlD.d.cts → types-CQ0NHqCy.d.ts} +146 -11
- package/dist/{types-Bho4OA03.d.ts → types-CxiLX5sv.d.cts} +146 -11
- package/dist/withdraw.cjs +6 -6
- package/dist/withdraw.d.cts +4 -4
- package/dist/withdraw.d.ts +4 -4
- package/dist/withdraw.mjs +5 -5
- package/package.json +6 -6
- package/dist/ClaimModal-GDFENSLV.mjs +0 -13
- package/dist/ClaimModal-L3FUBI5U.cjs +0 -13
- package/dist/WithdrawModal-FAQH35NG.cjs +0 -12
- package/dist/WithdrawModal-IKUHF5CF.mjs +0 -12
- package/dist/chunk-62UCV2LG.cjs +0 -81
- package/dist/chunk-7AZFT2MV.cjs +0 -163
- package/dist/chunk-QACOOLOE.mjs +0 -1062
- package/dist/chunk-R5UQ3TN4.mjs +0 -81
- package/dist/chunk-VALXN5IO.mjs +0 -163
- package/dist/chunk-YP7QVKQ6.cjs +0 -1062
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOY5N3E6Lcjs = require('./chunk-OY5N3E6L.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/dapp-imports/polymarket/constants.ts
|
|
6
6
|
var POLYMARKET_POLYGON_CHAIN_ID = 137;
|
|
@@ -10,7 +10,7 @@ var POLYMARKET_USDCE_ADDRESS = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
|
|
|
10
10
|
var POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = "0x2957922Eb93258b93368531d39fAcCA3B4dC5854";
|
|
11
11
|
var SAFE_MULTI_SEND_CALL_ONLY_ADDRESS = "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D";
|
|
12
12
|
var GAMMA_API_PUBLIC_PROFILE = "https://gamma-api.polymarket.com/public-profile";
|
|
13
|
-
var POLYMARKET_ICON_URL =
|
|
13
|
+
var POLYMARKET_ICON_URL = _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "dapps", "polymarket");
|
|
14
14
|
|
|
15
15
|
// src/core/dapp-imports/polymarket/gamma-api.ts
|
|
16
16
|
var _viem = require('viem');
|
|
@@ -7,6 +7,7 @@ function toEvmCaip2(chainId) {
|
|
|
7
7
|
function targetChainToCaip2(targetChain) {
|
|
8
8
|
if (targetChain === "solana") return SOLANA_MAINNET_CAIP2;
|
|
9
9
|
if (isHyperCoreDestination(targetChain)) return HYPERCORE_SPOT_CAIP2;
|
|
10
|
+
if (typeof targetChain === "string") return targetChain;
|
|
10
11
|
return toEvmCaip2(targetChain);
|
|
11
12
|
}
|
|
12
13
|
function parseEvmChainId(value) {
|
|
@@ -22,13 +23,31 @@ function parseEvmChainId(value) {
|
|
|
22
23
|
function isSolanaCaip2(value) {
|
|
23
24
|
return typeof value === "string" && value.startsWith("solana:");
|
|
24
25
|
}
|
|
26
|
+
function displayChainIdForCaip2(caip2) {
|
|
27
|
+
const evm = parseEvmChainId(caip2);
|
|
28
|
+
if (evm !== null) return evm;
|
|
29
|
+
if (isSolanaCaip2(caip2)) return "solana";
|
|
30
|
+
if (isHyperCoreCaip2(caip2)) return "hypercore";
|
|
31
|
+
if (caip2 === TRON_MAINNET_CAIP2) return "tron";
|
|
32
|
+
if (caip2 === STELLAR_PUBNET_CAIP2) return "stellar";
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
25
35
|
function isHyperCoreCaip2(value) {
|
|
26
36
|
return typeof value === "string" && value.startsWith("hypercore:");
|
|
27
37
|
}
|
|
28
38
|
var HYPERCORE_CHAIN_ID = 1337;
|
|
29
39
|
var HYPERCORE_SPOT_CAIP2 = "hypercore:spot";
|
|
40
|
+
var TRON_MAINNET_CAIP2 = "tron:mainnet";
|
|
41
|
+
var STELLAR_PUBNET_CAIP2 = "stellar:pubnet";
|
|
42
|
+
function isTargetChain(value) {
|
|
43
|
+
if (typeof value === "number") return Number.isInteger(value) && value > 0;
|
|
44
|
+
return value === "solana" || value === HYPERCORE_SPOT_CAIP2 || value === TRON_MAINNET_CAIP2 || value === STELLAR_PUBNET_CAIP2;
|
|
45
|
+
}
|
|
30
46
|
function targetChainToChainId(targetChain) {
|
|
31
|
-
|
|
47
|
+
if (isHyperCoreDestination(targetChain)) return "hypercore";
|
|
48
|
+
if (targetChain === TRON_MAINNET_CAIP2) return "tron";
|
|
49
|
+
if (targetChain === STELLAR_PUBNET_CAIP2) return "stellar";
|
|
50
|
+
return targetChain;
|
|
32
51
|
}
|
|
33
52
|
function isHyperCoreDestination(targetChain) {
|
|
34
53
|
return targetChain === HYPERCORE_SPOT_CAIP2 || targetChain === HYPERCORE_CHAIN_ID;
|
|
@@ -41,7 +60,7 @@ var HYPERCORE_SOURCE_TOKENS = [
|
|
|
41
60
|
];
|
|
42
61
|
var HYPERCORE_MIN_DEPOSIT_USD = 1;
|
|
43
62
|
function isVirtualDestination(targetChain) {
|
|
44
|
-
return targetChain
|
|
63
|
+
return typeof targetChain !== "number" || isHyperCoreDestination(targetChain);
|
|
45
64
|
}
|
|
46
65
|
|
|
47
66
|
// src/core/solana-tokens.ts
|
|
@@ -78,7 +97,9 @@ function setRuntimeChainMeta(entries) {
|
|
|
78
97
|
name: entry.name,
|
|
79
98
|
iconUrl: entry.iconUrl,
|
|
80
99
|
nativeSymbol: entry.nativeSymbol,
|
|
81
|
-
explorerUrl: entry.explorerUrl
|
|
100
|
+
explorerUrl: entry.explorerUrl,
|
|
101
|
+
explorerTxPath: entry.explorerTxPath,
|
|
102
|
+
explorerAddressPath: entry.explorerAddressPath
|
|
82
103
|
});
|
|
83
104
|
}
|
|
84
105
|
}
|
|
@@ -94,9 +115,14 @@ function getRuntimeChainIconUrl(chainId) {
|
|
|
94
115
|
function getRuntimeChainExplorerUrl(chainId) {
|
|
95
116
|
return _optionalChain([byChainId, 'access', _11 => _11.get, 'call', _12 => _12(chainId), 'optionalAccess', _13 => _13.explorerUrl]);
|
|
96
117
|
}
|
|
118
|
+
function getRuntimeChainExplorerTxPath(chainId) {
|
|
119
|
+
return _optionalChain([byChainId, 'access', _14 => _14.get, 'call', _15 => _15(chainId), 'optionalAccess', _16 => _16.explorerTxPath]);
|
|
120
|
+
}
|
|
97
121
|
function getRuntimeChainExplorerName(chainId) {
|
|
98
|
-
const url = _optionalChain([byChainId, 'access',
|
|
99
|
-
|
|
122
|
+
const url = _optionalChain([byChainId, 'access', _17 => _17.get, 'call', _18 => _18(chainId), 'optionalAccess', _19 => _19.explorerUrl]);
|
|
123
|
+
return url ? explorerNameFromUrl(url) : void 0;
|
|
124
|
+
}
|
|
125
|
+
function explorerNameFromUrl(url) {
|
|
100
126
|
let host;
|
|
101
127
|
try {
|
|
102
128
|
host = new URL(url).hostname;
|
|
@@ -144,6 +170,7 @@ function getChainIcon(chainId) {
|
|
|
144
170
|
if (chainId === "hypercore" || chainId === HYPERCORE_CHAIN_ID) {
|
|
145
171
|
return CHAIN_ICONS[HYPEREVM_CHAIN_ID];
|
|
146
172
|
}
|
|
173
|
+
if (typeof chainId === "string") return getRuntimeChainIconUrl(chainId);
|
|
147
174
|
return _nullishCoalesce(CHAIN_ICONS[chainId], () => ( getRuntimeChainIconUrl(chainId)));
|
|
148
175
|
}
|
|
149
176
|
var ICON_SLUG_ALIASES = {
|
|
@@ -174,7 +201,8 @@ function symbolKey(chainId, symbol) {
|
|
|
174
201
|
return `${chainId}:${symbol.trim().toUpperCase()}`;
|
|
175
202
|
}
|
|
176
203
|
function addressKey(chainId, address) {
|
|
177
|
-
|
|
204
|
+
const key = address.startsWith("0x") ? address.toLowerCase() : address;
|
|
205
|
+
return `${chainId}:${key}`;
|
|
178
206
|
}
|
|
179
207
|
function setRuntimeTokens(tokens) {
|
|
180
208
|
for (const token of tokens) {
|
|
@@ -215,10 +243,10 @@ function getRuntimeTokenSymbols(chainId) {
|
|
|
215
243
|
return _nullishCoalesce(symbolsByChain.get(chainId), () => ( []));
|
|
216
244
|
}
|
|
217
245
|
function findRuntimeDecimalsByAddress(address) {
|
|
218
|
-
return _optionalChain([findByAddress, 'call',
|
|
246
|
+
return _optionalChain([findByAddress, 'call', _20 => _20(address), 'optionalAccess', _21 => _21.decimals]);
|
|
219
247
|
}
|
|
220
248
|
function findRuntimeSymbolByAddress(address) {
|
|
221
|
-
return _optionalChain([findByAddress, 'call',
|
|
249
|
+
return _optionalChain([findByAddress, 'call', _22 => _22(address), 'optionalAccess', _23 => _23.symbol]);
|
|
222
250
|
}
|
|
223
251
|
function findByAddress(address) {
|
|
224
252
|
const suffix = `:${address.toLowerCase()}`;
|
|
@@ -584,7 +612,7 @@ function getChainId(chain) {
|
|
|
584
612
|
function normalizeTokenSymbol(symbol) {
|
|
585
613
|
const trimmed = symbol.trim();
|
|
586
614
|
const wrapped = trimmed.match(/\(([^)]+)\)/);
|
|
587
|
-
if (_optionalChain([wrapped, 'optionalAccess',
|
|
615
|
+
if (_optionalChain([wrapped, 'optionalAccess', _24 => _24[1]])) {
|
|
588
616
|
return wrapped[1].trim().toUpperCase();
|
|
589
617
|
}
|
|
590
618
|
return trimmed.toUpperCase();
|
|
@@ -592,7 +620,7 @@ function normalizeTokenSymbol(symbol) {
|
|
|
592
620
|
function isSymbolSupportedOnChain(symbol, chainId) {
|
|
593
621
|
const normalized = normalizeTokenSymbol(symbol);
|
|
594
622
|
const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId];
|
|
595
|
-
if (_optionalChain([symbols, 'optionalAccess',
|
|
623
|
+
if (_optionalChain([symbols, 'optionalAccess', _25 => _25.includes, 'call', _26 => _26(normalized)])) return true;
|
|
596
624
|
return getRuntimeToken(chainId, normalized) !== void 0;
|
|
597
625
|
}
|
|
598
626
|
function getTokenFromRegistry(chainId, symbol) {
|
|
@@ -609,15 +637,16 @@ function getTokenFromRegistry(chainId, symbol) {
|
|
|
609
637
|
}
|
|
610
638
|
function runtimeToken(chainId, symbol) {
|
|
611
639
|
const token = getRuntimeToken(chainId, symbol);
|
|
612
|
-
|
|
640
|
+
if (!token || !token.address.startsWith("0x")) return void 0;
|
|
641
|
+
return { address: token.address, decimals: token.decimals };
|
|
613
642
|
}
|
|
614
643
|
function getUsdcAddress(chainId) {
|
|
615
644
|
const token = getTokenFromRegistry(chainId, "USDC");
|
|
616
|
-
return _optionalChain([token, 'optionalAccess',
|
|
645
|
+
return _optionalChain([token, 'optionalAccess', _27 => _27.address]);
|
|
617
646
|
}
|
|
618
647
|
function getUsdcDecimals(chainId) {
|
|
619
648
|
const token = getTokenFromRegistry(chainId, "USDC");
|
|
620
|
-
return _nullishCoalesce(_optionalChain([token, 'optionalAccess',
|
|
649
|
+
return _nullishCoalesce(_optionalChain([token, 'optionalAccess', _28 => _28.decimals]), () => ( 6));
|
|
621
650
|
}
|
|
622
651
|
function getTokenAddress(symbol, chainId) {
|
|
623
652
|
if (symbol.toUpperCase() === "ETH") {
|
|
@@ -630,18 +659,18 @@ function getTokenAddress(symbol, chainId) {
|
|
|
630
659
|
return void 0;
|
|
631
660
|
}
|
|
632
661
|
const token = getTokenFromRegistry(chainId, symbol);
|
|
633
|
-
return _optionalChain([token, 'optionalAccess',
|
|
662
|
+
return _optionalChain([token, 'optionalAccess', _29 => _29.address]);
|
|
634
663
|
}
|
|
635
664
|
function getTokenDecimals(symbol, chainId) {
|
|
636
665
|
if (symbol.toUpperCase() === "ETH") {
|
|
637
666
|
return 18;
|
|
638
667
|
}
|
|
639
668
|
const token = getTokenFromRegistry(chainId, symbol);
|
|
640
|
-
return _nullishCoalesce(_optionalChain([token, 'optionalAccess',
|
|
669
|
+
return _nullishCoalesce(_optionalChain([token, 'optionalAccess', _30 => _30.decimals]), () => ( 18));
|
|
641
670
|
}
|
|
642
671
|
function getTargetTokenSymbolsForChain(chainId) {
|
|
643
672
|
const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId];
|
|
644
|
-
if (_optionalChain([symbols, 'optionalAccess',
|
|
673
|
+
if (_optionalChain([symbols, 'optionalAccess', _31 => _31.length])) return [...symbols];
|
|
645
674
|
return getRuntimeTokenSymbols(chainId);
|
|
646
675
|
}
|
|
647
676
|
function getSupportedTokenSymbolsForChain(chainId) {
|
|
@@ -767,9 +796,13 @@ function getTokenSymbol(token, chainId) {
|
|
|
767
796
|
}
|
|
768
797
|
function getTargetTokenSymbol(token, chain) {
|
|
769
798
|
if (chain === "solana") {
|
|
770
|
-
return _nullishCoalesce(_optionalChain([getSolanaTokenByMint, 'call',
|
|
799
|
+
return _nullishCoalesce(_optionalChain([getSolanaTokenByMint, 'call', _32 => _32(String(token)), 'optionalAccess', _33 => _33.symbol]), () => ( "Token"));
|
|
771
800
|
}
|
|
772
|
-
|
|
801
|
+
const id = resolveDisplayChainId(chain);
|
|
802
|
+
if (typeof id === "string") {
|
|
803
|
+
return _nullishCoalesce(_optionalChain([getRuntimeTokenByAddress, 'call', _34 => _34(id, String(token)), 'optionalAccess', _35 => _35.symbol]), () => ( "Token"));
|
|
804
|
+
}
|
|
805
|
+
return getTokenSymbol(token, id);
|
|
773
806
|
}
|
|
774
807
|
function isStablecoinSymbol(symbol) {
|
|
775
808
|
return /^(usdc|usdt|usdt0|dai|usd)$/i.test(symbol);
|
|
@@ -798,10 +831,22 @@ var CHAIN_BADGES = {
|
|
|
798
831
|
function resolveDisplayChainId(chainId) {
|
|
799
832
|
return chainId === "hypercore" ? HYPERCORE_CHAIN_ID : chainId;
|
|
800
833
|
}
|
|
834
|
+
var NON_EVM_CHAIN_FALLBACKS = {
|
|
835
|
+
solana: { name: "Solana", explorerUrl: "https://solscan.io" },
|
|
836
|
+
tron: { name: "Tron", explorerUrl: "https://tronscan.org" },
|
|
837
|
+
stellar: { name: "Stellar", explorerUrl: "https://stellar.expert" }
|
|
838
|
+
};
|
|
839
|
+
var SOLANA_BADGE = {
|
|
840
|
+
shortLabel: "SOL",
|
|
841
|
+
color: "#9945FF",
|
|
842
|
+
bg: "#F3EEFF"
|
|
843
|
+
};
|
|
801
844
|
var HYPERCORE_EXPLORER_URL = "https://app.hyperliquid.xyz/explorer";
|
|
802
845
|
function getChainName(chainId) {
|
|
803
|
-
if (chainId === "solana") return "Solana";
|
|
804
846
|
const id = resolveDisplayChainId(chainId);
|
|
847
|
+
if (typeof id === "string") {
|
|
848
|
+
return _nullishCoalesce(getRuntimeChainName(id), () => ( NON_EVM_CHAIN_FALLBACKS[id].name));
|
|
849
|
+
}
|
|
805
850
|
const chainEntry = chainRegistry[String(id)];
|
|
806
851
|
if (chainEntry) return chainEntry.name;
|
|
807
852
|
const runtimeName = getRuntimeChainName(id);
|
|
@@ -809,10 +854,12 @@ function getChainName(chainId) {
|
|
|
809
854
|
return `Chain ${id}`;
|
|
810
855
|
}
|
|
811
856
|
function getChainBadge(chainId) {
|
|
812
|
-
if (chainId === "solana") {
|
|
813
|
-
return { shortLabel: "SOL", color: "#9945FF", bg: "#F3EEFF" };
|
|
814
|
-
}
|
|
815
857
|
const id = resolveDisplayChainId(chainId);
|
|
858
|
+
if (id === "solana") return SOLANA_BADGE;
|
|
859
|
+
if (typeof id === "string") {
|
|
860
|
+
const name2 = getChainName(id);
|
|
861
|
+
return { shortLabel: name2, ...badgeColorsFor(name2) };
|
|
862
|
+
}
|
|
816
863
|
const curated = CHAIN_BADGES[id];
|
|
817
864
|
if (curated) return curated;
|
|
818
865
|
const name = getRuntimeChainName(id);
|
|
@@ -830,21 +877,26 @@ function badgeColorsFor(name) {
|
|
|
830
877
|
return { color: `hsl(${hue} 55% 38%)`, bg: `hsl(${hue} 70% 95%)` };
|
|
831
878
|
}
|
|
832
879
|
function getExplorerUrl(chainId) {
|
|
833
|
-
if (chainId === "solana") return "https://solscan.io";
|
|
834
880
|
if (chainId === "hypercore") return HYPERCORE_EXPLORER_URL;
|
|
835
|
-
|
|
881
|
+
const id = resolveDisplayChainId(chainId);
|
|
882
|
+
const published = getRuntimeChainExplorerUrl(id);
|
|
883
|
+
if (published) return published;
|
|
884
|
+
return typeof id === "string" ? NON_EVM_CHAIN_FALLBACKS[id].explorerUrl : void 0;
|
|
836
885
|
}
|
|
837
886
|
function getExplorerTxUrl(chainId, txHash) {
|
|
838
|
-
if (chainId === "solana") return `https://solscan.io/tx/${txHash}`;
|
|
839
887
|
if (chainId === "hypercore" && !txHash.startsWith("0x")) return void 0;
|
|
840
888
|
const url = getExplorerUrl(chainId);
|
|
841
889
|
if (!url) return void 0;
|
|
842
|
-
|
|
890
|
+
const path = getRuntimeChainExplorerTxPath(resolveDisplayChainId(chainId));
|
|
891
|
+
return `${url}${_nullishCoalesce(path, () => ( "/tx/"))}${txHash}`;
|
|
843
892
|
}
|
|
844
893
|
function getExplorerName(chainId) {
|
|
845
|
-
if (chainId === "solana") return "Solscan";
|
|
846
894
|
if (chainId === "hypercore") return "Hyperliquid Explorer";
|
|
847
|
-
|
|
895
|
+
const id = resolveDisplayChainId(chainId);
|
|
896
|
+
const derived = getRuntimeChainExplorerName(id);
|
|
897
|
+
if (derived) return derived;
|
|
898
|
+
const url = typeof id === "string" ? NON_EVM_CHAIN_FALLBACKS[id].explorerUrl : void 0;
|
|
899
|
+
return url && explorerNameFromUrl(url) || "Explorer";
|
|
848
900
|
}
|
|
849
901
|
|
|
850
902
|
|
|
@@ -902,4 +954,9 @@ function getExplorerName(chainId) {
|
|
|
902
954
|
|
|
903
955
|
|
|
904
956
|
|
|
905
|
-
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
exports.SOLANA_MAINNET_CAIP2 = SOLANA_MAINNET_CAIP2; exports.toEvmCaip2 = toEvmCaip2; exports.targetChainToCaip2 = targetChainToCaip2; exports.parseEvmChainId = parseEvmChainId; exports.isSolanaCaip2 = isSolanaCaip2; exports.displayChainIdForCaip2 = displayChainIdForCaip2; exports.isHyperCoreCaip2 = isHyperCoreCaip2; exports.HYPERCORE_CHAIN_ID = HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = HYPERCORE_SPOT_CAIP2; exports.TRON_MAINNET_CAIP2 = TRON_MAINNET_CAIP2; exports.STELLAR_PUBNET_CAIP2 = STELLAR_PUBNET_CAIP2; exports.isTargetChain = isTargetChain; exports.targetChainToChainId = targetChainToChainId; exports.isHyperCoreDestination = isHyperCoreDestination; exports.HYPERCORE_USDC_ADDRESS = HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = HYPERCORE_USDT0_ADDRESS; exports.HYPERCORE_SOURCE_TOKENS = HYPERCORE_SOURCE_TOKENS; exports.HYPERCORE_MIN_DEPOSIT_USD = HYPERCORE_MIN_DEPOSIT_USD; exports.isVirtualDestination = isVirtualDestination; exports.SOLANA_TOKENS = SOLANA_TOKENS; exports.getSolanaTokenBySymbol = getSolanaTokenBySymbol; exports.getSolanaTokenByMint = getSolanaTokenByMint; exports.isNativeSol = isNativeSol; exports.setRuntimeChainMeta = setRuntimeChainMeta; exports.setRuntimeTokens = setRuntimeTokens; exports.publishShortlistTokens = publishShortlistTokens; exports.getRuntimeTokenByAddress = getRuntimeTokenByAddress; exports.ICON_CDN = ICON_CDN; exports.cdnIconUrl = cdnIconUrl; exports.getChainIcon = getChainIcon; exports.tokenIconUrl = tokenIconUrl; exports.getTokenIcon = getTokenIcon; exports.NATIVE_TOKEN_ADDRESS = NATIVE_TOKEN_ADDRESS; exports.CHAIN_DISPLAY_ORDER = CHAIN_DISPLAY_ORDER; exports.SUPPORTED_CHAIN_IDS = SUPPORTED_CHAIN_IDS; exports.chainRegistry = chainRegistry; exports.getChainId = getChainId; exports.getUsdcAddress = getUsdcAddress; exports.getUsdcDecimals = getUsdcDecimals; exports.getTokenAddress = getTokenAddress; exports.getTokenDecimals = getTokenDecimals; exports.getTargetTokenSymbolsForChain = getTargetTokenSymbolsForChain; exports.getSupportedTokenSymbolsForChain = getSupportedTokenSymbolsForChain; exports.getSupportedChainIds = getSupportedChainIds; exports.isSupportedTokenAddressForChain = isSupportedTokenAddressForChain; exports.getSupportedTargetTokens = getSupportedTargetTokens; exports.findTokenDecimals = findTokenDecimals; exports.getTokenDecimalsByAddress = getTokenDecimalsByAddress; exports.findChainIdForToken = findChainIdForToken; exports.isRegistryTokenOnChain = isRegistryTokenOnChain; exports.getNativeSymbol = getNativeSymbol; exports.getTokenSymbol = getTokenSymbol; exports.getTargetTokenSymbol = getTargetTokenSymbol; exports.isStablecoinSymbol = isStablecoinSymbol; exports.getChainName = getChainName; exports.getChainBadge = getChainBadge; exports.getExplorerUrl = getExplorerUrl; exports.getExplorerTxUrl = getExplorerTxUrl; exports.getExplorerName = getExplorerName;
|