@funkit/connect 6.11.0 → 6.12.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 +30 -0
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +5 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +5 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -1
- package/dist/domains/asset.d.ts +4 -0
- package/dist/domains/paymentMethods.d.ts +0 -2
- package/dist/index.js +3411 -4269
- package/dist/providers/FunkitFlagsProvider.d.ts +2 -1
- package/dist/providers/FunkitMoonpayProvider.d.ts +5 -1
- package/dist/utils/flags/config.d.ts +2 -18
- package/dist/utils/flags/impl.d.ts +1 -294
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +13 -2
- package/dist/utils/funLogger.d.ts +1 -3
- package/dist/wallets/walletConnectors/index.js +55 -55
- package/package.json +6 -8
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +0 -1
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +0 -9
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +0 -10
- package/dist/consts/mesh.d.ts +0 -77
- package/dist/providers/FunkitMeshProvider.d.ts +0 -11
- package/dist/utils/mesh.d.ts +0 -24
|
@@ -22,4 +22,5 @@ export declare function FunkitFlagsProvider({ children }: {
|
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
}): React.JSX.Element;
|
|
24
24
|
export declare function useFlags(): FunkitFlagsContextValue;
|
|
25
|
-
export
|
|
25
|
+
export type FlagMiddleware<K extends FlagKey> = (flagValue: FlagValue<K>) => FlagValue<K>;
|
|
26
|
+
export declare function useFlag<K extends FlagKey>(flagKey: K, fallback?: FlagValue<K>, middleware?: FlagMiddleware<K>): FlagValue<K>;
|
|
@@ -6,6 +6,7 @@ export declare function FunkitMoonpayProvider({ children, debug, }: {
|
|
|
6
6
|
export interface UserIpInfoFromMoonpay {
|
|
7
7
|
/** https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
|
|
8
8
|
alpha2: 'AU' | 'CA' | 'US' | string;
|
|
9
|
+
state: string;
|
|
9
10
|
alpha3: string;
|
|
10
11
|
country: string;
|
|
11
12
|
ipAddress: string;
|
|
@@ -15,10 +16,13 @@ export interface UserIpInfoFromMoonpay {
|
|
|
15
16
|
isSellAllowed: boolean;
|
|
16
17
|
isBalanceLedgerWithdrawAllowed: boolean;
|
|
17
18
|
isLowLimitEnabled: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface FunkitUserIpInfo {
|
|
21
|
+
alpha2: string;
|
|
18
22
|
state: string;
|
|
19
23
|
}
|
|
20
24
|
export declare function useFunkitUserIp(): {
|
|
21
25
|
isLoadingGeoCheck: boolean;
|
|
22
26
|
isUserGeoblocked: boolean;
|
|
23
|
-
userIpInfo:
|
|
27
|
+
userIpInfo: FunkitUserIpInfo | undefined;
|
|
24
28
|
};
|
|
@@ -64,7 +64,7 @@ export declare const flagConfig: {
|
|
|
64
64
|
readonly if_any: [{
|
|
65
65
|
readonly key: "apiKey";
|
|
66
66
|
readonly type: "isAnyOf";
|
|
67
|
-
readonly values: ["Z9SZaOwpmE40KX61mUKWm5hrpGh7WHVkaTvQJpQk", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"
|
|
67
|
+
readonly values: ["Z9SZaOwpmE40KX61mUKWm5hrpGh7WHVkaTvQJpQk", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
|
|
68
68
|
}];
|
|
69
69
|
readonly value: true;
|
|
70
70
|
}];
|
|
@@ -206,27 +206,11 @@ export declare const flagConfig: {
|
|
|
206
206
|
readonly values: ["0x6ec0c2f25d323e7779925Cc20c3740101f990d9F", "0xbeFE12aA8cBa36DD79F50eE5E23828adB62f2FD6", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x0D6e43CA32545B3dc2FE6f93AafBD7e640F548d4", "0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x4a1457fa2845bAfE8D3909cA3C5ac6107be312Dd", "0xfCB8B2d294eD7373B3B590dd7C0CBC430d41a9a0", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0xbC805309dde14dFC14f91f7D4Cb9972Ecc915D39", "0xbD31535c457298E0b77AC8EA25DfE3A9BE165cBf", "0xA7B7D4caC72EeE278Af02121E4b2b782A89AD6f9"];
|
|
207
207
|
}];
|
|
208
208
|
readonly value: true;
|
|
209
|
-
}, {
|
|
210
|
-
readonly if_all: [{
|
|
211
|
-
readonly key: "userId";
|
|
212
|
-
readonly type: "pctRollout";
|
|
213
|
-
readonly pct: 50;
|
|
214
|
-
}, {
|
|
215
|
-
readonly key: "apiKey";
|
|
216
|
-
readonly type: "isAnyOf";
|
|
217
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
218
|
-
}];
|
|
219
|
-
readonly if_any: [{
|
|
220
|
-
readonly key: "userId";
|
|
221
|
-
readonly type: "pctRollout";
|
|
222
|
-
readonly pct: 0;
|
|
223
|
-
}];
|
|
224
|
-
readonly value: true;
|
|
225
209
|
}, {
|
|
226
210
|
readonly if_any: [{
|
|
227
211
|
readonly key: "apiKey";
|
|
228
212
|
readonly type: "isAnyOf";
|
|
229
|
-
readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
|
|
213
|
+
readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
230
214
|
}];
|
|
231
215
|
readonly value: true;
|
|
232
216
|
}, {
|
|
@@ -1,303 +1,10 @@
|
|
|
1
|
-
import type { FlagConfig } from './config';
|
|
2
1
|
import type { AbstractFlags, InferFlagType } from './types';
|
|
3
2
|
export interface UserContext {
|
|
4
3
|
apiKey: string;
|
|
5
4
|
userId?: string;
|
|
6
5
|
ipCountry: string | undefined;
|
|
7
6
|
}
|
|
8
|
-
export declare function fetchConfigFromServer<F extends
|
|
9
|
-
readonly supported_exchanges_v2: {
|
|
10
|
-
readonly type: "string";
|
|
11
|
-
readonly default_value: string;
|
|
12
|
-
};
|
|
13
|
-
readonly blocked_countries: {
|
|
14
|
-
readonly type: "string";
|
|
15
|
-
readonly default_value: string;
|
|
16
|
-
readonly overrides: [{
|
|
17
|
-
readonly if_any: [{
|
|
18
|
-
readonly key: "apiKey";
|
|
19
|
-
readonly type: "isAnyOf";
|
|
20
|
-
readonly values: ["m4iHIILHcL4gN8EXCMzGe8zIdhuCXxck49mWajzJ", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e"];
|
|
21
|
-
}];
|
|
22
|
-
readonly value: string;
|
|
23
|
-
}, {
|
|
24
|
-
readonly if_any: [{
|
|
25
|
-
readonly key: "apiKey";
|
|
26
|
-
readonly type: "isAnyOf";
|
|
27
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
28
|
-
}];
|
|
29
|
-
readonly value: "";
|
|
30
|
-
}];
|
|
31
|
-
};
|
|
32
|
-
readonly address_blacklist: {
|
|
33
|
-
readonly type: "string";
|
|
34
|
-
readonly default_value: string;
|
|
35
|
-
};
|
|
36
|
-
readonly show_powered_tagline: {
|
|
37
|
-
readonly type: "boolean";
|
|
38
|
-
readonly default_value: false;
|
|
39
|
-
readonly overrides: [{
|
|
40
|
-
readonly if_any: [{
|
|
41
|
-
readonly key: "apiKey";
|
|
42
|
-
readonly type: "isAnyOf";
|
|
43
|
-
readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
44
|
-
}];
|
|
45
|
-
readonly value: true;
|
|
46
|
-
}];
|
|
47
|
-
};
|
|
48
|
-
readonly enable_token_transfer: {
|
|
49
|
-
readonly type: "boolean";
|
|
50
|
-
readonly default_value: false;
|
|
51
|
-
readonly overrides: [{
|
|
52
|
-
readonly if_any: [{
|
|
53
|
-
readonly key: "apiKey";
|
|
54
|
-
readonly type: "isAnyOf";
|
|
55
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX"];
|
|
56
|
-
}];
|
|
57
|
-
readonly value: true;
|
|
58
|
-
}];
|
|
59
|
-
};
|
|
60
|
-
readonly enable_fiat_deposit: {
|
|
61
|
-
readonly type: "boolean";
|
|
62
|
-
readonly default_value: false;
|
|
63
|
-
readonly overrides: [{
|
|
64
|
-
readonly if_any: [{
|
|
65
|
-
readonly key: "userId";
|
|
66
|
-
readonly type: "isAnyOf";
|
|
67
|
-
readonly values: ["0x6ec0c2f25d323e7779925Cc20c3740101f990d9F", "0xbeFE12aA8cBa36DD79F50eE5E23828adB62f2FD6", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x0D6e43CA32545B3dc2FE6f93AafBD7e640F548d4", "0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x70126A66Ea0f76220Af513365Fea7Db89191aF85", "0x8723E50B5d47714F599Ba02Ee3Db4F5aaF61f9Ad", "0x0682990de7b862979A3cf330a1B088412eCefD43", "0x4B27447b0370371B9e2b25Be6845d7F144CeC899"];
|
|
68
|
-
}];
|
|
69
|
-
readonly value: true;
|
|
70
|
-
}, {
|
|
71
|
-
readonly if_any: [{
|
|
72
|
-
readonly key: "apiKey";
|
|
73
|
-
readonly type: "isAnyOf";
|
|
74
|
-
readonly values: ["Z9SZaOwpmE40KX61mUKWm5hrpGh7WHVkaTvQJpQk", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e"];
|
|
75
|
-
}];
|
|
76
|
-
readonly value: true;
|
|
77
|
-
}];
|
|
78
|
-
};
|
|
79
|
-
readonly token_transfer_source_chains_and_assets: {
|
|
80
|
-
readonly type: "string";
|
|
81
|
-
readonly default_value: string;
|
|
82
|
-
};
|
|
83
|
-
readonly withdrawal_chains_and_assets: {
|
|
84
|
-
readonly type: "string";
|
|
85
|
-
readonly default_value: string;
|
|
86
|
-
};
|
|
87
|
-
readonly enable_token_transfer_universal_deposit_address: {
|
|
88
|
-
readonly type: "boolean";
|
|
89
|
-
readonly default_value: true;
|
|
90
|
-
};
|
|
91
|
-
readonly max_checkout_usd: {
|
|
92
|
-
readonly type: "string";
|
|
93
|
-
readonly default_value: string;
|
|
94
|
-
readonly overrides: [{
|
|
95
|
-
readonly if_any: [{
|
|
96
|
-
readonly key: "userId";
|
|
97
|
-
readonly type: "isAnyOf";
|
|
98
|
-
readonly values: ["0x7b97b46D35a28B561d47F50CFB9a2735E506e59d", "0x409ad08cc6CA757f69Fb80250a424B9eFeB99807"];
|
|
99
|
-
}];
|
|
100
|
-
readonly value: string;
|
|
101
|
-
}];
|
|
102
|
-
};
|
|
103
|
-
readonly enable_frog_proxy_server: {
|
|
104
|
-
readonly type: "boolean";
|
|
105
|
-
readonly default_value: true;
|
|
106
|
-
};
|
|
107
|
-
readonly checkout_time_estimate_overrides: {
|
|
108
|
-
readonly type: "string";
|
|
109
|
-
readonly default_value: "";
|
|
110
|
-
readonly overrides: [{
|
|
111
|
-
readonly if_any: [{
|
|
112
|
-
readonly key: "apiKey";
|
|
113
|
-
readonly type: "isAnyOf";
|
|
114
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
115
|
-
}];
|
|
116
|
-
readonly value: string;
|
|
117
|
-
}];
|
|
118
|
-
};
|
|
119
|
-
readonly token_transfer_default_chain_id: {
|
|
120
|
-
readonly type: "string";
|
|
121
|
-
readonly default_value: string;
|
|
122
|
-
readonly overrides: [{
|
|
123
|
-
readonly if_any: [{
|
|
124
|
-
readonly key: "apiKey";
|
|
125
|
-
readonly type: "isAnyOf";
|
|
126
|
-
readonly values: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
|
|
127
|
-
}];
|
|
128
|
-
readonly value: string;
|
|
129
|
-
}, {
|
|
130
|
-
readonly if_any: [{
|
|
131
|
-
readonly key: "apiKey";
|
|
132
|
-
readonly type: "isAnyOf";
|
|
133
|
-
readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ"];
|
|
134
|
-
}];
|
|
135
|
-
readonly value: string;
|
|
136
|
-
}];
|
|
137
|
-
};
|
|
138
|
-
readonly is_checkout_activated: {
|
|
139
|
-
readonly type: "boolean";
|
|
140
|
-
readonly default_value: true;
|
|
141
|
-
};
|
|
142
|
-
readonly show_info_banner: {
|
|
143
|
-
readonly type: "string";
|
|
144
|
-
readonly default_value: string;
|
|
145
|
-
readonly overrides: [{
|
|
146
|
-
readonly if_any: [{
|
|
147
|
-
readonly key: "apiKey";
|
|
148
|
-
readonly type: "isAnyOf";
|
|
149
|
-
readonly values: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
|
|
150
|
-
}];
|
|
151
|
-
readonly value: string;
|
|
152
|
-
}];
|
|
153
|
-
};
|
|
154
|
-
readonly checkout_notifications_refresh_interval: {
|
|
155
|
-
readonly type: "string";
|
|
156
|
-
readonly default_value: string;
|
|
157
|
-
};
|
|
158
|
-
readonly token_transfer_new_tokens: {
|
|
159
|
-
readonly type: "string";
|
|
160
|
-
readonly default_value: string;
|
|
161
|
-
};
|
|
162
|
-
readonly new_token_asset_selection_banner: {
|
|
163
|
-
readonly type: "string";
|
|
164
|
-
readonly default_value: "";
|
|
165
|
-
};
|
|
166
|
-
readonly is_relay_bypass_enabled: {
|
|
167
|
-
readonly type: "boolean";
|
|
168
|
-
readonly default_value: true;
|
|
169
|
-
};
|
|
170
|
-
readonly relay_bypass_source_chains_and_assets: {
|
|
171
|
-
readonly type: "string";
|
|
172
|
-
readonly default_value: string;
|
|
173
|
-
};
|
|
174
|
-
readonly relay_bypass_target_chains_and_assets: {
|
|
175
|
-
readonly type: "string";
|
|
176
|
-
readonly default_value: string;
|
|
177
|
-
};
|
|
178
|
-
readonly help_tutorial_url: {
|
|
179
|
-
readonly type: "string";
|
|
180
|
-
readonly default_value: "";
|
|
181
|
-
readonly overrides: [];
|
|
182
|
-
};
|
|
183
|
-
readonly enable_card: {
|
|
184
|
-
readonly type: "boolean";
|
|
185
|
-
readonly default_value: true;
|
|
186
|
-
readonly overrides: [{
|
|
187
|
-
readonly if_any: [{
|
|
188
|
-
readonly key: "userId";
|
|
189
|
-
readonly type: "isAnyOf";
|
|
190
|
-
readonly values: ["0x735D82176A8F35a7d63098769C10017b31D74395", "0xa43901c63f7702C407378E55E0d0EB4064a2AE31", "0x6ec0c2f25d323e7779925Cc20c3740101f990d9F", "0xbeFE12aA8cBa36DD79F50eE5E23828adB62f2FD6", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x0D6e43CA32545B3dc2FE6f93AafBD7e640F548d4", "0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0x10678F46609C58e25d48381Ce7D663E2f1Fe39Fc", "0x046Bd992936802dDe82fed9a8Ec64d6AD70DC634", "0x3b023b1D4B01A2f82f0872aB7E0E80eC521C3406", "0x1B465e27E6885Ce804638c8775c315bFdA812913", "0x6FfB6c600c7CACa4F94c8E7B6Fa5350240AA9210"];
|
|
191
|
-
}];
|
|
192
|
-
readonly value: true;
|
|
193
|
-
}, {
|
|
194
|
-
readonly if_any: [{
|
|
195
|
-
readonly key: "apiKey";
|
|
196
|
-
readonly type: "isAnyOf";
|
|
197
|
-
readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
198
|
-
}];
|
|
199
|
-
readonly value: false;
|
|
200
|
-
}];
|
|
201
|
-
};
|
|
202
|
-
readonly enable_brokerage: {
|
|
203
|
-
readonly type: "boolean";
|
|
204
|
-
readonly default_value: false;
|
|
205
|
-
};
|
|
206
|
-
readonly enable_meld_payment: {
|
|
207
|
-
readonly type: "boolean";
|
|
208
|
-
readonly default_value: false;
|
|
209
|
-
readonly overrides: [{
|
|
210
|
-
readonly if_any: [{
|
|
211
|
-
readonly key: "userId";
|
|
212
|
-
readonly type: "isAnyOf";
|
|
213
|
-
readonly values: ["0x6ec0c2f25d323e7779925Cc20c3740101f990d9F", "0xbeFE12aA8cBa36DD79F50eE5E23828adB62f2FD6", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x0D6e43CA32545B3dc2FE6f93AafBD7e640F548d4", "0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x4a1457fa2845bAfE8D3909cA3C5ac6107be312Dd", "0xfCB8B2d294eD7373B3B590dd7C0CBC430d41a9a0", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0xbC805309dde14dFC14f91f7D4Cb9972Ecc915D39", "0xbD31535c457298E0b77AC8EA25DfE3A9BE165cBf", "0xA7B7D4caC72EeE278Af02121E4b2b782A89AD6f9"];
|
|
214
|
-
}];
|
|
215
|
-
readonly value: true;
|
|
216
|
-
}, {
|
|
217
|
-
readonly if_all: [{
|
|
218
|
-
readonly key: "userId";
|
|
219
|
-
readonly type: "pctRollout";
|
|
220
|
-
readonly pct: 50;
|
|
221
|
-
}, {
|
|
222
|
-
readonly key: "apiKey";
|
|
223
|
-
readonly type: "isAnyOf";
|
|
224
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
225
|
-
}];
|
|
226
|
-
readonly if_any: [{
|
|
227
|
-
readonly key: "userId";
|
|
228
|
-
readonly type: "pctRollout";
|
|
229
|
-
readonly pct: 0;
|
|
230
|
-
}];
|
|
231
|
-
readonly value: true;
|
|
232
|
-
}, {
|
|
233
|
-
readonly if_any: [{
|
|
234
|
-
readonly key: "apiKey";
|
|
235
|
-
readonly type: "isAnyOf";
|
|
236
|
-
readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
|
|
237
|
-
}];
|
|
238
|
-
readonly value: true;
|
|
239
|
-
}, {
|
|
240
|
-
readonly if_any: [{
|
|
241
|
-
readonly key: "userId";
|
|
242
|
-
readonly type: "pctRollout";
|
|
243
|
-
readonly pct: 100;
|
|
244
|
-
}];
|
|
245
|
-
readonly value: false;
|
|
246
|
-
}];
|
|
247
|
-
};
|
|
248
|
-
readonly meld_quick_options: {
|
|
249
|
-
readonly type: "string";
|
|
250
|
-
readonly default_value: string;
|
|
251
|
-
};
|
|
252
|
-
readonly min_token_transfer_value: {
|
|
253
|
-
readonly type: "string";
|
|
254
|
-
readonly default_value: string;
|
|
255
|
-
};
|
|
256
|
-
readonly withdrawal_exclude_tokens: {
|
|
257
|
-
readonly type: "string";
|
|
258
|
-
readonly default_value: string;
|
|
259
|
-
};
|
|
260
|
-
readonly withdrawal_exclude_chains: {
|
|
261
|
-
readonly type: "string";
|
|
262
|
-
readonly default_value: string;
|
|
263
|
-
};
|
|
264
|
-
readonly enable_source_navigation_widget: {
|
|
265
|
-
readonly type: "boolean";
|
|
266
|
-
readonly default_value: false;
|
|
267
|
-
};
|
|
268
|
-
readonly token_transfer_default_tokens: {
|
|
269
|
-
readonly type: "string";
|
|
270
|
-
readonly default_value: "";
|
|
271
|
-
readonly overrides: [{
|
|
272
|
-
readonly if_any: [{
|
|
273
|
-
readonly key: "apiKey";
|
|
274
|
-
readonly type: "isAnyOf";
|
|
275
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
276
|
-
}];
|
|
277
|
-
readonly value: string;
|
|
278
|
-
}];
|
|
279
|
-
};
|
|
280
|
-
readonly chain_id_sort_order: {
|
|
281
|
-
readonly type: "string";
|
|
282
|
-
readonly default_value: string;
|
|
283
|
-
};
|
|
284
|
-
readonly enable_bitcoin: {
|
|
285
|
-
readonly type: "boolean";
|
|
286
|
-
readonly default_value: false;
|
|
287
|
-
readonly overrides: [{
|
|
288
|
-
readonly if_any: [{
|
|
289
|
-
readonly key: "userId";
|
|
290
|
-
readonly type: "pctRollout";
|
|
291
|
-
readonly pct: 10;
|
|
292
|
-
}, {
|
|
293
|
-
readonly key: "userId";
|
|
294
|
-
readonly type: "isAnyOf";
|
|
295
|
-
readonly values: ["0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x2e0Fa1cE3F0F6a85542c1E4F941116c0E885292E", "0x28b8848C6c3aaBF4669997563dc07888eb3B0960", "0x9C64fD7d9826E6d552dD8bc53e5C96F7C3F38528", "0xfe5AD22465dc20340bfFb641F4AbbcAA7a1BB2Ed", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0x21b94a3E67c4a72d3D15f478A696c5175f036092", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0x8a5505F1b274d8fC23986AF60Dd3Ca3857095BB8", "0x0B6E49e9D1528F59BaBF3C5337A4c96E987f81aa", "0x84Bc1AC5621d2B44C5D3e3E79b45C2885406026D", "0x0D0377aa9CCA769931821842aB0E1A75e7DD6dD6", "0x7B0195921183f7E04f0D331c1DAF7C1bB208CC4E", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x3c937d73f7FE55b386c309C65087d9F5bdd1a780"];
|
|
296
|
-
}];
|
|
297
|
-
readonly value: true;
|
|
298
|
-
}];
|
|
299
|
-
};
|
|
300
|
-
}>;
|
|
7
|
+
export declare function fetchConfigFromServer<F extends AbstractFlags>(): Promise<F>;
|
|
301
8
|
export declare function deriveAllFlags<T extends AbstractFlags>(config: T, userContext: UserContext): {
|
|
302
9
|
[K in keyof T]?: InferFlagType<T[K]>;
|
|
303
10
|
};
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* TODO: Delete once all customers are using @funkit/connect supporting bitcoin
|
|
3
|
+
*/
|
|
4
|
+
import { type FlagKey } from '@funkit/utils';
|
|
5
|
+
import type { FlagMiddleware } from '~/providers/FunkitFlagsProvider';
|
|
6
|
+
/**
|
|
7
|
+
* Adds {8253038: ["BTC"]} to the newTokens if not already present
|
|
8
|
+
*/
|
|
9
|
+
export declare const addBitcoinToNewTokens: FlagMiddleware<FlagKey.TokenTransferNewTokens>;
|
|
10
|
+
/**
|
|
11
|
+
* Adds {8253038: ["BTC"]} to the sourceChainsAndAssets if not already present
|
|
12
|
+
*/
|
|
13
|
+
export declare const addBitcoinToSourceChainsAndAssets: FlagMiddleware<FlagKey.TokenTransferSourceChainsAndAssets>;
|
|
@@ -6,7 +6,6 @@ declare class FunLogger {
|
|
|
6
6
|
protected userName: string | null;
|
|
7
7
|
protected userLoginType: string | null;
|
|
8
8
|
protected sdkVersion: string | null;
|
|
9
|
-
protected deviceId: string | null;
|
|
10
9
|
constructor();
|
|
11
10
|
private getFunLogEnv;
|
|
12
11
|
private logDataDog;
|
|
@@ -33,8 +32,7 @@ declare class FunLogger {
|
|
|
33
32
|
getUserAddress(): string | null;
|
|
34
33
|
getUserName(): string | null;
|
|
35
34
|
getUserLoginType(): string | null;
|
|
36
|
-
setUserInfo(userId: string, userAddress: string, userName: string, userLoginType: string
|
|
37
|
-
setDeviceId(deviceId: string): void;
|
|
35
|
+
setUserInfo(userId: string, userAddress: string, userName: string, userLoginType: string): void;
|
|
38
36
|
}
|
|
39
37
|
declare const logger: FunLogger;
|
|
40
38
|
export { logger };
|
|
@@ -1,112 +1,112 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
5
|
+
import {
|
|
6
|
+
uniswapWallet
|
|
7
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
5
8
|
import {
|
|
6
9
|
zerionWallet
|
|
7
10
|
} from "./chunk-Q3H3TRBS.js";
|
|
8
|
-
import {
|
|
9
|
-
zealWallet
|
|
10
|
-
} from "./chunk-RNBEDQHF.js";
|
|
11
11
|
import {
|
|
12
12
|
tahoWallet
|
|
13
13
|
} from "./chunk-ZZZRUXZE.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
safeWallet
|
|
16
|
+
} from "./chunk-BQQQL6UD.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-DRO6WYMM.js";
|
|
20
|
-
import {
|
|
21
|
-
trustWallet
|
|
22
|
-
} from "./chunk-RKPCWHXL.js";
|
|
23
20
|
import {
|
|
24
21
|
tokenPocketWallet
|
|
25
22
|
} from "./chunk-J3LI3FYZ.js";
|
|
26
|
-
import {
|
|
27
|
-
uniswapWallet
|
|
28
|
-
} from "./chunk-LH7BMNFZ.js";
|
|
29
23
|
import {
|
|
30
24
|
tokenaryWallet
|
|
31
25
|
} from "./chunk-D6AOOO5F.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-RKPCWHXL.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
zealWallet
|
|
31
|
+
} from "./chunk-RNBEDQHF.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
walletConnectWallet
|
|
34
|
+
} from "./chunk-NP5QGWNL.js";
|
|
41
35
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-362NXNTM.js";
|
|
44
38
|
import {
|
|
45
39
|
rabbyWallet
|
|
46
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
|
+
import {
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-3CICVJUN.js";
|
|
44
|
+
import {
|
|
45
|
+
ramperWallet
|
|
46
|
+
} from "./chunk-BYXPFMI7.js";
|
|
47
47
|
import {
|
|
48
48
|
roninWallet
|
|
49
49
|
} from "./chunk-QLVVUKYB.js";
|
|
50
|
+
import {
|
|
51
|
+
safepalWallet
|
|
52
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
50
53
|
import {
|
|
51
54
|
safeheronWallet
|
|
52
55
|
} from "./chunk-RZIO5TFF.js";
|
|
53
56
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
oktoWallet
|
|
61
|
+
} from "./chunk-ADIXAKUL.js";
|
|
59
62
|
import {
|
|
60
63
|
ledgerWallet
|
|
61
64
|
} from "./chunk-BRBKM4PW.js";
|
|
62
65
|
import {
|
|
63
66
|
metaMaskWallet
|
|
64
67
|
} from "./chunk-UYGJO62F.js";
|
|
65
|
-
import {
|
|
66
|
-
mewWallet
|
|
67
|
-
} from "./chunk-OL5ZO7E4.js";
|
|
68
68
|
import {
|
|
69
69
|
okxWallet
|
|
70
70
|
} from "./chunk-AFXHGWBH.js";
|
|
71
71
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import {
|
|
75
|
-
oktoWallet
|
|
76
|
-
} from "./chunk-ADIXAKUL.js";
|
|
72
|
+
mewWallet
|
|
73
|
+
} from "./chunk-OL5ZO7E4.js";
|
|
77
74
|
import {
|
|
78
75
|
oneInchWallet
|
|
79
76
|
} from "./chunk-OESTDX6I.js";
|
|
80
77
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import {
|
|
84
|
-
enkryptWallet
|
|
85
|
-
} from "./chunk-OLOIXTYS.js";
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
86
80
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
81
|
+
omniWallet
|
|
82
|
+
} from "./chunk-7CUY5G6R.js";
|
|
89
83
|
import {
|
|
90
84
|
frameWallet
|
|
91
85
|
} from "./chunk-IFON7E6U.js";
|
|
86
|
+
import {
|
|
87
|
+
foxWallet
|
|
88
|
+
} from "./chunk-CNPKISHN.js";
|
|
89
|
+
import {
|
|
90
|
+
imTokenWallet
|
|
91
|
+
} from "./chunk-COZ7MIQS.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
94
|
} from "./chunk-CJGUM55H.js";
|
|
95
|
+
import {
|
|
96
|
+
frontierWallet
|
|
97
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
95
98
|
import {
|
|
96
99
|
kresusWallet
|
|
97
100
|
} from "./chunk-MJXPRJZT.js";
|
|
98
|
-
import {
|
|
99
|
-
imTokenWallet
|
|
100
|
-
} from "./chunk-COZ7MIQS.js";
|
|
101
101
|
import {
|
|
102
102
|
injectedWallet
|
|
103
103
|
} from "./chunk-XWUJE7MW.js";
|
|
104
|
-
import {
|
|
105
|
-
braveWallet
|
|
106
|
-
} from "./chunk-BPZ2XJO2.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
106
|
} from "./chunk-2GJQ4XZQ.js";
|
|
107
|
+
import {
|
|
108
|
+
braveWallet
|
|
109
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-KIDC67XJ.js";
|
|
@@ -114,32 +114,32 @@ import {
|
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-H4IRCEZN.js";
|
|
116
116
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
117
|
+
dawnWallet
|
|
118
|
+
} from "./chunk-HWPKCIBE.js";
|
|
119
119
|
import {
|
|
120
120
|
desigWallet
|
|
121
121
|
} from "./chunk-OPAZMNA7.js";
|
|
122
122
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
123
|
+
coreWallet
|
|
124
|
+
} from "./chunk-JCHN6A47.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-OLOIXTYS.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
133
|
} from "./chunk-UIASLGLV.js";
|
|
134
|
+
import {
|
|
135
|
+
bitverseWallet
|
|
136
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
134
137
|
import {
|
|
135
138
|
bitgetWallet
|
|
136
139
|
} from "./chunk-5W7VDOCL.js";
|
|
137
140
|
import {
|
|
138
141
|
bitskiWallet
|
|
139
142
|
} from "./chunk-HS3C7OQV.js";
|
|
140
|
-
import {
|
|
141
|
-
bitverseWallet
|
|
142
|
-
} from "./chunk-3HZRRP4Y.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": "6.
|
|
3
|
+
"version": "6.12.2",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@aws-sdk/client-cloudfront": "3.858.0",
|
|
48
48
|
"@aws-sdk/client-s3": "3.840.0",
|
|
49
49
|
"@chromatic-com/storybook": "^4.1.1",
|
|
50
|
-
"@meshconnect/node-api": "2.0.23",
|
|
51
50
|
"@storybook/addon-docs": "^9.1.3",
|
|
52
51
|
"@storybook/addon-links": "^9.1.3",
|
|
53
52
|
"@storybook/react-vite": "^9.1.3",
|
|
@@ -75,7 +74,6 @@
|
|
|
75
74
|
},
|
|
76
75
|
"dependencies": {
|
|
77
76
|
"@datadog/browser-logs": "5.22.0",
|
|
78
|
-
"@meshconnect/web-link-sdk": "2.1.1",
|
|
79
77
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
80
78
|
"@number-flow/react": "^0.5.5",
|
|
81
79
|
"@privy-io/js-sdk-core": "^0.21.0",
|
|
@@ -94,12 +92,12 @@
|
|
|
94
92
|
"ua-parser-js": "^1.0.37",
|
|
95
93
|
"use-debounce": "^10.0.5",
|
|
96
94
|
"uuid": "^9.0.1",
|
|
97
|
-
"@funkit/api-base": "1.12.
|
|
98
|
-
"@funkit/core": "2.3.
|
|
99
|
-
"@funkit/
|
|
95
|
+
"@funkit/api-base": "1.12.1",
|
|
96
|
+
"@funkit/core": "2.3.46",
|
|
97
|
+
"@funkit/utils": "1.1.9",
|
|
100
98
|
"@funkit/fun-relay": "2.0.2",
|
|
101
|
-
"@funkit/
|
|
102
|
-
"@funkit/wagmi-tools": "3.0.
|
|
99
|
+
"@funkit/chains": "0.4.0",
|
|
100
|
+
"@funkit/wagmi-tools": "3.0.68"
|
|
103
101
|
},
|
|
104
102
|
"repository": {
|
|
105
103
|
"type": "git",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const brokerageItemStyle: string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface BrokerateItemProps {
|
|
3
|
-
exchangeName: string;
|
|
4
|
-
exchangeIcon: React.ReactNode;
|
|
5
|
-
fullInfo: boolean;
|
|
6
|
-
hasActiveConnection: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const FunBrokerageItem: ({ exchangeName, exchangeIcon, fullInfo, hasActiveConnection, }: BrokerateItemProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MeshExchangeType } from '~/consts/mesh';
|
|
3
|
-
import type { FunSelectOption } from '../FunSelect/FunSelect';
|
|
4
|
-
interface FunSelectBrokerageProps {
|
|
5
|
-
onSelect: (value: MeshExchangeType) => void;
|
|
6
|
-
options: FunSelectOption<MeshExchangeType>[];
|
|
7
|
-
selectedValue: FunSelectOption['value'];
|
|
8
|
-
}
|
|
9
|
-
export declare function FunSelectBrokerage({ onSelect, options, selectedValue, }: FunSelectBrokerageProps): React.JSX.Element;
|
|
10
|
-
export {};
|