@one_deploy/sdk 1.0.7 → 1.2.1

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 (106) hide show
  1. package/README.md +339 -0
  2. package/dist/ForexPoolDataGenerator--__twRwl.d.mts +76 -0
  3. package/dist/ForexPoolDataGenerator-eUgwsU_B.d.ts +76 -0
  4. package/dist/OneForexTradeHistory-TlKxjbFF.d.ts +250 -0
  5. package/dist/OneForexTradeHistory-iDySMcw0.d.mts +250 -0
  6. package/dist/components/index.d.mts +539 -0
  7. package/dist/components/index.d.ts +539 -0
  8. package/dist/components/index.js +7295 -0
  9. package/dist/components/index.js.map +1 -0
  10. package/dist/components/index.mjs +7243 -0
  11. package/dist/components/index.mjs.map +1 -0
  12. package/dist/config/index.d.mts +1 -0
  13. package/dist/config/index.d.ts +1 -0
  14. package/dist/console-BfTMA7ah.d.mts +504 -0
  15. package/dist/console-BfTMA7ah.d.ts +504 -0
  16. package/dist/hooks/index.d.mts +323 -1
  17. package/dist/hooks/index.d.ts +323 -1
  18. package/dist/hooks/index.js +3223 -0
  19. package/dist/hooks/index.js.map +1 -1
  20. package/dist/hooks/index.mjs +3204 -1
  21. package/dist/hooks/index.mjs.map +1 -1
  22. package/dist/index.d.mts +18 -352
  23. package/dist/index.d.ts +18 -352
  24. package/dist/index.js +8646 -574
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +8449 -432
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/providers/index.d.mts +31 -31
  29. package/dist/providers/index.d.ts +31 -31
  30. package/dist/providers/index.js +140 -153
  31. package/dist/providers/index.js.map +1 -1
  32. package/dist/providers/index.mjs +100 -109
  33. package/dist/providers/index.mjs.map +1 -1
  34. package/dist/react-native.d.mts +8 -144
  35. package/dist/react-native.d.ts +8 -144
  36. package/dist/react-native.js +2640 -689
  37. package/dist/react-native.js.map +1 -1
  38. package/dist/react-native.mjs +2610 -691
  39. package/dist/react-native.mjs.map +1 -1
  40. package/dist/services/index.d.mts +85 -4
  41. package/dist/services/index.d.ts +85 -4
  42. package/dist/services/index.js +1621 -0
  43. package/dist/services/index.js.map +1 -1
  44. package/dist/services/index.mjs +1619 -1
  45. package/dist/services/index.mjs.map +1 -1
  46. package/dist/types/index.d.mts +203 -1
  47. package/dist/types/index.d.ts +203 -1
  48. package/dist/types/index.js +275 -0
  49. package/dist/types/index.js.map +1 -1
  50. package/dist/types/index.mjs +251 -0
  51. package/dist/types/index.mjs.map +1 -1
  52. package/dist/useForexTrading-BleeSor8.d.mts +80 -0
  53. package/dist/useForexTrading-ZgW_G40Q.d.ts +80 -0
  54. package/package.json +9 -2
  55. package/src/components/OneConnectButton.tsx +24 -1
  56. package/src/components/OneNFTGallery.tsx +13 -7
  57. package/src/components/OneOfframpWidget.tsx +4 -3
  58. package/src/components/OnePayWidget.tsx +10 -1
  59. package/src/components/OneSendWidget.tsx +3 -3
  60. package/src/components/OneSwapWidget.tsx +4 -4
  61. package/src/components/OneTransactionButton.tsx +28 -3
  62. package/src/components/OneWalletBalance.tsx +1 -1
  63. package/src/components/ai/OneChainSelector.tsx +63 -336
  64. package/src/components/ai/OneForexCapitalSplit.tsx +112 -0
  65. package/src/components/ai/OneForexConsoleView.tsx +90 -0
  66. package/src/components/ai/OneForexPairSelector.tsx +101 -0
  67. package/src/components/ai/OneForexPoolCard.tsx +105 -0
  68. package/src/components/ai/OneForexTradeHistory.tsx +107 -0
  69. package/src/components/ai/OnePairSelector.tsx +77 -434
  70. package/src/components/ai/console/OneAIQuantConsole.tsx +423 -0
  71. package/src/components/ai/console/OneAgentCard.tsx +383 -0
  72. package/src/components/ai/console/OneAgentConsole.tsx +469 -0
  73. package/src/components/ai/console/OneDecisionTimeline.tsx +433 -0
  74. package/src/components/ai/console/OneMetricsDashboard.tsx +493 -0
  75. package/src/components/ai/console/OnePositionCard.tsx +406 -0
  76. package/src/components/ai/console/OnePositionDetail.tsx +600 -0
  77. package/src/components/ai/console/OneRiskIndicator.tsx +464 -0
  78. package/src/components/ai/console/OneTradingConsole.tsx +660 -0
  79. package/src/components/ai/console/index.ts +17 -0
  80. package/src/components/ai/index.ts +10 -0
  81. package/src/hooks/index.ts +46 -0
  82. package/src/hooks/useAIDecisions.ts +280 -0
  83. package/src/hooks/useAIPositions.ts +349 -0
  84. package/src/hooks/useAIQuantConsole.ts +283 -0
  85. package/src/hooks/useAIRiskStatus.ts +276 -0
  86. package/src/hooks/useAITrading.ts +190 -0
  87. package/src/hooks/useBotSimulation.ts +201 -0
  88. package/src/hooks/useForexTrading.ts +430 -0
  89. package/src/hooks/useTradingConsole.ts +243 -0
  90. package/src/index.ts +123 -5
  91. package/src/providers/OneProvider.tsx +181 -5
  92. package/src/providers/index.ts +22 -8
  93. package/src/react-native.ts +41 -0
  94. package/src/services/forex/BotSimulationEngine.ts +968 -0
  95. package/src/services/forex/ForexPoolDataGenerator.ts +542 -0
  96. package/src/services/forex/ForexSimulationEngine.ts +482 -0
  97. package/src/services/forex/index.ts +21 -0
  98. package/src/services/index.ts +16 -0
  99. package/src/types/aiTrading.ts +151 -0
  100. package/src/types/console.ts +380 -0
  101. package/src/types/forex.ts +282 -0
  102. package/src/types/index.ts +106 -0
  103. package/dist/price-CgqXPnT3.d.ts +0 -13
  104. package/dist/price-ClbLHHjv.d.mts +0 -13
  105. package/dist/supabase-BT0c7q9e.d.mts +0 -82
  106. package/dist/supabase-BT0c7q9e.d.ts +0 -82
