@n1xyz/wallet-widget 0.0.1 → 0.0.5
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/LICENSE +44 -0
- package/README.md +210 -0
- package/dist/Logic/sessionManager.d.ts +53 -0
- package/dist/Logic/sessionManager.js +178 -0
- package/dist/Logic/transactionManager.d.ts +41 -0
- package/dist/Logic/transactionManager.js +192 -0
- package/dist/Logic/utils.d.ts +1 -0
- package/dist/Logic/utils.js +47 -9
- package/dist/Modal/BackButton.js +14 -1
- package/dist/Modal/ConnectView.js +20 -23
- package/dist/Modal/CreateSessionView.js +23 -11
- package/dist/Modal/CreateUserView.js +1 -1
- package/dist/Modal/LoadingFallback.d.ts +2 -0
- package/dist/Modal/LoadingFallback.js +2 -0
- package/dist/Modal/ModalHeader.js +14 -3
- package/dist/Modal/N1WalletModal.js +91 -79
- package/dist/Modal/NTSFlow/LoadingFallback.d.ts +2 -0
- package/dist/Modal/NTSFlow/LoadingFallback.js +2 -0
- package/dist/Modal/NTSFlow/NTSFlow.d.ts +4 -0
- package/dist/Modal/NTSFlow/NTSFlow.js +30 -0
- package/dist/Modal/NTSFlow/NordFlow/WalletConnectionFlow.d.ts +9 -0
- package/dist/Modal/NTSFlow/NordFlow/WalletConnectionFlow.js +145 -0
- package/dist/Modal/NTSFlow/NordFlow/components/AnimatedButton.d.ts +14 -0
- package/dist/Modal/NTSFlow/NordFlow/components/AnimatedButton.js +75 -0
- package/dist/Modal/NTSFlow/NordFlow/components/ChainButton.d.ts +7 -0
- package/dist/Modal/NTSFlow/NordFlow/components/ChainButton.js +5 -0
- package/dist/Modal/NTSFlow/NordFlow/components/LoadingSquares.d.ts +1 -0
- package/dist/Modal/NTSFlow/NordFlow/components/LoadingSquares.js +5 -0
- package/dist/Modal/NTSFlow/NordFlow/components/TransactionTable.d.ts +13 -0
- package/dist/Modal/NTSFlow/NordFlow/components/TransactionTable.js +58 -0
- package/dist/Modal/NTSFlow/NordFlow/components/WaitingMessage.d.ts +6 -0
- package/dist/Modal/NTSFlow/NordFlow/components/WaitingMessage.js +6 -0
- package/dist/Modal/NTSFlow/NordFlow/components/index.d.ts +5 -0
- package/dist/Modal/NTSFlow/NordFlow/components/index.js +5 -0
- package/dist/Modal/NTSFlow/NordFlow/constants.d.ts +37 -0
- package/dist/Modal/NTSFlow/NordFlow/constants.js +223 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/index.d.ts +8 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/index.js +8 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useButtonTyping.d.ts +7 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useButtonTyping.js +43 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useDepositFlow.d.ts +38 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useDepositFlow.js +166 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useFlowState.d.ts +32 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useFlowState.js +163 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useInterruptHandler.d.ts +27 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useInterruptHandler.js +101 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useNordSession.d.ts +32 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useNordSession.js +193 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useTableValues.d.ts +2 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useTableValues.js +69 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useWaitingMessage.d.ts +6 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useWaitingMessage.js +89 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useWalletConnect.d.ts +30 -0
- package/dist/Modal/NTSFlow/NordFlow/hooks/useWalletConnect.js +132 -0
- package/dist/Modal/NTSFlow/NordFlow/index.d.ts +3 -0
- package/dist/Modal/NTSFlow/NordFlow/index.js +3 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/01-ConnectWalletScreen.d.ts +6 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/01-ConnectWalletScreen.js +17 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/02-EvmWalletAuthScreen.d.ts +6 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/02-EvmWalletAuthScreen.js +47 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/03-ChainSelectionScreen.d.ts +7 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/03-ChainSelectionScreen.js +7 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/04-AmountInputScreen.d.ts +8 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/04-AmountInputScreen.js +20 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/05-DepositProgressScreen.d.ts +7 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/05-DepositProgressScreen.js +6 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/06-DepositSuccessScreen.d.ts +8 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/06-DepositSuccessScreen.js +99 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/07-NordAuthScreen.d.ts +7 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/07-NordAuthScreen.js +14 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/08-AuthLoadingScreen.d.ts +6 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/08-AuthLoadingScreen.js +20 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/09-FinalSuccessScreen.d.ts +5 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/09-FinalSuccessScreen.js +18 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/10-ErrorScreen.d.ts +7 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/10-ErrorScreen.js +13 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/index.d.ts +10 -0
- package/dist/Modal/NTSFlow/NordFlow/screens/index.js +10 -0
- package/dist/Modal/NTSFlow/NordFlow/types.d.ts +105 -0
- package/dist/Modal/NTSFlow/NordFlow/types.js +34 -0
- package/dist/Modal/NTSFlow/NordFlow/utils/persistence.d.ts +24 -0
- package/dist/Modal/NTSFlow/NordFlow/utils/persistence.js +83 -0
- package/dist/Modal/NTSFlow/components/BackButton.d.ts +3 -0
- package/dist/Modal/NTSFlow/components/BackButton.js +26 -0
- package/dist/Modal/NTSFlow/components/ModalHeader.d.ts +1 -0
- package/dist/Modal/NTSFlow/components/ModalHeader.js +20 -0
- package/dist/Modal/NTSFlow/index.d.ts +1 -0
- package/dist/Modal/NTSFlow/index.js +1 -0
- package/dist/Modal/NTSFlow/views/ConnectView.d.ts +1 -0
- package/dist/Modal/NTSFlow/views/ConnectView.js +68 -0
- package/dist/Modal/NTSFlow/views/CreateSessionView.d.ts +1 -0
- package/dist/Modal/NTSFlow/views/CreateSessionView.js +245 -0
- package/dist/Modal/NTSFlow/views/CreateUserView.d.ts +1 -0
- package/dist/Modal/NTSFlow/views/CreateUserView.js +105 -0
- package/dist/Modal/NTSFlow/views/NoWhitelistView.d.ts +1 -0
- package/dist/Modal/NTSFlow/views/NoWhitelistView.js +42 -0
- package/dist/Modal/NTSFlow/views/SigningView.d.ts +1 -0
- package/dist/Modal/NTSFlow/views/SigningView.js +5 -0
- package/dist/Modal/NTSFlow/views/SuccessView.d.ts +1 -0
- package/dist/Modal/NTSFlow/views/SuccessView.js +10 -0
- package/dist/Modal/NoWhitelistView.js +14 -1
- package/dist/Modal/NordFlow/NordFlow.d.ts +9 -0
- package/dist/Modal/NordFlow/NordFlow.js +262 -0
- package/dist/Modal/NordFlow/NordFlowWrapper.d.ts +11 -0
- package/dist/Modal/NordFlow/NordFlowWrapper.js +11 -0
- package/dist/Modal/NordFlow/WalletConnectionFlow.d.ts +9 -0
- package/dist/Modal/NordFlow/WalletConnectionFlow.js +145 -0
- package/dist/Modal/NordFlow/components/AnimatedButton.d.ts +14 -0
- package/dist/Modal/NordFlow/components/AnimatedButton.js +75 -0
- package/dist/Modal/NordFlow/components/ChainButton.d.ts +8 -0
- package/dist/Modal/NordFlow/components/ChainButton.js +21 -0
- package/dist/Modal/NordFlow/components/ImageWithFallback.d.ts +17 -0
- package/dist/Modal/NordFlow/components/ImageWithFallback.js +32 -0
- package/dist/Modal/NordFlow/components/LoadingSquares.d.ts +1 -0
- package/dist/Modal/NordFlow/components/LoadingSquares.js +5 -0
- package/dist/Modal/NordFlow/components/TransactionTable.d.ts +13 -0
- package/dist/Modal/NordFlow/components/TransactionTable.js +83 -0
- package/dist/Modal/NordFlow/components/WaitingMessage.d.ts +6 -0
- package/dist/Modal/NordFlow/components/WaitingMessage.js +6 -0
- package/dist/Modal/NordFlow/components/index.d.ts +5 -0
- package/dist/Modal/NordFlow/components/index.js +5 -0
- package/dist/Modal/NordFlow/constants.d.ts +37 -0
- package/dist/Modal/NordFlow/constants.js +192 -0
- package/dist/Modal/NordFlow/hoc/index.d.ts +1 -0
- package/dist/Modal/NordFlow/hoc/index.js +1 -0
- package/dist/Modal/NordFlow/hoc/withImageFallback.d.ts +7 -0
- package/dist/Modal/NordFlow/hoc/withImageFallback.js +60 -0
- package/dist/Modal/NordFlow/hooks/index.d.ts +5 -0
- package/dist/Modal/NordFlow/hooks/index.js +5 -0
- package/dist/Modal/NordFlow/hooks/useButtonTyping.d.ts +7 -0
- package/dist/Modal/NordFlow/hooks/useButtonTyping.js +43 -0
- package/dist/Modal/NordFlow/hooks/useDepositFlow.d.ts +52 -0
- package/dist/Modal/NordFlow/hooks/useDepositFlow.js +365 -0
- package/dist/Modal/NordFlow/hooks/useFlowState.d.ts +32 -0
- package/dist/Modal/NordFlow/hooks/useFlowState.js +166 -0
- package/dist/Modal/NordFlow/hooks/useInterruptHandler.d.ts +24 -0
- package/dist/Modal/NordFlow/hooks/useInterruptHandler.js +56 -0
- package/dist/Modal/NordFlow/hooks/useNordInstance.d.ts +10 -0
- package/dist/Modal/NordFlow/hooks/useNordInstance.js +310 -0
- package/dist/Modal/NordFlow/hooks/useNordSession.d.ts +32 -0
- package/dist/Modal/NordFlow/hooks/useNordSession.js +391 -0
- package/dist/Modal/NordFlow/hooks/useNordWalletConnect.d.ts +14 -0
- package/dist/Modal/NordFlow/hooks/useNordWalletConnect.js +231 -0
- package/dist/Modal/NordFlow/hooks/useTableValues.d.ts +2 -0
- package/dist/Modal/NordFlow/hooks/useTableValues.js +69 -0
- package/dist/Modal/NordFlow/hooks/useWaitingMessage.d.ts +6 -0
- package/dist/Modal/NordFlow/hooks/useWaitingMessage.js +89 -0
- package/dist/Modal/NordFlow/hooks/useWalletConnect.d.ts +14 -0
- package/dist/Modal/NordFlow/hooks/useWalletConnect.js +221 -0
- package/dist/Modal/NordFlow/index copy.d.ts +1 -0
- package/dist/Modal/NordFlow/index copy.js +1 -0
- package/dist/Modal/NordFlow/index.d.ts +1 -0
- package/dist/Modal/NordFlow/index.js +1 -0
- package/dist/Modal/NordFlow/screens/01-ConnectWalletScreen.d.ts +6 -0
- package/dist/Modal/NordFlow/screens/01-ConnectWalletScreen.js +17 -0
- package/dist/Modal/NordFlow/screens/02-EvmWalletAuthScreen.d.ts +6 -0
- package/dist/Modal/NordFlow/screens/02-EvmWalletAuthScreen.js +47 -0
- package/dist/Modal/NordFlow/screens/03-ChainSelectionScreen.d.ts +7 -0
- package/dist/Modal/NordFlow/screens/03-ChainSelectionScreen.js +47 -0
- package/dist/Modal/NordFlow/screens/04-AmountInputScreen.d.ts +10 -0
- package/dist/Modal/NordFlow/screens/04-AmountInputScreen.js +165 -0
- package/dist/Modal/NordFlow/screens/05-DepositProgressScreen.d.ts +6 -0
- package/dist/Modal/NordFlow/screens/05-DepositProgressScreen.js +44 -0
- package/dist/Modal/NordFlow/screens/06-DepositSuccessScreen.d.ts +8 -0
- package/dist/Modal/NordFlow/screens/06-DepositSuccessScreen.js +119 -0
- package/dist/Modal/NordFlow/screens/07-AuthLoadingScreen.d.ts +6 -0
- package/dist/Modal/NordFlow/screens/07-AuthLoadingScreen.js +126 -0
- package/dist/Modal/NordFlow/screens/07-NordAuthScreen.d.ts +5 -0
- package/dist/Modal/NordFlow/screens/07-NordAuthScreen.js +17 -0
- package/dist/Modal/NordFlow/screens/08-AuthLoadingScreen.d.ts +6 -0
- package/dist/Modal/NordFlow/screens/08-AuthLoadingScreen.js +153 -0
- package/dist/Modal/NordFlow/screens/08-FinalSuccessScreen.d.ts +5 -0
- package/dist/Modal/NordFlow/screens/08-FinalSuccessScreen.js +36 -0
- package/dist/Modal/NordFlow/screens/09-ErrorScreen.d.ts +7 -0
- package/dist/Modal/NordFlow/screens/09-ErrorScreen.js +62 -0
- package/dist/Modal/NordFlow/screens/09-FinalSuccessScreen.d.ts +5 -0
- package/dist/Modal/NordFlow/screens/09-FinalSuccessScreen.js +47 -0
- package/dist/Modal/NordFlow/screens/10-ErrorScreen.d.ts +7 -0
- package/dist/Modal/NordFlow/screens/10-ErrorScreen.js +62 -0
- package/dist/Modal/NordFlow/screens/index.d.ts +9 -0
- package/dist/Modal/NordFlow/screens/index.js +9 -0
- package/dist/Modal/NordFlow/types.d.ts +108 -0
- package/dist/Modal/NordFlow/types.js +32 -0
- package/dist/Modal/NordFlow/utils/imageUtils.d.ts +21 -0
- package/dist/Modal/NordFlow/utils/imageUtils.js +109 -0
- package/dist/Modal/NordFlow/utils/index.d.ts +3 -0
- package/dist/Modal/NordFlow/utils/index.js +3 -0
- package/dist/Modal/NordFlow/utils/nordUtils.d.ts +40 -0
- package/dist/Modal/NordFlow/utils/nordUtils.js +61 -0
- package/dist/Modal/NordFlow/utils/persistence.d.ts +24 -0
- package/dist/Modal/NordFlow/utils/persistence.js +83 -0
- package/dist/Modal/Sidebar/N1Sidebar.js +167 -14
- package/dist/Modal/Sidebar/NordTradingView/AccountSummary/AccountSummary.d.ts +1 -0
- package/dist/Modal/Sidebar/NordTradingView/AccountSummary/AccountSummary.js +116 -0
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketOverview.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketOverview.js +86 -0
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketSelector.d.ts +6 -0
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketSelector.js +38 -0
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketStats.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketStats.js +15 -0
- package/dist/Modal/Sidebar/NordTradingView/NordTradingView.d.ts +1 -0
- package/dist/Modal/Sidebar/NordTradingView/NordTradingView.js +54 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBook.d.ts +5 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBook.js +197 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookDepthVisualizer.d.ts +10 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookDepthVisualizer.js +61 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookHeader.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookHeader.js +28 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookTable.d.ts +11 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookTable.js +22 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/AmountInput.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/AmountInput.js +19 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/BuySellTabs.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/BuySellTabs.js +23 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/FillModeSelector.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/FillModeSelector.js +76 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/OrderTypeSelector.d.ts +9 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/OrderTypeSelector.js +103 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/PriceInput.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/PriceInput.js +29 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/SubmitButton.d.ts +9 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/SubmitButton.js +39 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TotalCalculator.d.ts +7 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TotalCalculator.js +7 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TradeForm.d.ts +8 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TradeForm.js +249 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeHistory/TradeHistory.d.ts +5 -0
- package/dist/Modal/Sidebar/NordTradingView/TradeHistory/TradeHistory.js +138 -0
- package/dist/Modal/Sidebar/NordTradingView/UserBalances/UserBalances.d.ts +1 -0
- package/dist/Modal/Sidebar/NordTradingView/UserBalances/UserBalances.js +108 -0
- package/dist/Modal/Sidebar/NordTradingView/UserOrders/UserOrders.d.ts +1 -0
- package/dist/Modal/Sidebar/NordTradingView/UserOrders/UserOrders.js +177 -0
- package/dist/Modal/Sidebar/NordTradingView/UserPositions/UserPositions.d.ts +1 -0
- package/dist/Modal/Sidebar/NordTradingView/UserPositions/UserPositions.js +188 -0
- package/dist/Modal/SigningView.js +1 -1
- package/dist/NordFlow/WalletConnectionFlow.d.ts +9 -0
- package/dist/NordFlow/WalletConnectionFlow.js +145 -0
- package/dist/NordFlow/components/AnimatedButton.d.ts +14 -0
- package/dist/NordFlow/components/AnimatedButton.js +75 -0
- package/dist/NordFlow/components/ChainButton.d.ts +7 -0
- package/dist/NordFlow/components/ChainButton.js +5 -0
- package/dist/NordFlow/components/LoadingSquares.d.ts +1 -0
- package/dist/NordFlow/components/LoadingSquares.js +5 -0
- package/dist/NordFlow/components/TransactionTable.d.ts +13 -0
- package/dist/NordFlow/components/TransactionTable.js +58 -0
- package/dist/NordFlow/components/WaitingMessage.d.ts +6 -0
- package/dist/NordFlow/components/WaitingMessage.js +6 -0
- package/dist/NordFlow/components/index.d.ts +5 -0
- package/dist/NordFlow/components/index.js +5 -0
- package/dist/NordFlow/constants.d.ts +37 -0
- package/dist/NordFlow/constants.js +223 -0
- package/dist/NordFlow/hooks/index.d.ts +8 -0
- package/dist/NordFlow/hooks/index.js +8 -0
- package/dist/NordFlow/hooks/useButtonTyping.d.ts +7 -0
- package/dist/NordFlow/hooks/useButtonTyping.js +43 -0
- package/dist/NordFlow/hooks/useDepositFlow.d.ts +38 -0
- package/dist/NordFlow/hooks/useDepositFlow.js +166 -0
- package/dist/NordFlow/hooks/useFlowState.d.ts +32 -0
- package/dist/NordFlow/hooks/useFlowState.js +163 -0
- package/dist/NordFlow/hooks/useInterruptHandler.d.ts +27 -0
- package/dist/NordFlow/hooks/useInterruptHandler.js +101 -0
- package/dist/NordFlow/hooks/useNordSession.d.ts +32 -0
- package/dist/NordFlow/hooks/useNordSession.js +193 -0
- package/dist/NordFlow/hooks/useTableValues.d.ts +2 -0
- package/dist/NordFlow/hooks/useTableValues.js +69 -0
- package/dist/NordFlow/hooks/useWaitingMessage.d.ts +6 -0
- package/dist/NordFlow/hooks/useWaitingMessage.js +89 -0
- package/dist/NordFlow/hooks/useWalletConnect.d.ts +30 -0
- package/dist/NordFlow/hooks/useWalletConnect.js +132 -0
- package/dist/NordFlow/index.d.ts +3 -0
- package/dist/NordFlow/index.js +3 -0
- package/dist/NordFlow/screens/01-ConnectWalletScreen.d.ts +6 -0
- package/dist/NordFlow/screens/01-ConnectWalletScreen.js +17 -0
- package/dist/NordFlow/screens/02-EvmWalletAuthScreen.d.ts +6 -0
- package/dist/NordFlow/screens/02-EvmWalletAuthScreen.js +47 -0
- package/dist/NordFlow/screens/03-ChainSelectionScreen.d.ts +7 -0
- package/dist/NordFlow/screens/03-ChainSelectionScreen.js +7 -0
- package/dist/NordFlow/screens/04-AmountInputScreen.d.ts +8 -0
- package/dist/NordFlow/screens/04-AmountInputScreen.js +20 -0
- package/dist/NordFlow/screens/05-DepositProgressScreen.d.ts +7 -0
- package/dist/NordFlow/screens/05-DepositProgressScreen.js +6 -0
- package/dist/NordFlow/screens/06-DepositSuccessScreen.d.ts +8 -0
- package/dist/NordFlow/screens/06-DepositSuccessScreen.js +99 -0
- package/dist/NordFlow/screens/07-NordAuthScreen.d.ts +7 -0
- package/dist/NordFlow/screens/07-NordAuthScreen.js +14 -0
- package/dist/NordFlow/screens/08-AuthLoadingScreen.d.ts +6 -0
- package/dist/NordFlow/screens/08-AuthLoadingScreen.js +20 -0
- package/dist/NordFlow/screens/09-FinalSuccessScreen.d.ts +5 -0
- package/dist/NordFlow/screens/09-FinalSuccessScreen.js +18 -0
- package/dist/NordFlow/screens/10-ErrorScreen.d.ts +7 -0
- package/dist/NordFlow/screens/10-ErrorScreen.js +13 -0
- package/dist/NordFlow/screens/index.d.ts +10 -0
- package/dist/NordFlow/screens/index.js +10 -0
- package/dist/NordFlow/types.d.ts +105 -0
- package/dist/NordFlow/types.js +34 -0
- package/dist/NordFlow/utils/persistence.d.ts +24 -0
- package/dist/NordFlow/utils/persistence.js +83 -0
- package/dist/Provider/LazyWalletProvider.js +75 -38
- package/dist/Provider/N1WalletProvider.d.ts +1 -1
- package/dist/Provider/N1WalletProvider.js +63 -42
- package/dist/Provider/types.d.ts +69 -0
- package/dist/WalletConnectionFlow/WalletConnectionFlow.d.ts +9 -0
- package/dist/WalletConnectionFlow/WalletConnectionFlow.js +145 -0
- package/dist/WalletConnectionFlow/components/AnimatedButton.d.ts +14 -0
- package/dist/WalletConnectionFlow/components/AnimatedButton.js +75 -0
- package/dist/WalletConnectionFlow/components/ChainButton.d.ts +7 -0
- package/dist/WalletConnectionFlow/components/ChainButton.js +5 -0
- package/dist/WalletConnectionFlow/components/LoadingSquares.d.ts +1 -0
- package/dist/WalletConnectionFlow/components/LoadingSquares.js +5 -0
- package/dist/WalletConnectionFlow/components/TransactionTable.d.ts +13 -0
- package/dist/WalletConnectionFlow/components/TransactionTable.js +58 -0
- package/dist/WalletConnectionFlow/components/WaitingMessage.d.ts +6 -0
- package/dist/WalletConnectionFlow/components/WaitingMessage.js +6 -0
- package/dist/WalletConnectionFlow/components/index.d.ts +5 -0
- package/dist/WalletConnectionFlow/components/index.js +5 -0
- package/dist/WalletConnectionFlow/constants.d.ts +37 -0
- package/dist/WalletConnectionFlow/constants.js +223 -0
- package/dist/WalletConnectionFlow/hooks/index.d.ts +8 -0
- package/dist/WalletConnectionFlow/hooks/index.js +8 -0
- package/dist/WalletConnectionFlow/hooks/useButtonTyping.d.ts +7 -0
- package/dist/WalletConnectionFlow/hooks/useButtonTyping.js +43 -0
- package/dist/WalletConnectionFlow/hooks/useDepositFlow.d.ts +38 -0
- package/dist/WalletConnectionFlow/hooks/useDepositFlow.js +166 -0
- package/dist/WalletConnectionFlow/hooks/useFlowState.d.ts +32 -0
- package/dist/WalletConnectionFlow/hooks/useFlowState.js +163 -0
- package/dist/WalletConnectionFlow/hooks/useInterruptHandler.d.ts +27 -0
- package/dist/WalletConnectionFlow/hooks/useInterruptHandler.js +101 -0
- package/dist/WalletConnectionFlow/hooks/useNordSession.d.ts +32 -0
- package/dist/WalletConnectionFlow/hooks/useNordSession.js +193 -0
- package/dist/WalletConnectionFlow/hooks/useTableValues.d.ts +2 -0
- package/dist/WalletConnectionFlow/hooks/useTableValues.js +69 -0
- package/dist/WalletConnectionFlow/hooks/useWaitingMessage.d.ts +6 -0
- package/dist/WalletConnectionFlow/hooks/useWaitingMessage.js +89 -0
- package/dist/WalletConnectionFlow/hooks/useWalletConnect.d.ts +30 -0
- package/dist/WalletConnectionFlow/hooks/useWalletConnect.js +132 -0
- package/dist/WalletConnectionFlow/index.d.ts +3 -0
- package/dist/WalletConnectionFlow/index.js +3 -0
- package/dist/WalletConnectionFlow/screens/01-ConnectWalletScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/01-ConnectWalletScreen.js +17 -0
- package/dist/WalletConnectionFlow/screens/02-EvmWalletAuthScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/02-EvmWalletAuthScreen.js +47 -0
- package/dist/WalletConnectionFlow/screens/03-ChainSelectionScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/03-ChainSelectionScreen.js +7 -0
- package/dist/WalletConnectionFlow/screens/04-AmountInputScreen.d.ts +8 -0
- package/dist/WalletConnectionFlow/screens/04-AmountInputScreen.js +20 -0
- package/dist/WalletConnectionFlow/screens/05-DepositProgressScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/05-DepositProgressScreen.js +6 -0
- package/dist/WalletConnectionFlow/screens/06-DepositSuccessScreen.d.ts +8 -0
- package/dist/WalletConnectionFlow/screens/06-DepositSuccessScreen.js +99 -0
- package/dist/WalletConnectionFlow/screens/07-NordAuthScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/07-NordAuthScreen.js +14 -0
- package/dist/WalletConnectionFlow/screens/08-AuthLoadingScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/08-AuthLoadingScreen.js +20 -0
- package/dist/WalletConnectionFlow/screens/09-FinalSuccessScreen.d.ts +5 -0
- package/dist/WalletConnectionFlow/screens/09-FinalSuccessScreen.js +18 -0
- package/dist/WalletConnectionFlow/screens/10-ErrorScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/10-ErrorScreen.js +13 -0
- package/dist/WalletConnectionFlow/screens/AmountInputScreen.d.ts +8 -0
- package/dist/WalletConnectionFlow/screens/AmountInputScreen.js +20 -0
- package/dist/WalletConnectionFlow/screens/AppsTableScreen.d.ts +8 -0
- package/dist/WalletConnectionFlow/screens/AppsTableScreen.js +28 -0
- package/dist/WalletConnectionFlow/screens/AuthLoadingScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/AuthLoadingScreen.js +20 -0
- package/dist/WalletConnectionFlow/screens/ChainSelectionScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/ChainSelectionScreen.js +7 -0
- package/dist/WalletConnectionFlow/screens/ConnectWalletScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/ConnectWalletScreen.js +17 -0
- package/dist/WalletConnectionFlow/screens/DepositProgressScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/DepositProgressScreen.js +6 -0
- package/dist/WalletConnectionFlow/screens/DepositSuccessScreen.d.ts +8 -0
- package/dist/WalletConnectionFlow/screens/DepositSuccessScreen.js +99 -0
- package/dist/WalletConnectionFlow/screens/ErrorScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/ErrorScreen.js +13 -0
- package/dist/WalletConnectionFlow/screens/EthToSolAuthScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/EthToSolAuthScreen.js +47 -0
- package/dist/WalletConnectionFlow/screens/EvmWalletAuthScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/EvmWalletAuthScreen.js +47 -0
- package/dist/WalletConnectionFlow/screens/FinalSuccessScreen.d.ts +5 -0
- package/dist/WalletConnectionFlow/screens/FinalSuccessScreen.js +18 -0
- package/dist/WalletConnectionFlow/screens/NordAuthScreen.d.ts +7 -0
- package/dist/WalletConnectionFlow/screens/NordAuthScreen.js +14 -0
- package/dist/WalletConnectionFlow/screens/SigningScreen.d.ts +6 -0
- package/dist/WalletConnectionFlow/screens/SigningScreen.js +6 -0
- package/dist/WalletConnectionFlow/screens/index.d.ts +10 -0
- package/dist/WalletConnectionFlow/screens/index.js +10 -0
- package/dist/WalletConnectionFlow/types.d.ts +105 -0
- package/dist/WalletConnectionFlow/types.js +34 -0
- package/dist/WalletConnectionFlow/utils/persistence.d.ts +24 -0
- package/dist/WalletConnectionFlow/utils/persistence.js +83 -0
- package/dist/components/Logo.d.ts +7 -0
- package/dist/components/Logo.js +118 -0
- package/dist/components/QRCodeLoader.d.ts +4 -0
- package/dist/components/QRCodeLoader.js +8 -0
- package/dist/components/WalletDeposit/AnimatedButton.d.ts +17 -0
- package/dist/components/WalletDeposit/AnimatedButton.js +29 -0
- package/dist/components/WalletDeposit/components/ChainButton.d.ts +7 -0
- package/dist/components/WalletDeposit/components/ChainButton.js +5 -0
- package/dist/components/WalletDeposit/components/LoadingSquares.d.ts +1 -0
- package/dist/components/WalletDeposit/components/LoadingSquares.js +5 -0
- package/dist/components/WalletDeposit/components/TransactionTable.d.ts +13 -0
- package/dist/components/WalletDeposit/components/TransactionTable.js +58 -0
- package/dist/components/WalletDeposit/components/WaitingMessage.d.ts +6 -0
- package/dist/components/WalletDeposit/components/WaitingMessage.js +6 -0
- package/dist/components/WalletDeposit/constants.d.ts +15 -0
- package/dist/components/WalletDeposit/constants.js +32 -0
- package/dist/components/WalletDeposit/hooks.d.ts +9 -0
- package/dist/components/WalletDeposit/hooks.js +185 -0
- package/dist/components/WalletDeposit/index.d.ts +1 -0
- package/dist/components/WalletDeposit/index.js +136 -0
- package/dist/components/WalletDeposit/screens/AmountInputScreen.d.ts +12 -0
- package/dist/components/WalletDeposit/screens/AmountInputScreen.js +18 -0
- package/dist/components/WalletDeposit/screens/AppsTableScreen.d.ts +8 -0
- package/dist/components/WalletDeposit/screens/AppsTableScreen.js +28 -0
- package/dist/components/WalletDeposit/screens/ChainSelectionScreen.d.ts +5 -0
- package/dist/components/WalletDeposit/screens/ChainSelectionScreen.js +8 -0
- package/dist/components/WalletDeposit/screens/InitialScreen.d.ts +9 -0
- package/dist/components/WalletDeposit/screens/InitialScreen.js +18 -0
- package/dist/components/WalletDeposit/screens/SigningScreen.d.ts +6 -0
- package/dist/components/WalletDeposit/screens/SigningScreen.js +6 -0
- package/dist/components/WalletDeposit/screens/SuccessScreen.d.ts +12 -0
- package/dist/components/WalletDeposit/screens/SuccessScreen.js +7 -0
- package/dist/components/WalletDeposit/types.d.ts +48 -0
- package/dist/config/dynamic.d.ts +20 -0
- package/dist/config/dynamic.js +47 -0
- package/dist/config/solana.d.ts +25 -0
- package/dist/config/solana.js +41 -0
- package/dist/errors/types.d.ts +5 -1
- package/dist/errors/types.js +12 -0
- package/dist/hooks/useSolanaSession.d.ts +17 -0
- package/dist/hooks/useSolanaSession.js +180 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/main.css +1 -1
- package/dist/utils/dynamicImports.d.ts +24 -0
- package/dist/utils/dynamicImports.js +41 -0
- package/dist/utils/shortenString.d.ts +2 -0
- package/dist/utils/shortenString.js +8 -0
- package/dist/utils/solana-session.d.ts +84 -0
- package/dist/utils/solana-session.js +230 -0
- package/package.json +24 -17
- package/.eslintrc.js +0 -29
- package/dist/Common/NIcon.js +0 -7
- package/dist/components/AnimatedButton.d.ts +0 -9
- package/dist/components/AnimatedButton.js +0 -5
- package/postcss.config.js +0 -6
- package/src/Logic/getPseudoName.ts +0 -5832
- package/src/Logic/utils.ts +0 -162
- package/src/Logic/words.ts +0 -93571
- package/src/Modal/BackButton.tsx +0 -23
- package/src/Modal/ConnectView.tsx +0 -88
- package/src/Modal/CreateSessionView.tsx +0 -242
- package/src/Modal/CreateUserView.tsx +0 -195
- package/src/Modal/ModalHeader.tsx +0 -64
- package/src/Modal/N1WalletModal.tsx +0 -275
- package/src/Modal/NoWhitelistView.tsx +0 -61
- package/src/Modal/Sidebar/N1Sidebar.tsx +0 -172
- package/src/Modal/SigningView.tsx +0 -18
- package/src/Modal/SuccessView.tsx +0 -36
- package/src/Provider/LazyWalletProvider.tsx +0 -136
- package/src/Provider/N1WalletProvider.tsx +0 -208
- package/src/Provider/context.ts +0 -11
- package/src/Provider/hooks.ts +0 -22
- package/src/Provider/icons/CoinbaseWalletIcon.tsx +0 -27
- package/src/Provider/icons/ConnectionDotsSVG.tsx +0 -19
- package/src/Provider/icons/MetamaskIcon.tsx +0 -58
- package/src/Provider/icons/PhantomIcon.tsx +0 -26
- package/src/Provider/icons/UserIcon.tsx +0 -15
- package/src/Provider/icons/WalletConnectIcon.tsx +0 -15
- package/src/Provider/index.ts +0 -3
- package/src/Provider/types.ts +0 -77
- package/src/WidgetButton/N1ConnectButton.tsx +0 -72
- package/src/components/LazyLoadWrapper.tsx +0 -19
- package/src/config.ts +0 -2
- package/src/errors/types.ts +0 -49
- package/src/index.ts +0 -5
- package/src/main.css +0 -3
- package/src/styles/main.css +0 -3
- package/src/utils/lazyLoad.ts +0 -12
- package/src/utils/logger.ts +0 -98
- package/src/utils/react-shim.js +0 -8
- package/tailwind.config.js +0 -44
- package/tsconfig.json +0 -21
- /package/dist/{Common/NIcon.d.ts → components/WalletDeposit/types.js} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Plus } from 'lucide-react';
|
|
3
|
+
import { CHAINS } from '../constants';
|
|
4
|
+
import { ChainButton } from '../components/ChainButton';
|
|
5
|
+
export function ChainSelectionScreen(_a) {
|
|
6
|
+
var onChainSelect = _a.onChainSelect;
|
|
7
|
+
return (_jsxs("div", { className: "space-y-8", children: [_jsx("div", { className: "grid grid-cols-2 gap-4", children: CHAINS.map(function (chain) { return (_jsx(ChainButton, { chain: chain, onClick: onChainSelect }, chain.id)); }) }), _jsxs("button", { className: "w-full flex items-center justify-center p-6 bg-white dark:bg-neutral-950 border-2 border-gray-100 dark:border-neutral-800 hover:border-main dark:hover:border-main hover:bg-main/5 dark:hover:bg-neutral-900 transition-all duration-200 group rounded-lg", children: [_jsx(Plus, { className: "w-6 h-6 text-gray-400 dark:text-neutral-400 group-hover:text-main dark:group-hover:text-white group-hover:scale-110 transition-all duration-200 mr-2" }), _jsx("span", { className: "font-medium text-gray-600 dark:text-neutral-400 group-hover:text-main dark:group-hover:text-white transition-colors duration-200", children: "More" })] })] }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ButtonStates } from '../AnimatedButton';
|
|
2
|
+
interface InitialScreenProps {
|
|
3
|
+
onStart: () => void;
|
|
4
|
+
buttonStates: ButtonStates;
|
|
5
|
+
onButtonMouseEnter: (buttonKey: 'deposit' | 'continue' | 'openApp') => void;
|
|
6
|
+
onButtonMouseLeave: (buttonKey: 'deposit' | 'continue' | 'openApp') => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function InitialScreen({ onStart, buttonStates, onButtonMouseEnter, onButtonMouseLeave, }: InitialScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Logo from '../../Logo';
|
|
4
|
+
import { AnimatedButton } from '../AnimatedButton';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
export function InitialScreen(_a) {
|
|
7
|
+
var onStart = _a.onStart, buttonStates = _a.buttonStates, onButtonMouseEnter = _a.onButtonMouseEnter, onButtonMouseLeave = _a.onButtonMouseLeave;
|
|
8
|
+
var _b = useState(0), logoOpacity = _b[0], setLogoOpacity = _b[1];
|
|
9
|
+
var handleMouseEnter = function () {
|
|
10
|
+
setLogoOpacity(1);
|
|
11
|
+
onButtonMouseEnter('deposit');
|
|
12
|
+
};
|
|
13
|
+
var handleMouseLeave = function () {
|
|
14
|
+
setLogoOpacity(0);
|
|
15
|
+
onButtonMouseLeave('deposit');
|
|
16
|
+
};
|
|
17
|
+
return (_jsxs("div", { className: "flex flex-col items-center justify-center pb-8", children: [_jsx("div", { className: "flex justify-center items-center py-8 -mt-8", children: _jsx(Logo, { size: 140, fillOpacity: logoOpacity }) }), _jsx(AnimatedButton, { onClick: onStart, text: "Deposit", isTyping: buttonStates.deposit.isTyping, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave })] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ButtonStates } from '../AnimatedButton';
|
|
2
|
+
import type { TableValues } from '../types';
|
|
3
|
+
interface SuccessScreenProps {
|
|
4
|
+
amount: string;
|
|
5
|
+
tableValues: TableValues;
|
|
6
|
+
onOpenApp: () => void;
|
|
7
|
+
buttonStates: ButtonStates;
|
|
8
|
+
onButtonMouseEnter: (buttonKey: 'deposit' | 'continue' | 'openApp') => void;
|
|
9
|
+
onButtonMouseLeave: (buttonKey: 'deposit' | 'continue' | 'openApp') => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function SuccessScreen({ amount, tableValues, onOpenApp, buttonStates, }: SuccessScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatedButton } from '../AnimatedButton';
|
|
3
|
+
import { TransactionTable } from '../components/TransactionTable';
|
|
4
|
+
export function SuccessScreen(_a) {
|
|
5
|
+
var amount = _a.amount, tableValues = _a.tableValues, onOpenApp = _a.onOpenApp, buttonStates = _a.buttonStates;
|
|
6
|
+
return (_jsxs("div", { className: "flex flex-col items-center justify-center py-6", children: [_jsxs("div", { className: "w-full flex items-start justify-between space-x-4 py-8", children: [_jsx("div", { className: "w-1/2 p-4", children: _jsxs("div", { className: "relative w-full h-full px-5 py-14 rounded-md", children: [_jsx("div", { className: "w-2 h-2 bg-gray-200 dark:bg-neutral-800 absolute -top-2 -left-2" }), _jsx("div", { className: "w-2 h-2 bg-gray-200 dark:bg-neutral-800 absolute -top-2 -right-2" }), _jsx("div", { className: "w-2 h-2 bg-gray-200 dark:bg-neutral-800 absolute -bottom-2 -left-2" }), _jsx("div", { className: "w-2 h-2 bg-gray-200 dark:bg-neutral-800 absolute -bottom-2 -right-2" }), _jsxs("p", { className: "text-7xl tracking-tight text-green-500/80 dark:text-emerald-500/80 font-medium pt-4 underline text-center animate-fade-up", style: { animationDelay: '0.3s' }, children: ["+", Number(amount).toLocaleString(), _jsx("span", { className: "text-2xl text-green-500/50 dark:text-emerald-500/50 ml-2", children: "USDC" })] })] }) }), _jsx(TransactionTable, { tableValues: tableValues })] }), _jsx(AnimatedButton, { onClick: onOpenApp, text: "Launch", isTyping: buttonStates.openApp.isTyping })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface TableValues {
|
|
2
|
+
amount?: {
|
|
3
|
+
text: string;
|
|
4
|
+
visible: boolean;
|
|
5
|
+
typing: boolean;
|
|
6
|
+
};
|
|
7
|
+
tx: {
|
|
8
|
+
text: string;
|
|
9
|
+
visible: boolean;
|
|
10
|
+
typing: boolean;
|
|
11
|
+
};
|
|
12
|
+
from: {
|
|
13
|
+
text: string;
|
|
14
|
+
visible: boolean;
|
|
15
|
+
typing: boolean;
|
|
16
|
+
};
|
|
17
|
+
to: {
|
|
18
|
+
text: string;
|
|
19
|
+
visible: boolean;
|
|
20
|
+
typing: boolean;
|
|
21
|
+
};
|
|
22
|
+
network: {
|
|
23
|
+
text: string;
|
|
24
|
+
visible: boolean;
|
|
25
|
+
typing: boolean;
|
|
26
|
+
};
|
|
27
|
+
status: {
|
|
28
|
+
text: string;
|
|
29
|
+
visible: boolean;
|
|
30
|
+
typing: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface WaitingMessageState {
|
|
34
|
+
title: string;
|
|
35
|
+
subtitle: string;
|
|
36
|
+
visible: boolean;
|
|
37
|
+
isTyping: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface Chain {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
logo: string;
|
|
43
|
+
}
|
|
44
|
+
export interface App {
|
|
45
|
+
name: string;
|
|
46
|
+
color: string;
|
|
47
|
+
progress: number;
|
|
48
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dynamic widget configuration
|
|
3
|
+
*/
|
|
4
|
+
import { DynamicContextProps } from '@dynamic-labs/sdk-react-core';
|
|
5
|
+
import { N1SessionMode } from '../Provider/types';
|
|
6
|
+
/**
|
|
7
|
+
* Get Dynamic widget settings based on session mode
|
|
8
|
+
*
|
|
9
|
+
* @param environmentId - Dynamic environment ID
|
|
10
|
+
* @param sessionMode - Session mode (Nord or NTS)
|
|
11
|
+
* @returns Dynamic widget settings
|
|
12
|
+
*/
|
|
13
|
+
export declare function getDynamicSettings(environmentId: string, sessionMode?: N1SessionMode | null): DynamicContextProps['settings'];
|
|
14
|
+
/**
|
|
15
|
+
* Set nordflow context flag in Dynamic widget
|
|
16
|
+
*
|
|
17
|
+
* @param setCustomData - Dynamic setCustomData function
|
|
18
|
+
* @param isNordflow - Whether the context is nordflow
|
|
19
|
+
*/
|
|
20
|
+
export declare function setDynamicNordflowContext(setCustomData: (data: Record<string, any>) => void, isNordflow: boolean): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { SolanaWalletConnectors } from '@dynamic-labs/solana';
|
|
13
|
+
import { N1SessionMode } from '../Provider/types';
|
|
14
|
+
/**
|
|
15
|
+
* Get Dynamic widget settings based on session mode
|
|
16
|
+
*
|
|
17
|
+
* @param environmentId - Dynamic environment ID
|
|
18
|
+
* @param sessionMode - Session mode (Nord or NTS)
|
|
19
|
+
* @returns Dynamic widget settings
|
|
20
|
+
*/
|
|
21
|
+
export function getDynamicSettings(environmentId, sessionMode) {
|
|
22
|
+
if (sessionMode === void 0) { sessionMode = null; }
|
|
23
|
+
// Base settings for all contexts
|
|
24
|
+
var baseSettings = {
|
|
25
|
+
environmentId: environmentId,
|
|
26
|
+
appName: 'N1 Wallet',
|
|
27
|
+
appLogoUrl: 'https://n1.xyz/logo.png',
|
|
28
|
+
walletConnectorExtensions: [],
|
|
29
|
+
};
|
|
30
|
+
// Nord-specific settings
|
|
31
|
+
if (sessionMode === N1SessionMode.Nord) {
|
|
32
|
+
return __assign(__assign({}, baseSettings), {
|
|
33
|
+
// Only include Solana wallets when in Nord mode
|
|
34
|
+
walletConnectors: [SolanaWalletConnectors] });
|
|
35
|
+
}
|
|
36
|
+
// Default settings for NTS mode or when sessionMode is null
|
|
37
|
+
return baseSettings;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Set nordflow context flag in Dynamic widget
|
|
41
|
+
*
|
|
42
|
+
* @param setCustomData - Dynamic setCustomData function
|
|
43
|
+
* @param isNordflow - Whether the context is nordflow
|
|
44
|
+
*/
|
|
45
|
+
export function setDynamicNordflowContext(setCustomData, isNordflow) {
|
|
46
|
+
setCustomData({ isNordflow: isNordflow });
|
|
47
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solana network configuration
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SolanaNetwork {
|
|
5
|
+
MAINNET = "mainnet-beta",
|
|
6
|
+
TESTNET = "testnet",
|
|
7
|
+
DEVNET = "devnet"
|
|
8
|
+
}
|
|
9
|
+
export interface SolanaConfig {
|
|
10
|
+
network: SolanaNetwork;
|
|
11
|
+
endpoint: string;
|
|
12
|
+
explorerUrl: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Solana network configurations
|
|
16
|
+
*/
|
|
17
|
+
export declare const SOLANA_NETWORKS: Record<SolanaNetwork, SolanaConfig>;
|
|
18
|
+
/**
|
|
19
|
+
* Default Solana network to use
|
|
20
|
+
*/
|
|
21
|
+
export declare const DEFAULT_SOLANA_NETWORK = SolanaNetwork.DEVNET;
|
|
22
|
+
/**
|
|
23
|
+
* Get Solana network configuration by network name
|
|
24
|
+
*/
|
|
25
|
+
export declare function getSolanaConfig(network?: SolanaNetwork): SolanaConfig;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solana network configuration
|
|
3
|
+
*/
|
|
4
|
+
var _a;
|
|
5
|
+
export var SolanaNetwork;
|
|
6
|
+
(function (SolanaNetwork) {
|
|
7
|
+
SolanaNetwork["MAINNET"] = "mainnet-beta";
|
|
8
|
+
SolanaNetwork["TESTNET"] = "testnet";
|
|
9
|
+
SolanaNetwork["DEVNET"] = "devnet";
|
|
10
|
+
})(SolanaNetwork || (SolanaNetwork = {}));
|
|
11
|
+
/**
|
|
12
|
+
* Solana network configurations
|
|
13
|
+
*/
|
|
14
|
+
export var SOLANA_NETWORKS = (_a = {},
|
|
15
|
+
_a[SolanaNetwork.MAINNET] = {
|
|
16
|
+
network: SolanaNetwork.MAINNET,
|
|
17
|
+
endpoint: 'https://api.mainnet-beta.solana.com',
|
|
18
|
+
explorerUrl: 'https://explorer.solana.com',
|
|
19
|
+
},
|
|
20
|
+
_a[SolanaNetwork.TESTNET] = {
|
|
21
|
+
network: SolanaNetwork.TESTNET,
|
|
22
|
+
endpoint: 'https://api.testnet.solana.com',
|
|
23
|
+
explorerUrl: 'https://explorer.solana.com/?cluster=testnet',
|
|
24
|
+
},
|
|
25
|
+
_a[SolanaNetwork.DEVNET] = {
|
|
26
|
+
network: SolanaNetwork.DEVNET,
|
|
27
|
+
endpoint: 'https://api.devnet.solana.com',
|
|
28
|
+
explorerUrl: 'https://explorer.solana.com/?cluster=devnet',
|
|
29
|
+
},
|
|
30
|
+
_a);
|
|
31
|
+
/**
|
|
32
|
+
* Default Solana network to use
|
|
33
|
+
*/
|
|
34
|
+
export var DEFAULT_SOLANA_NETWORK = SolanaNetwork.DEVNET;
|
|
35
|
+
/**
|
|
36
|
+
* Get Solana network configuration by network name
|
|
37
|
+
*/
|
|
38
|
+
export function getSolanaConfig(network) {
|
|
39
|
+
if (network === void 0) { network = DEFAULT_SOLANA_NETWORK; }
|
|
40
|
+
return SOLANA_NETWORKS[network];
|
|
41
|
+
}
|
package/dist/errors/types.d.ts
CHANGED
|
@@ -5,7 +5,11 @@ export declare enum WalletErrorCode {
|
|
|
5
5
|
NETWORK_ERROR = "NETWORK_ERROR",
|
|
6
6
|
INVALID_CHAIN = "INVALID_CHAIN",
|
|
7
7
|
UNKNOWN = "UNKNOWN",
|
|
8
|
-
TRANSACTION_FAILED = "TRANSACTION_FAILED"
|
|
8
|
+
TRANSACTION_FAILED = "TRANSACTION_FAILED",
|
|
9
|
+
INITIALIZATION_ERROR = "INITIALIZATION_ERROR",
|
|
10
|
+
USER_FETCH_FAILED = "USER_FETCH_FAILED",
|
|
11
|
+
SESSION_INITIALIZATION_FAILED = "SESSION_INITIALIZATION_FAILED",
|
|
12
|
+
AUTHENTICATION_FAILED = "AUTHENTICATION_FAILED"
|
|
9
13
|
}
|
|
10
14
|
export declare class WalletError extends Error {
|
|
11
15
|
code: WalletErrorCode;
|
package/dist/errors/types.js
CHANGED
|
@@ -22,6 +22,10 @@ export var WalletErrorCode;
|
|
|
22
22
|
WalletErrorCode["INVALID_CHAIN"] = "INVALID_CHAIN";
|
|
23
23
|
WalletErrorCode["UNKNOWN"] = "UNKNOWN";
|
|
24
24
|
WalletErrorCode["TRANSACTION_FAILED"] = "TRANSACTION_FAILED";
|
|
25
|
+
WalletErrorCode["INITIALIZATION_ERROR"] = "INITIALIZATION_ERROR";
|
|
26
|
+
WalletErrorCode["USER_FETCH_FAILED"] = "USER_FETCH_FAILED";
|
|
27
|
+
WalletErrorCode["SESSION_INITIALIZATION_FAILED"] = "SESSION_INITIALIZATION_FAILED";
|
|
28
|
+
WalletErrorCode["AUTHENTICATION_FAILED"] = "AUTHENTICATION_FAILED";
|
|
25
29
|
})(WalletErrorCode || (WalletErrorCode = {}));
|
|
26
30
|
var WalletError = /** @class */ (function (_super) {
|
|
27
31
|
__extends(WalletError, _super);
|
|
@@ -55,6 +59,14 @@ var WalletError = /** @class */ (function (_super) {
|
|
|
55
59
|
return 'Invalid Chain';
|
|
56
60
|
case WalletErrorCode.TRANSACTION_FAILED:
|
|
57
61
|
return 'Transaction Failed';
|
|
62
|
+
case WalletErrorCode.INITIALIZATION_ERROR:
|
|
63
|
+
return 'Initialization Error';
|
|
64
|
+
case WalletErrorCode.USER_FETCH_FAILED:
|
|
65
|
+
return 'User Fetch Failed';
|
|
66
|
+
case WalletErrorCode.SESSION_INITIALIZATION_FAILED:
|
|
67
|
+
return 'Session Initialization Failed';
|
|
68
|
+
case WalletErrorCode.AUTHENTICATION_FAILED:
|
|
69
|
+
return 'Authentication Failed';
|
|
58
70
|
default:
|
|
59
71
|
return 'Wallet Error';
|
|
60
72
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for managing Solana session keys
|
|
3
|
+
*
|
|
4
|
+
* @returns Object with session key management functions and state
|
|
5
|
+
*/
|
|
6
|
+
export declare function useSolanaSession(): {
|
|
7
|
+
hasSession: boolean;
|
|
8
|
+
isGeneratingKeys: boolean;
|
|
9
|
+
generateSessionKeys: () => Promise<{
|
|
10
|
+
publicKey: Uint8Array;
|
|
11
|
+
privateKey: Uint8Array;
|
|
12
|
+
} | null>;
|
|
13
|
+
rotateKeys: () => Promise<{
|
|
14
|
+
publicKey: Uint8Array;
|
|
15
|
+
privateKey: Uint8Array;
|
|
16
|
+
} | null>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
38
|
+
import { useN1WalletContext, useN1WalletInternalContext } from '../Provider/hooks';
|
|
39
|
+
import { N1SessionMode } from '../Provider/types';
|
|
40
|
+
import { WalletError, WalletErrorCode } from '../errors/types';
|
|
41
|
+
import { logger } from '../utils/logger';
|
|
42
|
+
import { createSessionSigningFunction, generateSolanaSessionKeyPair, getSessionKeysFromLocalStorage, hasValidSession, rotateSessionKeys, storeSessionKeysInLocalStorage, } from '../utils/solana-session';
|
|
43
|
+
/**
|
|
44
|
+
* Hook for managing Solana session keys
|
|
45
|
+
*
|
|
46
|
+
* @returns Object with session key management functions and state
|
|
47
|
+
*/
|
|
48
|
+
export function useSolanaSession() {
|
|
49
|
+
var _this = this;
|
|
50
|
+
var _a = useN1WalletContext(), address = _a.address, sessionMode = _a.sessionMode, walletPubKey = _a.walletPubKey, signMessageWithWalletKey = _a.signMessageWithWalletKey;
|
|
51
|
+
var _b = useN1WalletInternalContext(), setSessionPubKey = _b.setSessionPubKey, setSignMessageWithSessionKey = _b.setSignMessageWithSessionKey, handleError = _b.handleError;
|
|
52
|
+
var _c = useState(false), isGeneratingKeys = _c[0], setIsGeneratingKeys = _c[1];
|
|
53
|
+
var _d = useState(false), hasSession = _d[0], setHasSession = _d[1];
|
|
54
|
+
// Check if we have a valid session on mount and when address changes
|
|
55
|
+
useEffect(function () {
|
|
56
|
+
if (address && sessionMode === N1SessionMode.Nord) {
|
|
57
|
+
var hasExistingSession = hasValidSession(address);
|
|
58
|
+
setHasSession(hasExistingSession);
|
|
59
|
+
// If we have a valid session, set up the session key and signing function
|
|
60
|
+
if (hasExistingSession) {
|
|
61
|
+
var sessionData_1 = getSessionKeysFromLocalStorage(address);
|
|
62
|
+
if (sessionData_1) {
|
|
63
|
+
setSessionPubKey(base64ToUint8Array(sessionData_1.ed25519PrivateKey));
|
|
64
|
+
setSignMessageWithSessionKey(function () {
|
|
65
|
+
return createSessionSigningFunction(sessionData_1.ed25519PrivateKey);
|
|
66
|
+
});
|
|
67
|
+
logger.debug('Restored existing Solana session', { address: address });
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
setHasSession(false);
|
|
73
|
+
}
|
|
74
|
+
}, [address, sessionMode, setSessionPubKey, setSignMessageWithSessionKey]);
|
|
75
|
+
/**
|
|
76
|
+
* Generate new session keys
|
|
77
|
+
*/
|
|
78
|
+
var generateSessionKeys = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
79
|
+
var keyPair, signFn_1, error_1;
|
|
80
|
+
return __generator(this, function (_a) {
|
|
81
|
+
switch (_a.label) {
|
|
82
|
+
case 0:
|
|
83
|
+
if (!address || sessionMode !== N1SessionMode.Nord) {
|
|
84
|
+
handleError(new WalletError(WalletErrorCode.INVALID_STATE, 'Cannot generate session keys: wallet not connected or not in Nord mode'));
|
|
85
|
+
return [2 /*return*/, null];
|
|
86
|
+
}
|
|
87
|
+
if (!signMessageWithWalletKey) {
|
|
88
|
+
handleError(new WalletError(WalletErrorCode.WALLET_NOT_FOUND, 'Cannot generate session keys: wallet signing function not available'));
|
|
89
|
+
return [2 /*return*/, null];
|
|
90
|
+
}
|
|
91
|
+
setIsGeneratingKeys(true);
|
|
92
|
+
_a.label = 1;
|
|
93
|
+
case 1:
|
|
94
|
+
_a.trys.push([1, 3, 4, 5]);
|
|
95
|
+
return [4 /*yield*/, generateSolanaSessionKeyPair()];
|
|
96
|
+
case 2:
|
|
97
|
+
keyPair = _a.sent();
|
|
98
|
+
// Store in local storage
|
|
99
|
+
storeSessionKeysInLocalStorage({
|
|
100
|
+
privKey: keyPair.privateKey,
|
|
101
|
+
walletPublicKey: address,
|
|
102
|
+
chainName: 'solana',
|
|
103
|
+
});
|
|
104
|
+
// Set up session key and signing function
|
|
105
|
+
setSessionPubKey(keyPair.publicKey);
|
|
106
|
+
signFn_1 = createSessionSigningFunction(keyPair.privateKey);
|
|
107
|
+
setSignMessageWithSessionKey(function () { return signFn_1; });
|
|
108
|
+
setHasSession(true);
|
|
109
|
+
logger.debug('Generated new Solana session keys', { address: address });
|
|
110
|
+
return [2 /*return*/, keyPair];
|
|
111
|
+
case 3:
|
|
112
|
+
error_1 = _a.sent();
|
|
113
|
+
handleError(new WalletError(WalletErrorCode.SESSION_CREATION_FAILED, 'Failed to generate session keys', { originalError: error_1 }));
|
|
114
|
+
return [2 /*return*/, null];
|
|
115
|
+
case 4:
|
|
116
|
+
setIsGeneratingKeys(false);
|
|
117
|
+
return [7 /*endfinally*/];
|
|
118
|
+
case 5: return [2 /*return*/];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}); }, [
|
|
122
|
+
address,
|
|
123
|
+
sessionMode,
|
|
124
|
+
signMessageWithWalletKey,
|
|
125
|
+
handleError,
|
|
126
|
+
setSessionPubKey,
|
|
127
|
+
setSignMessageWithSessionKey,
|
|
128
|
+
]);
|
|
129
|
+
/**
|
|
130
|
+
* Rotate session keys
|
|
131
|
+
*/
|
|
132
|
+
var rotateKeys = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
133
|
+
var keyPair, signFn_2, error_2;
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0:
|
|
137
|
+
if (!address || sessionMode !== N1SessionMode.Nord) {
|
|
138
|
+
handleError(new WalletError(WalletErrorCode.INVALID_STATE, 'Cannot rotate session keys: wallet not connected or not in Nord mode'));
|
|
139
|
+
return [2 /*return*/, null];
|
|
140
|
+
}
|
|
141
|
+
setIsGeneratingKeys(true);
|
|
142
|
+
_a.label = 1;
|
|
143
|
+
case 1:
|
|
144
|
+
_a.trys.push([1, 3, 4, 5]);
|
|
145
|
+
return [4 /*yield*/, rotateSessionKeys(address, 'solana')];
|
|
146
|
+
case 2:
|
|
147
|
+
keyPair = _a.sent();
|
|
148
|
+
if (keyPair) {
|
|
149
|
+
// Set up session key and signing function
|
|
150
|
+
setSessionPubKey(keyPair.publicKey);
|
|
151
|
+
signFn_2 = createSessionSigningFunction(keyPair.privateKey);
|
|
152
|
+
setSignMessageWithSessionKey(function () { return signFn_2; });
|
|
153
|
+
setHasSession(true);
|
|
154
|
+
logger.debug('Rotated Solana session keys', { address: address });
|
|
155
|
+
}
|
|
156
|
+
return [2 /*return*/, keyPair];
|
|
157
|
+
case 3:
|
|
158
|
+
error_2 = _a.sent();
|
|
159
|
+
handleError(new WalletError(WalletErrorCode.SESSION_CREATION_FAILED, 'Failed to rotate session keys', { originalError: error_2 }));
|
|
160
|
+
return [2 /*return*/, null];
|
|
161
|
+
case 4:
|
|
162
|
+
setIsGeneratingKeys(false);
|
|
163
|
+
return [7 /*endfinally*/];
|
|
164
|
+
case 5: return [2 /*return*/];
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}); }, [
|
|
168
|
+
address,
|
|
169
|
+
sessionMode,
|
|
170
|
+
handleError,
|
|
171
|
+
setSessionPubKey,
|
|
172
|
+
setSignMessageWithSessionKey,
|
|
173
|
+
]);
|
|
174
|
+
return {
|
|
175
|
+
hasSession: hasSession,
|
|
176
|
+
isGeneratingKeys: isGeneratingKeys,
|
|
177
|
+
generateSessionKeys: generateSessionKeys,
|
|
178
|
+
rotateKeys: rotateKeys,
|
|
179
|
+
};
|
|
180
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './main.css';
|
|
2
2
|
export { N1WalletProvider } from './Provider/N1WalletProvider';
|
|
3
|
-
export { N1ModalViewMode } from './Provider/types';
|
|
3
|
+
export { N1ModalViewMode, N1SessionMode, type N1NordFunctions, } from './Provider/types';
|
|
4
4
|
export { N1ConnectButton } from './WidgetButton/N1ConnectButton';
|
|
5
5
|
export { useN1WalletContext } from './Provider/hooks';
|
|
6
|
+
export { default as Logo } from './components/Logo';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './main.css';
|
|
2
2
|
export { N1WalletProvider } from './Provider/N1WalletProvider';
|
|
3
|
-
export { N1ModalViewMode } from './Provider/types';
|
|
3
|
+
export { N1ModalViewMode, N1SessionMode, } from './Provider/types';
|
|
4
4
|
export { N1ConnectButton } from './WidgetButton/N1ConnectButton';
|
|
5
5
|
export { useN1WalletContext } from './Provider/hooks';
|
|
6
|
+
export { default as Logo } from './components/Logo';
|