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 @@
1
+ {"version":3,"file":"tokens.api.d.ts","sourceRoot":"","sources":["../../src/api/tokens.api.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { WalletPosition } from '../../types/api';
3
+ import { StrategyWithApy } from '../../hooks/useStrategiesWithApy';
4
+ /**
5
+ * GroupedStrategyList - Displays strategies grouped by category with labels
6
+ *
7
+ * Groups:
8
+ * 1. "Onde você já investe" - User's active positions
9
+ * 2. "Melhores performances" - Most used strategies
10
+ * 3. "Todas as estratégias" - All other strategies
11
+ */
12
+ export interface GroupedStrategyListProps {
13
+ invested: WalletPosition[];
14
+ mostUsed: StrategyWithApy[];
15
+ allOthers: StrategyWithApy[];
16
+ isLoading: boolean;
17
+ error: Error | null;
18
+ }
19
+ export declare const GroupedStrategyList: React.FC<GroupedStrategyListProps>;
20
+ export default GroupedStrategyList;
21
+ //# sourceMappingURL=GroupedStrategyList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupedStrategyList.d.ts","sourceRoot":"","sources":["../../../src/components/earn/GroupedStrategyList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGnE;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAmJlE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface StrategyDetailsViewProps {
3
+ logoUrl: string;
4
+ title: string;
5
+ description: string;
6
+ strategyInfo: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ onBack?: () => void;
11
+ onDeposit?: () => void;
12
+ }
13
+ export declare const StrategyDetailsView: React.FC<StrategyDetailsViewProps>;
14
+ //# sourceMappingURL=StrategyDetailsView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrategyDetailsView.d.ts","sourceRoot":"","sources":["../../../src/components/earn/StrategyDetailsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAuClE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface EarnPageDesktopProps {
3
+ /**
4
+ * Additional class names
5
+ */
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Desktop layout for Earn page
10
+ */
11
+ export declare const EarnPageDesktop: React.FC<EarnPageDesktopProps>;
12
+ export default EarnPageDesktop;
13
+ //# sourceMappingURL=EarnPageDesktop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EarnPageDesktop.d.ts","sourceRoot":"","sources":["../../../../src/components/earn/desktop/EarnPageDesktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAgBvC,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgF1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { StrategyWithApy } from '../../../hooks/useStrategiesWithApy';
3
+ export interface ExploreStrategiesGridProps {
4
+ /**
5
+ * All strategies with APY data
6
+ */
7
+ strategies: StrategyWithApy[];
8
+ /**
9
+ * Loading state
10
+ */
11
+ isLoading: boolean;
12
+ /**
13
+ * Error state
14
+ */
15
+ error?: Error | null;
16
+ /**
17
+ * Click handler for strategy card
18
+ */
19
+ onStrategyClick?: (strategyId: string) => void;
20
+ /**
21
+ * Additional class names
22
+ */
23
+ className?: string;
24
+ }
25
+ /**
26
+ * Desktop grid of strategies with search and category filters
27
+ */
28
+ export declare const ExploreStrategiesGrid: React.FC<ExploreStrategiesGridProps>;
29
+ export default ExploreStrategiesGrid;
30
+ //# sourceMappingURL=ExploreStrategiesGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExploreStrategiesGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/earn/desktop/ExploreStrategiesGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAYjD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAItE,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqGtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { WalletPosition } from '../../../types/api';
3
+ export interface InvestedStrategiesSectionProps {
4
+ /**
5
+ * User's invested positions
6
+ */
7
+ positions: WalletPosition[];
8
+ /**
9
+ * Click handler for position item
10
+ */
11
+ onPositionClick?: (strategyId: string) => void;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
16
+ }
17
+ /**
18
+ * Section showing user's invested strategies in a vertical list (desktop only)
19
+ */
20
+ export declare const InvestedStrategiesSection: React.FC<InvestedStrategiesSectionProps>;
21
+ export default InvestedStrategiesSection;
22
+ //# sourceMappingURL=InvestedStrategiesSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvestedStrategiesSection.d.ts","sourceRoot":"","sources":["../../../../src/components/earn/desktop/InvestedStrategiesSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AASpD,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAwH9E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ export interface InvestmentSummaryDesktopProps {
3
+ /**
4
+ * Total invested amount in USD
5
+ */
6
+ totalInvested: number;
7
+ /**
8
+ * Total earned/profit amount in USD
9
+ */
10
+ totalEarned: number;
11
+ /**
12
+ * Currency formatter function
13
+ */
14
+ formatCurrency: (value: number) => string;
15
+ /**
16
+ * Additional class names
17
+ */
18
+ className?: string;
19
+ }
20
+ /**
21
+ * Investment Summary section for desktop layout
22
+ *
23
+ * Displays total invested and total earned values
24
+ */
25
+ export declare const InvestmentSummaryDesktop: React.FC<InvestmentSummaryDesktopProps>;
26
+ export default InvestmentSummaryDesktop;
27
+ //# sourceMappingURL=InvestmentSummaryDesktop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvestmentSummaryDesktop.d.ts","sourceRoot":"","sources":["../../../../src/components/earn/desktop/InvestmentSummaryDesktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAwB5E,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { HistoryItem } from '../../../state/features/history/types';
3
+ export interface RecentTransactionsProps {
4
+ /**
5
+ * History items to display
6
+ */
7
+ historyItems: HistoryItem[];
8
+ /**
9
+ * Loading state
10
+ */
11
+ isLoading: boolean;
12
+ /**
13
+ * Maximum number of transactions to show (default: 5)
14
+ */
15
+ limit?: number;
16
+ /**
17
+ * Click handler for "Ver todas" button
18
+ */
19
+ onViewAll?: () => void;
20
+ /**
21
+ * Additional class names
22
+ */
23
+ className?: string;
24
+ }
25
+ /**
26
+ * Recent transactions section for desktop layout
27
+ *
28
+ * Shows a preview of recent transactions with a "Ver todas" link.
29
+ */
30
+ export declare const RecentTransactions: React.FC<RecentTransactionsProps>;
31
+ export default RecentTransactions;
32
+ //# sourceMappingURL=RecentTransactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecentTransactions.d.ts","sourceRoot":"","sources":["../../../../src/components/earn/desktop/RecentTransactions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAMpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA6ChE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ export interface StrategyGridCardProps {
3
+ /**
4
+ * Strategy logo URL
5
+ */
6
+ logoUrl: string;
7
+ /**
8
+ * Strategy title (e.g., "Rendimento USDC")
9
+ */
10
+ title: string;
11
+ /**
12
+ * Strategy subtitle (e.g., asset name)
13
+ */
14
+ subtitle: string;
15
+ /**
16
+ * APY formatted string (e.g., "5.00%")
17
+ */
18
+ apyFormatted: string;
19
+ /**
20
+ * Click handler
21
+ */
22
+ onClick?: () => void;
23
+ /**
24
+ * Additional class names
25
+ */
26
+ className?: string;
27
+ }
28
+ /**
29
+ * Grid card for desktop strategy display
30
+ *
31
+ * Shows strategy info in a card format suitable for a 3-column grid layout.
32
+ */
33
+ export declare const StrategyGridCard: React.FC<StrategyGridCardProps>;
34
+ export default StrategyGridCard;
35
+ //# sourceMappingURL=StrategyGridCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrategyGridCard.d.ts","sourceRoot":"","sources":["../../../../src/components/earn/desktop/StrategyGridCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmD5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Analytics event names
3
+ */
4
+ export declare const ANALYTICS_EVENT: {
5
+ readonly DASHBOARD_PAGE_VIEWED: "dashboard_page_viewed";
6
+ readonly DEPOSIT_PAGE_VIEWED: "deposit_page_viewed";
7
+ readonly DEPOSIT_ONRAMP_PAGE_VIEWED: "deposit_onramp_page_viewed";
8
+ readonly DEPOSIT_ONCHAIN_PAGE_VIEWED: "deposit_onchain_page_viewed";
9
+ readonly WITHDRAW_PAGE_VIEWED: "withdraw_page_viewed";
10
+ readonly WITHDRAW_OFFRAMP_PAGE_VIEWED: "withdraw_offramp_page_viewed";
11
+ readonly WITHDRAW_ONCHAIN_PAGE_VIEWED: "withdraw_onchain_page_viewed";
12
+ readonly SWAP_PAGE_VIEWED: "swap_page_viewed";
13
+ readonly EARN_PAGE_VIEWED: "earn_page_viewed";
14
+ readonly HISTORY_PAGE_VIEWED: "history_page_viewed";
15
+ readonly SETTINGS_PAGE_VIEWED: "settings_page_viewed";
16
+ readonly SETTINGS_ACCOUNT_PAGE_VIEWED: "settings_account_page_viewed";
17
+ readonly SUPPORT_PAGE_VIEWED: "support_page_viewed";
18
+ readonly KYC_PAGE_VIEWED: "kyc_page_viewed";
19
+ readonly DEPOSIT_PIX_SELECTED: "deposit_pix_selected";
20
+ readonly DEPOSIT_CRYPTO_SELECTED: "deposit_crypto_selected";
21
+ readonly ONRAMP_AMOUNT_ENTERED: "onramp_amount_entered";
22
+ readonly ONRAMP_CONFIRMED: "onramp_confirmed";
23
+ readonly ONRAMP_PIX_CODE_GENERATED: "onramp_pix_code_generated";
24
+ readonly ONRAMP_PIX_CODE_COPIED: "onramp_pix_code_copied";
25
+ readonly ONRAMP_COMPLETED: "onramp_completed";
26
+ readonly ONRAMP_FAILED: "onramp_failed";
27
+ readonly WITHDRAW_PIX_SELECTED: "withdraw_pix_selected";
28
+ readonly WITHDRAW_CRYPTO_SELECTED: "withdraw_crypto_selected";
29
+ readonly OFFRAMP_AMOUNT_ENTERED: "offramp_amount_entered";
30
+ readonly OFFRAMP_PIX_KEY_ENTERED: "offramp_pix_key_entered";
31
+ readonly OFFRAMP_CONFIRMED: "offramp_confirmed";
32
+ readonly OFFRAMP_COMPLETED: "offramp_completed";
33
+ readonly OFFRAMP_FAILED: "offramp_failed";
34
+ readonly SWAP_TOKEN_SELECTED: "swap_token_selected";
35
+ readonly SWAP_AMOUNT_ENTERED: "swap_amount_entered";
36
+ readonly SWAP_QUOTE_RECEIVED: "swap_quote_received";
37
+ readonly SWAP_CONFIRMED: "swap_confirmed";
38
+ readonly SWAP_COMPLETED: "swap_completed";
39
+ readonly SWAP_FAILED: "swap_failed";
40
+ readonly EARN_INVESTED_STRATEGY_CLICKED: "earn_invested_strategy_clicked";
41
+ readonly EARN_STRATEGY_VIEWED: "earn_strategy_viewed";
42
+ readonly EARN_DEPOSIT_INITIATED: "earn_deposit_initiated";
43
+ readonly EARN_DEPOSIT_CONFIRMED: "earn_deposit_confirmed";
44
+ readonly EARN_DEPOSIT_COMPLETED: "earn_deposit_completed";
45
+ readonly EARN_WITHDRAW_INITIATED: "earn_withdraw_initiated";
46
+ readonly EARN_WITHDRAW_CONFIRMED: "earn_withdraw_confirmed";
47
+ readonly EARN_WITHDRAW_COMPLETED: "earn_withdraw_completed";
48
+ readonly KYC_STARTED: "kyc_started";
49
+ readonly KYC_DOCUMENT_UPLOADED: "kyc_document_uploaded";
50
+ readonly KYC_SELFIE_UPLOADED: "kyc_selfie_uploaded";
51
+ readonly KYC_SUBMITTED: "kyc_submitted";
52
+ readonly KYC_APPROVED: "kyc_approved";
53
+ readonly KYC_REJECTED: "kyc_rejected";
54
+ readonly LOGIN_SUCCESS: "login_success";
55
+ readonly WALLET_CONNECT_INITIATED: "wallet_connect_initiated";
56
+ readonly WALLET_SIGNATURE_PROMPTED: "wallet_signature_prompted";
57
+ readonly AUTH_SUCCESS: "auth_success";
58
+ readonly AUTH_FAILED: "auth_failed";
59
+ readonly LOGOUT_CLICKED: "logout_clicked";
60
+ readonly WALLET_CONNECTED: "wallet_connected";
61
+ readonly WALLET_DISCONNECTED: "wallet_disconnected";
62
+ readonly WALLET_ADDRESS_COPIED: "wallet_address_copied";
63
+ readonly SETTINGS_CURRENCY_CHANGED: "settings_currency_changed";
64
+ readonly SETTINGS_LANGUAGE_CHANGED: "settings_language_changed";
65
+ readonly ERROR_OCCURRED: "error_occurred";
66
+ readonly SESSION_EXPIRED: "session_expired";
67
+ readonly DEPOSIT_BUTTON_CLICKED: "deposit_button_clicked";
68
+ readonly WITHDRAW_BUTTON_CLICKED: "withdraw_button_clicked";
69
+ readonly SWAP_BUTTON_CLICKED: "swap_button_clicked";
70
+ readonly DASHBOARD_TAB_SWITCHED: "dashboard_tab_switched";
71
+ readonly VIEW_ALL_TRANSACTIONS_CLICKED: "view_all_transactions_clicked";
72
+ readonly VIEW_ALL_STRATEGIES_CLICKED: "view_all_strategies_clicked";
73
+ readonly KYC_INITIATE_CLICKED: "kyc_initiate_clicked";
74
+ readonly KYC_DOCUMENT_UPLOAD_STARTED: "kyc_document_upload_started";
75
+ readonly KYC_REVIEW_PAGE_VIEWED: "kyc_review_page_viewed";
76
+ readonly KYC_SUBMIT_FINAL_CLICKED: "kyc_submit_final_clicked";
77
+ readonly KYC_RETRY_CLICKED: "kyc_retry_clicked";
78
+ readonly KYC_ERROR_OCCURRED: "kyc_error_occurred";
79
+ readonly ONRAMP_GENERATE_PIX_CLICKED: "onramp_generate_pix_clicked";
80
+ readonly ONRAMP_SUCCESS_VIEWED: "onramp_success_viewed";
81
+ readonly ONRAMP_ERROR_OCCURRED: "onramp_error_occurred";
82
+ readonly DEPOSIT_TOKEN_SELECTOR_OPENED: "deposit_token_selector_opened";
83
+ readonly DEPOSIT_TOKEN_SEARCHED: "deposit_token_searched";
84
+ readonly DEPOSIT_ADDRESS_COPIED: "deposit_address_copied";
85
+ readonly DEPOSIT_ONCHAIN_CONFIRMED_CLICKED: "deposit_onchain_confirmed_clicked";
86
+ readonly OFFRAMP_SUBMIT_CLICKED: "offramp_submit_clicked";
87
+ readonly OFFRAMP_SUCCESS_VIEWED: "offramp_success_viewed";
88
+ readonly WITHDRAW_ONCHAIN_SUCCESS: "withdraw_onchain_success";
89
+ readonly WITHDRAW_SIGNATURE_REJECTED: "withdraw_signature_rejected";
90
+ };
91
+ export type AnalyticsEventName = typeof ANALYTICS_EVENT[keyof typeof ANALYTICS_EVENT];
92
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/constants/analytics.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHlB,CAAA;AAEV,MAAM,MAAM,kBAAkB,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const SENTRY_DSN = "https://62d24dfa4e186bd15e60369ea7d2d6df@o4504678534152192.ingest.us.sentry.io/4510818058371072";
2
+ //# sourceMappingURL=error-monitoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-monitoring.d.ts","sourceRoot":"","sources":["../../src/constants/error-monitoring.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,oGAAoG,CAAA"}
@@ -0,0 +1,11 @@
1
+ export interface DeriveAmountInForSwapParams {
2
+ exactBaseAmount: string | null | undefined;
3
+ debouncedAmount: string;
4
+ inputAmountBase: bigint;
5
+ }
6
+ /**
7
+ * Derive the amountIn string used by the swap quote API.
8
+ * Returns exactBaseAmount if set, otherwise the parsed base amount as string (if positive).
9
+ */
10
+ export declare function deriveAmountInForSwap(params: DeriveAmountInForSwapParams): string;
11
+ //# sourceMappingURL=deriveAmountInForSwap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deriveAmountInForSwap.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/deriveAmountInForSwap.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,2BAA2B,GAAG,MAAM,CAGjF"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Derive a token's USD price from balance fields.
3
+ * Uses amountInUSD / amountUI as the source of truth.
4
+ *
5
+ * @param amountUI - The human-readable balance (e.g. "10.5"). Prefers amountHumanized, falls back to amountUI.
6
+ * @param amountInUSD - The USD value of the balance (e.g. "10.50").
7
+ * @returns The price per token in USD, or 0 if unable to compute.
8
+ */
9
+ export declare function deriveTokenPriceUSD(amountUI: string | number | undefined, amountInUSD: string | number | undefined): number;
10
+ //# sourceMappingURL=deriveTokenPriceUSD.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deriveTokenPriceUSD.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/deriveTokenPriceUSD.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAI3H"}
@@ -0,0 +1,12 @@
1
+ export interface GetAmountInUSDParams {
2
+ isQuoteMatching: boolean;
3
+ quoteTokenInAmountInUSD: number | undefined;
4
+ amountHumanized: string | undefined;
5
+ effectiveFromTokenPriceUSD: number;
6
+ }
7
+ /**
8
+ * Compute the USD value of the input amount.
9
+ * Prefers the quote's amountInUSD when the quote matches, falls back to price × input.
10
+ */
11
+ export declare function getAmountInUSD(params: GetAmountInUSDParams): string;
12
+ //# sourceMappingURL=getAmountInUSD.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAmountInUSD.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/getAmountInUSD.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,0BAA0B,EAAE,MAAM,CAAC;CACpC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAmBnE"}
@@ -0,0 +1,14 @@
1
+ export interface GetQuoteOutputUIParams {
2
+ isQuoteMatching: boolean;
3
+ quoteTokenOutAmount: string | undefined;
4
+ quoteTokenOutDecimals: number | undefined;
5
+ fallbackDecimals: number;
6
+ /** Optional cap on displayed decimal digits, passed as maxDecimals to formatBaseToUI. */
7
+ maxFractionDigits?: number;
8
+ }
9
+ /**
10
+ * Format the quote output amount from base units to a UI-display string.
11
+ * Returns '0.00' when the quote is stale or data is missing.
12
+ */
13
+ export declare function getQuoteOutputUI(params: GetQuoteOutputUIParams): string;
14
+ //# sourceMappingURL=getQuoteOutputUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getQuoteOutputUI.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/getQuoteOutputUI.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,gBAAgB,EAAE,MAAM,CAAC;IACzB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CAYvE"}
@@ -0,0 +1,12 @@
1
+ export interface GetQuoteOutputUSDParams {
2
+ isQuoteMatching: boolean;
3
+ quoteTokenOutAmountInUSD: number | undefined;
4
+ quoteOutputUI: string;
5
+ effectiveToTokenPriceUSD: number;
6
+ }
7
+ /**
8
+ * Compute the USD value of the quote output.
9
+ * Prefers the quote's amountInUSD, falls back to price × output amount.
10
+ */
11
+ export declare function getQuoteOutputUSD(params: GetQuoteOutputUSDParams): string;
12
+ //# sourceMappingURL=getQuoteOutputUSD.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getQuoteOutputUSD.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/getQuoteOutputUSD.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,OAAO,CAAC;IACzB,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,CAiBzE"}
@@ -0,0 +1,11 @@
1
+ export { normalizeSwapAddress } from './normalizeSwapAddress';
2
+ export { isQuoteMatchingInput, type IsQuoteMatchingInputParams } from './isQuoteMatchingInput';
3
+ export { resolveInputAmountBase, type ResolveInputAmountBaseParams } from './resolveInputAmountBase';
4
+ export { deriveAmountInForSwap, type DeriveAmountInForSwapParams } from './deriveAmountInForSwap';
5
+ export { deriveTokenPriceUSD } from './deriveTokenPriceUSD';
6
+ export { getQuoteOutputUI, type GetQuoteOutputUIParams } from './getQuoteOutputUI';
7
+ export { getQuoteOutputUSD, type GetQuoteOutputUSDParams } from './getQuoteOutputUSD';
8
+ export { getAmountInUSD, type GetAmountInUSDParams } from './getAmountInUSD';
9
+ export { resolveEffectivePrice, type ResolveEffectivePriceParams } from './resolveEffectivePrice';
10
+ export { isPositiveNumberString } from './isPositiveNumberString';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACrG,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Check if a string represents a finite positive number.
3
+ */
4
+ export declare function isPositiveNumberString(value: string): boolean;
5
+ //# sourceMappingURL=isPositiveNumberString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPositiveNumberString.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/isPositiveNumberString.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAG7D"}
@@ -0,0 +1,24 @@
1
+ export interface IsQuoteMatchingInputParams {
2
+ quote: {
3
+ tokenIn?: {
4
+ contract: string;
5
+ chainId: number;
6
+ amount: string;
7
+ };
8
+ tokenOut?: {
9
+ contract: string;
10
+ chainId: number;
11
+ };
12
+ } | null | undefined;
13
+ fromTokenAddress: string;
14
+ toTokenAddress: string;
15
+ fromChainId: number;
16
+ toChainId: number;
17
+ amountInForSwap: string;
18
+ }
19
+ /**
20
+ * Check whether the current swap quote matches the current form inputs.
21
+ * Returns false when the quote is stale or mismatched.
22
+ */
23
+ export declare function isQuoteMatchingInput(params: IsQuoteMatchingInputParams): boolean;
24
+ //# sourceMappingURL=isQuoteMatchingInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isQuoteMatchingInput.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/isQuoteMatchingInput.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE;QACL,OAAO,CAAC,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAChE,QAAQ,CAAC,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;KAClD,GAAG,IAAI,GAAG,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAWhF"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Normalize a token address for swap quote comparison.
3
+ * Zero address → 'native', otherwise lowercase. Undefined/empty → ''.
4
+ */
5
+ export declare function normalizeSwapAddress(address?: string): string;
6
+ //# sourceMappingURL=normalizeSwapAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeSwapAddress.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/normalizeSwapAddress.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAO7D"}
@@ -0,0 +1,14 @@
1
+ export interface ResolveEffectivePriceParams {
2
+ balanceDerivedPriceInUSD: number;
3
+ fetchedPriceInUSD: number;
4
+ tokenDataPriceInUSD: number | undefined;
5
+ }
6
+ /**
7
+ * Resolve the effective token price from multiple sources (priority order):
8
+ * 1. Balance-derived price (amountInUSD / amountUI)
9
+ * 2. Price from address-fetch API
10
+ * 3. Token data priceInUSD field
11
+ * 4. 0
12
+ */
13
+ export declare function resolveEffectivePrice(params: ResolveEffectivePriceParams): number;
14
+ //# sourceMappingURL=resolveEffectivePrice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveEffectivePrice.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/resolveEffectivePrice.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,wBAAwB,EAAE,MAAM,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,2BAA2B,GAAG,MAAM,CAGjF"}
@@ -0,0 +1,11 @@
1
+ export interface ResolveInputAmountBaseParams {
2
+ exactBaseAmount: string | null | undefined;
3
+ debouncedAmount: string;
4
+ decimals: number;
5
+ }
6
+ /**
7
+ * Compute the input amount in base units (bigint).
8
+ * Prefers exactBaseAmount (set by percentage buttons), falls back to parsing debounced UI input.
9
+ */
10
+ export declare function resolveInputAmountBase(params: ResolveInputAmountBaseParams): bigint;
11
+ //# sourceMappingURL=resolveInputAmountBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveInputAmountBase.d.ts","sourceRoot":"","sources":["../../../src/domain/swap/resolveInputAmountBase.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,4BAA4B;IAC3C,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,4BAA4B,GAAG,MAAM,CAWnF"}
@@ -0,0 +1,9 @@
1
+ import type { AnalyticsRequestParams } from '../types/analytics';
2
+ /**
3
+ * Hook that encapsulates analytics tracking.
4
+ * Reads userId and walletAddress from DeframeProvider config.
5
+ */
6
+ export declare function useAnalytics(): {
7
+ track: (eventName: string, requestParams?: AnalyticsRequestParams) => void;
8
+ };
9
+ //# sourceMappingURL=useAnalytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAnalytics.d.ts","sourceRoot":"","sources":["../../src/hooks/useAnalytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAEhE;;;GAGG;AACH,wBAAgB,YAAY;uBAKA,MAAM,kBAAkB,sBAAsB;EAUzE"}
@@ -0,0 +1,15 @@
1
+ import { Dimensions } from '../types/dimensions';
2
+ /**
3
+ * Hook to detect viewport dimensions and return responsive flags
4
+ *
5
+ * Breakpoints:
6
+ * - Mobile: < 768px
7
+ * - Tablet: >= 768px and < 1024px
8
+ * - Desktop: >= 1024px
9
+ * - LargeScreen: >= 768px (tablet or desktop)
10
+ *
11
+ * @returns Dimensions object with isMobile, isTablet, isDesktop, isLargeScreen
12
+ */
13
+ export declare const useDimensions: () => Dimensions;
14
+ export default useDimensions;
15
+ //# sourceMappingURL=useDimensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDimensions.d.ts","sourceRoot":"","sources":["../../src/hooks/useDimensions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQjD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,QAAO,UA2ChC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { Currency } from '../types/currency';
2
+ import type { DeframeLanguage } from '../i18n';
3
+ interface UseGlobalCurrencyResult {
4
+ /** Current currency preference */
5
+ currency: Currency;
6
+ /** Current exchange rate (USD to target currency) */
7
+ rate: number;
8
+ /** Format a USD amount according to user's currency preference */
9
+ formatCurrency: (usdAmount: number) => string;
10
+ language: DeframeLanguage;
11
+ }
12
+ /**
13
+ * Hook to handle global currency preferences and formatting.
14
+ */
15
+ export declare function useGlobalCurrency(): UseGlobalCurrencyResult;
16
+ export {};
17
+ //# sourceMappingURL=useGlobalCurrency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGlobalCurrency.d.ts","sourceRoot":"","sources":["../../src/hooks/useGlobalCurrency.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,UAAU,uBAAuB;IAC/B,kCAAkC;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,kEAAkE;IAClE,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAA;IAC7C,QAAQ,EAAE,eAAe,CAAA;CAC1B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAK,uBAAuB,CAgB5D"}
@@ -0,0 +1,22 @@
1
+ export interface UseGlobalHistoryParams {
2
+ page?: number;
3
+ limit?: number;
4
+ enabled?: boolean;
5
+ }
6
+ export declare const useGlobalHistory: (params?: UseGlobalHistoryParams) => {
7
+ items: import("../state/features/history").HistoryItem[];
8
+ pagination: import("../api/history.api").HistoryPagination | undefined;
9
+ isLoading: boolean;
10
+ error: (import("@reduxjs/toolkit/query").FetchBaseQueryError & {
11
+ code?: string;
12
+ }) | import("@reduxjs/toolkit").SerializedError | undefined;
13
+ refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
14
+ wallet: string;
15
+ page?: number;
16
+ limit?: number;
17
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError & {
18
+ code?: string;
19
+ }>, never, import("../api/history.api").HistoryResponse, "historyApi", unknown>>;
20
+ };
21
+ export default useGlobalHistory;
22
+ //# sourceMappingURL=useGlobalHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGlobalHistory.d.ts","sourceRoot":"","sources":["../../src/hooks/useGlobalHistory.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,GAAI,SAAQ,sBAA2B;;;;;;;;;;;;;;CAmCnE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}