@@ -0,0 +1,250 @@
1
+ import React from 'react';
2
+ import { ViewStyle, TextStyle } from 'react-native';
3
+ import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-BfTMA7ah.js';
4
+
5
+ /**
6
+ * OneChainSelector - Multi-chain selection component for AI trading
7
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
8
+ */
9
+
10
+ declare const CHAIN_CONFIG: Record<string, {
11
+ name: string;
12
+ icon: string;
13
+ color: string;
14
+ }>;
15
+ interface OneChainSelectorProps {
16
+ /** List of supported chain IDs */
17
+ supportedChains: string[];
18
+ /** Currently selected chains */
19
+ selectedChains: string[];
20
+ /** Callback when chain selection changes */
21
+ onSelectChain: (chain: string) => void;
22
+ /** Enable multi-select (default: true) */
23
+ multiSelect?: boolean;
24
+ /** Accent color for selected state */
25
+ accentColor?: string;
26
+ /** Section title */
27
+ title?: string;
28
+ /** Section subtitle */
29
+ subtitle?: string;
30
+ /** Minimum required selections (for multi-select) */
31
+ minSelections?: number;
32
+ /** Custom styles */
33
+ style?: ViewStyle;
34
+ /** Custom title style */
35
+ titleStyle?: TextStyle;
36
+ }
37
+ declare const OneChainSelector: React.FC<OneChainSelectorProps>;
38
+
39
+ /**
40
+ * OneTierSelector - Investment tier selection component for AI trading
41
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
42
+ */
43
+
44
+ interface Tier {
45
+ tier: number;
46
+ amount: number;
47
+ label: string;
48
+ label_zh?: string;
49
+ }
50
+ interface OneTierSelectorProps {
51
+ /** Available investment tiers */
52
+ tiers: Tier[];
53
+ /** Currently selected tier */
54
+ selectedTier: Tier | null;
55
+ /** Callback when tier selection changes */
56
+ onSelectTier: (tier: Tier) => void;
57
+ /** Accent color for selected state */
58
+ accentColor?: string;
59
+ /** Section title */
60
+ title?: string;
61
+ /** Section subtitle */
62
+ subtitle?: string;
63
+ /** Show recommended badge on middle tier */
64
+ showRecommended?: boolean;
65
+ /** Recommended label text */
66
+ recommendedLabel?: string;
67
+ /** Use Chinese labels */
68
+ useZhLabels?: boolean;
69
+ /** Custom styles */
70
+ style?: ViewStyle;
71
+ /** Custom title style */
72
+ titleStyle?: TextStyle;
73
+ }
74
+ declare const OneTierSelector: React.FC<OneTierSelectorProps>;
75
+
76
+ /**
77
+ * OneCycleSelector - Investment cycle selection component for AI trading
78
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
79
+ */
80
+
81
+ declare const DEFAULT_SHARE_RATES: Record<number, number>;
82
+ interface OneCycleSelectorProps {
83
+ /** List of supported cycle days */
84
+ supportedCycles: number[];
85
+ /** Currently selected cycle */
86
+ selectedCycle: number;
87
+ /** Callback when cycle selection changes */
88
+ onSelectCycle: (cycle: number) => void;
89
+ /** Accent color for selected state */
90
+ accentColor?: string;
91
+ /** Section title */
92
+ title?: string;
93
+ /** Section subtitle */
94
+ subtitle?: string;
95
+ /** Custom share rates by cycle (overrides defaults) */
96
+ shareRates?: Record<number, number>;
97
+ /** Days label */
98
+ daysLabel?: string;
99
+ /** Your share label */
100
+ yourShareLabel?: string;
101
+ /** Platform fee label */
102
+ platformFeeLabel?: string;
103
+ /** Custom styles */
104
+ style?: ViewStyle;
105
+ /** Custom title style */
106
+ titleStyle?: TextStyle;
107
+ }
108
+ declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
109
+
110
+ /**
111
+ * OnePairSelector - Trading pair selection component for AI trading
112
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
113
+ */
114
+
115
+ declare const PAIR_ICONS: Record<string, string>;
116
+ interface OnePairSelectorProps {
117
+ /** List of supported trading pairs */
118
+ supportedPairs: string[];
119
+ /** Currently selected pairs */
120
+ selectedPairs: string[];
121
+ /** Callback when pair selection changes */
122
+ onTogglePair: (pair: string) => void;
123
+ /** Accent color for selected state */
124
+ accentColor?: string;
125
+ /** Section title */
126
+ title?: string;
127
+ /** Section subtitle */
128
+ subtitle?: string;
129
+ /** Minimum required selections */
130
+ minSelections?: number;
131
+ /** Maximum allowed selections (0 = unlimited) */
132
+ maxSelections?: number;
133
+ /** Custom styles */
134
+ style?: ViewStyle;
135
+ /** Custom title style */
136
+ titleStyle?: TextStyle;
137
+ }
138
+ declare const OnePairSelector: React.FC<OnePairSelectorProps>;
139
+
140
+ /**
141
+ * OneForexPoolCard - Displays a forex liquidity pool with metrics
142
+ * Part of ONE Ecosystem SDK
143
+ */
144
+
145
+ interface OneForexPoolCardProps {
146
+ /** Pool data object */
147
+ pool: ForexPool;
148
+ /** Pool display name (provide translated string) */
149
+ poolName?: string;
150
+ /** Whether to show enhanced metrics (APY, flow, tx count) */
151
+ showMetrics?: boolean;
152
+ /** Custom accent color override */
153
+ accentColor?: string;
154
+ /** Custom container style */
155
+ style?: ViewStyle;
156
+ /** Dark mode */
157
+ dark?: boolean;
158
+ }
159
+ declare const OneForexPoolCard: React.FC<OneForexPoolCardProps>;
160
+
161
+ /**
162
+ * OneForexCapitalSplit - Displays 50/50 capital allocation split
163
+ * Part of ONE Ecosystem SDK
164
+ */
165
+
166
+ interface OneForexCapitalSplitProps {
167
+ /** Total investment amount */
168
+ amount: number;
169
+ /** Labels (provide translated strings) */
170
+ labels?: {
171
+ title?: string;
172
+ tradingCapital?: string;
173
+ poolReserves?: string;
174
+ clearing?: string;
175
+ hedging?: string;
176
+ insurance?: string;
177
+ };
178
+ /** Show pool breakdown within reserves */
179
+ showPoolBreakdown?: boolean;
180
+ /** Custom container style */
181
+ style?: ViewStyle;
182
+ /** Dark mode */
183
+ dark?: boolean;
184
+ }
185
+ declare const OneForexCapitalSplit: React.FC<OneForexCapitalSplitProps>;
186
+
187
+ /**
188
+ * OneForexConsoleView - Displays live forex trading console log feed
189
+ * Part of ONE Ecosystem SDK
190
+ */
191
+
192
+ interface OneForexConsoleViewProps {
193
+ /** Array of log entries to display */
194
+ logs: ForexLogEntry[];
195
+ /** Maximum visible entries */
196
+ maxItems?: number;
197
+ /** Auto-scroll to bottom */
198
+ autoScroll?: boolean;
199
+ /** Custom container style */
200
+ style?: ViewStyle;
201
+ /** Console height */
202
+ height?: number;
203
+ }
204
+ declare const OneForexConsoleView: React.FC<OneForexConsoleViewProps>;
205
+
206
+ /**
207
+ * OneForexPairSelector - Stablecoin FX pair selection for forex trading
208
+ * Part of ONE Ecosystem SDK
209
+ */
210
+
211
+ interface OneForexPairSelectorProps {
212
+ /** Currently selected pair IDs */
213
+ selectedPairs: string[];
214
+ /** Callback when a pair is toggled */
215
+ onTogglePair: (pairId: string) => void;
216
+ /** Accent color for selected state */
217
+ accentColor?: string;
218
+ /** Section title */
219
+ title?: string;
220
+ /** Section subtitle */
221
+ subtitle?: string;
222
+ /** Custom pairs list (defaults to FOREX_CURRENCY_PAIRS) */
223
+ pairs?: ForexCurrencyPair[];
224
+ /** Custom container style */
225
+ style?: ViewStyle;
226
+ }
227
+ declare const OneForexPairSelector: React.FC<OneForexPairSelectorProps>;
228
+
229
+ /**
230
+ * OneForexTradeHistory - Displays trade history with settlement details
231
+ * Part of ONE Ecosystem SDK
232
+ */
233
+
234
+ interface OneForexTradeHistoryProps {
235
+ /** Trade records to display */
236
+ trades: ForexTradeRecord[];
237
+ /** Maximum trades to show */
238
+ maxItems?: number;
239
+ /** Show settlement details (clearing/hedging/insurance fees) */
240
+ showSettlementDetails?: boolean;
241
+ /** Show transaction hash */
242
+ showTxHash?: boolean;
243
+ /** Empty state text */
244
+ emptyText?: string;
245
+ /** Custom container style */
246
+ style?: ViewStyle;
247
+ }
248
+ declare const OneForexTradeHistory: React.FC<OneForexTradeHistoryProps>;
249
+
250
+ export { CHAIN_CONFIG as C, DEFAULT_SHARE_RATES as D, OneChainSelector as O, PAIR_ICONS as P, type Tier as T, OneTierSelector as a, OneCycleSelector as b, OnePairSelector as c, OneForexPoolCard as d, OneForexCapitalSplit as e, OneForexConsoleView as f, OneForexPairSelector as g, OneForexTradeHistory as h, type OneChainSelectorProps as i, type OneTierSelectorProps as j, type OneCycleSelectorProps as k, type OnePairSelectorProps as l, type OneForexPoolCardProps as m, type OneForexCapitalSplitProps as n, type OneForexConsoleViewProps as o, type OneForexPairSelectorProps as p, type OneForexTradeHistoryProps as q };
@@ -0,0 +1,250 @@
1
+ import React from 'react';
2
+ import { ViewStyle, TextStyle } from 'react-native';
3
+ import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-BfTMA7ah.mjs';
4
+
5
+ /**
6
+ * OneChainSelector - Multi-chain selection component for AI trading
7
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
8
+ */
9
+
10
+ declare const CHAIN_CONFIG: Record<string, {
11
+ name: string;
12
+ icon: string;
13
+ color: string;
14
+ }>;
15
+ interface OneChainSelectorProps {
16
+ /** List of supported chain IDs */
17
+ supportedChains: string[];
18
+ /** Currently selected chains */
19
+ selectedChains: string[];
20
+ /** Callback when chain selection changes */
21
+ onSelectChain: (chain: string) => void;
22
+ /** Enable multi-select (default: true) */
23
+ multiSelect?: boolean;
24
+ /** Accent color for selected state */
25
+ accentColor?: string;
26
+ /** Section title */
27
+ title?: string;
28
+ /** Section subtitle */
29
+ subtitle?: string;
30
+ /** Minimum required selections (for multi-select) */
31
+ minSelections?: number;
32
+ /** Custom styles */
33
+ style?: ViewStyle;
34
+ /** Custom title style */
35
+ titleStyle?: TextStyle;
36
+ }
37
+ declare const OneChainSelector: React.FC<OneChainSelectorProps>;
38
+
39
+ /**
40
+ * OneTierSelector - Investment tier selection component for AI trading
41
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
42
+ */
43
+
44
+ interface Tier {
45
+ tier: number;
46
+ amount: number;
47
+ label: string;
48
+ label_zh?: string;
49
+ }
50
+ interface OneTierSelectorProps {
51
+ /** Available investment tiers */
52
+ tiers: Tier[];
53
+ /** Currently selected tier */
54
+ selectedTier: Tier | null;
55
+ /** Callback when tier selection changes */
56
+ onSelectTier: (tier: Tier) => void;
57
+ /** Accent color for selected state */
58
+ accentColor?: string;
59
+ /** Section title */
60
+ title?: string;
61
+ /** Section subtitle */
62
+ subtitle?: string;
63
+ /** Show recommended badge on middle tier */
64
+ showRecommended?: boolean;
65
+ /** Recommended label text */
66
+ recommendedLabel?: string;
67
+ /** Use Chinese labels */
68
+ useZhLabels?: boolean;
69
+ /** Custom styles */
70
+ style?: ViewStyle;
71
+ /** Custom title style */
72
+ titleStyle?: TextStyle;
73
+ }
74
+ declare const OneTierSelector: React.FC<OneTierSelectorProps>;
75
+
76
+ /**
77
+ * OneCycleSelector - Investment cycle selection component for AI trading
78
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
79
+ */
80
+
81
+ declare const DEFAULT_SHARE_RATES: Record<number, number>;
82
+ interface OneCycleSelectorProps {
83
+ /** List of supported cycle days */
84
+ supportedCycles: number[];
85
+ /** Currently selected cycle */
86
+ selectedCycle: number;
87
+ /** Callback when cycle selection changes */
88
+ onSelectCycle: (cycle: number) => void;
89
+ /** Accent color for selected state */
90
+ accentColor?: string;
91
+ /** Section title */
92
+ title?: string;
93
+ /** Section subtitle */
94
+ subtitle?: string;
95
+ /** Custom share rates by cycle (overrides defaults) */
96
+ shareRates?: Record<number, number>;
97
+ /** Days label */
98
+ daysLabel?: string;
99
+ /** Your share label */
100
+ yourShareLabel?: string;
101
+ /** Platform fee label */
102
+ platformFeeLabel?: string;
103
+ /** Custom styles */
104
+ style?: ViewStyle;
105
+ /** Custom title style */
106
+ titleStyle?: TextStyle;
107
+ }
108
+ declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
109
+
110
+ /**
111
+ * OnePairSelector - Trading pair selection component for AI trading
112
+ * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
113
+ */
114
+
115
+ declare const PAIR_ICONS: Record<string, string>;
116
+ interface OnePairSelectorProps {
117
+ /** List of supported trading pairs */
118
+ supportedPairs: string[];
119
+ /** Currently selected pairs */
120
+ selectedPairs: string[];
121
+ /** Callback when pair selection changes */
122
+ onTogglePair: (pair: string) => void;
123
+ /** Accent color for selected state */
124
+ accentColor?: string;
125
+ /** Section title */
126
+ title?: string;
127
+ /** Section subtitle */
128
+ subtitle?: string;
129
+ /** Minimum required selections */
130
+ minSelections?: number;
131
+ /** Maximum allowed selections (0 = unlimited) */
132
+ maxSelections?: number;
133
+ /** Custom styles */
134
+ style?: ViewStyle;
135
+ /** Custom title style */
136
+ titleStyle?: TextStyle;
137
+ }
138
+ declare const OnePairSelector: React.FC<OnePairSelectorProps>;
139
+
140
+ /**
141
+ * OneForexPoolCard - Displays a forex liquidity pool with metrics
142
+ * Part of ONE Ecosystem SDK
143
+ */
144
+
145
+ interface OneForexPoolCardProps {
146
+ /** Pool data object */
147
+ pool: ForexPool;
148
+ /** Pool display name (provide translated string) */
149
+ poolName?: string;
150
+ /** Whether to show enhanced metrics (APY, flow, tx count) */
151
+ showMetrics?: boolean;
152
+ /** Custom accent color override */
153
+ accentColor?: string;
154
+ /** Custom container style */
155
+ style?: ViewStyle;
156
+ /** Dark mode */
157
+ dark?: boolean;
158
+ }
159
+ declare const OneForexPoolCard: React.FC<OneForexPoolCardProps>;
160
+
161
+ /**
162
+ * OneForexCapitalSplit - Displays 50/50 capital allocation split
163
+ * Part of ONE Ecosystem SDK
164
+ */
165
+
166
+ interface OneForexCapitalSplitProps {
167
+ /** Total investment amount */
168
+ amount: number;
169
+ /** Labels (provide translated strings) */
170
+ labels?: {
171
+ title?: string;
172
+ tradingCapital?: string;
173
+ poolReserves?: string;
174
+ clearing?: string;
175
+ hedging?: string;
176
+ insurance?: string;
177
+ };
178
+ /** Show pool breakdown within reserves */
179
+ showPoolBreakdown?: boolean;
180
+ /** Custom container style */
181
+ style?: ViewStyle;
182
+ /** Dark mode */
183
+ dark?: boolean;
184
+ }
185
+ declare const OneForexCapitalSplit: React.FC<OneForexCapitalSplitProps>;
186
+
187
+ /**
188
+ * OneForexConsoleView - Displays live forex trading console log feed
189
+ * Part of ONE Ecosystem SDK
190
+ */
191
+
192
+ interface OneForexConsoleViewProps {
193
+ /** Array of log entries to display */
194
+ logs: ForexLogEntry[];
195
+ /** Maximum visible entries */
196
+ maxItems?: number;
197
+ /** Auto-scroll to bottom */
198
+ autoScroll?: boolean;
199
+ /** Custom container style */
200
+ style?: ViewStyle;
201
+ /** Console height */
202
+ height?: number;
203
+ }
204
+ declare const OneForexConsoleView: React.FC<OneForexConsoleViewProps>;
205
+
206
+ /**
207
+ * OneForexPairSelector - Stablecoin FX pair selection for forex trading
208
+ * Part of ONE Ecosystem SDK
209
+ */
210
+
211
+ interface OneForexPairSelectorProps {
212
+ /** Currently selected pair IDs */
213
+ selectedPairs: string[];
214
+ /** Callback when a pair is toggled */
215
+ onTogglePair: (pairId: string) => void;
216
+ /** Accent color for selected state */
217
+ accentColor?: string;
218
+ /** Section title */
219
+ title?: string;
220
+ /** Section subtitle */
221
+ subtitle?: string;
222
+ /** Custom pairs list (defaults to FOREX_CURRENCY_PAIRS) */
223
+ pairs?: ForexCurrencyPair[];
224
+ /** Custom container style */
225
+ style?: ViewStyle;
226
+ }
227
+ declare const OneForexPairSelector: React.FC<OneForexPairSelectorProps>;
228
+
229
+ /**
230
+ * OneForexTradeHistory - Displays trade history with settlement details
231
+ * Part of ONE Ecosystem SDK
232
+ */
233
+
234
+ interface OneForexTradeHistoryProps {
235
+ /** Trade records to display */
236
+ trades: ForexTradeRecord[];
237
+ /** Maximum trades to show */
238
+ maxItems?: number;
239
+ /** Show settlement details (clearing/hedging/insurance fees) */
240
+ showSettlementDetails?: boolean;
241
+ /** Show transaction hash */
242
+ showTxHash?: boolean;
243
+ /** Empty state text */
244
+ emptyText?: string;
245
+ /** Custom container style */
246
+ style?: ViewStyle;
247
+ }
248
+ declare const OneForexTradeHistory: React.FC<OneForexTradeHistoryProps>;
249
+
250
+ export { CHAIN_CONFIG as C, DEFAULT_SHARE_RATES as D, OneChainSelector as O, PAIR_ICONS as P, type Tier as T, OneTierSelector as a, OneCycleSelector as b, OnePairSelector as c, OneForexPoolCard as d, OneForexCapitalSplit as e, OneForexConsoleView as f, OneForexPairSelector as g, OneForexTradeHistory as h, type OneChainSelectorProps as i, type OneTierSelectorProps as j, type OneCycleSelectorProps as k, type OnePairSelectorProps as l, type OneForexPoolCardProps as m, type OneForexCapitalSplitProps as n, type OneForexConsoleViewProps as o, type OneForexPairSelectorProps as p, type OneForexTradeHistoryProps as q };