@microcosmmoney/portal-react 3.12.8 → 3.13.1
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 +136 -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/useMultiWalletBalance.d.ts +31 -0
- package/dist/main-portal/hooks/useMultiWalletBalance.js +65 -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/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/index.d.ts +9 -0
- package/dist/main-portal/lib/api/index.js +37 -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-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/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,74 @@
|
|
|
1
|
+
export interface BaseParams {
|
|
2
|
+
exchange: string;
|
|
3
|
+
symbol: string;
|
|
4
|
+
leverage: number;
|
|
5
|
+
margin_mode: string;
|
|
6
|
+
kline_period: string;
|
|
7
|
+
max_net_position: number;
|
|
8
|
+
global_drawdown_limit: number;
|
|
9
|
+
account_id: string;
|
|
10
|
+
stop_loss_enabled: boolean;
|
|
11
|
+
stop_loss_pct: number;
|
|
12
|
+
}
|
|
13
|
+
export interface EnergyParams {
|
|
14
|
+
max_capital_pct: number;
|
|
15
|
+
alt_hedge_enabled: boolean;
|
|
16
|
+
alt_add_pos_quantity_multiplier: number;
|
|
17
|
+
alt_add_pos_distance_multiplier: number;
|
|
18
|
+
alt_price_adjust_threshold_pct: number;
|
|
19
|
+
alt_quantity_adjust_threshold_pct: number;
|
|
20
|
+
sync_hedge_enabled: boolean;
|
|
21
|
+
sync_add_pos_loss_trigger_pct: number;
|
|
22
|
+
take_profit_trigger_pct: number;
|
|
23
|
+
sync_add_pos_quantity_multiplier: number;
|
|
24
|
+
tp_form_a_min_profit_pct: number;
|
|
25
|
+
tp_form_b_min_ratio_pct: number;
|
|
26
|
+
unilateral_add_enabled: boolean;
|
|
27
|
+
unilateral_add_mode: string;
|
|
28
|
+
unilateral_add_loss_trigger_pct: number;
|
|
29
|
+
unilateral_fib_base_pct: number;
|
|
30
|
+
unilateral_add_quantity_pct: number;
|
|
31
|
+
balance_check_enabled: boolean;
|
|
32
|
+
balance_min_ratio_pct: number;
|
|
33
|
+
balance_add_quantity_pct: number;
|
|
34
|
+
stop_loss_enabled: boolean;
|
|
35
|
+
stop_loss_pct: number;
|
|
36
|
+
}
|
|
37
|
+
export interface PowerParams {
|
|
38
|
+
start_condition_mode: string;
|
|
39
|
+
start_energy_profit_pct: number;
|
|
40
|
+
start_price_gap_pct: number;
|
|
41
|
+
start_pos_thickness_pct: number;
|
|
42
|
+
open_pos_quantity: number;
|
|
43
|
+
take_profit_pct: number;
|
|
44
|
+
max_open_orders: number;
|
|
45
|
+
stale_pos_cleanup_days: number;
|
|
46
|
+
order_merge_count_threshold: number;
|
|
47
|
+
order_merge_batch_multiplier: number;
|
|
48
|
+
order_cleanup_loss_trigger_pct: number;
|
|
49
|
+
open_order_price_buffer_pct: number;
|
|
50
|
+
open_order_spacing_multiplier: number;
|
|
51
|
+
max_total_orders: number;
|
|
52
|
+
}
|
|
53
|
+
export interface StrategyParams {
|
|
54
|
+
name: string;
|
|
55
|
+
base: BaseParams;
|
|
56
|
+
energy: EnergyParams;
|
|
57
|
+
power: PowerParams;
|
|
58
|
+
}
|
|
59
|
+
export interface Account {
|
|
60
|
+
account_name: string;
|
|
61
|
+
display_name: string;
|
|
62
|
+
is_default: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface FundPoolInfo {
|
|
65
|
+
fund_pool_total: number;
|
|
66
|
+
used_capital: number;
|
|
67
|
+
used_percentage: number;
|
|
68
|
+
remaining_capital: number;
|
|
69
|
+
recommended_max_pct: number;
|
|
70
|
+
pool_percentage: number;
|
|
71
|
+
}
|
|
72
|
+
export interface ExchangeData {
|
|
73
|
+
accounts: Record<string, Account>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export type RiskLevel = 'low' | 'medium' | 'high';
|
|
2
|
+
export type ProductStatus = 'active' | 'inactive';
|
|
3
|
+
export interface AIProduct {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
risk_level: number | RiskLevel;
|
|
8
|
+
expected_return?: number;
|
|
9
|
+
expected_return_min?: number;
|
|
10
|
+
expected_return_max?: number;
|
|
11
|
+
min_amount?: number;
|
|
12
|
+
max_amount?: number;
|
|
13
|
+
status: ProductStatus;
|
|
14
|
+
trader_id?: string;
|
|
15
|
+
created_at: string;
|
|
16
|
+
updated_at?: string;
|
|
17
|
+
total_requests?: number;
|
|
18
|
+
active_requests?: number;
|
|
19
|
+
active_users?: number;
|
|
20
|
+
avg_return?: number;
|
|
21
|
+
}
|
|
22
|
+
export type AIRequestStatus = 'pending' | 'accepted' | 'assigned' | 'configured' | 'running' | 'stopped' | 'completed' | 'cancelled' | 'failed' | 'rejected';
|
|
23
|
+
export interface AIRequest {
|
|
24
|
+
id?: string;
|
|
25
|
+
request_id: string;
|
|
26
|
+
user_id: string;
|
|
27
|
+
ai_product_id: string;
|
|
28
|
+
trader_id?: string;
|
|
29
|
+
strategy_id?: string;
|
|
30
|
+
amount: number;
|
|
31
|
+
exchange: string;
|
|
32
|
+
status: AIRequestStatus;
|
|
33
|
+
created_at: string;
|
|
34
|
+
started_at?: string;
|
|
35
|
+
completed_at?: string;
|
|
36
|
+
product?: AIProduct;
|
|
37
|
+
current_profit?: number;
|
|
38
|
+
total_trades?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface AIProductDetail {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
name_en?: string;
|
|
44
|
+
description: string;
|
|
45
|
+
personality?: string;
|
|
46
|
+
icon?: string;
|
|
47
|
+
risk_level: number;
|
|
48
|
+
expected_return_min: string;
|
|
49
|
+
expected_return_max: string;
|
|
50
|
+
total_managed_fund: string;
|
|
51
|
+
active_users: number;
|
|
52
|
+
win_rate: string;
|
|
53
|
+
avg_holding_hours: string;
|
|
54
|
+
daily_trades_min: number;
|
|
55
|
+
daily_trades_max: number;
|
|
56
|
+
sharpe_ratio: string;
|
|
57
|
+
max_drawdown: string;
|
|
58
|
+
last_month_return?: string;
|
|
59
|
+
status: 'active' | 'inactive';
|
|
60
|
+
created_at: string;
|
|
61
|
+
updated_at?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface AIProductDetailResponse {
|
|
64
|
+
success: boolean;
|
|
65
|
+
product?: AIProductDetail;
|
|
66
|
+
error?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface AIRequestDetail {
|
|
69
|
+
id: string;
|
|
70
|
+
request_id?: string;
|
|
71
|
+
user_id: string;
|
|
72
|
+
ai_product_id: string;
|
|
73
|
+
trader_id?: string;
|
|
74
|
+
amount: number;
|
|
75
|
+
exchange: string;
|
|
76
|
+
status: AIRequestStatus;
|
|
77
|
+
created_at: string;
|
|
78
|
+
started_at?: string;
|
|
79
|
+
completed_at?: string;
|
|
80
|
+
ai_name?: string;
|
|
81
|
+
ai_icon?: string;
|
|
82
|
+
current_profit?: number;
|
|
83
|
+
total_trades?: number;
|
|
84
|
+
}
|
|
85
|
+
export interface AIRequestDetailResponse {
|
|
86
|
+
success: boolean;
|
|
87
|
+
request?: AIRequestDetail;
|
|
88
|
+
error?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface SubmitAIRequestResponse {
|
|
91
|
+
success: boolean;
|
|
92
|
+
request?: {
|
|
93
|
+
id: string;
|
|
94
|
+
request_id?: string;
|
|
95
|
+
};
|
|
96
|
+
error?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface AIProductsResponse {
|
|
99
|
+
success: boolean;
|
|
100
|
+
products: AIProduct[];
|
|
101
|
+
error?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface AIRequestsResponse {
|
|
104
|
+
success: boolean;
|
|
105
|
+
requests: AIRequest[];
|
|
106
|
+
}
|
|
107
|
+
export interface AIChatResponse {
|
|
108
|
+
success: boolean;
|
|
109
|
+
response: string;
|
|
110
|
+
suggestions?: string[];
|
|
111
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common.types"), exports);
|
|
18
|
+
__exportStar(require("./user.types"), exports);
|
|
19
|
+
__exportStar(require("./ai.types"), exports);
|
|
20
|
+
__exportStar(require("./finance.types"), exports);
|
|
21
|
+
__exportStar(require("./protocol.types"), exports);
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
export interface APIResponse<T = unknown> {
|
|
2
|
+
success: boolean;
|
|
3
|
+
data?: T;
|
|
4
|
+
error?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PaginatedResponse<T> {
|
|
8
|
+
success: boolean;
|
|
9
|
+
data: T[];
|
|
10
|
+
total: number;
|
|
11
|
+
page: number;
|
|
12
|
+
per_page: number;
|
|
13
|
+
}
|
|
14
|
+
export type UnitType = 'station' | 'matrix' | 'sector' | 'system';
|
|
15
|
+
export interface Unit {
|
|
16
|
+
unit_id: string;
|
|
17
|
+
unit_name: string;
|
|
18
|
+
unit_type: UnitType;
|
|
19
|
+
description?: string;
|
|
20
|
+
image_url?: string;
|
|
21
|
+
location?: string;
|
|
22
|
+
parent_id?: string;
|
|
23
|
+
parent_unit_id?: string;
|
|
24
|
+
manager_uid?: string;
|
|
25
|
+
manager_id?: string;
|
|
26
|
+
manager_wallet?: string;
|
|
27
|
+
max_capacity?: number;
|
|
28
|
+
capacity?: number;
|
|
29
|
+
current_members?: number;
|
|
30
|
+
vault_balance?: number;
|
|
31
|
+
auction_status?: string;
|
|
32
|
+
created_at: string;
|
|
33
|
+
updated_at?: string;
|
|
34
|
+
short_id?: string;
|
|
35
|
+
full_path?: string;
|
|
36
|
+
territory_id?: string;
|
|
37
|
+
manager_display_name?: string;
|
|
38
|
+
manager_avatar_url?: string;
|
|
39
|
+
image_status?: 'pending' | 'approved' | 'rejected';
|
|
40
|
+
}
|
|
41
|
+
export interface Member {
|
|
42
|
+
member_id: string;
|
|
43
|
+
unit_id: string;
|
|
44
|
+
user_id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
role: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
phone?: string;
|
|
49
|
+
joined_at: string;
|
|
50
|
+
}
|
|
51
|
+
export type AuctionType = 'first' | 'second';
|
|
52
|
+
export type AuctionStatus = 'active' | 'ended' | 'cancelled';
|
|
53
|
+
export interface Auction {
|
|
54
|
+
auction_id: number;
|
|
55
|
+
unit_id: string;
|
|
56
|
+
unit_name?: string;
|
|
57
|
+
unit_type?: UnitType;
|
|
58
|
+
auction_type: AuctionType;
|
|
59
|
+
starting_price: number;
|
|
60
|
+
current_price: number;
|
|
61
|
+
reserve_price?: number;
|
|
62
|
+
bid_increment: number;
|
|
63
|
+
status: AuctionStatus;
|
|
64
|
+
start_time: string;
|
|
65
|
+
end_time: string;
|
|
66
|
+
winner_id?: string;
|
|
67
|
+
created_by: string;
|
|
68
|
+
created_at: string;
|
|
69
|
+
bid_count?: number;
|
|
70
|
+
time_remaining?: string;
|
|
71
|
+
}
|
|
72
|
+
export type BidStatus = 'active' | 'outbid' | 'won' | 'lost' | 'refunded';
|
|
73
|
+
export interface Bid {
|
|
74
|
+
bid_id: number;
|
|
75
|
+
auction_id: number;
|
|
76
|
+
user_id: string;
|
|
77
|
+
bid_amount: number;
|
|
78
|
+
deposit_amount: number;
|
|
79
|
+
transaction_hash: string;
|
|
80
|
+
status: BidStatus;
|
|
81
|
+
created_at: string;
|
|
82
|
+
auction?: Auction;
|
|
83
|
+
unit_name?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface PlaceBidRequest {
|
|
86
|
+
auction_id: number;
|
|
87
|
+
bid_amount: number;
|
|
88
|
+
deposit_amount: number;
|
|
89
|
+
transaction_hash: string;
|
|
90
|
+
}
|
|
91
|
+
export interface AuctionHistoryParams {
|
|
92
|
+
unit_id?: string;
|
|
93
|
+
limit?: number;
|
|
94
|
+
offset?: number;
|
|
95
|
+
}
|
|
96
|
+
export declare class APIError extends Error {
|
|
97
|
+
status: number;
|
|
98
|
+
data?: unknown | undefined;
|
|
99
|
+
constructor(message: string, status: number, data?: unknown | undefined);
|
|
100
|
+
}
|
|
101
|
+
export interface QueryParams {
|
|
102
|
+
page?: number;
|
|
103
|
+
per_page?: number;
|
|
104
|
+
sort?: string;
|
|
105
|
+
order?: 'asc' | 'desc';
|
|
106
|
+
[key: string]: string | number | boolean | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface OperationResult {
|
|
109
|
+
success: boolean;
|
|
110
|
+
message?: string;
|
|
111
|
+
error?: string;
|
|
112
|
+
}
|
|
113
|
+
export type ManagerLevel = 'station' | 'matrix' | 'sector' | 'system';
|
|
114
|
+
export declare const ManagerRoleNames: Record<ManagerLevel, string>;
|
|
115
|
+
export declare const ManagerShareRatios: Record<ManagerLevel, number>;
|
|
116
|
+
export type QueueStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'cancelled';
|
|
117
|
+
export interface UserQueueStatus {
|
|
118
|
+
success: boolean;
|
|
119
|
+
in_queue: boolean;
|
|
120
|
+
is_onboarded?: boolean;
|
|
121
|
+
territory_id?: string;
|
|
122
|
+
station_name?: string;
|
|
123
|
+
user_type?: string;
|
|
124
|
+
user_rank?: string;
|
|
125
|
+
position?: number;
|
|
126
|
+
estimated_wait_minutes?: number;
|
|
127
|
+
preferred_territory_id?: string;
|
|
128
|
+
joined_at?: string;
|
|
129
|
+
status?: QueueStatus;
|
|
130
|
+
error?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface AdminQueueStatus {
|
|
133
|
+
success: boolean;
|
|
134
|
+
pending_count: number;
|
|
135
|
+
processing_count: number;
|
|
136
|
+
oldest_pending?: string;
|
|
137
|
+
total_in_queue: number;
|
|
138
|
+
error?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface QueueProcessResult {
|
|
141
|
+
success: boolean;
|
|
142
|
+
processed: number;
|
|
143
|
+
assigned: number;
|
|
144
|
+
failed: number;
|
|
145
|
+
errors?: string[];
|
|
146
|
+
}
|
|
147
|
+
export interface ExpansionCheckResult {
|
|
148
|
+
success: boolean;
|
|
149
|
+
needs_expansion: boolean;
|
|
150
|
+
reason?: string;
|
|
151
|
+
current_stats: {
|
|
152
|
+
total_stations: number;
|
|
153
|
+
full_stations: number;
|
|
154
|
+
avg_occupancy: number;
|
|
155
|
+
pending_queue: number;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
export interface ExpansionTriggerResult {
|
|
159
|
+
success: boolean;
|
|
160
|
+
new_territory_id?: string;
|
|
161
|
+
message?: string;
|
|
162
|
+
error?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface PreparedTransaction {
|
|
165
|
+
transaction: string;
|
|
166
|
+
message: string;
|
|
167
|
+
accounts: string[];
|
|
168
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManagerShareRatios = exports.ManagerRoleNames = exports.APIError = void 0;
|
|
4
|
+
class APIError extends Error {
|
|
5
|
+
constructor(message, status, data) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.status = status;
|
|
8
|
+
this.data = data;
|
|
9
|
+
this.name = 'APIError';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.APIError = APIError;
|
|
13
|
+
exports.ManagerRoleNames = {
|
|
14
|
+
station: 'Commander',
|
|
15
|
+
matrix: 'Pioneer',
|
|
16
|
+
sector: 'Warden',
|
|
17
|
+
system: 'Admiral'
|
|
18
|
+
};
|
|
19
|
+
exports.ManagerShareRatios = {
|
|
20
|
+
station: 0.16,
|
|
21
|
+
matrix: 0.12,
|
|
22
|
+
sector: 0.08,
|
|
23
|
+
system: 0.04
|
|
24
|
+
};
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import type { DistributionPlanType } from './user.types';
|
|
2
|
+
export interface MCCBalance {
|
|
3
|
+
user_id: number;
|
|
4
|
+
total_balance: number;
|
|
5
|
+
available_balance: number;
|
|
6
|
+
locked_balance: number;
|
|
7
|
+
created_at: string;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MCCLockPeriod {
|
|
11
|
+
lock_id: string;
|
|
12
|
+
user_id: string;
|
|
13
|
+
amount: number;
|
|
14
|
+
lock_start: string;
|
|
15
|
+
lock_end: string;
|
|
16
|
+
reason: string;
|
|
17
|
+
status: 'locked' | 'released';
|
|
18
|
+
}
|
|
19
|
+
export interface MCCMinting {
|
|
20
|
+
minting_id: string;
|
|
21
|
+
user_id: string;
|
|
22
|
+
amount: number;
|
|
23
|
+
reason: string;
|
|
24
|
+
minted_at: string;
|
|
25
|
+
total_minted_before: number;
|
|
26
|
+
total_minted_after: number;
|
|
27
|
+
}
|
|
28
|
+
export interface MCCMintingStats {
|
|
29
|
+
total_minted: number;
|
|
30
|
+
current_rate: number;
|
|
31
|
+
next_halving_at: number;
|
|
32
|
+
next_halving_remaining: number;
|
|
33
|
+
halving_count: number;
|
|
34
|
+
}
|
|
35
|
+
export interface MCCWithdrawalRequest {
|
|
36
|
+
user_id: string;
|
|
37
|
+
amount: number;
|
|
38
|
+
address: string;
|
|
39
|
+
network: string;
|
|
40
|
+
}
|
|
41
|
+
export interface MCCWithdrawal {
|
|
42
|
+
withdrawal_id: string;
|
|
43
|
+
user_id: string;
|
|
44
|
+
amount: number;
|
|
45
|
+
fee: number;
|
|
46
|
+
net_amount: number;
|
|
47
|
+
address: string;
|
|
48
|
+
network: string;
|
|
49
|
+
status: 'pending' | 'processing' | 'completed' | 'failed' | 'rejected';
|
|
50
|
+
transaction_hash?: string;
|
|
51
|
+
created_at: string;
|
|
52
|
+
completed_at?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface PDAPWithdrawRequest {
|
|
55
|
+
user_id: number;
|
|
56
|
+
amount: number;
|
|
57
|
+
destination: string;
|
|
58
|
+
}
|
|
59
|
+
export interface PDAWithdrawResponse {
|
|
60
|
+
status: string;
|
|
61
|
+
tx_signature: string;
|
|
62
|
+
withdraw_id?: number;
|
|
63
|
+
user_id: number;
|
|
64
|
+
amount: number;
|
|
65
|
+
destination: string;
|
|
66
|
+
explorer_url: string;
|
|
67
|
+
confirmed_at: string;
|
|
68
|
+
}
|
|
69
|
+
export interface PDABalance {
|
|
70
|
+
user_id: number;
|
|
71
|
+
pda_address: string;
|
|
72
|
+
token_account: string | null;
|
|
73
|
+
balance: number;
|
|
74
|
+
balance_lamports: number;
|
|
75
|
+
error?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface MCCDistributionDetails {
|
|
78
|
+
user_mcc: number;
|
|
79
|
+
team_mcc: number;
|
|
80
|
+
magistrate_mcc: number;
|
|
81
|
+
station_mcd: number;
|
|
82
|
+
developer_mcd?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface MCCHistoryRecord {
|
|
85
|
+
id: string;
|
|
86
|
+
type: 'mining' | 'transfer' | 'reward' | 'fee' | 'lock' | 'unlock' | 'system';
|
|
87
|
+
amount: number;
|
|
88
|
+
direction: 'in' | 'out';
|
|
89
|
+
source: string;
|
|
90
|
+
source_display: string;
|
|
91
|
+
tx_hash?: string | null;
|
|
92
|
+
status: string;
|
|
93
|
+
memo: string;
|
|
94
|
+
created_at: string;
|
|
95
|
+
distribution_details?: MCCDistributionDetails;
|
|
96
|
+
}
|
|
97
|
+
export interface RechargeRecord {
|
|
98
|
+
recharge_id: string;
|
|
99
|
+
user_id: string;
|
|
100
|
+
amount: number;
|
|
101
|
+
currency: string;
|
|
102
|
+
network: string;
|
|
103
|
+
transaction_hash: string;
|
|
104
|
+
status: 'pending' | 'confirmed' | 'failed';
|
|
105
|
+
created_at: string;
|
|
106
|
+
confirmed_at?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface VaultRecord {
|
|
109
|
+
record_id: string;
|
|
110
|
+
unit_id: string;
|
|
111
|
+
amount: number;
|
|
112
|
+
type: 'deposit' | 'distribution' | 'withdrawal';
|
|
113
|
+
distribution_plan?: DistributionPlanType;
|
|
114
|
+
created_by: string;
|
|
115
|
+
created_at: string;
|
|
116
|
+
recipients?: Array<{
|
|
117
|
+
user_id: string;
|
|
118
|
+
amount: number;
|
|
119
|
+
share_type: string;
|
|
120
|
+
}>;
|
|
121
|
+
}
|
|
122
|
+
export interface MCDBalance {
|
|
123
|
+
account_type: 'user' | 'station_vault';
|
|
124
|
+
account_id: string;
|
|
125
|
+
balance: number;
|
|
126
|
+
total_received: number;
|
|
127
|
+
total_spent: number;
|
|
128
|
+
created_at: string;
|
|
129
|
+
updated_at: string;
|
|
130
|
+
}
|
|
131
|
+
export interface MCDTransaction {
|
|
132
|
+
id: number;
|
|
133
|
+
tx_type: 'daily_distribution' | 'spend' | 'transfer' | 'refund';
|
|
134
|
+
from_account_type: 'station_vault' | 'user' | 'system';
|
|
135
|
+
from_account_id: string;
|
|
136
|
+
to_account_type: 'user' | 'station_vault' | 'system';
|
|
137
|
+
to_account_id: string;
|
|
138
|
+
amount: number;
|
|
139
|
+
memo?: string;
|
|
140
|
+
created_at: string;
|
|
141
|
+
}
|
|
142
|
+
export interface MCDDailyDistribution {
|
|
143
|
+
id: number;
|
|
144
|
+
territory_id: string;
|
|
145
|
+
distribution_date: string;
|
|
146
|
+
vault_balance_before: number;
|
|
147
|
+
distribution_rate: number;
|
|
148
|
+
total_distributed: number;
|
|
149
|
+
recipients_count: number;
|
|
150
|
+
total_mining_amount: number;
|
|
151
|
+
created_at: string;
|
|
152
|
+
}
|
|
153
|
+
export interface MCDUserDailyReward {
|
|
154
|
+
id: number;
|
|
155
|
+
uid: string;
|
|
156
|
+
territory_id: string;
|
|
157
|
+
reward_date: string;
|
|
158
|
+
mining_amount: number;
|
|
159
|
+
station_total_mining: number;
|
|
160
|
+
mining_ratio: number;
|
|
161
|
+
mcd_received: number;
|
|
162
|
+
created_at: string;
|
|
163
|
+
}
|
|
164
|
+
export interface MCDSpendRecord {
|
|
165
|
+
id: number;
|
|
166
|
+
uid: string;
|
|
167
|
+
amount: number;
|
|
168
|
+
product_type: string;
|
|
169
|
+
product_id?: string;
|
|
170
|
+
memo?: string;
|
|
171
|
+
created_at: string;
|
|
172
|
+
}
|
|
173
|
+
export interface StationMCDVault {
|
|
174
|
+
territory_id: string;
|
|
175
|
+
station_name: string;
|
|
176
|
+
mcd_balance: number;
|
|
177
|
+
total_received: number;
|
|
178
|
+
total_distributed: number;
|
|
179
|
+
last_distribution_date?: string;
|
|
180
|
+
created_at: string;
|
|
181
|
+
updated_at: string;
|
|
182
|
+
}
|
|
183
|
+
export interface MCDSpendRequest {
|
|
184
|
+
amount: number;
|
|
185
|
+
product_type: string;
|
|
186
|
+
product_id?: string;
|
|
187
|
+
memo?: string;
|
|
188
|
+
}
|
|
189
|
+
export interface MCDSpendResponse {
|
|
190
|
+
success: boolean;
|
|
191
|
+
new_balance?: number;
|
|
192
|
+
spend_record?: MCDSpendRecord;
|
|
193
|
+
error?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface MCDHistoryParams {
|
|
196
|
+
limit?: number;
|
|
197
|
+
offset?: number;
|
|
198
|
+
start_date?: string;
|
|
199
|
+
end_date?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface MiningRequest {
|
|
202
|
+
mcc_amount: number;
|
|
203
|
+
stablecoin_type?: 'usdc' | 'usdt';
|
|
204
|
+
reference?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface MiningRequestResponse {
|
|
207
|
+
request_id: string;
|
|
208
|
+
uid?: string;
|
|
209
|
+
token_type?: 'mcc' | 'mcd';
|
|
210
|
+
mcc_amount: number;
|
|
211
|
+
mcd_amount?: number;
|
|
212
|
+
amount?: number;
|
|
213
|
+
usdc_amount: number;
|
|
214
|
+
usdc_amount_with_discount: number;
|
|
215
|
+
usd_amount?: number;
|
|
216
|
+
usd_amount_with_discount?: number;
|
|
217
|
+
discount_percent: number;
|
|
218
|
+
recipient: string;
|
|
219
|
+
stablecoin_type?: string;
|
|
220
|
+
stablecoin_mint?: string;
|
|
221
|
+
expires_at: string;
|
|
222
|
+
}
|
|
223
|
+
export interface PaymentConfirmRequest {
|
|
224
|
+
request_id: string;
|
|
225
|
+
tx_signature: string;
|
|
226
|
+
mcc_amount: number;
|
|
227
|
+
usdc_amount: number;
|
|
228
|
+
stablecoin_type?: 'usdc' | 'usdt';
|
|
229
|
+
v3_atomic?: boolean;
|
|
230
|
+
}
|
|
231
|
+
export interface PaymentConfirmResponse {
|
|
232
|
+
request_id: string;
|
|
233
|
+
status: 'confirmed' | 'pending' | 'failed';
|
|
234
|
+
mcc_distributed: {
|
|
235
|
+
user: number;
|
|
236
|
+
team: number;
|
|
237
|
+
magistrate: number;
|
|
238
|
+
station_vault: number;
|
|
239
|
+
};
|
|
240
|
+
message: string;
|
|
241
|
+
}
|
|
242
|
+
export interface MiningRatioInfo {
|
|
243
|
+
current_stage: number;
|
|
244
|
+
mined_mcc: number;
|
|
245
|
+
total_minted: number;
|
|
246
|
+
ratio: number;
|
|
247
|
+
usdc_per_mcc: number;
|
|
248
|
+
base_price: number;
|
|
249
|
+
next_halving_at: number;
|
|
250
|
+
source?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface PublicMiningRequest {
|
|
253
|
+
wallet_address?: string;
|
|
254
|
+
mcc_amount: number;
|
|
255
|
+
stablecoin_type?: 'usdc' | 'usdt';
|
|
256
|
+
token_type?: 'mcc' | 'mcd';
|
|
257
|
+
}
|
|
258
|
+
export interface PublicPaymentConfirmRequest {
|
|
259
|
+
wallet_address: string;
|
|
260
|
+
tx_signature: string;
|
|
261
|
+
request_id: string;
|
|
262
|
+
mcc_amount: number;
|
|
263
|
+
usd_amount: number;
|
|
264
|
+
stablecoin_type?: 'usdc' | 'usdt';
|
|
265
|
+
token_type?: 'mcc' | 'mcd';
|
|
266
|
+
v3_atomic?: boolean;
|
|
267
|
+
}
|