@funkit/connect 10.5.0 → 11.0.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/CHANGELOG.md +62 -0
- package/dist/clients/chunk-2FSEE3AW.js +277 -0
- package/dist/clients/chunk-5MY7WMEJ.js +20 -0
- package/dist/clients/chunk-6CYZKITE.js +33 -0
- package/dist/clients/{chunk-QHS5N7GP.js → chunk-C4SHJFOV.js} +2 -2
- package/dist/clients/{chunk-WRS7AFM2.js → chunk-FNB7OPJI.js} +12 -199
- package/dist/clients/{chunk-2NBYHUIW.js → chunk-HZP4DXIZ.js} +1 -0
- package/dist/clients/{chunk-F6P4CN27.js → chunk-JD2J5K6S.js} +16 -8
- package/dist/clients/chunk-LT4EWLDA.js +30 -0
- package/dist/clients/chunk-MGQLVTSH.js +100 -0
- package/dist/clients/{chunk-FJ6GCMJ4.js → chunk-OODIKHYE.js} +3 -1
- package/dist/clients/chunk-SFDEST63.js +18 -0
- package/dist/clients/{chunk-OZ3KD24N.js → chunk-ZCCLJW6F.js} +0 -8
- package/dist/clients/fanatics.js +5 -6
- package/dist/clients/internal/nado/encoding.js +4 -25
- package/dist/clients/internal/nado/gateway.d.ts +0 -21
- package/dist/clients/internal/nado/gateway.js +1 -5
- package/dist/clients/internal/nado/hooks.d.ts +0 -158
- package/dist/clients/internal/nado/hooks.js +10 -121
- package/dist/clients/internal/nado/withdrawalConfig.js +3 -12
- package/dist/clients/internal/nado/withdrawalForm.css +17529 -0
- package/dist/clients/internal/nado/withdrawalForm.d.ts +41 -0
- package/dist/clients/internal/nado/withdrawalForm.js +283 -0
- package/dist/clients/internal/nado/withdrawalTypes.d.ts +7 -2
- package/dist/clients/lighter.css +5 -1
- package/dist/clients/lighter.d.ts +29 -1
- package/dist/clients/lighter.js +105 -100
- package/dist/clients/mallard.js +24 -3
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +5 -1
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +6 -3
- package/dist/clients/polymarket/index.css +5 -1
- package/dist/clients/polymarket/index.js +6 -3
- package/dist/components/BottomLinks/BottomLinks.d.ts +3 -1
- package/dist/consts/meld.d.ts +1 -1
- package/dist/domains/swapped.d.ts +1 -10
- package/dist/hooks/queries/useSwappedDefaultCurrency.d.ts +3 -3
- package/dist/hooks/queries/useWithdrawFops.d.ts +0 -1
- package/dist/hooks/track/useTrack.d.ts +1 -0
- package/dist/hooks/useTokenAndChainDropdown.d.ts +8 -1
- package/dist/index.css +5 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2325 -1552
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -2
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +6 -9
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +54 -48
- package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +5 -9
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +1 -61
- package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +53 -0
- package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +38 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +61 -4
- package/dist/providers/FunkitConfigContext.d.ts +2 -2
- package/dist/utils/consts.d.ts +1 -1
- package/dist/utils/customer.d.ts +367 -3
- package/dist/utils/withdrawal.d.ts +19 -6
- package/dist/wagmi/actions.d.ts +1 -1
- package/dist/wallets/Wallet.d.ts +21 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +34 -34
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +3 -3
- package/dist/clients/chunk-A4WQS6QG.js +0 -207
- package/dist/clients/internal/nado/products.d.ts +0 -36
- package/dist/clients/internal/nado/products.js +0 -19
- package/dist/wallets/walletConnectors/{chunk-RB3HR4R2.js → chunk-4NV5BYRP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YEZM4CK4.js → chunk-AVDUNQUW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-GUQM4QSL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-IULPZP2Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HNRB7KJU.js → chunk-JPN6TWIT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-KCRO2AGO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-STVVP43G.js → chunk-KI5Y2BBF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-X6CGV36L.js → chunk-NR2OGDHQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-OEEGYENV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-F5XEEVG6.js → chunk-OX37G4YT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-SWFF3TWJ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-TKB2OY6G.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2VP2F6EK.js → chunk-W2LCLDPX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-WAHGI5L7.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HTHAK6XB.js → chunk-WKNQMP4A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VTM6EECM.js → chunk-XCNHV3HS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-YO2K4MBH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-YQFGVZGR.js} +3 -3
package/dist/clients/lighter.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
AsyncImage
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
AsyncImage,
|
|
4
|
+
sanitizeUrl
|
|
5
|
+
} from "./chunk-HZP4DXIZ.js";
|
|
6
|
+
import "./chunk-OODIKHYE.js";
|
|
6
7
|
import {
|
|
7
8
|
chainMetadataById,
|
|
8
|
-
useFunkitConfig,
|
|
9
9
|
useFunkitConnectChainsById
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FNB7OPJI.js";
|
|
11
|
+
import {
|
|
12
|
+
useFunkitConfig,
|
|
13
|
+
useLighterAccountQuery,
|
|
14
|
+
useLighterAccountsQuery
|
|
15
|
+
} from "./chunk-2FSEE3AW.js";
|
|
11
16
|
import {
|
|
12
17
|
Box
|
|
13
18
|
} from "./chunk-LUHEVXPD.js";
|
|
14
19
|
import "./chunk-UPZNKPYU.js";
|
|
15
20
|
import {
|
|
16
21
|
useFunkitTranslation
|
|
17
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JD2J5K6S.js";
|
|
18
23
|
import {
|
|
19
24
|
logger
|
|
20
25
|
} from "./chunk-AHYOV7AV.js";
|
|
@@ -22,18 +27,18 @@ import {
|
|
|
22
27
|
// src/clients/lighter.tsx
|
|
23
28
|
import {
|
|
24
29
|
DirectExecutionType as DirectExecutionType2,
|
|
25
|
-
LIGHTERXYZ_API_KEY
|
|
30
|
+
LIGHTERXYZ_API_KEY,
|
|
26
31
|
createDirectExecution as createDirectExecution2
|
|
27
32
|
} from "@funkit/api-base";
|
|
28
33
|
import { LIGHTER_CHAIN_ID, SOLANA_MAINNET_CHAIN_ID } from "@funkit/chains";
|
|
29
34
|
import { RELAY_LIGHTER_CHAIN_ID as RELAY_LIGHTER_CHAIN_ID2 } from "@funkit/fun-relay";
|
|
30
35
|
import { retry } from "@lifeomic/attempt";
|
|
31
|
-
import { useQuery as
|
|
36
|
+
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
32
37
|
import i18next from "i18next";
|
|
33
38
|
import React4, { useMemo as useMemo2 } from "react";
|
|
34
39
|
import { v4 as uuid2 } from "uuid";
|
|
35
|
-
import { pad, parseUnits as parseUnits3, toHex } from "viem";
|
|
36
|
-
import { arbitrum, base, bsc, mainnet as
|
|
40
|
+
import { pad as pad2, parseUnits as parseUnits3, toHex } from "viem";
|
|
41
|
+
import { arbitrum, base, bsc, mainnet as mainnet2, optimism } from "viem/chains";
|
|
37
42
|
|
|
38
43
|
// src/components/ChainIcon/ChainIcon.tsx
|
|
39
44
|
import React from "react";
|
|
@@ -155,92 +160,17 @@ import {
|
|
|
155
160
|
} from "@funkit/api-base";
|
|
156
161
|
import { RELAY_LIGHTER_CHAIN_ID } from "@funkit/fun-relay";
|
|
157
162
|
import { formatAddress, formatCryptoAndStringify } from "@funkit/utils";
|
|
158
|
-
import * as dnum from "dnum";
|
|
159
163
|
import { v4 as uuid } from "uuid";
|
|
160
164
|
import React3, {
|
|
161
|
-
useCallback as
|
|
165
|
+
useCallback as useCallback2,
|
|
162
166
|
useEffect,
|
|
163
167
|
useMemo,
|
|
164
168
|
useRef,
|
|
165
169
|
useState
|
|
166
170
|
} from "react";
|
|
167
171
|
import { createPortal } from "react-dom";
|
|
168
|
-
import { parseUnits as parseUnits2 } from "viem";
|
|
169
|
-
import { mainnet as mainnet2 } from "viem/chains";
|
|
170
|
-
|
|
171
|
-
// src/utils/customer.ts
|
|
172
|
-
import { useQuery as useQuery2, useQueryClient } from "@tanstack/react-query";
|
|
173
|
-
import { useCallback as useCallback2 } from "react";
|
|
174
|
-
|
|
175
|
-
// src/consts/customers.ts
|
|
176
|
-
import {
|
|
177
|
-
AAVE_API_KEY,
|
|
178
|
-
AVANTIS_API_KEY,
|
|
179
|
-
BASED_API_KEY,
|
|
180
|
-
BSX_API_KEY,
|
|
181
|
-
ETHEREAL_API_KEY,
|
|
182
|
-
FANATICS_API_KEY,
|
|
183
|
-
HYENA_API_KEY,
|
|
184
|
-
HYPERDASH_API_KEY,
|
|
185
|
-
LIGHTERXYZ_API_KEY,
|
|
186
|
-
MALLARD_API_KEY,
|
|
187
|
-
MONAD_API_KEY,
|
|
188
|
-
MONKEY_TILT_API_KEY,
|
|
189
|
-
NADO_API_KEY,
|
|
190
|
-
OSTIUM_API_KEY,
|
|
191
|
-
PERPL_API_KEY,
|
|
192
|
-
POLYMARKET_API_KEY
|
|
193
|
-
} from "@funkit/api-base";
|
|
172
|
+
import { numberToHex, pad, parseUnits as parseUnits2 } from "viem";
|
|
194
173
|
import { mainnet } from "viem/chains";
|
|
195
|
-
function isLighterxyzCustomer(apiKey) {
|
|
196
|
-
return apiKey === LIGHTERXYZ_API_KEY;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// src/utils/customer.ts
|
|
200
|
-
var LIGHTER_MAIN_ACCOUNT_TYPE = 0;
|
|
201
|
-
var LIGHTER_TRADING_MODE = {
|
|
202
|
-
SIMPLE: 0,
|
|
203
|
-
UNIFIED: 1
|
|
204
|
-
};
|
|
205
|
-
async function getLighterAccountsByL1Address(address) {
|
|
206
|
-
const response = await fetch(
|
|
207
|
-
`https://mainnet.zklighter.elliot.ai/api/v1/accountsByL1Address?l1_address=${address}`
|
|
208
|
-
);
|
|
209
|
-
if (!response.ok) {
|
|
210
|
-
throw new Error(`Failed to fetch lighter accounts: ${response.statusText}`);
|
|
211
|
-
}
|
|
212
|
-
const data = await response.json();
|
|
213
|
-
return data;
|
|
214
|
-
}
|
|
215
|
-
function useLighterAccounts({
|
|
216
|
-
address
|
|
217
|
-
}) {
|
|
218
|
-
const { apiKey } = useFunkitConfig();
|
|
219
|
-
const isLighter = isLighterxyzCustomer(apiKey);
|
|
220
|
-
const enabled = !!address && address !== "0x" && isLighter;
|
|
221
|
-
const query = useQuery2({
|
|
222
|
-
queryKey: ["lighterAccounts", address],
|
|
223
|
-
queryFn: () => getLighterAccountsByL1Address(address),
|
|
224
|
-
enabled,
|
|
225
|
-
staleTime: Number.POSITIVE_INFINITY,
|
|
226
|
-
gcTime: Number.POSITIVE_INFINITY,
|
|
227
|
-
retry: false,
|
|
228
|
-
// allows us to always refetch the data but return the previous data until the new data is fetched
|
|
229
|
-
refetchOnMount: "always"
|
|
230
|
-
});
|
|
231
|
-
const subAccounts = query.data?.sub_accounts;
|
|
232
|
-
const mainAccount = subAccounts?.find(
|
|
233
|
-
(account) => account.account_type === LIGHTER_MAIN_ACCOUNT_TYPE
|
|
234
|
-
);
|
|
235
|
-
return {
|
|
236
|
-
...query,
|
|
237
|
-
mainAccountIndex: mainAccount?.index?.toString(),
|
|
238
|
-
// False until the accounts load — consumers fall back to the simple-mode
|
|
239
|
-
// UI (both USDC variants shown) while the trading mode is unknown.
|
|
240
|
-
isUnifiedTradingMode: mainAccount?.account_trading_mode === LIGHTER_TRADING_MODE.UNIFIED,
|
|
241
|
-
subAccounts
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
174
|
|
|
245
175
|
// src/utils/lighter.ts
|
|
246
176
|
import {
|
|
@@ -301,6 +231,23 @@ function isLighterWithdrawalRateLimitError(error) {
|
|
|
301
231
|
return message.includes("23004") || message.includes("23005") || message.includes("rate limit") || message.includes("ratelimit");
|
|
302
232
|
}
|
|
303
233
|
|
|
234
|
+
// src/utils/tokenIconUrl.ts
|
|
235
|
+
var getLocalTokenIconUrl = (symbol) => {
|
|
236
|
+
return ASSET_LOGO_SRCS[symbol.toUpperCase()] || `https://sdk-cdn.fun.xyz/images/${encodeURIComponent(symbol.toLowerCase())}.svg`;
|
|
237
|
+
};
|
|
238
|
+
var getTokenIconUrl = (symbol, tokens) => {
|
|
239
|
+
if (tokens) {
|
|
240
|
+
const token = tokens.find(
|
|
241
|
+
(token2) => token2.tokenSymbol.toLowerCase() === symbol.toLowerCase()
|
|
242
|
+
);
|
|
243
|
+
if (token) {
|
|
244
|
+
return sanitizeUrl(token.iconSrc) ?? getLocalTokenIconUrl(symbol);
|
|
245
|
+
}
|
|
246
|
+
return getLocalTokenIconUrl(symbol);
|
|
247
|
+
}
|
|
248
|
+
return getLocalTokenIconUrl(symbol);
|
|
249
|
+
};
|
|
250
|
+
|
|
304
251
|
// src/utils/timeFormat.ts
|
|
305
252
|
import { formatSecondsToReadableForm } from "@funkit/utils";
|
|
306
253
|
function formatSecondsTranslated(seconds, t, specifyUnderMinute = false, omitSeconds = false) {
|
|
@@ -316,6 +263,7 @@ function formatSecondsTranslated(seconds, t, specifyUnderMinute = false, omitSec
|
|
|
316
263
|
// src/modals/WithdrawalModal/LighterWithdrawal.tsx
|
|
317
264
|
var LIGHTER_FAST_METHOD_ID = "lighter-fast";
|
|
318
265
|
var LIGHTER_SECURE_METHOD_ID = "lighter-secure";
|
|
266
|
+
var LIGHTER_USDC_SPOT_SYMBOL = "USDC (Spot)";
|
|
319
267
|
var LIGHTER_ROUTE_TYPE = {
|
|
320
268
|
PERPS: 0,
|
|
321
269
|
SPOT: 1
|
|
@@ -351,7 +299,7 @@ async function getLighterWithdrawalDelay() {
|
|
|
351
299
|
}
|
|
352
300
|
function useLighterSecureDelayText() {
|
|
353
301
|
const { t } = useFunkitTranslation();
|
|
354
|
-
const query =
|
|
302
|
+
const query = useQuery2({
|
|
355
303
|
queryKey: ["lighterWithdrawalDelay"],
|
|
356
304
|
queryFn: getLighterWithdrawalDelay,
|
|
357
305
|
staleTime: 6e4,
|
|
@@ -527,7 +475,7 @@ async function trackLighterSecureWithdrawal({
|
|
|
527
475
|
const estTotalUsd = Number(withdrawalUSD);
|
|
528
476
|
const safeAmount = truncateToDecimals(amountTokenUnits, decimals);
|
|
529
477
|
const baseUnitAmount = parseUnits3(safeAmount, decimals).toString();
|
|
530
|
-
const fromTokenAddress =
|
|
478
|
+
const fromTokenAddress = pad2(toHex(assetIndex), { size: 20 });
|
|
531
479
|
await createDirectExecution2({
|
|
532
480
|
apiKey,
|
|
533
481
|
logger,
|
|
@@ -540,7 +488,7 @@ async function trackLighterSecureWithdrawal({
|
|
|
540
488
|
recipientAddr,
|
|
541
489
|
fromChainId: LIGHTER_CHAIN_ID.toString(),
|
|
542
490
|
fromTokenAddress,
|
|
543
|
-
toChainId:
|
|
491
|
+
toChainId: mainnet2.id.toString(),
|
|
544
492
|
toTokenAddress: mainnetTokenAddress,
|
|
545
493
|
fromAmountBaseUnit: baseUnitAmount,
|
|
546
494
|
toAmountBaseUnit: baseUnitAmount,
|
|
@@ -557,7 +505,7 @@ async function trackLighterSecureWithdrawal({
|
|
|
557
505
|
initSettings: {
|
|
558
506
|
config: {
|
|
559
507
|
targetAsset: mainnetTokenAddress,
|
|
560
|
-
targetChain:
|
|
508
|
+
targetChain: mainnet2.id.toString(),
|
|
561
509
|
targetAssetTicker: symbol
|
|
562
510
|
}
|
|
563
511
|
},
|
|
@@ -620,7 +568,7 @@ function buildSecureWithdrawalCallback({
|
|
|
620
568
|
txHash
|
|
621
569
|
});
|
|
622
570
|
void trackLighterSecureWithdrawal({
|
|
623
|
-
apiKey:
|
|
571
|
+
apiKey: LIGHTERXYZ_API_KEY,
|
|
624
572
|
// Secure locks the destination to the connected wallet, so the L1
|
|
625
573
|
// recipient address doubles as the userId for tracking purposes.
|
|
626
574
|
userId: destinationAddress,
|
|
@@ -646,10 +594,12 @@ function createLighterSecureWithdrawalConfig(config) {
|
|
|
646
594
|
modalTitle: config.modalTitle ?? i18next.t("withdrawal.withdraw"),
|
|
647
595
|
disableConnectedWallet: config.disableConnectedWallet,
|
|
648
596
|
onBeforeSign: config.onBeforeSign,
|
|
597
|
+
sourceTokens: config.sourceTokens,
|
|
598
|
+
withdrawalSourceTokenBalance: config.withdrawalSourceTokenBalance,
|
|
649
599
|
withdrawCallback: buildSecureWithdrawalCallback({
|
|
650
600
|
exec: config.sendLighterSecureWithdrawal
|
|
651
601
|
}),
|
|
652
|
-
sourceChainId:
|
|
602
|
+
sourceChainId: mainnet2.id.toString(),
|
|
653
603
|
sourceTokenSymbol: "USDC",
|
|
654
604
|
defaultReceiveToken: "USDC",
|
|
655
605
|
sourceTokenAddress: MAINNET_USDC,
|
|
@@ -658,13 +608,46 @@ function createLighterSecureWithdrawalConfig(config) {
|
|
|
658
608
|
getMinWithdrawalAmount: config.getMinWithdrawalAmount
|
|
659
609
|
};
|
|
660
610
|
}
|
|
611
|
+
function buildLighterSourceTokenOptions({
|
|
612
|
+
isSecure,
|
|
613
|
+
lighterAssets,
|
|
614
|
+
isUnifiedTradingMode = false
|
|
615
|
+
}) {
|
|
616
|
+
const usdcOption = {
|
|
617
|
+
symbol: "USDC",
|
|
618
|
+
label: isUnifiedTradingMode ? "USDC" : "USDC (Perps)",
|
|
619
|
+
iconSrc: getTokenIconUrl("USDC")
|
|
620
|
+
};
|
|
621
|
+
if (!isSecure) {
|
|
622
|
+
return [usdcOption];
|
|
623
|
+
}
|
|
624
|
+
const spotOptions = lighterAssets.filter(
|
|
625
|
+
(asset) => !(isUnifiedTradingMode && asset.symbol.toUpperCase() === "USDC")
|
|
626
|
+
).map((asset) => {
|
|
627
|
+
if (asset.symbol.toUpperCase() === "USDC") {
|
|
628
|
+
return {
|
|
629
|
+
symbol: LIGHTER_USDC_SPOT_SYMBOL,
|
|
630
|
+
label: LIGHTER_USDC_SPOT_SYMBOL,
|
|
631
|
+
iconSrc: getTokenIconUrl("USDC")
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
return {
|
|
635
|
+
symbol: asset.symbol,
|
|
636
|
+
label: asset.symbol,
|
|
637
|
+
iconSrc: getTokenIconUrl(asset.symbol)
|
|
638
|
+
};
|
|
639
|
+
});
|
|
640
|
+
return [usdcOption, ...spotOptions];
|
|
641
|
+
}
|
|
661
642
|
function buildLighterFastWalletWithdrawalConfig({
|
|
662
643
|
signerClient,
|
|
663
644
|
accountIndex,
|
|
664
645
|
modalTitle,
|
|
665
646
|
disableConnectedWallet,
|
|
666
647
|
iconSrc,
|
|
667
|
-
onBeforeSign
|
|
648
|
+
onBeforeSign,
|
|
649
|
+
isUnifiedTradingMode,
|
|
650
|
+
withdrawalSourceTokenBalance
|
|
668
651
|
}) {
|
|
669
652
|
const adaptedWallet = createLighterAdaptedWallet({
|
|
670
653
|
signerClient,
|
|
@@ -692,6 +675,12 @@ function buildLighterFastWalletWithdrawalConfig({
|
|
|
692
675
|
wallet,
|
|
693
676
|
sourceChainId: RELAY_LIGHTER_CHAIN_ID2,
|
|
694
677
|
sourceTokenSymbol: "USDC",
|
|
678
|
+
sourceTokens: buildLighterSourceTokenOptions({
|
|
679
|
+
isSecure: false,
|
|
680
|
+
lighterAssets: [],
|
|
681
|
+
isUnifiedTradingMode
|
|
682
|
+
}),
|
|
683
|
+
withdrawalSourceTokenBalance,
|
|
695
684
|
defaultReceiveToken: "USDC",
|
|
696
685
|
sourceTokenAddress: LIGHTER_USDC_PERPS_ADDRESS,
|
|
697
686
|
iconSrc: iconSrc ?? "https://sdk-cdn.fun.xyz/images/logos/lighter.png",
|
|
@@ -717,13 +706,14 @@ var LIGHTER_FAST_PREVIEW_CHAIN_IDS = [
|
|
|
717
706
|
bsc.id,
|
|
718
707
|
SOLANA_MAINNET_CHAIN_ID
|
|
719
708
|
];
|
|
720
|
-
var LIGHTER_SECURE_PREVIEW_CHAIN_IDS = [
|
|
709
|
+
var LIGHTER_SECURE_PREVIEW_CHAIN_IDS = [mainnet2.id];
|
|
721
710
|
function buildLighterMultiMethodConfig({
|
|
722
711
|
config,
|
|
723
712
|
accountIndex,
|
|
724
713
|
t,
|
|
725
714
|
secureDelayText,
|
|
726
|
-
isUnifiedTradingMode
|
|
715
|
+
isUnifiedTradingMode,
|
|
716
|
+
assets
|
|
727
717
|
}) {
|
|
728
718
|
const fastConfig = buildLighterFastWalletWithdrawalConfig({
|
|
729
719
|
signerClient: config.signerClient,
|
|
@@ -731,10 +721,18 @@ function buildLighterMultiMethodConfig({
|
|
|
731
721
|
modalTitle: config.modalTitle,
|
|
732
722
|
disableConnectedWallet: config.disableConnectedWallet,
|
|
733
723
|
iconSrc: config.fastIconSrc,
|
|
734
|
-
onBeforeSign: config.onBeforeSign
|
|
724
|
+
onBeforeSign: config.onBeforeSign,
|
|
725
|
+
isUnifiedTradingMode,
|
|
726
|
+
withdrawalSourceTokenBalance: config.withdrawalSourceTokenBalance
|
|
735
727
|
});
|
|
736
728
|
const secureConfig = createLighterSecureWithdrawalConfig({
|
|
737
729
|
accountIndex,
|
|
730
|
+
sourceTokens: buildLighterSourceTokenOptions({
|
|
731
|
+
isSecure: true,
|
|
732
|
+
lighterAssets: assets,
|
|
733
|
+
isUnifiedTradingMode
|
|
734
|
+
}),
|
|
735
|
+
withdrawalSourceTokenBalance: config.withdrawalSourceTokenBalance,
|
|
738
736
|
modalTitle: config.modalTitle,
|
|
739
737
|
disableConnectedWallet: config.disableConnectedWallet,
|
|
740
738
|
iconSrc: config.secureIconSrc,
|
|
@@ -779,11 +777,16 @@ function buildLighterMultiMethodConfig({
|
|
|
779
777
|
}
|
|
780
778
|
function useLighterWithdrawalConfig(config) {
|
|
781
779
|
const { t } = useFunkitTranslation();
|
|
782
|
-
const { mainAccountIndex, isUnifiedTradingMode } =
|
|
780
|
+
const { mainAccountIndex, isUnifiedTradingMode } = useLighterAccountsQuery({
|
|
783
781
|
address: config?.l1Address
|
|
784
782
|
});
|
|
785
783
|
const accountIndex = mainAccountIndex && /^\d+$/.test(mainAccountIndex) ? mainAccountIndex : void 0;
|
|
786
784
|
const secureDelayText = useLighterSecureDelayText();
|
|
785
|
+
const { account } = useLighterAccountQuery(
|
|
786
|
+
// Validated numeric above, so the template-literal narrowing is safe.
|
|
787
|
+
accountIndex ? { by: "index", value: accountIndex } : null
|
|
788
|
+
);
|
|
789
|
+
const assets = useMemo2(() => account?.assets ?? [], [account]);
|
|
787
790
|
return useMemo2(() => {
|
|
788
791
|
if (!config || !accountIndex) {
|
|
789
792
|
return null;
|
|
@@ -793,15 +796,17 @@ function useLighterWithdrawalConfig(config) {
|
|
|
793
796
|
accountIndex,
|
|
794
797
|
t,
|
|
795
798
|
secureDelayText,
|
|
796
|
-
isUnifiedTradingMode
|
|
799
|
+
isUnifiedTradingMode,
|
|
800
|
+
assets
|
|
797
801
|
});
|
|
798
|
-
}, [config, accountIndex, t, secureDelayText, isUnifiedTradingMode]);
|
|
802
|
+
}, [config, accountIndex, t, secureDelayText, isUnifiedTradingMode, assets]);
|
|
799
803
|
}
|
|
800
804
|
export {
|
|
801
805
|
LIGHTER_DEFAULT_SECURE_MIN_WITHDRAWAL_AMOUNTS,
|
|
802
806
|
LIGHTER_ROUTE_TYPE,
|
|
803
807
|
LIGHTER_WITHDRAW_ABI,
|
|
804
808
|
buildLighterL1WithdrawTransaction,
|
|
809
|
+
buildLighterSourceTokenOptions,
|
|
805
810
|
createLighterSecureWithdrawalConfig,
|
|
806
811
|
isLighterWithdrawalRateLimitError,
|
|
807
812
|
lighterWithdrawBaseUnits,
|
package/dist/clients/mallard.js
CHANGED
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getAccount,
|
|
4
4
|
sendTransaction,
|
|
5
|
+
signMessage,
|
|
6
|
+
signTypedData,
|
|
5
7
|
switchChain,
|
|
6
8
|
waitForTransactionReceipt
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OODIKHYE.js";
|
|
8
10
|
import {
|
|
9
11
|
useAccount,
|
|
10
12
|
useConfig
|
|
11
13
|
} from "./chunk-UPZNKPYU.js";
|
|
12
14
|
import {
|
|
13
15
|
useFunkitTranslation
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JD2J5K6S.js";
|
|
15
17
|
import {
|
|
16
18
|
logger
|
|
17
19
|
} from "./chunk-AHYOV7AV.js";
|
|
@@ -131,7 +133,26 @@ function createConnectedWalletWithdrawalClient(config, ownerAddress, sourceChain
|
|
|
131
133
|
hash: txHash,
|
|
132
134
|
chainId
|
|
133
135
|
})
|
|
134
|
-
)
|
|
136
|
+
),
|
|
137
|
+
// Gasless (EIP-3009/permit) relay routes return a typed-data signature
|
|
138
|
+
// step instead of a transaction — sign it with the connected wallet.
|
|
139
|
+
signTypedData: async (typedData) => {
|
|
140
|
+
const domainChainId = typedData.domain?.chainId;
|
|
141
|
+
if (domainChainId != null) {
|
|
142
|
+
await ensureOnChain(Number(domainChainId));
|
|
143
|
+
}
|
|
144
|
+
return signTypedData(config, {
|
|
145
|
+
account: ownerAddress,
|
|
146
|
+
domain: typedData.domain,
|
|
147
|
+
types: typedData.types,
|
|
148
|
+
primaryType: typedData.primaryType,
|
|
149
|
+
message: typedData.message
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
signMessage: (message) => signMessage(config, {
|
|
153
|
+
account: ownerAddress,
|
|
154
|
+
message: typeof message === "string" ? message : { raw: message.raw }
|
|
155
|
+
})
|
|
135
156
|
};
|
|
136
157
|
}
|
|
137
158
|
function useMallardWithdrawalConfig(config) {
|
|
@@ -14712,7 +14712,7 @@
|
|
|
14712
14712
|
border-radius: 50%;
|
|
14713
14713
|
}
|
|
14714
14714
|
|
|
14715
|
-
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=
|
|
14715
|
+
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogdmFyKC0tcmstbW9kYWxaSW5kZXgpOwp9Cjp3aGVyZSguXzFyOGY1NzEpIDp3aGVyZShhdWRpbywgY2FudmFzLCBlbWJlZCwgaWZyYW1lLCBpbWcsIG9iamVjdCwgc3ZnLCB2aWRlbykgewogIGRpc3BsYXk6IGJsb2NrOwogIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7Cn0KLl8xcjhmNTczIHsKICBtYXgtd2lkdGg6IDEwMHZ3Owp9Ci5fMXI4ZjU3NCB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICB3aWR0aDogMTAwJTsKICBmbGV4LXNocmluazogMDsKICBtaW4taGVpZ2h0OiB2YXIoLS1yay1kaW1lbnNpb25zLW1vZGFsVG9wQmFySGVpZ2h0KTsKfQouXzFyOGY1NzYgewogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHotaW5kZXg6IDE7Cn0KLl8xcjhmNTc3IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgei1pbmRleDogMjsKfQouXzFyOGY1NzkgewogIGJvdHRvbTogMDsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHRvcDogMDsKICB6LWluZGV4OiAtMTsKfQouXzFyOGY1N2EgewogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLl8xcjhmNTdiIHsKICBhbGlnbi1pdGVtczogZmxleC1lbmQ7Cn0 */
|
|
14716
14716
|
[data-rk] ._1r8f571 {
|
|
14717
14717
|
bottom: -200px;
|
|
14718
14718
|
left: -200px;
|
|
@@ -14722,6 +14722,10 @@
|
|
|
14722
14722
|
transform: translateZ(0);
|
|
14723
14723
|
z-index: var(--rk-modalZIndex);
|
|
14724
14724
|
}
|
|
14725
|
+
[data-rk] :where(._1r8f571) :where(audio, canvas, embed, iframe, img, object, svg, video) {
|
|
14726
|
+
display: block;
|
|
14727
|
+
vertical-align: middle;
|
|
14728
|
+
}
|
|
14725
14729
|
[data-rk] ._1r8f573 {
|
|
14726
14730
|
max-width: 100vw;
|
|
14727
14731
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-C4SHJFOV.js";
|
|
5
|
+
import "../chunk-LT4EWLDA.js";
|
|
6
|
+
import "../chunk-5MY7WMEJ.js";
|
|
7
|
+
import "../chunk-FNB7OPJI.js";
|
|
8
|
+
import "../chunk-2FSEE3AW.js";
|
|
6
9
|
import "../chunk-LUHEVXPD.js";
|
|
7
10
|
import "../chunk-UPZNKPYU.js";
|
|
8
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-JD2J5K6S.js";
|
|
9
12
|
import "../chunk-YFHTV7DT.js";
|
|
10
13
|
import "../chunk-6PIIYPQK.js";
|
|
11
14
|
import "../chunk-AHYOV7AV.js";
|
|
@@ -14712,7 +14712,7 @@
|
|
|
14712
14712
|
border-radius: 50%;
|
|
14713
14713
|
}
|
|
14714
14714
|
|
|
14715
|
-
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=
|
|
14715
|
+
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogdmFyKC0tcmstbW9kYWxaSW5kZXgpOwp9Cjp3aGVyZSguXzFyOGY1NzEpIDp3aGVyZShhdWRpbywgY2FudmFzLCBlbWJlZCwgaWZyYW1lLCBpbWcsIG9iamVjdCwgc3ZnLCB2aWRlbykgewogIGRpc3BsYXk6IGJsb2NrOwogIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7Cn0KLl8xcjhmNTczIHsKICBtYXgtd2lkdGg6IDEwMHZ3Owp9Ci5fMXI4ZjU3NCB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICB3aWR0aDogMTAwJTsKICBmbGV4LXNocmluazogMDsKICBtaW4taGVpZ2h0OiB2YXIoLS1yay1kaW1lbnNpb25zLW1vZGFsVG9wQmFySGVpZ2h0KTsKfQouXzFyOGY1NzYgewogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHotaW5kZXg6IDE7Cn0KLl8xcjhmNTc3IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgei1pbmRleDogMjsKfQouXzFyOGY1NzkgewogIGJvdHRvbTogMDsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHRvcDogMDsKICB6LWluZGV4OiAtMTsKfQouXzFyOGY1N2EgewogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLl8xcjhmNTdiIHsKICBhbGlnbi1pdGVtczogZmxleC1lbmQ7Cn0 */
|
|
14716
14716
|
[data-rk] ._1r8f571 {
|
|
14717
14717
|
bottom: -200px;
|
|
14718
14718
|
left: -200px;
|
|
@@ -14722,6 +14722,10 @@
|
|
|
14722
14722
|
transform: translateZ(0);
|
|
14723
14723
|
z-index: var(--rk-modalZIndex);
|
|
14724
14724
|
}
|
|
14725
|
+
[data-rk] :where(._1r8f571) :where(audio, canvas, embed, iframe, img, object, svg, video) {
|
|
14726
|
+
display: block;
|
|
14727
|
+
vertical-align: middle;
|
|
14728
|
+
}
|
|
14725
14729
|
[data-rk] ._1r8f573 {
|
|
14726
14730
|
max-width: 100vw;
|
|
14727
14731
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-C4SHJFOV.js";
|
|
5
|
+
import "../chunk-LT4EWLDA.js";
|
|
6
|
+
import "../chunk-5MY7WMEJ.js";
|
|
7
|
+
import "../chunk-FNB7OPJI.js";
|
|
8
|
+
import "../chunk-2FSEE3AW.js";
|
|
6
9
|
import "../chunk-LUHEVXPD.js";
|
|
7
10
|
import "../chunk-UPZNKPYU.js";
|
|
8
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-JD2J5K6S.js";
|
|
9
12
|
import {
|
|
10
13
|
POLYMARKET_PERPS_ROUTING_ID,
|
|
11
14
|
POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
2
3
|
export interface BottomLink {
|
|
3
4
|
text: string;
|
|
4
5
|
href: string;
|
|
5
6
|
}
|
|
6
7
|
interface BottomLinksProps {
|
|
8
|
+
fontSize?: BoxProps['fontSize'];
|
|
7
9
|
links: BottomLink[];
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* A compact, centered footer row of text links separated by a dot
|
|
11
13
|
* (e.g. `Terms • Help`). Each link opens in a new tab and brightens on hover.
|
|
12
14
|
*/
|
|
13
|
-
export declare const BottomLinks: ({ links }: BottomLinksProps) => React.JSX.Element;
|
|
15
|
+
export declare const BottomLinks: ({ fontSize, links }: BottomLinksProps) => React.JSX.Element;
|
|
14
16
|
export {};
|
package/dist/consts/meld.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { MELD_MIN_LIMIT_BUFFER } from '@funkit/connect-core';
|
|
2
2
|
export declare const getMeldProviderIconUrl: (provider: string) => string;
|
|
3
3
|
/** Utilizes locale formatting to get currency symbol out of a currency code */
|
|
4
4
|
export declare const getCurrencySymbol: (currencyCode: string) => string;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { type GetFopsResponse
|
|
2
|
-
/**
|
|
3
|
-
* Build the Swapped `thirdPartyPaymentConfigs` for a /fops request, shared by
|
|
4
|
-
* `useFops` and `useWithdrawFops`.
|
|
5
|
-
*
|
|
6
|
-
* `prefillFiatEmail` is normalized + validated here, but the backend is the
|
|
7
|
-
* authoritative validator: invalid emails are dropped (never block checkout)
|
|
8
|
-
* and the email value is never logged (PII).
|
|
9
|
-
*/
|
|
10
|
-
export declare function buildSwappedThirdPartyPaymentConfigs(prefillFiatEmail: string | undefined, themeConfig: Record<string, string>, logTag: 'useFops' | 'useWithdrawFops'): ThirdPartyPaymentConfigs;
|
|
1
|
+
import { type GetFopsResponse } from '@funkit/api-base';
|
|
11
2
|
export { FOPS_STALE_TIME, getFopsLimit, roundFopsLimit, sortFops, } from '@funkit/connect-core';
|
|
12
3
|
/**
|
|
13
4
|
* Validates FOPs by checking icon URL, embedded flow URL, and payment group.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Web wrapper for the shared Swapped country → default currency resolver:
|
|
3
|
+
* injects apiKey, IP country, and the browser logger.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useSwappedDefaultCurrency: () => import("@tanstack/react-query").UseQueryResult<string
|
|
5
|
+
export declare const useSwappedDefaultCurrency: () => import("@tanstack/react-query").UseQueryResult<string>;
|
|
@@ -9,6 +9,7 @@ export interface TrackEventData {
|
|
|
9
9
|
export declare const eventCounts: Partial<Record<CheckoutModalEvent | WithdrawModalEvent, number>>;
|
|
10
10
|
export declare const useTrack: () => {
|
|
11
11
|
logEvent: (eventNameOrTrackEventData: CheckoutModalEvent | TrackEventData) => void;
|
|
12
|
+
logEventV2: (type: string, metadata: Record<string, string>) => void;
|
|
12
13
|
logMeasuredEvent: (trackEventData: Omit<TrackEventData, "value">) => void;
|
|
13
14
|
startMeasuredEvent: (eventName: CheckoutModalEvent | WithdrawModalEvent) => void;
|
|
14
15
|
updateUserAsync: (userInfo: FunkitUserInfo & {
|
|
@@ -19,6 +19,13 @@ interface UseTokenChainResult {
|
|
|
19
19
|
export interface UseTokenAndChainDropdownOptions {
|
|
20
20
|
transferInit?: CheckoutInitTokenTransferResponse;
|
|
21
21
|
defaultValues?: TransferTokenDefault;
|
|
22
|
+
/**
|
|
23
|
+
* Pre-selects this token/chain (initial + async resync), taking precedence over
|
|
24
|
+
* `defaultValues`, WITHOUT promoting it in the chain sort order or token priority
|
|
25
|
+
* list. Use to restore a prior in-flow choice (e.g. BTC when returning from the
|
|
26
|
+
* Lightning flow) that shouldn't reorder the menus.
|
|
27
|
+
*/
|
|
28
|
+
selectionOverride?: TransferTokenDefault;
|
|
22
29
|
/** When true, resolves the withdrawal Statsig config instead of the token-transfer one. Defaults to false. */
|
|
23
30
|
isWithdrawal?: boolean;
|
|
24
31
|
/** When true, starts with no chain/token pre-selected (user must pick both). Defaults to false. */
|
|
@@ -28,5 +35,5 @@ export interface UseTokenAndChainDropdownOptions {
|
|
|
28
35
|
* Semi reusable hook (tied into token transfer configuration)
|
|
29
36
|
* ensures token&chain dropdown preselection logic is reusable
|
|
30
37
|
*/
|
|
31
|
-
export declare const useTokenAndChainDropdown: ({ defaultValues, isWithdrawal, noDefaultSelection, transferInit, }: UseTokenAndChainDropdownOptions) => UseTokenChainResult;
|
|
38
|
+
export declare const useTokenAndChainDropdown: ({ defaultValues, selectionOverride, isWithdrawal, noDefaultSelection, transferInit, }: UseTokenAndChainDropdownOptions) => UseTokenChainResult;
|
|
32
39
|
export {};
|
package/dist/index.css
CHANGED
|
@@ -14975,7 +14975,7 @@
|
|
|
14975
14975
|
--_7rkubb1: 0.9;
|
|
14976
14976
|
}
|
|
14977
14977
|
|
|
14978
|
-
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=
|
|
14978
|
+
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogdmFyKC0tcmstbW9kYWxaSW5kZXgpOwp9Cjp3aGVyZSguXzFyOGY1NzEpIDp3aGVyZShhdWRpbywgY2FudmFzLCBlbWJlZCwgaWZyYW1lLCBpbWcsIG9iamVjdCwgc3ZnLCB2aWRlbykgewogIGRpc3BsYXk6IGJsb2NrOwogIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7Cn0KLl8xcjhmNTczIHsKICBtYXgtd2lkdGg6IDEwMHZ3Owp9Ci5fMXI4ZjU3NCB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICB3aWR0aDogMTAwJTsKICBmbGV4LXNocmluazogMDsKICBtaW4taGVpZ2h0OiB2YXIoLS1yay1kaW1lbnNpb25zLW1vZGFsVG9wQmFySGVpZ2h0KTsKfQouXzFyOGY1NzYgewogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHotaW5kZXg6IDE7Cn0KLl8xcjhmNTc3IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgei1pbmRleDogMjsKfQouXzFyOGY1NzkgewogIGJvdHRvbTogMDsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHRvcDogMDsKICB6LWluZGV4OiAtMTsKfQouXzFyOGY1N2EgewogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLl8xcjhmNTdiIHsKICBhbGlnbi1pdGVtczogZmxleC1lbmQ7Cn0 */
|
|
14979
14979
|
[data-rk] ._1r8f571 {
|
|
14980
14980
|
bottom: -200px;
|
|
14981
14981
|
left: -200px;
|
|
@@ -14985,6 +14985,10 @@
|
|
|
14985
14985
|
transform: translateZ(0);
|
|
14986
14986
|
z-index: var(--rk-modalZIndex);
|
|
14987
14987
|
}
|
|
14988
|
+
[data-rk] :where(._1r8f571) :where(audio, canvas, embed, iframe, img, object, svg, video) {
|
|
14989
|
+
display: block;
|
|
14990
|
+
vertical-align: middle;
|
|
14991
|
+
}
|
|
14988
14992
|
[data-rk] ._1r8f573 {
|
|
14989
14993
|
max-width: 100vw;
|
|
14990
14994
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { createAuthenticationAdapter, FunkitConnectAuthenticationProvider, } fro
|
|
|
20
20
|
export type { AuthenticationAdapter, FunkitConnectAuthenticationProviderProps, } from './providers/AuthenticationContext';
|
|
21
21
|
export type { AvatarComponent } from './providers/AvatarContext';
|
|
22
22
|
export type { CheckoutBlockedReason } from './modals/CheckoutModal/CheckoutBlockedReason';
|
|
23
|
-
export type { FunkitCheckoutActionParams, FunkitCheckoutConfig, FunkitCheckoutOnCloseResult, FunkitWithdrawalConfig, WalletWithdrawalConfig, CustomWithdrawalConfig, MultiMethodWithdrawalConfig, WithdrawalMethodOption, WithdrawalParam, WithdrawalFormData, WithdrawalCustomerData, LighterWithdrawalCustomerData, LighterRouteType, NadoWithdrawalCustomerData, WithdrawalCustomerConfig, NadoWithdrawalCustomerConfig, UseFunkitCheckoutPropsWithFullConfig, UseFunkitCheckoutProps, FunkitCheckoutValidationResult, FunkitCheckoutResult, DynamicTargetAssetCandidate, AddToWalletToken, TokenInfo, ModalTitleContext, } from './providers/FunkitCheckoutContext';
|
|
23
|
+
export type { FunkitCheckoutActionParams, FunkitCheckoutConfig, FunkitCheckoutOnCloseResult, FunkitWithdrawalConfig, WalletWithdrawalConfig, CustomWithdrawalConfig, MultiMethodWithdrawalConfig, WithdrawalMethodOption, WithdrawalParam, WithdrawalFormData, WithdrawalSourceTokenBalanceParams, WithdrawalSourceCustomData, SourceTokenOption, WithdrawalCustomerData, LighterWithdrawalCustomerData, LighterRouteType, NadoWithdrawalCustomerData, WithdrawalCustomerConfig, NadoWithdrawalCustomerConfig, UseFunkitCheckoutPropsWithFullConfig, UseFunkitCheckoutProps, FunkitCheckoutValidationResult, FunkitCheckoutResult, DynamicTargetAssetCandidate, AddToWalletToken, TokenInfo, ModalTitleContext, } from './providers/FunkitCheckoutContext';
|
|
24
24
|
export { useFunkitCheckout, FunCheckoutStartingStep, } from './providers/FunkitCheckoutContext';
|
|
25
25
|
export type { FunkitCheckoutQuoteResult } from './domains/quote';
|
|
26
26
|
export type { FunkitConfig, FunkitUiCustomizationsConfig, FunkitTextCustomizationsConfig, } from './providers/FunkitConfigContext';
|