@privy-io/react-auth 1.98.4 → 1.99.0-beta-20250103194655

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.
Files changed (61) hide show
  1. package/dist/cjs/auth-flows/passkey.js +1 -1
  2. package/dist/cjs/auth-flows/telegram.js +1 -1
  3. package/dist/cjs/client.js +1 -1
  4. package/dist/cjs/components/LoginModal.js +1 -1
  5. package/dist/cjs/config.js +1 -1
  6. package/dist/cjs/connectors/embeddedProvider.js +1 -1
  7. package/dist/cjs/connectors/index.js +1 -1
  8. package/dist/cjs/constants.js +1 -1
  9. package/dist/cjs/embedded-wallets/solana/provider.js +1 -1
  10. package/dist/cjs/hooks/internal-context.js +1 -1
  11. package/dist/cjs/hooks/privy-provider.js +1 -1
  12. package/dist/cjs/hooks/useIdentityToken.js +1 -0
  13. package/dist/cjs/index.js +1 -1
  14. package/dist/cjs/paths.js +1 -1
  15. package/dist/cjs/privy-provider-DheaMuzQ.js +2 -0
  16. package/dist/cjs/screens/LandingScreen/PasskeyLink.js +1 -1
  17. package/dist/cjs/screens/PasskeySelectSignupOrLogin.js +1 -0
  18. package/dist/cjs/screens/PasskeyStatusScreen.js +1 -1
  19. package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreen.js +1 -1
  20. package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreenView.js +1 -1
  21. package/dist/cjs/screens/SendTransactionScreen/getStaticTransactionMetadata.js +1 -1
  22. package/dist/cjs/screens/index.js +1 -1
  23. package/dist/cjs/session.js +1 -1
  24. package/dist/dts/farcaster.d.mts +1 -1
  25. package/dist/dts/farcaster.d.ts +1 -1
  26. package/dist/dts/index.d.mts +26 -7
  27. package/dist/dts/index.d.ts +26 -7
  28. package/dist/dts/solana.d.mts +3 -3
  29. package/dist/dts/solana.d.ts +3 -3
  30. package/dist/dts/{types-BR6iorWt.d.mts → types-DV20FGOY.d.mts} +8 -4
  31. package/dist/dts/{types-BR6iorWt.d.ts → types-DV20FGOY.d.ts} +8 -4
  32. package/dist/dts/ui.d.mts +1 -1
  33. package/dist/dts/ui.d.ts +1 -1
  34. package/dist/dts/{useFundSolanaWallet-Dz8nYtDg.d.ts → useFundSolanaWallet-DGG3CjFi.d.mts} +1 -1
  35. package/dist/dts/{useFundSolanaWallet-Dz8nYtDg.d.mts → useFundSolanaWallet-DGG3CjFi.d.ts} +1 -1
  36. package/dist/esm/auth-flows/passkey.mjs +1 -1
  37. package/dist/esm/auth-flows/telegram.mjs +1 -1
  38. package/dist/esm/client.mjs +1 -1
  39. package/dist/esm/components/LoginModal.mjs +1 -1
  40. package/dist/esm/config.mjs +1 -1
  41. package/dist/esm/connectors/embeddedProvider.mjs +1 -1
  42. package/dist/esm/connectors/index.mjs +1 -1
  43. package/dist/esm/constants.mjs +1 -1
  44. package/dist/esm/embedded-wallets/solana/provider.mjs +1 -1
  45. package/dist/esm/hooks/internal-context.mjs +1 -1
  46. package/dist/esm/hooks/privy-provider.mjs +1 -1
  47. package/dist/esm/hooks/useIdentityToken.mjs +1 -0
  48. package/dist/esm/index.mjs +1 -1
  49. package/dist/esm/paths.mjs +1 -1
  50. package/dist/esm/privy-provider-DDr_nniJ.mjs +2 -0
  51. package/dist/esm/screens/LandingScreen/PasskeyLink.mjs +1 -1
  52. package/dist/esm/screens/PasskeySelectSignupOrLogin.mjs +1 -0
  53. package/dist/esm/screens/PasskeyStatusScreen.mjs +1 -1
  54. package/dist/esm/screens/SendTransactionScreen/SendTransactionScreen.mjs +1 -1
  55. package/dist/esm/screens/SendTransactionScreen/SendTransactionScreenView.mjs +1 -1
  56. package/dist/esm/screens/SendTransactionScreen/getStaticTransactionMetadata.mjs +1 -1
  57. package/dist/esm/screens/index.mjs +1 -1
  58. package/dist/esm/session.mjs +1 -1
  59. package/package.json +5 -5
  60. package/dist/cjs/privy-provider-zFh8lpI0.js +0 -2
  61. package/dist/esm/privy-provider-BnF-KW5M.mjs +0 -2
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("react"),n=require("viem"),i=require("@privy-io/js-sdk-core"),o=require("../../configuration/context.js"),s=require("../../connectors/errors.js"),t=require("../../embedded-wallets/rpc/index.js"),a=require("../../hooks/internal-context.js"),c=require("../../hooks/modal-context.js"),u=require("../../hooks/privy-context.js"),l=require("../../hooks/useGetTokenPrice.js"),d=require("../../lib/erc20/actions/getErc20TokenInfo.js"),p=require("../../lib/erc20/formatErc20TokenAmount.js"),q=require("../../lib/ethers.js"),m=require("../../utils/index.js"),j=require("../ErrorScreen.js"),h=require("../index.js"),g=require("./SendTransactionScreenView.js"),T=require("./TransactionErrorView.js"),f=require("./TransactionReceiptView.js"),y=require("./getStaticTransactionMetadata.js"),b=require("./usePrepareTransaction.js");require("../../config.js"),require("../../configuration/defaultClientConfig.js"),require("../../constants.js"),require("../../configuration/login-methods.js"),require("../../configuration/wallets.js"),require("../../connectors/chains/index.js"),require("../../connectors/chains/arbitrum.js"),require("../../connectors/chains/arbitrumSepolia.js"),require("../../connectors/chains/avalanche.js"),require("../../connectors/chains/avalancheFuji.js"),require("../../connectors/chains/base.js"),require("../../connectors/chains/baseSepolia.js"),require("../../connectors/chains/berachainArtio.js"),require("../../connectors/chains/celo.js"),require("../../connectors/chains/celoAlfajores.js"),require("../../connectors/chains/filecoin.js"),require("../../connectors/chains/filecoinCalibration.js"),require("../../connectors/chains/garnetHolesky.js"),require("../../connectors/chains/holesky.js"),require("../../connectors/chains/linea.js"),require("../../connectors/chains/lineaTestnet.js"),require("../../connectors/chains/lukso.js"),require("../../connectors/chains/mainnet.js"),require("../../connectors/chains/optimism.js"),require("../../connectors/chains/optimismSepolia.js"),require("../../connectors/chains/polygon.js"),require("../../connectors/chains/polygonAmoy.js"),require("../../connectors/chains/redstone.js"),require("../../connectors/chains/sepolia.js"),require("../../connectors/chains/zora.js"),require("../../connectors/chains/zoraSepolia.js"),require("../../connectors/chains/zoraTestnet.js"),require("../../connectors/chains/utils.js"),require("../../lib/solana/index.js"),require("../../theme.js"),require("tinycolor2"),require("../../lib/cybr53.js"),require("@ethersproject/logger"),require("../../errors.js"),require("ofetch"),require("@ethersproject/providers"),require("../../hooks/index.js"),require("../../components/PrefetchedImage.js"),require("../../hooks/useGetSolPrice.js"),require("../../connectors/get-legacy-injected-providers.js"),require("../../connectors/is-wallet-installed.js"),require("@ethersproject/bignumber"),require("@ethersproject/units"),require("@heroicons/react/24/outline/ExclamationTriangleIcon"),require("@heroicons/react/24/outline/PhoneIcon"),require("styled-components"),require("../../components/Button.js"),require("../../components/Loader.js"),require("../../components/CircleBorder.js"),require("../../components/ModalHeader.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("../../components/layout/StackedContainer.js"),require("../../embedded-wallets/errors.js"),require("../../embedded-wallets/types.js"),require("../../hooks/captcha-context.js"),require("../../svg/lock-closed.js"),require("@heroicons/react/24/outline"),require("../../components/ModalFooter.js"),require("../../svg/protected-by-privy.js"),require("../../components/ui/layout/Row.js"),require("../../components/ui/typography/ErrorMessage.js"),require("../../components/ui/typography/LabelSm.js"),require("../../components/ui/typography/Subtitle.js"),require("../../components/ui/typography/Title.js"),require("../../components/ui/typography/Value.js"),require("../../components/ui/animation/LoadingSkeleton.js"),require("../../components/ui/wallet/Address.js"),require("@heroicons/react/24/outline/CheckIcon"),require("@heroicons/react/24/outline/Square2StackIcon"),require("../../components/ui/wallet/WalletInfoCard.js"),require("../../components/ui/chips/Chip.js"),require("../../components/ui/layout/Column.js"),require("../../components/ui/typography/LabelXs.js"),require("../../components/ui/wallet/shared.js"),require("../LandingScreen/styles.js"),require("./TransactionDetail.js"),require("@ethersproject/address"),require("./useTransactionDetails.js"),require("@heroicons/react/24/outline/ClipboardDocumentCheckIcon"),require("@heroicons/react/24/outline/ClipboardDocumentIcon"),require("@heroicons/react/24/outline/ExclamationCircleIcon"),require("./EthersTransactionError.js"),require("../../components/Layouts.js"),require("../../components/ScreenHeader.js"),require("../../components/embedded-wallets/TransactionDetails.js"),require("../../components/embedded-wallets/DisplayInfoItem.js"),require("../../components/embedded-wallets/PriceDisplay.js"),require("../../lib/solana/transaction.js"),require("../../utils/buffer/readBigInt64LE.js"),require("../../components/embedded-wallets/TransactionTotal.js"),require("../../components/primitives/Accordion/index.js"),require("@heroicons/react/24/outline/ChevronDownIcon"),require("../../components/primitives/Accordion/AccordionContext.js"),require("../../components/embedded-wallets/WalletLink.js"),require("../../lib/deployAccount/actions/abis/deployAccount.js"),require("../../lib/erc20/actions/abis/approve.js"),require("../../lib/erc20/actions/abis/transfer.js"),require("../../lib/erc721/actions/abis/mint.js"),require("../../lib/erc721/actions/abis/safeTransferFrom.js"),require("../../lib/erc721/actions/abis/setApprovalForAll.js"),require("../../lib/erc721/actions/abis/transferFrom.js"),require("../../lib/erc1155/actions/abis/safeBatchTransferFrom.js"),require("../../lib/erc1155/actions/abis/safeTransferFrom.js");let I=new s.PrivyProviderRpcError(new s.ProviderRpcError("There was an issue preparing your transaction",i.ProviderErrors.E32603_DEFAULT_INTERNAL_ERROR.eipCode)),v=(e,r)=>e?.sendTransaction?"transactionRequest"in e.sendTransaction?e.sendTransaction.transactionRequest:e.sendTransaction.transactionRequests[r]:void 0;exports.SendTransactionScreen=()=>{let E,{data:S,onUserCloseViaDialogOrKeybindRef:C,setModalData:w,navigate:x}=c.usePrivyModal(),{rpcConfig:k,chains:A,closePrivyModal:P,walletProxy:R}=a.usePrivyInternal(),{getAccessToken:F,user:D}=u.usePrivyContext(),N=o.useAppConfig(),[O,L]=r.useState(0),M=(K=S,K?.sendTransaction?"transactionRequest"in K.sendTransaction?0:K.sendTransaction.transactionRequests.length-1:0),[W,V]=r.useState(v(S,O)),[B,G]=r.useState(null),[_,H]=r.useState(),[U,Q]=r.useState(!1),[z,J]=r.useState(null),[X,$]=r.useState(null);var K;if(!W||!S?.sendTransaction||!S?.sendTransaction.transactingWallet)/*#__PURE__*/return e.jsx(j.ErrorScreenView,{error:Error("Invalid transaction request"),onClick:()=>{S?.sendTransaction?.onFailure(I),P({shouldCallAuthOnSuccess:!1})}});let{entropyId:Y,entropyIdVerifier:Z,transactingWallet:ee}=S.sendTransaction,re=r.useMemo((()=>A.find((e=>Number(e.id)===Number(W.chainId)))),[W.chainId]),ne=re?.nativeCurrency.symbol??"ETH",ie=r.useMemo((()=>y.getStaticTransactionMetadata(W.data,!!N.embeddedWallets.extendedCalldataDecoding)),[W.data]),{action:oe,isErc20Ish:se,isNFTIsh:te}=ie;r.useEffect((()=>{W.to&&re&&se&&d.getErc20TokenInfo({address:W.to,chain:re,rpcConfig:N.rpcConfig,privyAppId:N.id}).then(G).catch(console.error)}),[W.to,re]);let{tokenPrice:ae,isTokenPriceLoading:ce}=l.useGetTokenPrice(W.chainId),ue=r.useMemo((()=>m.getJsonRpcProvider(Number(W.chainId),A,k,{appId:N.id})),[W.chainId,k]),le=b.usePrepareTransaction(W,ee,ue);r.useEffect((()=>{V(v(S,O))}),[O]),r.useEffect((()=>{S.sendTransaction?.getIsSponsored?S.sendTransaction.getIsSponsored().then(H).catch(console.error):H(!1)}),[S.sendTransaction.getIsSponsored]);let de=()=>{if(!U)return z?S?.sendTransaction?.onSuccess(z.response):X||le?.errors[0]?S?.sendTransaction?.onFailure(X??le?.errors[0]??I):S?.sendTransaction?.onFailure(new s.PrivyProviderRpcError(new s.ProviderRpcError("The user rejected the request",i.ProviderErrors.E4001_USER_REJECTED_REQUEST.eipCode))),P({shouldCallAuthOnSuccess:!1})};C.current=de;let pe=!!(S.funding&&S.funding.supportedOptions.length>0),qe="fiat-currency"===N.embeddedWallets.priceDisplay.primary,me=i.QuantityToBigNumber(le?.tx.value??0).add(i.QuantityToBigNumber(le?.totalGasEstimate?.toBigInt()??0)).toHexString(),je=q.getNativeCurrencyFromWei(me,ne),he=qe&&ae?q.getDollarsFromWei(me,ae):void 0,ge=q.getNativeCurrencyFromWei(le?.totalGasEstimate?.toString()??0,ne),Te=qe&&ae?q.getDollarsFromWei(le?.totalGasEstimate?.toString()??0,ae):void 0,fe=q.getNativeCurrencyFromWei(le?.balance?.toString()??0,ne,void 0,!0),ye=qe&&ae?q.getDollarsFromWei(le?.balance?.toString()??0,ae):void 0,be=S.sendTransaction?.uiOptions?.transactionInfo?.title;be||(be="approve"===oe?se?"Confirm address":"Confirm action":`Approve ${oe}`);let Ie=S.sendTransaction?.uiOptions?.description||`${N.name} wants your permission to approve the following transaction.`,ve=S.sendTransaction?.uiOptions?.transactionInfo?.contractInfo?.imgUrl?/*#__PURE__*/e.jsx("img",{src:S.sendTransaction.uiOptions.transactionInfo.contractInfo.imgUrl,alt:S.sendTransaction.uiOptions.transactionInfo.contractInfo.imgAltText}):null,Ee=!(!le||le.errors[0]||le.hasFunds||!1!==_),Se=Ee&&pe,Ce=Se?"Add funds":S.sendTransaction?.uiOptions?.buttonText||(O<M?"Continue":"Approve");if(z?.receipt)/*#__PURE__*/return e.jsx(f.TransactionReceiptView,{txn:le?.tx??W,onClose:de,receipt:z.receipt,transactionInfo:S.sendTransaction?.uiOptions.transactionInfo,tokenPrice:ae,tokenSymbol:ne,l1GasEstimate:le?.l1ExecutionFeeEstimate?.toString(),receiptHeader:S.sendTransaction?.uiOptions.successHeader,receiptDescription:S.sendTransaction?.uiOptions.successDescription});if(X)/*#__PURE__*/return e.jsx(T.TransactionErrorView,{transactionError:X,network:"ethereum",chainId:le?.tx.chainId??W.chainId,onClose:de,onRetry:({resetNonce:e})=>{$(null);let r={...le?.tx??W};e&&(r.nonce=void 0),V(r)}});let we=0!==M&&"number"==typeof O&&0!==O?()=>{L(O-1)}:void 0;return"amount"in ie&&ie.amount&&(ie.isNFTIsh?E=ie.amount.toString():B&&(E=p.formatErc20TokenAmount({amount:ie.amount,decimals:B.decimals}))),/*#__PURE__*/e.jsx(g.SendTransactionScreenView,{transactionIndex:O,onBack:we,maxIndex:M,disabled:Ee&&!pe,isSubmitting:U,submitError:X,isPreparing:!le,isTokenPriceLoading:ce,isTokenContractInfoLoading:!te&&!B,prepareError:le?.errors[0],symbol:B?.symbol,chain:re,img:ve,title:be,subtitle:Ie,total:W.value?he??je:void 0,txValue:W.value,fee:Te??ge,isSponsored:_,from:ee?.address??"",to:W.to,network:N.chains.find((e=>e.id===W.chainId))?.name??"",transactionDetails:{...ie,formattedAmount:E},cta:Ce,missingFunds:Ee,action:oe,balance:ye??fe,onClose:de,onClick:Se?async()=>{if(!ee)return;if(!pe)throw Error("Funding wallet is not enabled");let e=h.ModalScreen.FUNDING_METHOD_SELECTION_SCREEN;w({...S,funding:{...S.funding,methodScreen:e,chainType:"ethereum",amount:n.formatEther(BigInt(le?.tx.value??0)+BigInt(le?.totalGasEstimate?.toString()??0)),chain:re}}),x(e)}:async()=>{if(O<M)L(O+1);else{Q(!0);try{let e=await F();if(U||!e||!ee||!R||!D)return;let r=S?.sendTransaction?.onConfirm?await S.sendTransaction.onConfirm().then((e=>ue.getTransaction(e))):await t.sendTransaction({accessToken:e,transactingWallet:ee,entropyId:Y,entropyIdVerifier:Z,walletProxy:R,transactionRequest:le?.tx??W,provider:ue,requesterAppId:S.sendTransaction?.requesterAppId}),n=await r.wait();J({receipt:t.formatReceipt(n),response:r})}catch(e){console.warn({transaction:le?.tx??W,error:e}),$(e)}finally{Q(!1)}}}})};
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("react"),n=require("viem"),i=require("@privy-io/js-sdk-core"),o=require("../../configuration/context.js"),s=require("../../connectors/errors.js"),t=require("../../embedded-wallets/rpc/index.js"),a=require("../../hooks/internal-context.js"),c=require("../../hooks/modal-context.js"),u=require("../../hooks/privy-context.js"),l=require("../../hooks/useGetTokenPrice.js"),d=require("../../lib/erc20/actions/getErc20TokenInfo.js"),p=require("../../lib/erc20/formatErc20TokenAmount.js"),q=require("../../lib/ethers.js"),m=require("../../utils/index.js"),j=require("../ErrorScreen.js"),h=require("../index.js"),g=require("./SendTransactionScreenView.js"),T=require("./TransactionErrorView.js"),f=require("./TransactionReceiptView.js"),y=require("./getStaticTransactionMetadata.js"),b=require("./usePrepareTransaction.js");require("../../config.js"),require("../../configuration/defaultClientConfig.js"),require("../../constants.js"),require("../../configuration/login-methods.js"),require("../../configuration/wallets.js"),require("../../connectors/chains/index.js"),require("../../connectors/chains/arbitrum.js"),require("../../connectors/chains/arbitrumSepolia.js"),require("../../connectors/chains/avalanche.js"),require("../../connectors/chains/avalancheFuji.js"),require("../../connectors/chains/base.js"),require("../../connectors/chains/baseSepolia.js"),require("../../connectors/chains/berachainArtio.js"),require("../../connectors/chains/celo.js"),require("../../connectors/chains/celoAlfajores.js"),require("../../connectors/chains/filecoin.js"),require("../../connectors/chains/filecoinCalibration.js"),require("../../connectors/chains/garnetHolesky.js"),require("../../connectors/chains/holesky.js"),require("../../connectors/chains/linea.js"),require("../../connectors/chains/lineaTestnet.js"),require("../../connectors/chains/lukso.js"),require("../../connectors/chains/mainnet.js"),require("../../connectors/chains/optimism.js"),require("../../connectors/chains/optimismSepolia.js"),require("../../connectors/chains/polygon.js"),require("../../connectors/chains/polygonAmoy.js"),require("../../connectors/chains/redstone.js"),require("../../connectors/chains/sepolia.js"),require("../../connectors/chains/zora.js"),require("../../connectors/chains/zoraSepolia.js"),require("../../connectors/chains/zoraTestnet.js"),require("../../connectors/chains/utils.js"),require("../../lib/solana/index.js"),require("../../theme.js"),require("tinycolor2"),require("../../lib/cybr53.js"),require("@ethersproject/logger"),require("../../errors.js"),require("ofetch"),require("@ethersproject/providers"),require("../../hooks/index.js"),require("../../components/PrefetchedImage.js"),require("../../hooks/useGetSolPrice.js"),require("../../connectors/get-legacy-injected-providers.js"),require("../../connectors/is-wallet-installed.js"),require("@ethersproject/bignumber"),require("@ethersproject/units"),require("@heroicons/react/24/outline/ExclamationTriangleIcon"),require("@heroicons/react/24/outline/PhoneIcon"),require("styled-components"),require("../../components/Button.js"),require("../../components/Loader.js"),require("../../components/CircleBorder.js"),require("../../components/ModalHeader.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("../../components/layout/StackedContainer.js"),require("../../embedded-wallets/errors.js"),require("../../embedded-wallets/types.js"),require("../../hooks/captcha-context.js"),require("../../svg/lock-closed.js"),require("@heroicons/react/24/outline"),require("../../components/ModalFooter.js"),require("../../svg/protected-by-privy.js"),require("../../components/ui/layout/Row.js"),require("../../components/ui/typography/ErrorMessage.js"),require("../../components/ui/typography/LabelSm.js"),require("../../components/ui/typography/Subtitle.js"),require("../../components/ui/typography/Title.js"),require("../../components/ui/typography/Value.js"),require("../../components/ui/animation/LoadingSkeleton.js"),require("../../components/ui/wallet/Address.js"),require("@heroicons/react/24/outline/CheckIcon"),require("@heroicons/react/24/outline/Square2StackIcon"),require("../../components/ui/wallet/WalletInfoCard.js"),require("../../components/ui/chips/Chip.js"),require("../../components/ui/layout/Column.js"),require("../../components/ui/typography/LabelXs.js"),require("../../components/ui/wallet/shared.js"),require("../LandingScreen/styles.js"),require("./TransactionDetail.js"),require("@ethersproject/address"),require("./useTransactionDetails.js"),require("@heroicons/react/24/outline/ClipboardDocumentCheckIcon"),require("@heroicons/react/24/outline/ClipboardDocumentIcon"),require("@heroicons/react/24/outline/ExclamationCircleIcon"),require("./EthersTransactionError.js"),require("../../components/Layouts.js"),require("../../components/ScreenHeader.js"),require("../../components/embedded-wallets/TransactionDetails.js"),require("../../components/embedded-wallets/DisplayInfoItem.js"),require("../../components/embedded-wallets/PriceDisplay.js"),require("../../lib/solana/transaction.js"),require("../../utils/buffer/readBigInt64LE.js"),require("../../components/embedded-wallets/TransactionTotal.js"),require("../../components/primitives/Accordion/index.js"),require("@heroicons/react/24/outline/ChevronDownIcon"),require("../../components/primitives/Accordion/AccordionContext.js"),require("../../components/embedded-wallets/WalletLink.js"),require("../../lib/deployAccount/actions/abis/deployAccount.js"),require("../../lib/erc20/actions/abis/approve.js"),require("../../lib/erc20/actions/abis/transfer.js"),require("../../lib/erc721/actions/abis/mint.js"),require("../../lib/erc721/actions/abis/safeTransferFrom.js"),require("../../lib/erc721/actions/abis/setApprovalForAll.js"),require("../../lib/erc721/actions/abis/transferFrom.js"),require("../../lib/erc1155/actions/abis/safeBatchTransferFrom.js"),require("../../lib/erc1155/actions/abis/safeTransferFrom.js");let I=new s.PrivyProviderRpcError(new s.ProviderRpcError("There was an issue preparing your transaction",i.ProviderErrors.E32603_DEFAULT_INTERNAL_ERROR.eipCode)),E=(e,r)=>e?.sendTransaction?"transactionRequest"in e.sendTransaction?e.sendTransaction.transactionRequest:e.sendTransaction.transactionRequests[r]:void 0;exports.SendTransactionScreen=()=>{let v,{data:S,onUserCloseViaDialogOrKeybindRef:C,setModalData:w,navigate:k}=c.usePrivyModal(),{rpcConfig:x,chains:A,closePrivyModal:P,walletProxy:R}=a.usePrivyInternal(),{getAccessToken:F,user:D}=u.usePrivyContext(),N=o.useAppConfig(),[M,O]=r.useState(0),L=(K=S,K?.sendTransaction?"transactionRequest"in K.sendTransaction?0:K.sendTransaction.transactionRequests.length-1:0),[W,V]=r.useState(E(S,M)),[B,G]=r.useState(null),[_,H]=r.useState(),[U,Q]=r.useState(!1),[z,J]=r.useState(null),[X,$]=r.useState(null);var K;if(!W||!S?.sendTransaction||!S?.sendTransaction.transactingWallet)/*#__PURE__*/return e.jsx(j.ErrorScreenView,{error:Error("Invalid transaction request"),onClick:()=>{S?.sendTransaction?.onFailure(I),P({shouldCallAuthOnSuccess:!1})}});let{entropyId:Y,entropyIdVerifier:Z,transactingWallet:ee}=S.sendTransaction,re=r.useMemo((()=>A.find((e=>Number(e.id)===Number(W.chainId)))),[W.chainId]),ne=re?.nativeCurrency.symbol??"ETH",ie=r.useMemo((()=>y.getStaticTransactionMetadata(W.data,!!N.embeddedWallets.extendedCalldataDecoding)),[W.data]),{action:oe,isErc20Ish:se,isNFTIsh:te}=ie,{toAddress:ae,tokenAddress:ce}=r.useMemo((()=>({toAddress:ie.isErc20Ish?ie.transferTo:W.to,tokenAddress:ie.isErc20Ish?W.to:void 0})),[ie]);r.useEffect((()=>{W.to&&re&&se&&d.getErc20TokenInfo({address:W.to,chain:re,rpcConfig:N.rpcConfig,privyAppId:N.id}).then(G).catch(console.error)}),[W.to,re]);let{tokenPrice:ue,isTokenPriceLoading:le}=l.useGetTokenPrice(W.chainId),de=r.useMemo((()=>m.getJsonRpcProvider(Number(W.chainId),A,x,{appId:N.id})),[W.chainId,x]),pe=b.usePrepareTransaction(W,ee,de);r.useEffect((()=>{V(E(S,M))}),[M]),r.useEffect((()=>{S.sendTransaction?.getIsSponsored?S.sendTransaction.getIsSponsored().then(H).catch(console.error):H(!1)}),[S.sendTransaction.getIsSponsored]);let qe=()=>{if(!U)return z?S?.sendTransaction?.onSuccess(z.response):X||pe?.errors[0]?S?.sendTransaction?.onFailure(X??pe?.errors[0]??I):S?.sendTransaction?.onFailure(new s.PrivyProviderRpcError(new s.ProviderRpcError("The user rejected the request",i.ProviderErrors.E4001_USER_REJECTED_REQUEST.eipCode))),P({shouldCallAuthOnSuccess:!1})};C.current=qe;let me=!!(S.funding&&S.funding.supportedOptions.length>0),je="fiat-currency"===N.embeddedWallets.priceDisplay.primary,he=i.QuantityToBigNumber(pe?.tx.value??0).add(i.QuantityToBigNumber(pe?.totalGasEstimate?.toBigInt()??0)).toHexString(),ge=q.getNativeCurrencyFromWei(he,ne),Te=je&&ue?q.getDollarsFromWei(he,ue):void 0,fe=q.getNativeCurrencyFromWei(pe?.totalGasEstimate?.toString()??0,ne),ye=je&&ue?q.getDollarsFromWei(pe?.totalGasEstimate?.toString()??0,ue):void 0,be=q.getNativeCurrencyFromWei(pe?.balance?.toString()??0,ne,void 0,!0),Ie=je&&ue?q.getDollarsFromWei(pe?.balance?.toString()??0,ue):void 0,Ee=S.sendTransaction?.uiOptions?.transactionInfo?.title;Ee||(Ee="approve"===oe?se?"Confirm address":"Confirm action":`Approve ${oe}`);let ve=S.sendTransaction?.uiOptions?.description||`${N.name} wants your permission to approve the following transaction.`,Se=S.sendTransaction?.uiOptions?.transactionInfo?.contractInfo?.imgUrl?/*#__PURE__*/e.jsx("img",{src:S.sendTransaction.uiOptions.transactionInfo.contractInfo.imgUrl,alt:S.sendTransaction.uiOptions.transactionInfo.contractInfo.imgAltText}):null,Ce=!(!pe||pe.errors[0]||pe.hasFunds||!1!==_),we=Ce&&me,ke=we?"Add funds":S.sendTransaction?.uiOptions?.buttonText||(M<L?"Continue":"Approve");if(z?.receipt)/*#__PURE__*/return e.jsx(f.TransactionReceiptView,{txn:pe?.tx??W,onClose:qe,receipt:z.receipt,transactionInfo:S.sendTransaction?.uiOptions.transactionInfo,tokenPrice:ue,tokenSymbol:ne,l1GasEstimate:pe?.l1ExecutionFeeEstimate?.toString(),receiptHeader:S.sendTransaction?.uiOptions.successHeader,receiptDescription:S.sendTransaction?.uiOptions.successDescription});if(X)/*#__PURE__*/return e.jsx(T.TransactionErrorView,{transactionError:X,network:"ethereum",chainId:pe?.tx.chainId??W.chainId,onClose:qe,onRetry:({resetNonce:e})=>{$(null);let r={...pe?.tx??W};e&&(r.nonce=void 0),V(r)}});let xe=0!==L&&"number"==typeof M&&0!==M?()=>{O(M-1)}:void 0;return"amount"in ie&&ie.amount&&(ie.isNFTIsh?v=ie.amount.toString():B&&(v=p.formatErc20TokenAmount({amount:ie.amount,decimals:B.decimals}))),/*#__PURE__*/e.jsx(g.SendTransactionScreenView,{transactionIndex:M,onBack:xe,maxIndex:L,disabled:Ce&&!me,isSubmitting:U,submitError:X,isPreparing:!pe,isTokenPriceLoading:le,isTokenContractInfoLoading:!te&&!B,prepareError:pe?.errors[0],symbol:B?.symbol,chain:re,img:Se,title:Ee,subtitle:ve,total:W.value?Te??ge:void 0,txValue:W.value,fee:ye??fe,isSponsored:_,from:ee?.address??"",to:ae,tokenAddress:ce,network:N.chains.find((e=>e.id===W.chainId))?.name??"",transactionDetails:{...ie,formattedAmount:v},cta:ke,missingFunds:Ce,action:oe,balance:Ie??be,onClose:qe,onClick:we?async()=>{if(!ee)return;if(!me)throw Error("Funding wallet is not enabled");let e=h.ModalScreen.FUNDING_METHOD_SELECTION_SCREEN;w({...S,funding:{...S.funding,methodScreen:e,chainType:"ethereum",amount:n.formatEther(BigInt(pe?.tx.value??0)+BigInt(pe?.totalGasEstimate?.toString()??0)),chain:re}}),k(e)}:async()=>{if(M<L)O(M+1);else{Q(!0);try{let e=await F();if(U||!e||!ee||!R||!D)return;let r=S?.sendTransaction?.onConfirm?await S.sendTransaction.onConfirm().then((e=>de.getTransaction(e))):await t.sendTransaction({accessToken:e,transactingWallet:ee,entropyId:Y,entropyIdVerifier:Z,walletProxy:R,transactionRequest:pe?.tx??W,provider:de,requesterAppId:S.sendTransaction?.requesterAppId}),n=await r.wait();J({receipt:t.formatReceipt(n),response:r})}catch(e){console.warn({transaction:pe?.tx??W,error:e}),$(e)}finally{Q(!1)}}}})};
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("@heroicons/react/24/outline"),n=require("styled-components"),s=require("../../components/Button.js"),i=require("../../components/ModalFooter.js"),o=require("../../components/ModalHeader.js"),a=require("../../components/ui/layout/Row.js"),t=require("../../components/ui/typography/ErrorMessage.js"),c=require("../../components/ui/typography/LabelSm.js"),l=require("../../components/ui/typography/Subtitle.js"),u=require("../../components/ui/typography/Title.js"),d=require("../../components/ui/typography/Value.js"),j=require("../../components/ui/wallet/Address.js"),h=require("../../components/ui/wallet/WalletInfoCard.js"),m=require("../LandingScreen/styles.js"),p=require("./TransactionDetail.js"),q=require("./useTransactionDetails.js");require("../../components/Loader.js"),require("../../svg/protected-by-privy.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("../../configuration/context.js"),require("react"),require("../../config.js"),require("../../configuration/defaultClientConfig.js"),require("../../constants.js"),require("../../configuration/login-methods.js"),require("../../configuration/wallets.js"),require("../../connectors/chains/index.js"),require("../../connectors/chains/arbitrum.js"),require("../../connectors/chains/arbitrumSepolia.js"),require("../../connectors/chains/avalanche.js"),require("../../connectors/chains/avalancheFuji.js"),require("../../connectors/chains/base.js"),require("../../connectors/chains/baseSepolia.js"),require("../../connectors/chains/berachainArtio.js"),require("../../connectors/chains/celo.js"),require("../../connectors/chains/celoAlfajores.js"),require("../../connectors/chains/filecoin.js"),require("../../connectors/chains/filecoinCalibration.js"),require("../../connectors/chains/garnetHolesky.js"),require("../../connectors/chains/holesky.js"),require("../../connectors/chains/linea.js"),require("../../connectors/chains/lineaTestnet.js"),require("../../connectors/chains/lukso.js"),require("../../connectors/chains/mainnet.js"),require("../../connectors/chains/optimism.js"),require("../../connectors/chains/optimismSepolia.js"),require("../../connectors/chains/polygon.js"),require("../../connectors/chains/polygonAmoy.js"),require("../../connectors/chains/redstone.js"),require("../../connectors/chains/sepolia.js"),require("../../connectors/chains/zora.js"),require("../../connectors/chains/zoraSepolia.js"),require("../../connectors/chains/zoraTestnet.js"),require("../../connectors/chains/utils.js"),require("../../lib/solana/index.js"),require("../../theme.js"),require("tinycolor2"),require("../../lib/cybr53.js"),require("../../hooks/internal-context.js"),require("../../hooks/index.js"),require("../../components/ui/animation/LoadingSkeleton.js"),require("@heroicons/react/24/outline/CheckIcon"),require("@heroicons/react/24/outline/Square2StackIcon"),require("../../utils/index.js"),require("@ethersproject/providers"),require("../../connectors/get-legacy-injected-providers.js"),require("../../connectors/is-wallet-installed.js"),require("../../errors.js"),require("ofetch"),require("../../components/ui/chips/Chip.js"),require("../../components/ui/layout/Column.js"),require("../../components/ui/typography/LabelXs.js"),require("../../components/ui/wallet/shared.js"),require("@ethersproject/address");const x=({transactionIndex:e,maxIndex:r})=>"number"!=typeof e||0===r?"":` (${e+1} / ${r+1})`;let g=/*#__PURE__*/n.styled(h.WalletInfoCard).withConfig({displayName:"StyledWalletInfoCard",componentId:"sc-3f0b455d-0"})(["",""],(e=>e.$useSmallMargins?"margin-top: 0.5rem;":"margin-top: 2rem;")),y="There was an error preparing your transaction. Your transaction request will likely fail.",b=/*#__PURE__*/n.styled.div.withConfig({displayName:"ImageContainer",componentId:"sc-3f0b455d-1"})(["display:flex;width:100%;justify-content:center;max-height:40px;> img{object-fit:contain;border-radius:var(--privy-border-radius-sm);}"]);exports.SendTransactionScreenView=({img:n,submitError:h,prepareError:f,onClose:w,action:S,title:I,subtitle:k,total:C,txValue:T,to:L,network:v,missingFunds:A,fee:M,from:D,cta:R,disabled:V,chain:E,isSubmitting:F,isPreparing:$,isTokenPriceLoading:N,isTokenContractInfoLoading:B,isSponsored:P,symbol:z,balance:H,onClick:W,transactionDetails:X,transactionIndex:Y,maxIndex:G,onBack:Q,chainName:J})=>{let{showTransactionDetails:K,setShowTransactionDetails:O,hasMoreDetails:U,isErc20Ish:Z}=q.useTransactionDetails(X);/*#__PURE__*/return e.jsxs(e.Fragment,{children:[/*#__PURE__*/e.jsx(o.ModalHeader,{onClose:w,backFn:Q}),n&&/*#__PURE__*/e.jsx(b,{children:n}),/*#__PURE__*/e.jsxs(u.Title,{style:{marginTop:n?"1.5rem":0},children:[I,/*#__PURE__*/e.jsx(x,{maxIndex:G,transactionIndex:Y})]}),/*#__PURE__*/e.jsx(l.Subtitle,{children:k}),/*#__PURE__*/e.jsxs(a.Rows,{style:{marginTop:"2rem"},children:[Z&&/*#__PURE__*/e.jsxs(e.Fragment,{children:["approve"===S&&/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Action"}),/*#__PURE__*/e.jsx(d.Value,{children:X?.action})]}),/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Amount"}),/*#__PURE__*/e.jsxs(d.Value,{$isLoading:Z&&B,children:[X?.formattedAmount," ",z]})]})]}),C&&/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Total"}),/*#__PURE__*/e.jsx(d.Value,{$isLoading:$||N,children:C})]}),X&&"spender"in X&&X?.spender?/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Spender"}),/*#__PURE__*/e.jsx(d.Value,{children:/*#__PURE__*/e.jsx(j.Address,{address:X.spender,url:E?.blockExplorers?.default?.url,showCopyIcon:!1})})]}):null,L&&/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"To"}),/*#__PURE__*/e.jsx(d.Value,{children:/*#__PURE__*/e.jsx(j.Address,{address:L,url:E?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Network"}),/*#__PURE__*/e.jsx(d.Value,{children:v})]}),/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Estimated fee"}),/*#__PURE__*/e.jsx(d.Value,{$isLoading:$||N||void 0===P,children:P?"Sponsored":M})]}),U&&/*#__PURE__*/e.jsxs(e.Fragment,{children:[/*#__PURE__*/e.jsx(a.Row,{className:"cursor-pointer",onClick:()=>O(!K),children:/*#__PURE__*/e.jsxs(c.LabelSmPrimary,{className:"flex items-center gap-x-1",children:["Details"," ",/*#__PURE__*/e.jsx(r.ChevronDownIcon,{style:{width:"0.75rem",marginLeft:"0.25rem",transform:K?"rotate(180deg)":void 0}})]})}),K&&X&&/*#__PURE__*/e.jsx(p.TransactionDetail,{action:S,chain:E,transactionDetails:X,isTokenContractInfoLoading:B,symbol:z})]})]}),/*#__PURE__*/e.jsx(m.Grow,{}),h?/*#__PURE__*/e.jsx(t.ErrorMessage,{style:{marginTop:"2rem"},children:h.message}):f?/*#__PURE__*/e.jsx(t.ErrorMessage,{style:{marginTop:"2rem"},children:y}):null,/*#__PURE__*/e.jsx(g,{$useSmallMargins:!(!f&&!h),title:Number(T)>0?void 0:!1!==P?"Your wallet":void 0,address:D,balance:H,isLoading:$||N,errMsg:$||f||h||!A?void 0:`Add funds on ${E?.name??J} to complete transaction.`}),/*#__PURE__*/e.jsx(s.PrimaryButton,{style:{marginTop:"1rem"},loading:F,disabled:V||$,onClick:W,children:R}),/*#__PURE__*/e.jsx(i.BlobbyFooter,{})]})},exports.TransactionIndex=x;
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("@heroicons/react/24/outline"),s=require("styled-components"),n=require("../../components/Button.js"),i=require("../../components/ModalFooter.js"),o=require("../../components/ModalHeader.js"),a=require("../../components/ui/layout/Row.js"),t=require("../../components/ui/typography/ErrorMessage.js"),c=require("../../components/ui/typography/LabelSm.js"),l=require("../../components/ui/typography/Subtitle.js"),u=require("../../components/ui/typography/Title.js"),d=require("../../components/ui/typography/Value.js"),j=require("../../components/ui/wallet/Address.js"),h=require("../../components/ui/wallet/WalletInfoCard.js"),m=require("../LandingScreen/styles.js"),p=require("./TransactionDetail.js"),q=require("./useTransactionDetails.js");require("../../components/Loader.js"),require("../../svg/protected-by-privy.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("../../configuration/context.js"),require("react"),require("../../config.js"),require("../../configuration/defaultClientConfig.js"),require("../../constants.js"),require("../../configuration/login-methods.js"),require("../../configuration/wallets.js"),require("../../connectors/chains/index.js"),require("../../connectors/chains/arbitrum.js"),require("../../connectors/chains/arbitrumSepolia.js"),require("../../connectors/chains/avalanche.js"),require("../../connectors/chains/avalancheFuji.js"),require("../../connectors/chains/base.js"),require("../../connectors/chains/baseSepolia.js"),require("../../connectors/chains/berachainArtio.js"),require("../../connectors/chains/celo.js"),require("../../connectors/chains/celoAlfajores.js"),require("../../connectors/chains/filecoin.js"),require("../../connectors/chains/filecoinCalibration.js"),require("../../connectors/chains/garnetHolesky.js"),require("../../connectors/chains/holesky.js"),require("../../connectors/chains/linea.js"),require("../../connectors/chains/lineaTestnet.js"),require("../../connectors/chains/lukso.js"),require("../../connectors/chains/mainnet.js"),require("../../connectors/chains/optimism.js"),require("../../connectors/chains/optimismSepolia.js"),require("../../connectors/chains/polygon.js"),require("../../connectors/chains/polygonAmoy.js"),require("../../connectors/chains/redstone.js"),require("../../connectors/chains/sepolia.js"),require("../../connectors/chains/zora.js"),require("../../connectors/chains/zoraSepolia.js"),require("../../connectors/chains/zoraTestnet.js"),require("../../connectors/chains/utils.js"),require("../../lib/solana/index.js"),require("../../theme.js"),require("tinycolor2"),require("../../lib/cybr53.js"),require("../../hooks/internal-context.js"),require("../../hooks/index.js"),require("../../components/ui/animation/LoadingSkeleton.js"),require("@heroicons/react/24/outline/CheckIcon"),require("@heroicons/react/24/outline/Square2StackIcon"),require("../../utils/index.js"),require("@ethersproject/providers"),require("../../connectors/get-legacy-injected-providers.js"),require("../../connectors/is-wallet-installed.js"),require("../../errors.js"),require("ofetch"),require("../../components/ui/chips/Chip.js"),require("../../components/ui/layout/Column.js"),require("../../components/ui/typography/LabelXs.js"),require("../../components/ui/wallet/shared.js"),require("@ethersproject/address");const x=({transactionIndex:e,maxIndex:r})=>"number"!=typeof e||0===r?"":` (${e+1} / ${r+1})`;let g=/*#__PURE__*/s.styled(h.WalletInfoCard).withConfig({displayName:"StyledWalletInfoCard",componentId:"sc-ce917ed3-0"})(["",""],(e=>e.$useSmallMargins?"margin-top: 0.5rem;":"margin-top: 2rem;")),y="There was an error preparing your transaction. Your transaction request will likely fail.",b=/*#__PURE__*/s.styled.div.withConfig({displayName:"ImageContainer",componentId:"sc-ce917ed3-1"})(["display:flex;width:100%;justify-content:center;max-height:40px;> img{object-fit:contain;border-radius:var(--privy-border-radius-sm);}"]);exports.SendTransactionScreenView=({img:s,submitError:h,prepareError:f,onClose:w,action:S,title:k,subtitle:I,total:C,txValue:T,to:L,tokenAddress:v,network:A,missingFunds:M,fee:R,from:D,cta:V,disabled:E,chain:F,isSubmitting:$,isPreparing:N,isTokenPriceLoading:B,isTokenContractInfoLoading:P,isSponsored:z,symbol:H,balance:W,onClick:X,transactionDetails:Y,transactionIndex:G,maxIndex:Q,onBack:J,chainName:K})=>{let{showTransactionDetails:O,setShowTransactionDetails:U,hasMoreDetails:Z,isErc20Ish:_}=q.useTransactionDetails(Y);/*#__PURE__*/return e.jsxs(e.Fragment,{children:[/*#__PURE__*/e.jsx(o.ModalHeader,{onClose:w,backFn:J}),s&&/*#__PURE__*/e.jsx(b,{children:s}),/*#__PURE__*/e.jsxs(u.Title,{style:{marginTop:s?"1.5rem":0},children:[k,/*#__PURE__*/e.jsx(x,{maxIndex:Q,transactionIndex:G})]}),/*#__PURE__*/e.jsx(l.Subtitle,{children:I}),/*#__PURE__*/e.jsxs(a.Rows,{style:{marginTop:"2rem"},children:[_&&/*#__PURE__*/e.jsxs(e.Fragment,{children:["approve"===S&&/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Action"}),/*#__PURE__*/e.jsx(d.Value,{children:Y?.action})]}),/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Amount"}),/*#__PURE__*/e.jsxs(d.Value,{$isLoading:_&&P,children:[Y?.formattedAmount," ",H]})]})]}),C&&/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Total"}),/*#__PURE__*/e.jsx(d.Value,{$isLoading:N||B,children:C})]}),Y&&"spender"in Y&&Y?.spender?/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Spender"}),/*#__PURE__*/e.jsx(d.Value,{children:/*#__PURE__*/e.jsx(j.Address,{address:Y.spender,url:F?.blockExplorers?.default?.url,showCopyIcon:!1})})]}):null,L&&/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"To"}),/*#__PURE__*/e.jsx(d.Value,{children:/*#__PURE__*/e.jsx(j.Address,{address:L,url:F?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),v&&/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Token address"}),/*#__PURE__*/e.jsx(d.Value,{children:/*#__PURE__*/e.jsx(j.Address,{address:v,url:F?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Network"}),/*#__PURE__*/e.jsx(d.Value,{children:A})]}),/*#__PURE__*/e.jsxs(a.Row,{children:[/*#__PURE__*/e.jsx(c.LabelSm,{children:"Estimated fee"}),/*#__PURE__*/e.jsx(d.Value,{$isLoading:N||B||void 0===z,children:z?"Sponsored":R})]}),Z&&/*#__PURE__*/e.jsxs(e.Fragment,{children:[/*#__PURE__*/e.jsx(a.Row,{className:"cursor-pointer",onClick:()=>U(!O),children:/*#__PURE__*/e.jsxs(c.LabelSmPrimary,{className:"flex items-center gap-x-1",children:["Details"," ",/*#__PURE__*/e.jsx(r.ChevronDownIcon,{style:{width:"0.75rem",marginLeft:"0.25rem",transform:O?"rotate(180deg)":void 0}})]})}),O&&Y&&/*#__PURE__*/e.jsx(p.TransactionDetail,{action:S,chain:F,transactionDetails:Y,isTokenContractInfoLoading:P,symbol:H})]})]}),/*#__PURE__*/e.jsx(m.Grow,{}),h?/*#__PURE__*/e.jsx(t.ErrorMessage,{style:{marginTop:"2rem"},children:h.message}):f?/*#__PURE__*/e.jsx(t.ErrorMessage,{style:{marginTop:"2rem"},children:y}):null,/*#__PURE__*/e.jsx(g,{$useSmallMargins:!(!f&&!h),title:Number(T)>0?void 0:!1!==z?"Your wallet":void 0,address:D,balance:W,isLoading:N||B,errMsg:N||f||h||!M?void 0:`Add funds on ${F?.name??K} to complete transaction.`}),/*#__PURE__*/e.jsx(n.PrimaryButton,{style:{marginTop:"1rem"},loading:$,disabled:E||N,onClick:X,children:V}),/*#__PURE__*/e.jsx(i.BlobbyFooter,{})]})},exports.TransactionIndex=x;
@@ -1 +1 @@
1
- "use strict";var r=require("viem"),s=require("../../lib/deployAccount/actions/abis/deployAccount.js"),a=require("../../lib/erc20/actions/abis/approve.js"),e=require("../../lib/erc20/actions/abis/transfer.js"),t=require("../../lib/erc721/actions/abis/mint.js"),n=require("../../lib/erc721/actions/abis/safeTransferFrom.js"),i=require("../../lib/erc721/actions/abis/setApprovalForAll.js"),o=require("../../lib/erc721/actions/abis/transferFrom.js"),c=require("../../lib/erc1155/actions/abis/safeBatchTransferFrom.js"),f=require("../../lib/erc1155/actions/abis/safeTransferFrom.js");const u=(r,_)=>{let F=T(a.ERC20_APPROVE_ABI_STUB,r);if(F)return{action:"approve",functionName:"approve",isErc20Ish:!0,isNFTIsh:!1,spender:F.args[0],amount:F.args[1]};let l=T(e.ERC20_TRANSFER_ABI_STUB,r);if(l)return{action:"transfer",functionName:"transfer",isErc20Ish:!0,isNFTIsh:!1,amount:l.args[1]};if(!_)return{action:"transaction",functionName:"",isErc20Ish:!1,isNFTIsh:!1};let A=T(s.DEPLOY_ACCOUNT_STUB_ABI,r);if(A&&"string"==typeof A.args[1]){let r=I(A.args[1]);if(r&&r[4].encodedInitData)return u(r[4].encodedInitData,_)}let m=T(i.ERC721_SET_APPROVAL_FOR_ALL_ABI_STUB,r);if(m)return{action:"approve",functionName:"setApprovalForAll",isNFTIsh:!0,isErc20Ish:!1,operator:m.args[0],approved:m.args[1]};let N=T(o.ERC721_TRANSFER_FROM_ABI_STUB,r);if(N)return{action:"transfer",functionName:"transferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:N.args[0],transferTo:N.args[1],tokenId:N.args[2]};let E=T(n.ERC721_SAFE_TRANSFER_FROM_ABI_STUB,r);if(E)return{action:"transfer",functionName:"safeTransferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:E.args[0],transferTo:E.args[1],tokenId:E.args[2]};let g=T(f.ERC1155_SAFE_TRANSFER_FROM_ABI_STUB,r);if(g)return{action:"transfer",functionName:"safeTransferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:g.args[0],transferTo:g.args[1],tokenId:g.args[2],amount:g.args[3]};let R=T(c.ERC1155_SAFE_BATCH_TRANSFER_FROM_ABI_STUB,r);if(R)return{action:"batch transfer",functionName:"safeBatchTransferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:R.args[0],transferTo:R.args[1],tokenIds:R.args[2],amounts:R.args[3]};let h=T(t.MINT_ABI_STUBS,r);return h?{action:"mint",functionName:h.functionName,isNFTIsh:!0,isErc20Ish:!1,args:h.args}:{action:"transaction",isErc20Ish:!1,isNFTIsh:!1}};let T=(s,a)=>{try{let e=r.decodeFunctionData({abi:s,data:a});return{functionName:e.functionName,args:e.args||[]}}catch(s){return null}},I=a=>{try{if("string"==typeof a)return r.decodeAbiParameters(s.DEPLOY_ACCOUNT_INITIALIZER_ARGS,`0x${a.slice(10)}`)}catch(r){return null}};exports.getStaticTransactionMetadata=u;
1
+ "use strict";var r=require("viem"),s=require("../../lib/deployAccount/actions/abis/deployAccount.js"),a=require("../../lib/erc20/actions/abis/approve.js"),e=require("../../lib/erc20/actions/abis/transfer.js"),t=require("../../lib/erc721/actions/abis/mint.js"),n=require("../../lib/erc721/actions/abis/safeTransferFrom.js"),i=require("../../lib/erc721/actions/abis/setApprovalForAll.js"),o=require("../../lib/erc721/actions/abis/transferFrom.js"),c=require("../../lib/erc1155/actions/abis/safeBatchTransferFrom.js"),f=require("../../lib/erc1155/actions/abis/safeTransferFrom.js");const u=(r,_)=>{let F=T(a.ERC20_APPROVE_ABI_STUB,r);if(F)return{action:"approve",functionName:"approve",isErc20Ish:!0,isNFTIsh:!1,spender:F.args[0],amount:F.args[1]};let l=T(e.ERC20_TRANSFER_ABI_STUB,r);if(l)return{action:"transfer",functionName:"transfer",isErc20Ish:!0,isNFTIsh:!1,transferTo:l.args[0],amount:l.args[1]};if(!_)return{action:"transaction",functionName:"",isErc20Ish:!1,isNFTIsh:!1};let A=T(s.DEPLOY_ACCOUNT_STUB_ABI,r);if(A&&"string"==typeof A.args[1]){let r=I(A.args[1]);if(r&&r[4].encodedInitData)return u(r[4].encodedInitData,_)}let m=T(i.ERC721_SET_APPROVAL_FOR_ALL_ABI_STUB,r);if(m)return{action:"approve",functionName:"setApprovalForAll",isNFTIsh:!0,isErc20Ish:!1,operator:m.args[0],approved:m.args[1]};let N=T(o.ERC721_TRANSFER_FROM_ABI_STUB,r);if(N)return{action:"transfer",functionName:"transferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:N.args[0],transferTo:N.args[1],tokenId:N.args[2]};let E=T(n.ERC721_SAFE_TRANSFER_FROM_ABI_STUB,r);if(E)return{action:"transfer",functionName:"safeTransferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:E.args[0],transferTo:E.args[1],tokenId:E.args[2]};let g=T(f.ERC1155_SAFE_TRANSFER_FROM_ABI_STUB,r);if(g)return{action:"transfer",functionName:"safeTransferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:g.args[0],transferTo:g.args[1],tokenId:g.args[2],amount:g.args[3]};let R=T(c.ERC1155_SAFE_BATCH_TRANSFER_FROM_ABI_STUB,r);if(R)return{action:"batch transfer",functionName:"safeBatchTransferFrom",isNFTIsh:!0,isErc20Ish:!1,transferFrom:R.args[0],transferTo:R.args[1],tokenIds:R.args[2],amounts:R.args[3]};let h=T(t.MINT_ABI_STUBS,r);return h?{action:"mint",functionName:h.functionName,isNFTIsh:!0,isErc20Ish:!1,args:h.args}:{action:"transaction",isErc20Ish:!1,isNFTIsh:!1}};let T=(s,a)=>{try{let e=r.decodeFunctionData({abi:s,data:a});return{functionName:e.functionName,args:e.args||[]}}catch(s){return null}},I=a=>{try{if("string"==typeof a)return r.decodeAbiParameters(s.DEPLOY_ACCOUNT_INITIALIZER_ARGS,`0x${a.slice(10)}`)}catch(r){return null}};exports.getStaticTransactionMetadata=u;
@@ -1 +1 @@
1
- "use strict";var E,_=((E={}).LANDING="LANDING",E.CONNECT_OR_CREATE="CONNECT_OR_CREATE",E.AWAITING_CONNECTION="AWAITING_CONNECTION",E.AWAITING_FARCASTER_CONNECTION="AWAITING_FARCASTER_CONNECTION",E.AWAITING_FARCASTER_SIGNER="AWAITING_FARCASTER_SIGNER",E.AWAITING_OAUTH_SCREEN="AWAITING_OAUTH_SCREEN",E.CROSS_APP_AUTH_SCREEN="CROSS_APP_AUTH_SCREEN",E.AWAITING_PASSWORDLESS_CODE="AWAITING_PASSWORDLESS_CODE",E.AWAITING_PASSKEY_SYSTEM_DIALOGUE="AWAITING_PASSKEY_SYSTEM_DIALOGUE",E.LINK_EMAIL_SCREEN="LINK_EMAIL_SCREEN",E.LINK_PHONE_SCREEN="LINK_PHONE_SCREEN",E.LINK_WALLET_SCREEN="LINK_WALLET_SCREEN",E.LINK_PASSKEY_SCREEN="LINK_PASSKEY_SCREEN",E.UPDATE_EMAIL_SCREEN="UPDATE_EMAIL_SCREEN",E.UPDATE_PHONE_SCREEN="UPDATE_PHONE_SCREEN",E.AWAITING_CONNECT_ONLY_CONNECTION="AWAITING_CONNECT_ONLY_CONNECTION",E.CONNECT_ONLY_LANDING_SCREEN="CONNECT_ONLY_LANDING_SCREEN",E.CONNECT_ONLY_AUTHENTICATED_SCREEN="CONNECT_ONLY_AUTHENTICATED_SCREEN",E.LOGIN_FAILED_SCREEN="LOGIN_FAILED_SCREEN",E.ALLOWLIST_REJECTION_SCREEN="ALLOWLIST_REJECTION_SCREEN",E.ACCOUNT_NOT_FOUND_SCREEN="ACCOUNT_NOT_FOUND_SCREEN",E.USER_LIMIT_REACHED_SCREEN="USER_LIMIT_REACHED_SCREEN",E.EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN="EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN",E.EMBEDDED_WALLET_CREATED_SCREEN="EMBEDDED_WALLET_CREATED_SCREEN",E.EMBEDDED_WALLET_CONNECTING_SCREEN="EMBEDDED_WALLET_CONNECTING_SCREEN",E.EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN="EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN",E.EMBEDDED_WALLET_KEY_EXPORT_SCREEN="EMBEDDED_WALLET_KEY_EXPORT_SCREEN",E.EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN="EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN",E.EMBEDDED_WALLET_SEND_SOLANA_TRANSACTION_SCREEN="EMBEDDED_WALLET_SEND_SOLANA_TRANSACTION_SCREEN",E.EMBEDDED_WALLET_SIGN_REQUEST_SCREEN="EMBEDDED_WALLET_SIGN_REQUEST_SCREEN",E.EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN="EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN",E.EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN="EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN",E.EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN="EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN",E.EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN="EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN",E.EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN="EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN",E.EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN="EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN",E.EMBEDDED_WALLET_DELEGATED_ACTIONS_CONSENT_SCREEN="EMBEDDED_WALLET_DELEGATED_ACTIONS_CONSENT_SCREEN",E.EMBEDDED_WALLET_DELEGATED_ACTIONS_REVOKE_SCREEN="EMBEDDED_WALLET_DELEGATED_ACTIONS_REVOKE_SCREEN",E.INSTALL_PHANTOM_SCREEN="INSTALL_PHANTOM_SCREEN",E.PHANTOM_INTERSTITIAL_SCREEN="PHANTOM_INTERSTITIAL_SCREEN",E.AFFIRMATIVE_CONSENT_SCREEN="AFFIRMATIVE_CONSENT_SCREEN",E.FUNDING_METHOD_SELECTION_SCREEN="FUNDING_METHOD_SELECTION_SCREEN",E.FUNDING_TRANSFER_FROM_WALLET_SCREEN="FUNDING_TRANSFER_FROM_WALLET_SCREEN",E.FUNDING_EDIT_AMOUNT_SCREEN="FUNDING_EDIT_AMOUNT_SCREEN",E.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN="FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN",E.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_SOLANA_WALLET_SCREEN="FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_SOLANA_WALLET_SCREEN",E.FUNDING_AWAITING_EVM_TO_SOL_BRIDGING_SCREEN="FUNDING_AWAITING_EVM_TO_SOL_BRIDGING_SCREEN",E.FUNDING_AWAITING_SOL_TO_EVM_BRIDGING_SCREEN="FUNDING_AWAITING_SOL_TO_EVM_BRIDGING_SCREEN",E.FUNDING_MANUAL_TRANSFER_SCREEN="FUNDING_MANUAL_TRANSFER_SCREEN",E.MOONPAY_STATUS_SCREEN="MOONPAY_STATUS_SCREEN",E.COINBASE_ONRAMP_STATUS_SCREEN="COINBASE_ONRAMP_STATUS_SCREEN",E.MFA_ENROLLMENT_FLOW_SCREEN="MFA_ENROLLMENT_FLOW_SCREEN",E.CAPTCHA_SCREEN="CAPTCHA_SCREEN",E.ERROR_SCREEN="ERROR_SCREEN",E.IN_APP_BROWSER_LOGIN_NOT_POSSIBLE="IN_APP_BROWSER_LOGIN_NOT_POSSIBLE",E.TELEGRAM_AUTH_SCREEN="TELEGRAM_AUTH_SCREEN",E.LINK_CONFLICT_SCREEN="LINK_CONFLICT_SCREEN",E);exports.ModalScreen=_;
1
+ "use strict";var E,_=((E={}).LANDING="LANDING",E.CONNECT_OR_CREATE="CONNECT_OR_CREATE",E.AWAITING_CONNECTION="AWAITING_CONNECTION",E.AWAITING_FARCASTER_CONNECTION="AWAITING_FARCASTER_CONNECTION",E.AWAITING_FARCASTER_SIGNER="AWAITING_FARCASTER_SIGNER",E.AWAITING_OAUTH_SCREEN="AWAITING_OAUTH_SCREEN",E.CROSS_APP_AUTH_SCREEN="CROSS_APP_AUTH_SCREEN",E.AWAITING_PASSWORDLESS_CODE="AWAITING_PASSWORDLESS_CODE",E.AWAITING_PASSKEY_SYSTEM_DIALOGUE="AWAITING_PASSKEY_SYSTEM_DIALOGUE",E.SELECT_PASSKEY_SIGNUP_OR_LOGIN="SELECT_PASSKEY_SIGNUP_OR_LOGIN",E.LINK_EMAIL_SCREEN="LINK_EMAIL_SCREEN",E.LINK_PHONE_SCREEN="LINK_PHONE_SCREEN",E.LINK_WALLET_SCREEN="LINK_WALLET_SCREEN",E.LINK_PASSKEY_SCREEN="LINK_PASSKEY_SCREEN",E.UPDATE_EMAIL_SCREEN="UPDATE_EMAIL_SCREEN",E.UPDATE_PHONE_SCREEN="UPDATE_PHONE_SCREEN",E.AWAITING_CONNECT_ONLY_CONNECTION="AWAITING_CONNECT_ONLY_CONNECTION",E.CONNECT_ONLY_LANDING_SCREEN="CONNECT_ONLY_LANDING_SCREEN",E.CONNECT_ONLY_AUTHENTICATED_SCREEN="CONNECT_ONLY_AUTHENTICATED_SCREEN",E.LOGIN_FAILED_SCREEN="LOGIN_FAILED_SCREEN",E.ALLOWLIST_REJECTION_SCREEN="ALLOWLIST_REJECTION_SCREEN",E.ACCOUNT_NOT_FOUND_SCREEN="ACCOUNT_NOT_FOUND_SCREEN",E.USER_LIMIT_REACHED_SCREEN="USER_LIMIT_REACHED_SCREEN",E.EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN="EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN",E.EMBEDDED_WALLET_CREATED_SCREEN="EMBEDDED_WALLET_CREATED_SCREEN",E.EMBEDDED_WALLET_CONNECTING_SCREEN="EMBEDDED_WALLET_CONNECTING_SCREEN",E.EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN="EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN",E.EMBEDDED_WALLET_KEY_EXPORT_SCREEN="EMBEDDED_WALLET_KEY_EXPORT_SCREEN",E.EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN="EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN",E.EMBEDDED_WALLET_SEND_SOLANA_TRANSACTION_SCREEN="EMBEDDED_WALLET_SEND_SOLANA_TRANSACTION_SCREEN",E.EMBEDDED_WALLET_SIGN_REQUEST_SCREEN="EMBEDDED_WALLET_SIGN_REQUEST_SCREEN",E.EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN="EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN",E.EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN="EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN",E.EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN="EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN",E.EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN="EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN",E.EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN="EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN",E.EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN="EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN",E.EMBEDDED_WALLET_DELEGATED_ACTIONS_CONSENT_SCREEN="EMBEDDED_WALLET_DELEGATED_ACTIONS_CONSENT_SCREEN",E.EMBEDDED_WALLET_DELEGATED_ACTIONS_REVOKE_SCREEN="EMBEDDED_WALLET_DELEGATED_ACTIONS_REVOKE_SCREEN",E.INSTALL_PHANTOM_SCREEN="INSTALL_PHANTOM_SCREEN",E.PHANTOM_INTERSTITIAL_SCREEN="PHANTOM_INTERSTITIAL_SCREEN",E.AFFIRMATIVE_CONSENT_SCREEN="AFFIRMATIVE_CONSENT_SCREEN",E.FUNDING_METHOD_SELECTION_SCREEN="FUNDING_METHOD_SELECTION_SCREEN",E.FUNDING_TRANSFER_FROM_WALLET_SCREEN="FUNDING_TRANSFER_FROM_WALLET_SCREEN",E.FUNDING_EDIT_AMOUNT_SCREEN="FUNDING_EDIT_AMOUNT_SCREEN",E.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN="FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN",E.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_SOLANA_WALLET_SCREEN="FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_SOLANA_WALLET_SCREEN",E.FUNDING_AWAITING_EVM_TO_SOL_BRIDGING_SCREEN="FUNDING_AWAITING_EVM_TO_SOL_BRIDGING_SCREEN",E.FUNDING_AWAITING_SOL_TO_EVM_BRIDGING_SCREEN="FUNDING_AWAITING_SOL_TO_EVM_BRIDGING_SCREEN",E.FUNDING_MANUAL_TRANSFER_SCREEN="FUNDING_MANUAL_TRANSFER_SCREEN",E.MOONPAY_STATUS_SCREEN="MOONPAY_STATUS_SCREEN",E.COINBASE_ONRAMP_STATUS_SCREEN="COINBASE_ONRAMP_STATUS_SCREEN",E.MFA_ENROLLMENT_FLOW_SCREEN="MFA_ENROLLMENT_FLOW_SCREEN",E.CAPTCHA_SCREEN="CAPTCHA_SCREEN",E.ERROR_SCREEN="ERROR_SCREEN",E.IN_APP_BROWSER_LOGIN_NOT_POSSIBLE="IN_APP_BROWSER_LOGIN_NOT_POSSIBLE",E.TELEGRAM_AUTH_SCREEN="TELEGRAM_AUTH_SCREEN",E.LINK_CONFLICT_SCREEN="LINK_CONFLICT_SCREEN",E);exports.ModalScreen=_;
@@ -1 +1 @@
1
- "use strict";var e=require("js-cookie"),t=require("./auth-flows/authFlowToAuthenticateMethod.js"),s=require("./client/user.js"),r=require("./constants.js"),o=require("./cookies.js"),n=require("./effect.js"),i=require("./errors.js"),c=require("./paths.js"),a=require("./storage.js"),h=require("./token.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./auth-flows/custom-jwt-account.js"),require("./auth-flows/email.js"),require("./auth-flows/getUiHeader.js"),require("./auth-flows/guest.js"),require("jose"),require("./crypto.js"),require("./auth-flows/siwe.js"),require("./lib/siwe.js"),require("ofetch"),require("./auth-flows/sms.js"),require("./auth-flows/oauth/OAuthFlow.js"),require("./lib/pkce.js"),require("@ethersproject/address"),require("react-device-detect");var l,_=/*#__PURE__*/u(e),k=((l={}).PRIVY="privy_access_token",l.CUSTOMER="customer_access_token",l);exports.AccessTokenTypes=k,exports.Session=class{get token(){return this.privyAccessToken||this.customerAccessToken}getToken(e){return"privy_access_token"===e?this.privyAccessToken:this.customerAccessToken}get customerAccessToken(){return this._getToken(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY)}get privyAccessToken(){return this._getToken(r.PRIVY_ACCESS_TOKEN_STORAGE_KEY)}_getToken(e){try{let t=a.default.get(e);return"string"==typeof t?h.Token.throwIfNotWellFormedJwt(t):null}catch(e){return console.error(e),this.destroyLocalState(),null}}get refreshToken(){try{let e=a.default.get(r.REFRESH_TOKEN_STORAGE_KEY);return"string"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}get forkedToken(){try{let e=a.default.get(r.FORKED_TOKEN_STORAGE_KEY);return"string"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}getProviderAccessToken(e){try{let t=a.default.get(r.getProviderAccessTokenStorageKey(e));if("string"!=typeof t)return null;{let s=new h.Token(t);return s.isExpired()?(a.default.del(r.getProviderAccessTokenStorageKey(e)),null):s.value}}catch(e){return console.error(e),null}}get mightHaveServerCookies(){try{let e=_.default.get(r.SESSION_COOKIE_KEY);return void 0!==e&&e.length>0}catch(e){console.error(e)}return!1}hasRefreshCredentials(e="privy_access_token"){let t="string"==typeof this.getToken(e),s="string"==typeof this.refreshToken&&this.refreshToken!==r.DEPRECATED_REFRESH_TOKEN;return this.mightHaveServerCookies||t&&s}hasRecoveryCredentials(){return"string"==typeof this.forkedToken}hasActiveAccessToken(e){let t=h.Token.parse(this.getToken(e));return null!==t&&!t.isExpired(30)}authenticate(e){return this.authenticateOnce.execute(e)}link(e){return this.linkOnce.execute(e)}refresh(){return this.refreshOnce.execute()}forkSession(){return this.forkSessionOnce.execute()}destroy(){return this.destroyOnce.execute()}storeProviderAccessToken(e,t){"string"==typeof t?a.default.put(r.getProviderAccessTokenStorageKey(e),t):a.default.del(r.getProviderAccessTokenStorageKey(e))}async _authenticate(e){try{let t=await e.authenticate(),{user:r,is_new_user:o,oauth_tokens:n}=t;this.handleTokenResponse(t);let i=n?{provider:n.provider,accessToken:n.access_token,accessTokenExpiresInSeconds:n.access_token_expires_in_seconds,refreshToken:n.refresh_token,refreshTokenExpiresInSeconds:n.refresh_token_expires_in_seconds,scopes:n.scopes}:void 0;return this._trackAuthenticateEvents(e,o),{user:s.convertUserResponseToUser(r),isNewUser:o,oAuthTokens:i}}catch(e){throw console.warn("Error authenticating session"),i.formatPrivyError(e)}}_trackAuthenticateEvents(e,s){let r=t.authFlowToAuthenticateMethod(e);r&&this.client&&this.client.createAnalyticsEvent({eventName:"sdk_authenticate",payload:{method:r,isNewUser:s}}),"siwe"===r&&this.client&&this.client.createAnalyticsEvent({eventName:"sdk_authenticate_siwe",payload:{connectorType:e.meta.connectorType,walletClientType:e.meta.walletClientType}})}async _link(e){try{let t=await e.link(),r=t.oauth_tokens,o=r?{provider:r.provider,accessToken:r.access_token,accessTokenExpiresInSeconds:r.access_token_expires_in_seconds,refreshToken:r.refresh_token,refreshTokenExpiresInSeconds:r.refresh_token_expires_in_seconds,scopes:r.scopes}:void 0;return{user:s.convertUserResponseToUser(t),oAuthTokens:o}}catch(e){throw console.warn("Error linking account"),i.formatPrivyError(e)}}async _refresh(){if(!this.api)throw new i.PrivyClientError("Session has no API instance");if(!this.client)throw new i.PrivyClientError("Session has no PrivyClient instance");await this.client.getAccessToken({disableAutoRefresh:!0});let e=this.token,t=this.refreshToken,r=this.forkedToken;if(this.client.useServerCookies&&!this.mightHaveServerCookies&&this.token&&window.location.origin===this.client.apiUrl)return this.destroyLocalState(),null;try{let o;if(e&&t||this.mightHaveServerCookies){let s={};e&&(s.authorization=`Bearer ${e}`),o=await this.api.post(c.sessionsRefreshPath,t?{refresh_token:t}:{},{headers:s}),r&&this.clearForkedToken()}else{if(!r)return null;o=await this.api.post(c.recoverForkedSessionsPath,{refresh_token:r}),this.clearForkedToken()}return this.handleTokenResponse(o),s.convertUserResponseToUser(o.user)}catch(e){if(e instanceof i.PrivyApiError&&e.privyErrorCode===i.PrivyErrorCode.MISSING_OR_INVALID_TOKEN)return console.warn("Unable to refresh tokens - token is missing or no longer valid"),this.destroyLocalState(),null;throw i.formatPrivyError(e)}}handleTokenResponse(e){e.session_update_action&&"set"!==e.session_update_action?"clear"===e.session_update_action?this.destroyLocalState():"ignore"===e.session_update_action&&(e.token&&(this.storeCustomerAccessToken(e.token),this.storePrivyAccessToken(e.privy_access_token)),e.identity_token&&this.storeIdentityToken(e.identity_token)):this._storeAllTokens(e)}_storeAllTokens(e){this.storeRefreshToken(e.refresh_token),this.storeCustomerAccessToken(e.token),this.storePrivyAccessToken(e.privy_access_token),e.identity_token&&this.storeIdentityToken(e.identity_token)}async _destroy(){try{await(this.api?.post(c.sessionsLogoutPath,{refresh_token:this.refreshToken}))}catch(e){console.warn("Error destroying session")}this.destroyLocalState()}async _forkSession(){if(!this.api)throw new i.PrivyClientError("Session has no API instance");let e=this.refreshToken;try{let t=await this.api.post(c.forkSessionPath,{refresh_token:e});return this.storeRefreshToken(t.refresh_token),this.storeCustomerAccessToken(t.token),t.new_session_refresh_token}catch(e){throw i.formatPrivyError(e)}}destroyLocalState(){this.storeRefreshToken(null),this.storeCustomerAccessToken(null),this.storePrivyAccessToken(null),this.clearIdentityToken(),this.clearForkedToken()}storeCustomerAccessToken(e){if("string"==typeof e){let t=a.default.get(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY);if(a.default.put(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY,e),!this.client?.useServerCookies){let t=h.Token.parse(e)?.expiration;_.default.set(r.CUSTOMER_ACCESS_TOKEN_COOKIE_KEY,e,{sameSite:"Strict",secure:o.getSecureMode(),expires:t?new Date(1e3*t):void 0})}t!==e&&this.client?.onStoreCustomerAccessToken?.(e)}else a.default.del(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY),_.default.remove(r.CUSTOMER_ACCESS_TOKEN_COOKIE_KEY),this.client?.onDeleteCustomerAccessToken?.()}storeRefreshToken(e){"string"==typeof e?(a.default.put(r.REFRESH_TOKEN_STORAGE_KEY,e),this.client?.useServerCookies||_.default.set(r.SESSION_COOKIE_KEY,"t",{sameSite:"Strict",secure:o.getSecureMode(),expires:30})):(a.default.del(r.REFRESH_TOKEN_STORAGE_KEY),_.default.remove(r.REFRESH_TOKEN_COOKIE_KEY),_.default.remove(r.SESSION_COOKIE_KEY))}storePrivyAccessToken(e){"string"==typeof e?a.default.put(r.PRIVY_ACCESS_TOKEN_STORAGE_KEY,e):a.default.del(r.PRIVY_ACCESS_TOKEN_STORAGE_KEY)}storeIdentityToken(e){if(this.client?.useServerCookies)return;a.default.put(r.IDENTITY_TOKEN_STORAGE_KEY,e);let t=h.Token.parse(e)?.expiration;_.default.set(r.IDENTITY_TOKEN_COOKIE_KEY,e,{sameSite:"Strict",secure:o.getSecureMode(),expires:t?new Date(1e3*t):void 0})}clearIdentityToken(){a.default.del(r.IDENTITY_TOKEN_STORAGE_KEY),_.default.remove(r.IDENTITY_TOKEN_COOKIE_KEY)}clearForkedToken(){a.default.del(r.FORKED_TOKEN_STORAGE_KEY)}constructor(){this.authenticateOnce=new n.RunEffectOnce((async e=>this._authenticate(e))),this.linkOnce=new n.RunEffectOnce((async e=>this._link(e))),this.refreshOnce=new n.RunEffectOnce(this._refresh.bind(this)),this.destroyOnce=new n.RunEffectOnce(this._destroy.bind(this)),this.forkSessionOnce=new n.RunEffectOnce(this._forkSession.bind(this))}};
1
+ "use strict";var e=require("js-cookie"),t=require("./auth-flows/authFlowToAuthenticateMethod.js"),s=require("./client/user.js"),r=require("./constants.js"),o=require("./cookies.js"),n=require("./effect.js"),i=require("./errors.js"),c=require("./hooks/useIdentityToken.js"),a=require("./paths.js"),h=require("./storage.js"),u=require("./token.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./auth-flows/custom-jwt-account.js"),require("./auth-flows/email.js"),require("./auth-flows/getUiHeader.js"),require("./auth-flows/guest.js"),require("jose"),require("./crypto.js"),require("./auth-flows/siwe.js"),require("./lib/siwe.js"),require("ofetch"),require("./auth-flows/sms.js"),require("./auth-flows/oauth/OAuthFlow.js"),require("./lib/pkce.js"),require("@ethersproject/address"),require("react-device-detect"),require("zustand");var _,k=/*#__PURE__*/l(e),T=((_={}).PRIVY="privy_access_token",_.CUSTOMER="customer_access_token",_);exports.AccessTokenTypes=T,exports.Session=class{get token(){return this.privyAccessToken||this.customerAccessToken}getToken(e){return"privy_access_token"===e?this.privyAccessToken:this.customerAccessToken}get customerAccessToken(){return this._getToken(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY)}get privyAccessToken(){return this._getToken(r.PRIVY_ACCESS_TOKEN_STORAGE_KEY)}_getToken(e){try{let t=h.default.get(e);return"string"==typeof t?u.Token.throwIfNotWellFormedJwt(t):null}catch(e){return console.error(e),this.destroyLocalState(),null}}get refreshToken(){try{let e=h.default.get(r.REFRESH_TOKEN_STORAGE_KEY);return"string"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}get forkedToken(){try{let e=h.default.get(r.FORKED_TOKEN_STORAGE_KEY);return"string"==typeof e?e:null}catch(e){return console.error(e),this.destroyLocalState(),null}}getProviderAccessToken(e){try{let t=h.default.get(r.getProviderAccessTokenStorageKey(e));if("string"!=typeof t)return null;{let s=new u.Token(t);return s.isExpired()?(h.default.del(r.getProviderAccessTokenStorageKey(e)),null):s.value}}catch(e){return console.error(e),null}}get mightHaveServerCookies(){try{let e=k.default.get(r.SESSION_COOKIE_KEY);return void 0!==e&&e.length>0}catch(e){console.error(e)}return!1}hasRefreshCredentials(e="privy_access_token"){let t="string"==typeof this.getToken(e),s="string"==typeof this.refreshToken&&this.refreshToken!==r.DEPRECATED_REFRESH_TOKEN;return this.mightHaveServerCookies||t&&s}hasRecoveryCredentials(){return"string"==typeof this.forkedToken}hasActiveAccessToken(e){let t=u.Token.parse(this.getToken(e));return null!==t&&!t.isExpired(30)}authenticate(e){return this.authenticateOnce.execute(e)}link(e){return this.linkOnce.execute(e)}refresh(){return this.refreshOnce.execute()}forkSession(){return this.forkSessionOnce.execute()}destroy(){return this.destroyOnce.execute()}storeProviderAccessToken(e,t){"string"==typeof t?h.default.put(r.getProviderAccessTokenStorageKey(e),t):h.default.del(r.getProviderAccessTokenStorageKey(e))}async _authenticate(e){try{let t=await e.authenticate(),{user:r,is_new_user:o,oauth_tokens:n}=t;this.handleTokenResponse(t);let i=n?{provider:n.provider,accessToken:n.access_token,accessTokenExpiresInSeconds:n.access_token_expires_in_seconds,refreshToken:n.refresh_token,refreshTokenExpiresInSeconds:n.refresh_token_expires_in_seconds,scopes:n.scopes}:void 0;return this._trackAuthenticateEvents(e,o),{user:s.convertUserResponseToUser(r),isNewUser:o,oAuthTokens:i}}catch(e){throw console.warn("Error authenticating session"),i.formatPrivyError(e)}}_trackAuthenticateEvents(e,s){let r=t.authFlowToAuthenticateMethod(e);r&&this.client&&this.client.createAnalyticsEvent({eventName:"sdk_authenticate",payload:{method:r,isNewUser:s}}),"siwe"===r&&this.client&&this.client.createAnalyticsEvent({eventName:"sdk_authenticate_siwe",payload:{connectorType:e.meta.connectorType,walletClientType:e.meta.walletClientType}})}async _link(e){try{let t=await e.link(),r=t.oauth_tokens,o=r?{provider:r.provider,accessToken:r.access_token,accessTokenExpiresInSeconds:r.access_token_expires_in_seconds,refreshToken:r.refresh_token,refreshTokenExpiresInSeconds:r.refresh_token_expires_in_seconds,scopes:r.scopes}:void 0;return{user:s.convertUserResponseToUser(t),oAuthTokens:o}}catch(e){throw console.warn("Error linking account"),i.formatPrivyError(e)}}async _refresh(){if(!this.api)throw new i.PrivyClientError("Session has no API instance");if(!this.client)throw new i.PrivyClientError("Session has no PrivyClient instance");await this.client.getAccessToken({disableAutoRefresh:!0});let e=this.token,t=this.refreshToken,r=this.forkedToken;if(this.client.useServerCookies&&!this.mightHaveServerCookies&&this.token&&window.location.origin===this.client.apiUrl)return this.destroyLocalState(),null;try{let o;if(e&&t||this.mightHaveServerCookies){let s={};e&&(s.authorization=`Bearer ${e}`),o=await this.api.post(a.sessionsRefreshPath,t?{refresh_token:t}:{},{headers:s}),r&&this.clearForkedToken()}else{if(!r)return null;o=await this.api.post(a.recoverForkedSessionsPath,{refresh_token:r}),this.clearForkedToken()}return this.handleTokenResponse(o),s.convertUserResponseToUser(o.user)}catch(e){if(e instanceof i.PrivyApiError&&e.privyErrorCode===i.PrivyErrorCode.MISSING_OR_INVALID_TOKEN)return console.warn("Unable to refresh tokens - token is missing or no longer valid"),this.destroyLocalState(),null;throw i.formatPrivyError(e)}}handleTokenResponse(e){e.session_update_action&&"set"!==e.session_update_action?"clear"===e.session_update_action?this.destroyLocalState():"ignore"===e.session_update_action&&(e.token&&(this.storeCustomerAccessToken(e.token),this.storePrivyAccessToken(e.privy_access_token)),e.identity_token&&this.storeIdentityToken(e.identity_token)):this._storeAllTokens(e)}_storeAllTokens(e){this.storeRefreshToken(e.refresh_token),this.storeCustomerAccessToken(e.token),this.storePrivyAccessToken(e.privy_access_token),e.identity_token&&this.storeIdentityToken(e.identity_token)}async _destroy(){try{await(this.api?.post(a.sessionsLogoutPath,{refresh_token:this.refreshToken}))}catch(e){console.warn("Error destroying session")}this.destroyLocalState()}async _forkSession(){if(!this.api)throw new i.PrivyClientError("Session has no API instance");let e=this.refreshToken;try{let t=await this.api.post(a.forkSessionPath,{refresh_token:e});return this.storeRefreshToken(t.refresh_token),this.storeCustomerAccessToken(t.token),t.new_session_refresh_token}catch(e){throw i.formatPrivyError(e)}}destroyLocalState(){this.storeRefreshToken(null),this.storeCustomerAccessToken(null),this.storePrivyAccessToken(null),this.clearIdentityToken(),this.clearForkedToken()}storeCustomerAccessToken(e){if("string"==typeof e){let t=h.default.get(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY);if(h.default.put(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY,e),!this.client?.useServerCookies){let t=u.Token.parse(e)?.expiration;k.default.set(r.CUSTOMER_ACCESS_TOKEN_COOKIE_KEY,e,{sameSite:"Strict",secure:o.getSecureMode(),expires:t?new Date(1e3*t):void 0})}t!==e&&this.client?.onStoreCustomerAccessToken?.(e)}else h.default.del(r.CUSTOMER_ACCESS_TOKEN_STORAGE_KEY),k.default.remove(r.CUSTOMER_ACCESS_TOKEN_COOKIE_KEY),this.client?.onDeleteCustomerAccessToken?.()}storeRefreshToken(e){"string"==typeof e?(h.default.put(r.REFRESH_TOKEN_STORAGE_KEY,e),this.client?.useServerCookies||k.default.set(r.SESSION_COOKIE_KEY,"t",{sameSite:"Strict",secure:o.getSecureMode(),expires:30})):(h.default.del(r.REFRESH_TOKEN_STORAGE_KEY),k.default.remove(r.REFRESH_TOKEN_COOKIE_KEY),k.default.remove(r.SESSION_COOKIE_KEY))}storePrivyAccessToken(e){"string"==typeof e?h.default.put(r.PRIVY_ACCESS_TOKEN_STORAGE_KEY,e):h.default.del(r.PRIVY_ACCESS_TOKEN_STORAGE_KEY)}storeIdentityToken(e){if(this.client?.useServerCookies)return;h.default.put(r.IDENTITY_TOKEN_STORAGE_KEY,e);let t=u.Token.parse(e)?.expiration;c.useIdTokenStore.setState({identityToken:e}),k.default.set(r.IDENTITY_TOKEN_COOKIE_KEY,e,{sameSite:"Strict",secure:o.getSecureMode(),expires:t?new Date(1e3*t):void 0})}clearIdentityToken(){h.default.del(r.IDENTITY_TOKEN_STORAGE_KEY),c.useIdTokenStore.setState({identityToken:null}),k.default.remove(r.IDENTITY_TOKEN_COOKIE_KEY)}clearForkedToken(){h.default.del(r.FORKED_TOKEN_STORAGE_KEY)}constructor(){this.authenticateOnce=new n.RunEffectOnce((async e=>this._authenticate(e))),this.linkOnce=new n.RunEffectOnce((async e=>this._link(e))),this.refreshOnce=new n.RunEffectOnce(this._refresh.bind(this)),this.destroyOnce=new n.RunEffectOnce(this._destroy.bind(this)),this.forkSessionOnce=new n.RunEffectOnce(this._forkSession.bind(this))}};
@@ -1,4 +1,4 @@
1
- import { L as LoginToFrame, U as User } from './types-BR6iorWt.js';
1
+ import { L as LoginToFrame, U as User } from './types-DV20FGOY.js';
2
2
  import '@ethersproject/providers';
3
3
  import '@solana/wallet-adapter-base';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- import { L as LoginToFrame, U as User } from './types-BR6iorWt.js';
1
+ import { L as LoginToFrame, U as User } from './types-DV20FGOY.js';
2
2
  import '@ethersproject/providers';
3
3
  import '@solana/wallet-adapter-base';
4
4
  import 'react';
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { MouseEvent } from 'react';
3
- import { c as Chain, g as UserRecoveryMethod, k as PrivyFarcasterSignerInitResponse, l as MfaSubmitArgs, E as EthereumRpcRequestType, m as SolanaRpcRequestType, n as EthereumRpcResponseType, o as SolanaRpcResponseType, U as User, p as PrivyClientConfig, q as EIP1193Provider, r as WalletTimeoutError, s as RpcConfig, u as EntropyIdVerifier$1, v as RequestArguments, w as WalletConnector, B as BaseConnectedEthereumWallet, x as WalletClientType, y as ConnectedWalletMetadata, z as ConnectorType, A as WalletListEntry, D as ExternalWalletsConfig, G as BaseConnectedWallet, S as SolanaWalletConnector, H as ConnectWalletModalOptions, I as LoginModalOptions, i as CreateWalletOptions, W as Wallet, J as SetWalletRecoveryOptions, K as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, T as SendTransactionModalUIOptions, V as FundWalletConfig, X as TransactionReceipt, b as SupportedSolanaTransaction, j as SolanaFundingConfig, a as SolanaTransactionReceipt, Y as ConnectedWallet, O as OAuthTokens, Z as CrossAppProviderDetails, _ as OAuthProviderType, $ as MoonpaySignRequest, a0 as MoonpaySignResponse, a1 as SmartWalletConfig, a2 as PrivyServerConfig, d as LoginMethod, a3 as SiweWalletMetadata, a4 as TelegramAuthResult, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, C as ConnectedSolanaWallet, ad as CustomAuthFlowState } from './types-BR6iorWt.js';
4
- export { au as Apple, aE as AppleOAuthWithMetadata, aM as ContractUIOptions, ax as CrossAppAccount, aH as CrossAppAccountWithMetadata, ar as Discord, aA as DiscordOAuthWithMetadata, aJ as Email, am as EmailWithMetadata, aQ as Farcaster, aF as FarcasterWithMetadata, as as Github, aB as GithubOAuthWithMetadata, ap as Google, ay as GoogleOAuthWithMetadata, e as LinkedAccountWithMetadata, at as LinkedIn, aD as LinkedInOAuthWithMetadata, aS as LoginMethodOrderOption, af as MessageTypes, ag as MoonpayConfig, ah as MoonpayCurrencyCode, aO as MoonpayFundingConfig, ai as MoonpayPaymentMethod, aN as NativeFundingConfig, al as NonEmptyArray, aR as Passkey, aI as PasskeyWithMetadata, aK as Phone, an as PhoneWithMetadata, aP as PriceDisplayOptions, aj as Quantity, h as SolanaCluster, aw as Telegram, aG as TelegramWithMetadata, av as Tiktok, aC as TiktokOAuthWithMetadata, ak as TransactionLog, aL as TransactionUIOptions, aq as Twitter, az as TwitterOAuthWithMetadata, ae as TypedMessage, ao as WalletWithMetadata } from './types-BR6iorWt.js';
3
+ import { c as Chain, g as UserRecoveryMethod, k as PrivyFarcasterSignerInitResponse, l as MfaSubmitArgs, E as EthereumRpcRequestType, m as SolanaRpcRequestType, n as EthereumRpcResponseType, o as SolanaRpcResponseType, U as User, p as PrivyClientConfig, q as EIP1193Provider, r as WalletTimeoutError, s as RpcConfig, u as EntropyIdVerifier$1, v as RequestArguments, w as WalletConnector, B as BaseConnectedEthereumWallet, x as WalletClientType, y as ConnectedWalletMetadata, z as ConnectorType, A as WalletListEntry, D as ExternalWalletsConfig, G as BaseConnectedWallet, S as SolanaWalletConnector, H as ConnectWalletModalOptions, I as LoginModalOptions, i as CreateWalletOptions, W as Wallet, J as SetWalletRecoveryOptions, K as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, T as SendTransactionModalUIOptions, V as FundWalletConfig, X as TransactionReceipt, b as SupportedSolanaTransaction, j as SolanaFundingConfig, a as SolanaTransactionReceipt, Y as ConnectedWallet, O as OAuthTokens, Z as CrossAppProviderDetails, _ as OAuthProviderType, $ as MoonpaySignRequest, a0 as MoonpaySignResponse, a1 as SmartWalletConfig, a2 as PrivyServerConfig, d as LoginMethod, a3 as SiweWalletMetadata, a4 as TelegramAuthResult, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, C as ConnectedSolanaWallet, ad as CustomAuthFlowState } from './types-DV20FGOY.js';
4
+ export { av as Apple, aG as AppleOAuthWithMetadata, aO as ContractUIOptions, ay as CrossAppAccount, aJ as CrossAppAccountWithMetadata, as as Discord, aC as DiscordOAuthWithMetadata, aL as Email, an as EmailWithMetadata, aS as Farcaster, aH as FarcasterWithMetadata, at as Github, aD as GithubOAuthWithMetadata, aq as Google, aA as GoogleOAuthWithMetadata, az as LinkedAccountType, e as LinkedAccountWithMetadata, au as LinkedIn, aF as LinkedInOAuthWithMetadata, aU as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayConfig, ai as MoonpayCurrencyCode, aQ as MoonpayFundingConfig, aj as MoonpayPaymentMethod, aP as NativeFundingConfig, am as NonEmptyArray, aT as Passkey, aK as PasskeyWithMetadata, aM as Phone, ao as PhoneWithMetadata, aR as PriceDisplayOptions, P as PrivyErrorCode, ak as Quantity, ag as SmartWallet, h as SolanaCluster, ax as Telegram, aI as TelegramWithMetadata, aw as Tiktok, aE as TiktokOAuthWithMetadata, al as TransactionLog, aN as TransactionUIOptions, ar as Twitter, aB as TwitterOAuthWithMetadata, ae as TypedMessage, ap as WalletWithMetadata } from './types-DV20FGOY.js';
5
5
  import { ExternalProvider, StaticJsonRpcProvider, Web3Provider } from '@ethersproject/providers';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { TurnstileProps } from '@marsidev/react-turnstile';
@@ -16,8 +16,8 @@ import * as _solana_web3_js from '@solana/web3.js';
16
16
  import { Connection } from '@solana/web3.js';
17
17
  import { AbstractProvider } from 'web3-core';
18
18
  import { FetchOptions } from 'ofetch';
19
- import { P as PrivyEvents } from './useFundSolanaWallet-Dz8nYtDg.js';
20
- export { C as CallbackError, a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useFundSolanaWallet-Dz8nYtDg.js';
19
+ import { P as PrivyEvents } from './useFundSolanaWallet-DGG3CjFi.js';
20
+ export { C as CallbackError, a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useFundSolanaWallet-DGG3CjFi.js';
21
21
  import 'viem';
22
22
  import '@privy-io/js-sdk-core';
23
23
  import '@metamask/eth-sig-util';
@@ -821,8 +821,14 @@ interface PrivyInterface {
821
821
  * @experimental
822
822
  * For users who are authenticated, prompts the user to link a Telegram account
823
823
  * This will directly initiate the auth flow for Telegram.
824
+ * @param options.launchParams.initDataRaw {string} (optional) Raw data retrieved from an authenticated Telegram session. Used to link a Telegram account seamlessly.
825
+
824
826
  */
825
- linkTelegram: () => void;
827
+ linkTelegram: (options?: {
828
+ launchParams: {
829
+ initDataRaw?: string;
830
+ };
831
+ }) => void;
826
832
  /**
827
833
  * For users who are authenticated and have already linked an email address, prompts the user to update their email address.
828
834
  * This will open the Privy Modal which will guide the user through this action.
@@ -1985,6 +1991,15 @@ declare function useLogin(callbacks?: PrivyEvents['login']): {
1985
1991
  login: (options?: LoginModalOptions | react.MouseEvent<any, any>) => void;
1986
1992
  };
1987
1993
 
1994
+ /**
1995
+ * Use this hook to get the identity token. Allows you to pass the identity token in your requests.
1996
+ *
1997
+ * @returns identityToken - {string | null} - The identity token of the user.
1998
+ */
1999
+ declare function useIdentityToken(): {
2000
+ identityToken: string | null;
2001
+ };
2002
+
1988
2003
  /**
1989
2004
  * Use this hook to log the user out, and to attach a callback after a successful logout.
1990
2005
  *
@@ -2298,7 +2313,11 @@ declare function useLinkAccount(callbacks?: PrivyEvents['linkAccount']): {
2298
2313
  linkSpotify: () => void;
2299
2314
  linkInstagram: () => void;
2300
2315
  linkFarcaster: () => void;
2301
- linkTelegram: () => void;
2316
+ linkTelegram: (options?: {
2317
+ launchParams: {
2318
+ initDataRaw?: string;
2319
+ };
2320
+ }) => void;
2302
2321
  };
2303
2322
 
2304
2323
  /**
@@ -2837,4 +2856,4 @@ declare const LoginModal: ({ open }: {
2837
2856
  open: boolean;
2838
2857
  }) => react_jsx_runtime.JSX.Element;
2839
2858
 
2840
- export { AsExternalProvider, BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, PrivyProxyProvider, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, SolanaFundingConfig, SolanaTransactionReceipt, SupportedSolanaTransaction, TransactionReceipt, UnsignedTransactionRequest, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseOAuthTokens, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useExperimentalFarcasterSigner, useFarcasterSigner, useFundWallet, useGuestAccounts, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendSolanaTransaction, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignMessage, useSignTypedData, useToken, useUpdateAccount, useWallets };
2859
+ export { AsExternalProvider, BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, PrivyProxyProvider, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, SolanaFundingConfig, SolanaTransactionReceipt, SupportedSolanaTransaction, TransactionReceipt, UnsignedTransactionRequest, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseOAuthTokens, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useExperimentalFarcasterSigner, useFarcasterSigner, useFundWallet, useGuestAccounts, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendSolanaTransaction, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignMessage, useSignTypedData, useToken, useUpdateAccount, useWallets };
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { MouseEvent } from 'react';
3
- import { c as Chain, g as UserRecoveryMethod, k as PrivyFarcasterSignerInitResponse, l as MfaSubmitArgs, E as EthereumRpcRequestType, m as SolanaRpcRequestType, n as EthereumRpcResponseType, o as SolanaRpcResponseType, U as User, p as PrivyClientConfig, q as EIP1193Provider, r as WalletTimeoutError, s as RpcConfig, u as EntropyIdVerifier$1, v as RequestArguments, w as WalletConnector, B as BaseConnectedEthereumWallet, x as WalletClientType, y as ConnectedWalletMetadata, z as ConnectorType, A as WalletListEntry, D as ExternalWalletsConfig, G as BaseConnectedWallet, S as SolanaWalletConnector, H as ConnectWalletModalOptions, I as LoginModalOptions, i as CreateWalletOptions, W as Wallet, J as SetWalletRecoveryOptions, K as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, T as SendTransactionModalUIOptions, V as FundWalletConfig, X as TransactionReceipt, b as SupportedSolanaTransaction, j as SolanaFundingConfig, a as SolanaTransactionReceipt, Y as ConnectedWallet, O as OAuthTokens, Z as CrossAppProviderDetails, _ as OAuthProviderType, $ as MoonpaySignRequest, a0 as MoonpaySignResponse, a1 as SmartWalletConfig, a2 as PrivyServerConfig, d as LoginMethod, a3 as SiweWalletMetadata, a4 as TelegramAuthResult, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, C as ConnectedSolanaWallet, ad as CustomAuthFlowState } from './types-BR6iorWt.js';
4
- export { au as Apple, aE as AppleOAuthWithMetadata, aM as ContractUIOptions, ax as CrossAppAccount, aH as CrossAppAccountWithMetadata, ar as Discord, aA as DiscordOAuthWithMetadata, aJ as Email, am as EmailWithMetadata, aQ as Farcaster, aF as FarcasterWithMetadata, as as Github, aB as GithubOAuthWithMetadata, ap as Google, ay as GoogleOAuthWithMetadata, e as LinkedAccountWithMetadata, at as LinkedIn, aD as LinkedInOAuthWithMetadata, aS as LoginMethodOrderOption, af as MessageTypes, ag as MoonpayConfig, ah as MoonpayCurrencyCode, aO as MoonpayFundingConfig, ai as MoonpayPaymentMethod, aN as NativeFundingConfig, al as NonEmptyArray, aR as Passkey, aI as PasskeyWithMetadata, aK as Phone, an as PhoneWithMetadata, aP as PriceDisplayOptions, aj as Quantity, h as SolanaCluster, aw as Telegram, aG as TelegramWithMetadata, av as Tiktok, aC as TiktokOAuthWithMetadata, ak as TransactionLog, aL as TransactionUIOptions, aq as Twitter, az as TwitterOAuthWithMetadata, ae as TypedMessage, ao as WalletWithMetadata } from './types-BR6iorWt.js';
3
+ import { c as Chain, g as UserRecoveryMethod, k as PrivyFarcasterSignerInitResponse, l as MfaSubmitArgs, E as EthereumRpcRequestType, m as SolanaRpcRequestType, n as EthereumRpcResponseType, o as SolanaRpcResponseType, U as User, p as PrivyClientConfig, q as EIP1193Provider, r as WalletTimeoutError, s as RpcConfig, u as EntropyIdVerifier$1, v as RequestArguments, w as WalletConnector, B as BaseConnectedEthereumWallet, x as WalletClientType, y as ConnectedWalletMetadata, z as ConnectorType, A as WalletListEntry, D as ExternalWalletsConfig, G as BaseConnectedWallet, S as SolanaWalletConnector, H as ConnectWalletModalOptions, I as LoginModalOptions, i as CreateWalletOptions, W as Wallet, J as SetWalletRecoveryOptions, K as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, T as SendTransactionModalUIOptions, V as FundWalletConfig, X as TransactionReceipt, b as SupportedSolanaTransaction, j as SolanaFundingConfig, a as SolanaTransactionReceipt, Y as ConnectedWallet, O as OAuthTokens, Z as CrossAppProviderDetails, _ as OAuthProviderType, $ as MoonpaySignRequest, a0 as MoonpaySignResponse, a1 as SmartWalletConfig, a2 as PrivyServerConfig, d as LoginMethod, a3 as SiweWalletMetadata, a4 as TelegramAuthResult, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, C as ConnectedSolanaWallet, ad as CustomAuthFlowState } from './types-DV20FGOY.js';
4
+ export { av as Apple, aG as AppleOAuthWithMetadata, aO as ContractUIOptions, ay as CrossAppAccount, aJ as CrossAppAccountWithMetadata, as as Discord, aC as DiscordOAuthWithMetadata, aL as Email, an as EmailWithMetadata, aS as Farcaster, aH as FarcasterWithMetadata, at as Github, aD as GithubOAuthWithMetadata, aq as Google, aA as GoogleOAuthWithMetadata, az as LinkedAccountType, e as LinkedAccountWithMetadata, au as LinkedIn, aF as LinkedInOAuthWithMetadata, aU as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayConfig, ai as MoonpayCurrencyCode, aQ as MoonpayFundingConfig, aj as MoonpayPaymentMethod, aP as NativeFundingConfig, am as NonEmptyArray, aT as Passkey, aK as PasskeyWithMetadata, aM as Phone, ao as PhoneWithMetadata, aR as PriceDisplayOptions, P as PrivyErrorCode, ak as Quantity, ag as SmartWallet, h as SolanaCluster, ax as Telegram, aI as TelegramWithMetadata, aw as Tiktok, aE as TiktokOAuthWithMetadata, al as TransactionLog, aN as TransactionUIOptions, ar as Twitter, aB as TwitterOAuthWithMetadata, ae as TypedMessage, ap as WalletWithMetadata } from './types-DV20FGOY.js';
5
5
  import { ExternalProvider, StaticJsonRpcProvider, Web3Provider } from '@ethersproject/providers';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { TurnstileProps } from '@marsidev/react-turnstile';
@@ -16,8 +16,8 @@ import * as _solana_web3_js from '@solana/web3.js';
16
16
  import { Connection } from '@solana/web3.js';
17
17
  import { AbstractProvider } from 'web3-core';
18
18
  import { FetchOptions } from 'ofetch';
19
- import { P as PrivyEvents } from './useFundSolanaWallet-Dz8nYtDg.js';
20
- export { C as CallbackError, a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useFundSolanaWallet-Dz8nYtDg.js';
19
+ import { P as PrivyEvents } from './useFundSolanaWallet-DGG3CjFi.js';
20
+ export { C as CallbackError, a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useFundSolanaWallet-DGG3CjFi.js';
21
21
  import 'viem';
22
22
  import '@privy-io/js-sdk-core';
23
23
  import '@metamask/eth-sig-util';
@@ -821,8 +821,14 @@ interface PrivyInterface {
821
821
  * @experimental
822
822
  * For users who are authenticated, prompts the user to link a Telegram account
823
823
  * This will directly initiate the auth flow for Telegram.
824
+ * @param options.launchParams.initDataRaw {string} (optional) Raw data retrieved from an authenticated Telegram session. Used to link a Telegram account seamlessly.
825
+
824
826
  */
825
- linkTelegram: () => void;
827
+ linkTelegram: (options?: {
828
+ launchParams: {
829
+ initDataRaw?: string;
830
+ };
831
+ }) => void;
826
832
  /**
827
833
  * For users who are authenticated and have already linked an email address, prompts the user to update their email address.
828
834
  * This will open the Privy Modal which will guide the user through this action.
@@ -1985,6 +1991,15 @@ declare function useLogin(callbacks?: PrivyEvents['login']): {
1985
1991
  login: (options?: LoginModalOptions | react.MouseEvent<any, any>) => void;
1986
1992
  };
1987
1993
 
1994
+ /**
1995
+ * Use this hook to get the identity token. Allows you to pass the identity token in your requests.
1996
+ *
1997
+ * @returns identityToken - {string | null} - The identity token of the user.
1998
+ */
1999
+ declare function useIdentityToken(): {
2000
+ identityToken: string | null;
2001
+ };
2002
+
1988
2003
  /**
1989
2004
  * Use this hook to log the user out, and to attach a callback after a successful logout.
1990
2005
  *
@@ -2298,7 +2313,11 @@ declare function useLinkAccount(callbacks?: PrivyEvents['linkAccount']): {
2298
2313
  linkSpotify: () => void;
2299
2314
  linkInstagram: () => void;
2300
2315
  linkFarcaster: () => void;
2301
- linkTelegram: () => void;
2316
+ linkTelegram: (options?: {
2317
+ launchParams: {
2318
+ initDataRaw?: string;
2319
+ };
2320
+ }) => void;
2302
2321
  };
2303
2322
 
2304
2323
  /**
@@ -2837,4 +2856,4 @@ declare const LoginModal: ({ open }: {
2837
2856
  open: boolean;
2838
2857
  }) => react_jsx_runtime.JSX.Element;
2839
2858
 
2840
- export { AsExternalProvider, BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, PrivyProxyProvider, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, SolanaFundingConfig, SolanaTransactionReceipt, SupportedSolanaTransaction, TransactionReceipt, UnsignedTransactionRequest, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseOAuthTokens, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useExperimentalFarcasterSigner, useFarcasterSigner, useFundWallet, useGuestAccounts, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendSolanaTransaction, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignMessage, useSignTypedData, useToken, useUpdateAccount, useWallets };
2859
+ export { AsExternalProvider, BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, PrivyProxyProvider, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, SolanaFundingConfig, SolanaTransactionReceipt, SupportedSolanaTransaction, TransactionReceipt, UnsignedTransactionRequest, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseOAuthTokens, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useExperimentalFarcasterSigner, useFarcasterSigner, useFundWallet, useGuestAccounts, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendSolanaTransaction, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignMessage, useSignTypedData, useToken, useUpdateAccount, useWallets };
@@ -1,6 +1,6 @@
1
- import { W as Wallet } from './types-BR6iorWt.js';
2
- export { C as ConnectedSolanaWallet, S as SolanaAdapterConnector, a as SolanaTransactionReceipt, b as SupportedSolanaTransaction, t as toSolanaWalletConnectors } from './types-BR6iorWt.js';
3
- export { a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, b as useFundWallet, u as useSolanaWallets } from './useFundSolanaWallet-Dz8nYtDg.js';
1
+ import { W as Wallet } from './types-DV20FGOY.js';
2
+ export { C as ConnectedSolanaWallet, S as SolanaAdapterConnector, a as SolanaTransactionReceipt, b as SupportedSolanaTransaction, t as toSolanaWalletConnectors } from './types-DV20FGOY.js';
3
+ export { a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, b as useFundWallet, u as useSolanaWallets } from './useFundSolanaWallet-DGG3CjFi.js';
4
4
  import '@ethersproject/providers';
5
5
  import '@solana/wallet-adapter-base';
6
6
  import 'react';
@@ -1,6 +1,6 @@
1
- import { W as Wallet } from './types-BR6iorWt.js';
2
- export { C as ConnectedSolanaWallet, S as SolanaAdapterConnector, a as SolanaTransactionReceipt, b as SupportedSolanaTransaction, t as toSolanaWalletConnectors } from './types-BR6iorWt.js';
3
- export { a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, b as useFundWallet, u as useSolanaWallets } from './useFundSolanaWallet-Dz8nYtDg.js';
1
+ import { W as Wallet } from './types-DV20FGOY.js';
2
+ export { C as ConnectedSolanaWallet, S as SolanaAdapterConnector, a as SolanaTransactionReceipt, b as SupportedSolanaTransaction, t as toSolanaWalletConnectors } from './types-DV20FGOY.js';
3
+ export { a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, b as useFundWallet, u as useSolanaWallets } from './useFundSolanaWallet-DGG3CjFi.js';
4
4
  import '@ethersproject/providers';
5
5
  import '@solana/wallet-adapter-base';
6
6
  import 'react';
@@ -4,7 +4,7 @@ import { ReactElement } from 'react';
4
4
  import { Hex } from 'viem';
5
5
  import { AbstractProvider } from 'web3-core';
6
6
  import { Cluster as Cluster$1, CountryCode } from '@privy-io/js-sdk-core';
7
- import { CustomMetadataType, SmartWalletType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
7
+ import { SmartWalletType, CustomMetadataType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
8
8
  import EventEmitter from 'eventemitter3';
9
9
  import { TypedMessage as TypedMessage$1, MessageTypes as MessageTypes$1 } from '@metamask/eth-sig-util';
10
10
  import { Transaction, VersionedTransaction, ParsedTransactionWithMeta, Cluster } from '@solana/web3.js';
@@ -127,6 +127,9 @@ type Chain = {
127
127
  /** Flag for test networks */
128
128
  testnet?: boolean;
129
129
  };
130
+ type ChainLikeWithId = {
131
+ id: number;
132
+ };
130
133
  /**
131
134
  * RPC configuration for wallets.
132
135
  */
@@ -565,7 +568,7 @@ type SolanaFundingConfig = {
565
568
  * Configuration for native funding amount.
566
569
  */
567
570
  type NativeFundingConfig = {
568
- chain?: Chain;
571
+ chain?: ChainLikeWithId;
569
572
  amount?: string;
570
573
  defaultFundingMethod?: DefaultFundingMethod;
571
574
  card?: {
@@ -573,7 +576,7 @@ type NativeFundingConfig = {
573
576
  preferredProvider?: PreferredCardProvider;
574
577
  };
575
578
  } | {
576
- chain?: Chain;
579
+ chain?: ChainLikeWithId;
577
580
  amount: string;
578
581
  asset: {
579
582
  erc20: Hex;
@@ -1188,6 +1191,7 @@ type PrivyServerConfig = {
1188
1191
  appleOAuth?: boolean;
1189
1192
  farcasterAuth?: boolean;
1190
1193
  passkeyAuth?: boolean;
1194
+ passkeysForSignupEnabled?: boolean;
1191
1195
  telegramAuth?: boolean;
1192
1196
  disablePlusEmails: boolean;
1193
1197
  termsAndConditionsUrl: string | null;
@@ -2138,4 +2142,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
2138
2142
  type SolanaRpcRequestType = solana_signMessage;
2139
2143
  type SolanaRpcResponseType = solana_signMessageResponse;
2140
2144
 
2141
- export { type MoonpaySignRequest as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type ExternalWalletsConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type ConnectWalletModalOptions as H, type LoginModalOptions as I, type SetWalletRecoveryOptions as J, type SignMessageModalUIOptions as K, type LoginToFrame as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, SolanaWalletConnector as S, type SendTransactionModalUIOptions as T, type User as U, type FundWalletConfig as V, type Wallet as W, type TransactionReceipt as X, type ConnectedWallet as Y, type CrossAppProviderDetails as Z, type OAuthProviderType as _, type SolanaTransactionReceipt as a, type MoonpaySignResponse as a0, type SmartWalletConfig as a1, type PrivyServerConfig as a2, type SiweWalletMetadata as a3, type TelegramAuthResult as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type DiscordOAuthWithMetadata as aA, type GithubOAuthWithMetadata as aB, type TiktokOAuthWithMetadata as aC, type LinkedInOAuthWithMetadata as aD, type AppleOAuthWithMetadata as aE, type FarcasterWithMetadata as aF, type TelegramWithMetadata as aG, type CrossAppAccountWithMetadata as aH, type PasskeyWithMetadata as aI, type Email as aJ, type Phone as aK, type TransactionUIOptions as aL, type ContractUIOptions as aM, type NativeFundingConfig as aN, type MoonpayFundingConfig as aO, type PriceDisplayOptions as aP, type Farcaster as aQ, type Passkey as aR, type LoginMethodOrderOption as aS, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type MoonpayConfig as ag, type MoonpayCurrencyCode as ah, type MoonpayPaymentMethod as ai, type Quantity as aj, type TransactionLog as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Telegram as aw, type CrossAppAccount as ax, type GoogleOAuthWithMetadata as ay, type TwitterOAuthWithMetadata as az, type SupportedSolanaTransaction as b, type Chain as c, type LoginMethod as d, type LinkedAccountWithMetadata as e, type BaseConnectedSolanaWallet as f, type UserRecoveryMethod as g, type SolanaCluster as h, type CreateWalletOptions as i, type SolanaFundingConfig as j, type PrivyFarcasterSignerInitResponse as k, type MfaSubmitArgs as l, type SolanaRpcRequestType as m, type EthereumRpcResponseType as n, type SolanaRpcResponseType as o, type PrivyClientConfig as p, type EIP1193Provider as q, WalletTimeoutError as r, type RpcConfig as s, toSolanaWalletConnectors as t, type EntropyIdVerifier as u, type RequestArguments as v, WalletConnector as w, type WalletClientType as x, type ConnectedWalletMetadata as y, type ConnectorType as z };
2145
+ export { type MoonpaySignRequest as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type ExternalWalletsConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type ConnectWalletModalOptions as H, type LoginModalOptions as I, type SetWalletRecoveryOptions as J, type SignMessageModalUIOptions as K, type LoginToFrame as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, SolanaWalletConnector as S, type SendTransactionModalUIOptions as T, type User as U, type FundWalletConfig as V, type Wallet as W, type TransactionReceipt as X, type ConnectedWallet as Y, type CrossAppProviderDetails as Z, type OAuthProviderType as _, type SolanaTransactionReceipt as a, type MoonpaySignResponse as a0, type SmartWalletConfig as a1, type PrivyServerConfig as a2, type SiweWalletMetadata as a3, type TelegramAuthResult as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LinkedInOAuthWithMetadata as aF, type AppleOAuthWithMetadata as aG, type FarcasterWithMetadata as aH, type TelegramWithMetadata as aI, type CrossAppAccountWithMetadata as aJ, type PasskeyWithMetadata as aK, type Email as aL, type Phone as aM, type TransactionUIOptions as aN, type ContractUIOptions as aO, type NativeFundingConfig as aP, type MoonpayFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type NonEmptyArray as am, type EmailWithMetadata as an, type PhoneWithMetadata as ao, type WalletWithMetadata as ap, type Google as aq, type Twitter as ar, type Discord as as, type Github as at, type LinkedIn as au, type Apple as av, type Tiktok as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type SupportedSolanaTransaction as b, type Chain as c, type LoginMethod as d, type LinkedAccountWithMetadata as e, type BaseConnectedSolanaWallet as f, type UserRecoveryMethod as g, type SolanaCluster as h, type CreateWalletOptions as i, type SolanaFundingConfig as j, type PrivyFarcasterSignerInitResponse as k, type MfaSubmitArgs as l, type SolanaRpcRequestType as m, type EthereumRpcResponseType as n, type SolanaRpcResponseType as o, type PrivyClientConfig as p, type EIP1193Provider as q, WalletTimeoutError as r, type RpcConfig as s, toSolanaWalletConnectors as t, type EntropyIdVerifier as u, type RequestArguments as v, WalletConnector as w, type WalletClientType as x, type ConnectedWalletMetadata as y, type ConnectorType as z };
@@ -4,7 +4,7 @@ import { ReactElement } from 'react';
4
4
  import { Hex } from 'viem';
5
5
  import { AbstractProvider } from 'web3-core';
6
6
  import { Cluster as Cluster$1, CountryCode } from '@privy-io/js-sdk-core';
7
- import { CustomMetadataType, SmartWalletType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
7
+ import { SmartWalletType, CustomMetadataType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
8
8
  import EventEmitter from 'eventemitter3';
9
9
  import { TypedMessage as TypedMessage$1, MessageTypes as MessageTypes$1 } from '@metamask/eth-sig-util';
10
10
  import { Transaction, VersionedTransaction, ParsedTransactionWithMeta, Cluster } from '@solana/web3.js';
@@ -127,6 +127,9 @@ type Chain = {
127
127
  /** Flag for test networks */
128
128
  testnet?: boolean;
129
129
  };
130
+ type ChainLikeWithId = {
131
+ id: number;
132
+ };
130
133
  /**
131
134
  * RPC configuration for wallets.
132
135
  */
@@ -565,7 +568,7 @@ type SolanaFundingConfig = {
565
568
  * Configuration for native funding amount.
566
569
  */
567
570
  type NativeFundingConfig = {
568
- chain?: Chain;
571
+ chain?: ChainLikeWithId;
569
572
  amount?: string;
570
573
  defaultFundingMethod?: DefaultFundingMethod;
571
574
  card?: {
@@ -573,7 +576,7 @@ type NativeFundingConfig = {
573
576
  preferredProvider?: PreferredCardProvider;
574
577
  };
575
578
  } | {
576
- chain?: Chain;
579
+ chain?: ChainLikeWithId;
577
580
  amount: string;
578
581
  asset: {
579
582
  erc20: Hex;
@@ -1188,6 +1191,7 @@ type PrivyServerConfig = {
1188
1191
  appleOAuth?: boolean;
1189
1192
  farcasterAuth?: boolean;
1190
1193
  passkeyAuth?: boolean;
1194
+ passkeysForSignupEnabled?: boolean;
1191
1195
  telegramAuth?: boolean;
1192
1196
  disablePlusEmails: boolean;
1193
1197
  termsAndConditionsUrl: string | null;
@@ -2138,4 +2142,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
2138
2142
  type SolanaRpcRequestType = solana_signMessage;
2139
2143
  type SolanaRpcResponseType = solana_signMessageResponse;
2140
2144
 
2141
- export { type MoonpaySignRequest as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type ExternalWalletsConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type ConnectWalletModalOptions as H, type LoginModalOptions as I, type SetWalletRecoveryOptions as J, type SignMessageModalUIOptions as K, type LoginToFrame as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, SolanaWalletConnector as S, type SendTransactionModalUIOptions as T, type User as U, type FundWalletConfig as V, type Wallet as W, type TransactionReceipt as X, type ConnectedWallet as Y, type CrossAppProviderDetails as Z, type OAuthProviderType as _, type SolanaTransactionReceipt as a, type MoonpaySignResponse as a0, type SmartWalletConfig as a1, type PrivyServerConfig as a2, type SiweWalletMetadata as a3, type TelegramAuthResult as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type DiscordOAuthWithMetadata as aA, type GithubOAuthWithMetadata as aB, type TiktokOAuthWithMetadata as aC, type LinkedInOAuthWithMetadata as aD, type AppleOAuthWithMetadata as aE, type FarcasterWithMetadata as aF, type TelegramWithMetadata as aG, type CrossAppAccountWithMetadata as aH, type PasskeyWithMetadata as aI, type Email as aJ, type Phone as aK, type TransactionUIOptions as aL, type ContractUIOptions as aM, type NativeFundingConfig as aN, type MoonpayFundingConfig as aO, type PriceDisplayOptions as aP, type Farcaster as aQ, type Passkey as aR, type LoginMethodOrderOption as aS, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type MoonpayConfig as ag, type MoonpayCurrencyCode as ah, type MoonpayPaymentMethod as ai, type Quantity as aj, type TransactionLog as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Telegram as aw, type CrossAppAccount as ax, type GoogleOAuthWithMetadata as ay, type TwitterOAuthWithMetadata as az, type SupportedSolanaTransaction as b, type Chain as c, type LoginMethod as d, type LinkedAccountWithMetadata as e, type BaseConnectedSolanaWallet as f, type UserRecoveryMethod as g, type SolanaCluster as h, type CreateWalletOptions as i, type SolanaFundingConfig as j, type PrivyFarcasterSignerInitResponse as k, type MfaSubmitArgs as l, type SolanaRpcRequestType as m, type EthereumRpcResponseType as n, type SolanaRpcResponseType as o, type PrivyClientConfig as p, type EIP1193Provider as q, WalletTimeoutError as r, type RpcConfig as s, toSolanaWalletConnectors as t, type EntropyIdVerifier as u, type RequestArguments as v, WalletConnector as w, type WalletClientType as x, type ConnectedWalletMetadata as y, type ConnectorType as z };
2145
+ export { type MoonpaySignRequest as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type ExternalWalletsConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type ConnectWalletModalOptions as H, type LoginModalOptions as I, type SetWalletRecoveryOptions as J, type SignMessageModalUIOptions as K, type LoginToFrame as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, SolanaWalletConnector as S, type SendTransactionModalUIOptions as T, type User as U, type FundWalletConfig as V, type Wallet as W, type TransactionReceipt as X, type ConnectedWallet as Y, type CrossAppProviderDetails as Z, type OAuthProviderType as _, type SolanaTransactionReceipt as a, type MoonpaySignResponse as a0, type SmartWalletConfig as a1, type PrivyServerConfig as a2, type SiweWalletMetadata as a3, type TelegramAuthResult as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LinkedInOAuthWithMetadata as aF, type AppleOAuthWithMetadata as aG, type FarcasterWithMetadata as aH, type TelegramWithMetadata as aI, type CrossAppAccountWithMetadata as aJ, type PasskeyWithMetadata as aK, type Email as aL, type Phone as aM, type TransactionUIOptions as aN, type ContractUIOptions as aO, type NativeFundingConfig as aP, type MoonpayFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type NonEmptyArray as am, type EmailWithMetadata as an, type PhoneWithMetadata as ao, type WalletWithMetadata as ap, type Google as aq, type Twitter as ar, type Discord as as, type Github as at, type LinkedIn as au, type Apple as av, type Tiktok as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type SupportedSolanaTransaction as b, type Chain as c, type LoginMethod as d, type LinkedAccountWithMetadata as e, type BaseConnectedSolanaWallet as f, type UserRecoveryMethod as g, type SolanaCluster as h, type CreateWalletOptions as i, type SolanaFundingConfig as j, type PrivyFarcasterSignerInitResponse as k, type MfaSubmitArgs as l, type SolanaRpcRequestType as m, type EthereumRpcResponseType as n, type SolanaRpcResponseType as o, type PrivyClientConfig as p, type EIP1193Provider as q, WalletTimeoutError as r, type RpcConfig as s, toSolanaWalletConnectors as t, type EntropyIdVerifier as u, type RequestArguments as v, WalletConnector as w, type WalletClientType as x, type ConnectedWalletMetadata as y, type ConnectorType as z };
package/dist/dts/ui.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RuntimeLoginOverridableOptions, c as Chain } from './types-BR6iorWt.js';
2
+ import { R as RuntimeLoginOverridableOptions, c as Chain } from './types-DV20FGOY.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Cluster } from '@privy-io/js-sdk-core';
5
5
  import '@ethersproject/providers';
package/dist/dts/ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RuntimeLoginOverridableOptions, c as Chain } from './types-BR6iorWt.js';
2
+ import { R as RuntimeLoginOverridableOptions, c as Chain } from './types-DV20FGOY.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Cluster } from '@privy-io/js-sdk-core';
5
5
  import '@ethersproject/providers';
@@ -1,5 +1,5 @@
1
1
  import { MouseEvent } from 'react';
2
- import { P as PrivyErrorCode, U as User, d as LoginMethod, e as LinkedAccountWithMetadata, O as OAuthTokens, B as BaseConnectedEthereumWallet, f as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, g as UserRecoveryMethod, a as SolanaTransactionReceipt, c as Chain, F as FundingMethod, h as SolanaCluster, C as ConnectedSolanaWallet, i as CreateWalletOptions, j as SolanaFundingConfig } from './types-BR6iorWt.js';
2
+ import { P as PrivyErrorCode, U as User, d as LoginMethod, e as LinkedAccountWithMetadata, O as OAuthTokens, B as BaseConnectedEthereumWallet, f as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, g as UserRecoveryMethod, a as SolanaTransactionReceipt, c as Chain, F as FundingMethod, h as SolanaCluster, C as ConnectedSolanaWallet, i as CreateWalletOptions, j as SolanaFundingConfig } from './types-DV20FGOY.js';
3
3
  import { TransactionResponse } from '@ethersproject/providers';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { MouseEvent } from 'react';
2
- import { P as PrivyErrorCode, U as User, d as LoginMethod, e as LinkedAccountWithMetadata, O as OAuthTokens, B as BaseConnectedEthereumWallet, f as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, g as UserRecoveryMethod, a as SolanaTransactionReceipt, c as Chain, F as FundingMethod, h as SolanaCluster, C as ConnectedSolanaWallet, i as CreateWalletOptions, j as SolanaFundingConfig } from './types-BR6iorWt.js';
2
+ import { P as PrivyErrorCode, U as User, d as LoginMethod, e as LinkedAccountWithMetadata, O as OAuthTokens, B as BaseConnectedEthereumWallet, f as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, g as UserRecoveryMethod, a as SolanaTransactionReceipt, c as Chain, F as FundingMethod, h as SolanaCluster, C as ConnectedSolanaWallet, i as CreateWalletOptions, j as SolanaFundingConfig } from './types-DV20FGOY.js';
3
3
  import { TransactionResponse } from '@ethersproject/providers';
4
4
 
5
5
  /**