@varity-labs/ui-kit 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +31 -0
- package/README.md +248 -0
- package/dist/components/AI/ChatbotWidget.d.ts +53 -0
- package/dist/components/AI/ChatbotWidget.d.ts.map +1 -0
- package/dist/components/AI/ChatbotWidget.js +126 -0
- package/dist/components/AI/ChatbotWidget.js.map +1 -0
- package/dist/components/AI/InputBar.d.ts +25 -0
- package/dist/components/AI/InputBar.d.ts.map +1 -0
- package/dist/components/AI/InputBar.js +126 -0
- package/dist/components/AI/InputBar.js.map +1 -0
- package/dist/components/AI/MessageBubble.d.ts +37 -0
- package/dist/components/AI/MessageBubble.d.ts.map +1 -0
- package/dist/components/AI/MessageBubble.js +124 -0
- package/dist/components/AI/MessageBubble.js.map +1 -0
- package/dist/components/AI/index.d.ts +12 -0
- package/dist/components/AI/index.d.ts.map +1 -0
- package/dist/components/AI/index.js +9 -0
- package/dist/components/AI/index.js.map +1 -0
- package/dist/components/Analytics/AnalyticsCard.d.ts +48 -0
- package/dist/components/Analytics/AnalyticsCard.d.ts.map +1 -0
- package/dist/components/Analytics/AnalyticsCard.js +156 -0
- package/dist/components/Analytics/AnalyticsCard.js.map +1 -0
- package/dist/components/Analytics/ChartContainer.d.ts +53 -0
- package/dist/components/Analytics/ChartContainer.d.ts.map +1 -0
- package/dist/components/Analytics/ChartContainer.js +128 -0
- package/dist/components/Analytics/ChartContainer.js.map +1 -0
- package/dist/components/Analytics/DataTable.d.ts +62 -0
- package/dist/components/Analytics/DataTable.d.ts.map +1 -0
- package/dist/components/Analytics/DataTable.js +165 -0
- package/dist/components/Analytics/DataTable.js.map +1 -0
- package/dist/components/Analytics/MetricDisplay.d.ts +42 -0
- package/dist/components/Analytics/MetricDisplay.d.ts.map +1 -0
- package/dist/components/Analytics/MetricDisplay.js +110 -0
- package/dist/components/Analytics/MetricDisplay.js.map +1 -0
- package/dist/components/Analytics/index.d.ts +14 -0
- package/dist/components/Analytics/index.d.ts.map +1 -0
- package/dist/components/Analytics/index.js +10 -0
- package/dist/components/Analytics/index.js.map +1 -0
- package/dist/components/Branding/Attribution.d.ts +39 -0
- package/dist/components/Branding/Attribution.d.ts.map +1 -0
- package/dist/components/Branding/Attribution.js +124 -0
- package/dist/components/Branding/Attribution.js.map +1 -0
- package/dist/components/Branding/Logo.d.ts +39 -0
- package/dist/components/Branding/Logo.d.ts.map +1 -0
- package/dist/components/Branding/Logo.js +67 -0
- package/dist/components/Branding/Logo.js.map +1 -0
- package/dist/components/Branding/ThemeProvider.d.ts +85 -0
- package/dist/components/Branding/ThemeProvider.d.ts.map +1 -0
- package/dist/components/Branding/ThemeProvider.js +186 -0
- package/dist/components/Branding/ThemeProvider.js.map +1 -0
- package/dist/components/Branding/index.d.ts +12 -0
- package/dist/components/Branding/index.d.ts.map +1 -0
- package/dist/components/Branding/index.js +9 -0
- package/dist/components/Branding/index.js.map +1 -0
- package/dist/components/Dashboard/DashboardFooter.d.ts +30 -0
- package/dist/components/Dashboard/DashboardFooter.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardFooter.js +68 -0
- package/dist/components/Dashboard/DashboardFooter.js.map +1 -0
- package/dist/components/Dashboard/DashboardHeader.d.ts +24 -0
- package/dist/components/Dashboard/DashboardHeader.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardHeader.js +87 -0
- package/dist/components/Dashboard/DashboardHeader.js.map +1 -0
- package/dist/components/Dashboard/DashboardLayout.d.ts +71 -0
- package/dist/components/Dashboard/DashboardLayout.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardLayout.js +52 -0
- package/dist/components/Dashboard/DashboardLayout.js.map +1 -0
- package/dist/components/Dashboard/DashboardSidebar.d.ts +26 -0
- package/dist/components/Dashboard/DashboardSidebar.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardSidebar.js +146 -0
- package/dist/components/Dashboard/DashboardSidebar.js.map +1 -0
- package/dist/components/Dashboard/EmptyState.d.ts +84 -0
- package/dist/components/Dashboard/EmptyState.d.ts.map +1 -0
- package/dist/components/Dashboard/EmptyState.js +99 -0
- package/dist/components/Dashboard/EmptyState.js.map +1 -0
- package/dist/components/Dashboard/KPICard.d.ts +58 -0
- package/dist/components/Dashboard/KPICard.d.ts.map +1 -0
- package/dist/components/Dashboard/KPICard.js +82 -0
- package/dist/components/Dashboard/KPICard.js.map +1 -0
- package/dist/components/Dashboard/LoadingSkeleton.d.ts +58 -0
- package/dist/components/Dashboard/LoadingSkeleton.d.ts.map +1 -0
- package/dist/components/Dashboard/LoadingSkeleton.js +105 -0
- package/dist/components/Dashboard/LoadingSkeleton.js.map +1 -0
- package/dist/components/Dashboard/StatusBadge.d.ts +57 -0
- package/dist/components/Dashboard/StatusBadge.d.ts.map +1 -0
- package/dist/components/Dashboard/StatusBadge.js +149 -0
- package/dist/components/Dashboard/StatusBadge.js.map +1 -0
- package/dist/components/Dashboard/index.d.ts +19 -0
- package/dist/components/Dashboard/index.d.ts.map +1 -0
- package/dist/components/Dashboard/index.js +18 -0
- package/dist/components/Dashboard/index.js.map +1 -0
- package/dist/components/InAppWallet/EmailLoginButton.d.ts +27 -0
- package/dist/components/InAppWallet/EmailLoginButton.d.ts.map +1 -0
- package/dist/components/InAppWallet/EmailLoginButton.js +84 -0
- package/dist/components/InAppWallet/EmailLoginButton.js.map +1 -0
- package/dist/components/InAppWallet/InAppWalletProvider.d.ts +54 -0
- package/dist/components/InAppWallet/InAppWalletProvider.d.ts.map +1 -0
- package/dist/components/InAppWallet/InAppWalletProvider.js +238 -0
- package/dist/components/InAppWallet/InAppWalletProvider.js.map +1 -0
- package/dist/components/InAppWallet/OnboardingFlow.d.ts +25 -0
- package/dist/components/InAppWallet/OnboardingFlow.d.ts.map +1 -0
- package/dist/components/InAppWallet/OnboardingFlow.js +159 -0
- package/dist/components/InAppWallet/OnboardingFlow.js.map +1 -0
- package/dist/components/InAppWallet/SocialLoginButtons.d.ts +28 -0
- package/dist/components/InAppWallet/SocialLoginButtons.d.ts.map +1 -0
- package/dist/components/InAppWallet/SocialLoginButtons.js +128 -0
- package/dist/components/InAppWallet/SocialLoginButtons.js.map +1 -0
- package/dist/components/InAppWallet/index.d.ts +15 -0
- package/dist/components/InAppWallet/index.d.ts.map +1 -0
- package/dist/components/InAppWallet/index.js +14 -0
- package/dist/components/InAppWallet/index.js.map +1 -0
- package/dist/components/Onramp/BuyUSDCButton.d.ts +27 -0
- package/dist/components/Onramp/BuyUSDCButton.d.ts.map +1 -0
- package/dist/components/Onramp/BuyUSDCButton.js +70 -0
- package/dist/components/Onramp/BuyUSDCButton.js.map +1 -0
- package/dist/components/Onramp/OnrampWidget.d.ts +38 -0
- package/dist/components/Onramp/OnrampWidget.d.ts.map +1 -0
- package/dist/components/Onramp/OnrampWidget.js +105 -0
- package/dist/components/Onramp/OnrampWidget.js.map +1 -0
- package/dist/components/Onramp/index.d.ts +14 -0
- package/dist/components/Onramp/index.d.ts.map +1 -0
- package/dist/components/Onramp/index.js +12 -0
- package/dist/components/Onramp/index.js.map +1 -0
- package/dist/components/Payments/CheckoutModal.d.ts +19 -0
- package/dist/components/Payments/CheckoutModal.d.ts.map +1 -0
- package/dist/components/Payments/CheckoutModal.js +183 -0
- package/dist/components/Payments/CheckoutModal.js.map +1 -0
- package/dist/components/Payments/SubscriptionWidget.d.ts +17 -0
- package/dist/components/Payments/SubscriptionWidget.d.ts.map +1 -0
- package/dist/components/Payments/SubscriptionWidget.js +89 -0
- package/dist/components/Payments/SubscriptionWidget.js.map +1 -0
- package/dist/components/Payments/constants.d.ts +59 -0
- package/dist/components/Payments/constants.d.ts.map +1 -0
- package/dist/components/Payments/constants.js +145 -0
- package/dist/components/Payments/constants.js.map +1 -0
- package/dist/components/Payments/index.d.ts +10 -0
- package/dist/components/Payments/index.d.ts.map +1 -0
- package/dist/components/Payments/index.js +12 -0
- package/dist/components/Payments/index.js.map +1 -0
- package/dist/components/Payments/types.d.ts +119 -0
- package/dist/components/Payments/types.d.ts.map +1 -0
- package/dist/components/Payments/types.js +27 -0
- package/dist/components/Payments/types.js.map +1 -0
- package/dist/components/Payments/usePayments.d.ts +33 -0
- package/dist/components/Payments/usePayments.d.ts.map +1 -0
- package/dist/components/Payments/usePayments.js +249 -0
- package/dist/components/Payments/usePayments.js.map +1 -0
- package/dist/components/Privy/InitTimeoutScreen.d.ts +62 -0
- package/dist/components/Privy/InitTimeoutScreen.d.ts.map +1 -0
- package/dist/components/Privy/InitTimeoutScreen.js +64 -0
- package/dist/components/Privy/InitTimeoutScreen.js.map +1 -0
- package/dist/components/Privy/InitializingScreen.d.ts +56 -0
- package/dist/components/Privy/InitializingScreen.d.ts.map +1 -0
- package/dist/components/Privy/InitializingScreen.js +60 -0
- package/dist/components/Privy/InitializingScreen.js.map +1 -0
- package/dist/components/Privy/PrivyLoginButton.d.ts +27 -0
- package/dist/components/Privy/PrivyLoginButton.d.ts.map +1 -0
- package/dist/components/Privy/PrivyLoginButton.js +48 -0
- package/dist/components/Privy/PrivyLoginButton.js.map +1 -0
- package/dist/components/Privy/PrivyProtectedRoute.d.ts +22 -0
- package/dist/components/Privy/PrivyProtectedRoute.d.ts.map +1 -0
- package/dist/components/Privy/PrivyProtectedRoute.js +46 -0
- package/dist/components/Privy/PrivyProtectedRoute.js.map +1 -0
- package/dist/components/Privy/PrivyReadyGate.d.ts +69 -0
- package/dist/components/Privy/PrivyReadyGate.d.ts.map +1 -0
- package/dist/components/Privy/PrivyReadyGate.js +83 -0
- package/dist/components/Privy/PrivyReadyGate.js.map +1 -0
- package/dist/components/Privy/PrivyUserProfile.d.ts +25 -0
- package/dist/components/Privy/PrivyUserProfile.d.ts.map +1 -0
- package/dist/components/Privy/PrivyUserProfile.js +98 -0
- package/dist/components/Privy/PrivyUserProfile.js.map +1 -0
- package/dist/components/Privy/index.d.ts +21 -0
- package/dist/components/Privy/index.d.ts.map +1 -0
- package/dist/components/Privy/index.js +16 -0
- package/dist/components/Privy/index.js.map +1 -0
- package/dist/components/SIWE/AuthStatus.d.ts +15 -0
- package/dist/components/SIWE/AuthStatus.d.ts.map +1 -0
- package/dist/components/SIWE/AuthStatus.js +47 -0
- package/dist/components/SIWE/AuthStatus.js.map +1 -0
- package/dist/components/SIWE/ProtectedRoute.d.ts +17 -0
- package/dist/components/SIWE/ProtectedRoute.d.ts.map +1 -0
- package/dist/components/SIWE/ProtectedRoute.js +52 -0
- package/dist/components/SIWE/ProtectedRoute.js.map +1 -0
- package/dist/components/SIWE/SIWEButton.d.ts +22 -0
- package/dist/components/SIWE/SIWEButton.d.ts.map +1 -0
- package/dist/components/SIWE/SIWEButton.js +106 -0
- package/dist/components/SIWE/SIWEButton.js.map +1 -0
- package/dist/components/SIWE/SIWEModal.d.ts +19 -0
- package/dist/components/SIWE/SIWEModal.d.ts.map +1 -0
- package/dist/components/SIWE/SIWEModal.js +75 -0
- package/dist/components/SIWE/SIWEModal.js.map +1 -0
- package/dist/components/SIWE/SIWEProvider.d.ts +38 -0
- package/dist/components/SIWE/SIWEProvider.d.ts.map +1 -0
- package/dist/components/SIWE/SIWEProvider.js +227 -0
- package/dist/components/SIWE/SIWEProvider.js.map +1 -0
- package/dist/components/SIWE/index.d.ts +15 -0
- package/dist/components/SIWE/index.d.ts.map +1 -0
- package/dist/components/SIWE/index.js +10 -0
- package/dist/components/SIWE/index.js.map +1 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +16 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/templates/Finance/FinanceDashboard.d.ts +15 -0
- package/dist/components/templates/Finance/FinanceDashboard.d.ts.map +1 -0
- package/dist/components/templates/Finance/FinanceDashboard.js +112 -0
- package/dist/components/templates/Finance/FinanceDashboard.js.map +1 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts +15 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts.map +1 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.js +121 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.js.map +1 -0
- package/dist/components/templates/ISO/ISODashboard.d.ts +15 -0
- package/dist/components/templates/ISO/ISODashboard.d.ts.map +1 -0
- package/dist/components/templates/ISO/ISODashboard.js +184 -0
- package/dist/components/templates/ISO/ISODashboard.js.map +1 -0
- package/dist/components/templates/Retail/RetailDashboard.d.ts +15 -0
- package/dist/components/templates/Retail/RetailDashboard.d.ts.map +1 -0
- package/dist/components/templates/Retail/RetailDashboard.js +151 -0
- package/dist/components/templates/Retail/RetailDashboard.js.map +1 -0
- package/dist/components/templates/index.d.ts +14 -0
- package/dist/components/templates/index.d.ts.map +1 -0
- package/dist/components/templates/index.js +14 -0
- package/dist/components/templates/index.js.map +1 -0
- package/dist/config/chains.d.ts +23 -0
- package/dist/config/chains.d.ts.map +1 -0
- package/dist/config/chains.js +55 -0
- package/dist/config/chains.js.map +1 -0
- package/dist/core/VarityClient.d.ts +76 -0
- package/dist/core/VarityClient.d.ts.map +1 -0
- package/dist/core/VarityClient.js +99 -0
- package/dist/core/VarityClient.js.map +1 -0
- package/dist/core/config.d.ts +136 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +156 -0
- package/dist/core/config.js.map +1 -0
- package/dist/hooks/index.d.ts +17 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +18 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useAnalytics.d.ts +94 -0
- package/dist/hooks/useAnalytics.d.ts.map +1 -0
- package/dist/hooks/useAnalytics.js +116 -0
- package/dist/hooks/useAnalytics.js.map +1 -0
- package/dist/hooks/useAuth.d.ts +71 -0
- package/dist/hooks/useAuth.d.ts.map +1 -0
- package/dist/hooks/useAuth.js +198 -0
- package/dist/hooks/useAuth.js.map +1 -0
- package/dist/hooks/useDashboard.d.ts +110 -0
- package/dist/hooks/useDashboard.d.ts.map +1 -0
- package/dist/hooks/useDashboard.js +201 -0
- package/dist/hooks/useDashboard.js.map +1 -0
- package/dist/hooks/useVarityAPI.d.ts +88 -0
- package/dist/hooks/useVarityAPI.d.ts.map +1 -0
- package/dist/hooks/useVarityAPI.js +138 -0
- package/dist/hooks/useVarityAPI.js.map +1 -0
- package/dist/hooks/useWalletAuth.d.ts +108 -0
- package/dist/hooks/useWalletAuth.d.ts.map +1 -0
- package/dist/hooks/useWalletAuth.js +415 -0
- package/dist/hooks/useWalletAuth.js.map +1 -0
- package/dist/hooks/web3/index.d.ts +5 -0
- package/dist/hooks/web3/index.d.ts.map +1 -0
- package/dist/hooks/web3/index.js +6 -0
- package/dist/hooks/web3/index.js.map +1 -0
- package/dist/hooks/web3/useAddressValidation.d.ts +37 -0
- package/dist/hooks/web3/useAddressValidation.d.ts.map +1 -0
- package/dist/hooks/web3/useAddressValidation.js +59 -0
- package/dist/hooks/web3/useAddressValidation.js.map +1 -0
- package/dist/hooks/web3/useBlockExplorer.d.ts +37 -0
- package/dist/hooks/web3/useBlockExplorer.d.ts.map +1 -0
- package/dist/hooks/web3/useBlockExplorer.js +59 -0
- package/dist/hooks/web3/useBlockExplorer.js.map +1 -0
- package/dist/hooks/web3/useUSDCFormat.d.ts +34 -0
- package/dist/hooks/web3/useUSDCFormat.d.ts.map +1 -0
- package/dist/hooks/web3/useUSDCFormat.js +43 -0
- package/dist/hooks/web3/useUSDCFormat.js.map +1 -0
- package/dist/hooks/web3/useVarityWallet.d.ts +48 -0
- package/dist/hooks/web3/useVarityWallet.d.ts.map +1 -0
- package/dist/hooks/web3/useVarityWallet.js +70 -0
- package/dist/hooks/web3/useVarityWallet.js.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/analytics/AnalyticsClient.d.ts +72 -0
- package/dist/modules/analytics/AnalyticsClient.d.ts.map +1 -0
- package/dist/modules/analytics/AnalyticsClient.js +56 -0
- package/dist/modules/analytics/AnalyticsClient.js.map +1 -0
- package/dist/modules/analytics/index.d.ts +2 -0
- package/dist/modules/analytics/index.d.ts.map +1 -0
- package/dist/modules/analytics/index.js +2 -0
- package/dist/modules/analytics/index.js.map +1 -0
- package/dist/modules/auth/AuthClient.d.ts +41 -0
- package/dist/modules/auth/AuthClient.d.ts.map +1 -0
- package/dist/modules/auth/AuthClient.js +36 -0
- package/dist/modules/auth/AuthClient.js.map +1 -0
- package/dist/modules/auth/index.d.ts +2 -0
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/index.js +2 -0
- package/dist/modules/auth/index.js.map +1 -0
- package/dist/modules/cache/CacheClient.d.ts +48 -0
- package/dist/modules/cache/CacheClient.d.ts.map +1 -0
- package/dist/modules/cache/CacheClient.js +59 -0
- package/dist/modules/cache/CacheClient.js.map +1 -0
- package/dist/modules/cache/index.d.ts +2 -0
- package/dist/modules/cache/index.d.ts.map +1 -0
- package/dist/modules/cache/index.js +2 -0
- package/dist/modules/cache/index.js.map +1 -0
- package/dist/modules/compute/ComputeClient.d.ts +54 -0
- package/dist/modules/compute/ComputeClient.d.ts.map +1 -0
- package/dist/modules/compute/ComputeClient.js +39 -0
- package/dist/modules/compute/ComputeClient.js.map +1 -0
- package/dist/modules/compute/index.d.ts +2 -0
- package/dist/modules/compute/index.d.ts.map +1 -0
- package/dist/modules/compute/index.js +2 -0
- package/dist/modules/compute/index.js.map +1 -0
- package/dist/modules/export/ExportClient.d.ts +56 -0
- package/dist/modules/export/ExportClient.d.ts.map +1 -0
- package/dist/modules/export/ExportClient.js +42 -0
- package/dist/modules/export/ExportClient.js.map +1 -0
- package/dist/modules/export/index.d.ts +2 -0
- package/dist/modules/export/index.d.ts.map +1 -0
- package/dist/modules/export/index.js +2 -0
- package/dist/modules/export/index.js.map +1 -0
- package/dist/modules/forecasting/ForecastingClient.d.ts +112 -0
- package/dist/modules/forecasting/ForecastingClient.d.ts.map +1 -0
- package/dist/modules/forecasting/ForecastingClient.js +48 -0
- package/dist/modules/forecasting/ForecastingClient.js.map +1 -0
- package/dist/modules/forecasting/index.d.ts +2 -0
- package/dist/modules/forecasting/index.d.ts.map +1 -0
- package/dist/modules/forecasting/index.js +2 -0
- package/dist/modules/forecasting/index.js.map +1 -0
- package/dist/modules/monitoring/MonitoringClient.d.ts +67 -0
- package/dist/modules/monitoring/MonitoringClient.d.ts.map +1 -0
- package/dist/modules/monitoring/MonitoringClient.js +48 -0
- package/dist/modules/monitoring/MonitoringClient.js.map +1 -0
- package/dist/modules/monitoring/index.d.ts +2 -0
- package/dist/modules/monitoring/index.d.ts.map +1 -0
- package/dist/modules/monitoring/index.js +2 -0
- package/dist/modules/monitoring/index.js.map +1 -0
- package/dist/modules/notifications/NotificationsClient.d.ts +68 -0
- package/dist/modules/notifications/NotificationsClient.d.ts.map +1 -0
- package/dist/modules/notifications/NotificationsClient.js +50 -0
- package/dist/modules/notifications/NotificationsClient.js.map +1 -0
- package/dist/modules/notifications/index.d.ts +2 -0
- package/dist/modules/notifications/index.d.ts.map +1 -0
- package/dist/modules/notifications/index.js +2 -0
- package/dist/modules/notifications/index.js.map +1 -0
- package/dist/modules/oracle/OracleClient.d.ts +48 -0
- package/dist/modules/oracle/OracleClient.d.ts.map +1 -0
- package/dist/modules/oracle/OracleClient.js +34 -0
- package/dist/modules/oracle/OracleClient.js.map +1 -0
- package/dist/modules/oracle/index.d.ts +2 -0
- package/dist/modules/oracle/index.d.ts.map +1 -0
- package/dist/modules/oracle/index.js +2 -0
- package/dist/modules/oracle/index.js.map +1 -0
- package/dist/modules/storage/StorageClient.d.ts +44 -0
- package/dist/modules/storage/StorageClient.d.ts.map +1 -0
- package/dist/modules/storage/StorageClient.js +43 -0
- package/dist/modules/storage/StorageClient.js.map +1 -0
- package/dist/modules/storage/index.d.ts +2 -0
- package/dist/modules/storage/index.d.ts.map +1 -0
- package/dist/modules/storage/index.js +2 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/templates/TemplateDeploymentClient.d.ts +208 -0
- package/dist/modules/templates/TemplateDeploymentClient.d.ts.map +1 -0
- package/dist/modules/templates/TemplateDeploymentClient.js +101 -0
- package/dist/modules/templates/TemplateDeploymentClient.js.map +1 -0
- package/dist/modules/templates/index.d.ts +8 -0
- package/dist/modules/templates/index.d.ts.map +1 -0
- package/dist/modules/templates/index.js +7 -0
- package/dist/modules/templates/index.js.map +1 -0
- package/dist/modules/webhooks/WebhooksClient.d.ts +85 -0
- package/dist/modules/webhooks/WebhooksClient.d.ts.map +1 -0
- package/dist/modules/webhooks/WebhooksClient.js +68 -0
- package/dist/modules/webhooks/WebhooksClient.js.map +1 -0
- package/dist/modules/webhooks/index.d.ts +2 -0
- package/dist/modules/webhooks/index.d.ts.map +1 -0
- package/dist/modules/webhooks/index.js +2 -0
- package/dist/modules/webhooks/index.js.map +1 -0
- package/dist/modules/zk/ZKClient.d.ts +67 -0
- package/dist/modules/zk/ZKClient.d.ts.map +1 -0
- package/dist/modules/zk/ZKClient.js +36 -0
- package/dist/modules/zk/ZKClient.js.map +1 -0
- package/dist/modules/zk/index.d.ts +2 -0
- package/dist/modules/zk/index.d.ts.map +1 -0
- package/dist/modules/zk/index.js +2 -0
- package/dist/modules/zk/index.js.map +1 -0
- package/dist/providers/ChainContext.d.ts +65 -0
- package/dist/providers/ChainContext.d.ts.map +1 -0
- package/dist/providers/ChainContext.js +92 -0
- package/dist/providers/ChainContext.js.map +1 -0
- package/dist/providers/PrivyProvider.d.ts +42 -0
- package/dist/providers/PrivyProvider.d.ts.map +1 -0
- package/dist/providers/PrivyProvider.js +131 -0
- package/dist/providers/PrivyProvider.js.map +1 -0
- package/dist/providers/PrivyStack.d.ts +165 -0
- package/dist/providers/PrivyStack.d.ts.map +1 -0
- package/dist/providers/PrivyStack.js +295 -0
- package/dist/providers/PrivyStack.js.map +1 -0
- package/dist/providers/VarityDashboardProvider.d.ts +90 -0
- package/dist/providers/VarityDashboardProvider.d.ts.map +1 -0
- package/dist/providers/VarityDashboardProvider.js +242 -0
- package/dist/providers/VarityDashboardProvider.js.map +1 -0
- package/dist/providers/VarityProvider.d.ts +32 -0
- package/dist/providers/VarityProvider.d.ts.map +1 -0
- package/dist/providers/VarityProvider.js +56 -0
- package/dist/providers/VarityProvider.js.map +1 -0
- package/dist/providers/WalletContext.d.ts +68 -0
- package/dist/providers/WalletContext.d.ts.map +1 -0
- package/dist/providers/WalletContext.js +98 -0
- package/dist/providers/WalletContext.js.map +1 -0
- package/dist/providers/WalletSyncProvider.d.ts +84 -0
- package/dist/providers/WalletSyncProvider.d.ts.map +1 -0
- package/dist/providers/WalletSyncProvider.js +132 -0
- package/dist/providers/WalletSyncProvider.js.map +1 -0
- package/dist/providers/index.d.ts +47 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +51 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/tests/mocks/httpClient.mock.d.ts +62 -0
- package/dist/tests/mocks/httpClient.mock.d.ts.map +1 -0
- package/dist/tests/mocks/httpClient.mock.js +108 -0
- package/dist/tests/mocks/httpClient.mock.js.map +1 -0
- package/dist/tests/setup.d.ts +6 -0
- package/dist/tests/setup.d.ts.map +1 -0
- package/dist/tests/setup.js +51 -0
- package/dist/tests/setup.js.map +1 -0
- package/dist/types/api-extensions.d.ts +92 -0
- package/dist/types/api-extensions.d.ts.map +1 -0
- package/dist/types/api-extensions.js +7 -0
- package/dist/types/api-extensions.js.map +1 -0
- package/dist/utils/http.d.ts +51 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/http.js +104 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/wallets/SimpleSmartWallet.d.ts +68 -0
- package/dist/wallets/SimpleSmartWallet.d.ts.map +1 -0
- package/dist/wallets/SimpleSmartWallet.js +74 -0
- package/dist/wallets/SimpleSmartWallet.js.map +1 -0
- package/dist/wallets/SmartWalletProvider.d.ts +217 -0
- package/dist/wallets/SmartWalletProvider.d.ts.map +1 -0
- package/dist/wallets/SmartWalletProvider.js +366 -0
- package/dist/wallets/SmartWalletProvider.js.map +1 -0
- package/dist/wallets/config.d.ts +199 -0
- package/dist/wallets/config.d.ts.map +1 -0
- package/dist/wallets/config.js +183 -0
- package/dist/wallets/config.js.map +1 -0
- package/dist/wallets/index.d.ts +9 -0
- package/dist/wallets/index.d.ts.map +1 -0
- package/dist/wallets/index.js +9 -0
- package/dist/wallets/index.js.map +1 -0
- package/dist/web3/AddressDisplay/AddressDisplay.d.ts +33 -0
- package/dist/web3/AddressDisplay/AddressDisplay.d.ts.map +1 -0
- package/dist/web3/AddressDisplay/AddressDisplay.js +42 -0
- package/dist/web3/AddressDisplay/AddressDisplay.js.map +1 -0
- package/dist/web3/AddressInput/AddressInput.d.ts +36 -0
- package/dist/web3/AddressInput/AddressInput.d.ts.map +1 -0
- package/dist/web3/AddressInput/AddressInput.js +54 -0
- package/dist/web3/AddressInput/AddressInput.js.map +1 -0
- package/dist/web3/AmountInput/AmountInput.d.ts +41 -0
- package/dist/web3/AmountInput/AmountInput.d.ts.map +1 -0
- package/dist/web3/AmountInput/AmountInput.js +74 -0
- package/dist/web3/AmountInput/AmountInput.js.map +1 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.d.ts +30 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.d.ts.map +1 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.js +35 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.js.map +1 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.d.ts +41 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.d.ts.map +1 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.js +46 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.js.map +1 -0
- package/dist/web3/ConnectWallet/ConnectWallet.d.ts +35 -0
- package/dist/web3/ConnectWallet/ConnectWallet.d.ts.map +1 -0
- package/dist/web3/ConnectWallet/ConnectWallet.js +58 -0
- package/dist/web3/ConnectWallet/ConnectWallet.js.map +1 -0
- package/dist/web3/DisconnectButton/DisconnectButton.d.ts +30 -0
- package/dist/web3/DisconnectButton/DisconnectButton.d.ts.map +1 -0
- package/dist/web3/DisconnectButton/DisconnectButton.js +48 -0
- package/dist/web3/DisconnectButton/DisconnectButton.js.map +1 -0
- package/dist/web3/WalletBalance/WalletBalance.d.ts +27 -0
- package/dist/web3/WalletBalance/WalletBalance.d.ts.map +1 -0
- package/dist/web3/WalletBalance/WalletBalance.js +49 -0
- package/dist/web3/WalletBalance/WalletBalance.js.map +1 -0
- package/dist/web3/WalletDropdown/WalletDropdown.d.ts +29 -0
- package/dist/web3/WalletDropdown/WalletDropdown.d.ts.map +1 -0
- package/dist/web3/WalletDropdown/WalletDropdown.js +93 -0
- package/dist/web3/WalletDropdown/WalletDropdown.js.map +1 -0
- package/dist/web3/WalletInfo/WalletInfo.d.ts +31 -0
- package/dist/web3/WalletInfo/WalletInfo.d.ts.map +1 -0
- package/dist/web3/WalletInfo/WalletInfo.js +41 -0
- package/dist/web3/WalletInfo/WalletInfo.js.map +1 -0
- package/dist/web3/index.d.ts +11 -0
- package/dist/web3/index.d.ts.map +1 -0
- package/dist/web3/index.js +14 -0
- package/dist/web3/index.js.map +1 -0
- package/package.json +105 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Wallet Configuration for Varity L3
|
|
3
|
+
*
|
|
4
|
+
* Contains contract addresses, bundler endpoints, and paymaster configuration
|
|
5
|
+
* for ERC-4337 Account Abstraction on Varity L3 Testnet (Chain ID 33529)
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: These contracts need to be deployed to Varity L3
|
|
8
|
+
* Currently deployed on Arbitrum Sepolia - migration required
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Contract Addresses for Varity L3
|
|
12
|
+
*
|
|
13
|
+
* ✅ DEPLOYED (January 13, 2026) - Ready for use!
|
|
14
|
+
* Deployed by: 0x20B7d1426649D9a573ba7Fd10592456264220cbF
|
|
15
|
+
* Explorer: https://explorer-varity-testnet-rroe52pwjp.t.conduit.xyz
|
|
16
|
+
*/
|
|
17
|
+
export declare const VARITY_SMART_WALLET_CONTRACTS: {
|
|
18
|
+
/**
|
|
19
|
+
* VarityWalletFactory - Creates smart wallets for users
|
|
20
|
+
* ✅ Deployed: Varity L3 (Chain ID 33529)
|
|
21
|
+
* Verified: https://explorer-varity-testnet-rroe52pwjp.t.conduit.xyz/address/0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71
|
|
22
|
+
*/
|
|
23
|
+
readonly factoryAddress: "0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71";
|
|
24
|
+
/**
|
|
25
|
+
* SimplifiedPaymaster - Sponsors gas for transactions
|
|
26
|
+
* ✅ Deployed: Varity L3 (Chain ID 33529)
|
|
27
|
+
* ✅ Funded: $5 USDC in Conduit paymaster balance
|
|
28
|
+
* Verified: https://explorer-varity-testnet-rroe52pwjp.t.conduit.xyz/address/0xeF467aef91d4e626C7e56967779069bEF22c4453
|
|
29
|
+
*/
|
|
30
|
+
readonly paymasterAddress: "0xeF467aef91d4e626C7e56967779069bEF22c4453";
|
|
31
|
+
/**
|
|
32
|
+
* ERC-4337 EntryPoint (standard address across all chains)
|
|
33
|
+
* v0.6: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
|
|
34
|
+
* v0.7: 0x0000000071727De22E5E9d8BAf0edAc6f37da032
|
|
35
|
+
*/
|
|
36
|
+
readonly entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Conduit Bundler Configuration
|
|
40
|
+
*
|
|
41
|
+
* ✅ CONFIGURED - Conduit Account Abstraction bundler for Varity L3
|
|
42
|
+
* Paymaster Balance: $5 USDC (funded and ready)
|
|
43
|
+
* Chain ID: 33529
|
|
44
|
+
*/
|
|
45
|
+
export declare const CONDUIT_BUNDLER_CONFIG: {
|
|
46
|
+
/**
|
|
47
|
+
* Conduit AA Bundler RPC endpoint for Varity L3
|
|
48
|
+
* ✅ Active with $5 USDC paymaster balance
|
|
49
|
+
* Source: Conduit Dashboard → Account Abstraction Tab
|
|
50
|
+
*/
|
|
51
|
+
readonly bundlerUrl: "https://aa.conduit.xyz/api/v3/60cd06d8-a734-453c-84e9-5387c315ee2e/chain/33529";
|
|
52
|
+
/**
|
|
53
|
+
* Environment variable override (optional)
|
|
54
|
+
* Use this if you want to switch bundler endpoints
|
|
55
|
+
*/
|
|
56
|
+
readonly managedBundlerUrl: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Paymaster Configuration
|
|
60
|
+
*
|
|
61
|
+
* Gas sponsorship settings for Varity L3
|
|
62
|
+
*/
|
|
63
|
+
export declare const PAYMASTER_CONFIG: {
|
|
64
|
+
/**
|
|
65
|
+
* Enable gas sponsorship by default
|
|
66
|
+
*/
|
|
67
|
+
readonly enabled: true;
|
|
68
|
+
/**
|
|
69
|
+
* Paymaster URL (optional - uses thirdweb's if not provided)
|
|
70
|
+
* Can also use custom paymaster URL from Conduit/Pimlico
|
|
71
|
+
*/
|
|
72
|
+
readonly paymasterUrl: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Gas policy - which operations to sponsor
|
|
75
|
+
*/
|
|
76
|
+
readonly policy: {
|
|
77
|
+
/**
|
|
78
|
+
* Sponsor all transactions (recommended for MVP)
|
|
79
|
+
*/
|
|
80
|
+
readonly sponsorAll: true;
|
|
81
|
+
/**
|
|
82
|
+
* Maximum gas limit to sponsor (in wei)
|
|
83
|
+
* Default: 500,000 gas units
|
|
84
|
+
*/
|
|
85
|
+
readonly maxGasLimit: "500000";
|
|
86
|
+
/**
|
|
87
|
+
* Whitelist of contract addresses to sponsor
|
|
88
|
+
* Empty = sponsor all
|
|
89
|
+
*/
|
|
90
|
+
readonly allowedContracts: string[];
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Default gas budget for new wallets (in USDC with 6 decimals)
|
|
95
|
+
* Example: 10 USDC = 10_000_000 (10 * 10^6)
|
|
96
|
+
*/
|
|
97
|
+
export declare const DEFAULT_GAS_BUDGET = 10000000;
|
|
98
|
+
/**
|
|
99
|
+
* Default Smart Wallet Configuration
|
|
100
|
+
*
|
|
101
|
+
* Use this as a starting point for SmartWalletProvider
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```tsx
|
|
105
|
+
* import { DEFAULT_SMART_WALLET_CONFIG } from './wallets/config';
|
|
106
|
+
*
|
|
107
|
+
* <SmartWalletProvider config={DEFAULT_SMART_WALLET_CONFIG}>
|
|
108
|
+
* <App />
|
|
109
|
+
* </SmartWalletProvider>
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
export declare function getDefaultSmartWalletConfig(client: any): {
|
|
113
|
+
client: any;
|
|
114
|
+
chain: Readonly<import("thirdweb/chains").ChainOptions & {
|
|
115
|
+
rpc: string;
|
|
116
|
+
}>;
|
|
117
|
+
gasless: {
|
|
118
|
+
/**
|
|
119
|
+
* Enable gas sponsorship by default
|
|
120
|
+
*/
|
|
121
|
+
readonly enabled: true;
|
|
122
|
+
/**
|
|
123
|
+
* Paymaster URL (optional - uses thirdweb's if not provided)
|
|
124
|
+
* Can also use custom paymaster URL from Conduit/Pimlico
|
|
125
|
+
*/
|
|
126
|
+
readonly paymasterUrl: string | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Gas policy - which operations to sponsor
|
|
129
|
+
*/
|
|
130
|
+
readonly policy: {
|
|
131
|
+
/**
|
|
132
|
+
* Sponsor all transactions (recommended for MVP)
|
|
133
|
+
*/
|
|
134
|
+
readonly sponsorAll: true;
|
|
135
|
+
/**
|
|
136
|
+
* Maximum gas limit to sponsor (in wei)
|
|
137
|
+
* Default: 500,000 gas units
|
|
138
|
+
*/
|
|
139
|
+
readonly maxGasLimit: "500000";
|
|
140
|
+
/**
|
|
141
|
+
* Whitelist of contract addresses to sponsor
|
|
142
|
+
* Empty = sponsor all
|
|
143
|
+
*/
|
|
144
|
+
readonly allowedContracts: string[];
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
factoryAddress: "0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71";
|
|
148
|
+
accountVersion: "0.6";
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Deployment Status Checklist
|
|
152
|
+
*
|
|
153
|
+
* ✅ = Complete | ⏳ = In Progress | ⬜ = Not Started
|
|
154
|
+
*
|
|
155
|
+
* ✅ 1. Deploy SimplifiedPaymaster.sol to Varity L3
|
|
156
|
+
* - Deployed: 0xeF467aef91d4e626C7e56967779069bEF22c4453
|
|
157
|
+
* - Date: January 13, 2026
|
|
158
|
+
* - Verified on Varity L3 Explorer
|
|
159
|
+
*
|
|
160
|
+
* ✅ 2. Deploy VarityWalletFactory.sol to Varity L3
|
|
161
|
+
* - Deployed: 0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71
|
|
162
|
+
* - Date: January 13, 2026
|
|
163
|
+
* - Verified on Varity L3 Explorer
|
|
164
|
+
*
|
|
165
|
+
* ⏳ 3. Initialize factory with paymaster address
|
|
166
|
+
* - Call: factory.initialize(paymasterAddress, DEFAULT_GAS_BUDGET)
|
|
167
|
+
* - Status: Needs verification (may already be done)
|
|
168
|
+
*
|
|
169
|
+
* ✅ 4. Fund paymaster with USDC
|
|
170
|
+
* - Funded: $5 USDC via Conduit paymaster balance
|
|
171
|
+
* - Status: Active and ready for gas sponsorship
|
|
172
|
+
*
|
|
173
|
+
* ✅ 5. Configure Conduit Bundler
|
|
174
|
+
* - Bundler URL: https://aa.conduit.xyz/api/v3/60cd06d8-a734-453c-84e9-5387c315ee2e/chain/33529
|
|
175
|
+
* - Updated in CONDUIT_BUNDLER_CONFIG
|
|
176
|
+
*
|
|
177
|
+
* ⏳ 6. Test complete flow
|
|
178
|
+
* - Connect wallet → Deploy smart wallet → Send gasless transaction
|
|
179
|
+
* - Status: Ready for testing (SmartWalletProvider 95% complete)
|
|
180
|
+
*
|
|
181
|
+
* **Next Steps**:
|
|
182
|
+
* - Verify factory initialization (step 3)
|
|
183
|
+
* - Run end-to-end integration test (step 6)
|
|
184
|
+
* - Monitor paymaster balance during testing
|
|
185
|
+
*/
|
|
186
|
+
/**
|
|
187
|
+
* Helper: Get bundler URL
|
|
188
|
+
*
|
|
189
|
+
* Returns the appropriate bundler URL based on environment
|
|
190
|
+
*/
|
|
191
|
+
export declare function getBundlerUrl(): string;
|
|
192
|
+
/**
|
|
193
|
+
* Helper: Check if contracts are deployed
|
|
194
|
+
*
|
|
195
|
+
* ✅ Contracts are deployed to Varity L3 (as of January 13, 2026)
|
|
196
|
+
* Returns true (contracts are ready to use)
|
|
197
|
+
*/
|
|
198
|
+
export declare function areContractsDeployed(): boolean;
|
|
199
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/wallets/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;IACxC;;;;OAIG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;CAEK,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;IACjC;;;;OAIG;;IAGH;;;OAGG;;CAEK,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;QAED;;WAEG;;QAGH;;;WAGG;;QAGH;;;WAGG;mCACqB,MAAM,EAAE;;CAE1B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,kBAAkB,WAAa,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,GAAG;;;;;;QAtDrD;;WAEG;;QAGH;;;WAGG;;QAGH;;WAEG;;YAED;;eAEG;;YAGH;;;eAGG;;YAGH;;;eAGG;uCACqB,MAAM,EAAE;;;;;EAgCnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAQtC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAK9C"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Wallet Configuration for Varity L3
|
|
3
|
+
*
|
|
4
|
+
* Contains contract addresses, bundler endpoints, and paymaster configuration
|
|
5
|
+
* for ERC-4337 Account Abstraction on Varity L3 Testnet (Chain ID 33529)
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: These contracts need to be deployed to Varity L3
|
|
8
|
+
* Currently deployed on Arbitrum Sepolia - migration required
|
|
9
|
+
*/
|
|
10
|
+
import { varityL3Testnet } from '@varity-labs/sdk';
|
|
11
|
+
/**
|
|
12
|
+
* Contract Addresses for Varity L3
|
|
13
|
+
*
|
|
14
|
+
* ✅ DEPLOYED (January 13, 2026) - Ready for use!
|
|
15
|
+
* Deployed by: 0x20B7d1426649D9a573ba7Fd10592456264220cbF
|
|
16
|
+
* Explorer: https://explorer-varity-testnet-rroe52pwjp.t.conduit.xyz
|
|
17
|
+
*/
|
|
18
|
+
export const VARITY_SMART_WALLET_CONTRACTS = {
|
|
19
|
+
/**
|
|
20
|
+
* VarityWalletFactory - Creates smart wallets for users
|
|
21
|
+
* ✅ Deployed: Varity L3 (Chain ID 33529)
|
|
22
|
+
* Verified: https://explorer-varity-testnet-rroe52pwjp.t.conduit.xyz/address/0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71
|
|
23
|
+
*/
|
|
24
|
+
factoryAddress: '0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71',
|
|
25
|
+
/**
|
|
26
|
+
* SimplifiedPaymaster - Sponsors gas for transactions
|
|
27
|
+
* ✅ Deployed: Varity L3 (Chain ID 33529)
|
|
28
|
+
* ✅ Funded: $5 USDC in Conduit paymaster balance
|
|
29
|
+
* Verified: https://explorer-varity-testnet-rroe52pwjp.t.conduit.xyz/address/0xeF467aef91d4e626C7e56967779069bEF22c4453
|
|
30
|
+
*/
|
|
31
|
+
paymasterAddress: '0xeF467aef91d4e626C7e56967779069bEF22c4453',
|
|
32
|
+
/**
|
|
33
|
+
* ERC-4337 EntryPoint (standard address across all chains)
|
|
34
|
+
* v0.6: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
|
|
35
|
+
* v0.7: 0x0000000071727De22E5E9d8BAf0edAc6f37da032
|
|
36
|
+
*/
|
|
37
|
+
entryPointAddress: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', // v0.6 (default)
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Conduit Bundler Configuration
|
|
41
|
+
*
|
|
42
|
+
* ✅ CONFIGURED - Conduit Account Abstraction bundler for Varity L3
|
|
43
|
+
* Paymaster Balance: $5 USDC (funded and ready)
|
|
44
|
+
* Chain ID: 33529
|
|
45
|
+
*/
|
|
46
|
+
export const CONDUIT_BUNDLER_CONFIG = {
|
|
47
|
+
/**
|
|
48
|
+
* Conduit AA Bundler RPC endpoint for Varity L3
|
|
49
|
+
* ✅ Active with $5 USDC paymaster balance
|
|
50
|
+
* Source: Conduit Dashboard → Account Abstraction Tab
|
|
51
|
+
*/
|
|
52
|
+
bundlerUrl: `https://aa.conduit.xyz/api/v3/60cd06d8-a734-453c-84e9-5387c315ee2e/chain/33529`,
|
|
53
|
+
/**
|
|
54
|
+
* Environment variable override (optional)
|
|
55
|
+
* Use this if you want to switch bundler endpoints
|
|
56
|
+
*/
|
|
57
|
+
managedBundlerUrl: process.env.NEXT_PUBLIC_CONDUIT_BUNDLER_URL || '',
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Paymaster Configuration
|
|
61
|
+
*
|
|
62
|
+
* Gas sponsorship settings for Varity L3
|
|
63
|
+
*/
|
|
64
|
+
export const PAYMASTER_CONFIG = {
|
|
65
|
+
/**
|
|
66
|
+
* Enable gas sponsorship by default
|
|
67
|
+
*/
|
|
68
|
+
enabled: true,
|
|
69
|
+
/**
|
|
70
|
+
* Paymaster URL (optional - uses thirdweb's if not provided)
|
|
71
|
+
* Can also use custom paymaster URL from Conduit/Pimlico
|
|
72
|
+
*/
|
|
73
|
+
paymasterUrl: process.env.NEXT_PUBLIC_PAYMASTER_URL || undefined,
|
|
74
|
+
/**
|
|
75
|
+
* Gas policy - which operations to sponsor
|
|
76
|
+
*/
|
|
77
|
+
policy: {
|
|
78
|
+
/**
|
|
79
|
+
* Sponsor all transactions (recommended for MVP)
|
|
80
|
+
*/
|
|
81
|
+
sponsorAll: true,
|
|
82
|
+
/**
|
|
83
|
+
* Maximum gas limit to sponsor (in wei)
|
|
84
|
+
* Default: 500,000 gas units
|
|
85
|
+
*/
|
|
86
|
+
maxGasLimit: '500000',
|
|
87
|
+
/**
|
|
88
|
+
* Whitelist of contract addresses to sponsor
|
|
89
|
+
* Empty = sponsor all
|
|
90
|
+
*/
|
|
91
|
+
allowedContracts: [],
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Default gas budget for new wallets (in USDC with 6 decimals)
|
|
96
|
+
* Example: 10 USDC = 10_000_000 (10 * 10^6)
|
|
97
|
+
*/
|
|
98
|
+
export const DEFAULT_GAS_BUDGET = 10_000_000; // 10 USDC
|
|
99
|
+
/**
|
|
100
|
+
* Default Smart Wallet Configuration
|
|
101
|
+
*
|
|
102
|
+
* Use this as a starting point for SmartWalletProvider
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```tsx
|
|
106
|
+
* import { DEFAULT_SMART_WALLET_CONFIG } from './wallets/config';
|
|
107
|
+
*
|
|
108
|
+
* <SmartWalletProvider config={DEFAULT_SMART_WALLET_CONFIG}>
|
|
109
|
+
* <App />
|
|
110
|
+
* </SmartWalletProvider>
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
export function getDefaultSmartWalletConfig(client) {
|
|
114
|
+
return {
|
|
115
|
+
client,
|
|
116
|
+
chain: varityL3Testnet,
|
|
117
|
+
gasless: PAYMASTER_CONFIG,
|
|
118
|
+
factoryAddress: VARITY_SMART_WALLET_CONTRACTS.factoryAddress,
|
|
119
|
+
accountVersion: '0.6', // ERC-4337 version
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Deployment Status Checklist
|
|
124
|
+
*
|
|
125
|
+
* ✅ = Complete | ⏳ = In Progress | ⬜ = Not Started
|
|
126
|
+
*
|
|
127
|
+
* ✅ 1. Deploy SimplifiedPaymaster.sol to Varity L3
|
|
128
|
+
* - Deployed: 0xeF467aef91d4e626C7e56967779069bEF22c4453
|
|
129
|
+
* - Date: January 13, 2026
|
|
130
|
+
* - Verified on Varity L3 Explorer
|
|
131
|
+
*
|
|
132
|
+
* ✅ 2. Deploy VarityWalletFactory.sol to Varity L3
|
|
133
|
+
* - Deployed: 0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71
|
|
134
|
+
* - Date: January 13, 2026
|
|
135
|
+
* - Verified on Varity L3 Explorer
|
|
136
|
+
*
|
|
137
|
+
* ⏳ 3. Initialize factory with paymaster address
|
|
138
|
+
* - Call: factory.initialize(paymasterAddress, DEFAULT_GAS_BUDGET)
|
|
139
|
+
* - Status: Needs verification (may already be done)
|
|
140
|
+
*
|
|
141
|
+
* ✅ 4. Fund paymaster with USDC
|
|
142
|
+
* - Funded: $5 USDC via Conduit paymaster balance
|
|
143
|
+
* - Status: Active and ready for gas sponsorship
|
|
144
|
+
*
|
|
145
|
+
* ✅ 5. Configure Conduit Bundler
|
|
146
|
+
* - Bundler URL: https://aa.conduit.xyz/api/v3/60cd06d8-a734-453c-84e9-5387c315ee2e/chain/33529
|
|
147
|
+
* - Updated in CONDUIT_BUNDLER_CONFIG
|
|
148
|
+
*
|
|
149
|
+
* ⏳ 6. Test complete flow
|
|
150
|
+
* - Connect wallet → Deploy smart wallet → Send gasless transaction
|
|
151
|
+
* - Status: Ready for testing (SmartWalletProvider 95% complete)
|
|
152
|
+
*
|
|
153
|
+
* **Next Steps**:
|
|
154
|
+
* - Verify factory initialization (step 3)
|
|
155
|
+
* - Run end-to-end integration test (step 6)
|
|
156
|
+
* - Monitor paymaster balance during testing
|
|
157
|
+
*/
|
|
158
|
+
/**
|
|
159
|
+
* Helper: Get bundler URL
|
|
160
|
+
*
|
|
161
|
+
* Returns the appropriate bundler URL based on environment
|
|
162
|
+
*/
|
|
163
|
+
export function getBundlerUrl() {
|
|
164
|
+
// Use managed bundler URL if set (from Conduit dashboard)
|
|
165
|
+
if (CONDUIT_BUNDLER_CONFIG.managedBundlerUrl) {
|
|
166
|
+
return CONDUIT_BUNDLER_CONFIG.managedBundlerUrl;
|
|
167
|
+
}
|
|
168
|
+
// Fall back to default Conduit bundler endpoint
|
|
169
|
+
return CONDUIT_BUNDLER_CONFIG.bundlerUrl;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Helper: Check if contracts are deployed
|
|
173
|
+
*
|
|
174
|
+
* ✅ Contracts are deployed to Varity L3 (as of January 13, 2026)
|
|
175
|
+
* Returns true (contracts are ready to use)
|
|
176
|
+
*/
|
|
177
|
+
export function areContractsDeployed() {
|
|
178
|
+
// Contracts deployed on January 13, 2026
|
|
179
|
+
// Factory: 0x85AB92708CB4d921f5c2BdCCd7f2D0813a380f71
|
|
180
|
+
// Paymaster: 0xeF467aef91d4e626C7e56967779069bEF22c4453
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/wallets/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C;;;;OAIG;IACH,cAAc,EAAE,4CAAqD;IAErE;;;;;OAKG;IACH,gBAAgB,EAAE,4CAAqD;IAEvE;;;;OAIG;IACH,iBAAiB,EAAE,4CAAqD,EAAE,iBAAiB;CACnF,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC;;;;OAIG;IACH,UAAU,EAAE,gFAAyF;IAErG;;;OAGG;IACH,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,+BAA+B,IAAI,EAAE;CAC5D,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,OAAO,EAAE,IAAI;IAEb;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI,SAAS;IAEhE;;OAEG;IACH,MAAM,EAAE;QACN;;WAEG;QACH,UAAU,EAAE,IAAI;QAEhB;;;WAGG;QACH,WAAW,EAAE,QAAQ;QAErB;;;WAGG;QACH,gBAAgB,EAAE,EAAc;KACjC;CACO,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,CAAC,UAAU;AAExD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAAW;IACrD,OAAO;QACL,MAAM;QACN,KAAK,EAAE,eAAe;QACtB,OAAO,EAAE,gBAAgB;QACzB,cAAc,EAAE,6BAA6B,CAAC,cAAc;QAC5D,cAAc,EAAE,KAAc,EAAE,mBAAmB;KACpD,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH;;;;GAIG;AACH,MAAM,UAAU,aAAa;IAC3B,0DAA0D;IAC1D,IAAI,sBAAsB,CAAC,iBAAiB,EAAE,CAAC;QAC7C,OAAO,sBAAsB,CAAC,iBAAiB,CAAC;IAClD,CAAC;IAED,gDAAgD;IAChD,OAAO,sBAAsB,CAAC,UAAU,CAAC;AAC3C,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB;IAClC,yCAAyC;IACzC,sDAAsD;IACtD,wDAAwD;IACxD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Varity UI Kit - Wallet Components
|
|
3
|
+
*
|
|
4
|
+
* Smart wallet components for ERC-4337 account abstraction
|
|
5
|
+
*/
|
|
6
|
+
export { SmartWalletProvider, useSmartWallet, SmartWalletConnectButton, GaslessBadge, type SmartWalletConfig, } from './SmartWalletProvider';
|
|
7
|
+
export { VARITY_SMART_WALLET_CONTRACTS, CONDUIT_BUNDLER_CONFIG, PAYMASTER_CONFIG, DEFAULT_GAS_BUDGET, getDefaultSmartWalletConfig, getBundlerUrl, areContractsDeployed, } from './config';
|
|
8
|
+
export { SimpleSmartWallet, type SimpleSmartWalletProps, } from './SimpleSmartWallet';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallets/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,aAAa,EACb,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Varity UI Kit - Wallet Components
|
|
3
|
+
*
|
|
4
|
+
* Smart wallet components for ERC-4337 account abstraction
|
|
5
|
+
*/
|
|
6
|
+
export { SmartWalletProvider, useSmartWallet, SmartWalletConnectButton, GaslessBadge, } from './SmartWalletProvider';
|
|
7
|
+
export { VARITY_SMART_WALLET_CONTRACTS, CONDUIT_BUNDLER_CONFIG, PAYMASTER_CONFIG, DEFAULT_GAS_BUDGET, getDefaultSmartWalletConfig, getBundlerUrl, areContractsDeployed, } from './config';
|
|
8
|
+
export { SimpleSmartWallet, } from './SimpleSmartWallet';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wallets/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,YAAY,GAEb,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,aAAa,EACb,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,iBAAiB,GAElB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface AddressDisplayProps {
|
|
2
|
+
address: string;
|
|
3
|
+
format?: 'short' | 'full';
|
|
4
|
+
copyable?: boolean;
|
|
5
|
+
linkToExplorer?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Address Display Component
|
|
10
|
+
*
|
|
11
|
+
* Formats and displays Ethereum addresses with optional features:
|
|
12
|
+
* - Copy to clipboard
|
|
13
|
+
* - Link to block explorer
|
|
14
|
+
* - Short or full format
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { AddressDisplay } from '@varity-labs/ui-kit';
|
|
19
|
+
*
|
|
20
|
+
* function Transaction() {
|
|
21
|
+
* return (
|
|
22
|
+
* <AddressDisplay
|
|
23
|
+
* address="0x1234567890abcdef1234567890abcdef12345678"
|
|
24
|
+
* format="short"
|
|
25
|
+
* copyable
|
|
26
|
+
* linkToExplorer
|
|
27
|
+
* />
|
|
28
|
+
* );
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function AddressDisplay({ address, format, copyable, linkToExplorer, className, }: AddressDisplayProps): JSX.Element;
|
|
33
|
+
//# sourceMappingURL=AddressDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressDisplay.d.ts","sourceRoot":"","sources":["../../../src/web3/AddressDisplay/AddressDisplay.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,MAAgB,EAChB,QAAe,EACf,cAAsB,EACtB,SAAc,GACf,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAmDnC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { formatAddress } from '../../config/chains';
|
|
3
|
+
/**
|
|
4
|
+
* Address Display Component
|
|
5
|
+
*
|
|
6
|
+
* Formats and displays Ethereum addresses with optional features:
|
|
7
|
+
* - Copy to clipboard
|
|
8
|
+
* - Link to block explorer
|
|
9
|
+
* - Short or full format
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { AddressDisplay } from '@varity-labs/ui-kit';
|
|
14
|
+
*
|
|
15
|
+
* function Transaction() {
|
|
16
|
+
* return (
|
|
17
|
+
* <AddressDisplay
|
|
18
|
+
* address="0x1234567890abcdef1234567890abcdef12345678"
|
|
19
|
+
* format="short"
|
|
20
|
+
* copyable
|
|
21
|
+
* linkToExplorer
|
|
22
|
+
* />
|
|
23
|
+
* );
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export function AddressDisplay({ address, format = 'short', copyable = true, linkToExplorer = false, className = '', }) {
|
|
28
|
+
const [copied, setCopied] = useState(false);
|
|
29
|
+
const displayAddress = format === 'short' ? formatAddress(address) : address;
|
|
30
|
+
const handleCopy = () => {
|
|
31
|
+
navigator.clipboard.writeText(address);
|
|
32
|
+
setCopied(true);
|
|
33
|
+
setTimeout(() => setCopied(false), 2000);
|
|
34
|
+
};
|
|
35
|
+
const content = (React.createElement("span", { className: `truncate-address ${className}` }, displayAddress));
|
|
36
|
+
return (React.createElement("div", { className: "inline-flex items-center gap-2" },
|
|
37
|
+
linkToExplorer ? (React.createElement("a", { href: `https://sepolia.arbiscan.io/address/${address}`, target: "_blank", rel: "noopener noreferrer", className: "text-varity-primary hover:text-varity-primary/80 underline" }, content)) : (content),
|
|
38
|
+
copyable && (React.createElement("button", { onClick: handleCopy, className: "p-1 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition-colors", title: copied ? 'Copied!' : 'Copy address' }, copied ? (React.createElement("svg", { className: "w-4 h-4 text-green-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" },
|
|
39
|
+
React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }))) : (React.createElement("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" },
|
|
40
|
+
React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" })))))));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=AddressDisplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressDisplay.js","sourceRoot":"","sources":["../../../src/web3/AddressDisplay/AddressDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAUpD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,IAAI,EACf,cAAc,GAAG,KAAK,EACtB,SAAS,GAAG,EAAE,GACM;IACpB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,cAAc,GAAG,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAE7E,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACvC,SAAS,CAAC,IAAI,CAAC,CAAC;QAChB,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CACd,8BAAM,SAAS,EAAE,oBAAoB,SAAS,EAAE,IAC7C,cAAc,CACV,CACR,CAAC;IAEF,OAAO,CACL,6BAAK,SAAS,EAAC,gCAAgC;QAC5C,cAAc,CAAC,CAAC,CAAC,CAChB,2BACE,IAAI,EAAE,uCAAuC,OAAO,EAAE,EACtD,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,SAAS,EAAC,4DAA4D,IAErE,OAAO,CACN,CACL,CAAC,CAAC,CAAC,CACF,OAAO,CACR;QAEA,QAAQ,IAAI,CACX,gCACE,OAAO,EAAE,UAAU,EACnB,SAAS,EAAC,wEAAwE,EAClF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,IAEzC,MAAM,CAAC,CAAC,CAAC,CACR,6BAAK,SAAS,EAAC,wBAAwB,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW;YAC3F,8BAAM,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,gBAAgB,GAAG,CACpF,CACP,CAAC,CAAC,CAAC,CACF,6BAAK,SAAS,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW;YAC5E,8BAAM,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,uHAAuH,GAAG,CAC3L,CACP,CACM,CACV,CACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface AddressInputProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string, isValid: boolean) => void;
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Address Input Component
|
|
11
|
+
*
|
|
12
|
+
* Input field for Ethereum addresses with validation:
|
|
13
|
+
* - Real-time address validation
|
|
14
|
+
* - Visual feedback for valid/invalid addresses
|
|
15
|
+
* - Error states
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { AddressInput } from '@varity-labs/ui-kit';
|
|
20
|
+
*
|
|
21
|
+
* function SendForm() {
|
|
22
|
+
* const [recipient, setRecipient] = useState('');
|
|
23
|
+
*
|
|
24
|
+
* return (
|
|
25
|
+
* <AddressInput
|
|
26
|
+
* value={recipient}
|
|
27
|
+
* onChange={(value, isValid) => setRecipient(value)}
|
|
28
|
+
* label="Recipient Address"
|
|
29
|
+
* placeholder="0x..."
|
|
30
|
+
* />
|
|
31
|
+
* );
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function AddressInput({ value, onChange, label, placeholder, error, className, }: AddressInputProps): JSX.Element;
|
|
36
|
+
//# sourceMappingURL=AddressInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressInput.d.ts","sourceRoot":"","sources":["../../../src/web3/AddressInput/AddressInput.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,WAAqB,EACrB,KAAK,EACL,SAAc,GACf,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CA8DjC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { isAddress } from 'viem';
|
|
3
|
+
/**
|
|
4
|
+
* Address Input Component
|
|
5
|
+
*
|
|
6
|
+
* Input field for Ethereum addresses with validation:
|
|
7
|
+
* - Real-time address validation
|
|
8
|
+
* - Visual feedback for valid/invalid addresses
|
|
9
|
+
* - Error states
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { AddressInput } from '@varity-labs/ui-kit';
|
|
14
|
+
*
|
|
15
|
+
* function SendForm() {
|
|
16
|
+
* const [recipient, setRecipient] = useState('');
|
|
17
|
+
*
|
|
18
|
+
* return (
|
|
19
|
+
* <AddressInput
|
|
20
|
+
* value={recipient}
|
|
21
|
+
* onChange={(value, isValid) => setRecipient(value)}
|
|
22
|
+
* label="Recipient Address"
|
|
23
|
+
* placeholder="0x..."
|
|
24
|
+
* />
|
|
25
|
+
* );
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export function AddressInput({ value, onChange, label, placeholder = '0x...', error, className = '', }) {
|
|
30
|
+
const [touched, setTouched] = useState(false);
|
|
31
|
+
const isValidAddress = value ? isAddress(value) : false;
|
|
32
|
+
const showError = touched && value && !isValidAddress;
|
|
33
|
+
const handleChange = (e) => {
|
|
34
|
+
const newValue = e.target.value;
|
|
35
|
+
const isValid = newValue ? isAddress(newValue) : false;
|
|
36
|
+
onChange(newValue, isValid);
|
|
37
|
+
};
|
|
38
|
+
const handleBlur = () => {
|
|
39
|
+
setTouched(true);
|
|
40
|
+
};
|
|
41
|
+
return (React.createElement("div", { className: `space-y-2 ${className}` },
|
|
42
|
+
label && (React.createElement("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300" }, label)),
|
|
43
|
+
React.createElement("div", { className: "relative" },
|
|
44
|
+
React.createElement("input", { type: "text", value: value, onChange: handleChange, onBlur: handleBlur, placeholder: placeholder, className: `input pr-10 font-mono ${showError || error
|
|
45
|
+
? 'border-red-500 focus:ring-red-500'
|
|
46
|
+
: isValidAddress
|
|
47
|
+
? 'border-green-500 focus:ring-green-500'
|
|
48
|
+
: ''}` }),
|
|
49
|
+
value && (React.createElement("div", { className: "absolute right-3 top-1/2 -translate-y-1/2" }, isValidAddress ? (React.createElement("svg", { className: "w-5 h-5 text-green-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" },
|
|
50
|
+
React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }))) : touched ? (React.createElement("svg", { className: "w-5 h-5 text-red-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" },
|
|
51
|
+
React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }))) : null))),
|
|
52
|
+
(showError || error) && (React.createElement("p", { className: "text-sm text-red-500" }, error || 'Invalid Ethereum address'))));
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=AddressInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressInput.js","sourceRoot":"","sources":["../../../src/web3/AddressInput/AddressInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAWjC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,OAAO,EACrB,KAAK,EACL,SAAS,GAAG,EAAE,GACI;IAClB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACxD,MAAM,SAAS,GAAG,OAAO,IAAI,KAAK,IAAI,CAAC,cAAc,CAAC;IAEtD,MAAM,YAAY,GAAG,CAAC,CAAsC,EAAE,EAAE;QAC9D,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QAChC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACvD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,UAAU,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,OAAO,CACL,6BAAK,SAAS,EAAE,aAAa,SAAS,EAAE;QACrC,KAAK,IAAI,CACR,+BAAO,SAAS,EAAC,4DAA4D,IAC1E,KAAK,CACA,CACT;QAED,6BAAK,SAAS,EAAC,UAAU;YACvB,+BACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,yBACT,SAAS,IAAI,KAAK;oBAChB,CAAC,CAAC,mCAAmC;oBACrC,CAAC,CAAC,cAAc;wBAChB,CAAC,CAAC,uCAAuC;wBACzC,CAAC,CAAC,EACN,EAAE,GACF;YAED,KAAK,IAAI,CACR,6BAAK,SAAS,EAAC,2CAA2C,IACvD,cAAc,CAAC,CAAC,CAAC,CAChB,6BAAK,SAAS,EAAC,wBAAwB,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW;gBAC3F,8BAAM,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,gBAAgB,GAAG,CACpF,CACP,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CACZ,6BAAK,SAAS,EAAC,sBAAsB,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW;gBACzF,8BAAM,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,sBAAsB,GAAG,CAC1F,CACP,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CACG;QAEL,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,CACvB,2BAAG,SAAS,EAAC,sBAAsB,IAChC,KAAK,IAAI,0BAA0B,CAClC,CACL,CACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface AmountInputProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string, valueBigInt: bigint) => void;
|
|
4
|
+
max?: bigint;
|
|
5
|
+
showMax?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Amount Input Component
|
|
13
|
+
*
|
|
14
|
+
* Input field for USDC amounts with proper 6-decimal handling:
|
|
15
|
+
* - Validates numeric input
|
|
16
|
+
* - Formats to 6 decimals
|
|
17
|
+
* - Max button for full balance
|
|
18
|
+
* - Error states
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { AmountInput } from '@varity-labs/ui-kit';
|
|
23
|
+
*
|
|
24
|
+
* function SendForm() {
|
|
25
|
+
* const [amount, setAmount] = useState('');
|
|
26
|
+
*
|
|
27
|
+
* return (
|
|
28
|
+
* <AmountInput
|
|
29
|
+
* value={amount}
|
|
30
|
+
* onChange={(value, valueBigInt) => setAmount(value)}
|
|
31
|
+
* max={BigInt(1000000000)} // 1000 USDC
|
|
32
|
+
* showMax
|
|
33
|
+
* label="Amount to send"
|
|
34
|
+
* placeholder="0.00"
|
|
35
|
+
* />
|
|
36
|
+
* );
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function AmountInput({ value, onChange, max, showMax, label, placeholder, error, className, }: AmountInputProps): JSX.Element;
|
|
41
|
+
//# sourceMappingURL=AmountInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../src/web3/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,GAAG,EACH,OAAc,EACd,KAAK,EACL,WAAoB,EACpB,KAAK,EACL,SAAc,GACf,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAiFhC"}
|