@microcosmmoney/portal-react 3.12.7 → 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/components/mcd/mcd-page.js +3 -5
- package/dist/components/wallet/wallet-page.js +1 -1
- 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,216 @@
|
|
|
1
|
+
export type TerritoryNftType = 'station' | 'matrix' | 'sector';
|
|
2
|
+
export interface TerritoryNftCollection {
|
|
3
|
+
authority: string;
|
|
4
|
+
collection_mint: string;
|
|
5
|
+
total_minted: number;
|
|
6
|
+
station_count: number;
|
|
7
|
+
matrix_count: number;
|
|
8
|
+
sector_count: number;
|
|
9
|
+
is_paused: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface TerritoryNftMetadata {
|
|
12
|
+
mint: string;
|
|
13
|
+
owner: string;
|
|
14
|
+
nft_type: TerritoryNftType;
|
|
15
|
+
unit_id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
symbol: string;
|
|
18
|
+
uri: string;
|
|
19
|
+
image?: string;
|
|
20
|
+
created_at: number;
|
|
21
|
+
}
|
|
22
|
+
export interface TerritoryNftMintRequest {
|
|
23
|
+
nft_type: TerritoryNftType;
|
|
24
|
+
unit_id: string;
|
|
25
|
+
recipient_wallet?: string;
|
|
26
|
+
name: string;
|
|
27
|
+
symbol: string;
|
|
28
|
+
uri: string;
|
|
29
|
+
}
|
|
30
|
+
export interface TerritoryNftTransferRequest {
|
|
31
|
+
mint: string;
|
|
32
|
+
to_wallet: string;
|
|
33
|
+
}
|
|
34
|
+
export type OnchainAuctionStatus = 'pending' | 'active' | 'ended' | 'settled' | 'cancelled';
|
|
35
|
+
export interface OnchainAuctionConfig {
|
|
36
|
+
authority: string;
|
|
37
|
+
treasury_wallet: string;
|
|
38
|
+
min_bid_increment_bps: number;
|
|
39
|
+
platform_fee_bps: number;
|
|
40
|
+
min_auction_duration: number;
|
|
41
|
+
max_auction_duration: number;
|
|
42
|
+
total_auctions: number;
|
|
43
|
+
active_auctions: number;
|
|
44
|
+
is_paused: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface OnchainAuction {
|
|
47
|
+
auction_id: number;
|
|
48
|
+
nft_mint: string;
|
|
49
|
+
nft_type: TerritoryNftType;
|
|
50
|
+
unit_id: string;
|
|
51
|
+
seller: string;
|
|
52
|
+
starting_price: number;
|
|
53
|
+
current_bid: number;
|
|
54
|
+
current_bidder: string | null;
|
|
55
|
+
reserve_price: number;
|
|
56
|
+
min_bid_increment: number;
|
|
57
|
+
start_time: number;
|
|
58
|
+
end_time: number;
|
|
59
|
+
status: OnchainAuctionStatus;
|
|
60
|
+
bid_count: number;
|
|
61
|
+
escrow_account: string;
|
|
62
|
+
}
|
|
63
|
+
export interface OnchainBid {
|
|
64
|
+
auction_id: number;
|
|
65
|
+
bidder: string;
|
|
66
|
+
amount: number;
|
|
67
|
+
timestamp: number;
|
|
68
|
+
is_winning: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface CreateOnchainAuctionRequest {
|
|
71
|
+
nft_mint: string;
|
|
72
|
+
starting_price: number;
|
|
73
|
+
reserve_price?: number;
|
|
74
|
+
duration_seconds: number;
|
|
75
|
+
}
|
|
76
|
+
export interface PlaceOnchainBidRequest {
|
|
77
|
+
auction_id: number;
|
|
78
|
+
bid_amount: number;
|
|
79
|
+
}
|
|
80
|
+
export interface FragmentConfig {
|
|
81
|
+
authority: string;
|
|
82
|
+
fragment_token_program: string;
|
|
83
|
+
total_vaults: number;
|
|
84
|
+
total_fragments_issued: number;
|
|
85
|
+
is_paused: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface FragmentVault {
|
|
88
|
+
vault_id: number;
|
|
89
|
+
nft_mint: string;
|
|
90
|
+
nft_type: TerritoryNftType;
|
|
91
|
+
unit_id: string;
|
|
92
|
+
fragment_mint: string;
|
|
93
|
+
total_supply: number;
|
|
94
|
+
circulating_supply: number;
|
|
95
|
+
total_fragments: number;
|
|
96
|
+
fragments_sold: number;
|
|
97
|
+
is_active: boolean;
|
|
98
|
+
price_per_fragment: number;
|
|
99
|
+
is_redeemable: boolean;
|
|
100
|
+
created_at: number;
|
|
101
|
+
creator: string;
|
|
102
|
+
}
|
|
103
|
+
export interface FragmentHolding {
|
|
104
|
+
vault_id: number;
|
|
105
|
+
fragment_mint: string;
|
|
106
|
+
holder: string;
|
|
107
|
+
wallet: string;
|
|
108
|
+
amount: number;
|
|
109
|
+
fragment_amount: number;
|
|
110
|
+
share_percentage: number;
|
|
111
|
+
percentage: number;
|
|
112
|
+
}
|
|
113
|
+
export interface FragmentizeRequest {
|
|
114
|
+
nft_mint: string;
|
|
115
|
+
total_fragments: number;
|
|
116
|
+
price_per_fragment: number;
|
|
117
|
+
}
|
|
118
|
+
export interface BuyFragmentRequest {
|
|
119
|
+
vault_id: number;
|
|
120
|
+
amount: number;
|
|
121
|
+
}
|
|
122
|
+
export interface RedeemNftRequest {
|
|
123
|
+
vault_id: number;
|
|
124
|
+
}
|
|
125
|
+
export type LoanStatus = 'Active' | 'Repaid' | 'Liquidated';
|
|
126
|
+
export interface LendingPool {
|
|
127
|
+
authority: string;
|
|
128
|
+
mcc_mint: string;
|
|
129
|
+
lp_mint: string;
|
|
130
|
+
vault: string;
|
|
131
|
+
total_deposits: number;
|
|
132
|
+
total_borrows: number;
|
|
133
|
+
utilization_rate: number;
|
|
134
|
+
base_rate: number;
|
|
135
|
+
optimal_utilization: number;
|
|
136
|
+
slope1: number;
|
|
137
|
+
slope2: number;
|
|
138
|
+
current_borrow_rate: number;
|
|
139
|
+
current_supply_rate: number;
|
|
140
|
+
is_paused: boolean;
|
|
141
|
+
}
|
|
142
|
+
export interface LendingPoolStats {
|
|
143
|
+
total_deposits: number;
|
|
144
|
+
total_deposits_formatted: number;
|
|
145
|
+
total_borrows: number;
|
|
146
|
+
total_borrows_formatted: number;
|
|
147
|
+
available_liquidity: number;
|
|
148
|
+
available_liquidity_formatted: number;
|
|
149
|
+
utilization_rate_percent: number;
|
|
150
|
+
borrow_apr_percent: number;
|
|
151
|
+
supply_apr_percent: number;
|
|
152
|
+
ltv_percent: number;
|
|
153
|
+
}
|
|
154
|
+
export interface UserLendingPosition {
|
|
155
|
+
wallet: string;
|
|
156
|
+
lp_balance: number;
|
|
157
|
+
lp_value_in_mcc: number;
|
|
158
|
+
depositValue: number;
|
|
159
|
+
active_loans_count: number;
|
|
160
|
+
total_borrowed: number;
|
|
161
|
+
total_collateral_value: number;
|
|
162
|
+
}
|
|
163
|
+
export interface Loan {
|
|
164
|
+
loan_id: number;
|
|
165
|
+
borrower: string;
|
|
166
|
+
principal: number;
|
|
167
|
+
interest_accrued: number;
|
|
168
|
+
total_owed: number;
|
|
169
|
+
collateral_nft_mint: string;
|
|
170
|
+
collateral_nft_type: TerritoryNftType;
|
|
171
|
+
collateral_value: number;
|
|
172
|
+
ltv: number;
|
|
173
|
+
borrow_rate: number;
|
|
174
|
+
start_time: number;
|
|
175
|
+
last_update: number;
|
|
176
|
+
missed_payments: number;
|
|
177
|
+
status: LoanStatus;
|
|
178
|
+
}
|
|
179
|
+
export interface LendingDepositRequest {
|
|
180
|
+
amount: number;
|
|
181
|
+
wallet?: string;
|
|
182
|
+
}
|
|
183
|
+
export interface LendingWithdrawRequest {
|
|
184
|
+
lp_amount: number;
|
|
185
|
+
wallet?: string;
|
|
186
|
+
}
|
|
187
|
+
export interface LendingBorrowRequest {
|
|
188
|
+
amount: number;
|
|
189
|
+
collateral_nft_mint: string;
|
|
190
|
+
wallet?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface LendingRepayRequest {
|
|
193
|
+
loan_id: number;
|
|
194
|
+
amount: number;
|
|
195
|
+
wallet?: string;
|
|
196
|
+
}
|
|
197
|
+
export interface LendingLiquidateRequest {
|
|
198
|
+
borrower_wallet: string;
|
|
199
|
+
loan_id: number;
|
|
200
|
+
liquidator_wallet?: string;
|
|
201
|
+
}
|
|
202
|
+
export interface InterestCalculation {
|
|
203
|
+
principal: number;
|
|
204
|
+
annual_rate: number;
|
|
205
|
+
days: number;
|
|
206
|
+
interest: number;
|
|
207
|
+
total: number;
|
|
208
|
+
}
|
|
209
|
+
export interface BorrowCostEstimate {
|
|
210
|
+
principal: number;
|
|
211
|
+
collateral_value: number;
|
|
212
|
+
ltv: number;
|
|
213
|
+
annual_rate: number;
|
|
214
|
+
monthly_interest: number;
|
|
215
|
+
total_interest_30_days: number;
|
|
216
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type { UnitType } from './common.types';
|
|
2
|
+
export interface WalletInfo {
|
|
3
|
+
userId: string;
|
|
4
|
+
balance: number;
|
|
5
|
+
transactionCount: number;
|
|
6
|
+
lastTransaction: Transaction | null;
|
|
7
|
+
isMock: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type TransactionType = 'deposit' | 'transfer' | 'refund';
|
|
10
|
+
export interface Transaction {
|
|
11
|
+
txHash: string;
|
|
12
|
+
type: TransactionType;
|
|
13
|
+
amount: number;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
to?: string;
|
|
16
|
+
from?: string;
|
|
17
|
+
balanceBefore: number;
|
|
18
|
+
balanceAfter: number;
|
|
19
|
+
}
|
|
20
|
+
export interface TransactionResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
txHash: string;
|
|
23
|
+
amount: number;
|
|
24
|
+
balanceBefore: number;
|
|
25
|
+
balanceAfter: number;
|
|
26
|
+
transaction: Transaction;
|
|
27
|
+
}
|
|
28
|
+
export type UserRole = 'admin' | 'agent' | 'user';
|
|
29
|
+
export interface UserInfo {
|
|
30
|
+
uid: string;
|
|
31
|
+
email: string | null;
|
|
32
|
+
role: UserRole;
|
|
33
|
+
apiKeysConfigured: boolean;
|
|
34
|
+
created_at?: string;
|
|
35
|
+
numeric_id?: number;
|
|
36
|
+
short_id?: string;
|
|
37
|
+
location_id?: string;
|
|
38
|
+
unit_level?: number;
|
|
39
|
+
territory_id?: string;
|
|
40
|
+
source_project_id?: string;
|
|
41
|
+
}
|
|
42
|
+
export type StrategyStatus = 'running' | 'stopped' | 'paused';
|
|
43
|
+
export interface Strategy {
|
|
44
|
+
strategy_id: string;
|
|
45
|
+
strategy_name: string;
|
|
46
|
+
user_id: string;
|
|
47
|
+
status: StrategyStatus;
|
|
48
|
+
exchange: string;
|
|
49
|
+
symbol: string;
|
|
50
|
+
created_at: string;
|
|
51
|
+
updated_at?: string;
|
|
52
|
+
parameters?: Record<string, unknown>;
|
|
53
|
+
total_profit?: number;
|
|
54
|
+
win_rate?: number;
|
|
55
|
+
total_trades?: number;
|
|
56
|
+
}
|
|
57
|
+
export declare enum UserRank {
|
|
58
|
+
MINER = "Miner",
|
|
59
|
+
COMMANDER = "Commander",
|
|
60
|
+
PIONEER = "Pioneer",
|
|
61
|
+
WARDEN = "Warden",
|
|
62
|
+
ADMIRAL = "Admiral"
|
|
63
|
+
}
|
|
64
|
+
export declare const ACTIVE_RANKS: UserRank[];
|
|
65
|
+
export interface TerritoryHoldings {
|
|
66
|
+
station: number;
|
|
67
|
+
matrix: number;
|
|
68
|
+
sector: number;
|
|
69
|
+
system: number;
|
|
70
|
+
}
|
|
71
|
+
export interface NextLevelRequirement {
|
|
72
|
+
tier: 'station' | 'matrix' | 'sector' | 'system';
|
|
73
|
+
have: number;
|
|
74
|
+
need: number;
|
|
75
|
+
description: string;
|
|
76
|
+
}
|
|
77
|
+
export interface LevelProgress {
|
|
78
|
+
user_id?: string;
|
|
79
|
+
uid?: string;
|
|
80
|
+
wallet?: string | null;
|
|
81
|
+
current_level: number;
|
|
82
|
+
current_rank: UserRank;
|
|
83
|
+
next_level: number | null;
|
|
84
|
+
next_rank: UserRank | null;
|
|
85
|
+
progress_percent: number;
|
|
86
|
+
holdings: TerritoryHoldings;
|
|
87
|
+
next_level_requirement: NextLevelRequirement | null;
|
|
88
|
+
}
|
|
89
|
+
export interface UserLevelStatus extends LevelProgress {
|
|
90
|
+
database_level?: string;
|
|
91
|
+
database_unit_level?: number;
|
|
92
|
+
is_synced?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface LevelSystemConfig {
|
|
95
|
+
level_system: 'nft_holding_based';
|
|
96
|
+
levels: Array<{
|
|
97
|
+
level: number;
|
|
98
|
+
rank: string;
|
|
99
|
+
requirement: string;
|
|
100
|
+
}>;
|
|
101
|
+
}
|
|
102
|
+
export interface MiningWeight {
|
|
103
|
+
user_id: string;
|
|
104
|
+
total_weight: number;
|
|
105
|
+
profit_weight: number;
|
|
106
|
+
duration_weight: number;
|
|
107
|
+
strategy_weight: number;
|
|
108
|
+
mcc_holding_weight: number;
|
|
109
|
+
last_updated: string;
|
|
110
|
+
}
|
|
111
|
+
export interface TechBonusDetail {
|
|
112
|
+
unit_id: string;
|
|
113
|
+
unit_type: UnitType;
|
|
114
|
+
bonus_percentage: number;
|
|
115
|
+
is_lit: boolean;
|
|
116
|
+
parent_unit_id?: string;
|
|
117
|
+
}
|
|
118
|
+
export type DistributionPlanType = 'plan_1' | 'plan_2' | 'plan_3' | 'plan_4' | 'plan_5';
|
|
119
|
+
export interface DistributionPlan {
|
|
120
|
+
plan_id: number;
|
|
121
|
+
plan_type: DistributionPlanType;
|
|
122
|
+
name: string;
|
|
123
|
+
manager_share: number;
|
|
124
|
+
vault_share: number;
|
|
125
|
+
member_share: number;
|
|
126
|
+
system_reserve: number;
|
|
127
|
+
charity_share: number;
|
|
128
|
+
}
|
|
129
|
+
export interface StationKPI {
|
|
130
|
+
unit_id: string;
|
|
131
|
+
current_members: number;
|
|
132
|
+
target_members: number;
|
|
133
|
+
total_usdt_volume: number;
|
|
134
|
+
target_usdt_volume: number;
|
|
135
|
+
is_qualified: boolean;
|
|
136
|
+
member_progress: number;
|
|
137
|
+
volume_progress: number;
|
|
138
|
+
}
|
|
139
|
+
export interface IncomeSummaryByLevel {
|
|
140
|
+
record_count: number;
|
|
141
|
+
total_income: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ManagerIncomeSummary {
|
|
144
|
+
success: boolean;
|
|
145
|
+
user_id: string;
|
|
146
|
+
income_by_level: {
|
|
147
|
+
station?: IncomeSummaryByLevel;
|
|
148
|
+
matrix?: IncomeSummaryByLevel;
|
|
149
|
+
sector?: IncomeSummaryByLevel;
|
|
150
|
+
system?: IncomeSummaryByLevel;
|
|
151
|
+
};
|
|
152
|
+
total_income: string;
|
|
153
|
+
start_date?: string;
|
|
154
|
+
end_date?: string;
|
|
155
|
+
error?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface StationIncomeSummary {
|
|
158
|
+
success: boolean;
|
|
159
|
+
territory_id: string;
|
|
160
|
+
record_count: number;
|
|
161
|
+
total_minted: string;
|
|
162
|
+
distribution_summary: {
|
|
163
|
+
team_share: string;
|
|
164
|
+
station_vault_share: string;
|
|
165
|
+
station_manager_share: string;
|
|
166
|
+
matrix_manager_share: string;
|
|
167
|
+
sector_manager_share: string;
|
|
168
|
+
system_manager_share: string;
|
|
169
|
+
mining_pool_share: string;
|
|
170
|
+
};
|
|
171
|
+
start_date?: string;
|
|
172
|
+
end_date?: string;
|
|
173
|
+
error?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface TeamCustodySummary {
|
|
176
|
+
success: boolean;
|
|
177
|
+
wallets: Array<{
|
|
178
|
+
wallet_type: string;
|
|
179
|
+
wallet_address?: string;
|
|
180
|
+
total_received: string;
|
|
181
|
+
}>;
|
|
182
|
+
total_received: string;
|
|
183
|
+
error?: string;
|
|
184
|
+
}
|
|
185
|
+
export interface IncomeDistributionRecord {
|
|
186
|
+
id: number;
|
|
187
|
+
source_territory_id: string;
|
|
188
|
+
source_user_id: string;
|
|
189
|
+
distribution_date: string;
|
|
190
|
+
total_minted_mcc: string;
|
|
191
|
+
team_share: string;
|
|
192
|
+
station_vault_share: string;
|
|
193
|
+
station_manager_share: string;
|
|
194
|
+
matrix_manager_share: string;
|
|
195
|
+
sector_manager_share: string;
|
|
196
|
+
system_manager_share: string;
|
|
197
|
+
mining_pool_share: string;
|
|
198
|
+
station_manager_id?: string;
|
|
199
|
+
matrix_manager_id?: string;
|
|
200
|
+
sector_manager_id?: string;
|
|
201
|
+
system_manager_id?: string;
|
|
202
|
+
created_at: string;
|
|
203
|
+
}
|
|
204
|
+
export interface IncomeHistoryResponse {
|
|
205
|
+
success: boolean;
|
|
206
|
+
records: IncomeDistributionRecord[];
|
|
207
|
+
total: number;
|
|
208
|
+
page: number;
|
|
209
|
+
page_size: number;
|
|
210
|
+
error?: string;
|
|
211
|
+
}
|
|
212
|
+
export interface StrategyConfig {
|
|
213
|
+
symbol: string;
|
|
214
|
+
leverage: number;
|
|
215
|
+
position_size: number;
|
|
216
|
+
stop_loss?: number;
|
|
217
|
+
take_profit?: number;
|
|
218
|
+
parameters: Record<string, unknown>;
|
|
219
|
+
}
|
|
220
|
+
export interface BinanceOrderResponse {
|
|
221
|
+
success: boolean;
|
|
222
|
+
order?: {
|
|
223
|
+
orderId: number;
|
|
224
|
+
clientOrderId: string;
|
|
225
|
+
symbol: string;
|
|
226
|
+
status: string;
|
|
227
|
+
price: string;
|
|
228
|
+
avgPrice: string;
|
|
229
|
+
origQty: string;
|
|
230
|
+
executedQty: string;
|
|
231
|
+
type: string;
|
|
232
|
+
side: string;
|
|
233
|
+
positionSide: string;
|
|
234
|
+
time: number;
|
|
235
|
+
updateTime: number;
|
|
236
|
+
};
|
|
237
|
+
error?: string;
|
|
238
|
+
}
|
|
239
|
+
export interface BinanceCancelResponse {
|
|
240
|
+
success: boolean;
|
|
241
|
+
cancelled?: boolean;
|
|
242
|
+
error?: string;
|
|
243
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACTIVE_RANKS = exports.UserRank = void 0;
|
|
4
|
+
var UserRank;
|
|
5
|
+
(function (UserRank) {
|
|
6
|
+
UserRank["MINER"] = "Miner";
|
|
7
|
+
UserRank["COMMANDER"] = "Commander";
|
|
8
|
+
UserRank["PIONEER"] = "Pioneer";
|
|
9
|
+
UserRank["WARDEN"] = "Warden";
|
|
10
|
+
UserRank["ADMIRAL"] = "Admiral";
|
|
11
|
+
})(UserRank || (exports.UserRank = UserRank = {}));
|
|
12
|
+
exports.ACTIVE_RANKS = [UserRank.MINER, UserRank.COMMANDER, UserRank.PIONEER, UserRank.WARDEN, UserRank.ADMIRAL];
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare const USER_LEVELS: Record<number, string>;
|
|
2
|
+
export declare const USER_LEVELS_CN: Record<number, string>;
|
|
3
|
+
export declare function toBase36(num: number, width?: number): string;
|
|
4
|
+
export declare function fromBase36(s: string): number;
|
|
5
|
+
export declare function getUserShortId(numericId: number): string;
|
|
6
|
+
export declare function getSystemShortId(numericId: number): string;
|
|
7
|
+
export declare function getSectorShortId(numericId: number): string;
|
|
8
|
+
export declare function getMatrixShortId(numericId: number): string;
|
|
9
|
+
export declare function getStationShortId(numericId: number): string;
|
|
10
|
+
export declare function getUnitShortId(unitType: string, numericId: number): string;
|
|
11
|
+
export interface ParsedUnitId {
|
|
12
|
+
unitType: "user" | "system" | "sector" | "matrix" | "station";
|
|
13
|
+
numericId: number;
|
|
14
|
+
shortId: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function parseUnitShortId(shortId: string): ParsedUnitId;
|
|
17
|
+
export declare function getTerritoryFullPath(systemId: number, sectorId?: number, matrixId?: number, stationId?: number): string;
|
|
18
|
+
export declare function getUserLocationId(userNumericId: number, userLevel: number, systemId?: number, sectorId?: number, matrixId?: number, stationId?: number): string;
|
|
19
|
+
export interface ParsedLocationId {
|
|
20
|
+
userShortId: string;
|
|
21
|
+
userNumericId: number;
|
|
22
|
+
userLevel: number;
|
|
23
|
+
userLevelName: string;
|
|
24
|
+
territoryPath: string;
|
|
25
|
+
systemId?: number;
|
|
26
|
+
systemShortId?: string;
|
|
27
|
+
sectorId?: number;
|
|
28
|
+
sectorShortId?: string;
|
|
29
|
+
matrixId?: number;
|
|
30
|
+
matrixShortId?: string;
|
|
31
|
+
stationId?: number;
|
|
32
|
+
stationShortId?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare function parseUserLocationId(locationId: string): ParsedLocationId;
|
|
35
|
+
export interface UserRecord {
|
|
36
|
+
numeric_id?: number;
|
|
37
|
+
numericId?: number;
|
|
38
|
+
user_level?: number;
|
|
39
|
+
userLevel?: number;
|
|
40
|
+
territory_id?: string;
|
|
41
|
+
station_id?: number;
|
|
42
|
+
stationId?: number;
|
|
43
|
+
system_id?: number;
|
|
44
|
+
systemId?: number;
|
|
45
|
+
sector_id?: number;
|
|
46
|
+
sectorId?: number;
|
|
47
|
+
matrix_id?: number;
|
|
48
|
+
matrixId?: number;
|
|
49
|
+
parent_system_id?: number;
|
|
50
|
+
parent_sector_id?: number;
|
|
51
|
+
parent_matrix_id?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface UnitRecord {
|
|
54
|
+
id?: number;
|
|
55
|
+
unit_id?: number;
|
|
56
|
+
unitId?: number;
|
|
57
|
+
unit_type?: string;
|
|
58
|
+
unitType?: string;
|
|
59
|
+
parent_system_id?: number;
|
|
60
|
+
parent_sector_id?: number;
|
|
61
|
+
parent_matrix_id?: number;
|
|
62
|
+
system_id?: number;
|
|
63
|
+
sector_id?: number;
|
|
64
|
+
matrix_id?: number;
|
|
65
|
+
}
|
|
66
|
+
export declare function generateUserIds(user: UserRecord): {
|
|
67
|
+
shortId: string | null;
|
|
68
|
+
locationId: string | null;
|
|
69
|
+
};
|
|
70
|
+
export declare function generateUnitIds(unit: UnitRecord): {
|
|
71
|
+
shortId: string | null;
|
|
72
|
+
fullPath: string | null;
|
|
73
|
+
};
|
|
74
|
+
export declare function formatUserId(shortId?: string | null, numericId?: number | null, uid?: string | null): string;
|
|
75
|
+
export declare function formatUnitId(shortId?: string | null, unitType?: string | null, unitId?: number | null): string;
|