@funkit/connect 5.5.13-next.0 → 5.5.13-next.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 +33 -0
- package/dist/components/AnimatedDollarValue/AnimatedDollarValue.d.ts +1 -0
- package/dist/components/Dropdown/ChainDropdown.d.ts +3 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +5 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +1 -2
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -2
- package/dist/components/Withdraw/WithdrawContent.d.ts +5 -3
- package/dist/domains/meld.d.ts +19 -0
- package/dist/hooks/queries/useWithdrawalRisk.d.ts +1 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
- package/dist/hooks/useCheckoutTransferInit.d.ts +4 -2
- package/dist/hooks/useTokenChain.d.ts +3 -1
- package/dist/hooks/useTokenTransfer.d.ts +4 -1
- package/dist/hooks/useWithdrawal.d.ts +15 -0
- package/dist/index.js +12316 -12231
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +1 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -0
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +6 -2
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +7 -2
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext.d.ts +3 -2
- package/dist/utils/directExecution.d.ts +2 -4
- package/dist/utils/flags/config.d.ts +8 -12
- package/dist/wallets/walletConnectors/index.js +47 -47
- package/package.json +6 -6
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -24,5 +24,6 @@ interface UsePostCheckoutResult {
|
|
|
24
24
|
postCheckoutError: PostCheckoutError | null;
|
|
25
25
|
postCheckoutStepMessage: string | null;
|
|
26
26
|
}
|
|
27
|
+
export declare function toPostCheckoutError(error: unknown): PostCheckoutError;
|
|
27
28
|
export declare function usePostCheckout({ onSuccess, }: UsePostCheckoutOptions): UsePostCheckoutResult;
|
|
28
29
|
export {};
|
|
@@ -2,7 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
4
4
|
export type LoadingAccountState = CheckoutModalCommonState;
|
|
5
|
-
|
|
5
|
+
type WithNewUser<T> = T & {
|
|
6
|
+
newUser?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type LoadingAccountNext = WithNewUser<{
|
|
6
9
|
usablePaymentMethod: PaymentMethod.ACCOUNT_BALANCE;
|
|
7
10
|
paymentMethodInfo: PaymentMethodAccountInfo;
|
|
8
11
|
} | {
|
|
@@ -15,7 +18,8 @@ export type LoadingAccountNext = {
|
|
|
15
18
|
/** Can be set to null to skip auto payment method selection */
|
|
16
19
|
usablePaymentMethod: null | PaymentMethod.TOKEN_TRANSFER;
|
|
17
20
|
paymentMethodInfo?: ConnectablePaymentMethodInfo;
|
|
18
|
-
}
|
|
21
|
+
}>;
|
|
19
22
|
export declare const LoadingAccountInfo: ModalStepInfo<FunCheckoutStep.LOADING_ACCOUNT>;
|
|
20
23
|
/** A placeholder component to handle redirecting to the checkout history page */
|
|
21
24
|
export declare function LoadingAccount({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.LOADING_ACCOUNT>): React.JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -4,6 +4,7 @@ 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;
|
|
7
8
|
};
|
|
8
9
|
export type SelectAssetNext = {
|
|
9
10
|
paymentMethodInfo?: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
@@ -3,8 +3,12 @@ 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;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
type WithNewUser<T> = T & {
|
|
9
|
+
newUser?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type SourceChangeNext = WithNewUser<{
|
|
8
12
|
connectNew: false;
|
|
9
13
|
paymentMethodInfo: ConnectablePaymentMethodInfo;
|
|
10
14
|
brokerageFailed: false;
|
|
@@ -25,6 +29,7 @@ export type SourceChangeNext = {
|
|
|
25
29
|
} | {
|
|
26
30
|
brokerageFailed: true;
|
|
27
31
|
paymentMethodInfo: ConnectablePaymentMethodInfo;
|
|
28
|
-
}
|
|
32
|
+
}>;
|
|
29
33
|
export declare const SourceChangeInfo: ModalStepInfo<FunCheckoutStep.SOURCE_CHANGE>;
|
|
30
34
|
export declare function SourceChange({ modalState, onNext, onClose, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SOURCE_CHANGE>): React.JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -3,6 +3,7 @@ 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;
|
|
6
7
|
};
|
|
7
8
|
export type TransferTokenNext = Record<string, never>;
|
|
8
9
|
export interface TokenTransferSourceChainsAndAssets {
|
|
@@ -3,6 +3,7 @@ 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;
|
|
6
7
|
};
|
|
7
8
|
export type FiatAccountDetailNext = Record<string, never>;
|
|
8
9
|
export declare const AccountDetailsScreen: ({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.FIAT_ACCOUNT_DETAIL>) => React.JSX.Element;
|
|
@@ -37,6 +37,8 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
37
37
|
checkoutItemTitle: string;
|
|
38
38
|
/** @deprecated use targetAssetAmount **/
|
|
39
39
|
checkoutItemAmount?: number;
|
|
40
|
+
/** amount of source token. it is not baseUnit **/
|
|
41
|
+
withdrawalSourceTokenBalance?: () => number;
|
|
40
42
|
/** *****************************
|
|
41
43
|
* Miscellaneous configurations *
|
|
42
44
|
********************************/
|
|
@@ -59,8 +61,6 @@ export interface FunkitWithdrawalConfig {
|
|
|
59
61
|
sourceChainId: string;
|
|
60
62
|
/** source token id to withdraw **/
|
|
61
63
|
sourceTokenAddress: Address;
|
|
62
|
-
/** amount of source token. it is not baseUnit **/
|
|
63
|
-
sourceTokenBalance: number;
|
|
64
64
|
/** whether to show connected as preferred withdrawal destination*/
|
|
65
65
|
showConnectedWalletAsPreferredRecipient?: boolean;
|
|
66
66
|
/** Wallet instance used to execute the quote */
|
|
@@ -138,6 +138,7 @@ export interface FunkitActiveWithdrawalItem {
|
|
|
138
138
|
id: string;
|
|
139
139
|
/** Final settings the withdrawal was init-ed with **/
|
|
140
140
|
initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>;
|
|
141
|
+
withdrawalSourceTokenBalance: () => number;
|
|
141
142
|
}
|
|
142
143
|
interface FunkitCheckoutContextInterface {
|
|
143
144
|
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { DirectExecution } from '@funkit/api-base';
|
|
2
|
-
export declare function getDirectExecutionUpdatedTimeMs(
|
|
3
|
-
|
|
4
|
-
}): number;
|
|
5
|
-
export declare function getDirectExecutionRunTimeMs(directExecution: DirectExecution): number;
|
|
2
|
+
export declare function getDirectExecutionUpdatedTimeMs(directExecution: DirectExecution): number;
|
|
3
|
+
export declare function getDirectExecutionRunTimeSeconds(directExecution: DirectExecution): number;
|
|
@@ -53,24 +53,12 @@ export declare const flagConfig: {
|
|
|
53
53
|
values: string[];
|
|
54
54
|
}[];
|
|
55
55
|
value: true;
|
|
56
|
-
if_all?: undefined;
|
|
57
56
|
} | {
|
|
58
57
|
if_any: {
|
|
59
58
|
key: "apiKey";
|
|
60
59
|
type: "isAnyOf";
|
|
61
60
|
values: string[];
|
|
62
61
|
}[];
|
|
63
|
-
if_all: ({
|
|
64
|
-
key: "userId";
|
|
65
|
-
type: "pctRollout";
|
|
66
|
-
pct: number;
|
|
67
|
-
values?: undefined;
|
|
68
|
-
} | {
|
|
69
|
-
key: "apiKey";
|
|
70
|
-
type: "isAnyOf";
|
|
71
|
-
values: string[];
|
|
72
|
-
pct?: undefined;
|
|
73
|
-
})[];
|
|
74
62
|
value: true;
|
|
75
63
|
})[];
|
|
76
64
|
};
|
|
@@ -281,6 +269,14 @@ export declare const flagConfig: {
|
|
|
281
269
|
pct: number;
|
|
282
270
|
}[];
|
|
283
271
|
value: true;
|
|
272
|
+
} | {
|
|
273
|
+
if_any: {
|
|
274
|
+
key: "apiKey";
|
|
275
|
+
type: "isAnyOf";
|
|
276
|
+
values: string[];
|
|
277
|
+
}[];
|
|
278
|
+
value: true;
|
|
279
|
+
if_all?: undefined;
|
|
284
280
|
} | {
|
|
285
281
|
if_any: {
|
|
286
282
|
key: "userId";
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zealWallet
|
|
4
|
-
} from "./chunk-JROWU5BP.js";
|
|
5
2
|
import {
|
|
6
3
|
walletConnectWallet
|
|
7
4
|
} from "./chunk-NP5QGWNL.js";
|
|
5
|
+
import {
|
|
6
|
+
zealWallet
|
|
7
|
+
} from "./chunk-JROWU5BP.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-AXWP3GD4.js";
|
|
11
11
|
import {
|
|
12
12
|
subWallet
|
|
13
13
|
} from "./chunk-AD2KIJB6.js";
|
|
14
|
-
import {
|
|
15
|
-
tokenPocketWallet
|
|
16
|
-
} from "./chunk-IDKVN5CF.js";
|
|
17
|
-
import {
|
|
18
|
-
tokenaryWallet
|
|
19
|
-
} from "./chunk-SLOIIJGP.js";
|
|
20
14
|
import {
|
|
21
15
|
tahoWallet
|
|
22
16
|
} from "./chunk-6P2EMPZI.js";
|
|
@@ -24,122 +18,128 @@ import {
|
|
|
24
18
|
talismanWallet
|
|
25
19
|
} from "./chunk-ABFSXBE6.js";
|
|
26
20
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
21
|
+
tokenaryWallet
|
|
22
|
+
} from "./chunk-SLOIIJGP.js";
|
|
23
|
+
import {
|
|
24
|
+
tokenPocketWallet
|
|
25
|
+
} from "./chunk-IDKVN5CF.js";
|
|
29
26
|
import {
|
|
30
27
|
uniswapWallet
|
|
31
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
|
+
import {
|
|
30
|
+
trustWallet
|
|
31
|
+
} from "./chunk-ISIBREBO.js";
|
|
32
32
|
import {
|
|
33
33
|
xdefiWallet
|
|
34
34
|
} from "./chunk-NO7XMBB5.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
rainbowWallet
|
|
40
|
-
} from "./chunk-2UCNRD7H.js";
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-BVX4XGNP.js";
|
|
41
38
|
import {
|
|
42
39
|
phantomWallet
|
|
43
40
|
} from "./chunk-ZSVTX6EK.js";
|
|
44
41
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-2UCNRD7H.js";
|
|
47
44
|
import {
|
|
48
45
|
ramperWallet
|
|
49
46
|
} from "./chunk-PIUNLQJG.js";
|
|
50
47
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-63YLN6R5.js";
|
|
53
50
|
import {
|
|
54
51
|
safeheronWallet
|
|
55
52
|
} from "./chunk-R6RWZRFF.js";
|
|
53
|
+
import {
|
|
54
|
+
safeWallet
|
|
55
|
+
} from "./chunk-BQQQL6UD.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-MSFKSQBY.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-G73C6P5P.js";
|
|
62
59
|
import {
|
|
63
60
|
ledgerWallet
|
|
64
61
|
} from "./chunk-BRBKM4PW.js";
|
|
62
|
+
import {
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-G73C6P5P.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-V57WLZEE.js";
|
|
68
|
+
import {
|
|
69
|
+
oktoWallet
|
|
70
|
+
} from "./chunk-ADIXAKUL.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
73
|
} from "./chunk-4WEHDI4Y.js";
|
|
71
74
|
import {
|
|
72
75
|
omniWallet
|
|
73
76
|
} from "./chunk-7CUY5G6R.js";
|
|
74
|
-
import {
|
|
75
|
-
oktoWallet
|
|
76
|
-
} from "./chunk-ADIXAKUL.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-4AD7VI2P.js";
|
|
83
83
|
import {
|
|
84
84
|
enkryptWallet
|
|
85
85
|
} from "./chunk-SJTXS4ZW.js";
|
|
86
86
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
87
|
+
desigWallet
|
|
88
|
+
} from "./chunk-CTU6JCOK.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
91
|
} from "./chunk-GSOYKKIS.js";
|
|
92
|
-
import {
|
|
93
|
-
frameWallet
|
|
94
|
-
} from "./chunk-ZMYVTWDF.js";
|
|
95
92
|
import {
|
|
96
93
|
imTokenWallet
|
|
97
94
|
} from "./chunk-COZ7MIQS.js";
|
|
95
|
+
import {
|
|
96
|
+
frontierWallet
|
|
97
|
+
} from "./chunk-3S2U24BJ.js";
|
|
98
98
|
import {
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-VCVVV2K7.js";
|
|
101
101
|
import {
|
|
102
102
|
kresusWallet
|
|
103
103
|
} from "./chunk-MJXPRJZT.js";
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-6ONTSPEY.js";
|
|
107
104
|
import {
|
|
108
105
|
coin98Wallet
|
|
109
106
|
} from "./chunk-DTRYS3MO.js";
|
|
110
|
-
import {
|
|
111
|
-
coreWallet
|
|
112
|
-
} from "./chunk-HBA36GW3.js";
|
|
113
107
|
import {
|
|
114
108
|
clvWallet
|
|
115
109
|
} from "./chunk-KR6JBW5E.js";
|
|
116
110
|
import {
|
|
117
111
|
coinbaseWallet
|
|
118
112
|
} from "./chunk-H4IRCEZN.js";
|
|
119
|
-
import {
|
|
120
|
-
desigWallet
|
|
121
|
-
} from "./chunk-CTU6JCOK.js";
|
|
122
113
|
import {
|
|
123
114
|
dawnWallet
|
|
124
115
|
} from "./chunk-LN7OD5EC.js";
|
|
116
|
+
import {
|
|
117
|
+
bybitWallet
|
|
118
|
+
} from "./chunk-6ONTSPEY.js";
|
|
119
|
+
import {
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-HBA36GW3.js";
|
|
125
122
|
import {
|
|
126
123
|
foxWallet
|
|
127
124
|
} from "./chunk-LMZMXEXL.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
frameWallet
|
|
127
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
134
|
-
import {
|
|
135
|
-
bitgetWallet
|
|
136
|
-
} from "./chunk-A5APNTGL.js";
|
|
137
131
|
import {
|
|
138
132
|
bitskiWallet
|
|
139
133
|
} from "./chunk-P74YPRF6.js";
|
|
140
134
|
import {
|
|
141
135
|
bitverseWallet
|
|
142
136
|
} from "./chunk-3HZRRP4Y.js";
|
|
137
|
+
import {
|
|
138
|
+
bifrostWallet
|
|
139
|
+
} from "./chunk-W6N74MS3.js";
|
|
140
|
+
import {
|
|
141
|
+
bitgetWallet
|
|
142
|
+
} from "./chunk-A5APNTGL.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.5.13-next.
|
|
3
|
+
"version": "5.5.13-next.2",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
"ua-parser-js": "^1.0.37",
|
|
89
89
|
"use-debounce": "^10.0.5",
|
|
90
90
|
"uuid": "^9.0.1",
|
|
91
|
-
"@funkit/api-base": "1.9.5-next.
|
|
91
|
+
"@funkit/api-base": "1.9.5-next.1",
|
|
92
92
|
"@funkit/chains": "0.3.2-next.0",
|
|
93
|
-
"@funkit/
|
|
94
|
-
"@funkit/wagmi-tools": "3.0.49-next.
|
|
95
|
-
"@funkit/fun-relay": "0.1.9-next.
|
|
96
|
-
"@funkit/
|
|
93
|
+
"@funkit/utils": "1.1.4-next.0",
|
|
94
|
+
"@funkit/wagmi-tools": "3.0.49-next.1",
|
|
95
|
+
"@funkit/fun-relay": "0.1.9-next.1",
|
|
96
|
+
"@funkit/core": "2.3.27-next.1"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/roninWallet/roninWallet.ts
|
|
11
|
-
var roninWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isRoninInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "ronin.provider"
|
|
17
|
-
});
|
|
18
|
-
return {
|
|
19
|
-
id: "ronin",
|
|
20
|
-
name: "Ronin Wallet",
|
|
21
|
-
iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
|
|
22
|
-
iconBackground: "#ffffff",
|
|
23
|
-
rdns: "com.roninchain.wallet",
|
|
24
|
-
installed: isRoninInjected || void 0,
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
|
|
27
|
-
ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
|
|
28
|
-
mobile: "https://wallet.roninchain.com",
|
|
29
|
-
chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
|
|
30
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
|
|
31
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
|
|
32
|
-
browserExtension: "https://wallet.roninchain.com/",
|
|
33
|
-
qrCode: "https://wallet.roninchain.com/"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
|
|
37
|
-
},
|
|
38
|
-
qrCode: {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.ronin.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.ronin.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.ronin.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.ronin.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.ronin.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.ronin.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.ronin.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.ronin.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.ronin.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.ronin.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.ronin.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.ronin.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
})
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
roninWallet
|
|
92
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var gateWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isGateInjected;
|
|
18
|
-
return {
|
|
19
|
-
id: "gate",
|
|
20
|
-
name: "Gate Wallet",
|
|
21
|
-
rdns: "io.gate.wallet",
|
|
22
|
-
iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
|
|
23
|
-
iconAccent: "#fff",
|
|
24
|
-
iconBackground: "#fff",
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
27
|
-
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
28
|
-
mobile: "https://www.gate.io/mobileapp",
|
|
29
|
-
qrCode: "https://www.gate.io/web3",
|
|
30
|
-
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
31
|
-
browserExtension: "https://www.gate.io/web3"
|
|
32
|
-
},
|
|
33
|
-
mobile: {
|
|
34
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
35
|
-
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
36
|
-
} : void 0
|
|
37
|
-
},
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.gate.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.gate.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.gate.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.gate.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.gate.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.gate.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
gateWallet
|
|
92
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var okxWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isOKXInjected;
|
|
18
|
-
return {
|
|
19
|
-
id: "okx",
|
|
20
|
-
name: "OKX Wallet",
|
|
21
|
-
rdns: "com.okex.wallet",
|
|
22
|
-
iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
|
|
23
|
-
iconAccent: "#000",
|
|
24
|
-
iconBackground: "#000",
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
27
|
-
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
28
|
-
mobile: "https://okx.com/download",
|
|
29
|
-
qrCode: "https://okx.com/download",
|
|
30
|
-
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
31
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
32
|
-
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
33
|
-
browserExtension: "https://okx.com/download"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
-
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
-
} : void 0
|
|
39
|
-
},
|
|
40
|
-
qrCode: shouldUseWalletConnect ? {
|
|
41
|
-
getUri: (uri) => uri,
|
|
42
|
-
instructions: {
|
|
43
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
44
|
-
steps: [
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
47
|
-
step: "install",
|
|
48
|
-
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
52
|
-
step: "create",
|
|
53
|
-
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
57
|
-
step: "scan",
|
|
58
|
-
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
} : void 0,
|
|
63
|
-
extension: {
|
|
64
|
-
instructions: {
|
|
65
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
66
|
-
steps: [
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.okx.extension.step1.description",
|
|
69
|
-
step: "install",
|
|
70
|
-
title: "wallet_connectors.okx.extension.step1.title"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
description: "wallet_connectors.okx.extension.step2.description",
|
|
74
|
-
step: "create",
|
|
75
|
-
title: "wallet_connectors.okx.extension.step2.title"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
description: "wallet_connectors.okx.extension.step3.description",
|
|
79
|
-
step: "refresh",
|
|
80
|
-
title: "wallet_connectors.okx.extension.step3.title"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
-
projectId,
|
|
87
|
-
walletConnectParameters
|
|
88
|
-
}) : getInjectedConnector({ namespace: "okxwallet" })
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
okxWallet
|
|
94
|
-
};
|