@getpara/react-sdk 2.0.0-alpha.32 → 2.0.0-alpha.34

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 (319) hide show
  1. package/dist/evm/actions/getViemAccount.d.ts +22 -0
  2. package/dist/evm/actions/getViemAccount.js +20 -0
  3. package/dist/evm/actions/getViemClient.d.ts +7659 -0
  4. package/dist/evm/actions/getViemClient.js +25 -0
  5. package/dist/evm/actions/index.d.ts +2 -0
  6. package/dist/evm/actions/index.js +3 -0
  7. package/dist/evm/hooks/index.d.ts +2 -0
  8. package/dist/evm/hooks/index.js +3 -0
  9. package/dist/evm/hooks/useViemAccount.d.ts +26 -0
  10. package/dist/evm/hooks/useViemAccount.js +32 -0
  11. package/dist/evm/hooks/useViemClient.d.ts +7663 -0
  12. package/dist/evm/hooks/useViemClient.js +30 -0
  13. package/dist/evm/index.d.ts +2 -0
  14. package/dist/evm/index.js +3 -0
  15. package/dist/index.d.ts +3 -5
  16. package/dist/index.js +4 -4
  17. package/dist/provider/ParaProvider.d.ts +1 -2
  18. package/dist/provider/ParaProvider.js +13 -106
  19. package/package.json +11 -29
  20. package/styles.css/package.json +1 -1
  21. package/dist/cli/cli.mjs +0 -50
  22. package/dist/modal/ParaModal.d.ts +0 -2
  23. package/dist/modal/ParaModal.js +0 -305
  24. package/dist/modal/components/Account/Account.d.ts +0 -5
  25. package/dist/modal/components/Account/Account.js +0 -148
  26. package/dist/modal/components/Account/AccountProfile.d.ts +0 -1
  27. package/dist/modal/components/Account/AccountProfile.js +0 -168
  28. package/dist/modal/components/Account/AccountProfileLink.d.ts +0 -1
  29. package/dist/modal/components/Account/AccountProfileLink.js +0 -206
  30. package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +0 -1
  31. package/dist/modal/components/Account/AccountProfileLinkOptions.js +0 -111
  32. package/dist/modal/components/Account/AccountProfileUnlink.d.ts +0 -1
  33. package/dist/modal/components/Account/AccountProfileUnlink.js +0 -47
  34. package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -1
  35. package/dist/modal/components/AddFunds/AddFunds.js +0 -69
  36. package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +0 -1
  37. package/dist/modal/components/AddFunds/AddFundsAsset.js +0 -125
  38. package/dist/modal/components/AddFunds/AddFundsAwaiting.d.ts +0 -1
  39. package/dist/modal/components/AddFunds/AddFundsAwaiting.js +0 -78
  40. package/dist/modal/components/AddFunds/AddFundsContext.d.ts +0 -31
  41. package/dist/modal/components/AddFunds/AddFundsContext.js +0 -160
  42. package/dist/modal/components/AddFunds/AddFundsDone.d.ts +0 -6
  43. package/dist/modal/components/AddFunds/AddFundsDone.js +0 -49
  44. package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +0 -1
  45. package/dist/modal/components/AddFunds/AddFundsProvider.js +0 -109
  46. package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +0 -1
  47. package/dist/modal/components/AddFunds/AddFundsReceive.js +0 -83
  48. package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +0 -1
  49. package/dist/modal/components/AddFunds/AddFundsSettings.js +0 -237
  50. package/dist/modal/components/AddFunds/MoonPayEmbed.d.ts +0 -2
  51. package/dist/modal/components/AddFunds/MoonPayEmbed.js +0 -7
  52. package/dist/modal/components/AddFunds/common.d.ts +0 -19
  53. package/dist/modal/components/AddFunds/common.js +0 -24
  54. package/dist/modal/components/AddFunds/index.d.ts +0 -3
  55. package/dist/modal/components/AddFunds/index.js +0 -4
  56. package/dist/modal/components/AuthInput/AuthInput.d.ts +0 -20
  57. package/dist/modal/components/AuthInput/AuthInput.js +0 -277
  58. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.d.ts +0 -7
  59. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +0 -33
  60. package/dist/modal/components/AuthInput/phoneMasks.d.ts +0 -247
  61. package/dist/modal/components/AuthInput/phoneMasks.js +0 -253
  62. package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -9
  63. package/dist/modal/components/AuthMainStep/AuthMainStep.js +0 -50
  64. package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -9
  65. package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +0 -164
  66. package/dist/modal/components/AuthOptions/AuthOptions.d.ts +0 -9
  67. package/dist/modal/components/AuthOptions/AuthOptions.js +0 -85
  68. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +0 -1
  69. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +0 -18
  70. package/dist/modal/components/AwaitingIFrameStep/AwaitingIFrameStep.d.ts +0 -1
  71. package/dist/modal/components/AwaitingIFrameStep/AwaitingIFrameStep.js +0 -12
  72. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +0 -1
  73. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +0 -10
  74. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
  75. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +0 -18
  76. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -5
  77. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +0 -49
  78. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
  79. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +0 -62
  80. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
  81. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +0 -48
  82. package/dist/modal/components/Body/AnimatedHeightWrapper.d.ts +0 -6
  83. package/dist/modal/components/Body/AnimatedHeightWrapper.js +0 -29
  84. package/dist/modal/components/Body/Body.d.ts +0 -11
  85. package/dist/modal/components/Body/Body.js +0 -354
  86. package/dist/modal/components/ChainSwitch/ChainSwitch.d.ts +0 -1
  87. package/dist/modal/components/ChainSwitch/ChainSwitch.js +0 -95
  88. package/dist/modal/components/ChainSwitch/config.d.ts +0 -7
  89. package/dist/modal/components/ChainSwitch/config.js +0 -17
  90. package/dist/modal/components/Controls/Controls.d.ts +0 -5
  91. package/dist/modal/components/Controls/Controls.js +0 -78
  92. package/dist/modal/components/Controls/Selects.d.ts +0 -2
  93. package/dist/modal/components/Controls/Selects.js +0 -173
  94. package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts +0 -1
  95. package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js +0 -75
  96. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +0 -8
  97. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +0 -175
  98. package/dist/modal/components/ExternalWalletStep/config.d.ts +0 -7
  99. package/dist/modal/components/ExternalWalletStep/config.js +0 -17
  100. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
  101. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +0 -39
  102. package/dist/modal/components/ExternalWallets/ExternalWallets.d.ts +0 -1
  103. package/dist/modal/components/ExternalWallets/ExternalWallets.js +0 -184
  104. package/dist/modal/components/Footer/Footer.d.ts +0 -1
  105. package/dist/modal/components/Footer/Footer.js +0 -95
  106. package/dist/modal/components/Header/Header.d.ts +0 -1
  107. package/dist/modal/components/Header/Header.js +0 -43
  108. package/dist/modal/components/Header/hooks/useStepTitle.d.ts +0 -3
  109. package/dist/modal/components/Header/hooks/useStepTitle.js +0 -62
  110. package/dist/modal/components/Hero/Hero.d.ts +0 -1
  111. package/dist/modal/components/Hero/Hero.js +0 -116
  112. package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
  113. package/dist/modal/components/IFrameStep/IFrameStep.js +0 -70
  114. package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -5
  115. package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +0 -44
  116. package/dist/modal/components/ModalContent/ModalContent.d.ts +0 -10
  117. package/dist/modal/components/ModalContent/ModalContent.js +0 -88
  118. package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -3
  119. package/dist/modal/components/OAuth/FarcasterOAuthStep.js +0 -31
  120. package/dist/modal/components/OAuth/OAuth.d.ts +0 -6
  121. package/dist/modal/components/OAuth/OAuth.js +0 -79
  122. package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -8
  123. package/dist/modal/components/OAuth/TelegramOAuthStep.js +0 -74
  124. package/dist/modal/components/OnRampComponents/AddingFunds.d.ts +0 -1
  125. package/dist/modal/components/OnRampComponents/AddingFunds.js +0 -23
  126. package/dist/modal/components/OnRampComponents/OnRampProviderButton.d.ts +0 -9
  127. package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +0 -77
  128. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.d.ts +0 -6
  129. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +0 -107
  130. package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
  131. package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +0 -132
  132. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
  133. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +0 -27
  134. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +0 -12
  135. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +0 -160
  136. package/dist/modal/components/Waiting/Waiting.d.ts +0 -6
  137. package/dist/modal/components/Waiting/Waiting.js +0 -17
  138. package/dist/modal/components/WalletCard/PartnerIcon.d.ts +0 -6
  139. package/dist/modal/components/WalletCard/PartnerIcon.js +0 -34
  140. package/dist/modal/components/WalletCard/WalletCard.d.ts +0 -18
  141. package/dist/modal/components/WalletCard/WalletCard.js +0 -128
  142. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
  143. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +0 -83
  144. package/dist/modal/components/common.d.ts +0 -59
  145. package/dist/modal/components/common.js +0 -261
  146. package/dist/modal/components/index.d.ts +0 -1
  147. package/dist/modal/components/index.js +0 -2
  148. package/dist/modal/constants/constants.d.ts +0 -40
  149. package/dist/modal/constants/constants.js +0 -142
  150. package/dist/modal/constants/defaults.d.ts +0 -5
  151. package/dist/modal/constants/defaults.js +0 -10
  152. package/dist/modal/constants/oAuthLogos.d.ts +0 -17
  153. package/dist/modal/constants/oAuthLogos.js +0 -158
  154. package/dist/modal/constants/walletTypeConfig.d.ts +0 -6
  155. package/dist/modal/constants/walletTypeConfig.js +0 -13
  156. package/dist/modal/hooks/useGoBack.d.ts +0 -1
  157. package/dist/modal/hooks/useGoBack.js +0 -43
  158. package/dist/modal/hooks/useTelegramLogin.d.ts +0 -12
  159. package/dist/modal/hooks/useTelegramLogin.js +0 -65
  160. package/dist/modal/index.d.ts +0 -8
  161. package/dist/modal/index.js +0 -29
  162. package/dist/modal/stores/index.d.ts +0 -1
  163. package/dist/modal/stores/index.js +0 -2
  164. package/dist/modal/stores/modal/actions.d.ts +0 -3
  165. package/dist/modal/stores/modal/actions.js +0 -135
  166. package/dist/modal/stores/modal/useModalStore.d.ts +0 -103
  167. package/dist/modal/stores/modal/useModalStore.js +0 -73
  168. package/dist/modal/types/commonTypes.d.ts +0 -6
  169. package/dist/modal/types/commonTypes.js +0 -1
  170. package/dist/modal/types/modalProps.d.ts +0 -129
  171. package/dist/modal/types/modalProps.js +0 -12
  172. package/dist/modal/utils/authInputHelpers.d.ts +0 -5
  173. package/dist/modal/utils/authInputHelpers.js +0 -41
  174. package/dist/modal/utils/authLayoutHelpers.d.ts +0 -3
  175. package/dist/modal/utils/authLayoutHelpers.js +0 -8
  176. package/dist/modal/utils/countryCodes.d.ts +0 -8
  177. package/dist/modal/utils/countryCodes.js +0 -45
  178. package/dist/modal/utils/getMailtoLink.d.ts +0 -1
  179. package/dist/modal/utils/getMailtoLink.js +0 -10
  180. package/dist/modal/utils/getTileButtonFlex.d.ts +0 -1
  181. package/dist/modal/utils/getTileButtonFlex.js +0 -20
  182. package/dist/modal/utils/getWalletDisplayName.d.ts +0 -5
  183. package/dist/modal/utils/getWalletDisplayName.js +0 -22
  184. package/dist/modal/utils/isPasskeySupported.d.ts +0 -1
  185. package/dist/modal/utils/isPasskeySupported.js +0 -15
  186. package/dist/modal/utils/openPopup.d.ts +0 -6
  187. package/dist/modal/utils/openPopup.js +0 -60
  188. package/dist/modal/utils/routeMobileExternalWallet.d.ts +0 -1
  189. package/dist/modal/utils/routeMobileExternalWallet.js +0 -31
  190. package/dist/modal/utils/steps.d.ts +0 -136
  191. package/dist/modal/utils/steps.js +0 -279
  192. package/dist/modal/utils/stringFormatters.d.ts +0 -5
  193. package/dist/modal/utils/stringFormatters.js +0 -19
  194. package/dist/modal/utils/validateOnRampConfig.d.ts +0 -5
  195. package/dist/modal/utils/validateOnRampConfig.js +0 -32
  196. package/dist/provider/actions/getEmbeddedAccount.d.ts +0 -26
  197. package/dist/provider/actions/getEmbeddedAccount.js +0 -52
  198. package/dist/provider/actions/getWallet.d.ts +0 -5
  199. package/dist/provider/actions/getWallet.js +0 -18
  200. package/dist/provider/actions/index.d.ts +0 -47
  201. package/dist/provider/actions/index.js +0 -79
  202. package/dist/provider/actions/utils.d.ts +0 -4
  203. package/dist/provider/actions/utils.js +0 -34
  204. package/dist/provider/components/CosmosWalletWrapper.d.ts +0 -11
  205. package/dist/provider/components/CosmosWalletWrapper.js +0 -43
  206. package/dist/provider/components/EvmWalletWrapper.d.ts +0 -12
  207. package/dist/provider/components/EvmWalletWrapper.js +0 -43
  208. package/dist/provider/components/ExternalWalletWrapper.d.ts +0 -8
  209. package/dist/provider/components/ExternalWalletWrapper.js +0 -140
  210. package/dist/provider/components/SolanaWalletWrapper.d.ts +0 -9
  211. package/dist/provider/components/SolanaWalletWrapper.js +0 -44
  212. package/dist/provider/external/getParaCosmosConnector.d.ts +0 -7
  213. package/dist/provider/external/getParaCosmosConnector.js +0 -19
  214. package/dist/provider/external/getParaCosmosLib.d.ts +0 -4
  215. package/dist/provider/external/getParaCosmosLib.js +0 -16
  216. package/dist/provider/external/getParaEvmConnector.d.ts +0 -7
  217. package/dist/provider/external/getParaEvmConnector.js +0 -19
  218. package/dist/provider/external/getParaEvmLib.d.ts +0 -4
  219. package/dist/provider/external/getParaEvmLib.js +0 -16
  220. package/dist/provider/external/getParaSolanaConnector.d.ts +0 -7
  221. package/dist/provider/external/getParaSolanaConnector.js +0 -19
  222. package/dist/provider/external/getParaSolanaLib.d.ts +0 -4
  223. package/dist/provider/external/getParaSolanaLib.js +0 -16
  224. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +0 -2
  225. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +0 -8
  226. package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +0 -2
  227. package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +0 -8
  228. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +0 -2
  229. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +0 -8
  230. package/dist/provider/hooks/index.d.ts +0 -3
  231. package/dist/provider/hooks/index.js +0 -4
  232. package/dist/provider/hooks/mutations/core.d.ts +0 -27
  233. package/dist/provider/hooks/mutations/core.js +0 -66
  234. package/dist/provider/hooks/mutations/index.d.ts +0 -3
  235. package/dist/provider/hooks/mutations/index.js +0 -9
  236. package/dist/provider/hooks/mutations/useLinkAccount.d.ts +0 -9
  237. package/dist/provider/hooks/mutations/useLinkAccount.js +0 -18
  238. package/dist/provider/hooks/mutations/utils.d.ts +0 -12
  239. package/dist/provider/hooks/mutations/utils.js +0 -90
  240. package/dist/provider/hooks/queries/core.d.ts +0 -4
  241. package/dist/provider/hooks/queries/core.js +0 -16
  242. package/dist/provider/hooks/queries/index.d.ts +0 -4
  243. package/dist/provider/hooks/queries/index.js +0 -11
  244. package/dist/provider/hooks/queries/useAccount.d.ts +0 -94
  245. package/dist/provider/hooks/queries/useAccount.js +0 -138
  246. package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +0 -5
  247. package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +0 -24
  248. package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
  249. package/dist/provider/hooks/queries/useWallet.js +0 -26
  250. package/dist/provider/hooks/queries/useWalletBalance.d.ts +0 -6
  251. package/dist/provider/hooks/queries/useWalletBalance.js +0 -55
  252. package/dist/provider/hooks/queries/utils.d.ts +0 -7
  253. package/dist/provider/hooks/queries/utils.js +0 -25
  254. package/dist/provider/hooks/utils/index.d.ts +0 -3
  255. package/dist/provider/hooks/utils/index.js +0 -10
  256. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.d.ts +0 -3
  257. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +0 -74
  258. package/dist/provider/hooks/utils/useClient.d.ts +0 -5
  259. package/dist/provider/hooks/utils/useClient.js +0 -10
  260. package/dist/provider/hooks/utils/useEventListeners.d.ts +0 -2
  261. package/dist/provider/hooks/utils/useEventListeners.js +0 -157
  262. package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +0 -4
  263. package/dist/provider/hooks/utils/useFormattedBiometricHints.js +0 -27
  264. package/dist/provider/hooks/utils/useInternalClient.d.ts +0 -5
  265. package/dist/provider/hooks/utils/useInternalClient.js +0 -10
  266. package/dist/provider/hooks/utils/useModal.d.ts +0 -11
  267. package/dist/provider/hooks/utils/useModal.js +0 -27
  268. package/dist/provider/hooks/utils/useWalletState.d.ts +0 -15
  269. package/dist/provider/hooks/utils/useWalletState.js +0 -48
  270. package/dist/provider/index.d.ts +0 -6
  271. package/dist/provider/index.js +0 -11
  272. package/dist/provider/providers/AccountLinkProvider.d.ts +0 -47
  273. package/dist/provider/providers/AccountLinkProvider.js +0 -452
  274. package/dist/provider/providers/AuthProvider.d.ts +0 -37
  275. package/dist/provider/providers/AuthProvider.js +0 -553
  276. package/dist/provider/providers/CosmosExternalWalletProvider.d.ts +0 -7
  277. package/dist/provider/providers/CosmosExternalWalletProvider.js +0 -66
  278. package/dist/provider/providers/EvmExternalWalletProvider.d.ts +0 -7
  279. package/dist/provider/providers/EvmExternalWalletProvider.js +0 -74
  280. package/dist/provider/providers/ExternalWalletProvider.d.ts +0 -59
  281. package/dist/provider/providers/ExternalWalletProvider.js +0 -596
  282. package/dist/provider/providers/SolanaExternalWalletProvider.d.ts +0 -7
  283. package/dist/provider/providers/SolanaExternalWalletProvider.js +0 -66
  284. package/dist/provider/stores/getters.d.ts +0 -4
  285. package/dist/provider/stores/getters.js +0 -13
  286. package/dist/provider/stores/setters.d.ts +0 -1
  287. package/dist/provider/stores/setters.js +0 -7
  288. package/dist/provider/stores/slices/analytics.d.ts +0 -3
  289. package/dist/provider/stores/slices/analytics.js +0 -9
  290. package/dist/provider/stores/slices/client.d.ts +0 -3
  291. package/dist/provider/stores/slices/client.js +0 -9
  292. package/dist/provider/stores/slices/config.d.ts +0 -3
  293. package/dist/provider/stores/slices/config.js +0 -9
  294. package/dist/provider/stores/slices/externalWallets.d.ts +0 -3
  295. package/dist/provider/stores/slices/externalWallets.js +0 -46
  296. package/dist/provider/stores/slices/index.d.ts +0 -5
  297. package/dist/provider/stores/slices/index.js +0 -6
  298. package/dist/provider/stores/slices/modal.d.ts +0 -3
  299. package/dist/provider/stores/slices/modal.js +0 -18
  300. package/dist/provider/stores/slices/wallet.d.ts +0 -3
  301. package/dist/provider/stores/slices/wallet.js +0 -13
  302. package/dist/provider/stores/types.d.ts +0 -76
  303. package/dist/provider/stores/types.js +0 -1
  304. package/dist/provider/stores/useStore.d.ts +0 -17
  305. package/dist/provider/stores/useStore.js +0 -34
  306. package/dist/provider/types/externalWalletProviders.d.ts +0 -12
  307. package/dist/provider/types/externalWalletProviders.js +0 -1
  308. package/dist/provider/types/provider.d.ts +0 -161
  309. package/dist/provider/types/provider.js +0 -1
  310. package/dist/provider/types/query.d.ts +0 -3
  311. package/dist/provider/types/query.js +0 -1
  312. package/dist/provider/types/utils.d.ts +0 -45
  313. package/dist/provider/types/utils.js +0 -1
  314. package/dist/provider/utils/constants.d.ts +0 -5
  315. package/dist/provider/utils/constants.js +0 -10
  316. package/dist/provider/utils/paraConfigTypeGuards.d.ts +0 -7
  317. package/dist/provider/utils/paraConfigTypeGuards.js +0 -13
  318. package/dist/provider/utils/renameMutations.d.ts +0 -5
  319. package/dist/provider/utils/renameMutations.js +0 -18
