@getpara/react-sdk 2.0.0-dev.3 → 2.0.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cosmos/actions/getCosmjsAminoSigner.d.ts +8 -0
- package/dist/cosmos/actions/getCosmjsAminoSigner.js +16 -0
- package/dist/cosmos/actions/getCosmjsProtoSigner.d.ts +8 -0
- package/dist/cosmos/actions/getCosmjsProtoSigner.js +16 -0
- package/dist/cosmos/actions/index.d.ts +2 -0
- package/dist/cosmos/actions/index.js +3 -0
- package/dist/cosmos/hooks/index.d.ts +2 -0
- package/dist/cosmos/hooks/index.js +3 -0
- package/dist/cosmos/hooks/useCosmjsAminoSigner.d.ts +11 -0
- package/dist/cosmos/hooks/useCosmjsAminoSigner.js +37 -0
- package/dist/cosmos/hooks/useCosmjsProtoSigner.d.ts +11 -0
- package/dist/cosmos/hooks/useCosmjsProtoSigner.js +37 -0
- package/dist/cosmos/index.d.ts +2 -0
- package/dist/cosmos/index.js +3 -0
- package/dist/css/modal.css +14 -1
- package/dist/evm/actions/getViemAccount.d.ts +22 -0
- package/dist/evm/actions/getViemAccount.js +20 -0
- package/dist/evm/actions/getViemClient.d.ts +7659 -0
- package/dist/evm/actions/getViemClient.js +25 -0
- package/dist/evm/actions/index.d.ts +2 -0
- package/dist/evm/actions/index.js +3 -0
- package/dist/evm/hooks/index.d.ts +2 -0
- package/dist/evm/hooks/index.js +3 -0
- package/dist/evm/hooks/useViemAccount.d.ts +26 -0
- package/dist/evm/hooks/useViemAccount.js +32 -0
- package/dist/evm/hooks/useViemClient.d.ts +7663 -0
- package/dist/evm/hooks/useViemClient.js +30 -0
- package/dist/evm/index.d.ts +2 -0
- package/dist/evm/index.js +3 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.js +4 -4
- package/dist/provider/ParaProvider.d.ts +1 -2
- package/dist/provider/ParaProvider.js +13 -106
- package/dist/public/PPMori-Regular.woff2 +0 -0
- package/dist/public/PPMori-SemiBold.woff2 +0 -0
- package/dist/solana/actions/getSolanaSigner.d.ts +8 -0
- package/dist/solana/actions/getSolanaSigner.js +15 -0
- package/dist/solana/actions/index.d.ts +1 -0
- package/dist/solana/actions/index.js +2 -0
- package/dist/solana/hooks/index.d.ts +1 -0
- package/dist/solana/hooks/index.js +2 -0
- package/dist/solana/hooks/useSolanaSigner.d.ts +12 -0
- package/dist/solana/hooks/useSolanaSigner.js +32 -0
- package/dist/solana/index.d.ts +2 -0
- package/dist/solana/index.js +3 -0
- package/package.json +19 -29
- package/styles.css/package.json +1 -1
- package/dist/cli/cli.mjs +0 -50
- package/dist/modal/ParaModal.d.ts +0 -2
- package/dist/modal/ParaModal.js +0 -301
- package/dist/modal/components/Account/Account.d.ts +0 -5
- package/dist/modal/components/Account/Account.js +0 -148
- package/dist/modal/components/Account/AccountProfile.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfile.js +0 -168
- package/dist/modal/components/Account/AccountProfileLink.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileLink.js +0 -206
- package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileLinkOptions.js +0 -111
- package/dist/modal/components/Account/AccountProfileUnlink.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileUnlink.js +0 -47
- package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFunds.js +0 -69
- package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsAsset.js +0 -125
- package/dist/modal/components/AddFunds/AddFundsAwaiting.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsAwaiting.js +0 -78
- package/dist/modal/components/AddFunds/AddFundsContext.d.ts +0 -31
- package/dist/modal/components/AddFunds/AddFundsContext.js +0 -160
- package/dist/modal/components/AddFunds/AddFundsDone.d.ts +0 -6
- package/dist/modal/components/AddFunds/AddFundsDone.js +0 -49
- package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsProvider.js +0 -109
- package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsReceive.js +0 -83
- package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsSettings.js +0 -237
- package/dist/modal/components/AddFunds/MoonPayEmbed.d.ts +0 -2
- package/dist/modal/components/AddFunds/MoonPayEmbed.js +0 -7
- package/dist/modal/components/AddFunds/common.d.ts +0 -19
- package/dist/modal/components/AddFunds/common.js +0 -24
- package/dist/modal/components/AddFunds/index.d.ts +0 -3
- package/dist/modal/components/AddFunds/index.js +0 -4
- package/dist/modal/components/AuthInput/AuthInput.d.ts +0 -20
- package/dist/modal/components/AuthInput/AuthInput.js +0 -277
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.d.ts +0 -7
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +0 -33
- package/dist/modal/components/AuthInput/phoneMasks.d.ts +0 -247
- package/dist/modal/components/AuthInput/phoneMasks.js +0 -253
- package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -9
- package/dist/modal/components/AuthMainStep/AuthMainStep.js +0 -50
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -9
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +0 -164
- package/dist/modal/components/AuthOptions/AuthOptions.d.ts +0 -9
- package/dist/modal/components/AuthOptions/AuthOptions.js +0 -85
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +0 -1
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +0 -18
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +0 -1
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +0 -10
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +0 -18
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -5
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +0 -49
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +0 -62
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +0 -48
- package/dist/modal/components/Body/AnimatedHeightWrapper.d.ts +0 -6
- package/dist/modal/components/Body/AnimatedHeightWrapper.js +0 -29
- package/dist/modal/components/Body/Body.d.ts +0 -11
- package/dist/modal/components/Body/Body.js +0 -350
- package/dist/modal/components/ChainSwitch/ChainSwitch.d.ts +0 -1
- package/dist/modal/components/ChainSwitch/ChainSwitch.js +0 -95
- package/dist/modal/components/ChainSwitch/config.d.ts +0 -7
- package/dist/modal/components/ChainSwitch/config.js +0 -17
- package/dist/modal/components/Controls/Controls.d.ts +0 -5
- package/dist/modal/components/Controls/Controls.js +0 -78
- package/dist/modal/components/Controls/Selects.d.ts +0 -2
- package/dist/modal/components/Controls/Selects.js +0 -173
- package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts +0 -1
- package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js +0 -75
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +0 -8
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +0 -175
- package/dist/modal/components/ExternalWalletStep/config.d.ts +0 -7
- package/dist/modal/components/ExternalWalletStep/config.js +0 -17
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +0 -39
- package/dist/modal/components/ExternalWallets/ExternalWallets.d.ts +0 -1
- package/dist/modal/components/ExternalWallets/ExternalWallets.js +0 -184
- package/dist/modal/components/Footer/Footer.d.ts +0 -1
- package/dist/modal/components/Footer/Footer.js +0 -95
- package/dist/modal/components/Header/Header.d.ts +0 -1
- package/dist/modal/components/Header/Header.js +0 -43
- package/dist/modal/components/Header/hooks/useStepTitle.d.ts +0 -3
- package/dist/modal/components/Header/hooks/useStepTitle.js +0 -61
- package/dist/modal/components/Hero/Hero.d.ts +0 -1
- package/dist/modal/components/Hero/Hero.js +0 -116
- package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
- package/dist/modal/components/IFrameStep/IFrameStep.js +0 -59
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -5
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +0 -44
- package/dist/modal/components/ModalContent/ModalContent.d.ts +0 -10
- package/dist/modal/components/ModalContent/ModalContent.js +0 -88
- package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -3
- package/dist/modal/components/OAuth/FarcasterOAuthStep.js +0 -31
- package/dist/modal/components/OAuth/OAuth.d.ts +0 -6
- package/dist/modal/components/OAuth/OAuth.js +0 -79
- package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -8
- package/dist/modal/components/OAuth/TelegramOAuthStep.js +0 -74
- package/dist/modal/components/OnRampComponents/AddingFunds.d.ts +0 -1
- package/dist/modal/components/OnRampComponents/AddingFunds.js +0 -23
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.d.ts +0 -9
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +0 -77
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.d.ts +0 -6
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +0 -107
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +0 -132
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +0 -27
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +0 -12
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +0 -160
- package/dist/modal/components/Waiting/Waiting.d.ts +0 -6
- package/dist/modal/components/Waiting/Waiting.js +0 -17
- package/dist/modal/components/WalletCard/PartnerIcon.d.ts +0 -6
- package/dist/modal/components/WalletCard/PartnerIcon.js +0 -34
- package/dist/modal/components/WalletCard/WalletCard.d.ts +0 -18
- package/dist/modal/components/WalletCard/WalletCard.js +0 -128
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +0 -83
- package/dist/modal/components/common.d.ts +0 -59
- package/dist/modal/components/common.js +0 -261
- package/dist/modal/components/index.d.ts +0 -1
- package/dist/modal/components/index.js +0 -2
- package/dist/modal/constants/constants.d.ts +0 -40
- package/dist/modal/constants/constants.js +0 -142
- package/dist/modal/constants/defaults.d.ts +0 -5
- package/dist/modal/constants/defaults.js +0 -10
- package/dist/modal/constants/oAuthLogos.d.ts +0 -17
- package/dist/modal/constants/oAuthLogos.js +0 -158
- package/dist/modal/constants/walletTypeConfig.d.ts +0 -6
- package/dist/modal/constants/walletTypeConfig.js +0 -13
- package/dist/modal/hooks/useGoBack.d.ts +0 -1
- package/dist/modal/hooks/useGoBack.js +0 -43
- package/dist/modal/hooks/useTelegramLogin.d.ts +0 -12
- package/dist/modal/hooks/useTelegramLogin.js +0 -65
- package/dist/modal/index.d.ts +0 -8
- package/dist/modal/index.js +0 -29
- package/dist/modal/stores/index.d.ts +0 -1
- package/dist/modal/stores/index.js +0 -2
- package/dist/modal/stores/modal/actions.d.ts +0 -3
- package/dist/modal/stores/modal/actions.js +0 -135
- package/dist/modal/stores/modal/useModalStore.d.ts +0 -103
- package/dist/modal/stores/modal/useModalStore.js +0 -73
- package/dist/modal/types/commonTypes.d.ts +0 -6
- package/dist/modal/types/commonTypes.js +0 -1
- package/dist/modal/types/modalProps.d.ts +0 -129
- package/dist/modal/types/modalProps.js +0 -12
- package/dist/modal/utils/authInputHelpers.d.ts +0 -5
- package/dist/modal/utils/authInputHelpers.js +0 -41
- package/dist/modal/utils/authLayoutHelpers.d.ts +0 -3
- package/dist/modal/utils/authLayoutHelpers.js +0 -8
- package/dist/modal/utils/countryCodes.d.ts +0 -8
- package/dist/modal/utils/countryCodes.js +0 -45
- package/dist/modal/utils/getMailtoLink.d.ts +0 -1
- package/dist/modal/utils/getMailtoLink.js +0 -10
- package/dist/modal/utils/getTileButtonFlex.d.ts +0 -1
- package/dist/modal/utils/getTileButtonFlex.js +0 -20
- package/dist/modal/utils/getWalletDisplayName.d.ts +0 -5
- package/dist/modal/utils/getWalletDisplayName.js +0 -22
- package/dist/modal/utils/isPasskeySupported.d.ts +0 -1
- package/dist/modal/utils/isPasskeySupported.js +0 -15
- package/dist/modal/utils/openPopup.d.ts +0 -6
- package/dist/modal/utils/openPopup.js +0 -60
- package/dist/modal/utils/routeMobileExternalWallet.d.ts +0 -1
- package/dist/modal/utils/routeMobileExternalWallet.js +0 -31
- package/dist/modal/utils/steps.d.ts +0 -133
- package/dist/modal/utils/steps.js +0 -273
- package/dist/modal/utils/stringFormatters.d.ts +0 -5
- package/dist/modal/utils/stringFormatters.js +0 -19
- package/dist/modal/utils/validateOnRampConfig.d.ts +0 -5
- package/dist/modal/utils/validateOnRampConfig.js +0 -32
- package/dist/provider/actions/getEmbeddedAccount.d.ts +0 -26
- package/dist/provider/actions/getEmbeddedAccount.js +0 -52
- package/dist/provider/actions/getWallet.d.ts +0 -5
- package/dist/provider/actions/getWallet.js +0 -18
- package/dist/provider/actions/index.d.ts +0 -47
- package/dist/provider/actions/index.js +0 -79
- package/dist/provider/actions/utils.d.ts +0 -4
- package/dist/provider/actions/utils.js +0 -34
- package/dist/provider/components/CosmosWalletWrapper.d.ts +0 -11
- package/dist/provider/components/CosmosWalletWrapper.js +0 -43
- package/dist/provider/components/EvmWalletWrapper.d.ts +0 -12
- package/dist/provider/components/EvmWalletWrapper.js +0 -43
- package/dist/provider/components/ExternalWalletWrapper.d.ts +0 -8
- package/dist/provider/components/ExternalWalletWrapper.js +0 -140
- package/dist/provider/components/SolanaWalletWrapper.d.ts +0 -9
- package/dist/provider/components/SolanaWalletWrapper.js +0 -44
- package/dist/provider/external/getParaCosmosConnector.d.ts +0 -7
- package/dist/provider/external/getParaCosmosConnector.js +0 -19
- package/dist/provider/external/getParaCosmosLib.d.ts +0 -4
- package/dist/provider/external/getParaCosmosLib.js +0 -16
- package/dist/provider/external/getParaEvmConnector.d.ts +0 -7
- package/dist/provider/external/getParaEvmConnector.js +0 -19
- package/dist/provider/external/getParaEvmLib.d.ts +0 -4
- package/dist/provider/external/getParaEvmLib.js +0 -16
- package/dist/provider/external/getParaSolanaConnector.d.ts +0 -7
- package/dist/provider/external/getParaSolanaConnector.js +0 -19
- package/dist/provider/external/getParaSolanaLib.d.ts +0 -4
- package/dist/provider/external/getParaSolanaLib.js +0 -16
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +0 -2
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +0 -8
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +0 -2
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +0 -8
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +0 -2
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +0 -8
- package/dist/provider/hooks/index.d.ts +0 -3
- package/dist/provider/hooks/index.js +0 -4
- package/dist/provider/hooks/mutations/core.d.ts +0 -27
- package/dist/provider/hooks/mutations/core.js +0 -66
- package/dist/provider/hooks/mutations/index.d.ts +0 -3
- package/dist/provider/hooks/mutations/index.js +0 -9
- package/dist/provider/hooks/mutations/useLinkAccount.d.ts +0 -9
- package/dist/provider/hooks/mutations/useLinkAccount.js +0 -18
- package/dist/provider/hooks/mutations/utils.d.ts +0 -12
- package/dist/provider/hooks/mutations/utils.js +0 -90
- package/dist/provider/hooks/queries/core.d.ts +0 -4
- package/dist/provider/hooks/queries/core.js +0 -16
- package/dist/provider/hooks/queries/index.d.ts +0 -4
- package/dist/provider/hooks/queries/index.js +0 -11
- package/dist/provider/hooks/queries/useAccount.d.ts +0 -90
- package/dist/provider/hooks/queries/useAccount.js +0 -135
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +0 -5
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +0 -24
- package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
- package/dist/provider/hooks/queries/useWallet.js +0 -26
- package/dist/provider/hooks/queries/useWalletBalance.d.ts +0 -6
- package/dist/provider/hooks/queries/useWalletBalance.js +0 -55
- package/dist/provider/hooks/queries/utils.d.ts +0 -7
- package/dist/provider/hooks/queries/utils.js +0 -25
- package/dist/provider/hooks/utils/index.d.ts +0 -3
- package/dist/provider/hooks/utils/index.js +0 -10
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.d.ts +0 -3
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +0 -74
- package/dist/provider/hooks/utils/useClient.d.ts +0 -5
- package/dist/provider/hooks/utils/useClient.js +0 -10
- package/dist/provider/hooks/utils/useEventListeners.d.ts +0 -2
- package/dist/provider/hooks/utils/useEventListeners.js +0 -157
- package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +0 -4
- package/dist/provider/hooks/utils/useFormattedBiometricHints.js +0 -27
- package/dist/provider/hooks/utils/useInternalClient.d.ts +0 -5
- package/dist/provider/hooks/utils/useInternalClient.js +0 -10
- package/dist/provider/hooks/utils/useModal.d.ts +0 -11
- package/dist/provider/hooks/utils/useModal.js +0 -27
- package/dist/provider/hooks/utils/useWalletState.d.ts +0 -15
- package/dist/provider/hooks/utils/useWalletState.js +0 -48
- package/dist/provider/index.d.ts +0 -6
- package/dist/provider/index.js +0 -11
- package/dist/provider/providers/AccountLinkProvider.d.ts +0 -47
- package/dist/provider/providers/AccountLinkProvider.js +0 -452
- package/dist/provider/providers/AuthProvider.d.ts +0 -37
- package/dist/provider/providers/AuthProvider.js +0 -523
- package/dist/provider/providers/CosmosExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/CosmosExternalWalletProvider.js +0 -66
- package/dist/provider/providers/EvmExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/EvmExternalWalletProvider.js +0 -74
- package/dist/provider/providers/ExternalWalletProvider.d.ts +0 -59
- package/dist/provider/providers/ExternalWalletProvider.js +0 -596
- package/dist/provider/providers/SolanaExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/SolanaExternalWalletProvider.js +0 -66
- package/dist/provider/stores/getters.d.ts +0 -4
- package/dist/provider/stores/getters.js +0 -13
- package/dist/provider/stores/setters.d.ts +0 -1
- package/dist/provider/stores/setters.js +0 -7
- package/dist/provider/stores/slices/analytics.d.ts +0 -3
- package/dist/provider/stores/slices/analytics.js +0 -9
- package/dist/provider/stores/slices/client.d.ts +0 -3
- package/dist/provider/stores/slices/client.js +0 -9
- package/dist/provider/stores/slices/config.d.ts +0 -3
- package/dist/provider/stores/slices/config.js +0 -9
- package/dist/provider/stores/slices/externalWallets.d.ts +0 -3
- package/dist/provider/stores/slices/externalWallets.js +0 -46
- package/dist/provider/stores/slices/index.d.ts +0 -5
- package/dist/provider/stores/slices/index.js +0 -6
- package/dist/provider/stores/slices/modal.d.ts +0 -3
- package/dist/provider/stores/slices/modal.js +0 -18
- package/dist/provider/stores/slices/wallet.d.ts +0 -3
- package/dist/provider/stores/slices/wallet.js +0 -13
- package/dist/provider/stores/types.d.ts +0 -76
- package/dist/provider/stores/types.js +0 -1
- package/dist/provider/stores/useStore.d.ts +0 -17
- package/dist/provider/stores/useStore.js +0 -34
- package/dist/provider/types/externalWalletProviders.d.ts +0 -12
- package/dist/provider/types/externalWalletProviders.js +0 -1
- package/dist/provider/types/provider.d.ts +0 -161
- package/dist/provider/types/provider.js +0 -1
- package/dist/provider/types/query.d.ts +0 -3
- package/dist/provider/types/query.js +0 -1
- package/dist/provider/types/utils.d.ts +0 -45
- package/dist/provider/types/utils.js +0 -1
- package/dist/provider/utils/constants.d.ts +0 -5
- package/dist/provider/utils/constants.js +0 -10
- package/dist/provider/utils/paraConfigTypeGuards.d.ts +0 -7
- package/dist/provider/utils/paraConfigTypeGuards.js +0 -13
- package/dist/provider/utils/renameMutations.d.ts +0 -5
- package/dist/provider/utils/renameMutations.js +0 -18
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../chunk-MMUBH76A.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { CosmosExternalWalletProvider } from "../providers/CosmosExternalWalletProvider.js";
|
|
5
|
-
import { useInternalClient } from "../hooks/utils/useInternalClient.js";
|
|
6
|
-
import { useStore } from "../stores/useStore.js";
|
|
7
|
-
import { COSMOS_WALLETS } from "@getpara/web-sdk";
|
|
8
|
-
import { useWallet } from "../hooks/index.js";
|
|
9
|
-
const CosmosWalletWrapper = ({
|
|
10
|
-
children,
|
|
11
|
-
cosmosConnectorConfig,
|
|
12
|
-
grazProviderProps,
|
|
13
|
-
onSwitchWallet
|
|
14
|
-
}) => {
|
|
15
|
-
const para = useInternalClient();
|
|
16
|
-
const { data: wallet } = useWallet();
|
|
17
|
-
const externalWalletsWithFullAuth = useStore((state) => state.externalWalletsWithFullAuth);
|
|
18
|
-
const wallets = useStore((state) => state.externalWallets);
|
|
19
|
-
const isUsing = wallets.some((w) => w in COSMOS_WALLETS);
|
|
20
|
-
const connectionOnly = useStore((state) => state.connectionOnly);
|
|
21
|
-
const includeWalletVerification = useStore((state) => state.includeWalletVerification);
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
CosmosExternalWalletProvider,
|
|
24
|
-
{
|
|
25
|
-
config: cosmosConnectorConfig,
|
|
26
|
-
internalConfig: {
|
|
27
|
-
onSwitchWallet,
|
|
28
|
-
para,
|
|
29
|
-
walletsWithFullAuth: externalWalletsWithFullAuth,
|
|
30
|
-
connectedWallet: wallet,
|
|
31
|
-
connectionOnly,
|
|
32
|
-
includeWalletVerification
|
|
33
|
-
},
|
|
34
|
-
grazProviderProps,
|
|
35
|
-
isUsing,
|
|
36
|
-
wallets,
|
|
37
|
-
children
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
CosmosWalletWrapper
|
|
43
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Chain, Transport } from 'viem';
|
|
3
|
-
import { ParaEvmProviderConfigNoWallets } from '../types/externalWalletProviders.js';
|
|
4
|
-
import { ParaWagmiProviderProps } from '@getpara/evm-wallet-connectors';
|
|
5
|
-
export declare const EvmWalletWrapper: <chains extends readonly [Chain, ...Chain[]], transports extends Record<chains[number]["id"], Transport>>({ children, evmProviderConfig, wagmiProviderProps, onSwitchWallet, }: {
|
|
6
|
-
evmProviderConfig: ParaEvmProviderConfigNoWallets<chains, transports>;
|
|
7
|
-
wagmiProviderProps: ParaWagmiProviderProps;
|
|
8
|
-
onSwitchWallet: ({ address, error }: {
|
|
9
|
-
address?: string;
|
|
10
|
-
error?: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
} & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../chunk-MMUBH76A.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { EvmExternalWalletProvider } from "../providers/EvmExternalWalletProvider.js";
|
|
5
|
-
import { useInternalClient } from "../hooks/utils/useInternalClient.js";
|
|
6
|
-
import { useStore } from "../stores/useStore.js";
|
|
7
|
-
import { EVM_WALLETS } from "@getpara/web-sdk";
|
|
8
|
-
import { useWallet } from "../hooks/index.js";
|
|
9
|
-
const EvmWalletWrapper = ({
|
|
10
|
-
children,
|
|
11
|
-
evmProviderConfig,
|
|
12
|
-
wagmiProviderProps,
|
|
13
|
-
onSwitchWallet
|
|
14
|
-
}) => {
|
|
15
|
-
const para = useInternalClient();
|
|
16
|
-
const { data: wallet } = useWallet();
|
|
17
|
-
const externalWalletsWithFullAuth = useStore((state) => state.externalWalletsWithFullAuth);
|
|
18
|
-
const wallets = useStore((state) => state.externalWallets);
|
|
19
|
-
const connectionOnly = useStore((state) => state.connectionOnly);
|
|
20
|
-
const includeWalletVerification = useStore((state) => state.includeWalletVerification);
|
|
21
|
-
const isUsing = wallets.some((w) => w in EVM_WALLETS);
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
EvmExternalWalletProvider,
|
|
24
|
-
{
|
|
25
|
-
config: evmProviderConfig,
|
|
26
|
-
internalConfig: {
|
|
27
|
-
onSwitchWallet,
|
|
28
|
-
para,
|
|
29
|
-
walletsWithFullAuth: externalWalletsWithFullAuth,
|
|
30
|
-
connectedWallet: wallet,
|
|
31
|
-
connectionOnly,
|
|
32
|
-
includeWalletVerification
|
|
33
|
-
},
|
|
34
|
-
wagmiProviderProps,
|
|
35
|
-
isUsing,
|
|
36
|
-
wallets,
|
|
37
|
-
children
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
EvmWalletWrapper
|
|
43
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ExternalWalletConfig } from '../types/provider.js';
|
|
3
|
-
import { Chain, Transport } from 'viem';
|
|
4
|
-
interface ExternalWalletWrapperProps<chains extends readonly [Chain, ...Chain[]], transports extends Record<chains[number]['id'], Transport>> extends PropsWithChildren {
|
|
5
|
-
config?: Omit<ExternalWalletConfig<chains, transports>, 'wallets'>;
|
|
6
|
-
}
|
|
7
|
-
export declare const ExternalWalletWrapper: <chains extends readonly [Chain, ...Chain[]], transports extends Record<chains[number]["id"], Transport>>({ children, config, }: ExternalWalletWrapperProps<chains, transports>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__spreadProps,
|
|
4
|
-
__spreadValues
|
|
5
|
-
} from "../../chunk-MMUBH76A.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { useCallback, useEffect, useMemo } from "react";
|
|
8
|
-
import { useModalStore } from "../../modal/stores/index.js";
|
|
9
|
-
import { ExternalWalletProvider } from "../providers/ExternalWalletProvider.js";
|
|
10
|
-
import { EvmWalletWrapper } from "./EvmWalletWrapper.js";
|
|
11
|
-
import { CosmosWalletWrapper } from "./CosmosWalletWrapper.js";
|
|
12
|
-
import { SolanaWalletWrapper } from "./SolanaWalletWrapper.js";
|
|
13
|
-
import { useStore } from "../stores/useStore.js";
|
|
14
|
-
const ExternalWalletWrapper = ({
|
|
15
|
-
children,
|
|
16
|
-
config
|
|
17
|
-
}) => {
|
|
18
|
-
var _a;
|
|
19
|
-
const { appDescription, appIcon, appUrl, walletConnect, evmConnector, cosmosConnector, solanaConnector } = config != null ? config : {};
|
|
20
|
-
const appName = useStore((state) => state.appName);
|
|
21
|
-
const resetModalState = useModalStore((state) => state.resetState);
|
|
22
|
-
const wallets = useStore((state) => state.externalWallets);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
if (!!wallets.length && !(walletConnect == null ? void 0 : walletConnect.projectId)) {
|
|
25
|
-
console.warn(
|
|
26
|
-
"It is recommended to provide a WalletConnect project id to ensure wallet connection works as expected. Sign up for your free key at https://cloud.walletconnect.com/sign-in"
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
}, [wallets, walletConnect]);
|
|
30
|
-
const evmProviderConfig = useMemo(
|
|
31
|
-
() => {
|
|
32
|
-
var _a2, _b;
|
|
33
|
-
return !evmConnector ? {
|
|
34
|
-
appName,
|
|
35
|
-
chains: [
|
|
36
|
-
{
|
|
37
|
-
id: 11155111,
|
|
38
|
-
name: "Sepolia",
|
|
39
|
-
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
40
|
-
rpcUrls: { default: { http: ["https://rpc.sepolia.org"] } },
|
|
41
|
-
blockExplorers: {
|
|
42
|
-
default: {
|
|
43
|
-
name: "Etherscan",
|
|
44
|
-
url: "https://sepolia.etherscan.io",
|
|
45
|
-
apiUrl: "https://api-sepolia.etherscan.io/api"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
contracts: {
|
|
49
|
-
multicall3: { address: "0xca11bde05977b3631167028862be2a173976ca11", blockCreated: 751532 },
|
|
50
|
-
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
51
|
-
ensUniversalResolver: { address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC", blockCreated: 5317080 }
|
|
52
|
-
},
|
|
53
|
-
testnet: true
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
projectId: (_a2 = walletConnect == null ? void 0 : walletConnect.projectId) != null ? _a2 : ""
|
|
57
|
-
} : __spreadValues({ appName, appDescription, appIcon, appUrl, projectId: (_b = walletConnect == null ? void 0 : walletConnect.projectId) != null ? _b : "" }, evmConnector == null ? void 0 : evmConnector.config);
|
|
58
|
-
},
|
|
59
|
-
[appName, appDescription, appIcon, appUrl, walletConnect == null ? void 0 : walletConnect.projectId, evmConnector]
|
|
60
|
-
);
|
|
61
|
-
const solanaProviderConfig = useMemo(() => {
|
|
62
|
-
var _a2, _b, _c, _d, _e, _f;
|
|
63
|
-
const appIdentity = {
|
|
64
|
-
name: (_b = (_a2 = solanaConnector == null ? void 0 : solanaConnector.config.appIdentity) == null ? void 0 : _a2.name) != null ? _b : appName,
|
|
65
|
-
uri: (_d = (_c = solanaConnector == null ? void 0 : solanaConnector.config.appIdentity) == null ? void 0 : _c.uri) != null ? _d : appUrl,
|
|
66
|
-
icon: (_f = (_e = solanaConnector == null ? void 0 : solanaConnector.config.appIdentity) == null ? void 0 : _e.icon) != null ? _f : appIcon
|
|
67
|
-
};
|
|
68
|
-
return !solanaConnector ? { appIdentity, chain: "devnet", endpoint: "https://api.devnet.solana.com" } : __spreadValues({ appIdentity }, solanaConnector == null ? void 0 : solanaConnector.config);
|
|
69
|
-
}, [solanaConnector]);
|
|
70
|
-
const cosmosProviderConfig = useMemo(
|
|
71
|
-
() => !cosmosConnector ? {
|
|
72
|
-
chains: [
|
|
73
|
-
{
|
|
74
|
-
chainId: "theta-testnet-001",
|
|
75
|
-
currencies: [{ coinDenom: "atom", coinMinimalDenom: "uatom", coinDecimals: 6 }],
|
|
76
|
-
rest: "https://cosmoshubt.lava.build",
|
|
77
|
-
rpc: "https://cosmoshubt.tendermintrpc.lava.build:443",
|
|
78
|
-
bech32Config: {
|
|
79
|
-
bech32PrefixAccAddr: "cosmos",
|
|
80
|
-
bech32PrefixAccPub: "cosmospub",
|
|
81
|
-
bech32PrefixValAddr: "cosmosvaloper",
|
|
82
|
-
bech32PrefixValPub: "cosmosvaloperpub",
|
|
83
|
-
bech32PrefixConsAddr: "cosmosvalcons",
|
|
84
|
-
bech32PrefixConsPub: "cosmosvalconspub"
|
|
85
|
-
},
|
|
86
|
-
chainName: "cosmoshubtestnet",
|
|
87
|
-
feeCurrencies: [
|
|
88
|
-
{
|
|
89
|
-
coinDenom: "atom",
|
|
90
|
-
coinMinimalDenom: "uatom",
|
|
91
|
-
coinDecimals: 6,
|
|
92
|
-
coinGeckoId: "",
|
|
93
|
-
gasPriceStep: { low: 0.01, average: 0.025, high: 0.03 }
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
stakeCurrency: { coinDenom: "atom", coinMinimalDenom: "uatom", coinDecimals: 6 },
|
|
97
|
-
bip44: { coinType: 118 }
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
onSwitchChain: () => {
|
|
101
|
-
},
|
|
102
|
-
selectedChainId: "theta-testnet-001"
|
|
103
|
-
} : cosmosConnector.config,
|
|
104
|
-
[cosmosConnector]
|
|
105
|
-
);
|
|
106
|
-
const grazProviderProps = useMemo(() => {
|
|
107
|
-
var _a2, _b;
|
|
108
|
-
const connectorsGrazProviderProps = cosmosConnector == null ? void 0 : cosmosConnector.grazProviderProps;
|
|
109
|
-
return __spreadProps(__spreadValues({}, connectorsGrazProviderProps), {
|
|
110
|
-
walletConnect: __spreadProps(__spreadValues({}, connectorsGrazProviderProps == null ? void 0 : connectorsGrazProviderProps.walletConnect), {
|
|
111
|
-
options: __spreadProps(__spreadValues({}, (_a2 = connectorsGrazProviderProps == null ? void 0 : connectorsGrazProviderProps.walletConnect) == null ? void 0 : _a2.options), { projectId: (_b = walletConnect == null ? void 0 : walletConnect.projectId) != null ? _b : "" })
|
|
112
|
-
})
|
|
113
|
-
});
|
|
114
|
-
}, [cosmosConnector, walletConnect == null ? void 0 : walletConnect.projectId]);
|
|
115
|
-
const handleSwitchWallet = useCallback(({ address, error }) => {
|
|
116
|
-
if (error || !address) {
|
|
117
|
-
resetModalState();
|
|
118
|
-
}
|
|
119
|
-
}, []);
|
|
120
|
-
return /* @__PURE__ */ jsx(
|
|
121
|
-
EvmWalletWrapper,
|
|
122
|
-
{
|
|
123
|
-
evmProviderConfig,
|
|
124
|
-
wagmiProviderProps: (_a = evmConnector == null ? void 0 : evmConnector.wagmiProviderProps) != null ? _a : {},
|
|
125
|
-
onSwitchWallet: handleSwitchWallet,
|
|
126
|
-
children: /* @__PURE__ */ jsx(
|
|
127
|
-
CosmosWalletWrapper,
|
|
128
|
-
{
|
|
129
|
-
cosmosConnectorConfig: cosmosProviderConfig,
|
|
130
|
-
grazProviderProps,
|
|
131
|
-
onSwitchWallet: handleSwitchWallet,
|
|
132
|
-
children: /* @__PURE__ */ jsx(SolanaWalletWrapper, { onSwitchWallet: handleSwitchWallet, solanaProviderConfig, children: /* @__PURE__ */ jsx(ExternalWalletProvider, { children }) })
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
};
|
|
138
|
-
export {
|
|
139
|
-
ExternalWalletWrapper
|
|
140
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ParaSolanaProviderConfigNoWallets } from '../types/externalWalletProviders.js';
|
|
3
|
-
export declare const SolanaWalletWrapper: ({ children, solanaProviderConfig, onSwitchWallet, }: {
|
|
4
|
-
solanaProviderConfig: ParaSolanaProviderConfigNoWallets;
|
|
5
|
-
onSwitchWallet: ({ address, error }: {
|
|
6
|
-
address?: string;
|
|
7
|
-
error?: string;
|
|
8
|
-
}) => void;
|
|
9
|
-
} & PropsWithChildren) => string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../chunk-MMUBH76A.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { SolanaExternalWalletProvider } from "../providers/SolanaExternalWalletProvider.js";
|
|
5
|
-
import { useInternalClient } from "../hooks/utils/useInternalClient.js";
|
|
6
|
-
import { useStore } from "../stores/useStore.js";
|
|
7
|
-
import { SOLANA_WALLETS } from "@getpara/web-sdk";
|
|
8
|
-
const SolanaWalletWrapper = ({
|
|
9
|
-
children,
|
|
10
|
-
solanaProviderConfig,
|
|
11
|
-
onSwitchWallet
|
|
12
|
-
}) => {
|
|
13
|
-
const externalWalletsWithFullAuth = useStore((state) => state.externalWalletsWithFullAuth);
|
|
14
|
-
const para = useInternalClient();
|
|
15
|
-
const wallets = useStore((state) => state.externalWallets);
|
|
16
|
-
const connectionOnly = useStore((state) => state.connectionOnly);
|
|
17
|
-
const includeWalletVerification = useStore((state) => state.includeWalletVerification);
|
|
18
|
-
const isUsing = wallets.some((w) => w in SOLANA_WALLETS);
|
|
19
|
-
if (!solanaProviderConfig) {
|
|
20
|
-
if (isUsing) {
|
|
21
|
-
throw new Error("A valid solanaConnector config is required to use an external Solana wallet.");
|
|
22
|
-
}
|
|
23
|
-
return children;
|
|
24
|
-
}
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
SolanaExternalWalletProvider,
|
|
27
|
-
{
|
|
28
|
-
config: solanaProviderConfig,
|
|
29
|
-
internalConfig: {
|
|
30
|
-
onSwitchWallet,
|
|
31
|
-
para,
|
|
32
|
-
walletsWithFullAuth: externalWalletsWithFullAuth,
|
|
33
|
-
connectionOnly,
|
|
34
|
-
includeWalletVerification
|
|
35
|
-
},
|
|
36
|
-
isUsing,
|
|
37
|
-
wallets,
|
|
38
|
-
children
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
SolanaWalletWrapper
|
|
44
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Context } from 'react';
|
|
2
|
-
import { CosmosExternalWalletContextType, ParaCosmosProvider, WalletList } from '@getpara/cosmos-wallet-connectors';
|
|
3
|
-
export declare const getParaCosmosConnector: () => Promise<{
|
|
4
|
-
Provider: typeof ParaCosmosProvider | undefined;
|
|
5
|
-
context: Context<CosmosExternalWalletContextType>;
|
|
6
|
-
wallets: WalletList;
|
|
7
|
-
}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__async
|
|
4
|
-
} from "../../chunk-MMUBH76A.js";
|
|
5
|
-
import { CosmosExternalWalletContext } from "./stubs/CosmosExternalWalletContextStub.js";
|
|
6
|
-
import { getParaCosmosLib } from "./getParaCosmosLib.js";
|
|
7
|
-
const getParaCosmosConnector = () => __async(void 0, null, function* () {
|
|
8
|
-
let Provider = void 0, context = CosmosExternalWalletContext, wallets = [];
|
|
9
|
-
const { lib } = yield getParaCosmosLib();
|
|
10
|
-
if (lib) {
|
|
11
|
-
Provider = lib.ParaCosmosProvider;
|
|
12
|
-
context = lib.CosmosExternalWalletContext;
|
|
13
|
-
wallets = lib.allWallets;
|
|
14
|
-
}
|
|
15
|
-
return { Provider, context, wallets };
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
getParaCosmosConnector
|
|
19
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__async
|
|
4
|
-
} from "../../chunk-MMUBH76A.js";
|
|
5
|
-
const getParaCosmosLib = () => __async(void 0, null, function* () {
|
|
6
|
-
let lib;
|
|
7
|
-
try {
|
|
8
|
-
lib = yield import("@getpara/cosmos-wallet-connectors");
|
|
9
|
-
} catch (e) {
|
|
10
|
-
lib = void 0;
|
|
11
|
-
}
|
|
12
|
-
return { lib };
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
getParaCosmosLib
|
|
16
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Context } from 'react';
|
|
2
|
-
import { EvmExternalWalletContextType, ParaEvmProvider, WalletList } from '@getpara/evm-wallet-connectors';
|
|
3
|
-
export declare const getParaEvmConnector: () => Promise<{
|
|
4
|
-
Provider: typeof ParaEvmProvider | undefined;
|
|
5
|
-
context: Context<EvmExternalWalletContextType>;
|
|
6
|
-
wallets: WalletList;
|
|
7
|
-
}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__async
|
|
4
|
-
} from "../../chunk-MMUBH76A.js";
|
|
5
|
-
import { EvmExternalWalletContext } from "./stubs/EvmExternalWalletContextStub.js";
|
|
6
|
-
import { getParaEvmLib } from "./getParaEvmLib.js";
|
|
7
|
-
const getParaEvmConnector = () => __async(void 0, null, function* () {
|
|
8
|
-
let Provider = void 0, context = EvmExternalWalletContext, wallets = [];
|
|
9
|
-
const { lib } = yield getParaEvmLib();
|
|
10
|
-
if (lib) {
|
|
11
|
-
Provider = lib.ParaEvmProvider;
|
|
12
|
-
context = lib.EvmExternalWalletContext;
|
|
13
|
-
wallets = lib.allWallets;
|
|
14
|
-
}
|
|
15
|
-
return { Provider, context, wallets };
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
getParaEvmConnector
|
|
19
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__async
|
|
4
|
-
} from "../../chunk-MMUBH76A.js";
|
|
5
|
-
const getParaEvmLib = () => __async(void 0, null, function* () {
|
|
6
|
-
let lib;
|
|
7
|
-
try {
|
|
8
|
-
lib = yield import("@getpara/evm-wallet-connectors");
|
|
9
|
-
} catch (e) {
|
|
10
|
-
lib = void 0;
|
|
11
|
-
}
|
|
12
|
-
return { lib };
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
getParaEvmLib
|
|
16
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Context } from 'react';
|
|
2
|
-
import { ParaSolanaProvider, SolanaExternalWalletContextType, WalletList } from '@getpara/solana-wallet-connectors';
|
|
3
|
-
export declare const getParaSolanaConnector: () => Promise<{
|
|
4
|
-
Provider: typeof ParaSolanaProvider | undefined;
|
|
5
|
-
context: Context<SolanaExternalWalletContextType>;
|
|
6
|
-
wallets: WalletList;
|
|
7
|
-
}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__async
|
|
4
|
-
} from "../../chunk-MMUBH76A.js";
|
|
5
|
-
import { SolanaExternalWalletContext } from "./stubs/SolanaExternalWalletContextStub.js";
|
|
6
|
-
import { getParaSolanaLib } from "./getParaSolanaLib.js";
|
|
7
|
-
const getParaSolanaConnector = () => __async(void 0, null, function* () {
|
|
8
|
-
let Provider = void 0, context = SolanaExternalWalletContext, wallets = [];
|
|
9
|
-
const { lib } = yield getParaSolanaLib();
|
|
10
|
-
if (lib) {
|
|
11
|
-
Provider = lib.ParaSolanaProvider;
|
|
12
|
-
context = lib.SolanaExternalWalletContext;
|
|
13
|
-
wallets = lib.allWallets;
|
|
14
|
-
}
|
|
15
|
-
return { Provider, context, wallets };
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
getParaSolanaConnector
|
|
19
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__async
|
|
4
|
-
} from "../../chunk-MMUBH76A.js";
|
|
5
|
-
const getParaSolanaLib = () => __async(void 0, null, function* () {
|
|
6
|
-
let lib;
|
|
7
|
-
try {
|
|
8
|
-
lib = yield import("@getpara/solana-wallet-connectors");
|
|
9
|
-
} catch (e) {
|
|
10
|
-
lib = void 0;
|
|
11
|
-
}
|
|
12
|
-
return { lib };
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
getParaSolanaLib
|
|
16
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../chunk-MMUBH76A.js";
|
|
3
|
-
import { defaultCosmosExternalWallet } from "@getpara/react-common";
|
|
4
|
-
import { createContext } from "react";
|
|
5
|
-
const CosmosExternalWalletContext = createContext(defaultCosmosExternalWallet);
|
|
6
|
-
export {
|
|
7
|
-
CosmosExternalWalletContext
|
|
8
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../chunk-MMUBH76A.js";
|
|
3
|
-
import { createContext } from "react";
|
|
4
|
-
import { defaultEvmExternalWallet } from "@getpara/react-common";
|
|
5
|
-
const EvmExternalWalletContext = createContext(defaultEvmExternalWallet);
|
|
6
|
-
export {
|
|
7
|
-
EvmExternalWalletContext
|
|
8
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../chunk-MMUBH76A.js";
|
|
3
|
-
import { createContext } from "react";
|
|
4
|
-
import { defaultSolanaExternalWallet } from "@getpara/react-common";
|
|
5
|
-
const SolanaExternalWalletContext = createContext(defaultSolanaExternalWallet);
|
|
6
|
-
export {
|
|
7
|
-
SolanaExternalWalletContext
|
|
8
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const useSignUpOrLogIn: () => import("../../types/utils.js").CoreMethodMutationHook<"signUpOrLogIn">;
|
|
2
|
-
export declare const useVerifyNewAccount: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyNewAccount">;
|
|
3
|
-
export declare const useWaitForLogin: () => import("../../types/utils.js").CoreMethodMutationHook<"waitForLogin">;
|
|
4
|
-
export declare const useWaitForSignup: () => import("../../types/utils.js").CoreMethodMutationHook<"waitForSignup">;
|
|
5
|
-
export declare const useWaitForWalletCreation: () => import("../../types/utils.js").CoreMethodMutationHook<"waitForWalletCreation">;
|
|
6
|
-
export declare const useVerifyOAuth: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyOAuth">;
|
|
7
|
-
export declare const useVerifyFarcaster: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyFarcaster">;
|
|
8
|
-
export declare const useVerifyTelegram: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyTelegram">;
|
|
9
|
-
export declare const useLoginExternalWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"loginExternalWallet">;
|
|
10
|
-
export declare const useVerifyExternalWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyExternalWallet">;
|
|
11
|
-
export declare const useSetup2fa: () => import("../../types/utils.js").CoreMethodMutationHook<"setup2fa">;
|
|
12
|
-
export declare const useEnable2fa: () => import("../../types/utils.js").CoreMethodMutationHook<"enable2fa">;
|
|
13
|
-
export declare const useVerify2fa: () => import("../../types/utils.js").CoreMethodMutationHook<"verify2fa">;
|
|
14
|
-
export declare const useKeepSessionAlive: () => import("../../types/utils.js").CoreMethodMutationHook<"keepSessionAlive">;
|
|
15
|
-
export declare const useLogout: () => import("../../types/utils.js").CoreMethodMutationHook<"logout">;
|
|
16
|
-
export declare const useResendVerificationCode: () => import("../../types/utils.js").CoreMethodMutationHook<"resendVerificationCode">;
|
|
17
|
-
export declare const useCreateWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"createWallet">;
|
|
18
|
-
export declare const useCreateWalletPerType: () => import("../../types/utils.js").CoreMethodMutationHook<"createWalletPerType">;
|
|
19
|
-
export declare const useCreatePregenWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"createPregenWallet">;
|
|
20
|
-
export declare const useCreatePregenWalletPerType: () => import("../../types/utils.js").CoreMethodMutationHook<"createPregenWalletPerType">;
|
|
21
|
-
export declare const useClaimPregenWallets: () => import("../../types/utils.js").CoreMethodMutationHook<"claimPregenWallets">;
|
|
22
|
-
export declare const useHasPregenWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"hasPregenWallet">;
|
|
23
|
-
export declare const useUpdatePregenWalletIdentifier: () => import("../../types/utils.js").CoreMethodMutationHook<"updatePregenWalletIdentifier">;
|
|
24
|
-
export declare const useCreateGuestWallets: () => import("../../types/utils.js").CoreMethodMutationHook<"createGuestWallets">;
|
|
25
|
-
export declare const useSignMessage: () => import("../../types/utils.js").CoreMethodMutationHook<"signMessage">;
|
|
26
|
-
export declare const useSignTransaction: () => import("../../types/utils.js").CoreMethodMutationHook<"signTransaction">;
|
|
27
|
-
export declare const useIssueJwt: () => import("../../types/utils.js").CoreMethodMutationHook<"issueJwt">;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../chunk-MMUBH76A.js";
|
|
3
|
-
import * as actions from "../../actions/index.js";
|
|
4
|
-
import { generateCoreMutation } from "./utils.js";
|
|
5
|
-
const useSignUpOrLogIn = generateCoreMutation("signUpOrLogIn", actions.signUpOrLogIn);
|
|
6
|
-
const useVerifyNewAccount = generateCoreMutation("verifyNewAccount", actions.verifyNewAccount);
|
|
7
|
-
const useWaitForLogin = generateCoreMutation("waitForLogin", actions.waitForLogin);
|
|
8
|
-
const useWaitForSignup = generateCoreMutation("waitForSignup", actions.waitForSignup);
|
|
9
|
-
const useWaitForWalletCreation = generateCoreMutation("waitForWalletCreation", actions.waitForWalletCreation);
|
|
10
|
-
const useVerifyOAuth = generateCoreMutation("verifyOAuth", actions.verifyOAuth);
|
|
11
|
-
const useVerifyFarcaster = generateCoreMutation("verifyFarcaster", actions.verifyFarcaster);
|
|
12
|
-
const useVerifyTelegram = generateCoreMutation("verifyTelegram", actions.verifyTelegram);
|
|
13
|
-
const useLoginExternalWallet = generateCoreMutation("loginExternalWallet", actions.loginExternalWallet);
|
|
14
|
-
const useVerifyExternalWallet = generateCoreMutation("verifyExternalWallet", actions.verifyExternalWallet);
|
|
15
|
-
const useSetup2fa = generateCoreMutation("setup2fa", actions.setup2fa);
|
|
16
|
-
const useEnable2fa = generateCoreMutation("enable2fa", actions.enable2fa);
|
|
17
|
-
const useVerify2fa = generateCoreMutation("verify2fa", actions.verify2fa);
|
|
18
|
-
const useKeepSessionAlive = generateCoreMutation("keepSessionAlive", actions.keepSessionAlive);
|
|
19
|
-
const useLogout = generateCoreMutation("logout", actions.logout);
|
|
20
|
-
const useResendVerificationCode = generateCoreMutation("resendVerificationCode", actions.resendVerificationCode);
|
|
21
|
-
const useCreateWallet = generateCoreMutation("createWallet", actions.createWallet);
|
|
22
|
-
const useCreateWalletPerType = generateCoreMutation("createWalletPerType", actions.createWalletPerType);
|
|
23
|
-
const useCreatePregenWallet = generateCoreMutation("createPregenWallet", actions.createPregenWallet);
|
|
24
|
-
const useCreatePregenWalletPerType = generateCoreMutation(
|
|
25
|
-
"createPregenWalletPerType",
|
|
26
|
-
actions.createPregenWalletPerType
|
|
27
|
-
);
|
|
28
|
-
const useClaimPregenWallets = generateCoreMutation("claimPregenWallets", actions.claimPregenWallets);
|
|
29
|
-
const useHasPregenWallet = generateCoreMutation("hasPregenWallet", actions.hasPregenWallet);
|
|
30
|
-
const useUpdatePregenWalletIdentifier = generateCoreMutation(
|
|
31
|
-
"updatePregenWalletIdentifier",
|
|
32
|
-
actions.updatePregenWalletIdentifier
|
|
33
|
-
);
|
|
34
|
-
const useCreateGuestWallets = generateCoreMutation("createGuestWallets", actions.createGuestWallets);
|
|
35
|
-
const useSignMessage = generateCoreMutation("signMessage", actions.signMessage);
|
|
36
|
-
const useSignTransaction = generateCoreMutation("signTransaction", actions.signTransaction);
|
|
37
|
-
const useIssueJwt = generateCoreMutation("issueJwt", actions.issueJwt);
|
|
38
|
-
export {
|
|
39
|
-
useClaimPregenWallets,
|
|
40
|
-
useCreateGuestWallets,
|
|
41
|
-
useCreatePregenWallet,
|
|
42
|
-
useCreatePregenWalletPerType,
|
|
43
|
-
useCreateWallet,
|
|
44
|
-
useCreateWalletPerType,
|
|
45
|
-
useEnable2fa,
|
|
46
|
-
useHasPregenWallet,
|
|
47
|
-
useIssueJwt,
|
|
48
|
-
useKeepSessionAlive,
|
|
49
|
-
useLoginExternalWallet,
|
|
50
|
-
useLogout,
|
|
51
|
-
useResendVerificationCode,
|
|
52
|
-
useSetup2fa,
|
|
53
|
-
useSignMessage,
|
|
54
|
-
useSignTransaction,
|
|
55
|
-
useSignUpOrLogIn,
|
|
56
|
-
useUpdatePregenWalletIdentifier,
|
|
57
|
-
useVerify2fa,
|
|
58
|
-
useVerifyExternalWallet,
|
|
59
|
-
useVerifyFarcaster,
|
|
60
|
-
useVerifyNewAccount,
|
|
61
|
-
useVerifyOAuth,
|
|
62
|
-
useVerifyTelegram,
|
|
63
|
-
useWaitForLogin,
|
|
64
|
-
useWaitForSignup,
|
|
65
|
-
useWaitForWalletCreation
|
|
66
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../chunk-MMUBH76A.js";
|
|
3
|
-
import { generateStateHook } from "./utils.js";
|
|
4
|
-
export * from "./core.js";
|
|
5
|
-
export * from "./useLinkAccount.js";
|
|
6
|
-
const useCreateGuestWalletsState = generateStateHook("createGuestWallets");
|
|
7
|
-
export {
|
|
8
|
-
useCreateGuestWalletsState
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const useLinkAccount: () => {
|
|
2
|
-
linkAccount: (_: import("../../providers/AccountLinkProvider.js").ModalLinkAccountArgs) => Promise<void>;
|
|
3
|
-
error: string | null;
|
|
4
|
-
status: import("@tanstack/query-core").MutationStatus;
|
|
5
|
-
isPending: boolean;
|
|
6
|
-
isError: boolean;
|
|
7
|
-
isIdle: boolean;
|
|
8
|
-
isSuccess: boolean;
|
|
9
|
-
};
|