@funkit/connect 9.0.3 → 9.2.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 +43 -0
- package/dist/__generated__/default_configs.d.ts +6 -0
- package/dist/clients/chunk-SBQ2UUPK.js +214 -0
- package/dist/clients/fanatics.js +3 -211
- package/dist/clients/polymarket.d.ts +41 -0
- package/dist/clients/polymarket.js +345 -0
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
- package/dist/components/FunCheckoutHistory/PendingSuccessScreen.d.ts +13 -0
- package/dist/components/FunDivider/FunDivider.d.ts +2 -1
- package/dist/consts/bluvo.d.ts +5 -1
- package/dist/consts/customers.d.ts +0 -1
- package/dist/domains/swapped.d.ts +5 -1
- package/dist/hooks/track/CheckoutModalEvent.d.ts +2 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -1
- package/dist/hooks/useFrogAccount.d.ts +1 -1
- package/dist/hooks/useFunkitMaxCheckoutUsdInfo.d.ts +5 -5
- package/dist/hooks/useIsUsUser.d.ts +0 -1
- package/dist/index.css +130 -118
- package/dist/index.js +21451 -21458
- package/dist/modals/CheckoutModal/Brokerage/components/BrokerageSuccess.d.ts +1 -1
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +0 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -4
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +1 -5
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +4 -3
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +1 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -7
- package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +6 -4
- package/dist/utils/flags/config.d.ts +15 -1
- package/dist/utils/withdrawal.d.ts +13 -0
- 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 +51 -51
- 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/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +0 -12
- package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +0 -10
- package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +0 -7
- package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +0 -12
- package/dist/wallets/walletConnectors/{chunk-NEK7T3IC.js → chunk-4C7ER452.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UVMMPRDM.js → chunk-53VYSPXK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-I7K6LUZR.js → chunk-6UCI7GM6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3Y2GG3PM.js → chunk-6YO27XOM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-DWMUM4F6.js → chunk-7OARWILZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FDVJHNLL.js → chunk-CJJT7LMT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CT3QPTAU.js → chunk-EKJHJFRN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TIT5F32X.js → chunk-GH4M6FTK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UVYZSGIX.js → chunk-GSHSWVEG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CMLFDRCP.js → chunk-GVOQTORD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3YCR2ZB4.js → chunk-HETS3KKI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-C4RP2DNH.js → chunk-HOPH3TQ3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CBI3SGOC.js → chunk-IICWJWGZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZMRIQOR5.js → chunk-KO56HCTI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-COX3VEDR.js → chunk-LI6QY2B5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RLLTYOWT.js → chunk-PKMAPNN6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UPUDLUBT.js → chunk-TTHM3WUR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-N3UJMC3V.js → chunk-XBLHZICW.js} +3 -3
|
@@ -4,5 +4,5 @@ interface BrokerageSuccessProps {
|
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onNewDeposit: () => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const BrokerageSuccess: ({ bottomBarId, onClose, onNewDeposit, }: BrokerageSuccessProps) => React.JSX.Element
|
|
7
|
+
export declare const BrokerageSuccess: ({ bottomBarId, onClose, onNewDeposit, }: BrokerageSuccessProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -16,7 +16,6 @@ export declare enum FunCheckoutStep {
|
|
|
16
16
|
MELD_QUOTES = "meld_quotes",
|
|
17
17
|
MELD_REDIRECT = "meld_redirect",
|
|
18
18
|
MELD_CURRENCY_SELECT = "meld_currency_select",
|
|
19
|
-
DIRECT_EXECUTION_NOTIF_CENTER = "direct_execution_notif_center",
|
|
20
19
|
SELECT_BROKERAGE = "select_brokerage",
|
|
21
20
|
CONNECT_EXCHANGE = "connect_exchange",
|
|
22
21
|
BROKERAGE_TWO_FA = "brokerage_two_fa",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ExchangeRates } from '@funkit/api-base';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { type FunkitTextCustomizationsConfig } from '../../../providers/FunkitConfigContext';
|
|
4
3
|
import type { AssetHoldingsItem } from '../../../utils/assets';
|
|
@@ -9,11 +8,9 @@ interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep
|
|
|
9
8
|
checkoutConfig: FunkitCheckoutConfig;
|
|
10
9
|
/** unit price of target asset */
|
|
11
10
|
unitPrice: number;
|
|
12
|
-
/** currency exchange rates */
|
|
13
|
-
currencyExchangeRates: ExchangeRates | undefined;
|
|
14
11
|
/** default fiat currency to be used*/
|
|
15
12
|
defaultFiatCurrency?: string;
|
|
16
13
|
textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
|
|
17
14
|
}
|
|
18
|
-
export declare function InputAmountLoaded({ checkoutConfig, modalState, onNext, onClose, setModalState, sourceHolding, unitPrice,
|
|
15
|
+
export declare function InputAmountLoaded({ checkoutConfig, modalState, onNext, onClose, setModalState, sourceHolding, unitPrice, defaultFiatCurrency, textCustomizations, }: InputAmountLoadedProps): React.JSX.Element;
|
|
19
16
|
export {};
|
|
@@ -19,8 +19,6 @@ export interface AmountInputInitOptions {
|
|
|
19
19
|
locale: Intl.LocalesArgument;
|
|
20
20
|
/** Quick options, in fiat (not %) */
|
|
21
21
|
quickOptions?: number[];
|
|
22
|
-
/** Exchange rate of the `fiatCurrency` to USD */
|
|
23
|
-
fiatCurrencyExchangeRate: number | undefined;
|
|
24
22
|
/** Whether meld is enabled */
|
|
25
23
|
meldEnabled: boolean;
|
|
26
24
|
apiKey: string;
|
|
@@ -46,8 +44,6 @@ export interface AmountInputState {
|
|
|
46
44
|
usdMaxAmount: number | null;
|
|
47
45
|
/** Minimum amount, in USD (defaults to 0) */
|
|
48
46
|
usdMinAmount: number | null;
|
|
49
|
-
/** Exchange rate of the `fiatCurrency` to USD */
|
|
50
|
-
fiatCurrencyExchangeRate: number | undefined;
|
|
51
47
|
/** Whether meld is enabled */
|
|
52
48
|
meldEnabled: boolean;
|
|
53
49
|
/** Whether the input amount is in vault deposit mode
|
|
@@ -110,6 +106,6 @@ export type AmountInputError = {
|
|
|
110
106
|
* Return half the balance and round up to nearest 10, 100, 1000 etc
|
|
111
107
|
*/
|
|
112
108
|
export declare function calcInitialFiatAmount(balance: number): number;
|
|
113
|
-
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice,
|
|
109
|
+
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, meldEnabled, defaultIsInputInFiat, }: AmountInputInitOptions): AmountInputState;
|
|
114
110
|
export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
|
|
115
111
|
export declare function getDerivedState(state: AmountInputState, targetAssetTicker: string): AmountInputDerivedState;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ExchangeRates, GetFopsResponse, SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
interface FormOfPaymentsListProps {
|
|
4
4
|
fopsData?: GetFopsResponse;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
selectedFop?: SwappedFormOfPayment | null;
|
|
7
7
|
onFopSelect: (fop: SwappedFormOfPayment) => void;
|
|
8
|
+
exchangeRatesData?: ExchangeRates;
|
|
8
9
|
}
|
|
9
10
|
interface FormOfPaymentSection {
|
|
10
11
|
items: SwappedFormOfPayment[];
|
|
11
12
|
labelKey: 'sourceChange.mostPopular' | 'sourceChange.savedPaymentMethods' | 'sourceChange.moreOptions' | 'sourceChange.otherOptions';
|
|
12
13
|
}
|
|
13
|
-
export declare function getFormOfPaymentSections(fopsData: GetFopsResponse): {
|
|
14
|
+
export declare function getFormOfPaymentSections(fopsData: GetFopsResponse, fopPriority: readonly string[]): {
|
|
14
15
|
primary: FormOfPaymentSection;
|
|
15
16
|
secondary: FormOfPaymentSection;
|
|
16
17
|
};
|
|
17
|
-
export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, onFopSelect, }: FormOfPaymentsListProps): React.JSX.Element;
|
|
18
|
+
export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, onFopSelect, exchangeRatesData, }: FormOfPaymentsListProps): React.JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -2,3 +2,4 @@ export declare const WITH_EMPTY_STATE_DATA_ATTRIBUTE = "data-with-empty-state";
|
|
|
2
2
|
export declare const emptyStateStyles: string;
|
|
3
3
|
export declare const sourceListBoxStyles: string;
|
|
4
4
|
export declare const sourceListCompactBoxStyles: string;
|
|
5
|
+
export declare const fullWidthContentDivider: string;
|
|
@@ -12,7 +12,6 @@ import { type SelectBrokerageNext, type SelectBrokerageState } from './Brokerage
|
|
|
12
12
|
import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
|
|
13
13
|
import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
|
|
14
14
|
import { type ConfirmationStepNext, type ConfirmationStepState } from './ConfirmationStep/ConfirmationStep';
|
|
15
|
-
import { type DirectExecutionNotifCenterState } from './DirectExecutionNotifCenter/DirectExecutionNotifCenter';
|
|
16
15
|
import { FunCheckoutStep } from './FunCheckoutStep';
|
|
17
16
|
import { type InputAmountNext, type InputAmountState } from './InputAmount/InputAmount';
|
|
18
17
|
import { type LoadingAccountNext, type LoadingAccountState } from './LoadingAccount';
|
|
@@ -32,8 +31,6 @@ export interface CheckoutModalCommonState {
|
|
|
32
31
|
isSoftHidden: boolean;
|
|
33
32
|
/** Whether checkout should not be allowed to continue due to security reasons*/
|
|
34
33
|
isBlocked?: boolean;
|
|
35
|
-
/** Whether checkout is started in a defi mode which has various flow implications (most importantly targetAssetAmount must be set and is not editable throughout the checkout)*/
|
|
36
|
-
isDefiMode: boolean;
|
|
37
34
|
startingStep: FunCheckoutStartingStep;
|
|
38
35
|
targetChainId: string;
|
|
39
36
|
showWalletOptions?: boolean;
|
|
@@ -53,7 +50,6 @@ export declare function extractCommonState(state: CheckoutModalState): CheckoutM
|
|
|
53
50
|
interface ModalStepInput<S extends FunCheckoutStep> {
|
|
54
51
|
state: CheckoutModalState<S>;
|
|
55
52
|
apiKey: string;
|
|
56
|
-
isDefiMode?: boolean;
|
|
57
53
|
isSourceNavWidgetEnabled: boolean;
|
|
58
54
|
}
|
|
59
55
|
export type ModalStepInfo<S extends FunCheckoutStep> = {
|
|
@@ -67,7 +63,7 @@ export type ModalStepInfo<S extends FunCheckoutStep> = {
|
|
|
67
63
|
onNext(state: CheckoutModalState<S>, payload: NextPayload<S>): CheckoutModalState;
|
|
68
64
|
showFullHeight?: boolean;
|
|
69
65
|
/** Defaults to checkoutItem.initSettings.config.modalTitle (returning undefined uses default) */
|
|
70
|
-
title?(textCustomizations: FunkitTextCustomizationsConfig
|
|
66
|
+
title?(textCustomizations: FunkitTextCustomizationsConfig): string | undefined;
|
|
71
67
|
/** If title is not defined in config nor with the title() function, this is used instead. Defaults to 'Checkout' */
|
|
72
68
|
fallbackTitle?: string;
|
|
73
69
|
};
|
|
@@ -93,7 +89,6 @@ export type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
93
89
|
[FunCheckoutStep.MELD_QUOTES]: MeldQuotesState;
|
|
94
90
|
[FunCheckoutStep.MELD_REDIRECT]: MeldRedirectState;
|
|
95
91
|
[FunCheckoutStep.MELD_CURRENCY_SELECT]: MeldCurrencySelectState;
|
|
96
|
-
[FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER]: DirectExecutionNotifCenterState;
|
|
97
92
|
[FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageState;
|
|
98
93
|
[FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeState;
|
|
99
94
|
[FunCheckoutStep.BROKERAGE_TWO_FA]: BrokerageTwoFAState;
|
|
@@ -122,7 +117,6 @@ export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
122
117
|
[FunCheckoutStep.MELD_QUOTES]: MeldQuotesNext;
|
|
123
118
|
[FunCheckoutStep.MELD_REDIRECT]: MeldRedirectNext;
|
|
124
119
|
[FunCheckoutStep.MELD_CURRENCY_SELECT]: MeldCurrencySelectNext;
|
|
125
|
-
[FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER]: null;
|
|
126
120
|
[FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageNext;
|
|
127
121
|
[FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeNext;
|
|
128
122
|
[FunCheckoutStep.BROKERAGE_TWO_FA]: BrokerageTwoFANext;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
3
|
+
interface WithdrawalCallbackSuccessProps {
|
|
4
|
+
bottomBarId: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onNewWithdrawal: () => void;
|
|
7
|
+
quote: FunkitCheckoutQuoteResult | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const WithdrawalCallbackSuccess: ({ bottomBarId, onClose, onNewWithdrawal, quote, }: WithdrawalCallbackSuccessProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -32,7 +32,7 @@ interface FunkitCheckoutContextInterface {
|
|
|
32
32
|
setCompletedTimestamp(timestampMs: number): void;
|
|
33
33
|
withdrawalItem: FunkitActiveWithdrawalItem | null;
|
|
34
34
|
initNewWithdrawal(initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>, config: UseFunkitCheckoutPropsWithFullConfig): string;
|
|
35
|
-
updateWithdrawalSourceAssetAmount(newSourceAmount:
|
|
35
|
+
updateWithdrawalSourceAssetAmount(newSourceAmount: string): void;
|
|
36
36
|
resetForNewWithdrawal(): void;
|
|
37
37
|
applyDynamicRouting(path: Omit<DynamicRoutePath, 'getCustomRecipient' | 'generateActionsParams'> & {
|
|
38
38
|
customRecipient?: FunkitCheckoutConfig['customRecipient'];
|
|
@@ -50,8 +50,8 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
50
50
|
/** Title of the item being checked out. e.g. Staked Ether, XYZ Option, Solar Bond ABC **/
|
|
51
51
|
checkoutItemTitle: string;
|
|
52
52
|
/** amount of source token. it is not baseUnit **/
|
|
53
|
-
withdrawalSourceTokenBalance?: () => number;
|
|
54
|
-
/**
|
|
53
|
+
withdrawalSourceTokenBalance?: () => string | number;
|
|
54
|
+
/** @deprecated isDefiMode has been removed. This field is ignored. */
|
|
55
55
|
isDefiMode?: boolean;
|
|
56
56
|
/** The step at which the checkout process should start */
|
|
57
57
|
startingStep?: FunCheckoutStartingStep;
|
|
@@ -99,6 +99,8 @@ export interface WithdrawalConfigBase {
|
|
|
99
99
|
sourceTokenAddress: Address;
|
|
100
100
|
/** Disable connected option for email login user */
|
|
101
101
|
disableConnectedWallet?: boolean;
|
|
102
|
+
/** Default token to select in the receive token dropdown. Falls back to sourceTokenSymbol if not set. */
|
|
103
|
+
defaultReceiveToken?: string;
|
|
102
104
|
/** minimal USD needed to withdraw */
|
|
103
105
|
getMinWithdrawalUSD?: (asset: TokenInfo) => number;
|
|
104
106
|
}
|
|
@@ -196,12 +198,12 @@ export interface FunkitActiveCheckoutItem extends Omit<ApiCheckoutClientMetadata
|
|
|
196
198
|
};
|
|
197
199
|
/** Time of completion of the active checkout item. For frontend use only. **/
|
|
198
200
|
completedTimestampMs: number | null;
|
|
199
|
-
sourceAssetAmount:
|
|
201
|
+
sourceAssetAmount: string | null;
|
|
200
202
|
}
|
|
201
203
|
export interface FunkitActiveWithdrawalItem {
|
|
202
204
|
/** Unique identifier for frontend use only. */
|
|
203
205
|
id: string;
|
|
204
206
|
/** Final settings the withdrawal was init-ed with **/
|
|
205
207
|
initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>;
|
|
206
|
-
withdrawalSourceTokenBalance: () => number;
|
|
208
|
+
withdrawalSourceTokenBalance: () => string | number;
|
|
207
209
|
}
|
|
@@ -62,6 +62,13 @@ export declare const flagConfig: {
|
|
|
62
62
|
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
63
63
|
}];
|
|
64
64
|
readonly value: string;
|
|
65
|
+
}, {
|
|
66
|
+
readonly if_any: [{
|
|
67
|
+
readonly key: "apiKey";
|
|
68
|
+
readonly type: "isAnyOf";
|
|
69
|
+
readonly values: ["0IEOb9q4Kd9akgyPbIdW17HGYLY7MWEB2yRHyMxo"];
|
|
70
|
+
}];
|
|
71
|
+
readonly value: string;
|
|
65
72
|
}, {
|
|
66
73
|
readonly if_any: [{
|
|
67
74
|
readonly key: "apiKey";
|
|
@@ -144,7 +151,7 @@ export declare const flagConfig: {
|
|
|
144
151
|
readonly if_any: [{
|
|
145
152
|
readonly key: "apiKey";
|
|
146
153
|
readonly type: "isAnyOf";
|
|
147
|
-
readonly values: ["
|
|
154
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2"];
|
|
148
155
|
}];
|
|
149
156
|
readonly value: string;
|
|
150
157
|
}, {
|
|
@@ -154,6 +161,13 @@ export declare const flagConfig: {
|
|
|
154
161
|
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
155
162
|
}];
|
|
156
163
|
readonly value: string;
|
|
164
|
+
}, {
|
|
165
|
+
readonly if_any: [{
|
|
166
|
+
readonly key: "apiKey";
|
|
167
|
+
readonly type: "isAnyOf";
|
|
168
|
+
readonly values: ["0IEOb9q4Kd9akgyPbIdW17HGYLY7MWEB2yRHyMxo"];
|
|
169
|
+
}];
|
|
170
|
+
readonly value: string;
|
|
157
171
|
}];
|
|
158
172
|
};
|
|
159
173
|
readonly is_checkout_activated: {
|
|
@@ -7,3 +7,16 @@ export declare function isWalletWithdrawalConfig(config: FunkitWithdrawalConfig)
|
|
|
7
7
|
* Type guard to check if withdrawal config uses custom callback flow
|
|
8
8
|
*/
|
|
9
9
|
export declare function isCustomWithdrawalConfig(config: FunkitWithdrawalConfig): config is CustomWithdrawalConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Converts a human-readable token amount to base units using string arithmetic
|
|
12
|
+
* to avoid floating-point precision loss.
|
|
13
|
+
*
|
|
14
|
+
* The precision is preserved because the original user-input string is passed
|
|
15
|
+
* directly — it is never coerced to a JS Number/float first.
|
|
16
|
+
*
|
|
17
|
+
* e.g. passing the already-truncated float string '8.967660226710157' would
|
|
18
|
+
* still produce 8967660226710157000n (lossy).
|
|
19
|
+
* But keeping the original full-precision string '8.967660226710157512'
|
|
20
|
+
* produces 8967660226710157512n (exact).
|
|
21
|
+
*/
|
|
22
|
+
export declare function toWithdrawalAmountBaseUnit(amount: string, decimals: number): bigint;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-EKJHJFRN.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-HOPH3TQ3.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bybitWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-6UCI7GM6.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
bybitWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
coin98Wallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-6YO27XOM.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
coin98Wallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-CJJT7LMT.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -1,43 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zealWallet
|
|
4
|
+
} from "./chunk-HE2LMIPD.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
zerionWallet
|
|
7
|
+
} from "./chunk-TTHM3WUR.js";
|
|
8
8
|
import {
|
|
9
9
|
talismanWallet
|
|
10
10
|
} from "./chunk-6MFOL6EB.js";
|
|
11
11
|
import {
|
|
12
12
|
tokenPocketWallet
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4C7ER452.js";
|
|
14
14
|
import {
|
|
15
15
|
tokenaryWallet
|
|
16
16
|
} from "./chunk-34LO6Q7A.js";
|
|
17
17
|
import {
|
|
18
18
|
trustWallet
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KO56HCTI.js";
|
|
20
20
|
import {
|
|
21
21
|
uniswapWallet
|
|
22
22
|
} from "./chunk-NHLG5PVD.js";
|
|
23
|
+
import {
|
|
24
|
+
ramperWallet
|
|
25
|
+
} from "./chunk-R4S234FL.js";
|
|
23
26
|
import {
|
|
24
27
|
walletConnectWallet
|
|
25
28
|
} from "./chunk-J34FG3W4.js";
|
|
26
29
|
import {
|
|
27
30
|
xdefiWallet
|
|
28
31
|
} from "./chunk-O7RSASRH.js";
|
|
29
|
-
import {
|
|
30
|
-
zealWallet
|
|
31
|
-
} from "./chunk-HE2LMIPD.js";
|
|
32
32
|
import {
|
|
33
33
|
rainbowWallet
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
ramperWallet
|
|
37
|
-
} from "./chunk-R4S234FL.js";
|
|
34
|
+
} from "./chunk-GSHSWVEG.js";
|
|
38
35
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-XMNVOYSJ.js";
|
|
41
38
|
import {
|
|
42
39
|
safeWallet
|
|
43
40
|
} from "./chunk-YKVWTGU7.js";
|
|
@@ -46,13 +43,19 @@ import {
|
|
|
46
43
|
} from "./chunk-4R4AARTG.js";
|
|
47
44
|
import {
|
|
48
45
|
safepalWallet
|
|
49
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-IICWJWGZ.js";
|
|
50
47
|
import {
|
|
51
48
|
subWallet
|
|
52
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XBLHZICW.js";
|
|
53
50
|
import {
|
|
54
51
|
tahoWallet
|
|
55
52
|
} from "./chunk-4BMUFNMT.js";
|
|
53
|
+
import {
|
|
54
|
+
roninWallet
|
|
55
|
+
} from "./chunk-PKMAPNN6.js";
|
|
56
|
+
import {
|
|
57
|
+
metaMaskWallet
|
|
58
|
+
} from "./chunk-HETS3KKI.js";
|
|
56
59
|
import {
|
|
57
60
|
mewWallet
|
|
58
61
|
} from "./chunk-HKVDCVCG.js";
|
|
@@ -61,7 +64,7 @@ import {
|
|
|
61
64
|
} from "./chunk-BVX22N7L.js";
|
|
62
65
|
import {
|
|
63
66
|
okxWallet
|
|
64
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-LI6QY2B5.js";
|
|
65
68
|
import {
|
|
66
69
|
omniWallet
|
|
67
70
|
} from "./chunk-INNF7G5X.js";
|
|
@@ -71,69 +74,66 @@ import {
|
|
|
71
74
|
import {
|
|
72
75
|
oneKeyWallet
|
|
73
76
|
} from "./chunk-HE5J5T7X.js";
|
|
74
|
-
import {
|
|
75
|
-
phantomWallet
|
|
76
|
-
} from "./chunk-XMNVOYSJ.js";
|
|
77
77
|
import {
|
|
78
78
|
rabbyWallet
|
|
79
79
|
} from "./chunk-WFNPWKU3.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
coinbaseWallet
|
|
82
|
+
} from "./chunk-RZXMOPIV.js";
|
|
83
83
|
import {
|
|
84
84
|
frontierWallet
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CJJT7LMT.js";
|
|
86
86
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
87
|
+
imTokenWallet
|
|
88
|
+
} from "./chunk-IUVO4IN3.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-7OARWILZ.js";
|
|
92
92
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
93
|
+
frameWallet
|
|
94
|
+
} from "./chunk-WDTNOIMF.js";
|
|
95
95
|
import {
|
|
96
96
|
injectedWallet
|
|
97
97
|
} from "./chunk-W6MXINYY.js";
|
|
98
|
+
import {
|
|
99
|
+
kresusWallet
|
|
100
|
+
} from "./chunk-G4V5B6YC.js";
|
|
98
101
|
import {
|
|
99
102
|
ledgerWallet
|
|
100
103
|
} from "./chunk-WKCCLGHJ.js";
|
|
101
|
-
import {
|
|
102
|
-
metaMaskWallet
|
|
103
|
-
} from "./chunk-3YCR2ZB4.js";
|
|
104
104
|
import {
|
|
105
105
|
coin98Wallet
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-6YO27XOM.js";
|
|
107
107
|
import {
|
|
108
108
|
clvWallet
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-GVOQTORD.js";
|
|
110
110
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
111
|
+
bybitWallet
|
|
112
|
+
} from "./chunk-6UCI7GM6.js";
|
|
113
113
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
dawnWallet
|
|
115
|
+
} from "./chunk-TFVCCI2D.js";
|
|
116
116
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
117
|
+
desigWallet
|
|
118
|
+
} from "./chunk-JYVLYSH3.js";
|
|
119
119
|
import {
|
|
120
120
|
enkryptWallet
|
|
121
121
|
} from "./chunk-W6TXXLCO.js";
|
|
122
|
-
import {
|
|
123
|
-
desigWallet
|
|
124
|
-
} from "./chunk-JYVLYSH3.js";
|
|
125
122
|
import {
|
|
126
123
|
foxWallet
|
|
127
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-53VYSPXK.js";
|
|
125
|
+
import {
|
|
126
|
+
coreWallet
|
|
127
|
+
} from "./chunk-GH4M6FTK.js";
|
|
128
|
+
import {
|
|
129
|
+
bifrostWallet
|
|
130
|
+
} from "./chunk-EKJHJFRN.js";
|
|
128
131
|
import {
|
|
129
132
|
argentWallet
|
|
130
133
|
} from "./chunk-VUOAIUZE.js";
|
|
131
134
|
import {
|
|
132
135
|
bitgetWallet
|
|
133
|
-
} from "./chunk-
|
|
134
|
-
import {
|
|
135
|
-
bifrostWallet
|
|
136
|
-
} from "./chunk-CT3QPTAU.js";
|
|
136
|
+
} from "./chunk-HOPH3TQ3.js";
|
|
137
137
|
import {
|
|
138
138
|
bitskiWallet
|
|
139
139
|
} from "./chunk-A7FNGC4A.js";
|
|
@@ -143,11 +143,11 @@ import {
|
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-UB2SSFH7.js";
|
|
146
|
+
import "./chunk-MAPXJUOO.js";
|
|
146
147
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-ZRNBHLUU.js";
|
|
149
150
|
import "./chunk-BAVE62IL.js";
|
|
150
|
-
import "./chunk-MAPXJUOO.js";
|
|
151
151
|
import "./chunk-KV4HGYM3.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-HETS3KKI.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-GSHSWVEG.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
roninWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-PKMAPNN6.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
roninWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
safepalWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-IICWJWGZ.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
safepalWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-4C7ER452.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|