@one_deploy/sdk 1.2.2 → 1.2.3

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 (30) hide show
  1. package/dist/{ForexPoolDataGenerator-qwWv6sCE.d.ts → ForexPoolDataGenerator-B3DCN6_i.d.ts} +1 -1
  2. package/dist/{ForexPoolDataGenerator-JxTPpJPz.d.mts → ForexPoolDataGenerator-DWVj6mGW.d.mts} +1 -1
  3. package/dist/{OneForexTradeHistory-BE4rJH5t.d.ts → OneForexTradeHistory-BMbwdkMm.d.ts} +1 -1
  4. package/dist/{OneForexTradeHistory-DbuHXRy0.d.mts → OneForexTradeHistory-DACfkJQF.d.mts} +1 -1
  5. package/dist/components/index.d.mts +2 -2
  6. package/dist/components/index.d.ts +2 -2
  7. package/dist/config/index.d.mts +1 -1
  8. package/dist/config/index.d.ts +1 -1
  9. package/dist/{console-Dvf-N9Gr.d.mts → console-BoAIxikK.d.mts} +21 -1
  10. package/dist/{console-Dvf-N9Gr.d.ts → console-BoAIxikK.d.ts} +21 -1
  11. package/dist/hooks/index.d.mts +2 -2
  12. package/dist/hooks/index.d.ts +2 -2
  13. package/dist/index.d.mts +4 -4
  14. package/dist/index.d.ts +4 -4
  15. package/dist/providers/index.d.mts +1 -1
  16. package/dist/providers/index.d.ts +1 -1
  17. package/dist/react-native.d.mts +4 -4
  18. package/dist/react-native.d.ts +4 -4
  19. package/dist/react-native.js +131 -0
  20. package/dist/react-native.js.map +1 -1
  21. package/dist/react-native.mjs +129 -1
  22. package/dist/react-native.mjs.map +1 -1
  23. package/dist/services/index.d.mts +2 -2
  24. package/dist/services/index.d.ts +2 -2
  25. package/dist/types/index.d.mts +1 -1
  26. package/dist/types/index.d.ts +1 -1
  27. package/dist/{useForexTrading-CA2DPQVf.d.ts → useForexTrading-BB4eUlHO.d.ts} +1 -1
  28. package/dist/{useForexTrading-I7nIQyog.d.mts → useForexTrading-xJwkxnhd.d.mts} +1 -1
  29. package/package.json +1 -1
  30. package/src/react-native.ts +16 -1
@@ -1,5 +1,5 @@
1
1
  import { TokenPrice } from './types/index.js';
2
- import { t as ForexLogEntry, m as ForexPoolTransaction, g as ForexCurrencyPair, i as ForexPoolType, n as ForexPoolDailySnapshot, r as ForexTradeRecord, l as ForexPoolTransactionType } from './console-Dvf-N9Gr.js';
2
+ import { t as ForexLogEntry, m as ForexPoolTransaction, g as ForexCurrencyPair, i as ForexPoolType, n as ForexPoolDailySnapshot, r as ForexTradeRecord, l as ForexPoolTransactionType } from './console-BoAIxikK.js';
3
3
 
