@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
@@ -1,151 +1,15 @@
1
1
  import { ApiResponse } from './types/index.mjs';
2
- export { AIMarketData, AINavSnapshot, AIOrder, AIOrderStatus, AIPortfolioSummary, AIRedemptionResult, AIStrategy, AITradeAllocation, AITradeExecution, AdminListOptions, AdminProject, AdminUser, AssetAllocation, BillCategory, BillPayment, BillProvider, BridgeQuote, BridgeRoute, BridgeTransaction, Card, CardStatus, CardTier, CardTransaction, ChainConfig, Contract, ContractDeployParams, ContractReadParams, ContractType, ContractWriteParams, CreateAIOrderRequest, CreateWebhookInput, GasEstimate, GasPrice, KycLevel, KycStatus, LimitOrder, MembershipTier, NFT, NFTAttribute, NFTCollection, NFTTransfer, Notification, NotificationSettings, OfframpQuote, OfframpRequest, OfframpTransaction, OnChainBalance, PaginatedResult, Permission, PermissionScope, PortfolioAnalytics, PortfolioHistory, Position, RateLimitInfo, Referral, ReferralInfo, RiskLevel, SDKEvent, SDKEventType, Session, StakingPool, StakingPosition, StrategyCategory, SystemLog, SystemStats, Token, TokenPrice, TradeAction, TradingCondition, Transaction, TransactionStatus, TransactionType, UpdateWebhookInput, User, UserProfile, UserSettings, WalletBalance, WalletExport, WalletImportRequest, Webhook, WebhookDelivery, WebhookEventType } from './types/index.mjs';
2
+ export { AIAgent, AIAgentCycleParams, AIAgentPerformance, AIAgentSubscriptionParams, AIAgentTier, AIAgentTrade, AIMarketData, AINavSnapshot, AIOrder, AIOrderCreateInput, AIOrderStatus, AIOrderSummary, AIPenaltyCalculation, AIPerformanceChart, AIPortfolioSummary, AIRedemptionResult, AIStrategy, AIStrategyConfig, AITradeAllocation, AITradeExecution, AITradeLog, AdminListOptions, AdminProject, AdminUser, AssetAllocation, BillCategory, BillPayment, BillProvider, BridgeQuote, BridgeRoute, BridgeTransaction, Card, CardStatus, CardTier, CardTransaction, ChainConfig, Contract, ContractDeployParams, ContractReadParams, ContractType, ContractWriteParams, CreateAIOrderRequest, CreateWebhookInput, FeeType, GasEstimate, GasPrice, KycLevel, KycStatus, LimitOrder, MembershipTier, NFT, NFTAttribute, NFTCollection, NFTTransfer, Notification, NotificationSettings, ORDER_STATUS_CONFIG, OfframpQuote, OfframpRequest, OfframpTransaction, OnChainBalance, OrderEventType, OrderStatus, PENALTY_TIERS, PaginatedResult, Permission, PermissionScope, PortfolioAnalytics, PortfolioHistory, Position, RISK_LEVELS, RateLimitInfo, Referral, ReferralInfo, RiskLevel, SDKEvent, SDKEventType, STRATEGY_CATEGORIES, Session, StakingPool, StakingPosition, StrategyCategory, SystemLog, SystemStats, Token, TokenPrice, TradeAction, TradeStatus, TradingCondition, Transaction, TransactionStatus, TransactionType, UpdateWebhookInput, User, UserProfile, UserSettings, WalletBalance, WalletExport, WalletImportRequest, Webhook, WebhookDelivery, WebhookEventType, calculateEarlyWithdrawalPenalty } from './types/index.mjs';
3
3
  export { CHAIN_CONFIGS, COINGECKO_IDS, OneConfig, TOKEN_NAMES, getConfig, initOneSDK } from './config/index.mjs';
4
4
  import { E as EngineAuthResponse, O as OneEngineClient } from './engine-BeVuHpVx.mjs';
5
5
  export { b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, g as OnrampQuote, f as OnrampSession, e as OnrampSessionRequest, h as OnrampTransaction, j as SwapExecuteRequest, i as SwapQuote, S as SwapQuoteRequest, k as SwapResult, c as createOneEngineClient } from './engine-BeVuHpVx.mjs';
