@funkit/connect 11.1.0 → 11.3.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.
- package/CHANGELOG.md +118 -0
- package/dist/clients/{chunk-YZSO4EMO.js → chunk-2576N7PQ.js} +1 -1
- package/dist/clients/{chunk-II5CZTBC.js → chunk-3P2C436B.js} +3 -1
- package/dist/clients/{chunk-YMGRBJAS.js → chunk-46L2KJJ4.js} +14 -16
- package/dist/clients/chunk-6EU6CXNH.js +20 -0
- package/dist/clients/{chunk-2QYQNTOI.js → chunk-C45VNQXY.js} +24 -16
- package/dist/clients/{chunk-SO756ELD.js → chunk-DGBIV3ZS.js} +1 -0
- package/dist/clients/{chunk-SYFHMTUO.js → chunk-FM7SFGAV.js} +2 -2
- package/dist/clients/{chunk-EJKHMZW3.js → chunk-IYCZWLAF.js} +2 -1
- package/dist/clients/{chunk-OJZNF6EM.js → chunk-JFDRLSYM.js} +1 -1
- package/dist/clients/{chunk-QIMCURVA.js → chunk-L2XMI4EX.js} +9 -9
- package/dist/clients/{chunk-A6OXZWCN.js → chunk-QQEGNLGD.js} +1 -1
- package/dist/clients/{chunk-A44M6EAG.js → chunk-TZGKB6WY.js} +1 -1
- package/dist/clients/{chunk-C53FRCUM.js → chunk-UK64SY6N.js} +1 -1
- package/dist/clients/{chunk-WVM4ZJD2.js → chunk-VIAEAD75.js} +1 -1
- package/dist/clients/{chunk-SH3MHRHX.js → chunk-Y7WLUPTX.js} +1 -1
- package/dist/clients/{chunk-FAYBQQNB.js → chunk-YUZ3B2Q3.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/consts.d.ts +6 -0
- package/dist/clients/internal/nado/consts.js +5 -3
- package/dist/clients/internal/nado/gateway.js +2 -2
- package/dist/clients/internal/nado/hooks.js +4 -4
- package/dist/clients/internal/nado/indexer.js +2 -2
- package/dist/clients/internal/nado/typedData.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +7 -7
- package/dist/clients/internal/nado/withdrawalConfig.d.ts +4 -4
- package/dist/clients/internal/nado/withdrawalConfig.js +2 -2
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.css +43 -35
- package/dist/clients/internal/nado/withdrawalForm.d.ts +3 -0
- package/dist/clients/internal/nado/withdrawalForm.js +15 -11
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.css +43 -35
- package/dist/clients/lighter.d.ts +4 -30
- package/dist/clients/lighter.js +74 -260
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +9 -9
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +43 -35
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +8 -8
- package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +6 -0
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +2 -2
- package/dist/clients/polymarket/index.css +43 -35
- package/dist/clients/polymarket/index.js +11 -11
- package/dist/clients/polymarket/polymarket.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -1
- package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
- package/dist/components/FunCheckbox/FunCheckbox.d.ts +3 -1
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +3 -1
- package/dist/components/FunCheckoutHistory/PendingSuccessScreen.d.ts +3 -1
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -1
- package/dist/domains/checkout.d.ts +2 -1
- package/dist/domains/nado.d.ts +11 -2
- package/dist/domains/quoteMode/types.d.ts +16 -0
- package/dist/domains/relay.d.ts +0 -3
- package/dist/hooks/track/analytics/claimAnalyticsEvent.d.ts +5 -0
- package/dist/hooks/track/analytics/events.d.ts +203 -7
- package/dist/hooks/track/analytics/mappers.d.ts +17 -0
- package/dist/hooks/track/analytics/quote.d.ts +12 -0
- package/dist/hooks/track/analytics/resolveExecutionProgressContext.d.ts +40 -0
- package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +87 -2
- package/dist/hooks/track/analytics/useTrackExecutionProgressEvents.d.ts +48 -0
- package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +18 -0
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useFunkitTranslation.d.ts +5 -0
- package/dist/hooks/useIsBlacklistedWithdrawalAddress.d.ts +4 -1
- package/dist/hooks/useTokenAndChainDropdown.d.ts +4 -1
- package/dist/index.css +43 -35
- package/dist/index.js +5301 -3619
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +5 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useTrackDepositQuoteEvents.d.ts +20 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +5 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +13 -0
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +4 -3
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +9 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +3 -1
- package/dist/modals/CheckoutModal/MeldQuotes/useMeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +4 -1
- package/dist/modals/CheckoutModal/SourceChange/useBottomBarCloseLabel.d.ts +7 -0
- package/dist/modals/CheckoutModal/SourceChange/useTrackSourceChangeEvents.d.ts +10 -0
- package/dist/modals/CheckoutModal/TransferToken/useTrackDepositNotificationEvents.d.ts +6 -0
- package/dist/modals/CheckoutModal/TransferToken/useTransferTokenTracking.d.ts +9 -3
- package/dist/modals/PolymarketPerpsTransfer/recordPerpsTransfer.d.ts +40 -0
- package/dist/modals/PolymarketPerpsTransfer/useRecordPerpsTransfer.d.ts +24 -0
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +14 -92
- package/dist/modals/WithdrawalModal/LockedReceiveDisplay.d.ts +22 -0
- package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +3 -1
- package/dist/modals/WithdrawalModal/useTrackWithdrawalEvents.d.ts +1 -0
- package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +18 -1
- package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/index.d.ts +10 -2
- package/dist/providers/FunkitCheckoutContext/types.d.ts +21 -4
- package/dist/providers/FunkitStatsigProvider.d.ts +7 -0
- package/dist/utils/customer.d.ts +45 -504
- package/dist/utils/lighter.d.ts +1 -83
- package/dist/utils/signature.d.ts +1 -2
- package/dist/utils/withdrawal.d.ts +11 -1
- package/dist/wallets/walletConnectors/index.js +49 -49
- package/package.json +4 -5
- package/dist/clients/chunk-NAVU6W7V.js +0 -89
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,123 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 11.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 86b10f0: Polymarket perps ⇄ predictions transfers are now recorded, so transfer volume appears alongside deposits and withdrawals.
|
|
8
|
+
- 25ed52b: Polymarket transfer handles may now return the rail's identifier, which is then used to key the transfer record.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- e5d96c1: Centralize submitted execution analytics in a shared progress tracker.
|
|
13
|
+
- 34dced8: Improves checkout confirmation handling for wallet-balance transactions.
|
|
14
|
+
- 2863fb5: Prepares analytics to avoid duplicate progress and settlement events.
|
|
15
|
+
- e2c119b: Add `trackDepositMethodSelected` to the internal deposit analytics hook (not yet wired to any component).
|
|
16
|
+
- 3192b6c: Report brokerage selections consistently across connected and new exchange flows.
|
|
17
|
+
- 7f67517: Report payment-method selections consistently across checkout funding flows.
|
|
18
|
+
- 47f4452: Records wallet-balance deposit transaction submissions in analytics.
|
|
19
|
+
- f0b7d38: Records analytics when a deposit transaction is submitted.
|
|
20
|
+
- 9f4c677: Adds analytics when a displayed deposit quote is confirmed.
|
|
21
|
+
- 93bf78c: Adds analytics when a deposit quote is displayed.
|
|
22
|
+
- 057e064: Preserve deposit quote amounts and fee details in checkout analytics events.
|
|
23
|
+
- 37958f8: Model submitted executions with persisted analytics snapshots.
|
|
24
|
+
- b361db0: Export the Lighter account-by-index query and unstaked-fee helpers from `@funkit/connect-core`.
|
|
25
|
+
- 332d186: Support Lighter withdrawals from the new `@funkit/connect-core/clients/lighter` entry on both web and React Native.
|
|
26
|
+
- aafdbba: Lighter constants and helpers move to the `@funkit/connect-core/clients/lighter` entry.
|
|
27
|
+
- c68c3d6: Share Lighter withdrawal support from `@funkit/connect-core`.
|
|
28
|
+
- d2336bb: Lighter's bridge delay is now a shared `useLighterWithdrawalDelaySeconds` hook, and a main-account index that isn't numeric resolves as unset.
|
|
29
|
+
- faec499: Fire `fc_deposit_method_selected` when entering the Bitcoin Lightning deposit flow, and `fc_deposit_asset_selected` when it's entered by selecting BTC-on-Lightning from the Transfer Crypto chain dropdown.
|
|
30
|
+
- a5c5bed: feat(connect-core): share one Chainalysis address screen across web and React Native — withdrawals now proceed when screening returns no risk level
|
|
31
|
+
- 1b5c4b0: Keep payment-method metadata consistent across deposit analytics events.
|
|
32
|
+
- f0ae438: Persist deposit/withdrawal analytics event dedup across browser sessions instead of resetting each session.
|
|
33
|
+
- bfcfd1e: Resolve submitted execution analytics from persisted checkout history.
|
|
34
|
+
- fb189e7: Route confirmed wallet submissions through shared execution progress tracking.
|
|
35
|
+
- d21e54e: Keep withdrawal recipient screening consistent across web and React Native
|
|
36
|
+
- a6cc332: Renamed `toWithdrawalExecutionErrorCode` to `toWalletExecutionErrorCode` and its `WithdrawalExecutionErrorCode` type to `WalletExecutionErrorCode`.
|
|
37
|
+
|
|
38
|
+
Migration: rename the import — the codes (`insufficient-gas`, `switch-chain`, `generic`) and behavior are unchanged.
|
|
39
|
+
|
|
40
|
+
- 8ac640d: Tracks displayed deposit quotes during checkout.
|
|
41
|
+
- c13b6a7: Prepare nullable quote-fee analytics for polling and notification events wired in follow-up changes.
|
|
42
|
+
- f39b525: Track when deposit notifications are displayed, dismissed, or expanded.
|
|
43
|
+
- 7363b9a: Track Transfer Crypto token, chain, and address-copy interactions.
|
|
44
|
+
- ed08150: Track failed executions from persisted progress updates.
|
|
45
|
+
- 5796c54: Track the best available Meld quote across deposit amount and provider screens.
|
|
46
|
+
- 3e83583: Add `fc_modal_opened` analytics tracking.
|
|
47
|
+
- a38347e: Track submitted executions from checkout history polling.
|
|
48
|
+
- 6ab0890: Track submitted executions from displayed checkout notifications.
|
|
49
|
+
- d6caeb8: Track successful executions from persisted progress updates.
|
|
50
|
+
- 2ae5b72: Add `fc_tab_switched` analytics tracking.
|
|
51
|
+
- b1941d4: Track submitted, successful, and failed withdrawals from progress updates.
|
|
52
|
+
- 225add6: Track amount selection when users confirm a withdrawal.
|
|
53
|
+
- bfb445d: Track when users confirm a withdrawal amount.
|
|
54
|
+
- bd76c6c: Track when users open the withdrawal modal.
|
|
55
|
+
- Updated dependencies [856057c]
|
|
56
|
+
- Updated dependencies [b361db0]
|
|
57
|
+
- Updated dependencies [332d186]
|
|
58
|
+
- Updated dependencies [aafdbba]
|
|
59
|
+
- Updated dependencies [c68c3d6]
|
|
60
|
+
- Updated dependencies [d2336bb]
|
|
61
|
+
- Updated dependencies [35b64db]
|
|
62
|
+
- Updated dependencies [a5c5bed]
|
|
63
|
+
- Updated dependencies [86b10f0]
|
|
64
|
+
- Updated dependencies [a6cc332]
|
|
65
|
+
- Updated dependencies [3a6351a]
|
|
66
|
+
- @funkit/fun-relay@2.11.0
|
|
67
|
+
- @funkit/connect-core@3.0.0
|
|
68
|
+
|
|
69
|
+
## 11.2.0
|
|
70
|
+
|
|
71
|
+
### Minor Changes
|
|
72
|
+
|
|
73
|
+
- 6187382: xStock withdrawals now pin the receive token and chain to the asset being withdrawn, replacing the receive dropdown with read-only fields.
|
|
74
|
+
- 5d71640: Withdrawal source tokens can now declare an `assetClass`, and the `AssetClass` type is exported.
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- f00698e: Update withdrawal amount toggle checkbox border styles
|
|
79
|
+
- 8ec8dfa: Base the checkout amount prefill on the spendable balance (gas reserved) for native-token EXACT_IN deposits, so they no longer open above the max.
|
|
80
|
+
- 0872c5f: refactor(connect): share relay fee extraction with `@funkit/connect-core` — no consumer-facing changes
|
|
81
|
+
- 2ed588e: Add withdrawal recipient safety checks: operator blacklist and Chainalysis risk screening.
|
|
82
|
+
- a7258d9: feat: shadow-compare geo lookups against Fun's first-party endpoint, promotable via the `enable-fun-geo-primary` gate
|
|
83
|
+
- e109908: Internal refactor only — no consumer-facing change.
|
|
84
|
+
- fba0b56: Add Lighter deposit support to `@funkit/connect-rn`: external user IDs are sent verbatim and the deposit recipient resolves to the user's Lighter L2 main-account index, never the L1 wallet address.
|
|
85
|
+
- a77665e: Extract the locked receive token/chain fields into a shared component. No visual or behavior change.
|
|
86
|
+
- 7b75bdd: Internal refactor only — no consumer-facing change.
|
|
87
|
+
- 3f84fe2: Meld checkout continuation now reports whether the flow advanced when no quote is selected.
|
|
88
|
+
- 29a4818: Nado withdrawals now explain the borrowing checkbox with a tooltip.
|
|
89
|
+
- 04905cd: Nado withdrawals now include the sequencer fee in the transaction breakdown's network cost.
|
|
90
|
+
- b1ccfed: fix(connect): add nado withdraw action type
|
|
91
|
+
- d74d0d4: Nado withdrawal pending copy now sets a time expectation: "You should receive it in a few minutes."
|
|
92
|
+
- 81ade44: Tighten Nado withdrawal success copy: shorter pending subheading, no subheading when complete, and "Amount" replaces "Withdrawing"
|
|
93
|
+
- 8c8fbed: Add internal groundwork for pinning the receive token on Nado xStock withdrawals. No behavior change.
|
|
94
|
+
- 749a31c: Keep displayed and tracked quick-option amounts formatted consistently.
|
|
95
|
+
- f89ead1: The source-change bottom bar falls back to the Close label when a customer configures an unknown label key.
|
|
96
|
+
- 72f2e8f: fix(connect): preserve amount-selection attribution across input navigation
|
|
97
|
+
- f4ad7b0: feat(connect): wire fc_deposit_amount_confirmed into the InputAmount continue flow
|
|
98
|
+
- 0cb4bed: Prepare amount-confirmation analytics with consistent source and target amount estimates.
|
|
99
|
+
- 939a022: fix(connect): preserve Meld service provider through checkout state
|
|
100
|
+
- af1c56e: Track deposit asset selections made from the primary asset picker.
|
|
101
|
+
- d9b84f3: Add a second Statsig client ("Fun WHN" project) exposed via `useFunWhnStatsigClient`.
|
|
102
|
+
- d4d9153: Fix a visible border around the modal while the Swapped iframe (deposit/withdrawal) is active.
|
|
103
|
+
- 6309198: Track deposit asset selections made from the transfer-token checkout flow.
|
|
104
|
+
- Updated dependencies [8eb9f08]
|
|
105
|
+
- Updated dependencies [195843e]
|
|
106
|
+
- Updated dependencies [0872c5f]
|
|
107
|
+
- Updated dependencies [18c2f00]
|
|
108
|
+
- Updated dependencies [2ed588e]
|
|
109
|
+
- Updated dependencies [2b9f1af]
|
|
110
|
+
- Updated dependencies [a7258d9]
|
|
111
|
+
- Updated dependencies [fba0b56]
|
|
112
|
+
- Updated dependencies [c4b476d]
|
|
113
|
+
- Updated dependencies [12d5574]
|
|
114
|
+
- Updated dependencies [7110ca9]
|
|
115
|
+
- Updated dependencies [c4b476d]
|
|
116
|
+
- Updated dependencies [5d71640]
|
|
117
|
+
- @funkit/api-base@7.0.0
|
|
118
|
+
- @funkit/connect-core@2.5.0
|
|
119
|
+
- @funkit/fun-relay@2.10.1
|
|
120
|
+
|
|
3
121
|
## 11.1.0
|
|
4
122
|
|
|
5
123
|
### Minor Changes
|
|
@@ -9,10 +9,12 @@ var NADO_INDEXER_URL = "https://archive.prod.nado.xyz/v1";
|
|
|
9
9
|
var NADO_EIP712_VERIFYING_CONTRACT_ADDRESS = getAddress(
|
|
10
10
|
"0x05ec92D78ED421f3D3Ada77FFdE167106565974E"
|
|
11
11
|
);
|
|
12
|
+
var NADO_WITHDRAWAL_ACTION_TYPE = "NADO_WITHDRAWAL";
|
|
12
13
|
|
|
13
14
|
export {
|
|
14
15
|
INK_CHAIN_ID,
|
|
15
16
|
NADO_GATEWAY_URL,
|
|
16
17
|
NADO_INDEXER_URL,
|
|
17
|
-
NADO_EIP712_VERIFYING_CONTRACT_ADDRESS
|
|
18
|
+
NADO_EIP712_VERIFYING_CONTRACT_ADDRESS,
|
|
19
|
+
NADO_WITHDRAWAL_ACTION_TYPE
|
|
18
20
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
buildWithdrawCollateralV2TypedData
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2576N7PQ.js";
|
|
5
5
|
import {
|
|
6
6
|
isExpectedNadoWithdrawalFailure,
|
|
7
7
|
toNadoWithdrawalErrorMessage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VIAEAD75.js";
|
|
9
9
|
import {
|
|
10
10
|
safeBigInt
|
|
11
11
|
} from "./chunk-63XTVHO3.js";
|
|
12
12
|
import {
|
|
13
13
|
deductFlatFee,
|
|
14
14
|
toWithdrawalAmountBaseUnit
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DGBIV3ZS.js";
|
|
16
16
|
import {
|
|
17
17
|
x18ToRawBaseUnit
|
|
18
18
|
} from "./chunk-6T6URLBM.js";
|
|
@@ -20,10 +20,11 @@ import {
|
|
|
20
20
|
executeNadoWithdrawCollateralV2,
|
|
21
21
|
getNadoMaxWithdrawable,
|
|
22
22
|
getNadoTxNonce
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TZGKB6WY.js";
|
|
24
24
|
import {
|
|
25
|
-
INK_CHAIN_ID
|
|
26
|
-
|
|
25
|
+
INK_CHAIN_ID,
|
|
26
|
+
NADO_WITHDRAWAL_ACTION_TYPE
|
|
27
|
+
} from "./chunk-3P2C436B.js";
|
|
27
28
|
import {
|
|
28
29
|
NadoGatewayError,
|
|
29
30
|
NadoWithdrawalUnconfirmedError
|
|
@@ -33,12 +34,12 @@ import {
|
|
|
33
34
|
signTypedData,
|
|
34
35
|
switchChain
|
|
35
36
|
} from "./chunk-OODIKHYE.js";
|
|
36
|
-
import {
|
|
37
|
-
i18n_default
|
|
38
|
-
} from "./chunk-2QYQNTOI.js";
|
|
39
37
|
import {
|
|
40
38
|
generateClientMetadataForTokenTransfer
|
|
41
39
|
} from "./chunk-PENJ5JGH.js";
|
|
40
|
+
import {
|
|
41
|
+
i18n_default
|
|
42
|
+
} from "./chunk-C45VNQXY.js";
|
|
42
43
|
import {
|
|
43
44
|
logger
|
|
44
45
|
} from "./chunk-AHYOV7AV.js";
|
|
@@ -51,13 +52,7 @@ import {
|
|
|
51
52
|
import { isEVMAddressEquivalent } from "@funkit/utils";
|
|
52
53
|
|
|
53
54
|
// src/utils/signature.ts
|
|
54
|
-
|
|
55
|
-
if (!(error instanceof Error)) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
const regex = /user\s?rejected/gi;
|
|
59
|
-
return regex.test(error.name) || regex.test(error.message);
|
|
60
|
-
}
|
|
55
|
+
import { isSwitchChainError, isUserRejectedError } from "@funkit/connect-core";
|
|
61
56
|
|
|
62
57
|
// src/clients/internal/nado/withdrawalCallback.ts
|
|
63
58
|
var NadoWithdrawalInputError = class extends Error {
|
|
@@ -132,6 +127,9 @@ function createNadoWithdrawalCallback({
|
|
|
132
127
|
toChainId: targetChainId.toString(),
|
|
133
128
|
toTokenAddress: targetAssetAddress,
|
|
134
129
|
sourceOfFund: `balance|nado|${walletAddress}`,
|
|
130
|
+
// Attribution only — forces a separate UDA from Nado deposits so the
|
|
131
|
+
// direct executions off it are tagged as withdrawals.
|
|
132
|
+
actionType: NADO_WITHDRAWAL_ACTION_TYPE,
|
|
135
133
|
logger,
|
|
136
134
|
clientMetadata: {
|
|
137
135
|
...generateClientMetadataForTokenTransfer(),
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/utils/customer.ts
|
|
4
|
+
import {
|
|
5
|
+
useLighterAccountQuery,
|
|
6
|
+
useLighterAccountsQuery
|
|
7
|
+
} from "@funkit/connect-core";
|
|
8
|
+
import {
|
|
9
|
+
LIGHTER_TRADING_MODE,
|
|
10
|
+
getLighterAccount,
|
|
11
|
+
getLighterAccountsByL1Address,
|
|
12
|
+
useInvalidateLighterAccount,
|
|
13
|
+
useLighterAccountQuery as useLighterAccountQuery2,
|
|
14
|
+
useLighterAccountsQuery as useLighterAccountsQuery2
|
|
15
|
+
} from "@funkit/connect-core";
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
useLighterAccountQuery2 as useLighterAccountQuery,
|
|
19
|
+
useLighterAccountsQuery2 as useLighterAccountsQuery
|
|
20
|
+
};
|
|
@@ -414,14 +414,15 @@ var en_default = {
|
|
|
414
414
|
lighterSecureAddressTooltip: "You can only withdraw to your connected wallet",
|
|
415
415
|
lighterSecureTokenTooltip: "You can only receive the token you are choosing to withdraw",
|
|
416
416
|
lighterSecureChainTooltip: "Secure withdrawals are only available on Ethereum",
|
|
417
|
+
lockedReceiveTooltip: "{{tokenSymbol}} can only be withdrawn on {{chainName}}",
|
|
417
418
|
lighterFastTokenTooltip: "Fast withdrawals are only available for your USDC (Perps) balance",
|
|
418
419
|
lighterWithdrawOnChain: "Withdraw on-chain",
|
|
419
420
|
lighterL1FallbackNotice: "You've reached Lighter's secure withdrawal rate limit. You can withdraw directly on-chain instead.",
|
|
420
421
|
enableBorrowing: "Enable borrowing",
|
|
422
|
+
enableBorrowingTooltip: "Enables you to borrow assets against your existing collateral. Borrowing increases your margin usage and account risk.",
|
|
421
423
|
nado: {
|
|
422
424
|
requestedTitle: "Withdrawal Requested",
|
|
423
|
-
requestedDescription: "
|
|
424
|
-
withdrawing: "Withdrawing",
|
|
425
|
+
requestedDescription: "You should receive it in a few minutes.",
|
|
425
426
|
trackOnNado: "Track on Nado",
|
|
426
427
|
errorGeneric: "Withdrawal failed. Please try again.",
|
|
427
428
|
errorNetwork: "Can't reach Nado right now. Please try again.",
|
|
@@ -1000,14 +1001,15 @@ var es_default = {
|
|
|
1000
1001
|
lighterSecureAddressTooltip: "Solo puedes retirar a tu billetera conectada",
|
|
1001
1002
|
lighterSecureTokenTooltip: "Solo puedes recibir el token que eliges retirar",
|
|
1002
1003
|
lighterSecureChainTooltip: "Los retiros seguros solo est\xE1n disponibles en Ethereum",
|
|
1004
|
+
lockedReceiveTooltip: "{{tokenSymbol}} solo se puede retirar en {{chainName}}",
|
|
1003
1005
|
lighterFastTokenTooltip: "Los retiros r\xE1pidos solo est\xE1n disponibles para tu saldo de USDC (Perps)",
|
|
1004
1006
|
lighterWithdrawOnChain: "Retirar on-chain",
|
|
1005
1007
|
lighterL1FallbackNotice: "Has alcanzado el l\xEDmite de retiros seguros de Lighter. Puedes retirar directamente on-chain.",
|
|
1006
1008
|
enableBorrowing: "Habilitar pr\xE9stamo",
|
|
1009
|
+
enableBorrowingTooltip: "Te permite pedir prestados activos con tu colateral existente como garant\xEDa. Pedir prestado aumenta el uso de tu margen y el riesgo de tu cuenta.",
|
|
1007
1010
|
nado: {
|
|
1008
1011
|
requestedTitle: "Retiro solicitado",
|
|
1009
|
-
requestedDescription: "
|
|
1010
|
-
withdrawing: "Retirando",
|
|
1012
|
+
requestedDescription: "Deber\xEDas recibirlo en unos minutos.",
|
|
1011
1013
|
trackOnNado: "Seguir en Nado",
|
|
1012
1014
|
errorGeneric: "El retiro fall\xF3. Int\xE9ntalo nuevamente.",
|
|
1013
1015
|
errorNetwork: "No se puede conectar con Nado en este momento. Int\xE9ntalo nuevamente.",
|
|
@@ -1586,14 +1588,15 @@ var fr_default = {
|
|
|
1586
1588
|
lighterSecureAddressTooltip: "Vous ne pouvez retirer que vers votre portefeuille connect\xE9",
|
|
1587
1589
|
lighterSecureTokenTooltip: "Vous ne pouvez recevoir que le jeton que vous choisissez de retirer",
|
|
1588
1590
|
lighterSecureChainTooltip: "Les retraits s\xE9curis\xE9s ne sont disponibles que sur Ethereum",
|
|
1591
|
+
lockedReceiveTooltip: "{{tokenSymbol}} ne peut \xEAtre retir\xE9 que sur {{chainName}}",
|
|
1589
1592
|
lighterFastTokenTooltip: "Les retraits rapides ne sont disponibles que pour votre solde USDC (Perps)",
|
|
1590
1593
|
lighterWithdrawOnChain: "Retirer on-chain",
|
|
1591
1594
|
lighterL1FallbackNotice: "Vous avez atteint la limite de retraits s\xE9curis\xE9s de Lighter. Vous pouvez retirer directement on-chain.",
|
|
1592
1595
|
enableBorrowing: "Activer l'emprunt",
|
|
1596
|
+
enableBorrowingTooltip: "Vous permet d'emprunter des actifs sur votre collat\xE9ral existant. L'emprunt augmente votre utilisation de marge et le risque de votre compte.",
|
|
1593
1597
|
nado: {
|
|
1594
1598
|
requestedTitle: "Retrait demand\xE9",
|
|
1595
|
-
requestedDescription: "
|
|
1596
|
-
withdrawing: "Retrait en cours",
|
|
1599
|
+
requestedDescription: "Vous devriez le recevoir dans quelques minutes.",
|
|
1597
1600
|
trackOnNado: "Suivre sur Nado",
|
|
1598
1601
|
errorGeneric: "Le retrait a \xE9chou\xE9. Veuillez r\xE9essayer.",
|
|
1599
1602
|
errorNetwork: "Impossible de joindre Nado pour le moment. Veuillez r\xE9essayer.",
|
|
@@ -2172,14 +2175,15 @@ var ja_default = {
|
|
|
2172
2175
|
lighterSecureAddressTooltip: "\u63A5\u7D9A\u4E2D\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u306E\u307F\u51FA\u91D1\u3067\u304D\u307E\u3059",
|
|
2173
2176
|
lighterSecureTokenTooltip: "\u51FA\u91D1\u3059\u308B\u901A\u8CA8\u306E\u307F\u53D7\u3051\u53D6\u308C\u307E\u3059",
|
|
2174
2177
|
lighterSecureChainTooltip: "\u30BB\u30AD\u30E5\u30A2\u51FA\u91D1\u306F\u30A4\u30FC\u30B5\u30EA\u30A2\u30E0\u3067\u306E\u307F\u5229\u7528\u3067\u304D\u307E\u3059",
|
|
2178
|
+
lockedReceiveTooltip: "{{tokenSymbol}} \u306F {{chainName}} \u3067\u306E\u307F\u51FA\u91D1\u3067\u304D\u307E\u3059",
|
|
2175
2179
|
lighterFastTokenTooltip: "\u9AD8\u901F\u51FA\u91D1\u306FUSDC (Perps)\u6B8B\u9AD8\u3067\u306E\u307F\u5229\u7528\u3067\u304D\u307E\u3059",
|
|
2176
2180
|
lighterWithdrawOnChain: "\u30AA\u30F3\u30C1\u30A7\u30FC\u30F3\u3067\u51FA\u91D1",
|
|
2177
2181
|
lighterL1FallbackNotice: "Lighter\u306E\u30BB\u30AD\u30E5\u30A2\u51FA\u91D1\u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002\u4EE3\u308F\u308A\u306B\u30AA\u30F3\u30C1\u30A7\u30FC\u30F3\u3067\u76F4\u63A5\u51FA\u91D1\u3067\u304D\u307E\u3059\u3002",
|
|
2178
2182
|
enableBorrowing: "\u501F\u5165\u3092\u6709\u52B9\u306B\u3059\u308B",
|
|
2183
|
+
enableBorrowingTooltip: "\u65E2\u5B58\u306E\u62C5\u4FDD\u3092\u4F7F\u3063\u3066\u8CC7\u7523\u3092\u501F\u308A\u5165\u308C\u3089\u308C\u307E\u3059\u3002\u501F\u5165\u306F\u30DE\u30FC\u30B8\u30F3\u4F7F\u7528\u7387\u3068\u53E3\u5EA7\u30EA\u30B9\u30AF\u3092\u9AD8\u3081\u307E\u3059\u3002",
|
|
2179
2184
|
nado: {
|
|
2180
2185
|
requestedTitle: "\u51FA\u91D1\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3057\u307E\u3057\u305F",
|
|
2181
|
-
requestedDescription: "\
|
|
2182
|
-
withdrawing: "\u51FA\u91D1\u4E2D",
|
|
2186
|
+
requestedDescription: "\u6570\u5206\u4EE5\u5185\u306B\u53D7\u3051\u53D6\u308C\u307E\u3059\u3002",
|
|
2183
2187
|
trackOnNado: "Nado \u3067\u8FFD\u8DE1",
|
|
2184
2188
|
errorGeneric: "\u51FA\u91D1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
2185
2189
|
errorNetwork: "\u73FE\u5728 Nado \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
@@ -2758,14 +2762,15 @@ var ko_default = {
|
|
|
2758
2762
|
lighterSecureAddressTooltip: "\uC5F0\uACB0\uB41C \uC9C0\uAC11\uC73C\uB85C\uB9CC \uCD9C\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
|
|
2759
2763
|
lighterSecureTokenTooltip: "\uCD9C\uAE08\uD558\uB824\uB294 \uD1A0\uD070\uB9CC \uBC1B\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
|
|
2760
2764
|
lighterSecureChainTooltip: "\uBCF4\uC548 \uCD9C\uAE08\uC740 \uC774\uB354\uB9AC\uC6C0\uC5D0\uC11C\uB9CC \uAC00\uB2A5\uD569\uB2C8\uB2E4",
|
|
2765
|
+
lockedReceiveTooltip: "{{tokenSymbol}}\uC740(\uB294) {{chainName}}\uC5D0\uC11C\uB9CC \uCD9C\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
|
|
2761
2766
|
lighterFastTokenTooltip: "\uBE60\uB978 \uCD9C\uAE08\uC740 USDC (Perps) \uC794\uC561\uC5D0\uC11C\uB9CC \uC774\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
|
|
2762
2767
|
lighterWithdrawOnChain: "\uC628\uCCB4\uC778\uC73C\uB85C \uCD9C\uAE08",
|
|
2763
2768
|
lighterL1FallbackNotice: "Lighter\uC758 \uBCF4\uC548 \uCD9C\uAE08 \uD55C\uB3C4\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. \uB300\uC2E0 \uC628\uCCB4\uC778\uC5D0\uC11C \uC9C1\uC811 \uCD9C\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
2764
2769
|
enableBorrowing: "\uCC28\uC785 \uC0AC\uC6A9",
|
|
2770
|
+
enableBorrowingTooltip: "\uAE30\uC874 \uB2F4\uBCF4\uB97C \uC774\uC6A9\uD574 \uC790\uC0B0\uC744 \uCC28\uC785\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uCC28\uC785\uD558\uBA74 \uB9C8\uC9C4 \uC0AC\uC6A9\uB960\uACFC \uACC4\uC815 \uB9AC\uC2A4\uD06C\uAC00 \uB192\uC544\uC9D1\uB2C8\uB2E4.",
|
|
2765
2771
|
nado: {
|
|
2766
2772
|
requestedTitle: "\uCD9C\uAE08 \uC694\uCCAD\uB428",
|
|
2767
|
-
requestedDescription: "\
|
|
2768
|
-
withdrawing: "\uCD9C\uAE08 \uC911",
|
|
2773
|
+
requestedDescription: "\uBA87 \uBD84 \uC548\uC5D0 \uBC1B\uC73C\uC2E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
2769
2774
|
trackOnNado: "Nado\uC5D0\uC11C \uCD94\uC801",
|
|
2770
2775
|
errorGeneric: "\uCD9C\uAE08\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
|
|
2771
2776
|
errorNetwork: "\uD604\uC7AC Nado\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
|
|
@@ -3344,14 +3349,15 @@ var ru_default = {
|
|
|
3344
3349
|
lighterSecureAddressTooltip: "\u0412\u044B\u0432\u043E\u0434 \u0432\u043E\u0437\u043C\u043E\u0436\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u0430 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
3345
3350
|
lighterSecureTokenTooltip: "\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0442\u043E\u0442 \u0442\u043E\u043A\u0435\u043D, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0435",
|
|
3346
3351
|
lighterSecureChainTooltip: "\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0439 \u0432\u044B\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0441\u0435\u0442\u0438 Ethereum",
|
|
3352
|
+
lockedReceiveTooltip: "{{tokenSymbol}} \u043C\u043E\u0436\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0441\u0435\u0442\u0438 {{chainName}}",
|
|
3347
3353
|
lighterFastTokenTooltip: "\u0411\u044B\u0441\u0442\u0440\u044B\u0439 \u0432\u044B\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u0431\u0430\u043B\u0430\u043D\u0441\u0430 USDC (Perps)",
|
|
3348
3354
|
lighterWithdrawOnChain: "\u0412\u044B\u0432\u0435\u0441\u0442\u0438 \u0432 \u0441\u0435\u0442\u0438",
|
|
3349
3355
|
lighterL1FallbackNotice: "\u0412\u044B \u0434\u043E\u0441\u0442\u0438\u0433\u043B\u0438 \u043B\u0438\u043C\u0438\u0442\u0430 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0432\u044B\u0432\u043E\u0434\u043E\u0432 Lighter. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u0432 \u0441\u0435\u0442\u0438.",
|
|
3350
3356
|
enableBorrowing: "\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0451\u043C",
|
|
3357
|
+
enableBorrowingTooltip: "\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0437\u0430\u043D\u0438\u043C\u0430\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u044B \u043F\u043E\u0434 \u0432\u0430\u0448\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0435\u043D\u0438\u0435. \u0417\u0430\u0451\u043C \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u0430\u0440\u0436\u0438 \u0438 \u0440\u0438\u0441\u043A \u043F\u043E \u0441\u0447\u0451\u0442\u0443.",
|
|
3351
3358
|
nado: {
|
|
3352
3359
|
requestedTitle: "\u0412\u044B\u0432\u043E\u0434 \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",
|
|
3353
|
-
requestedDescription: "\u0412\
|
|
3354
|
-
withdrawing: "\u0412\u044B\u0432\u043E\u0434",
|
|
3360
|
+
requestedDescription: "\u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0438\u043D\u0443\u0442.",
|
|
3355
3361
|
trackOnNado: "\u041E\u0442\u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0432 Nado",
|
|
3356
3362
|
errorGeneric: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0432\u044B\u0432\u043E\u0434. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
|
|
3357
3363
|
errorNetwork: "\u0421\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0442 \u0441\u0432\u044F\u0437\u0438 \u0441 Nado. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
|
|
@@ -3930,14 +3936,15 @@ var tr_default = {
|
|
|
3930
3936
|
lighterSecureAddressTooltip: "Yaln\u0131zca ba\u011Fl\u0131 c\xFCzdan\u0131n\u0131za para \xE7ekebilirsiniz",
|
|
3931
3937
|
lighterSecureTokenTooltip: "Yaln\u0131zca \xE7ekmeyi se\xE7ti\u011Finiz tokeni alabilirsiniz",
|
|
3932
3938
|
lighterSecureChainTooltip: "G\xFCvenli \xE7ekimler yaln\u0131zca Ethereum'da kullan\u0131labilir",
|
|
3939
|
+
lockedReceiveTooltip: "{{tokenSymbol}} yaln\u0131zca {{chainName}} \xFCzerinden \xE7ekilebilir",
|
|
3933
3940
|
lighterFastTokenTooltip: "H\u0131zl\u0131 \xE7ekimler yaln\u0131zca USDC (Perps) bakiyeniz i\xE7in kullan\u0131labilir",
|
|
3934
3941
|
lighterWithdrawOnChain: "Zincir \xFCzerinde \xE7ek",
|
|
3935
3942
|
lighterL1FallbackNotice: "Lighter'\u0131n g\xFCvenli \xE7ekim h\u0131z s\u0131n\u0131r\u0131na ula\u015Ft\u0131n\u0131z. Bunun yerine do\u011Frudan zincir \xFCzerinden \xE7ekebilirsiniz.",
|
|
3936
3943
|
enableBorrowing: "Bor\xE7lanmay\u0131 etkinle\u015Ftir",
|
|
3944
|
+
enableBorrowingTooltip: "Mevcut teminat\u0131n\u0131z kar\u015F\u0131l\u0131\u011F\u0131nda varl\u0131k \xF6d\xFCn\xE7 alman\u0131z\u0131 sa\u011Flar. Bor\xE7lanmak, marj kullan\u0131m\u0131n\u0131z\u0131 ve hesap riskinizi art\u0131r\u0131r.",
|
|
3937
3945
|
nado: {
|
|
3938
3946
|
requestedTitle: "Para \xC7ekme Talep Edildi",
|
|
3939
|
-
requestedDescription: "
|
|
3940
|
-
withdrawing: "\xC7ekiliyor",
|
|
3947
|
+
requestedDescription: "Birka\xE7 dakika i\xE7inde alman\u0131z gerekir.",
|
|
3941
3948
|
trackOnNado: "Nado'da takip et",
|
|
3942
3949
|
errorGeneric: "Para \xE7ekme ba\u015Far\u0131s\u0131z oldu. L\xFCtfen tekrar deneyin.",
|
|
3943
3950
|
errorNetwork: "\u015Eu anda Nado'ya ula\u015F\u0131lam\u0131yor. L\xFCtfen tekrar deneyin.",
|
|
@@ -4516,14 +4523,15 @@ var zh_default = {
|
|
|
4516
4523
|
lighterSecureAddressTooltip: "\u60A8\u53EA\u80FD\u63D0\u73B0\u5230\u5DF2\u8FDE\u63A5\u7684\u94B1\u5305",
|
|
4517
4524
|
lighterSecureTokenTooltip: "\u60A8\u53EA\u80FD\u63A5\u6536\u6240\u9009\u62E9\u63D0\u73B0\u7684\u4EE3\u5E01",
|
|
4518
4525
|
lighterSecureChainTooltip: "\u5B89\u5168\u63D0\u73B0\u4EC5\u652F\u6301\u4EE5\u592A\u574A",
|
|
4526
|
+
lockedReceiveTooltip: "{{tokenSymbol}} \u4EC5\u652F\u6301\u5728 {{chainName}} \u4E0A\u63D0\u73B0",
|
|
4519
4527
|
lighterFastTokenTooltip: "\u5FEB\u901F\u63D0\u73B0\u4EC5\u652F\u6301\u60A8\u7684 USDC (Perps) \u4F59\u989D",
|
|
4520
4528
|
lighterWithdrawOnChain: "\u94FE\u4E0A\u63D0\u73B0",
|
|
4521
4529
|
lighterL1FallbackNotice: "\u60A8\u5DF2\u8FBE\u5230 Lighter \u7684\u5B89\u5168\u63D0\u73B0\u9891\u7387\u9650\u5236\u3002\u60A8\u53EF\u4EE5\u6539\u4E3A\u76F4\u63A5\u5728\u94FE\u4E0A\u63D0\u73B0\u3002",
|
|
4522
4530
|
enableBorrowing: "\u542F\u7528\u501F\u5E01",
|
|
4531
|
+
enableBorrowingTooltip: "\u5141\u8BB8\u60A8\u4EE5\u73B0\u6709\u62B5\u62BC\u54C1\u501F\u5165\u8D44\u4EA7\u3002\u501F\u5E01\u4F1A\u63D0\u9AD8\u60A8\u7684\u4FDD\u8BC1\u91D1\u4F7F\u7528\u7387\u548C\u8D26\u6237\u98CE\u9669\u3002",
|
|
4523
4532
|
nado: {
|
|
4524
4533
|
requestedTitle: "\u63D0\u73B0\u5DF2\u8BF7\u6C42",
|
|
4525
|
-
requestedDescription: "\u60A8\
|
|
4526
|
-
withdrawing: "\u63D0\u73B0\u4E2D",
|
|
4534
|
+
requestedDescription: "\u60A8\u5E94\u8BE5\u4F1A\u5728\u51E0\u5206\u949F\u5185\u6536\u5230\u3002",
|
|
4527
4535
|
trackOnNado: "\u5728 Nado \u4E0A\u8FFD\u8E2A",
|
|
4528
4536
|
errorGeneric: "\u63D0\u73B0\u5931\u8D25\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
4529
4537
|
errorNetwork: "\u76EE\u524D\u65E0\u6CD5\u8FDE\u63A5 Nado\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findSettlementForNonce,
|
|
4
4
|
getNadoWithdrawalEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JFDRLSYM.js";
|
|
6
6
|
import {
|
|
7
7
|
getNadoFeeRates,
|
|
8
8
|
getNadoMaxWithdrawable
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TZGKB6WY.js";
|
|
10
10
|
import {
|
|
11
11
|
NadoGatewayError
|
|
12
12
|
} from "./chunk-Z7HTQFEO.js";
|
|
@@ -36,8 +36,9 @@ import {
|
|
|
36
36
|
StatsigProvider,
|
|
37
37
|
useClientAsyncInit
|
|
38
38
|
} from "@statsig/react-bindings";
|
|
39
|
-
import React, { useEffect } from "react";
|
|
39
|
+
import React, { createContext, useContext, useEffect } from "react";
|
|
40
40
|
var STATSIG_CLIENT_KEY = "client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM";
|
|
41
|
+
var FunWhnStatsigContext = createContext(null);
|
|
41
42
|
|
|
42
43
|
// src/utils/statsig/checkFeatureGate.ts
|
|
43
44
|
function checkFeatureGate(name) {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
POLYMARKET_PERPS_ROUTING_ID,
|
|
4
|
+
POLYMARKET_PREDICTIONS_ROUTING_ID
|
|
5
|
+
} from "./chunk-Y7WLUPTX.js";
|
|
6
|
+
import {
|
|
7
|
+
POLYGON_USDCE,
|
|
8
|
+
PUSD_TOKEN
|
|
9
|
+
} from "./chunk-IYCZWLAF.js";
|
|
2
10
|
import {
|
|
3
11
|
FunInput,
|
|
4
12
|
FunSkeletonBlock,
|
|
@@ -11,15 +19,7 @@ import {
|
|
|
11
19
|
} from "./chunk-LUHEVXPD.js";
|
|
12
20
|
import {
|
|
13
21
|
useFunkitTranslation
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
POLYMARKET_PERPS_ROUTING_ID,
|
|
17
|
-
POLYMARKET_PREDICTIONS_ROUTING_ID
|
|
18
|
-
} from "./chunk-SH3MHRHX.js";
|
|
19
|
-
import {
|
|
20
|
-
POLYGON_USDCE,
|
|
21
|
-
PUSD_TOKEN
|
|
22
|
-
} from "./chunk-EJKHMZW3.js";
|
|
22
|
+
} from "./chunk-YUZ3B2Q3.js";
|
|
23
23
|
import {
|
|
24
24
|
logger
|
|
25
25
|
} from "./chunk-AHYOV7AV.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
VAULT_DEPOSITOR_ABI,
|
|
9
9
|
VAULT_DEPOSITOR_POLYGON,
|
|
10
10
|
createPerpsGenerateActionParams
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IYCZWLAF.js";
|
|
12
12
|
|
|
13
13
|
// src/clients/polymarket/createPolymarketDepositConfig.ts
|
|
14
14
|
import { encodeFunctionData, erc20Abi, getAddress, maxUint256 } from "viem";
|
package/dist/clients/fanatics.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
} from "./chunk-LUHEVXPD.js";
|
|
13
13
|
import {
|
|
14
14
|
useFunkitTranslation
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-YUZ3B2Q3.js";
|
|
16
|
+
import "./chunk-C45VNQXY.js";
|
|
17
17
|
import "./chunk-AHYOV7AV.js";
|
|
18
18
|
|
|
19
19
|
// src/clients/fanatics.tsx
|
|
@@ -14,3 +14,9 @@ export declare const NADO_INDEXER_URL = "https://archive.prod.nado.xyz/v1";
|
|
|
14
14
|
* signatures over (orders verify against the product address instead).
|
|
15
15
|
*/
|
|
16
16
|
export declare const NADO_EIP712_VERIFYING_CONTRACT_ADDRESS: `0x${string}`;
|
|
17
|
+
/**
|
|
18
|
+
* Attribution-only action type — generates no on-chain action. It only splits
|
|
19
|
+
* the withdrawal UDA off from the deposit UDA so backend can tell them apart.
|
|
20
|
+
* Restricted to Nado customer keys by the api-server validator.
|
|
21
|
+
*/
|
|
22
|
+
export declare const NADO_WITHDRAWAL_ACTION_TYPE = "NADO_WITHDRAWAL";
|
|
@@ -3,11 +3,13 @@ import {
|
|
|
3
3
|
INK_CHAIN_ID,
|
|
4
4
|
NADO_EIP712_VERIFYING_CONTRACT_ADDRESS,
|
|
5
5
|
NADO_GATEWAY_URL,
|
|
6
|
-
NADO_INDEXER_URL
|
|
7
|
-
|
|
6
|
+
NADO_INDEXER_URL,
|
|
7
|
+
NADO_WITHDRAWAL_ACTION_TYPE
|
|
8
|
+
} from "../../chunk-3P2C436B.js";
|
|
8
9
|
export {
|
|
9
10
|
INK_CHAIN_ID,
|
|
10
11
|
NADO_EIP712_VERIFYING_CONTRACT_ADDRESS,
|
|
11
12
|
NADO_GATEWAY_URL,
|
|
12
|
-
NADO_INDEXER_URL
|
|
13
|
+
NADO_INDEXER_URL,
|
|
14
|
+
NADO_WITHDRAWAL_ACTION_TYPE
|
|
13
15
|
};
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
getNadoFeeRates,
|
|
5
5
|
getNadoMaxWithdrawable,
|
|
6
6
|
getNadoTxNonce
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-TZGKB6WY.js";
|
|
8
|
+
import "../../chunk-3P2C436B.js";
|
|
9
9
|
import "../../chunk-WZRW6WUM.js";
|
|
10
10
|
import "../../chunk-Z7HTQFEO.js";
|
|
11
11
|
import "../../chunk-AHYOV7AV.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
useNadoFeeRates,
|
|
6
6
|
useNadoMaxWithdrawable,
|
|
7
7
|
useNadoSettlementStatus
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-FM7SFGAV.js";
|
|
9
|
+
import "../../chunk-JFDRLSYM.js";
|
|
10
|
+
import "../../chunk-TZGKB6WY.js";
|
|
11
|
+
import "../../chunk-3P2C436B.js";
|
|
12
12
|
import "../../chunk-WZRW6WUM.js";
|
|
13
13
|
import "../../chunk-Z7HTQFEO.js";
|
|
14
14
|
import "../../chunk-AHYOV7AV.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findSettlementForNonce,
|
|
4
4
|
getNadoWithdrawalEvents
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-JFDRLSYM.js";
|
|
6
|
+
import "../../chunk-3P2C436B.js";
|
|
7
7
|
import "../../chunk-WZRW6WUM.js";
|
|
8
8
|
import "../../chunk-Z7HTQFEO.js";
|
|
9
9
|
import "../../chunk-AHYOV7AV.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
WITHDRAW_COLLATERAL_V2_TYPES,
|
|
4
4
|
buildWithdrawCollateralV2TypedData
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-2576N7PQ.js";
|
|
6
|
+
import "../../chunk-3P2C436B.js";
|
|
7
7
|
export {
|
|
8
8
|
WITHDRAW_COLLATERAL_V2_TYPES,
|
|
9
9
|
buildWithdrawCollateralV2TypedData
|