@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,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEXSCREENER_URL = exports.OKX_DEX_URL = exports.GMGN_TOKEN_URL = exports.BIRDEYE_TOKEN_URL = exports.JUPITER_TRADE_URL = exports.RAYDIUM_POOL_URL = exports.CUSTODY_VAULT_ADDRESSES = exports.SOLSCAN_LINKS = void 0;
|
|
4
|
+
exports.fetchMCCMarketData = fetchMCCMarketData;
|
|
5
|
+
exports.fetchCustodyVaultData = fetchCustodyVaultData;
|
|
6
|
+
async function fetchMCCMarketData() {
|
|
7
|
+
try {
|
|
8
|
+
const response = await fetch('/api/stats/market');
|
|
9
|
+
if (!response.ok)
|
|
10
|
+
return null;
|
|
11
|
+
const json = await response.json();
|
|
12
|
+
if (!json.success || !json.data)
|
|
13
|
+
return null;
|
|
14
|
+
const d = json.data;
|
|
15
|
+
return {
|
|
16
|
+
price: d.price || 0,
|
|
17
|
+
priceChange: {
|
|
18
|
+
h1: d.price_change_h1 || 0,
|
|
19
|
+
h24: d.price_change_24h || 0,
|
|
20
|
+
},
|
|
21
|
+
volume: {
|
|
22
|
+
h1: d.volume?.h1 || 0,
|
|
23
|
+
h24: d.volume?.h24 || 0,
|
|
24
|
+
},
|
|
25
|
+
txns: {
|
|
26
|
+
h1: d.txns?.h1 || { buys: 0, sells: 0 },
|
|
27
|
+
h24: d.txns?.h24 || { buys: 0, sells: 0 },
|
|
28
|
+
},
|
|
29
|
+
liquidityUsd: d.liquidity_usd || 0,
|
|
30
|
+
fdvUsd: d.fdv_usd || 0,
|
|
31
|
+
marketCapUsd: d.market_cap_usd || 0,
|
|
32
|
+
dailyStats: {
|
|
33
|
+
tradeCount: d.daily_stats?.trade_count || 0,
|
|
34
|
+
miningCount: d.daily_stats?.mining_count || 0,
|
|
35
|
+
marketMakingCount: d.daily_stats?.buyback_count || 0,
|
|
36
|
+
buyVolume: d.daily_stats?.buy_volume || 0,
|
|
37
|
+
sellVolume: d.daily_stats?.sell_volume || 0,
|
|
38
|
+
},
|
|
39
|
+
hourlyVolumes: (d.hourly_volumes || []).map((h) => ({
|
|
40
|
+
hour: h.hour,
|
|
41
|
+
buyVolume: h.buy_volume || 0,
|
|
42
|
+
sellVolume: h.sell_volume || 0,
|
|
43
|
+
totalVolume: h.total_volume || 0,
|
|
44
|
+
tradeCount: h.trade_count || 0,
|
|
45
|
+
})),
|
|
46
|
+
weeklyHeatmap: (d.weekly_heatmap || []).map((h) => ({
|
|
47
|
+
dow: h.dow || 1,
|
|
48
|
+
hour: h.hour || 0,
|
|
49
|
+
volume: h.volume || 0,
|
|
50
|
+
tradeCount: h.trade_count || 0,
|
|
51
|
+
})),
|
|
52
|
+
updatedAt: d.updated_at || '',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
console.error('Failed to fetch MCC market data:', error);
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async function fetchCustodyVaultData() {
|
|
61
|
+
try {
|
|
62
|
+
const response = await fetch('/api/stats/custody-vaults');
|
|
63
|
+
if (!response.ok)
|
|
64
|
+
return null;
|
|
65
|
+
const json = await response.json();
|
|
66
|
+
if (!json.success || !json.data)
|
|
67
|
+
return null;
|
|
68
|
+
const d = json.data;
|
|
69
|
+
return {
|
|
70
|
+
vaults: (d.vaults || []).map((v) => ({
|
|
71
|
+
index: v.index || 0,
|
|
72
|
+
vaultPda: v.vault_pda || "",
|
|
73
|
+
gasPayer: v.gas_payer || "",
|
|
74
|
+
usdcBalance: v.usdc_balance || 0,
|
|
75
|
+
mccBalance: v.mcc_balance || 0,
|
|
76
|
+
gasPayerSol: v.gas_payer_sol || 0,
|
|
77
|
+
gasConsumed: v.gas_consumed || 0,
|
|
78
|
+
txCount24h: v.tx_count_24h || 0,
|
|
79
|
+
status: v.status === "active" ? "active" : "idle",
|
|
80
|
+
})),
|
|
81
|
+
summary: {
|
|
82
|
+
totalUsdc: d.summary?.total_usdc || 0,
|
|
83
|
+
totalMcc: d.summary?.total_mcc || 0,
|
|
84
|
+
totalGasConsumed: d.summary?.total_gas_consumed || 0,
|
|
85
|
+
totalTx24h: d.summary?.total_tx_24h || 0,
|
|
86
|
+
totalTrades24h: d.summary?.total_trades_24h || 0,
|
|
87
|
+
activeVaults: d.summary?.active_vaults || 0,
|
|
88
|
+
avgGasPerTx: d.summary?.avg_gas_per_tx || 0,
|
|
89
|
+
totalProfit: d.summary?.total_profit || 0,
|
|
90
|
+
},
|
|
91
|
+
agentRoles: {
|
|
92
|
+
minerActive: !!d.agent_roles?.miner_active,
|
|
93
|
+
traderActive: !!d.agent_roles?.trader_active,
|
|
94
|
+
},
|
|
95
|
+
mining: d.mining || { total_usd: 0, total_mcc: 0, total_count: 0 },
|
|
96
|
+
buyback: d.buyback || { total_usd: 0, total_mcc: 0, total_count: 0, pool_usd_balance: 0 },
|
|
97
|
+
lp: d.lp || { mcc_allocated: 0, usdc_balance: 0 },
|
|
98
|
+
epoch: d.epoch || { current_epoch: 0, epoch_minted: 0, epoch_yield: 0, mining_vault_mcc: 0 },
|
|
99
|
+
updatedAt: d.updated_at || '',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
console.error('Failed to fetch custody vault data:', error);
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// ── Solscan Links ──
|
|
108
|
+
exports.SOLSCAN_LINKS = {
|
|
109
|
+
mccToken: "https://solscan.io/token/MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb",
|
|
110
|
+
mcdToken: "https://solscan.io/token/MCDAhpfpKrsvXd1i95jToVd5SRL2xrZbeEriBbBJAn2",
|
|
111
|
+
miningVault: "https://solscan.io/account/63CtMuLQTjTRctGXKEEzHu2zFWh9pbckbMDd3sqb8p3H",
|
|
112
|
+
buybackVault: "https://solscan.io/account/C4NDtuAVkGaLyGdJNARfvguHFFuKpDf8XPGkYb6QV1Ha",
|
|
113
|
+
teamVault: "https://solscan.io/account/TEA5FQrMTkmHoYCGpYfA2973xeXJ3UXHUe12oHdYoYb",
|
|
114
|
+
poolPda: "https://solscan.io/account/GSBWtaX9WcBh8jUcmbXtQ1afQPHKSUKvsTxkqpJU3G9S",
|
|
115
|
+
cpmmPool: "https://solscan.io/account/4AiaTd9bAWf3u8ScZWhXadJF1roc8bJKEKvaDudKacZd",
|
|
116
|
+
custodyProgram: "https://solscan.io/account/CUS3ZFhcYqAj95ZTbjYu1yMT8DLdAQo8kTYova4NJJtr",
|
|
117
|
+
programId: "https://solscan.io/account/REDEh89TzpwCtoWQuuNPtxskrVoUDQgowR7e7sZpWj9",
|
|
118
|
+
transaction: (sig) => `https://solscan.io/tx/${sig}`,
|
|
119
|
+
account: (address) => `https://solscan.io/account/${address}`,
|
|
120
|
+
};
|
|
121
|
+
/** Official Market Making Custody Vault PDAs (#0-#9) */
|
|
122
|
+
exports.CUSTODY_VAULT_ADDRESSES = [
|
|
123
|
+
"8GgSjyrnXfxzF9A2ptTVbwr5x7HbApBZAiNfLtasZymG",
|
|
124
|
+
"GPGfHSzEMQG1w5fCGXoM4Qyq4AJKe2jEoE5Bp7FTEvvv",
|
|
125
|
+
"Ay6nzAC1iNqNtBDqkWvjfkZRVJaw61v4tkNKs1h5QEsx",
|
|
126
|
+
"8H4N2rT9JT3xxxVqFRiSECHY9dcbU51KjxsEfsBJSr5N",
|
|
127
|
+
"8TzH83qkXUn2uifjVSFsfaBzpKvpf2h1FnKkP6gx33xo",
|
|
128
|
+
"AkCWQ1Cgef3kD33YZN6RcbNdcG2uzGPqTm298DsRpEBh",
|
|
129
|
+
"2ts8u1L21vZsJRHmB9SvGYw715bRp9wfM9gj9P8VZhah",
|
|
130
|
+
"FtuVwEijmLiKLFriSQaQ5mQVexHpDEjGYojiCaXzNhrp",
|
|
131
|
+
"HJiPgHoWrjmV8cguayJu6ggaBa2Kue5cbcdnt3T3eKbe",
|
|
132
|
+
"2H1uXk3wwrhkxssKj5dKSK8cUVq5BxeLAvgfF2CweVoc",
|
|
133
|
+
];
|
|
134
|
+
exports.RAYDIUM_POOL_URL = "https://raydium.io/swap/?inputMint=MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
135
|
+
exports.JUPITER_TRADE_URL = "https://jup.ag/tokens/MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb";
|
|
136
|
+
exports.BIRDEYE_TOKEN_URL = "https://birdeye.so/token/MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb?chain=solana";
|
|
137
|
+
exports.GMGN_TOKEN_URL = "https://gmgn.ai/sol/token/MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb";
|
|
138
|
+
exports.OKX_DEX_URL = "https://web3.okx.com/zh-hans/token/solana/MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb";
|
|
139
|
+
exports.DEXSCREENER_URL = "https://dexscreener.com/solana/4AiaTd9bAWf3u8ScZWhXadJF1roc8bJKEKvaDudKacZd";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface OHLCVData {
|
|
2
|
+
timestamp: number;
|
|
3
|
+
open: number;
|
|
4
|
+
high: number;
|
|
5
|
+
low: number;
|
|
6
|
+
close: number;
|
|
7
|
+
volume: number;
|
|
8
|
+
}
|
|
9
|
+
export type PriceTimeRange = "1D" | "7D" | "30D" | "1Y";
|
|
10
|
+
export declare function fetchPriceHistory(range: PriceTimeRange): Promise<OHLCVData[]>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchPriceHistory = fetchPriceHistory;
|
|
4
|
+
// AI-generated · AI-managed · AI-maintained
|
|
5
|
+
const MCC_POOL_ADDRESS = "4AiaTd9bAWf3u8ScZWhXadJF1roc8bJKEKvaDudKacZd";
|
|
6
|
+
const API_BASE = "https://api.geckoterminal.com/api/v2";
|
|
7
|
+
function getOHLCVParams(range) {
|
|
8
|
+
switch (range) {
|
|
9
|
+
case "1D":
|
|
10
|
+
return { timeframe: "hour", aggregate: 1, limit: 24 };
|
|
11
|
+
case "7D":
|
|
12
|
+
return { timeframe: "day", aggregate: 1, limit: 7 };
|
|
13
|
+
case "30D":
|
|
14
|
+
return { timeframe: "day", aggregate: 1, limit: 30 };
|
|
15
|
+
case "1Y":
|
|
16
|
+
return { timeframe: "day", aggregate: 1, limit: 365 };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
async function fetchPriceHistory(range) {
|
|
20
|
+
const { timeframe, aggregate, limit } = getOHLCVParams(range);
|
|
21
|
+
const url = `${API_BASE}/networks/solana/pools/${MCC_POOL_ADDRESS}/ohlcv/${timeframe}?aggregate=${aggregate}&limit=${limit}¤cy=usd`;
|
|
22
|
+
const response = await fetch(url, {
|
|
23
|
+
headers: {
|
|
24
|
+
"Accept": "application/json",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
if (!response.ok) {
|
|
28
|
+
throw new Error(`GeckoTerminal API error: ${response.status}`);
|
|
29
|
+
}
|
|
30
|
+
const json = await response.json();
|
|
31
|
+
const ohlcvList = json?.data?.attributes?.ohlcv_list;
|
|
32
|
+
if (!Array.isArray(ohlcvList)) {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
return ohlcvList.map((item) => ({
|
|
36
|
+
timestamp: item[0],
|
|
37
|
+
open: item[1],
|
|
38
|
+
high: item[2],
|
|
39
|
+
low: item[3],
|
|
40
|
+
close: item[4],
|
|
41
|
+
volume: item[5],
|
|
42
|
+
})).sort((a, b) => a.timestamp - b.timestamp);
|
|
43
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { fetchApi, getCurrentUserToken } from './core';
|
|
2
|
+
export declare const apiService: {
|
|
3
|
+
get: (endpoint: string) => Promise<any>;
|
|
4
|
+
post: (endpoint: string, data?: unknown) => Promise<any>;
|
|
5
|
+
put: (endpoint: string, data?: unknown) => Promise<any>;
|
|
6
|
+
delete: (endpoint: string) => Promise<any>;
|
|
7
|
+
};
|
|
8
|
+
export { getStrategies, getStrategyDetails, startStrategy, stopStrategy, createStrategy, deleteStrategy, updateStrategy, getEnergyOrders, getEnergyHistory, batchPreviewStrategies, batchUpdateStrategies, getBatchHistory } from './strategies';
|
|
9
|
+
export { getAccountInfo, getAccountInfoRaw, getUserProfile, getBalanceHistory, getTradeHistory, saveApiKey, getKeyHistory, getAllExchangeAccounts, getExchangeAccounts, saveApiKeys, deleteApiKeys, getUserLogs, getUserSymbols, addUserSymbol, getFundPoolInfo, updateFundPoolSettings, getCurrentUserProfile, getUserList, updateUserRole, dbHealthCheck, getTraderPermissions, getTraderPermission, updateTraderPermission, deleteTraderPermission } from './account';
|
|
10
|
+
export { getSystemSettings, updateSystemSettings, auditStrategy, listUserStrategies, getUserStrategySnapshot, getCoinRankings, getCoinMarketTiers, refreshCoinRankings, searchCoin, getCoinAmplitudeHistory, getBtcSignal, getSurfingRanking, analyzeSurfingSymbol, getSurfingSignals, getSurfingHistory, getAmplitudeRankingsV2, getAmplitudeSymbolDetail, getAmplitudeTrackedSymbols, refreshAmplitudeData, getAmplitudeHistorySnapshots } from './admin';
|
|
11
|
+
export { getPnLAnalysis, getTradingStats, getRiskMetrics, getStrategyPerformance, getSymbolAnalysis, getTimeAnalysis, getCapitalAnalysis, getFeeAnalysis, getOrderSourceAnalysis } from './analytics';
|
|
12
|
+
export type { TradingStatsData, RiskMetricsData, StrategyPerformanceData, SymbolAnalysisData, TimeAnalysisData, CapitalAnalysisData, FeeAnalysisData, OrderSourceAnalysisData, PnLAnalysisData } from './analytics';
|
|
13
|
+
export { getAIProducts, getAIProductDetail, submitAIRequest, getUserAIRequests, getAIRequestDetail, cancelAIRequest, stopAIStrategy, getPendingAIRequests, acceptAIRequest, configureAIStrategy, startAIStrategy, rejectAIRequest, chatWithAIProduct, getMyAIRequests, getUnits, getUnitDetails, createUnit, updateUnit, deleteUnit, getUnitMembers, getTerritoryNameStatus, updateTerritoryName, getActiveAuctions, getAuctionDetails, createAuction, placeBid, endAuction, getAuctionHistory, getMyBids, refundDeposit, getMCCBalance, getMCCLockPeriods, getMCCMintingHistory, getMCCMintingStats, withdrawMCC, getMCCWithdrawalHistory, getMCCHistory, getRechargeHistory, withdrawFromPDA, getPDABalance, getPDAAddress, getUserRank, getUserLevelProgress, getMiningWeight, getLevelSystemConfig, getLevelProfile, getLevelProfileByWallet, getUserLevelStatus, getStationKPI, getTechBonus, getDistributionPlans, setUnitDistributionPlan, getVaultBalance, getVaultRecords, executeVaultDistribution, depositToVault, getUnitsSummary, getUnitDetailedStats, getUnitIncomeChart, getUnitKPIHistory, getUnitMemberRanking, cancelBinanceOrder, placeBinanceOrder, modifyBinanceOrder, joinStation, leaveStation, joinStationQueue, getQueueStatus, cancelQueue, getAdminQueueStatus, processQueue, checkExpansionNeeded, triggerExpansion, getStationIncome, getManagerIncome, getTeamCustodySummary, getMCDBalance, getMCDTransactions, getMCDDailyRewards, spendMCD, checkMiningWallet, createMiningRequest, confirmMiningPayment, buildMiningTransaction, getMiningRatio, getMiningRequestStatus, getX402MiningHistory, getTerritoryNftCollection, getTerritoryNftMetadata, getUserTerritoryNfts, getUnitTerritoryNft, prepareMintTerritoryNft, prepareTransferTerritoryNft, getOnchainAuctionConfig, getActiveOnchainAuctions, getOnchainAuctionDetails, getOnchainAuctionBids, getUserOnchainBids, getUserOnchainAuctions, prepareCreateOnchainAuction, preparePlaceOnchainBid, prepareSettleOnchainAuction, prepareCancelOnchainAuction, getFragmentConfig, getFragmentVaults, getFragmentVault, getUserFragmentHoldings, getVaultHolders, prepareFragmentize, prepareBuyFragment, prepareRedeemNft, getLendingPool, getLendingPoolStats, getUserLendingPosition, getUserLoans, getLoanDetails, getLpBalance, calculateLendingInterest, estimateBorrowCost, prepareLendingDeposit, prepareLendingWithdraw, prepareLendingBorrow, prepareLendingRepay, prepareLendingLiquidate, getPublicMiningPreflight, createPublicMiningRequest, buildPublicMcdTransaction, confirmPublicMiningPayment } from './services';
|
|
14
|
+
export { getWalletBalance, getMCCBalance as getBlockchainMCCBalance, refreshWalletBalance, invalidateWalletCache, getPoolStatus, getTokenFromBalance, formatTokenBalance } from './blockchain';
|
|
15
|
+
export type { TokenBalance, WalletBalance, PoolStatus } from './blockchain';
|
|
16
|
+
export type { TerritoryNameStatus, TerritoryNameUpdateResult } from './services';
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBtcSignal = exports.getCoinAmplitudeHistory = exports.searchCoin = exports.refreshCoinRankings = exports.getCoinMarketTiers = exports.getCoinRankings = exports.getUserStrategySnapshot = exports.listUserStrategies = exports.auditStrategy = exports.updateSystemSettings = exports.getSystemSettings = exports.deleteTraderPermission = exports.updateTraderPermission = exports.getTraderPermission = exports.getTraderPermissions = exports.dbHealthCheck = exports.updateUserRole = exports.getUserList = exports.getCurrentUserProfile = exports.updateFundPoolSettings = exports.getFundPoolInfo = exports.addUserSymbol = exports.getUserSymbols = exports.getUserLogs = exports.deleteApiKeys = exports.saveApiKeys = exports.getExchangeAccounts = exports.getAllExchangeAccounts = exports.getKeyHistory = exports.saveApiKey = exports.getTradeHistory = exports.getBalanceHistory = exports.getUserProfile = exports.getAccountInfoRaw = exports.getAccountInfo = exports.getBatchHistory = exports.batchUpdateStrategies = exports.batchPreviewStrategies = exports.getEnergyHistory = exports.getEnergyOrders = exports.updateStrategy = exports.deleteStrategy = exports.createStrategy = exports.stopStrategy = exports.startStrategy = exports.getStrategyDetails = exports.getStrategies = exports.apiService = exports.getCurrentUserToken = exports.fetchApi = void 0;
|
|
4
|
+
exports.getMCCLockPeriods = exports.getMCCBalance = exports.refundDeposit = exports.getMyBids = exports.getAuctionHistory = exports.endAuction = exports.placeBid = exports.createAuction = exports.getAuctionDetails = exports.getActiveAuctions = exports.updateTerritoryName = exports.getTerritoryNameStatus = exports.getUnitMembers = exports.deleteUnit = exports.updateUnit = exports.createUnit = exports.getUnitDetails = exports.getUnits = exports.getMyAIRequests = exports.chatWithAIProduct = exports.rejectAIRequest = exports.startAIStrategy = exports.configureAIStrategy = exports.acceptAIRequest = exports.getPendingAIRequests = exports.stopAIStrategy = exports.cancelAIRequest = exports.getAIRequestDetail = exports.getUserAIRequests = exports.submitAIRequest = exports.getAIProductDetail = exports.getAIProducts = exports.getOrderSourceAnalysis = exports.getFeeAnalysis = exports.getCapitalAnalysis = exports.getTimeAnalysis = exports.getSymbolAnalysis = exports.getStrategyPerformance = exports.getRiskMetrics = exports.getTradingStats = exports.getPnLAnalysis = exports.getAmplitudeHistorySnapshots = exports.refreshAmplitudeData = exports.getAmplitudeTrackedSymbols = exports.getAmplitudeSymbolDetail = exports.getAmplitudeRankingsV2 = exports.getSurfingHistory = exports.getSurfingSignals = exports.analyzeSurfingSymbol = exports.getSurfingRanking = void 0;
|
|
5
|
+
exports.createMiningRequest = exports.checkMiningWallet = exports.spendMCD = exports.getMCDDailyRewards = exports.getMCDTransactions = exports.getMCDBalance = exports.getTeamCustodySummary = exports.getManagerIncome = exports.getStationIncome = exports.triggerExpansion = exports.checkExpansionNeeded = exports.processQueue = exports.getAdminQueueStatus = exports.cancelQueue = exports.getQueueStatus = exports.joinStationQueue = exports.leaveStation = exports.joinStation = exports.modifyBinanceOrder = exports.placeBinanceOrder = exports.cancelBinanceOrder = exports.getUnitMemberRanking = exports.getUnitKPIHistory = exports.getUnitIncomeChart = exports.getUnitDetailedStats = exports.getUnitsSummary = exports.depositToVault = exports.executeVaultDistribution = exports.getVaultRecords = exports.getVaultBalance = exports.setUnitDistributionPlan = exports.getDistributionPlans = exports.getTechBonus = exports.getStationKPI = exports.getUserLevelStatus = exports.getLevelProfileByWallet = exports.getLevelProfile = exports.getLevelSystemConfig = exports.getMiningWeight = exports.getUserLevelProgress = exports.getUserRank = exports.getPDAAddress = exports.getPDABalance = exports.withdrawFromPDA = exports.getRechargeHistory = exports.getMCCHistory = exports.getMCCWithdrawalHistory = exports.withdrawMCC = exports.getMCCMintingStats = exports.getMCCMintingHistory = void 0;
|
|
6
|
+
exports.invalidateWalletCache = exports.refreshWalletBalance = exports.getBlockchainMCCBalance = exports.getWalletBalance = exports.confirmPublicMiningPayment = exports.buildPublicMcdTransaction = exports.createPublicMiningRequest = exports.getPublicMiningPreflight = exports.prepareLendingLiquidate = exports.prepareLendingRepay = exports.prepareLendingBorrow = exports.prepareLendingWithdraw = exports.prepareLendingDeposit = exports.estimateBorrowCost = exports.calculateLendingInterest = exports.getLpBalance = exports.getLoanDetails = exports.getUserLoans = exports.getUserLendingPosition = exports.getLendingPoolStats = exports.getLendingPool = exports.prepareRedeemNft = exports.prepareBuyFragment = exports.prepareFragmentize = exports.getVaultHolders = exports.getUserFragmentHoldings = exports.getFragmentVault = exports.getFragmentVaults = exports.getFragmentConfig = exports.prepareCancelOnchainAuction = exports.prepareSettleOnchainAuction = exports.preparePlaceOnchainBid = exports.prepareCreateOnchainAuction = exports.getUserOnchainAuctions = exports.getUserOnchainBids = exports.getOnchainAuctionBids = exports.getOnchainAuctionDetails = exports.getActiveOnchainAuctions = exports.getOnchainAuctionConfig = exports.prepareTransferTerritoryNft = exports.prepareMintTerritoryNft = exports.getUnitTerritoryNft = exports.getUserTerritoryNfts = exports.getTerritoryNftMetadata = exports.getTerritoryNftCollection = exports.getX402MiningHistory = exports.getMiningRequestStatus = exports.getMiningRatio = exports.buildMiningTransaction = exports.confirmMiningPayment = void 0;
|
|
7
|
+
exports.formatTokenBalance = exports.getTokenFromBalance = exports.getPoolStatus = void 0;
|
|
8
|
+
// AI-generated · AI-managed · AI-maintained
|
|
9
|
+
var core_1 = require("./core");
|
|
10
|
+
Object.defineProperty(exports, "fetchApi", { enumerable: true, get: function () { return core_1.fetchApi; } });
|
|
11
|
+
Object.defineProperty(exports, "getCurrentUserToken", { enumerable: true, get: function () { return core_1.getCurrentUserToken; } });
|
|
12
|
+
const core_2 = require("./core");
|
|
13
|
+
exports.apiService = {
|
|
14
|
+
get: (endpoint) => (0, core_2.fetchApi)(endpoint, { method: 'GET' }),
|
|
15
|
+
post: (endpoint, data) => (0, core_2.fetchApi)(endpoint, {
|
|
16
|
+
method: 'POST',
|
|
17
|
+
body: data ? JSON.stringify(data) : undefined
|
|
18
|
+
}),
|
|
19
|
+
put: (endpoint, data) => (0, core_2.fetchApi)(endpoint, {
|
|
20
|
+
method: 'PUT',
|
|
21
|
+
body: data ? JSON.stringify(data) : undefined
|
|
22
|
+
}),
|
|
23
|
+
delete: (endpoint) => (0, core_2.fetchApi)(endpoint, { method: 'DELETE' }),
|
|
24
|
+
};
|
|
25
|
+
var strategies_1 = require("./strategies");
|
|
26
|
+
Object.defineProperty(exports, "getStrategies", { enumerable: true, get: function () { return strategies_1.getStrategies; } });
|
|
27
|
+
Object.defineProperty(exports, "getStrategyDetails", { enumerable: true, get: function () { return strategies_1.getStrategyDetails; } });
|
|
28
|
+
Object.defineProperty(exports, "startStrategy", { enumerable: true, get: function () { return strategies_1.startStrategy; } });
|
|
29
|
+
Object.defineProperty(exports, "stopStrategy", { enumerable: true, get: function () { return strategies_1.stopStrategy; } });
|
|
30
|
+
Object.defineProperty(exports, "createStrategy", { enumerable: true, get: function () { return strategies_1.createStrategy; } });
|
|
31
|
+
Object.defineProperty(exports, "deleteStrategy", { enumerable: true, get: function () { return strategies_1.deleteStrategy; } });
|
|
32
|
+
Object.defineProperty(exports, "updateStrategy", { enumerable: true, get: function () { return strategies_1.updateStrategy; } });
|
|
33
|
+
Object.defineProperty(exports, "getEnergyOrders", { enumerable: true, get: function () { return strategies_1.getEnergyOrders; } });
|
|
34
|
+
Object.defineProperty(exports, "getEnergyHistory", { enumerable: true, get: function () { return strategies_1.getEnergyHistory; } });
|
|
35
|
+
Object.defineProperty(exports, "batchPreviewStrategies", { enumerable: true, get: function () { return strategies_1.batchPreviewStrategies; } });
|
|
36
|
+
Object.defineProperty(exports, "batchUpdateStrategies", { enumerable: true, get: function () { return strategies_1.batchUpdateStrategies; } });
|
|
37
|
+
Object.defineProperty(exports, "getBatchHistory", { enumerable: true, get: function () { return strategies_1.getBatchHistory; } });
|
|
38
|
+
var account_1 = require("./account");
|
|
39
|
+
Object.defineProperty(exports, "getAccountInfo", { enumerable: true, get: function () { return account_1.getAccountInfo; } });
|
|
40
|
+
Object.defineProperty(exports, "getAccountInfoRaw", { enumerable: true, get: function () { return account_1.getAccountInfoRaw; } });
|
|
41
|
+
Object.defineProperty(exports, "getUserProfile", { enumerable: true, get: function () { return account_1.getUserProfile; } });
|
|
42
|
+
Object.defineProperty(exports, "getBalanceHistory", { enumerable: true, get: function () { return account_1.getBalanceHistory; } });
|
|
43
|
+
Object.defineProperty(exports, "getTradeHistory", { enumerable: true, get: function () { return account_1.getTradeHistory; } });
|
|
44
|
+
Object.defineProperty(exports, "saveApiKey", { enumerable: true, get: function () { return account_1.saveApiKey; } });
|
|
45
|
+
Object.defineProperty(exports, "getKeyHistory", { enumerable: true, get: function () { return account_1.getKeyHistory; } });
|
|
46
|
+
Object.defineProperty(exports, "getAllExchangeAccounts", { enumerable: true, get: function () { return account_1.getAllExchangeAccounts; } });
|
|
47
|
+
Object.defineProperty(exports, "getExchangeAccounts", { enumerable: true, get: function () { return account_1.getExchangeAccounts; } });
|
|
48
|
+
Object.defineProperty(exports, "saveApiKeys", { enumerable: true, get: function () { return account_1.saveApiKeys; } });
|
|
49
|
+
Object.defineProperty(exports, "deleteApiKeys", { enumerable: true, get: function () { return account_1.deleteApiKeys; } });
|
|
50
|
+
Object.defineProperty(exports, "getUserLogs", { enumerable: true, get: function () { return account_1.getUserLogs; } });
|
|
51
|
+
Object.defineProperty(exports, "getUserSymbols", { enumerable: true, get: function () { return account_1.getUserSymbols; } });
|
|
52
|
+
Object.defineProperty(exports, "addUserSymbol", { enumerable: true, get: function () { return account_1.addUserSymbol; } });
|
|
53
|
+
Object.defineProperty(exports, "getFundPoolInfo", { enumerable: true, get: function () { return account_1.getFundPoolInfo; } });
|
|
54
|
+
Object.defineProperty(exports, "updateFundPoolSettings", { enumerable: true, get: function () { return account_1.updateFundPoolSettings; } });
|
|
55
|
+
Object.defineProperty(exports, "getCurrentUserProfile", { enumerable: true, get: function () { return account_1.getCurrentUserProfile; } });
|
|
56
|
+
Object.defineProperty(exports, "getUserList", { enumerable: true, get: function () { return account_1.getUserList; } });
|
|
57
|
+
Object.defineProperty(exports, "updateUserRole", { enumerable: true, get: function () { return account_1.updateUserRole; } });
|
|
58
|
+
Object.defineProperty(exports, "dbHealthCheck", { enumerable: true, get: function () { return account_1.dbHealthCheck; } });
|
|
59
|
+
Object.defineProperty(exports, "getTraderPermissions", { enumerable: true, get: function () { return account_1.getTraderPermissions; } });
|
|
60
|
+
Object.defineProperty(exports, "getTraderPermission", { enumerable: true, get: function () { return account_1.getTraderPermission; } });
|
|
61
|
+
Object.defineProperty(exports, "updateTraderPermission", { enumerable: true, get: function () { return account_1.updateTraderPermission; } });
|
|
62
|
+
Object.defineProperty(exports, "deleteTraderPermission", { enumerable: true, get: function () { return account_1.deleteTraderPermission; } });
|
|
63
|
+
var admin_1 = require("./admin");
|
|
64
|
+
Object.defineProperty(exports, "getSystemSettings", { enumerable: true, get: function () { return admin_1.getSystemSettings; } });
|
|
65
|
+
Object.defineProperty(exports, "updateSystemSettings", { enumerable: true, get: function () { return admin_1.updateSystemSettings; } });
|
|
66
|
+
Object.defineProperty(exports, "auditStrategy", { enumerable: true, get: function () { return admin_1.auditStrategy; } });
|
|
67
|
+
Object.defineProperty(exports, "listUserStrategies", { enumerable: true, get: function () { return admin_1.listUserStrategies; } });
|
|
68
|
+
Object.defineProperty(exports, "getUserStrategySnapshot", { enumerable: true, get: function () { return admin_1.getUserStrategySnapshot; } });
|
|
69
|
+
Object.defineProperty(exports, "getCoinRankings", { enumerable: true, get: function () { return admin_1.getCoinRankings; } });
|
|
70
|
+
Object.defineProperty(exports, "getCoinMarketTiers", { enumerable: true, get: function () { return admin_1.getCoinMarketTiers; } });
|
|
71
|
+
Object.defineProperty(exports, "refreshCoinRankings", { enumerable: true, get: function () { return admin_1.refreshCoinRankings; } });
|
|
72
|
+
Object.defineProperty(exports, "searchCoin", { enumerable: true, get: function () { return admin_1.searchCoin; } });
|
|
73
|
+
Object.defineProperty(exports, "getCoinAmplitudeHistory", { enumerable: true, get: function () { return admin_1.getCoinAmplitudeHistory; } });
|
|
74
|
+
Object.defineProperty(exports, "getBtcSignal", { enumerable: true, get: function () { return admin_1.getBtcSignal; } });
|
|
75
|
+
Object.defineProperty(exports, "getSurfingRanking", { enumerable: true, get: function () { return admin_1.getSurfingRanking; } });
|
|
76
|
+
Object.defineProperty(exports, "analyzeSurfingSymbol", { enumerable: true, get: function () { return admin_1.analyzeSurfingSymbol; } });
|
|
77
|
+
Object.defineProperty(exports, "getSurfingSignals", { enumerable: true, get: function () { return admin_1.getSurfingSignals; } });
|
|
78
|
+
Object.defineProperty(exports, "getSurfingHistory", { enumerable: true, get: function () { return admin_1.getSurfingHistory; } });
|
|
79
|
+
Object.defineProperty(exports, "getAmplitudeRankingsV2", { enumerable: true, get: function () { return admin_1.getAmplitudeRankingsV2; } });
|
|
80
|
+
Object.defineProperty(exports, "getAmplitudeSymbolDetail", { enumerable: true, get: function () { return admin_1.getAmplitudeSymbolDetail; } });
|
|
81
|
+
Object.defineProperty(exports, "getAmplitudeTrackedSymbols", { enumerable: true, get: function () { return admin_1.getAmplitudeTrackedSymbols; } });
|
|
82
|
+
Object.defineProperty(exports, "refreshAmplitudeData", { enumerable: true, get: function () { return admin_1.refreshAmplitudeData; } });
|
|
83
|
+
Object.defineProperty(exports, "getAmplitudeHistorySnapshots", { enumerable: true, get: function () { return admin_1.getAmplitudeHistorySnapshots; } });
|
|
84
|
+
var analytics_1 = require("./analytics");
|
|
85
|
+
Object.defineProperty(exports, "getPnLAnalysis", { enumerable: true, get: function () { return analytics_1.getPnLAnalysis; } });
|
|
86
|
+
Object.defineProperty(exports, "getTradingStats", { enumerable: true, get: function () { return analytics_1.getTradingStats; } });
|
|
87
|
+
Object.defineProperty(exports, "getRiskMetrics", { enumerable: true, get: function () { return analytics_1.getRiskMetrics; } });
|
|
88
|
+
Object.defineProperty(exports, "getStrategyPerformance", { enumerable: true, get: function () { return analytics_1.getStrategyPerformance; } });
|
|
89
|
+
Object.defineProperty(exports, "getSymbolAnalysis", { enumerable: true, get: function () { return analytics_1.getSymbolAnalysis; } });
|
|
90
|
+
Object.defineProperty(exports, "getTimeAnalysis", { enumerable: true, get: function () { return analytics_1.getTimeAnalysis; } });
|
|
91
|
+
Object.defineProperty(exports, "getCapitalAnalysis", { enumerable: true, get: function () { return analytics_1.getCapitalAnalysis; } });
|
|
92
|
+
Object.defineProperty(exports, "getFeeAnalysis", { enumerable: true, get: function () { return analytics_1.getFeeAnalysis; } });
|
|
93
|
+
Object.defineProperty(exports, "getOrderSourceAnalysis", { enumerable: true, get: function () { return analytics_1.getOrderSourceAnalysis; } });
|
|
94
|
+
var services_1 = require("./services");
|
|
95
|
+
Object.defineProperty(exports, "getAIProducts", { enumerable: true, get: function () { return services_1.getAIProducts; } });
|
|
96
|
+
Object.defineProperty(exports, "getAIProductDetail", { enumerable: true, get: function () { return services_1.getAIProductDetail; } });
|
|
97
|
+
Object.defineProperty(exports, "submitAIRequest", { enumerable: true, get: function () { return services_1.submitAIRequest; } });
|
|
98
|
+
Object.defineProperty(exports, "getUserAIRequests", { enumerable: true, get: function () { return services_1.getUserAIRequests; } });
|
|
99
|
+
Object.defineProperty(exports, "getAIRequestDetail", { enumerable: true, get: function () { return services_1.getAIRequestDetail; } });
|
|
100
|
+
Object.defineProperty(exports, "cancelAIRequest", { enumerable: true, get: function () { return services_1.cancelAIRequest; } });
|
|
101
|
+
Object.defineProperty(exports, "stopAIStrategy", { enumerable: true, get: function () { return services_1.stopAIStrategy; } });
|
|
102
|
+
Object.defineProperty(exports, "getPendingAIRequests", { enumerable: true, get: function () { return services_1.getPendingAIRequests; } });
|
|
103
|
+
Object.defineProperty(exports, "acceptAIRequest", { enumerable: true, get: function () { return services_1.acceptAIRequest; } });
|
|
104
|
+
Object.defineProperty(exports, "configureAIStrategy", { enumerable: true, get: function () { return services_1.configureAIStrategy; } });
|
|
105
|
+
Object.defineProperty(exports, "startAIStrategy", { enumerable: true, get: function () { return services_1.startAIStrategy; } });
|
|
106
|
+
Object.defineProperty(exports, "rejectAIRequest", { enumerable: true, get: function () { return services_1.rejectAIRequest; } });
|
|
107
|
+
Object.defineProperty(exports, "chatWithAIProduct", { enumerable: true, get: function () { return services_1.chatWithAIProduct; } });
|
|
108
|
+
Object.defineProperty(exports, "getMyAIRequests", { enumerable: true, get: function () { return services_1.getMyAIRequests; } });
|
|
109
|
+
Object.defineProperty(exports, "getUnits", { enumerable: true, get: function () { return services_1.getUnits; } });
|
|
110
|
+
Object.defineProperty(exports, "getUnitDetails", { enumerable: true, get: function () { return services_1.getUnitDetails; } });
|
|
111
|
+
Object.defineProperty(exports, "createUnit", { enumerable: true, get: function () { return services_1.createUnit; } });
|
|
112
|
+
Object.defineProperty(exports, "updateUnit", { enumerable: true, get: function () { return services_1.updateUnit; } });
|
|
113
|
+
Object.defineProperty(exports, "deleteUnit", { enumerable: true, get: function () { return services_1.deleteUnit; } });
|
|
114
|
+
Object.defineProperty(exports, "getUnitMembers", { enumerable: true, get: function () { return services_1.getUnitMembers; } });
|
|
115
|
+
Object.defineProperty(exports, "getTerritoryNameStatus", { enumerable: true, get: function () { return services_1.getTerritoryNameStatus; } });
|
|
116
|
+
Object.defineProperty(exports, "updateTerritoryName", { enumerable: true, get: function () { return services_1.updateTerritoryName; } });
|
|
117
|
+
Object.defineProperty(exports, "getActiveAuctions", { enumerable: true, get: function () { return services_1.getActiveAuctions; } });
|
|
118
|
+
Object.defineProperty(exports, "getAuctionDetails", { enumerable: true, get: function () { return services_1.getAuctionDetails; } });
|
|
119
|
+
Object.defineProperty(exports, "createAuction", { enumerable: true, get: function () { return services_1.createAuction; } });
|
|
120
|
+
Object.defineProperty(exports, "placeBid", { enumerable: true, get: function () { return services_1.placeBid; } });
|
|
121
|
+
Object.defineProperty(exports, "endAuction", { enumerable: true, get: function () { return services_1.endAuction; } });
|
|
122
|
+
Object.defineProperty(exports, "getAuctionHistory", { enumerable: true, get: function () { return services_1.getAuctionHistory; } });
|
|
123
|
+
Object.defineProperty(exports, "getMyBids", { enumerable: true, get: function () { return services_1.getMyBids; } });
|
|
124
|
+
Object.defineProperty(exports, "refundDeposit", { enumerable: true, get: function () { return services_1.refundDeposit; } });
|
|
125
|
+
Object.defineProperty(exports, "getMCCBalance", { enumerable: true, get: function () { return services_1.getMCCBalance; } });
|
|
126
|
+
Object.defineProperty(exports, "getMCCLockPeriods", { enumerable: true, get: function () { return services_1.getMCCLockPeriods; } });
|
|
127
|
+
Object.defineProperty(exports, "getMCCMintingHistory", { enumerable: true, get: function () { return services_1.getMCCMintingHistory; } });
|
|
128
|
+
Object.defineProperty(exports, "getMCCMintingStats", { enumerable: true, get: function () { return services_1.getMCCMintingStats; } });
|
|
129
|
+
Object.defineProperty(exports, "withdrawMCC", { enumerable: true, get: function () { return services_1.withdrawMCC; } });
|
|
130
|
+
Object.defineProperty(exports, "getMCCWithdrawalHistory", { enumerable: true, get: function () { return services_1.getMCCWithdrawalHistory; } });
|
|
131
|
+
Object.defineProperty(exports, "getMCCHistory", { enumerable: true, get: function () { return services_1.getMCCHistory; } });
|
|
132
|
+
Object.defineProperty(exports, "getRechargeHistory", { enumerable: true, get: function () { return services_1.getRechargeHistory; } });
|
|
133
|
+
Object.defineProperty(exports, "withdrawFromPDA", { enumerable: true, get: function () { return services_1.withdrawFromPDA; } });
|
|
134
|
+
Object.defineProperty(exports, "getPDABalance", { enumerable: true, get: function () { return services_1.getPDABalance; } });
|
|
135
|
+
Object.defineProperty(exports, "getPDAAddress", { enumerable: true, get: function () { return services_1.getPDAAddress; } });
|
|
136
|
+
Object.defineProperty(exports, "getUserRank", { enumerable: true, get: function () { return services_1.getUserRank; } });
|
|
137
|
+
Object.defineProperty(exports, "getUserLevelProgress", { enumerable: true, get: function () { return services_1.getUserLevelProgress; } });
|
|
138
|
+
Object.defineProperty(exports, "getMiningWeight", { enumerable: true, get: function () { return services_1.getMiningWeight; } });
|
|
139
|
+
Object.defineProperty(exports, "getLevelSystemConfig", { enumerable: true, get: function () { return services_1.getLevelSystemConfig; } });
|
|
140
|
+
Object.defineProperty(exports, "getLevelProfile", { enumerable: true, get: function () { return services_1.getLevelProfile; } });
|
|
141
|
+
Object.defineProperty(exports, "getLevelProfileByWallet", { enumerable: true, get: function () { return services_1.getLevelProfileByWallet; } });
|
|
142
|
+
Object.defineProperty(exports, "getUserLevelStatus", { enumerable: true, get: function () { return services_1.getUserLevelStatus; } });
|
|
143
|
+
Object.defineProperty(exports, "getStationKPI", { enumerable: true, get: function () { return services_1.getStationKPI; } });
|
|
144
|
+
Object.defineProperty(exports, "getTechBonus", { enumerable: true, get: function () { return services_1.getTechBonus; } });
|
|
145
|
+
Object.defineProperty(exports, "getDistributionPlans", { enumerable: true, get: function () { return services_1.getDistributionPlans; } });
|
|
146
|
+
Object.defineProperty(exports, "setUnitDistributionPlan", { enumerable: true, get: function () { return services_1.setUnitDistributionPlan; } });
|
|
147
|
+
Object.defineProperty(exports, "getVaultBalance", { enumerable: true, get: function () { return services_1.getVaultBalance; } });
|
|
148
|
+
Object.defineProperty(exports, "getVaultRecords", { enumerable: true, get: function () { return services_1.getVaultRecords; } });
|
|
149
|
+
Object.defineProperty(exports, "executeVaultDistribution", { enumerable: true, get: function () { return services_1.executeVaultDistribution; } });
|
|
150
|
+
Object.defineProperty(exports, "depositToVault", { enumerable: true, get: function () { return services_1.depositToVault; } });
|
|
151
|
+
Object.defineProperty(exports, "getUnitsSummary", { enumerable: true, get: function () { return services_1.getUnitsSummary; } });
|
|
152
|
+
Object.defineProperty(exports, "getUnitDetailedStats", { enumerable: true, get: function () { return services_1.getUnitDetailedStats; } });
|
|
153
|
+
Object.defineProperty(exports, "getUnitIncomeChart", { enumerable: true, get: function () { return services_1.getUnitIncomeChart; } });
|
|
154
|
+
Object.defineProperty(exports, "getUnitKPIHistory", { enumerable: true, get: function () { return services_1.getUnitKPIHistory; } });
|
|
155
|
+
Object.defineProperty(exports, "getUnitMemberRanking", { enumerable: true, get: function () { return services_1.getUnitMemberRanking; } });
|
|
156
|
+
Object.defineProperty(exports, "cancelBinanceOrder", { enumerable: true, get: function () { return services_1.cancelBinanceOrder; } });
|
|
157
|
+
Object.defineProperty(exports, "placeBinanceOrder", { enumerable: true, get: function () { return services_1.placeBinanceOrder; } });
|
|
158
|
+
Object.defineProperty(exports, "modifyBinanceOrder", { enumerable: true, get: function () { return services_1.modifyBinanceOrder; } });
|
|
159
|
+
Object.defineProperty(exports, "joinStation", { enumerable: true, get: function () { return services_1.joinStation; } });
|
|
160
|
+
Object.defineProperty(exports, "leaveStation", { enumerable: true, get: function () { return services_1.leaveStation; } });
|
|
161
|
+
Object.defineProperty(exports, "joinStationQueue", { enumerable: true, get: function () { return services_1.joinStationQueue; } });
|
|
162
|
+
Object.defineProperty(exports, "getQueueStatus", { enumerable: true, get: function () { return services_1.getQueueStatus; } });
|
|
163
|
+
Object.defineProperty(exports, "cancelQueue", { enumerable: true, get: function () { return services_1.cancelQueue; } });
|
|
164
|
+
Object.defineProperty(exports, "getAdminQueueStatus", { enumerable: true, get: function () { return services_1.getAdminQueueStatus; } });
|
|
165
|
+
Object.defineProperty(exports, "processQueue", { enumerable: true, get: function () { return services_1.processQueue; } });
|
|
166
|
+
Object.defineProperty(exports, "checkExpansionNeeded", { enumerable: true, get: function () { return services_1.checkExpansionNeeded; } });
|
|
167
|
+
Object.defineProperty(exports, "triggerExpansion", { enumerable: true, get: function () { return services_1.triggerExpansion; } });
|
|
168
|
+
Object.defineProperty(exports, "getStationIncome", { enumerable: true, get: function () { return services_1.getStationIncome; } });
|
|
169
|
+
Object.defineProperty(exports, "getManagerIncome", { enumerable: true, get: function () { return services_1.getManagerIncome; } });
|
|
170
|
+
Object.defineProperty(exports, "getTeamCustodySummary", { enumerable: true, get: function () { return services_1.getTeamCustodySummary; } });
|
|
171
|
+
Object.defineProperty(exports, "getMCDBalance", { enumerable: true, get: function () { return services_1.getMCDBalance; } });
|
|
172
|
+
Object.defineProperty(exports, "getMCDTransactions", { enumerable: true, get: function () { return services_1.getMCDTransactions; } });
|
|
173
|
+
Object.defineProperty(exports, "getMCDDailyRewards", { enumerable: true, get: function () { return services_1.getMCDDailyRewards; } });
|
|
174
|
+
Object.defineProperty(exports, "spendMCD", { enumerable: true, get: function () { return services_1.spendMCD; } });
|
|
175
|
+
Object.defineProperty(exports, "checkMiningWallet", { enumerable: true, get: function () { return services_1.checkMiningWallet; } });
|
|
176
|
+
Object.defineProperty(exports, "createMiningRequest", { enumerable: true, get: function () { return services_1.createMiningRequest; } });
|
|
177
|
+
Object.defineProperty(exports, "confirmMiningPayment", { enumerable: true, get: function () { return services_1.confirmMiningPayment; } });
|
|
178
|
+
Object.defineProperty(exports, "buildMiningTransaction", { enumerable: true, get: function () { return services_1.buildMiningTransaction; } });
|
|
179
|
+
Object.defineProperty(exports, "getMiningRatio", { enumerable: true, get: function () { return services_1.getMiningRatio; } });
|
|
180
|
+
Object.defineProperty(exports, "getMiningRequestStatus", { enumerable: true, get: function () { return services_1.getMiningRequestStatus; } });
|
|
181
|
+
Object.defineProperty(exports, "getX402MiningHistory", { enumerable: true, get: function () { return services_1.getX402MiningHistory; } });
|
|
182
|
+
Object.defineProperty(exports, "getTerritoryNftCollection", { enumerable: true, get: function () { return services_1.getTerritoryNftCollection; } });
|
|
183
|
+
Object.defineProperty(exports, "getTerritoryNftMetadata", { enumerable: true, get: function () { return services_1.getTerritoryNftMetadata; } });
|
|
184
|
+
Object.defineProperty(exports, "getUserTerritoryNfts", { enumerable: true, get: function () { return services_1.getUserTerritoryNfts; } });
|
|
185
|
+
Object.defineProperty(exports, "getUnitTerritoryNft", { enumerable: true, get: function () { return services_1.getUnitTerritoryNft; } });
|
|
186
|
+
Object.defineProperty(exports, "prepareMintTerritoryNft", { enumerable: true, get: function () { return services_1.prepareMintTerritoryNft; } });
|
|
187
|
+
Object.defineProperty(exports, "prepareTransferTerritoryNft", { enumerable: true, get: function () { return services_1.prepareTransferTerritoryNft; } });
|
|
188
|
+
Object.defineProperty(exports, "getOnchainAuctionConfig", { enumerable: true, get: function () { return services_1.getOnchainAuctionConfig; } });
|
|
189
|
+
Object.defineProperty(exports, "getActiveOnchainAuctions", { enumerable: true, get: function () { return services_1.getActiveOnchainAuctions; } });
|
|
190
|
+
Object.defineProperty(exports, "getOnchainAuctionDetails", { enumerable: true, get: function () { return services_1.getOnchainAuctionDetails; } });
|
|
191
|
+
Object.defineProperty(exports, "getOnchainAuctionBids", { enumerable: true, get: function () { return services_1.getOnchainAuctionBids; } });
|
|
192
|
+
Object.defineProperty(exports, "getUserOnchainBids", { enumerable: true, get: function () { return services_1.getUserOnchainBids; } });
|
|
193
|
+
Object.defineProperty(exports, "getUserOnchainAuctions", { enumerable: true, get: function () { return services_1.getUserOnchainAuctions; } });
|
|
194
|
+
Object.defineProperty(exports, "prepareCreateOnchainAuction", { enumerable: true, get: function () { return services_1.prepareCreateOnchainAuction; } });
|
|
195
|
+
Object.defineProperty(exports, "preparePlaceOnchainBid", { enumerable: true, get: function () { return services_1.preparePlaceOnchainBid; } });
|
|
196
|
+
Object.defineProperty(exports, "prepareSettleOnchainAuction", { enumerable: true, get: function () { return services_1.prepareSettleOnchainAuction; } });
|
|
197
|
+
Object.defineProperty(exports, "prepareCancelOnchainAuction", { enumerable: true, get: function () { return services_1.prepareCancelOnchainAuction; } });
|
|
198
|
+
Object.defineProperty(exports, "getFragmentConfig", { enumerable: true, get: function () { return services_1.getFragmentConfig; } });
|
|
199
|
+
Object.defineProperty(exports, "getFragmentVaults", { enumerable: true, get: function () { return services_1.getFragmentVaults; } });
|
|
200
|
+
Object.defineProperty(exports, "getFragmentVault", { enumerable: true, get: function () { return services_1.getFragmentVault; } });
|
|
201
|
+
Object.defineProperty(exports, "getUserFragmentHoldings", { enumerable: true, get: function () { return services_1.getUserFragmentHoldings; } });
|
|
202
|
+
Object.defineProperty(exports, "getVaultHolders", { enumerable: true, get: function () { return services_1.getVaultHolders; } });
|
|
203
|
+
Object.defineProperty(exports, "prepareFragmentize", { enumerable: true, get: function () { return services_1.prepareFragmentize; } });
|
|
204
|
+
Object.defineProperty(exports, "prepareBuyFragment", { enumerable: true, get: function () { return services_1.prepareBuyFragment; } });
|
|
205
|
+
Object.defineProperty(exports, "prepareRedeemNft", { enumerable: true, get: function () { return services_1.prepareRedeemNft; } });
|
|
206
|
+
Object.defineProperty(exports, "getLendingPool", { enumerable: true, get: function () { return services_1.getLendingPool; } });
|
|
207
|
+
Object.defineProperty(exports, "getLendingPoolStats", { enumerable: true, get: function () { return services_1.getLendingPoolStats; } });
|
|
208
|
+
Object.defineProperty(exports, "getUserLendingPosition", { enumerable: true, get: function () { return services_1.getUserLendingPosition; } });
|
|
209
|
+
Object.defineProperty(exports, "getUserLoans", { enumerable: true, get: function () { return services_1.getUserLoans; } });
|
|
210
|
+
Object.defineProperty(exports, "getLoanDetails", { enumerable: true, get: function () { return services_1.getLoanDetails; } });
|
|
211
|
+
Object.defineProperty(exports, "getLpBalance", { enumerable: true, get: function () { return services_1.getLpBalance; } });
|
|
212
|
+
Object.defineProperty(exports, "calculateLendingInterest", { enumerable: true, get: function () { return services_1.calculateLendingInterest; } });
|
|
213
|
+
Object.defineProperty(exports, "estimateBorrowCost", { enumerable: true, get: function () { return services_1.estimateBorrowCost; } });
|
|
214
|
+
Object.defineProperty(exports, "prepareLendingDeposit", { enumerable: true, get: function () { return services_1.prepareLendingDeposit; } });
|
|
215
|
+
Object.defineProperty(exports, "prepareLendingWithdraw", { enumerable: true, get: function () { return services_1.prepareLendingWithdraw; } });
|
|
216
|
+
Object.defineProperty(exports, "prepareLendingBorrow", { enumerable: true, get: function () { return services_1.prepareLendingBorrow; } });
|
|
217
|
+
Object.defineProperty(exports, "prepareLendingRepay", { enumerable: true, get: function () { return services_1.prepareLendingRepay; } });
|
|
218
|
+
Object.defineProperty(exports, "prepareLendingLiquidate", { enumerable: true, get: function () { return services_1.prepareLendingLiquidate; } });
|
|
219
|
+
Object.defineProperty(exports, "getPublicMiningPreflight", { enumerable: true, get: function () { return services_1.getPublicMiningPreflight; } });
|
|
220
|
+
Object.defineProperty(exports, "createPublicMiningRequest", { enumerable: true, get: function () { return services_1.createPublicMiningRequest; } });
|
|
221
|
+
Object.defineProperty(exports, "buildPublicMcdTransaction", { enumerable: true, get: function () { return services_1.buildPublicMcdTransaction; } });
|
|
222
|
+
Object.defineProperty(exports, "confirmPublicMiningPayment", { enumerable: true, get: function () { return services_1.confirmPublicMiningPayment; } });
|
|
223
|
+
var blockchain_1 = require("./blockchain");
|
|
224
|
+
Object.defineProperty(exports, "getWalletBalance", { enumerable: true, get: function () { return blockchain_1.getWalletBalance; } });
|
|
225
|
+
Object.defineProperty(exports, "getBlockchainMCCBalance", { enumerable: true, get: function () { return blockchain_1.getMCCBalance; } });
|
|
226
|
+
Object.defineProperty(exports, "refreshWalletBalance", { enumerable: true, get: function () { return blockchain_1.refreshWalletBalance; } });
|
|
227
|
+
Object.defineProperty(exports, "invalidateWalletCache", { enumerable: true, get: function () { return blockchain_1.invalidateWalletCache; } });
|
|
228
|
+
Object.defineProperty(exports, "getPoolStatus", { enumerable: true, get: function () { return blockchain_1.getPoolStatus; } });
|
|
229
|
+
Object.defineProperty(exports, "getTokenFromBalance", { enumerable: true, get: function () { return blockchain_1.getTokenFromBalance; } });
|
|
230
|
+
Object.defineProperty(exports, "formatTokenBalance", { enumerable: true, get: function () { return blockchain_1.formatTokenBalance; } });
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export interface MCCHolder {
|
|
2
|
+
id: number;
|
|
3
|
+
wallet_address: string;
|
|
4
|
+
token_account: string;
|
|
5
|
+
mcc_balance: number;
|
|
6
|
+
sol_balance: number;
|
|
7
|
+
usdt_balance: number;
|
|
8
|
+
usdc_balance: number;
|
|
9
|
+
first_seen_at: string | null;
|
|
10
|
+
first_tx_signature: string | null;
|
|
11
|
+
first_tx_time: string | null;
|
|
12
|
+
last_tx_time: string | null;
|
|
13
|
+
tx_count: number;
|
|
14
|
+
buy_count: number;
|
|
15
|
+
sell_count: number;
|
|
16
|
+
total_bought: number;
|
|
17
|
+
total_sold: number;
|
|
18
|
+
holder_type: 'individual' | 'whale' | 'bot' | 'exchange' | 'team' | 'unknown';
|
|
19
|
+
holder_label: string | null;
|
|
20
|
+
is_excluded: boolean;
|
|
21
|
+
exclude_reason: string | null;
|
|
22
|
+
notes: string | null;
|
|
23
|
+
balance_updated_at: string | null;
|
|
24
|
+
created_at: string;
|
|
25
|
+
updated_at: string;
|
|
26
|
+
}
|
|
27
|
+
export interface HolderListParams {
|
|
28
|
+
page?: number;
|
|
29
|
+
page_size?: number;
|
|
30
|
+
sort_by?: string;
|
|
31
|
+
sort_order?: 'asc' | 'desc';
|
|
32
|
+
holder_type?: string;
|
|
33
|
+
min_balance?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface HolderStats {
|
|
36
|
+
total_holders: number;
|
|
37
|
+
total_mcc_held: number;
|
|
38
|
+
holder_type_distribution: {
|
|
39
|
+
individual: number;
|
|
40
|
+
whale: number;
|
|
41
|
+
bot: number;
|
|
42
|
+
unknown: number;
|
|
43
|
+
};
|
|
44
|
+
new_today: number;
|
|
45
|
+
last_sync_at: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface HolderTransaction {
|
|
48
|
+
signature: string;
|
|
49
|
+
block_time: string | null;
|
|
50
|
+
slot: number;
|
|
51
|
+
err: boolean;
|
|
52
|
+
memo: string | null;
|
|
53
|
+
}
|
|
54
|
+
export interface PoolTrader {
|
|
55
|
+
wallet_address: string;
|
|
56
|
+
address_type: 'system' | 'platform' | 'external';
|
|
57
|
+
address_label: string | null;
|
|
58
|
+
buy_count: number;
|
|
59
|
+
sell_count: number;
|
|
60
|
+
trade_count: number;
|
|
61
|
+
total_mcc_bought: number;
|
|
62
|
+
total_mcc_sold: number;
|
|
63
|
+
total_usdc_spent: number;
|
|
64
|
+
total_usdc_received: number;
|
|
65
|
+
net_mcc: number;
|
|
66
|
+
net_usdc: number;
|
|
67
|
+
estimated_profit_usdc: number;
|
|
68
|
+
first_trade_time: string | null;
|
|
69
|
+
last_trade_time: string | null;
|
|
70
|
+
trades: PoolTrade[];
|
|
71
|
+
}
|
|
72
|
+
export interface PoolTrade {
|
|
73
|
+
type: 'buy' | 'sell';
|
|
74
|
+
mcc_amount: number;
|
|
75
|
+
usdc_amount: number;
|
|
76
|
+
price: number;
|
|
77
|
+
tx_signature: string;
|
|
78
|
+
time: string | null;
|
|
79
|
+
}
|
|
80
|
+
export interface AddressSearchResult {
|
|
81
|
+
wallet_address: string;
|
|
82
|
+
period: string;
|
|
83
|
+
db_info: MCCHolder | null;
|
|
84
|
+
address_classification: {
|
|
85
|
+
type: 'system' | 'platform' | 'external';
|
|
86
|
+
category: string;
|
|
87
|
+
label: string | null;
|
|
88
|
+
} | null;
|
|
89
|
+
chain_trades: PoolTrade[];
|
|
90
|
+
summary: {
|
|
91
|
+
buy_count: number;
|
|
92
|
+
sell_count: number;
|
|
93
|
+
total_mcc_bought: number;
|
|
94
|
+
total_mcc_sold: number;
|
|
95
|
+
total_usdc_spent: number;
|
|
96
|
+
total_usdc_received: number;
|
|
97
|
+
net_mcc: number;
|
|
98
|
+
net_usdc: number;
|
|
99
|
+
estimated_profit_usdc: number;
|
|
100
|
+
};
|
|
101
|
+
current_balances: {
|
|
102
|
+
sol_balance: number;
|
|
103
|
+
usdt_balance: number;
|
|
104
|
+
usdc_balance: number;
|
|
105
|
+
} | null;
|
|
106
|
+
}
|
|
107
|
+
export interface SystemAddress {
|
|
108
|
+
id: number;
|
|
109
|
+
wallet_address: string;
|
|
110
|
+
category: string;
|
|
111
|
+
label: string;
|
|
112
|
+
owner_uid: string | null;
|
|
113
|
+
owner_name: string | null;
|
|
114
|
+
notes: string | null;
|
|
115
|
+
created_at: string;
|
|
116
|
+
updated_at: string;
|
|
117
|
+
}
|
|
118
|
+
export declare const getMCCHolders: (params?: HolderListParams) => Promise<any>;
|
|
119
|
+
export declare const getMCCHolderStats: () => Promise<any>;
|
|
120
|
+
export declare const getMCCHolderTransactions: (wallet: string, limit?: number) => Promise<any>;
|
|
121
|
+
export declare const labelMCCHolder: (wallet: string, data: {
|
|
122
|
+
holder_type?: string;
|
|
123
|
+
holder_label?: string;
|
|
124
|
+
notes?: string;
|
|
125
|
+
}) => Promise<any>;
|
|
126
|
+
export declare const syncMCCHolders: () => Promise<any>;
|
|
127
|
+
export declare const getPoolTraders: (period?: string) => Promise<any>;
|
|
128
|
+
export declare const refreshPoolTraders: (period?: string) => Promise<any>;
|
|
129
|
+
export declare const searchAddress: (address: string, period?: string) => Promise<any>;
|
|
130
|
+
export declare const getSystemAddresses: (category?: string) => Promise<any>;
|