6
- export { P as PriceService, p as priceService } from './price-ClbLHHjv.mjs';
6
+ export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator--__twRwl.mjs';
7
7
  export { OneSDKError, capitalize, checksumAddress, formatDate, formatDateTime, formatNumber, formatPercent, formatRelativeTime, formatTokenAmount, formatUSD, isOneSDKError, isValidAddress, isValidEmail, isValidPhone, omit, pick, retry, shortenAddress, sleep, slugify, truncate } from './utils/index.mjs';
8
- import React from 'react';
9
- import { ViewStyle, TextStyle } from 'react-native';
10
-
11
- /**
12
- * OneChainSelector - Multi-chain selection component with dropdown style
13
- * Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
14
- */
15
-
16
- declare const CHAIN_CONFIG: Record<string, {
17
- name: string;
18
- icon: string;
19
- color: string;
20
- }>;
21
- interface OneChainSelectorProps {
22
- /** List of supported chain IDs */
23
- supportedChains: string[];
24
- /** Currently selected chains */
25
- selectedChains: string[];
26
- /** Callback when chain selection changes */
27
- onSelectChain: (chain: string) => void;
28
- /** Enable multi-select (default: true) */
29
- multiSelect?: boolean;
30
- /** Accent color for selected state */
31
- accentColor?: string;
32
- /** Section title */
33
- title?: string;
34
- /** Section subtitle */
35
- subtitle?: string;
36
- /** Minimum required selections (for multi-select) */
37
- minSelections?: number;
38
- /** Placeholder text */
39
- placeholder?: string;
40
- /** Custom styles */
41
- style?: ViewStyle;
42
- /** Custom title style */
43
- titleStyle?: TextStyle;
44
- }
45
- declare const OneChainSelector: React.FC<OneChainSelectorProps>;
46
-
47
- /**
48
- * OneTierSelector - Investment tier selection component for AI trading
49
- * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
50
- */
51
-
52
- interface Tier {
53
- tier: number;
54
- amount: number;
55
- label: string;
56
- label_zh?: string;
57
- }
58
- interface OneTierSelectorProps {
59
- /** Available investment tiers */
60
- tiers: Tier[];
61
- /** Currently selected tier */
62
- selectedTier: Tier | null;
63
- /** Callback when tier selection changes */
64
- onSelectTier: (tier: Tier) => void;
65
- /** Accent color for selected state */
66
- accentColor?: string;
67
- /** Section title */
68
- title?: string;
69
- /** Section subtitle */
70
- subtitle?: string;
71
- /** Show recommended badge on middle tier */
72
- showRecommended?: boolean;
73
- /** Recommended label text */
74
- recommendedLabel?: string;
75
- /** Use Chinese labels */
76
- useZhLabels?: boolean;
77
- /** Custom styles */
78
- style?: ViewStyle;
79
- /** Custom title style */
80
- titleStyle?: TextStyle;
81
- }
82
- declare const OneTierSelector: React.FC<OneTierSelectorProps>;
83
-
84
- /**
85
- * OneCycleSelector - Investment cycle selection component for AI trading
86
- * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
87
- */
88
-
89
- declare const DEFAULT_SHARE_RATES: Record<number, number>;
90
- interface OneCycleSelectorProps {
91
- /** List of supported cycle days */
92
- supportedCycles: number[];
93
- /** Currently selected cycle */
94
- selectedCycle: number;
95
- /** Callback when cycle selection changes */
96
- onSelectCycle: (cycle: number) => void;
97
- /** Accent color for selected state */
98
- accentColor?: string;
99
- /** Section title */
100
- title?: string;
101
- /** Section subtitle */
102
- subtitle?: string;
103
- /** Custom share rates by cycle (overrides defaults) */
104
- shareRates?: Record<number, number>;
105
- /** Days label */
106
- daysLabel?: string;
107
- /** Your share label */
108
- yourShareLabel?: string;
109
- /** Platform fee label */
110
- platformFeeLabel?: string;
111
- /** Custom styles */
112
- style?: ViewStyle;
113
- /** Custom title style */
114
- titleStyle?: TextStyle;
115
- }
116
- declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
117
-
118
- /**
119
- * OnePairSelector - Trading pair selection component with dropdown style
120
- * Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
121
- */
122
-
123
- declare const PAIR_ICONS: Record<string, string>;
124
- interface OnePairSelectorProps {
125
- /** List of supported trading pair IDs (e.g., 'BTC', 'ETH') */
126
- supportedPairs: string[];
127
- /** Currently selected pair IDs */
128
- selectedPairs: string[];
129
- /** Callback when pair selection changes */
130
- onTogglePair: (pair: string) => void;
131
- /** Accent color for selected state */
132
- accentColor?: string;
133
- /** Section title */
134
- title?: string;
135
- /** Section subtitle */
136
- subtitle?: string;
137
- /** Minimum required selections */
138
- minSelections?: number;
139
- /** Maximum allowed selections (0 = unlimited) */
140
- maxSelections?: number;
141
- /** Placeholder text */
142
- placeholder?: string;
143
- /** Custom styles */
144
- style?: ViewStyle;
145
- /** Custom title style */
146
- titleStyle?: TextStyle;
147
- }
148
- declare const OnePairSelector: React.FC<OnePairSelectorProps>;
8
+ 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-iDySMcw0.mjs';
9
+ export { g as UseForexInvestmentsResult, i as UseForexPoolDataResult, U as UseForexPoolsResult, h as UseForexSimulationResult, j as UseForexTradingResult, e as clearForexAccessToken, s as setForexAccessToken, f as setForexEngineUrl, a as useForexInvestments, c as useForexPoolData, u as useForexPools, b as useForexSimulation, d as useForexTrading } from './useForexTrading-BleeSor8.mjs';
10
+ export { M as AGENT_STATUS_COLORS, G as AIDecision, A as AILogType, D as AIPosition, U as AIQuantConsoleOptions, y as AI_LOG_COLORS, V as AgentConsoleOptions, L as AgentStatus, a as BotLogEntry, B as BotLogType, c as BotState, N as CombinedLogEntry, K as ConsoleMetrics, Y as DEFAULT_CONSOLE_METRICS, W as DEFAULT_CONSOLE_OPTIONS, X as DEFAULT_RISK_STATUS, E as DecisionAction, v as FOREX_AGENT, F as FOREX_CAPITAL_SPLIT, h as FOREX_CURRENCY_PAIRS, f as FOREX_CYCLE_OPTIONS, z as FOREX_LOG_COLORS, k as FOREX_POOL_DEFAULTS, u as ForexAgent, g as ForexCurrencyPair, e as ForexCycleOption, p as ForexInvestment, t as ForexLogEntry, s as ForexLogType, j as ForexPool, n as ForexPoolDailySnapshot, m as ForexPoolTransaction, l as ForexPoolTransactionType, i as ForexPoolType, o as ForexPosition, r as ForexTradeRecord, q as ForexTradeStatus, I as IndicatorSnapshot, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, S as StrategyPersonality, J as TRADING_STATUS_COLORS, Q as TradingConsoleOptions, O as TradingConsoleState, T as TradingStatus, b as botSimulationEngine, w as calculateForexNetProfit, Z as calculateRiskLevel, d as computePoolAllocations, x as estimateForexProfit, _ as formatPnl } from './console-BfTMA7ah.mjs';
11
+ import 'react';
12
+ import 'react-native';
149
13
 
