@microcosmmoney/portal-react 3.12.7 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/mcd/mcd-page.js +3 -5
- package/dist/components/wallet/wallet-page.js +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.js +48 -1
- package/dist/main-portal/components/auctions/AuctionsPage.d.ts +1 -0
- package/dist/main-portal/components/auctions/AuctionsPage.js +218 -0
- package/dist/main-portal/components/data/asset-stats.d.ts +1 -0
- package/dist/main-portal/components/data/asset-stats.js +33 -0
- package/dist/main-portal/components/data/charts/MCCSupplyChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/MCCSupplyChart.js +27 -0
- package/dist/main-portal/components/data/charts/MiningTrendChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/MiningTrendChart.js +39 -0
- package/dist/main-portal/components/data/charts/PriceChart.d.ts +5 -0
- package/dist/main-portal/components/data/charts/PriceChart.js +99 -0
- package/dist/main-portal/components/data/charts/TeamWalletChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/TeamWalletChart.js +33 -0
- package/dist/main-portal/components/data/charts/TerritoryProgressChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/TerritoryProgressChart.js +35 -0
- package/dist/main-portal/components/data/charts/UserLevelPieChart.d.ts +7 -0
- package/dist/main-portal/components/data/charts/UserLevelPieChart.js +34 -0
- package/dist/main-portal/components/data/charts/index.d.ts +5 -0
- package/dist/main-portal/components/data/charts/index.js +14 -0
- package/dist/main-portal/components/data/data-hero.d.ts +1 -0
- package/dist/main-portal/components/data/data-hero.js +81 -0
- package/dist/main-portal/components/data/mining-history-stats.d.ts +1 -0
- package/dist/main-portal/components/data/mining-history-stats.js +44 -0
- package/dist/main-portal/components/data/team-wallet-stats.d.ts +1 -0
- package/dist/main-portal/components/data/team-wallet-stats.js +34 -0
- package/dist/main-portal/components/data/territory-stats.d.ts +1 -0
- package/dist/main-portal/components/data/territory-stats.js +48 -0
- package/dist/main-portal/components/data/user-level-stats.d.ts +1 -0
- package/dist/main-portal/components/data/user-level-stats.js +36 -0
- package/dist/main-portal/components/fragment/FragmentPage.d.ts +1 -0
- package/dist/main-portal/components/fragment/FragmentPage.js +13 -0
- package/dist/main-portal/components/income/ManagerIncomePage.d.ts +1 -0
- package/dist/main-portal/components/income/ManagerIncomePage.js +147 -0
- package/dist/main-portal/components/layout/AppSidebar.d.ts +3 -0
- package/dist/main-portal/components/layout/AppSidebar.js +88 -0
- package/dist/main-portal/components/layout/DashboardHeader.d.ts +1 -0
- package/dist/main-portal/components/layout/DashboardHeader.js +121 -0
- package/dist/main-portal/components/layout/LocaleSwitcher.d.ts +1 -0
- package/dist/main-portal/components/layout/LocaleSwitcher.js +30 -0
- package/dist/main-portal/components/layout/MainFooter.d.ts +2 -0
- package/dist/main-portal/components/layout/MainFooter.js +50 -0
- package/dist/main-portal/components/layout/ShadcnNavbar.d.ts +1 -0
- package/dist/main-portal/components/layout/ShadcnNavbar.js +155 -0
- package/dist/main-portal/components/layout/TerminalSidebar.d.ts +1 -0
- package/dist/main-portal/components/layout/TerminalSidebar.js +110 -0
- package/dist/main-portal/components/lending/LendingPage.d.ts +1 -0
- package/dist/main-portal/components/lending/LendingPage.js +20 -0
- package/dist/main-portal/components/mcd/MCDPage.d.ts +1 -0
- package/dist/main-portal/components/mcd/MCDPage.js +125 -0
- package/dist/main-portal/components/messages/MessagesPage.d.ts +1 -0
- package/dist/main-portal/components/messages/MessagesPage.js +13 -0
- package/dist/main-portal/components/mining/MiningDistributionHistory.d.ts +11 -0
- package/dist/main-portal/components/mining/MiningDistributionHistory.js +84 -0
- package/dist/main-portal/components/mining/MiningModal.d.ts +12 -0
- package/dist/main-portal/components/mining/MiningModal.js +302 -0
- package/dist/main-portal/components/mining/MiningPage.d.ts +1 -0
- package/dist/main-portal/components/mining/MiningPage.js +237 -0
- package/dist/main-portal/components/mining/index.d.ts +1 -0
- package/dist/main-portal/components/mining/index.js +6 -0
- package/dist/main-portal/components/notifications/NotificationsPage.d.ts +1 -0
- package/dist/main-portal/components/notifications/NotificationsPage.js +13 -0
- package/dist/main-portal/components/organization/OrganizationPage.d.ts +1 -0
- package/dist/main-portal/components/organization/OrganizationPage.js +235 -0
- package/dist/main-portal/components/organization/connection-line.d.ts +12 -0
- package/dist/main-portal/components/organization/connection-line.js +38 -0
- package/dist/main-portal/components/organization/diagram-node.d.ts +17 -0
- package/dist/main-portal/components/organization/diagram-node.js +105 -0
- package/dist/main-portal/components/organization/system-panel.d.ts +11 -0
- package/dist/main-portal/components/organization/system-panel.js +72 -0
- package/dist/main-portal/components/profile/EmailChangeCard.d.ts +1 -0
- package/dist/main-portal/components/profile/EmailChangeCard.js +58 -0
- package/dist/main-portal/components/profile/ProfilePage.d.ts +1 -0
- package/dist/main-portal/components/profile/ProfilePage.js +263 -0
- package/dist/main-portal/components/profile/TwoFactorSettings.d.ts +1 -0
- package/dist/main-portal/components/profile/TwoFactorSettings.js +99 -0
- package/dist/main-portal/components/providers/ClientProviders.d.ts +6 -0
- package/dist/main-portal/components/providers/ClientProviders.js +17 -0
- package/dist/main-portal/components/providers/SolanaWalletProvider.d.ts +7 -0
- package/dist/main-portal/components/providers/SolanaWalletProvider.js +17 -0
- package/dist/main-portal/components/providers/theme-provider.d.ts +5 -0
- package/dist/main-portal/components/providers/theme-provider.js +10 -0
- package/dist/main-portal/components/queue/QueueStatusPage.d.ts +1 -0
- package/dist/main-portal/components/queue/QueueStatusPage.js +245 -0
- package/dist/main-portal/components/reincarnation/ReincarnationPage.d.ts +1 -0
- package/dist/main-portal/components/reincarnation/ReincarnationPage.js +87 -0
- package/dist/main-portal/components/resources/mcc-stats-section.d.ts +1 -0
- package/dist/main-portal/components/resources/mcc-stats-section.js +199 -0
- package/dist/main-portal/components/resources/mcd-stats-section.d.ts +1 -0
- package/dist/main-portal/components/resources/mcd-stats-section.js +76 -0
- package/dist/main-portal/components/resources/minting-entry-section.d.ts +1 -0
- package/dist/main-portal/components/resources/minting-entry-section.js +70 -0
- package/dist/main-portal/components/resources/public-mining-modal.d.ts +7 -0
- package/dist/main-portal/components/resources/public-mining-modal.js +239 -0
- package/dist/main-portal/components/resources/recycle-pool-section.d.ts +1 -0
- package/dist/main-portal/components/resources/recycle-pool-section.js +82 -0
- package/dist/main-portal/components/resources/registration-prompt.d.ts +8 -0
- package/dist/main-portal/components/resources/registration-prompt.js +13 -0
- package/dist/main-portal/components/rewards/RewardsPage.d.ts +1 -0
- package/dist/main-portal/components/rewards/RewardsPage.js +149 -0
- package/dist/main-portal/components/security/domain-verification-bar.d.ts +1 -0
- package/dist/main-portal/components/security/domain-verification-bar.js +32 -0
- package/dist/main-portal/components/stations/StationDetailPage.d.ts +5 -0
- package/dist/main-portal/components/stations/StationDetailPage.js +232 -0
- package/dist/main-portal/components/stations/StationIncomeChart.d.ts +11 -0
- package/dist/main-portal/components/stations/StationIncomeChart.js +57 -0
- package/dist/main-portal/components/stations/StationKPIHistory.d.ts +1 -0
- package/dist/main-portal/components/stations/StationKPIHistory.js +7 -0
- package/dist/main-portal/components/stations/StationListPage.d.ts +1 -0
- package/dist/main-portal/components/stations/StationListPage.js +341 -0
- package/dist/main-portal/components/stations/StationMemberRanking.d.ts +13 -0
- package/dist/main-portal/components/stations/StationMemberRanking.js +64 -0
- package/dist/main-portal/components/stations/StationSummaryCards.d.ts +13 -0
- package/dist/main-portal/components/stations/StationSummaryCards.js +30 -0
- package/dist/main-portal/components/stations/StationsPage.d.ts +1 -0
- package/dist/main-portal/components/stations/StationsPage.js +239 -0
- package/dist/main-portal/components/territory/TerritoryNFTBrowser.d.ts +1 -0
- package/dist/main-portal/components/territory/TerritoryNFTBrowser.js +147 -0
- package/dist/main-portal/components/ui/accordion.d.ts +7 -0
- package/dist/main-portal/components/ui/accordion.js +57 -0
- package/dist/main-portal/components/ui/alert-dialog.d.ts +14 -0
- package/dist/main-portal/components/ui/alert-dialog.js +85 -0
- package/dist/main-portal/components/ui/alert.d.ts +9 -0
- package/dist/main-portal/components/ui/alert.js +28 -0
- package/dist/main-portal/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/main-portal/components/ui/aspect-ratio.js +43 -0
- package/dist/main-portal/components/ui/avatar.d.ts +6 -0
- package/dist/main-portal/components/ui/avatar.js +52 -0
- package/dist/main-portal/components/ui/badge.d.ts +9 -0
- package/dist/main-portal/components/ui/badge.js +26 -0
- package/dist/main-portal/components/ui/breadcrumb.d.ts +11 -0
- package/dist/main-portal/components/ui/breadcrumb.js +35 -0
- package/dist/main-portal/components/ui/button-group.d.ts +11 -0
- package/dist/main-portal/components/ui/button-group.js +34 -0
- package/dist/main-portal/components/ui/button.d.ts +10 -0
- package/dist/main-portal/components/ui/button.js +35 -0
- package/dist/main-portal/components/ui/calendar.d.ts +8 -0
- package/dist/main-portal/components/ui/calendar.js +111 -0
- package/dist/main-portal/components/ui/card.d.ts +17 -0
- package/dist/main-portal/components/ui/card.js +41 -0
- package/dist/main-portal/components/ui/carousel.d.ts +19 -0
- package/dist/main-portal/components/ui/carousel.js +134 -0
- package/dist/main-portal/components/ui/chart.d.ts +40 -0
- package/dist/main-portal/components/ui/chart.js +168 -0
- package/dist/main-portal/components/ui/checkbox.d.ts +4 -0
- package/dist/main-portal/components/ui/checkbox.js +45 -0
- package/dist/main-portal/components/ui/collapsible.d.ts +5 -0
- package/dist/main-portal/components/ui/collapsible.js +51 -0
- package/dist/main-portal/components/ui/command.d.ts +18 -0
- package/dist/main-portal/components/ui/command.js +45 -0
- package/dist/main-portal/components/ui/context-menu.d.ts +25 -0
- package/dist/main-portal/components/ui/context-menu.js +101 -0
- package/dist/main-portal/components/ui/dialog.d.ts +15 -0
- package/dist/main-portal/components/ui/dialog.js +81 -0
- package/dist/main-portal/components/ui/drawer.d.ts +13 -0
- package/dist/main-portal/components/ui/drawer.js +47 -0
- package/dist/main-portal/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/main-portal/components/ui/dropdown-menu.js +101 -0
- package/dist/main-portal/components/ui/empty.d.ts +11 -0
- package/dist/main-portal/components/ui/empty.js +41 -0
- package/dist/main-portal/components/ui/field.d.ts +24 -0
- package/dist/main-portal/components/ui/field.js +85 -0
- package/dist/main-portal/components/ui/form.d.ts +24 -0
- package/dist/main-portal/components/ui/form.js +103 -0
- package/dist/main-portal/components/ui/hover-avatar.d.ts +10 -0
- package/dist/main-portal/components/ui/hover-avatar.js +70 -0
- package/dist/main-portal/components/ui/hover-card.d.ts +6 -0
- package/dist/main-portal/components/ui/hover-card.js +52 -0
- package/dist/main-portal/components/ui/input-group.d.ts +15 -0
- package/dist/main-portal/components/ui/input-group.js +65 -0
- package/dist/main-portal/components/ui/input-otp.d.ts +11 -0
- package/dist/main-portal/components/ui/input-otp.js +60 -0
- package/dist/main-portal/components/ui/input.d.ts +3 -0
- package/dist/main-portal/components/ui/input.js +8 -0
- package/dist/main-portal/components/ui/item.d.ts +23 -0
- package/dist/main-portal/components/ui/item.js +77 -0
- package/dist/main-portal/components/ui/kbd.d.ts +3 -0
- package/dist/main-portal/components/ui/kbd.js +13 -0
- package/dist/main-portal/components/ui/label.d.ts +4 -0
- package/dist/main-portal/components/ui/label.js +44 -0
- package/dist/main-portal/components/ui/menubar.d.ts +26 -0
- package/dist/main-portal/components/ui/menubar.js +105 -0
- package/dist/main-portal/components/ui/navigation-menu.d.ts +14 -0
- package/dist/main-portal/components/ui/navigation-menu.js +75 -0
- package/dist/main-portal/components/ui/pagination.d.ts +13 -0
- package/dist/main-portal/components/ui/pagination.js +37 -0
- package/dist/main-portal/components/ui/popover.d.ts +7 -0
- package/dist/main-portal/components/ui/popover.js +56 -0
- package/dist/main-portal/components/ui/progress.d.ts +4 -0
- package/dist/main-portal/components/ui/progress.js +44 -0
- package/dist/main-portal/components/ui/radio-group.d.ts +5 -0
- package/dist/main-portal/components/ui/radio-group.js +49 -0
- package/dist/main-portal/components/ui/resizable.d.ts +8 -0
- package/dist/main-portal/components/ui/resizable.js +53 -0
- package/dist/main-portal/components/ui/scroll-area.d.ts +5 -0
- package/dist/main-portal/components/ui/scroll-area.js +50 -0
- package/dist/main-portal/components/ui/select.d.ts +15 -0
- package/dist/main-portal/components/ui/select.js +83 -0
- package/dist/main-portal/components/ui/separator.d.ts +4 -0
- package/dist/main-portal/components/ui/separator.js +44 -0
- package/dist/main-portal/components/ui/sheet.d.ts +13 -0
- package/dist/main-portal/components/ui/sheet.js +83 -0
- package/dist/main-portal/components/ui/sidebar.d.ts +69 -0
- package/dist/main-portal/components/ui/sidebar.js +258 -0
- package/dist/main-portal/components/ui/skeleton.d.ts +2 -0
- package/dist/main-portal/components/ui/skeleton.js +9 -0
- package/dist/main-portal/components/ui/slider.d.ts +4 -0
- package/dist/main-portal/components/ui/slider.js +50 -0
- package/dist/main-portal/components/ui/sonner.d.ts +3 -0
- package/dist/main-portal/components/ui/sonner.js +17 -0
- package/dist/main-portal/components/ui/spinner.d.ts +2 -0
- package/dist/main-portal/components/ui/spinner.js +10 -0
- package/dist/main-portal/components/ui/switch.d.ts +4 -0
- package/dist/main-portal/components/ui/switch.js +44 -0
- package/dist/main-portal/components/ui/table.d.ts +10 -0
- package/dist/main-portal/components/ui/table.js +38 -0
- package/dist/main-portal/components/ui/tabs.d.ts +7 -0
- package/dist/main-portal/components/ui/tabs.js +53 -0
- package/dist/main-portal/components/ui/terminal.d.ts +49 -0
- package/dist/main-portal/components/ui/terminal.js +56 -0
- package/dist/main-portal/components/ui/textarea.d.ts +3 -0
- package/dist/main-portal/components/ui/textarea.js +8 -0
- package/dist/main-portal/components/ui/time-remaining.d.ts +54 -0
- package/dist/main-portal/components/ui/time-remaining.js +223 -0
- package/dist/main-portal/components/ui/toast.d.ts +15 -0
- package/dist/main-portal/components/ui/toast.js +77 -0
- package/dist/main-portal/components/ui/toaster.d.ts +1 -0
- package/dist/main-portal/components/ui/toaster.js +14 -0
- package/dist/main-portal/components/ui/toggle-group.d.ts +7 -0
- package/dist/main-portal/components/ui/toggle-group.js +58 -0
- package/dist/main-portal/components/ui/toggle.d.ts +9 -0
- package/dist/main-portal/components/ui/toggle.js +64 -0
- package/dist/main-portal/components/ui/tooltip.d.ts +7 -0
- package/dist/main-portal/components/ui/tooltip.js +56 -0
- package/dist/main-portal/components/ui/use-mobile.d.ts +1 -0
- package/dist/main-portal/components/ui/use-mobile.js +53 -0
- package/dist/main-portal/components/voting/VotingPage.d.ts +1 -0
- package/dist/main-portal/components/voting/VotingPage.js +14 -0
- package/dist/main-portal/components/wallet/MCCHistory.d.ts +9 -0
- package/dist/main-portal/components/wallet/MCCHistory.js +100 -0
- package/dist/main-portal/components/wallet/WalletManagement.d.ts +5 -0
- package/dist/main-portal/components/wallet/WalletManagement.js +144 -0
- package/dist/main-portal/components/wallet/WalletPage.d.ts +1 -0
- package/dist/main-portal/components/wallet/WalletPage.js +130 -0
- package/dist/main-portal/config/menu-config.d.ts +22 -0
- package/dist/main-portal/config/menu-config.js +167 -0
- package/dist/main-portal/contexts/MCCPriceContext.d.ts +38 -0
- package/dist/main-portal/contexts/MCCPriceContext.js +70 -0
- package/dist/main-portal/contexts/WalletContext.d.ts +48 -0
- package/dist/main-portal/contexts/WalletContext.js +94 -0
- package/dist/main-portal/hooks/index.d.ts +4 -0
- package/dist/main-portal/hooks/index.js +11 -0
- package/dist/main-portal/hooks/use-breakpoint.d.ts +45 -0
- package/dist/main-portal/hooks/use-breakpoint.js +91 -0
- package/dist/main-portal/hooks/use-mobile.d.ts +1 -0
- package/dist/main-portal/hooks/use-mobile.js +55 -0
- package/dist/main-portal/hooks/use-toast.d.ts +44 -0
- package/dist/main-portal/hooks/use-toast.js +164 -0
- package/dist/main-portal/hooks/useAuth.d.ts +30 -0
- package/dist/main-portal/hooks/useAuth.js +135 -0
- package/dist/main-portal/hooks/useMCC.d.ts +26 -0
- package/dist/main-portal/hooks/useMCC.js +148 -0
- package/dist/main-portal/hooks/useMCD.d.ts +17 -0
- package/dist/main-portal/hooks/useMCD.js +114 -0
- package/dist/main-portal/hooks/useMarketData.d.ts +9 -0
- package/dist/main-portal/hooks/useMarketData.js +32 -0
- package/dist/main-portal/hooks/useMultiWalletBalance.d.ts +31 -0
- package/dist/main-portal/hooks/useMultiWalletBalance.js +65 -0
- package/dist/main-portal/hooks/usePriceHistory.d.ts +9 -0
- package/dist/main-portal/hooks/usePriceHistory.js +36 -0
- package/dist/main-portal/hooks/useSolanaBalance.d.ts +21 -0
- package/dist/main-portal/hooks/useSolanaBalance.js +58 -0
- package/dist/main-portal/hooks/useSpeechRecognition.d.ts +6 -0
- package/dist/main-portal/hooks/useSpeechRecognition.js +82 -0
- package/dist/main-portal/hooks/useStats.d.ts +131 -0
- package/dist/main-portal/hooks/useStats.js +161 -0
- package/dist/main-portal/hooks/useStrategies.d.ts +134 -0
- package/dist/main-portal/hooks/useStrategies.js +28 -0
- package/dist/main-portal/hooks/useUserRank.d.ts +16 -0
- package/dist/main-portal/hooks/useUserRank.js +61 -0
- package/dist/main-portal/hooks/useWalletTokenBalances.d.ts +29 -0
- package/dist/main-portal/hooks/useWalletTokenBalances.js +106 -0
- package/dist/main-portal/i18n/navigation.d.ts +341 -0
- package/dist/main-portal/i18n/navigation.js +7 -0
- package/dist/main-portal/i18n/request.d.ts +2 -0
- package/dist/main-portal/i18n/request.js +47 -0
- package/dist/main-portal/i18n/routing.d.ts +18 -0
- package/dist/main-portal/i18n/routing.js +10 -0
- package/dist/main-portal/lib/ai-chat-config.d.ts +8 -0
- package/dist/main-portal/lib/ai-chat-config.js +144 -0
- package/dist/main-portal/lib/analytics/hooks.d.ts +139 -0
- package/dist/main-portal/lib/analytics/hooks.js +277 -0
- package/dist/main-portal/lib/analytics/index.d.ts +2 -0
- package/dist/main-portal/lib/analytics/index.js +19 -0
- package/dist/main-portal/lib/analytics/types.d.ts +611 -0
- package/dist/main-portal/lib/analytics/types.js +2 -0
- package/dist/main-portal/lib/api/account.d.ts +39 -0
- package/dist/main-portal/lib/api/account.js +86 -0
- package/dist/main-portal/lib/api/admin.d.ts +78 -0
- package/dist/main-portal/lib/api/admin.js +195 -0
- package/dist/main-portal/lib/api/analytics.d.ts +217 -0
- package/dist/main-portal/lib/api/analytics.js +55 -0
- package/dist/main-portal/lib/api/blockchain.d.ts +178 -0
- package/dist/main-portal/lib/api/blockchain.js +302 -0
- package/dist/main-portal/lib/api/core.d.ts +3 -0
- package/dist/main-portal/lib/api/core.js +47 -0
- package/dist/main-portal/lib/api/dexscreener.d.ts +126 -0
- package/dist/main-portal/lib/api/dexscreener.js +139 -0
- package/dist/main-portal/lib/api/geckoterminal.d.ts +10 -0
- package/dist/main-portal/lib/api/geckoterminal.js +43 -0
- package/dist/main-portal/lib/api/index.d.ts +16 -0
- package/dist/main-portal/lib/api/index.js +230 -0
- package/dist/main-portal/lib/api/mcc-holders.d.ts +130 -0
- package/dist/main-portal/lib/api/mcc-holders.js +47 -0
- package/dist/main-portal/lib/api/org-service-proxy.d.ts +7 -0
- package/dist/main-portal/lib/api/org-service-proxy.js +55 -0
- package/dist/main-portal/lib/api/services/ai.d.ts +139 -0
- package/dist/main-portal/lib/api/services/ai.js +214 -0
- package/dist/main-portal/lib/api/services/finance.d.ts +37 -0
- package/dist/main-portal/lib/api/services/finance.js +144 -0
- package/dist/main-portal/lib/api/services/index.d.ts +5 -0
- package/dist/main-portal/lib/api/services/index.js +21 -0
- package/dist/main-portal/lib/api/services/mining.d.ts +68 -0
- package/dist/main-portal/lib/api/services/mining.js +76 -0
- package/dist/main-portal/lib/api/services/organization.d.ts +161 -0
- package/dist/main-portal/lib/api/services/organization.js +139 -0
- package/dist/main-portal/lib/api/services/user.d.ts +90 -0
- package/dist/main-portal/lib/api/services/user.js +78 -0
- package/dist/main-portal/lib/api/services.d.ts +1 -0
- package/dist/main-portal/lib/api/services.js +17 -0
- package/dist/main-portal/lib/api/strategies.d.ts +101 -0
- package/dist/main-portal/lib/api/strategies.js +87 -0
- package/dist/main-portal/lib/api-service.d.ts +1 -0
- package/dist/main-portal/lib/api-service.js +18 -0
- package/dist/main-portal/lib/auth-service.d.ts +65 -0
- package/dist/main-portal/lib/auth-service.js +382 -0
- package/dist/main-portal/lib/config/mainstream-tokens.d.ts +13 -0
- package/dist/main-portal/lib/config/mainstream-tokens.js +88 -0
- package/dist/main-portal/lib/docs-data.d.ts +36 -0
- package/dist/main-portal/lib/docs-data.js +108 -0
- package/dist/main-portal/lib/exchanges/config.d.ts +34 -0
- package/dist/main-portal/lib/exchanges/config.js +185 -0
- package/dist/main-portal/lib/exchanges/hooks/index.d.ts +5 -0
- package/dist/main-portal/lib/exchanges/hooks/index.js +10 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceData.d.ts +15 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceData.js +216 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceDialogs.d.ts +32 -0
- package/dist/main-portal/lib/exchanges/hooks/useBinanceDialogs.js +395 -0
- package/dist/main-portal/lib/exchanges/hooks/useUserExchanges.d.ts +15 -0
- package/dist/main-portal/lib/exchanges/hooks/useUserExchanges.js +51 -0
- package/dist/main-portal/lib/exchanges/index.d.ts +4 -0
- package/dist/main-portal/lib/exchanges/index.js +21 -0
- package/dist/main-portal/lib/exchanges/types.d.ts +102 -0
- package/dist/main-portal/lib/exchanges/types.js +2 -0
- package/dist/main-portal/lib/exchanges/utils.d.ts +1 -0
- package/dist/main-portal/lib/exchanges/utils.js +10 -0
- package/dist/main-portal/lib/gcp-secrets.d.ts +7 -0
- package/dist/main-portal/lib/gcp-secrets.js +45 -0
- package/dist/main-portal/lib/mockWallet.d.ts +130 -0
- package/dist/main-portal/lib/mockWallet.js +284 -0
- package/dist/main-portal/lib/oauth-config.d.ts +12 -0
- package/dist/main-portal/lib/oauth-config.js +48 -0
- package/dist/main-portal/lib/order-id-generator.d.ts +19 -0
- package/dist/main-portal/lib/order-id-generator.js +97 -0
- package/dist/main-portal/lib/solana/reincarnation-client.d.ts +28 -0
- package/dist/main-portal/lib/solana/reincarnation-client.js +39 -0
- package/dist/main-portal/lib/solana/solana-pay.d.ts +31 -0
- package/dist/main-portal/lib/solana/solana-pay.js +85 -0
- package/dist/main-portal/lib/strategy/defaults.d.ts +2 -0
- package/dist/main-portal/lib/strategy/defaults.js +58 -0
- package/dist/main-portal/lib/strategy/index.d.ts +3 -0
- package/dist/main-portal/lib/strategy/index.js +20 -0
- package/dist/main-portal/lib/strategy/tooltips.d.ts +1 -0
- package/dist/main-portal/lib/strategy/tooltips.js +50 -0
- package/dist/main-portal/lib/strategy/types.d.ts +74 -0
- package/dist/main-portal/lib/strategy/types.js +2 -0
- package/dist/main-portal/lib/types/ai.types.d.ts +111 -0
- package/dist/main-portal/lib/types/ai.types.js +2 -0
- package/dist/main-portal/lib/types/api.d.ts +5 -0
- package/dist/main-portal/lib/types/api.js +21 -0
- package/dist/main-portal/lib/types/common.types.d.ts +168 -0
- package/dist/main-portal/lib/types/common.types.js +24 -0
- package/dist/main-portal/lib/types/finance.types.d.ts +267 -0
- package/dist/main-portal/lib/types/finance.types.js +2 -0
- package/dist/main-portal/lib/types/protocol.types.d.ts +216 -0
- package/dist/main-portal/lib/types/protocol.types.js +2 -0
- package/dist/main-portal/lib/types/user.types.d.ts +243 -0
- package/dist/main-portal/lib/types/user.types.js +12 -0
- package/dist/main-portal/lib/utils/territoryId.d.ts +75 -0
- package/dist/main-portal/lib/utils/territoryId.js +241 -0
- package/dist/main-portal/lib/utils.d.ts +4 -0
- package/dist/main-portal/lib/utils.js +24 -0
- package/dist/main-portal/lib/wallet-auth/api.d.ts +13 -0
- package/dist/main-portal/lib/wallet-auth/api.js +132 -0
- package/dist/main-portal/lib/wallet-auth/types.d.ts +87 -0
- package/dist/main-portal/lib/wallet-auth/types.js +58 -0
- package/package.json +55 -5
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOKEN_BY_SYMBOL = exports.TOKEN_BY_MINT = exports.MAINSTREAM_TOKENS = void 0;
|
|
4
|
+
const T = '/assets/tokens';
|
|
5
|
+
exports.MAINSTREAM_TOKENS = [
|
|
6
|
+
{ symbol: "SOL", name: "Solana", mint: "So11111111111111111111111111111111111111112", decimals: 9, color: "bg-purple-500", isStablecoin: false, isNative: true, logoURI: `${T}/sol.png` },
|
|
7
|
+
{ symbol: "MCC", name: "Microcosm Coin", mint: "MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb", decimals: 9, color: "bg-cyan-500", isStablecoin: false, logoURI: `${T}/mcc.jpg` },
|
|
8
|
+
{ symbol: "MCD", name: "Microcosm Dollar", mint: "MCDAhpfpKrsvXd1i95jToVd5SRL2xrZbeEriBbBJAn2", decimals: 9, color: "bg-amber-500", isStablecoin: true, logoURI: `${T}/mcd.jpg` },
|
|
9
|
+
{ symbol: "USDC", name: "USD Coin", mint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", decimals: 6, color: "bg-blue-500", isStablecoin: true, logoURI: `${T}/usdc.png` },
|
|
10
|
+
{ symbol: "USDT", name: "Tether USD", mint: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", decimals: 6, color: "bg-green-500", isStablecoin: true, logoURI: `${T}/usdt.png` },
|
|
11
|
+
{ symbol: "WBTC", name: "Wrapped Bitcoin", mint: "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh", decimals: 8, color: "bg-orange-500", isStablecoin: false, logoURI: `${T}/wbtc.png` },
|
|
12
|
+
{ symbol: "WETH", name: "Wrapped Ether", mint: "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs", decimals: 8, color: "bg-blue-400", isStablecoin: false, logoURI: `${T}/weth.png` },
|
|
13
|
+
{ symbol: "JUP", name: "Jupiter", mint: "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", decimals: 6, color: "bg-lime-500", isStablecoin: false, logoURI: `${T}/jup.png` },
|
|
14
|
+
{ symbol: "RAY", name: "Raydium", mint: "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R", decimals: 6, color: "bg-cyan-500", isStablecoin: false, logoURI: `${T}/ray.png` },
|
|
15
|
+
{ symbol: "ORCA", name: "Orca", mint: "orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE", decimals: 6, color: "bg-yellow-500", isStablecoin: false, logoURI: `${T}/orca.png` },
|
|
16
|
+
{ symbol: "PYTH", name: "Pyth Network", mint: "HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3", decimals: 6, color: "bg-violet-500", isStablecoin: false, logoURI: `${T}/pyth.png` },
|
|
17
|
+
{ symbol: "JTO", name: "Jito", mint: "jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL", decimals: 9, color: "bg-emerald-500", isStablecoin: false, logoURI: `${T}/jto.png` },
|
|
18
|
+
{ symbol: "BONK", name: "Bonk", mint: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263", decimals: 5, color: "bg-orange-400", isStablecoin: false, logoURI: `${T}/bonk.png` },
|
|
19
|
+
{ symbol: "WIF", name: "dogwifhat", mint: "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm", decimals: 6, color: "bg-pink-500", isStablecoin: false, logoURI: `${T}/wif.png` },
|
|
20
|
+
{ symbol: "RENDER", name: "Render", mint: "rndrizKT3MK1iimdxRdWabcF7Zg7AR5T4nud4EkHBof", decimals: 8, color: "bg-teal-500", isStablecoin: false, logoURI: `${T}/render.png` },
|
|
21
|
+
{ symbol: "HNT", name: "Helium", mint: "hntyVP6YFm1Hg25TN9WGLqM12b8TQmcknKrdu1oxWux", decimals: 8, color: "bg-sky-500", isStablecoin: false, logoURI: `${T}/hnt.png` },
|
|
22
|
+
{ symbol: "W", name: "Wormhole", mint: "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ", decimals: 6, color: "bg-slate-500", isStablecoin: false, logoURI: `${T}/w.png` },
|
|
23
|
+
{ symbol: "MSOL", name: "Marinade SOL", mint: "mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So", decimals: 9, color: "bg-rose-500", isStablecoin: false, logoURI: `${T}/msol.png` },
|
|
24
|
+
{ symbol: "JITOSOL", name: "Jito Staked SOL", mint: "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn", decimals: 9, color: "bg-emerald-400", isStablecoin: false, logoURI: `${T}/jitosol.png` },
|
|
25
|
+
{ symbol: "BSOL", name: "BlazeStake SOL", mint: "bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1", decimals: 9, color: "bg-orange-300", isStablecoin: false, logoURI: `${T}/bsol.png` },
|
|
26
|
+
{ symbol: "INF", name: "Infinity", mint: "5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm", decimals: 9, color: "bg-indigo-500", isStablecoin: false, logoURI: `${T}/inf.png` },
|
|
27
|
+
{ symbol: "JUPSOL", name: "Jupiter Staked SOL", mint: "jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v", decimals: 9, color: "bg-lime-400", isStablecoin: false, logoURI: `${T}/jupsol.png` },
|
|
28
|
+
{ symbol: "TRUMP", name: "Official Trump", mint: "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN", decimals: 6, color: "bg-red-500", isStablecoin: false, logoURI: `${T}/trump.png` },
|
|
29
|
+
{ symbol: "POPCAT", name: "Popcat", mint: "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr", decimals: 9, color: "bg-orange-300", isStablecoin: false, logoURI: `${T}/popcat.png` },
|
|
30
|
+
{ symbol: "MEW", name: "Cat in a Dogs World", mint: "MEW1gQWJ3nEXg2qgERiKu7FAFj79PHvQVREQUzScPP5", decimals: 5, color: "bg-stone-500", isStablecoin: false, logoURI: `${T}/mew.png` },
|
|
31
|
+
{ symbol: "FARTCOIN", name: "Fartcoin", mint: "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump", decimals: 6, color: "bg-green-400", isStablecoin: false, logoURI: `${T}/fartcoin.png` },
|
|
32
|
+
{ symbol: "PNUT", name: "Peanut the Squirrel", mint: "2qEHjDLDLbuBgRYvsxhc5D6uDWAivNFZGan56P1tpump", decimals: 6, color: "bg-amber-400", isStablecoin: false, logoURI: `${T}/pnut.png` },
|
|
33
|
+
{ symbol: "GOAT", name: "Goatseus Maximus", mint: "CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump", decimals: 6, color: "bg-zinc-500", isStablecoin: false, logoURI: `${T}/goat.png` },
|
|
34
|
+
{ symbol: "MICHI", name: "michi", mint: "5mbK36SZ7J19An8jFochhQS4of8g6BwUjbeCSxBSoWdp", decimals: 6, color: "bg-yellow-400", isStablecoin: false, logoURI: `${T}/michi.png` },
|
|
35
|
+
{ symbol: "GIGA", name: "Gigachad", mint: "63LfDmNb3MQ8mw9MtZ2To9bEA2M71kZUUGq5tiJxcqj9", decimals: 5, color: "bg-stone-400", isStablecoin: false, logoURI: `${T}/giga.png` },
|
|
36
|
+
{ symbol: "MOTHER", name: "Mother Iggy", mint: "3S8qX1MsMqRbiwKg2cQyx7nis1oHMgaCuc9c4VfvVdPN", decimals: 6, color: "bg-pink-400", isStablecoin: false, logoURI: `${T}/mother.png` },
|
|
37
|
+
{ symbol: "SLERF", name: "Slerf", mint: "7BgBvyjrZX1YKz4oh9mjb8ZScatkkwb8DzFx7LoiVkM3", decimals: 9, color: "bg-amber-500", isStablecoin: false, logoURI: `${T}/slerf.png` },
|
|
38
|
+
{ symbol: "MOODENG", name: "Moo Deng", mint: "ED5nyyWEzpPPiWimP8vYm7sD7TD3LAt3Q3gRTWHzPJBY", decimals: 6, color: "bg-red-400", isStablecoin: false, logoURI: `${T}/moodeng.png` },
|
|
39
|
+
{ symbol: "AI16Z", name: "ai16z", mint: "HeLp6NuQkmYB4pYWo2zYs22mESHXPQYzXbB8n4V98jwC", decimals: 9, color: "bg-purple-400", isStablecoin: false, logoURI: `${T}/ai16z.png` },
|
|
40
|
+
{ symbol: "ARC", name: "AI Rig Complex", mint: "61V8vBaqAGMpgDQi4JcAwo1dmBGHsyhzodcPqnEVpump", decimals: 6, color: "bg-cyan-400", isStablecoin: false, logoURI: `${T}/arc.png` },
|
|
41
|
+
{ symbol: "GRIFFAIN", name: "GRIFFAIN", mint: "KENJSUYLASHUMfHyy5o4Hp2FdNqZg1AsUPhfH2kYvEP", decimals: 6, color: "bg-teal-400", isStablecoin: false, logoURI: `${T}/griffain.png` },
|
|
42
|
+
{ symbol: "ZEREBRO", name: "Zerebro", mint: "8x5VqbHA8D7NkD52uNuS5nnt3PwA8pLD34ymskeSo2Wn", decimals: 6, color: "bg-indigo-400", isStablecoin: false, logoURI: `${T}/zerebro.png` },
|
|
43
|
+
{ symbol: "LUCE", name: "Luce", mint: "CBdCxKo9QavR9hfShgpEBG3zekorAeD7W1jfq2o3pump", decimals: 6, color: "bg-yellow-300", isStablecoin: false, logoURI: `${T}/luce.png` },
|
|
44
|
+
{ symbol: "DRIFT", name: "Drift", mint: "DriFtupJYLTosbwoN8koMbEYSx54aFAVLddWsbksjwg7", decimals: 6, color: "bg-violet-400", isStablecoin: false, logoURI: `${T}/drift.png` },
|
|
45
|
+
{ symbol: "KMNO", name: "Kamino", mint: "KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS", decimals: 6, color: "bg-fuchsia-500", isStablecoin: false, logoURI: `${T}/kmno.png` },
|
|
46
|
+
{ symbol: "MNGO", name: "Mango", mint: "MangoCzJ36AjZyKwVj3VnYU4GTonjfVEnJmvvWaxLac", decimals: 6, color: "bg-orange-500", isStablecoin: false, logoURI: `${T}/mngo.png` },
|
|
47
|
+
{ symbol: "FIDA", name: "Bonfida", mint: "EchesyfXePKdLtoiZSL8pBe8Myagyy8ZRqsACNCFGnvp", decimals: 6, color: "bg-blue-400", isStablecoin: false, logoURI: `${T}/fida.png` },
|
|
48
|
+
{ symbol: "SRM", name: "Serum", mint: "SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt", decimals: 6, color: "bg-cyan-300", isStablecoin: false, logoURI: `${T}/srm.png` },
|
|
49
|
+
{ symbol: "STEP", name: "Step", mint: "StepAscQoEioFxxWGnh2sLBDFp9d8rvKz2Yp39iDpyT", decimals: 9, color: "bg-amber-400", isStablecoin: false, logoURI: `${T}/step.png` },
|
|
50
|
+
{ symbol: "MAPS", name: "Maps", mint: "MAPS41MDahZ9QdKXhVa4dWB9RuyfV4XqhyAZ8XcYepb", decimals: 6, color: "bg-rose-400", isStablecoin: false, logoURI: `${T}/maps.png` },
|
|
51
|
+
{ symbol: "OXY", name: "Oxygen", mint: "z3dn17yLaGMKffVogeFHQ9zWVcXgqgf3PQnDsNs2g6M", decimals: 6, color: "bg-purple-300", isStablecoin: false, logoURI: `${T}/oxy.png` },
|
|
52
|
+
{ symbol: "DUST", name: "DUST Protocol", mint: "DUSTawucrTsGU8hcqRdHDCbuYhCPADMLM2VcCb8VnFnQ", decimals: 9, color: "bg-stone-500", isStablecoin: false, logoURI: `${T}/dust.png` },
|
|
53
|
+
{ symbol: "FORGE", name: "Forge", mint: "FoRGERiW7odcCBGU1bztZi16osPBHjxharvDathL5eds", decimals: 9, color: "bg-orange-500", isStablecoin: false, logoURI: `${T}/forge.png` },
|
|
54
|
+
{ symbol: "AURY", name: "Aurory", mint: "AURYydfxJib1ZkTir1Jn1J9ECYUtjb6rKQVmtYaixWPP", decimals: 9, color: "bg-yellow-500", isStablecoin: false, logoURI: `${T}/aury.png` },
|
|
55
|
+
{ symbol: "PORT", name: "Port Finance", mint: "PoRTjZMPXb9T7dyU7tpLEZRQj7e6ssfAE62j2oQuc6y", decimals: 6, color: "bg-blue-300", isStablecoin: false, logoURI: `${T}/port.png` },
|
|
56
|
+
{ symbol: "LIQ", name: "LIQ", mint: "4wjPQJ6PrkC4dHhYghwJzGBVP78DkBzA2U3kHoFNBuhj", decimals: 6, color: "bg-emerald-300", isStablecoin: false, logoURI: `${T}/liq.png` },
|
|
57
|
+
{ symbol: "SUNNY", name: "Sunny", mint: "SUNNYWgPQmFxe9wTZzNK7iPnJ3vYDrkgnxJRJm1s3ag", decimals: 6, color: "bg-yellow-300", isStablecoin: false, logoURI: `${T}/sunny.png` },
|
|
58
|
+
{ symbol: "SAMO", name: "Samoyedcoin", mint: "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU", decimals: 9, color: "bg-orange-400", isStablecoin: false, logoURI: `${T}/samo.png` },
|
|
59
|
+
{ symbol: "SHDW", name: "Shadow Token", mint: "SHDWyBxihqiCj6YekG2GUr7wqKLeLAMK1gHZck9pL6y", decimals: 9, color: "bg-zinc-500", isStablecoin: false, logoURI: `${T}/shdw.png` },
|
|
60
|
+
{ symbol: "ATLAS", name: "Star Atlas", mint: "ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXx", decimals: 8, color: "bg-indigo-300", isStablecoin: false, logoURI: `${T}/atlas.png` },
|
|
61
|
+
{ symbol: "POLIS", name: "Star Atlas DAO", mint: "poLisWXnNRwC6oBu1vHiuKQzFjGL4XDSu4g9qjz9qVk", decimals: 8, color: "bg-indigo-500", isStablecoin: false, logoURI: `${T}/polis.png` },
|
|
62
|
+
{ symbol: "BNB", name: "BNB", mint: "9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa", decimals: 8, color: "bg-yellow-500", isStablecoin: false, logoURI: `${T}/bnb.png` },
|
|
63
|
+
{ symbol: "SLND", name: "Solend", mint: "SLNDpmoWTVADgEdndyvWzroNL7zSi1dF9PC3xHGtPwp", decimals: 6, color: "bg-cyan-500", isStablecoin: false, logoURI: `${T}/slnd.png` },
|
|
64
|
+
{ symbol: "BLOCK", name: "Block", mint: "NFTUkR4u7wKxy9QLaX2TGvd9oZSWoMo4jqSJqdMb7Nk", decimals: 0, color: "bg-stone-400", isStablecoin: false, logoURI: `${T}/block.png` },
|
|
65
|
+
{ symbol: "GUAC", name: "Guacamole", mint: "AZsHEMXd36Bj1EMNXhowJajpUXzrKcK57wW4ZGXVa7yR", decimals: 5, color: "bg-green-500", isStablecoin: false, logoURI: `${T}/guac.png` },
|
|
66
|
+
{ symbol: "SILLY", name: "Silly Dragon", mint: "7EYnhQoR9YM3N7UoaKRoA44Uy8JeaZV3qyouov87awMs", decimals: 9, color: "bg-pink-300", isStablecoin: false, logoURI: `${T}/silly.png` },
|
|
67
|
+
{ symbol: "CWIF", name: "Catwifhat", mint: "7atgF8KQo4wJrD5ATGX7t1V2zVvykPJbFfNeVf1icFv1", decimals: 2, color: "bg-stone-400", isStablecoin: false, logoURI: `${T}/cwif.png` },
|
|
68
|
+
{ symbol: "MYRO", name: "Myro", mint: "HhJpBhRRn4g56VsyLuT8DL5Bv31HkXqsrahTTUCZeZg4", decimals: 9, color: "bg-amber-400", isStablecoin: false, logoURI: `${T}/myro.png` },
|
|
69
|
+
{ symbol: "BOME", name: "BOOK OF MEME", mint: "ukHH6c7mMyiWCf1b9pnWe25TSpkDDt3H5pQZgZ74J82", decimals: 6, color: "bg-orange-400", isStablecoin: false, logoURI: `${T}/bome.png` },
|
|
70
|
+
{ symbol: "WEN", name: "Wen", mint: "WENWENvqqNya429ubCdR81ZmD69brwQaaBYY6p3LCpk", decimals: 5, color: "bg-yellow-400", isStablecoin: false, logoURI: `${T}/wen.png` },
|
|
71
|
+
{ symbol: "SHIB", name: "Shiba Inu", mint: "CiKu4eHsVrc1eueVQeHn7qhXTcVu95gSQmBpX4utjL9z", decimals: 8, color: "bg-orange-500", isStablecoin: false, logoURI: `${T}/shib.png` },
|
|
72
|
+
{ symbol: "LDO", name: "Lido DAO", mint: "HZRCwxP2Vq9PCpPXooayhJ2bxTpo5xfpQrwB1svh332p", decimals: 8, color: "bg-cyan-400", isStablecoin: false, logoURI: `${T}/ldo.png` },
|
|
73
|
+
{ symbol: "UNI", name: "Uniswap", mint: "8FU95xFJhUUkyyCLU13HSzDLs7oC4QZdXQHL6SCeab36", decimals: 8, color: "bg-pink-500", isStablecoin: false, logoURI: `${T}/uni.png` },
|
|
74
|
+
{ symbol: "LINK", name: "Chainlink", mint: "2wpTofQ8SkACrkZWrZDjXPitYa8AwWgX8AfxdeBRRVLX", decimals: 8, color: "bg-blue-500", isStablecoin: false, logoURI: `${T}/link.png` },
|
|
75
|
+
{ symbol: "AVAX", name: "Avalanche", mint: "KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE", decimals: 8, color: "bg-red-500", isStablecoin: false, logoURI: `${T}/avax.png` },
|
|
76
|
+
{ symbol: "FTM", name: "Fantom", mint: "EsPKhGTMf3bGoy4Qm7pCv3UCcWqAmbC1UGHBTDxRjjD4", decimals: 8, color: "bg-blue-400", isStablecoin: false, logoURI: `${T}/ftm.png` },
|
|
77
|
+
{ symbol: "MATIC", name: "Polygon", mint: "Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG", decimals: 8, color: "bg-purple-500", isStablecoin: false, logoURI: `${T}/matic.png` },
|
|
78
|
+
{ symbol: "BAT", name: "Basic Attention", mint: "EPeUFDgHRxs9xxEPVaL6kfGQvCon7jmAWKVUHuux1Tpz", decimals: 8, color: "bg-orange-500", isStablecoin: false, logoURI: `${T}/bat.png` },
|
|
79
|
+
{ symbol: "GMT", name: "STEPN", mint: "7i5KKsX2weiTkry7jA4ZwSuXGhs5eJBEjY8vVxR4pfRx", decimals: 9, color: "bg-emerald-500", isStablecoin: false, logoURI: `${T}/gmt.png` },
|
|
80
|
+
{ symbol: "GST", name: "GST", mint: "AFbX8oGjGpmVFywbVouvhQSRmiW2aR1mohfahi4Y2AdB", decimals: 9, color: "bg-green-400", isStablecoin: false, logoURI: `${T}/gst.png` },
|
|
81
|
+
{ symbol: "STARS", name: "StarLaunch", mint: "HCgybxq5Upy8Mccihrp7EsmwwFqYZtrHrsmsKwtGXLgW", decimals: 6, color: "bg-violet-500", isStablecoin: false, logoURI: `${T}/stars.png` },
|
|
82
|
+
{ symbol: "FOXY", name: "Famous Fox", mint: "FoXyMu5xwXre7zEoSvzViRk3nGawHUp9kUh97y2NDhcq", decimals: 0, color: "bg-orange-400", isStablecoin: false, logoURI: `${T}/foxy.png` },
|
|
83
|
+
{ symbol: "GENE", name: "Genopets", mint: "GENEtH5amGSi8kHAtQoezp1XEXwZJ8vcuePYnXdKrMYz", decimals: 9, color: "bg-pink-500", isStablecoin: false, logoURI: `${T}/gene.png` },
|
|
84
|
+
{ symbol: "SNY", name: "Synthetify", mint: "4dmKkXNHdgYsXqBHCuMikNQWwVomZURhYvkkX5c4pQ7y", decimals: 6, color: "bg-cyan-400", isStablecoin: false, logoURI: `${T}/sny.png` },
|
|
85
|
+
{ symbol: "PRT", name: "Parrot", mint: "PRT88RkA4Kg5z7pKnezeNH4mafTvtQdfFgpQTGRjz44", decimals: 6, color: "bg-emerald-500", isStablecoin: false, logoURI: `${T}/prt.png` },
|
|
86
|
+
];
|
|
87
|
+
exports.TOKEN_BY_MINT = new Map(exports.MAINSTREAM_TOKENS.map(t => [t.mint, t]));
|
|
88
|
+
exports.TOKEN_BY_SYMBOL = new Map(exports.MAINSTREAM_TOKENS.map(t => [t.symbol, t]));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface DocItem {
|
|
2
|
+
slug: string;
|
|
3
|
+
titleKey: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
file: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DocCategory {
|
|
8
|
+
id: string;
|
|
9
|
+
titleKey: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
items: DocItem[];
|
|
12
|
+
}
|
|
13
|
+
export declare const docsCategories: DocCategory[];
|
|
14
|
+
export declare function getAllDocs(): (DocItem & {
|
|
15
|
+
categoryId: string;
|
|
16
|
+
categoryTitleKey: string;
|
|
17
|
+
})[];
|
|
18
|
+
export declare function getDocBySlug(slug: string): {
|
|
19
|
+
categoryId: string;
|
|
20
|
+
categoryTitleKey: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
titleKey: string;
|
|
23
|
+
subtitle?: string;
|
|
24
|
+
file: string;
|
|
25
|
+
} | null;
|
|
26
|
+
export declare function getCategoryById(id: string): DocCategory | undefined;
|
|
27
|
+
export declare function getAdjacentDocs(slug: string): {
|
|
28
|
+
prev: (DocItem & {
|
|
29
|
+
categoryId: string;
|
|
30
|
+
categoryTitleKey: string;
|
|
31
|
+
}) | null;
|
|
32
|
+
next: (DocItem & {
|
|
33
|
+
categoryId: string;
|
|
34
|
+
categoryTitleKey: string;
|
|
35
|
+
}) | null;
|
|
36
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.docsCategories = void 0;
|
|
4
|
+
exports.getAllDocs = getAllDocs;
|
|
5
|
+
exports.getDocBySlug = getDocBySlug;
|
|
6
|
+
exports.getCategoryById = getCategoryById;
|
|
7
|
+
exports.getAdjacentDocs = getAdjacentDocs;
|
|
8
|
+
exports.docsCategories = [
|
|
9
|
+
{
|
|
10
|
+
id: "whitepaper",
|
|
11
|
+
titleKey: "catWhitepaper",
|
|
12
|
+
icon: "FileText",
|
|
13
|
+
items: [
|
|
14
|
+
{ slug: "whitepaper/overview", titleKey: "wpOverview", file: "whitepaper/00-cover-and-toc.md" },
|
|
15
|
+
{ slug: "whitepaper/vision", titleKey: "wpVision", subtitle: "Vision & Mission", file: "whitepaper/01-vision-and-mission.md" },
|
|
16
|
+
{ slug: "whitepaper/titan-world", titleKey: "wpTitanWorld", subtitle: "Carbon-Silicon Symbiosis", file: "whitepaper/01b-titan-world.md" },
|
|
17
|
+
{ slug: "whitepaper/architecture", titleKey: "wpArchitecture", subtitle: "Core Architecture", file: "whitepaper/02-core-architecture.md" },
|
|
18
|
+
{ slug: "whitepaper/organization", titleKey: "wpOrganization", subtitle: "Organization System", file: "whitepaper/03-organization-system.md" },
|
|
19
|
+
{ slug: "whitepaper/tokenomics", titleKey: "wpTokenomics", subtitle: "Token Economics", file: "whitepaper/04-tokenomics.md" },
|
|
20
|
+
{ slug: "whitepaper/mining-detail", titleKey: "wpMiningDetail", subtitle: "Mining Mechanism", file: "whitepaper/04a-mining-mechanism.md" },
|
|
21
|
+
{ slug: "whitepaper/mcc-value", titleKey: "wpMccValue", subtitle: "MCC Value Proposition", file: "whitepaper/04b-mcc-value-proposition.md" },
|
|
22
|
+
{ slug: "whitepaper/2140-protocol", titleKey: "wp2140Protocol", subtitle: "2140 Protocol", file: "whitepaper/04c-2140-protocol.md" },
|
|
23
|
+
{ slug: "whitepaper/x402", titleKey: "wpX402", subtitle: "x402 Payment Protocol", file: "whitepaper/05-x402-payment-protocol.md" },
|
|
24
|
+
{ slug: "whitepaper/tech", titleKey: "wpTech", subtitle: "Technical Implementation", file: "whitepaper/06-technical-implementation.md" },
|
|
25
|
+
{ slug: "whitepaper/developer-eco", titleKey: "wpDevEco", subtitle: "Developer Ecosystem", file: "whitepaper/07-developer-ecosystem.md" },
|
|
26
|
+
{ slug: "whitepaper/roadmap", titleKey: "wpRoadmap", subtitle: "Roadmap", file: "whitepaper/08-roadmap.md" },
|
|
27
|
+
{ slug: "whitepaper/governance", titleKey: "wpGovernance", subtitle: "Community Governance", file: "whitepaper/09-community-governance.md" },
|
|
28
|
+
{ slug: "whitepaper/security", titleKey: "wpSecurity", subtitle: "Security & Compliance", file: "whitepaper/10-security-and-compliance.md" },
|
|
29
|
+
{ slug: "whitepaper/conclusion", titleKey: "wpConclusion", subtitle: "Conclusion", file: "whitepaper/11-conclusion.md" },
|
|
30
|
+
{ slug: "whitepaper/appendix", titleKey: "wpAppendix", subtitle: "Appendix", file: "whitepaper/12-appendix.md" },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: "deep-dive",
|
|
35
|
+
titleKey: "catDeepDive",
|
|
36
|
+
icon: "Layers",
|
|
37
|
+
items: [
|
|
38
|
+
{ slug: "deep-dive/active-buyback", titleKey: "ddReincarnation", subtitle: "Active Buyback Mechanism", file: "whitepaper/reincarnation-mechanism.md" },
|
|
39
|
+
{ slug: "deep-dive/mcd-voucher", titleKey: "ddMcdVoucher", subtitle: "MCD Ecosystem Voucher", file: "whitepaper/mcd-ecosystem-voucher.md" },
|
|
40
|
+
{ slug: "deep-dive/erc8004", titleKey: "ddErc8004", subtitle: "ERC-8004 Comparison", file: "whitepaper/erc-8004-comparison.md" },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "concepts",
|
|
45
|
+
titleKey: "catConcepts",
|
|
46
|
+
icon: "BookOpen",
|
|
47
|
+
items: [
|
|
48
|
+
{ slug: "concepts/terminology", titleKey: "coTerminology", subtitle: "Terminology", file: "_definitions/terminology.md" },
|
|
49
|
+
{ slug: "concepts/user-levels", titleKey: "coUserLevels", subtitle: "User Levels", file: "_definitions/user-levels.md" },
|
|
50
|
+
{ slug: "concepts/distribution", titleKey: "coDistribution", subtitle: "Distribution Ratios", file: "_definitions/distribution-ratios.md" },
|
|
51
|
+
{ slug: "concepts/mining-flow", titleKey: "coMiningFlow", subtitle: "Mining Flow", file: "_definitions/mining-flow.md" },
|
|
52
|
+
{ slug: "concepts/solana-contracts", titleKey: "coSolanaContracts", subtitle: "Solana Contracts", file: "_definitions/solana-contracts.md" },
|
|
53
|
+
{ slug: "concepts/price-oracle", titleKey: "coPriceOracle", subtitle: "Price Oracle", file: "_definitions/price-oracle.md" },
|
|
54
|
+
{ slug: "concepts/tech-bonus", titleKey: "coTechBonus", subtitle: "Tech Bonus", file: "_definitions/tech-bonus.md" },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "developer",
|
|
59
|
+
titleKey: "catDeveloper",
|
|
60
|
+
icon: "Terminal",
|
|
61
|
+
items: [
|
|
62
|
+
{ slug: "developer/integration-guide", titleKey: "devIntegrationGuide", subtitle: "SDK + Hooks + Components", file: "microcosm-integration-guide.md" },
|
|
63
|
+
{ slug: "developer/api-reference", titleKey: "devApiReference", subtitle: "85 REST API Endpoints", file: "microcosm-api-reference.md" },
|
|
64
|
+
{ slug: "developer/code-examples", titleKey: "devCodeExamples", subtitle: "91 Hooks + 12 Components", file: "microcosm-code-examples.md" },
|
|
65
|
+
{ slug: "developer/auth-sdk-design", titleKey: "devAuthSdkDesign", subtitle: "SDK Architecture (3 packages)", file: "microcosm-auth-sdk-design.md" },
|
|
66
|
+
{ slug: "developer/auth-service", titleKey: "devAuthService", subtitle: "OAuth Proxy Service", file: "microcosm-auth-proxy-service.md" },
|
|
67
|
+
{ slug: "developer/open-api", titleKey: "devOpenApi", subtitle: "Open API Implementation Plan", file: "Microcosm-Open-API-Implementation-Plan.md" },
|
|
68
|
+
{ slug: "developer/oauth-format", titleKey: "devOauthFormat", subtitle: "OAuth Data Format", file: "_definitions/oauth-data-format.md" },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "legal",
|
|
73
|
+
titleKey: "catLegal",
|
|
74
|
+
icon: "Scale",
|
|
75
|
+
items: [
|
|
76
|
+
{ slug: "legal/registration-agreement", titleKey: "legalRegistration", subtitle: "Registration Agreement", file: "legal/registration-agreement.md" },
|
|
77
|
+
{ slug: "legal/terms-of-service", titleKey: "legalTerms", subtitle: "Terms of Service", file: "legal/terms-of-service.md" },
|
|
78
|
+
{ slug: "legal/privacy-policy", titleKey: "legalPrivacy", subtitle: "Privacy Policy", file: "legal/privacy-policy.md" },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
function getAllDocs() {
|
|
83
|
+
return exports.docsCategories.flatMap((cat) => cat.items.map((item) => ({
|
|
84
|
+
...item,
|
|
85
|
+
categoryId: cat.id,
|
|
86
|
+
categoryTitleKey: cat.titleKey,
|
|
87
|
+
})));
|
|
88
|
+
}
|
|
89
|
+
function getDocBySlug(slug) {
|
|
90
|
+
for (const cat of exports.docsCategories) {
|
|
91
|
+
const doc = cat.items.find((item) => item.slug === slug);
|
|
92
|
+
if (doc) {
|
|
93
|
+
return { ...doc, categoryId: cat.id, categoryTitleKey: cat.titleKey };
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
function getCategoryById(id) {
|
|
99
|
+
return exports.docsCategories.find((cat) => cat.id === id);
|
|
100
|
+
}
|
|
101
|
+
function getAdjacentDocs(slug) {
|
|
102
|
+
const allDocs = getAllDocs();
|
|
103
|
+
const index = allDocs.findIndex((d) => d.slug === slug);
|
|
104
|
+
return {
|
|
105
|
+
prev: index > 0 ? allDocs[index - 1] : null,
|
|
106
|
+
next: index < allDocs.length - 1 ? allDocs[index + 1] : null,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type ExchangeType = 'cex' | 'dex';
|
|
2
|
+
export type AuthType = 'api_key' | 'wallet';
|
|
3
|
+
export interface ExchangeConfig {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
type: ExchangeType;
|
|
8
|
+
authType: AuthType;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
priority: number;
|
|
11
|
+
authFields: {
|
|
12
|
+
apiKey?: boolean;
|
|
13
|
+
secretKey?: boolean;
|
|
14
|
+
passphrase?: boolean;
|
|
15
|
+
privateKey?: boolean;
|
|
16
|
+
walletAddress?: boolean;
|
|
17
|
+
};
|
|
18
|
+
features: {
|
|
19
|
+
spot: boolean;
|
|
20
|
+
futures: boolean;
|
|
21
|
+
margin: boolean;
|
|
22
|
+
};
|
|
23
|
+
logoUrl?: string;
|
|
24
|
+
helpUrl?: string;
|
|
25
|
+
testnetUrl?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const EXCHANGE_CONFIGS: Record<string, ExchangeConfig>;
|
|
28
|
+
export declare function getEnabledExchanges(): ExchangeConfig[];
|
|
29
|
+
export declare function getCEXExchanges(): ExchangeConfig[];
|
|
30
|
+
export declare function getDEXExchanges(): ExchangeConfig[];
|
|
31
|
+
export declare function getExchangeConfig(exchangeId: string): ExchangeConfig | undefined;
|
|
32
|
+
export declare function requiresPassphrase(exchangeId: string): boolean;
|
|
33
|
+
export declare function isDEX(exchangeId: string): boolean;
|
|
34
|
+
export declare function getAuthFields(exchangeId: string): string[];
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EXCHANGE_CONFIGS = void 0;
|
|
4
|
+
exports.getEnabledExchanges = getEnabledExchanges;
|
|
5
|
+
exports.getCEXExchanges = getCEXExchanges;
|
|
6
|
+
exports.getDEXExchanges = getDEXExchanges;
|
|
7
|
+
exports.getExchangeConfig = getExchangeConfig;
|
|
8
|
+
exports.requiresPassphrase = requiresPassphrase;
|
|
9
|
+
exports.isDEX = isDEX;
|
|
10
|
+
exports.getAuthFields = getAuthFields;
|
|
11
|
+
exports.EXCHANGE_CONFIGS = {
|
|
12
|
+
binance: {
|
|
13
|
+
id: 'binance',
|
|
14
|
+
name: 'Binance',
|
|
15
|
+
displayName: '币安',
|
|
16
|
+
type: 'cex',
|
|
17
|
+
authType: 'api_key',
|
|
18
|
+
enabled: true,
|
|
19
|
+
priority: 1,
|
|
20
|
+
authFields: {
|
|
21
|
+
apiKey: true,
|
|
22
|
+
secretKey: true,
|
|
23
|
+
},
|
|
24
|
+
features: {
|
|
25
|
+
spot: true,
|
|
26
|
+
futures: true,
|
|
27
|
+
margin: true,
|
|
28
|
+
},
|
|
29
|
+
helpUrl: 'https://www.binance.com/zh-CN/support/faq/how-to-create-api-keys-on-binance-360002502072',
|
|
30
|
+
},
|
|
31
|
+
bybit: {
|
|
32
|
+
id: 'bybit',
|
|
33
|
+
name: 'Bybit',
|
|
34
|
+
displayName: 'Bybit',
|
|
35
|
+
type: 'cex',
|
|
36
|
+
authType: 'api_key',
|
|
37
|
+
enabled: true,
|
|
38
|
+
priority: 2,
|
|
39
|
+
authFields: {
|
|
40
|
+
apiKey: true,
|
|
41
|
+
secretKey: true,
|
|
42
|
+
},
|
|
43
|
+
features: {
|
|
44
|
+
spot: true,
|
|
45
|
+
futures: true,
|
|
46
|
+
margin: false,
|
|
47
|
+
},
|
|
48
|
+
helpUrl: 'https://www.bybit.com/zh-TW/help-center/bybitHC_Article/?id=000001966',
|
|
49
|
+
},
|
|
50
|
+
okx: {
|
|
51
|
+
id: 'okx',
|
|
52
|
+
name: 'OKX',
|
|
53
|
+
displayName: 'OKX',
|
|
54
|
+
type: 'cex',
|
|
55
|
+
authType: 'api_key',
|
|
56
|
+
enabled: true,
|
|
57
|
+
priority: 3,
|
|
58
|
+
authFields: {
|
|
59
|
+
apiKey: true,
|
|
60
|
+
secretKey: true,
|
|
61
|
+
passphrase: true,
|
|
62
|
+
},
|
|
63
|
+
features: {
|
|
64
|
+
spot: true,
|
|
65
|
+
futures: true,
|
|
66
|
+
margin: true,
|
|
67
|
+
},
|
|
68
|
+
helpUrl: 'https://www.okx.com/zh-hans/help/how-do-i-create-an-api-key',
|
|
69
|
+
},
|
|
70
|
+
bitget: {
|
|
71
|
+
id: 'bitget',
|
|
72
|
+
name: 'Bitget',
|
|
73
|
+
displayName: 'Bitget',
|
|
74
|
+
type: 'cex',
|
|
75
|
+
authType: 'api_key',
|
|
76
|
+
enabled: true,
|
|
77
|
+
priority: 4,
|
|
78
|
+
authFields: {
|
|
79
|
+
apiKey: true,
|
|
80
|
+
secretKey: true,
|
|
81
|
+
passphrase: true,
|
|
82
|
+
},
|
|
83
|
+
features: {
|
|
84
|
+
spot: true,
|
|
85
|
+
futures: true,
|
|
86
|
+
margin: false,
|
|
87
|
+
},
|
|
88
|
+
helpUrl: 'https://www.bitget.com/zh-CN/academy/how-to-create-api-key',
|
|
89
|
+
},
|
|
90
|
+
hyperliquid: {
|
|
91
|
+
id: 'hyperliquid',
|
|
92
|
+
name: 'Hyperliquid',
|
|
93
|
+
displayName: 'Hyperliquid',
|
|
94
|
+
type: 'dex',
|
|
95
|
+
authType: 'wallet',
|
|
96
|
+
enabled: true,
|
|
97
|
+
priority: 5,
|
|
98
|
+
authFields: {
|
|
99
|
+
privateKey: true,
|
|
100
|
+
walletAddress: true,
|
|
101
|
+
},
|
|
102
|
+
features: {
|
|
103
|
+
spot: false,
|
|
104
|
+
futures: true,
|
|
105
|
+
margin: false,
|
|
106
|
+
},
|
|
107
|
+
helpUrl: 'https://hyperliquid.gitbook.io/hyperliquid-docs',
|
|
108
|
+
},
|
|
109
|
+
aster: {
|
|
110
|
+
id: 'aster',
|
|
111
|
+
name: 'Aster',
|
|
112
|
+
displayName: 'Aster DEX',
|
|
113
|
+
type: 'dex',
|
|
114
|
+
authType: 'wallet',
|
|
115
|
+
enabled: true,
|
|
116
|
+
priority: 6,
|
|
117
|
+
authFields: {
|
|
118
|
+
privateKey: true,
|
|
119
|
+
walletAddress: true,
|
|
120
|
+
},
|
|
121
|
+
features: {
|
|
122
|
+
spot: false,
|
|
123
|
+
futures: true,
|
|
124
|
+
margin: false,
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
lighter: {
|
|
128
|
+
id: 'lighter',
|
|
129
|
+
name: 'Lighter',
|
|
130
|
+
displayName: 'Lighter',
|
|
131
|
+
type: 'dex',
|
|
132
|
+
authType: 'wallet',
|
|
133
|
+
enabled: true,
|
|
134
|
+
priority: 7,
|
|
135
|
+
authFields: {
|
|
136
|
+
privateKey: true,
|
|
137
|
+
walletAddress: true,
|
|
138
|
+
},
|
|
139
|
+
features: {
|
|
140
|
+
spot: false,
|
|
141
|
+
futures: true,
|
|
142
|
+
margin: false,
|
|
143
|
+
},
|
|
144
|
+
helpUrl: 'https://docs.lighter.xyz/',
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
function getEnabledExchanges() {
|
|
148
|
+
return Object.values(exports.EXCHANGE_CONFIGS)
|
|
149
|
+
.filter(config => config.enabled)
|
|
150
|
+
.sort((a, b) => a.priority - b.priority);
|
|
151
|
+
}
|
|
152
|
+
function getCEXExchanges() {
|
|
153
|
+
return getEnabledExchanges().filter(config => config.type === 'cex');
|
|
154
|
+
}
|
|
155
|
+
function getDEXExchanges() {
|
|
156
|
+
return getEnabledExchanges().filter(config => config.type === 'dex');
|
|
157
|
+
}
|
|
158
|
+
function getExchangeConfig(exchangeId) {
|
|
159
|
+
return exports.EXCHANGE_CONFIGS[exchangeId.toLowerCase()];
|
|
160
|
+
}
|
|
161
|
+
function requiresPassphrase(exchangeId) {
|
|
162
|
+
const config = getExchangeConfig(exchangeId);
|
|
163
|
+
return config?.authFields.passphrase ?? false;
|
|
164
|
+
}
|
|
165
|
+
function isDEX(exchangeId) {
|
|
166
|
+
const config = getExchangeConfig(exchangeId);
|
|
167
|
+
return config?.type === 'dex';
|
|
168
|
+
}
|
|
169
|
+
function getAuthFields(exchangeId) {
|
|
170
|
+
const config = getExchangeConfig(exchangeId);
|
|
171
|
+
if (!config)
|
|
172
|
+
return [];
|
|
173
|
+
const fields = [];
|
|
174
|
+
if (config.authFields.apiKey)
|
|
175
|
+
fields.push('apiKey');
|
|
176
|
+
if (config.authFields.secretKey)
|
|
177
|
+
fields.push('secretKey');
|
|
178
|
+
if (config.authFields.passphrase)
|
|
179
|
+
fields.push('passphrase');
|
|
180
|
+
if (config.authFields.privateKey)
|
|
181
|
+
fields.push('privateKey');
|
|
182
|
+
if (config.authFields.walletAddress)
|
|
183
|
+
fields.push('walletAddress');
|
|
184
|
+
return fields;
|
|
185
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useBinanceData } from './useBinanceData';
|
|
2
|
+
export type { UseBinanceDataReturn } from './useBinanceData';
|
|
3
|
+
export { useBinanceDialogs } from './useBinanceDialogs';
|
|
4
|
+
export type { UseBinanceDialogsReturn, DialogType } from './useBinanceDialogs';
|
|
5
|
+
export { useUserExchanges } from './useUserExchanges';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useUserExchanges = exports.useBinanceDialogs = exports.useBinanceData = void 0;
|
|
4
|
+
// AI-generated · AI-managed · AI-maintained
|
|
5
|
+
var useBinanceData_1 = require("./useBinanceData");
|
|
6
|
+
Object.defineProperty(exports, "useBinanceData", { enumerable: true, get: function () { return useBinanceData_1.useBinanceData; } });
|
|
7
|
+
var useBinanceDialogs_1 = require("./useBinanceDialogs");
|
|
8
|
+
Object.defineProperty(exports, "useBinanceDialogs", { enumerable: true, get: function () { return useBinanceDialogs_1.useBinanceDialogs; } });
|
|
9
|
+
var useUserExchanges_1 = require("./useUserExchanges");
|
|
10
|
+
Object.defineProperty(exports, "useUserExchanges", { enumerable: true, get: function () { return useUserExchanges_1.useUserExchanges; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AccountBalance, Position, OpenOrder, Trade, GroupedPosition, GroupedOrders, GroupedTrades } from "../types";
|
|
2
|
+
export interface UseBinanceDataReturn {
|
|
3
|
+
userId: string | null;
|
|
4
|
+
accountBalance: AccountBalance | null;
|
|
5
|
+
positions: Position[];
|
|
6
|
+
openOrders: OpenOrder[];
|
|
7
|
+
trades: Trade[];
|
|
8
|
+
groupedPositions: GroupedPosition[];
|
|
9
|
+
groupedOrders: GroupedOrders[];
|
|
10
|
+
groupedTrades: GroupedTrades[];
|
|
11
|
+
loading: boolean;
|
|
12
|
+
error: string | null;
|
|
13
|
+
fetchData: () => Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export declare function useBinanceData(): UseBinanceDataReturn;
|