@funkit/connect 7.0.3-next.0 → 7.1.0-next.10
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 +132 -0
- package/dist/__generated__/default_configs.d.ts +229 -3
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +1 -1
- package/dist/components/Dialog/Dialog.css.d.ts +1 -0
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
- package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +3 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -6
- package/dist/components/FunTooltip/FunTooltip.d.ts +1 -0
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +2 -2
- package/dist/consts/customers.d.ts +1 -0
- package/dist/domains/asset.d.ts +2 -6
- package/dist/domains/quote.d.ts +1 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +1 -2
- package/dist/hooks/statsig/useDynamicConfig.d.ts +1 -1
- package/dist/hooks/track/CheckoutModalEvent.d.ts +8 -1
- package/dist/hooks/track/WithdrawModalEvent.d.ts +1 -0
- package/dist/hooks/track/useTrack.d.ts +5 -1
- package/dist/hooks/useBluvo.d.ts +0 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +0 -1
- package/dist/hooks/useCheckoutTransferInit.d.ts +4 -2
- package/dist/hooks/useDynamicRoutes.d.ts +4 -0
- package/dist/hooks/useIsBlacklistedWithdrawalAddress.d.ts +4 -0
- package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +4 -0
- package/dist/hooks/useUDAParams.d.ts +11 -0
- package/dist/{modals/CheckoutModal → hooks}/useWalletAssetHoldings.d.ts +1 -1
- package/dist/index.css +33 -26
- package/dist/index.d.ts +2 -2
- package/dist/index.js +31916 -30859
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +0 -7
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +4 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -6
- package/dist/modals/CheckoutModal/{useSourceAssetConfirm.d.ts → ConfirmationStep/useSourceAssetConfirm.d.ts} +0 -2
- package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -0
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +7 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +18 -1
- package/dist/providers/FunkitConfigContext.d.ts +9 -1
- package/dist/providers/FunkitMoonpayProvider.d.ts +1 -0
- package/dist/providers/FunkitQuoteContext.d.ts +1 -2
- package/dist/providers/FunkitQuoteContext.track.d.ts +1 -0
- package/dist/providers/FunkitThemeProvider.d.ts +0 -7
- package/dist/providers/ModalContext.d.ts +7 -0
- package/dist/utils/assets.d.ts +2 -1
- package/dist/utils/checkout.d.ts +0 -1
- package/dist/utils/customer.d.ts +192 -0
- package/dist/utils/flags/config.d.ts +23 -42
- package/dist/utils/funLogger.d.ts +3 -1
- package/dist/utils/funkitProvider.d.ts +2 -0
- package/dist/utils/lighter.d.ts +11 -3
- package/dist/utils/tokenIconUrl.d.ts +1 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +2 -2
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-JWFF4AAL.js → chunk-2E4PDCEJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SHBUZ7U7.js → chunk-35Q4HKAM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-362NXNTM.js → chunk-3IYE623P.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2L43XSW3.js → chunk-47QF6EET.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BPZ2XJO2.js → chunk-4ZXII3UA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2STUC6QL.js → chunk-5EAOMOTO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2KUBG3S6.js → chunk-77UTBHGP.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OLOIXTYS.js → chunk-ABQKUIUD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-IFON7E6U.js → chunk-AI55G5DD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DNSG5Q7V.js → chunk-ARYAYQ7Z.js} +3 -0
- package/dist/wallets/walletConnectors/{chunk-OL5ZO7E4.js → chunk-CF5HOLH2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SULRQO27.js → chunk-CZYUE3AR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HWPKCIBE.js → chunk-EMBU4RXK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TDAVGY5F.js → chunk-FA5DTT5R.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BYXPFMI7.js → chunk-FCG5Q6JX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-M3NZ6R2E.js → chunk-HPHADOYD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VYBAYMP3.js → chunk-JFHP4YJG.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DRO6WYMM.js → chunk-JTLLKY2O.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BBOM42DL.js → chunk-LW6S43RE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-D6AOOO5F.js → chunk-M2HGGTFE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-XWUJE7MW.js → chunk-MQSCN4BO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-FKJJQNKX.js → chunk-MRRZOQGZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OPAZMNA7.js → chunk-QHC4I2FM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RZIO5TFF.js → chunk-QS2XIZEH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-A5N6B5UW.js → chunk-R6Y36CMA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2HYNUNAS.js → chunk-RA7MCWF4.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OBOVHCEI.js → chunk-RLRQYUYC.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TCAGNB4B.js → chunk-T5KHVUFR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BOU4WKRZ.js → chunk-TMFH6GXS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZZZRUXZE.js → chunk-TNZJRXUQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TDIEHTMB.js → chunk-U5QP7MI5.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NWIQNBJU.js → chunk-UOTQQJJD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RNBEDQHF.js → chunk-VU2RNIQG.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VR4TBQ6S.js → chunk-VYNVAGSV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NT2HYJKW.js → chunk-W7Y6I22Y.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7QONTUXT.js → chunk-YLJDPTYF.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HS3C7OQV.js → chunk-YMUSFW44.js} +1 -1
- 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/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +2 -2
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.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 +41 -41
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +2 -2
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +2 -2
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.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/tahoWallet/tahoWallet.js +2 -2
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +5 -5
- package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 7.1.0-next.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c94531b: always use fiat mode for payment method card
|
|
8
|
+
- b033e65: feat(connect): update config to accept modal title fn to support dynamic titles
|
|
9
|
+
|
|
10
|
+
## 7.1.0-next.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- c93ad0c: feat(connect): sync dynamicRoutingId with dynamic target asset
|
|
15
|
+
- 7312429: adopt checkedIndexedAccess for safety
|
|
16
|
+
- c93ad0c: feat(connect): add select target asset dropdown to source change screen
|
|
17
|
+
- Updated dependencies [7312429]
|
|
18
|
+
- Updated dependencies [0168375]
|
|
19
|
+
- @funkit/fun-relay@2.2.0-next.4
|
|
20
|
+
- @funkit/utils@1.1.22-next.2
|
|
21
|
+
- @funkit/api-base@1.12.22-next.3
|
|
22
|
+
|
|
23
|
+
## 7.1.0-next.8
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 40bf6f4: reorganize file location
|
|
28
|
+
- c289ca6: feat(fun-relay): require api key for relay to prevent rate limiting
|
|
29
|
+
feat(connect): pass pseudo api key to fun-relay
|
|
30
|
+
- 18ce29c: deprecate some unused code
|
|
31
|
+
- 437a9f2: refactor(connect): swap out 2FA input for fun 2FA component on brokerage flow
|
|
32
|
+
- 62a8860: remove unused data
|
|
33
|
+
- 5a8fe96: fix(connect): normalize feebreakdown response
|
|
34
|
+
- ae172d8: move file around
|
|
35
|
+
- Updated dependencies [c289ca6]
|
|
36
|
+
- Updated dependencies [fd5fe29]
|
|
37
|
+
- Updated dependencies [c463492]
|
|
38
|
+
- Updated dependencies [aa767b0]
|
|
39
|
+
- @funkit/fun-relay@2.2.0-next.3
|
|
40
|
+
- @funkit/utils@1.1.22-next.1
|
|
41
|
+
- @funkit/api-base@1.12.22-next.2
|
|
42
|
+
|
|
43
|
+
## 7.1.0-next.7
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- 656587e: fix(connect): disable withdrawal quote for blacklisted withdrawal addresses
|
|
48
|
+
|
|
49
|
+
## 7.1.0-next.6
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- f07bdfb: refactor(connect): cleanup remaining mesh references in bluvo screens
|
|
54
|
+
- 652c5c2: feat(connect): add blacklisted withdrawal address to statsig
|
|
55
|
+
- d336735: feat: add tron chain object
|
|
56
|
+
- 3df0c66: feat(connect): add insufficient gas error during execution
|
|
57
|
+
- 29b449c: Use ETH as source amount on input screen instead of USD for Lighter ETH Spot
|
|
58
|
+
- Updated dependencies [d336735]
|
|
59
|
+
- @funkit/chains@0.5.2-next.1
|
|
60
|
+
|
|
61
|
+
## 7.1.0-next.5
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- d3322be: chore: updated labels
|
|
66
|
+
|
|
67
|
+
## 7.1.0-next.4
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- 92eb741: Fix input normalization re-attachment when used with Framer Motion DOM swapping
|
|
72
|
+
- f3c3431: feat(connect): add custom processing message for lighter native flow
|
|
73
|
+
- a94f293: do not over-fetching bridge account
|
|
74
|
+
|
|
75
|
+
## 7.1.0-next.3
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- 9be8d42: Add unloggedin blocked reason with i18n support across all languages
|
|
80
|
+
- 26f2b79: feat(connect): add statsig tracking to quick options clicks
|
|
81
|
+
- 47acbdc: chore(connect): change error message
|
|
82
|
+
- 0c6cc6e: feat(connect): check udaparams for default settings (chain+token) for token transfer dropdown
|
|
83
|
+
- 75c154f: refactor(connect): use portal for tooltips
|
|
84
|
+
- 47acbdc: Update all translation files to replace "checkout" with "deposit" terminology across Spanish, French, Japanese, Korean, Russian, Turkish, and Chinese translations
|
|
85
|
+
- ade8399: feat(connect): measure modal initial loading
|
|
86
|
+
- 58b4014: feat(connect): add logo asset for optimism
|
|
87
|
+
|
|
88
|
+
## 7.1.0-next.2
|
|
89
|
+
|
|
90
|
+
### Minor Changes
|
|
91
|
+
|
|
92
|
+
- fa6cb1f: Add soft-close feature for checkout modal when transaction is in progress
|
|
93
|
+
|
|
94
|
+
- When a transaction is in progress (checkoutProgress.step >= 1), the close button now hides the modal instead of closing it, preserving state
|
|
95
|
+
- Added `useSoftHiddenCheckout` hook for managing soft-hidden checkout state
|
|
96
|
+
- Added internal `onCheckoutConflict` handler to resolve conflicts when `beginCheckout` is called while a checkout is soft-hidden
|
|
97
|
+
- Extended `FunkitCheckoutOnCloseResult` with optional `isSoftHidden` field
|
|
98
|
+
- Added `MODAL_SOFT_HIDDEN` analytics event
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- 13a6a7b: feat(connect): hide min amount from supported chain label on xs viewport
|
|
103
|
+
- 923b998: Fix RemoveScroll to not block scrolling when dialog is hidden
|
|
104
|
+
- 1e7f994: feat(connect): update lighter time to 2min
|
|
105
|
+
- cf4f7ba: fix(connect): disable is same asset check for wallet flow if dynamicRoutingId is provided
|
|
106
|
+
- 17dd504: fix(connect): relax withMoonpayMeldQuote error logs
|
|
107
|
+
- 0ad5896: fix withdraw amount is NaN
|
|
108
|
+
- b09006f: add lighter chain to destination
|
|
109
|
+
- 8b8d030: feat(connect,api-base): pass api key to bluvo requests to frog
|
|
110
|
+
- 0b85676: feat(connect): token transfer ui - default to arbitrum chain for lighter
|
|
111
|
+
- Updated dependencies [e009c8d]
|
|
112
|
+
- Updated dependencies [8b8d030]
|
|
113
|
+
- @funkit/fun-relay@2.1.16-next.2
|
|
114
|
+
- @funkit/api-base@1.12.22-next.1
|
|
115
|
+
|
|
116
|
+
## 7.0.3-next.1
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- 28136c9: feat(connect): migrate MeldQuickOptions flag to statsig
|
|
121
|
+
- 39406ab: fix(connect): fix undefined error when reading destinationAmount
|
|
122
|
+
- 6f66084: add islighter flow
|
|
123
|
+
- b1c4d85: feat(connect): support for `dynamicRoutingId` param
|
|
124
|
+
- 188da7b: remove genActionParam check in init
|
|
125
|
+
- 62a557d: tradefox theme implemented
|
|
126
|
+
- 115d875: fix(connect): update statsig user when api key changes
|
|
127
|
+
- 9257a9b: remove tick size read in connect
|
|
128
|
+
- Updated dependencies [173d602]
|
|
129
|
+
- Updated dependencies [6d91583]
|
|
130
|
+
- Updated dependencies [9257a9b]
|
|
131
|
+
- @funkit/fun-relay@2.1.16-next.1
|
|
132
|
+
- @funkit/utils@1.1.22-next.0
|
|
133
|
+
- @funkit/api-base@1.12.22-next.0
|
|
134
|
+
|
|
3
135
|
## 7.0.3-next.0
|
|
4
136
|
|
|
5
137
|
### Patch Changes
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
readonly addressblacklist: {
|
|
3
|
-
readonly value: readonly ["0x7b97b46D35a28B561d47F50CFB9a2735E506e59d", "0x409ad08cc6CA757f69Fb80250a424B9eFeB99807", "0x02A86f51aA7B8b1c17c30364748d5Ae4a0727E23", "0x64131b60502C01362639CC5cfE1a1efB6Be1165A"
|
|
3
|
+
readonly value: readonly ["0x7b97b46D35a28B561d47F50CFB9a2735E506e59d", "0x409ad08cc6CA757f69Fb80250a424B9eFeB99807", "0x02A86f51aA7B8b1c17c30364748d5Ae4a0727E23", "0x64131b60502C01362639CC5cfE1a1efB6Be1165A"];
|
|
4
4
|
};
|
|
5
5
|
readonly array_of_strings: {
|
|
6
6
|
readonly value: readonly [];
|
|
7
7
|
};
|
|
8
|
+
readonly blacklistedwithdrawaladdress: {
|
|
9
|
+
readonly value: {
|
|
10
|
+
readonly '0x2791bca1f2de4661ed88a30c99a7a9449aa84174': "USDC.e - Polygon";
|
|
11
|
+
readonly '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8': "USDC.e - Arbitrum";
|
|
12
|
+
readonly '0x7f5c764cbc14f9669b88837ca1490cca17c31607': "USDC.e - Optimism";
|
|
13
|
+
readonly '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48': "USDC - Ethereum";
|
|
14
|
+
readonly '0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af': "Uniswap V4 Router - Etheruem";
|
|
15
|
+
readonly '0x1095692A6237d83C6a72F3F5eFEdb9A670C49223': "Uniswap V4 Router - Polygon";
|
|
16
|
+
readonly '0x0000000000000000000000000000000000000000': "Zero/Null Address";
|
|
17
|
+
readonly '0x000000000000000000000000000000000000dEaD': "Burn Address";
|
|
18
|
+
readonly '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D': "Uniswap V2 Router";
|
|
19
|
+
readonly '0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45': "Uniswap V3: Old Deployer";
|
|
20
|
+
readonly '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD': "Uniswap Universal Router";
|
|
21
|
+
readonly '0xE592427A0AEce92De3Edee1F18E0157C05861564': "Uniswap V3 Router";
|
|
22
|
+
readonly '0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F': "SushiSwap Router";
|
|
23
|
+
readonly '0xDEF1C0ded9bec7F1a1670819833240f027b25EfF': "0x Exchange Proxy";
|
|
24
|
+
readonly '0x1111111254EEB25477B68fb85Ed929f73A960582': "1inch V5 Router";
|
|
25
|
+
readonly '0x881D40237659C251811CEC9c364ef91dC08D300C': "Metamask Swap Router";
|
|
26
|
+
readonly '0x07d82CD44cd598ACf355Af8c8089b30b2a13B088': "Polymarket Withdrawal Block";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
8
29
|
readonly blockedcountries: {
|
|
9
30
|
readonly value: readonly ["AF", "BY", "MM", "CF", "CU", "CD", "IR", "LB", "LY", "NI", "KP", "UA", "SO", "SS", "SY", "VE"];
|
|
10
31
|
};
|
|
@@ -14,11 +35,169 @@ declare const _default: {
|
|
|
14
35
|
readonly brokerage_hide_you_receive: {
|
|
15
36
|
readonly value: false;
|
|
16
37
|
};
|
|
38
|
+
readonly chainidsortorder: {
|
|
39
|
+
readonly value: readonly ["1", "1151111081099710", "8453", "56", "137", "42161", "10"];
|
|
40
|
+
};
|
|
41
|
+
readonly checkoutnotificationsrefreshinterval: {
|
|
42
|
+
readonly value: {
|
|
43
|
+
readonly listRefresh: 5000;
|
|
44
|
+
readonly itemRefresh: 2000;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly checkouttimeestimateoverrides: {
|
|
48
|
+
readonly value: {
|
|
49
|
+
readonly balance: 60;
|
|
50
|
+
readonly brokerage: 120;
|
|
51
|
+
readonly card: 300;
|
|
52
|
+
readonly token_transfer: 60;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly dynamicrouting: {
|
|
56
|
+
readonly value: readonly [{
|
|
57
|
+
readonly routeId: "LIGHTER_ETH_SPOT";
|
|
58
|
+
readonly rules: readonly [{
|
|
59
|
+
readonly when: {
|
|
60
|
+
readonly chainId: "1";
|
|
61
|
+
readonly tokenAddress: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
62
|
+
};
|
|
63
|
+
readonly use: {
|
|
64
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
65
|
+
readonly badge: "NATIVE";
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
readonly when: {
|
|
69
|
+
readonly chainId: "1";
|
|
70
|
+
readonly tokenAddress: "*";
|
|
71
|
+
};
|
|
72
|
+
readonly use: {
|
|
73
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
readonly when: "*";
|
|
77
|
+
readonly use: {
|
|
78
|
+
readonly path: "RL_TRANSFER";
|
|
79
|
+
};
|
|
80
|
+
}];
|
|
81
|
+
}, {
|
|
82
|
+
readonly routeId: "LIGHTER_USDC_PERPS";
|
|
83
|
+
readonly rules: readonly [{
|
|
84
|
+
readonly when: {
|
|
85
|
+
readonly chainId: "1";
|
|
86
|
+
readonly tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
87
|
+
};
|
|
88
|
+
readonly use: {
|
|
89
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
90
|
+
readonly badge: "NATIVE";
|
|
91
|
+
};
|
|
92
|
+
}, {
|
|
93
|
+
readonly when: {
|
|
94
|
+
readonly chainId: "1";
|
|
95
|
+
readonly tokenAddress: "*";
|
|
96
|
+
};
|
|
97
|
+
readonly use: {
|
|
98
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
readonly when: "*";
|
|
102
|
+
readonly use: {
|
|
103
|
+
readonly path: "RL_TRANSFER";
|
|
104
|
+
};
|
|
105
|
+
}];
|
|
106
|
+
}, {
|
|
107
|
+
readonly routeId: "LIGHTER_USDC_PERPS_NEW_USER";
|
|
108
|
+
readonly rules: readonly [{
|
|
109
|
+
readonly when: {
|
|
110
|
+
readonly chainId: "1";
|
|
111
|
+
readonly tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
112
|
+
};
|
|
113
|
+
readonly use: {
|
|
114
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
115
|
+
readonly badge: "NATIVE";
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
readonly when: "*";
|
|
119
|
+
readonly use: {
|
|
120
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
121
|
+
};
|
|
122
|
+
}];
|
|
123
|
+
}, {
|
|
124
|
+
readonly routeId: "LIGHTER_ETH_SPOT_NEW_USER";
|
|
125
|
+
readonly rules: readonly [{
|
|
126
|
+
readonly when: {
|
|
127
|
+
readonly chainId: "1";
|
|
128
|
+
readonly tokenAddress: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
129
|
+
};
|
|
130
|
+
readonly use: {
|
|
131
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
132
|
+
readonly badge: "NATIVE";
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
readonly when: "*";
|
|
136
|
+
readonly use: {
|
|
137
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
138
|
+
};
|
|
139
|
+
}];
|
|
140
|
+
}];
|
|
141
|
+
};
|
|
142
|
+
readonly enablebitcoin: {
|
|
143
|
+
readonly value: true;
|
|
144
|
+
};
|
|
145
|
+
readonly enablebluvobrokerage: {
|
|
146
|
+
readonly value: false;
|
|
147
|
+
};
|
|
148
|
+
readonly enablefiatdeposit: {
|
|
149
|
+
readonly value: true;
|
|
150
|
+
};
|
|
151
|
+
readonly enablemeldpayment: {
|
|
152
|
+
readonly value: false;
|
|
153
|
+
};
|
|
154
|
+
readonly enabletokentransfer: {
|
|
155
|
+
readonly value: true;
|
|
156
|
+
};
|
|
157
|
+
readonly enabletokentransfertest: {
|
|
158
|
+
readonly variants: readonly [{
|
|
159
|
+
readonly conditions: {
|
|
160
|
+
readonly all: readonly [{
|
|
161
|
+
readonly type: "allowedCountries";
|
|
162
|
+
readonly countries: readonly ["SG", "DE"];
|
|
163
|
+
}];
|
|
164
|
+
};
|
|
165
|
+
readonly value: true;
|
|
166
|
+
}];
|
|
167
|
+
readonly value: false;
|
|
168
|
+
};
|
|
169
|
+
readonly ismexico: {
|
|
170
|
+
readonly value: {
|
|
171
|
+
readonly mexico: false;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly isrelaybypassenabled: {
|
|
175
|
+
readonly value: true;
|
|
176
|
+
};
|
|
177
|
+
readonly meldquickoptions: {
|
|
178
|
+
readonly value: {
|
|
179
|
+
readonly USD: readonly [100, 500, 1000];
|
|
180
|
+
readonly EUR: readonly [90, 435, 870];
|
|
181
|
+
readonly JPY: readonly [14500, 72500, 145000];
|
|
182
|
+
readonly KRW: readonly [137500, 690000, 1380000];
|
|
183
|
+
readonly GBP: readonly [75, 375, 745];
|
|
184
|
+
readonly CAD: readonly [135, 685, 1365];
|
|
185
|
+
readonly AUD: readonly [155, 770, 1540];
|
|
186
|
+
readonly CHF: readonly [80, 410, 820];
|
|
187
|
+
readonly BRL: readonly [550, 2750, 5500];
|
|
188
|
+
readonly INR: readonly [8600, 43000, 86000];
|
|
189
|
+
readonly PHP: readonly [5700, 28500, 57000];
|
|
190
|
+
readonly TRY: readonly [3950, 19800, 39500];
|
|
191
|
+
readonly RUB: readonly [7850, 39300, 78600];
|
|
192
|
+
readonly PLN: readonly [370, 1860, 3715];
|
|
193
|
+
readonly SGD: readonly [130, 645, 1285];
|
|
194
|
+
};
|
|
195
|
+
};
|
|
17
196
|
readonly showinfobanner: {
|
|
18
197
|
readonly value: {
|
|
19
198
|
readonly message: "";
|
|
20
|
-
readonly expireAtMs:
|
|
21
|
-
readonly type: "
|
|
199
|
+
readonly expireAtMs: 0;
|
|
200
|
+
readonly type: "alert";
|
|
22
201
|
};
|
|
23
202
|
};
|
|
24
203
|
readonly showpoweredtagline: {
|
|
@@ -27,5 +206,52 @@ declare const _default: {
|
|
|
27
206
|
readonly supportedexchangesv2: {
|
|
28
207
|
readonly value: readonly [];
|
|
29
208
|
};
|
|
209
|
+
readonly uda_params: {
|
|
210
|
+
readonly value: readonly [{
|
|
211
|
+
readonly dynamicRoutingId: "LIGHTER_ETH_SPOT";
|
|
212
|
+
readonly params: {
|
|
213
|
+
readonly targetChain: "3586256";
|
|
214
|
+
readonly targetAsset: "0x0000000000000000000000000000000000000001";
|
|
215
|
+
readonly targetAssetTicker: "ETH";
|
|
216
|
+
readonly iconSrc: "https://sdk-cdn.fun.xyz/images/eth.svg";
|
|
217
|
+
readonly qrcodeActionType: "LIGHTER_SPOT";
|
|
218
|
+
readonly defaultChainId: "1";
|
|
219
|
+
readonly defaultTokenSymbol: "ETH";
|
|
220
|
+
};
|
|
221
|
+
}, {
|
|
222
|
+
readonly dynamicRoutingId: "LIGHTER_ETH_SPOT_NEW_USER";
|
|
223
|
+
readonly params: {
|
|
224
|
+
readonly targetChain: "1";
|
|
225
|
+
readonly targetAsset: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2";
|
|
226
|
+
readonly targetAssetTicker: "ETH";
|
|
227
|
+
readonly iconSrc: "https://sdk-cdn.fun.xyz/images/eth.svg";
|
|
228
|
+
readonly qrcodeActionType: "LIGHTER_SPOT";
|
|
229
|
+
readonly defaultChainId: "1";
|
|
230
|
+
readonly defaultTokenSymbol: "ETH";
|
|
231
|
+
};
|
|
232
|
+
}, {
|
|
233
|
+
readonly dynamicRoutingId: "LIGHTER_USDC_PERPS";
|
|
234
|
+
readonly params: {
|
|
235
|
+
readonly targetChain: "3586256";
|
|
236
|
+
readonly targetAsset: "0x0000000000000000000000000000000000000000";
|
|
237
|
+
readonly targetAssetTicker: "USDC";
|
|
238
|
+
readonly iconSrc: "https://sdk-cdn.fun.xyz/images/usdc.svg";
|
|
239
|
+
readonly qrcodeActionType: "LIGHTER_PERPS";
|
|
240
|
+
readonly defaultChainId: "42161";
|
|
241
|
+
readonly defaultTokenSymbol: "USDC";
|
|
242
|
+
};
|
|
243
|
+
}, {
|
|
244
|
+
readonly dynamicRoutingId: "LIGHTER_USDC_PERPS_NEW_USER";
|
|
245
|
+
readonly params: {
|
|
246
|
+
readonly targetChain: "1";
|
|
247
|
+
readonly targetAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
248
|
+
readonly targetAssetTicker: "USDC";
|
|
249
|
+
readonly iconSrc: "https://sdk-cdn.fun.xyz/images/usdc.svg";
|
|
250
|
+
readonly qrcodeActionType: "LIGHTER_PERPS";
|
|
251
|
+
readonly defaultChainId: "42161";
|
|
252
|
+
readonly defaultTokenSymbol: "USDC";
|
|
253
|
+
};
|
|
254
|
+
}];
|
|
255
|
+
};
|
|
30
256
|
};
|
|
31
257
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const easing: number[];
|
|
2
2
|
export declare const DialogAnimationTimeIn = 0.25;
|
|
3
3
|
export declare const DialogAnimationTimeOut = 0.12;
|
|
4
|
+
export declare const FunModalZIndex: number;
|
|
4
5
|
export declare const overlay: string;
|
|
5
6
|
export declare const content: string;
|
|
6
7
|
export declare const titleContainer: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DynamicTargetAssetCandidate } from '../../providers/FunkitCheckoutContext';
|
|
3
|
+
import { type BaseDropdownProps } from './BaseDropdown';
|
|
3
4
|
interface ReceiveTokenDropdownProps {
|
|
4
5
|
chainId: number;
|
|
5
6
|
tokens: DynamicTargetAssetCandidate[];
|
|
@@ -7,6 +8,7 @@ interface ReceiveTokenDropdownProps {
|
|
|
7
8
|
selectedToken?: string;
|
|
8
9
|
label?: string;
|
|
9
10
|
activeItemLabel?: string;
|
|
11
|
+
activeItemProps?: BaseDropdownProps['activeItemProps'];
|
|
10
12
|
}
|
|
11
|
-
export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, }: ReceiveTokenDropdownProps) => React.JSX.Element;
|
|
13
|
+
export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, }: ReceiveTokenDropdownProps) => React.JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hideOnXsmallScreenSize: string;
|
|
@@ -14,6 +14,8 @@ interface CustomStatusAnimationParams {
|
|
|
14
14
|
withTopDivider: 'always' | 'never' | 'scroll' | undefined;
|
|
15
15
|
/** ID of the element to scroll (main dialog content) when scrolling over the overflowed title */
|
|
16
16
|
scrollableContent: string;
|
|
17
|
+
/** Whether this is a lighter native deposit checkout (eth mainnet) */
|
|
18
|
+
isLighterNativeDeposit?: boolean;
|
|
17
19
|
}
|
|
18
20
|
interface CustomStatusAnimationReturn {
|
|
19
21
|
/** To be passed to scrolling container, to sync the scroll position */
|
|
@@ -27,5 +29,5 @@ interface CustomStatusAnimationReturn {
|
|
|
27
29
|
* Hook for sharing the logic for the custom status icon animation in checkout details. This is very
|
|
28
30
|
* much _not_ generic or intended to be reused anywhere, but the component itself is duplicated.
|
|
29
31
|
*/
|
|
30
|
-
export declare function useCustomStatusAnimationAboveTopbar({ depositAddress, isActiveCheckout, isCheckoutDetailView, paddingTop, topbar, withTopDivider, scrollableContent, }: CustomStatusAnimationParams): CustomStatusAnimationReturn;
|
|
32
|
+
export declare function useCustomStatusAnimationAboveTopbar({ depositAddress, isActiveCheckout, isCheckoutDetailView, paddingTop, topbar, withTopDivider, scrollableContent, isLighterNativeDeposit, }: CustomStatusAnimationParams): CustomStatusAnimationReturn;
|
|
31
33
|
export {};
|
|
@@ -5,15 +5,16 @@ export declare function PaymentMethodIcon({ paymentIcon, keyIconSize, }: {
|
|
|
5
5
|
paymentIcon: ReactNode;
|
|
6
6
|
keyIconSize: number;
|
|
7
7
|
}): React.JSX.Element;
|
|
8
|
-
interface
|
|
8
|
+
interface ConnectedBluvoPaymentMethodItemProps extends ConnectedPaymentMethodItemProps {
|
|
9
9
|
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
10
10
|
onBrokerageError?: () => void;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Note: This is different from `BrokeragePaymentMethodItem`, which is used as a
|
|
14
|
+
* button to initiate connecting a new brokerage account.
|
|
15
|
+
* This is for connected Bluvo brokerage like coinbase etc.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ConnectedBluvoPaymentMethodItem: ({ paymentMethodInfo, isSelected, onSelect, onBrokerageError, showSelectedCheckmark, }: ConnectedBluvoPaymentMethodItemProps) => React.JSX.Element;
|
|
17
18
|
interface ConnectedPaymentMethodItemProps {
|
|
18
19
|
isSelected: boolean;
|
|
19
20
|
showSelectedCheckmark?: boolean;
|
|
@@ -34,4 +34,5 @@ export interface FunTooltipProps {
|
|
|
34
34
|
startDelay?: number;
|
|
35
35
|
width?: BoxProps['width'];
|
|
36
36
|
}
|
|
37
|
+
export declare const TooltipAnchorRefContext: React.Context<React.RefObject<HTMLElement> | null>;
|
|
37
38
|
export declare const FunTooltip: ({ content, children, wrapperElementRef, tooltipPosition, enableDynamicPositioning, bottomOffset, maxWidth, displayType, hideDelay, startDelay, width, }: FunTooltipProps) => React.JSX.Element;
|
|
@@ -9,5 +9,5 @@ interface PaymentAmountSummaryProps {
|
|
|
9
9
|
quote: FunkitCheckoutQuoteResult | null;
|
|
10
10
|
directExecutionType?: DirectExecutionType | null;
|
|
11
11
|
}
|
|
12
|
-
export declare function PaymentAmountSummary({ isLoading, targetChainId, quote, checkoutItem, directExecutionType, }: PaymentAmountSummaryProps): React.JSX.Element;
|
|
12
|
+
export declare function PaymentAmountSummary({ isLoading, targetChainId: originalChainId, quote, checkoutItem, directExecutionType, }: PaymentAmountSummaryProps): React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -2,7 +2,7 @@ import type { TFunction } from 'i18next';
|
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
3
|
import type { CheckoutProgressStep } from '~/providers/FunkitCheckoutContext';
|
|
4
4
|
interface TransactionStatusProps {
|
|
5
|
-
|
|
5
|
+
isSlowTransaction: boolean;
|
|
6
6
|
isWithdrawal: boolean;
|
|
7
7
|
textConfigStatus?: TextConfigStatus;
|
|
8
8
|
textConfigSteps?: TextConfigSteps;
|
|
@@ -32,5 +32,5 @@ export declare const getDefaultTextConfigSteps: (t: TFunction) => TextConfigStep
|
|
|
32
32
|
export declare function TransactionStatusLoading({ expectedStatus, }: {
|
|
33
33
|
expectedStatus: TransactionStatusProps['status'];
|
|
34
34
|
}): React.JSX.Element;
|
|
35
|
-
export declare function TransactionStatus({
|
|
35
|
+
export declare function TransactionStatus({ isSlowTransaction, isWithdrawal, status, step, textConfigStatus, textConfigSteps, }: TransactionStatusProps): React.JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -15,3 +15,4 @@ export declare function isAvantisCustomer(apiKey: string): apiKey is "6TUi99Tq3O
|
|
|
15
15
|
export declare function isPerplCustomer(apiKey: string): apiKey is "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu";
|
|
16
16
|
export declare function isLighterxyzCustomer(apiKey: string): apiKey is "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2";
|
|
17
17
|
export declare function isLighterEthSpot(apiKey: string, checkoutConfig: FunkitCheckoutConfig | undefined): boolean | undefined;
|
|
18
|
+
export declare function isLighterNativeFlow(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain'> | undefined): boolean;
|
package/dist/domains/asset.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare function isNativeTokenAddress(address: Address): boolean;
|
|
|
9
9
|
export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig: FunkitCheckoutConfig): boolean;
|
|
10
10
|
export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
|
|
11
11
|
interface AssetUsableToPayParms {
|
|
12
|
-
apiKey: string;
|
|
13
12
|
config: FunkitCheckoutConfig;
|
|
14
13
|
payerAddress: string;
|
|
15
14
|
paymentMethod: PaymentMethod;
|
|
@@ -20,16 +19,13 @@ interface AssetUsableToPayParms {
|
|
|
20
19
|
assetUsdAmount: number | null;
|
|
21
20
|
isAllowedForCheckout: boolean;
|
|
22
21
|
minUsdRequired?: number;
|
|
22
|
+
isDynamicRoutingEnabled: boolean;
|
|
23
23
|
t: TFunction;
|
|
24
24
|
}
|
|
25
|
-
export declare const isAssetUsableToPayForCheckout: ({
|
|
25
|
+
export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minUsdRequired, isDynamicRoutingEnabled, t, }: AssetUsableToPayParms) => {
|
|
26
26
|
isUsable: boolean;
|
|
27
27
|
reason: string;
|
|
28
28
|
minUsdRequired?: number;
|
|
29
29
|
};
|
|
30
30
|
export declare function getUsdAvailableAmount(targetChainId: string, assetChainId: string | undefined, assetUsdAmount: number | null | undefined, paymentMethod: PaymentMethod | undefined): number | null;
|
|
31
|
-
/**
|
|
32
|
-
* Attempt to safeguard user from irrecoverable losses
|
|
33
|
-
*/
|
|
34
|
-
export declare function isBlacklistedWithdrawAddress(address: string): boolean;
|
|
35
31
|
export {};
|
package/dist/domains/quote.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface CheckedAssetAmount {
|
|
|
22
22
|
maxTargetAssetAmount?: number;
|
|
23
23
|
minTargetAssetAmount?: number;
|
|
24
24
|
}
|
|
25
|
-
export declare function checkAssetAmount(checkoutItem: FunkitActiveCheckoutItem,
|
|
25
|
+
export declare function checkAssetAmount(checkoutItem: FunkitActiveCheckoutItem, finalEstimation: FunkitCheckoutQuoteResult, wagmiConfig: Config, walletAddress: Address, brokerage?: BrokerageDetails): Promise<CheckedAssetAmount>;
|
|
26
26
|
export interface CheckoutQuoteParams {
|
|
27
27
|
checkoutItem: FunkitActiveCheckoutItem;
|
|
28
28
|
userId: string;
|
|
@@ -2,7 +2,6 @@ import type { Address } from 'viem';
|
|
|
2
2
|
import { type FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
|
|
3
3
|
interface CheckoutQuoteParams {
|
|
4
4
|
recipientAddress: string;
|
|
5
|
-
sourceAmount: number;
|
|
6
5
|
chainId: string;
|
|
7
6
|
symbol: string;
|
|
8
7
|
targetAsset: Address | undefined;
|
|
@@ -11,7 +10,7 @@ interface CheckoutQuoteParams {
|
|
|
11
10
|
/**
|
|
12
11
|
* Simplified quoting logic used for withdrawal UI only.
|
|
13
12
|
*/
|
|
14
|
-
export declare function useWithdrawalQuote({ recipientAddress,
|
|
13
|
+
export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol, targetAsset, config, }: CheckoutQuoteParams): {
|
|
15
14
|
quoteEnabled: boolean;
|
|
16
15
|
isInstantQuoting: boolean;
|
|
17
16
|
data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fallbackDynamicConfigs from '../../__generated__/default_configs';
|
|
2
2
|
type FallbackDynamicConfigs = typeof fallbackDynamicConfigs;
|
|
3
3
|
type DynamicConfigName = keyof FallbackDynamicConfigs;
|
|
4
|
-
type DynamicConfigValue<Name extends DynamicConfigName> = FallbackDynamicConfigs[Name]['value'];
|
|
4
|
+
export type DynamicConfigValue<Name extends DynamicConfigName> = FallbackDynamicConfigs[Name]['value'];
|
|
5
5
|
export declare const useDynamicConfig: <Name extends DynamicConfigName>(name: Name) => DynamicConfigValue<Name>;
|
|
6
6
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum CheckoutModalEvent {
|
|
2
2
|
MODAL_OPENED = "fc::modal_opened",
|
|
3
|
+
MODAL_READY = "fc::modal_ready",
|
|
3
4
|
MODAL_CLOSED = "fc::modal_closed",
|
|
4
5
|
NAVIGATE_SOURCE_CHANGE = "fc::navigate::source_change",
|
|
5
6
|
NAVIGATE_SELECT_ASSET = "fc::navigate::select_asset",
|
|
@@ -23,9 +24,15 @@ export declare enum CheckoutModalEvent {
|
|
|
23
24
|
NAVIGATE_CONNECT_EXCHANGE = "fc::navigate::connect_exchange",
|
|
24
25
|
NAVIGATE_BROKERAGE_TWO_FA = "fc::navigate::brokerage_two_fa",
|
|
25
26
|
NAVIGATE_BROKERAGE_SUCCESS = "fc::navigate::brokerage_success",
|
|
27
|
+
READY_CONFIRMATION = "fc::ready::confirmation",
|
|
28
|
+
READY_INPUT_AMOUNT = "fc::ready::input_amount",
|
|
29
|
+
READY_SELECT_ASSET = "fc::ready::select_asset",
|
|
30
|
+
READY_SOURCE_CHANGE = "fc::ready::source_change",
|
|
31
|
+
BASE_QUOTE = "fc::quote::base_quote",
|
|
26
32
|
FINAL_QUOTE = "fc::quote::final_quote",
|
|
27
33
|
VIEW_TRANSACTION_BREAKDOWN = "fc::quote::view_transaction_breakdown",
|
|
28
34
|
ACCOUNT_BALANCE_SUCCESS = "fc::success::account_balance",
|
|
29
35
|
TOKEN_TRANSFER_SUCCESS = "fc::success::token_transfer",
|
|
30
|
-
BLUVO_WITHDRAWAL_COMPLETED = "fc::success::bluvo_withdrawal_completed"
|
|
36
|
+
BLUVO_WITHDRAWAL_COMPLETED = "fc::success::bluvo_withdrawal_completed",
|
|
37
|
+
QUICK_OPTION_SELECTED = "fc::input_amount::quick_option_selected"
|
|
31
38
|
}
|
|
@@ -8,5 +8,9 @@ export interface TrackEventData {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const useTrack: () => {
|
|
10
10
|
logEvent: (eventNameOrTrackEventData: CheckoutModalEvent | TrackEventData) => void;
|
|
11
|
-
|
|
11
|
+
logMeasuredEvent: (trackEventData: Omit<TrackEventData, "value">) => void;
|
|
12
|
+
startMeasuredEvent: (eventName: CheckoutModalEvent | WithdrawModalEvent) => void;
|
|
13
|
+
updateUserAsync: (userInfo: FunkitUserInfo & {
|
|
14
|
+
l2Address?: string;
|
|
15
|
+
}, apiKey: string) => Promise<import("@statsig/react-bindings").StatsigUpdateDetails>;
|
|
12
16
|
};
|
package/dist/hooks/useBluvo.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ interface DirectExecutionQuoteRequestParamsBase {
|
|
|
14
14
|
toTokenAddress: Address;
|
|
15
15
|
recipientAddress: Address;
|
|
16
16
|
senderAddress?: Address;
|
|
17
|
-
tickSize?: bigint;
|
|
18
17
|
}
|
|
19
18
|
interface RegularDEQuoteRequest extends DirectExecutionQuoteRequestParamsBase {
|
|
20
19
|
toTokenAmount: number;
|