150
14
  /**
151
15
  * Storage adapter interface for React Native
@@ -258,4 +122,4 @@ declare function generateShareContent(params: {
258
122
  */
259
123
  declare function getExplorerUrl(chainId: number, hash: string, type?: 'tx' | 'address' | 'token'): string;
260
124
 
261
- export { ApiResponse, type BiometricConfig, type BiometricResult, CHAIN_CONFIG, DEFAULT_SHARE_RATES, type DeepLinkHandler, EngineAuthResponse, OneChainSelector, type OneChainSelectorProps, OneCycleSelector, type OneCycleSelectorProps, OneEngineClient, OnePairSelector, type OnePairSelectorProps, OneTierSelector, type OneTierSelectorProps, PAIR_ICONS, type QRScanResult, type StorageAdapter, type Tier, createCachedEngineClient, createDeepLinkHandler, formatCryptoAmount, generateShareContent, getExplorerUrl, parseQRCode };
125
+ export { ApiResponse, type BiometricConfig, type BiometricResult, type DeepLinkHandler, EngineAuthResponse, OneEngineClient, type QRScanResult, type StorageAdapter, createCachedEngineClient, createDeepLinkHandler, formatCryptoAmount, generateShareContent, getExplorerUrl, parseQRCode };
@@ -1,151 +1,15 @@
1
1
  import { ApiResponse } from './types/index.js';
