@rhinestone/deposit-modal 0.0.0-dev-20260902100643 → 0.0.0-dev-20260902142726
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/dist/{ClaimModal-PSUTIOAJ.mjs → ClaimModal-4SSHXT6G.mjs} +4 -4
- package/dist/ClaimModal-PVXLJRJQ.cjs +11 -0
- package/dist/{DepositModalReown-A3HHGMNI.mjs → DepositModalReown-JMCG5QYS.mjs} +6 -6
- package/dist/{DepositModalReown-MXYCCB37.cjs → DepositModalReown-QRUWOKYH.cjs} +21 -21
- package/dist/WithdrawModal-DL7RGWZF.mjs +12 -0
- package/dist/WithdrawModal-HERVXMJ7.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-7FOI2OFO.cjs → chunk-2PZ3NCVY.cjs} +1 -1
- package/dist/{chunk-TXJLLW3T.cjs → chunk-33UU462K.cjs} +401 -364
- package/dist/{chunk-B7MYDIEA.mjs → chunk-6WFF5JY2.mjs} +40 -5
- package/dist/{chunk-YN7T4MGV.cjs → chunk-CYJVYRIK.cjs} +124 -89
- package/dist/{chunk-VUATPOWJ.mjs → chunk-EAGMY3QE.mjs} +74 -17
- package/dist/{chunk-RN5VKWI6.mjs → chunk-FTWKAJGN.mjs} +1 -1
- package/dist/{chunk-277V3675.mjs → chunk-GC2ACTTH.mjs} +415 -192
- package/dist/{chunk-YTXWDXZW.mjs → chunk-HDDIN25P.mjs} +421 -104
- package/dist/{chunk-N27DX2Y3.cjs → chunk-JDOTW5NA.cjs} +99 -274
- package/dist/{chunk-3XY7OEUP.mjs → chunk-KPHVBODX.mjs} +82 -257
- package/dist/{chunk-DW2EQA2U.cjs → chunk-LVCD6RHF.cjs} +2 -2
- package/dist/{chunk-CGCDCITV.cjs → chunk-OCR7O5ES.cjs} +498 -275
- package/dist/{chunk-4KCSH4T3.cjs → chunk-OY5N3E6L.cjs} +86 -29
- package/dist/{chunk-ZQLAVLHM.mjs → chunk-QQGFDVGI.mjs} +1 -1
- package/dist/{chunk-BUSVIK7O.mjs → chunk-TNDRODB2.mjs} +45 -8
- package/dist/{chunk-BWSZDNJP.cjs → chunk-TTH4C5O6.cjs} +586 -269
- package/dist/claim.cjs +5 -5
- package/dist/claim.d.cts +3 -3
- package/dist/claim.d.ts +3 -3
- package/dist/claim.mjs +4 -4
- 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 -7
- package/dist/deposit.d.cts +3 -3
- package/dist/deposit.d.ts +3 -3
- package/dist/deposit.mjs +6 -6
- package/dist/embed.cjs +22 -28
- package/dist/embed.d.cts +2 -2
- package/dist/embed.d.ts +2 -2
- package/dist/embed.mjs +12 -18
- package/dist/index.cjs +13 -9
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +12 -8
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +2 -2
- package/dist/{types-BT1KmcJS.d.ts → types-CQ0NHqCy.d.ts} +97 -9
- package/dist/{types-CUCD4RvY.d.cts → types-CxiLX5sv.d.cts} +97 -9
- package/dist/withdraw.cjs +6 -6
- package/dist/withdraw.d.cts +3 -3
- package/dist/withdraw.d.ts +3 -3
- package/dist/withdraw.mjs +5 -5
- package/package.json +6 -6
- package/dist/ClaimModal-GSPX6OJ7.cjs +0 -11
- package/dist/WithdrawModal-4QBA4F3B.cjs +0 -12
- package/dist/WithdrawModal-AB4XLDEZ.mjs +0 -12
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClaimModal,
|
|
3
3
|
buildClaimAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-KPHVBODX.mjs";
|
|
5
|
+
import "./chunk-GC2ACTTH.mjs";
|
|
6
|
+
import "./chunk-QQGFDVGI.mjs";
|
|
7
|
+
import "./chunk-EAGMY3QE.mjs";
|
|
8
8
|
export {
|
|
9
9
|
ClaimModal,
|
|
10
10
|
buildClaimAnalyticsSessionProperties
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJDOTW5NAcjs = require('./chunk-JDOTW5NA.cjs');
|
|
5
|
+
require('./chunk-OCR7O5ES.cjs');
|
|
6
|
+
require('./chunk-2PZ3NCVY.cjs');
|
|
7
|
+
require('./chunk-OY5N3E6L.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.ClaimModal = _chunkJDOTW5NAcjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunkJDOTW5NAcjs.buildClaimAnalyticsSessionProperties;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner,
|
|
3
3
|
getReownDependencies
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TNDRODB2.mjs";
|
|
5
|
+
import "./chunk-HDDIN25P.mjs";
|
|
6
6
|
import {
|
|
7
7
|
followSystemAppearance,
|
|
8
8
|
isUnsupportedChainSwitchError,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
resolveThemeMode,
|
|
12
12
|
rpcUrlFor,
|
|
13
13
|
useStableRpcUrls
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-GC2ACTTH.mjs";
|
|
15
|
+
import "./chunk-QQGFDVGI.mjs";
|
|
16
|
+
import "./chunk-FTWKAJGN.mjs";
|
|
17
17
|
import {
|
|
18
18
|
SUPPORTED_CHAIN_IDS,
|
|
19
19
|
getChainName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EAGMY3QE.mjs";
|
|
21
21
|
|
|
22
22
|
// src/DepositModalReown.tsx
|
|
23
23
|
import { useCallback, useMemo as useMemo2 } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk33UU462Kcjs = require('./chunk-33UU462K.cjs');
|
|
5
|
+
require('./chunk-TTH4C5O6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,13 +11,13 @@ require('./chunk-BWSZDNJP.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
14
|
+
var _chunkOCR7O5EScjs = require('./chunk-OCR7O5ES.cjs');
|
|
15
|
+
require('./chunk-2PZ3NCVY.cjs');
|
|
16
|
+
require('./chunk-LVCD6RHF.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkOY5N3E6Lcjs = require('./chunk-OY5N3E6L.cjs');
|
|
21
21
|
|
|
22
22
|
// src/DepositModalReown.tsx
|
|
23
23
|
var _react = require('react');
|
|
@@ -45,7 +45,7 @@ var {
|
|
|
45
45
|
unichain,
|
|
46
46
|
katana,
|
|
47
47
|
hyperEvm
|
|
48
|
-
} =
|
|
48
|
+
} = _chunk33UU462Kcjs.getReownDependencies.call(void 0, )[1];
|
|
49
49
|
var APPKIT_NETWORK_BY_ID = {
|
|
50
50
|
[mainnet.id]: mainnet,
|
|
51
51
|
[optimism.id]: optimism,
|
|
@@ -62,7 +62,7 @@ var APPKIT_NETWORK_BY_ID = {
|
|
|
62
62
|
[katana.id]: katana,
|
|
63
63
|
[hyperEvm.id]: hyperEvm
|
|
64
64
|
};
|
|
65
|
-
var EVM_NETWORKS =
|
|
65
|
+
var EVM_NETWORKS = _chunkOY5N3E6Lcjs.SUPPORTED_CHAIN_IDS.map((chainId) => {
|
|
66
66
|
const network = APPKIT_NETWORK_BY_ID[chainId];
|
|
67
67
|
if (!network) {
|
|
68
68
|
throw new Error(
|
|
@@ -77,7 +77,7 @@ function getAppKitNetwork(chainId) {
|
|
|
77
77
|
|
|
78
78
|
// src/core/reown-theme.ts
|
|
79
79
|
function mapTheme(theme) {
|
|
80
|
-
const themeMode =
|
|
80
|
+
const themeMode = _chunkOCR7O5EScjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
81
81
|
const themeVariables = {
|
|
82
82
|
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
83
83
|
};
|
|
@@ -94,7 +94,7 @@ function setAppKitTheme(appKit, theme) {
|
|
|
94
94
|
|
|
95
95
|
// src/core/reown.tsx
|
|
96
96
|
var _jsxruntime = require('react/jsx-runtime');
|
|
97
|
-
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] =
|
|
97
|
+
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunk33UU462Kcjs.getReownDependencies.call(void 0, );
|
|
98
98
|
var {
|
|
99
99
|
createAppKit,
|
|
100
100
|
useAppKit,
|
|
@@ -110,14 +110,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
110
110
|
const transports = {};
|
|
111
111
|
for (const network of networks) {
|
|
112
112
|
const id = Number(network.id);
|
|
113
|
-
transports[id] = _viem.http.call(void 0,
|
|
113
|
+
transports[id] = _viem.http.call(void 0, _chunkOCR7O5EScjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
114
114
|
}
|
|
115
115
|
return transports;
|
|
116
116
|
}
|
|
117
117
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
118
118
|
return networks.map((network) => {
|
|
119
119
|
const id = Number(network.id);
|
|
120
|
-
return `${id}=${_nullishCoalesce(
|
|
120
|
+
return `${id}=${_nullishCoalesce(_chunkOCR7O5EScjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
121
121
|
}).join("|");
|
|
122
122
|
}
|
|
123
123
|
var cachedAdapter = null;
|
|
@@ -175,7 +175,7 @@ function getOrCreateAdapter(projectId, enableSolana, theme, rpcUrls, runtimeChai
|
|
|
175
175
|
function chainDisplayName(chainId) {
|
|
176
176
|
const runtime = runtimeNetworkById.get(chainId);
|
|
177
177
|
if (runtime) return runtime.name;
|
|
178
|
-
return
|
|
178
|
+
return _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId);
|
|
179
179
|
}
|
|
180
180
|
function resolveAppKitNetwork(chainId) {
|
|
181
181
|
return _nullishCoalesce(getAppKitNetwork(chainId), () => ( runtimeNetworkById.get(chainId)));
|
|
@@ -188,7 +188,7 @@ function ReownWalletProvider({
|
|
|
188
188
|
backendUrl,
|
|
189
189
|
children
|
|
190
190
|
}) {
|
|
191
|
-
const rpcUrls =
|
|
191
|
+
const rpcUrls = _chunkOCR7O5EScjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
192
192
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
193
193
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
194
194
|
if (!rpcUrls) return void 0;
|
|
@@ -200,14 +200,14 @@ function ReownWalletProvider({
|
|
|
200
200
|
return out;
|
|
201
201
|
}, [rpcUrls]);
|
|
202
202
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
203
|
-
const primed =
|
|
203
|
+
const primed = _chunkOCR7O5EScjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
204
204
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
205
205
|
});
|
|
206
206
|
_react.useEffect.call(void 0, () => {
|
|
207
207
|
let active = true;
|
|
208
|
-
const primed =
|
|
208
|
+
const primed = _chunkOCR7O5EScjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
209
209
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
210
|
-
|
|
210
|
+
_chunkOCR7O5EScjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
211
211
|
if (active) setState({ ready: true, chains });
|
|
212
212
|
});
|
|
213
213
|
return () => {
|
|
@@ -216,7 +216,7 @@ function ReownWalletProvider({
|
|
|
216
216
|
}, [backendUrl, overrides]);
|
|
217
217
|
_react.useEffect.call(void 0, () => {
|
|
218
218
|
setAppKitTheme(appKitReact.modal, theme);
|
|
219
|
-
return
|
|
219
|
+
return _chunkOCR7O5EScjs.followSystemAppearance.call(void 0,
|
|
220
220
|
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
221
221
|
() => setAppKitTheme(appKitReact.modal, theme)
|
|
222
222
|
);
|
|
@@ -280,7 +280,7 @@ function useReownWalletSession() {
|
|
|
280
280
|
await switchChainAsync({ chainId });
|
|
281
281
|
}
|
|
282
282
|
} catch (err) {
|
|
283
|
-
if (
|
|
283
|
+
if (_chunkOCR7O5EScjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
284
284
|
throw new Error(
|
|
285
285
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
286
286
|
);
|
|
@@ -293,7 +293,7 @@ function useReownWalletSession() {
|
|
|
293
293
|
|
|
294
294
|
// src/DepositModalReown.tsx
|
|
295
295
|
|
|
296
|
-
var [appKitReact2, , , , solanaAdapterReact] =
|
|
296
|
+
var [appKitReact2, , , , solanaAdapterReact] = _chunk33UU462Kcjs.getReownDependencies.call(void 0, );
|
|
297
297
|
var { useAppKitProvider } = appKitReact2;
|
|
298
298
|
var { useAppKitConnection } = solanaAdapterReact;
|
|
299
299
|
function DepositModalWithReown(props) {
|
|
@@ -315,7 +315,7 @@ function DepositModalWithReown(props) {
|
|
|
315
315
|
reown.disconnect();
|
|
316
316
|
}, [reown.disconnect]);
|
|
317
317
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
-
|
|
318
|
+
_chunk33UU462Kcjs.DepositModalInner,
|
|
319
319
|
{
|
|
320
320
|
...props,
|
|
321
321
|
walletSession: reownWithSolana,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WithdrawModal,
|
|
3
|
+
buildWithdrawAnalyticsSessionProperties
|
|
4
|
+
} from "./chunk-6WFF5JY2.mjs";
|
|
5
|
+
import "./chunk-HDDIN25P.mjs";
|
|
6
|
+
import "./chunk-GC2ACTTH.mjs";
|
|
7
|
+
import "./chunk-QQGFDVGI.mjs";
|
|
8
|
+
import "./chunk-EAGMY3QE.mjs";
|
|
9
|
+
export {
|
|
10
|
+
WithdrawModal,
|
|
11
|
+
buildWithdrawAnalyticsSessionProperties
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkCYJVYRIKcjs = require('./chunk-CYJVYRIK.cjs');
|
|
5
|
+
require('./chunk-TTH4C5O6.cjs');
|
|
6
|
+
require('./chunk-OCR7O5ES.cjs');
|
|
7
|
+
require('./chunk-2PZ3NCVY.cjs');
|
|
8
|
+
require('./chunk-OY5N3E6L.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkCYJVYRIKcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkCYJVYRIKcjs.buildWithdrawAnalyticsSessionProperties;
|
|
@@ -23,11 +23,35 @@ declare const HYPERCORE_CHAIN_ID = 1337;
|
|
|
23
23
|
* cannot sign the perp→spot transfer, so funds delivered there are stranded.
|
|
24
24
|
*/
|
|
25
25
|
declare const HYPERCORE_SPOT_CAIP2: "hypercore:spot";
|
|
26
|
+
/**
|
|
27
|
+
* Tron mainnet, and Stellar's public network — destinations the backend
|
|
28
|
+
* delivers to that have no EVM chain id and no sentinel of their own, so they
|
|
29
|
+
* are named by CAIP-2 the way HyperCore's venue is.
|
|
30
|
+
*
|
|
31
|
+
* Both are delivery-only: `/chains` reports `deposit: false` for each, so
|
|
32
|
+
* neither can be a deposit SOURCE and neither appears in the source picker.
|
|
33
|
+
*/
|
|
34
|
+
declare const TRON_MAINNET_CAIP2: "tron:mainnet";
|
|
35
|
+
declare const STELLAR_PUBNET_CAIP2: "stellar:pubnet";
|
|
26
36
|
/**
|
|
27
37
|
* Every accepted `targetChain` spelling: an EVM chain id, the `"solana"`
|
|
28
|
-
* sentinel, or a
|
|
38
|
+
* sentinel, or a CAIP-2 id for a destination with no EVM chain id.
|
|
39
|
+
*
|
|
40
|
+
* Closed rather than `${string}:${string}`, because every entry here needs a
|
|
41
|
+
* recipient-shape rule in `recipientMatchesTarget` and a display sentinel in
|
|
42
|
+
* {@link targetChainToChainId}. An open union would accept a typo'd or
|
|
43
|
+
* unsupported chain and fail at registration instead of at compile time.
|
|
44
|
+
*/
|
|
45
|
+
type TargetChain = number | "solana" | typeof HYPERCORE_SPOT_CAIP2 | typeof TRON_MAINNET_CAIP2 | typeof STELLAR_PUBNET_CAIP2;
|
|
46
|
+
/**
|
|
47
|
+
* The modal's internal chain identifier — a numeric EVM chain id, or a
|
|
48
|
+
* sentinel for a chain that has none.
|
|
49
|
+
*
|
|
50
|
+
* Named rather than spelled inline because every display, pricing and icon
|
|
51
|
+
* helper takes it, so a new non-EVM chain would otherwise mean editing the
|
|
52
|
+
* same union in twenty places and missing one.
|
|
29
53
|
*/
|
|
30
|
-
type
|
|
54
|
+
type DisplayChainId = number | "solana" | "hypercore" | "tron" | "stellar";
|
|
31
55
|
/** Canonical USDC on HyperEVM (999), the HyperCore settlement chain. */
|
|
32
56
|
declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
33
57
|
/**
|
|
@@ -37,4 +61,4 @@ declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba63
|
|
|
37
61
|
*/
|
|
38
62
|
declare const HYPERCORE_USDT0_ADDRESS = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
|
|
39
63
|
|
|
40
|
-
export { HYPERCORE_CHAIN_ID as H,
|
|
64
|
+
export { type DisplayChainId as D, HYPERCORE_CHAIN_ID as H, STELLAR_PUBNET_CAIP2 as S, TRON_MAINNET_CAIP2 as T, HYPERCORE_SPOT_CAIP2 as a, HYPERCORE_USDC_ADDRESS as b, HYPERCORE_USDT0_ADDRESS as c, type TargetChain as d };
|
|
@@ -23,11 +23,35 @@ declare const HYPERCORE_CHAIN_ID = 1337;
|
|
|
23
23
|
* cannot sign the perp→spot transfer, so funds delivered there are stranded.
|
|
24
24
|
*/
|
|
25
25
|
declare const HYPERCORE_SPOT_CAIP2: "hypercore:spot";
|
|
26
|
+
/**
|
|
27
|
+
* Tron mainnet, and Stellar's public network — destinations the backend
|
|
28
|
+
* delivers to that have no EVM chain id and no sentinel of their own, so they
|
|
29
|
+
* are named by CAIP-2 the way HyperCore's venue is.
|
|
30
|
+
*
|
|
31
|
+
* Both are delivery-only: `/chains` reports `deposit: false` for each, so
|
|
32
|
+
* neither can be a deposit SOURCE and neither appears in the source picker.
|
|
33
|
+
*/
|
|
34
|
+
declare const TRON_MAINNET_CAIP2: "tron:mainnet";
|
|
35
|
+
declare const STELLAR_PUBNET_CAIP2: "stellar:pubnet";
|
|
26
36
|
/**
|
|
27
37
|
* Every accepted `targetChain` spelling: an EVM chain id, the `"solana"`
|
|
28
|
-
* sentinel, or a
|
|
38
|
+
* sentinel, or a CAIP-2 id for a destination with no EVM chain id.
|
|
39
|
+
*
|
|
40
|
+
* Closed rather than `${string}:${string}`, because every entry here needs a
|
|
41
|
+
* recipient-shape rule in `recipientMatchesTarget` and a display sentinel in
|
|
42
|
+
* {@link targetChainToChainId}. An open union would accept a typo'd or
|
|
43
|
+
* unsupported chain and fail at registration instead of at compile time.
|
|
44
|
+
*/
|
|
45
|
+
type TargetChain = number | "solana" | typeof HYPERCORE_SPOT_CAIP2 | typeof TRON_MAINNET_CAIP2 | typeof STELLAR_PUBNET_CAIP2;
|
|
46
|
+
/**
|
|
47
|
+
* The modal's internal chain identifier — a numeric EVM chain id, or a
|
|
48
|
+
* sentinel for a chain that has none.
|
|
49
|
+
*
|
|
50
|
+
* Named rather than spelled inline because every display, pricing and icon
|
|
51
|
+
* helper takes it, so a new non-EVM chain would otherwise mean editing the
|
|
52
|
+
* same union in twenty places and missing one.
|
|
29
53
|
*/
|
|
30
|
-
type
|
|
54
|
+
type DisplayChainId = number | "solana" | "hypercore" | "tron" | "stellar";
|
|
31
55
|
/** Canonical USDC on HyperEVM (999), the HyperCore settlement chain. */
|
|
32
56
|
declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
33
57
|
/**
|
|
@@ -37,4 +61,4 @@ declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba63
|
|
|
37
61
|
*/
|
|
38
62
|
declare const HYPERCORE_USDT0_ADDRESS = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
|
|
39
63
|
|
|
40
|
-
export { HYPERCORE_CHAIN_ID as H,
|
|
64
|
+
export { type DisplayChainId as D, HYPERCORE_CHAIN_ID as H, STELLAR_PUBNET_CAIP2 as S, TRON_MAINNET_CAIP2 as T, HYPERCORE_SPOT_CAIP2 as a, HYPERCORE_USDC_ADDRESS as b, HYPERCORE_USDT0_ADDRESS as c, type TargetChain as d };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
|
|
2
|
-
var MODAL_VERSION = "0.0.0-dev-
|
|
2
|
+
var MODAL_VERSION = "0.0.0-dev-20260902142726";
|
|
3
3
|
var SERVICE_HEADERS = {
|
|
4
4
|
"Content-Type": "application/json",
|
|
5
5
|
"x-deposit-modal-version": MODAL_VERSION
|