@funkit/connect-rn 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +81 -0
  3. package/dist/{chunk-BNWA4HKO.js → chunk-VDKAH5Y5.js} +327 -111
  4. package/dist/chunk-VDKAH5Y5.js.map +7 -0
  5. package/dist/clients/lighter/index.d.ts +2 -0
  6. package/dist/clients/lighter/index.d.ts.map +1 -1
  7. package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts +42 -0
  8. package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts.map +1 -0
  9. package/dist/clients/lighter.js +126 -1
  10. package/dist/clients/lighter.js.map +4 -4
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +3388 -1693
  14. package/dist/index.js.map +4 -4
  15. package/dist/src/components/AmountDisplay.d.ts +18 -0
  16. package/dist/src/components/AmountDisplay.d.ts.map +1 -0
  17. package/dist/src/components/AssetGrid.d.ts +39 -0
  18. package/dist/src/components/AssetGrid.d.ts.map +1 -0
  19. package/dist/src/components/NumPad.d.ts +14 -0
  20. package/dist/src/components/NumPad.d.ts.map +1 -0
  21. package/dist/src/components/PillButton.d.ts +25 -0
  22. package/dist/src/components/PillButton.d.ts.map +1 -0
  23. package/dist/src/components/ReceiveAmountSummary.d.ts +27 -0
  24. package/dist/src/components/ReceiveAmountSummary.d.ts.map +1 -0
  25. package/dist/src/components/ReceiveAsRow.d.ts +14 -0
  26. package/dist/src/components/ReceiveAsRow.d.ts.map +1 -0
  27. package/dist/src/components/SearchInput.d.ts +15 -0
  28. package/dist/src/components/SearchInput.d.ts.map +1 -0
  29. package/dist/src/components/SelectableAssetRow.d.ts +14 -0
  30. package/dist/src/components/SelectableAssetRow.d.ts.map +1 -0
  31. package/dist/src/components/SheetContent.d.ts +25 -0
  32. package/dist/src/components/SheetContent.d.ts.map +1 -0
  33. package/dist/src/components/SkeletonBar.d.ts +10 -0
  34. package/dist/src/components/SkeletonBar.d.ts.map +1 -0
  35. package/dist/src/components/TopBar.d.ts +12 -0
  36. package/dist/src/components/TopBar.d.ts.map +1 -0
  37. package/dist/src/components/WalletAddressInput.d.ts +35 -0
  38. package/dist/src/components/WalletAddressInput.d.ts.map +1 -0
  39. package/dist/src/components/WithdrawSourceCard.d.ts +23 -0
  40. package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -0
  41. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  42. package/dist/src/flow/FlowSheet.d.ts +3 -1
  43. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  44. package/dist/src/flow/FunkitFlowProvider.d.ts +11 -3
  45. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  46. package/dist/src/flow/WithdrawalFlowContent.d.ts +4 -1
  47. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  48. package/dist/src/haptics/HapticsContext.d.ts +21 -0
  49. package/dist/src/haptics/HapticsContext.d.ts.map +1 -0
  50. package/dist/src/haptics/hapticTap.d.ts +13 -0
  51. package/dist/src/haptics/hapticTap.d.ts.map +1 -0
  52. package/dist/src/hooks/useIsStablecoin.d.ts +3 -0
  53. package/dist/src/hooks/useIsStablecoin.d.ts.map +1 -0
  54. package/dist/src/hooks/useNestedSheet.d.ts +17 -0
  55. package/dist/src/hooks/useNestedSheet.d.ts.map +1 -0
  56. package/dist/src/hooks/useNestedSheetHeight.d.ts +7 -0
  57. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -0
  58. package/dist/src/hooks/usePulse.d.ts +7 -0
  59. package/dist/src/hooks/usePulse.d.ts.map +1 -0
  60. package/dist/src/icons/FigmaSystemIcons.d.ts +2 -0
  61. package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
  62. package/dist/src/icons/FunIcon.d.ts +5 -2
  63. package/dist/src/icons/FunIcon.d.ts.map +1 -1
  64. package/dist/src/icons/TokenChainIcon.d.ts +6 -1
  65. package/dist/src/icons/TokenChainIcon.d.ts.map +1 -1
  66. package/dist/src/providers/FunkitProvider.d.ts +17 -2
  67. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  68. package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
  69. package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
  70. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts +18 -0
  71. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -0
  72. package/dist/src/screens/SelectReceiveTokenScreen.d.ts +13 -0
  73. package/dist/src/screens/SelectReceiveTokenScreen.d.ts.map +1 -0
  74. package/dist/src/screens/SelectSourceTokenScreen.d.ts.map +1 -1
  75. package/dist/src/screens/TransactionBreakdownScreen.d.ts +12 -0
  76. package/dist/src/screens/TransactionBreakdownScreen.d.ts.map +1 -0
  77. package/dist/src/screens/WithdrawAddressScreen.d.ts +48 -0
  78. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -0
  79. package/dist/src/screens/WithdrawAmountScreen.d.ts +53 -0
  80. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -0
  81. package/dist/src/screens/WithdrawCompleteScreen.d.ts +15 -4
  82. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  83. package/dist/src/screens/WithdrawCryptoComplete.d.ts +8 -1
  84. package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -1
  85. package/dist/src/screens/WithdrawCryptoSteps.d.ts +39 -0
  86. package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -0
  87. package/dist/src/transfer/clipboard.d.ts +22 -0
  88. package/dist/src/transfer/clipboard.d.ts.map +1 -1
  89. package/dist/src/utils/amountGlyphs.d.ts +15 -0
  90. package/dist/src/utils/amountGlyphs.d.ts.map +1 -0
  91. package/dist/src/utils/assetGrid.d.ts +20 -0
  92. package/dist/src/utils/assetGrid.d.ts.map +1 -0
  93. package/dist/src/utils/executionErrorMessage.d.ts +13 -0
  94. package/dist/src/utils/executionErrorMessage.d.ts.map +1 -0
  95. package/dist/src/utils/formatAmount.d.ts +21 -0
  96. package/dist/src/utils/formatAmount.d.ts.map +1 -0
  97. package/dist/src/utils/motion.d.ts +3 -0
  98. package/dist/src/utils/motion.d.ts.map +1 -0
  99. package/dist/src/utils/numpadInput.d.ts +14 -0
  100. package/dist/src/utils/numpadInput.d.ts.map +1 -0
  101. package/dist/src/utils/safeArea.d.ts +3 -0
  102. package/dist/src/utils/safeArea.d.ts.map +1 -0
  103. package/dist/src/withdrawal/receiveDestination.d.ts +11 -0
  104. package/dist/src/withdrawal/receiveDestination.d.ts.map +1 -0
  105. package/dist/src/withdrawal/sourceToken.d.ts +4 -11
  106. package/dist/src/withdrawal/sourceToken.d.ts.map +1 -1
  107. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +6 -0
  108. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  109. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +89 -0
  110. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -0
  111. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts +37 -0
  112. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -0
  113. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  114. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +20 -0
  115. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -0
  116. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +38 -0
  117. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -0
  118. package/dist/src/withdrawal/useWithdrawalRisk.d.ts +2 -2
  119. package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -1
  120. package/dist/src/withdrawal/useWithdrawalStatus.d.ts +6 -2
  121. package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -1
  122. package/dist/src/withdrawal/validation.d.ts +23 -5
  123. package/dist/src/withdrawal/validation.d.ts.map +1 -1
  124. package/package.json +8 -3
  125. package/dist/chunk-BNWA4HKO.js.map +0 -7
  126. package/dist/src/components/AmountInput.d.ts +0 -40
  127. package/dist/src/components/AmountInput.d.ts.map +0 -1
  128. package/dist/src/components/WithdrawFeeSummary.d.ts +0 -23
  129. package/dist/src/components/WithdrawFeeSummary.d.ts.map +0 -1
  130. package/dist/src/screens/SelectDestinationScreen.d.ts +0 -19
  131. package/dist/src/screens/SelectDestinationScreen.d.ts.map +0 -1
  132. package/dist/src/screens/WithdrawCryptoCta.d.ts +0 -20
  133. package/dist/src/screens/WithdrawCryptoCta.d.ts.map +0 -1
  134. package/dist/src/screens/WithdrawCryptoForm.d.ts +0 -28
  135. package/dist/src/screens/WithdrawCryptoForm.d.ts.map +0 -1
  136. package/dist/src/screens/WithdrawCryptoScreen.d.ts +0 -17
  137. package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +0 -1
  138. package/dist/src/withdrawal/flatFee.d.ts +0 -9
  139. package/dist/src/withdrawal/flatFee.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TokenChainIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/TokenChainIcon.tsx"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAS,GACV,EAAE,mBAAmB,+BA6BrB"}
