@funkit/connect 6.10.0 → 6.12.0

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +5 -1
  3. package/dist/components/Dropdown/TokenDropdown.d.ts +5 -1
  4. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -1
  5. package/dist/domains/asset.d.ts +4 -0
  6. package/dist/domains/paymentMethods.d.ts +0 -2
  7. package/dist/hooks/useFiatExchangeRates.d.ts +5 -0
  8. package/dist/index.css +4 -4
  9. package/dist/index.js +3520 -4275
  10. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +4 -1
  11. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +9 -1
  12. package/dist/providers/FunkitFlagsProvider.d.ts +2 -1
  13. package/dist/utils/flags/config.d.ts +13 -1
  14. package/dist/utils/flags/impl.d.ts +1 -282
  15. package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +13 -2
  16. package/dist/utils/funLogger.d.ts +1 -3
  17. package/dist/utils/getExchangeRate.d.ts +4 -0
  18. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  23. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/index.js +62 -62
  28. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  37. package/package.json +5 -7
  38. package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +0 -1
  39. package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +0 -9
  40. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +0 -10
  41. package/dist/consts/mesh.d.ts +0 -77
  42. package/dist/providers/FunkitMeshProvider.d.ts +0 -11
  43. package/dist/utils/mesh.d.ts +0 -24
@@ -1,3 +1,4 @@
1
+ import { type ExchangeRates } from '@funkit/api-base';
1
2
  import React from 'react';
2
3
  import { type FunkitTextCustomizationsConfig } from '~/providers/FunkitConfigContext';
3
4
  import type { AssetHoldingsItem } from '~/utils/assets';
@@ -8,6 +9,8 @@ interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep
8
9
  checkoutConfig: FunkitCheckoutConfig;
9
10
  /** unit price of target asset */
10
11
  unitPrice: number;
12
+ /** currency exchange rates */
13
+ currencyExchangeRates: ExchangeRates | undefined;
11
14
  /** default fiat currency to be used*/
12
15
  defaultFiatCurrency?: string;
13
16
  textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
@@ -15,5 +18,5 @@ interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep
15
18
  export declare function openMeldPopup(linkGetter: () => Promise<{
16
19
  widgetUrl: string;
17
20
  }>): Promise<void>;
18
- export declare function InputAmountLoaded({ checkoutConfig, modalState, onNext, onClose, sourceHolding, unitPrice, defaultFiatCurrency, textCustomizations, }: InputAmountLoadedProps): React.JSX.Element;
21
+ export declare function InputAmountLoaded({ checkoutConfig, modalState, onNext, onClose, sourceHolding, unitPrice, currencyExchangeRates, defaultFiatCurrency, textCustomizations, }: InputAmountLoadedProps): React.JSX.Element;
19
22
  export {};
@@ -19,6 +19,10 @@ export interface AmountInputInitOptions {
19
19
  locale: Intl.LocalesArgument;
20
20
  /** Quick options, in fiat (not %) */
21
21
  quickOptions?: number[];
22
+ /** Exchange rate of the `fiatCurrency` to USD */
23
+ fiatCurrencyExchangeRate: number | undefined;
24
+ /** Whether meld is enabled */
25
+ meldEnabled: boolean;
22
26
  }
23
27
  export interface AmountInputState {
24
28
  /** Current amount, in target asset. Undefined if input is empty */
@@ -39,6 +43,10 @@ export interface AmountInputState {
39
43
  usdMaxAmount: number | null;
40
44
  /** Minimum amount, in USD (defaults to 0) */
41
45
  usdMinAmount: number | null;
46
+ /** Exchange rate of the `fiatCurrency` to USD */
47
+ fiatCurrencyExchangeRate: number | undefined;
48
+ /** Whether meld is enabled */
49
+ meldEnabled: boolean;
42
50
  }
43
51
  /** Derived state includes additional fields that are pure functions of base state */
44
52
  export interface AmountInputDerivedState extends AmountInputState {
@@ -90,6 +98,6 @@ export type AmountInputError = {
90
98
  * Return half the balance and round up to nearest 10, 100, 1000 etc
91
99
  */
92
100
  export declare function calcInitialFiatAmount(balance: number): number;
93
- export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethod, quickOptions, sourceHolding, unitPrice: realUnitPrice, }: AmountInputInitOptions): AmountInputState;
101
+ export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethod, quickOptions, sourceHolding, unitPrice: realUnitPrice, fiatCurrencyExchangeRate, meldEnabled, }: AmountInputInitOptions): AmountInputState;
94
102
  export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
