@one_deploy/sdk 1.0.6 → 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.
- package/README.md +339 -0
- package/dist/ForexPoolDataGenerator--__twRwl.d.mts +76 -0
- package/dist/ForexPoolDataGenerator-eUgwsU_B.d.ts +76 -0
- package/dist/OneForexTradeHistory-TlKxjbFF.d.ts +250 -0
- package/dist/OneForexTradeHistory-iDySMcw0.d.mts +250 -0
- package/dist/components/index.d.mts +539 -0
- package/dist/components/index.d.ts +539 -0
- package/dist/components/index.js +7295 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +7243 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/config/index.d.mts +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/console-BfTMA7ah.d.mts +504 -0
- package/dist/console-BfTMA7ah.d.ts +504 -0
- package/dist/hooks/index.d.mts +323 -1
- package/dist/hooks/index.d.ts +323 -1
- package/dist/hooks/index.js +3223 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +3204 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +18 -352
- package/dist/index.d.ts +18 -352
- package/dist/index.js +8646 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8449 -432
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +31 -31
- package/dist/providers/index.d.ts +31 -31
- package/dist/providers/index.js +140 -153
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +100 -109
- package/dist/providers/index.mjs.map +1 -1
- package/dist/react-native.d.mts +8 -140
- package/dist/react-native.d.ts +8 -140
- package/dist/react-native.js +2527 -0
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +2497 -2
- package/dist/react-native.mjs.map +1 -1
- package/dist/services/index.d.mts +85 -4
- package/dist/services/index.d.ts +85 -4
- package/dist/services/index.js +1621 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +1619 -1
- package/dist/services/index.mjs.map +1 -1
- package/dist/types/index.d.mts +203 -1
- package/dist/types/index.d.ts +203 -1
- package/dist/types/index.js +275 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +251 -0
- package/dist/types/index.mjs.map +1 -1
- package/dist/useForexTrading-BleeSor8.d.mts +80 -0
- package/dist/useForexTrading-ZgW_G40Q.d.ts +80 -0
- package/package.json +9 -2
- package/src/components/OneConnectButton.tsx +24 -1
- package/src/components/OneNFTGallery.tsx +13 -7
- package/src/components/OneOfframpWidget.tsx +4 -3
- package/src/components/OnePayWidget.tsx +10 -1
- package/src/components/OneSendWidget.tsx +3 -3
- package/src/components/OneSwapWidget.tsx +4 -4
- package/src/components/OneTransactionButton.tsx +28 -3
- package/src/components/OneWalletBalance.tsx +1 -1
- package/src/components/ai/OneForexCapitalSplit.tsx +112 -0
- package/src/components/ai/OneForexConsoleView.tsx +90 -0
- package/src/components/ai/OneForexPairSelector.tsx +101 -0
- package/src/components/ai/OneForexPoolCard.tsx +105 -0
- package/src/components/ai/OneForexTradeHistory.tsx +107 -0
- package/src/components/ai/console/OneAIQuantConsole.tsx +423 -0
- package/src/components/ai/console/OneAgentCard.tsx +383 -0
- package/src/components/ai/console/OneAgentConsole.tsx +469 -0
- package/src/components/ai/console/OneDecisionTimeline.tsx +433 -0
- package/src/components/ai/console/OneMetricsDashboard.tsx +493 -0
- package/src/components/ai/console/OnePositionCard.tsx +406 -0
- package/src/components/ai/console/OnePositionDetail.tsx +600 -0
- package/src/components/ai/console/OneRiskIndicator.tsx +464 -0
- package/src/components/ai/console/OneTradingConsole.tsx +660 -0
- package/src/components/ai/console/index.ts +17 -0
- package/src/components/ai/index.ts +10 -0
- package/src/hooks/index.ts +46 -0
- package/src/hooks/useAIDecisions.ts +280 -0
- package/src/hooks/useAIPositions.ts +349 -0
- package/src/hooks/useAIQuantConsole.ts +283 -0
- package/src/hooks/useAIRiskStatus.ts +276 -0
- package/src/hooks/useAITrading.ts +190 -0
- package/src/hooks/useBotSimulation.ts +201 -0
- package/src/hooks/useForexTrading.ts +430 -0
- package/src/hooks/useTradingConsole.ts +243 -0
- package/src/index.ts +123 -5
- package/src/providers/OneProvider.tsx +181 -5
- package/src/providers/index.ts +22 -8
- package/src/react-native.ts +41 -0
- package/src/services/forex/BotSimulationEngine.ts +968 -0
- package/src/services/forex/ForexPoolDataGenerator.ts +542 -0
- package/src/services/forex/ForexSimulationEngine.ts +482 -0
- package/src/services/forex/index.ts +21 -0
- package/src/services/index.ts +16 -0
- package/src/types/aiTrading.ts +151 -0
- package/src/types/console.ts +380 -0
- package/src/types/forex.ts +282 -0
- package/src/types/index.ts +106 -0
- package/dist/price-CgqXPnT3.d.ts +0 -13
- package/dist/price-ClbLHHjv.d.mts +0 -13
- package/dist/supabase-BT0c7q9e.d.mts +0 -82
- package/dist/supabase-BT0c7q9e.d.ts +0 -82
package/dist/react-native.d.mts
CHANGED
|
@@ -1,147 +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 './
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
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
|
-
/** Custom styles */
|
|
39
|
-
style?: ViewStyle;
|
|
40
|
-
/** Custom title style */
|
|
41
|
-
titleStyle?: TextStyle;
|
|
42
|
-
}
|
|
43
|
-
declare const OneChainSelector: React.FC<OneChainSelectorProps>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* OneTierSelector - Investment tier selection component for AI trading
|
|
47
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
interface Tier {
|
|
51
|
-
tier: number;
|
|
52
|
-
amount: number;
|
|
53
|
-
label: string;
|
|
54
|
-
label_zh?: string;
|
|
55
|
-
}
|
|
56
|
-
interface OneTierSelectorProps {
|
|
57
|
-
/** Available investment tiers */
|
|
58
|
-
tiers: Tier[];
|
|
59
|
-
/** Currently selected tier */
|
|
60
|
-
selectedTier: Tier | null;
|
|
61
|
-
/** Callback when tier selection changes */
|
|
62
|
-
onSelectTier: (tier: Tier) => void;
|
|
63
|
-
/** Accent color for selected state */
|
|
64
|
-
accentColor?: string;
|
|
65
|
-
/** Section title */
|
|
66
|
-
title?: string;
|
|
67
|
-
/** Section subtitle */
|
|
68
|
-
subtitle?: string;
|
|
69
|
-
/** Show recommended badge on middle tier */
|
|
70
|
-
showRecommended?: boolean;
|
|
71
|
-
/** Recommended label text */
|
|
72
|
-
recommendedLabel?: string;
|
|
73
|
-
/** Use Chinese labels */
|
|
74
|
-
useZhLabels?: boolean;
|
|
75
|
-
/** Custom styles */
|
|
76
|
-
style?: ViewStyle;
|
|
77
|
-
/** Custom title style */
|
|
78
|
-
titleStyle?: TextStyle;
|
|
79
|
-
}
|
|
80
|
-
declare const OneTierSelector: React.FC<OneTierSelectorProps>;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* OneCycleSelector - Investment cycle selection component for AI trading
|
|
84
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
declare const DEFAULT_SHARE_RATES: Record<number, number>;
|
|
88
|
-
interface OneCycleSelectorProps {
|
|
89
|
-
/** List of supported cycle days */
|
|
90
|
-
supportedCycles: number[];
|
|
91
|
-
/** Currently selected cycle */
|
|
92
|
-
selectedCycle: number;
|
|
93
|
-
/** Callback when cycle selection changes */
|
|
94
|
-
onSelectCycle: (cycle: number) => void;
|
|
95
|
-
/** Accent color for selected state */
|
|
96
|
-
accentColor?: string;
|
|
97
|
-
/** Section title */
|
|
98
|
-
title?: string;
|
|
99
|
-
/** Section subtitle */
|
|
100
|
-
subtitle?: string;
|
|
101
|
-
/** Custom share rates by cycle (overrides defaults) */
|
|
102
|
-
shareRates?: Record<number, number>;
|
|
103
|
-
/** Days label */
|
|
104
|
-
daysLabel?: string;
|
|
105
|
-
/** Your share label */
|
|
106
|
-
yourShareLabel?: string;
|
|
107
|
-
/** Platform fee label */
|
|
108
|
-
platformFeeLabel?: string;
|
|
109
|
-
/** Custom styles */
|
|
110
|
-
style?: ViewStyle;
|
|
111
|
-
/** Custom title style */
|
|
112
|
-
titleStyle?: TextStyle;
|
|
113
|
-
}
|
|
114
|
-
declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* OnePairSelector - Trading pair selection component for AI trading
|
|
118
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
declare const PAIR_ICONS: Record<string, string>;
|
|
122
|
-
interface OnePairSelectorProps {
|
|
123
|
-
/** List of supported trading pairs */
|
|
124
|
-
supportedPairs: string[];
|
|
125
|
-
/** Currently selected pairs */
|
|
126
|
-
selectedPairs: string[];
|
|
127
|
-
/** Callback when pair selection changes */
|
|
128
|
-
onTogglePair: (pair: string) => void;
|
|
129
|
-
/** Accent color for selected state */
|
|
130
|
-
accentColor?: string;
|
|
131
|
-
/** Section title */
|
|
132
|
-
title?: string;
|
|
133
|
-
/** Section subtitle */
|
|
134
|
-
subtitle?: string;
|
|
135
|
-
/** Minimum required selections */
|
|
136
|
-
minSelections?: number;
|
|
137
|
-
/** Maximum allowed selections (0 = unlimited) */
|
|
138
|
-
maxSelections?: number;
|
|
139
|
-
/** Custom styles */
|
|
140
|
-
style?: ViewStyle;
|
|
141
|
-
/** Custom title style */
|
|
142
|
-
titleStyle?: TextStyle;
|
|
143
|
-
}
|
|
144
|
-
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';
|
|
145
13
|
|
|
146
14
|
/**
|
|
147
15
|
* Storage adapter interface for React Native
|
|
@@ -254,4 +122,4 @@ declare function generateShareContent(params: {
|
|
|
254
122
|
*/
|
|
255
123
|
declare function getExplorerUrl(chainId: number, hash: string, type?: 'tx' | 'address' | 'token'): string;
|
|
256
124
|
|
|
257
|
-
export { ApiResponse, type BiometricConfig, type BiometricResult,
|
|
125
|
+
export { ApiResponse, type BiometricConfig, type BiometricResult, type DeepLinkHandler, EngineAuthResponse, OneEngineClient, type QRScanResult, type StorageAdapter, createCachedEngineClient, createDeepLinkHandler, formatCryptoAmount, generateShareContent, getExplorerUrl, parseQRCode };
|
package/dist/react-native.d.ts
CHANGED
|
@@ -1,147 +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 './
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
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
|
-
/** Custom styles */
|
|
39
|
-
style?: ViewStyle;
|
|
40
|
-
/** Custom title style */
|
|
41
|
-
titleStyle?: TextStyle;
|
|
42
|
-
}
|
|
43
|
-
declare const OneChainSelector: React.FC<OneChainSelectorProps>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* OneTierSelector - Investment tier selection component for AI trading
|
|
47
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
interface Tier {
|
|
51
|
-
tier: number;
|
|
52
|
-
amount: number;
|
|
53
|
-
label: string;
|
|
54
|
-
label_zh?: string;
|
|
55
|
-
}
|
|
56
|
-
interface OneTierSelectorProps {
|
|
57
|
-
/** Available investment tiers */
|
|
58
|
-
tiers: Tier[];
|
|
59
|
-
/** Currently selected tier */
|
|
60
|
-
selectedTier: Tier | null;
|
|
61
|
-
/** Callback when tier selection changes */
|
|
62
|
-
onSelectTier: (tier: Tier) => void;
|
|
63
|
-
/** Accent color for selected state */
|
|
64
|
-
accentColor?: string;
|
|
65
|
-
/** Section title */
|
|
66
|
-
title?: string;
|
|
67
|
-
/** Section subtitle */
|
|
68
|
-
subtitle?: string;
|
|
69
|
-
/** Show recommended badge on middle tier */
|
|
70
|
-
showRecommended?: boolean;
|
|
71
|
-
/** Recommended label text */
|
|
72
|
-
recommendedLabel?: string;
|
|
73
|
-
/** Use Chinese labels */
|
|
74
|
-
useZhLabels?: boolean;
|
|
75
|
-
/** Custom styles */
|
|
76
|
-
style?: ViewStyle;
|
|
77
|
-
/** Custom title style */
|
|
78
|
-
titleStyle?: TextStyle;
|
|
79
|
-
}
|
|
80
|
-
declare const OneTierSelector: React.FC<OneTierSelectorProps>;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* OneCycleSelector - Investment cycle selection component for AI trading
|
|
84
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
declare const DEFAULT_SHARE_RATES: Record<number, number>;
|
|
88
|
-
interface OneCycleSelectorProps {
|
|
89
|
-
/** List of supported cycle days */
|
|
90
|
-
supportedCycles: number[];
|
|
91
|
-
/** Currently selected cycle */
|
|
92
|
-
selectedCycle: number;
|
|
93
|
-
/** Callback when cycle selection changes */
|
|
94
|
-
onSelectCycle: (cycle: number) => void;
|
|
95
|
-
/** Accent color for selected state */
|
|
96
|
-
accentColor?: string;
|
|
97
|
-
/** Section title */
|
|
98
|
-
title?: string;
|
|
99
|
-
/** Section subtitle */
|
|
100
|
-
subtitle?: string;
|
|
101
|
-
/** Custom share rates by cycle (overrides defaults) */
|
|
102
|
-
shareRates?: Record<number, number>;
|
|
103
|
-
/** Days label */
|
|
104
|
-
daysLabel?: string;
|
|
105
|
-
/** Your share label */
|
|
106
|
-
yourShareLabel?: string;
|
|
107
|
-
/** Platform fee label */
|
|
108
|
-
platformFeeLabel?: string;
|
|
109
|
-
/** Custom styles */
|
|
110
|
-
style?: ViewStyle;
|
|
111
|
-
/** Custom title style */
|
|
112
|
-
titleStyle?: TextStyle;
|
|
113
|
-
}
|
|
114
|
-
declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* OnePairSelector - Trading pair selection component for AI trading
|
|
118
|
-
* Part of ONE Ecosystem SDK - can be used by any ecosystem partner
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
declare const PAIR_ICONS: Record<string, string>;
|
|
122
|
-
interface OnePairSelectorProps {
|
|
123
|
-
/** List of supported trading pairs */
|
|
124
|
-
supportedPairs: string[];
|
|
125
|
-
/** Currently selected pairs */
|
|
126
|
-
selectedPairs: string[];
|
|
127
|
-
/** Callback when pair selection changes */
|
|
128
|
-
onTogglePair: (pair: string) => void;
|
|
129
|
-
/** Accent color for selected state */
|
|
130
|
-
accentColor?: string;
|
|
131
|
-
/** Section title */
|
|
132
|
-
title?: string;
|
|
133
|
-
/** Section subtitle */
|
|
134
|
-
subtitle?: string;
|
|
135
|
-
/** Minimum required selections */
|
|
136
|
-
minSelections?: number;
|
|
137
|
-
/** Maximum allowed selections (0 = unlimited) */
|
|
138
|
-
maxSelections?: number;
|
|
139
|
-
/** Custom styles */
|
|
140
|
-
style?: ViewStyle;
|
|
141
|
-
/** Custom title style */
|
|
142
|
-
titleStyle?: TextStyle;
|
|
143
|
-
}
|
|
144
|
-
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';
|
|
145
13
|
|
|
146
14
|
/**
|
|
147
15
|
* Storage adapter interface for React Native
|
|
@@ -254,4 +122,4 @@ declare function generateShareContent(params: {
|
|
|
254
122
|
*/
|
|
255
123
|
declare function getExplorerUrl(chainId: number, hash: string, type?: 'tx' | 'address' | 'token'): string;
|
|
256
124
|
|
|
257
|
-
export { ApiResponse, type BiometricConfig, type BiometricResult,
|
|
125
|
+
export { ApiResponse, type BiometricConfig, type BiometricResult, type DeepLinkHandler, EngineAuthResponse, OneEngineClient, type QRScanResult, type StorageAdapter, createCachedEngineClient, createDeepLinkHandler, formatCryptoAmount, generateShareContent, getExplorerUrl, parseQRCode };
|