1
+ {"version":3,"file":"TokenChainIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/TokenChainIcon.tsx"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,IAAS,GACV,EAAE,mBAAmB,+BA+BrB"}
@@ -1,10 +1,11 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  import { type ReactNode } from 'react';
3
3
  import type { BackdropBlurRenderer } from '../flow/FlowSheet';
4
+ import { type HapticFeedback } from '../haptics/HapticsContext';
4
5
  import { type FunkitConfig } from '../identity/IdentityContext';
5
6
  import type { Locale } from '../locales/i18n';
6
7
  import { type FunkitThemeProviderProps } from '../theme/FunkitThemeProvider';
7
- import type { ClipboardWriter } from '../transfer/clipboard';
8
+ import type { ClipboardReader, ClipboardWriter } from '../transfer/clipboard';
8
9
  export interface FunkitProviderProps {
9
10
  children: ReactNode;
10
11
  /**
@@ -56,6 +57,12 @@ export interface FunkitProviderProps {
56
57
  * `void` return is treated as success.
57
58
  */
58
59
  copyToClipboard?: ClipboardWriter;
60
+ /**
61
+ * Clipboard read behind the withdrawal's "Paste" button. Defaults to the same
62
+ * bare-RN peer as {@link FunkitProviderProps.copyToClipboard} — inject your own
63
+ * (e.g. `getStringAsync` from `expo-clipboard`) where that module isn't linked.
64
+ */
65
+ pasteFromClipboard?: ClipboardReader;
59
66
  /**
60
67
  * Blur behind the flow sheet's scrim. The SDK ships the scrim only (no native
61
68
  * blur dependency), so pass your own blur view — e.g.
@@ -63,6 +70,14 @@ export interface FunkitProviderProps {
63
70
  * design's blurred backdrop.
64
71
  */
65
72
  renderBackdropBlur?: BackdropBlurRenderer;
73
+ /**
74
+ * Tactile tap for the withdrawal keypad. Omitted, the SDK taps through the
75
+ * optional `react-native-haptic-feedback` peer when it is installed, and
76
+ * stays silent when it isn't. Pass your own to use another module —
77
+ * `expo-haptics` in Expo Go, which links only Expo's own — or a no-op for
78
+ * silence.
79
+ */
80
+ hapticFeedback?: HapticFeedback;
66
81
  }
67
82
  /**
68
83
  * Top-level, user-facing provider for `@funkit/connect-rn` — the single
@@ -75,5 +90,5 @@ export interface FunkitProviderProps {
75
90
  * the {@link QueryClientProvider}. Host integration stays a single
76
91
  * `<FunkitProvider>`.
77
92
  */
78
- export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, renderBackdropBlur, }: FunkitProviderProps): import("react").JSX.Element;
93
+ export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, pasteFromClipboard, renderBackdropBlur, hapticFeedback, }: FunkitProviderProps): import("react").JSX.Element;
79
94
  //# sourceMappingURL=FunkitProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAGlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK5D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;IAC3C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACrD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,EACf,kBAAkB,GACnB,EAAE,mBAAmB,+BA0DrB"}
