thirdweb 5.58.5 → 5.59.0-nightly-e2b3484764275560aa899f3f894b767faedaa9a1-20240925000331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/exports/react.js +3 -3
- package/dist/cjs/exports/react.js.map +1 -1
- package/dist/cjs/exports/react.native.js +5 -3
- package/dist/cjs/exports/react.native.js.map +1 -1
- package/dist/cjs/exports/wallets/in-app.js +3 -1
- package/dist/cjs/exports/wallets/in-app.js.map +1 -1
- package/dist/cjs/exports/wallets/in-app.native.js +3 -1
- package/dist/cjs/exports/wallets/in-app.native.js.map +1 -1
- package/dist/cjs/exports/wallets.js +15 -10
- package/dist/cjs/exports/wallets.js.map +1 -1
- package/dist/cjs/exports/wallets.native.js +18 -7
- package/dist/cjs/exports/wallets.native.js.map +1 -1
- package/dist/cjs/react/core/hooks/wallets/{useAdminAccount.js → useAdminWallet.js} +1 -1
- package/dist/cjs/react/core/hooks/wallets/useAdminWallet.js.map +1 -0
- package/dist/cjs/react/{core/hooks/others → native/hooks/wallets}/useProfiles.js +15 -7
- package/dist/cjs/react/native/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ConnectedButton.js +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectedButton.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectedModal.js +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectedModal.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/TokenListScreen.js +1 -1
- package/dist/cjs/react/native/ui/connect/TokenListScreen.js.map +1 -1
- package/dist/cjs/react/web/hooks/wallets/useProfiles.js +45 -0
- package/dist/cjs/react/web/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js +4 -4
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/TOS.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/TOS.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +6 -6
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js +3 -3
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +4 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/WalletAuth.js +5 -4
- package/dist/cjs/react/web/wallets/in-app/WalletAuth.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +10 -10
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +4 -3
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +9 -7
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js +3 -2
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js +7 -7
- package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/types.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js +0 -20
- package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js +0 -39
- package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/auth/index.js +57 -2
- package/dist/cjs/wallets/in-app/native/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/auth/native-auth.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/native-connector.js +61 -19
- package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-message.enclave.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-message.enclave.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-transaction.enclave.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-transaction.enclave.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js +2 -8
- package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js +80 -4
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js +2 -8
- package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/get-auth-token.js +1 -0
- package/dist/cjs/wallets/in-app/web/lib/get-auth-token.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js +2 -8
- package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js +31 -0
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/esm/exports/react.js +2 -2
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/react.native.js +2 -1
- package/dist/esm/exports/react.native.js.map +1 -1
- package/dist/esm/exports/wallets/in-app.js +1 -1
- package/dist/esm/exports/wallets/in-app.js.map +1 -1
- package/dist/esm/exports/wallets/in-app.native.js +1 -1
- package/dist/esm/exports/wallets/in-app.native.js.map +1 -1
- package/dist/esm/exports/wallets.js +1 -1
- package/dist/esm/exports/wallets.js.map +1 -1
- package/dist/esm/exports/wallets.native.js +4 -0
- package/dist/esm/exports/wallets.native.js.map +1 -1
- package/dist/esm/react/core/hooks/wallets/{useAdminAccount.js → useAdminWallet.js} +1 -1
- package/dist/esm/react/core/hooks/wallets/useAdminWallet.js.map +1 -0
- package/dist/esm/react/{core/hooks/others → native/hooks/wallets}/useProfiles.js +14 -6
- package/dist/esm/react/native/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ConnectedButton.js +1 -1
- package/dist/esm/react/native/ui/connect/ConnectedButton.js.map +1 -1
- package/dist/esm/react/native/ui/connect/ConnectedModal.js +1 -1
- package/dist/esm/react/native/ui/connect/ConnectedModal.js.map +1 -1
- package/dist/esm/react/native/ui/connect/TokenListScreen.js +1 -1
- package/dist/esm/react/native/ui/connect/TokenListScreen.js.map +1 -1
- package/dist/esm/react/web/hooks/wallets/useProfiles.js +42 -0
- package/dist/esm/react/web/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/Details.js +3 -3
- package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/TOS.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/Modal/TOS.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +6 -6
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js +3 -3
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +4 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/WalletAuth.js +3 -2
- package/dist/esm/react/web/wallets/in-app/WalletAuth.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +2 -2
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +5 -4
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +5 -3
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/SocialLogin.js +3 -2
- package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/linkAccount.js +7 -7
- package/dist/esm/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/types.js.map +1 -1
- package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js +0 -20
- package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
- package/dist/esm/wallets/in-app/core/wallet/in-app-core.js +0 -39
- package/dist/esm/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
- package/dist/esm/wallets/in-app/native/auth/index.js +55 -2
- package/dist/esm/wallets/in-app/native/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/native/auth/native-auth.js.map +1 -1
- package/dist/esm/wallets/in-app/native/native-connector.js +61 -19
- package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-message.enclave.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-message.enclave.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-transaction.enclave.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-transaction.enclave.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js +2 -8
- package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/index.js +77 -4
- package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js +2 -8
- package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/get-auth-token.js +1 -0
- package/dist/esm/wallets/in-app/web/lib/get-auth-token.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js +2 -8
- package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/web-connector.js +31 -0
- package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/types/exports/react.d.ts +2 -2
- package/dist/types/exports/react.d.ts.map +1 -1
- package/dist/types/exports/react.native.d.ts +2 -1
- package/dist/types/exports/react.native.d.ts.map +1 -1
- package/dist/types/exports/wallets/in-app.d.ts +1 -1
- package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
- package/dist/types/exports/wallets/in-app.native.d.ts +1 -1
- package/dist/types/exports/wallets/in-app.native.d.ts.map +1 -1
- package/dist/types/exports/wallets.d.ts +1 -1
- package/dist/types/exports/wallets.d.ts.map +1 -1
- package/dist/types/exports/wallets.native.d.ts +2 -0
- package/dist/types/exports/wallets.native.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWallet.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWallet.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWalletConnectionStatus.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWalletConnectionStatus.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/{useAdminAccount.d.ts → useAdminWallet.d.ts} +2 -2
- package/dist/types/react/core/hooks/wallets/useAdminWallet.d.ts.map +1 -0
- package/dist/types/react/core/hooks/wallets/useConnectedWallets.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useConnectedWallets.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useDisconnect.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWallet.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWallet.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWalletConnectionStatus.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWalletConnectionStatus.d.ts.map +1 -1
- package/dist/types/react/core/providers/connection-manager.d.ts +27 -27
- package/dist/types/react/{core/hooks/others → native/hooks/wallets}/useProfiles.d.ts +8 -3
- package/dist/types/react/native/hooks/wallets/useProfiles.d.ts.map +1 -0
- package/dist/types/react/web/hooks/wallets/useProfiles.d.ts +28 -0
- package/dist/types/react/web/hooks/wallets/useProfiles.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/TOS.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/MediaRenderer/ModelViewer.d.ts +1 -1
- package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +1 -1
- package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/oauthSignIn.d.ts +1 -2
- package/dist/types/react/web/wallets/shared/oauthSignIn.d.ts.map +1 -1
- package/dist/types/utils/fetch.d.ts +1 -1
- package/dist/types/utils/fetch.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/guest.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts +6 -3
- package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/passkeys.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/siwe.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/types.d.ts +4 -3
- package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/interfaces/connector.d.ts +3 -1
- package/dist/types/wallets/in-app/core/interfaces/connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/ecosystem-core.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts +1 -1
- package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/types.d.ts +5 -0
- package/dist/types/wallets/in-app/core/wallet/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/auth/index.d.ts +48 -2
- package/dist/types/wallets/in-app/native/auth/index.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/auth/native-auth.d.ts +1 -1
- package/dist/types/wallets/in-app/native/auth/native-auth.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/native-connector.d.ts +8 -2
- package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/generate-wallet.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/generate-wallet.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-message.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-message.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-transaction.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-transaction.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-typed-data.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-typed-data.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts +2 -1
- package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts +5 -3
- package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +68 -8
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/enclave-wallet.d.ts +8 -7
- package/dist/types/wallets/in-app/web/lib/enclave-wallet.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/get-auth-token.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/get-auth-token.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/iframe-wallet.d.ts +5 -3
- package/dist/types/wallets/in-app/web/lib/iframe-wallet.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/web-connector.d.ts +9 -8
- package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/types.d.ts +1 -5
- package/dist/types/wallets/in-app/web/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.d.ts +1 -1
- package/dist/types/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/exports/react.native.ts +2 -1
- package/src/exports/react.ts +2 -2
- package/src/exports/wallets/in-app.native.ts +2 -0
- package/src/exports/wallets/in-app.ts +2 -0
- package/src/exports/wallets.native.ts +12 -0
- package/src/exports/wallets.ts +6 -1
- package/src/react/{core/hooks/others → native/hooks/wallets}/useProfiles.ts +19 -8
- package/src/react/native/ui/connect/ConnectedButton.tsx +1 -1
- package/src/react/native/ui/connect/ConnectedModal.tsx +1 -1
- package/src/react/native/ui/connect/TokenListScreen.tsx +1 -1
- package/src/react/web/hooks/wallets/useProfiles.ts +48 -0
- package/src/react/web/ui/ConnectWallet/Details.tsx +4 -4
- package/src/react/web/ui/ConnectWallet/Modal/TOS.tsx +3 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +4 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.tsx +2 -3
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +10 -10
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.tsx +3 -4
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/LinkProfileScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx +4 -2
- package/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +1 -1
- package/src/react/web/ui/prebuilt/NFT/NFT.test.tsx +2 -2
- package/src/react/web/wallets/in-app/WalletAuth.tsx +3 -2
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +2 -2
- package/src/react/web/wallets/shared/OTPLoginUI.tsx +8 -4
- package/src/react/web/wallets/shared/PassKeyLogin.tsx +6 -3
- package/src/react/web/wallets/shared/SocialLogin.tsx +3 -2
- package/src/react/web/wallets/shared/oauthSignIn.ts +1 -1
- package/src/utils/fetch.test.ts +1 -1
- package/src/utils/fetch.ts +1 -1
- package/src/version.ts +1 -1
- package/src/wallets/in-app/core/authentication/getLoginPath.ts +1 -1
- package/src/wallets/in-app/core/authentication/guest.ts +1 -1
- package/src/wallets/in-app/core/authentication/linkAccount.ts +15 -11
- package/src/wallets/in-app/core/authentication/passkeys.ts +1 -1
- package/src/wallets/in-app/core/authentication/siwe.ts +1 -1
- package/src/wallets/in-app/core/authentication/types.ts +10 -8
- package/src/wallets/in-app/core/interfaces/connector.ts +4 -0
- package/src/wallets/in-app/core/wallet/ecosystem-core.ts +1 -40
- package/src/wallets/in-app/core/wallet/in-app-core.ts +1 -58
- package/src/wallets/in-app/core/wallet/types.ts +6 -0
- package/src/wallets/in-app/native/auth/index.ts +62 -6
- package/src/wallets/in-app/native/auth/native-auth.ts +1 -1
- package/src/wallets/in-app/native/native-connector.ts +53 -27
- package/src/wallets/in-app/web/lib/actions/generate-wallet.enclave.ts +1 -1
- package/src/wallets/in-app/web/lib/actions/get-enclave-user-status.ts +1 -1
- package/src/wallets/in-app/web/lib/actions/sign-message.enclave.ts +2 -2
- package/src/wallets/in-app/web/lib/actions/sign-transaction.enclave.ts +2 -2
- package/src/wallets/in-app/web/lib/actions/sign-typed-data.enclave.ts +2 -2
- package/src/wallets/in-app/web/lib/auth/abstract-login.ts +2 -1
- package/src/wallets/in-app/web/lib/auth/iframe-auth.ts +6 -8
- package/src/wallets/in-app/web/lib/auth/index.ts +89 -19
- package/src/wallets/in-app/web/lib/auth/oauth.ts +1 -1
- package/src/wallets/in-app/web/lib/auth/otp.ts +1 -1
- package/src/wallets/in-app/web/lib/enclave-wallet.ts +9 -13
- package/src/wallets/in-app/web/lib/get-auth-token.ts +2 -1
- package/src/wallets/in-app/web/lib/iframe-wallet.ts +5 -9
- package/src/wallets/in-app/web/lib/web-connector.ts +37 -4
- package/src/wallets/in-app/web/types.ts +1 -6
- package/src/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.ts +1 -1
- package/dist/cjs/react/core/hooks/others/useProfiles.js.map +0 -1
- package/dist/cjs/react/core/hooks/wallets/useAdminAccount.js.map +0 -1
- package/dist/cjs/wallets/in-app/core/wallet/profiles.js +0 -61
- package/dist/cjs/wallets/in-app/core/wallet/profiles.js.map +0 -1
- package/dist/esm/react/core/hooks/others/useProfiles.js.map +0 -1
- package/dist/esm/react/core/hooks/wallets/useAdminAccount.js.map +0 -1
- package/dist/esm/wallets/in-app/core/wallet/profiles.js +0 -57
- package/dist/esm/wallets/in-app/core/wallet/profiles.js.map +0 -1
- package/dist/types/react/core/hooks/others/useProfiles.d.ts.map +0 -1
- package/dist/types/react/core/hooks/wallets/useAdminAccount.d.ts.map +0 -1
- package/dist/types/wallets/in-app/core/wallet/profiles.d.ts +0 -49
- package/dist/types/wallets/in-app/core/wallet/profiles.d.ts.map +0 -1
- package/src/wallets/in-app/core/wallet/profiles.ts +0 -76
- /package/src/react/core/hooks/wallets/{useAdminAccount.ts → useAdminWallet.ts} +0 -0
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
2
|
import type { Prettify } from "../../../../utils/type-utils.js";
|
3
3
|
import type { Account } from "../../../interfaces/wallet.js";
|
4
|
-
import { ClientScopedStorage } from "../../core/authentication/client-scoped-storage.js";
|
4
|
+
import type { ClientScopedStorage } from "../../core/authentication/client-scoped-storage.js";
|
5
5
|
import { type GetUser, type WalletAddressObjectType } from "../../core/authentication/types.js";
|
6
|
-
import type {
|
6
|
+
import type { Ecosystem } from "../../core/wallet/types.js";
|
7
|
+
import type { ClientIdWithQuerierType } from "../types.js";
|
7
8
|
import type { InAppWalletIframeCommunicator } from "../utils/iFrameCommunication/InAppWalletIframeCommunicator.js";
|
8
9
|
import type { IWebWallet, PostWalletSetup } from "./web-wallet.js";
|
9
10
|
type WalletManagementTypes = {
|
@@ -27,8 +28,9 @@ export declare class IFrameWallet implements IWebWallet {
|
|
27
28
|
* Not meant to be initialized directly. Call {@link initializeUser} to get an instance
|
28
29
|
* @internal
|
29
30
|
*/
|
30
|
-
constructor({ client, ecosystem, querier, }: Prettify<ClientIdWithQuerierType & {
|
31
|
+
constructor({ client, ecosystem, querier, localStorage, }: Prettify<ClientIdWithQuerierType & {
|
31
32
|
ecosystem?: Ecosystem;
|
33
|
+
localStorage: ClientScopedStorage;
|
32
34
|
}>);
|
33
35
|
/**
|
34
36
|
* Used to set-up the user device in the case that they are using incognito
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"iframe-wallet.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/web/lib/iframe-wallet.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"iframe-wallet.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/web/lib/iframe-wallet.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EACV,OAAO,EAER,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,OAAO,EACL,KAAK,OAAO,EAGZ,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EACV,uBAAuB,EAKxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+DAA+D,CAAC;AACnH,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEnE,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,SAAS,CAAC;IACxB,cAAc,EAAE,SAAS,CAAC;IAC1B,aAAa,EAAE,SAAS,CAAC;CAC1B,CAAC;AACF,KAAK,uBAAuB,GAAG;IAC7B,cAAc,EAAE,SAAS,CAAC;IAC1B,gBAAgB,EAAE,SAAS,CAAC;CAC7B,CAAC;AA2BF;;GAEG;AACH,qBAAa,YAAa,YAAW,UAAU;IACtC,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IAC7B,SAAS,CAAC,oBAAoB,EAAE,6BAA6B,CAC3D,qBAAqB,GAAG,uBAAuB,CAChD,CAAC;IACF,SAAS,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAE5C;;;OAGG;gBACS,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,YAAY,GACb,EAAE,QAAQ,CACT,uBAAuB,GAAG;QACxB,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,YAAY,EAAE,mBAAmB,CAAC;KACnC,CACF;IAOD;;;;OAIG;IACG,eAAe,CACnB,KAAK,EAAE,eAAe,GACrB,OAAO,CAAC,uBAAuB,CAAC;IAanC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACG,mBAAmB,IAAI,OAAO,CAAC,OAAO,CAAC;IA6B7C;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;CAsIrC"}
|
@@ -1,18 +1,17 @@
|
|
1
|
-
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
1
|
import type { SocialAuthOption } from "../../../../wallets/types.js";
|
3
2
|
import type { Account } from "../../../interfaces/wallet.js";
|
4
|
-
import { type AuthLoginReturnType, type AuthStoredTokenWithCookieReturnType, type GetUser, type LogoutReturnType, type MultiStepAuthArgsType, type MultiStepAuthProviderType, type SingleStepAuthArgsType } from "../../core/authentication/types.js";
|
3
|
+
import { type AuthArgsType, type AuthLoginReturnType, type AuthStoredTokenWithCookieReturnType, type GetUser, type LogoutReturnType, type MultiStepAuthArgsType, type MultiStepAuthProviderType, type SingleStepAuthArgsType } from "../../core/authentication/types.js";
|
5
4
|
import type { InAppConnector } from "../../core/interfaces/connector.js";
|
6
|
-
import type {
|
7
|
-
import {
|
8
|
-
import { Auth, type AuthQuerierTypes } from "./auth/iframe-auth.js";
|
5
|
+
import type { InAppWalletConstructorType } from "../types.js";
|
6
|
+
import { Auth } from "./auth/iframe-auth.js";
|
9
7
|
/**
|
10
8
|
* @internal
|
11
9
|
*/
|
12
10
|
export declare class InAppWebConnector implements InAppConnector {
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
private client;
|
12
|
+
private ecosystem?;
|
13
|
+
private querier;
|
14
|
+
private localStorage;
|
16
15
|
private wallet?;
|
17
16
|
/**
|
18
17
|
* Used to manage the Auth state of the user.
|
@@ -65,5 +64,7 @@ export declare class InAppWebConnector implements InAppConnector {
|
|
65
64
|
connect(args: MultiStepAuthArgsType | SingleStepAuthArgsType): Promise<AuthLoginReturnType>;
|
66
65
|
logout(): Promise<LogoutReturnType>;
|
67
66
|
private passkeyAuth;
|
67
|
+
linkProfile(args: AuthArgsType): Promise<import("../../core/authentication/types.js").Profile[]>;
|
68
|
+
getProfiles(): Promise<import("../../core/authentication/types.js").Profile[]>;
|
68
69
|
}
|
69
70
|
//# sourceMappingURL=web-connector.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"web-connector.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/web/lib/web-connector.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"web-connector.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/web/lib/web-connector.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAY7D,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACxC,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAE5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAyB,MAAM,uBAAuB,CAAC;AAOpE;;GAEG;AACH,qBAAa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,SAAS,CAAC,CAAY;IAC9B,OAAO,CAAC,OAAO,CAAkD;IACjE,OAAO,CAAC,YAAY,CAAsB;IAE1C,OAAO,CAAC,MAAM,CAAC,CAA+B;IAC9C;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,CAAC,aAAa,CAAC,CAAS;IAE/B,OAAO,CAAC,qBAAqB;IAO7B;;;;OAIG;gBACS,EACV,MAAM,EACN,aAAa,EACb,SAAS,EACT,aAAa,GACd,EAAE,0BAA0B;IAwFvB,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM;IAwCzC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;IAejC,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAOxB,eAAe,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQrE,wBAAwB,CACtB,QAAQ,EAAE,gBAAgB,EAC1B,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,QAAQ,EACtC,WAAW,CAAC,EAAE,MAAM,GACnB,IAAI;IAUD,kBAAkB,CAAC,UAAU,EAAE,mCAAmC;IAIxE;;OAEG;IACG,YAAY,CAChB,IAAI,EAAE,qBAAqB,GAAG,sBAAsB,GACnD,OAAO,CAAC,mCAAmC,CAAC;IAwE/C;;OAEG;IACG,OAAO,CACX,IAAI,EAAE,qBAAqB,GAAG,sBAAsB,GACnD,OAAO,CAAC,mBAAmB,CAAC;IAiDzB,MAAM,IAAI,OAAO,CAAC,gBAAgB,CAAC;YAI3B,WAAW;IA+BnB,WAAW,CAAC,IAAI,EAAE,YAAY;IAS9B,WAAW;CAOlB"}
|
@@ -1,11 +1,7 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../client/client.js";
|
2
|
-
import type { EcosystemWalletId } from "../../wallet-types.js";
|
3
2
|
import type { AuthAndWalletRpcReturnType } from "../core/authentication/types.js";
|
3
|
+
import type { Ecosystem } from "../core/wallet/types.js";
|
4
4
|
import type { InAppWalletIframeCommunicator } from "./utils/iFrameCommunication/InAppWalletIframeCommunicator.js";
|
5
|
-
export type Ecosystem = {
|
6
|
-
id: EcosystemWalletId;
|
7
|
-
partnerId?: string;
|
8
|
-
};
|
9
5
|
type ClientIdConstructorType = {
|
10
6
|
/**
|
11
7
|
* the clientId found on the dashboard settings {@link https://thirdweb.com/dashboard/settings}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,8DAA8D,CAAC;AAGlH,KAAK,uBAAuB,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,uBAAuB,GAAG;IACjE;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAEjE;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAAG;IAE9D,OAAO,EAAE,6BAA6B,CAAC,GAAG,CAAC,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACvD,MAAM,MAAM,qBAAqB,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAC9D,MAAM,MAAM,yBAAyB,GAAG;IACtC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InAppWalletIframeCommunicator.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"InAppWalletIframeCommunicator.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,qBAAa,6BAA6B,CAExC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAChC,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;gBACS,EACV,QAAQ,EACR,OAAO,EACP,SAAS,GACV,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,SAAS,CAAC;KACvB;IAgBD;;OAEG;IACY,2BAA2B;;;;;;;;CAgB3C"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "thirdweb",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.59.0-nightly-e2b3484764275560aa899f3f894b767faedaa9a1-20240925000331",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/thirdweb-dev/js.git#main"
|
@@ -319,13 +319,13 @@
|
|
319
319
|
"expo-linking": "6.3.1",
|
320
320
|
"expo-web-browser": "13.0.3",
|
321
321
|
"happy-dom": "^15.7.4",
|
322
|
-
"knip": "^5.30.
|
322
|
+
"knip": "^5.30.5",
|
323
323
|
"prettier": "^3.3.2",
|
324
324
|
"react": "18.3.1",
|
325
325
|
"react-native": "0.75.3",
|
326
326
|
"react-native-aes-gcm-crypto": "0.2.2",
|
327
327
|
"react-native-passkey": "3.0.0-beta2",
|
328
|
-
"react-native-quick-crypto": "0.7.
|
328
|
+
"react-native-quick-crypto": "0.7.5",
|
329
329
|
"react-native-svg": "15.7.1",
|
330
330
|
"rimraf": "6.0.1",
|
331
331
|
"sharp": "^0.33.5",
|
@@ -341,7 +341,7 @@
|
|
341
341
|
"bench": "vitest -c ./test/vitest.config.ts bench",
|
342
342
|
"format": "biome format ./src --write",
|
343
343
|
"lint": "knip && biome check ./src && tsc --project ./tsconfig.build.json --module esnext --noEmit",
|
344
|
-
"fix": "biome check ./src --fix
|
344
|
+
"fix": "biome check ./src --fix",
|
345
345
|
"knip": "knip",
|
346
346
|
"build:generate": "bun scripts/generate/generate.ts",
|
347
347
|
"build:generate-wallets": "bun scripts/wallets/generate.ts",
|
@@ -9,7 +9,7 @@ export type {
|
|
9
9
|
|
10
10
|
// wallet hooks
|
11
11
|
export { useActiveWallet } from "../react/core/hooks/wallets/useActiveWallet.js";
|
12
|
-
export { useAdminWallet } from "../react/core/hooks/wallets/
|
12
|
+
export { useAdminWallet } from "../react/core/hooks/wallets/useAdminWallet.js";
|
13
13
|
export { useActiveWalletChain } from "../react/core/hooks/wallets/useActiveWalletChain.js";
|
14
14
|
export { useActiveWalletConnectionStatus } from "../react/core/hooks/wallets/useActiveWalletConnectionStatus.js";
|
15
15
|
export { useActiveAccount } from "../react/core/hooks/wallets/useActiveAccount.js";
|
@@ -25,6 +25,7 @@ export { useSendCalls } from "../react/core/hooks/wallets/useSendCalls.js";
|
|
25
25
|
export { useSwitchActiveWalletChain } from "../react/core/hooks/wallets/useSwitchActiveWalletChain.js";
|
26
26
|
export { useCallsStatus } from "../react/core/hooks/wallets/useCallsStatus.js";
|
27
27
|
export { useWalletBalance } from "../react/core/hooks/others/useWalletBalance.js";
|
28
|
+
export { useProfiles } from "../react/native/hooks/wallets/useProfiles.js";
|
28
29
|
|
29
30
|
// contract
|
30
31
|
export { useReadContract } from "../react/core/hooks/contract/useReadContract.js";
|
package/src/exports/react.ts
CHANGED
@@ -40,7 +40,7 @@ export type { MediaRendererProps } from "../react/web/ui/MediaRenderer/types.js"
|
|
40
40
|
|
41
41
|
// wallet hooks
|
42
42
|
export { useActiveWallet } from "../react/core/hooks/wallets/useActiveWallet.js";
|
43
|
-
export { useAdminWallet } from "../react/core/hooks/wallets/
|
43
|
+
export { useAdminWallet } from "../react/core/hooks/wallets/useAdminWallet.js";
|
44
44
|
export { useActiveWalletChain } from "../react/core/hooks/wallets/useActiveWalletChain.js";
|
45
45
|
export { useActiveWalletConnectionStatus } from "../react/core/hooks/wallets/useActiveWalletConnectionStatus.js";
|
46
46
|
export { useActiveAccount } from "../react/core/hooks/wallets/useActiveAccount.js";
|
@@ -56,7 +56,7 @@ export { useSendCalls } from "../react/core/hooks/wallets/useSendCalls.js";
|
|
56
56
|
export { useSwitchActiveWalletChain } from "../react/core/hooks/wallets/useSwitchActiveWalletChain.js";
|
57
57
|
export { useCallsStatus } from "../react/core/hooks/wallets/useCallsStatus.js";
|
58
58
|
export { useWalletBalance } from "../react/core/hooks/others/useWalletBalance.js";
|
59
|
-
export { useProfiles } from "../react/
|
59
|
+
export { useProfiles } from "../react/web/hooks/wallets/useProfiles.js";
|
60
60
|
|
61
61
|
// chain hooks
|
62
62
|
export { useChainMetadata } from "../react/core/hooks/others/useChainQuery.js";
|
@@ -85,6 +85,18 @@ export type {
|
|
85
85
|
InAppWalletSocialAuth as EmbeddedWalletSocialAuth,
|
86
86
|
} from "../wallets/in-app/core/wallet/types.js";
|
87
87
|
|
88
|
+
export {
|
89
|
+
preAuthenticate,
|
90
|
+
authenticate,
|
91
|
+
getUserEmail,
|
92
|
+
getUserPhoneNumber,
|
93
|
+
getProfiles,
|
94
|
+
linkProfile,
|
95
|
+
} from "../wallets/in-app/native/auth/index.js";
|
96
|
+
export const authenticateWithRedirect = () => {
|
97
|
+
throw new Error("Not supported in native");
|
98
|
+
};
|
99
|
+
|
88
100
|
export type {
|
89
101
|
CoinbaseWalletCreationOptions,
|
90
102
|
CoinbaseSDKWalletConnectionOptions,
|
package/src/exports/wallets.ts
CHANGED
@@ -98,9 +98,14 @@ export type {
|
|
98
98
|
} from "../wallets/in-app/core/wallet/types.js";
|
99
99
|
|
100
100
|
export {
|
101
|
+
preAuthenticate,
|
102
|
+
authenticate,
|
103
|
+
authenticateWithRedirect,
|
104
|
+
getUserEmail,
|
105
|
+
getUserPhoneNumber,
|
101
106
|
getProfiles,
|
102
107
|
linkProfile,
|
103
|
-
} from "../wallets/in-app/
|
108
|
+
} from "../wallets/in-app/web/lib/auth/index.js";
|
104
109
|
|
105
110
|
export {
|
106
111
|
getUser,
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { type UseQueryResult, useQuery } from "@tanstack/react-query";
|
2
|
+
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
3
|
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
3
4
|
import type { Profile } from "../../../../wallets/in-app/core/authentication/types.js";
|
4
|
-
import {
|
5
|
-
import
|
6
|
-
import { useAdminWallet } from "
|
5
|
+
import type { Ecosystem } from "../../../../wallets/in-app/core/wallet/types.js";
|
6
|
+
import { getProfiles } from "../../../../wallets/in-app/web/lib/auth/index.js";
|
7
|
+
import { useAdminWallet } from "../../../core/hooks/wallets/useAdminWallet.js";
|
7
8
|
|
8
9
|
/**
|
9
|
-
* Retrieves all linked profiles
|
10
|
+
* Retrieves all linked profiles of the connected in-app or ecosystem wallet.
|
10
11
|
*
|
11
12
|
* @returns A React Query result containing the linked profiles for the connected in-app wallet.
|
12
13
|
*
|
@@ -16,7 +17,9 @@ import { useAdminWallet } from "../wallets/useAdminAccount.js";
|
|
16
17
|
* ```jsx
|
17
18
|
* import { useProfiles } from "thirdweb/react";
|
18
19
|
*
|
19
|
-
* const { data: profiles } = useProfiles(
|
20
|
+
* const { data: profiles } = useProfiles({
|
21
|
+
* client,
|
22
|
+
* });
|
20
23
|
*
|
21
24
|
* console.log("Type:", profiles[0].type); // "discord"
|
22
25
|
* console.log("Email:", profiles[0].details.email); // "john.doe@example.com"
|
@@ -24,14 +27,22 @@ import { useAdminWallet } from "../wallets/useAdminAccount.js";
|
|
24
27
|
*
|
25
28
|
* @wallet
|
26
29
|
*/
|
27
|
-
export function useProfiles(
|
30
|
+
export function useProfiles(args: {
|
31
|
+
client: ThirdwebClient;
|
32
|
+
}): UseQueryResult<Profile[]> {
|
28
33
|
const wallet = useAdminWallet();
|
29
|
-
|
30
34
|
return useQuery({
|
31
35
|
queryKey: ["profiles", wallet?.id],
|
32
36
|
enabled: !!wallet && (wallet.id === "inApp" || isEcosystemWallet(wallet)),
|
33
37
|
queryFn: async () => {
|
34
|
-
|
38
|
+
const ecosystem: Ecosystem | undefined =
|
39
|
+
wallet && isEcosystemWallet(wallet)
|
40
|
+
? { id: wallet.id, partnerId: wallet.getConfig()?.partnerId }
|
41
|
+
: undefined;
|
42
|
+
return getProfiles({
|
43
|
+
client: args.client,
|
44
|
+
ecosystem,
|
45
|
+
});
|
35
46
|
},
|
36
47
|
});
|
37
48
|
}
|
@@ -59,7 +59,7 @@ export function ConnectedButton(
|
|
59
59
|
fontSize: fontSize.sm,
|
60
60
|
}}
|
61
61
|
>
|
62
|
-
{formatBalanceOnButton(Number(balanceQuery.data.displayValue))}
|
62
|
+
{formatBalanceOnButton(Number(balanceQuery.data.displayValue))}{" "}
|
63
63
|
{balanceQuery.data?.symbol}
|
64
64
|
</ThemedText>
|
65
65
|
) : (
|
@@ -184,7 +184,7 @@ const AccountHeader = (props: ConnectedModalProps) => {
|
|
184
184
|
fontSize: fontSize.sm,
|
185
185
|
}}
|
186
186
|
>
|
187
|
-
{formatNumber(Number(balanceQuery.data.displayValue), 5)}
|
187
|
+
{formatNumber(Number(balanceQuery.data.displayValue), 5)}{" "}
|
188
188
|
{balanceQuery.data?.symbol}
|
189
189
|
</ThemedText>
|
190
190
|
) : (
|
@@ -91,7 +91,7 @@ export const TokenRow = (props: {
|
|
91
91
|
{address &&
|
92
92
|
(balanceQuery.data ? (
|
93
93
|
<ThemedText theme={theme} type="subtext">
|
94
|
-
{formatBalanceOnButton(Number(balanceQuery.data.displayValue))}
|
94
|
+
{formatBalanceOnButton(Number(balanceQuery.data.displayValue))}{" "}
|
95
95
|
{balanceQuery.data?.symbol}
|
96
96
|
</ThemedText>
|
97
97
|
) : (
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { type UseQueryResult, useQuery } from "@tanstack/react-query";
|
2
|
+
import type { ThirdwebClient } from "../../../../client/client.js";
|
3
|
+
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
4
|
+
import type { Profile } from "../../../../wallets/in-app/core/authentication/types.js";
|
5
|
+
import type { Ecosystem } from "../../../../wallets/in-app/core/wallet/types.js";
|
6
|
+
import { getProfiles } from "../../../../wallets/in-app/web/lib/auth/index.js";
|
7
|
+
import { useAdminWallet } from "../../../core/hooks/wallets/useAdminWallet.js";
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Retrieves all linked profiles of the connected in-app or ecosystem wallet.
|
11
|
+
*
|
12
|
+
* @returns A React Query result containing the linked profiles for the connected in-app wallet.
|
13
|
+
*
|
14
|
+
* @note This hook will only run if the connected wallet supports multi-auth (in-app wallets).
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
* ```jsx
|
18
|
+
* import { useProfiles } from "thirdweb/react";
|
19
|
+
*
|
20
|
+
* const { data: profiles } = useProfiles({
|
21
|
+
* client,
|
22
|
+
* });
|
23
|
+
*
|
24
|
+
* console.log("Type:", profiles[0].type); // "discord"
|
25
|
+
* console.log("Email:", profiles[0].details.email); // "john.doe@example.com"
|
26
|
+
* ```
|
27
|
+
*
|
28
|
+
* @wallet
|
29
|
+
*/
|
30
|
+
export function useProfiles(args: {
|
31
|
+
client: ThirdwebClient;
|
32
|
+
}): UseQueryResult<Profile[]> {
|
33
|
+
const wallet = useAdminWallet();
|
34
|
+
return useQuery({
|
35
|
+
queryKey: ["profiles", wallet?.id],
|
36
|
+
enabled: !!wallet && (wallet.id === "inApp" || isEcosystemWallet(wallet)),
|
37
|
+
queryFn: async () => {
|
38
|
+
const ecosystem: Ecosystem | undefined =
|
39
|
+
wallet && isEcosystemWallet(wallet)
|
40
|
+
? { id: wallet.id, partnerId: wallet.getConfig()?.partnerId }
|
41
|
+
: undefined;
|
42
|
+
return getProfiles({
|
43
|
+
client: args.client,
|
44
|
+
ecosystem,
|
45
|
+
});
|
46
|
+
},
|
47
|
+
});
|
48
|
+
}
|
@@ -19,7 +19,7 @@ import { isContractDeployed } from "../../../../utils/bytecode/is-contract-deplo
|
|
19
19
|
import { formatNumber } from "../../../../utils/formatNumber.js";
|
20
20
|
import { webLocalStorage } from "../../../../utils/storage/webStorage.js";
|
21
21
|
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
22
|
-
import type { Ecosystem } from "../../../../wallets/in-app/
|
22
|
+
import type { Ecosystem } from "../../../../wallets/in-app/core/wallet/types.js";
|
23
23
|
import type { Account, Wallet } from "../../../../wallets/interfaces/wallet.js";
|
24
24
|
import type { SmartWalletOptions } from "../../../../wallets/smart/types.js";
|
25
25
|
import {
|
@@ -58,7 +58,7 @@ import {
|
|
58
58
|
import { useActiveAccount } from "../../../core/hooks/wallets/useActiveAccount.js";
|
59
59
|
import { useActiveWallet } from "../../../core/hooks/wallets/useActiveWallet.js";
|
60
60
|
import { useActiveWalletChain } from "../../../core/hooks/wallets/useActiveWalletChain.js";
|
61
|
-
import { useAdminWallet } from "../../../core/hooks/wallets/
|
61
|
+
import { useAdminWallet } from "../../../core/hooks/wallets/useAdminWallet.js";
|
62
62
|
import { useDisconnect } from "../../../core/hooks/wallets/useDisconnect.js";
|
63
63
|
import { useSwitchActiveWalletChain } from "../../../core/hooks/wallets/useSwitchActiveWalletChain.js";
|
64
64
|
import { SetRootElementContext } from "../../../core/providers/RootElementContext.js";
|
@@ -260,7 +260,7 @@ export const ConnectedWalletDetails: React.FC<{
|
|
260
260
|
color="secondaryText"
|
261
261
|
weight={400}
|
262
262
|
>
|
263
|
-
{formatBalanceOnButton(Number(balanceQuery.data.displayValue))}
|
263
|
+
{formatBalanceOnButton(Number(balanceQuery.data.displayValue))}{" "}
|
264
264
|
{balanceQuery.data.symbol}
|
265
265
|
</Text>
|
266
266
|
) : (
|
@@ -366,7 +366,7 @@ function DetailsModal(props: {
|
|
366
366
|
formatNumber(Number(balanceQuery.data.displayValue), 5)
|
367
367
|
) : (
|
368
368
|
<Skeleton height="1em" width="100px" />
|
369
|
-
)}
|
369
|
+
)}{" "}
|
370
370
|
{balanceQuery.data?.symbol}
|
371
371
|
</Text>
|
372
372
|
</Text>
|
@@ -49,7 +49,7 @@ export function TOS(props: {
|
|
49
49
|
disabled={!requireApproval}
|
50
50
|
/>
|
51
51
|
)}
|
52
|
-
{locale.prefix}
|
52
|
+
{locale.prefix}{" "}
|
53
53
|
{termsOfServiceUrl && (
|
54
54
|
<Link
|
55
55
|
inline
|
@@ -60,7 +60,8 @@ export function TOS(props: {
|
|
60
60
|
whiteSpace: "nowrap",
|
61
61
|
}}
|
62
62
|
>
|
63
|
-
{
|
63
|
+
{" "}
|
64
|
+
{locale.termsOfService}{" "}
|
64
65
|
</Link>
|
65
66
|
)}
|
66
67
|
{bothGiven && `${locale.and} `}
|
@@ -1234,7 +1234,7 @@ function SwapScreenContent(props: {
|
|
1234
1234
|
<div>
|
1235
1235
|
{errorMsg.minAmount && (
|
1236
1236
|
<Text color="danger" size="sm" center multiline>
|
1237
|
-
Minimum amount is {errorMsg.minAmount}
|
1237
|
+
Minimum amount is {errorMsg.minAmount}{" "}
|
1238
1238
|
<TokenSymbol
|
1239
1239
|
token={toToken}
|
1240
1240
|
chain={toChain}
|
@@ -1483,6 +1483,9 @@ function FiatScreenContent(props: {
|
|
1483
1483
|
{errorMsg.minAmount && (
|
1484
1484
|
<Text color="danger" size="sm" center multiline>
|
1485
1485
|
Minimum amount is {errorMsg.minAmount}
|
1486
|
+
{
|
1487
|
+
" packages/thirdweb/src/react/web/ui/ConnectWallet/TransactionsScreen.tsx"
|
1488
|
+
}
|
1486
1489
|
<TokenSymbol
|
1487
1490
|
token={toToken}
|
1488
1491
|
chain={toChain}
|
@@ -111,19 +111,18 @@ export function OnrampStatusScreen(props: {
|
|
111
111
|
return (
|
112
112
|
<Container p="lg">
|
113
113
|
<ModalHeader title={props.title} onBack={props.onBack} />
|
114
|
-
|
115
114
|
{props.hasTwoSteps && (
|
116
115
|
<>
|
117
116
|
<Spacer y="lg" />
|
118
117
|
<StepBar steps={2} currentStep={1} />
|
119
118
|
<Spacer y="sm" />
|
120
119
|
<Text size="xs">
|
121
|
-
Step 1 of 2 - Buying {props.quote.onRampToken.token.symbol} with
|
120
|
+
Step 1 of 2 - Buying {props.quote.onRampToken.token.symbol} with{" "}
|
122
121
|
{props.quote.fromCurrencyWithFees.currencySymbol}
|
123
122
|
</Text>
|
124
123
|
</>
|
125
124
|
)}
|
126
|
-
|
125
|
+
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.tsx
|
127
126
|
<OnrampStatusScreenUI
|
128
127
|
uiStatus={uiStatus}
|
129
128
|
onDone={props.onDone}
|
@@ -164,7 +164,7 @@ export function FiatSteps(props: {
|
|
164
164
|
const onRampTokenInfo = (
|
165
165
|
<div>
|
166
166
|
<Text color="primaryText" size="sm">
|
167
|
-
{formatNumber(Number(onRampTokenAmount), 6)}
|
167
|
+
{formatNumber(Number(onRampTokenAmount), 6)}{" "}
|
168
168
|
<TokenSymbol token={onRampToken} chain={onRampChain} size="sm" inline />
|
169
169
|
</Text>
|
170
170
|
</div>
|
@@ -204,7 +204,7 @@ export function FiatSteps(props: {
|
|
204
204
|
textDecoration: "line-through",
|
205
205
|
}}
|
206
206
|
>
|
207
|
-
{formatNumber(Number(toTokenAmount), 6)}
|
207
|
+
{formatNumber(Number(toTokenAmount), 6)}{" "}
|
208
208
|
<TokenSymbol
|
209
209
|
token={toToken}
|
210
210
|
chain={toChain}
|
@@ -212,9 +212,9 @@ export function FiatSteps(props: {
|
|
212
212
|
inline
|
213
213
|
color="secondaryText"
|
214
214
|
/>
|
215
|
-
</Text>
|
215
|
+
</Text>{" "}
|
216
216
|
<Text color="danger" size="sm" inline>
|
217
|
-
{formatNumber(Number(props.status.destination.amount), 6)}
|
217
|
+
{formatNumber(Number(props.status.destination.amount), 6)}{" "}
|
218
218
|
<TokenSymbol
|
219
219
|
token={{
|
220
220
|
address: props.status.destination.token.tokenAddress,
|
@@ -251,7 +251,7 @@ export function FiatSteps(props: {
|
|
251
251
|
}}
|
252
252
|
>
|
253
253
|
{toChainName.name}
|
254
|
-
</Text>
|
254
|
+
</Text>{" "}
|
255
255
|
<Text size="xs" inline>
|
256
256
|
{destinationName.name}
|
257
257
|
</Text>
|
@@ -316,13 +316,13 @@ export function FiatSteps(props: {
|
|
316
316
|
<PaymentStep
|
317
317
|
title={
|
318
318
|
<Text color="primaryText" size="md">
|
319
|
-
Get
|
319
|
+
Get{" "}
|
320
320
|
<TokenSymbol
|
321
321
|
token={onRampToken}
|
322
322
|
chain={onRampChain}
|
323
323
|
size="md"
|
324
324
|
inline
|
325
|
-
/>
|
325
|
+
/>{" "}
|
326
326
|
with {props.partialQuote.fromCurrencySymbol}
|
327
327
|
</Text>
|
328
328
|
}
|
@@ -356,13 +356,13 @@ export function FiatSteps(props: {
|
|
356
356
|
<PaymentStep
|
357
357
|
title={
|
358
358
|
<Text color="primaryText" size="md">
|
359
|
-
Convert
|
359
|
+
Convert{" "}
|
360
360
|
<TokenSymbol
|
361
361
|
token={onRampToken}
|
362
362
|
chain={onRampChain}
|
363
363
|
size="md"
|
364
364
|
inline
|
365
|
-
/>
|
365
|
+
/>{" "}
|
366
366
|
to <TokenSymbol token={toToken} chain={toChain} size="md" inline />
|
367
367
|
</Text>
|
368
368
|
}
|
@@ -396,7 +396,7 @@ export function FiatSteps(props: {
|
|
396
396
|
<>
|
397
397
|
<Spacer y="md" />
|
398
398
|
<Text color="danger" size="sm" center>
|
399
|
-
Expected {props.status.source?.token.symbol}, Got
|
399
|
+
Expected {props.status.source?.token.symbol}, Got{" "}
|
400
400
|
{props.status.destination?.token.symbol} instead
|
401
401
|
</Text>
|
402
402
|
<Spacer y="sm" />
|
@@ -72,7 +72,7 @@ export function OnRampTxDetailsTable(props: {
|
|
72
72
|
<Container flex="row" gap="xs" center="y">
|
73
73
|
<currencyMeta.icon size={iconSize.sm} />
|
74
74
|
<Text color="primaryText">
|
75
|
-
{formatNumber(Number(props.fiat.amount), 2)}
|
75
|
+
{formatNumber(Number(props.fiat.amount), 2)}{" "}
|
76
76
|
{props.fiat.currencySymbol}
|
77
77
|
</Text>
|
78
78
|
</Container>
|
@@ -72,7 +72,7 @@ export function BuyTxHistoryButton(props: {
|
|
72
72
|
}}
|
73
73
|
>
|
74
74
|
<Text size="sm" color="primaryText">
|
75
|
-
Buy
|
75
|
+
Buy{" "}
|
76
76
|
{formatNumber(
|
77
77
|
Number(
|
78
78
|
props.txInfo.type === "swap"
|
@@ -80,7 +80,7 @@ export function BuyTxHistoryButton(props: {
|
|
80
80
|
: props.txInfo.status.quote.estimatedToTokenAmount,
|
81
81
|
),
|
82
82
|
6,
|
83
|
-
)}
|
83
|
+
)}{" "}
|
84
84
|
{props.txInfo.status.quote.toToken.symbol}
|
85
85
|
</Text>
|
86
86
|
</Container>
|
@@ -76,7 +76,7 @@ export function SwapConfirmationScreen(props: {
|
|
76
76
|
<StepBar steps={2} currentStep={2} />
|
77
77
|
<Spacer y="sm" />
|
78
78
|
<Text size="xs">
|
79
|
-
Step 2 of 2 - Converting {props.fromTokenSymbol} to
|
79
|
+
Step 2 of 2 - Converting {props.fromTokenSymbol} to{" "}
|
80
80
|
{props.toTokenSymbol}
|
81
81
|
</Text>
|
82
82
|
<Spacer y="md" />
|
@@ -60,7 +60,7 @@ export function FiatFees(props: {
|
|
60
60
|
Amount
|
61
61
|
</Text>
|
62
62
|
<Text color="primaryText" inline>
|
63
|
-
{formatNumber(Number(props.quote.fromCurrency.amount), 2)}
|
63
|
+
{formatNumber(Number(props.quote.fromCurrency.amount), 2)}{" "}
|
64
64
|
{props.quote.fromCurrency.currencySymbol}
|
65
65
|
</Text>
|
66
66
|
</div>
|
@@ -83,8 +83,7 @@ export function FiatFees(props: {
|
|
83
83
|
</Text>
|
84
84
|
|
85
85
|
<Text color="primaryText" inline>
|
86
|
-
{feeAmount === 0 ? "~" : ""}
|
87
|
-
{feeAmount} {fee.currencySymbol}
|
86
|
+
{feeAmount === 0 ? "~" : ""} {feeAmount} {fee.currencySymbol}
|
88
87
|
</Text>
|
89
88
|
</div>
|
90
89
|
);
|
@@ -105,7 +104,7 @@ export function FiatFees(props: {
|
|
105
104
|
Total
|
106
105
|
</Text>
|
107
106
|
<Text color="primaryText" inline>
|
108
|
-
{formatNumber(Number(props.quote.fromCurrencyWithFees.amount), 6)}
|
107
|
+
{formatNumber(Number(props.quote.fromCurrencyWithFees.amount), 6)}{" "}
|
109
108
|
{props.quote.fromCurrencyWithFees.currencySymbol}
|
110
109
|
</Text>
|
111
110
|
</div>
|