2
- export { AIMarketData, AINavSnapshot, AIOrder, AIOrderStatus, AIPortfolioSummary, AIRedemptionResult, AIStrategy, AITradeAllocation, AITradeExecution, AdminListOptions, AdminProject, AdminUser, AssetAllocation, BillCategory, BillPayment, BillProvider, BridgeQuote, BridgeRoute, BridgeTransaction, Card, CardStatus, CardTier, CardTransaction, ChainConfig, Contract, ContractDeployParams, ContractReadParams, ContractType, ContractWriteParams, CreateAIOrderRequest, CreateWebhookInput, GasEstimate, GasPrice, KycLevel, KycStatus, LimitOrder, MembershipTier, NFT, NFTAttribute, NFTCollection, NFTTransfer, Notification, NotificationSettings, OfframpQuote, OfframpRequest, OfframpTransaction, OnChainBalance, PaginatedResult, Permission, PermissionScope, PortfolioAnalytics, PortfolioHistory, Position, RateLimitInfo, Referral, ReferralInfo, RiskLevel, SDKEvent, SDKEventType, Session, StakingPool, StakingPosition, StrategyCategory, SystemLog, SystemStats, Token, TokenPrice, TradeAction, TradingCondition, Transaction, TransactionStatus, TransactionType, UpdateWebhookInput, User, UserProfile, UserSettings, WalletBalance, WalletExport, WalletImportRequest, Webhook, WebhookDelivery, WebhookEventType } from './types/index.js';
2
+ export { AIAgent, AIAgentCycleParams, AIAgentPerformance, AIAgentSubscriptionParams, AIAgentTier, AIAgentTrade, AIMarketData, AINavSnapshot, AIOrder, AIOrderCreateInput, AIOrderStatus, AIOrderSummary, AIPenaltyCalculation, AIPerformanceChart, AIPortfolioSummary, AIRedemptionResult, AIStrategy, AIStrategyConfig, AITradeAllocation, AITradeExecution, AITradeLog, AdminListOptions, AdminProject, AdminUser, AssetAllocation, BillCategory, BillPayment, BillProvider, BridgeQuote, BridgeRoute, BridgeTransaction, Card, CardStatus, CardTier, CardTransaction, ChainConfig, Contract, ContractDeployParams, ContractReadParams, ContractType, ContractWriteParams, CreateAIOrderRequest, CreateWebhookInput, FeeType, GasEstimate, GasPrice, KycLevel, KycStatus, LimitOrder, MembershipTier, NFT, NFTAttribute, NFTCollection, NFTTransfer, Notification, NotificationSettings, ORDER_STATUS_CONFIG, OfframpQuote, OfframpRequest, OfframpTransaction, OnChainBalance, OrderEventType, OrderStatus, PENALTY_TIERS, PaginatedResult, Permission, PermissionScope, PortfolioAnalytics, PortfolioHistory, Position, RISK_LEVELS, RateLimitInfo, Referral, ReferralInfo, RiskLevel, SDKEvent, SDKEventType, STRATEGY_CATEGORIES, Session, StakingPool, StakingPosition, StrategyCategory, SystemLog, SystemStats, Token, TokenPrice, TradeAction, TradeStatus, TradingCondition, Transaction, TransactionStatus, TransactionType, UpdateWebhookInput, User, UserProfile, UserSettings, WalletBalance, WalletExport, WalletImportRequest, Webhook, WebhookDelivery, WebhookEventType, calculateEarlyWithdrawalPenalty } from './types/index.js';
3
3
  export { CHAIN_CONFIGS, COINGECKO_IDS, OneConfig, TOKEN_NAMES, getConfig, initOneSDK } from './config/index.js';
4
4
  import { E as EngineAuthResponse, O as OneEngineClient } from './engine-DSc1Em4V.js';
5
5
  export { b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, g as OnrampQuote, f as OnrampSession, e as OnrampSessionRequest, h as OnrampTransaction, j as SwapExecuteRequest, i as SwapQuote, S as SwapQuoteRequest, k as SwapResult, c as createOneEngineClient } from './engine-DSc1Em4V.js';
