@funkit/connect-rn 3.7.0 → 3.9.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 +51 -0
- package/dist/chunk-FTD4HETU.js +94 -0
- package/dist/chunk-FTD4HETU.js.map +7 -0
- package/dist/{chunk-VDKAH5Y5.js → chunk-PHUM52HD.js} +173 -64
- package/dist/chunk-PHUM52HD.js.map +7 -0
- package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterUnstakedFee.d.ts +12 -6
- package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterWithdrawal.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -1
- package/dist/clients/lighter.js +47 -86
- package/dist/clients/lighter.js.map +3 -3
- package/dist/clients/nado/index.d.ts +4 -0
- package/dist/clients/nado/index.d.ts.map +1 -0
- package/dist/clients/nado/nadoWithdrawalConfig.d.ts +38 -0
- package/dist/clients/nado/nadoWithdrawalConfig.d.ts.map +1 -0
- package/dist/clients/nado/useNadoWithdrawal.d.ts +14 -0
- package/dist/clients/nado/useNadoWithdrawal.d.ts.map +1 -0
- package/dist/clients/nado/withdrawalErrors.d.ts +9 -0
- package/dist/clients/nado/withdrawalErrors.d.ts.map +1 -0
- package/dist/clients/nado/withdrawalSubmit.d.ts +37 -0
- package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -0
- package/dist/clients/nado.d.ts +1 -0
- package/dist/clients/nado.js +417 -0
- package/dist/clients/nado.js.map +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1147 -882
- package/dist/index.js.map +4 -4
- package/dist/src/components/ReceiveAmountSummary.d.ts.map +1 -1
- package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +22 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -0
- package/dist/src/flow/useCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +32 -3
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/haptics/HapticsContext.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +9 -0
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts +1 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCompleteScreen.d.ts +16 -7
- package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoComplete.d.ts +9 -4
- package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts +4 -2
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts +6 -0
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
- package/dist/src/utils/amountGlyphs.d.ts.map +1 -1
- package/dist/src/utils/executionErrorMessage.d.ts.map +1 -1
- package/dist/src/utils/numpadInput.d.ts.map +1 -1
- package/dist/src/withdrawal/receiveDestination.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +16 -2
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +3 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts +2 -1
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -1
- package/dist/src/withdrawal/useDepositAddressWithdrawalStatus.d.ts +21 -0
- package/dist/src/withdrawal/useDepositAddressWithdrawalStatus.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -1
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-VDKAH5Y5.js.map +0 -7
- package/dist/src/components/SheetContent.d.ts +0 -25
- package/dist/src/components/SheetContent.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# @funkit/connect-rn
|
|
2
2
|
|
|
3
|
+
## 3.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e071c47: feat(connect-rn): add `submitWithdrawal`, for venues that submit the withdrawal themselves
|
|
8
|
+
- f9e3e58: feat(connect-rn): track a venue-submitted withdrawal to completion, showing it as requested until it lands
|
|
9
|
+
- 384ffee: feat(connect-rn): add `@funkit/connect-rn/clients/nado` for withdrawing USDT0 from a Nado subaccount
|
|
10
|
+
- c8a547b: fix(connect-rn): report the delivering transaction when a venue withdrawal settles cross-chain
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- db6edb4: No consumer facing changes.
|
|
15
|
+
- 7fc8dc1: The Swapped embed no longer flashes a dark panel while loading — the themed spinner now holds until the embed is ready.
|
|
16
|
+
- 7e79bfb: Fix blank card/3DS step in the Swapped deposit flow on iOS by allowing the srcdoc challenge subframe in the payment WebView.
|
|
17
|
+
- Updated dependencies [db6edb4]
|
|
18
|
+
- Updated dependencies [c8a547b]
|
|
19
|
+
- Updated dependencies [b2148be]
|
|
20
|
+
- Updated dependencies [87d5708]
|
|
21
|
+
- Updated dependencies [e671988]
|
|
22
|
+
- Updated dependencies [d0fb831]
|
|
23
|
+
- @funkit/connect-core@4.1.0
|
|
24
|
+
- @funkit/api-base@7.1.2
|
|
25
|
+
|
|
26
|
+
## 3.8.0
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- 086ac1c: Add `hideCryptoDeposit` to `FunkitConfig` to hide the built-in Crypto funding option on the Add money screen (React Native only — the web SDK does not support this option)
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 1e6df43: Lighter Fast's unstaked withdrawal fee is now always accurate to the account's current stake, and the quote waits for it before pricing.
|
|
35
|
+
- b28ba34: Brace every `if`/`else`/loop body — formatting only, no behaviour change.
|
|
36
|
+
- dae8c51: Append EIP-681 `@<chainId>` suffix to EVM deposit QR code URIs so MetaMask mobile's scanner can resolve the network
|
|
37
|
+
- 7cb4c64: Withdrawal submission and completion now have smoother screen transitions.
|
|
38
|
+
- 55551d6: fix(connect-rn): keep flow state when a step changes the sheet's sizing
|
|
39
|
+
- 838ed23: fix(connect-rn): show customer-scoped features for the current identity
|
|
40
|
+
- Updated dependencies [4b25619]
|
|
41
|
+
- Updated dependencies [84683ff]
|
|
42
|
+
- Updated dependencies [df95715]
|
|
43
|
+
- Updated dependencies [d46284d]
|
|
44
|
+
- Updated dependencies [1e6df43]
|
|
45
|
+
- Updated dependencies [1e6df43]
|
|
46
|
+
- Updated dependencies [1e6df43]
|
|
47
|
+
- Updated dependencies [b28ba34]
|
|
48
|
+
- Updated dependencies [dae8c51]
|
|
49
|
+
- Updated dependencies [2522e00]
|
|
50
|
+
- Updated dependencies [2ad0cd5]
|
|
51
|
+
- @funkit/api-base@7.1.1
|
|
52
|
+
- @funkit/connect-core@4.0.0
|
|
53
|
+
|
|
3
54
|
## 3.7.0
|
|
4
55
|
|
|
5
56
|
### Minor Changes
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import {
|
|
2
|
+
logger,
|
|
3
|
+
useFunkitIdentity
|
|
4
|
+
} from "./chunk-PHUM52HD.js";
|
|
5
|
+
|
|
6
|
+
// src/statsig/useDynamicConfig.ts
|
|
7
|
+
import {
|
|
8
|
+
useDynamicConfig as useCoreDynamicConfig
|
|
9
|
+
} from "@funkit/connect-core";
|
|
10
|
+
|
|
11
|
+
// src/geo/useUserIpInfo.ts
|
|
12
|
+
import { useUserIpInfo as useCoreUserIpInfo } from "@funkit/connect-core";
|
|
13
|
+
function useUserIpInfo() {
|
|
14
|
+
const { apiKey } = useFunkitIdentity();
|
|
15
|
+
return useCoreUserIpInfo({
|
|
16
|
+
logger,
|
|
17
|
+
apiKey,
|
|
18
|
+
enabled: true,
|
|
19
|
+
staleTime: Number.POSITIVE_INFINITY
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// src/statsig/useDynamicConfig.ts
|
|
24
|
+
var useDynamicConfig = (name, options) => {
|
|
25
|
+
const { userIpInfo } = useUserIpInfo();
|
|
26
|
+
return useCoreDynamicConfig(name, {
|
|
27
|
+
bypassCountryCode: options?.bypassCountryCode,
|
|
28
|
+
countryCode: userIpInfo?.alpha2
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/withdrawal/useSourceTokenUsdPrice.ts
|
|
33
|
+
import { getAssetPriceInfoWithFallback } from "@funkit/connect-core";
|
|
34
|
+
import { useQuery } from "@tanstack/react-query";
|
|
35
|
+
|
|
36
|
+
// src/hooks/useIsStablecoin.ts
|
|
37
|
+
import { useCallback } from "react";
|
|
38
|
+
function useIsStablecoin() {
|
|
39
|
+
const stablecoinSymbols = useDynamicConfig("stablecoinsymbols");
|
|
40
|
+
return useCallback(
|
|
41
|
+
(symbol) => stablecoinSymbols.some(
|
|
42
|
+
(stable) => symbol.toLowerCase().includes(stable.toLowerCase())
|
|
43
|
+
),
|
|
44
|
+
[stablecoinSymbols]
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// src/withdrawal/useSourceTokenUsdPrice.ts
|
|
49
|
+
var SOURCE_TOKEN_PRICE_QUERY_KEY = "sourceTokenUsdPrice";
|
|
50
|
+
var PRICE_STALE_TIME_MS = 6e4;
|
|
51
|
+
var STABLECOIN_USD_PRICE = 1;
|
|
52
|
+
function useSourceTokenUsdPrice(sourceToken) {
|
|
53
|
+
const { apiKey } = useFunkitIdentity();
|
|
54
|
+
const isStablecoin = useIsStablecoin();
|
|
55
|
+
const isStable = isStablecoin(sourceToken.symbol);
|
|
56
|
+
const { data } = useQuery({
|
|
57
|
+
queryKey: [
|
|
58
|
+
SOURCE_TOKEN_PRICE_QUERY_KEY,
|
|
59
|
+
apiKey,
|
|
60
|
+
sourceToken.chainId,
|
|
61
|
+
sourceToken.address
|
|
62
|
+
],
|
|
63
|
+
queryFn: async () => {
|
|
64
|
+
const info = await getAssetPriceInfoWithFallback({
|
|
65
|
+
chainId: sourceToken.chainId,
|
|
66
|
+
assetTokenAddress: sourceToken.address,
|
|
67
|
+
apiKey,
|
|
68
|
+
logger
|
|
69
|
+
});
|
|
70
|
+
const unitPrice = info.unitPrice;
|
|
71
|
+
if (!Number.isFinite(unitPrice) || unitPrice <= 0) {
|
|
72
|
+
logger.warn("connect-rn:withdrawal:unusable_source_price", {
|
|
73
|
+
chainId: sourceToken.chainId,
|
|
74
|
+
address: sourceToken.address,
|
|
75
|
+
unitPrice
|
|
76
|
+
});
|
|
77
|
+
return 0;
|
|
78
|
+
}
|
|
79
|
+
return unitPrice;
|
|
80
|
+
},
|
|
81
|
+
enabled: !!apiKey && !isStable,
|
|
82
|
+
staleTime: PRICE_STALE_TIME_MS,
|
|
83
|
+
retry: false
|
|
84
|
+
});
|
|
85
|
+
return isStable ? STABLECOIN_USD_PRICE : data ?? 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export {
|
|
89
|
+
useUserIpInfo,
|
|
90
|
+
useDynamicConfig,
|
|
91
|
+
useIsStablecoin,
|
|
92
|
+
useSourceTokenUsdPrice
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=chunk-FTD4HETU.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/statsig/useDynamicConfig.ts", "../src/geo/useUserIpInfo.ts", "../src/withdrawal/useSourceTokenUsdPrice.ts", "../src/hooks/useIsStablecoin.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n type DynamicConfigName,\n type DynamicConfigValue,\n useDynamicConfig as useCoreDynamicConfig,\n} from '@funkit/connect-core'\n\nimport { useUserIpInfo } from '../geo/useUserIpInfo'\n\n// RN counterpart of `@funkit/connect`'s `hooks/statsig/useDynamicConfig`. The\n// core hook takes `countryCode` as a parameter so it stays platform-agnostic;\n// this wrapper threads the user's IP-derived `alpha2` (Moonpay/ipapi) so\n// country-conditional variant configs (e.g. `enableswappeddeposit`) resolve\n// against the real region instead of falling to their default branch.\nexport type { DynamicConfigName, DynamicConfigValue }\n\nexport const useDynamicConfig = <Name extends DynamicConfigName>(\n name: Name,\n options?: {\n bypassCountryCode?: boolean\n },\n): DynamicConfigValue<Name> => {\n const { userIpInfo } = useUserIpInfo()\n return useCoreDynamicConfig(name, {\n bypassCountryCode: options?.bypassCountryCode,\n countryCode: userIpInfo?.alpha2,\n })\n}\n", "import { useUserIpInfo as useCoreUserIpInfo } from '@funkit/connect-core'\n\nimport { useFunkitIdentity } from '../identity/IdentityContext'\nimport { logger } from '../logging/logger'\n\n// Re-exported so existing RN importers (isCountryBlocked, the flow hooks, tests)\n// keep their type source unchanged after the fetch logic moved to core.\nexport type {\n FunkitUserIpInfo,\n UseUserIpInfoResult,\n} from '@funkit/connect-core'\n\n// Thin RN wrapper over the shared core `useUserIpInfo` (V1 PR13 moved the\n// Moonpay\u2192ipapi fetch logic there so web and RN don't duplicate it). RN is\n// login-agnostic, so the lookup always runs (`enabled: true`); web's wrapper\n// gates on `isUserLoggedIn` instead. `apiKey` lets the core hook reach the\n// first-party geo endpoint; the chain it picks is Statsig-driven.\nexport function useUserIpInfo() {\n const { apiKey } = useFunkitIdentity()\n\n // Login-agnostic + session-stable: always run, never go stale.\n return useCoreUserIpInfo({\n logger,\n apiKey,\n enabled: true,\n staleTime: Number.POSITIVE_INFINITY,\n })\n}\n", "import { getAssetPriceInfoWithFallback } from '@funkit/connect-core'\nimport { useQuery } from '@tanstack/react-query'\n\nimport type { WithdrawalToken } from '../flow/withdrawalFlowConfig'\nimport { useIsStablecoin } from '../hooks/useIsStablecoin'\nimport { useFunkitIdentity } from '../identity/IdentityContext'\nimport { logger } from '../logging/logger'\n\nconst SOURCE_TOKEN_PRICE_QUERY_KEY = 'sourceTokenUsdPrice'\n\n/** Long enough that typing doesn't refetch, short enough to stay honest. */\nconst PRICE_STALE_TIME_MS = 60_000\n\n/** What a dollar stablecoin is worth, without asking anyone. */\nconst STABLECOIN_USD_PRICE = 1\n\n/**\n * Spot USD price of the source token, for the USD floor and ceiling the host\n * configures (`getMinWithdrawalUSD` / `getMaxWithdrawalUSD`).\n *\n * A dollar stablecoin is priced from its symbol and never fetched, as web's\n * `useAssetAddressPrice` does \u2014 it is the common withdrawal source, and the\n * amount screen was waiting on a round trip to be told a dollar is a dollar.\n *\n * `0` means \"unknown\", which is what the core validator reads as \"no price\" \u2014\n * so a failed or in-flight lookup leaves the USD limits inert rather than\n * judging an amount against a made-up rate. Per-token limits and the balance\n * check are unaffected either way.\n *\n * Not every source has a price: Lighter's L2 assets are addressed by index, not\n * by an ERC-20 funkit's price API knows, so that lookup 404s and core's Relay\n * fallback is what prices them.\n */\nexport function useSourceTokenUsdPrice(sourceToken: WithdrawalToken): number {\n const { apiKey } = useFunkitIdentity()\n const isStablecoin = useIsStablecoin()\n const isStable = isStablecoin(sourceToken.symbol)\n\n const { data } = useQuery({\n queryKey: [\n SOURCE_TOKEN_PRICE_QUERY_KEY,\n apiKey,\n sourceToken.chainId,\n sourceToken.address,\n ],\n queryFn: async () => {\n const info = await getAssetPriceInfoWithFallback({\n chainId: sourceToken.chainId,\n assetTokenAddress: sourceToken.address,\n apiKey,\n logger,\n })\n const unitPrice = info.unitPrice\n if (!Number.isFinite(unitPrice) || unitPrice <= 0) {\n // Reported here, not on read: a cached bad price would otherwise warn\n // on every render. A non-positive price would silently scale every USD\n // limit to nothing.\n logger.warn('connect-rn:withdrawal:unusable_source_price', {\n chainId: sourceToken.chainId,\n address: sourceToken.address,\n unitPrice,\n })\n return 0\n }\n return unitPrice\n },\n enabled: !!apiKey && !isStable,\n staleTime: PRICE_STALE_TIME_MS,\n retry: false,\n })\n\n return isStable ? STABLECOIN_USD_PRICE : (data ?? 0)\n}\n", "import { useCallback } from 'react'\nimport { useDynamicConfig } from '../statsig/useDynamicConfig'\n\nexport type IsStablecoinFn = (symbol: string) => boolean\n\nexport function useIsStablecoin(): IsStablecoinFn {\n const stablecoinSymbols = useDynamicConfig('stablecoinsymbols')\n return useCallback(\n (symbol: string) =>\n stablecoinSymbols.some((stable) =>\n symbol.toLowerCase().includes(stable.toLowerCase()),\n ),\n [stablecoinSymbols],\n )\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;AAAA;AAAA,EAGE,oBAAoB;AAAA,OACf;;;ACJP,SAAS,iBAAiB,yBAAyB;AAiB5C,SAAS,gBAAgB;AAC9B,QAAM,EAAE,OAAO,IAAI,kBAAkB;AAGrC,SAAO,kBAAkB;AAAA,IACvB;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,WAAW,OAAO;AAAA,EACpB,CAAC;AACH;;;ADZO,IAAM,mBAAmB,CAC9B,MACA,YAG6B;AAC7B,QAAM,EAAE,WAAW,IAAI,cAAc;AACrC,SAAO,qBAAqB,MAAM;AAAA,IAChC,mBAAmB,SAAS;AAAA,IAC5B,aAAa,YAAY;AAAA,EAC3B,CAAC;AACH;;;AE1BA,SAAS,qCAAqC;AAC9C,SAAS,gBAAgB;;;ACDzB,SAAS,mBAAmB;AAKrB,SAAS,kBAAkC;AAChD,QAAM,oBAAoB,iBAAiB,mBAAmB;AAC9D,SAAO;AAAA,IACL,CAAC,WACC,kBAAkB;AAAA,MAAK,CAAC,WACtB,OAAO,YAAY,EAAE,SAAS,OAAO,YAAY,CAAC;AAAA,IACpD;AAAA,IACF,CAAC,iBAAiB;AAAA,EACpB;AACF;;;ADNA,IAAM,+BAA+B;AAGrC,IAAM,sBAAsB;AAG5B,IAAM,uBAAuB;AAmBtB,SAAS,uBAAuB,aAAsC;AAC3E,QAAM,EAAE,OAAO,IAAI,kBAAkB;AACrC,QAAM,eAAe,gBAAgB;AACrC,QAAM,WAAW,aAAa,YAAY,MAAM;AAEhD,QAAM,EAAE,KAAK,IAAI,SAAS;AAAA,IACxB,UAAU;AAAA,MACR;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ,YAAY;AAAA,IACd;AAAA,IACA,SAAS,YAAY;AACnB,YAAM,OAAO,MAAM,8BAA8B;AAAA,QAC/C,SAAS,YAAY;AAAA,QACrB,mBAAmB,YAAY;AAAA,QAC/B;AAAA,QACA;AAAA,MACF,CAAC;AACD,YAAM,YAAY,KAAK;AACvB,UAAI,CAAC,OAAO,SAAS,SAAS,KAAK,aAAa,GAAG;AAIjD,eAAO,KAAK,+CAA+C;AAAA,UACzD,SAAS,YAAY;AAAA,UACrB,SAAS,YAAY;AAAA,UACrB;AAAA,QACF,CAAC;AACD,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT;AAAA,IACA,SAAS,CAAC,CAAC,UAAU,CAAC;AAAA,IACtB,WAAW;AAAA,IACX,OAAO;AAAA,EACT,CAAC;AAED,SAAO,WAAW,uBAAwB,QAAQ;AACpD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,3 +1,64 @@
|
|
|
1
|
+
// src/identity/IdentityContext.tsx
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import { zeroAddress } from "viem";
|
|
4
|
+
|
|
5
|
+
// src/utils/customers.ts
|
|
6
|
+
import { LIGHTERXYZ_API_KEY, MALLARD_API_KEY } from "@funkit/api-base";
|
|
7
|
+
function isMallardApiKey(apiKey) {
|
|
8
|
+
return apiKey === MALLARD_API_KEY;
|
|
9
|
+
}
|
|
10
|
+
function isLighterxyzApiKey(apiKey) {
|
|
11
|
+
return apiKey === LIGHTERXYZ_API_KEY;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// src/identity/IdentityContext.tsx
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
function generateSyntheticUserId(apiKey, externalUserId) {
|
|
17
|
+
if (isMallardApiKey(apiKey) || isLighterxyzApiKey(apiKey)) {
|
|
18
|
+
return externalUserId;
|
|
19
|
+
}
|
|
20
|
+
return `${apiKey}|${externalUserId}`;
|
|
21
|
+
}
|
|
22
|
+
var UNSET_WALLET_ADDRESS = "0x";
|
|
23
|
+
var NON_WALLET_ADDRESSES = [UNSET_WALLET_ADDRESS, zeroAddress];
|
|
24
|
+
function isUsableWalletAddress(address) {
|
|
25
|
+
if (!address) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
const lowercased = address.toLowerCase();
|
|
29
|
+
return !NON_WALLET_ADDRESSES.some(
|
|
30
|
+
(nonWallet) => nonWallet.toLowerCase() === lowercased
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function resolveFunkitIdentity(config, walletAddress) {
|
|
34
|
+
const address = walletAddress || UNSET_WALLET_ADDRESS;
|
|
35
|
+
const userId = config.externalUserId ? generateSyntheticUserId(config.apiKey, config.externalUserId) : address;
|
|
36
|
+
return {
|
|
37
|
+
apiKey: config.apiKey,
|
|
38
|
+
userId,
|
|
39
|
+
walletAddress: address,
|
|
40
|
+
loginType: config.loginType,
|
|
41
|
+
prefillFiatEmail: config.prefillFiatEmail,
|
|
42
|
+
hideCryptoDeposit: config.hideCryptoDeposit ?? false
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var FunkitIdentityContext = createContext(null);
|
|
46
|
+
function FunkitIdentityProvider({
|
|
47
|
+
identity,
|
|
48
|
+
children
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ jsx(FunkitIdentityContext.Provider, { value: identity, children });
|
|
51
|
+
}
|
|
52
|
+
function useFunkitIdentity() {
|
|
53
|
+
const identity = useContext(FunkitIdentityContext);
|
|
54
|
+
if (identity == null) {
|
|
55
|
+
throw new Error(
|
|
56
|
+
"useFunkitIdentity must be used within a <FunkitIdentityProvider> (mounted by <FunkitProvider>)"
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
return identity;
|
|
60
|
+
}
|
|
61
|
+
|
|
1
62
|
// src/logging/logger.ts
|
|
2
63
|
import { FunLogger } from "@funkit/connect-core";
|
|
3
64
|
|
|
@@ -27,19 +88,27 @@ function serializeValue(value) {
|
|
|
27
88
|
function createSafeJsonReplacer() {
|
|
28
89
|
const ancestors = [];
|
|
29
90
|
return function(_key, value) {
|
|
30
|
-
if (typeof value === "bigint")
|
|
91
|
+
if (typeof value === "bigint") {
|
|
92
|
+
return value.toString();
|
|
93
|
+
}
|
|
31
94
|
if (typeof value === "function") {
|
|
32
95
|
return `[Function] ${value.name || "anonymous"}`;
|
|
33
96
|
}
|
|
34
97
|
if (typeof value === "symbol") {
|
|
35
98
|
return `[Symbol] ${value.description ?? ""}`;
|
|
36
99
|
}
|
|
37
|
-
if (value === null || typeof value !== "object")
|
|
38
|
-
|
|
100
|
+
if (value === null || typeof value !== "object") {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
if ("$$typeof" in value) {
|
|
104
|
+
return "[React]";
|
|
105
|
+
}
|
|
39
106
|
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {
|
|
40
107
|
ancestors.pop();
|
|
41
108
|
}
|
|
42
|
-
if (ancestors.includes(value))
|
|
109
|
+
if (ancestors.includes(value)) {
|
|
110
|
+
return "[Circular]";
|
|
111
|
+
}
|
|
43
112
|
ancestors.push(value);
|
|
44
113
|
return value;
|
|
45
114
|
};
|
|
@@ -146,64 +215,6 @@ var logger = new FunLogger(
|
|
|
146
215
|
})
|
|
147
216
|
);
|
|
148
217
|
|
|
149
|
-
// src/identity/IdentityContext.tsx
|
|
150
|
-
import { createContext, useContext } from "react";
|
|
151
|
-
import { zeroAddress } from "viem";
|
|
152
|
-
|
|
153
|
-
// src/utils/customers.ts
|
|
154
|
-
import { LIGHTERXYZ_API_KEY, MALLARD_API_KEY } from "@funkit/api-base";
|
|
155
|
-
function isMallardApiKey(apiKey) {
|
|
156
|
-
return apiKey === MALLARD_API_KEY;
|
|
157
|
-
}
|
|
158
|
-
function isLighterxyzApiKey(apiKey) {
|
|
159
|
-
return apiKey === LIGHTERXYZ_API_KEY;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// src/identity/IdentityContext.tsx
|
|
163
|
-
import { jsx } from "react/jsx-runtime";
|
|
164
|
-
function generateSyntheticUserId(apiKey, externalUserId) {
|
|
165
|
-
if (isMallardApiKey(apiKey) || isLighterxyzApiKey(apiKey)) {
|
|
166
|
-
return externalUserId;
|
|
167
|
-
}
|
|
168
|
-
return `${apiKey}|${externalUserId}`;
|
|
169
|
-
}
|
|
170
|
-
var UNSET_WALLET_ADDRESS = "0x";
|
|
171
|
-
var NON_WALLET_ADDRESSES = [UNSET_WALLET_ADDRESS, zeroAddress];
|
|
172
|
-
function isUsableWalletAddress(address) {
|
|
173
|
-
if (!address) return false;
|
|
174
|
-
const lowercased = address.toLowerCase();
|
|
175
|
-
return !NON_WALLET_ADDRESSES.some(
|
|
176
|
-
(nonWallet) => nonWallet.toLowerCase() === lowercased
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
function resolveFunkitIdentity(config, walletAddress) {
|
|
180
|
-
const address = walletAddress || UNSET_WALLET_ADDRESS;
|
|
181
|
-
const userId = config.externalUserId ? generateSyntheticUserId(config.apiKey, config.externalUserId) : address;
|
|
182
|
-
return {
|
|
183
|
-
apiKey: config.apiKey,
|
|
184
|
-
userId,
|
|
185
|
-
walletAddress: address,
|
|
186
|
-
loginType: config.loginType,
|
|
187
|
-
prefillFiatEmail: config.prefillFiatEmail
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
var FunkitIdentityContext = createContext(null);
|
|
191
|
-
function FunkitIdentityProvider({
|
|
192
|
-
identity,
|
|
193
|
-
children
|
|
194
|
-
}) {
|
|
195
|
-
return /* @__PURE__ */ jsx(FunkitIdentityContext.Provider, { value: identity, children });
|
|
196
|
-
}
|
|
197
|
-
function useFunkitIdentity() {
|
|
198
|
-
const identity = useContext(FunkitIdentityContext);
|
|
199
|
-
if (identity == null) {
|
|
200
|
-
throw new Error(
|
|
201
|
-
"useFunkitIdentity must be used within a <FunkitIdentityProvider> (mounted by <FunkitProvider>)"
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
return identity;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
218
|
// src/providers/FunkitI18nProvider.tsx
|
|
208
219
|
import {
|
|
209
220
|
createContext as createContext2,
|
|
@@ -302,6 +313,7 @@ var en_default = {
|
|
|
302
313
|
detected: "Wallet detected",
|
|
303
314
|
notFound: "No wallet found",
|
|
304
315
|
paste: "Paste",
|
|
316
|
+
requested: "Withdrawal Requested",
|
|
305
317
|
title: "Withdraw {{amount}}",
|
|
306
318
|
useConnected: "Use Connected",
|
|
307
319
|
withdrawNow: "Withdraw Now",
|
|
@@ -356,6 +368,17 @@ var en_default = {
|
|
|
356
368
|
methodSecure: "Native Bridge",
|
|
357
369
|
secureDisclaimer: "All tokens \xB7 Ethereum chain only \xB7 {{delay}}",
|
|
358
370
|
secureFallbackDelay: "60+ minutes"
|
|
371
|
+
},
|
|
372
|
+
withdrawNado: {
|
|
373
|
+
errorAmountTooLow: "Amount is too low to cover the Nado withdrawal fee.",
|
|
374
|
+
errorBalanceChanged: "Your withdrawable balance changed. Tap Max and try again.",
|
|
375
|
+
errorInvalidNonce: "This withdrawal request expired. Please try again.",
|
|
376
|
+
errorNetwork: "Can't reach Nado right now. Please try again.",
|
|
377
|
+
errorNoPriorDeposit: "Deposit to Nado before withdrawing.",
|
|
378
|
+
errorRateLimited: "Too many requests. Please wait a moment and try again.",
|
|
379
|
+
errorSignerMismatch: "Switch back to the wallet that owns this Nado account to withdraw.",
|
|
380
|
+
errorUnconfirmed: "We couldn't confirm your withdrawal. Check your Nado balance before trying again.",
|
|
381
|
+
errorWithdrawRisk: "Nado's 24-hour withdrawal limit was reached. Please try again later."
|
|
359
382
|
}
|
|
360
383
|
};
|
|
361
384
|
|
|
@@ -446,6 +469,7 @@ var es_default = {
|
|
|
446
469
|
detected: "Cartera detectada",
|
|
447
470
|
notFound: "No se encontr\xF3 ninguna cartera",
|
|
448
471
|
paste: "Pegar",
|
|
472
|
+
requested: "Retiro solicitado",
|
|
449
473
|
title: "Retirar {{amount}}",
|
|
450
474
|
useConnected: "Usar conectada",
|
|
451
475
|
withdrawNow: "Retirar ahora",
|
|
@@ -500,6 +524,17 @@ var es_default = {
|
|
|
500
524
|
methodSecure: "Puente Nativo",
|
|
501
525
|
secureDisclaimer: "Todos los tokens \xB7 Solo cadena Ethereum \xB7 {{delay}}",
|
|
502
526
|
secureFallbackDelay: "60+ minutos"
|
|
527
|
+
},
|
|
528
|
+
withdrawNado: {
|
|
529
|
+
errorAmountTooLow: "El monto es demasiado bajo para cubrir la comisi\xF3n de retiro de Nado.",
|
|
530
|
+
errorBalanceChanged: "Tu saldo retirable cambi\xF3. Toca M\xE1x e int\xE9ntalo nuevamente.",
|
|
531
|
+
errorInvalidNonce: "Esta solicitud de retiro expir\xF3. Int\xE9ntalo nuevamente.",
|
|
532
|
+
errorNetwork: "No se puede conectar con Nado en este momento. Int\xE9ntalo nuevamente.",
|
|
533
|
+
errorNoPriorDeposit: "Deposita en Nado antes de retirar.",
|
|
534
|
+
errorRateLimited: "Demasiadas solicitudes. Espera un momento e int\xE9ntalo nuevamente.",
|
|
535
|
+
errorSignerMismatch: "Vuelve a la billetera propietaria de esta cuenta de Nado para retirar.",
|
|
536
|
+
errorUnconfirmed: "No pudimos confirmar tu retiro. Revisa tu saldo de Nado antes de volver a intentarlo.",
|
|
537
|
+
errorWithdrawRisk: "Se alcanz\xF3 el l\xEDmite de retiro de 24 horas de Nado. Int\xE9ntalo m\xE1s tarde."
|
|
503
538
|
}
|
|
504
539
|
};
|
|
505
540
|
|
|
@@ -590,6 +625,7 @@ var fr_default = {
|
|
|
590
625
|
detected: "Portefeuille d\xE9tect\xE9",
|
|
591
626
|
notFound: "Aucun portefeuille trouv\xE9",
|
|
592
627
|
paste: "Coller",
|
|
628
|
+
requested: "Retrait demand\xE9",
|
|
593
629
|
title: "Retirer {{amount}}",
|
|
594
630
|
useConnected: "Utiliser le connect\xE9",
|
|
595
631
|
withdrawNow: "Retirer maintenant",
|
|
@@ -644,6 +680,17 @@ var fr_default = {
|
|
|
644
680
|
methodSecure: "Pont natif",
|
|
645
681
|
secureDisclaimer: "Tous les tokens \xB7 Cha\xEEne Ethereum uniquement \xB7 {{delay}}",
|
|
646
682
|
secureFallbackDelay: "60+ minutes"
|
|
683
|
+
},
|
|
684
|
+
withdrawNado: {
|
|
685
|
+
errorAmountTooLow: "Le montant est trop faible pour couvrir les frais de retrait Nado.",
|
|
686
|
+
errorBalanceChanged: "Votre solde retirable a chang\xE9. Appuyez sur Max et r\xE9essayez.",
|
|
687
|
+
errorInvalidNonce: "Cette demande de retrait a expir\xE9. Veuillez r\xE9essayer.",
|
|
688
|
+
errorNetwork: "Impossible de joindre Nado pour le moment. Veuillez r\xE9essayer.",
|
|
689
|
+
errorNoPriorDeposit: "D\xE9posez sur Nado avant de retirer.",
|
|
690
|
+
errorRateLimited: "Trop de requ\xEAtes. Veuillez patienter un instant et r\xE9essayer.",
|
|
691
|
+
errorSignerMismatch: "Revenez au portefeuille propri\xE9taire de ce compte Nado pour retirer.",
|
|
692
|
+
errorUnconfirmed: "Nous n'avons pas pu confirmer votre retrait. V\xE9rifiez votre solde Nado avant de r\xE9essayer.",
|
|
693
|
+
errorWithdrawRisk: "La limite de retrait sur 24 heures de Nado a \xE9t\xE9 atteinte. Veuillez r\xE9essayer plus tard."
|
|
647
694
|
}
|
|
648
695
|
};
|
|
649
696
|
|
|
@@ -732,6 +779,7 @@ var ja_default = {
|
|
|
732
779
|
detected: "\u30A6\u30A9\u30EC\u30C3\u30C8\u3092\u691C\u51FA\u3057\u307E\u3057\u305F",
|
|
733
780
|
notFound: "\u30A6\u30A9\u30EC\u30C3\u30C8\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
734
781
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
782
|
+
requested: "\u51FA\u91D1\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3057\u307E\u3057\u305F",
|
|
735
783
|
title: "{{amount}} \u3092\u51FA\u91D1",
|
|
736
784
|
useConnected: "\u63A5\u7D9A\u4E2D\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u3092\u4F7F\u3046",
|
|
737
785
|
withdrawNow: "\u4ECA\u3059\u3050\u51FA\u91D1",
|
|
@@ -786,6 +834,17 @@ var ja_default = {
|
|
|
786
834
|
methodSecure: "\u30CD\u30A4\u30C6\u30A3\u30D6\u30D6\u30EA\u30C3\u30B8",
|
|
787
835
|
secureDisclaimer: "\u5168\u30C8\u30FC\u30AF\u30F3 \xB7 \u30A4\u30FC\u30B5\u30EA\u30A2\u30E0\u30C1\u30A7\u30FC\u30F3\u306E\u307F \xB7 {{delay}}",
|
|
788
836
|
secureFallbackDelay: "60\u5206\u4EE5\u4E0A"
|
|
837
|
+
},
|
|
838
|
+
withdrawNado: {
|
|
839
|
+
errorAmountTooLow: "\u91D1\u984D\u304C\u5C11\u306A\u3059\u304E\u3066 Nado \u306E\u51FA\u91D1\u624B\u6570\u6599\u3092\u652F\u6255\u3048\u307E\u305B\u3093\u3002",
|
|
840
|
+
errorBalanceChanged: "\u51FA\u91D1\u53EF\u80FD\u6B8B\u9AD8\u304C\u5909\u308F\u308A\u307E\u3057\u305F\u3002\u300C\u6700\u5927\u300D\u3092\u62BC\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
841
|
+
errorInvalidNonce: "\u3053\u306E\u51FA\u91D1\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u671F\u9650\u5207\u308C\u3067\u3059\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
842
|
+
errorNetwork: "\u73FE\u5728 Nado \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
843
|
+
errorNoPriorDeposit: "\u51FA\u91D1\u3059\u308B\u524D\u306B Nado \u3078\u5165\u91D1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
844
|
+
errorRateLimited: "\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u591A\u3059\u304E\u307E\u3059\u3002\u3057\u3070\u3089\u304F\u5F85\u3063\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
845
|
+
errorSignerMismatch: "\u51FA\u91D1\u3059\u308B\u306B\u306F\u3001\u3053\u306E Nado \u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6240\u6709\u3059\u308B\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u5207\u308A\u66FF\u3048\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
846
|
+
errorUnconfirmed: "\u51FA\u91D1\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u524D\u306B Nado \u306E\u6B8B\u9AD8\u3092\u3054\u78BA\u8A8D\u304F\u3060\u3055\u3044\u3002",
|
|
847
|
+
errorWithdrawRisk: "Nado \u306E 24 \u6642\u9593\u51FA\u91D1\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"
|
|
789
848
|
}
|
|
790
849
|
};
|
|
791
850
|
|
|
@@ -874,6 +933,7 @@ var ko_default = {
|
|
|
874
933
|
detected: "\uC9C0\uAC11 \uD655\uC778\uB428",
|
|
875
934
|
notFound: "\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C",
|
|
876
935
|
paste: "\uBD99\uC5EC\uB123\uAE30",
|
|
936
|
+
requested: "\uCD9C\uAE08 \uC694\uCCAD\uB428",
|
|
877
937
|
title: "{{amount}} \uCD9C\uAE08",
|
|
878
938
|
useConnected: "\uC5F0\uACB0\uB41C \uC9C0\uAC11 \uC0AC\uC6A9",
|
|
879
939
|
withdrawNow: "\uC9C0\uAE08 \uCD9C\uAE08",
|
|
@@ -928,6 +988,17 @@ var ko_default = {
|
|
|
928
988
|
methodSecure: "\uB124\uC774\uD2F0\uBE0C \uBE0C\uB9AC\uC9C0",
|
|
929
989
|
secureDisclaimer: "\uBAA8\uB4E0 \uD1A0\uD070 \xB7 \uC774\uB354\uB9AC\uC6C0 \uCCB4\uC778\uB9CC \xB7 {{delay}}",
|
|
930
990
|
secureFallbackDelay: "60\uBD84 \uC774\uC0C1"
|
|
991
|
+
},
|
|
992
|
+
withdrawNado: {
|
|
993
|
+
errorAmountTooLow: "\uAE08\uC561\uC774 \uB108\uBB34 \uC801\uC5B4 Nado \uCD9C\uAE08 \uC218\uC218\uB8CC\uB97C \uCDA9\uB2F9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
994
|
+
errorBalanceChanged: "\uCD9C\uAE08 \uAC00\uB2A5 \uC794\uC561\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uCD5C\uB300\uB97C \uB204\uB978 \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
|
|
995
|
+
errorInvalidNonce: "\uC774 \uCD9C\uAE08 \uC694\uCCAD\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
|
|
996
|
+
errorNetwork: "\uD604\uC7AC Nado\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
|
|
997
|
+
errorNoPriorDeposit: "\uCD9C\uAE08\uD558\uAE30 \uC804\uC5D0 Nado\uC5D0 \uC785\uAE08\uD558\uC138\uC694.",
|
|
998
|
+
errorRateLimited: "\uC694\uCCAD\uC774 \uB108\uBB34 \uB9CE\uC2B5\uB2C8\uB2E4. \uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
|
|
999
|
+
errorSignerMismatch: "\uCD9C\uAE08\uD558\uB824\uBA74 \uC774 Nado \uACC4\uC815\uC744 \uC18C\uC720\uD55C \uC9C0\uAC11\uC73C\uB85C \uB2E4\uC2DC \uC804\uD658\uD558\uC138\uC694.",
|
|
1000
|
+
errorUnconfirmed: "\uCD9C\uAE08\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAE30 \uC804\uC5D0 Nado \uC794\uC561\uC744 \uD655\uC778\uD558\uC138\uC694.",
|
|
1001
|
+
errorWithdrawRisk: "Nado\uC758 24\uC2DC\uAC04 \uCD9C\uAE08 \uD55C\uB3C4\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."
|
|
931
1002
|
}
|
|
932
1003
|
};
|
|
933
1004
|
|
|
@@ -1019,6 +1090,7 @@ var ru_default = {
|
|
|
1019
1090
|
detected: "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D",
|
|
1020
1091
|
notFound: "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D",
|
|
1021
1092
|
paste: "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C",
|
|
1093
|
+
requested: "\u0412\u044B\u0432\u043E\u0434 \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",
|
|
1022
1094
|
title: "\u0412\u044B\u0432\u0435\u0441\u0442\u0438 {{amount}}",
|
|
1023
1095
|
useConnected: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439",
|
|
1024
1096
|
withdrawNow: "\u0412\u044B\u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0439\u0447\u0430\u0441",
|
|
@@ -1073,6 +1145,17 @@ var ru_default = {
|
|
|
1073
1145
|
methodSecure: "\u041D\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u043C\u043E\u0441\u0442",
|
|
1074
1146
|
secureDisclaimer: "\u0412\u0441\u0435 \u0442\u043E\u043A\u0435\u043D\u044B \xB7 \u0422\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u0442\u044C Ethereum \xB7 {{delay}}",
|
|
1075
1147
|
secureFallbackDelay: "60+ \u043C\u0438\u043D\u0443\u0442"
|
|
1148
|
+
},
|
|
1149
|
+
withdrawNado: {
|
|
1150
|
+
errorAmountTooLow: "\u0421\u0443\u043C\u043C\u0430 \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u044E \u0437\u0430 \u0432\u044B\u0432\u043E\u0434 Nado.",
|
|
1151
|
+
errorBalanceChanged: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u043B\u044F \u0432\u044B\u0432\u043E\u0434\u0430 \u0441\u0443\u043C\u043C\u0430 \u0438\u0437\u043C\u0435\u043D\u0438\u043B\u0430\u0441\u044C. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u041C\u0430\u043A\u0441\xBB \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
|
|
1152
|
+
errorInvalidNonce: "\u0421\u0440\u043E\u043A \u044D\u0442\u043E\u0433\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043D\u0430 \u0432\u044B\u0432\u043E\u0434 \u0438\u0441\u0442\u0451\u043A. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
|
|
1153
|
+
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.",
|
|
1154
|
+
errorNoPriorDeposit: "\u0412\u043D\u0435\u0441\u0438\u0442\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0432 Nado \u043F\u0435\u0440\u0435\u0434 \u0432\u044B\u0432\u043E\u0434\u043E\u043C.",
|
|
1155
|
+
errorRateLimited: "\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432. \u041F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043D\u0435\u043C\u043D\u043E\u0433\u043E \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
|
|
1156
|
+
errorSignerMismatch: "\u0427\u0442\u043E\u0431\u044B \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430, \u0432\u0435\u0440\u043D\u0438\u0442\u0435\u0441\u044C \u043A \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0443, \u043A\u043E\u0442\u043E\u0440\u043E\u043C\u0443 \u043F\u0440\u0438\u043D\u0430\u0434\u043B\u0435\u0436\u0438\u0442 \u044D\u0442\u043E\u0442 \u0430\u043A\u043A\u0430\u0443\u043D\u0442 Nado.",
|
|
1157
|
+
errorUnconfirmed: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0432\u044B\u0432\u043E\u0434 \u0441\u0440\u0435\u0434\u0441\u0442\u0432. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0431\u0430\u043B\u0430\u043D\u0441 Nado, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443.",
|
|
1158
|
+
errorWithdrawRisk: "\u0414\u043E\u0441\u0442\u0438\u0433\u043D\u0443\u0442 24-\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043B\u0438\u043C\u0438\u0442 \u0432\u044B\u0432\u043E\u0434\u0430 Nado. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435."
|
|
1076
1159
|
}
|
|
1077
1160
|
};
|
|
1078
1161
|
|
|
@@ -1162,6 +1245,7 @@ var tr_default = {
|
|
|
1162
1245
|
detected: "C\xFCzdan alg\u0131land\u0131",
|
|
1163
1246
|
notFound: "C\xFCzdan bulunamad\u0131",
|
|
1164
1247
|
paste: "Yap\u0131\u015Ft\u0131r",
|
|
1248
|
+
requested: "Para \xC7ekme Talep Edildi",
|
|
1165
1249
|
title: "{{amount}} \xE7ek",
|
|
1166
1250
|
useConnected: "Ba\u011Fl\u0131 c\xFCzdan\u0131 kullan",
|
|
1167
1251
|
withdrawNow: "\u015Eimdi \xE7ek",
|
|
@@ -1216,6 +1300,17 @@ var tr_default = {
|
|
|
1216
1300
|
methodSecure: "Yerel K\xF6pr\xFC",
|
|
1217
1301
|
secureDisclaimer: "T\xFCm tokenlar \xB7 Yaln\u0131zca Ethereum zinciri \xB7 {{delay}}",
|
|
1218
1302
|
secureFallbackDelay: "60+ dakika"
|
|
1303
|
+
},
|
|
1304
|
+
withdrawNado: {
|
|
1305
|
+
errorAmountTooLow: "Tutar, Nado para \xE7ekme \xFCcretini kar\u015F\u0131lamak i\xE7in \xE7ok d\xFC\u015F\xFCk.",
|
|
1306
|
+
errorBalanceChanged: "\xC7ekilebilir bakiyeniz de\u011Fi\u015Fti. Maks'a dokunup tekrar deneyin.",
|
|
1307
|
+
errorInvalidNonce: "Bu para \xE7ekme talebinin s\xFCresi doldu. L\xFCtfen tekrar deneyin.",
|
|
1308
|
+
errorNetwork: "\u015Eu anda Nado'ya ula\u015F\u0131lam\u0131yor. L\xFCtfen tekrar deneyin.",
|
|
1309
|
+
errorNoPriorDeposit: "Para \xE7ekmeden \xF6nce Nado'ya yat\u0131rma yap\u0131n.",
|
|
1310
|
+
errorRateLimited: "\xC7ok fazla istek. L\xFCtfen biraz bekleyip tekrar deneyin.",
|
|
1311
|
+
errorSignerMismatch: "Para \xE7ekmek i\xE7in bu Nado hesab\u0131n\u0131n sahibi olan c\xFCzdana geri ge\xE7in.",
|
|
1312
|
+
errorUnconfirmed: "Para \xE7ekme i\u015Fleminizi do\u011Frulayamad\u0131k. Tekrar denemeden \xF6nce Nado bakiyenizi kontrol edin.",
|
|
1313
|
+
errorWithdrawRisk: "Nado'nun 24 saatlik para \xE7ekme limitine ula\u015F\u0131ld\u0131. L\xFCtfen daha sonra tekrar deneyin."
|
|
1219
1314
|
}
|
|
1220
1315
|
};
|
|
1221
1316
|
|
|
@@ -1304,6 +1399,7 @@ var zh_default = {
|
|
|
1304
1399
|
detected: "\u5DF2\u68C0\u6D4B\u5230\u94B1\u5305",
|
|
1305
1400
|
notFound: "\u672A\u627E\u5230\u94B1\u5305",
|
|
1306
1401
|
paste: "\u7C98\u8D34",
|
|
1402
|
+
requested: "\u63D0\u73B0\u5DF2\u8BF7\u6C42",
|
|
1307
1403
|
title: "\u63D0\u53D6 {{amount}}",
|
|
1308
1404
|
useConnected: "\u4F7F\u7528\u5DF2\u8FDE\u63A5\u94B1\u5305",
|
|
1309
1405
|
withdrawNow: "\u7ACB\u5373\u63D0\u53D6",
|
|
@@ -1358,6 +1454,17 @@ var zh_default = {
|
|
|
1358
1454
|
methodSecure: "\u539F\u751F\u8DE8\u94FE\u6865",
|
|
1359
1455
|
secureDisclaimer: "\u6240\u6709\u4EE3\u5E01 \xB7 \u4EC5\u4EE5\u592A\u574A\u94FE \xB7 {{delay}}",
|
|
1360
1456
|
secureFallbackDelay: "60\u5206\u949F\u4EE5\u4E0A"
|
|
1457
|
+
},
|
|
1458
|
+
withdrawNado: {
|
|
1459
|
+
errorAmountTooLow: "\u91D1\u989D\u8FC7\u4F4E\uFF0C\u4E0D\u8DB3\u4EE5\u652F\u4ED8 Nado \u63D0\u73B0\u8D39\u7528\u3002",
|
|
1460
|
+
errorBalanceChanged: "\u60A8\u7684\u53EF\u63D0\u73B0\u4F59\u989D\u5DF2\u53D8\u52A8\u3002\u8BF7\u70B9\u51FB\u300C\u6700\u5927\u300D\u540E\u91CD\u8BD5\u3002",
|
|
1461
|
+
errorInvalidNonce: "\u6B64\u63D0\u73B0\u8BF7\u6C42\u5DF2\u8FC7\u671F\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
1462
|
+
errorNetwork: "\u76EE\u524D\u65E0\u6CD5\u8FDE\u63A5 Nado\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
1463
|
+
errorNoPriorDeposit: "\u8BF7\u5148\u5411 Nado \u5B58\u5165\u8D44\u91D1\uFF0C\u7136\u540E\u518D\u63D0\u73B0\u3002",
|
|
1464
|
+
errorRateLimited: "\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u3002\u8BF7\u7A0D\u7B49\u540E\u91CD\u8BD5\u3002",
|
|
1465
|
+
errorSignerMismatch: "\u8BF7\u5207\u6362\u56DE\u62E5\u6709\u6B64 Nado \u8D26\u6237\u7684\u94B1\u5305\u4EE5\u8FDB\u884C\u63D0\u73B0\u3002",
|
|
1466
|
+
errorUnconfirmed: "\u6211\u4EEC\u65E0\u6CD5\u786E\u8BA4\u60A8\u7684\u63D0\u73B0\u3002\u8BF7\u5148\u67E5\u770B\u60A8\u7684 Nado \u4F59\u989D\uFF0C\u7136\u540E\u518D\u91CD\u8BD5\u3002",
|
|
1467
|
+
errorWithdrawRisk: "\u5DF2\u8FBE\u5230 Nado \u7684 24 \u5C0F\u65F6\u63D0\u73B0\u9650\u989D\u3002\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"
|
|
1361
1468
|
}
|
|
1362
1469
|
};
|
|
1363
1470
|
|
|
@@ -1421,13 +1528,15 @@ function useFunkitTranslation() {
|
|
|
1421
1528
|
}
|
|
1422
1529
|
|
|
1423
1530
|
export {
|
|
1424
|
-
logger,
|
|
1425
1531
|
isLighterxyzApiKey,
|
|
1532
|
+
UNSET_WALLET_ADDRESS,
|
|
1426
1533
|
isUsableWalletAddress,
|
|
1427
1534
|
resolveFunkitIdentity,
|
|
1428
1535
|
FunkitIdentityProvider,
|
|
1429
1536
|
useFunkitIdentity,
|
|
1537
|
+
logger,
|
|
1538
|
+
i18n,
|
|
1430
1539
|
FunkitI18nProvider,
|
|
1431
1540
|
useFunkitTranslation
|
|
1432
1541
|
};
|
|
1433
|
-
//# sourceMappingURL=chunk-
|
|
1542
|
+
//# sourceMappingURL=chunk-PHUM52HD.js.map
|