thirdweb 5.30.0-nightly-e7434891354f351d2a399daebdddae9cf1fc817b-20240623000619 → 5.30.0-nightly-3979ff0238ae9b3a0a216e6c2d562eb7206a9fe8-20240626085813

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 (479) hide show
  1. package/dist/cjs/auth/verifySignature.js +15 -1
  2. package/dist/cjs/auth/verifySignature.js.map +1 -1
  3. package/dist/cjs/exports/extensions/erc1155.js +3 -1
  4. package/dist/cjs/exports/extensions/erc1155.js.map +1 -1
  5. package/dist/cjs/exports/transaction.js +3 -1
  6. package/dist/cjs/exports/transaction.js.map +1 -1
  7. package/dist/cjs/react/core/design-system/index.js +2 -0
  8. package/dist/cjs/react/core/design-system/index.js.map +1 -1
  9. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +12 -24
  10. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  11. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +4 -6
  12. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  13. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +12 -14
  14. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  15. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +31 -28
  16. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  17. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js +7 -5
  18. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
  19. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +15 -17
  20. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  21. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +11 -13
  22. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
  23. package/dist/cjs/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js +1 -4
  24. package/dist/cjs/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
  25. package/dist/cjs/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js +4 -6
  26. package/dist/cjs/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js.map +1 -1
  27. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +8 -11
  28. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  29. package/dist/cjs/react/web/ui/ConnectWallet/Modal/TOS.js +1 -3
  30. package/dist/cjs/react/web/ui/ConnectWallet/Modal/TOS.js.map +1 -1
  31. package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js +5 -9
  32. package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
  33. package/dist/cjs/react/web/ui/ConnectWallet/NetworkSelector.js +2 -2
  34. package/dist/cjs/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
  35. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -4
  36. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  37. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +24 -30
  38. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  39. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +114 -86
  40. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  41. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js +25 -0
  42. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js.map +1 -0
  43. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js +1 -1
  44. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js.map +1 -1
  45. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +7 -3
  46. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
  47. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +2 -2
  48. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
  49. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js +4 -11
  50. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js.map +1 -1
  51. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js +3 -16
  52. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js.map +1 -1
  53. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js +0 -3
  54. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
  55. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js +4 -6
  56. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js.map +1 -1
  57. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +2 -2
  58. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  59. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +2 -2
  60. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  61. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js +2 -2
  62. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js.map +1 -1
  63. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js +2 -2
  64. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js.map +1 -1
  65. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/utils.js +7 -0
  66. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/utils.js.map +1 -0
  67. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +2 -4
  68. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  69. package/dist/cjs/react/web/ui/ConnectWallet/screens/StartScreen.js +7 -9
  70. package/dist/cjs/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
  71. package/dist/cjs/react/web/ui/ConnectWallet/screens/TokenSelector.js +1 -1
  72. package/dist/cjs/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
  73. package/dist/cjs/react/web/ui/ConnectWallet/useConnectModal.js +23 -27
  74. package/dist/cjs/react/web/ui/ConnectWallet/useConnectModal.js.map +1 -1
  75. package/dist/cjs/react/web/ui/PayEmbed.js +1 -0
  76. package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
  77. package/dist/cjs/react/web/ui/components/ChainName.js +12 -1
  78. package/dist/cjs/react/web/ui/components/ChainName.js.map +1 -1
  79. package/dist/cjs/react/web/ui/components/basic.js +1 -1
  80. package/dist/cjs/react/web/ui/components/basic.js.map +1 -1
  81. package/dist/cjs/react/web/ui/components/buttons.js +6 -0
  82. package/dist/cjs/react/web/ui/components/buttons.js.map +1 -1
  83. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +6 -8
  84. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  85. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +5 -7
  86. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
  87. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +6 -8
  88. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  89. package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js +8 -11
  90. package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
  91. package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js +5 -7
  92. package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
  93. package/dist/cjs/react/web/wallets/in-app/useInAppWalletLocale.js +5 -5
  94. package/dist/cjs/react/web/wallets/in-app/useInAppWalletLocale.js.map +1 -1
  95. package/dist/cjs/react/web/wallets/shared/CoinbaseSDKConnection.js +4 -6
  96. package/dist/cjs/react/web/wallets/shared/CoinbaseSDKConnection.js.map +1 -1
  97. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +7 -9
  98. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  99. package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js +3 -5
  100. package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
  101. package/dist/cjs/react/web/wallets/shared/GetStartedScreen.js +4 -6
  102. package/dist/cjs/react/web/wallets/shared/GetStartedScreen.js.map +1 -1
  103. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +8 -10
  104. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  105. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +2 -4
  106. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  107. package/dist/cjs/react/web/wallets/shared/SocialLogin.js +3 -6
  108. package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
  109. package/dist/cjs/react/web/wallets/shared/WalletConnectConnection.js +24 -27
  110. package/dist/cjs/react/web/wallets/shared/WalletConnectConnection.js.map +1 -1
  111. package/dist/cjs/react/web/wallets/shared/locale/en.js.map +1 -1
  112. package/dist/cjs/react/web/wallets/shared/locale/es.js.map +1 -1
  113. package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js +2 -2
  114. package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
  115. package/dist/cjs/react/web/wallets/shared/locale/ja.js.map +1 -1
  116. package/dist/cjs/react/web/wallets/shared/locale/tl.js.map +1 -1
  117. package/dist/cjs/react/web/wallets/walletConnect/locale.js +3 -3
  118. package/dist/cjs/react/web/wallets/walletConnect/locale.js.map +1 -1
  119. package/dist/cjs/transaction/actions/gasless/send-gasless-transaction.js +14 -4
  120. package/dist/cjs/transaction/actions/gasless/send-gasless-transaction.js.map +1 -1
  121. package/dist/cjs/transaction/actions/send-transaction.js +7 -0
  122. package/dist/cjs/transaction/actions/send-transaction.js.map +1 -1
  123. package/dist/cjs/transaction/transaction-store.js +33 -0
  124. package/dist/cjs/transaction/transaction-store.js.map +1 -0
  125. package/dist/cjs/version.js +1 -1
  126. package/dist/cjs/wallets/in-app/web/utils/Storage/LocalStorage.js.map +1 -1
  127. package/dist/cjs/wallets/wallet-connect/controller.js +7 -3
  128. package/dist/cjs/wallets/wallet-connect/controller.js.map +1 -1
  129. package/dist/esm/auth/verifySignature.js +15 -1
  130. package/dist/esm/auth/verifySignature.js.map +1 -1
  131. package/dist/esm/exports/extensions/erc1155.js +1 -0
  132. package/dist/esm/exports/extensions/erc1155.js.map +1 -1
  133. package/dist/esm/exports/transaction.js +1 -0
  134. package/dist/esm/exports/transaction.js.map +1 -1
  135. package/dist/esm/react/core/design-system/index.js +2 -0
  136. package/dist/esm/react/core/design-system/index.js.map +1 -1
  137. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +12 -24
  138. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  139. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +4 -6
  140. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  141. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +12 -14
  142. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  143. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +31 -28
  144. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  145. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js +7 -5
  146. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
  147. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +16 -18
  148. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  149. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +11 -13
  150. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
  151. package/dist/esm/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js +1 -4
  152. package/dist/esm/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
  153. package/dist/esm/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js +4 -6
  154. package/dist/esm/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js.map +1 -1
  155. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +8 -11
  156. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  157. package/dist/esm/react/web/ui/ConnectWallet/Modal/TOS.js +1 -3
  158. package/dist/esm/react/web/ui/ConnectWallet/Modal/TOS.js.map +1 -1
  159. package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js +5 -9
  160. package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
  161. package/dist/esm/react/web/ui/ConnectWallet/NetworkSelector.js +2 -2
  162. package/dist/esm/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
  163. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -4
  164. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  165. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +24 -30
  166. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  167. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +115 -87
  168. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  169. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js +22 -0
  170. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js.map +1 -0
  171. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js +1 -1
  172. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js.map +1 -1
  173. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +7 -3
  174. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
  175. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +2 -2
  176. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
  177. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js +4 -11
  178. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js.map +1 -1
  179. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js +3 -16
  180. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js.map +1 -1
  181. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js +0 -3
  182. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
  183. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js +4 -6
  184. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js.map +1 -1
  185. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +2 -2
  186. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  187. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +2 -2
  188. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  189. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js +2 -2
  190. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js.map +1 -1
  191. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js +2 -2
  192. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js.map +1 -1
  193. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/utils.js +4 -0
  194. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/utils.js.map +1 -0
  195. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +2 -4
  196. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  197. package/dist/esm/react/web/ui/ConnectWallet/screens/StartScreen.js +7 -9
  198. package/dist/esm/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
  199. package/dist/esm/react/web/ui/ConnectWallet/screens/TokenSelector.js +1 -1
  200. package/dist/esm/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
  201. package/dist/esm/react/web/ui/ConnectWallet/useConnectModal.js +23 -27
  202. package/dist/esm/react/web/ui/ConnectWallet/useConnectModal.js.map +1 -1
  203. package/dist/esm/react/web/ui/PayEmbed.js +1 -0
  204. package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
  205. package/dist/esm/react/web/ui/components/ChainName.js +12 -1
  206. package/dist/esm/react/web/ui/components/ChainName.js.map +1 -1
  207. package/dist/esm/react/web/ui/components/basic.js +1 -1
  208. package/dist/esm/react/web/ui/components/basic.js.map +1 -1
  209. package/dist/esm/react/web/ui/components/buttons.js +6 -0
  210. package/dist/esm/react/web/ui/components/buttons.js.map +1 -1
  211. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +7 -9
  212. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  213. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +5 -7
  214. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
  215. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +7 -9
  216. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  217. package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js +8 -11
  218. package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
  219. package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js +6 -8
  220. package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
  221. package/dist/esm/react/web/wallets/in-app/useInAppWalletLocale.js +5 -5
  222. package/dist/esm/react/web/wallets/in-app/useInAppWalletLocale.js.map +1 -1
  223. package/dist/esm/react/web/wallets/shared/CoinbaseSDKConnection.js +4 -6
  224. package/dist/esm/react/web/wallets/shared/CoinbaseSDKConnection.js.map +1 -1
  225. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +7 -9
  226. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  227. package/dist/esm/react/web/wallets/shared/ConnectingScreen.js +3 -5
  228. package/dist/esm/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
  229. package/dist/esm/react/web/wallets/shared/GetStartedScreen.js +4 -6
  230. package/dist/esm/react/web/wallets/shared/GetStartedScreen.js.map +1 -1
  231. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +8 -10
  232. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  233. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +2 -4
  234. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  235. package/dist/esm/react/web/wallets/shared/SocialLogin.js +3 -6
  236. package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
  237. package/dist/esm/react/web/wallets/shared/WalletConnectConnection.js +24 -27
  238. package/dist/esm/react/web/wallets/shared/WalletConnectConnection.js.map +1 -1
  239. package/dist/esm/react/web/wallets/shared/locale/en.js.map +1 -1
  240. package/dist/esm/react/web/wallets/shared/locale/es.js.map +1 -1
  241. package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js +1 -1
  242. package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
  243. package/dist/esm/react/web/wallets/shared/locale/ja.js.map +1 -1
  244. package/dist/esm/react/web/wallets/shared/locale/tl.js.map +1 -1
  245. package/dist/esm/react/web/wallets/walletConnect/locale.js +3 -3
  246. package/dist/esm/react/web/wallets/walletConnect/locale.js.map +1 -1
  247. package/dist/esm/transaction/actions/gasless/send-gasless-transaction.js +14 -4
  248. package/dist/esm/transaction/actions/gasless/send-gasless-transaction.js.map +1 -1
  249. package/dist/esm/transaction/actions/send-transaction.js +7 -0
  250. package/dist/esm/transaction/actions/send-transaction.js.map +1 -1
  251. package/dist/esm/transaction/transaction-store.js +29 -0
  252. package/dist/esm/transaction/transaction-store.js.map +1 -0
  253. package/dist/esm/version.js +1 -1
  254. package/dist/esm/wallets/in-app/web/utils/Storage/LocalStorage.js.map +1 -1
  255. package/dist/esm/wallets/wallet-connect/controller.js +7 -3
  256. package/dist/esm/wallets/wallet-connect/controller.js.map +1 -1
  257. package/dist/types/auth/verifySignature.d.ts +0 -20
  258. package/dist/types/auth/verifySignature.d.ts.map +1 -1
  259. package/dist/types/exports/extensions/erc1155.d.ts +1 -0
  260. package/dist/types/exports/extensions/erc1155.d.ts.map +1 -1
  261. package/dist/types/exports/transaction.d.ts +1 -0
  262. package/dist/types/exports/transaction.d.ts.map +1 -1
  263. package/dist/types/react/core/design-system/index.d.ts +2 -0
  264. package/dist/types/react/core/design-system/index.d.ts.map +1 -1
  265. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  266. package/dist/types/react/web/ui/ConnectWallet/ConnectButtonProps.d.ts +2 -2
  267. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts +7 -0
  268. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts.map +1 -1
  269. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts +20 -0
  270. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  271. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  272. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts +32 -0
  273. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts.map +1 -1
  274. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts +32 -0
  275. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
  276. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalInline.d.ts +31 -2
  277. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalInline.d.ts.map +1 -1
  278. package/dist/types/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.d.ts +2 -0
  279. package/dist/types/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.d.ts.map +1 -1
  280. package/dist/types/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.d.ts +5 -0
  281. package/dist/types/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.d.ts.map +1 -1
  282. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts +20 -0
  283. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts.map +1 -1
  284. package/dist/types/react/web/ui/ConnectWallet/Modal/TOS.d.ts +2 -0
  285. package/dist/types/react/web/ui/ConnectWallet/Modal/TOS.d.ts.map +1 -1
  286. package/dist/types/react/web/ui/ConnectWallet/Modal/screen.d.ts +6 -1
  287. package/dist/types/react/web/ui/ConnectWallet/Modal/screen.d.ts.map +1 -1
  288. package/dist/types/react/web/ui/ConnectWallet/NetworkSelector.d.ts.map +1 -1
  289. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts +6 -0
  290. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts.map +1 -1
  291. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts +25 -0
  292. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
  293. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
  294. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.d.ts +14 -0
  295. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.d.ts.map +1 -0
  296. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.d.ts.map +1 -1
  297. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/types.d.ts +9 -5
  298. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/types.d.ts.map +1 -1
  299. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.d.ts +2 -3
  300. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.d.ts.map +1 -1
  301. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts +2 -2
  302. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts.map +1 -1
  303. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts +0 -2
  304. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts.map +1 -1
  305. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.d.ts.map +1 -1
  306. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.d.ts.map +1 -1
  307. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts.map +1 -1
  308. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/utils.d.ts +2 -0
  309. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/utils.d.ts.map +1 -0
  310. package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts.map +1 -1
  311. package/dist/types/react/web/ui/ConnectWallet/screens/StartScreen.d.ts +13 -1
  312. package/dist/types/react/web/ui/ConnectWallet/screens/StartScreen.d.ts.map +1 -1
  313. package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts +1 -0
  314. package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts.map +1 -1
  315. package/dist/types/react/web/ui/ConnectWallet/useConnectModal.d.ts.map +1 -1
  316. package/dist/types/react/web/ui/PayEmbed.d.ts +1 -0
  317. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  318. package/dist/types/react/web/ui/components/ChainName.d.ts +1 -0
  319. package/dist/types/react/web/ui/components/ChainName.d.ts.map +1 -1
  320. package/dist/types/react/web/ui/components/basic.d.ts +1 -0
  321. package/dist/types/react/web/ui/components/basic.d.ts.map +1 -1
  322. package/dist/types/react/web/ui/components/buttons.d.ts +2 -1
  323. package/dist/types/react/web/ui/components/buttons.d.ts.map +1 -1
  324. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts +16 -0
  325. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
  326. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts +16 -2
  327. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts.map +1 -1
  328. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +16 -0
  329. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  330. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts +16 -2
  331. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts.map +1 -1
  332. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts +10 -0
  333. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts.map +1 -1
  334. package/dist/types/react/web/wallets/in-app/useInAppWalletLocale.d.ts +3 -2
  335. package/dist/types/react/web/wallets/in-app/useInAppWalletLocale.d.ts.map +1 -1
  336. package/dist/types/react/web/wallets/shared/CoinbaseSDKConnection.d.ts +6 -1
  337. package/dist/types/react/web/wallets/shared/CoinbaseSDKConnection.d.ts.map +1 -1
  338. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts +7 -2
  339. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  340. package/dist/types/react/web/wallets/shared/ConnectingScreen.d.ts +3 -0
  341. package/dist/types/react/web/wallets/shared/ConnectingScreen.d.ts.map +1 -1
  342. package/dist/types/react/web/wallets/shared/GetStartedScreen.d.ts +2 -0
  343. package/dist/types/react/web/wallets/shared/GetStartedScreen.d.ts.map +1 -1
  344. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts +7 -2
  345. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
  346. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +5 -0
  347. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
  348. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts +7 -2
  349. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
  350. package/dist/types/react/web/wallets/shared/WalletConnectConnection.d.ts +16 -0
  351. package/dist/types/react/web/wallets/shared/WalletConnectConnection.d.ts.map +1 -1
  352. package/dist/types/react/web/wallets/shared/locale/en.d.ts.map +1 -1
  353. package/dist/types/react/web/wallets/shared/locale/es.d.ts.map +1 -1
  354. package/dist/types/react/web/wallets/shared/locale/getConnectLocale.d.ts +2 -2
  355. package/dist/types/react/web/wallets/shared/locale/getConnectLocale.d.ts.map +1 -1
  356. package/dist/types/react/web/wallets/shared/locale/ja.d.ts.map +1 -1
  357. package/dist/types/react/web/wallets/shared/locale/tl.d.ts.map +1 -1
  358. package/dist/types/react/web/wallets/shared/locale/types.d.ts +1 -1
  359. package/dist/types/react/web/wallets/shared/locale/types.d.ts.map +1 -1
  360. package/dist/types/transaction/actions/gasless/send-gasless-transaction.d.ts.map +1 -1
  361. package/dist/types/transaction/actions/send-transaction.d.ts.map +1 -1
  362. package/dist/types/transaction/actions/zksync/getEip721Domain.d.ts +3 -3
  363. package/dist/types/transaction/prepare-transaction.d.ts +3 -3
  364. package/dist/types/transaction/transaction-store.d.ts +22 -0
  365. package/dist/types/transaction/transaction-store.d.ts.map +1 -0
  366. package/dist/types/version.d.ts +1 -1
  367. package/dist/types/wallets/in-app/web/utils/Storage/LocalStorage.d.ts.map +1 -1
  368. package/package.json +4 -1
  369. package/src/auth/verifySignature.ts +16 -1
  370. package/src/exports/extensions/erc1155.ts +4 -0
  371. package/src/exports/transaction.ts +1 -0
  372. package/src/extensions/airdrop/write/airdropERC1155WithSignature.test.ts +8 -9
  373. package/src/extensions/airdrop/write/airdropERC20WithSignature.test.ts +9 -10
  374. package/src/extensions/airdrop/write/airdropERC721WithSignature.test.ts +5 -5
  375. package/src/extensions/airdrop/write/claimERC1155.test.ts +6 -6
  376. package/src/extensions/airdrop/write/claimERC20.test.ts +7 -7
  377. package/src/extensions/airdrop/write/claimERC721.test.ts +6 -6
  378. package/src/react/core/design-system/index.ts +2 -0
  379. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +35 -33
  380. package/src/react/web/ui/ConnectWallet/ConnectButtonProps.ts +2 -2
  381. package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +13 -6
  382. package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +58 -4
  383. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +97 -38
  384. package/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx +56 -4
  385. package/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx +98 -30
  386. package/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx +100 -15
  387. package/src/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.tsx +3 -5
  388. package/src/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.tsx +10 -5
  389. package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +43 -10
  390. package/src/react/web/ui/ConnectWallet/Modal/TOS.tsx +3 -3
  391. package/src/react/web/ui/ConnectWallet/Modal/screen.tsx +10 -12
  392. package/src/react/web/ui/ConnectWallet/NetworkSelector.tsx +2 -1
  393. package/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx +14 -6
  394. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +112 -33
  395. package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +411 -204
  396. package/src/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.tsx +45 -0
  397. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.tsx +1 -1
  398. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +7 -3
  399. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.tsx +12 -12
  400. package/src/react/web/ui/ConnectWallet/screens/Buy/main/types.ts +14 -5
  401. package/src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts +6 -15
  402. package/src/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.ts +3 -28
  403. package/src/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.ts +2 -3
  404. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx +4 -6
  405. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx +2 -2
  406. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx +2 -2
  407. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.tsx +2 -2
  408. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.tsx +2 -2
  409. package/src/react/web/ui/ConnectWallet/screens/Buy/utils.ts +3 -0
  410. package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +2 -3
  411. package/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx +23 -14
  412. package/src/react/web/ui/ConnectWallet/screens/TokenSelector.tsx +5 -1
  413. package/src/react/web/ui/ConnectWallet/useConnectModal.tsx +44 -39
  414. package/src/react/web/ui/PayEmbed-disconnected.test.tsx +15 -0
  415. package/src/react/web/ui/PayEmbed.test.tsx +33 -6
  416. package/src/react/web/ui/PayEmbed.tsx +3 -0
  417. package/src/react/web/ui/components/ChainName.tsx +18 -1
  418. package/src/react/web/ui/components/basic.tsx +2 -1
  419. package/src/react/web/ui/components/buttons.tsx +8 -0
  420. package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +33 -5
  421. package/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx +25 -12
  422. package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +34 -6
  423. package/src/react/web/wallets/in-app/InAppWalletFormUI.tsx +44 -23
  424. package/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx +20 -6
  425. package/src/react/web/wallets/in-app/useInAppWalletLocale.ts +10 -7
  426. package/src/react/web/wallets/shared/CoinbaseSDKConnection.tsx +12 -9
  427. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +14 -11
  428. package/src/react/web/wallets/shared/ConnectingScreen.tsx +7 -5
  429. package/src/react/web/wallets/shared/GetStartedScreen.tsx +7 -4
  430. package/src/react/web/wallets/shared/OTPLoginUI.tsx +15 -12
  431. package/src/react/web/wallets/shared/PassKeyLogin.tsx +5 -4
  432. package/src/react/web/wallets/shared/SocialLogin.tsx +11 -8
  433. package/src/react/web/wallets/shared/WalletConnectConnection.tsx +48 -27
  434. package/src/react/web/wallets/shared/locale/en.ts +2 -2
  435. package/src/react/web/wallets/shared/locale/es.ts +2 -2
  436. package/src/react/web/wallets/shared/locale/getConnectLocale.ts +3 -3
  437. package/src/react/web/wallets/shared/locale/ja.ts +2 -2
  438. package/src/react/web/wallets/shared/locale/tl.ts +2 -2
  439. package/src/react/web/wallets/shared/locale/types.ts +1 -1
  440. package/src/react/web/wallets/walletConnect/locale.ts +3 -3
  441. package/src/rpc/actions/eth_getLogs.test.ts +3 -2
  442. package/src/transaction/actions/gasless/send-gasless-transaction.ts +15 -4
  443. package/src/transaction/actions/send-transaction.test.ts +22 -1
  444. package/src/transaction/actions/send-transaction.ts +7 -0
  445. package/src/transaction/actions/zksync/getEip721Domain.ts +4 -4
  446. package/src/transaction/prepare-transaction.ts +3 -3
  447. package/src/transaction/transaction-store.test.ts +51 -0
  448. package/src/transaction/transaction-store.ts +46 -0
  449. package/src/version.ts +1 -1
  450. package/src/wallets/in-app/web/utils/Storage/LocalStorage.ts +4 -1
  451. package/src/wallets/wallet-connect/controller.ts +8 -3
  452. package/dist/cjs/react/core/hooks/others/useWalletConnectionCtx.js +0 -16
  453. package/dist/cjs/react/core/hooks/others/useWalletConnectionCtx.js.map +0 -1
  454. package/dist/cjs/react/core/providers/wallet-connection.js +0 -7
  455. package/dist/cjs/react/core/providers/wallet-connection.js.map +0 -1
  456. package/dist/cjs/react/web/ui/ConnectWallet/icons/CryptoIcon.js +0 -12
  457. package/dist/cjs/react/web/ui/ConnectWallet/icons/CryptoIcon.js.map +0 -1
  458. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js +0 -44
  459. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js.map +0 -1
  460. package/dist/esm/react/core/hooks/others/useWalletConnectionCtx.js +0 -13
  461. package/dist/esm/react/core/hooks/others/useWalletConnectionCtx.js.map +0 -1
  462. package/dist/esm/react/core/providers/wallet-connection.js +0 -4
  463. package/dist/esm/react/core/providers/wallet-connection.js.map +0 -1
  464. package/dist/esm/react/web/ui/ConnectWallet/icons/CryptoIcon.js +0 -8
  465. package/dist/esm/react/web/ui/ConnectWallet/icons/CryptoIcon.js.map +0 -1
  466. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js +0 -41
  467. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js.map +0 -1
  468. package/dist/types/react/core/hooks/others/useWalletConnectionCtx.d.ts +0 -29
  469. package/dist/types/react/core/hooks/others/useWalletConnectionCtx.d.ts.map +0 -1
  470. package/dist/types/react/core/providers/wallet-connection.d.ts +0 -35
  471. package/dist/types/react/core/providers/wallet-connection.d.ts.map +0 -1
  472. package/dist/types/react/web/ui/ConnectWallet/icons/CryptoIcon.d.ts +0 -6
  473. package/dist/types/react/web/ui/ConnectWallet/icons/CryptoIcon.d.ts.map +0 -1
  474. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.d.ts +0 -8
  475. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.d.ts.map +0 -1
  476. package/src/react/core/hooks/others/useWalletConnectionCtx.ts +0 -15
  477. package/src/react/core/providers/wallet-connection.tsx +0 -37
  478. package/src/react/web/ui/ConnectWallet/icons/CryptoIcon.tsx +0 -50
  479. package/src/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.tsx +0 -72