4
4
  declare class PriceService {
5
5
  private cache;
@@ -1,5 +1,5 @@
1
1
  import { TokenPrice } from './types/index.mjs';
2
- import { t as ForexLogEntry, m as ForexPoolTransaction, g as ForexCurrencyPair, i as ForexPoolType, n as ForexPoolDailySnapshot, r as ForexTradeRecord, l as ForexPoolTransactionType } from './console-Dvf-N9Gr.mjs';
2
+ import { t as ForexLogEntry, m as ForexPoolTransaction, g as ForexCurrencyPair, i as ForexPoolType, n as ForexPoolDailySnapshot, r as ForexTradeRecord, l as ForexPoolTransactionType } from './console-BoAIxikK.mjs';
3
3
 
4
4
  declare class PriceService {
5
5
  private cache;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ViewStyle, TextStyle } from 'react-native';
3
- import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-Dvf-N9Gr.js';
3
+ import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-BoAIxikK.js';
4
4
 
5
5
  /**
6
6
  * OneChainSelector - Multi-chain selection component for AI trading
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ViewStyle, TextStyle } from 'react-native';
3
- import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-Dvf-N9Gr.mjs';
3
+ import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-BoAIxikK.mjs';
4
4
 
5
5
  /**
6
6
  * OneChainSelector - Multi-chain selection component for AI trading
@@ -3,9 +3,9 @@ import React from 'react';
3
3
  import { smartWallet } from 'thirdweb/wallets';
4
4
  import { PreparedTransaction } from 'thirdweb';
5
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-DbuHXRy0.mjs';
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-DACfkJQF.mjs';
7
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-Dvf-N9Gr.mjs';
8
+ import { N as CombinedLogEntry, a as BotLogEntry, t as ForexLogEntry, a6 as AIAgent, K as ConsoleMetrics, R as RiskStatus, c as BotState, D as AIPosition, G as AIDecision } from '../console-BoAIxikK.mjs';
9
9
 
10
10
  interface OneConnectButtonProps {
11
11
  label?: string;
@@ -3,9 +3,9 @@ import React from 'react';
3
3
  import { smartWallet } from 'thirdweb/wallets';
4
4
  import { PreparedTransaction } from 'thirdweb';
5
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-BE4rJH5t.js';
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-BMbwdkMm.js';
7
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-Dvf-N9Gr.js';
8
+ import { N as CombinedLogEntry, a as BotLogEntry, t as ForexLogEntry, a6 as AIAgent, K as ConsoleMetrics, R as RiskStatus, c as BotState, D as AIPosition, G as AIDecision } from '../console-BoAIxikK.js';
9
9
 
10
10
  interface OneConnectButtonProps {
11
11
  label?: string;
@@ -1,5 +1,5 @@
1
1
  import { ChainConfig } from '../types/index.mjs';
2
- import '../console-Dvf-N9Gr.mjs';
2
+ import '../console-BoAIxikK.mjs';
3
3
 
4
4
  /**
5
5
  * ONE SDK Configuration
@@ -1,5 +1,5 @@
1
1
  import { ChainConfig } from '../types/index.js';
2
- import '../console-Dvf-N9Gr.js';
2
+ import '../console-BoAIxikK.js';
3
3
 
4
4
  /**
5
5
  * ONE SDK Configuration
@@ -263,6 +263,26 @@ interface StrategyPersonality {
263
263
  }
264
264
  type StrategyCategory = 'conservative' | 'balanced' | 'growth' | 'aggressive' | 'quantitative';
265
265
  type InvestmentTier = 'starter' | 'basic' | 'standard' | 'premium' | 'elite' | 'vip';
266
+ interface TierConfig {
267
+ id: InvestmentTier;
268
+ name: string;
269
+ nameCn: string;
270
+ minInvestment: number;
271
+ maxInvestment: number;
272
+ color: string;
273
+ icon: string;
274
+ }
275
+ declare const INVESTMENT_TIERS: Record<InvestmentTier, TierConfig>;
276
+ interface CycleConfig {
277
+ id: string;
278
+ days: number;
279
+ name: string;
280
+ nameCn: string;
281
+ profitSharePercent: number;
282
+ bonusMultiplier: number;
283
+ earlyWithdrawPenalty: number;
284
+ }
285
+ declare const INVESTMENT_CYCLES: CycleConfig[];
266
286
  type LogCallback = (entry: BotLogEntry) => void;
267
287
  declare const STRATEGY_PERSONALITIES: StrategyPersonality[];
268
288
  declare class BotSimulationEngine {
@@ -508,4 +528,4 @@ declare function calculateRiskLevel(exposurePercent: number, drawdownPercent: nu
508
528
  declare function formatPnl(pnl: number): string;
509
529
  declare function formatPercent(value: number, showSign?: boolean): string;
510
530
 
511
- export { formatPercent as $, type AILogType as A, type BotLogType as B, type PositionStatus as C, type AIPosition as D, type DecisionAction as E, FOREX_CAPITAL_SPLIT as F, type AIDecision as G, RISK_LEVEL_COLORS as H, type IndicatorSnapshot as I, TRADING_STATUS_COLORS as J, type ConsoleMetrics as K, type AgentStatus as L, AGENT_STATUS_COLORS as M, type CombinedLogEntry as N, type TradingConsoleState as O, type PositionSide as P, type TradingConsoleOptions as Q, type RiskStatus as R, type StrategyPersonality as S, type TradingStatus as T, type AIQuantConsoleOptions as U, type AgentConsoleOptions as V, DEFAULT_CONSOLE_OPTIONS as W, DEFAULT_RISK_STATUS as X, DEFAULT_CONSOLE_METRICS as Y, calculateRiskLevel as Z, formatPnl as _, type BotLogEntry as a, STRATEGY_PERSONALITIES as a0, type AIAgent as a1, type RiskLevel as a2, botSimulationEngine as b, type BotState as c, computePoolAllocations as d, type ForexCycleOption as e, FOREX_CYCLE_OPTIONS as f, type ForexCurrencyPair as g, FOREX_CURRENCY_PAIRS as h, type ForexPoolType as i, type ForexPool as j, FOREX_POOL_DEFAULTS as k, type ForexPoolTransactionType as l, type ForexPoolTransaction as m, type ForexPoolDailySnapshot as n, type ForexPosition as o, type ForexInvestment as p, type ForexTradeStatus as q, type ForexTradeRecord as r, type ForexLogType as s, type ForexLogEntry as t, type ForexAgent as u, FOREX_AGENT as v, calculateForexNetProfit as w, estimateForexProfit as x, AI_LOG_COLORS as y, FOREX_LOG_COLORS as z };
531
+ export { STRATEGY_PERSONALITIES as $, type AILogType as A, type BotLogType as B, type PositionStatus as C, type AIPosition as D, type DecisionAction as E, FOREX_CAPITAL_SPLIT as F, type AIDecision as G, RISK_LEVEL_COLORS as H, type IndicatorSnapshot as I, TRADING_STATUS_COLORS as J, type ConsoleMetrics as K, type AgentStatus as L, AGENT_STATUS_COLORS as M, type CombinedLogEntry as N, type TradingConsoleState as O, type PositionSide as P, type TradingConsoleOptions as Q, type RiskStatus as R, type StrategyPersonality as S, type TradingStatus as T, type AIQuantConsoleOptions as U, type AgentConsoleOptions as V, DEFAULT_CONSOLE_OPTIONS as W, DEFAULT_RISK_STATUS as X, DEFAULT_CONSOLE_METRICS as Y, calculateRiskLevel as Z, formatPnl as _, type BotLogEntry as a, INVESTMENT_TIERS as a0, INVESTMENT_CYCLES as a1, type InvestmentTier as a2, type CycleConfig as a3, type TierConfig as a4, formatPercent as a5, type AIAgent as a6, type RiskLevel as a7, botSimulationEngine as b, type BotState as c, computePoolAllocations as d, type ForexCycleOption as e, FOREX_CYCLE_OPTIONS as f, type ForexCurrencyPair as g, FOREX_CURRENCY_PAIRS as h, type ForexPoolType as i, type ForexPool as j, FOREX_POOL_DEFAULTS as k, type ForexPoolTransactionType as l, type ForexPoolTransaction as m, type ForexPoolDailySnapshot as n, type ForexPosition as o, type ForexInvestment as p, type ForexTradeStatus as q, type ForexTradeRecord as r, type ForexLogType as s, type ForexLogEntry as t, type ForexAgent as u, FOREX_AGENT as v, calculateForexNetProfit as w, estimateForexProfit as x, AI_LOG_COLORS as y, FOREX_LOG_COLORS as z };
@@ -263,6 +263,26 @@ interface StrategyPersonality {
263
263
  }
264
264
  type StrategyCategory = 'conservative' | 'balanced' | 'growth' | 'aggressive' | 'quantitative';
265
265
  type InvestmentTier = 'starter' | 'basic' | 'standard' | 'premium' | 'elite' | 'vip';
266
+ interface TierConfig {
267
+ id: InvestmentTier;
268
+ name: string;
269
+ nameCn: string;
270
+ minInvestment: number;
271
+ maxInvestment: number;
272
+ color: string;
273
+ icon: string;
274
+ }
275
+ declare const INVESTMENT_TIERS: Record<InvestmentTier, TierConfig>;
276
+ interface CycleConfig {
277
+ id: string;
278
+ days: number;
279
+ name: string;
280
+ nameCn: string;
281
+ profitSharePercent: number;
282
+ bonusMultiplier: number;
283
+ earlyWithdrawPenalty: number;
284
+ }
285
+ declare const INVESTMENT_CYCLES: CycleConfig[];
266
286
  type LogCallback = (entry: BotLogEntry) => void;
267
287
  declare const STRATEGY_PERSONALITIES: StrategyPersonality[];
268
288
  declare class BotSimulationEngine {
@@ -508,4 +528,4 @@ declare function calculateRiskLevel(exposurePercent: number, drawdownPercent: nu
508
528
  declare function formatPnl(pnl: number): string;
509
529
  declare function formatPercent(value: number, showSign?: boolean): string;
510
530
 
511
- export { formatPercent as $, type AILogType as A, type BotLogType as B, type PositionStatus as C, type AIPosition as D, type DecisionAction as E, FOREX_CAPITAL_SPLIT as F, type AIDecision as G, RISK_LEVEL_COLORS as H, type IndicatorSnapshot as I, TRADING_STATUS_COLORS as J, type ConsoleMetrics as K, type AgentStatus as L, AGENT_STATUS_COLORS as M, type CombinedLogEntry as N, type TradingConsoleState as O, type PositionSide as P, type TradingConsoleOptions as Q, type RiskStatus as R, type StrategyPersonality as S, type TradingStatus as T, type AIQuantConsoleOptions as U, type AgentConsoleOptions as V, DEFAULT_CONSOLE_OPTIONS as W, DEFAULT_RISK_STATUS as X, DEFAULT_CONSOLE_METRICS as Y, calculateRiskLevel as Z, formatPnl as _, type BotLogEntry as a, STRATEGY_PERSONALITIES as a0, type AIAgent as a1, type RiskLevel as a2, botSimulationEngine as b, type BotState as c, computePoolAllocations as d, type ForexCycleOption as e, FOREX_CYCLE_OPTIONS as f, type ForexCurrencyPair as g, FOREX_CURRENCY_PAIRS as h, type ForexPoolType as i, type ForexPool as j, FOREX_POOL_DEFAULTS as k, type ForexPoolTransactionType as l, type ForexPoolTransaction as m, type ForexPoolDailySnapshot as n, type ForexPosition as o, type ForexInvestment as p, type ForexTradeStatus as q, type ForexTradeRecord as r, type ForexLogType as s, type ForexLogEntry as t, type ForexAgent as u, FOREX_AGENT as v, calculateForexNetProfit as w, estimateForexProfit as x, AI_LOG_COLORS as y, FOREX_LOG_COLORS as z };
531
+ export { STRATEGY_PERSONALITIES as $, type AILogType as A, type BotLogType as B, type PositionStatus as C, type AIPosition as D, type DecisionAction as E, FOREX_CAPITAL_SPLIT as F, type AIDecision as G, RISK_LEVEL_COLORS as H, type IndicatorSnapshot as I, TRADING_STATUS_COLORS as J, type ConsoleMetrics as K, type AgentStatus as L, AGENT_STATUS_COLORS as M, type CombinedLogEntry as N, type TradingConsoleState as O, type PositionSide as P, type TradingConsoleOptions as Q, type RiskStatus as R, type StrategyPersonality as S, type TradingStatus as T, type AIQuantConsoleOptions as U, type AgentConsoleOptions as V, DEFAULT_CONSOLE_OPTIONS as W, DEFAULT_RISK_STATUS as X, DEFAULT_CONSOLE_METRICS as Y, calculateRiskLevel as Z, formatPnl as _, type BotLogEntry as a, INVESTMENT_TIERS as a0, INVESTMENT_CYCLES as a1, type InvestmentTier as a2, type CycleConfig as a3, type TierConfig as a4, formatPercent as a5, type AIAgent as a6, type RiskLevel as a7, botSimulationEngine as b, type BotState as c, computePoolAllocations as d, type ForexCycleOption as e, FOREX_CYCLE_OPTIONS as f, type ForexCurrencyPair as g, FOREX_CURRENCY_PAIRS as h, type ForexPoolType as i, type ForexPool as j, FOREX_POOL_DEFAULTS as k, type ForexPoolTransactionType as l, type ForexPoolTransaction as m, type ForexPoolDailySnapshot as n, type ForexPosition as o, type ForexInvestment as p, type ForexTradeStatus as q, type ForexTradeRecord as r, type ForexLogType as s, type ForexLogEntry as t, type ForexAgent as u, FOREX_AGENT as v, calculateForexNetProfit as w, estimateForexProfit as x, AI_LOG_COLORS as y, FOREX_LOG_COLORS as z };
@@ -1,7 +1,7 @@
1
1
  import { a as EngineWalletBalance } from '../engine-BeVuHpVx.mjs';
2
2
  import { Token, TokenPrice, StrategyCategory, AIStrategy, AINavSnapshot, AIMarketData, AIOrderStatus, AIOrder, CreateAIOrderRequest, ApiResponse, AIPortfolioSummary, AITradeAllocation } from '../types/index.mjs';
3
- 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-I7nIQyog.mjs';
4
- import { U as AIQuantConsoleOptions, S as StrategyPersonality, a1 as AIAgent$1, a as BotLogEntry, c as BotState, D as AIPosition, G as AIDecision, R as RiskStatus, K as ConsoleMetrics, C as PositionStatus, E as DecisionAction, a2 as RiskLevel, T as TradingStatus, Q as TradingConsoleOptions, t as ForexLogEntry, m as ForexPoolTransaction, j as ForexPool, p as ForexInvestment, N as CombinedLogEntry } from '../console-Dvf-N9Gr.mjs';
3
+ 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-xJwkxnhd.mjs';
4
+ import { U as AIQuantConsoleOptions, S as StrategyPersonality, a6 as AIAgent$1, a as BotLogEntry, c as BotState, D as AIPosition, G as AIDecision, R as RiskStatus, K as ConsoleMetrics, C as PositionStatus, E as DecisionAction, a7 as RiskLevel, T as TradingStatus, Q as TradingConsoleOptions, t as ForexLogEntry, m as ForexPoolTransaction, j as ForexPool, p as ForexInvestment, N as CombinedLogEntry } from '../console-BoAIxikK.mjs';
5
5
 
6
6
  interface UseWalletBalanceOptions {
7
7
  chains?: number[];
@@ -1,7 +1,7 @@
1
1
  import { a as EngineWalletBalance } from '../engine-DSc1Em4V.js';
2
2
  import { Token, TokenPrice, StrategyCategory, AIStrategy, AINavSnapshot, AIMarketData, AIOrderStatus, AIOrder, CreateAIOrderRequest, ApiResponse, AIPortfolioSummary, AITradeAllocation } from '../types/index.js';
3
- 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-CA2DPQVf.js';
4
- import { U as AIQuantConsoleOptions, S as StrategyPersonality, a1 as AIAgent$1, a as BotLogEntry, c as BotState, D as AIPosition, G as AIDecision, R as RiskStatus, K as ConsoleMetrics, C as PositionStatus, E as DecisionAction, a2 as RiskLevel, T as TradingStatus, Q as TradingConsoleOptions, t as ForexLogEntry, m as ForexPoolTransaction, j as ForexPool, p as ForexInvestment, N as CombinedLogEntry } from '../console-Dvf-N9Gr.js';
3
+ 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-BB4eUlHO.js';
4
+ import { U as AIQuantConsoleOptions, S as StrategyPersonality, a6 as AIAgent$1, a as BotLogEntry, c as BotState, D as AIPosition, G as AIDecision, R as RiskStatus, K as ConsoleMetrics, C as PositionStatus, E as DecisionAction, a7 as RiskLevel, T as TradingStatus, Q as TradingConsoleOptions, t as ForexLogEntry, m as ForexPoolTransaction, j as ForexPool, p as ForexInvestment, N as CombinedLogEntry } from '../console-BoAIxikK.js';
5
5
 
6
6
  interface UseWalletBalanceOptions {
7
7
  chains?: number[];
package/dist/index.d.mts CHANGED
@@ -2,13 +2,13 @@ export { CHAIN_CONFIGS, CHAIN_IDS, COINGECKO_IDS, DEFAULT_CHAIN_ID, OneConfig, S
2
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, ApiResponse, 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, OfframpRequest, 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 { E as EngineAuthResponse, b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, O as OneEngineClient, 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';
4
4
  export { DisplayCategory, SupabaseService, UsageActivity, UsageCategory, UsageRecord, UsageResponse, UsageService, UsageSummary, createSupabaseClient, createUsageService, getUsageService } from './services/index.mjs';
5
- export { F as ForexPoolDataGenerator, a as PairState, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-JxTPpJPz.mjs';
6
- 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-Dvf-N9Gr.mjs';
5
+ export { F as ForexPoolDataGenerator, a as PairState, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-DWVj6mGW.mjs';
6
+ 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-BoAIxikK.mjs';
7
7
  export { OneContext, OneProvider, ThirdwebWalletConfig as OneThirdwebConfig, OneProvider as OneThirdwebProvider, ThirdwebAuthOptions, ThirdwebWalletConfig, useOne, useOneAuth, useOneEngine, useOneOnramp, useOneSwap, useOneTrading, useOneWallet, useThirdwebClient } from './providers/index.mjs';
8
8
  export { NFTItem, OfframpQuote, OfframpTransaction, OneAIQuantConsole, OneAIQuantConsoleProps, OneAgentCard, OneAgentCardProps, OneAgentConsole, OneAgentConsoleProps, OneApproveButton, OneApproveButtonProps, OneBalanceDisplay, OneBuyBTCWidget, OneBuyETHWidget, OneBuyUSDCWidget, OneBuyUSDTWidget, OneConnectButton, OneConnectButtonFull, OneConnectButtonProps, OneConnectButtonSimple, OneCrossChainSwap, OneCryptoOnlyPayWidget, OneDecisionTimeline, OneDecisionTimelineProps, OneDirectPayWidget, OneFiatOnlyPayWidget, OneFundWalletWidget, OneMetricsDashboard, OneMetricsDashboardProps, OneNFTGallery, OneNFTGalleryProps, OneOfframpWidget, OneOfframpWidgetProps, OneOnrampWidget, OneOnrampWidgetProps, OnePayWidget, OnePayWidgetProps, OnePositionCard, OnePositionCardProps, OnePositionDetail, OnePositionDetailProps, OneReceiveWidget, OneReceiveWidgetProps, OneRiskIndicator, OneRiskIndicatorProps, OneSameChainSwap, OneSellETHWidget, OneSellUSDCWidget, OneSellUSDTWidget, OneSendETHButton, OneSendETHButtonProps, OneSendETHWidget, OneSendUSDCWidget, OneSendWidget, OneSendWidgetProps, OneSwapWidget, OneSwapWidgetProps, OneTradingConsole, OneTradingConsoleProps, OneTransactionButton, OneTransactionButtonProps, OneWalletBalance, OneWalletBalanceProps, PayMode, SwapRoute, SwapStep, SwapToken, TokenBalance } from './components/index.mjs';
9
- export { 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 } from './OneForexTradeHistory-DbuHXRy0.mjs';
9
+ export { 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 } from './OneForexTradeHistory-DACfkJQF.mjs';
10
10
  export { AIAgent as AIAgentHook, AIAgentParams, UseAIAgentResult, UseAIAgentSubscriptionResult, UseAIAgentsResult, UseAIDecisionsOptions, UseAIDecisionsResult, UseAIMarketDataResult, UseAIOrdersOptions, UseAIOrdersResult, UseAIPortfolioResult, UseAIPositionsOptions, UseAIPositionsResult, UseAIQuantConsoleResult, UseAIRiskStatusOptions, UseAIRiskStatusResult, UseAIStrategiesOptions, UseAIStrategiesResult, UseAIStrategyResult, UseAITradingResult, UseBotSimulationOptions, UseBotSimulationResult, UseTradingConsoleResult, clearAITradingAccessToken, clearConsoleAccessToken, setAITradingAccessToken, setConsoleAccessToken, setConsoleEngineUrl, useAIAgent, useAIAgentSubscription, useAIAgents, useAIDecisions, useAIMarketData, useAIOrders, useAIPortfolio, useAIPositions, useAIQuantConsole, useAIRiskStatus, useAIStrategies, useAIStrategy, useAITrading, useBotSimulation, useTokenPrice, useTokenPrices, useTradingConsole, useWalletBalance } from './hooks/index.mjs';
11
- 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-I7nIQyog.mjs';
11
+ 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-xJwkxnhd.mjs';
12
12
  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';
13
13
  export { inAppWallet, smartWallet } from 'thirdweb/wallets';
14
14
  export { Chain, arbitrum, base, ethereum, optimism, polygon } from 'thirdweb/chains';
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ export { CHAIN_CONFIGS, CHAIN_IDS, COINGECKO_IDS, DEFAULT_CHAIN_ID, OneConfig, S
2
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, ApiResponse, 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, OfframpRequest, 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 { E as EngineAuthResponse, b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, O as OneEngineClient, 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';
4
4
  export { DisplayCategory, SupabaseService, UsageActivity, UsageCategory, UsageRecord, UsageResponse, UsageService, UsageSummary, createSupabaseClient, createUsageService, getUsageService } from './services/index.js';
5
- export { F as ForexPoolDataGenerator, a as PairState, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-qwWv6sCE.js';
6
- 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-Dvf-N9Gr.js';
5
+ export { F as ForexPoolDataGenerator, a as PairState, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-B3DCN6_i.js';
6
+ 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-BoAIxikK.js';
7
7
  export { OneContext, OneProvider, ThirdwebWalletConfig as OneThirdwebConfig, OneProvider as OneThirdwebProvider, ThirdwebAuthOptions, ThirdwebWalletConfig, useOne, useOneAuth, useOneEngine, useOneOnramp, useOneSwap, useOneTrading, useOneWallet, useThirdwebClient } from './providers/index.js';
8
8
  export { NFTItem, OfframpQuote, OfframpTransaction, OneAIQuantConsole, OneAIQuantConsoleProps, OneAgentCard, OneAgentCardProps, OneAgentConsole, OneAgentConsoleProps, OneApproveButton, OneApproveButtonProps, OneBalanceDisplay, OneBuyBTCWidget, OneBuyETHWidget, OneBuyUSDCWidget, OneBuyUSDTWidget, OneConnectButton, OneConnectButtonFull, OneConnectButtonProps, OneConnectButtonSimple, OneCrossChainSwap, OneCryptoOnlyPayWidget, OneDecisionTimeline, OneDecisionTimelineProps, OneDirectPayWidget, OneFiatOnlyPayWidget, OneFundWalletWidget, OneMetricsDashboard, OneMetricsDashboardProps, OneNFTGallery, OneNFTGalleryProps, OneOfframpWidget, OneOfframpWidgetProps, OneOnrampWidget, OneOnrampWidgetProps, OnePayWidget, OnePayWidgetProps, OnePositionCard, OnePositionCardProps, OnePositionDetail, OnePositionDetailProps, OneReceiveWidget, OneReceiveWidgetProps, OneRiskIndicator, OneRiskIndicatorProps, OneSameChainSwap, OneSellETHWidget, OneSellUSDCWidget, OneSellUSDTWidget, OneSendETHButton, OneSendETHButtonProps, OneSendETHWidget, OneSendUSDCWidget, OneSendWidget, OneSendWidgetProps, OneSwapWidget, OneSwapWidgetProps, OneTradingConsole, OneTradingConsoleProps, OneTransactionButton, OneTransactionButtonProps, OneWalletBalance, OneWalletBalanceProps, PayMode, SwapRoute, SwapStep, SwapToken, TokenBalance } from './components/index.js';
9
- export { 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 } from './OneForexTradeHistory-BE4rJH5t.js';
9
+ export { 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 } from './OneForexTradeHistory-BMbwdkMm.js';
10
10
  export { AIAgent as AIAgentHook, AIAgentParams, UseAIAgentResult, UseAIAgentSubscriptionResult, UseAIAgentsResult, UseAIDecisionsOptions, UseAIDecisionsResult, UseAIMarketDataResult, UseAIOrdersOptions, UseAIOrdersResult, UseAIPortfolioResult, UseAIPositionsOptions, UseAIPositionsResult, UseAIQuantConsoleResult, UseAIRiskStatusOptions, UseAIRiskStatusResult, UseAIStrategiesOptions, UseAIStrategiesResult, UseAIStrategyResult, UseAITradingResult, UseBotSimulationOptions, UseBotSimulationResult, UseTradingConsoleResult, clearAITradingAccessToken, clearConsoleAccessToken, setAITradingAccessToken, setConsoleAccessToken, setConsoleEngineUrl, useAIAgent, useAIAgentSubscription, useAIAgents, useAIDecisions, useAIMarketData, useAIOrders, useAIPortfolio, useAIPositions, useAIQuantConsole, useAIRiskStatus, useAIStrategies, useAIStrategy, useAITrading, useBotSimulation, useTokenPrice, useTokenPrices, useTradingConsole, useWalletBalance } from './hooks/index.js';
11
- 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-CA2DPQVf.js';
11
+ 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-BB4eUlHO.js';
12
12
  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';
13
13
  export { inAppWallet, smartWallet } from 'thirdweb/wallets';
14
14
  export { Chain, arbitrum, base, ethereum, optimism, polygon } from 'thirdweb/chains';
@@ -8,7 +8,7 @@ import { OneConfig } from '../config/index.mjs';
8
8
  import { O as OneEngineClient, a as EngineWalletBalance, e as OnrampSessionRequest, S as SwapQuoteRequest, i as SwapQuote } from '../engine-BeVuHpVx.mjs';
9
9
  import { User, Token, AIStrategy, AIOrder } from '../types/index.mjs';
10
10
  export { inAppWallet, smartWallet } from 'thirdweb/wallets';
11
- import '../console-Dvf-N9Gr.mjs';
11
+ import '../console-BoAIxikK.mjs';
12
12
 
13
13
  interface ThirdwebAuthOptions {
14
14
  email?: boolean;
@@ -8,7 +8,7 @@ import { OneConfig } from '../config/index.js';
8
8
  import { O as OneEngineClient, a as EngineWalletBalance, e as OnrampSessionRequest, S as SwapQuoteRequest, i as SwapQuote } from '../engine-DSc1Em4V.js';
9
9
  import { User, Token, AIStrategy, AIOrder } from '../types/index.js';
10
10
  export { inAppWallet, smartWallet } from 'thirdweb/wallets';
11
- import '../console-Dvf-N9Gr.js';
11
+ import '../console-BoAIxikK.js';
12
12
 
13
13
  interface ThirdwebAuthOptions {
14
14
  email?: boolean;
@@ -3,11 +3,11 @@ export { AIAgent, AIAgentCycleParams, AIAgentPerformance, AIAgentSubscriptionPar
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 { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-JxTPpJPz.mjs';
6
+ export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-DWVj6mGW.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
- 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-DbuHXRy0.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-I7nIQyog.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-Dvf-N9Gr.mjs';
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-DACfkJQF.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-xJwkxnhd.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, a3 as CycleConfig, 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, a1 as INVESTMENT_CYCLES, a0 as INVESTMENT_TIERS, I as IndicatorSnapshot, a2 as InvestmentTier, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, $ as STRATEGY_PERSONALITIES, S as StrategyPersonality, J as TRADING_STATUS_COLORS, a4 as TierConfig, 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-BoAIxikK.mjs';
11
11
  import 'react';
12
12
  import 'react-native';
13
13
 
@@ -3,11 +3,11 @@ export { AIAgent, AIAgentCycleParams, AIAgentPerformance, AIAgentSubscriptionPar
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 { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-qwWv6sCE.js';
6
+ export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-B3DCN6_i.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
- 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-BE4rJH5t.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-CA2DPQVf.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-Dvf-N9Gr.js';
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-BMbwdkMm.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-BB4eUlHO.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, a3 as CycleConfig, 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, a1 as INVESTMENT_CYCLES, a0 as INVESTMENT_TIERS, I as IndicatorSnapshot, a2 as InvestmentTier, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, $ as STRATEGY_PERSONALITIES, S as StrategyPersonality, J as TRADING_STATUS_COLORS, a4 as TierConfig, 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-BoAIxikK.js';
11
11
  import 'react';
12
12
  import 'react-native';
13
13
 
@@ -3956,6 +3956,134 @@ init_ForexSimulationEngine();
3956
3956
  init_ForexPoolDataGenerator();
3957
3957
 
3958
3958
  // src/services/forex/BotSimulationEngine.ts
3959
+ var INVESTMENT_TIERS = {
3960
+ starter: {
3961
+ id: "starter",
3962
+ name: "Starter",
3963
+ nameCn: "\u5165\u95E8\u7248",
3964
+ minInvestment: 100,
3965
+ maxInvestment: 999,
3966
+ color: "#6B7280",
3967
+ icon: "\u{1F331}"
3968
+ },
3969
+ basic: {
3970
+ id: "basic",
3971
+ name: "Basic",
3972
+ nameCn: "\u57FA\u7840\u7248",
3973
+ minInvestment: 1e3,
3974
+ maxInvestment: 4999,
3975
+ color: "#3B82F6",
3976
+ icon: "\u{1F4CA}"
3977
+ },
3978
+ standard: {
3979
+ id: "standard",
3980
+ name: "Standard",
3981
+ nameCn: "\u6807\u51C6\u7248",
3982
+ minInvestment: 5e3,
3983
+ maxInvestment: 19999,
3984
+ color: "#10B981",
3985
+ icon: "\u{1F48E}"
3986
+ },
3987
+ premium: {
3988
+ id: "premium",
3989
+ name: "Premium",
3990
+ nameCn: "\u9AD8\u7EA7\u7248",
3991
+ minInvestment: 2e4,
3992
+ maxInvestment: 49999,
3993
+ color: "#8B5CF6",
3994
+ icon: "\u{1F451}"
3995
+ },
3996
+ elite: {
3997
+ id: "elite",
3998
+ name: "Elite",
3999
+ nameCn: "\u7CBE\u82F1\u7248",
4000
+ minInvestment: 5e4,
4001
+ maxInvestment: 99999,
4002
+ color: "#F59E0B",
4003
+ icon: "\u{1F3C6}"
4004
+ },
4005
+ vip: {
4006
+ id: "vip",
4007
+ name: "VIP",
4008
+ nameCn: "VIP\u4E13\u5C5E",
4009
+ minInvestment: 1e5,
4010
+ maxInvestment: Infinity,
4011
+ color: "#EF4444",
4012
+ icon: "\u{1F525}"
4013
+ }
4014
+ };
4015
+ var INVESTMENT_CYCLES = [
4016
+ {
4017
+ id: "flexible",
4018
+ days: 0,
4019
+ name: "Flexible",
4020
+ nameCn: "\u7075\u6D3B\u671F",
4021
+ profitSharePercent: 30,
4022
+ // Platform 30%, User 70%
4023
+ bonusMultiplier: 1,
4024
+ earlyWithdrawPenalty: 0
4025
+ },
4026
+ {
4027
+ id: "week",
4028
+ days: 7,
4029
+ name: "7 Days",
4030
+ nameCn: "7\u5929\u671F",
4031
+ profitSharePercent: 25,
4032
+ // Platform 25%, User 75%
4033
+ bonusMultiplier: 1.1,
4034
+ earlyWithdrawPenalty: 5
4035
+ },
4036
+ {
4037
+ id: "biweek",
4038
+ days: 14,
4039
+ name: "14 Days",
4040
+ nameCn: "14\u5929\u671F",
4041
+ profitSharePercent: 22,
4042
+ // Platform 22%, User 78%
4043
+ bonusMultiplier: 1.2,
4044
+ earlyWithdrawPenalty: 8
4045
+ },
4046
+ {
4047
+ id: "month",
4048
+ days: 30,
4049
+ name: "30 Days",
4050
+ nameCn: "30\u5929\u671F",
4051
+ profitSharePercent: 20,
4052
+ // Platform 20%, User 80%
4053
+ bonusMultiplier: 1.35,
4054
+ earlyWithdrawPenalty: 10
4055
+ },
4056
+ {
4057
+ id: "quarter",
4058
+ days: 90,
4059
+ name: "90 Days",
4060
+ nameCn: "90\u5929\u671F",
4061
+ profitSharePercent: 15,
4062
+ // Platform 15%, User 85%
4063
+ bonusMultiplier: 1.5,
4064
+ earlyWithdrawPenalty: 15
4065
+ },
4066
+ {
4067
+ id: "halfyear",
4068
+ days: 180,
4069
+ name: "180 Days",
4070
+ nameCn: "180\u5929\u671F",
4071
+ profitSharePercent: 12,
4072
+ // Platform 12%, User 88%
4073
+ bonusMultiplier: 1.8,
4074
+ earlyWithdrawPenalty: 20
4075
+ },
4076
+ {
4077
+ id: "year",
4078
+ days: 365,
4079
+ name: "365 Days",
4080
+ nameCn: "365\u5929\u671F",
4081
+ profitSharePercent: 10,
4082
+ // Platform 10%, User 90%
4083
+ bonusMultiplier: 2,
4084
+ earlyWithdrawPenalty: 25
4085
+ }
4086
+ ];
3959
4087
  var STRATEGY_PERSONALITIES = [
3960
4088
  // ═══════════════════════════════════════════════════════════════════════════
3961
4089
  // CONSERVATIVE STRATEGIES (保守型) - Low risk, stable returns
@@ -5097,6 +5225,8 @@ exports.DEFAULT_CONSOLE_OPTIONS = DEFAULT_CONSOLE_OPTIONS;
5097
5225
  exports.DEFAULT_RISK_STATUS = DEFAULT_RISK_STATUS;
5098
5226
  exports.DEFAULT_SHARE_RATES = DEFAULT_SHARE_RATES;
5099
5227
  exports.FOREX_LOG_COLORS = FOREX_LOG_COLORS;
5228
+ exports.INVESTMENT_CYCLES = INVESTMENT_CYCLES;
5229
+ exports.INVESTMENT_TIERS = INVESTMENT_TIERS;
5100
5230
  exports.ORDER_STATUS_CONFIG = ORDER_STATUS_CONFIG;
5101
5231
  exports.OneChainSelector = OneChainSelector;
5102
5232
  exports.OneCycleSelector = OneCycleSelector;
@@ -5115,6 +5245,7 @@ exports.PriceService = PriceService;
5115
5245
  exports.RISK_LEVELS = RISK_LEVELS;
5116
5246
  exports.RISK_LEVEL_COLORS = RISK_LEVEL_COLORS;
5117
5247
  exports.STRATEGY_CATEGORIES = STRATEGY_CATEGORIES;
5248
+ exports.STRATEGY_PERSONALITIES = STRATEGY_PERSONALITIES;
5118
5249
  exports.TOKEN_NAMES = TOKEN_NAMES;
5119
5250
  exports.TRADING_STATUS_COLORS = TRADING_STATUS_COLORS;
5120
5251
  exports.botSimulationEngine = botSimulationEngine;