1
+ {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAGlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK7E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;IAC3C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACrD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,EAAE,mBAAmB,+BA6DrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectChainScreen.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,UAAU,cAAc;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAoE9D;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAsD9D"}
1
+ {"version":3,"file":"SelectChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectChainScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,UAAU,cAAc;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAqE9D;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAwD9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectMethodScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AA2EnE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;uCACmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAmLhE"}
1
+ {"version":3,"file":"SelectMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectMethodScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AA4EnE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;uCACmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAmLhE"}
@@ -0,0 +1,18 @@
1
+ import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
2
+ import type { DestinationChain } from '../withdrawal/useWithdrawalDestinationTokens';
3
+ export interface SelectReceiveTokenAndChainScreenProps {
4
+ chains: DestinationChain[];
5
+ /** What the withdrawal uses now. The draft opens on it; Confirm replaces it. */
6
+ committed?: WithdrawalToken;
7
+ onConfirm: (chainId: number, token: string) => void;
8
+ onBack: () => void;
9
+ }
10
+ /**
11
+ * Pick the token and chain a withdrawal lands as. Taps draft, Confirm commits.
12
+ *
13
+ * A step rather than a sheet, so `back` pops it and popping is what discards the
14
+ * draft. The `+N` row's list is a sheet *over* this screen, which therefore stays
15
+ * mounted — a token picked there is still drafted on the way back.
16
+ */
17
+ export declare function SelectReceiveTokenAndChainScreen({ chains, committed, onConfirm, onBack, }: SelectReceiveTokenAndChainScreenProps): import("react").JSX.Element;
18
+ //# sourceMappingURL=SelectReceiveTokenAndChainScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectReceiveTokenAndChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectReceiveTokenAndChainScreen.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAkBnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAGpF,MAAM,WAAW,qCAAqC;IACpD,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,gFAAgF;IAChF,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,GACP,EAAE,qCAAqC,+BAwKvC"}
@@ -0,0 +1,13 @@
1
+ export interface SelectReceiveTokenScreenProps {
2
+ tokens: string[];
3
+ selectedToken?: string;
4
+ /** Drafts the token and hands control back to the screen underneath. */
5
+ onSelectToken: (token: string) => void;
6
+ onClose: () => void;
7
+ }
8
+ /**
9
+ * Every token a withdrawal can be received as, searchable — the tail behind the
10
+ * grid's `+N tokens` row. A tap drafts and returns; only the grid commits.
11
+ */
12
+ export declare function SelectReceiveTokenScreen({ tokens, selectedToken, onSelectToken, onClose, }: SelectReceiveTokenScreenProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=SelectReceiveTokenScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectReceiveTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectReceiveTokenScreen.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,GACR,EAAE,6BAA6B,+BAiF/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectSourceTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectSourceTokenScreen.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAA;AAM/E,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,2BAA2B,EAAE,CAAA;IACtC,6EAA6E;IAC7E,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,aAAa,EACb,QAAQ,EACR,MAAM,GACP,EAAE,4BAA4B,+BA6G9B"}
1
+ {"version":3,"file":"SelectSourceTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectSourceTokenScreen.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAA;AAM/E,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,2BAA2B,EAAE,CAAA;IACtC,6EAA6E;IAC7E,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,aAAa,EACb,QAAQ,EACR,MAAM,GACP,EAAE,4BAA4B,+BA0G9B"}
@@ -0,0 +1,12 @@
1
+ export interface TransactionBreakdownScreenProps {
2
+ /** What the recipient should expect, e.g. `$99.94`. */
3
+ usdLabel: string;
4
+ /** The floor the trade won't execute below, e.g. `$99.81`. */
5
+ floorLabel: string;
6
+ }
7
+ /**
8
+ * What the quoted amount means, in prose: it is an estimate, it has a floor, and
9
+ * it settles in seconds. Opened from the ⓘ beside the amount.
10
+ */
11
+ export declare function TransactionBreakdownScreen({ usdLabel, floorLabel, }: TransactionBreakdownScreenProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=TransactionBreakdownScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionBreakdownScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/TransactionBreakdownScreen.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,+BAA+B;IAC9C,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,UAAU,GACX,EAAE,+BAA+B,+BAgCjC"}
@@ -0,0 +1,48 @@
1
+ import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
2
+ export interface WithdrawAddressScreenProps {
3
+ /** Names the amount already confirmed, e.g. `Withdraw $100`. */
4
+ title: string;
5
+ /** The typed recipient. */
6
+ recipient: string;
7
+ onChangeRecipient: (value: string) => void;
8
+ /** Whether the recipient is an address at all; `undefined` while empty. */
9
+ isAddress: boolean | undefined;
10
+ onPaste: () => void;
11
+ /** A clipboard read is out — the Paste action is held down until it lands. */
12
+ isPasting?: boolean;
13
+ /** Omit to drop the connected-wallet shortcut. */
14
+ onUseConnected?: () => void;
15
+ /** A reason the address can't be used, past being well-formed. */
16
+ errorText?: string;
17
+ /** Non-blocking caution, e.g. a flagged-address notice. */
18
+ warningText?: string;
19
+ /** What the withdrawal is received as, and the picker for it. */
20
+ destinationToken: WithdrawalToken | undefined;
21
+ onPressReceive: () => void;
22
+ /**
23
+ * What the recipient gets, in the currency the screen leads with. `undefined`
24
+ * until the quote settles.
25
+ */
26
+ usdLabel: string | undefined;
27
+ /** The same amount in the token that arrives, e.g. `99.78 USDC`. */
28
+ tokenLabel: string | undefined;
29
+ onPressBreakdown: () => void;
30
+ /** The quote couldn't be got — shown where the figure would be. */
31
+ quoteErrorText?: string;
32
+ canSubmit: boolean;
33
+ /** The signature is in flight, or the quote it needs isn't settled. */
34
+ isBusy: boolean;
35
+ /** The signature specifically — what the button reports while it is out. */
36
+ isSubmitting: boolean;
37
+ onSubmit: () => void;
38
+ /** An unrecoverable failure from the last attempt. */
39
+ executionErrorText?: string;
40
+ onBack: () => void;
41
+ onClose: () => void;
42
+ }
43
+ /**
44
+ * Step two of the crypto withdrawal: where the money goes, and what it arrives
45
+ * as. The amount was taken on the step before and is named in the title.
46
+ */
47
+ export declare function WithdrawAddressScreen({ title, recipient, onChangeRecipient, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, destinationToken, onPressReceive, usdLabel, tokenLabel, onPressBreakdown, quoteErrorText, canSubmit, isBusy, isSubmitting, onSubmit, executionErrorText, onBack, onClose, }: WithdrawAddressScreenProps): import("react").JSX.Element;
48
+ //# sourceMappingURL=WithdrawAddressScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawAddressScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAddressScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAMnE,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iEAAiE;IACjE,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAA;IACf,4EAA4E;IAC5E,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,+BAsG5B"}
@@ -0,0 +1,53 @@
1
+ export interface WithdrawAmountSource {
2
+ /** The source as the host names it, e.g. `USDC (Perps)`. */
3
+ label: string;
4
+ /** What the amount and the balance are denominated in, e.g. `USDG`. */
5
+ symbol: string;
6
+ chainId: number;
7
+ /** Direct token logo URL; falls back to a CDN lookup by symbol. */
8
+ iconSrc?: string;
9
+ }
10
+ export interface WithdrawAmountScreenProps {
11
+ title: string;
12
+ /** The withdrawal amount, in source-token units. */
13
+ amount: string;
14
+ /** Sets the amount outright, in source-token units (Use Max). */
15
+ onChangeAmount: (amount: string) => void;
16
+ /**
17
+ * The number in the amount display, which the numpad edits — dollars when
18
+ * {@link inUsd}, else source-token units. Held by the caller so it survives
19
+ * this screen leaving the stack.
20
+ */
21
+ input: string;
22
+ onChangeInput: (input: string) => void;
23
+ /** Whether the amount is being typed in dollars rather than token units. */
24
+ inUsd: boolean;
25
+ /** The amount in dollars. `undefined` when nothing prices it. */
26
+ usdLabel: string | undefined;
27
+ /** Switches denomination. `undefined` drops the swap entirely. */
28
+ onSwapDenomination: (() => void) | undefined;
29
+ /** Fraction digits the source token carries; caps what the numpad accepts. */
30
+ sourceDecimals?: number;
31
+ /** Spendable balance in source-token units. Omit to drop Use Max. */
32
+ balance?: string;
33
+ /** What the withdrawal is drawn from. */
34
+ source: WithdrawAmountSource;
35
+ /** Opens the source picker. Omit when the host offers a single source. */
36
+ onPressSource?: () => void;
37
+ /** Replaces the converted amount and tints the amount. */
38
+ errorText?: string;
39
+ canContinue: boolean;
40
+ onContinue: () => void;
41
+ onBack: () => void;
42
+ onClose: () => void;
43
+ }
44
+ /**
45
+ * Step one of the crypto withdrawal: how much, and what it comes out of. The
46
+ * destination, the recipient, the fees and the signature are the step that
47
+ * follows.
48
+ *
49
+ * The amount is driven by an in-app numpad rather than the system keyboard, so
50
+ * the sheet never has to move out from under it.
51
+ */
52
+ export declare function WithdrawAmountScreen({ title, amount, onChangeAmount, input, onChangeInput, inUsd, usdLabel, onSwapDenomination, sourceDecimals, balance, source, onPressSource, errorText, canContinue, onContinue, onBack, onClose, }: WithdrawAmountScreenProps): import("react").JSX.Element;
53
+ //# sourceMappingURL=WithdrawAmountScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAmountScreen.tsx"],"names":[],"mappings":"AA4CA,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAA;IACd,iEAAiE;IACjE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,4EAA4E;IAC5E,KAAK,EAAE,OAAO,CAAA;IACd,iEAAiE;IACjE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAC5C,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yCAAyC;IACzC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,EACN,cAAc,EACd,KAAK,EACL,aAAa,EACb,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,MAAM,EACN,aAAa,EACb,SAAS,EACT,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,GACR,EAAE,yBAAyB,+BAmJ3B"}
@@ -5,13 +5,24 @@ export interface WithdrawCompleteScreenProps {
5
5
  isFailed?: boolean;
6
6
  /** Failed, and the funds are on their way back to the sender. */
7
7
  isRefunded?: boolean;
8
+ /** What left the account, for the copy a failure needs. */
8
9
  amountLabel: string;
10
+ /**
11
+ * What arrived, frozen at submission — the quote is long gone by now, so
12
+ * `undefined` means it was never priced rather than not priced yet.
13
+ */
14
+ usdLabel: string | undefined;
15
+ tokenLabel: string | undefined;
9
16
  onDone: () => void;
10
17
  }
11
18
  /**
12
- * The outcome of a submitted transfer. A missing or slow record reads as "still
13
- * settling" rather than a failure — it is written best-effort and the funds have
14
- * already moved — but an explicit terminal failure is shown as one.
19
+ * The outcome of a submitted withdrawal, on the figure the recipient step ended
20
+ * on: the amount stays where it was and the chrome around it is gone, so
21
+ * arriving here reads as the same screen settling rather than a new one.
22
+ *
23
+ * A missing or slow record reads as "still settling" rather than a failure — it
24
+ * is written best-effort and the funds have already moved — but an explicit
25
+ * terminal failure is shown as one.
15
26
  */
16
- export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
27
+ export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, usdLabel, tokenLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
17
28
  //# sourceMappingURL=WithdrawCompleteScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,SAAS,EAAE,OAAO,CAAA;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAgB,EAChB,UAAkB,EAClB,WAAW,EACX,MAAM,GACP,EAAE,2BAA2B,+BAyD7B"}
1
+ {"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,SAAS,EAAE,OAAO,CAAA;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAgB,EAChB,UAAkB,EAClB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,GACP,EAAE,2BAA2B,+BAiE7B"}
@@ -6,10 +6,17 @@ import type { WithdrawalFlowCallbacks } from '../flow/withdrawalFlowConfig';
6
6
  *
7
7
  * The callbacks are fired from an effect, where a throw would unmount the tree —
8
8
  * they arrive guarded (`guardHostCallbacks`), which is what makes that safe.
9
+ *
10
+ * Closing the flow ends the follow with it — the SDK runs no work behind a shut
11
+ * sheet. The host still holds the hash `onWithdrawalSubmitted` gave it at submit
12
+ * and can settle the transfer itself; the log below is how often that happens.
9
13
  */
10
- export declare function WithdrawCryptoComplete({ txHash, amountLabel, callbacks, onDone, }: {
14
+ export declare function WithdrawCryptoComplete({ txHash, amountLabel, usdLabel, tokenLabel, callbacks, onDone, }: {
11
15
  txHash: string;
12
16
  amountLabel: string;
17
+ /** What arrived, frozen at submission. */
18
+ usdLabel: string | undefined;
19
+ tokenLabel: string | undefined;
13
20
  callbacks: WithdrawalFlowCallbacks;
14
21
  onDone: () => void;
15
22
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAI3E;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,SAAS,EACT,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAgCA"}
1
+ {"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAK3E;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BA0CA"}
@@ -0,0 +1,39 @@
1
+ import type { FlowNav, FlowScreen } from '../flow/FunkitFlowProvider';
2
+ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig';
3
+ import type { SafeClipboardReader } from '../transfer/clipboard';
4
+ /**
5
+ * The crypto rail's screens, and the one withdrawal they are all building.
6
+ *
7
+ * Each screen is its own entry in the flow's stack — `back` leaves the screen,
8
+ * not the rail — while the state behind them lives here, so navigating between
9
+ * them keeps the amount, the source and the quote. A screen added later (the
10
+ * recipient's address is next) is a case below and a `nav.navigate` from the one
11
+ * before it.
12
+ */
13
+ export declare function WithdrawCryptoSteps({ config, callbacks, current, nav, quoteInputFeeTokens, extraSourceGasUsd, pasteFromClipboard, onSubmitted, }: {
14
+ config: WithdrawalFlowConfig;
15
+ callbacks: WithdrawalFlowCallbacks;
16
+ current: FlowScreen | undefined;
17
+ nav: FlowNav;
18
+ /**
19
+ * A flat fee the venue takes off the withdrawal before it is quoted, in
20
+ * source-token units, or 0. The SDK only knows the number, never who charges
21
+ * it.
22
+ */
23
+ quoteInputFeeTokens: number;
24
+ /**
25
+ * A venue fee billed as source-chain gas, in USD, for the summary's network
26
+ * row, or 0.
27
+ */
28
+ extraSourceGasUsd: number;
29
+ /** Fills the recipient field from the clipboard. Guarded upstream. */
30
+ pasteFromClipboard: SafeClipboardReader;
31
+ onSubmitted: (result: {
32
+ txHash: string;
33
+ amountLabel: string;
34
+ /** What arrived, frozen here: the quote refreshes, the outcome doesn't. */
35
+ usdLabel: string | undefined;
36
+ tokenLabel: string | undefined;
37
+ }) => void;
38
+ }): import("react").JSX.Element;
39
+ //# sourceMappingURL=WithdrawCryptoSteps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAiBhE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,sEAAsE;IACtE,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,MAAM,EAAE,MAAM,CAAA;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,2EAA2E;QAC3E,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX,+BAmNA"}
@@ -20,4 +20,26 @@ export type ClipboardWriter = (value: string) => void | Promise<boolean>;
20
20
  * Returns whether the copy succeeded.
21
21
  */
22
22
  export declare function copyToClipboard(value: string): Promise<boolean>;
23
+ /**
24
+ * A clipboard read the host can inject via `FunkitProvider`'s
25
+ * `pasteFromClipboard`, for the same reason as {@link ClipboardWriter}: the
26
+ * bare-RN native module isn't linked everywhere. Returns the clipboard's text,
27
+ * or `undefined` when it can't be read.
28
+ */
29
+ export type ClipboardReader = () => string | undefined | Promise<string | undefined>;
30
+ /** A {@link ClipboardReader} that resolves to `undefined` instead of rejecting. */
31
+ export type SafeClipboardReader = () => Promise<string | undefined>;
32
+ /**
33
+ * Wraps a host-injected reader where it enters the SDK, so no paste call site
34
+ * has to defend itself. Only injected readers can fail; the default below is
35
+ * already guarded, and the type lets a host throw as easily as reject.
36
+ */
37
+ export declare function guardClipboardReader(read: ClipboardReader): SafeClipboardReader;
38
+ /**
39
+ * Default clipboard read — the mirror of {@link copyToClipboard}, and dynamic for
40
+ * the same reason: the native module is only evaluated when a paste actually
41
+ * happens, so a host that hasn't linked it degrades to a warning instead of
42
+ * crashing at startup.
43
+ */
44
+ export declare function pasteFromClipboard(): Promise<string | undefined>;
23
45
  //# sourceMappingURL=clipboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/transfer/clipboard.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAerE"}
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/transfer/clipboard.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAerE;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,MAC1B,MAAM,GACN,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAE/B,mFAAmF;AACnF,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,GACpB,mBAAmB,CAuBrB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CActE"}
@@ -0,0 +1,15 @@
1
+ /** What a character in the amount is, which is what decides how it moves. */
2
+ export type AmountGlyphKind = 'prefix' | 'placeholder' | 'digit';
3
+ export interface AmountGlyph {
4
+ /** Identity across renders: what mounts is what animates in. */
5
+ key: string;
6
+ char: string;
7
+ kind: AmountGlyphKind;
8
+ }
9
+ /**
10
+ * The amount split into the characters that animate independently. Digits are
11
+ * keyed from the left, so appending or deleting at the right mounts or unmounts
12
+ * exactly that character and an inserted separator shifts the rest along.
13
+ */
14
+ export declare function amountGlyphs(value: string, prefix: string): AmountGlyph[];
15
+ //# sourceMappingURL=amountGlyphs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amountGlyphs.d.ts","sourceRoot":"","sources":["../../../src/utils/amountGlyphs.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAA;AAEhE,MAAM,WAAW,WAAW;IAC1B,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,eAAe,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,CAezE"}
@@ -0,0 +1,20 @@
1
+ export declare const ASSET_GRID_COLUMNS = 5;
2
+ export declare const ASSET_GRID_GAP = 16;
3
+ /** Shared so a cell's selection ring lands on the circle the caller passed it. */
4
+ export declare const ASSET_GRID_AVATAR_SIZE = 58;
5
+ /**
6
+ * The cells a capped grid offers, and how many the `+N` affordance stands for.
7
+ *
8
+ * - `mustShow` takes the **last** slot when the head would have hidden it, so a
9
+ * pick made behind the `+N` row comes back without adding a row or moving any
10
+ * other cell. Matched by identity.
11
+ * - A non-positive `capacity` means no cap, so a caller still resolving its limit
12
+ * shows what it has rather than an empty grid.
13
+ */
14
+ export declare function gridCells<T>(items: T[], capacity: number, mustShow?: T): {
15
+ cells: T[];
16
+ overflowCount: number;
17
+ };
18
+ /** A non-positive `size` can't advance the cursor, so it stays one row. */
19
+ export declare function chunk<T>(items: T[], size: number): T[][];
20
+ //# sourceMappingURL=assetGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetGrid.d.ts","sourceRoot":"","sources":["../../../src/utils/assetGrid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,IAAI,CAAA;AACnC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAExC;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,KAAK,EAAE,CAAC,EAAE,EACV,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,CAAC,GACX;IAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAavC;AAED,2EAA2E;AAC3E,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CASxD"}
@@ -0,0 +1,13 @@
1
+ import type { WalletExecutionErrorCode } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ /**
4
+ * What the user reads for a failure core classified. Web's copy, per cause.
5
+ *
6
+ * A cause core could name gets that copy: it is translated and says what to do,
7
+ * which no provider string does. Everything else falls back to the error's own
8
+ * text — "please try again" is the one message that helps nobody, and the
9
+ * failures that land here are the ones neither we nor the user can otherwise
10
+ * diagnose. Truncated, since a relay error can run to paragraphs.
11
+ */
12
+ export declare function executionErrorMessage(t: TFunction, code: WalletExecutionErrorCode, message?: string): string;
13
+ //# sourceMappingURL=executionErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executionErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/utils/executionErrorMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAMxC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,CAAC,EAAE,SAAS,EACZ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAYR"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `1062.11` → `1,062.11`. The fraction is passed through untouched: rounding a
3
+ * balance would show the user a number they can't withdraw.
4
+ */
5
+ export declare function groupThousands(amount: string): string;
6
+ /**
7
+ * The fraction a token amount is shown to, matching web's `ASSET_DECIMALS` (see
8
+ * the checkout's `InputAmount/utils.ts`) so the two flows read the same.
9
+ */
10
+ export declare const ASSET_DECIMALS = 5;
11
+ /**
12
+ * `99.780000` → `99.78`, capped at {@link ASSET_DECIMALS}.
13
+ *
14
+ * Truncated rather than rounded: a figure the recipient won't actually get is
15
+ * worse than one digit less of it. Trailing zeros go, so a round amount reads as
16
+ * one.
17
+ */
18
+ export declare function formatTokenAmount(amount: string, maxDecimals?: number): string;
19
+ /** `99.94` → `$99.94`. Two decimals, as every USD figure in the design is. */
20
+ export declare function formatUsd(value: number): string;
21
+ //# sourceMappingURL=formatAmount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAuB,GACnC,MAAM,CAKR;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C"}
@@ -0,0 +1,3 @@
1
+ export declare const MOTION_DURATION = 180;
2
+ export declare const MOTION_EASING: import("react-native-reanimated").EasingFunctionFactory;
3
+ //# sourceMappingURL=motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/utils/motion.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,MAAM,CAAA;AAClC,eAAO,MAAM,aAAa,yDAAkC,CAAA"}
@@ -0,0 +1,14 @@
1
+ export type NumpadDigit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
2
+ export type NumpadKey = NumpadDigit | '.' | 'backspace';
3
+ /**
4
+ * The typed amount after one keypress, as a decimal string.
5
+ *
6
+ * - A lone `.` is not a number any parser accepts, so the leading zero is
7
+ * written for the user; a second point, and any point at all on a 0-decimal
8
+ * token, is refused rather than swallowed later.
9
+ * - `0` is a placeholder rather than a leading digit, so typing `5` gives `5`.
10
+ * - Fraction digits stop at the token's `decimals`: past that the input is dust
11
+ * the transfer can't carry, and it would silently truncate at signing time.
12
+ */
13
+ export declare function applyNumpadKey(value: string, key: NumpadKey, maxDecimals?: number): string;
14
+ //# sourceMappingURL=numpadInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numpadInput.d.ts","sourceRoot":"","sources":["../../../src/utils/numpadInput.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GACnB,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,GAAG,GAAG,WAAW,CAAA;AAIvD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,SAAS,EACd,WAAW,CAAC,EAAE,MAAM,GACnB,MAAM,CAmBR"}
@@ -0,0 +1,3 @@
1
+ /** What a full-window step's footer keeps between itself and the screen edge. */
2
+ export declare function footerBottomMargin(bottomInset: number): number;
3
+ //# sourceMappingURL=safeArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safeArea.d.ts","sourceRoot":"","sources":["../../../src/utils/safeArea.ts"],"names":[],"mappings":"AAKA,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE9D"}
@@ -0,0 +1,11 @@
1
+ import type { DestinationChain } from './useWithdrawalDestinationTokens';
2
+ /** Nothing picked rules nothing out. */
3
+ export declare function chainCarries(chain: DestinationChain, token: string | undefined): boolean;
4
+ /**
5
+ * The preferred chain if it carries the token, else the first that does — keeping
6
+ * a still-valid preference is what stops a new token moving the network under it.
7
+ */
8
+ export declare function chainForToken(chains: DestinationChain[], token: string, preferredChainId: number | undefined): number | undefined;
9
+ /** Deduped, curated order intact. */
10
+ export declare function receivableTokens(chains: DestinationChain[]): string[];
11
+ //# sourceMappingURL=receiveDestination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receiveDestination.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/receiveDestination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAExE,wCAAwC;AACxC,wBAAgB,YAAY,CAC1B,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,CAET;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,gBAAgB,EAAE,EAC1B,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CAIpB;AAED,qCAAqC;AACrC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,EAAE,CAErE"}
@@ -1,17 +1,10 @@
1
- import type { WithdrawalFlowConfig, WithdrawalSourceTokenOption, WithdrawalToken } from '../flow/withdrawalFlowConfig';
1
+ import type { WithdrawalFlowConfig, WithdrawalSourceTokenOption } from '../flow/withdrawalFlowConfig';
2
2
  /**
3
3
  * The source tokens the user may pick between. A host with one source omits
4
4
  * `sourceTokens`, leaving the single `sourceToken` as the only option.
5
- */
6
- export declare function resolveWithdrawalSourceTokens(config: Pick<WithdrawalFlowConfig, 'sourceToken' | 'sourceTokens'>): WithdrawalSourceTokenOption[];
7
- /**
8
- * Resolve the integrator's `withdrawalSourceTokenBalance` callback to a numeric
9
- * string. Port of web's `resolveWithdrawalSourceTokenBalance`.
10
5
  *
11
- * `undefined` means no callback was supplied, which is not the same as a
12
- * callback returning `0` ("nothing withdrawable"). A throw or an unusable value
13
- * yields `'0'`, never `undefined`: a broken callback must not read as "unknown"
14
- * and let the form fall through to some other balance.
6
+ * Stays local to React Native: web's option type is keyed by symbol and carries
7
+ * per-option checkout data, so there is no shared shape to resolve against.
15
8
  */
16
- export declare function resolveWithdrawalSourceBalance(config: Pick<WithdrawalFlowConfig, 'withdrawalSourceTokenBalance'>, sourceToken: WithdrawalToken): string | undefined;
9
+ export declare function resolveWithdrawalSourceTokens(config: Pick<WithdrawalFlowConfig, 'sourceToken' | 'sourceTokens'>): WithdrawalSourceTokenOption[];
17
10
  //# sourceMappingURL=sourceToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sourceToken.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/sourceToken.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,eAAe,EAChB,MAAM,8BAA8B,CAAA;AAQrC;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,cAAc,CAAC,GACjE,2BAA2B,EAAE,CAG/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,8BAA8B,CAAC,EAClE,WAAW,EAAE,eAAe,GAC3B,MAAM,GAAG,SAAS,CAuBpB"}
1
+ {"version":3,"file":"sourceToken.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/sourceToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,8BAA8B,CAAA;AAErC;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,cAAc,CAAC,GACjE,2BAA2B,EAAE,CAG/B"}
@@ -14,6 +14,12 @@ export type CryptoWithdrawalSubmission = {
14
14
  } | {
15
15
  status: 'failed';
16
16
  code: WalletExecutionErrorCode;
17
+ /**
18
+ * The error's own text. Read by the form only where the classified cause
19
+ * says nothing the user can act on — a failure the SDK cannot name is
20
+ * better reported in the provider's words than as "please try again".
21
+ */
22
+ message: string;
17
23
  };
18
24
  export interface UseCryptoWithdrawalExecutionParams {
19
25
  config: WithdrawalFlowConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"useCryptoWithdrawalExecution.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalExecution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,wBAAwB,EAM9B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AA4CrC,MAAM,MAAM,0BAA0B,GAClC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C;IACE,MAAM,EAAE,WAAW,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAA;CACf,GAGD;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,wBAAwB,CAAA;CAAE,CAAA;AAExD,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,CAAA;IACjC,SAAS,EAAE,uBAAuB,CAAA;CACnC;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,EAAE,kCAAkC;;mDAY9B;QACD,yEAAyE;QACzE,KAAK,EAAE,qBAAqB,CAAA;QAC5B,gBAAgB,EAAE,MAAM,CAAA;QACxB,MAAM,EAAE,MAAM,CAAA;KACf;;EAuFJ"}
1
+ {"version":3,"file":"useCryptoWithdrawalExecution.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalExecution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,wBAAwB,EAM9B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AA4CrC,MAAM,MAAM,0BAA0B,GAClC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C;IACE,MAAM,EAAE,WAAW,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAA;CACf,GACD;IACE,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,wBAAwB,CAAA;IAC9B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAEL,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,CAAA;IACjC,SAAS,EAAE,uBAAuB,CAAA;CACnC;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,EAAE,kCAAkC;;mDAY9B;QACD,yEAAyE;QACzE,KAAK,EAAE,qBAAqB,CAAA;QAC5B,gBAAgB,EAAE,MAAM,CAAA;QACxB,MAAM,EAAE,MAAM,CAAA;KACf;;EAwFJ"}