@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.
- package/dist/{ForexPoolDataGenerator-qwWv6sCE.d.ts → ForexPoolDataGenerator-B3DCN6_i.d.ts} +1 -1
- package/dist/{ForexPoolDataGenerator-JxTPpJPz.d.mts → ForexPoolDataGenerator-DWVj6mGW.d.mts} +1 -1
- package/dist/{OneForexTradeHistory-BE4rJH5t.d.ts → OneForexTradeHistory-BMbwdkMm.d.ts} +1 -1
- package/dist/{OneForexTradeHistory-DbuHXRy0.d.mts → OneForexTradeHistory-DACfkJQF.d.mts} +1 -1
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/{console-Dvf-N9Gr.d.mts → console-BoAIxikK.d.mts} +21 -1
- package/dist/{console-Dvf-N9Gr.d.ts → console-BoAIxikK.d.ts} +21 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +1 -1
- package/dist/providers/index.mjs.map +1 -1
- package/dist/react-native.d.mts +4 -4
- package/dist/react-native.d.ts +4 -4
- package/dist/react-native.js +131 -0
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +129 -1
- package/dist/react-native.mjs.map +1 -1
- package/dist/services/index.d.mts +2 -2
- package/dist/services/index.d.ts +2 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{useForexTrading-CA2DPQVf.d.ts → useForexTrading-BB4eUlHO.d.ts} +1 -1
- package/dist/{useForexTrading-I7nIQyog.d.mts → useForexTrading-xJwkxnhd.d.mts} +1 -1
- package/package.json +1 -1
- package/src/providers/OneProvider.tsx +1 -1
- package/src/providers/ThirdwebProvider.tsx +1 -1
- package/src/react-native.ts +16 -1
package/dist/react-native.mjs
CHANGED
|
@@ -3954,6 +3954,134 @@ init_ForexSimulationEngine();
|
|
|
3954
3954
|
init_ForexPoolDataGenerator();
|
|
3955
3955
|
|
|
3956
3956
|
// src/services/forex/BotSimulationEngine.ts
|
|
3957
|
+
var INVESTMENT_TIERS = {
|
|
3958
|
+
starter: {
|
|
3959
|
+
id: "starter",
|
|
3960
|
+
name: "Starter",
|
|
3961
|
+
nameCn: "\u5165\u95E8\u7248",
|
|
3962
|
+
minInvestment: 100,
|
|
3963
|
+
maxInvestment: 999,
|
|
3964
|
+
color: "#6B7280",
|
|
3965
|
+
icon: "\u{1F331}"
|
|
3966
|
+
},
|
|
3967
|
+
basic: {
|
|
3968
|
+
id: "basic",
|
|
3969
|
+
name: "Basic",
|
|
3970
|
+
nameCn: "\u57FA\u7840\u7248",
|
|
3971
|
+
minInvestment: 1e3,
|
|
3972
|
+
maxInvestment: 4999,
|
|
3973
|
+
color: "#3B82F6",
|
|
3974
|
+
icon: "\u{1F4CA}"
|
|
3975
|
+
},
|
|
3976
|
+
standard: {
|
|
3977
|
+
id: "standard",
|
|
3978
|
+
name: "Standard",
|
|
3979
|
+
nameCn: "\u6807\u51C6\u7248",
|
|
3980
|
+
minInvestment: 5e3,
|
|
3981
|
+
maxInvestment: 19999,
|
|
3982
|
+
color: "#10B981",
|
|
3983
|
+
icon: "\u{1F48E}"
|
|
3984
|
+
},
|
|
3985
|
+
premium: {
|
|
3986
|
+
id: "premium",
|
|
3987
|
+
name: "Premium",
|
|
3988
|
+
nameCn: "\u9AD8\u7EA7\u7248",
|
|
3989
|
+
minInvestment: 2e4,
|
|
3990
|
+
maxInvestment: 49999,
|
|
3991
|
+
color: "#8B5CF6",
|
|
3992
|
+
icon: "\u{1F451}"
|
|
3993
|
+
},
|
|
3994
|
+
elite: {
|
|
3995
|
+
id: "elite",
|
|
3996
|
+
name: "Elite",
|
|
3997
|
+
nameCn: "\u7CBE\u82F1\u7248",
|
|
3998
|
+
minInvestment: 5e4,
|
|
3999
|
+
maxInvestment: 99999,
|
|
4000
|
+
color: "#F59E0B",
|
|
4001
|
+
icon: "\u{1F3C6}"
|
|
4002
|
+
},
|
|
4003
|
+
vip: {
|
|
4004
|
+
id: "vip",
|
|
4005
|
+
name: "VIP",
|
|
4006
|
+
nameCn: "VIP\u4E13\u5C5E",
|
|
4007
|
+
minInvestment: 1e5,
|
|
4008
|
+
maxInvestment: Infinity,
|
|
4009
|
+
color: "#EF4444",
|
|
4010
|
+
icon: "\u{1F525}"
|
|
4011
|
+
}
|
|
4012
|
+
};
|
|
4013
|
+
var INVESTMENT_CYCLES = [
|
|
4014
|
+
{
|
|
4015
|
+
id: "flexible",
|
|
4016
|
+
days: 0,
|
|
4017
|
+
name: "Flexible",
|
|
4018
|
+
nameCn: "\u7075\u6D3B\u671F",
|
|
4019
|
+
profitSharePercent: 30,
|
|
4020
|
+
// Platform 30%, User 70%
|
|
4021
|
+
bonusMultiplier: 1,
|
|
4022
|
+
earlyWithdrawPenalty: 0
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
id: "week",
|
|
4026
|
+
days: 7,
|
|
4027
|
+
name: "7 Days",
|
|
4028
|
+
nameCn: "7\u5929\u671F",
|
|
4029
|
+
profitSharePercent: 25,
|
|
4030
|
+
// Platform 25%, User 75%
|
|
4031
|
+
bonusMultiplier: 1.1,
|
|
4032
|
+
earlyWithdrawPenalty: 5
|
|
4033
|
+
},
|
|
4034
|
+
{
|
|
4035
|
+
id: "biweek",
|
|
4036
|
+
days: 14,
|
|
4037
|
+
name: "14 Days",
|
|
4038
|
+
nameCn: "14\u5929\u671F",
|
|
4039
|
+
profitSharePercent: 22,
|
|
4040
|
+
// Platform 22%, User 78%
|
|
4041
|
+
bonusMultiplier: 1.2,
|
|
4042
|
+
earlyWithdrawPenalty: 8
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
id: "month",
|
|
4046
|
+
days: 30,
|
|
4047
|
+
name: "30 Days",
|
|
4048
|
+
nameCn: "30\u5929\u671F",
|
|
4049
|
+
profitSharePercent: 20,
|
|
4050
|
+
// Platform 20%, User 80%
|
|
4051
|
+
bonusMultiplier: 1.35,
|
|
4052
|
+
earlyWithdrawPenalty: 10
|
|
4053
|
+
},
|
|
4054
|
+
{
|
|
4055
|
+
id: "quarter",
|
|
4056
|
+
days: 90,
|
|
4057
|
+
name: "90 Days",
|
|
4058
|
+
nameCn: "90\u5929\u671F",
|
|
4059
|
+
profitSharePercent: 15,
|
|
4060
|
+
// Platform 15%, User 85%
|
|
4061
|
+
bonusMultiplier: 1.5,
|
|
4062
|
+
earlyWithdrawPenalty: 15
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
id: "halfyear",
|
|
4066
|
+
days: 180,
|
|
4067
|
+
name: "180 Days",
|
|
4068
|
+
nameCn: "180\u5929\u671F",
|
|
4069
|
+
profitSharePercent: 12,
|
|
4070
|
+
// Platform 12%, User 88%
|
|
4071
|
+
bonusMultiplier: 1.8,
|
|
4072
|
+
earlyWithdrawPenalty: 20
|
|
4073
|
+
},
|
|
4074
|
+
{
|
|
4075
|
+
id: "year",
|
|
4076
|
+
days: 365,
|
|
4077
|
+
name: "365 Days",
|
|
4078
|
+
nameCn: "365\u5929\u671F",
|
|
4079
|
+
profitSharePercent: 10,
|
|
4080
|
+
// Platform 10%, User 90%
|
|
4081
|
+
bonusMultiplier: 2,
|
|
4082
|
+
earlyWithdrawPenalty: 25
|
|
4083
|
+
}
|
|
4084
|
+
];
|
|
3957
4085
|
var STRATEGY_PERSONALITIES = [
|
|
3958
4086
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
3959
4087
|
// CONSERVATIVE STRATEGIES (保守型) - Low risk, stable returns
|
|
@@ -5085,6 +5213,6 @@ function getExplorerUrl(chainId, hash, type = "tx") {
|
|
|
5085
5213
|
return `${baseUrl}/${type}/${hash}`;
|
|
5086
5214
|
}
|
|
5087
5215
|
|
|
5088
|
-
export { AGENT_STATUS_COLORS, AI_LOG_COLORS, CHAIN_CONFIG, CHAIN_CONFIGS, COINGECKO_IDS, DEFAULT_CONSOLE_METRICS, DEFAULT_CONSOLE_OPTIONS, DEFAULT_RISK_STATUS, DEFAULT_SHARE_RATES, FOREX_AGENT, FOREX_CAPITAL_SPLIT, FOREX_CURRENCY_PAIRS, FOREX_CYCLE_OPTIONS, FOREX_LOG_COLORS, FOREX_POOL_DEFAULTS, ForexPoolDataGenerator, ORDER_STATUS_CONFIG, OneChainSelector, OneCycleSelector, OneEngineClient, OneForexCapitalSplit, OneForexConsoleView, OneForexPairSelector, OneForexPoolCard, OneForexTradeHistory, OnePairSelector, OneSDKError, OneTierSelector, PAIR_ICONS, PENALTY_TIERS, PriceService, RISK_LEVELS, RISK_LEVEL_COLORS, STRATEGY_CATEGORIES, TOKEN_NAMES, TRADING_STATUS_COLORS, botSimulationEngine, calculateEarlyWithdrawalPenalty, calculateForexNetProfit, calculateRiskLevel, capitalize, checksumAddress, clearForexAccessToken, computePoolAllocations, createCachedEngineClient, createDeepLinkHandler, createOneEngineClient, estimateForexProfit, forexSimulationEngine, formatCryptoAmount, formatDate, formatDateTime, formatNumber, formatPercent, formatPnl, formatRelativeTime, formatTokenAmount, formatUSD, generateShareContent, getConfig, getExplorerUrl, initOneSDK, isOneSDKError, isValidAddress, isValidEmail, isValidPhone, omit, parseQRCode, pick, priceService, retry, setForexAccessToken, setForexEngineUrl, shortenAddress, sleep, slugify, truncate, useForexInvestments, useForexPoolData, useForexPools, useForexSimulation, useForexTrading };
|
|
5216
|
+
export { AGENT_STATUS_COLORS, AI_LOG_COLORS, CHAIN_CONFIG, CHAIN_CONFIGS, COINGECKO_IDS, DEFAULT_CONSOLE_METRICS, DEFAULT_CONSOLE_OPTIONS, DEFAULT_RISK_STATUS, DEFAULT_SHARE_RATES, FOREX_AGENT, FOREX_CAPITAL_SPLIT, FOREX_CURRENCY_PAIRS, FOREX_CYCLE_OPTIONS, FOREX_LOG_COLORS, FOREX_POOL_DEFAULTS, ForexPoolDataGenerator, INVESTMENT_CYCLES, INVESTMENT_TIERS, ORDER_STATUS_CONFIG, OneChainSelector, OneCycleSelector, OneEngineClient, OneForexCapitalSplit, OneForexConsoleView, OneForexPairSelector, OneForexPoolCard, OneForexTradeHistory, OnePairSelector, OneSDKError, OneTierSelector, PAIR_ICONS, PENALTY_TIERS, PriceService, RISK_LEVELS, RISK_LEVEL_COLORS, STRATEGY_CATEGORIES, STRATEGY_PERSONALITIES, TOKEN_NAMES, TRADING_STATUS_COLORS, botSimulationEngine, calculateEarlyWithdrawalPenalty, calculateForexNetProfit, calculateRiskLevel, capitalize, checksumAddress, clearForexAccessToken, computePoolAllocations, createCachedEngineClient, createDeepLinkHandler, createOneEngineClient, estimateForexProfit, forexSimulationEngine, formatCryptoAmount, formatDate, formatDateTime, formatNumber, formatPercent, formatPnl, formatRelativeTime, formatTokenAmount, formatUSD, generateShareContent, getConfig, getExplorerUrl, initOneSDK, isOneSDKError, isValidAddress, isValidEmail, isValidPhone, omit, parseQRCode, pick, priceService, retry, setForexAccessToken, setForexEngineUrl, shortenAddress, sleep, slugify, truncate, useForexInvestments, useForexPoolData, useForexPools, useForexSimulation, useForexTrading };
|
|
5089
5217
|
//# sourceMappingURL=react-native.mjs.map
|
|
5090
5218
|
//# sourceMappingURL=react-native.mjs.map
|