@coopenomics/desktop 2025.11.19-alpha-1 → 2025.11.19-alpha-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coopenomics/desktop",
3
- "version": "2025.11.19-alpha-1",
3
+ "version": "2025.11.19-alpha-2",
4
4
  "description": "A Desktop Project",
5
5
  "productName": "Desktop App",
6
6
  "author": "Alex Ant <dacom.dark.sun@gmail.com>",
@@ -25,9 +25,9 @@
25
25
  "start": "node -r ./alias-resolver.js dist/ssr/index.js"
26
26
  },
27
27
  "dependencies": {
28
- "@coopenomics/controller": "2025.11.19-alpha-1",
29
- "@coopenomics/notifications": "2025.11.19-alpha-1",
30
- "@coopenomics/sdk": "2025.11.19-alpha-1",
28
+ "@coopenomics/controller": "2025.11.19-alpha-2",
29
+ "@coopenomics/notifications": "2025.11.19-alpha-2",
30
+ "@coopenomics/sdk": "2025.11.19-alpha-2",
31
31
  "@dicebear/collection": "^9.0.1",
32
32
  "@dicebear/core": "^9.0.1",
33
33
  "@editorjs/code": "^2.9.3",
@@ -59,7 +59,7 @@
59
59
  "@wharfkit/wallet-plugin-privatekey": "^1.1.0",
60
60
  "axios": "^1.2.1",
61
61
  "compression": "^1.7.4",
62
- "cooptypes": "2025.11.19-alpha-1",
62
+ "cooptypes": "2025.11.19-alpha-2",
63
63
  "dompurify": "^3.1.7",
64
64
  "dotenv": "^16.4.5",
65
65
  "email-regex": "^5.0.0",
@@ -123,5 +123,5 @@
123
123
  "npm": ">= 6.13.4",
124
124
  "yarn": ">= 1.21.1"
125
125
  },
126
- "gitHead": "25834236004eb6e3b3db82d61ac3d9a6d5f0741d"
126
+ "gitHead": "7a75365d2f7de18945779d16ceeecfe5a9aa6c8c"
127
127
  }
@@ -25,6 +25,9 @@ export type SubscriptionSpecificData = HostingSubscriptionData | null;
25
25
  */
26
26
  export type ProviderSubscription = Queries.System.GetProviderSubscriptions.IOutput[typeof Queries.System.GetProviderSubscriptions.name][number];
27
27
 
28
+ // Курс конвертации AXON в валюту системы (RUB)
29
+ export const AXON_GOVERN_RATE = 10; // 1 AXON = 10 RUB
30
+
28
31
  /**
29
32
  * Composable для работы с подписками провайдера
30
33
  */
@@ -37,9 +40,6 @@ export function useProviderSubscriptions() {
37
40
  // IP адрес сервера для делегирования домена
38
41
  const SERVER_IP = '51.250.114.13';
39
42
 
40
- // Курс конвертации AXON в валюту системы (RUB)
41
- const axonGovernRate = 10; // 1 AXON = 10 RUB
42
-
43
43
  // Получить подписку на хостинг (id=1)
44
44
  const hostingSubscription = computed(() =>
45
45
  subscriptions.value.find(sub => sub.subscription_type_id === 1)
@@ -113,7 +113,6 @@ export function useProviderSubscriptions() {
113
113
  loadSubscriptions,
114
114
  startAutoRefresh,
115
115
  SERVER_IP,
116
- axonGovernRate,
117
116
  };
118
117
  }
119
118
 
@@ -58,12 +58,11 @@ import { ColorCard } from 'src/shared/ui';
58
58
  import { Form } from 'src/shared/ui/Form';
59
59
  import { ModalBase } from 'src/shared/ui/ModalBase';
60
60
  import { formatAsset2Digits } from 'src/shared/lib/utils/formatAsset2Digits';
61
- import { useProviderSubscriptions, useProviderAxonConvert } from 'src/features/Provider/model';
61
+ import { useProviderAxonConvert, AXON_GOVERN_RATE } from 'src/features/Provider/model';
62
62
  import { useSystemStore } from 'src/entities/System/model';
63
63
 
64
64
  const session = useSessionStore();
65
65
  const system = useSystemStore();
66
- const { axonGovernRate } = useProviderSubscriptions();
67
66
  const { convertToAxon } = useProviderAxonConvert();
68
67
 
69
68
  // Диалог пополнения
@@ -84,8 +83,8 @@ const depositHint = computed(() => {
84
83
  }
85
84
 
86
85
  const rubAmount = parseFloat(depositAmount.value);
87
- const axonAmount = rubAmount / axonGovernRate;
88
- return `Будет зачислено: ${formatAsset2Digits(`${axonAmount} AXON`)} (курс: 1 AXON = ${axonGovernRate} RUB)`;
86
+ const axonAmount = rubAmount / AXON_GOVERN_RATE;
87
+ return `Будет зачислено: ${formatAsset2Digits(`${axonAmount} AXON`)} (курс: 1 AXON = ${AXON_GOVERN_RATE} RUB)`;
89
88
  });
90
89
 
91
90
  // Закрыть диалог