@@ -1,7 +1,7 @@
1
1
  import type { LocaleId } from "../../../ui/types.js";
2
- import type { ConnectLocale } from "./types.js";
2
+ import type { InAppWalletLocale } from "./types.js";
3
3
  /**
4
4
  * @internal
5
5
  */
6
- export declare function getConnectLocale(localeId: LocaleId): Promise<ConnectLocale>;
6
+ export declare function getInAppWalletLocale(localeId: LocaleId): Promise<InAppWalletLocale>;
7
7
  //# sourceMappingURL=getConnectLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getConnectLocale.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/getConnectLocale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,aAAa,CAAC,CAWxB"}
1
+ {"version":3,"file":"getConnectLocale.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/getConnectLocale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,iBAAiB,CAAC,CAW5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/ja.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAoD0B"}
1
+ {"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/ja.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAoD8B"}
@@ -1 +1 @@
1
- {"version":3,"file":"tl.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/tl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAqD0B"}
1
+ {"version":3,"file":"tl.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/tl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAqD8B"}
@@ -1,4 +1,4 @@
1
- export type ConnectLocale = {
1
+ export type InAppWalletLocale = {
2
2
  createPassword: {
3
3
  confirmation: string;
4
4
  failedToSetPassword: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,cAAc,EAAE;QACd,YAAY,EAAE,MAAM,CAAC;QACrB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,gBAAgB,EAAE;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,yBAAyB,EAAE,MAAM,CAAC;QAClC,iBAAiB,EAAE,MAAM,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE;QACb,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/wallets/shared/locale/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,EAAE;QACd,YAAY,EAAE,MAAM,CAAC;QACrB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,gBAAgB,EAAE;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,yBAAyB,EAAE,MAAM,CAAC;QAClC,iBAAiB,EAAE,MAAM,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE;QACb,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"send-gasless-transaction.d.ts","sourceRoot":"","sources":["../../../../../src/transaction/actions/gasless/send-gasless-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,OAAO,CAAC;IAGjB,WAAW,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACtC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,EAC3C,OAAO,EACP,WAAW,EACX,uBAAuB,EACvB,OAAO,GACR,EAAE,6BAA6B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAmDhE"}
1
+ {"version":3,"file":"send-gasless-transaction.d.ts","sourceRoot":"","sources":["../../../../../src/transaction/actions/gasless/send-gasless-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,OAAO,CAAC;IAGjB,WAAW,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACtC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,EAC3C,OAAO,EACP,WAAW,EACX,uBAAuB,EACvB,OAAO,GACR,EAAE,6BAA6B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA6DhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"send-transaction.d.ts","sourceRoot":"","sources":["../../../../src/transaction/actions/send-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IAGjB,WAAW,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,qBAAqB,CAAC,CA4BhC"}
1
+ {"version":3,"file":"send-transaction.d.ts","sourceRoot":"","sources":["../../../../src/transaction/actions/send-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IAGjB,WAAW,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,qBAAqB,CAAC,CAkChC"}
@@ -1,9 +1,9 @@
1
1
  import type { TransactionSerializable } from "viem";
2
2
  import type { Address } from "../../../utils/address.js";
3
- import type { EIP721SerializedTransaction, EIP721TransactionOptions } from "../../prepare-transaction.js";
3
+ import type { EIP712SerializedTransaction, EIP712TransactionOptions } from "../../prepare-transaction.js";
4
4
  export type EIP721TransactionSerializable = TransactionSerializable & {
5
5
  from: Address;
6
- } & EIP721TransactionOptions;
6
+ } & EIP712TransactionOptions;
7
7
  export declare const gasPerPubdataDefault = 50000n;
8
8
  export declare const getEip712Domain: (transaction: EIP721TransactionSerializable) => {
9
9
  domain: {
@@ -18,6 +18,6 @@ export declare const getEip712Domain: (transaction: EIP721TransactionSerializabl
18
18
  }[];
19
19
  };
20
20
  primaryType: string;
21
- message: EIP721SerializedTransaction;
21
+ message: EIP712SerializedTransaction;
22
22
  };
23
23
  //# sourceMappingURL=getEip721Domain.d.ts.map
@@ -17,18 +17,18 @@ export type StaticPrepareTransactionOptions = {
17
17
  maxFeePerBlobGas?: bigint | undefined;
18
18
  nonce?: number | undefined;
19
19
  extraGas?: bigint | undefined;
20
- eip712?: EIP721TransactionOptions | undefined;
20
+ eip712?: EIP712TransactionOptions | undefined;
21
21
  chain: Chain;
22
22
  client: ThirdwebClient;
23
23
  };
24
- export type EIP721TransactionOptions = {
24
+ export type EIP712TransactionOptions = {
25
25
  gasPerPubdata?: bigint | undefined;
26
26
  customSignature?: Hex | undefined;
27
27
  factoryDeps?: Hex[] | undefined;
28
28
  paymaster?: Address | undefined;
29
29
  paymasterInput?: Hex | undefined;
30
30
  };
31
- export type EIP721SerializedTransaction = {
31
+ export type EIP712SerializedTransaction = {
32
32
  txType: bigint;
33
33
  from: bigint;
34
34
  to: bigint;
@@ -0,0 +1,22 @@
1
+ import { type Store } from "../reactive/store.js";
2
+ import type { Hex } from "../utils/encoding/hex.js";
3
+ type StoredTransaction = {
4
+ transactionHash: Hex;
5
+ chainId: number;
6
+ };
7
+ /**
8
+ * Retrieve the transaction store for a given address.
9
+ * @param address - The address to retrieve the transaction store for.
10
+ * @returns A store of transactions for the given account to subscribe to.
11
+ */
12
+ export declare function getTransactionStore(address: string): Store<StoredTransaction[]>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function addTransactionToStore(options: {
17
+ address: string;
18
+ transactionHash: Hex;
19
+ chainId: number;
20
+ }): void;
21
+ export {};
22
+ //# sourceMappingURL=transaction-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-store.d.ts","sourceRoot":"","sources":["../../../src/transaction/transaction-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAe,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAEpD,KAAK,iBAAiB,GAAG;IACvB,eAAe,EAAE,GAAG,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GACd,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAS5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,GAAG,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,QAUA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.30.0-nightly-e7434891354f351d2a399daebdddae9cf1fc817b-20240623000619";
1
+ export declare const version = "5.30.0-nightly-3979ff0238ae9b3a0a216e6c2d562eb7206a9fe8-20240626085813";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocalStorage.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/utils/Storage/LocalStorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAWrE;;GAEG;AACH,qBAAa,YAAY;IACvB,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC;IACtB;;OAEG;gBACS,EACV,QAAQ,EACR,WAAW,GACZ,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,iBAAiB,CAAA;KAAE;cAKxC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;cAO5C,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;cAOlD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IASzD;;OAEG;IACG,wBAAwB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIxD;;OAEG;IACG,yBAAyB,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3E;;OAEG;IACG,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD;;OAEG;IACG,sBAAsB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAItD;;OAEG;IACG,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGnD;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAG7C;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI1C;;OAEG;IACG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOnE;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAO9C;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ3C;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAG/C;;OAEG;IACG,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGrD;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;CAG7C"}
1
+ {"version":3,"file":"LocalStorage.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/utils/Storage/LocalStorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAWrE;;GAEG;AACH,qBAAa,YAAY;IACvB,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC;IACtB;;OAEG;gBACS,EACV,QAAQ,EACR,WAAW,GACZ,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,iBAAiB,CAAC;KACjC;cAKe,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;cAO5C,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;cAOlD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IASzD;;OAEG;IACG,wBAAwB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIxD;;OAEG;IACG,yBAAyB,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3E;;OAEG;IACG,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD;;OAEG;IACG,sBAAsB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAItD;;OAEG;IACG,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGnD;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAG7C;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI1C;;OAEG;IACG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOnE;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAO9C;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ3C;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAG/C;;OAEG;IACG,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGrD;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;CAG7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thirdweb",
3
- "version": "5.30.0-nightly-e7434891354f351d2a399daebdddae9cf1fc817b-20240623000619",
3
+ "version": "5.30.0-nightly-3979ff0238ae9b3a0a216e6c2d562eb7206a9fe8-20240626085813",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -272,6 +272,7 @@
272
272
  "@react-native-async-storage/async-storage": "^1.23.1",
273
273
  "@testing-library/jest-dom": "^6.4.6",
274
274
  "@testing-library/react": "^16.0.0",
275
+ "@testing-library/user-event": "^14.5.2",
275
276
  "@types/cross-spawn": "^6.0.6",
276
277
  "@types/react": "^18.3.3",
277
278
  "@vitejs/plugin-react": "^4.3.1",
@@ -296,6 +297,8 @@
296
297
  "build:generate": "bun scripts/generate/generate.ts",
297
298
  "build:generate-wallets": "bun scripts/wallets/generate.ts",
298
299
  "dev": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm --watch",
300
+ "dev:cjs": "printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json && tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false --watch",
301
+ "dev:esm": "printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json && tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm --watch",
299
302
  "build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
300
303
  "build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
301
304
  "build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json",
@@ -124,6 +124,7 @@ export type VerifySignatureParams = Prettify<
124
124
  * ```
125
125
  * @auth
126
126
  */
127
+ let warningTriggered = false;
127
128
  export async function verifySignature(options: VerifySignatureParams) {
128
129
  try {
129
130
  const isValidEOASig = await verifyEOASignature(options);
@@ -139,6 +140,15 @@ export async function verifySignature(options: VerifySignatureParams) {
139
140
  } catch {
140
141
  // no-op we skip to return false
141
142
  }
143
+ } else if (!warningTriggered) {
144
+ // We only trigger this warning once
145
+ warningTriggered = true;
146
+ console.error(`
147
+ Failed to verify EOA signature and no chain or client provided.
148
+
149
+ If you mean to use a smart account, please provide a chain and client.
150
+ For more information on how to setup a smart account with Auth, see https://portal.thirdweb.com/connect/auth
151
+ `);
142
152
  }
143
153
  // if we reach here, we have no way to verify the signature
144
154
  return false;
@@ -147,5 +157,10 @@ export async function verifySignature(options: VerifySignatureParams) {
147
157
  function isVerifyContractWalletSignatureParams(
148
158
  options: VerifySignatureParams,
149
159
  ): options is VerifyContractWalletSignatureParams {
150
- return "chain" in options && "client" in options;
160
+ return (
161
+ "chain" in options &&
162
+ options.chain !== undefined &&
163
+ "client" in options &&
164
+ options.client !== undefined
165
+ );
151
166
  }
@@ -98,6 +98,10 @@ export {
98
98
  updateMetadata,
99
99
  type UpdateMetadataParams,
100
100
  } from "../../extensions/erc1155/drops/write/updateMetadata.js";
101
+ export {
102
+ getClaimConditionById,
103
+ type GetClaimConditionByIdParams,
104
+ } from "../../extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.js";
101
105
 
102
106
  /**
103
107
  * SIGNATURE extension for ERC1155
@@ -55,6 +55,7 @@ export {
55
55
  toSerializableTransaction,
56
56
  type ToSerializableTransactionOptions,
57
57
  } from "../transaction/actions/to-serializable-transaction.js";
58
+ export { getTransactionStore } from "../transaction/transaction-store.js";
58
59
 
59
60
  //types & utils
60
61
  export {
@@ -15,7 +15,7 @@ import {
15
15
  balanceOf,
16
16
  setApprovalForAll,
17
17
  } from "../../../exports/extensions/erc1155.js";
18
- import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
18
+ import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
19
19
  import { mintTo } from "../../erc1155/write/mintTo.js";
20
20
  import { deployERC1155Contract } from "../../prebuilts/deploy-erc1155.js";
21
21
  import { deployPublishedContract } from "../../prebuilts/deploy-published.js";
@@ -26,9 +26,9 @@ import {
26
26
 
27
27
  // skip this test suite if there is no secret key available to test with
28
28
  // TODO: remove reliance on secret key during unit tests entirely
29
- describe.runIf(process.env.TW_SECRET_KEY)(
30
- "generateAirdropSignatureERC11551155",
31
- () => {
29
+ describe
30
+ .runIf(process.env.TW_SECRET_KEY)
31
+ .sequential("generateAirdropSignatureERC11551155", () => {
32
32
  let airdropContract: ThirdwebContract;
33
33
  let erc1155TokenContract: ThirdwebContract;
34
34
 
@@ -80,7 +80,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
80
80
  ];
81
81
 
82
82
  for (const tx of mintTransactions) {
83
- await sendTransaction({
83
+ await sendAndConfirmTransaction({
84
84
  transaction: tx,
85
85
  account: TEST_ACCOUNT_A,
86
86
  });
@@ -91,7 +91,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
91
91
  operator: airdropContract.address,
92
92
  approved: true,
93
93
  });
94
- await sendTransaction({
94
+ await sendAndConfirmTransaction({
95
95
  transaction: approvalTx,
96
96
  account: TEST_ACCOUNT_A,
97
97
  });
@@ -117,7 +117,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
117
117
  req,
118
118
  signature,
119
119
  });
120
- const { transactionHash } = await sendTransaction({
120
+ const { transactionHash } = await sendAndConfirmTransaction({
121
121
  transaction,
122
122
  account: TEST_ACCOUNT_A,
123
123
  });
@@ -146,5 +146,4 @@ describe.runIf(process.env.TW_SECRET_KEY)(
146
146
 
147
147
  expect(transactionHash.length).toBe(66);
148
148
  });
149
- },
150
- );
149
+ });
@@ -11,7 +11,7 @@ import {
11
11
  type ThirdwebContract,
12
12
  getContract,
13
13
  } from "../../../contract/contract.js";
14
- import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
14
+ import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
15
15
  import { getBalance } from "../../erc20/read/getBalance.js";
16
16
  import { approve } from "../../erc20/write/approve.js";
17
17
  import { mintTo } from "../../erc20/write/mintTo.js";
@@ -24,9 +24,9 @@ import {
24
24
 
25
25
  // skip this test suite if there is no secret key available to test with
26
26
  // TODO: remove reliance on secret key during unit tests entirely
27
- describe.runIf(process.env.TW_SECRET_KEY)(
28
- "generateAirdropSignatureERC2020",
29
- () => {
27
+ describe
28
+ .runIf(process.env.TW_SECRET_KEY)
29
+ .sequential("generateAirdropSignatureERC2020", () => {
30
30
  let airdropContract: ThirdwebContract;
31
31
  let erc20TokenContract: ThirdwebContract;
32
32
 
@@ -62,17 +62,17 @@ describe.runIf(process.env.TW_SECRET_KEY)(
62
62
  to: TEST_ACCOUNT_A.address,
63
63
  amountWei: 1000n,
64
64
  });
65
- await sendTransaction({
65
+ await sendAndConfirmTransaction({
66
66
  transaction: mintTx,
67
67
  account: TEST_ACCOUNT_A,
68
68
  });
69
69
 
70
- const approvalTx = await approve({
70
+ const approvalTx = approve({
71
71
  contract: erc20TokenContract,
72
72
  spender: airdropContract.address,
73
73
  amountWei: 1000n,
74
74
  });
75
- await sendTransaction({
75
+ await sendAndConfirmTransaction({
76
76
  transaction: approvalTx,
77
77
  account: TEST_ACCOUNT_A,
78
78
  });
@@ -98,7 +98,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
98
98
  req,
99
99
  signature,
100
100
  });
101
- const { transactionHash } = await sendTransaction({
101
+ const { transactionHash } = await sendAndConfirmTransaction({
102
102
  transaction,
103
103
  account: TEST_ACCOUNT_A,
104
104
  });
@@ -140,5 +140,4 @@ describe.runIf(process.env.TW_SECRET_KEY)(
140
140
 
141
141
  expect(transactionHash.length).toBe(66);
142
142
  });
143
- },
144
- );
143
+ });
@@ -15,7 +15,7 @@ import {
15
15
  ownerOf,
16
16
  setApprovalForAll,
17
17
  } from "../../../exports/extensions/erc721.js";
18
- import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
18
+ import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
19
19
  import { mintTo } from "../../erc721/write/mintTo.js";
20
20
  import { deployERC721Contract } from "../../prebuilts/deploy-erc721.js";
21
21
  import { deployPublishedContract } from "../../prebuilts/deploy-published.js";
@@ -27,7 +27,7 @@ import {
27
27
  // skip this test suite if there is no secret key available to test with
28
28
  // TODO: remove reliance on secret key during unit tests entirely
29
29
  describe.runIf(process.env.TW_SECRET_KEY)(
30
- "generateAirdropSignatureERC721721",
30
+ "generateAirdropSignatureERC721",
31
31
  () => {
32
32
  let airdropContract: ThirdwebContract;
33
33
  let erc721TokenContract: ThirdwebContract;
@@ -92,7 +92,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
92
92
  ];
93
93
 
94
94
  for (const tx of mintTransactions) {
95
- await sendTransaction({
95
+ await sendAndConfirmTransaction({
96
96
  transaction: tx,
97
97
  account: TEST_ACCOUNT_A,
98
98
  });
@@ -103,7 +103,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
103
103
  operator: airdropContract.address,
104
104
  approved: true,
105
105
  });
106
- await sendTransaction({
106
+ await sendAndConfirmTransaction({
107
107
  transaction: approvalTx,
108
108
  account: TEST_ACCOUNT_A,
109
109
  });
@@ -129,7 +129,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
129
129
  req,
130
130
  signature,
131
131
  });
132
- const { transactionHash } = await sendTransaction({
132
+ const { transactionHash } = await sendAndConfirmTransaction({
133
133
  transaction,
134
134
  account: TEST_ACCOUNT_A,
135
135
  });
@@ -15,7 +15,7 @@ import {
15
15
  balanceOf,
16
16
  setApprovalForAll,
17
17
  } from "../../../exports/extensions/erc1155.js";
18
- import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
18
+ import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
19
19
  import { mintTo } from "../../erc1155/write/mintTo.js";
20
20
  import { deployERC1155Contract } from "../../prebuilts/deploy-erc1155.js";
21
21
  import { deployPublishedContract } from "../../prebuilts/deploy-published.js";
@@ -79,7 +79,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC1155", () => {
79
79
  ];
80
80
 
81
81
  for (const tx of mintTransactions) {
82
- await sendTransaction({
82
+ await sendAndConfirmTransaction({
83
83
  transaction: tx,
84
84
  account: TEST_ACCOUNT_A,
85
85
  });
@@ -90,7 +90,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC1155", () => {
90
90
  operator: airdropContract.address,
91
91
  approved: true,
92
92
  });
93
- await sendTransaction({
93
+ await sendAndConfirmTransaction({
94
94
  transaction: approvalTx,
95
95
  account: TEST_ACCOUNT_A,
96
96
  });
@@ -113,7 +113,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC1155", () => {
113
113
  snapshotUri,
114
114
  contract: airdropContract,
115
115
  });
116
- await sendTransaction({
116
+ await sendAndConfirmTransaction({
117
117
  transaction: saveSnapshotTransaction,
118
118
  account: TEST_ACCOUNT_A,
119
119
  });
@@ -124,7 +124,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC1155", () => {
124
124
  resetClaimStatus: true,
125
125
  contract: airdropContract,
126
126
  });
127
- await sendTransaction({
127
+ await sendAndConfirmTransaction({
128
128
  transaction: setMerkleRootTransaction,
129
129
  account: TEST_ACCOUNT_A,
130
130
  });
@@ -134,7 +134,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC1155", () => {
134
134
  recipient: TEST_ACCOUNT_B.address,
135
135
  contract: airdropContract,
136
136
  });
137
- const { transactionHash } = await sendTransaction({
137
+ const { transactionHash } = await sendAndConfirmTransaction({
138
138
  transaction: claimTransaction,
139
139
  account: TEST_ACCOUNT_A,
140
140
  });
@@ -11,7 +11,7 @@ import {
11
11
  type ThirdwebContract,
12
12
  getContract,
13
13
  } from "../../../contract/contract.js";
14
- import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
14
+ import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
15
15
  import { getBalance } from "../../erc20/read/getBalance.js";
16
16
  import { approve } from "../../erc20/write/approve.js";
17
17
  import { mintTo } from "../../erc20/write/mintTo.js";
@@ -61,17 +61,17 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC20", () => {
61
61
  to: TEST_ACCOUNT_A.address,
62
62
  amount: 1000,
63
63
  });
64
- await sendTransaction({
64
+ await sendAndConfirmTransaction({
65
65
  transaction: mintTx,
66
66
  account: TEST_ACCOUNT_A,
67
67
  });
68
68
 
69
- const approvalTx = await approve({
69
+ const approvalTx = approve({
70
70
  contract: erc20TokenContract,
71
71
  spender: airdropContract.address,
72
72
  amount: 1000,
73
73
  });
74
- await sendTransaction({
74
+ await sendAndConfirmTransaction({
75
75
  transaction: approvalTx,
76
76
  account: TEST_ACCOUNT_A,
77
77
  });
@@ -94,7 +94,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC20", () => {
94
94
  snapshotUri,
95
95
  contract: airdropContract,
96
96
  });
97
- await sendTransaction({
97
+ await sendAndConfirmTransaction({
98
98
  transaction: saveSnapshotTransaction,
99
99
  account: TEST_ACCOUNT_A,
100
100
  });
@@ -105,7 +105,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC20", () => {
105
105
  resetClaimStatus: true,
106
106
  contract: airdropContract,
107
107
  });
108
- await sendTransaction({
108
+ await sendAndConfirmTransaction({
109
109
  transaction: setMerkleRootTransaction,
110
110
  account: TEST_ACCOUNT_A,
111
111
  });
@@ -115,7 +115,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC20", () => {
115
115
  recipient: TEST_ACCOUNT_B.address,
116
116
  contract: airdropContract,
117
117
  });
118
- const { transactionHash } = await sendTransaction({
118
+ const { transactionHash } = await sendAndConfirmTransaction({
119
119
  transaction: claimTransaction,
120
120
  account: TEST_ACCOUNT_A,
121
121
  });
@@ -15,7 +15,7 @@ import {
15
15
  ownerOf,
16
16
  setApprovalForAll,
17
17
  } from "../../../exports/extensions/erc721.js";
18
- import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
18
+ import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
19
19
  import { mintTo } from "../../erc721/write/mintTo.js";
20
20
  import { deployERC721Contract } from "../../prebuilts/deploy-erc721.js";
21
21
  import { deployPublishedContract } from "../../prebuilts/deploy-published.js";
@@ -91,7 +91,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC721", () => {
91
91
  ];
92
92
 
93
93
  for (const tx of mintTransactions) {
94
- await sendTransaction({
94
+ await sendAndConfirmTransaction({
95
95
  transaction: tx,
96
96
  account: TEST_ACCOUNT_A,
97
97
  });
@@ -102,7 +102,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC721", () => {
102
102
  operator: airdropContract.address,
103
103
  approved: true,
104
104
  });
105
- await sendTransaction({
105
+ await sendAndConfirmTransaction({
106
106
  transaction: approvalTx,
107
107
  account: TEST_ACCOUNT_A,
108
108
  });
@@ -125,7 +125,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC721", () => {
125
125
  snapshotUri,
126
126
  contract: airdropContract,
127
127
  });
128
- await sendTransaction({
128
+ await sendAndConfirmTransaction({
129
129
  transaction: saveSnapshotTransaction,
130
130
  account: TEST_ACCOUNT_A,
131
131
  });
@@ -136,7 +136,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC721", () => {
136
136
  resetClaimStatus: true,
137
137
  contract: airdropContract,
138
138
  });
139
- await sendTransaction({
139
+ await sendAndConfirmTransaction({
140
140
  transaction: setMerkleRootTransaction,
141
141
  account: TEST_ACCOUNT_A,
142
142
  });
@@ -146,7 +146,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("claimERC721", () => {
146
146
  recipient: TEST_ACCOUNT_B.address,
147
147
  contract: airdropContract,
148
148
  });
149
- const { transactionHash } = await sendTransaction({
149
+ const { transactionHash } = await sendAndConfirmTransaction({
150
150
  transaction: claimTransaction,
151
151
  account: TEST_ACCOUNT_A,
152
152
  });
@@ -165,6 +165,8 @@ export const fontSize = {
165
165
  md: "16px",
166
166
  lg: "20px",
167
167
  xl: "24px",
168
+ xxl: "32px",
169
+ "3xl": "48px",
168
170
  };
169
171
 
170
172
  export const spacing = {