@funkit/connect 6.0.1 → 6.0.2
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 +34 -0
- package/dist/components/Dialog/hooks.d.ts +11 -0
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +2 -2
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -11
- package/dist/consts/customers.d.ts +0 -1
- package/dist/domains/fees.d.ts +2 -3
- package/dist/domains/meld.d.ts +4 -3
- package/dist/domains/paymentMethods.d.ts +1 -8
- package/dist/domains/quote.d.ts +2 -3
- package/dist/hooks/usePaymentSources.d.ts +0 -1
- package/dist/index.css +14 -22
- package/dist/index.js +2971 -4962
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +0 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +1 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +0 -1
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -7
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +0 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +0 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -12
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +1 -3
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/providers/FunkitMeshProvider.d.ts +1 -19
- package/dist/utils/flags/impl.d.ts +1 -0
- package/dist/utils/flags/types.d.ts +3 -2
- package/dist/wallets/walletConnectors/index.js +42 -42
- package/package.json +5 -5
- package/dist/components/Icons/EtherFiIcon.d.ts +0 -4
- package/dist/hooks/useMesh.d.ts +0 -19
- package/dist/modals/CheckoutModal/ConnectExchange.d.ts +0 -12
- package/dist/modals/CheckoutModal/MeshVerification.d.ts +0 -17
- package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +0 -14
|
@@ -4,5 +4,5 @@ interface InputAmountLoadingProps extends ModalStepComponentProps<FunCheckoutSte
|
|
|
4
4
|
sourceHoldingError: Error | null;
|
|
5
5
|
unitPriceError: Error | null;
|
|
6
6
|
}
|
|
7
|
-
export declare function InputAmountLoading({ modalState,
|
|
7
|
+
export declare function InputAmountLoading({ modalState, sourceHoldingError, unitPriceError, }: InputAmountLoadingProps): React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -4,7 +4,6 @@ import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAcc
|
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
5
|
export type LoadingAccountState = CheckoutModalCommonState;
|
|
6
6
|
type UserEntryContext<T> = T & {
|
|
7
|
-
newUser?: boolean;
|
|
8
7
|
startingStep?: FunCheckoutStartingStep;
|
|
9
8
|
};
|
|
10
9
|
export type LoadingAccountNext = UserEntryContext<{
|
|
@@ -4,7 +4,6 @@ import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '
|
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
5
|
export type SelectAssetState = CheckoutModalCommonState & {
|
|
6
6
|
paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
7
|
-
newUser?: boolean;
|
|
8
7
|
};
|
|
9
8
|
export type SelectAssetNext = {
|
|
10
9
|
paymentMethodInfo?: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
@@ -3,12 +3,8 @@ import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodCar
|
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type SourceChangeState = CheckoutModalCommonState & {
|
|
5
5
|
paymentMethodInfo: ConnectablePaymentMethodInfo | null;
|
|
6
|
-
newUser?: boolean;
|
|
7
6
|
};
|
|
8
|
-
type
|
|
9
|
-
newUser?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type SourceChangeNext = WithNewUser<{
|
|
7
|
+
export type SourceChangeNext = {
|
|
12
8
|
connectNew: false;
|
|
13
9
|
paymentMethodInfo: ConnectablePaymentMethodInfo;
|
|
14
10
|
brokerageFailed: false;
|
|
@@ -29,7 +25,6 @@ export type SourceChangeNext = WithNewUser<{
|
|
|
29
25
|
} | {
|
|
30
26
|
brokerageFailed: true;
|
|
31
27
|
paymentMethodInfo: ConnectablePaymentMethodInfo;
|
|
32
|
-
}
|
|
28
|
+
};
|
|
33
29
|
export declare const SourceChangeInfo: ModalStepInfo<FunCheckoutStep.SOURCE_CHANGE>;
|
|
34
30
|
export declare function SourceChange({ modalState, onNext, onClose, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SOURCE_CHANGE>): React.JSX.Element;
|
|
35
|
-
export {};
|
|
@@ -3,7 +3,6 @@ import { type TransferTokenDefault } from '~/hooks/useTokenChain';
|
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type TransferTokenState = CheckoutModalCommonState & {
|
|
5
5
|
transferToken?: TransferTokenDefault;
|
|
6
|
-
newUser?: boolean;
|
|
7
6
|
};
|
|
8
7
|
export type TransferTokenNext = Record<string, never>;
|
|
9
8
|
export interface TokenTransferSourceChainsAndAssets {
|
|
@@ -3,7 +3,6 @@ import { type PaymentMethodVirtualBankInfo } from '~/domains/paymentMethods';
|
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type FiatAccountDetailState = CheckoutModalCommonState & {
|
|
5
5
|
paymentMethodInfo: PaymentMethodVirtualBankInfo;
|
|
6
|
-
newUser?: boolean;
|
|
7
6
|
};
|
|
8
7
|
export type FiatAccountDetailNext = Record<string, never>;
|
|
9
8
|
export declare const AccountDetailsScreen: ({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.FIAT_ACCOUNT_DETAIL>) => React.JSX.Element;
|
|
@@ -8,16 +8,13 @@ import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfi
|
|
|
8
8
|
import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
|
|
9
9
|
import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
|
|
10
10
|
import { type ConfirmationStepNext, type ConfirmationStepState } from './ConfirmationStep/ConfirmationStep';
|
|
11
|
-
import { type ConnectExchangeNext, type ConnectExchangeState } from './ConnectExchange';
|
|
12
11
|
import { type DirectExecutionNotifCenterState } from './DirectExecutionNotifCenter/DirectExecutionNotifCenter';
|
|
13
12
|
import { type InputAmountNext, type InputAmountState } from './InputAmount/InputAmount';
|
|
14
13
|
import { type LoadingAccountNext, type LoadingAccountState } from './LoadingAccount';
|
|
15
14
|
import { type MeldCurrencySelectNext, type MeldCurrencySelectState } from './MeldCurrencySelect/MeldCurrencySelect';
|
|
16
15
|
import { type MeldQuotesNext, type MeldQuotesState } from './MeldQuotes/MeldQuotes';
|
|
17
|
-
import { type MeshVerificationNext, type MeshVerificationState } from './MeshVerification';
|
|
18
16
|
import { type MoonpaySetupNext, type MoonpaySetupState } from './MoonpaySetup';
|
|
19
17
|
import { type SelectAssetNext, type SelectAssetState } from './SelectAsset';
|
|
20
|
-
import { type SelectBrokerageNext, type SelectBrokerageState } from './SelectBrokerage';
|
|
21
18
|
import { type SourceChangeNext, type SourceChangeState } from './SourceChange/SourceChange';
|
|
22
19
|
import { type TransferTokenNext, type TransferTokenState } from './TransferToken/TransferToken';
|
|
23
20
|
import { type FiatAccountDetailNext, type FiatAccountDetailState } from './VirtualFiatAccount/FiatAccountDetail';
|
|
@@ -47,10 +44,7 @@ export declare enum FunCheckoutStep {
|
|
|
47
44
|
SOURCE_CHANGE = "source_change",
|
|
48
45
|
CONFIRMATION = "confirmation",
|
|
49
46
|
MOONPAY_SETUP = "payment_setup",
|
|
50
|
-
SELECT_BROKERAGE = "select_brokerage",
|
|
51
|
-
CONNECT_EXCHANGE = "connect_exchange",
|
|
52
47
|
SELECT_ASSET = "select_asset",
|
|
53
|
-
MESH_VERIFICATION = "mesh_verification",
|
|
54
48
|
CHECKOUT_COMPLETE = "checkout_complete",
|
|
55
49
|
CHECKOUT_HELP = "checkout_help",
|
|
56
50
|
TRANSFER_TOKEN = "transfer_token",
|
|
@@ -91,13 +85,10 @@ type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
91
85
|
[FunCheckoutStep.CHECKOUT_COMPLETE]: CheckoutCompleteState;
|
|
92
86
|
[FunCheckoutStep.CHECKOUT_HELP]: CheckoutHelpState;
|
|
93
87
|
[FunCheckoutStep.CONFIRMATION]: ConfirmationStepState;
|
|
94
|
-
[FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeState;
|
|
95
88
|
[FunCheckoutStep.INPUT_AMOUNT]: InputAmountState;
|
|
96
89
|
[FunCheckoutStep.LOADING_ACCOUNT]: LoadingAccountState;
|
|
97
|
-
[FunCheckoutStep.MESH_VERIFICATION]: MeshVerificationState;
|
|
98
90
|
[FunCheckoutStep.MOONPAY_SETUP]: MoonpaySetupState;
|
|
99
91
|
[FunCheckoutStep.SELECT_ASSET]: SelectAssetState;
|
|
100
|
-
[FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageState;
|
|
101
92
|
[FunCheckoutStep.SOURCE_CHANGE]: SourceChangeState;
|
|
102
93
|
[FunCheckoutStep.TRANSFER_TOKEN]: TransferTokenState;
|
|
103
94
|
[FunCheckoutStep.CREATE_FIAT_ACCOUNT]: VirtualFiatAccountState;
|
|
@@ -117,13 +108,10 @@ type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
117
108
|
[FunCheckoutStep.CHECKOUT_HELP]: null;
|
|
118
109
|
[FunCheckoutStep.CHECKOUT_COMPLETE]: CheckoutCompleteNext;
|
|
119
110
|
[FunCheckoutStep.CONFIRMATION]: ConfirmationStepNext;
|
|
120
|
-
[FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeNext;
|
|
121
111
|
[FunCheckoutStep.INPUT_AMOUNT]: InputAmountNext;
|
|
122
112
|
[FunCheckoutStep.LOADING_ACCOUNT]: LoadingAccountNext;
|
|
123
|
-
[FunCheckoutStep.MESH_VERIFICATION]: MeshVerificationNext;
|
|
124
113
|
[FunCheckoutStep.MOONPAY_SETUP]: MoonpaySetupNext;
|
|
125
114
|
[FunCheckoutStep.SELECT_ASSET]: SelectAssetNext;
|
|
126
|
-
[FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageNext;
|
|
127
115
|
[FunCheckoutStep.SOURCE_CHANGE]: SourceChangeNext;
|
|
128
116
|
[FunCheckoutStep.TRANSFER_TOKEN]: TransferTokenNext;
|
|
129
117
|
[FunCheckoutStep.CREATE_FIAT_ACCOUNT]: VirtualFiatAccountNext;
|
|
@@ -7,9 +7,7 @@ export interface SourceAssetConfirmed {
|
|
|
7
7
|
isQuoteSuccess: boolean;
|
|
8
8
|
maxTargetAssetAmount: number | undefined;
|
|
9
9
|
}
|
|
10
|
-
export declare function preparePaymentMethodInfo(selectedPaymentMethodInfo: PaymentMethodInfo | null
|
|
11
|
-
meshNetworkId: string | undefined;
|
|
12
|
-
} | null): PaymentMethodInfo;
|
|
10
|
+
export declare function preparePaymentMethodInfo(selectedPaymentMethodInfo: PaymentMethodInfo | null): PaymentMethodInfo;
|
|
13
11
|
export declare function fetchSponsorInitialTransferGasLimit(selectedPaymentMethodInfo: PaymentMethodInfo | null, loginType: LoginType, generateCheckoutTransferOpItems: (toAddress: string, tokenAmount: number | string) => Promise<{
|
|
14
12
|
transferOp: Operation | null;
|
|
15
13
|
}>): Promise<number>;
|
|
@@ -35,6 +35,8 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
35
35
|
showReceiveAmountUsd?: boolean;
|
|
36
36
|
/** Custom destination icon and text used in checkout summary */
|
|
37
37
|
destinationConfig?: FunkitUiDestinationConfig;
|
|
38
|
+
/** when source and destination are the same address, show destination as payment method instead of source */
|
|
39
|
+
preferDestinationWhenSame?: boolean;
|
|
38
40
|
};
|
|
39
41
|
inputAmountScreen?: {
|
|
40
42
|
/** Whether to allow entering an amount of tokens, rather than only USD - defaults to true */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { MeshExchangeType } from '~/consts/mesh';
|
|
3
3
|
export interface MeshConnectionInfo {
|
|
4
4
|
accessToken: string;
|
|
5
5
|
accountId: string;
|
|
@@ -8,22 +8,4 @@ export interface MeshConnectionInfo {
|
|
|
8
8
|
export declare function FunkitMeshProvider({ children }: {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}): React.JSX.Element;
|
|
11
|
-
export declare function useFunkitMesh(): {
|
|
12
|
-
getActiveConnection: (brokerType: MeshExchangeType) => MeshConnectionInfo | null;
|
|
13
|
-
getFirstActiveConnection: () => MeshConnectionInfo | null;
|
|
14
|
-
unlinkBrokerage: (brokerType: MeshExchangeType) => Promise<void>;
|
|
15
|
-
};
|
|
16
|
-
interface FunkitMeshHook {
|
|
17
|
-
onBeforeConnect(): void;
|
|
18
|
-
onConnected(connection: MeshConnectionInfo | null): void;
|
|
19
|
-
onMeshModalClose(): void;
|
|
20
|
-
}
|
|
21
11
|
export declare function getMeshDeviceIdFromLocalStorage(): string | null;
|
|
22
|
-
export declare function postTokensToProxyServer(apiKey: string, brokerType: string, accessToken: string, refreshToken: string | null, accessTokenExpiresIn: number, refreshTokenExpiresIn?: number): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* all hooks SHOULD be in object method style
|
|
25
|
-
* capturing the latest value in render.
|
|
26
|
-
* useMeshConnect will return a stable function.
|
|
27
|
-
* */
|
|
28
|
-
export declare function useMeshConnect(hooks: FunkitMeshHook): (brokerType: MeshExchangeType) => Promise<void>;
|
|
29
|
-
export {};
|
|
@@ -2,6 +2,7 @@ import type { AbstractFlags, InferFlagType } from './types';
|
|
|
2
2
|
export interface UserContext {
|
|
3
3
|
apiKey: string;
|
|
4
4
|
userId?: string;
|
|
5
|
+
ipCountry: string | undefined;
|
|
5
6
|
}
|
|
6
7
|
export declare function fetchConfigFromServer<F extends AbstractFlags>(): Promise<F>;
|
|
7
8
|
export declare function deriveAllFlags<T extends AbstractFlags>(config: T, userContext: UserContext): {
|
|
@@ -26,14 +26,15 @@ type Override<T> = {
|
|
|
26
26
|
if_all?: Condition[];
|
|
27
27
|
value: T;
|
|
28
28
|
};
|
|
29
|
+
type ConditionKey = 'userId' | 'apiKey' | 'ipCountry';
|
|
29
30
|
export type Condition = {
|
|
30
31
|
type: 'pctRollout';
|
|
31
|
-
key:
|
|
32
|
+
key: ConditionKey;
|
|
32
33
|
/** whole number from 0 - 100 inclusive */
|
|
33
34
|
pct: number;
|
|
34
35
|
} | {
|
|
35
36
|
type: 'isAnyOf';
|
|
36
|
-
key:
|
|
37
|
+
key: ConditionKey;
|
|
37
38
|
/** non-empty list of API keys */
|
|
38
39
|
values: string[];
|
|
39
40
|
};
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
xdefiWallet
|
|
4
4
|
} from "./chunk-BOU4WKRZ.js";
|
|
5
|
-
import {
|
|
6
|
-
zerionWallet
|
|
7
|
-
} from "./chunk-SULRQO27.js";
|
|
8
5
|
import {
|
|
9
6
|
zealWallet
|
|
10
7
|
} from "./chunk-RNBEDQHF.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
zerionWallet
|
|
10
|
+
} from "./chunk-SULRQO27.js";
|
|
14
11
|
import {
|
|
15
12
|
tahoWallet
|
|
16
13
|
} from "./chunk-ZZZRUXZE.js";
|
|
17
14
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
15
|
+
subWallet
|
|
16
|
+
} from "./chunk-JWFF4AAL.js";
|
|
17
|
+
import {
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-DRO6WYMM.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-2L43XSW3.js";
|
|
@@ -26,60 +26,60 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
trustWallet
|
|
28
28
|
} from "./chunk-VYBAYMP3.js";
|
|
29
|
-
import {
|
|
30
|
-
uniswapWallet
|
|
31
|
-
} from "./chunk-LH7BMNFZ.js";
|
|
32
29
|
import {
|
|
33
30
|
walletConnectWallet
|
|
34
31
|
} from "./chunk-NP5QGWNL.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
uniswapWallet
|
|
34
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
35
|
+
import {
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-362NXNTM.js";
|
|
38
38
|
import {
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
phantomWallet
|
|
46
|
-
} from "./chunk-362NXNTM.js";
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-2KUBG3S6.js";
|
|
47
44
|
import {
|
|
48
45
|
roninWallet
|
|
49
46
|
} from "./chunk-NWIQNBJU.js";
|
|
47
|
+
import {
|
|
48
|
+
ramperWallet
|
|
49
|
+
} from "./chunk-BYXPFMI7.js";
|
|
50
50
|
import {
|
|
51
51
|
safeWallet
|
|
52
52
|
} from "./chunk-BQQQL6UD.js";
|
|
53
|
+
import {
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-RZIO5TFF.js";
|
|
53
56
|
import {
|
|
54
57
|
safepalWallet
|
|
55
58
|
} from "./chunk-NT2HYJKW.js";
|
|
56
|
-
import {
|
|
57
|
-
subWallet
|
|
58
|
-
} from "./chunk-JWFF4AAL.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-2HYNUNAS.js";
|
|
62
59
|
import {
|
|
63
60
|
mewWallet
|
|
64
61
|
} from "./chunk-OL5ZO7E4.js";
|
|
65
62
|
import {
|
|
66
63
|
ledgerWallet
|
|
67
64
|
} from "./chunk-BRBKM4PW.js";
|
|
65
|
+
import {
|
|
66
|
+
kresusWallet
|
|
67
|
+
} from "./chunk-MJXPRJZT.js";
|
|
68
68
|
import {
|
|
69
69
|
oktoWallet
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
|
-
import {
|
|
72
|
-
omniWallet
|
|
73
|
-
} from "./chunk-7CUY5G6R.js";
|
|
74
71
|
import {
|
|
75
72
|
okxWallet
|
|
76
73
|
} from "./chunk-TDIEHTMB.js";
|
|
74
|
+
import {
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-7CUY5G6R.js";
|
|
77
77
|
import {
|
|
78
78
|
oneInchWallet
|
|
79
79
|
} from "./chunk-OESTDX6I.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
oneKeyWallet
|
|
82
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
85
|
} from "./chunk-7QONTUXT.js";
|
|
@@ -99,50 +99,50 @@ import {
|
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-2HYNUNAS.js";
|
|
104
104
|
import {
|
|
105
105
|
bybitWallet
|
|
106
106
|
} from "./chunk-2STUC6QL.js";
|
|
107
107
|
import {
|
|
108
108
|
clvWallet
|
|
109
109
|
} from "./chunk-M3NZ6R2E.js";
|
|
110
|
-
import {
|
|
111
|
-
coin98Wallet
|
|
112
|
-
} from "./chunk-OBOVHCEI.js";
|
|
113
110
|
import {
|
|
114
111
|
coinbaseWallet
|
|
115
112
|
} from "./chunk-H4IRCEZN.js";
|
|
116
113
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-OBOVHCEI.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-HWPKCIBE.js";
|
|
122
119
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-VR4TBQ6S.js";
|
|
125
122
|
import {
|
|
126
123
|
enkryptWallet
|
|
127
124
|
} from "./chunk-OLOIXTYS.js";
|
|
125
|
+
import {
|
|
126
|
+
desigWallet
|
|
127
|
+
} from "./chunk-OPAZMNA7.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
133
|
} from "./chunk-A5N6B5UW.js";
|
|
134
|
-
import {
|
|
135
|
-
bitgetWallet
|
|
136
|
-
} from "./chunk-TDAVGY5F.js";
|
|
137
134
|
import {
|
|
138
135
|
bitskiWallet
|
|
139
136
|
} from "./chunk-HS3C7OQV.js";
|
|
140
137
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
138
|
+
bitgetWallet
|
|
139
|
+
} from "./chunk-TDAVGY5F.js";
|
|
143
140
|
import {
|
|
144
141
|
bitverseWallet
|
|
145
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
+
import {
|
|
144
|
+
bloomWallet
|
|
145
|
+
} from "./chunk-S27IADFU.js";
|
|
146
146
|
import "./chunk-23WIEY36.js";
|
|
147
147
|
import {
|
|
148
148
|
braveWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"ua-parser-js": "^1.0.37",
|
|
90
90
|
"use-debounce": "^10.0.5",
|
|
91
91
|
"uuid": "^9.0.1",
|
|
92
|
-
"@funkit/
|
|
93
|
-
"@funkit/
|
|
92
|
+
"@funkit/api-base": "1.9.11",
|
|
93
|
+
"@funkit/core": "2.3.35",
|
|
94
|
+
"@funkit/wagmi-tools": "3.0.57",
|
|
94
95
|
"@funkit/utils": "1.1.8",
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/wagmi-tools": "3.0.56",
|
|
96
|
+
"@funkit/chains": "0.3.7",
|
|
97
97
|
"@funkit/fun-relay": "0.1.12"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
package/dist/hooks/useMesh.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MeshExchangeType } from '~/consts/mesh';
|
|
2
|
-
import type { FunSelectOption } from '../components/FunSelect/FunSelect';
|
|
3
|
-
import { type MeshConnectionInfo } from '../providers/FunkitMeshProvider';
|
|
4
|
-
export declare const useSupportedExchanges: () => MeshExchangeType[];
|
|
5
|
-
export declare const useMeshExchanges: ({ fullInfo, iconSize, }: {
|
|
6
|
-
fullInfo?: boolean;
|
|
7
|
-
iconSize?: number;
|
|
8
|
-
}) => {
|
|
9
|
-
options: FunSelectOption<MeshExchangeType>[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Fetches mesh-related network information based on the active chain user is logged in on, given an exchange
|
|
13
|
-
* @param exchange The mesh exchange user is currently connected with
|
|
14
|
-
*/
|
|
15
|
-
export declare const useMeshActiveNetworkInfo: (chainId: string | undefined, brokerType: MeshExchangeType | undefined) => {
|
|
16
|
-
meshSupportedTokens: string[];
|
|
17
|
-
meshNetworkId: string | undefined;
|
|
18
|
-
} | null;
|
|
19
|
-
export declare function useMeshAccountHoldings(targetChain: string, connection: MeshConnectionInfo | null): import("@tanstack/react-query").UseQueryResult<import("../domains/wallet").AssetHoldingsMap, Error>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type MeshExchangeType } from '~/consts/mesh';
|
|
3
|
-
import { type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
|
-
export type ConnectExchangeState = CheckoutModalCommonState & {
|
|
6
|
-
brokerType: MeshExchangeType;
|
|
7
|
-
};
|
|
8
|
-
export type ConnectExchangeNext = {
|
|
9
|
-
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
10
|
-
};
|
|
11
|
-
export declare const ConnectExchangeInfo: ModalStepInfo<FunCheckoutStep.CONNECT_EXCHANGE>;
|
|
12
|
-
export declare function ConnectExchange({ modalState, onNext, setModalState, }: ModalStepComponentProps<FunCheckoutStep.CONNECT_EXCHANGE>): React.JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Address } from 'viem';
|
|
3
|
-
import { type MeshExchangeType } from '~/consts/mesh';
|
|
4
|
-
import type { PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
5
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
6
|
-
export type MeshVerificationState = CheckoutModalCommonState & {
|
|
7
|
-
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
8
|
-
isSendingToQr: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type MeshVerificationNext = {
|
|
11
|
-
depositAddress: Address;
|
|
12
|
-
} | {
|
|
13
|
-
depositAddress: null;
|
|
14
|
-
brokerType: MeshExchangeType;
|
|
15
|
-
};
|
|
16
|
-
export declare const MeshVerificationInfo: ModalStepInfo<FunCheckoutStep.MESH_VERIFICATION>;
|
|
17
|
-
export declare function MeshVerification({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.MESH_VERIFICATION>): React.JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MeshExchangeType } from '~/consts/mesh';
|
|
3
|
-
import { type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
|
-
export type SelectBrokerageState = CheckoutModalCommonState;
|
|
6
|
-
export type SelectBrokerageNext = {
|
|
7
|
-
hasActiveConnection: true;
|
|
8
|
-
paymentInfo: PaymentMethodBrokerageInfo;
|
|
9
|
-
} | {
|
|
10
|
-
hasActiveConnection: false;
|
|
11
|
-
brokerType: MeshExchangeType;
|
|
12
|
-
};
|
|
13
|
-
export declare const SelectBrokerageInfo: ModalStepInfo<FunCheckoutStep.SELECT_BROKERAGE>;
|
|
14
|
-
export declare function SelectBrokerage({ onNext, }: ModalStepComponentProps<FunCheckoutStep.SELECT_BROKERAGE>): React.JSX.Element;
|