@funkit/connect 1.0.22 → 1.0.24
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 +25 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +2 -1
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +2 -0
- package/dist/components/FunkitProvider/FunkitMoonpayProvider.d.ts +20 -0
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +2 -2
- package/dist/consts/funkit.d.ts +3 -0
- package/dist/consts/moonpay.d.ts +3 -0
- package/dist/index.css +12 -0
- package/dist/index.js +748 -519
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/mesh.d.ts +9 -7
- 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 +54 -54
- 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/wallets/walletConnectors/chunk-2B3SPBRY.js +0 -100
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
- package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
- package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +0 -178
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare function categorizeCheckoutHistories(checkoutHistoryList: Checkou
|
|
|
110
110
|
currentDepositAddrMap: CheckoutHistoryDepositAddrMap;
|
|
111
111
|
};
|
|
112
112
|
export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
|
|
113
|
-
export declare function formatTokenAmountForMoonpay(amount: number): string;
|
|
113
|
+
export declare function formatTokenAmountForMoonpay(amount: number, mpCurrencyCode: string): string;
|
|
114
114
|
export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
|
|
115
115
|
chainId: string;
|
|
116
116
|
symbolOrAddress: string;
|
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const FUNKIT_MESH_CLIENT_ID = "
|
|
1
|
+
export declare const FUNKIT_MESH_CLIENT_ID = "8132aff4-56c9-4b1d-85b4-08dbdcc6199d";
|
|
2
|
+
export declare const MESH_DEFAULT_USER_ID = "meshconnectkit";
|
|
2
3
|
export declare enum MeshExchanges {
|
|
3
4
|
Robinhood = "Robinhood",
|
|
4
5
|
ETrade = "ETrade",
|
|
@@ -11,14 +12,13 @@ export declare enum MeshExchanges {
|
|
|
11
12
|
Kraken = "Kraken",
|
|
12
13
|
CoinbasePro = "CoinbasePro",
|
|
13
14
|
CryptoCom = "CryptoCom",
|
|
14
|
-
Binance = "Binance"
|
|
15
|
+
Binance = "Binance",// BinanceInternationalDirect
|
|
16
|
+
BinanceUs = "BinanceUs",
|
|
15
17
|
Gemini = "Gemini",
|
|
16
18
|
OkCoin = "OkCoin",
|
|
17
|
-
Bittrex = "Bittrex",
|
|
18
19
|
KuCoin = "KuCoin",
|
|
19
20
|
Etoro = "Etoro",
|
|
20
21
|
CexIo = "CexIo",
|
|
21
|
-
BinanceInternational = "BinanceInternational",
|
|
22
22
|
Bitstamp = "Bitstamp",
|
|
23
23
|
GateIo = "GateIo",
|
|
24
24
|
Acorns = "Acorns",
|
|
@@ -29,11 +29,13 @@ export declare enum MeshExchanges {
|
|
|
29
29
|
Bitfinex = "Bitfinex",
|
|
30
30
|
KrakenDirect = "KrakenDirect",
|
|
31
31
|
Vanguard = "Vanguard",
|
|
32
|
-
BinanceInternationalDirect = "BinanceInternationalDirect",
|
|
33
32
|
BitfinexDirect = "BitfinexDirect",
|
|
34
33
|
Bybit = "Bybit"
|
|
35
34
|
}
|
|
36
|
-
export declare
|
|
35
|
+
export declare const EXCHANGE_NAME_TO_TYPE: {
|
|
36
|
+
[x: string]: string;
|
|
37
|
+
};
|
|
38
|
+
export declare function fetchMeshLinkToken(funkitUserId: string, selectedExchange: MeshExchanges, funApiKey: string): Promise<any>;
|
|
37
39
|
export declare enum MeshExecuteTransferStatus {
|
|
38
40
|
succeeded = "succeeded",
|
|
39
41
|
failed = "failed",
|
|
@@ -56,7 +58,7 @@ export interface MeshExecuteTransferContent {
|
|
|
56
58
|
errorMessage: string | null;
|
|
57
59
|
executeTransferResult: object | null;
|
|
58
60
|
}
|
|
59
|
-
export declare function executeBrokerageDeposit(fromAuthToken: string,
|
|
61
|
+
export declare function executeBrokerageDeposit(fromAuthToken: string, fromType: string, previewId: string, apiKey: string, mfaCode?: string): Promise<MeshExecuteTransferContent>;
|
|
60
62
|
export declare function fetchMeshAccountCryptoHoldings({ authToken, apiKey, exchange, }: {
|
|
61
63
|
authToken: string;
|
|
62
64
|
apiKey: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6LTLPR2Q.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZNXQ4V6G.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AM4SSLAP.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
gateWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-V45EXW7A.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
gateWallet
|
|
10
10
|
};
|
|
@@ -1,61 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-L734HTUS.js";
|
|
5
|
+
import {
|
|
6
|
+
zerionWallet
|
|
7
|
+
} from "./chunk-7CQPABJG.js";
|
|
2
8
|
import {
|
|
3
9
|
zealWallet
|
|
4
10
|
} from "./chunk-DPXMP5KS.js";
|
|
5
11
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-ZBAQFL6G.js";
|
|
8
14
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
15
|
+
tahoWallet
|
|
16
|
+
} from "./chunk-H76YCX2M.js";
|
|
11
17
|
import {
|
|
12
18
|
talismanWallet
|
|
13
19
|
} from "./chunk-H273OTQA.js";
|
|
14
20
|
import {
|
|
15
21
|
tokenPocketWallet
|
|
16
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2UXZAUWT.js";
|
|
17
23
|
import {
|
|
18
24
|
tokenaryWallet
|
|
19
25
|
} from "./chunk-ENZLEAG2.js";
|
|
20
26
|
import {
|
|
21
27
|
trustWallet
|
|
22
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
23
29
|
import {
|
|
24
30
|
uniswapWallet
|
|
25
31
|
} from "./chunk-XRSY4JVH.js";
|
|
26
|
-
import {
|
|
27
|
-
braveWallet
|
|
28
|
-
} from "./chunk-ABYQAXUX.js";
|
|
29
32
|
import {
|
|
30
33
|
walletConnectWallet
|
|
31
34
|
} from "./chunk-ASPRR7T3.js";
|
|
32
35
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-KGBLSE7L.js";
|
|
38
|
+
import {
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-XPEBP6XV.js";
|
|
35
41
|
import {
|
|
36
42
|
rainbowWallet
|
|
37
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-O5NKWWEG.js";
|
|
38
44
|
import {
|
|
39
45
|
ramperWallet
|
|
40
46
|
} from "./chunk-ZOL6ZMTJ.js";
|
|
41
47
|
import {
|
|
42
48
|
roninWallet
|
|
43
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LVRXH33E.js";
|
|
44
50
|
import {
|
|
45
51
|
safeWallet
|
|
46
52
|
} from "./chunk-D3DCQ72J.js";
|
|
47
53
|
import {
|
|
48
54
|
safepalWallet
|
|
49
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-SYELB4QO.js";
|
|
50
56
|
import {
|
|
51
57
|
safeheronWallet
|
|
52
58
|
} from "./chunk-63NPZXAL.js";
|
|
53
59
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
ledgerWallet
|
|
61
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
56
62
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-3WZRNEZH.js";
|
|
59
65
|
import {
|
|
60
66
|
mewWallet
|
|
61
67
|
} from "./chunk-PWYTDYBE.js";
|
|
@@ -67,7 +73,7 @@ import {
|
|
|
67
73
|
} from "./chunk-SVN7OEQR.js";
|
|
68
74
|
import {
|
|
69
75
|
okxWallet
|
|
70
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-NGXIHASN.js";
|
|
71
77
|
import {
|
|
72
78
|
oneInchWallet
|
|
73
79
|
} from "./chunk-LCPIZUR3.js";
|
|
@@ -75,20 +81,20 @@ import {
|
|
|
75
81
|
oneKeyWallet
|
|
76
82
|
} from "./chunk-4WOV4ITL.js";
|
|
77
83
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import {
|
|
81
|
-
rabbyWallet
|
|
82
|
-
} from "./chunk-XPEBP6XV.js";
|
|
84
|
+
frameWallet
|
|
85
|
+
} from "./chunk-XXFJVY73.js";
|
|
83
86
|
import {
|
|
84
87
|
frontierWallet
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-AM4SSLAP.js";
|
|
89
|
+
import {
|
|
90
|
+
gateWallet
|
|
91
|
+
} from "./chunk-V45EXW7A.js";
|
|
92
|
+
import {
|
|
93
|
+
argentWallet
|
|
94
|
+
} from "./chunk-NZ5G23JP.js";
|
|
86
95
|
import {
|
|
87
96
|
imTokenWallet
|
|
88
97
|
} from "./chunk-5MVV7OVS.js";
|
|
89
|
-
import {
|
|
90
|
-
gateWallet
|
|
91
|
-
} from "./chunk-VSZ7PAHS.js";
|
|
92
98
|
import {
|
|
93
99
|
injectedWallet
|
|
94
100
|
} from "./chunk-KIHCNUU3.js";
|
|
@@ -96,17 +102,17 @@ import {
|
|
|
96
102
|
kresusWallet
|
|
97
103
|
} from "./chunk-X6T3CICZ.js";
|
|
98
104
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
105
|
+
clvWallet
|
|
106
|
+
} from "./chunk-MIWCKFYE.js";
|
|
101
107
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
108
|
+
coin98Wallet
|
|
109
|
+
} from "./chunk-4FQLUQNA.js";
|
|
104
110
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
111
|
+
coinbaseWallet
|
|
112
|
+
} from "./chunk-XBUTWYE4.js";
|
|
107
113
|
import {
|
|
108
114
|
coreWallet
|
|
109
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-JLQ5HJYV.js";
|
|
110
116
|
import {
|
|
111
117
|
dawnWallet
|
|
112
118
|
} from "./chunk-4XQDKOGF.js";
|
|
@@ -118,37 +124,31 @@ import {
|
|
|
118
124
|
} from "./chunk-FLY7F4XA.js";
|
|
119
125
|
import {
|
|
120
126
|
foxWallet
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
bitgetWallet
|
|
124
|
-
} from "./chunk-2B3SPBRY.js";
|
|
125
|
-
import {
|
|
126
|
-
frameWallet
|
|
127
|
-
} from "./chunk-XXFJVY73.js";
|
|
128
|
-
import {
|
|
129
|
-
argentWallet
|
|
130
|
-
} from "./chunk-NZ5G23JP.js";
|
|
127
|
+
} from "./chunk-Q4RLUJJD.js";
|
|
131
128
|
import {
|
|
132
129
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-6LTLPR2Q.js";
|
|
131
|
+
import {
|
|
132
|
+
bitgetWallet
|
|
133
|
+
} from "./chunk-ZNXQ4V6G.js";
|
|
134
134
|
import {
|
|
135
135
|
bitskiWallet
|
|
136
136
|
} from "./chunk-C67TQJ6W.js";
|
|
137
|
+
import {
|
|
138
|
+
bitverseWallet
|
|
139
|
+
} from "./chunk-NL4I7WOT.js";
|
|
137
140
|
import {
|
|
138
141
|
bloomWallet
|
|
139
142
|
} from "./chunk-NTGZF5BY.js";
|
|
140
143
|
import "./chunk-ZOLACFTK.js";
|
|
141
144
|
import {
|
|
142
|
-
|
|
143
|
-
} from "./chunk-
|
|
144
|
-
import {
|
|
145
|
-
clvWallet
|
|
146
|
-
} from "./chunk-T6JVHES7.js";
|
|
145
|
+
braveWallet
|
|
146
|
+
} from "./chunk-ABYQAXUX.js";
|
|
147
147
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import "./chunk-QII6PY2D.js";
|
|
148
|
+
bybitWallet
|
|
149
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
151
150
|
import "./chunk-ZDU3JFGR.js";
|
|
151
|
+
import "./chunk-QII6PY2D.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
154
154
|
bifrostWallet,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-3WZRNEZH.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
okxWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NGXIHASN.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
okxWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-O5NKWWEG.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-2UXZAUWT.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-Z2DGDHHZ.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7CQPABJG.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-QII6PY2D.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@datadog/browser-logs": "^5.12.0",
|
|
76
|
-
"@funkit/core": "^1.0.
|
|
77
|
-
"@funkit/wagmi-tools": "^1.0.
|
|
76
|
+
"@funkit/core": "^1.0.9",
|
|
77
|
+
"@funkit/wagmi-tools": "^1.0.10",
|
|
78
78
|
"@meshconnect/web-link-sdk": "^2.0.1",
|
|
79
79
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
80
80
|
"@privy-io/js-sdk-core": "^0.18.1",
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-QII6PY2D.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
14
|
-
var bitgetWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isBitKeepInjected = hasInjectedProvider({
|
|
19
|
-
namespace: "bitkeep.ethereum",
|
|
20
|
-
flag: "isBitKeep"
|
|
21
|
-
});
|
|
22
|
-
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
23
|
-
return {
|
|
24
|
-
id: "bitget",
|
|
25
|
-
name: "Bitget Wallet",
|
|
26
|
-
iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
|
|
27
|
-
iconAccent: "#f6851a",
|
|
28
|
-
iconBackground: "#fff",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
32
|
-
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
33
|
-
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
34
|
-
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
35
|
-
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
36
|
-
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
37
|
-
},
|
|
38
|
-
extension: {
|
|
39
|
-
instructions: {
|
|
40
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
41
|
-
steps: [
|
|
42
|
-
{
|
|
43
|
-
description: "wallet_connectors.bitget.extension.step1.description",
|
|
44
|
-
step: "install",
|
|
45
|
-
title: "wallet_connectors.bitget.extension.step1.title"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.bitget.extension.step2.description",
|
|
49
|
-
step: "create",
|
|
50
|
-
title: "wallet_connectors.bitget.extension.step2.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.bitget.extension.step3.description",
|
|
54
|
-
step: "refresh",
|
|
55
|
-
title: "wallet_connectors.bitget.extension.step3.description"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
mobile: {
|
|
61
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
62
|
-
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
63
|
-
} : void 0
|
|
64
|
-
},
|
|
65
|
-
qrCode: shouldUseWalletConnect ? {
|
|
66
|
-
getUri: (uri) => uri,
|
|
67
|
-
instructions: {
|
|
68
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
69
|
-
steps: [
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
72
|
-
step: "install",
|
|
73
|
-
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
77
|
-
step: "create",
|
|
78
|
-
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
82
|
-
step: "scan",
|
|
83
|
-
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
} : void 0,
|
|
88
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
89
|
-
projectId,
|
|
90
|
-
walletConnectParameters
|
|
91
|
-
}) : getInjectedConnector({
|
|
92
|
-
namespace: "bitkeep.ethereum",
|
|
93
|
-
flag: "isBitKeep"
|
|
94
|
-
})
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
bitgetWallet
|
|
100
|
-
};
|