pods-sdk 0.2.58

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 (194) hide show
  1. package/README.md +760 -0
  2. package/dist/api/actions.api.d.ts +433 -0
  3. package/dist/api/actions.api.d.ts.map +1 -0
  4. package/dist/api/history.api.d.ts +311 -0
  5. package/dist/api/history.api.d.ts.map +1 -0
  6. package/dist/api/tokens.api.d.ts +985 -0
  7. package/dist/api/tokens.api.d.ts.map +1 -0
  8. package/dist/components/earn/GroupedStrategyList.d.ts +21 -0
  9. package/dist/components/earn/GroupedStrategyList.d.ts.map +1 -0
  10. package/dist/components/earn/StrategyDetailsView.d.ts +14 -0
  11. package/dist/components/earn/StrategyDetailsView.d.ts.map +1 -0
  12. package/dist/components/earn/desktop/EarnPageDesktop.d.ts +13 -0
  13. package/dist/components/earn/desktop/EarnPageDesktop.d.ts.map +1 -0
  14. package/dist/components/earn/desktop/ExploreStrategiesGrid.d.ts +30 -0
  15. package/dist/components/earn/desktop/ExploreStrategiesGrid.d.ts.map +1 -0
  16. package/dist/components/earn/desktop/InvestedStrategiesSection.d.ts +22 -0
  17. package/dist/components/earn/desktop/InvestedStrategiesSection.d.ts.map +1 -0
  18. package/dist/components/earn/desktop/InvestmentSummaryDesktop.d.ts +27 -0
  19. package/dist/components/earn/desktop/InvestmentSummaryDesktop.d.ts.map +1 -0
  20. package/dist/components/earn/desktop/RecentTransactions.d.ts +32 -0
  21. package/dist/components/earn/desktop/RecentTransactions.d.ts.map +1 -0
  22. package/dist/components/earn/desktop/StrategyGridCard.d.ts +35 -0
  23. package/dist/components/earn/desktop/StrategyGridCard.d.ts.map +1 -0
  24. package/dist/constants/analytics.d.ts +92 -0
  25. package/dist/constants/analytics.d.ts.map +1 -0
  26. package/dist/constants/error-monitoring.d.ts +2 -0
  27. package/dist/constants/error-monitoring.d.ts.map +1 -0
  28. package/dist/domain/swap/deriveAmountInForSwap.d.ts +11 -0
  29. package/dist/domain/swap/deriveAmountInForSwap.d.ts.map +1 -0
  30. package/dist/domain/swap/deriveTokenPriceUSD.d.ts +10 -0
  31. package/dist/domain/swap/deriveTokenPriceUSD.d.ts.map +1 -0
  32. package/dist/domain/swap/getAmountInUSD.d.ts +12 -0
  33. package/dist/domain/swap/getAmountInUSD.d.ts.map +1 -0
  34. package/dist/domain/swap/getQuoteOutputUI.d.ts +14 -0
  35. package/dist/domain/swap/getQuoteOutputUI.d.ts.map +1 -0
  36. package/dist/domain/swap/getQuoteOutputUSD.d.ts +12 -0
  37. package/dist/domain/swap/getQuoteOutputUSD.d.ts.map +1 -0
  38. package/dist/domain/swap/index.d.ts +11 -0
  39. package/dist/domain/swap/index.d.ts.map +1 -0
  40. package/dist/domain/swap/isPositiveNumberString.d.ts +5 -0
  41. package/dist/domain/swap/isPositiveNumberString.d.ts.map +1 -0
  42. package/dist/domain/swap/isQuoteMatchingInput.d.ts +24 -0
  43. package/dist/domain/swap/isQuoteMatchingInput.d.ts.map +1 -0
  44. package/dist/domain/swap/normalizeSwapAddress.d.ts +6 -0
  45. package/dist/domain/swap/normalizeSwapAddress.d.ts.map +1 -0
  46. package/dist/domain/swap/resolveEffectivePrice.d.ts +14 -0
  47. package/dist/domain/swap/resolveEffectivePrice.d.ts.map +1 -0
  48. package/dist/domain/swap/resolveInputAmountBase.d.ts +11 -0
  49. package/dist/domain/swap/resolveInputAmountBase.d.ts.map +1 -0
  50. package/dist/hooks/useAnalytics.d.ts +9 -0
  51. package/dist/hooks/useAnalytics.d.ts.map +1 -0
  52. package/dist/hooks/useDimensions.d.ts +15 -0
  53. package/dist/hooks/useDimensions.d.ts.map +1 -0
  54. package/dist/hooks/useGlobalCurrency.d.ts +17 -0
  55. package/dist/hooks/useGlobalCurrency.d.ts.map +1 -0
  56. package/dist/hooks/useGlobalHistory.d.ts +22 -0
  57. package/dist/hooks/useGlobalHistory.d.ts.map +1 -0
  58. package/dist/hooks/useGroupedStrategies.d.ts +4 -0
  59. package/dist/hooks/useGroupedStrategies.d.ts.map +1 -0
  60. package/dist/hooks/useI18n.d.ts +12 -0
  61. package/dist/hooks/useI18n.d.ts.map +1 -0
  62. package/dist/hooks/useStrategyTokens.d.ts +15 -0
  63. package/dist/hooks/useStrategyTokens.d.ts.map +1 -0
  64. package/dist/hooks/useSwapFlowLogic.d.ts +198 -0
  65. package/dist/hooks/useSwapFlowLogic.d.ts.map +1 -0
  66. package/dist/hooks/useTokenGroups.d.ts +14 -0
  67. package/dist/hooks/useTokenGroups.d.ts.map +1 -0
  68. package/dist/i18n/index.d.ts +13 -0
  69. package/dist/i18n/index.d.ts.map +1 -0
  70. package/dist/i18n/messages.d.ts +307 -0
  71. package/dist/i18n/messages.d.ts.map +1 -0
  72. package/dist/pages/SwapFlow/SwapFormContext.d.ts +6 -0
  73. package/dist/pages/SwapFlow/SwapFormContext.d.ts.map +1 -0
  74. package/dist/pages/SwapFlow/SwapHistoryScreen.d.ts +4 -0
  75. package/dist/pages/SwapFlow/SwapHistoryScreen.d.ts.map +1 -0
  76. package/dist/pages/TransactionProcessingDetails/StepDisplay.d.ts +10 -0
  77. package/dist/pages/TransactionProcessingDetails/StepDisplay.d.ts.map +1 -0
  78. package/dist/pages/TransactionProcessingDetails/StepStatusIcon.d.ts +11 -0
  79. package/dist/pages/TransactionProcessingDetails/StepStatusIcon.d.ts.map +1 -0
  80. package/dist/pages/TransactionProcessingDetails/StepStatusText.d.ts +10 -0
  81. package/dist/pages/TransactionProcessingDetails/StepStatusText.d.ts.map +1 -0
  82. package/dist/pages/TransactionProcessingDetails/index.d.ts +4 -0
  83. package/dist/pages/TransactionProcessingDetails/index.d.ts.map +1 -0
  84. package/dist/pages/TransactionProcessingDetails.d.ts +22 -0
  85. package/dist/pages/TransactionProcessingDetails.d.ts.map +1 -0
  86. package/dist/pages/TransactionStepValue.d.ts +12 -0
  87. package/dist/pages/TransactionStepValue.d.ts.map +1 -0
  88. package/dist/services/analyticsService.d.ts +11 -0
  89. package/dist/services/analyticsService.d.ts.map +1 -0
  90. package/dist/services/errorMonitoringService.d.ts +17 -0
  91. package/dist/services/errorMonitoringService.d.ts.map +1 -0
  92. package/dist/services/scrubPii.d.ts +3 -0
  93. package/dist/services/scrubPii.d.ts.map +1 -0
  94. package/dist/test-utils/grouped-strategies-dummy.d.ts +6 -0
  95. package/dist/test-utils/grouped-strategies-dummy.d.ts.map +1 -0
  96. package/dist/test-utils/history-dummy.d.ts +34 -0
  97. package/dist/test-utils/history-dummy.d.ts.map +1 -0
  98. package/dist/test-utils/investment-summary-dummy.d.ts +17 -0
  99. package/dist/test-utils/investment-summary-dummy.d.ts.map +1 -0
  100. package/dist/test-utils/strategies-dummy.d.ts +8 -0
  101. package/dist/test-utils/strategies-dummy.d.ts.map +1 -0
  102. package/dist/test-utils/strategies-with-apy-dummy.d.ts +32 -0
  103. package/dist/test-utils/strategies-with-apy-dummy.d.ts.map +1 -0
  104. package/dist/test-utils/swap-dummy.d.ts +35 -0
  105. package/dist/test-utils/swap-dummy.d.ts.map +1 -0
  106. package/dist/test-utils/swap-form-view-dummy.d.ts +21 -0
  107. package/dist/test-utils/swap-form-view-dummy.d.ts.map +1 -0
  108. package/dist/types/analytics.d.ts +17 -0
  109. package/dist/types/analytics.d.ts.map +1 -0
  110. package/dist/types/currency.d.ts +2 -0
  111. package/dist/types/currency.d.ts.map +1 -0
  112. package/dist/types/dimensions.d.ts +7 -0
  113. package/dist/types/dimensions.d.ts.map +1 -0
  114. package/dist/types/grouped-strategies.d.ts +42 -0
  115. package/dist/types/grouped-strategies.d.ts.map +1 -0
  116. package/dist/types/sdk-error-context.d.ts +10 -0
  117. package/dist/types/sdk-error-context.d.ts.map +1 -0
  118. package/dist/types/strategy-with-apy.d.ts +8 -0
  119. package/dist/types/strategy-with-apy.d.ts.map +1 -0
  120. package/dist/types/tokengroups.d.ts +47 -0
  121. package/dist/types/tokengroups.d.ts.map +1 -0
  122. package/dist/types/transaction.d.ts +14 -0
  123. package/dist/types/transaction.d.ts.map +1 -0
  124. package/dist/ui/action-sheet/ChooseAStrategyActionsheetView.d.ts +14 -0
  125. package/dist/ui/action-sheet/ChooseAStrategyActionsheetView.d.ts.map +1 -0
  126. package/dist/ui/action-sheet/ChooseWithdrawAssetActionsheet.d.ts +16 -0
  127. package/dist/ui/action-sheet/ChooseWithdrawAssetActionsheet.d.ts.map +1 -0
  128. package/dist/ui/chip/Chip.d.ts +30 -0
  129. package/dist/ui/chip/Chip.d.ts.map +1 -0
  130. package/dist/ui/chip/ChipGroup.d.ts +43 -0
  131. package/dist/ui/chip/ChipGroup.d.ts.map +1 -0
  132. package/dist/ui/chip/index.d.ts +5 -0
  133. package/dist/ui/chip/index.d.ts.map +1 -0
  134. package/dist/ui/group-label/GroupLabel.d.ts +17 -0
  135. package/dist/ui/group-label/GroupLabel.d.ts.map +1 -0
  136. package/dist/ui/group-label/index.d.ts +3 -0
  137. package/dist/ui/group-label/index.d.ts.map +1 -0
  138. package/dist/ui/loading/LoadingDots.d.ts +11 -0
  139. package/dist/ui/loading/LoadingDots.d.ts.map +1 -0
  140. package/dist/ui/loading/index.d.ts +2 -0
  141. package/dist/ui/loading/index.d.ts.map +1 -0
  142. package/dist/ui/swap-form/SwapAdvancedSettings.d.ts +9 -0
  143. package/dist/ui/swap-form/SwapAdvancedSettings.d.ts.map +1 -0
  144. package/dist/ui/swap-form/SwapAmountInputView.d.ts +11 -0
  145. package/dist/ui/swap-form/SwapAmountInputView.d.ts.map +1 -0
  146. package/dist/ui/swap-form/SwapNetworkSelectorView.d.ts +10 -0
  147. package/dist/ui/swap-form/SwapNetworkSelectorView.d.ts.map +1 -0
  148. package/dist/ui/swap-form/SwapOutputAmountView.d.ts +8 -0
  149. package/dist/ui/swap-form/SwapOutputAmountView.d.ts.map +1 -0
  150. package/dist/ui/swap-form/SwapQuoteBlockchainCostsView.d.ts +9 -0
  151. package/dist/ui/swap-form/SwapQuoteBlockchainCostsView.d.ts.map +1 -0
  152. package/dist/ui/swap-form/SwapQuoteErrorsView.d.ts +7 -0
  153. package/dist/ui/swap-form/SwapQuoteErrorsView.d.ts.map +1 -0
  154. package/dist/ui/swap-form/SwapQuoteHeaderView.d.ts +7 -0
  155. package/dist/ui/swap-form/SwapQuoteHeaderView.d.ts.map +1 -0
  156. package/dist/ui/swap-form/SwapSlippageToleranceButtonsView.d.ts +7 -0
  157. package/dist/ui/swap-form/SwapSlippageToleranceButtonsView.d.ts.map +1 -0
  158. package/dist/ui/swap-form/SwapTokenSelectorView.d.ts +11 -0
  159. package/dist/ui/swap-form/SwapTokenSelectorView.d.ts.map +1 -0
  160. package/dist/ui/swap-form/SwapTransactionDetails.d.ts +6 -0
  161. package/dist/ui/swap-form/SwapTransactionDetails.d.ts.map +1 -0
  162. package/dist/ui/transaction-screen/history/HistoryDepositDetailsView.d.ts +25 -0
  163. package/dist/ui/transaction-screen/history/HistoryDepositDetailsView.d.ts.map +1 -0
  164. package/dist/ui/transaction-screen/history/HistoryDetailsNotFound.d.ts +5 -0
  165. package/dist/ui/transaction-screen/history/HistoryDetailsNotFound.d.ts.map +1 -0
  166. package/dist/ui/transaction-screen/history/HistorySwapDetailsScreen.d.ts +8 -0
  167. package/dist/ui/transaction-screen/history/HistorySwapDetailsScreen.d.ts.map +1 -0
  168. package/dist/ui/transaction-screen/history/HistoryWithdrawDetailsView.d.ts +5 -0
  169. package/dist/ui/transaction-screen/history/HistoryWithdrawDetailsView.d.ts.map +1 -0
  170. package/dist/ui/transaction-screen/swap/SwapCrossChainProcessingScreen.d.ts +3 -0
  171. package/dist/ui/transaction-screen/swap/SwapCrossChainProcessingScreen.d.ts.map +1 -0
  172. package/dist/ui/transaction-screen/withdraw/WithdrawSuccess.d.ts +24 -0
  173. package/dist/ui/transaction-screen/withdraw/WithdrawSuccess.d.ts.map +1 -0
  174. package/dist/utils/addressUtils.d.ts +7 -0
  175. package/dist/utils/addressUtils.d.ts.map +1 -0
  176. package/dist/utils/analytics.d.ts +5 -0
  177. package/dist/utils/analytics.d.ts.map +1 -0
  178. package/dist/utils/currency.d.ts +11 -0
  179. package/dist/utils/currency.d.ts.map +1 -0
  180. package/dist/utils/errorMapping.d.ts +19 -0
  181. package/dist/utils/errorMapping.d.ts.map +1 -0
  182. package/dist/utils/filterStrategies.d.ts +21 -0
  183. package/dist/utils/filterStrategies.d.ts.map +1 -0
  184. package/dist/utils/fontLoader.d.ts +9 -0
  185. package/dist/utils/fontLoader.d.ts.map +1 -0
  186. package/dist/utils/historyMappers.d.ts +71 -0
  187. package/dist/utils/historyMappers.d.ts.map +1 -0
  188. package/dist/utils/strategyCategories.d.ts +25 -0
  189. package/dist/utils/strategyCategories.d.ts.map +1 -0
  190. package/dist/utils/tokenSorting.d.ts +30 -0
  191. package/dist/utils/tokenSorting.d.ts.map +1 -0
  192. package/dist/utils/tokengroups.d.ts +11 -0
  193. package/dist/utils/tokengroups.d.ts.map +1 -0
  194. package/package.json +132 -0
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ export interface ChipOption {
3
+ /**
4
+ * Unique identifier for the chip
5
+ */
6
+ value: string;
7
+ /**
8
+ * Display label for the chip
9
+ */
10
+ label: string;
11
+ }
12
+ export interface ChipGroupProps {
13
+ /**
14
+ * Available chip options
15
+ */
16
+ options: ChipOption[];
17
+ /**
18
+ * Currently selected chip value
19
+ */
20
+ selected: string;
21
+ /**
22
+ * Callback when a chip is selected
23
+ */
24
+ onSelect: (value: string) => void;
25
+ /**
26
+ * Additional CSS class names for the container
27
+ */
28
+ className?: string;
29
+ }
30
+ /**
31
+ * ChipGroup - A group of selectable filter chips
32
+ *
33
+ * @example
34
+ * const options = [
35
+ * { value: 'all', label: 'Todas' },
36
+ * { value: 'stablecoins', label: 'Stablecoins' },
37
+ * { value: 'crypto', label: 'Crypto/Staking' },
38
+ * ];
39
+ * <ChipGroup options={options} selected={selected} onSelect={setSelected} />
40
+ */
41
+ export declare const ChipGroup: React.FC<ChipGroupProps>;
42
+ export default ChipGroup;
43
+ //# sourceMappingURL=ChipGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipGroup.d.ts","sourceRoot":"","sources":["../../../src/ui/chip/ChipGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkB9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { Chip } from './Chip';
2
+ export type { ChipProps } from './Chip';
3
+ export { ChipGroup } from './ChipGroup';
4
+ export type { ChipGroupProps, ChipOption } from './ChipGroup';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface GroupLabelProps {
3
+ /**
4
+ * The label text to display
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * Additional CSS class names
9
+ */
10
+ className?: string;
11
+ }
12
+ /**
13
+ * GroupLabel - A label used to separate groups of items in a list
14
+ */
15
+ export declare const GroupLabel: React.FC<GroupLabelProps>;
16
+ export default GroupLabel;
17
+ //# sourceMappingURL=GroupLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupLabel.d.ts","sourceRoot":"","sources":["../../../src/ui/group-label/GroupLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgBhD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { GroupLabel } from './GroupLabel';
2
+ export type { GroupLabelProps } from './GroupLabel';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/group-label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface LoadingDotsProps {
3
+ className?: string;
4
+ }
5
+ /**
6
+ * Animated loading dots component with a bouncing effect
7
+ * Used to indicate loading states throughout the application
8
+ */
9
+ export declare const LoadingDots: React.FC<LoadingDotsProps>;
10
+ export {};
11
+ //# sourceMappingURL=LoadingDots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/ui/loading/LoadingDots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAQlD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { LoadingDots } from './LoadingDots';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface SwapAdvancedSettingsProps {
3
+ slippageFormatted: string;
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ onPercentageClick: (bps: number) => void;
7
+ }
8
+ export declare const SwapAdvancedSettings: React.FC<SwapAdvancedSettingsProps>;
9
+ //# sourceMappingURL=SwapAdvancedSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapAdvancedSettings.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapAdvancedSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA8BpE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { UseFormRegisterReturn } from 'react-hook-form';
3
+ export interface SwapAmountInputViewProps {
4
+ value: string;
5
+ hasError: boolean;
6
+ onChange: (value: string) => void;
7
+ maxFractionDigits?: number;
8
+ field?: UseFormRegisterReturn;
9
+ }
10
+ export declare const SwapAmountInputView: React.FC<SwapAmountInputViewProps>;
11
+ //# sourceMappingURL=SwapAmountInputView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapAmountInputView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapAmountInputView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAG7D,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC/B;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8DlE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface SwapNetworkSelectorViewProps {
3
+ chainLabel: string;
4
+ chainImage?: string;
5
+ onClick: () => void;
6
+ directionLabel?: string;
7
+ testId?: string;
8
+ }
9
+ export declare const SwapNetworkSelectorView: React.FC<SwapNetworkSelectorViewProps>;
10
+ //# sourceMappingURL=SwapNetworkSelectorView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapNetworkSelectorView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapNetworkSelectorView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAgC1E,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface SwapOutputAmountViewProps {
3
+ displayOutput: string | number;
4
+ isLoading: boolean;
5
+ loadingElement?: React.ReactNode;
6
+ }
7
+ export declare const SwapOutputAmountView: React.FC<SwapOutputAmountViewProps>;
8
+ //# sourceMappingURL=SwapOutputAmountView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapOutputAmountView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapOutputAmountView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAkBpE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface SwapQuoteBlockchainCostsViewProps {
3
+ totalCostFormatted: string;
4
+ feePercentage: string;
5
+ gasCostFormatted: string;
6
+ protocolFee: string;
7
+ }
8
+ export declare const SwapQuoteBlockchainCostsView: React.FC<SwapQuoteBlockchainCostsViewProps>;
9
+ //# sourceMappingURL=SwapQuoteBlockchainCostsView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapQuoteBlockchainCostsView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapQuoteBlockchainCostsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,iCAAiC;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CA0BpF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface SwapQuoteErrorsViewProps {
3
+ hasQuoteError: boolean;
4
+ hasBytecodeError: boolean;
5
+ }
6
+ export declare const SwapQuoteErrorsView: React.FC<SwapQuoteErrorsViewProps>;
7
+ //# sourceMappingURL=SwapQuoteErrorsView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapQuoteErrorsView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapQuoteErrorsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA4BlE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface SwapQuoteHeaderViewProps {
3
+ label: React.ReactNode;
4
+ timerElement?: React.ReactNode;
5
+ }
6
+ export declare const SwapQuoteHeaderView: React.FC<SwapQuoteHeaderViewProps>;
7
+ //# sourceMappingURL=SwapQuoteHeaderView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapQuoteHeaderView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapQuoteHeaderView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgBlE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface SwapSlippageToleranceButtonsViewProps {
3
+ slippageBps: number;
4
+ onSelect: (bps: number) => void;
5
+ }
6
+ export declare const SwapSlippageToleranceButtonsView: React.FC<SwapSlippageToleranceButtonsViewProps>;
7
+ //# sourceMappingURL=SwapSlippageToleranceButtonsView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapSlippageToleranceButtonsView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapSlippageToleranceButtonsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,qCAAqC;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAAE,CAAC,qCAAqC,CA2B5F,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface SwapTokenSelectorViewProps {
3
+ token: {
4
+ symbol: string;
5
+ logoURI?: string;
6
+ } | null;
7
+ onClick: () => void;
8
+ testId?: string;
9
+ }
10
+ export declare const SwapTokenSelectorView: React.FC<SwapTokenSelectorViewProps>;
11
+ //# sourceMappingURL=SwapTokenSelectorView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapTokenSelectorView.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapTokenSelectorView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACnD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA2CtE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface SwapTransactionDetailsProps {
3
+ onQuoteExpire: () => void;
4
+ }
5
+ export declare const SwapTransactionDetails: React.FC<SwapTransactionDetailsProps>;
6
+ //# sourceMappingURL=SwapTransactionDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapTransactionDetails.d.ts","sourceRoot":"","sources":["../../../src/ui/swap-form/SwapTransactionDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAqBxC,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAqSxE,CAAC"}
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ export interface HistoryAssetViewProps {
3
+ iconUrl: string;
4
+ symbol: string;
5
+ amount: string;
6
+ amountInUSD: string | null;
7
+ }
8
+ export interface HistoryDetailsViewProps {
9
+ transactionTypeLabel: string;
10
+ symbol: string;
11
+ amountWithSymbol: string;
12
+ amountInUsdFormatted: string;
13
+ shouldShowFlow: boolean;
14
+ assetIn?: HistoryAssetViewProps;
15
+ assetOut?: HistoryAssetViewProps;
16
+ primaryAssetIconUrl: string;
17
+ protocolLabel: string;
18
+ statusLabel: string;
19
+ txHash: string | null;
20
+ date: string;
21
+ explorerUrl: string | null;
22
+ onClose: () => void;
23
+ }
24
+ export declare const HistoryDepositDetailsView: React.FC<HistoryDetailsViewProps>;
25
+ //# sourceMappingURL=HistoryDepositDetailsView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryDepositDetailsView.d.ts","sourceRoot":"","sources":["../../../../src/ui/transaction-screen/history/HistoryDepositDetailsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAyHvE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const HistoryDetailsNotFound: React.FC<{
3
+ onClose: () => void;
4
+ }>;
5
+ //# sourceMappingURL=HistoryDetailsNotFound.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryDetailsNotFound.d.ts","sourceRoot":"","sources":["../../../../src/ui/transaction-screen/history/HistoryDetailsNotFound.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CASpE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface HistorySwapDetailsScreenProps {
3
+ historyItemId: string;
4
+ onClose: () => void;
5
+ }
6
+ export declare const HistorySwapDetailsScreen: React.FC<HistorySwapDetailsScreenProps>;
7
+ export default HistorySwapDetailsScreen;
8
+ //# sourceMappingURL=HistorySwapDetailsScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistorySwapDetailsScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/transaction-screen/history/HistorySwapDetailsScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA0B1B,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA2K5E,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { HistoryDetailsViewProps } from './HistoryDepositDetailsView';
3
+ export type { HistoryDetailsViewProps, HistoryAssetViewProps } from './HistoryDepositDetailsView';
4
+ export declare const HistoryWithdrawDetailsView: React.FC<HistoryDetailsViewProps>;
5
+ //# sourceMappingURL=HistoryWithdrawDetailsView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryWithdrawDetailsView.d.ts","sourceRoot":"","sources":["../../../../src/ui/transaction-screen/history/HistoryWithdrawDetailsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAElG,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAyHxE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const SwapCrossChainProcessingScreen: React.FC;
3
+ //# sourceMappingURL=SwapCrossChainProcessingScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapCrossChainProcessingScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/transaction-screen/swap/SwapCrossChainProcessingScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsE1B,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAuLlD,CAAC"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { TransactionStep } from '../../../types/transaction';
3
+ export interface WithdrawSuccessProps {
4
+ /** Strategy display name (e.g. "Rendimento USDC") */
5
+ pageTitle: string;
6
+ /** Token symbol (e.g. "USDC") */
7
+ tokenSymbol: string;
8
+ /** Formatted token amount (e.g. "100.00") */
9
+ formattedAmount: string;
10
+ /** Formatted USD amount (e.g. "R$ 500,00") */
11
+ formattedAmountUSD: string;
12
+ /** APY string (e.g. "5.25%") */
13
+ strategyApy: string;
14
+ /** Strategy icon URL */
15
+ strategyIcon?: string;
16
+ /** Transaction detail steps */
17
+ transactionSteps: TransactionStep[];
18
+ /** Called when close button is clicked */
19
+ onClose?: () => void;
20
+ /** Called when "Explorar mais" button is clicked */
21
+ onExploreMore?: () => void;
22
+ }
23
+ export declare const WithdrawSuccess: React.FC<WithdrawSuccessProps>;
24
+ //# sourceMappingURL=WithdrawSuccess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawSuccess.d.ts","sourceRoot":"","sources":["../../../../src/ui/transaction-screen/withdraw/WithdrawSuccess.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAI7D,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,8CAA8C;IAC9C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgE1D,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @param address1 - First address to compare
3
+ * @param address2 - Second address to compare
4
+ * @returns true if addresses match (case-insensitive)
5
+ */
6
+ export declare const isAddressMatch: (address1: string, address2: string) => boolean;
7
+ //# sourceMappingURL=addressUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addressUtils.d.ts","sourceRoot":"","sources":["../../src/utils/addressUtils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,UAAU,MAAM,KAAG,OAWnE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { DeviceType } from '../types/analytics';
2
+ export declare function getDeviceType(): DeviceType;
3
+ export declare function getBrowser(): string;
4
+ export declare function getOS(): string;
5
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/utils/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,wBAAgB,aAAa,IAAK,UAAU,CAc3C;AAED,wBAAgB,UAAU,IAAK,MAAM,CAUpC;AAED,wBAAgB,KAAK,IAAK,MAAM,CAU/B"}
@@ -0,0 +1,11 @@
1
+ import type { Currency } from '../types/currency';
2
+ import type { DeframeLanguage } from '../i18n';
3
+ /**
4
+ * Formats a USD amount according to the specified currency preference.
5
+ *
6
+ * @param currency Target currency ('BRL' or 'USD')
7
+ * @param rate Exchange rate (e.g., USD to BRL rate)
8
+ * @param usdAmount Amount in USD to format
9
+ */
10
+ export declare function formatCurrency(currency: Currency, rate: number, usdAmount: number, language?: DeframeLanguage): string;
11
+ //# sourceMappingURL=currency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../src/utils/currency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,eAAe,GACzB,MAAM,CAkBR"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Map HTTP status codes to error codes for better error handling
3
+ *
4
+ * This mapping is used to convert HTTP status codes into user-friendly
5
+ * error codes that can be translated to Portuguese messages.
6
+ */
7
+ export declare const mapStatusToErrorCode: (status?: number) => string;
8
+ /**
9
+ * Detect and map error messages to specific error codes
10
+ *
11
+ * This function analyzes error messages to identify specific error patterns
12
+ * and maps them to user-friendly error codes.
13
+ *
14
+ * @param message - The error message to analyze
15
+ * @param code - Optional existing error code
16
+ * @returns The mapped error code
17
+ */
18
+ export declare const mapErrorMessageToCode: (message: string) => string;
19
+ //# sourceMappingURL=errorMapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorMapping.d.ts","sourceRoot":"","sources":["../../src/utils/errorMapping.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,MAiBtD,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAS,MAAM,KAAG,MA4BvD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { StrategyWithApy } from '../types/strategy-with-apy';
2
+ import { StrategyCategoryKey } from './constants';
3
+ export interface FilterStrategiesOptions {
4
+ /**
5
+ * Search query string (will be lowercased and trimmed)
6
+ */
7
+ searchQuery?: string;
8
+ /**
9
+ * Category to filter by (use 'all' to skip category filtering)
10
+ */
11
+ category?: StrategyCategoryKey;
12
+ }
13
+ /**
14
+ * Filters strategies by search query and/or category
15
+ *
16
+ * @param strategies - Array of strategies to filter
17
+ * @param options - Filter options (searchQuery, category)
18
+ * @returns Filtered array of strategies
19
+ */
20
+ export declare function filterStrategies(strategies: StrategyWithApy[], options?: FilterStrategiesOptions): StrategyWithApy[];
21
+ //# sourceMappingURL=filterStrategies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterStrategies.d.ts","sourceRoot":"","sources":["../../src/utils/filterStrategies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,eAAe,EAAE,EAC7B,OAAO,GAAE,uBAA4B,GACpC,eAAe,EAAE,CAyBnB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Idempotent font loader that injects <link> tags into document.head.
3
+ * Uses `data-deframe-font` attribute to avoid duplicate injections.
4
+ */
5
+ type FontKey = 'poppins' | 'satoshi';
6
+ export declare function ensureFontLoaded(key: FontKey): void;
7
+ export declare function loadFontsForPreset(preset: string): void;
8
+ export {};
9
+ //# sourceMappingURL=fontLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fontLoader.d.ts","sourceRoot":"","sources":["../../src/utils/fontLoader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,KAAK,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAuBrC,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAqBnD;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAKvD"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * History API to Domain Model Mappers
3
+ *
4
+ * Transforms raw API history items into domain history items for UI.
5
+ */
6
+ import type { HistoryChainInfo, HistoryAssetAmount, HistoryFiatAmount, HistoryTokenInfo, HistoryItem, HistoryTransactionType, HistoryTransactionStatus, HistoryAmounts } from '../state/features/history/types';
7
+ type ApiToken = {
8
+ address: string;
9
+ decimals: number;
10
+ symbol: string;
11
+ logoURI?: string | null;
12
+ logoUrl?: string | null;
13
+ iconUrl?: string | null;
14
+ name?: string | null;
15
+ };
16
+ type ApiChain = string | {
17
+ id: number;
18
+ name: string;
19
+ nativeAssetSymbol?: string;
20
+ explorer?: string;
21
+ };
22
+ type ApiAssetAmount = {
23
+ token: ApiToken;
24
+ chain: ApiChain;
25
+ amountRaw: string;
26
+ amountHumanized: string;
27
+ amountInUSD?: string | null;
28
+ };
29
+ type ApiFiatAmount = {
30
+ currency: string;
31
+ amountRaw: string;
32
+ amountHumanized: string;
33
+ amountInUSD?: string | null;
34
+ };
35
+ export type ApiHistoryItem = {
36
+ id: string;
37
+ type: HistoryTransactionType | string;
38
+ status: HistoryTransactionStatus;
39
+ initialDate?: string;
40
+ createdAt?: string;
41
+ originAddress?: string;
42
+ receiverAddress?: string;
43
+ amounts?: {
44
+ assetIn: ApiAssetAmount | ApiFiatAmount | null;
45
+ assetOut: ApiAssetAmount | ApiFiatAmount | null;
46
+ breakdown?: Array<{
47
+ type: string;
48
+ description: string;
49
+ }>;
50
+ };
51
+ detail?: {
52
+ txHash?: string;
53
+ chain?: ApiChain;
54
+ blockNumber?: string;
55
+ timestamp?: string;
56
+ finishedAt?: string;
57
+ };
58
+ };
59
+ export declare function sanitizeTokenSymbol(symbol: string | null | undefined): string;
60
+ export declare function normalizeChain(chain: ApiChain | undefined | null): HistoryChainInfo | undefined;
61
+ export declare function buildExplorerUrl(chain: HistoryChainInfo | undefined, txHash: string | undefined): string | undefined;
62
+ export declare function normalizeHistoryType(apiType: string): HistoryTransactionType | null;
63
+ export declare function mapApiTokenToHistoryToken(api: ApiToken): HistoryTokenInfo;
64
+ export declare function mapApiAssetAmount(api: ApiAssetAmount): HistoryAssetAmount;
65
+ export declare function mapApiFiatAmount(api: ApiFiatAmount): HistoryFiatAmount;
66
+ export declare function mapApiAssetIn(api: ApiAssetAmount | ApiFiatAmount): HistoryAssetAmount | HistoryFiatAmount;
67
+ export declare function mapApiAmounts(apiAmounts: ApiHistoryItem['amounts']): HistoryAmounts | undefined;
68
+ export declare function mapApiHistoryItem(api: ApiHistoryItem): HistoryItem | null;
69
+ export declare function deduplicateSwapTransfers(items: HistoryItem[]): HistoryItem[];
70
+ export {};
71
+ //# sourceMappingURL=historyMappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"historyMappers.d.ts","sourceRoot":"","sources":["../../src/utils/historyMappers.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Strategy category mapping for filter chips
3
+ */
4
+ import type { DeframeLanguage, TranslationOverrides } from '../i18n';
5
+ interface CategoryOptions {
6
+ language?: DeframeLanguage;
7
+ overrides?: TranslationOverrides;
8
+ }
9
+ /**
10
+ * Get the display label for a category
11
+ */
12
+ export declare const getStrategyCategoryLabel: (category: string, options?: CategoryOptions) => string;
13
+ /**
14
+ * Normalize a category string to match our keys
15
+ */
16
+ export declare const normalizeCategory: (category: string | undefined) => string;
17
+ /**
18
+ * Get chip options for category filter
19
+ */
20
+ export declare const getStrategyCategoryOptions: (options?: CategoryOptions) => Array<{
21
+ label: string;
22
+ value: string;
23
+ }>;
24
+ export {};
25
+ //# sourceMappingURL=strategyCategories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strategyCategories.d.ts","sourceRoot":"","sources":["../../src/utils/strategyCategories.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAErE,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,MAAM,EAChB,UAAU,eAAe,KACxB,MASF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,GAAG,SAAS,KAAG,MAYhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,UAAU,eAAe,KACxB,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAQxC,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Token sorting utilities for asset lists.
3
+ */
4
+ import { BalanceDomain } from '../types/api';
5
+ export interface SortableToken {
6
+ address: string;
7
+ chainId: number;
8
+ symbol: string;
9
+ name: string;
10
+ }
11
+ type WalletBalance = Pick<BalanceDomain, 'address' | 'chainId' | 'amountInUSD'>;
12
+ export interface SortTokensParams<T extends SortableToken> {
13
+ tokens: T[];
14
+ prioritySymbols: string[];
15
+ walletTokens: WalletBalance[];
16
+ }
17
+ /**
18
+ * Gets balance USD for a token address from wallet tokens.
19
+ * Returns 0 if token is not found.
20
+ */
21
+ export declare function getBalanceUSD(walletTokens: WalletBalance[], address: string, chainId: number): number;
22
+ /**
23
+ * Sorts tokens by priority:
24
+ * 1. Tokens with balance first (highest USD first)
25
+ * 2. Then most-used tokens (by priority order)
26
+ * 3. Then remaining tokens alphabetically by name
27
+ */
28
+ export declare function sortTokensByPriority<T extends SortableToken>({ tokens, prioritySymbols, walletTokens, }: SortTokensParams<T>): T[];
29
+ export {};
30
+ //# sourceMappingURL=tokenSorting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenSorting.d.ts","sourceRoot":"","sources":["../../src/utils/tokenSorting.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,KAAK,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC,CAAC;AAEhF,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,aAAa;IACvD,MAAM,EAAE,CAAC,EAAE,CAAC;IACZ,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,YAAY,EAAE,aAAa,EAAE,EAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,MAAM,CAKR;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,aAAa,EAAE,EAC5D,MAAM,EACN,eAAe,EACf,YAAY,GACb,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAkC3B"}