@funkit/connect-rn 9.3.0 → 9.4.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 +34 -0
- package/dist/{chunk-GPJAVLS6.js → chunk-7EDY3KSV.js} +2 -2
- package/dist/{chunk-ZIE5S6XC.js → chunk-EKU6Y6IC.js} +139 -2
- package/dist/chunk-EKU6Y6IC.js.map +7 -0
- package/dist/{chunk-BSYYQSWJ.js → chunk-FAEJVOAC.js} +3 -1
- package/dist/chunk-FAEJVOAC.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +2856 -1404
- package/dist/index.js.map +4 -4
- package/dist/preview.js +92 -2
- package/dist/preview.js.map +2 -2
- package/dist/src/components/v2/IconDisc.d.ts +14 -0
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -0
- package/dist/src/components/v2/ListRow.d.ts +29 -0
- package/dist/src/components/v2/ListRow.d.ts.map +1 -0
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts +1 -1
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts.map +1 -1
- package/dist/src/fiat/paymentAttempts.d.ts +79 -0
- package/dist/src/fiat/paymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +8 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts +4 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/quoteRouting.d.ts +8 -3
- package/dist/src/fiat/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/stepSurface.d.ts +2 -1
- package/dist/src/fiat/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surfaceRegistry.d.ts.map +1 -1
- package/dist/src/fiat/useDepositSettlement.d.ts +3 -1
- package/dist/src/fiat/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/usePaymentAttempts.d.ts +24 -0
- package/dist/src/fiat/usePaymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +4 -1
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/flow/CryptoAddressPage.d.ts +29 -0
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoDepositStep.d.ts +33 -0
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -0
- package/dist/src/flow/CryptoListPage.d.ts +17 -0
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts +12 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoTokenPage.d.ts +15 -0
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -0
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +12 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +21 -2
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +37 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/cryptoDepositFlow.d.ts +81 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts +10 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenList.d.ts +39 -0
- package/dist/src/flow/cryptoTokenList.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenPick.d.ts +16 -0
- package/dist/src/flow/cryptoTokenPick.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +7 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +5 -2
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +3 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/selectedChainStorage.d.ts +9 -0
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +26 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/storedChain.d.ts +7 -2
- package/dist/src/flow/storedChain.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +29 -0
- package/dist/src/hooks/track/events.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackV2.d.ts +8 -0
- package/dist/src/hooks/track/useTrackV2.d.ts.map +1 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts +6 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts.map +1 -1
- package/dist/src/hooks/useGuardedAmountInput.d.ts +5 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +5 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +11 -2
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +40 -2
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +10 -0
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts +4 -0
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +4 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +4 -2
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +4 -2
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts +23 -0
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts.map +1 -0
- package/dist/src/transfer/depositAssets.d.ts +4 -34
- package/dist/src/transfer/depositAssets.d.ts.map +1 -1
- package/dist/src/transfer/depositQrCodeUri.d.ts.map +1 -1
- package/dist/src/transfer/depositSelection.d.ts +1 -12
- package/dist/src/transfer/depositSelection.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts +2 -0
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
- package/dist/src/transfer/supportedTokens.d.ts +2 -16
- package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
- package/dist/src/utils/tokenAndChainPicker.d.ts +2 -7
- package/dist/src/utils/tokenAndChainPicker.d.ts.map +1 -1
- package/ios/FrostedGlassView.swift +28 -3
- package/ios/FunkitGlassEffectModule.swift +4 -0
- package/package.json +4 -4
- package/dist/chunk-BSYYQSWJ.js.map +0 -7
- package/dist/chunk-ZIE5S6XC.js.map +0 -7
- /package/dist/{chunk-GPJAVLS6.js.map → chunk-7EDY3KSV.js.map} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnalyticsEvent, AnalyticsEventProperties, CommonProperties } from './events';
|
|
2
|
+
/**
|
|
3
|
+
* RN analytics-v2 logger. It owns the common flow and identity envelope while
|
|
4
|
+
* callers supply catalog-checked event metadata. The mount fence makes
|
|
5
|
+
* callbacks retained by provider surfaces inert after their flow unmounts.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useTrackV2(): <T extends AnalyticsEvent>(event: T, buildMetadata: () => AnalyticsEventProperties[T] & Partial<CommonProperties>) => void;
|
|
8
|
+
//# sourceMappingURL=useTrackV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTrackV2.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useTrackV2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAIjB;;;;GAIG;AACH,wBAAgB,UAAU,KAiBrB,CAAC,SAAS,cAAc,SAChB,CAAC,iBACO,MAAM,wBAAwB,CAAC,CAAC,CAAC,GAC9C,OAAO,CAAC,gBAAgB,CAAC,UAiBhC"}
|
|
@@ -5,4 +5,10 @@
|
|
|
5
5
|
* (Storybook, tests, an embedded screen) there is nothing to wait for.
|
|
6
6
|
*/
|
|
7
7
|
export declare function useEnclosingSheetOpen(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the gorhom sheet this is rendered in stands above its lowest detent,
|
|
10
|
+
* dragged or scrolled up from its opening peek. Outside a sheet there is no
|
|
11
|
+
* peek to rise from, so it reads as raised.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useEnclosingSheetRaised(): boolean;
|
|
8
14
|
//# sourceMappingURL=useEnclosingSheetOpen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEnclosingSheetOpen.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnclosingSheetOpen.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAmB/C"}
|
|
1
|
+
{"version":3,"file":"useEnclosingSheetOpen.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnclosingSheetOpen.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAmB/C;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAkBjD"}
|
|
@@ -9,6 +9,11 @@ export declare function isAboveMaximum(value: string, limitUsd?: string): boolea
|
|
|
9
9
|
* state rather than a violation — there is nothing yet to be too small.
|
|
10
10
|
*/
|
|
11
11
|
export declare function isBelowMinimum(value: string, minLimitUsd?: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* A bound as the buyer would type it. Quotes carry `20.00`, and the field
|
|
14
|
+
* renders its input verbatim, so a whole-dollar floor would read `$20.00`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function boundAsInput(bound: string): string;
|
|
12
17
|
/**
|
|
13
18
|
* An amount screen's input policy, separate from its layout. Every way a value
|
|
14
19
|
* enters — a numpad key or a quick-amount chip — commits through this hook, so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAuBrE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAOD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBA4DU,MAAM;2BA2BP,SAAS;;EAiClB"}
|
|
1
|
+
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAuBrE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAOD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBA4DU,MAAM;2BA2BP,SAAS;;EAiClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetLogos.d.ts","sourceRoot":"","sources":["../../../src/icons/assetLogos.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"assetLogos.d.ts","sourceRoot":"","sources":["../../../src/icons/assetLogos.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoHlD,CAAA;AAED,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,qDACoB,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
|
@@ -33,6 +33,11 @@ export interface FrostedGlassViewProps extends ViewProps {
|
|
|
33
33
|
cornerRadius?: number;
|
|
34
34
|
/** Every layer follows the enclosing container's corner (iOS 26 `containerConcentric`). */
|
|
35
35
|
concentricCorners?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* With `concentricCorners`, each corner follows the container corner nearest
|
|
38
|
+
* it rather than all four taking one radius. Ignored by binaries that predate it.
|
|
39
|
+
*/
|
|
40
|
+
independentCorners?: boolean;
|
|
36
41
|
concentricMinimumRadius?: number;
|
|
37
42
|
}
|
|
38
43
|
export declare const isLiquidGlassAvailable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glassEffect.d.ts","sourceRoot":"","sources":["../../../src/native/glassEffect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAIzD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAErD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAC7B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,aAAa,CAAC,E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F;IAC3F,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC;AAaD,eAAO,MAAM,sBAAsB,SAEW,CAAA;AAE9C,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,cAAc,CAAC,GAAG,IAG9C,CAAA;AAEV,2GAA2G;AAC3G,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,qBAAqB,CAAC,GAAG,IAG5D,CAAA"}
|
|
@@ -43,13 +43,20 @@ export interface FiatPreviewSeed {
|
|
|
43
43
|
paymentCaptured?: boolean;
|
|
44
44
|
}
|
|
45
45
|
export interface DepositPreviewSeed {
|
|
46
|
-
/**
|
|
47
|
-
|
|
46
|
+
/**
|
|
47
|
+
* The screen the flow opens on; defaults to the root `beginDeposit` picks.
|
|
48
|
+
* Transfer opens above it; a crypto page opens above the pages before it.
|
|
49
|
+
*/
|
|
50
|
+
screen?: Extract<FlowScreen, 'depositAmount' | 'addMoney' | 'transfer' | 'cryptoToken' | 'cryptoNetwork' | 'cryptoAddress' | 'cryptoLearnMore'>;
|
|
48
51
|
fiat?: FiatPreviewSeed;
|
|
49
52
|
/** The deposit chain, by id, as if picked from the Crypto row — Transfer needs one. */
|
|
50
53
|
chainId?: string;
|
|
51
54
|
/** A locked deposit's source token, by symbol, as if picked with `chainId` — its Transfer needs both. */
|
|
52
55
|
sourceSymbol?: string;
|
|
56
|
+
/** The V2 crypto currency page's search, open on this query (`''` for an empty field). */
|
|
57
|
+
tokenQuery?: string;
|
|
58
|
+
/** The V2 crypto address page's address, tapped open to its full length. */
|
|
59
|
+
addressExpanded?: boolean;
|
|
53
60
|
}
|
|
54
61
|
type WithdrawalStackScreen = Extract<FlowScreen, 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken'>;
|
|
55
62
|
/** The submitted withdrawal the completion screen reports on. */
|
|
@@ -137,6 +144,8 @@ export declare const SEED: {
|
|
|
137
144
|
fiatCaptureReissued: (p: ActivePreview) => boolean | undefined;
|
|
138
145
|
depositChainId: (p: ActivePreview) => string | undefined;
|
|
139
146
|
depositSourceSymbol: (p: ActivePreview) => string | undefined;
|
|
147
|
+
cryptoTokenQuery: (p: ActivePreview) => string | undefined;
|
|
148
|
+
cryptoAddressExpanded: (p: ActivePreview) => boolean | undefined;
|
|
140
149
|
withdrawalMethodId: (p: ActivePreview) => string | undefined;
|
|
141
150
|
withdrawalAmount: (p: ActivePreview) => string | undefined;
|
|
142
151
|
withdrawalRecipient: (p: ActivePreview) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/flowPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,UAAU,CAAA;KAAE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E,kBAAkB,CAAA;IAC5B,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAcA;AAED,yDAAyD;AACzD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,KAAK,CAAC,GAAG,SAAS,CAAA;AAEtE;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;cA3JU,MAAM;iBAAW,MAAM;;;;;;;;;;;;;;;;;;;;CAsLF,CAAA;AAIhD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAc9D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AACnC,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EACjC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,OAAO,EAAE,CAAC,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACvB,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -4,11 +4,13 @@ export type PreviewFlow = 'deposit' | 'withdrawal';
|
|
|
4
4
|
* - `fiatRail`: an amount-first deposit with a fiat rail (Fomo, Pump.fun).
|
|
5
5
|
* - `cryptoDeposit`: the Add money deposit (Betty, Mallard, Ulys, …).
|
|
6
6
|
* - `cryptoDepositLocked`: a crypto deposit of a locked amount (Betty).
|
|
7
|
+
* - `cryptoDepositV2`: an amount-first deposit that also offers Crypto, the
|
|
8
|
+
* V2 crypto pages (Fomo).
|
|
7
9
|
* - `cryptoWithdrawal`: a crypto withdrawal config (Mallard, Ulys).
|
|
8
10
|
* - `omnibusWithdrawFlow`: a crypto withdrawal in the client the
|
|
9
11
|
* `enable-omnibus-withdraw-flow` gate targets (Betty).
|
|
10
12
|
*/
|
|
11
|
-
export type PreviewRequirement = 'fiatRail' | 'cryptoDeposit' | 'cryptoDepositLocked' | 'cryptoWithdrawal' | 'omnibusWithdrawFlow';
|
|
13
|
+
export type PreviewRequirement = 'fiatRail' | 'cryptoDeposit' | 'cryptoDepositLocked' | 'cryptoDepositV2' | 'cryptoWithdrawal' | 'omnibusWithdrawFlow';
|
|
12
14
|
export interface PreviewScenarioEntry {
|
|
13
15
|
title: string;
|
|
14
16
|
flow: PreviewFlow;
|
|
@@ -96,7 +98,7 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
96
98
|
readonly touches: string[];
|
|
97
99
|
};
|
|
98
100
|
readonly 'fiat.amount.gap': {
|
|
99
|
-
readonly title: "Amount entry, between two providers' ranges (Deposit
|
|
101
|
+
readonly title: "Amount entry, between two providers' ranges (Deposit Minimum)";
|
|
100
102
|
readonly flow: "deposit";
|
|
101
103
|
readonly requires: "fiatRail";
|
|
102
104
|
readonly touches: string[];
|
|
@@ -497,6 +499,42 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
497
499
|
readonly requires: "cryptoDepositLocked";
|
|
498
500
|
readonly touches: readonly ["screens/LockedTransferCryptoScreen.tsx", "components/DepositQrCard.tsx", "components/TokenChainSelector.tsx", "flow/useDepositSelection.ts", "screens/SelectReceiveTokenScreen.tsx", "screens/SelectAvailableChainScreen.tsx"];
|
|
499
501
|
};
|
|
502
|
+
readonly 'deposit.crypto.token': {
|
|
503
|
+
readonly title: "V2 crypto: token page, peek height";
|
|
504
|
+
readonly flow: "deposit";
|
|
505
|
+
readonly requires: "cryptoDepositV2";
|
|
506
|
+
readonly touches: string[];
|
|
507
|
+
};
|
|
508
|
+
readonly 'deposit.crypto.token.search': {
|
|
509
|
+
readonly title: "V2 crypto: token page, searching at max height";
|
|
510
|
+
readonly flow: "deposit";
|
|
511
|
+
readonly requires: "cryptoDepositV2";
|
|
512
|
+
readonly touches: string[];
|
|
513
|
+
};
|
|
514
|
+
readonly 'deposit.crypto.network': {
|
|
515
|
+
readonly title: "V2 crypto: network page";
|
|
516
|
+
readonly flow: "deposit";
|
|
517
|
+
readonly requires: "cryptoDepositV2";
|
|
518
|
+
readonly touches: string[];
|
|
519
|
+
};
|
|
520
|
+
readonly 'deposit.crypto.address': {
|
|
521
|
+
readonly title: "V2 crypto: deposit address page";
|
|
522
|
+
readonly flow: "deposit";
|
|
523
|
+
readonly requires: "cryptoDepositV2";
|
|
524
|
+
readonly touches: string[];
|
|
525
|
+
};
|
|
526
|
+
readonly 'deposit.crypto.address.expanded': {
|
|
527
|
+
readonly title: "V2 crypto: deposit address, tapped open in full";
|
|
528
|
+
readonly flow: "deposit";
|
|
529
|
+
readonly requires: "cryptoDepositV2";
|
|
530
|
+
readonly touches: string[];
|
|
531
|
+
};
|
|
532
|
+
readonly 'deposit.crypto.learnMore': {
|
|
533
|
+
readonly title: "V2 crypto: learn more, max height";
|
|
534
|
+
readonly flow: "deposit";
|
|
535
|
+
readonly requires: "cryptoDepositV2";
|
|
536
|
+
readonly touches: string[];
|
|
537
|
+
};
|
|
500
538
|
readonly 'withdraw.method': {
|
|
501
539
|
readonly title: "Withdraw: payout methods";
|
|
502
540
|
readonly flow: "withdrawal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD
|
|
1
|
+
{"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD;;;;;;;;;;GAUG;AACH,MAAM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{"version":3,"file":"FunkitStatsigProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitStatsigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FunkitStatsigProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitStatsigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAA;AAYpE,eAAO,MAAM,kBAAkB,EAC7B,oDAA6D,CAAA;AAI/D,eAAO,MAAM,gBAAgB,EAAG,cAAuB,CAAA;AAEvD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,WAAW,CAMb;AAED,UAAU,0BAA0B;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,qFAAqF;IACrF,MAAM,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,MAAM,EACN,aAAqB,GACtB,EAAE,0BAA0B,+BA2E5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StatsigOptions } from '@statsig/react-bindings';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
export declare const STATSIG_CLIENT_KEY_FUN_WHN: "client-UrueDVSY9et85npGccWMFidPs00V5jzTYyzsDKlLAjr";
|
|
4
|
+
export declare function FunkitStatsigWhnProvider({ apiKey, children, options, userId, }: {
|
|
5
|
+
apiKey: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
options: StatsigOptions;
|
|
8
|
+
userId: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=FunkitStatsigWhnProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunkitStatsigWhnProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitStatsigWhnProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAM/C,eAAO,MAAM,0BAA0B,EACrC,oDAA6D,CAAA;AAE/D,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,EAAE,cAAc,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;CACf,+BAwBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AACd,OAAO,EAA0B,IAAI,EAAuB,MAAM,cAAc,CAAA;AAYhF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AACd,OAAO,EAA0B,IAAI,EAAuB,MAAM,cAAc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1 @@
|
|
|
1
|
+
{"version":3,"file":"useFunWhnStatsigAnalytics.d.ts","sourceRoot":"","sources":["../../../src/statsig/useFunWhnStatsigAnalytics.ts"],"names":[],"mappings":"AAQA,wBAAgB,yBAAyB;sBAK5B,MAAM,iBACE,MAAM,MAAM,CACzB,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAC7C;EAkBN"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { SwappedBuyingCrypto } from '@funkit/connect-core';
|
|
1
2
|
import { type SwappedScreenBaseProps } from './SwappedScreenShell';
|
|
2
3
|
export interface SwappedScreenProps extends SwappedScreenBaseProps {
|
|
3
4
|
lockAmount?: boolean;
|
|
5
|
+
/** Destination token the embed shows under the amount ("of DOGE" + icon). */
|
|
6
|
+
buyingCrypto?: SwappedBuyingCrypto;
|
|
4
7
|
/** Fired when the embed reports a successful transaction. */
|
|
5
8
|
onSuccess?: () => void;
|
|
6
9
|
}
|
|
@@ -10,5 +13,5 @@ export interface SwappedScreenProps extends SwappedScreenBaseProps {
|
|
|
10
13
|
* close → {@link onClose}, transaction-successful → {@link onSuccess}.
|
|
11
14
|
* Withdrawal lifecycle messages are ignored — see `SwappedWithdrawScreen`.
|
|
12
15
|
*/
|
|
13
|
-
export declare function SwappedScreen({ url, onClose, onBack, onSuccess, lockAmount, }: SwappedScreenProps): import("react").JSX.Element;
|
|
16
|
+
export declare function SwappedScreen({ url, onClose, onBack, onSuccess, lockAmount, buyingCrypto, }: SwappedScreenProps): import("react").JSX.Element;
|
|
14
17
|
//# sourceMappingURL=SwappedScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,EACT,UAAU,EACV,YAAY,GACb,EAAE,kBAAkB,+BAyCpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SwappedInboundMessage } from '@funkit/connect-core';
|
|
1
|
+
import type { SwappedBuyingCrypto, SwappedInboundMessage } from '@funkit/connect-core';
|
|
2
2
|
/** Props shared by both Swapped embed hosts (deposit and withdrawal). */
|
|
3
3
|
export interface SwappedScreenBaseProps {
|
|
4
4
|
/** The selected FOP's `embeddedFlowUrl` to load in the embed. */
|
|
@@ -11,6 +11,8 @@ export interface SwappedScreenBaseProps {
|
|
|
11
11
|
interface SwappedScreenShellProps {
|
|
12
12
|
url: string;
|
|
13
13
|
lockAmount?: boolean;
|
|
14
|
+
/** Destination token the embed shows under the amount (deposit only). */
|
|
15
|
+
buyingCrypto?: SwappedBuyingCrypto;
|
|
14
16
|
onMessage: (msg: SwappedInboundMessage) => void;
|
|
15
17
|
/** Android hardware back with no WebView history to pop (see SwappedWebView). */
|
|
16
18
|
onBack: () => void;
|
|
@@ -23,6 +25,6 @@ interface SwappedScreenShellProps {
|
|
|
23
25
|
* mode-specific dispatch lives in `SwappedScreen` (deposit) and
|
|
24
26
|
* `SwappedWithdrawScreen` (withdrawal).
|
|
25
27
|
*/
|
|
26
|
-
export declare function SwappedScreenShell({ url, onMessage, onBack, lockAmount, }: SwappedScreenShellProps): import("react").JSX.Element;
|
|
28
|
+
export declare function SwappedScreenShell({ url, onMessage, onBack, lockAmount, buyingCrypto, }: SwappedScreenShellProps): import("react").JSX.Element;
|
|
27
29
|
export {};
|
|
28
30
|
//# sourceMappingURL=SwappedScreenShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAW7B,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,yEAAyE;IACzE,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,SAAS,EACT,MAAM,EACN,UAAkB,EAClB,YAAY,GACb,EAAE,uBAAuB,+BA2EzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SwappedInboundMessage } from '@funkit/connect-core';
|
|
1
|
+
import { type SwappedBuyingCrypto, type SwappedInboundMessage } from '@funkit/connect-core';
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
3
|
export interface SwappedWebViewProps {
|
|
4
4
|
/** The selected FOP's `embeddedFlowUrl` (a swapped.com/.dev widget URL). */
|
|
@@ -10,6 +10,8 @@ export interface SwappedWebViewProps {
|
|
|
10
10
|
* the same destination as the embed's own `SWAPPED_GO_BACK`.
|
|
11
11
|
*/
|
|
12
12
|
onBack?: () => void;
|
|
13
|
+
/** Destination token the embed shows under the amount ("of DOGE" + icon). */
|
|
14
|
+
buyingCrypto?: SwappedBuyingCrypto;
|
|
13
15
|
style?: ViewStyle;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
@@ -19,5 +21,5 @@ export interface SwappedWebViewProps {
|
|
|
19
21
|
* redirects the embed's `parent`/`opener` posts to the native channel;
|
|
20
22
|
* `onMessage` is parsed + origin-validated before reaching the handler.
|
|
21
23
|
*/
|
|
22
|
-
export declare function SwappedWebView({ url, onMessage, onBack, style, }: SwappedWebViewProps): import("react").JSX.Element;
|
|
24
|
+
export declare function SwappedWebView({ url, onMessage, onBack, buyingCrypto, style, }: SwappedWebViewProps): import("react").JSX.Element;
|
|
23
25
|
//# sourceMappingURL=SwappedWebView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAA;AAkBrB,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,GACN,EAAE,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAA;AAkBrB,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,MAAM,EACN,YAAY,EACZ,KAAK,GACN,EAAE,mBAAmB,+BA4PrB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type SwappedBuyingCrypto } from '@funkit/connect-core';
|
|
2
|
+
import type { DynamicTargetAssetCandidate } from '../flow/depositFlowConfig';
|
|
3
|
+
/**
|
|
4
|
+
* Destination token for the Swapped on-ramp's "of <token>" row, from the
|
|
5
|
+
* selected target-asset candidate. RN configs carry no static ticker/icon, so
|
|
6
|
+
* the candidate is the only source: a config with no
|
|
7
|
+
* `dynamicTargetAssetCandidates` shows no row. A config with exactly one still
|
|
8
|
+
* shows it — `getDefaultDynamicTargetAsset` seeds the selection with that
|
|
9
|
+
* candidate, so "single target" is not the same as "no candidate".
|
|
10
|
+
*
|
|
11
|
+
* The RN counterpart of web's `useSwappedBuyingCrypto`, including the rollout
|
|
12
|
+
* gate (`enable-swapped-destination-token`, off until Swapped's widget change
|
|
13
|
+
* is live) and the per-flow `showFiatDestinationToken: false` opt-out.
|
|
14
|
+
*
|
|
15
|
+
* Memoised on the candidate's fields rather than its identity: the result is a
|
|
16
|
+
* dependency of the WebView's theme memo, so a fresh-but-equal object would
|
|
17
|
+
* rebuild the whole theme on every keystroke.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useSwappedBuyingCrypto({ candidate, showFiatDestinationToken, }: {
|
|
20
|
+
candidate: DynamicTargetAssetCandidate | undefined;
|
|
21
|
+
showFiatDestinationToken?: boolean;
|
|
22
|
+
}): SwappedBuyingCrypto | undefined;
|
|
23
|
+
//# sourceMappingURL=useSwappedBuyingCrypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSwappedBuyingCrypto.d.ts","sourceRoot":"","sources":["../../../src/swapped/useSwappedBuyingCrypto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAA;AAE5E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,wBAAwB,GACzB,EAAE;IACD,SAAS,EAAE,2BAA2B,GAAG,SAAS,CAAA;IAClD,wBAAwB,CAAC,EAAE,OAAO,CAAA;CACnC,GAAG,mBAAmB,GAAG,SAAS,CAalC"}
|
|
@@ -1,37 +1,7 @@
|
|
|
1
|
+
import type { ResolvedDepositSelection as CoreResolvedDepositSelection } from '@funkit/connect-core';
|
|
1
2
|
import type { AvailableChain } from './availableChains';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
chainId: number;
|
|
5
|
-
address: string;
|
|
6
|
-
decimals: number;
|
|
7
|
-
}
|
|
8
|
-
export interface DepositAsset {
|
|
9
|
-
id: string;
|
|
10
|
-
symbol: string;
|
|
11
|
-
tokens: DepositSourceToken[];
|
|
12
|
-
}
|
|
13
|
-
export interface DepositAssetExclusion {
|
|
14
|
-
symbol: string;
|
|
15
|
-
chainId?: number;
|
|
16
|
-
reason: 'invalid-metadata' | 'ambiguous-contract';
|
|
17
|
-
conflictingAddresses?: string[];
|
|
18
|
-
}
|
|
19
|
-
export declare function assetId(symbol: string): string;
|
|
20
|
-
export declare function depositAddressesEqual(left?: string, right?: string): boolean;
|
|
21
|
-
/** Group curated tickers; exclude all contracts for a symbol/network collision. */
|
|
22
|
-
export declare function depositAssets(tokens: SupportedToken[], chains: AvailableChain[], metadata?: SupportedToken[]): {
|
|
23
|
-
assets: DepositAsset[];
|
|
24
|
-
exclusions: DepositAssetExclusion[];
|
|
25
|
-
};
|
|
26
|
-
export declare function assetChains(assets: DepositAsset[], chains: AvailableChain[]): AvailableChain[];
|
|
27
|
-
export declare function tokenOnChain(asset: DepositAsset, chain: AvailableChain): DepositSourceToken | undefined;
|
|
3
|
+
export { assetChains, assetId, depositAddressesEqual, depositAssets, resolveDepositSelection, tokenOnChain, } from '@funkit/connect-core';
|
|
4
|
+
export type { DepositAsset, DepositAssetExclusion, DepositSourceToken, } from '@funkit/connect-core';
|
|
28
5
|
/** A picker selection resolved to its source token and network. */
|
|
29
|
-
export
|
|
30
|
-
token: DepositSourceToken;
|
|
31
|
-
chain: AvailableChain;
|
|
32
|
-
}
|
|
33
|
-
export declare function resolveDepositSelection(assets: DepositAsset[], chains: AvailableChain[], selection: {
|
|
34
|
-
symbol: string;
|
|
35
|
-
chainId: number;
|
|
36
|
-
}): ResolvedDepositSelection | undefined;
|
|
6
|
+
export type ResolvedDepositSelection = CoreResolvedDepositSelection<AvailableChain>;
|
|
37
7
|
//# sourceMappingURL=depositAssets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositAssets.d.ts","sourceRoot":"","sources":["../../../src/transfer/depositAssets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"depositAssets.d.ts","sourceRoot":"","sources":["../../../src/transfer/depositAssets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,IAAI,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIvD,OAAO,EACL,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,YAAY,GACb,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EACV,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,sBAAsB,CAAA;AAE7B,mEAAmE;AACnE,MAAM,MAAM,wBAAwB,GAClC,4BAA4B,CAAC,cAAc,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositQrCodeUri.d.ts","sourceRoot":"","sources":["../../../src/transfer/depositQrCodeUri.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"depositQrCodeUri.d.ts","sourceRoot":"","sources":["../../../src/transfer/depositQrCodeUri.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAE7B,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,uBAAuB,CAEzB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,SAAS,CAMX"}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type DepositAsset, type DepositSourceToken, type ResolvedDepositSelection } from './depositAssets';
|
|
3
|
-
/** The chains that carry `symbol`, in display order. */
|
|
4
|
-
export declare function depositChainsForToken(assets: DepositAsset[], chains: AvailableChain[], symbol: string): AvailableChain[];
|
|
5
|
-
/**
|
|
6
|
-
* The token as `symbol`, on `preferredChainId` when that chain carries it and
|
|
7
|
-
* otherwise on the first chain that does — the same rule as the token & chain
|
|
8
|
-
* grid.
|
|
9
|
-
*/
|
|
10
|
-
export declare function selectDepositToken(assets: DepositAsset[], chains: AvailableChain[], symbol: string, preferredChainId?: number): ResolvedDepositSelection | undefined;
|
|
11
|
-
/** The token as `symbol` on `chain`; undefined when the chain doesn't carry it. */
|
|
12
|
-
export declare function depositTokenOnChain(assets: DepositAsset[], chains: AvailableChain[], symbol: string, chain: AvailableChain): DepositSourceToken | undefined;
|
|
1
|
+
export { depositChainsForToken, depositTokenOnChain, selectDepositToken, } from '@funkit/connect-core';
|
|
13
2
|
//# sourceMappingURL=depositSelection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositSelection.d.ts","sourceRoot":"","sources":["../../../src/transfer/depositSelection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"depositSelection.d.ts","sourceRoot":"","sources":["../../../src/transfer/depositSelection.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,sBAAsB,CAAA"}
|
|
@@ -9,6 +9,6 @@ interface UseDepositAssetsOptions {
|
|
|
9
9
|
metadataReady?: boolean;
|
|
10
10
|
transferInit?: CheckoutInitTokenTransferResponse;
|
|
11
11
|
}
|
|
12
|
-
export declare function useDepositAssets({ tokens, chains, metadata, enabled, metadataReady, transferInit, }: UseDepositAssetsOptions): import("
|
|
12
|
+
export declare function useDepositAssets({ tokens, chains, metadata, enabled, metadataReady, transferInit, }: UseDepositAssetsOptions): import("@funkit/connect-core").DepositAsset[];
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=useDepositAssets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepositAssets.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useDepositAssets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAIzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,QAAQ,EAAE,cAAc,EAAE,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,iCAAiC,CAAA;CACjD;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,EACP,aAAoB,EACpB,YAAY,GACb,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"useDepositAssets.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useDepositAssets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAIzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,QAAQ,EAAE,cAAc,EAAE,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,iCAAiC,CAAA;CACjD;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,EACP,aAAoB,EACpB,YAAY,GACb,EAAE,uBAAuB,iDA4BzB"}
|
|
@@ -5,6 +5,8 @@ export interface UseSupportedTokensResult {
|
|
|
5
5
|
tokens: SupportedToken[];
|
|
6
6
|
/** `All` + one chip per configured chain. */
|
|
7
7
|
chainFilters: TokenChainFilter[];
|
|
8
|
+
/** The curated symbols the token list ranks first, in rank order. */
|
|
9
|
+
prioritySymbols: string[];
|
|
8
10
|
isLoading: boolean;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSupportedTokens.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useSupportedTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAYzE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,6CAA6C;IAC7C,YAAY,EAAE,gBAAgB,EAAE,CAAA;IAChC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAc,EACd,YAAY,GACb,GAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,iCAAiC,CAAA;CAC5C,GAAG,wBAAwB,
|
|
1
|
+
{"version":3,"file":"useSupportedTokens.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useSupportedTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAYzE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,6CAA6C;IAC7C,YAAY,EAAE,gBAAgB,EAAE,CAAA;IAChC,qEAAqE;IACrE,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAc,EACd,YAAY,GACb,GAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,iCAAiC,CAAA;CAC5C,GAAG,wBAAwB,CA+ChC"}
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import type { TokenTransferConfigResult } from '@funkit/connect-core';
|
|
1
|
+
import type { SupportedDepositToken, TokenTransferConfigResult } from '@funkit/connect-core';
|
|
2
2
|
/**
|
|
3
3
|
* One curated deposit token (chain + asset), produced from the resolved
|
|
4
4
|
* `tokentransferconfig`. Consumed by the deposit flow (its chains drive the
|
|
5
5
|
* "Available chains" list).
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
id: string;
|
|
9
|
-
symbol: string;
|
|
10
|
-
/** Chain shown on the trailing side, e.g. "Ethereum". */
|
|
11
|
-
chainLabel: string;
|
|
12
|
-
/** Numeric chain id — used to derive the available-chains list + re-target. */
|
|
13
|
-
chainId?: number;
|
|
14
|
-
/** Token contract address. */
|
|
15
|
-
address?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Required for `lockAmount` unless curated metadata supplies precision for
|
|
18
|
-
* this chain and address. Tokens without precision are excluded in locked flows.
|
|
19
|
-
*/
|
|
20
|
-
decimals?: number;
|
|
21
|
-
}
|
|
7
|
+
export type SupportedToken = SupportedDepositToken;
|
|
22
8
|
/** A curated chain entry. The first is usually `{ id: 'all', label: 'All' }`. */
|
|
23
9
|
export interface TokenChainFilter {
|
|
24
10
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedTokens.d.ts","sourceRoot":"","sources":["../../../src/transfer/supportedTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"supportedTokens.d.ts","sourceRoot":"","sources":["../../../src/transfer/supportedTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,sBAAsB,CAAA;AAE7B;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAA;AAElD,iFAAiF;AACjF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,yBAAyB,GAAG;IAC5E,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,YAAY,EAAE,gBAAgB,EAAE,CAAA;CACjC,CAmCA"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
chainIds: number[];
|
|
4
|
-
}
|
|
1
|
+
export { pickerChainForToken, pickerChainsForToken } from '@funkit/connect-core';
|
|
2
|
+
export type { PickerToken } from '@funkit/connect-core';
|
|
5
3
|
export interface PickerChain {
|
|
6
4
|
id: string;
|
|
7
5
|
name: string;
|
|
@@ -11,7 +9,4 @@ export interface PickerSelection {
|
|
|
11
9
|
symbol: string;
|
|
12
10
|
chainId: number;
|
|
13
11
|
}
|
|
14
|
-
/** The chains, in display order, that can carry `symbol`. */
|
|
15
|
-
export declare function pickerChainsForToken<Chain extends PickerChain>(tokens: PickerToken[], chains: Chain[], symbol: string): Chain[];
|
|
16
|
-
export declare function pickerChainForToken(tokens: PickerToken[], chains: PickerChain[], symbol: string, preferred?: number): number | undefined;
|
|
17
12
|
//# sourceMappingURL=tokenAndChainPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenAndChainPicker.d.ts","sourceRoot":"","sources":["../../../src/utils/tokenAndChainPicker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tokenAndChainPicker.d.ts","sourceRoot":"","sources":["../../../src/utils/tokenAndChainPicker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChF,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB"}
|