@one_deploy/sdk 1.0.7 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,539 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { smartWallet } from 'thirdweb/wallets';
4
+ import { PreparedTransaction } from 'thirdweb';
5
+ import { Chain } from 'thirdweb/chains';
6
+ export { C as CHAIN_CONFIG, D as DEFAULT_SHARE_RATES, O as OneChainSelector, i as OneChainSelectorProps, b as OneCycleSelector, k as OneCycleSelectorProps, e as OneForexCapitalSplit, n as OneForexCapitalSplitProps, f as OneForexConsoleView, o as OneForexConsoleViewProps, g as OneForexPairSelector, p as OneForexPairSelectorProps, d as OneForexPoolCard, m as OneForexPoolCardProps, h as OneForexTradeHistory, q as OneForexTradeHistoryProps, c as OnePairSelector, l as OnePairSelectorProps, a as OneTierSelector, j as OneTierSelectorProps, P as PAIR_ICONS, T as Tier } from '../OneForexTradeHistory-TlKxjbFF.js';
7
+ import { ViewStyle } from 'react-native';
8
+ import { N as CombinedLogEntry, a as BotLogEntry, t as ForexLogEntry, a1 as AIAgent, K as ConsoleMetrics, R as RiskStatus, c as BotState, D as AIPosition, G as AIDecision } from '../console-BfTMA7ah.js';
9
+
10
+ interface OneConnectButtonProps {
11
+ label?: string;
12
+ theme?: 'light' | 'dark';
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ chain?: Parameters<typeof smartWallet>[0]['chain'];
16
+ sponsorGas?: boolean;
17
+ authOptions?: {
18
+ email?: boolean;
19
+ google?: boolean;
20
+ apple?: boolean;
21
+ discord?: boolean;
22
+ passkey?: boolean;
23
+ };
24
+ onConnect?: (address: string) => void;
25
+ onDisconnect?: () => void;
26
+ accountAbstraction?: {
27
+ chain: Parameters<typeof smartWallet>[0]['chain'];
28
+ sponsorGas?: boolean;
29
+ };
30
+ }
31
+ declare function OneConnectButton({ label, theme, className, style, chain, sponsorGas, authOptions, onConnect, onDisconnect, accountAbstraction, }: OneConnectButtonProps): react_jsx_runtime.JSX.Element;
32
+ declare function OneConnectButtonSimple(props: Omit<OneConnectButtonProps, 'authOptions'>): react_jsx_runtime.JSX.Element;
33
+ declare function OneConnectButtonFull(props: Omit<OneConnectButtonProps, 'authOptions'>): react_jsx_runtime.JSX.Element;
34
+
35
+ type PayMode = 'fund_wallet' | 'direct_payment' | 'transaction';
36
+ interface OnePayWidgetProps {
37
+ mode?: PayMode;
38
+ recipientAddress?: string;
39
+ amount?: string;
40
+ tokenAddress?: string;
41
+ chainId?: number;
42
+ transaction?: any;
43
+ theme?: 'light' | 'dark';
44
+ className?: string;
45
+ style?: React.CSSProperties;
46
+ buyWithCrypto?: boolean;
47
+ buyWithFiat?: boolean;
48
+ supportedTokens?: {
49
+ [chainId: number]: string[];
50
+ };
51
+ onSuccess?: (result: any) => void;
52
+ onError?: (error: Error) => void;
53
+ onCancel?: () => void;
54
+ }
55
+ declare function OnePayWidget({ mode, recipientAddress, amount, tokenAddress, chainId, transaction, theme, className, style, buyWithCrypto, buyWithFiat, supportedTokens, onSuccess, onError, onCancel, }: OnePayWidgetProps): react_jsx_runtime.JSX.Element;
56
+ declare function OneFundWalletWidget(props: Omit<OnePayWidgetProps, 'mode'>): react_jsx_runtime.JSX.Element;
57
+ declare function OneDirectPayWidget(props: Omit<OnePayWidgetProps, 'mode'> & {
58
+ recipientAddress: string;
59
+ amount: string;
60
+ }): react_jsx_runtime.JSX.Element;
61
+ declare function OneCryptoOnlyPayWidget(props: Omit<OnePayWidgetProps, 'buyWithFiat'>): react_jsx_runtime.JSX.Element;
62
+ declare function OneFiatOnlyPayWidget(props: Omit<OnePayWidgetProps, 'buyWithCrypto'>): react_jsx_runtime.JSX.Element;
63
+
64
+ interface OneTransactionButtonProps {
65
+ to: string;
66
+ value?: bigint;
67
+ data?: `0x${string}`;
68
+ chain: Chain;
69
+ transaction?: PreparedTransaction;
70
+ label?: string;
71
+ loadingLabel?: string;
72
+ theme?: 'light' | 'dark';
73
+ className?: string;
74
+ style?: React.CSSProperties;
75
+ disabled?: boolean;
76
+ onSuccess?: (result: {
77
+ transactionHash: string;
78
+ }) => void;
79
+ onError?: (error: Error) => void;
80
+ onSubmitted?: (txHash: string) => void;
81
+ }
82
+ declare function OneTransactionButton({ to, value, data, chain, transaction: preparedTx, label, loadingLabel, theme, className, style, disabled, onSuccess, onError, onSubmitted, }: OneTransactionButtonProps): react_jsx_runtime.JSX.Element;
83
+ interface OneSendETHButtonProps extends Omit<OneTransactionButtonProps, 'data'> {
84
+ amount: string;
85
+ }
86
+ declare function OneSendETHButton({ amount, ...props }: OneSendETHButtonProps): react_jsx_runtime.JSX.Element;
87
+ interface OneApproveButtonProps extends Omit<OneTransactionButtonProps, 'to' | 'data' | 'value'> {
88
+ tokenAddress: string;
89
+ spenderAddress: string;
90
+ amount?: bigint;
91
+ }
92
+ declare function OneApproveButton({ tokenAddress, spenderAddress, amount, chain, ...props }: OneApproveButtonProps): react_jsx_runtime.JSX.Element;
93
+
94
+ interface OneSendWidgetProps {
95
+ defaultRecipient?: string;
96
+ defaultAmount?: string;
97
+ defaultChain?: Chain;
98
+ tokenAddress?: string;
99
+ tokenSymbol?: string;
100
+ tokenDecimals?: number;
101
+ theme?: 'light' | 'dark';
102
+ className?: string;
103
+ style?: React.CSSProperties;
104
+ onSuccess?: (txHash: string) => void;
105
+ onError?: (error: Error) => void;
106
+ onCancel?: () => void;
107
+ }
108
+ declare function OneSendWidget({ defaultRecipient, defaultAmount, defaultChain, tokenAddress, tokenSymbol, tokenDecimals, theme, className, style, onSuccess, onError, onCancel, }: OneSendWidgetProps): react_jsx_runtime.JSX.Element;
109
+ declare function OneSendETHWidget(props: Omit<OneSendWidgetProps, 'tokenAddress' | 'tokenSymbol' | 'tokenDecimals'>): react_jsx_runtime.JSX.Element;
110
+ declare function OneSendUSDCWidget(props: Omit<OneSendWidgetProps, 'tokenSymbol' | 'tokenDecimals'> & {
111
+ tokenAddress: string;
112
+ }): react_jsx_runtime.JSX.Element;
113
+
114
+ interface OneOnrampWidgetProps {
115
+ defaultFiat?: string;
116
+ defaultCrypto?: string;
117
+ defaultAmount?: number;
118
+ defaultNetwork?: string;
119
+ supportedFiats?: string[];
120
+ supportedCryptos?: string[];
121
+ supportedNetworks?: string[];
122
+ email?: string;
123
+ country?: string;
124
+ theme?: 'light' | 'dark';
125
+ accentColor?: string;
126
+ className?: string;
127
+ style?: React.CSSProperties;
128
+ mode?: 'form' | 'embed' | 'popup';
129
+ embedHeight?: number;
130
+ onSuccess?: (transaction: OnrampTransaction) => void;
131
+ onError?: (error: Error) => void;
132
+ onClose?: () => void;
133
+ onQuoteUpdate?: (quote: OnrampQuote) => void;
134
+ }
135
+ interface OnrampQuote {
136
+ fiatCurrency: string;
137
+ fiatAmount: number;
138
+ cryptoCurrency: string;
139
+ cryptoAmount: number;
140
+ network: string;
141
+ rate: number;
142
+ fees: {
143
+ network: number;
144
+ provider: number;
145
+ total: number;
146
+ };
147
+ estimatedTime: string;
148
+ }
149
+ interface OnrampTransaction {
150
+ id: string;
151
+ status: 'pending' | 'processing' | 'completed' | 'failed';
152
+ fiatCurrency: string;
153
+ fiatAmount: number;
154
+ cryptoCurrency: string;
155
+ cryptoAmount?: number;
156
+ walletAddress: string;
157
+ txHash?: string;
158
+ provider: string;
159
+ }
160
+ declare function OneOnrampWidget({ defaultFiat, defaultCrypto, defaultAmount, defaultNetwork, supportedFiats, supportedCryptos, supportedNetworks, email, country, theme, accentColor, className, style, mode, embedHeight, onSuccess, onError, onClose, onQuoteUpdate, }: OneOnrampWidgetProps): react_jsx_runtime.JSX.Element;
161
+ declare function OneBuyUSDTWidget(props: Omit<OneOnrampWidgetProps, 'defaultCrypto'>): react_jsx_runtime.JSX.Element;
162
+ declare function OneBuyUSDCWidget(props: Omit<OneOnrampWidgetProps, 'defaultCrypto'>): react_jsx_runtime.JSX.Element;
163
+ declare function OneBuyETHWidget(props: Omit<OneOnrampWidgetProps, 'defaultCrypto'>): react_jsx_runtime.JSX.Element;
164
+ declare function OneBuyBTCWidget(props: Omit<OneOnrampWidgetProps, 'defaultCrypto'>): react_jsx_runtime.JSX.Element;
165
+
166
+ interface OneOfframpWidgetProps {
167
+ defaultFiat?: string;
168
+ defaultCrypto?: string;
169
+ defaultAmount?: string;
170
+ defaultNetwork?: string;
171
+ supportedFiats?: string[];
172
+ supportedCryptos?: string[];
173
+ supportedNetworks?: string[];
174
+ email?: string;
175
+ country?: string;
176
+ theme?: 'light' | 'dark';
177
+ accentColor?: string;
178
+ className?: string;
179
+ style?: React.CSSProperties;
180
+ mode?: 'form' | 'embed' | 'popup';
181
+ embedHeight?: number;
182
+ onSuccess?: (transaction: OfframpTransaction) => void;
183
+ onError?: (error: Error) => void;
184
+ onClose?: () => void;
185
+ onQuoteUpdate?: (quote: OfframpQuote) => void;
186
+ }
187
+ interface OfframpQuote {
188
+ cryptoCurrency: string;
189
+ cryptoAmount: number;
190
+ fiatCurrency: string;
191
+ fiatAmount: number;
192
+ network: string;
193
+ rate: number;
194
+ fees: {
195
+ network: number;
196
+ provider: number;
197
+ total: number;
198
+ };
199
+ estimatedTime: string;
200
+ }
201
+ interface OfframpTransaction {
202
+ id: string;
203
+ status: 'pending' | 'processing' | 'completed' | 'failed';
204
+ cryptoCurrency: string;
205
+ cryptoAmount: number;
206
+ fiatCurrency: string;
207
+ fiatAmount?: number;
208
+ walletAddress: string;
209
+ txHash?: string;
210
+ provider: string;
211
+ }
212
+ declare function OneOfframpWidget({ defaultFiat, defaultCrypto, defaultAmount, defaultNetwork, supportedFiats, supportedCryptos, supportedNetworks, email, country, theme, accentColor, // Red for sell
213
+ className, style, mode, embedHeight, onSuccess, onError, onClose, onQuoteUpdate, }: OneOfframpWidgetProps): react_jsx_runtime.JSX.Element;
214
+ declare function OneSellUSDTWidget(props: Omit<OneOfframpWidgetProps, 'defaultCrypto'>): react_jsx_runtime.JSX.Element;
215
+ declare function OneSellUSDCWidget(props: Omit<OneOfframpWidgetProps, 'defaultCrypto'>): react_jsx_runtime.JSX.Element;
216
+ declare function OneSellETHWidget(props: Omit<OneOfframpWidgetProps, 'defaultCrypto'>): react_jsx_runtime.JSX.Element;
217
+
218
+ interface SwapToken {
219
+ address: string;
220
+ symbol: string;
221
+ name: string;
222
+ decimals: number;
223
+ logoURI?: string;
224
+ chainId: number;
225
+ }
226
+ interface SwapRoute {
227
+ provider: string;
228
+ fromChain: number;
229
+ toChain: number;
230
+ fromToken: SwapToken;
231
+ toToken: SwapToken;
232
+ fromAmount: string;
233
+ toAmount: string;
234
+ estimatedGas: string;
235
+ priceImpact: string;
236
+ executionTime: string;
237
+ steps: SwapStep[];
238
+ }
239
+ interface SwapStep {
240
+ type: 'swap' | 'bridge' | 'approve';
241
+ protocol: string;
242
+ fromToken: string;
243
+ toToken: string;
244
+ fromChain: number;
245
+ toChain: number;
246
+ }
247
+ interface OneSwapWidgetProps {
248
+ defaultFromToken?: SwapToken;
249
+ defaultToToken?: SwapToken;
250
+ defaultFromChain?: Chain;
251
+ defaultToChain?: Chain;
252
+ supportedChains?: Chain[];
253
+ tokens?: SwapToken[];
254
+ mode?: 'same-chain' | 'cross-chain' | 'auto';
255
+ theme?: 'light' | 'dark';
256
+ accentColor?: string;
257
+ className?: string;
258
+ style?: React.CSSProperties;
259
+ quoteEndpoint?: string;
260
+ executeEndpoint?: string;
261
+ onSwapSuccess?: (txHash: string, route?: SwapRoute) => void;
262
+ onSwapError?: (error: Error) => void;
263
+ onQuoteReceived?: (route: SwapRoute) => void;
264
+ onChainChange?: (fromChain: number, toChain: number) => void;
265
+ }
266
+ declare function OneSwapWidget({ defaultFromToken, defaultToToken, defaultFromChain, defaultToChain, supportedChains, tokens, mode, theme, accentColor, className, style, quoteEndpoint, executeEndpoint, onSwapSuccess, onSwapError, onQuoteReceived, onChainChange, }: OneSwapWidgetProps): react_jsx_runtime.JSX.Element;
267
+ declare function OneSameChainSwap(props: Omit<OneSwapWidgetProps, 'mode'>): react_jsx_runtime.JSX.Element;
268
+ declare function OneCrossChainSwap(props: Omit<OneSwapWidgetProps, 'mode'>): react_jsx_runtime.JSX.Element;
269
+
270
+ interface TokenBalance {
271
+ symbol: string;
272
+ name: string;
273
+ balance: string;
274
+ balanceFormatted: string;
275
+ balanceUsd: number;
276
+ price: number;
277
+ priceChange24h: number;
278
+ chainId: number;
279
+ chain: string;
280
+ contractAddress?: string;
281
+ logoURI?: string;
282
+ }
283
+ interface OneWalletBalanceProps {
284
+ showTotalBalance?: boolean;
285
+ showTokenList?: boolean;
286
+ showChainFilter?: boolean;
287
+ showPriceChange?: boolean;
288
+ chains?: Chain[];
289
+ balanceEndpoint?: string;
290
+ theme?: 'light' | 'dark';
291
+ className?: string;
292
+ style?: React.CSSProperties;
293
+ compact?: boolean;
294
+ onTokenClick?: (token: TokenBalance) => void;
295
+ onRefresh?: () => void;
296
+ }
297
+ declare function OneWalletBalance({ showTotalBalance, showTokenList, showChainFilter, showPriceChange, chains, balanceEndpoint, theme, className, style, compact, onTokenClick, onRefresh, }: OneWalletBalanceProps): react_jsx_runtime.JSX.Element;
298
+ declare function OneBalanceDisplay({ theme, className, style, }: Pick<OneWalletBalanceProps, 'theme' | 'className' | 'style'>): react_jsx_runtime.JSX.Element;
299
+
300
+ interface NFTItem {
301
+ id: string;
302
+ tokenId: string;
303
+ contractAddress: string;
304
+ name: string;
305
+ description?: string;
306
+ image?: string;
307
+ animationUrl?: string;
308
+ attributes?: Array<{
309
+ trait_type: string;
310
+ value: string | number;
311
+ }>;
312
+ chain: string;
313
+ chainId: number;
314
+ collection?: {
315
+ name: string;
316
+ image?: string;
317
+ };
318
+ }
319
+ interface OneNFTGalleryProps {
320
+ nfts?: NFTItem[];
321
+ fetchEndpoint?: string;
322
+ columns?: 2 | 3 | 4;
323
+ showCollection?: boolean;
324
+ showChain?: boolean;
325
+ theme?: 'light' | 'dark';
326
+ className?: string;
327
+ style?: React.CSSProperties;
328
+ onNFTClick?: (nft: NFTItem) => void;
329
+ onTransfer?: (nft: NFTItem) => void;
330
+ }
331
+ declare function OneNFTGallery({ nfts: propNfts, fetchEndpoint, columns, showCollection, showChain, theme, className, style, onNFTClick, onTransfer, }: OneNFTGalleryProps): react_jsx_runtime.JSX.Element;
332
+
333
+ interface OneReceiveWidgetProps {
334
+ chains?: Chain[];
335
+ defaultChain?: Chain;
336
+ showChainSelector?: boolean;
337
+ showCopyButton?: boolean;
338
+ showQRCode?: boolean;
339
+ theme?: 'light' | 'dark';
340
+ className?: string;
341
+ style?: React.CSSProperties;
342
+ qrSize?: number;
343
+ onCopy?: (address: string) => void;
344
+ onChainChange?: (chain: Chain) => void;
345
+ }
346
+ declare function OneReceiveWidget({ chains, defaultChain, showChainSelector, showCopyButton, showQRCode, theme, className, style, qrSize, onCopy, onChainChange, }: OneReceiveWidgetProps): react_jsx_runtime.JSX.Element;
347
+
348
+ /**
349
+ * OneTradingConsole - Total unified console view (AI + Forex)
350
+ * Part of ONE Ecosystem SDK
351
+ */
352
+
353
+ interface OneTradingConsoleProps {
354
+ mode?: 'combined' | 'ai-only' | 'forex-only';
355
+ combinedLogs?: CombinedLogEntry[];
356
+ aiLogs?: BotLogEntry[];
357
+ forexLogs?: ForexLogEntry[];
358
+ agents?: AIAgent[];
359
+ metrics?: ConsoleMetrics;
360
+ riskStatus?: RiskStatus | null;
361
+ maxLogs?: number;
362
+ autoScroll?: boolean;
363
+ showMetrics?: boolean;
364
+ showRisk?: boolean;
365
+ showControls?: boolean;
366
+ consoleHeight?: number;
367
+ isAIRunning?: boolean;
368
+ isForexRunning?: boolean;
369
+ onStartAI?: () => void;
370
+ onStopAI?: () => void;
371
+ onStartForex?: () => void;
372
+ onStopForex?: () => void;
373
+ onStartAll?: () => void;
374
+ onStopAll?: () => void;
375
+ onClearLogs?: () => void;
376
+ onRefresh?: () => void;
377
+ onAgentSelect?: (agent: AIAgent) => void;
378
+ style?: ViewStyle;
379
+ dark?: boolean;
380
+ }
381
+ declare const OneTradingConsole: React.FC<OneTradingConsoleProps>;
382
+
383
+ /**
384
+ * OneAIQuantConsole - All 7 AI agents overview
385
+ * Part of ONE Ecosystem SDK
386
+ */
387
+
388
+ interface OneAIQuantConsoleProps {
389
+ agents: AIAgent[];
390
+ metrics?: ConsoleMetrics;
391
+ riskStatus?: RiskStatus | null;
392
+ layout?: 'list' | 'grid' | 'compact';
393
+ showMetrics?: boolean;
394
+ showRisk?: boolean;
395
+ showPerformance?: boolean;
396
+ showPositions?: boolean;
397
+ onAgentSelect?: (agent: AIAgent) => void;
398
+ onStartAll?: () => void;
399
+ onStopAll?: () => void;
400
+ isRunning?: boolean;
401
+ style?: ViewStyle;
402
+ dark?: boolean;
403
+ }
404
+ declare const OneAIQuantConsole: React.FC<OneAIQuantConsoleProps>;
405
+
406
+ /**
407
+ * OneAgentConsole - Individual agent detail view
408
+ * Part of ONE Ecosystem SDK
409
+ */
410
+
411
+ interface OneAgentConsoleProps {
412
+ agent?: AIAgent;
413
+ strategyId?: string;
414
+ strategyName?: string;
415
+ logs: BotLogEntry[];
416
+ botState?: BotState;
417
+ positions?: AIPosition[];
418
+ decisions?: AIDecision[];
419
+ showConsole?: boolean;
420
+ showPositions?: boolean;
421
+ showDecisions?: boolean;
422
+ showMetrics?: boolean;
423
+ maxLogs?: number;
424
+ autoScroll?: boolean;
425
+ consoleHeight?: number;
426
+ onPositionPress?: (position: AIPosition) => void;
427
+ onDecisionPress?: (decision: AIDecision) => void;
428
+ onClosePosition?: (positionId: string) => void;
429
+ style?: ViewStyle;
430
+ dark?: boolean;
431
+ }
432
+ declare const OneAgentConsole: React.FC<OneAgentConsoleProps>;
433
+
434
+ /**
435
+ * OnePositionDetail - Detailed position tracking view
436
+ * Part of ONE Ecosystem SDK
437
+ */
438
+
439
+ interface OnePositionDetailProps {
440
+ position: AIPosition;
441
+ showTimeline?: boolean;
442
+ showReasoning?: boolean;
443
+ showRiskLevels?: boolean;
444
+ showHistory?: boolean;
445
+ priceUpdateInterval?: number;
446
+ onClose?: (positionId: string) => void;
447
+ onUpdateStopLoss?: (positionId: string, stopLoss: number) => void;
448
+ onUpdateTakeProfit?: (positionId: string, takeProfit: number) => void;
449
+ style?: ViewStyle;
450
+ dark?: boolean;
451
+ }
452
+ declare const OnePositionDetail: React.FC<OnePositionDetailProps>;
453
+
454
+ /**
455
+ * OneAgentCard - Displays agent status and mini metrics
456
+ * Part of ONE Ecosystem SDK
457
+ */
458
+
459
+ interface OneAgentCardProps {
460
+ agent: AIAgent;
461
+ onPress?: (agent: AIAgent) => void;
462
+ showMetrics?: boolean;
463
+ showIndicators?: boolean;
464
+ compact?: boolean;
465
+ style?: ViewStyle;
466
+ dark?: boolean;
467
+ }
468
+ declare const OneAgentCard: React.FC<OneAgentCardProps>;
469
+
470
+ /**
471
+ * OnePositionCard - Displays position with live P&L
472
+ * Part of ONE Ecosystem SDK
473
+ */
474
+
475
+ interface OnePositionCardProps {
476
+ position: AIPosition;
477
+ onPress?: (position: AIPosition) => void;
478
+ onClose?: (positionId: string) => void;
479
+ showDetails?: boolean;
480
+ showRiskLevels?: boolean;
481
+ compact?: boolean;
482
+ style?: ViewStyle;
483
+ dark?: boolean;
484
+ }
485
+ declare const OnePositionCard: React.FC<OnePositionCardProps>;
486
+
487
+ /**
488
+ * OneRiskIndicator - Displays risk status with visual indicators
489
+ * Part of ONE Ecosystem SDK
490
+ */
491
+
492
+ interface OneRiskIndicatorProps {
493
+ riskStatus: RiskStatus;
494
+ showDetails?: boolean;
495
+ showWarnings?: boolean;
496
+ showLimits?: boolean;
497
+ compact?: boolean;
498
+ style?: ViewStyle;
499
+ dark?: boolean;
500
+ }
501
+ declare const OneRiskIndicator: React.FC<OneRiskIndicatorProps>;
502
+
503
+ /**
504
+ * OneMetricsDashboard - Displays trading metrics and performance
505
+ * Part of ONE Ecosystem SDK
506
+ */
507
+
508
+ interface OneMetricsDashboardProps {
509
+ metrics: ConsoleMetrics;
510
+ showNAV?: boolean;
511
+ showPnL?: boolean;
512
+ showTrades?: boolean;
513
+ showPositions?: boolean;
514
+ showStrategies?: boolean;
515
+ compact?: boolean;
516
+ style?: ViewStyle;
517
+ dark?: boolean;
518
+ }
519
+ declare const OneMetricsDashboard: React.FC<OneMetricsDashboardProps>;
520
+
521
+ /**
522
+ * OneDecisionTimeline - Displays AI decision history with reasoning
523
+ * Part of ONE Ecosystem SDK
524
+ */
525
+
526
+ interface OneDecisionTimelineProps {
527
+ decisions: AIDecision[];
528
+ maxItems?: number;
529
+ showReasoning?: boolean;
530
+ showIndicators?: boolean;
531
+ showConfidence?: boolean;
532
+ onDecisionPress?: (decision: AIDecision) => void;
533
+ style?: ViewStyle;
534
+ height?: number;
535
+ dark?: boolean;
536
+ }
537
+ declare const OneDecisionTimeline: React.FC<OneDecisionTimelineProps>;
538
+
539
+ export { type NFTItem, type OfframpQuote, type OfframpTransaction, OneAIQuantConsole, type OneAIQuantConsoleProps, OneAgentCard, type OneAgentCardProps, OneAgentConsole, type OneAgentConsoleProps, OneApproveButton, type OneApproveButtonProps, OneBalanceDisplay, OneBuyBTCWidget, OneBuyETHWidget, OneBuyUSDCWidget, OneBuyUSDTWidget, OneConnectButton, OneConnectButtonFull, type OneConnectButtonProps, OneConnectButtonSimple, OneCrossChainSwap, OneCryptoOnlyPayWidget, OneDecisionTimeline, type OneDecisionTimelineProps, OneDirectPayWidget, OneFiatOnlyPayWidget, OneFundWalletWidget, OneMetricsDashboard, type OneMetricsDashboardProps, OneNFTGallery, type OneNFTGalleryProps, OneOfframpWidget, type OneOfframpWidgetProps, OneOnrampWidget, type OneOnrampWidgetProps, OnePayWidget, type OnePayWidgetProps, OnePositionCard, type OnePositionCardProps, OnePositionDetail, type OnePositionDetailProps, OneReceiveWidget, type OneReceiveWidgetProps, OneRiskIndicator, type OneRiskIndicatorProps, OneSameChainSwap, OneSellETHWidget, OneSellUSDCWidget, OneSellUSDTWidget, OneSendETHButton, type OneSendETHButtonProps, OneSendETHWidget, OneSendUSDCWidget, OneSendWidget, type OneSendWidgetProps, OneSwapWidget, type OneSwapWidgetProps, OneTradingConsole, type OneTradingConsoleProps, OneTransactionButton, type OneTransactionButtonProps, OneWalletBalance, type OneWalletBalanceProps, type OnrampQuote, type OnrampTransaction, type PayMode, type SwapRoute, type SwapStep, type SwapToken, type TokenBalance };