@openfort/react 0.3.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/browsers.js +13 -0
- package/build/assets/browsers.js.map +1 -0
- package/build/assets/chains.js +139 -0
- package/build/assets/chains.js.map +1 -0
- package/build/assets/icons.js +41 -0
- package/build/assets/icons.js.map +1 -0
- package/build/assets/logos.js +173 -0
- package/build/assets/logos.js.map +1 -0
- package/build/assets/wave.js +6 -0
- package/build/assets/wave.js.map +1 -0
- package/build/components/BalanceButton/index.js +89 -0
- package/build/components/BalanceButton/index.js.map +1 -0
- package/build/components/Common/Alert/index.js +10 -0
- package/build/components/Common/Alert/index.js.map +1 -0
- package/build/components/Common/Alert/styles.js +55 -0
- package/build/components/Common/Alert/styles.js.map +1 -0
- package/build/components/Common/Avatar/index.d.ts +11 -3
- package/build/components/Common/Avatar/index.js +100 -0
- package/build/components/Common/Avatar/index.js.map +1 -0
- package/build/components/Common/Avatar/styles.js +59 -0
- package/build/components/Common/Avatar/styles.js.map +1 -0
- package/build/components/Common/BrowserIcon/index.js +28 -0
- package/build/components/Common/BrowserIcon/index.js.map +1 -0
- package/build/components/Common/BrowserIcon/styles.js +20 -0
- package/build/components/Common/BrowserIcon/styles.js.map +1 -0
- package/build/components/Common/Button/index.js +36 -0
- package/build/components/Common/Button/index.js.map +1 -0
- package/build/components/Common/Button/styles.js +302 -0
- package/build/components/Common/Button/styles.js.map +1 -0
- package/build/components/Common/Button/types.d.ts +1 -0
- package/build/components/Common/Chain/index.d.ts +8 -0
- package/build/components/Common/Chain/index.js +38 -0
- package/build/components/Common/Chain/index.js.map +1 -0
- package/build/components/Common/Chain/styles.js +94 -0
- package/build/components/Common/Chain/styles.js.map +1 -0
- package/build/components/Common/ConnectorList/index.js +58 -0
- package/build/components/Common/ConnectorList/index.js.map +1 -0
- package/build/components/Common/ConnectorList/styles.js +324 -0
- package/build/components/Common/ConnectorList/styles.js.map +1 -0
- package/build/components/Common/CopyToClipboard/CopyButton.js +12 -0
- package/build/components/Common/CopyToClipboard/CopyButton.js.map +1 -0
- package/build/components/Common/CopyToClipboard/CopyIcon.js +76 -0
- package/build/components/Common/CopyToClipboard/CopyIcon.js.map +1 -0
- package/build/components/Common/CopyToClipboard/CopyIconButton.js +38 -0
- package/build/components/Common/CopyToClipboard/CopyIconButton.js.map +1 -0
- package/build/components/Common/CopyToClipboard/CopyText.js +26 -0
- package/build/components/Common/CopyToClipboard/CopyText.js.map +1 -0
- package/build/components/Common/CustomQRCode/QRCode.js +60 -0
- package/build/components/Common/CustomQRCode/QRCode.js.map +1 -0
- package/build/components/Common/CustomQRCode/index.js +22 -0
- package/build/components/Common/CustomQRCode/index.js.map +1 -0
- package/build/components/Common/CustomQRCode/styles.js +155 -0
- package/build/components/Common/CustomQRCode/styles.js.map +1 -0
- package/build/components/Common/FitText/index.js +28 -0
- package/build/components/Common/FitText/index.js.map +1 -0
- package/build/components/Common/Input/index.js +17 -0
- package/build/components/Common/Input/index.js.map +1 -0
- package/build/components/Common/Input/styles.js +53 -0
- package/build/components/Common/Input/styles.js.map +1 -0
- package/build/components/Common/LargeButton/index.js +10 -0
- package/build/components/Common/LargeButton/index.js.map +1 -0
- package/build/components/Common/LargeButton/styles.js +69 -0
- package/build/components/Common/LargeButton/styles.js.map +1 -0
- package/build/components/Common/Loading/index.js +96 -0
- package/build/components/Common/Loading/index.js.map +1 -0
- package/build/components/Common/Modal/index.js +272 -0
- package/build/components/Common/Modal/index.js.map +1 -0
- package/build/components/Common/Modal/styles.d.ts +0 -1
- package/build/components/Common/Modal/styles.js +657 -0
- package/build/components/Common/Modal/styles.js.map +1 -0
- package/build/components/Common/OTPInput/index.js +108 -0
- package/build/components/Common/OTPInput/index.js.map +1 -0
- package/build/components/Common/OTPInput/styles.js +153 -0
- package/build/components/Common/OTPInput/styles.js.map +1 -0
- package/build/components/Common/Portal/index.js +31 -0
- package/build/components/Common/Portal/index.js.map +1 -0
- package/build/components/Common/PoweredByFooter/index.js +103 -0
- package/build/components/Common/PoweredByFooter/index.js.map +1 -0
- package/build/components/Common/Providers/ProviderHeader.d.ts +2 -2
- package/build/components/Common/Providers/ProviderHeader.js +55 -0
- package/build/components/Common/Providers/ProviderHeader.js.map +1 -0
- package/build/components/Common/Providers/ProviderIcon.d.ts +2 -2
- package/build/components/Common/Providers/ProviderIcon.js +41 -0
- package/build/components/Common/Providers/ProviderIcon.js.map +1 -0
- package/build/components/Common/Providers/getProviderName.d.ts +1 -1
- package/build/components/Common/Providers/getProviderName.js +15 -0
- package/build/components/Common/Providers/getProviderName.js.map +1 -0
- package/build/components/Common/ScrollArea/index.js +58 -0
- package/build/components/Common/ScrollArea/index.js.map +1 -0
- package/build/components/Common/ScrollArea/styles.js +168 -0
- package/build/components/Common/ScrollArea/styles.js.map +1 -0
- package/build/components/Common/Spinner/index.js +24 -0
- package/build/components/Common/Spinner/index.js.map +1 -0
- package/build/components/Common/Spinner/styles.js +22 -0
- package/build/components/Common/Spinner/styles.js.map +1 -0
- package/build/components/Common/SquircleSpinner/index.js +15 -0
- package/build/components/Common/SquircleSpinner/index.js.map +1 -0
- package/build/components/Common/SquircleSpinner/styles.js +66 -0
- package/build/components/Common/SquircleSpinner/styles.js.map +1 -0
- package/build/components/Common/ThemedButton/index.js +25 -0
- package/build/components/Common/ThemedButton/index.js.map +1 -0
- package/build/components/Common/ThemedButton/styles.js +152 -0
- package/build/components/Common/ThemedButton/styles.js.map +1 -0
- package/build/components/Common/TickList/index.js +11 -0
- package/build/components/Common/TickList/index.js.map +1 -0
- package/build/components/Common/TickList/styles.js +28 -0
- package/build/components/Common/TickList/styles.js.map +1 -0
- package/build/components/Common/Tooltip/index.js +91 -0
- package/build/components/Common/Tooltip/index.js.map +1 -0
- package/build/components/Common/Tooltip/styles.js +81 -0
- package/build/components/Common/Tooltip/styles.js.map +1 -0
- package/build/components/Common/WalletRecoveryIcon/index.d.ts +4 -0
- package/build/components/Common/WalletRecoveryIcon/index.js +19 -0
- package/build/components/Common/WalletRecoveryIcon/index.js.map +1 -0
- package/build/components/ConnectButton/index.d.ts +12 -4
- package/build/components/ConnectButton/index.js +266 -0
- package/build/components/ConnectButton/index.js.map +1 -0
- package/build/components/ConnectButton/styles.js +50 -0
- package/build/components/ConnectButton/styles.js.map +1 -0
- package/build/components/ConnectKitThemeProvider/ConnectKitThemeProvider.js +20 -0
- package/build/components/ConnectKitThemeProvider/ConnectKitThemeProvider.js.map +1 -0
- package/build/components/ConnectModal/ConnectUsing.d.ts +1 -1
- package/build/components/ConnectModal/ConnectUsing.js +68 -0
- package/build/components/ConnectModal/ConnectUsing.js.map +1 -0
- package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.js +17 -0
- package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.js.map +1 -0
- package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/styles.js +118 -0
- package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/styles.js.map +1 -0
- package/build/components/ConnectModal/ConnectWithInjector/index.d.ts +0 -2
- package/build/components/ConnectModal/ConnectWithInjector/index.js +295 -0
- package/build/components/ConnectModal/ConnectWithInjector/index.js.map +1 -0
- package/build/components/ConnectModal/ConnectWithInjector/styles.js +133 -0
- package/build/components/ConnectModal/ConnectWithInjector/styles.js.map +1 -0
- package/build/components/ConnectModal/ConnectWithMobile.js +99 -0
- package/build/components/ConnectModal/ConnectWithMobile.js.map +1 -0
- package/build/components/ConnectModal/ConnectWithOAuth.js +128 -0
- package/build/components/ConnectModal/ConnectWithOAuth.js.map +1 -0
- package/build/components/ConnectModal/ConnectWithQRCode.js +78 -0
- package/build/components/ConnectModal/ConnectWithQRCode.js.map +1 -0
- package/build/components/ConnectModal/index.js +230 -0
- package/build/components/ConnectModal/index.js.map +1 -0
- package/build/components/FloatingGraphic/index.js +13 -0
- package/build/components/FloatingGraphic/index.js.map +1 -0
- package/build/components/FloatingGraphic/styles.js +175 -0
- package/build/components/FloatingGraphic/styles.js.map +1 -0
- package/build/components/Openfort/OpenfortProvider.d.ts +10 -25
- package/build/components/Openfort/OpenfortProvider.js +351 -0
- package/build/components/Openfort/OpenfortProvider.js.map +1 -0
- package/build/components/Openfort/context.d.ts +48 -5
- package/build/components/Openfort/context.js +7 -0
- package/build/components/Openfort/context.js.map +1 -0
- package/build/components/Openfort/routeHelpers.d.ts +5 -0
- package/build/components/Openfort/routeHelpers.js +20 -0
- package/build/components/Openfort/routeHelpers.js.map +1 -0
- package/build/components/Openfort/types.d.ts +57 -23
- package/build/components/Openfort/types.js +119 -0
- package/build/components/Openfort/types.js.map +1 -0
- package/build/components/Openfort/useOpenfort.d.ts +2 -0
- package/build/components/Openfort/useOpenfort.js +12 -0
- package/build/components/Openfort/useOpenfort.js.map +1 -0
- package/build/components/PageContent/index.js +55 -0
- package/build/components/PageContent/index.js.map +1 -0
- package/build/components/PageContent/styles.js +11 -0
- package/build/components/PageContent/styles.js.map +1 -0
- package/build/components/Pages/About/graphics.js +193 -0
- package/build/components/Pages/About/graphics.js.map +1 -0
- package/build/components/Pages/About/index.js +142 -0
- package/build/components/Pages/About/index.js.map +1 -0
- package/build/components/Pages/About/styles.js +142 -0
- package/build/components/Pages/About/styles.js.map +1 -0
- package/build/components/Pages/AssetInventory/index.js +66 -0
- package/build/components/Pages/AssetInventory/index.js.map +1 -0
- package/build/components/Pages/Buy/coinbaseApi.js +106 -0
- package/build/components/Pages/Buy/coinbaseApi.js.map +1 -0
- package/build/components/Pages/Buy/index.js +88 -0
- package/build/components/Pages/Buy/index.js.map +1 -0
- package/build/components/Pages/Buy/onrampApi.js +57 -0
- package/build/components/Pages/Buy/onrampApi.js.map +1 -0
- package/build/components/Pages/Buy/providers.js +39 -0
- package/build/components/Pages/Buy/providers.js.map +1 -0
- package/build/components/Pages/Buy/stripeApi.js +74 -0
- package/build/components/Pages/Buy/stripeApi.js.map +1 -0
- package/build/components/Pages/Buy/styles.js +230 -0
- package/build/components/Pages/Buy/styles.js.map +1 -0
- package/build/components/Pages/Buy/utils.js +71 -0
- package/build/components/Pages/Buy/utils.js.map +1 -0
- package/build/components/Pages/BuyComplete/index.js +47 -0
- package/build/components/Pages/BuyComplete/index.js.map +1 -0
- package/build/components/Pages/BuyProcessing/index.js +231 -0
- package/build/components/Pages/BuyProcessing/index.js.map +1 -0
- package/build/components/Pages/BuyProviderSelect/index.js +55 -0
- package/build/components/Pages/BuyProviderSelect/index.js.map +1 -0
- package/build/components/Pages/BuyProviderSelect/styles.js +103 -0
- package/build/components/Pages/BuyProviderSelect/styles.js.map +1 -0
- package/build/components/Pages/BuySelectProvider/index.js +245 -0
- package/build/components/Pages/BuySelectProvider/index.js.map +1 -0
- package/build/components/Pages/Connected/ConnectedPageLayout.d.ts +22 -0
- package/build/components/Pages/Connected/ConnectedPageLayout.js +11 -0
- package/build/components/Pages/Connected/ConnectedPageLayout.js.map +1 -0
- package/build/components/Pages/Connected/EthereumConnected.d.ts +3 -0
- package/build/components/Pages/Connected/EthereumConnected.js +133 -0
- package/build/components/Pages/Connected/EthereumConnected.js.map +1 -0
- package/build/components/Pages/Connected/SolanaConnected.d.ts +3 -0
- package/build/components/Pages/Connected/SolanaConnected.js +96 -0
- package/build/components/Pages/Connected/SolanaConnected.js.map +1 -0
- package/build/components/Pages/Connected/index.d.ts +2 -2
- package/build/components/Pages/Connected/index.js +18 -0
- package/build/components/Pages/Connected/index.js.map +1 -0
- package/build/components/Pages/Connected/styles.js +122 -0
- package/build/components/Pages/Connected/styles.js.map +1 -0
- package/build/components/Pages/ConnectedSuccess/index.js +19 -0
- package/build/components/Pages/ConnectedSuccess/index.js.map +1 -0
- package/build/components/Pages/Connectors/index.js +73 -0
- package/build/components/Pages/Connectors/index.js.map +1 -0
- package/build/components/Pages/CreateGuestUserPage/index.js +28 -0
- package/build/components/Pages/CreateGuestUserPage/index.js.map +1 -0
- package/build/components/Pages/CreateWallet/SolanaCreateWallet.d.ts +6 -0
- package/build/components/Pages/CreateWallet/SolanaCreateWallet.js +241 -0
- package/build/components/Pages/CreateWallet/SolanaCreateWallet.js.map +1 -0
- package/build/components/Pages/CreateWallet/index.js +303 -0
- package/build/components/Pages/CreateWallet/index.js.map +1 -0
- package/build/components/Pages/CreateWallet/styles.js +17 -0
- package/build/components/Pages/CreateWallet/styles.js.map +1 -0
- package/build/components/Pages/DownloadApp/index.js +32 -0
- package/build/components/Pages/DownloadApp/index.js.map +1 -0
- package/build/components/Pages/EmailLogin/index.js +118 -0
- package/build/components/Pages/EmailLogin/index.js.map +1 -0
- package/build/components/Pages/EmailLogin/styles.js +24 -0
- package/build/components/Pages/EmailLogin/styles.js.map +1 -0
- package/build/components/Pages/EmailOTP/index.js +116 -0
- package/build/components/Pages/EmailOTP/index.js.map +1 -0
- package/build/components/Pages/EmailOTP/styles.js +38 -0
- package/build/components/Pages/EmailOTP/styles.js.map +1 -0
- package/build/components/Pages/EmailVerification/index.js +86 -0
- package/build/components/Pages/EmailVerification/index.js.map +1 -0
- package/build/components/Pages/ExportKey/index.js +44 -0
- package/build/components/Pages/ExportKey/index.js.map +1 -0
- package/build/components/Pages/ForgotPassword/index.js +129 -0
- package/build/components/Pages/ForgotPassword/index.js.map +1 -0
- package/build/components/Pages/LinkEmail/index.js +63 -0
- package/build/components/Pages/LinkEmail/index.js.map +1 -0
- package/build/components/Pages/LinkedProvider/index.d.ts +3 -0
- package/build/components/Pages/LinkedProvider/index.js +90 -0
- package/build/components/Pages/LinkedProvider/index.js.map +1 -0
- package/build/components/Pages/LinkedProviders/index.js +45 -0
- package/build/components/Pages/LinkedProviders/index.js.map +1 -0
- package/build/components/Pages/LinkedProviders/styles.js +51 -0
- package/build/components/Pages/LinkedProviders/styles.js.map +1 -0
- package/build/components/Pages/LoadWallets/index.js +91 -0
- package/build/components/Pages/LoadWallets/index.js.map +1 -0
- package/build/components/Pages/Loading/index.js +61 -0
- package/build/components/Pages/Loading/index.js.map +1 -0
- package/build/components/Pages/MobileConnectors/index.js +71 -0
- package/build/components/Pages/MobileConnectors/index.js.map +1 -0
- package/build/components/Pages/MobileConnectors/styles.js +65 -0
- package/build/components/Pages/MobileConnectors/styles.js.map +1 -0
- package/build/components/Pages/NoAssetsAvailable/index.js +45 -0
- package/build/components/Pages/NoAssetsAvailable/index.js.map +1 -0
- package/build/components/Pages/NoAssetsAvailable/styles.js +10 -0
- package/build/components/Pages/NoAssetsAvailable/styles.js.map +1 -0
- package/build/components/Pages/Onboarding/index.js +20 -0
- package/build/components/Pages/Onboarding/index.js.map +1 -0
- package/build/components/Pages/PhoneOTP/index.js +128 -0
- package/build/components/Pages/PhoneOTP/index.js.map +1 -0
- package/build/components/Pages/PhoneOTP/styles.js +38 -0
- package/build/components/Pages/PhoneOTP/styles.js.map +1 -0
- package/build/components/Pages/Profile/index.js +35 -0
- package/build/components/Pages/Profile/index.js.map +1 -0
- package/build/components/Pages/Providers/index.js +157 -0
- package/build/components/Pages/Providers/index.js.map +1 -0
- package/build/components/Pages/Providers/styles.js +156 -0
- package/build/components/Pages/Providers/styles.js.map +1 -0
- package/build/components/Pages/Receive/index.js +61 -0
- package/build/components/Pages/Receive/index.js.map +1 -0
- package/build/components/Pages/Receive/styles.d.ts +1 -0
- package/build/components/Pages/Receive/styles.js +52 -0
- package/build/components/Pages/Receive/styles.js.map +1 -0
- package/build/components/Pages/Recover/index.js +252 -0
- package/build/components/Pages/Recover/index.js.map +1 -0
- package/build/components/Pages/Recover/recoveryRegistry.d.ts +32 -0
- package/build/components/Pages/Recover/recoveryRegistry.js +61 -0
- package/build/components/Pages/Recover/recoveryRegistry.js.map +1 -0
- package/build/components/Pages/RemoveLinkedProvider/index.js +104 -0
- package/build/components/Pages/RemoveLinkedProvider/index.js.map +1 -0
- package/build/components/Pages/SelectToken/index.js +102 -0
- package/build/components/Pages/SelectToken/index.js.map +1 -0
- package/build/components/Pages/SelectToken/styles.js +78 -0
- package/build/components/Pages/SelectToken/styles.js.map +1 -0
- package/build/components/Pages/SelectWalletToRecover/index.d.ts +1 -2
- package/build/components/Pages/SelectWalletToRecover/index.js +70 -0
- package/build/components/Pages/SelectWalletToRecover/index.js.map +1 -0
- package/build/components/Pages/Send/EthereumSend.d.ts +1 -0
- package/build/components/Pages/Send/EthereumSend.js +88 -0
- package/build/components/Pages/Send/EthereumSend.js.map +1 -0
- package/build/components/Pages/Send/SolanaSend.d.ts +1 -0
- package/build/components/Pages/Send/SolanaSend.js +93 -0
- package/build/components/Pages/Send/SolanaSend.js.map +1 -0
- package/build/components/Pages/Send/index.d.ts +7 -1
- package/build/components/Pages/Send/index.js +18 -0
- package/build/components/Pages/Send/index.js.map +1 -0
- package/build/components/Pages/Send/styles.js +112 -0
- package/build/components/Pages/Send/styles.js.map +1 -0
- package/build/components/Pages/Send/utils.d.ts +1 -1
- package/build/components/Pages/Send/utils.js +63 -0
- package/build/components/Pages/Send/utils.js.map +1 -0
- package/build/components/Pages/SendConfirmation/EstimatedFees.js +66 -0
- package/build/components/Pages/SendConfirmation/EstimatedFees.js.map +1 -0
- package/build/components/Pages/SendConfirmation/index.js +331 -0
- package/build/components/Pages/SendConfirmation/index.js.map +1 -0
- package/build/components/Pages/SendConfirmation/styles.js +129 -0
- package/build/components/Pages/SendConfirmation/styles.js.map +1 -0
- package/build/components/Pages/SocialProviders/index.js +15 -0
- package/build/components/Pages/SocialProviders/index.js.map +1 -0
- package/build/components/Pages/SolanaSendConfirmation/index.d.ts +1 -0
- package/build/components/Pages/SolanaSendConfirmation/index.js +152 -0
- package/build/components/Pages/SolanaSendConfirmation/index.js.map +1 -0
- package/build/components/Pages/SolanaWallets/index.d.ts +1 -0
- package/build/components/Pages/SolanaWallets/index.js +36 -0
- package/build/components/Pages/SolanaWallets/index.js.map +1 -0
- package/build/components/PasswordStrength/PasswordStrengthIndicator.js +62 -0
- package/build/components/PasswordStrength/PasswordStrengthIndicator.js.map +1 -0
- package/build/components/PasswordStrength/password-utility.js +128 -0
- package/build/components/PasswordStrength/password-utility.js.map +1 -0
- package/build/constants/chainConfigs.js +316 -0
- package/build/constants/chainConfigs.js.map +1 -0
- package/build/constants/defaultTheme.js +6 -0
- package/build/constants/defaultTheme.js.map +1 -0
- package/build/constants/openfort.d.ts +4 -0
- package/build/constants/openfort.js +8 -0
- package/build/constants/openfort.js.map +1 -0
- package/build/core/ConnectionStrategy.d.ts +31 -0
- package/build/core/ConnectionStrategy.js +9 -0
- package/build/core/ConnectionStrategy.js.map +1 -0
- package/build/core/ConnectionStrategyContext.d.ts +16 -0
- package/build/core/ConnectionStrategyContext.js +22 -0
- package/build/core/ConnectionStrategyContext.js.map +1 -0
- package/build/core/errors.d.ts +1 -0
- package/build/core/strategies/EthereumBridgeStrategy.d.ts +11 -0
- package/build/core/strategies/EthereumBridgeStrategy.js +83 -0
- package/build/core/strategies/EthereumBridgeStrategy.js.map +1 -0
- package/build/core/strategies/EthereumEmbeddedStrategy.d.ts +8 -0
- package/build/core/strategies/EthereumEmbeddedStrategy.js +85 -0
- package/build/core/strategies/EthereumEmbeddedStrategy.js.map +1 -0
- package/build/core/strategies/SolanaEmbeddedStrategy.d.ts +9 -0
- package/build/core/strategies/SolanaEmbeddedStrategy.js +53 -0
- package/build/core/strategies/SolanaEmbeddedStrategy.js.map +1 -0
- package/build/core/strategyUtils.d.ts +6 -0
- package/build/core/strategyUtils.js +31 -0
- package/build/core/strategyUtils.js.map +1 -0
- package/build/ethereum/OpenfortEthereumBridgeContext.d.ts +87 -0
- package/build/ethereum/OpenfortEthereumBridgeContext.js +18 -0
- package/build/ethereum/OpenfortEthereumBridgeContext.js.map +1 -0
- package/build/ethereum/hooks/getEmbeddedWalletClient.d.ts +14 -0
- package/build/ethereum/hooks/getEmbeddedWalletClient.js +24 -0
- package/build/ethereum/hooks/getEmbeddedWalletClient.js.map +1 -0
- package/build/ethereum/hooks/useEthereumEmbeddedWallet.d.ts +17 -0
- package/build/ethereum/hooks/useEthereumEmbeddedWallet.js +425 -0
- package/build/ethereum/hooks/useEthereumEmbeddedWallet.js.map +1 -0
- package/build/ethereum/hooks/useEthereumWalletAssets.d.ts +29 -0
- package/build/ethereum/hooks/useEthereumWalletAssets.js +204 -0
- package/build/ethereum/hooks/useEthereumWalletAssets.js.map +1 -0
- package/build/ethereum/index.d.ts +11 -0
- package/build/ethereum/index.js +3 -0
- package/build/ethereum/index.js.map +1 -0
- package/build/ethereum/types.d.ts +140 -0
- package/build/hooks/openfort/auth/requestEmailVerification.js +21 -0
- package/build/hooks/openfort/auth/requestEmailVerification.js.map +1 -0
- package/build/hooks/openfort/auth/status.js +11 -0
- package/build/hooks/openfort/auth/status.js.map +1 -0
- package/build/hooks/openfort/auth/useAuthCallback.d.ts +2 -1
- package/build/hooks/openfort/auth/useAuthCallback.js +197 -0
- package/build/hooks/openfort/auth/useAuthCallback.js.map +1 -0
- package/build/hooks/openfort/auth/useConnectToWalletPostAuth.d.ts +3 -2
- package/build/hooks/openfort/auth/useConnectToWalletPostAuth.js +161 -0
- package/build/hooks/openfort/auth/useConnectToWalletPostAuth.js.map +1 -0
- package/build/hooks/openfort/auth/useEmailAuth.d.ts +4 -3
- package/build/hooks/openfort/auth/useEmailAuth.js +496 -0
- package/build/hooks/openfort/auth/useEmailAuth.js.map +1 -0
- package/build/hooks/openfort/auth/useEmailOtpAuth.d.ts +4 -3
- package/build/hooks/openfort/auth/useEmailOtpAuth.js +151 -0
- package/build/hooks/openfort/auth/useEmailOtpAuth.js.map +1 -0
- package/build/hooks/openfort/auth/useGuestAuth.d.ts +4 -3
- package/build/hooks/openfort/auth/useGuestAuth.js +142 -0
- package/build/hooks/openfort/auth/useGuestAuth.js.map +1 -0
- package/build/hooks/openfort/auth/useOAuth.d.ts +4 -3
- package/build/hooks/openfort/auth/useOAuth.js +217 -0
- package/build/hooks/openfort/auth/useOAuth.js.map +1 -0
- package/build/hooks/openfort/auth/usePhoneOtpAuth.d.ts +4 -3
- package/build/hooks/openfort/auth/usePhoneOtpAuth.js +174 -0
- package/build/hooks/openfort/auth/usePhoneOtpAuth.js.map +1 -0
- package/build/hooks/openfort/auth/useSignOut.d.ts +2 -1
- package/build/hooks/openfort/auth/useSignOut.js +104 -0
- package/build/hooks/openfort/auth/useSignOut.js.map +1 -0
- package/build/hooks/openfort/hookConsistency.js +17 -0
- package/build/hooks/openfort/hookConsistency.js.map +1 -0
- package/build/hooks/openfort/use7702Authorization.js +73 -0
- package/build/hooks/openfort/use7702Authorization.js.map +1 -0
- package/build/hooks/openfort/useGrantPermissions.d.ts +7 -76
- package/build/hooks/openfort/useGrantPermissions.js +221 -0
- package/build/hooks/openfort/useGrantPermissions.js.map +1 -0
- package/build/hooks/openfort/useProviders.js +75 -0
- package/build/hooks/openfort/useProviders.js.map +1 -0
- package/build/hooks/openfort/useRevokePermissions.d.ts +2 -1
- package/build/hooks/openfort/useRevokePermissions.js +126 -0
- package/build/hooks/openfort/useRevokePermissions.js.map +1 -0
- package/build/hooks/openfort/useUI.d.ts +4 -45
- package/build/hooks/openfort/useUI.js +122 -0
- package/build/hooks/openfort/useUI.js.map +1 -0
- package/build/hooks/openfort/useUser.d.ts +12 -35
- package/build/hooks/openfort/useUser.js +61 -0
- package/build/hooks/openfort/useUser.js.map +1 -0
- package/build/hooks/openfort/walletTypes.d.ts +32 -0
- package/build/hooks/openfort/walletTypes.js +53 -0
- package/build/hooks/openfort/walletTypes.js.map +1 -0
- package/build/hooks/useBalance.d.ts +50 -0
- package/build/hooks/useBalance.js +80 -0
- package/build/hooks/useBalance.js.map +1 -0
- package/build/hooks/useConnectLifecycle.d.ts +7 -0
- package/build/hooks/useConnectLifecycle.js +43 -0
- package/build/hooks/useConnectLifecycle.js.map +1 -0
- package/build/hooks/useConnectors.d.ts +3 -5
- package/build/hooks/useConnectors.js +26 -0
- package/build/hooks/useConnectors.js.map +1 -0
- package/build/hooks/useCopyToClipboard.js +29 -0
- package/build/hooks/useCopyToClipboard.js.map +1 -0
- package/build/hooks/useFitText.js +125 -0
- package/build/hooks/useFitText.js.map +1 -0
- package/build/hooks/useFocusTrap.d.ts +4 -1
- package/build/hooks/useFocusTrap.js +60 -0
- package/build/hooks/useFocusTrap.js.map +1 -0
- package/build/hooks/useGoogleFont.js +43 -0
- package/build/hooks/useGoogleFont.js.map +1 -0
- package/build/hooks/useIsMobile.js +17 -0
- package/build/hooks/useIsMobile.js.map +1 -0
- package/build/hooks/useIsMounted.js +10 -0
- package/build/hooks/useIsMounted.js.map +1 -0
- package/build/hooks/useLastConnector.js +39 -0
- package/build/hooks/useLastConnector.js.map +1 -0
- package/build/hooks/useLocales.d.ts +1 -1
- package/build/hooks/useLocales.js +68 -0
- package/build/hooks/useLocales.js.map +1 -0
- package/build/hooks/useLockBodyScroll.js +53 -0
- package/build/hooks/useLockBodyScroll.js.map +1 -0
- package/build/hooks/usePrevious.js +14 -0
- package/build/hooks/usePrevious.js.map +1 -0
- package/build/hooks/useResolvedIdentity.d.ts +70 -0
- package/build/hooks/useResolvedIdentity.js +90 -0
- package/build/hooks/useResolvedIdentity.js.map +1 -0
- package/build/hooks/useRouteProps.d.ts +10 -5
- package/build/hooks/useRouteProps.js +27 -0
- package/build/hooks/useRouteProps.js.map +1 -0
- package/build/hooks/useWalletConnectModal.js +59 -0
- package/build/hooks/useWalletConnectModal.js.map +1 -0
- package/build/hooks/useWindowSize.js +23 -0
- package/build/hooks/useWindowSize.js.map +1 -0
- package/build/index.d.ts +61 -16
- package/build/index.js +31 -0
- package/build/index.js.map +1 -0
- package/build/localizations/index.js +57 -0
- package/build/localizations/index.js.map +1 -0
- package/build/localizations/locales/ar-AE.js +100 -0
- package/build/localizations/locales/ar-AE.js.map +1 -0
- package/build/localizations/locales/ca-AD.js +98 -0
- package/build/localizations/locales/ca-AD.js.map +1 -0
- package/build/localizations/locales/ee-EE.js +98 -0
- package/build/localizations/locales/ee-EE.js.map +1 -0
- package/build/localizations/locales/en-US.js +115 -0
- package/build/localizations/locales/en-US.js.map +1 -0
- package/build/localizations/locales/es-ES.js +98 -0
- package/build/localizations/locales/es-ES.js.map +1 -0
- package/build/localizations/locales/fa-IR.js +98 -0
- package/build/localizations/locales/fa-IR.js.map +1 -0
- package/build/localizations/locales/fr-FR.js +98 -0
- package/build/localizations/locales/fr-FR.js.map +1 -0
- package/build/localizations/locales/ja-JP.js +98 -0
- package/build/localizations/locales/ja-JP.js.map +1 -0
- package/build/localizations/locales/pt-BR.js +98 -0
- package/build/localizations/locales/pt-BR.js.map +1 -0
- package/build/localizations/locales/ru-RU.js +98 -0
- package/build/localizations/locales/ru-RU.js.map +1 -0
- package/build/localizations/locales/tr-TR.js +98 -0
- package/build/localizations/locales/tr-TR.js.map +1 -0
- package/build/localizations/locales/vi-VN.js +98 -0
- package/build/localizations/locales/vi-VN.js.map +1 -0
- package/build/localizations/locales/zh-CN.js +98 -0
- package/build/localizations/locales/zh-CN.js.map +1 -0
- package/build/openfort/CoreOpenfortProvider.d.ts +9 -22
- package/build/openfort/CoreOpenfortProvider.js +389 -0
- package/build/openfort/CoreOpenfortProvider.js.map +1 -0
- package/build/{hooks/useConnectCallback.d.ts → openfort/connectCallbackTypes.d.ts} +2 -2
- package/build/openfort/context.d.ts +3 -2
- package/build/openfort/context.js +6 -0
- package/build/openfort/context.js.map +1 -0
- package/build/openfort/core/client.d.ts +2 -1
- package/build/openfort/core/client.js +23 -0
- package/build/openfort/core/client.js.map +1 -0
- package/build/openfort/hooks/useActiveAddressSync.d.ts +20 -0
- package/build/openfort/hooks/useActiveAddressSync.js +76 -0
- package/build/openfort/hooks/useActiveAddressSync.js.map +1 -0
- package/build/openfort/hooks/useAutoRecovery.d.ts +26 -0
- package/build/openfort/hooks/useAutoRecovery.js +102 -0
- package/build/openfort/hooks/useAutoRecovery.js.map +1 -0
- package/build/openfort/hooks/useEmbeddedStateMachine.d.ts +31 -0
- package/build/openfort/hooks/useEmbeddedStateMachine.js +77 -0
- package/build/openfort/hooks/useEmbeddedStateMachine.js.map +1 -0
- package/build/openfort/selectors.d.ts +9 -0
- package/build/openfort/selectors.js +15 -0
- package/build/openfort/selectors.js.map +1 -0
- package/build/openfort/store.d.ts +46 -0
- package/build/openfort/store.js +116 -0
- package/build/openfort/store.js.map +1 -0
- package/build/openfort/useOpenfort.d.ts +9 -3
- package/build/openfort/useOpenfort.js +15 -0
- package/build/openfort/useOpenfort.js.map +1 -0
- package/build/openfort/useOpenfortStore.d.ts +2 -0
- package/build/openfort/useOpenfortStore.js +13 -0
- package/build/openfort/useOpenfortStore.js.map +1 -0
- package/build/query/index.d.ts +2 -0
- package/build/query/queryKeys.d.ts +12 -0
- package/build/query/queryKeys.js +15 -0
- package/build/query/queryKeys.js.map +1 -0
- package/build/query/queryOptions.d.ts +23 -0
- package/build/query/queryOptions.js +31 -0
- package/build/query/queryOptions.js.map +1 -0
- package/build/shared/hooks/useAsyncData.d.ts +19 -0
- package/build/shared/hooks/useAsyncData.js +69 -0
- package/build/shared/hooks/useAsyncData.js.map +1 -0
- package/build/shared/hooks/useRecoveryOTP.d.ts +11 -0
- package/build/shared/hooks/useRecoveryOTP.js +64 -0
- package/build/shared/hooks/useRecoveryOTP.js.map +1 -0
- package/build/shared/types.d.ts +65 -0
- package/build/shared/utils/embeddedWalletStatusMapper.d.ts +15 -0
- package/build/shared/utils/embeddedWalletStatusMapper.js +22 -0
- package/build/shared/utils/embeddedWalletStatusMapper.js.map +1 -0
- package/build/shared/utils/explorer.d.ts +24 -0
- package/build/shared/utils/explorer.js +71 -0
- package/build/shared/utils/explorer.js.map +1 -0
- package/build/shared/utils/otpError.d.ts +8 -0
- package/build/shared/utils/otpError.js +17 -0
- package/build/shared/utils/otpError.js.map +1 -0
- package/build/shared/utils/recovery.d.ts +15 -0
- package/build/shared/utils/recovery.js +96 -0
- package/build/shared/utils/recovery.js.map +1 -0
- package/build/shared/utils/validation.d.ts +15 -0
- package/build/shared/utils/validation.js +27 -0
- package/build/shared/utils/validation.js.map +1 -0
- package/build/shared/utils/walletStatusProps.d.ts +18 -0
- package/build/shared/utils/walletStatusProps.js +45 -0
- package/build/shared/utils/walletStatusProps.js.map +1 -0
- package/build/siwe/create-siwe-message.d.ts +15 -1
- package/build/siwe/create-siwe-message.js +32 -0
- package/build/siwe/create-siwe-message.js.map +1 -0
- package/build/solana/SolanaContext.d.ts +43 -0
- package/build/solana/SolanaContext.js +87 -0
- package/build/solana/SolanaContext.js.map +1 -0
- package/build/solana/constants.d.ts +21 -0
- package/build/solana/constants.js +24 -0
- package/build/solana/constants.js.map +1 -0
- package/build/solana/hooks/recoveryResolver.d.ts +16 -0
- package/build/solana/hooks/recoveryResolver.js +39 -0
- package/build/solana/hooks/recoveryResolver.js.map +1 -0
- package/build/solana/hooks/useSolanaEmbeddedWallet.d.ts +17 -0
- package/build/solana/hooks/useSolanaEmbeddedWallet.js +389 -0
- package/build/solana/hooks/useSolanaEmbeddedWallet.js.map +1 -0
- package/build/solana/hooks/utils.d.ts +2 -0
- package/build/solana/hooks/utils.js +18 -0
- package/build/solana/hooks/utils.js.map +1 -0
- package/build/solana/index.d.ts +12 -0
- package/build/solana/index.js +2 -0
- package/build/solana/index.js.map +1 -0
- package/build/solana/operations.d.ts +22 -0
- package/build/solana/operations.js +40 -0
- package/build/solana/operations.js.map +1 -0
- package/build/solana/provider.d.ts +131 -0
- package/build/solana/provider.js +126 -0
- package/build/solana/provider.js.map +1 -0
- package/build/solana/types.d.ts +253 -0
- package/build/solana/utils/transfer.d.ts +9 -0
- package/build/solana/utils/transfer.js +20 -0
- package/build/solana/utils/transfer.js.map +1 -0
- package/build/styles/index.js +334 -0
- package/build/styles/index.js.map +1 -0
- package/build/styles/styled/index.js +14 -0
- package/build/styles/styled/index.js.map +1 -0
- package/build/styles/themes/base.js +147 -0
- package/build/styles/themes/base.js.map +1 -0
- package/build/styles/themes/index.js +13 -0
- package/build/styles/themes/index.js.map +1 -0
- package/build/styles/themes/midnight.js +78 -0
- package/build/styles/themes/midnight.js.map +1 -0
- package/build/styles/themes/minimal.js +100 -0
- package/build/styles/themes/minimal.js.map +1 -0
- package/build/styles/themes/nouns.js +83 -0
- package/build/styles/themes/nouns.js.map +1 -0
- package/build/styles/themes/retro.js +110 -0
- package/build/styles/themes/retro.js.map +1 -0
- package/build/styles/themes/rounded.js +110 -0
- package/build/styles/themes/rounded.js.map +1 -0
- package/build/styles/themes/soft.js +73 -0
- package/build/styles/themes/soft.js.map +1 -0
- package/build/styles/themes/web95.js +136 -0
- package/build/styles/themes/web95.js.map +1 -0
- package/build/types.d.ts +5 -6
- package/build/types.js +33 -0
- package/build/types.js.map +1 -0
- package/build/utils/banner.d.ts +1 -0
- package/build/utils/banner.js +14 -0
- package/build/utils/banner.js.map +1 -0
- package/build/utils/errorHandling.js +331 -0
- package/build/utils/errorHandling.js.map +1 -0
- package/build/utils/format.d.ts +18 -0
- package/build/utils/format.js +59 -0
- package/build/utils/format.js.map +1 -0
- package/build/utils/index.d.ts +2 -3
- package/build/utils/index.js +67 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/logger.js +13 -0
- package/build/utils/logger.js.map +1 -0
- package/build/utils/oauthErrorHandler.d.ts +1 -1
- package/build/utils/oauthErrorHandler.js +42 -0
- package/build/utils/oauthErrorHandler.js.map +1 -0
- package/build/utils/p3.js +14 -0
- package/build/utils/p3.js.map +1 -0
- package/build/utils/rpc.d.ts +34 -0
- package/build/utils/rpc.js +93 -0
- package/build/utils/rpc.js.map +1 -0
- package/build/utils/useOnUserReturn.js +25 -0
- package/build/utils/useOnUserReturn.js.map +1 -0
- package/build/utils/validation.js +7 -0
- package/build/utils/validation.js.map +1 -0
- package/build/utils/wallets.d.ts +6 -0
- package/build/utils/wallets.js +14 -0
- package/build/utils/wallets.js.map +1 -0
- package/build/version.d.ts +1 -1
- package/build/version.js +4 -0
- package/build/version.js.map +1 -0
- package/build/wagmi/OpenfortWagmiBridge.d.ts +3 -0
- package/build/wagmi/OpenfortWagmiBridge.js +166 -0
- package/build/wagmi/OpenfortWagmiBridge.js.map +1 -0
- package/build/wagmi/components/ChainSelect/index.js +140 -0
- package/build/wagmi/components/ChainSelect/index.js.map +1 -0
- package/build/wagmi/components/ChainSelectDropdown/index.js +144 -0
- package/build/wagmi/components/ChainSelectDropdown/index.js.map +1 -0
- package/build/wagmi/components/ChainSelectDropdown/styles.js +47 -0
- package/build/wagmi/components/ChainSelectDropdown/styles.js.map +1 -0
- package/build/wagmi/components/ChainSelectList/index.js +109 -0
- package/build/wagmi/components/ChainSelectList/index.js.map +1 -0
- package/build/wagmi/components/ChainSelectList/styles.js +225 -0
- package/build/wagmi/components/ChainSelectList/styles.js.map +1 -0
- package/build/wagmi/components/SwitchNetworks/index.js +22 -0
- package/build/wagmi/components/SwitchNetworks/index.js.map +1 -0
- package/build/wagmi/connectorFilter.d.ts +6 -0
- package/build/wagmi/connectorFilter.js +16 -0
- package/build/wagmi/connectorFilter.js.map +1 -0
- package/build/{defaultConfig.d.ts → wagmi/defaultConfig.d.ts} +1 -2
- package/build/wagmi/defaultConfig.js +27 -0
- package/build/wagmi/defaultConfig.js.map +1 -0
- package/build/wagmi/defaultConnectors.js +36 -0
- package/build/wagmi/defaultConnectors.js.map +1 -0
- package/build/wagmi/embeddedConnector.d.ts +4 -0
- package/build/wagmi/embeddedConnector.js +80 -0
- package/build/wagmi/embeddedConnector.js.map +1 -0
- package/build/wagmi/index.d.ts +10 -0
- package/build/wagmi/index.js +10 -0
- package/build/wagmi/index.js.map +1 -0
- package/build/wagmi/useChainIsSupported.d.ts +20 -0
- package/build/wagmi/useChainIsSupported.js +30 -0
- package/build/wagmi/useChainIsSupported.js.map +1 -0
- package/build/wagmi/useChains.d.ts +29 -0
- package/build/wagmi/useChains.js +38 -0
- package/build/wagmi/useChains.js.map +1 -0
- package/build/wagmi/useConnectWithSiwe.d.ts +22 -0
- package/build/wagmi/useConnectWithSiwe.js +115 -0
- package/build/wagmi/useConnectWithSiwe.js.map +1 -0
- package/build/wagmi/useEmbeddedWalletWagmiSync.d.ts +2 -0
- package/build/wagmi/useEmbeddedWalletWagmiSync.js +55 -0
- package/build/wagmi/useEmbeddedWalletWagmiSync.js.map +1 -0
- package/build/wagmi/useWalletAuth.d.ts +24 -0
- package/build/wagmi/useWalletAuth.js +180 -0
- package/build/wagmi/useWalletAuth.js.map +1 -0
- package/build/wallets/useExternalConnectors.d.ts +17 -0
- package/build/wallets/useExternalConnectors.js +98 -0
- package/build/wallets/useExternalConnectors.js.map +1 -0
- package/build/wallets/walletConfigs.js +344 -0
- package/build/wallets/walletConfigs.js.map +1 -0
- package/package.json +62 -11
- package/build/components/PageLayout/index.d.ts +0 -6
- package/build/components/contexts/web3/index.d.ts +0 -13
- package/build/constants/erc20.d.ts +0 -42
- package/build/hooks/openfort/auth/useWalletAuth.d.ts +0 -20
- package/build/hooks/openfort/useConnectWithSiwe.d.ts +0 -8
- package/build/hooks/openfort/useWalletAssets.d.ts +0 -16
- package/build/hooks/openfort/useWallets.d.ts +0 -134
- package/build/hooks/useChainIsSupported.d.ts +0 -24
- package/build/hooks/useChains.d.ts +0 -41
- package/build/hooks/useConnect.d.ts +0 -24
- package/build/hooks/useEnsFallbackConfig.d.ts +0 -1
- package/build/index.es.js +0 -19620
- package/build/index.es.js.map +0 -1
- package/build/openfortCustomTypes.d.ts +0 -10
- package/build/wallets/index.d.ts +0 -7
- package/build/wallets/useWagmiWallets.d.ts +0 -9
- /package/build/components/Pages/{SoicalProviders → SocialProviders}/index.d.ts +0 -0
- /package/build/{components/Common → wagmi/components}/ChainSelect/index.d.ts +0 -0
- /package/build/{components/Common → wagmi/components}/ChainSelectDropdown/index.d.ts +0 -0
- /package/build/{components/Common → wagmi/components}/ChainSelectDropdown/styles.d.ts +0 -0
- /package/build/{components/Common → wagmi/components}/ChainSelectList/index.d.ts +0 -0
- /package/build/{components/Common → wagmi/components}/ChainSelectList/styles.d.ts +0 -0
- /package/build/{components/Pages → wagmi/components}/SwitchNetworks/index.d.ts +0 -0
- /package/build/{defaultConnectors.d.ts → wagmi/defaultConnectors.d.ts} +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { useState, useMemo, useCallback } from 'react';
|
|
2
|
+
import { embeddedWalletId } from '../constants/openfort.js';
|
|
3
|
+
import { OpenfortError, OpenfortReactErrorType } from '../types.js';
|
|
4
|
+
import { useEthereumBridge } from '../ethereum/OpenfortEthereumBridgeContext.js';
|
|
5
|
+
import { mapStatus } from '../hooks/openfort/auth/status.js';
|
|
6
|
+
import { onError, onSuccess } from '../hooks/openfort/hookConsistency.js';
|
|
7
|
+
import { useOpenfortCore } from '../openfort/useOpenfort.js';
|
|
8
|
+
import { createSIWEMessage } from '../siwe/create-siwe-message.js';
|
|
9
|
+
|
|
10
|
+
function runConnectWithSiwe(bridge, openfort, params) {
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
12
|
+
const { client, updateUser } = openfort;
|
|
13
|
+
const address = (_a = params.address) !== null && _a !== void 0 ? _a : (_b = bridge.account) === null || _b === void 0 ? void 0 : _b.address;
|
|
14
|
+
const connectorType = (_c = params.connectorType) !== null && _c !== void 0 ? _c : (_e = (_d = bridge.account) === null || _d === void 0 ? void 0 : _d.connector) === null || _e === void 0 ? void 0 : _e.type;
|
|
15
|
+
const walletClientType = (_f = params.walletClientType) !== null && _f !== void 0 ? _f : (_h = (_g = bridge.account) === null || _g === void 0 ? void 0 : _g.connector) === null || _h === void 0 ? void 0 : _h.id;
|
|
16
|
+
const chainId = (_j = bridge.chainId) !== null && _j !== void 0 ? _j : 0;
|
|
17
|
+
const accountChainId = (_m = (_l = (_k = bridge.account) === null || _k === void 0 ? void 0 : _k.chain) === null || _l === void 0 ? void 0 : _l.id) !== null && _m !== void 0 ? _m : bridge.chainId;
|
|
18
|
+
const chainName = (_p = (_o = bridge.account) === null || _o === void 0 ? void 0 : _o.chain) === null || _p === void 0 ? void 0 : _p.name;
|
|
19
|
+
const switchChainAsync = (_q = bridge.switchChain) === null || _q === void 0 ? void 0 : _q.switchChainAsync;
|
|
20
|
+
const signMessage = bridge.signMessage;
|
|
21
|
+
if (!address || !connectorType || !walletClientType) {
|
|
22
|
+
(_r = params.onError) === null || _r === void 0 ? void 0 : _r.call(params, 'No address found');
|
|
23
|
+
return Promise.resolve();
|
|
24
|
+
}
|
|
25
|
+
if (!signMessage) {
|
|
26
|
+
(_s = params.onError) === null || _s === void 0 ? void 0 : _s.call(params, 'EVM bridge not available (signMessage)');
|
|
27
|
+
return Promise.resolve();
|
|
28
|
+
}
|
|
29
|
+
return (async () => {
|
|
30
|
+
var _a;
|
|
31
|
+
try {
|
|
32
|
+
if (accountChainId !== chainId && switchChainAsync) {
|
|
33
|
+
await switchChainAsync({ chainId });
|
|
34
|
+
}
|
|
35
|
+
const nonce = params.link
|
|
36
|
+
? (await client.auth.initLinkSiwe({ address })).nonce
|
|
37
|
+
: (await client.auth.initSiwe({ address })).nonce;
|
|
38
|
+
const siweMsg = createSIWEMessage(address, nonce, chainId);
|
|
39
|
+
if (!siweMsg)
|
|
40
|
+
throw new Error('SIWE message creation failed (window not available)');
|
|
41
|
+
const messageStr = typeof siweMsg === 'string'
|
|
42
|
+
? siweMsg
|
|
43
|
+
: typeof siweMsg.prepareMessage === 'function'
|
|
44
|
+
? await siweMsg.prepareMessage()
|
|
45
|
+
: String(siweMsg);
|
|
46
|
+
const signature = await signMessage({ message: messageStr });
|
|
47
|
+
if (params.link) {
|
|
48
|
+
await client.auth.linkWithSiwe({
|
|
49
|
+
signature,
|
|
50
|
+
message: messageStr,
|
|
51
|
+
connectorType,
|
|
52
|
+
walletClientType,
|
|
53
|
+
address,
|
|
54
|
+
chainId,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
await client.auth.loginWithSiwe({
|
|
59
|
+
signature,
|
|
60
|
+
message: messageStr,
|
|
61
|
+
connectorType,
|
|
62
|
+
walletClientType,
|
|
63
|
+
address,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
await updateUser();
|
|
67
|
+
(_a = params.onConnect) === null || _a === void 0 ? void 0 : _a.call(params);
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
if (!params.onError)
|
|
71
|
+
return;
|
|
72
|
+
let message = err instanceof Error ? err.message : String(err);
|
|
73
|
+
if (message.includes('User rejected the request.'))
|
|
74
|
+
message = 'User rejected the request.';
|
|
75
|
+
else if (message.includes('Invalid signature'))
|
|
76
|
+
message = 'Invalid signature. Please try again.';
|
|
77
|
+
else if (message.includes('An error occurred when attempting to switch chain')) {
|
|
78
|
+
message = `Failed to switch chain. Please switch your wallet to ${chainName !== null && chainName !== void 0 ? chainName : 'the correct network'} and try again.`;
|
|
79
|
+
}
|
|
80
|
+
else if (message.includes('already linked')) {
|
|
81
|
+
message = 'This wallet is already linked to another account. Log out and connect with this wallet instead.';
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
message = 'Failed to connect with SIWE.';
|
|
85
|
+
}
|
|
86
|
+
params.onError(message, err instanceof OpenfortError ? err : undefined);
|
|
87
|
+
}
|
|
88
|
+
})();
|
|
89
|
+
}
|
|
90
|
+
function useWalletAuth(hookOptions = {}) {
|
|
91
|
+
const bridge = useEthereumBridge();
|
|
92
|
+
const openfort = useOpenfortCore();
|
|
93
|
+
const [walletConnectingTo, setWalletConnectingTo] = useState(null);
|
|
94
|
+
const [status, setStatus] = useState({ status: 'idle' });
|
|
95
|
+
const availableWallets = useMemo(() => {
|
|
96
|
+
var _a;
|
|
97
|
+
if (!((_a = bridge === null || bridge === void 0 ? void 0 : bridge.connectors) === null || _a === void 0 ? void 0 : _a.length))
|
|
98
|
+
return [];
|
|
99
|
+
return bridge.connectors
|
|
100
|
+
.filter((c) => c.id !== embeddedWalletId)
|
|
101
|
+
.map((c) => { var _a; return ({ id: c.id, name: (_a = c.name) !== null && _a !== void 0 ? _a : c.id, icon: c.icon, connector: c }); });
|
|
102
|
+
}, [bridge === null || bridge === void 0 ? void 0 : bridge.connectors]);
|
|
103
|
+
const runConnectThenSiwe = useCallback(async (connectorId, link, callbacks) => {
|
|
104
|
+
var _a, _b, _c, _d, _e;
|
|
105
|
+
const connector = (_a = bridge === null || bridge === void 0 ? void 0 : bridge.connectors) === null || _a === void 0 ? void 0 : _a.find((c) => c.id === connectorId);
|
|
106
|
+
if (!connector || !(bridge === null || bridge === void 0 ? void 0 : bridge.connectAsync)) {
|
|
107
|
+
const msg = 'Connector not available';
|
|
108
|
+
const err = new OpenfortError(msg, OpenfortReactErrorType.AUTHENTICATION_ERROR);
|
|
109
|
+
setStatus({ status: 'error', error: err });
|
|
110
|
+
onError({ hookOptions, error: err });
|
|
111
|
+
(_b = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onError) === null || _b === void 0 ? void 0 : _b.call(callbacks, msg, err);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
setWalletConnectingTo(connectorId);
|
|
115
|
+
setStatus({ status: 'loading' });
|
|
116
|
+
if (bridge.account.isConnected) {
|
|
117
|
+
try {
|
|
118
|
+
await bridge.disconnect();
|
|
119
|
+
}
|
|
120
|
+
catch (e) {
|
|
121
|
+
setWalletConnectingTo(null);
|
|
122
|
+
const err = new OpenfortError('Failed to disconnect', OpenfortReactErrorType.AUTHENTICATION_ERROR, {
|
|
123
|
+
error: e,
|
|
124
|
+
});
|
|
125
|
+
setStatus({ status: 'error', error: err });
|
|
126
|
+
onError({ hookOptions, error: err });
|
|
127
|
+
(_c = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onError) === null || _c === void 0 ? void 0 : _c.call(callbacks, err.message, err);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
try {
|
|
132
|
+
const result = await bridge.connectAsync({ connector });
|
|
133
|
+
const connectResult = result && typeof result === 'object' && 'accounts' in result
|
|
134
|
+
? result
|
|
135
|
+
: undefined;
|
|
136
|
+
const addressFromResult = (_d = connectResult === null || connectResult === void 0 ? void 0 : connectResult.accounts) === null || _d === void 0 ? void 0 : _d[0];
|
|
137
|
+
await runConnectWithSiwe(bridge, openfort, {
|
|
138
|
+
address: addressFromResult,
|
|
139
|
+
connectorType: connector.type,
|
|
140
|
+
walletClientType: connector.id,
|
|
141
|
+
link,
|
|
142
|
+
onConnect: () => {
|
|
143
|
+
var _a;
|
|
144
|
+
setWalletConnectingTo(null);
|
|
145
|
+
setStatus({ status: 'success' });
|
|
146
|
+
onSuccess({ hookOptions, data: {} });
|
|
147
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onConnect) === null || _a === void 0 ? void 0 : _a.call(callbacks);
|
|
148
|
+
},
|
|
149
|
+
onError: (message, openfortError) => {
|
|
150
|
+
var _a;
|
|
151
|
+
setWalletConnectingTo(null);
|
|
152
|
+
const err = openfortError !== null && openfortError !== void 0 ? openfortError : new OpenfortError(message, OpenfortReactErrorType.AUTHENTICATION_ERROR);
|
|
153
|
+
setStatus({ status: 'error', error: err });
|
|
154
|
+
onError({ hookOptions, error: err });
|
|
155
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onError) === null || _a === void 0 ? void 0 : _a.call(callbacks, message, err);
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
catch (err) {
|
|
160
|
+
setWalletConnectingTo(null);
|
|
161
|
+
const message = err instanceof Error ? err.message : 'Connection failed';
|
|
162
|
+
const openfortErr = new OpenfortError(message, OpenfortReactErrorType.AUTHENTICATION_ERROR, { error: err });
|
|
163
|
+
setStatus({ status: 'error', error: openfortErr });
|
|
164
|
+
onError({ hookOptions, error: openfortErr });
|
|
165
|
+
(_e = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onError) === null || _e === void 0 ? void 0 : _e.call(callbacks, message, openfortErr);
|
|
166
|
+
}
|
|
167
|
+
}, [bridge, openfort, hookOptions]);
|
|
168
|
+
const connectWallet = useCallback((connectorId, callbacks) => runConnectThenSiwe(connectorId, false, callbacks), [runConnectThenSiwe]);
|
|
169
|
+
const linkWallet = useCallback((connectorId, callbacks) => runConnectThenSiwe(connectorId, true, callbacks), [runConnectThenSiwe]);
|
|
170
|
+
return {
|
|
171
|
+
availableWallets,
|
|
172
|
+
connectWallet,
|
|
173
|
+
linkWallet,
|
|
174
|
+
walletConnectingTo,
|
|
175
|
+
...mapStatus(status),
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export { useWalletAuth };
|
|
180
|
+
//# sourceMappingURL=useWalletAuth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletAuth.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OpenfortEthereumBridgeConnector, OpenfortEthereumBridgeValue } from '../ethereum/OpenfortEthereumBridgeContext';
|
|
2
|
+
import { type WalletConfigProps } from './walletConfigs';
|
|
3
|
+
export type ExternalConnectorProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
connector: OpenfortEthereumBridgeConnector;
|
|
6
|
+
isInstalled?: boolean;
|
|
7
|
+
} & WalletConfigProps;
|
|
8
|
+
type MapBridgeConnectorsOptions = {
|
|
9
|
+
walletConnectName?: string;
|
|
10
|
+
};
|
|
11
|
+
/** Maps bridge.connectors to ExternalConnectorProps[]. Used by EthereumBridgeStrategy and useExternalConnectors. */
|
|
12
|
+
export declare function mapBridgeConnectorsToWalletProps(bridge: OpenfortEthereumBridgeValue, options?: MapBridgeConnectorsOptions): ExternalConnectorProps[];
|
|
13
|
+
/** Returns the list of external connectors (MetaMask, WalletConnect, etc.) for the connect UI. Uses strategy when available; returns [] when embedded-only (no bridge). */
|
|
14
|
+
export declare function useExternalConnectors(): ExternalConnectorProps[];
|
|
15
|
+
/** Single connector by id. */
|
|
16
|
+
export declare const useExternalConnector: (id: string) => ExternalConnectorProps | null;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import { useConnectionStrategy } from '../core/ConnectionStrategyContext.js';
|
|
3
|
+
import { isCoinbaseWalletConnector, isInjectedConnector } from '../utils/index.js';
|
|
4
|
+
import { walletConfigs } from './walletConfigs.js';
|
|
5
|
+
|
|
6
|
+
/** Maps bridge.connectors to ExternalConnectorProps[]. Used by EthereumBridgeStrategy and useExternalConnectors. */
|
|
7
|
+
function mapBridgeConnectorsToWalletProps(bridge, options = {}) {
|
|
8
|
+
const { walletConnectName } = options;
|
|
9
|
+
const wallets = bridge.connectors.map((connector) => {
|
|
10
|
+
var _a, _b, _c, _d;
|
|
11
|
+
let walletId = Object.keys(walletConfigs).find((id) => id
|
|
12
|
+
.split(',')
|
|
13
|
+
.map((i) => i.trim())
|
|
14
|
+
.indexOf(connector.id) !== -1);
|
|
15
|
+
// Fallback: when connector.id is 'injected', match by name for known wallets (e.g. MetaMask)
|
|
16
|
+
if (!walletId && connector.id === 'injected' && connector.name) {
|
|
17
|
+
const nameLower = connector.name.toLowerCase();
|
|
18
|
+
if (nameLower.includes('metamask')) {
|
|
19
|
+
walletId =
|
|
20
|
+
(_a = Object.keys(walletConfigs).find((k) => { var _a; return ((_a = walletConfigs[k].name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'metamask'; })) !== null && _a !== void 0 ? _a : undefined;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const c = {
|
|
24
|
+
id: connector.id,
|
|
25
|
+
name: (_d = (_c = (_b = connector.name) !== null && _b !== void 0 ? _b : connector.id) !== null && _c !== void 0 ? _c : connector.type) !== null && _d !== void 0 ? _d : '',
|
|
26
|
+
icon: connector.icon
|
|
27
|
+
? createElement('img', { src: connector.icon, alt: connector.name, width: '100%', height: '100%' })
|
|
28
|
+
: createElement('span', {
|
|
29
|
+
style: {
|
|
30
|
+
width: '100%',
|
|
31
|
+
height: '100%',
|
|
32
|
+
background: 'var(--ck-body-background)',
|
|
33
|
+
borderRadius: 4,
|
|
34
|
+
},
|
|
35
|
+
}),
|
|
36
|
+
connector,
|
|
37
|
+
iconShape: 'squircle',
|
|
38
|
+
isInstalled: connector.type === 'mock' || connector.type === 'injected' || isCoinbaseWalletConnector(connector.id),
|
|
39
|
+
};
|
|
40
|
+
if (walletId) {
|
|
41
|
+
const wallet = walletConfigs[walletId];
|
|
42
|
+
return {
|
|
43
|
+
...c,
|
|
44
|
+
iconConnector: connector.icon
|
|
45
|
+
? createElement('img', { src: connector.icon, alt: connector.name, width: '100%', height: '100%' })
|
|
46
|
+
: undefined,
|
|
47
|
+
...wallet,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return c;
|
|
51
|
+
});
|
|
52
|
+
return wallets
|
|
53
|
+
.filter((wallet, index, self) => self.findIndex((w) => w.id === wallet.id) === index)
|
|
54
|
+
.map((wallet) => {
|
|
55
|
+
if (wallet.id === 'walletConnect') {
|
|
56
|
+
return {
|
|
57
|
+
...wallet,
|
|
58
|
+
name: walletConnectName || wallet.name,
|
|
59
|
+
shortName: walletConnectName || wallet.shortName,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
return wallet;
|
|
63
|
+
})
|
|
64
|
+
.sort((a, b) => {
|
|
65
|
+
const AisInstalled = a.isInstalled && isInjectedConnector(a.connector.type);
|
|
66
|
+
const BisInstalled = b.isInstalled && isInjectedConnector(b.connector.type);
|
|
67
|
+
if (AisInstalled && !BisInstalled)
|
|
68
|
+
return -1;
|
|
69
|
+
if (!AisInstalled && BisInstalled)
|
|
70
|
+
return 1;
|
|
71
|
+
return 0;
|
|
72
|
+
})
|
|
73
|
+
.sort((a, b) => {
|
|
74
|
+
if (a.id === 'walletConnect')
|
|
75
|
+
return 1;
|
|
76
|
+
if (b.id === 'walletConnect')
|
|
77
|
+
return -1;
|
|
78
|
+
return 0;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/** Returns the list of external connectors (MetaMask, WalletConnect, etc.) for the connect UI. Uses strategy when available; returns [] when embedded-only (no bridge). */
|
|
82
|
+
function useExternalConnectors() {
|
|
83
|
+
const strategy = useConnectionStrategy();
|
|
84
|
+
if (!strategy)
|
|
85
|
+
return [];
|
|
86
|
+
return strategy.getConnectors();
|
|
87
|
+
}
|
|
88
|
+
/** Single connector by id. */
|
|
89
|
+
const useExternalConnector = (id) => {
|
|
90
|
+
const connectors = useExternalConnectors();
|
|
91
|
+
const connector = connectors.find((c) => c.id === id);
|
|
92
|
+
if (!connector)
|
|
93
|
+
return null;
|
|
94
|
+
return connector;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export { mapBridgeConnectorsToWalletProps, useExternalConnector, useExternalConnectors };
|
|
98
|
+
//# sourceMappingURL=useExternalConnectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExternalConnectors.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import Logos from '../assets/logos.js';
|
|
3
|
+
|
|
4
|
+
// Organised in alphabetical order by key
|
|
5
|
+
const walletConfigs = {
|
|
6
|
+
mock: {
|
|
7
|
+
icon: jsx(Logos.Mock, {}),
|
|
8
|
+
},
|
|
9
|
+
argent: {
|
|
10
|
+
name: 'Argent',
|
|
11
|
+
icon: jsx(Logos.Argent, {}),
|
|
12
|
+
downloadUrls: {
|
|
13
|
+
download: 'https://connect.family.co/v0/download/argent',
|
|
14
|
+
android: 'https://play.google.com/store/apps/details?id=im.argent.contractwalletclient',
|
|
15
|
+
ios: 'https://apps.apple.com/app/argent/id1358741926',
|
|
16
|
+
},
|
|
17
|
+
getWalletConnectDeeplink: (uri) => {
|
|
18
|
+
return `https://argent.link/app/wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
'coinbaseWallet, coinbaseWalletSDK': {
|
|
22
|
+
name: 'Coinbase Wallet',
|
|
23
|
+
shortName: 'Coinbase',
|
|
24
|
+
icon: jsx(Logos.Coinbase, { background: true }),
|
|
25
|
+
iconShape: 'squircle',
|
|
26
|
+
downloadUrls: {
|
|
27
|
+
download: 'https://connect.family.co/v0/download/coinbasewallet',
|
|
28
|
+
website: 'https://www.coinbase.com/wallet/getting-started-extension',
|
|
29
|
+
android: 'https://play.google.com/store/apps/details?id=org.toshi',
|
|
30
|
+
ios: 'https://apps.apple.com/app/coinbase-wallet-store-crypto/id1278383455',
|
|
31
|
+
chrome: 'https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad',
|
|
32
|
+
},
|
|
33
|
+
getWalletConnectDeeplink: (uri) => {
|
|
34
|
+
return `https://go.cb-w.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
'com.coinbase.wallet': {
|
|
38
|
+
name: 'Coinbase Wallet',
|
|
39
|
+
shortName: 'Coinbase',
|
|
40
|
+
icon: jsx(Logos.Coinbase, { background: true }),
|
|
41
|
+
iconShape: 'circle',
|
|
42
|
+
downloadUrls: {
|
|
43
|
+
download: 'https://connect.family.co/v0/download/coinbasewallet',
|
|
44
|
+
website: 'https://www.coinbase.com/wallet/getting-started-extension',
|
|
45
|
+
android: 'https://play.google.com/store/apps/details?id=org.toshi',
|
|
46
|
+
ios: 'https://apps.apple.com/app/coinbase-wallet-store-crypto/id1278383455',
|
|
47
|
+
chrome: 'https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad',
|
|
48
|
+
},
|
|
49
|
+
getWalletConnectDeeplink: (uri) => {
|
|
50
|
+
return `https://go.cb-w.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
'com.crypto.wallet': {
|
|
54
|
+
name: 'Crypto.com',
|
|
55
|
+
shortName: 'Crypto',
|
|
56
|
+
},
|
|
57
|
+
dawn: {
|
|
58
|
+
name: 'Dawn Wallet',
|
|
59
|
+
shortName: 'Dawn',
|
|
60
|
+
downloadUrls: {
|
|
61
|
+
download: 'https://apps.apple.com/us/app/dawn-ethereum-wallet/id1673143782',
|
|
62
|
+
website: 'https://www.dawnwallet.xyz/',
|
|
63
|
+
ios: 'https://apps.apple.com/us/app/dawn-ethereum-wallet/id1673143782',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
'co.family.wallet': {
|
|
67
|
+
name: 'Family',
|
|
68
|
+
shortName: 'Family',
|
|
69
|
+
icon: jsx(Logos.Family, {}),
|
|
70
|
+
iconShape: 'squircle',
|
|
71
|
+
downloadUrls: {
|
|
72
|
+
download: 'https://connect.family.co/v0/download/family',
|
|
73
|
+
website: 'https://family.co',
|
|
74
|
+
ios: 'https://family.co/download',
|
|
75
|
+
},
|
|
76
|
+
getWalletConnectDeeplink: (uri) => {
|
|
77
|
+
return `familywallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
familyAccountsProvider: {
|
|
81
|
+
name: 'Family',
|
|
82
|
+
shortName: 'Family',
|
|
83
|
+
icon: jsx(Logos.FamilyAccount, {}),
|
|
84
|
+
iconConnector: jsx(Logos.FamilyAccount, {}),
|
|
85
|
+
iconShape: 'squircle',
|
|
86
|
+
},
|
|
87
|
+
frame: {
|
|
88
|
+
name: 'Frame',
|
|
89
|
+
icon: jsx(Logos.Frame, {}),
|
|
90
|
+
iconShouldShrink: true,
|
|
91
|
+
downloadUrls: {
|
|
92
|
+
download: 'https://connect.family.co/v0/download/frame',
|
|
93
|
+
website: 'https://frame.sh',
|
|
94
|
+
chrome: 'https://chrome.google.com/webstore/detail/frame-companion/ldcoohedfbjoobcadoglnnmmfbdlmmhf',
|
|
95
|
+
firefox: 'https://addons.mozilla.org/en-US/firefox/addon/frame-extension',
|
|
96
|
+
brave: 'https://chrome.google.com/webstore/detail/frame-companion/ldcoohedfbjoobcadoglnnmmfbdlmmhf',
|
|
97
|
+
},
|
|
98
|
+
getWalletConnectDeeplink: (uri) => uri,
|
|
99
|
+
},
|
|
100
|
+
frontier: {
|
|
101
|
+
name: 'Frontier Wallet',
|
|
102
|
+
shortName: 'Frontier',
|
|
103
|
+
icon: jsx(Logos.Frontier, {}),
|
|
104
|
+
downloadUrls: {
|
|
105
|
+
download: 'https://connect.family.co/v0/download/frontier',
|
|
106
|
+
ios: 'https://apps.apple.com/app/frontier-crypto-defi-wallet/id1482380988',
|
|
107
|
+
android: 'https://play.google.com/store/apps/details?id=com.frontierwallet',
|
|
108
|
+
website: 'https://frontier.xyz/',
|
|
109
|
+
chrome: 'https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd',
|
|
110
|
+
},
|
|
111
|
+
getWalletConnectDeeplink: (uri) => {
|
|
112
|
+
return `frontier://wc?uri=${encodeURIComponent(uri)}`;
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
injected: {
|
|
116
|
+
name: 'Browser Wallet',
|
|
117
|
+
shortName: 'Browser',
|
|
118
|
+
icon: jsx(Logos.Injected, {}),
|
|
119
|
+
},
|
|
120
|
+
'metaMask, MetaMask, metaMask-io, io.metamask, io.metamask.mobile, metaMaskSDK': {
|
|
121
|
+
name: 'MetaMask',
|
|
122
|
+
icon: jsx(Logos.MetaMask, {}),
|
|
123
|
+
iconConnector: jsx(Logos.MetaMask, {}),
|
|
124
|
+
iconShouldShrink: true,
|
|
125
|
+
downloadUrls: {
|
|
126
|
+
download: 'https://connect.family.co/v0/download/metamask',
|
|
127
|
+
website: 'https://metamask.io/download/',
|
|
128
|
+
android: 'https://play.google.com/store/apps/details?id=io.metamask',
|
|
129
|
+
ios: 'https://apps.apple.com/app/metamask/id1438144202',
|
|
130
|
+
chrome: 'https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn',
|
|
131
|
+
firefox: 'https://addons.mozilla.org/firefox/addon/ether-metamask/',
|
|
132
|
+
brave: 'https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn',
|
|
133
|
+
edge: 'https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm',
|
|
134
|
+
},
|
|
135
|
+
getWalletConnectDeeplink: (uri) => {
|
|
136
|
+
return `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
'app.phantom': {
|
|
140
|
+
name: 'Phantom',
|
|
141
|
+
iconShape: 'squircle',
|
|
142
|
+
},
|
|
143
|
+
'me.rainbow': {
|
|
144
|
+
name: 'Rainbow Wallet',
|
|
145
|
+
shortName: 'Rainbow',
|
|
146
|
+
icon: jsx(Logos.Rainbow, {}),
|
|
147
|
+
iconShape: 'squircle',
|
|
148
|
+
downloadUrls: {
|
|
149
|
+
download: 'https://connect.family.co/v0/download/rainbow',
|
|
150
|
+
website: 'https://rainbow.me/?utm_source=connectkit',
|
|
151
|
+
android: 'https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Dconnectkit&utm_source=connectkit',
|
|
152
|
+
ios: 'https://apps.apple.com/app/rainbow-ethereum-wallet/id1457119021?pt=119997837&ct=connectkit&mt=8',
|
|
153
|
+
chrome: 'https://rainbow.me/extension?utm_source=connectkit',
|
|
154
|
+
edge: 'https://rainbow.me/extension?utm_source=connectkit',
|
|
155
|
+
brave: 'https://rainbow.me/extension?utm_source=connectkit',
|
|
156
|
+
},
|
|
157
|
+
getWalletConnectDeeplink: (uri) => {
|
|
158
|
+
return `https://rnbwapp.com/wc?uri=${encodeURIComponent(uri)}&connector=connectkit`;
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
'io.rabby': {
|
|
162
|
+
name: 'Rabby Wallet',
|
|
163
|
+
shortName: 'Rabby',
|
|
164
|
+
downloadUrls: {
|
|
165
|
+
website: 'https://rabby.io',
|
|
166
|
+
chrome: 'https://chrome.google.com/webstore/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch',
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
safe: {
|
|
170
|
+
name: 'Safe',
|
|
171
|
+
icon: jsx(Logos.Safe, {}),
|
|
172
|
+
downloadUrls: {
|
|
173
|
+
download: 'https://connect.family.co/v0/download/safe',
|
|
174
|
+
website: 'https://safe.global/',
|
|
175
|
+
ios: 'https://apps.apple.com/app/id1515759131',
|
|
176
|
+
android: 'https://play.google.com/store/apps/details?id=io.gnosis.safe',
|
|
177
|
+
},
|
|
178
|
+
getWalletConnectDeeplink: (uri) => {
|
|
179
|
+
return `https://gnosis-safe.io/wc?uri=${encodeURIComponent(uri)}`;
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
'xyz.talisman': {
|
|
183
|
+
name: 'Talisman',
|
|
184
|
+
shortName: 'Talisman',
|
|
185
|
+
iconShape: 'squircle',
|
|
186
|
+
downloadUrls: {
|
|
187
|
+
download: 'https://talisman.xyz/download',
|
|
188
|
+
website: 'https://talisman.xyz',
|
|
189
|
+
chrome: 'https://chrome.google.com/webstore/detail/talisman-polkadot-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld',
|
|
190
|
+
firefox: 'https://addons.mozilla.org/en-US/firefox/addon/talisman-wallet-extension/',
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
'com.trustwallet.app': {
|
|
194
|
+
name: 'Trust Wallet',
|
|
195
|
+
shortName: 'Trust',
|
|
196
|
+
icon: jsx(Logos.Trust, {}),
|
|
197
|
+
iconShouldShrink: true,
|
|
198
|
+
downloadUrls: {
|
|
199
|
+
download: 'https://connect.family.co/v0/download/trust',
|
|
200
|
+
android: 'https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp',
|
|
201
|
+
ios: 'https://apps.apple.com/app/trust-crypto-bitcoin-wallet/id1288339409',
|
|
202
|
+
},
|
|
203
|
+
getWalletConnectDeeplink(uri) {
|
|
204
|
+
return `https://link.trustwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
infinityWallet: {
|
|
208
|
+
name: 'Infinity Wallet',
|
|
209
|
+
icon: jsx(Logos.InfinityWallet, {}),
|
|
210
|
+
downloadUrls: {
|
|
211
|
+
download: 'https://connect.family.co/v0/download/infinityWallet',
|
|
212
|
+
website: 'https://infinitywallet.io/download',
|
|
213
|
+
chrome: 'https://infinitywallet.io/download',
|
|
214
|
+
firefox: 'https://infinitywallet.io/download',
|
|
215
|
+
brave: 'https://infinitywallet.io/download',
|
|
216
|
+
edge: 'https://infinitywallet.io/download',
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
imToken: {
|
|
220
|
+
name: 'imToken',
|
|
221
|
+
icon: jsx(Logos.ImToken, {}),
|
|
222
|
+
downloadUrls: {
|
|
223
|
+
//website: 'https://support.token.im/hc/en-us/categories/360000925393',
|
|
224
|
+
download: 'https://connect.family.co/v0/download/imToken',
|
|
225
|
+
android: 'https://play.google.com/store/apps/details?id=im.token.app',
|
|
226
|
+
ios: 'https://itunes.apple.com/us/app/imtoken2/id1384798940',
|
|
227
|
+
},
|
|
228
|
+
getWalletConnectDeeplink: (uri) => {
|
|
229
|
+
return `imtokenv2://wc?uri=${encodeURIComponent(uri)}`;
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
unstoppable: {
|
|
233
|
+
name: 'Unstoppable',
|
|
234
|
+
icon: jsx(Logos.Unstoppable, {}),
|
|
235
|
+
downloadUrls: {
|
|
236
|
+
download: 'https://connect.family.co/v0/download/unstoppable',
|
|
237
|
+
ios: 'https://apps.apple.com/app/bank-bitcoin-wallet/id1447619907',
|
|
238
|
+
android: 'https://play.google.com/store/apps/details?id=io.horizontalsystems.bankwallet',
|
|
239
|
+
},
|
|
240
|
+
getWalletConnectDeeplink: (uri) => {
|
|
241
|
+
return `https://unstoppable.money/wc?uri=${encodeURIComponent(uri)}`;
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
onto: {
|
|
245
|
+
name: 'ONTO',
|
|
246
|
+
icon: jsx(Logos.ONTO, {}),
|
|
247
|
+
downloadUrls: {
|
|
248
|
+
download: 'https://connect.family.co/v0/download/onto',
|
|
249
|
+
ios: 'https://apps.apple.com/app/onto-an-ontology-dapp/id1436009823',
|
|
250
|
+
android: 'https://play.google.com/store/apps/details?id=com.github.ontio.onto',
|
|
251
|
+
website: 'https://onto.app/en/download/',
|
|
252
|
+
},
|
|
253
|
+
getWalletConnectDeeplink: (uri) => {
|
|
254
|
+
return `https://onto.app/wc?uri=${encodeURIComponent(uri)}`;
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
steak: {
|
|
258
|
+
name: 'Steak',
|
|
259
|
+
icon: jsx(Logos.Steak, {}),
|
|
260
|
+
downloadUrls: {
|
|
261
|
+
download: 'https://connect.family.co/v0/download/steak',
|
|
262
|
+
android: 'https://play.google.com/store/apps/details?id=fi.steakwallet.app',
|
|
263
|
+
ios: 'https://apps.apple.com/app/steakwallet/id1569375204',
|
|
264
|
+
website: 'https://steakwallet.fi/download',
|
|
265
|
+
},
|
|
266
|
+
getWalletConnectDeeplink: (uri) => {
|
|
267
|
+
return `https://links.steakwallet.fi/wc?uri=${encodeURIComponent(uri)}`;
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
ledger: {
|
|
271
|
+
name: 'Ledger Live',
|
|
272
|
+
shortName: 'Ledger',
|
|
273
|
+
icon: jsx(Logos.Ledger, {}),
|
|
274
|
+
downloadUrls: {
|
|
275
|
+
download: 'https://connect.family.co/v0/download/ledger',
|
|
276
|
+
website: 'https://www.ledger.com/ledger-live/download#download-device-2',
|
|
277
|
+
android: 'https://play.google.com/store/apps/details?id=com.ledger.live',
|
|
278
|
+
ios: 'https://apps.apple.com/app/ledger-live-web3-wallet/id1361671700',
|
|
279
|
+
},
|
|
280
|
+
getWalletConnectDeeplink: (uri) => {
|
|
281
|
+
return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
|
|
282
|
+
},
|
|
283
|
+
shouldDeeplinkDesktop: true,
|
|
284
|
+
},
|
|
285
|
+
zerion: {
|
|
286
|
+
name: 'Zerion',
|
|
287
|
+
icon: jsx(Logos.Zerion, {}),
|
|
288
|
+
downloadUrls: {
|
|
289
|
+
download: 'https://connect.family.co/v0/download/zerion',
|
|
290
|
+
ios: 'https://apps.apple.com/app/apple-store/id1456732565',
|
|
291
|
+
android: 'https://play.google.com/store/apps/details?id=io.zerion.android',
|
|
292
|
+
website: 'https://zerion.io/',
|
|
293
|
+
},
|
|
294
|
+
getWalletConnectDeeplink: (uri) => {
|
|
295
|
+
return `https://app.zerion.io/wc?uri=${encodeURIComponent(uri)}`;
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
slope: {
|
|
299
|
+
name: 'Slope',
|
|
300
|
+
icon: jsx(Logos.Slope, {}),
|
|
301
|
+
downloadUrls: {
|
|
302
|
+
download: 'https://connect.family.co/v0/download/slope',
|
|
303
|
+
ios: 'https://apps.apple.com/app/slope-wallet/id1574624530',
|
|
304
|
+
android: 'https://play.google.com/store/apps/details?id=com.wd.wallet',
|
|
305
|
+
chrome: 'https://chrome.google.com/webstore/detail/slope-wallet/pocmplpaccanhmnllbbkpgfliimjljgo',
|
|
306
|
+
website: 'https://slope.finance/',
|
|
307
|
+
},
|
|
308
|
+
getWalletConnectDeeplink: (uri) => {
|
|
309
|
+
return `https://slope.finance/app/wc?uri=${encodeURIComponent(uri)}`;
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
tokenPocket: {
|
|
313
|
+
name: 'TokenPocket Wallet',
|
|
314
|
+
icon: jsx(Logos.TokenPocket, {}),
|
|
315
|
+
downloadUrls: {
|
|
316
|
+
website: 'https://www.tokenpocket.pro/en/download/app',
|
|
317
|
+
download: 'https://www.tokenpocket.pro/en/download/app',
|
|
318
|
+
android: 'https://play.google.com/store/apps/details?id=vip.mytokenpocket',
|
|
319
|
+
ios: 'https://apps.apple.com/us/app/tp-global-wallet/id6444625622',
|
|
320
|
+
chrome: 'https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii',
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
talisman: {
|
|
324
|
+
name: 'Talisman',
|
|
325
|
+
icon: jsx(Logos.Talisman, {}),
|
|
326
|
+
downloadUrls: {
|
|
327
|
+
download: 'https://talisman.xyz/download',
|
|
328
|
+
website: 'https://talisman.xyz',
|
|
329
|
+
chrome: 'https://chrome.google.com/webstore/detail/talisman-polkadot-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld',
|
|
330
|
+
firefox: 'https://addons.mozilla.org/en-US/firefox/addon/talisman-wallet-extension/',
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
walletConnect: {
|
|
334
|
+
name: 'Other Wallets',
|
|
335
|
+
shortName: 'Other',
|
|
336
|
+
icon: jsx(Logos.WalletConnect, { background: true }),
|
|
337
|
+
iconConnector: jsx(Logos.OtherWallets, {}),
|
|
338
|
+
iconShape: 'square',
|
|
339
|
+
getWalletConnectDeeplink: (uri) => uri,
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
export { walletConfigs };
|
|
344
|
+
//# sourceMappingURL=walletConfigs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletConfigs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|