@microcosmmoney/portal-react 3.12.8 → 3.13.0
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/index.d.ts +22 -0
- package/dist/index.js +48 -1
- package/dist/main-portal/components/auctions/AuctionsPage.d.ts +1 -0
- package/dist/main-portal/components/auctions/AuctionsPage.js +218 -0
- package/dist/main-portal/components/data/asset-stats.d.ts +1 -0
- package/dist/main-portal/components/data/asset-stats.js +33 -0
- package/dist/main-portal/components/data/charts/MCCSupplyChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/MCCSupplyChart.js +27 -0
- package/dist/main-portal/components/data/charts/MiningTrendChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/MiningTrendChart.js +39 -0
- package/dist/main-portal/components/data/charts/PriceChart.d.ts +5 -0
- package/dist/main-portal/components/data/charts/PriceChart.js +99 -0
- package/dist/main-portal/components/data/charts/TeamWalletChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/TeamWalletChart.js +33 -0
- package/dist/main-portal/components/data/charts/TerritoryProgressChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/TerritoryProgressChart.js +35 -0
- package/dist/main-portal/components/data/charts/UserLevelPieChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/UserLevelPieChart.js +34 -0
- package/dist/main-portal/components/data/charts/index.d.ts +5 -0
- package/dist/main-portal/components/data/charts/index.js +14 -0
- package/dist/main-portal/components/data/data-hero.d.ts +1 -0
- package/dist/main-portal/components/data/data-hero.js +81 -0
- package/dist/main-portal/components/data/mining-history-stats.d.ts +1 -0
- package/dist/main-portal/components/data/mining-history-stats.js +44 -0
- package/dist/main-portal/components/data/team-wallet-stats.d.ts +1 -0
- package/dist/main-portal/components/data/team-wallet-stats.js +34 -0
- package/dist/main-portal/components/data/territory-stats.d.ts +1 -0
- package/dist/main-portal/components/data/territory-stats.js +48 -0
- package/dist/main-portal/components/data/user-level-stats.d.ts +1 -0
- package/dist/main-portal/components/data/user-level-stats.js +36 -0
- package/dist/main-portal/components/fragment/FragmentPage.d.ts +1 -0
- package/dist/main-portal/components/fragment/FragmentPage.js +13 -0
- package/dist/main-portal/components/income/ManagerIncomePage.d.ts +1 -0
- package/dist/main-portal/components/income/ManagerIncomePage.js +147 -0
- package/dist/main-portal/components/layout/AppSidebar.d.ts +3 -0
- package/dist/main-portal/components/layout/AppSidebar.js +88 -0
- package/dist/main-portal/components/layout/DashboardHeader.d.ts +1 -0
- package/dist/main-portal/components/layout/DashboardHeader.js +121 -0
- package/dist/main-portal/components/layout/LocaleSwitcher.d.ts +1 -0
- package/dist/main-portal/components/layout/LocaleSwitcher.js +30 -0
- package/dist/main-portal/components/layout/MainFooter.d.ts +2 -0
- package/dist/main-portal/components/layout/MainFooter.js +50 -0
- package/dist/main-portal/components/layout/ShadcnNavbar.d.ts +1 -0
- package/dist/main-portal/components/layout/ShadcnNavbar.js +155 -0
- package/dist/main-portal/components/layout/TerminalSidebar.d.ts +1 -0
- package/dist/main-portal/components/layout/TerminalSidebar.js +110 -0
- package/dist/main-portal/components/lending/LendingPage.d.ts +1 -0
- package/dist/main-portal/components/lending/LendingPage.js +20 -0
- package/dist/main-portal/components/mcd/MCDPage.d.ts +1 -0
- package/dist/main-portal/components/mcd/MCDPage.js +125 -0
- package/dist/main-portal/components/messages/MessagesPage.d.ts +1 -0
- package/dist/main-portal/components/messages/MessagesPage.js +13 -0
- package/dist/main-portal/components/mining/MiningDistributionHistory.d.ts +11 -0
- package/dist/main-portal/components/mining/MiningDistributionHistory.js +84 -0
- package/dist/main-portal/components/mining/MiningModal.d.ts +12 -0
- package/dist/main-portal/components/mining/MiningModal.js +302 -0
- package/dist/main-portal/components/mining/MiningPage.d.ts +1 -0
- package/dist/main-portal/components/mining/MiningPage.js +237 -0
- package/dist/main-portal/components/mining/index.d.ts +1 -0
- package/dist/main-portal/components/mining/index.js +6 -0
- package/dist/main-portal/components/notifications/NotificationsPage.d.ts +1 -0
- package/dist/main-portal/components/notifications/NotificationsPage.js +13 -0
- package/dist/main-portal/components/organization/OrganizationPage.d.ts +1 -0
- package/dist/main-portal/components/organization/OrganizationPage.js +235 -0
- package/dist/main-portal/components/organization/connection-line.d.ts +12 -0
- package/dist/main-portal/components/organization/connection-line.js +38 -0
- package/dist/main-portal/components/organization/diagram-node.d.ts +17 -0
- package/dist/main-portal/components/organization/diagram-node.js +105 -0
- package/dist/main-portal/components/organization/system-panel.d.ts +11 -0
- package/dist/main-portal/components/organization/system-panel.js +72 -0
- package/dist/main-portal/components/profile/EmailChangeCard.d.ts +1 -0
- package/dist/main-portal/components/profile/EmailChangeCard.js +58 -0
- package/dist/main-portal/components/profile/ProfilePage.d.ts +1 -0
- package/dist/main-portal/components/profile/ProfilePage.js +263 -0
- package/dist/main-portal/components/profile/TwoFactorSettings.d.ts +1 -0
- package/dist/main-portal/components/profile/TwoFactorSettings.js +99 -0
- package/dist/main-portal/components/providers/ClientProviders.d.ts +6 -0
- package/dist/main-portal/components/providers/ClientProviders.js +17 -0
- package/dist/main-portal/components/providers/SolanaWalletProvider.d.ts +7 -0
- package/dist/main-portal/components/providers/SolanaWalletProvider.js +17 -0
- package/dist/main-portal/components/providers/theme-provider.d.ts +5 -0
- package/dist/main-portal/components/providers/theme-provider.js +10 -0
- package/dist/main-portal/components/queue/QueueStatusPage.d.ts +1 -0
- package/dist/main-portal/components/queue/QueueStatusPage.js +245 -0
- package/dist/main-portal/components/reincarnation/ReincarnationPage.d.ts +1 -0
- package/dist/main-portal/components/reincarnation/ReincarnationPage.js +87 -0
- package/dist/main-portal/components/resources/mcc-stats-section.d.ts +1 -0
- package/dist/main-portal/components/resources/mcc-stats-section.js +199 -0
- package/dist/main-portal/components/resources/mcd-stats-section.d.ts +1 -0
- package/dist/main-portal/components/resources/mcd-stats-section.js +76 -0
- package/dist/main-portal/components/resources/minting-entry-section.d.ts +1 -0
- package/dist/main-portal/components/resources/minting-entry-section.js +70 -0
- package/dist/main-portal/components/resources/public-mining-modal.d.ts +7 -0
- package/dist/main-portal/components/resources/public-mining-modal.js +239 -0
- package/dist/main-portal/components/resources/recycle-pool-section.d.ts +1 -0
- package/dist/main-portal/components/resources/recycle-pool-section.js +82 -0
- package/dist/main-portal/components/resources/registration-prompt.d.ts +8 -0
- package/dist/main-portal/components/resources/registration-prompt.js +13 -0
- package/dist/main-portal/components/rewards/RewardsPage.d.ts +1 -0
- package/dist/main-portal/components/rewards/RewardsPage.js +149 -0
- package/dist/main-portal/components/security/domain-verification-bar.d.ts +1 -0
- package/dist/main-portal/components/security/domain-verification-bar.js +32 -0
- package/dist/main-portal/components/stations/StationDetailPage.d.ts +5 -0
- package/dist/main-portal/components/stations/StationDetailPage.js +232 -0
- package/dist/main-portal/components/stations/StationIncomeChart.d.ts +11 -0
- package/dist/main-portal/components/stations/StationIncomeChart.js +57 -0
- package/dist/main-portal/components/stations/StationKPIHistory.d.ts +1 -0
- package/dist/main-portal/components/stations/StationKPIHistory.js +7 -0
- package/dist/main-portal/components/stations/StationListPage.d.ts +1 -0
- package/dist/main-portal/components/stations/StationListPage.js +341 -0
- package/dist/main-portal/components/stations/StationMemberRanking.d.ts +13 -0
- package/dist/main-portal/components/stations/StationMemberRanking.js +64 -0
- package/dist/main-portal/components/stations/StationSummaryCards.d.ts +13 -0
- package/dist/main-portal/components/stations/StationSummaryCards.js +30 -0
- package/dist/main-portal/components/stations/StationsPage.d.ts +1 -0
- package/dist/main-portal/components/stations/StationsPage.js +239 -0
- package/dist/main-portal/components/territory/TerritoryNFTBrowser.d.ts +1 -0
- package/dist/main-portal/components/territory/TerritoryNFTBrowser.js +147 -0
- package/dist/main-portal/components/ui/accordion.d.ts +7 -0
- package/dist/main-portal/components/ui/accordion.js +57 -0
- package/dist/main-portal/components/ui/alert-dialog.d.ts +14 -0
- package/dist/main-portal/components/ui/alert-dialog.js +85 -0
- package/dist/main-portal/components/ui/alert.d.ts +9 -0
- package/dist/main-portal/components/ui/alert.js +28 -0
- package/dist/main-portal/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/main-portal/components/ui/aspect-ratio.js +43 -0
- package/dist/main-portal/components/ui/avatar.d.ts +6 -0
- package/dist/main-portal/components/ui/avatar.js +52 -0
- package/dist/main-portal/components/ui/badge.d.ts +9 -0
- package/dist/main-portal/components/ui/badge.js +26 -0
- package/dist/main-portal/components/ui/breadcrumb.d.ts +11 -0
- package/dist/main-portal/components/ui/breadcrumb.js +35 -0
- package/dist/main-portal/components/ui/button-group.d.ts +11 -0
- package/dist/main-portal/components/ui/button-group.js +34 -0
- package/dist/main-portal/components/ui/button.d.ts +10 -0
- package/dist/main-portal/components/ui/button.js +35 -0
- package/dist/main-portal/components/ui/calendar.d.ts +8 -0
- package/dist/main-portal/components/ui/calendar.js +111 -0
- package/dist/main-portal/components/ui/card.d.ts +17 -0
- package/dist/main-portal/components/ui/card.js +41 -0
- package/dist/main-portal/components/ui/carousel.d.ts +19 -0
- package/dist/main-portal/components/ui/carousel.js +134 -0
- package/dist/main-portal/components/ui/chart.d.ts +40 -0
- package/dist/main-portal/components/ui/chart.js +168 -0
- package/dist/main-portal/components/ui/checkbox.d.ts +4 -0
- package/dist/main-portal/components/ui/checkbox.js +45 -0
- package/dist/main-portal/components/ui/collapsible.d.ts +5 -0
- package/dist/main-portal/components/ui/collapsible.js +51 -0
- package/dist/main-portal/components/ui/command.d.ts +18 -0
- package/dist/main-portal/components/ui/command.js +45 -0
- package/dist/main-portal/components/ui/context-menu.d.ts +25 -0
- package/dist/main-portal/components/ui/context-menu.js +101 -0
- package/dist/main-portal/components/ui/dialog.d.ts +15 -0
- package/dist/main-portal/components/ui/dialog.js +81 -0
- package/dist/main-portal/components/ui/drawer.d.ts +13 -0
- package/dist/main-portal/components/ui/drawer.js +47 -0
- package/dist/main-portal/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/main-portal/components/ui/dropdown-menu.js +101 -0
- package/dist/main-portal/components/ui/empty.d.ts +11 -0
- package/dist/main-portal/components/ui/empty.js +41 -0
- package/dist/main-portal/components/ui/field.d.ts +24 -0
- package/dist/main-portal/components/ui/field.js +85 -0
- package/dist/main-portal/components/ui/form.d.ts +24 -0
- package/dist/main-portal/components/ui/form.js +103 -0
- package/dist/main-portal/components/ui/hover-avatar.d.ts +10 -0
- package/dist/main-portal/components/ui/hover-avatar.js +70 -0
- package/dist/main-portal/components/ui/hover-card.d.ts +6 -0
- package/dist/main-portal/components/ui/hover-card.js +52 -0
- package/dist/main-portal/components/ui/input-group.d.ts +15 -0
- package/dist/main-portal/components/ui/input-group.js +65 -0
- package/dist/main-portal/components/ui/input-otp.d.ts +11 -0
- package/dist/main-portal/components/ui/input-otp.js +60 -0
- package/dist/main-portal/components/ui/input.d.ts +3 -0
- package/dist/main-portal/components/ui/input.js +8 -0
- package/dist/main-portal/components/ui/item.d.ts +23 -0
- package/dist/main-portal/components/ui/item.js +77 -0
- package/dist/main-portal/components/ui/kbd.d.ts +3 -0
- package/dist/main-portal/components/ui/kbd.js +13 -0
- package/dist/main-portal/components/ui/label.d.ts +4 -0
- package/dist/main-portal/components/ui/label.js +44 -0
- package/dist/main-portal/components/ui/menubar.d.ts +26 -0
- package/dist/main-portal/components/ui/menubar.js +105 -0
- package/dist/main-portal/components/ui/navigation-menu.d.ts +14 -0
- package/dist/main-portal/components/ui/navigation-menu.js +75 -0
- package/dist/main-portal/components/ui/pagination.d.ts +13 -0
- package/dist/main-portal/components/ui/pagination.js +37 -0
- package/dist/main-portal/components/ui/popover.d.ts +7 -0
- package/dist/main-portal/components/ui/popover.js +56 -0
- package/dist/main-portal/components/ui/progress.d.ts +4 -0
- package/dist/main-portal/components/ui/progress.js +44 -0
- package/dist/main-portal/components/ui/radio-group.d.ts +5 -0
- package/dist/main-portal/components/ui/radio-group.js +49 -0
- package/dist/main-portal/components/ui/resizable.d.ts +8 -0
- package/dist/main-portal/components/ui/resizable.js +53 -0
- package/dist/main-portal/components/ui/scroll-area.d.ts +5 -0
- package/dist/main-portal/components/ui/scroll-area.js +50 -0
- package/dist/main-portal/components/ui/select.d.ts +15 -0
- package/dist/main-portal/components/ui/select.js +83 -0
- package/dist/main-portal/components/ui/separator.d.ts +4 -0
- package/dist/main-portal/components/ui/separator.js +44 -0
- package/dist/main-portal/components/ui/sheet.d.ts +13 -0
- package/dist/main-portal/components/ui/sheet.js +83 -0
- package/dist/main-portal/components/ui/sidebar.d.ts +69 -0
- package/dist/main-portal/components/ui/sidebar.js +258 -0
- package/dist/main-portal/components/ui/skeleton.d.ts +2 -0
- package/dist/main-portal/components/ui/skeleton.js +9 -0
- package/dist/main-portal/components/ui/slider.d.ts +4 -0
- package/dist/main-portal/components/ui/slider.js +50 -0
- package/dist/main-portal/components/ui/sonner.d.ts +3 -0
- package/dist/main-portal/components/ui/sonner.js +17 -0
- package/dist/main-portal/components/ui/spinner.d.ts +2 -0
- package/dist/main-portal/components/ui/spinner.js +10 -0
- package/dist/main-portal/components/ui/switch.d.ts +4 -0
- package/dist/main-portal/components/ui/switch.js +44 -0
- package/dist/main-portal/components/ui/table.d.ts +10 -0
- package/dist/main-portal/components/ui/table.js +38 -0
- package/dist/main-portal/components/ui/tabs.d.ts +7 -0
- package/dist/main-portal/components/ui/tabs.js +53 -0
- package/dist/main-portal/components/ui/terminal.d.ts +49 -0
- package/dist/main-portal/components/ui/terminal.js +56 -0
- package/dist/main-portal/components/ui/textarea.d.ts +3 -0
- package/dist/main-portal/components/ui/textarea.js +8 -0
- package/dist/main-portal/components/ui/time-remaining.d.ts +54 -0
- package/dist/main-portal/components/ui/time-remaining.js +223 -0
- package/dist/main-portal/components/ui/toast.d.ts +15 -0
- package/dist/main-portal/components/ui/toast.js +77 -0
- package/dist/main-portal/components/ui/toaster.d.ts +1 -0
- package/dist/main-portal/components/ui/toaster.js +14 -0
- package/dist/main-portal/components/ui/toggle-group.d.ts +7 -0
- package/dist/main-portal/components/ui/toggle-group.js +58 -0
- package/dist/main-portal/components/ui/toggle.d.ts +9 -0
- package/dist/main-portal/components/ui/toggle.js +64 -0
- package/dist/main-portal/components/ui/tooltip.d.ts +7 -0
- package/dist/main-portal/components/ui/tooltip.js +56 -0
- package/dist/main-portal/components/ui/use-mobile.d.ts +1 -0
- package/dist/main-portal/components/ui/use-mobile.js +53 -0
- package/dist/main-portal/components/voting/VotingPage.d.ts +1 -0
- package/dist/main-portal/components/voting/VotingPage.js +14 -0
- package/dist/main-portal/components/wallet/MCCHistory.d.ts +9 -0
- package/dist/main-portal/components/wallet/MCCHistory.js +100 -0
- package/dist/main-portal/components/wallet/WalletManagement.d.ts +5 -0
- package/dist/main-portal/components/wallet/WalletManagement.js +144 -0
- package/dist/main-portal/components/wallet/WalletPage.d.ts +1 -0
- package/dist/main-portal/components/wallet/WalletPage.js +130 -0
- package/dist/main-portal/config/menu-config.d.ts +22 -0
- package/dist/main-portal/config/menu-config.js +167 -0
- package/dist/main-portal/contexts/MCCPriceContext.d.ts +38 -0
- package/dist/main-portal/contexts/MCCPriceContext.js +70 -0
- package/dist/main-portal/contexts/WalletContext.d.ts +48 -0
- package/dist/main-portal/contexts/WalletContext.js +94 -0
- package/dist/main-portal/hooks/index.d.ts +4 -0
- package/dist/main-portal/hooks/index.js +11 -0
- package/dist/main-portal/hooks/use-breakpoint.d.ts +45 -0
- package/dist/main-portal/hooks/use-breakpoint.js +91 -0
- package/dist/main-portal/hooks/use-mobile.d.ts +1 -0
- package/dist/main-portal/hooks/use-mobile.js +55 -0
- package/dist/main-portal/hooks/use-toast.d.ts +44 -0
- package/dist/main-portal/hooks/use-toast.js +164 -0
- package/dist/main-portal/hooks/useAuth.d.ts +30 -0
- package/dist/main-portal/hooks/useAuth.js +135 -0
- package/dist/main-portal/hooks/useMCC.d.ts +26 -0
- package/dist/main-portal/hooks/useMCC.js +148 -0
- package/dist/main-portal/hooks/useMCD.d.ts +17 -0
- package/dist/main-portal/hooks/useMCD.js +114 -0
- package/dist/main-portal/hooks/useMarketData.d.ts +9 -0
- package/dist/main-portal/hooks/useMarketData.js +32 -0
- package/dist/main-portal/hooks/useMultiWalletBalance.d.ts +31 -0
- package/dist/main-portal/hooks/useMultiWalletBalance.js +65 -0
- package/dist/main-portal/hooks/usePriceHistory.d.ts +9 -0
- package/dist/main-portal/hooks/usePriceHistory.js +36 -0
- package/dist/main-portal/hooks/useSolanaBalance.d.ts +21 -0
- package/dist/main-portal/hooks/useSolanaBalance.js +58 -0
- package/dist/main-portal/hooks/useSpeechRecognition.d.ts +6 -0
- package/dist/main-portal/hooks/useSpeechRecognition.js +82 -0
- package/dist/main-portal/hooks/useStats.d.ts +131 -0
- package/dist/main-portal/hooks/useStats.js +161 -0
- package/dist/main-portal/hooks/useStrategies.d.ts +134 -0
- package/dist/main-portal/hooks/useStrategies.js +28 -0
- package/dist/main-portal/hooks/useUserRank.d.ts +16 -0
- package/dist/main-portal/hooks/useUserRank.js +61 -0
- package/dist/main-portal/hooks/useWalletTokenBalances.d.ts +29 -0
- package/dist/main-portal/hooks/useWalletTokenBalances.js +106 -0
- package/dist/main-portal/i18n/navigation.d.ts +341 -0
- package/dist/main-portal/i18n/navigation.js +7 -0
- package/dist/main-portal/i18n/request.d.ts +2 -0
- package/dist/main-portal/i18n/request.js +47 -0
- package/dist/main-portal/i18n/routing.d.ts +18 -0
- package/dist/main-portal/i18n/routing.js +10 -0
- package/dist/main-portal/lib/ai-chat-config.d.ts +8 -0
- package/dist/main-portal/lib/ai-chat-config.js +144 -0
- package/dist/main-portal/lib/analytics/hooks.d.ts +139 -0
- package/dist/main-portal/lib/analytics/hooks.js +277 -0
- package/dist/main-portal/lib/analytics/index.d.ts +2 -0
- package/dist/main-portal/lib/analytics/index.js +19 -0
- package/dist/main-portal/lib/analytics/types.d.ts +611 -0
- package/dist/main-portal/lib/analytics/types.js +2 -0
- package/dist/main-portal/lib/api/account.d.ts +39 -0
- package/dist/main-portal/lib/api/account.js +86 -0
- package/dist/main-portal/lib/api/admin.d.ts +78 -0
- package/dist/main-portal/lib/api/admin.js +195 -0
- package/dist/main-portal/lib/api/analytics.d.ts +217 -0
- package/dist/main-portal/lib/api/analytics.js +55 -0
- package/dist/main-portal/lib/api/blockchain.d.ts +178 -0
- package/dist/main-portal/lib/api/blockchain.js +302 -0
- package/dist/main-portal/lib/api/core.d.ts +3 -0
- package/dist/main-portal/lib/api/core.js +47 -0
- package/dist/main-portal/lib/api/dexscreener.d.ts +126 -0
- package/dist/main-portal/lib/api/dexscreener.js +139 -0
- package/dist/main-portal/lib/api/geckoterminal.d.ts +10 -0
- package/dist/main-portal/lib/api/geckoterminal.js +43 -0
- package/dist/main-portal/lib/api/index.d.ts +16 -0
- package/dist/main-portal/lib/api/index.js +230 -0
- package/dist/main-portal/lib/api/mcc-holders.d.ts +130 -0
- package/dist/main-portal/lib/api/mcc-holders.js +47 -0
- package/dist/main-portal/lib/api/org-service-proxy.d.ts +7 -0
- package/dist/main-portal/lib/api/org-service-proxy.js +55 -0
- package/dist/main-portal/lib/api/services/ai.d.ts +139 -0
- package/dist/main-portal/lib/api/services/ai.js +214 -0
- package/dist/main-portal/lib/api/services/finance.d.ts +37 -0
- package/dist/main-portal/lib/api/services/finance.js +144 -0
- package/dist/main-portal/lib/api/services/index.d.ts +5 -0
- package/dist/main-portal/lib/api/services/index.js +21 -0
- package/dist/main-portal/lib/api/services/mining.d.ts +68 -0
- package/dist/main-portal/lib/api/services/mining.js +76 -0
- package/dist/main-portal/lib/api/services/organization.d.ts +161 -0
- package/dist/main-portal/lib/api/services/organization.js +139 -0
- package/dist/main-portal/lib/api/services/user.d.ts +90 -0
- package/dist/main-portal/lib/api/services/user.js +78 -0
- package/dist/main-portal/lib/api/services.d.ts +1 -0
- package/dist/main-portal/lib/api/services.js +17 -0
- package/dist/main-portal/lib/api/strategies.d.ts +101 -0
- package/dist/main-portal/lib/api/strategies.js +87 -0
- package/dist/main-portal/lib/api-service.d.ts +1 -0
- package/dist/main-portal/lib/api-service.js +18 -0
- package/dist/main-portal/lib/auth-service.d.ts +65 -0
- package/dist/main-portal/lib/auth-service.js +382 -0
- package/dist/main-portal/lib/config/mainstream-tokens.d.ts +13 -0
- package/dist/main-portal/lib/config/mainstream-tokens.js +88 -0
- package/dist/main-portal/lib/docs-data.d.ts +36 -0
- package/dist/main-portal/lib/docs-data.js +108 -0
- package/dist/main-portal/lib/exchanges/config.d.ts +34 -0
- package/dist/main-portal/lib/exchanges/config.js +185 -0
- package/dist/main-portal/lib/exchanges/hooks/index.d.ts +5 -0
- package/dist/main-portal/lib/exchanges/hooks/index.js +10 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceData.d.ts +15 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceData.js +216 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceDialogs.d.ts +32 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceDialogs.js +395 -0
- package/dist/main-portal/lib/exchanges/hooks/useUserExchanges.d.ts +15 -0
- package/dist/main-portal/lib/exchanges/hooks/useUserExchanges.js +51 -0
- package/dist/main-portal/lib/exchanges/index.d.ts +4 -0
- package/dist/main-portal/lib/exchanges/index.js +21 -0
- package/dist/main-portal/lib/exchanges/types.d.ts +102 -0
- package/dist/main-portal/lib/exchanges/types.js +2 -0
- package/dist/main-portal/lib/exchanges/utils.d.ts +1 -0
- package/dist/main-portal/lib/exchanges/utils.js +10 -0
- package/dist/main-portal/lib/gcp-secrets.d.ts +7 -0
- package/dist/main-portal/lib/gcp-secrets.js +45 -0
- package/dist/main-portal/lib/mockWallet.d.ts +130 -0
- package/dist/main-portal/lib/mockWallet.js +284 -0
- package/dist/main-portal/lib/oauth-config.d.ts +12 -0
- package/dist/main-portal/lib/oauth-config.js +48 -0
- package/dist/main-portal/lib/order-id-generator.d.ts +19 -0
- package/dist/main-portal/lib/order-id-generator.js +97 -0
- package/dist/main-portal/lib/solana/reincarnation-client.d.ts +28 -0
- package/dist/main-portal/lib/solana/reincarnation-client.js +39 -0
- package/dist/main-portal/lib/solana/solana-pay.d.ts +31 -0
- package/dist/main-portal/lib/solana/solana-pay.js +85 -0
- package/dist/main-portal/lib/strategy/defaults.d.ts +2 -0
- package/dist/main-portal/lib/strategy/defaults.js +58 -0
- package/dist/main-portal/lib/strategy/index.d.ts +3 -0
- package/dist/main-portal/lib/strategy/index.js +20 -0
- package/dist/main-portal/lib/strategy/tooltips.d.ts +1 -0
- package/dist/main-portal/lib/strategy/tooltips.js +50 -0
- package/dist/main-portal/lib/strategy/types.d.ts +74 -0
- package/dist/main-portal/lib/strategy/types.js +2 -0
- package/dist/main-portal/lib/types/ai.types.d.ts +111 -0
- package/dist/main-portal/lib/types/ai.types.js +2 -0
- package/dist/main-portal/lib/types/api.d.ts +5 -0
- package/dist/main-portal/lib/types/api.js +21 -0
- package/dist/main-portal/lib/types/common.types.d.ts +168 -0
- package/dist/main-portal/lib/types/common.types.js +24 -0
- package/dist/main-portal/lib/types/finance.types.d.ts +267 -0
- package/dist/main-portal/lib/types/finance.types.js +2 -0
- package/dist/main-portal/lib/types/protocol.types.d.ts +216 -0
- package/dist/main-portal/lib/types/protocol.types.js +2 -0
- package/dist/main-portal/lib/types/user.types.d.ts +243 -0
- package/dist/main-portal/lib/types/user.types.js +12 -0
- package/dist/main-portal/lib/utils/territoryId.d.ts +75 -0
- package/dist/main-portal/lib/utils/territoryId.js +241 -0
- package/dist/main-portal/lib/utils.d.ts +4 -0
- package/dist/main-portal/lib/utils.js +24 -0
- package/dist/main-portal/lib/wallet-auth/api.d.ts +13 -0
- package/dist/main-portal/lib/wallet-auth/api.js +132 -0
- package/dist/main-portal/lib/wallet-auth/types.d.ts +87 -0
- package/dist/main-portal/lib/wallet-auth/types.js +58 -0
- package/package.json +55 -5
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
export type DateRange = 'today' | '7d' | '30d' | '90d' | 'all';
|
|
2
|
+
export interface PnLSummary {
|
|
3
|
+
today: {
|
|
4
|
+
percent: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
};
|
|
7
|
+
week: {
|
|
8
|
+
percent: number;
|
|
9
|
+
amount: number;
|
|
10
|
+
};
|
|
11
|
+
month: {
|
|
12
|
+
percent: number;
|
|
13
|
+
amount: number;
|
|
14
|
+
};
|
|
15
|
+
total: number;
|
|
16
|
+
}
|
|
17
|
+
export interface PnLStats {
|
|
18
|
+
totalProfit: number;
|
|
19
|
+
totalLoss: number;
|
|
20
|
+
netPnL: number;
|
|
21
|
+
volume: number;
|
|
22
|
+
winRate: number;
|
|
23
|
+
profitDays: number;
|
|
24
|
+
lossDays: number;
|
|
25
|
+
breakEvenDays: number;
|
|
26
|
+
avgProfit: number;
|
|
27
|
+
avgLoss: number;
|
|
28
|
+
profitLossRatio: number | null;
|
|
29
|
+
}
|
|
30
|
+
export interface DailyPnL {
|
|
31
|
+
date: string;
|
|
32
|
+
pnl: number;
|
|
33
|
+
}
|
|
34
|
+
export interface PnLAnalysisResult {
|
|
35
|
+
summary: PnLSummary;
|
|
36
|
+
stats: PnLStats;
|
|
37
|
+
dailyPnL: DailyPnL[];
|
|
38
|
+
}
|
|
39
|
+
export interface OrderSourceStats {
|
|
40
|
+
label: string;
|
|
41
|
+
trade_count: number;
|
|
42
|
+
total_pnl: number;
|
|
43
|
+
total_commission: number;
|
|
44
|
+
net_pnl: number;
|
|
45
|
+
total_volume: number;
|
|
46
|
+
}
|
|
47
|
+
export interface OrderSourceSummary {
|
|
48
|
+
trade_count: number;
|
|
49
|
+
total_pnl: number;
|
|
50
|
+
total_commission: number;
|
|
51
|
+
net_pnl: number;
|
|
52
|
+
total_volume: number;
|
|
53
|
+
}
|
|
54
|
+
export interface OrderSourceAnalysisResult {
|
|
55
|
+
date_range: string;
|
|
56
|
+
start_date: string;
|
|
57
|
+
end_date: string;
|
|
58
|
+
symbol: string | null;
|
|
59
|
+
strategy: OrderSourceStats;
|
|
60
|
+
user_manual: OrderSourceStats;
|
|
61
|
+
unknown: OrderSourceStats;
|
|
62
|
+
summary: OrderSourceSummary;
|
|
63
|
+
}
|
|
64
|
+
export interface OrderPrefixStats {
|
|
65
|
+
prefix: string;
|
|
66
|
+
label: string;
|
|
67
|
+
order_source: string;
|
|
68
|
+
record_type: string;
|
|
69
|
+
record_type_label: string;
|
|
70
|
+
trade_count: number;
|
|
71
|
+
total_pnl: number;
|
|
72
|
+
total_commission: number;
|
|
73
|
+
net_pnl: number;
|
|
74
|
+
total_volume: number;
|
|
75
|
+
}
|
|
76
|
+
export interface OrderPrefixStatsResult {
|
|
77
|
+
date_range: string;
|
|
78
|
+
start_date: string;
|
|
79
|
+
end_date: string;
|
|
80
|
+
symbol: string | null;
|
|
81
|
+
source_filter: string | null;
|
|
82
|
+
prefixes: OrderPrefixStats[];
|
|
83
|
+
total_count: number;
|
|
84
|
+
}
|
|
85
|
+
export interface TradingStats {
|
|
86
|
+
date_range: string;
|
|
87
|
+
start_date: string;
|
|
88
|
+
end_date: string;
|
|
89
|
+
total_trades: number;
|
|
90
|
+
win_rate: number;
|
|
91
|
+
avg_profit: number;
|
|
92
|
+
avg_loss: number;
|
|
93
|
+
profit_factor: number;
|
|
94
|
+
expectancy: number;
|
|
95
|
+
max_consecutive_wins: number;
|
|
96
|
+
max_consecutive_losses: number;
|
|
97
|
+
avg_holding_time: string;
|
|
98
|
+
trading_frequency: {
|
|
99
|
+
daily: number;
|
|
100
|
+
weekly: number;
|
|
101
|
+
monthly: number;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export interface TradingVolume {
|
|
105
|
+
daily_volume: number;
|
|
106
|
+
monthly_volume: number;
|
|
107
|
+
yearly_volume: number;
|
|
108
|
+
total_volume: number;
|
|
109
|
+
}
|
|
110
|
+
export interface RiskMetrics {
|
|
111
|
+
date_range: string;
|
|
112
|
+
start_date: string;
|
|
113
|
+
end_date: string;
|
|
114
|
+
max_drawdown_pct: number;
|
|
115
|
+
max_drawdown_amount: number;
|
|
116
|
+
current_drawdown: number;
|
|
117
|
+
sharpe_ratio: number;
|
|
118
|
+
sortino_ratio: number;
|
|
119
|
+
calmar_ratio: number;
|
|
120
|
+
var_95: number;
|
|
121
|
+
var_99: number;
|
|
122
|
+
drawdown_history: Array<{
|
|
123
|
+
date: string;
|
|
124
|
+
drawdown: number;
|
|
125
|
+
}>;
|
|
126
|
+
}
|
|
127
|
+
export interface StrategyStats {
|
|
128
|
+
name: string;
|
|
129
|
+
trade_count: number;
|
|
130
|
+
win_rate: number;
|
|
131
|
+
total_pnl: number;
|
|
132
|
+
avg_pnl: number;
|
|
133
|
+
max_profit: number;
|
|
134
|
+
max_loss: number;
|
|
135
|
+
profit_factor: number;
|
|
136
|
+
}
|
|
137
|
+
export interface StrategyPerformanceResult {
|
|
138
|
+
date_range: string;
|
|
139
|
+
start_date: string;
|
|
140
|
+
end_date: string;
|
|
141
|
+
power: StrategyStats;
|
|
142
|
+
energy: StrategyStats;
|
|
143
|
+
comparison: {
|
|
144
|
+
better_win_rate: string;
|
|
145
|
+
better_pnl: string;
|
|
146
|
+
more_trades: string;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export interface SymbolStats {
|
|
150
|
+
symbol: string;
|
|
151
|
+
trade_count: number;
|
|
152
|
+
total_pnl: number;
|
|
153
|
+
commission: number;
|
|
154
|
+
net_pnl: number;
|
|
155
|
+
win_rate: number;
|
|
156
|
+
avg_holding_time: string;
|
|
157
|
+
total_volume: number;
|
|
158
|
+
}
|
|
159
|
+
export interface SymbolAnalysisResult {
|
|
160
|
+
date_range: string;
|
|
161
|
+
start_date: string;
|
|
162
|
+
end_date: string;
|
|
163
|
+
symbols: SymbolStats[];
|
|
164
|
+
total_symbols: number;
|
|
165
|
+
best_symbol: SymbolStats | null;
|
|
166
|
+
worst_symbol: SymbolStats | null;
|
|
167
|
+
}
|
|
168
|
+
export interface HourlyStat {
|
|
169
|
+
hour: string;
|
|
170
|
+
trade_count: number;
|
|
171
|
+
pnl: number;
|
|
172
|
+
win_rate: number;
|
|
173
|
+
}
|
|
174
|
+
export interface DailyStat {
|
|
175
|
+
day: string;
|
|
176
|
+
trade_count: number;
|
|
177
|
+
pnl: number;
|
|
178
|
+
win_rate: number;
|
|
179
|
+
}
|
|
180
|
+
export interface TimeAnalysisResult {
|
|
181
|
+
date_range: string;
|
|
182
|
+
start_date: string;
|
|
183
|
+
end_date: string;
|
|
184
|
+
hourly_stats: HourlyStat[];
|
|
185
|
+
daily_stats: DailyStat[];
|
|
186
|
+
best_hour: string;
|
|
187
|
+
best_day: string;
|
|
188
|
+
}
|
|
189
|
+
export interface AccountSummary {
|
|
190
|
+
total_balance: number;
|
|
191
|
+
available_balance: number;
|
|
192
|
+
used_margin: number;
|
|
193
|
+
utilization_rate: number;
|
|
194
|
+
}
|
|
195
|
+
export interface CapitalMetrics {
|
|
196
|
+
initial_capital: number;
|
|
197
|
+
current_capital: number;
|
|
198
|
+
total_pnl: number;
|
|
199
|
+
roi: number;
|
|
200
|
+
annualized_return: number;
|
|
201
|
+
turnover_rate: number;
|
|
202
|
+
avg_daily_volume: number;
|
|
203
|
+
}
|
|
204
|
+
export interface AllocationItem {
|
|
205
|
+
strategy?: string;
|
|
206
|
+
symbol?: string;
|
|
207
|
+
volume: number;
|
|
208
|
+
pnl: number;
|
|
209
|
+
percentage: number;
|
|
210
|
+
}
|
|
211
|
+
export interface CapitalHistory {
|
|
212
|
+
date: string;
|
|
213
|
+
capital: number;
|
|
214
|
+
pnl: number;
|
|
215
|
+
volume: number;
|
|
216
|
+
}
|
|
217
|
+
export interface DailyReturn {
|
|
218
|
+
date: string;
|
|
219
|
+
return: number;
|
|
220
|
+
capital: number;
|
|
221
|
+
}
|
|
222
|
+
export interface CapitalAnalysisResult {
|
|
223
|
+
date_range: string;
|
|
224
|
+
start_date: string;
|
|
225
|
+
end_date: string;
|
|
226
|
+
account_summary: AccountSummary;
|
|
227
|
+
capital_metrics: CapitalMetrics;
|
|
228
|
+
allocation: {
|
|
229
|
+
by_strategy: AllocationItem[];
|
|
230
|
+
by_symbol: AllocationItem[];
|
|
231
|
+
};
|
|
232
|
+
capital_history: CapitalHistory[];
|
|
233
|
+
daily_returns: DailyReturn[];
|
|
234
|
+
}
|
|
235
|
+
export interface FeeBySymbol {
|
|
236
|
+
symbol: string;
|
|
237
|
+
fee: number;
|
|
238
|
+
volume: number;
|
|
239
|
+
rate: number;
|
|
240
|
+
}
|
|
241
|
+
export interface FeeHistory {
|
|
242
|
+
date: string;
|
|
243
|
+
fee: number;
|
|
244
|
+
}
|
|
245
|
+
export interface FeeAnalysisResult {
|
|
246
|
+
date_range: string;
|
|
247
|
+
start_date: string;
|
|
248
|
+
end_date: string;
|
|
249
|
+
today_fee: number;
|
|
250
|
+
month_fee: number;
|
|
251
|
+
total_fee: number;
|
|
252
|
+
fee_to_pnl_ratio: number;
|
|
253
|
+
avg_fee_rate: number;
|
|
254
|
+
fee_by_symbol: FeeBySymbol[];
|
|
255
|
+
fee_history: FeeHistory[];
|
|
256
|
+
}
|
|
257
|
+
export interface ChartDataPoint {
|
|
258
|
+
date: string;
|
|
259
|
+
value: number;
|
|
260
|
+
[key: string]: string | number;
|
|
261
|
+
}
|
|
262
|
+
export interface PieChartDataPoint {
|
|
263
|
+
name: string;
|
|
264
|
+
value: number;
|
|
265
|
+
color?: string;
|
|
266
|
+
}
|
|
267
|
+
export interface MetricCardProps {
|
|
268
|
+
title: string;
|
|
269
|
+
value: string | number;
|
|
270
|
+
change?: number;
|
|
271
|
+
changeLabel?: string;
|
|
272
|
+
icon?: React.ReactNode;
|
|
273
|
+
trend?: 'up' | 'down' | 'neutral';
|
|
274
|
+
loading?: boolean;
|
|
275
|
+
hidden?: boolean;
|
|
276
|
+
className?: string;
|
|
277
|
+
valueClassName?: string;
|
|
278
|
+
description?: string;
|
|
279
|
+
}
|
|
280
|
+
export interface DateRangeSelectorProps {
|
|
281
|
+
selected: DateRange;
|
|
282
|
+
onSelect: (range: DateRange) => void;
|
|
283
|
+
disabled?: boolean;
|
|
284
|
+
}
|
|
285
|
+
export interface DataTableColumn<T> {
|
|
286
|
+
key: keyof T;
|
|
287
|
+
label: string;
|
|
288
|
+
align?: 'left' | 'center' | 'right';
|
|
289
|
+
render?: (value: T[keyof T], row: T) => React.ReactNode;
|
|
290
|
+
}
|
|
291
|
+
export interface FundingFeeBySymbol {
|
|
292
|
+
symbol: string;
|
|
293
|
+
received: number;
|
|
294
|
+
paid: number;
|
|
295
|
+
net: number;
|
|
296
|
+
count: number;
|
|
297
|
+
}
|
|
298
|
+
export interface FundingFeeHistory {
|
|
299
|
+
date: string;
|
|
300
|
+
received: number;
|
|
301
|
+
paid: number;
|
|
302
|
+
net: number;
|
|
303
|
+
}
|
|
304
|
+
export interface FundingFeeRecord {
|
|
305
|
+
timestamp: string;
|
|
306
|
+
symbol: string;
|
|
307
|
+
amount: number;
|
|
308
|
+
asset: string;
|
|
309
|
+
position_side: string;
|
|
310
|
+
}
|
|
311
|
+
export interface RealTimeFundingRate {
|
|
312
|
+
symbol: string;
|
|
313
|
+
funding_rate: number;
|
|
314
|
+
next_funding_time: string;
|
|
315
|
+
estimated_fee: number;
|
|
316
|
+
position_amount: number;
|
|
317
|
+
position_side: string;
|
|
318
|
+
}
|
|
319
|
+
export interface FundingFeeAnalysisResult {
|
|
320
|
+
date_range: string;
|
|
321
|
+
start_date: string;
|
|
322
|
+
end_date: string;
|
|
323
|
+
total_received: number;
|
|
324
|
+
total_paid: number;
|
|
325
|
+
net_funding: number;
|
|
326
|
+
funding_to_pnl_ratio: number;
|
|
327
|
+
today_net: number;
|
|
328
|
+
month_net: number;
|
|
329
|
+
by_symbol: FundingFeeBySymbol[];
|
|
330
|
+
history: FundingFeeHistory[];
|
|
331
|
+
recent_records: FundingFeeRecord[];
|
|
332
|
+
real_time_rates?: RealTimeFundingRate[];
|
|
333
|
+
}
|
|
334
|
+
export interface StrategyStatusPreview {
|
|
335
|
+
total_pnl: number;
|
|
336
|
+
long_pnl: number;
|
|
337
|
+
short_pnl: number;
|
|
338
|
+
power_orders: {
|
|
339
|
+
open_long: number;
|
|
340
|
+
open_short: number;
|
|
341
|
+
tp_long: number;
|
|
342
|
+
tp_short: number;
|
|
343
|
+
};
|
|
344
|
+
energy_pending_orders: number;
|
|
345
|
+
hedge_state: string;
|
|
346
|
+
long_amount: number;
|
|
347
|
+
short_amount: number;
|
|
348
|
+
long_entry_price: number;
|
|
349
|
+
short_entry_price: number;
|
|
350
|
+
mark_price: number;
|
|
351
|
+
}
|
|
352
|
+
export interface UnilateralMonitor {
|
|
353
|
+
enabled: boolean;
|
|
354
|
+
long_loss_pct: number;
|
|
355
|
+
short_loss_pct: number;
|
|
356
|
+
trigger_pct: number;
|
|
357
|
+
status: 'normal' | 'warning' | 'triggered';
|
|
358
|
+
}
|
|
359
|
+
export interface BalanceMonitor {
|
|
360
|
+
enabled: boolean;
|
|
361
|
+
balance_ratio: number;
|
|
362
|
+
trigger_pct: number;
|
|
363
|
+
status: 'normal' | 'warning' | 'triggered';
|
|
364
|
+
}
|
|
365
|
+
export interface RealizedPnL {
|
|
366
|
+
power_pnl: number;
|
|
367
|
+
energy_pnl: number;
|
|
368
|
+
total_pnl: number;
|
|
369
|
+
power_today_pnl: number;
|
|
370
|
+
energy_today_pnl: number;
|
|
371
|
+
today_total_pnl: number;
|
|
372
|
+
power_closed_count: number;
|
|
373
|
+
power_closed_long: number;
|
|
374
|
+
power_closed_short: number;
|
|
375
|
+
power_total_fees: number;
|
|
376
|
+
energy_total_fees: number;
|
|
377
|
+
power_today_fees: number;
|
|
378
|
+
energy_today_fees: number;
|
|
379
|
+
}
|
|
380
|
+
export interface StrategyStatusItem {
|
|
381
|
+
id: string;
|
|
382
|
+
uid: string;
|
|
383
|
+
strategy_type: string;
|
|
384
|
+
symbol: string;
|
|
385
|
+
enabled: boolean;
|
|
386
|
+
updated_at: string | null;
|
|
387
|
+
created_at: string | null;
|
|
388
|
+
preview: StrategyStatusPreview;
|
|
389
|
+
unilateral_monitor: UnilateralMonitor;
|
|
390
|
+
balance_monitor: BalanceMonitor;
|
|
391
|
+
realized_pnl: RealizedPnL;
|
|
392
|
+
}
|
|
393
|
+
export interface StrategiesStatusResult {
|
|
394
|
+
strategies: StrategyStatusItem[];
|
|
395
|
+
count: number;
|
|
396
|
+
}
|
|
397
|
+
export interface PositionAnalysis {
|
|
398
|
+
long: {
|
|
399
|
+
amount: number;
|
|
400
|
+
entry_price: number;
|
|
401
|
+
unrealized_pnl: number;
|
|
402
|
+
};
|
|
403
|
+
short: {
|
|
404
|
+
amount: number;
|
|
405
|
+
entry_price: number;
|
|
406
|
+
unrealized_pnl: number;
|
|
407
|
+
};
|
|
408
|
+
total_pnl: number;
|
|
409
|
+
}
|
|
410
|
+
export interface PowerOrdersStatus {
|
|
411
|
+
open_long: number;
|
|
412
|
+
open_short: number;
|
|
413
|
+
tp_long: number;
|
|
414
|
+
tp_short: number;
|
|
415
|
+
}
|
|
416
|
+
export interface EnergyStatus {
|
|
417
|
+
pending_orders: number;
|
|
418
|
+
hedge_state: string;
|
|
419
|
+
long_position: number;
|
|
420
|
+
short_position: number;
|
|
421
|
+
long_entry_price: number;
|
|
422
|
+
short_entry_price: number;
|
|
423
|
+
}
|
|
424
|
+
export interface AddPositionParams {
|
|
425
|
+
unilateral_enabled: boolean;
|
|
426
|
+
unilateral_trigger_pct: number;
|
|
427
|
+
unilateral_mode: string;
|
|
428
|
+
unilateral_quantity_pct: number;
|
|
429
|
+
balance_enabled: boolean;
|
|
430
|
+
balance_trigger_pct: number;
|
|
431
|
+
balance_quantity_pct: number;
|
|
432
|
+
}
|
|
433
|
+
export interface AddPositionStats {
|
|
434
|
+
period_days: number;
|
|
435
|
+
total_count: number;
|
|
436
|
+
unilateral_count: number;
|
|
437
|
+
balance_count: number;
|
|
438
|
+
long_count: number;
|
|
439
|
+
short_count: number;
|
|
440
|
+
filled_count: number;
|
|
441
|
+
}
|
|
442
|
+
export interface FundPool {
|
|
443
|
+
total_balance: number;
|
|
444
|
+
strategy_limit: number;
|
|
445
|
+
}
|
|
446
|
+
export interface StrategyLiveStatus {
|
|
447
|
+
id: string;
|
|
448
|
+
uid: string;
|
|
449
|
+
strategy_type: string;
|
|
450
|
+
symbol: string;
|
|
451
|
+
enabled: boolean;
|
|
452
|
+
updated_at: string | null;
|
|
453
|
+
created_at: string | null;
|
|
454
|
+
live_state: Record<string, unknown>;
|
|
455
|
+
params: Record<string, unknown>;
|
|
456
|
+
position_analysis: PositionAnalysis;
|
|
457
|
+
power_orders: PowerOrdersStatus;
|
|
458
|
+
energy_status: EnergyStatus;
|
|
459
|
+
profit_threshold: number;
|
|
460
|
+
fund_pool: FundPool;
|
|
461
|
+
add_position_params: AddPositionParams;
|
|
462
|
+
add_position_stats: AddPositionStats;
|
|
463
|
+
realized_pnl: RealizedPnL;
|
|
464
|
+
}
|
|
465
|
+
export interface AddPositionTriggerInfo {
|
|
466
|
+
loss_pct: number;
|
|
467
|
+
trigger_threshold: number;
|
|
468
|
+
mode: string;
|
|
469
|
+
add_count: number;
|
|
470
|
+
kdj_signal?: string;
|
|
471
|
+
add_quantity_pct?: number;
|
|
472
|
+
}
|
|
473
|
+
export interface AddPositionOrderDetails {
|
|
474
|
+
client_order_id?: string;
|
|
475
|
+
order_id?: number;
|
|
476
|
+
symbol?: string;
|
|
477
|
+
side?: string;
|
|
478
|
+
quantity?: number;
|
|
479
|
+
price?: number;
|
|
480
|
+
status?: string;
|
|
481
|
+
}
|
|
482
|
+
export interface AddPositionRecord {
|
|
483
|
+
id: string;
|
|
484
|
+
symbol: string;
|
|
485
|
+
status: string;
|
|
486
|
+
created_at: string | null;
|
|
487
|
+
direction: string;
|
|
488
|
+
transaction_type: string;
|
|
489
|
+
quantity: number;
|
|
490
|
+
price: number;
|
|
491
|
+
trigger_info: AddPositionTriggerInfo;
|
|
492
|
+
order_details: AddPositionOrderDetails;
|
|
493
|
+
}
|
|
494
|
+
export interface AddPositionHistoryResult {
|
|
495
|
+
history: AddPositionRecord[];
|
|
496
|
+
count: number;
|
|
497
|
+
filters: {
|
|
498
|
+
type: string;
|
|
499
|
+
days: number;
|
|
500
|
+
limit: number;
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
export interface MiningPnlData {
|
|
504
|
+
trade_pnl: number;
|
|
505
|
+
commission: number;
|
|
506
|
+
funding_fee: number;
|
|
507
|
+
net_pnl: number;
|
|
508
|
+
trade_count: number;
|
|
509
|
+
has_data: boolean;
|
|
510
|
+
}
|
|
511
|
+
export interface MiningQuotaData {
|
|
512
|
+
total_mcc: number;
|
|
513
|
+
user_mcc: number;
|
|
514
|
+
team_mcc: number;
|
|
515
|
+
treasury_mcc: number;
|
|
516
|
+
manager_mcc: number;
|
|
517
|
+
mcc_price: number;
|
|
518
|
+
minting_rate: number;
|
|
519
|
+
tech_bonus_value: number;
|
|
520
|
+
eligible: boolean;
|
|
521
|
+
reason: string | null;
|
|
522
|
+
}
|
|
523
|
+
export interface TodayMiningResult {
|
|
524
|
+
uid: string;
|
|
525
|
+
date: string;
|
|
526
|
+
pnl: MiningPnlData;
|
|
527
|
+
mining: MiningQuotaData;
|
|
528
|
+
timestamp: number;
|
|
529
|
+
source: string;
|
|
530
|
+
}
|
|
531
|
+
export interface MiningPeriodData {
|
|
532
|
+
net_pnl: number;
|
|
533
|
+
mcc_mined: number;
|
|
534
|
+
is_realtime: boolean;
|
|
535
|
+
}
|
|
536
|
+
export interface MiningConfig {
|
|
537
|
+
mcc_price: number;
|
|
538
|
+
user_ratio: number;
|
|
539
|
+
team_ratio: number;
|
|
540
|
+
treasury_ratio: number;
|
|
541
|
+
}
|
|
542
|
+
export interface MiningSummaryResult {
|
|
543
|
+
uid: string;
|
|
544
|
+
today: MiningPeriodData;
|
|
545
|
+
weekly: MiningPeriodData;
|
|
546
|
+
monthly: MiningPeriodData;
|
|
547
|
+
total: MiningPeriodData;
|
|
548
|
+
config: MiningConfig;
|
|
549
|
+
}
|
|
550
|
+
export interface GlobalMiningStats {
|
|
551
|
+
total_minted: number;
|
|
552
|
+
current_phase: number;
|
|
553
|
+
minting_rate: number;
|
|
554
|
+
mcc_price: number;
|
|
555
|
+
distribution: {
|
|
556
|
+
mining: number;
|
|
557
|
+
team: number;
|
|
558
|
+
vault: number;
|
|
559
|
+
managers: number;
|
|
560
|
+
};
|
|
561
|
+
halving_threshold: number;
|
|
562
|
+
halving_count: number;
|
|
563
|
+
network: string;
|
|
564
|
+
}
|
|
565
|
+
export interface EnergyOrderDetails {
|
|
566
|
+
client_order_id?: string;
|
|
567
|
+
order_id?: number;
|
|
568
|
+
symbol?: string;
|
|
569
|
+
side?: string;
|
|
570
|
+
position_side?: string;
|
|
571
|
+
quantity?: number;
|
|
572
|
+
price?: number;
|
|
573
|
+
status?: string;
|
|
574
|
+
transaction_type?: string;
|
|
575
|
+
direction?: string;
|
|
576
|
+
trigger_info?: {
|
|
577
|
+
loss_pct?: number;
|
|
578
|
+
trigger_threshold?: number;
|
|
579
|
+
mode?: string;
|
|
580
|
+
add_count?: number;
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
export interface EnergyOrder {
|
|
584
|
+
id: string;
|
|
585
|
+
symbol: string;
|
|
586
|
+
status: string;
|
|
587
|
+
details: EnergyOrderDetails;
|
|
588
|
+
created_at: string | null;
|
|
589
|
+
updated_at: string | null;
|
|
590
|
+
}
|
|
591
|
+
export interface ExpectedAddPosition {
|
|
592
|
+
direction: string;
|
|
593
|
+
entry_price: number;
|
|
594
|
+
current_price: number;
|
|
595
|
+
loss_pct: number;
|
|
596
|
+
trigger_pct: number;
|
|
597
|
+
trigger_price: number;
|
|
598
|
+
status: 'normal' | 'warning' | 'triggered';
|
|
599
|
+
}
|
|
600
|
+
export interface EnergyOrdersResult {
|
|
601
|
+
pending_orders: EnergyOrder[];
|
|
602
|
+
history: EnergyOrder[];
|
|
603
|
+
expected_orders: ExpectedAddPosition[];
|
|
604
|
+
stats: {
|
|
605
|
+
pending_count: number;
|
|
606
|
+
history_count: number;
|
|
607
|
+
filled_count: number;
|
|
608
|
+
unilateral_count: number;
|
|
609
|
+
balance_count: number;
|
|
610
|
+
};
|
|
611
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const getAccountInfo: (exchange?: string) => Promise<any>;
|
|
2
|
+
export declare const getAccountInfoRaw: (exchange?: string) => Promise<any>;
|
|
3
|
+
export declare const getUserProfile: () => Promise<any>;
|
|
4
|
+
export declare const getBalanceHistory: (strategyId: string) => Promise<any>;
|
|
5
|
+
export declare const getTradeHistory: (page?: number, limit?: number) => Promise<any>;
|
|
6
|
+
export declare const saveApiKey: (exchange: string, apiKey: string, secretKey: string) => Promise<any>;
|
|
7
|
+
export declare const getKeyHistory: () => Promise<any>;
|
|
8
|
+
export declare const getAllExchangeAccounts: () => Promise<any>;
|
|
9
|
+
export declare const getExchangeAccounts: (exchange: string) => Promise<any>;
|
|
10
|
+
export declare const saveApiKeys: (exchange: string, data: {
|
|
11
|
+
account_name: string;
|
|
12
|
+
display_name?: string;
|
|
13
|
+
api_key?: string;
|
|
14
|
+
secret_key?: string;
|
|
15
|
+
passphrase?: string;
|
|
16
|
+
private_key?: string;
|
|
17
|
+
wallet_address?: string;
|
|
18
|
+
permissions?: string[];
|
|
19
|
+
is_default?: boolean;
|
|
20
|
+
description?: string;
|
|
21
|
+
}) => Promise<any>;
|
|
22
|
+
export declare const deleteApiKeys: (exchange: string, accountName: string) => Promise<any>;
|
|
23
|
+
export declare const getUserLogs: () => Promise<any>;
|
|
24
|
+
export declare const getUserSymbols: (exchange?: string) => Promise<any>;
|
|
25
|
+
export declare const addUserSymbol: (exchange: string, symbol: string) => Promise<any>;
|
|
26
|
+
export declare const getFundPoolInfo: () => Promise<any>;
|
|
27
|
+
export declare const updateFundPoolSettings: (poolPercentage: number) => Promise<any>;
|
|
28
|
+
export declare const getCurrentUserProfile: () => Promise<any>;
|
|
29
|
+
export declare const getUserList: (params?: {
|
|
30
|
+
role?: string;
|
|
31
|
+
page?: number;
|
|
32
|
+
per_page?: number;
|
|
33
|
+
}) => Promise<any>;
|
|
34
|
+
export declare const updateUserRole: (uid: string, role: "admin" | "agent" | "user") => Promise<any>;
|
|
35
|
+
export declare const dbHealthCheck: () => Promise<any>;
|
|
36
|
+
export declare const getTraderPermissions: () => Promise<any>;
|
|
37
|
+
export declare const getTraderPermission: (traderUid: string) => Promise<any>;
|
|
38
|
+
export declare const updateTraderPermission: (traderUid: string, permissionType: "self_only" | "specific_users" | "all_users", managedUids?: string[]) => Promise<any>;
|
|
39
|
+
export declare const deleteTraderPermission: (traderUid: string) => Promise<any>;
|