95
103
  export declare function getDerivedState(state: AmountInputState): AmountInputDerivedState;
@@ -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 declare function useFlag<K extends FlagKey>(flagKey: K, fallback?: FlagValue<K>): FlagValue<K>;
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>;
@@ -276,7 +276,19 @@ export declare const flagConfig: {
276
276
  };
277
277
  readonly enable_bitcoin: {
278
278
  readonly type: "boolean";
279
- readonly default_value: true;
279
+ readonly default_value: false;
280
+ readonly overrides: [{
281
+ readonly if_any: [{
282
+ readonly key: "userId";
283
+ readonly type: "pctRollout";
284
+ readonly pct: 10;
285
+ }, {
286
+ readonly key: "userId";
287
+ readonly type: "isAnyOf";
288
+ readonly values: ["0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x2e0Fa1cE3F0F6a85542c1E4F941116c0E885292E", "0x28b8848C6c3aaBF4669997563dc07888eb3B0960", "0x9C64fD7d9826E6d552dD8bc53e5C96F7C3F38528", "0xfe5AD22465dc20340bfFb641F4AbbcAA7a1BB2Ed", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0x21b94a3E67c4a72d3D15f478A696c5175f036092", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0x8a5505F1b274d8fC23986AF60Dd3Ca3857095BB8", "0x0B6E49e9D1528F59BaBF3C5337A4c96E987f81aa", "0x84Bc1AC5621d2B44C5D3e3E79b45C2885406026D", "0x0D0377aa9CCA769931821842aB0E1A75e7DD6dD6", "0x7B0195921183f7E04f0D331c1DAF7C1bB208CC4E", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x3c937d73f7FE55b386c309C65087d9F5bdd1a780"];
289
+ }];
290
+ readonly value: true;
291
+ }];
280
292
  };
281
293
  };
282
294
  export type FlagConfig = typeof flagConfig;
@@ -1,291 +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 FlagConfig>(): Promise<{
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: true;
287
- };
288
- }>;
7
+ export declare function fetchConfigFromServer<F extends AbstractFlags>(): Promise<F>;
289
8
  export declare function deriveAllFlags<T extends AbstractFlags>(config: T, userContext: UserContext): {
290
9
  [K in keyof T]?: InferFlagType<T[K]>;
291
10
  };
@@ -1,2 +1,13 @@
1
- import type { FlagConfig } from '../config';
2
- export declare const enableBitcoin: (config: FlagConfig) => FlagConfig;
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, deviceId: string): void;
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 };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Get the exchange rate for a given currency or return undefined if not found or any of the arguments are undefined
3
+ */
4
+ export declare const getExchangeRate: (currency: string | undefined, currencyExchangeRates: Record<string, number> | undefined, bipsMarkup?: number) => number | undefined;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-UIASLGLV.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-A5N6B5UW.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-5W7VDOCL.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TDAVGY5F.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-LNEC5RNX.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2STUC6QL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-2GJQ4XZQ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-M3NZ6R2E.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-KIDC67XJ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-OBOVHCEI.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-JCHN6A47.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-VR4TBQ6S.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-CNPKISHN.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-7QONTUXT.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-VWCLFMWJ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TCAGNB4B.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-CJGUM55H.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-FKJJQNKX.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  gateWallet
9
9
  };