@funkit/connect 1.0.4 → 1.0.6
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 +42 -0
- package/dist/components/Box/Box.d.ts +7 -7
- package/dist/components/ConnectButton/ConnectButton.d.ts +3 -1
- package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +3 -2
- package/dist/components/FunBadge/FunBadge.d.ts +4 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +1 -2
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -1
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +1 -1
- package/dist/components/FunDivider/FunDivider.d.ts +2 -1
- package/dist/components/FunDot/FunDot.d.ts +2 -0
- package/dist/components/FunNotification/FunNotification.d.ts +2 -2
- package/dist/components/FunSelect/FunSelect.d.ts +1 -0
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +2 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +16 -16
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +22 -3
- package/dist/components/FunkitProvider/FunkitMeshProvider.d.ts +20 -0
- package/dist/components/FunkitProvider/ModalContext.d.ts +1 -1
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/consts/quote.d.ts +13 -0
- package/dist/css/sprinkles.css.d.ts +7 -7
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +7 -0
- package/dist/hooks/useCheckoutType.d.ts +4 -2
- package/dist/hooks/useFunListeners.d.ts +1 -1
- package/dist/index.css +1380 -1340
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2833 -2290
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/checkoutFees.d.ts +27 -0
- package/dist/utils/formatNumber.d.ts +1 -0
- package/dist/utils/formatTimestamp.d.ts +11 -0
- package/dist/utils/mesh.d.ts +1 -0
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +2 -1
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +80 -80
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.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/dist/zetachain-WXXDOYLF.js +6 -0
- package/package.json +3 -3
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-2XQJ2NQ4.js +0 -178
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
- package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
- 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-OKZSWAPF.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-RYO26XSK.js +0 -100
- 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-Z2HIQYVN.js +0 -96
- package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-2UXZAUWT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XRMAVTK7.js → chunk-3WZRNEZH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-6LTLPR2Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-7CQPABJG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-AM4SSLAP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-NGXIHASN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-O5NKWWEG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-V45EXW7A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-Z2DGDHHZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2B3SPBRY.js → chunk-ZNXQ4V6G.js} +3 -3
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const DUMMY_TRANSFER_PARAMS: {
|
|
|
13
13
|
* @param config - The checkout configuration to validate.
|
|
14
14
|
* @returns An object indicating whether the configuration is valid and a message if it is not.
|
|
15
15
|
*/
|
|
16
|
-
export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig
|
|
16
|
+
export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>, isUserLoggedIn: boolean): {
|
|
17
17
|
isValid: boolean;
|
|
18
18
|
message: string;
|
|
19
19
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface NetworkFeesUsdBreakdownItem {
|
|
2
|
+
networkFeesUsdFromFun: number;
|
|
3
|
+
networkFeesUsdFromMoonpay: number;
|
|
4
|
+
networkFeesUsdFromMesh: number;
|
|
5
|
+
networkFeesUsdFromEoaGas: number;
|
|
6
|
+
}
|
|
7
|
+
interface PlatformFeesUsdBreakdownItem {
|
|
8
|
+
platformFeesUsdFromFun: number;
|
|
9
|
+
platformFeesUsdFromMoonpay: number;
|
|
10
|
+
platformFeesUsdFromMesh: number;
|
|
11
|
+
}
|
|
12
|
+
export interface CheckoutFeesBreakdownItem {
|
|
13
|
+
/** Network fees incurred from Fun.xyz and 3rd party providers in USD **/
|
|
14
|
+
networkFeesUsd: number;
|
|
15
|
+
/** Breakdown of network fees in USD. Mainly used for logging. **/
|
|
16
|
+
networkFeesUsdBreakdown: NetworkFeesUsdBreakdownItem;
|
|
17
|
+
/** Platform fees incurred from Fun.xyz and 3rd party providers in USD **/
|
|
18
|
+
platformFeesUsd: number;
|
|
19
|
+
/** Breakdown of platform fees in USD. Mainly used for logging. **/
|
|
20
|
+
platformFeesUsdBreakdown: PlatformFeesUsdBreakdownItem;
|
|
21
|
+
/** Sum of networkFeesUsd and platformFeesUsd **/
|
|
22
|
+
totalFeesUsd: number;
|
|
23
|
+
/** Fees incurred in the form of payment token amount (non-base unit) **/
|
|
24
|
+
additionalFeesTokenAmount: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const GAS_ESTIMATE_MULTIPLER = 1.2;
|
|
27
|
+
export {};
|
|
@@ -50,5 +50,6 @@ platform?: string,
|
|
|
50
50
|
useCurrencyAbbreviation?: boolean,
|
|
51
51
|
/** Used to format the number, can be used to customize decimal truncation etc. **/
|
|
52
52
|
options?: FormatNumberOptions): string;
|
|
53
|
+
export declare function parseInputToNumber(input: string | number | undefined): number;
|
|
53
54
|
export declare function roundUpTo5DecimalPlaces(inputNumber: string): string;
|
|
54
55
|
export {};
|
|
@@ -1 +1,12 @@
|
|
|
1
1
|
export declare function formatTimestamp(date: Date, shortened?: boolean): string;
|
|
2
|
+
/**
|
|
3
|
+
* Formats seconds to mins and seconds string
|
|
4
|
+
* - seconds = 10, output = '10s'
|
|
5
|
+
* - seconds = 20.3, output = '21s'
|
|
6
|
+
* - seconds = 20.3, specifyUnderMinute=true, output = '< 1min'
|
|
7
|
+
* - seconds = 60, output = '1min'
|
|
8
|
+
* - seconds = 61, output = '1min 1s'
|
|
9
|
+
* - seconds = 300, output = '5mins'
|
|
10
|
+
* - seconds = 320, output = '5mins 20s'
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatSecondsToReadableForm(seconds: number, specifyUnderMinute?: boolean): string;
|
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-6LTLPR2Q.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.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-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-ZNXQ4V6G.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-AM4SSLAP.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -17,7 +17,8 @@ var FROM_PROGRESS_CHECKOUT_STATES = [
|
|
|
17
17
|
var TO_PROGRESS_CHECKOUT_STATES = [
|
|
18
18
|
CheckoutState.TO_UNFUNDED,
|
|
19
19
|
CheckoutState.TO_FUNDED,
|
|
20
|
-
CheckoutState.TO_POOLED
|
|
20
|
+
CheckoutState.TO_POOLED,
|
|
21
|
+
CheckoutState.TO_READY
|
|
21
22
|
];
|
|
22
23
|
var IN_PROGRESS_CHECKOUT_STATES = [
|
|
23
24
|
...TO_PROGRESS_CHECKOUT_STATES,
|
|
@@ -1,153 +1,153 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-L734HTUS.js";
|
|
5
2
|
import {
|
|
6
3
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7CQPABJG.js";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
omniWallet
|
|
7
|
+
} from "./chunk-SVN7OEQR.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
uniswapWallet
|
|
10
|
+
} from "./chunk-XRSY4JVH.js";
|
|
14
11
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
safepalWallet
|
|
13
|
+
} from "./chunk-SYELB4QO.js";
|
|
17
14
|
import {
|
|
18
15
|
talismanWallet
|
|
19
16
|
} from "./chunk-H273OTQA.js";
|
|
20
17
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
18
|
+
tokenPocketWallet
|
|
19
|
+
} from "./chunk-2UXZAUWT.js";
|
|
23
20
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
tokenaryWallet
|
|
22
|
+
} from "./chunk-ENZLEAG2.js";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
trustWallet
|
|
25
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
xdefiWallet
|
|
28
|
+
} from "./chunk-L734HTUS.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
30
|
+
walletConnectWallet
|
|
31
|
+
} from "./chunk-ASPRR7T3.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-DPXMP5KS.js";
|
|
38
35
|
import {
|
|
39
36
|
rabbyWallet
|
|
40
37
|
} from "./chunk-XPEBP6XV.js";
|
|
38
|
+
import {
|
|
39
|
+
rainbowWallet
|
|
40
|
+
} from "./chunk-O5NKWWEG.js";
|
|
41
41
|
import {
|
|
42
42
|
ramperWallet
|
|
43
43
|
} from "./chunk-ZOL6ZMTJ.js";
|
|
44
44
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
45
|
+
safeWallet
|
|
46
|
+
} from "./chunk-D3DCQ72J.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
safeheronWallet
|
|
49
|
+
} from "./chunk-63NPZXAL.js";
|
|
50
50
|
import {
|
|
51
51
|
roninWallet
|
|
52
52
|
} from "./chunk-LVRXH33E.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
subWallet
|
|
55
|
+
} from "./chunk-ZBAQFL6G.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
tahoWallet
|
|
58
|
+
} from "./chunk-H76YCX2M.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
62
|
+
import {
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-3WZRNEZH.js";
|
|
62
65
|
import {
|
|
63
66
|
mewWallet
|
|
64
67
|
} from "./chunk-PWYTDYBE.js";
|
|
65
68
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
oneKeyWallet
|
|
70
|
-
} from "./chunk-4WOV4ITL.js";
|
|
69
|
+
oktoWallet
|
|
70
|
+
} from "./chunk-WKHTUEF5.js";
|
|
71
71
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
72
|
+
okxWallet
|
|
73
|
+
} from "./chunk-NGXIHASN.js";
|
|
74
74
|
import {
|
|
75
75
|
oneInchWallet
|
|
76
76
|
} from "./chunk-LCPIZUR3.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-4WOV4ITL.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-KGBLSE7L.js";
|
|
83
83
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-Q4RLUJJD.js";
|
|
86
|
+
import {
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-XXFJVY73.js";
|
|
86
89
|
import {
|
|
87
90
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-AM4SSLAP.js";
|
|
89
92
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-V45EXW7A.js";
|
|
92
95
|
import {
|
|
93
96
|
imTokenWallet
|
|
94
97
|
} from "./chunk-5MVV7OVS.js";
|
|
98
|
+
import {
|
|
99
|
+
injectedWallet
|
|
100
|
+
} from "./chunk-KIHCNUU3.js";
|
|
95
101
|
import {
|
|
96
102
|
kresusWallet
|
|
97
103
|
} from "./chunk-X6T3CICZ.js";
|
|
98
104
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
gateWallet
|
|
103
|
-
} from "./chunk-HXYRONSJ.js";
|
|
104
|
-
import {
|
|
105
|
-
coreWallet
|
|
106
|
-
} from "./chunk-JLQ5HJYV.js";
|
|
107
|
-
import {
|
|
108
|
-
bitskiWallet
|
|
109
|
-
} from "./chunk-C67TQJ6W.js";
|
|
110
|
-
import {
|
|
111
|
-
bitverseWallet
|
|
112
|
-
} from "./chunk-NL4I7WOT.js";
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
113
107
|
import {
|
|
114
108
|
clvWallet
|
|
115
109
|
} from "./chunk-MIWCKFYE.js";
|
|
116
110
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
111
|
+
coin98Wallet
|
|
112
|
+
} from "./chunk-4FQLUQNA.js";
|
|
119
113
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-XBUTWYE4.js";
|
|
116
|
+
import {
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-JLQ5HJYV.js";
|
|
122
119
|
import {
|
|
123
120
|
dawnWallet
|
|
124
121
|
} from "./chunk-4XQDKOGF.js";
|
|
125
122
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-P4JLZ42R.js";
|
|
125
|
+
import {
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-FLY7F4XA.js";
|
|
128
128
|
import {
|
|
129
129
|
bifrostWallet
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-6LTLPR2Q.js";
|
|
131
131
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-NZ5G23JP.js";
|
|
134
134
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
135
|
+
bitskiWallet
|
|
136
|
+
} from "./chunk-C67TQJ6W.js";
|
|
137
137
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
138
|
+
bitgetWallet
|
|
139
|
+
} from "./chunk-ZNXQ4V6G.js";
|
|
140
140
|
import {
|
|
141
141
|
bloomWallet
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-NTGZF5BY.js";
|
|
143
|
+
import "./chunk-ZOLACFTK.js";
|
|
143
144
|
import {
|
|
144
|
-
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
bitverseWallet
|
|
146
|
+
} from "./chunk-NL4I7WOT.js";
|
|
146
147
|
import "./chunk-ZDU3JFGR.js";
|
|
147
148
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import "./chunk-ZOLACFTK.js";
|
|
149
|
+
braveWallet
|
|
150
|
+
} from "./chunk-ABYQAXUX.js";
|
|
151
151
|
import "./chunk-QII6PY2D.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-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-3WZRNEZH.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.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-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-O5NKWWEG.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-2UXZAUWT.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-Z2DGDHHZ.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-7CQPABJG.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/components/FunkitProvider/chainIcons/zetachain.svg
|
|
3
|
+
var zetachain_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDE3OCAxNzgiPjxjaXJjbGUgY3g9Ijg5IiBjeT0iODkiIHI9Ijg5IiBmaWxsPSIjMDA1NzQxIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTExMi4xMDkgMTA4LjY3M3YxMi4wMkg2Mi41MjNjLjY4NC03LjkxMSAzLjIzNi0xMy40NzcgMTIuMDY0LTIxLjMwNGwzNy41MjItMzIuMDF2MjguMDloMTMuNTA3VjQzLjc5SDQ4LjgxM3YyNS43Nkg2Mi4zMlY1Ny4yOTdoNDAuODAzTDY1Ljc4NCA4OS4xNjNsLS4wODkuMDg1Yy0xNS42NDggMTMuODU0LTE2Ljg5MiAyNS4wMzYtMTYuODkyIDM4LjIxMXY2Ljc1MWg3Ni44MTh2LTI1LjUyN2gtMTMuNTA3eiIvPjwvc3ZnPg==";
|
|
4
|
+
export {
|
|
5
|
+
zetachain_default as default
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
"@types/ua-parser-js": "^0.7.39"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
+
"@funkit/wagmi-tools": "^1.0.4",
|
|
76
|
+
"@funkit/core": "^1.0.3",
|
|
75
77
|
"@vanilla-extract/css": "1.14.0",
|
|
76
78
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
77
79
|
"@vanilla-extract/sprinkles": "1.6.1",
|
|
@@ -80,8 +82,6 @@
|
|
|
80
82
|
"react-remove-scroll": "2.5.7",
|
|
81
83
|
"ua-parser-js": "^1.0.37",
|
|
82
84
|
"@tanstack/react-query": "^5.28.8",
|
|
83
|
-
"@funkit/wagmi-tools": "^1.0.2",
|
|
84
|
-
"@funkit/core": "^1.0.1",
|
|
85
85
|
"@datadog/browser-logs": "^5.12.0",
|
|
86
86
|
"@privy-io/js-sdk-core": "^0.14.0",
|
|
87
87
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-QII6PY2D.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
|
-
var subWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
16
|
-
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
17
|
-
const getUriMobile = (uri) => {
|
|
18
|
-
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
-
};
|
|
20
|
-
const getUriQR = (uri) => {
|
|
21
|
-
return uri;
|
|
22
|
-
};
|
|
23
|
-
const mobileConnector = {
|
|
24
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
25
|
-
};
|
|
26
|
-
let qrConnector = void 0;
|
|
27
|
-
if (shouldUseWalletConnect) {
|
|
28
|
-
qrConnector = {
|
|
29
|
-
getUri: getUriQR,
|
|
30
|
-
instructions: {
|
|
31
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
32
|
-
steps: [
|
|
33
|
-
{
|
|
34
|
-
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
35
|
-
step: "install",
|
|
36
|
-
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
40
|
-
step: "create",
|
|
41
|
-
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
45
|
-
step: "scan",
|
|
46
|
-
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
const extensionConnector = {
|
|
53
|
-
instructions: {
|
|
54
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
55
|
-
steps: [
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
58
|
-
step: "install",
|
|
59
|
-
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
63
|
-
step: "create",
|
|
64
|
-
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
68
|
-
step: "refresh",
|
|
69
|
-
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
id: "subwallet",
|
|
76
|
-
name: "SubWallet",
|
|
77
|
-
iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
|
|
78
|
-
iconBackground: "#fff",
|
|
79
|
-
installed: isSubWalletInjected || void 0,
|
|
80
|
-
downloadUrls: {
|
|
81
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
82
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
83
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
84
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
85
|
-
mobile: "https://www.subwallet.app/download",
|
|
86
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
87
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
88
|
-
qrCode: "https://www.subwallet.app/download"
|
|
89
|
-
},
|
|
90
|
-
mobile: mobileConnector,
|
|
91
|
-
qrCode: qrConnector,
|
|
92
|
-
extension: extensionConnector,
|
|
93
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
94
|
-
projectId,
|
|
95
|
-
walletConnectParameters
|
|
96
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
subWallet
|
|
102
|
-
};
|