@@ -0,0 +1,22 @@
1
+ import ParaWeb from '@getpara/react-sdk-lite';
2
+ export declare const getViemAccount: ({ para, address }: {
3
+ para: ParaWeb;
4
+ address?: `0x${string}`;
5
+ }) => Promise<{
6
+ address: import("abitype").Address;
7
+ nonceManager?: import("viem").NonceManager | undefined;
8
+ sign?: ((parameters: {
9
+ hash: import("viem").Hash;
10
+ }) => Promise<import("viem").Hex>) | undefined | undefined;
11
+ signAuthorization?: ((parameters: import("viem/_types/types/authorization").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>) | undefined | undefined;
12
+ signMessage: ({ message }: {
13
+ message: import("viem").SignableMessage;
14
+ }) => Promise<import("viem").Hex>;
15
+ signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
16
+ serializer?: serializer | undefined;
17
+ } | undefined) => Promise<import("viem").IsNarrowable<import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>>, import("viem").Hex> extends true ? import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>> : import("viem").Hex>;
18
+ signTypedData: <const typedData extends import("abitype").TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<import("viem").Hex>;
19
+ publicKey: import("viem").Hex;
20
+ source: string;
21
+ type: "local";
22
+ } | null>;
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ import { createParaAccount } from "@getpara/viem-v2-integration";
6
+ const getViemAccount = (_0) => __async(void 0, [_0], function* ({ para, address }) {
7
+ if (para.getWalletsByType("EVM").length === 0) {
8
+ return null;
9
+ }
10
+ if (address) {
11
+ const wallet = para.findWallet(address);
12
+ if (wallet == null ? void 0 : wallet.isExternal) {
13
+ return null;
14
+ }
15
+ }
16
+ return yield createParaAccount(para, address);
17
+ });
18
+ export {
19
+ getViemAccount
20
+ };