6
- export { P as PriceService, p as priceService } from './price-CgqXPnT3.js';
6
+ export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-eUgwsU_B.js';
7
7
  export { OneSDKError, capitalize, checksumAddress, formatDate, formatDateTime, formatNumber, formatPercent, formatRelativeTime, formatTokenAmount, formatUSD, isOneSDKError, isValidAddress, isValidEmail, isValidPhone, omit, pick, retry, shortenAddress, sleep, slugify, truncate } from './utils/index.js';
8
- import React from 'react';
9
- import { ViewStyle, TextStyle } from 'react-native';
10
-
11
- /**
12
- * OneChainSelector - Multi-chain selection component with dropdown style
13
- * Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
14
- */
15
-
16
- declare const CHAIN_CONFIG: Record<string, {
17
- name: string;
18
- icon: string;
19
- color: string;
20
- }>;
21
- interface OneChainSelectorProps {
22
- /** List of supported chain IDs */
23
- supportedChains: string[];
24
- /** Currently selected chains */
25
- selectedChains: string[];
26
- /** Callback when chain selection changes */
27
- onSelectChain: (chain: string) => void;
28
- /** Enable multi-select (default: true) */
29
- multiSelect?: boolean;
30
- /** Accent color for selected state */
31
- accentColor?: string;
32
- /** Section title */
33
- title?: string;
34
- /** Section subtitle */
35
- subtitle?: string;
36
- /** Minimum required selections (for multi-select) */
37
- minSelections?: number;
38
- /** Placeholder text */
39
- placeholder?: string;
40
- /** Custom styles */
41
- style?: ViewStyle;
42
- /** Custom title style */
43
- titleStyle?: TextStyle;
44
- }
45
- declare const OneChainSelector: React.FC<OneChainSelectorProps>;
46
-
47
- /**
48
- * OneTierSelector - Investment tier selection component for AI trading
49
- * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
50
- */
51
-
52
- interface Tier {
53
- tier: number;
54
- amount: number;
55
- label: string;
56
- label_zh?: string;
57
- }
58
- interface OneTierSelectorProps {
59
- /** Available investment tiers */
60
- tiers: Tier[];
61
- /** Currently selected tier */
62
- selectedTier: Tier | null;
63
- /** Callback when tier selection changes */
64
- onSelectTier: (tier: Tier) => void;
65
- /** Accent color for selected state */
66
- accentColor?: string;
67
- /** Section title */
68
- title?: string;
69
- /** Section subtitle */
70
- subtitle?: string;
71
- /** Show recommended badge on middle tier */
72
- showRecommended?: boolean;
73
- /** Recommended label text */
74
- recommendedLabel?: string;
75
- /** Use Chinese labels */
76
- useZhLabels?: boolean;
77
- /** Custom styles */
78
- style?: ViewStyle;
79
- /** Custom title style */
80
- titleStyle?: TextStyle;
81
- }
82
- declare const OneTierSelector: React.FC<OneTierSelectorProps>;
83
-
84
- /**
85
- * OneCycleSelector - Investment cycle selection component for AI trading
86
- * Part of ONE Ecosystem SDK - can be used by any ecosystem partner
87
- */
88
-
89
- declare const DEFAULT_SHARE_RATES: Record<number, number>;
90
- interface OneCycleSelectorProps {
91
- /** List of supported cycle days */
92
- supportedCycles: number[];
93
- /** Currently selected cycle */
94
- selectedCycle: number;
95
- /** Callback when cycle selection changes */
96
- onSelectCycle: (cycle: number) => void;
97
- /** Accent color for selected state */
98
- accentColor?: string;
99
- /** Section title */
100
- title?: string;
101
- /** Section subtitle */
102
- subtitle?: string;
103
- /** Custom share rates by cycle (overrides defaults) */
104
- shareRates?: Record<number, number>;
105
- /** Days label */
106
- daysLabel?: string;
107
- /** Your share label */
108
- yourShareLabel?: string;
109
- /** Platform fee label */
110
- platformFeeLabel?: string;
111
- /** Custom styles */
112
- style?: ViewStyle;
113
- /** Custom title style */
114
- titleStyle?: TextStyle;
115
- }
116
- declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
117
-
118
- /**
119
- * OnePairSelector - Trading pair selection component with dropdown style
120
- * Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
121
- */
122
-
123
- declare const PAIR_ICONS: Record<string, string>;
124
- interface OnePairSelectorProps {
125
- /** List of supported trading pair IDs (e.g., 'BTC', 'ETH') */
126
- supportedPairs: string[];
127
- /** Currently selected pair IDs */
128
- selectedPairs: string[];
129
- /** Callback when pair selection changes */
130
- onTogglePair: (pair: string) => void;
131
- /** Accent color for selected state */
132
- accentColor?: string;
133
- /** Section title */
134
- title?: string;
135
- /** Section subtitle */
136
- subtitle?: string;
137
- /** Minimum required selections */
138
- minSelections?: number;
139
- /** Maximum allowed selections (0 = unlimited) */
140
- maxSelections?: number;
141
- /** Placeholder text */
142
- placeholder?: string;
143
- /** Custom styles */
144
- style?: ViewStyle;
145
- /** Custom title style */
146
- titleStyle?: TextStyle;
147
- }
148
- declare const OnePairSelector: React.FC<OnePairSelectorProps>;
8
+ 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';
9
+ export { g as UseForexInvestmentsResult, i as UseForexPoolDataResult, U as UseForexPoolsResult, h as UseForexSimulationResult, j as UseForexTradingResult, e as clearForexAccessToken, s as setForexAccessToken, f as setForexEngineUrl, a as useForexInvestments, c as useForexPoolData, u as useForexPools, b as useForexSimulation, d as useForexTrading } from './useForexTrading-ZgW_G40Q.js';
10
+ export { M as AGENT_STATUS_COLORS, G as AIDecision, A as AILogType, D as AIPosition, U as AIQuantConsoleOptions, y as AI_LOG_COLORS, V as AgentConsoleOptions, L as AgentStatus, a as BotLogEntry, B as BotLogType, c as BotState, N as CombinedLogEntry, K as ConsoleMetrics, Y as DEFAULT_CONSOLE_METRICS, W as DEFAULT_CONSOLE_OPTIONS, X as DEFAULT_RISK_STATUS, E as DecisionAction, v as FOREX_AGENT, F as FOREX_CAPITAL_SPLIT, h as FOREX_CURRENCY_PAIRS, f as FOREX_CYCLE_OPTIONS, z as FOREX_LOG_COLORS, k as FOREX_POOL_DEFAULTS, u as ForexAgent, g as ForexCurrencyPair, e as ForexCycleOption, p as ForexInvestment, t as ForexLogEntry, s as ForexLogType, j as ForexPool, n as ForexPoolDailySnapshot, m as ForexPoolTransaction, l as ForexPoolTransactionType, i as ForexPoolType, o as ForexPosition, r as ForexTradeRecord, q as ForexTradeStatus, I as IndicatorSnapshot, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, S as StrategyPersonality, J as TRADING_STATUS_COLORS, Q as TradingConsoleOptions, O as TradingConsoleState, T as TradingStatus, b as botSimulationEngine, w as calculateForexNetProfit, Z as calculateRiskLevel, d as computePoolAllocations, x as estimateForexProfit, _ as formatPnl } from './console-BfTMA7ah.js';
11
+ import 'react';
12
+ import 'react-native';
149
13
 
150
14
  /**
151
15
  * Storage adapter interface for React Native
@@ -258,4 +122,4 @@ declare function generateShareContent(params: {
258
122
  */
259
123
  declare function getExplorerUrl(chainId: number, hash: string, type?: 'tx' | 'address' | 'token'): string;
260
124
 
261
- export { ApiResponse, type BiometricConfig, type BiometricResult, CHAIN_CONFIG, DEFAULT_SHARE_RATES, type DeepLinkHandler, EngineAuthResponse, OneChainSelector, type OneChainSelectorProps, OneCycleSelector, type OneCycleSelectorProps, OneEngineClient, OnePairSelector, type OnePairSelectorProps, OneTierSelector, type OneTierSelectorProps, PAIR_ICONS, type QRScanResult, type StorageAdapter, type Tier, createCachedEngineClient, createDeepLinkHandler, formatCryptoAmount, generateShareContent, getExplorerUrl, parseQRCode };
125
+ export { ApiResponse, type BiometricConfig, type BiometricResult, type DeepLinkHandler, EngineAuthResponse, OneEngineClient, type QRScanResult, type StorageAdapter, createCachedEngineClient, createDeepLinkHandler, formatCryptoAmount, generateShareContent, getExplorerUrl, parseQRCode };