@one_deploy/sdk 1.2.0 → 1.2.2

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 (43) hide show
  1. package/dist/{ForexPoolDataGenerator--__twRwl.d.mts → ForexPoolDataGenerator-JxTPpJPz.d.mts} +1 -1
  2. package/dist/{ForexPoolDataGenerator-eUgwsU_B.d.ts → ForexPoolDataGenerator-qwWv6sCE.d.ts} +1 -1
  3. package/dist/{OneForexTradeHistory-TlKxjbFF.d.ts → OneForexTradeHistory-BE4rJH5t.d.ts} +1 -1
  4. package/dist/{OneForexTradeHistory-iDySMcw0.d.mts → OneForexTradeHistory-DbuHXRy0.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-BfTMA7ah.d.mts → console-Dvf-N9Gr.d.mts} +7 -0
  10. package/dist/{console-BfTMA7ah.d.ts → console-Dvf-N9Gr.d.ts} +7 -0
  11. package/dist/hooks/index.d.mts +2 -2
  12. package/dist/hooks/index.d.ts +2 -2
  13. package/dist/hooks/index.js +399 -38
  14. package/dist/hooks/index.js.map +1 -1
  15. package/dist/hooks/index.mjs +399 -38
  16. package/dist/hooks/index.mjs.map +1 -1
  17. package/dist/index.d.mts +4 -4
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +399 -38
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +399 -38
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/providers/index.d.mts +1 -1
  24. package/dist/providers/index.d.ts +1 -1
  25. package/dist/react-native.d.mts +4 -4
  26. package/dist/react-native.d.ts +4 -4
  27. package/dist/react-native.js +239 -36
  28. package/dist/react-native.js.map +1 -1
  29. package/dist/react-native.mjs +239 -36
  30. package/dist/react-native.mjs.map +1 -1
  31. package/dist/services/index.d.mts +2 -2
  32. package/dist/services/index.d.ts +2 -2
  33. package/dist/services/index.js +239 -36
  34. package/dist/services/index.js.map +1 -1
  35. package/dist/services/index.mjs +239 -36
  36. package/dist/services/index.mjs.map +1 -1
  37. package/dist/types/index.d.mts +1 -1
  38. package/dist/types/index.d.ts +1 -1
  39. package/dist/{useForexTrading-ZgW_G40Q.d.ts → useForexTrading-CA2DPQVf.d.ts} +1 -1
  40. package/dist/{useForexTrading-BleeSor8.d.mts → useForexTrading-I7nIQyog.d.mts} +1 -1
  41. package/package.json +1 -1
  42. package/src/services/forex/BotSimulationEngine.ts +463 -35
  43. package/src/services/forex/index.ts +12 -1
@@ -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-BfTMA7ah.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';
3
3
 
4
4
  declare class PriceService {
5
5
  private cache;
@@ -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-BfTMA7ah.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';
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-BfTMA7ah.js';
3
+ import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-Dvf-N9Gr.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-BfTMA7ah.mjs';
3
+ import { j as ForexPool, t as ForexLogEntry, g as ForexCurrencyPair, r as ForexTradeRecord } from './console-Dvf-N9Gr.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-iDySMcw0.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-DbuHXRy0.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-BfTMA7ah.mjs';
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';
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-TlKxjbFF.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-BE4rJH5t.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-BfTMA7ah.js';
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';
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-BfTMA7ah.mjs';
2
+ import '../console-Dvf-N9Gr.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-BfTMA7ah.js';
2
+ import '../console-Dvf-N9Gr.js';
3
3
 
4
4
  /**
5
5
  * ONE SDK Configuration
@@ -255,7 +255,14 @@ interface StrategyPersonality {
255
255
  riskTolerance: 'low' | 'medium' | 'high';
256
256
  preferredPairs: string[];
257
257
  rsiBias: number;
258
+ tier: InvestmentTier;
259
+ dailyYieldMin: number;
260
+ dailyYieldMax: number;
261
+ description: string;
262
+ category: StrategyCategory;
258
263
  }
264
+ type StrategyCategory = 'conservative' | 'balanced' | 'growth' | 'aggressive' | 'quantitative';
265
+ type InvestmentTier = 'starter' | 'basic' | 'standard' | 'premium' | 'elite' | 'vip';
259
266
  type LogCallback = (entry: BotLogEntry) => void;
260
267
  declare const STRATEGY_PERSONALITIES: StrategyPersonality[];
261
268
  declare class BotSimulationEngine {
@@ -255,7 +255,14 @@ interface StrategyPersonality {
255
255
  riskTolerance: 'low' | 'medium' | 'high';
256
256
  preferredPairs: string[];
257
257
  rsiBias: number;
258
+ tier: InvestmentTier;
259
+ dailyYieldMin: number;
260
+ dailyYieldMax: number;
261
+ description: string;
262
+ category: StrategyCategory;
258
263
  }
264
+ type StrategyCategory = 'conservative' | 'balanced' | 'growth' | 'aggressive' | 'quantitative';
265
+ type InvestmentTier = 'starter' | 'basic' | 'standard' | 'premium' | 'elite' | 'vip';
259
266
  type LogCallback = (entry: BotLogEntry) => void;
260
267
  declare const STRATEGY_PERSONALITIES: StrategyPersonality[];
261
268
  declare class BotSimulationEngine {
@@ -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-BleeSor8.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-BfTMA7ah.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';
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-ZgW_G40Q.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-BfTMA7ah.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';
5
5
 
6
6
  interface UseWalletBalanceOptions {
7
7
  chains?: number[];