@one_deploy/sdk 1.2.2 → 1.2.4

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 (42) 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/components/index.js.map +1 -1
  8. package/dist/components/index.mjs.map +1 -1
  9. package/dist/config/index.d.mts +1 -1
  10. package/dist/config/index.d.ts +1 -1
  11. package/dist/{console-Dvf-N9Gr.d.mts → console-BoAIxikK.d.mts} +21 -1
  12. package/dist/{console-Dvf-N9Gr.d.ts → console-BoAIxikK.d.ts} +21 -1
  13. package/dist/hooks/index.d.mts +2 -2
  14. package/dist/hooks/index.d.ts +2 -2
  15. package/dist/index.d.mts +4 -4
  16. package/dist/index.d.ts +4 -4
  17. package/dist/index.js +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +1 -1
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/providers/index.d.mts +1 -1
  22. package/dist/providers/index.d.ts +1 -1
  23. package/dist/providers/index.js +1 -1
  24. package/dist/providers/index.js.map +1 -1
  25. package/dist/providers/index.mjs +1 -1
  26. package/dist/providers/index.mjs.map +1 -1
  27. package/dist/react-native.d.mts +4 -4
  28. package/dist/react-native.d.ts +4 -4
  29. package/dist/react-native.js +131 -0
  30. package/dist/react-native.js.map +1 -1
  31. package/dist/react-native.mjs +129 -1
  32. package/dist/react-native.mjs.map +1 -1
  33. package/dist/services/index.d.mts +2 -2
  34. package/dist/services/index.d.ts +2 -2
  35. package/dist/types/index.d.mts +1 -1
  36. package/dist/types/index.d.ts +1 -1
  37. package/dist/{useForexTrading-CA2DPQVf.d.ts → useForexTrading-BB4eUlHO.d.ts} +1 -1
  38. package/dist/{useForexTrading-I7nIQyog.d.mts → useForexTrading-xJwkxnhd.d.mts} +1 -1
  39. package/package.json +1 -1
  40. package/src/providers/OneProvider.tsx +1 -1
  41. package/src/providers/ThirdwebProvider.tsx +1 -1
  42. package/src/react-native.ts +16 -1
@@ -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';
package/dist/index.js CHANGED
@@ -4205,7 +4205,7 @@ function OneProvider({
4205
4205
  react.useEffect(() => {
4206
4206
  const fetchClientConfig = async () => {
4207
4207
  try {
4208
- const response = await fetch(`${config2.oneEngineUrl}/v1/config/thirdweb`);
4208
+ const response = await fetch(`${config2.oneEngineUrl}/api/v1/config/thirdweb`);
4209
4209
  if (response.ok) {
4210
4210
  const data = await response.json();
4211
4211
  if (data.success && data.data?.clientId) {