thirdweb 5.32.2-nightly-229561e1a79fe2ab3f010c5a8659c7e0fc497ec3-20240703090013 → 5.32.2

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 (410) hide show
  1. package/dist/cjs/adapters/ethers5.js +2 -2
  2. package/dist/cjs/adapters/ethers5.js.map +1 -1
  3. package/dist/cjs/contract/verification/index.js +52 -28
  4. package/dist/cjs/contract/verification/index.js.map +1 -1
  5. package/dist/cjs/gas/fee-data.js +13 -6
  6. package/dist/cjs/gas/fee-data.js.map +1 -1
  7. package/dist/cjs/pay/buyWithCrypto/getQuote.js +1 -0
  8. package/dist/cjs/pay/buyWithCrypto/getQuote.js.map +1 -1
  9. package/dist/cjs/pay/buyWithFiat/getPostOnRampQuote.js +5 -0
  10. package/dist/cjs/pay/buyWithFiat/getPostOnRampQuote.js.map +1 -1
  11. package/dist/cjs/pay/buyWithFiat/getQuote.js.map +1 -1
  12. package/dist/cjs/react/core/hooks/auth/useSiweAuth.js +4 -1
  13. package/dist/cjs/react/core/hooks/auth/useSiweAuth.js.map +1 -1
  14. package/dist/cjs/react/native/ui/components/Header.js +1 -1
  15. package/dist/cjs/react/native/ui/components/Header.js.map +1 -1
  16. package/dist/cjs/react/native/ui/components/button.js +1 -1
  17. package/dist/cjs/react/native/ui/components/button.js.map +1 -1
  18. package/dist/cjs/react/native/ui/connect/ConnectButton.js +1 -1
  19. package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -1
  20. package/dist/cjs/react/native/ui/connect/ConnectModal.js +7 -8
  21. package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
  22. package/dist/cjs/react/native/ui/connect/InAppWalletUI.js +1 -1
  23. package/dist/cjs/react/native/ui/connect/InAppWalletUI.js.map +1 -1
  24. package/dist/cjs/react/native/ui/icons/svgs.js +5 -5
  25. package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js +2 -2
  26. package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  27. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +12 -2
  28. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  29. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +19 -5
  30. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  31. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +1 -1
  32. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  33. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +5 -4
  34. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  35. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +5 -4
  36. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  37. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js +1 -1
  38. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
  39. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +11 -7
  40. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  41. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +1 -1
  42. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
  43. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +12 -12
  44. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  45. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js +3 -5
  46. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  47. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +24 -14
  48. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  49. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js +1 -0
  50. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  51. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js +1 -0
  52. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  53. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js +1 -0
  54. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  55. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js +1 -0
  56. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  57. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +144 -87
  58. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  59. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js +49 -0
  60. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js.map +1 -0
  61. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js +32 -0
  62. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js.map +1 -0
  63. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js +1 -1
  64. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js.map +1 -1
  65. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
  66. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
  67. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +6 -1
  68. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
  69. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js +2 -4
  70. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js.map +1 -1
  71. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js +1 -1
  72. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js.map +1 -1
  73. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +18 -17
  74. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  75. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +2 -6
  76. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  77. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js +1 -1
  78. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js.map +1 -1
  79. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js +26 -0
  80. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js.map +1 -0
  81. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js +12 -1
  82. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js.map +1 -1
  83. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js +1 -1
  84. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js.map +1 -1
  85. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js +8 -1
  86. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js.map +1 -1
  87. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js +1 -1
  88. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js.map +1 -1
  89. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/types.js +3 -0
  90. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/types.js.map +1 -0
  91. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js +55 -0
  92. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js.map +1 -0
  93. package/dist/cjs/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js +78 -0
  94. package/dist/cjs/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js.map +1 -0
  95. package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js +3 -4
  96. package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  97. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
  98. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  99. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js +31 -0
  100. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js.map +1 -0
  101. package/dist/cjs/react/web/ui/PayEmbed.js +3 -17
  102. package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
  103. package/dist/cjs/react/web/ui/components/CopyIcon.js +1 -1
  104. package/dist/cjs/react/web/ui/components/CopyIcon.js.map +1 -1
  105. package/dist/cjs/react/web/ui/components/Drawer.js +51 -17
  106. package/dist/cjs/react/web/ui/components/Drawer.js.map +1 -1
  107. package/dist/cjs/react/web/ui/components/SwitchNetwork.js +1 -3
  108. package/dist/cjs/react/web/ui/components/SwitchNetwork.js.map +1 -1
  109. package/dist/cjs/react/web/ui/components/WalletImage.js +1 -0
  110. package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
  111. package/dist/cjs/react/web/ui/components/buttons.js +5 -1
  112. package/dist/cjs/react/web/ui/components/buttons.js.map +1 -1
  113. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +2 -1
  114. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  115. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +2 -1
  116. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  117. package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js +2 -2
  118. package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
  119. package/dist/cjs/utils/formatNumber.js +4 -1
  120. package/dist/cjs/utils/formatNumber.js.map +1 -1
  121. package/dist/cjs/version.js +1 -1
  122. package/dist/cjs/version.js.map +1 -1
  123. package/dist/esm/adapters/ethers5.js +2 -2
  124. package/dist/esm/adapters/ethers5.js.map +1 -1
  125. package/dist/esm/contract/verification/index.js +52 -28
  126. package/dist/esm/contract/verification/index.js.map +1 -1
  127. package/dist/esm/gas/fee-data.js +13 -6
  128. package/dist/esm/gas/fee-data.js.map +1 -1
  129. package/dist/esm/pay/buyWithCrypto/getQuote.js +1 -0
  130. package/dist/esm/pay/buyWithCrypto/getQuote.js.map +1 -1
  131. package/dist/esm/pay/buyWithFiat/getPostOnRampQuote.js +5 -0
  132. package/dist/esm/pay/buyWithFiat/getPostOnRampQuote.js.map +1 -1
  133. package/dist/esm/pay/buyWithFiat/getQuote.js.map +1 -1
  134. package/dist/esm/react/core/hooks/auth/useSiweAuth.js +4 -1
  135. package/dist/esm/react/core/hooks/auth/useSiweAuth.js.map +1 -1
  136. package/dist/esm/react/native/ui/components/Header.js +1 -1
  137. package/dist/esm/react/native/ui/components/Header.js.map +1 -1
  138. package/dist/esm/react/native/ui/components/button.js +1 -1
  139. package/dist/esm/react/native/ui/components/button.js.map +1 -1
  140. package/dist/esm/react/native/ui/connect/ConnectButton.js +1 -1
  141. package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -1
  142. package/dist/esm/react/native/ui/connect/ConnectModal.js +8 -9
  143. package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
  144. package/dist/esm/react/native/ui/connect/InAppWalletUI.js +1 -1
  145. package/dist/esm/react/native/ui/connect/InAppWalletUI.js.map +1 -1
  146. package/dist/esm/react/native/ui/icons/svgs.js +5 -5
  147. package/dist/esm/react/web/hooks/transaction/useSendTransaction.js +2 -2
  148. package/dist/esm/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  149. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +12 -2
  150. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  151. package/dist/esm/react/web/ui/ConnectWallet/Details.js +20 -6
  152. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  153. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +1 -1
  154. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  155. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +5 -4
  156. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  157. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +2 -2
  158. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  159. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js +1 -1
  160. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
  161. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +11 -7
  162. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  163. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +1 -1
  164. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
  165. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +12 -12
  166. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  167. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -4
  168. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  169. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +25 -15
  170. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  171. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js +1 -0
  172. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  173. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js +1 -0
  174. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  175. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js +1 -0
  176. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  177. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js +1 -0
  178. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  179. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +145 -88
  180. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  181. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js +46 -0
  182. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js.map +1 -0
  183. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js +29 -0
  184. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js.map +1 -0
  185. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js +1 -1
  186. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js.map +1 -1
  187. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
  188. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
  189. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +6 -1
  190. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
  191. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js +2 -4
  192. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js.map +1 -1
  193. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js +1 -1
  194. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js.map +1 -1
  195. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +18 -17
  196. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  197. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +3 -7
  198. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  199. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js +1 -1
  200. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js.map +1 -1
  201. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js +23 -0
  202. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js.map +1 -0
  203. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js +12 -1
  204. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js.map +1 -1
  205. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js +1 -1
  206. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js.map +1 -1
  207. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js +8 -1
  208. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js.map +1 -1
  209. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js +1 -1
  210. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js.map +1 -1
  211. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/types.js +2 -0
  212. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/types.js.map +1 -0
  213. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js +52 -0
  214. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js.map +1 -0
  215. package/dist/esm/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js +75 -0
  216. package/dist/esm/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js.map +1 -0
  217. package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js +4 -5
  218. package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  219. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
  220. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  221. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js +28 -0
  222. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js.map +1 -0
  223. package/dist/esm/react/web/ui/PayEmbed.js +3 -17
  224. package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
  225. package/dist/esm/react/web/ui/components/CopyIcon.js +1 -1
  226. package/dist/esm/react/web/ui/components/CopyIcon.js.map +1 -1
  227. package/dist/esm/react/web/ui/components/Drawer.js +54 -20
  228. package/dist/esm/react/web/ui/components/Drawer.js.map +1 -1
  229. package/dist/esm/react/web/ui/components/SwitchNetwork.js +1 -3
  230. package/dist/esm/react/web/ui/components/SwitchNetwork.js.map +1 -1
  231. package/dist/esm/react/web/ui/components/WalletImage.js +1 -0
  232. package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
  233. package/dist/esm/react/web/ui/components/buttons.js +5 -1
  234. package/dist/esm/react/web/ui/components/buttons.js.map +1 -1
  235. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +2 -1
  236. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  237. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +2 -1
  238. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  239. package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js +2 -2
  240. package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
  241. package/dist/esm/utils/formatNumber.js +4 -1
  242. package/dist/esm/utils/formatNumber.js.map +1 -1
  243. package/dist/esm/version.js +1 -1
  244. package/dist/esm/version.js.map +1 -1
  245. package/dist/types/contract/verification/index.d.ts +1 -0
  246. package/dist/types/contract/verification/index.d.ts.map +1 -1
  247. package/dist/types/gas/fee-data.d.ts.map +1 -1
  248. package/dist/types/pay/buyWithCrypto/getQuote.d.ts +5 -1
  249. package/dist/types/pay/buyWithCrypto/getQuote.d.ts.map +1 -1
  250. package/dist/types/pay/buyWithFiat/getPostOnRampQuote.d.ts.map +1 -1
  251. package/dist/types/pay/buyWithFiat/getQuote.d.ts +4 -0
  252. package/dist/types/pay/buyWithFiat/getQuote.d.ts.map +1 -1
  253. package/dist/types/react/core/hooks/auth/useSiweAuth.d.ts.map +1 -1
  254. package/dist/types/react/native/ui/components/Header.d.ts +1 -1
  255. package/dist/types/react/native/ui/components/Header.d.ts.map +1 -1
  256. package/dist/types/react/native/ui/components/button.d.ts.map +1 -1
  257. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
  258. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -1
  259. package/dist/types/react/native/ui/icons/svgs.d.ts +3 -3
  260. package/dist/types/react/native/ui/icons/svgs.d.ts.map +1 -1
  261. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts +21 -1
  262. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  263. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts.map +1 -1
  264. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts +0 -2
  265. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  266. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +6 -0
  267. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  268. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts.map +1 -1
  269. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts +7 -3
  270. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
  271. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts +0 -2
  272. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts.map +1 -1
  273. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts +3 -1
  274. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts.map +1 -1
  275. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts +7 -5
  276. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
  277. package/dist/types/react/web/ui/ConnectWallet/locale/en.d.ts.map +1 -1
  278. package/dist/types/react/web/ui/ConnectWallet/locale/es.d.ts.map +1 -1
  279. package/dist/types/react/web/ui/ConnectWallet/locale/ja.d.ts.map +1 -1
  280. package/dist/types/react/web/ui/ConnectWallet/locale/tl.d.ts.map +1 -1
  281. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts +2 -0
  282. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts.map +1 -1
  283. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts +5 -4
  284. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
  285. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.d.ts +8 -0
  286. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.d.ts.map +1 -0
  287. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.d.ts +13 -0
  288. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.d.ts.map +1 -0
  289. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.d.ts +2 -0
  290. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.d.ts.map +1 -1
  291. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.d.ts +2 -0
  292. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.d.ts.map +1 -1
  293. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.d.ts +2 -0
  294. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.d.ts.map +1 -1
  295. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.d.ts +2 -0
  296. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.d.ts.map +1 -1
  297. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/types.d.ts +12 -3
  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/swap/ConfirmationScreen.d.ts +2 -0
  300. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.d.ts.map +1 -1
  301. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts +2 -0
  302. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts.map +1 -1
  303. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.d.ts +2 -2
  304. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.d.ts.map +1 -1
  305. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.d.ts +12 -0
  306. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.d.ts.map +1 -0
  307. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.d.ts.map +1 -1
  308. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.d.ts +2 -0
  309. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.d.ts.map +1 -1
  310. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.d.ts.map +1 -1
  311. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.d.ts +2 -0
  312. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.d.ts.map +1 -1
  313. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/types.d.ts +9 -0
  314. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/types.d.ts.map +1 -0
  315. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.d.ts +6 -0
  316. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.d.ts.map +1 -0
  317. package/dist/types/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.d.ts +9 -0
  318. package/dist/types/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.d.ts.map +1 -0
  319. package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts +1 -1
  320. package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts.map +1 -1
  321. package/dist/types/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.d.ts +25 -0
  322. package/dist/types/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.d.ts.map +1 -0
  323. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts +1 -1
  324. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts.map +1 -1
  325. package/dist/types/react/web/ui/PayEmbed.d.ts +1 -1
  326. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  327. package/dist/types/react/web/ui/components/CopyIcon.d.ts.map +1 -1
  328. package/dist/types/react/web/ui/components/Drawer.d.ts +2 -1
  329. package/dist/types/react/web/ui/components/Drawer.d.ts.map +1 -1
  330. package/dist/types/react/web/ui/components/SwitchNetwork.d.ts +1 -2
  331. package/dist/types/react/web/ui/components/SwitchNetwork.d.ts.map +1 -1
  332. package/dist/types/react/web/ui/components/WalletImage.d.ts +1 -0
  333. package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
  334. package/dist/types/react/web/ui/components/buttons.d.ts.map +1 -1
  335. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts +0 -2
  336. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
  337. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +0 -2
  338. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  339. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts +0 -2
  340. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts.map +1 -1
  341. package/dist/types/utils/formatNumber.d.ts.map +1 -1
  342. package/dist/types/version.d.ts +1 -1
  343. package/dist/types/version.d.ts.map +1 -1
  344. package/package.json +1 -1
  345. package/src/adapters/ethers5.ts +2 -2
  346. package/src/contract/verification/index.ts +63 -30
  347. package/src/gas/fee-data.ts +14 -6
  348. package/src/pay/buyWithCrypto/getQuote.ts +7 -3
  349. package/src/pay/buyWithFiat/getPostOnRampQuote.ts +5 -0
  350. package/src/pay/buyWithFiat/getQuote.ts +4 -0
  351. package/src/react/core/hooks/auth/useSiweAuth.ts +4 -1
  352. package/src/react/native/ui/components/Header.tsx +2 -2
  353. package/src/react/native/ui/components/button.tsx +6 -1
  354. package/src/react/native/ui/connect/ConnectButton.tsx +1 -1
  355. package/src/react/native/ui/connect/ConnectModal.tsx +9 -4
  356. package/src/react/native/ui/connect/InAppWalletUI.tsx +24 -20
  357. package/src/react/native/ui/icons/svgs.ts +5 -5
  358. package/src/react/web/hooks/transaction/useSendTransaction.tsx +30 -17
  359. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +12 -1
  360. package/src/react/web/ui/ConnectWallet/Details.tsx +73 -2
  361. package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +2 -0
  362. package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +3 -6
  363. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +3 -2
  364. package/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx +2 -1
  365. package/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx +17 -10
  366. package/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx +2 -1
  367. package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +14 -15
  368. package/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx +12 -13
  369. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +35 -20
  370. package/src/react/web/ui/ConnectWallet/locale/en.ts +1 -0
  371. package/src/react/web/ui/ConnectWallet/locale/es.ts +1 -0
  372. package/src/react/web/ui/ConnectWallet/locale/ja.ts +1 -0
  373. package/src/react/web/ui/ConnectWallet/locale/tl.ts +1 -0
  374. package/src/react/web/ui/ConnectWallet/locale/types.ts +3 -0
  375. package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +435 -266
  376. package/src/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.tsx +118 -0
  377. package/src/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.tsx +86 -0
  378. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.tsx +3 -0
  379. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.tsx +2 -0
  380. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.tsx +23 -0
  381. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.tsx +4 -5
  382. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.tsx +3 -0
  383. package/src/react/web/ui/ConnectWallet/screens/Buy/main/types.ts +15 -4
  384. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx +43 -32
  385. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx +4 -7
  386. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.tsx +3 -2
  387. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.tsx +66 -0
  388. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.tsx +16 -0
  389. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.tsx +3 -0
  390. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.tsx +27 -0
  391. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.tsx +3 -0
  392. package/src/react/web/ui/ConnectWallet/screens/Buy/types.ts +9 -0
  393. package/src/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.tsx +63 -0
  394. package/src/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.tsx +203 -0
  395. package/src/react/web/ui/ConnectWallet/screens/SendFunds.tsx +1 -13
  396. package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +2 -2
  397. package/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx +83 -0
  398. package/src/react/web/ui/ConnectWallet/screens/types.ts +2 -1
  399. package/src/react/web/ui/PayEmbed.tsx +7 -29
  400. package/src/react/web/ui/components/CopyIcon.tsx +5 -1
  401. package/src/react/web/ui/components/Drawer.tsx +91 -40
  402. package/src/react/web/ui/components/SwitchNetwork.tsx +2 -5
  403. package/src/react/web/ui/components/WalletImage.tsx +2 -0
  404. package/src/react/web/ui/components/buttons.tsx +5 -1
  405. package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +2 -3
  406. package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +2 -3
  407. package/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx +3 -3
  408. package/src/utils/format-number.test.ts +23 -8
  409. package/src/utils/formatNumber.ts +4 -1
  410. package/src/version.ts +1 -1
@@ -0,0 +1,25 @@
1
+ import type { Chain } from "../../../../../chains/types.js";
2
+ import type { ThirdwebClient } from "../../../../../client/client.js";
3
+ import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
4
+ import type { SmartWalletOptions } from "../../../../../wallets/smart/types.js";
5
+ import type { AppMetadata } from "../../../../../wallets/types.js";
6
+ import type { ConnectLocale } from "../locale/types.js";
7
+ export type WalletSwitcherConnectionScreenProps = {
8
+ chain: Chain | undefined;
9
+ chains: Chain[] | undefined;
10
+ client: ThirdwebClient;
11
+ wallets: Wallet[] | undefined;
12
+ appMetadata: AppMetadata | undefined;
13
+ connectLocale: ConnectLocale;
14
+ isEmbed: boolean;
15
+ accountAbstraction: SmartWalletOptions | undefined;
16
+ onSelect: (wallet: Wallet) => void;
17
+ recommendedWallets: Wallet[] | undefined;
18
+ showAllWallets: boolean;
19
+ walletConnect: {
20
+ projectId?: string;
21
+ } | undefined;
22
+ onBack: () => void;
23
+ };
24
+ export declare function WalletSwitcherConnectionScreen(props: WalletSwitcherConnectionScreenProps): import("react/jsx-runtime.js").JSX.Element;
25
+ //# sourceMappingURL=WalletSwitcherConnectionScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletSwitcherConnectionScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAKnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACnD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,kBAAkB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACzC,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EACT;QACE,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GACD,SAAS,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,mCAAmC,8CAkD3C"}
@@ -56,5 +56,5 @@ export type WelcomeScreen = {
56
56
  height?: number;
57
57
  };
58
58
  } | (() => React.ReactNode);
59
- export type WalletDetailsModalScreen = "main" | "export" | "send" | "receive" | "buy" | "network-switcher" | "pending-tx" | "view-funds" | "private-key" | "manage-wallet" | "wallet-connect-receiver";
59
+ export type WalletDetailsModalScreen = "main" | "export" | "send" | "receive" | "buy" | "network-switcher" | "pending-tx" | "view-funds" | "private-key" | "manage-wallet" | "wallet-connect-receiver" | "wallet-manager";
60
60
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,aAAa,GACrB;IACE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,GACD,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,CAAC;AAE5B,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,QAAQ,GACR,MAAM,GACN,SAAS,GACT,KAAK,GACL,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,eAAe,GACf,yBAAyB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,aAAa,GACrB;IACE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,GACD,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,CAAC;AAE5B,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,QAAQ,GACR,MAAM,GACN,SAAS,GACT,KAAK,GACL,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,eAAe,GACf,yBAAyB,GACzB,gBAAgB,CAAC"}
@@ -3,7 +3,7 @@ import type { ThirdwebClient } from "../../../client/client.js";
3
3
  import type { Wallet } from "../../../wallets/interfaces/wallet.js";
4
4
  import type { SmartWalletOptions } from "../../../wallets/smart/types.js";
5
5
  import type { AppMetadata } from "../../../wallets/types.js";
6
- import { type Theme } from "../../core/design-system/index.js";
6
+ import type { Theme } from "../../core/design-system/index.js";
7
7
  import type { SiweAuthOptions } from "../../core/hooks/auth/useSiweAuth.js";
8
8
  import type { ConnectButton_connectModalOptions, PayUIOptions } from "../../core/hooks/connection/ConnectButtonProps.js";
9
9
  import type { SupportedTokens } from "../../core/utils/defaultTokens.js";
@@ -1 +1 @@
1
- {"version":3,"file":"PayEmbed.d.ts","sourceRoot":"","sources":["../../../../../src/react/web/ui/PayEmbed.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,KAAK,KAAK,EAAU,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EACV,iCAAiC,EACjC,YAAY,EACb,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAQzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;;;;;;;;;;;;OAcG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;IAE1B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IAEjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;IAExC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,8CAyF5C;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;OASG;IACH,WAAW,CAAC,EACR;QACE,OAAO,EAAE,MAAM,CAAC;KACjB,GACD,OAAO,CAAC;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IAEjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"PayEmbed.d.ts","sourceRoot":"","sources":["../../../../../src/react/web/ui/PayEmbed.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EACV,iCAAiC,EACjC,YAAY,EACb,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAOzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;;;;;;;;;;;;OAcG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;IAE1B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IAEjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;IAExC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,8CAoE5C;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;OASG;IACH,WAAW,CAAC,EACR;QACE,OAAO,EAAE,MAAM,CAAC;KACjB,GACD,OAAO,CAAC;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IAEjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopyIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/CopyIcon.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CA2BA,CAAC"}
1
+ {"version":3,"file":"CopyIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/CopyIcon.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CA+BA,CAAC"}
@@ -23,7 +23,8 @@ export declare const DrawerOverlay: import("@emotion/styled").StyledComponent<{
23
23
  export declare function useDrawer(): {
24
24
  drawerRef: import("react").RefObject<HTMLDivElement>;
25
25
  drawerOverlayRef: import("react").RefObject<HTMLDivElement>;
26
- onClose: (closeDrawer: () => void) => void;
26
+ setIsOpen: (value: boolean) => Promise<void>;
27
+ isOpen: boolean;
27
28
  };
28
29
  export {};
29
30
  //# sourceMappingURL=Drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/Drawer.tsx"],"names":[],"mappings":"AAeA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,MAAM,wGAsBlB,CAAC;AAEF,eAAO,MAAM,eAAe;;SAhCjB,MAAQ,WACX;yGA8CN,CAAC;AAEH,eAAO,MAAM,mBAAmB,oCAS/B,CAAC;AAEF,eAAO,MAAM,aAAa;;eA5DP,WACX;yGAoEN,CAAC;AAEH;;;GAGG;AACH,wBAAgB,SAAS;;;2BAIO,MAAM,IAAI;EAyBzC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/Drawer.tsx"],"names":[],"mappings":"AAmBA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,MAAM,wGA4BlB,CAAC;AAEF,eAAO,MAAM,eAAe;;SA1Cf,MAAO,WAAW;yGAwD7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,oCAS/B,CAAC;AAEF,eAAO,MAAM,aAAa;;eArEN,WAAW;yGA8E7B,CAAC;AAEH;;;GAGG;AACH,wBAAgB,SAAS;;;uBA4BP,OAAO;;EA2CxB"}
@@ -1,7 +1,6 @@
1
- import type { Chain } from "../../../../chains/types.js";
2
1
  import { type ButtonProps } from "./buttons.js";
3
2
  export declare function SwitchNetworkButton(props: ButtonProps & {
4
- chain: Chain;
5
3
  fullWidth?: boolean;
4
+ switchChain: () => Promise<void>;
6
5
  }): import("react/jsx-runtime.js").JSX.Element;
7
6
  //# sourceMappingURL=SwitchNetwork.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchNetwork.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/SwitchNetwork.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,WAAW,GAAG;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,8CA2BF"}
1
+ {"version":3,"file":"SwitchNetwork.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/SwitchNetwork.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,WAAW,GAAG;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAClC,8CA0BF"}
@@ -7,5 +7,6 @@ export declare function WalletImage(props: {
7
7
  id: WalletId;
8
8
  size: string;
9
9
  client: ThirdwebClient;
10
+ style?: React.CSSProperties;
10
11
  }): import("react/jsx-runtime.js").JSX.Element;
11
12
  //# sourceMappingURL=WalletImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WalletImage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/WalletImage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAkBpE;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE;IACjC,EAAE,EAAE,QAAQ,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB,8CAgFA"}
1
+ {"version":3,"file":"WalletImage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/WalletImage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAkBpE;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE;IACjC,EAAE,EAAE,QAAQ,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,8CAiFA"}
@@ -1 +1 @@
1
- {"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/buttons.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,KAAK,EAGV,OAAO,EACR,MAAM,sCAAsC,CAAC;AAG9C,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,MAAM;;SAAsD,MACtE,WAAW;mIA+GZ,CAAC;AAEH,eAAO,MAAM,UAAU;;eAjHpB,WAAW;mIAiH+D,CAAC;AAE9E,eAAO,MAAM,UAAU;;eAnHpB,WAAW;qHAqIZ,CAAC;AAEH,eAAO,MAAM,WAAW;;eAvIrB,WAAW;qHA0JZ,CAAC"}
1
+ {"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/buttons.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,KAAK,EAGV,OAAO,EACR,MAAM,sCAAsC,CAAC;AAG9C,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,MAAM;;SAAsD,MACtE,WAAW;mIAgHZ,CAAC;AAEH,eAAO,MAAM,UAAU;;eAlHpB,WAAW;mIAkH+D,CAAC;AAE9E,eAAO,MAAM,UAAU;;eApHpB,WAAW;qHAyIZ,CAAC;AAEH,eAAO,MAAM,WAAW;;eA3IrB,WAAW;qHA8JZ,CAAC"}
@@ -3,7 +3,6 @@ import type { ThirdwebClient } from "../../../../client/client.js";
3
3
  import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
4
4
  import type { EcosystemWalletId } from "../../../../wallets/wallet-types.js";
5
5
  import type { ConnectLocale } from "../../ui/ConnectWallet/locale/types.js";
6
- import type { LocaleId } from "../../ui/types.js";
7
6
  /**
8
7
  *
9
8
  * @internal
@@ -14,7 +13,6 @@ declare function EcosystemWalletConnectUI(props: {
14
13
  goBack?: () => void;
15
14
  client: ThirdwebClient;
16
15
  chain: Chain | undefined;
17
- localeId: LocaleId;
18
16
  connectLocale: ConnectLocale;
19
17
  size: "compact" | "wide";
20
18
  meta: {
@@ -1 +1 @@
1
- {"version":3,"file":"EcosystemWalletConnectUI.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAK7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AASlD;;;GAGG;AACH,iBAAS,wBAAwB,CAAC,KAAK,EAAE;IACvC,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAClC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH,8CAiFA;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"EcosystemWalletConnectUI.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAK7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAS5E;;;GAGG;AACH,iBAAS,wBAAwB,CAAC,KAAK,EAAE;IACvC,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAClC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH,8CAkFA;AAED,eAAe,wBAAwB,CAAC"}
@@ -2,7 +2,6 @@ import type { Chain } from "../../../../chains/types.js";
2
2
  import type { ThirdwebClient } from "../../../../client/client.js";
3
3
  import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
4
4
  import type { ConnectLocale } from "../../ui/ConnectWallet/locale/types.js";
5
- import type { LocaleId } from "../../ui/types.js";
6
5
  /**
7
6
  *
8
7
  * @internal
@@ -21,7 +20,6 @@ declare function InAppWalletConnectUI(props: {
21
20
  };
22
21
  client: ThirdwebClient;
23
22
  chain: Chain | undefined;
24
- localeId: LocaleId;
25
23
  connectLocale: ConnectLocale;
26
24
  }): import("react/jsx-runtime.js").JSX.Element;
27
25
  export default InAppWalletConnectUI;
@@ -1 +1 @@
1
- {"version":3,"file":"InAppWalletConnectUI.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletConnectUI.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAMvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AASlD;;;GAGG;AACH,iBAAS,oBAAoB,CAAC,KAAK,EAAE;IACnC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;CAC9B,8CAoFA;AAED,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"InAppWalletConnectUI.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletConnectUI.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAMvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAS5E;;;GAGG;AACH,iBAAS,oBAAoB,CAAC,KAAK,EAAE;IACnC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;CAC9B,8CAqFA;AAED,eAAe,oBAAoB,CAAC"}
@@ -2,7 +2,6 @@ import type { Chain } from "../../../../chains/types.js";
2
2
  import type { ThirdwebClient } from "../../../../client/client.js";
3
3
  import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
4
4
  import type { ConnectLocale } from "../../ui/ConnectWallet/locale/types.js";
5
- import type { LocaleId } from "../../ui/types.js";
6
5
  /**
7
6
  *
8
7
  * @internal
@@ -16,7 +15,6 @@ declare function InAppWalletSelectionUI(props: {
16
15
  client: ThirdwebClient;
17
16
  recommendedWallets: Wallet[] | undefined;
18
17
  chain: Chain | undefined;
19
- localeId: LocaleId;
20
18
  size: "compact" | "wide";
21
19
  }): import("react/jsx-runtime.js").JSX.Element;
22
20
  export default InAppWalletSelectionUI;
@@ -1 +1 @@
1
- {"version":3,"file":"InAppWalletSelectionUI.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAKvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAKlD;;;GAGG;AACH,iBAAS,sBAAsB,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC;IACvB,kBAAkB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACzC,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;CAC1B,8CA0CA;AAED,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"InAppWalletSelectionUI.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAKvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAK5E;;;GAGG;AACH,iBAAS,sBAAsB,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC;IACvB,kBAAkB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACzC,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;CAC1B,8CA4CA;AAED,eAAe,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatNumber.d.ts","sourceRoot":"","sources":["../../../src/utils/formatNumber.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAEhE"}
1
+ {"version":3,"file":"formatNumber.d.ts","sourceRoot":"","sources":["../../../src/utils/formatNumber.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAKhE"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.32.2-nightly-229561e1a79fe2ab3f010c5a8659c7e0fc497ec3-20240703090013";
1
+ export declare const version = "5.32.2";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,2EAA2E,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thirdweb",
3
- "version": "5.32.2-nightly-229561e1a79fe2ab3f010c5a8659c7e0fc497ec3-20240703090013",
3
+ "version": "5.32.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -339,7 +339,7 @@ export async function toEthersSigner(
339
339
  if (!account.sendTransaction) {
340
340
  throw new Error("Account does not support sendTransaction");
341
341
  }
342
- const awaitedTx = await ethers.utils.resolveProperties(transaction);
342
+ const awaitedTx = await this.populateTransaction(transaction);
343
343
  const alignedTx = await alignTxFromEthers(awaitedTx, ethers);
344
344
  const tx = prepareTransaction({
345
345
  client: client,
@@ -364,7 +364,7 @@ export async function toEthersSigner(
364
364
  chainId: tx.chain.id,
365
365
  from: account.address,
366
366
  data: alignedTx.data ?? "0x",
367
- nonce: alignedTx.nonce ?? -1,
367
+ nonce: alignedTx.nonce ?? 0,
368
368
  value: ethers.BigNumber.from(alignedTx.value ?? 0),
369
369
  gasLimit: ethers.BigNumber.from(alignedTx.gas ?? 0),
370
370
  // biome-ignore lint/style/noNonNullAssertion: TODO: fix later
@@ -16,6 +16,7 @@ type VerifyContractOptions = {
16
16
  explorerApiUrl: string;
17
17
  explorerApiKey: string;
18
18
  encodedConstructorArgs?: string;
19
+ type?: "etherscan" | "blockscoutV1" | "blockscoutV2" | "routescan";
19
20
  };
20
21
 
21
22
  /**
@@ -105,39 +106,71 @@ export async function verifyContract(
105
106
  const targets = Object.keys(compilationTarget);
106
107
  const contractPath = targets[0];
107
108
 
108
- const encodedArgs = options.encodedConstructorArgs
109
- ? options.encodedConstructorArgs
110
- : await fetchConstructorParams({
111
- abi: compilerMetadata?.metadata?.output?.abi || [],
112
- contract: options.contract,
113
- explorerApiUrl: options.explorerApiUrl,
114
- explorerApiKey: options.explorerApiKey,
115
- });
116
-
117
- const requestBody: Record<string, string> = {
118
- apikey: options.explorerApiKey,
119
- module: "contract",
120
- action: "verifysourcecode",
121
- contractaddress: options.contract.address,
122
- sourceCode: JSON.stringify(compilerInput),
123
- codeformat: "solidity-standard-json-input",
124
- contractname: `${contractPath}:${compilerMetadata.name}`,
125
- compilerversion: `v${compilerMetadata.metadata.compiler.version}`,
126
- constructorArguements: encodedArgs,
127
- };
109
+ if (options.type === "blockscoutV2") {
110
+ const metadataBlob = new Blob([JSON.stringify(compilerInput)], {
111
+ type: "application/json",
112
+ });
113
+ const formData = new FormData();
114
+ formData.append("address_hash", options.contract.address);
115
+ formData.append(
116
+ "contract_name",
117
+ `${contractPath}:${compilerMetadata.name}`,
118
+ );
119
+ formData.append(
120
+ "compiler_version",
121
+ `v${compilerMetadata.metadata.compiler.version}`,
122
+ );
123
+ formData.append("autodetect_constructor_args", "true");
124
+ formData.append("files[0]", metadataBlob, "metadata.json");
125
+
126
+ const result = await fetch(
127
+ `${options.explorerApiUrl}/v2/smart-contracts/${options.contract.address.toLowerCase()}/verification/via/standard-input`,
128
+ {
129
+ method: "POST",
130
+ body: formData,
131
+ },
132
+ );
133
+ const data = await result.json();
128
134
 
129
- const parameters = new URLSearchParams({ ...requestBody });
130
- const result = await fetch(options.explorerApiUrl, {
131
- method: "POST",
132
- headers: { "Content-Type": "application/x-www-form-urlencoded" },
133
- body: parameters.toString(),
134
- });
135
+ if (data.message) {
136
+ return data.message;
137
+ } else {
138
+ throw new Error(`${data}`);
139
+ }
140
+ } else {
141
+ const encodedArgs = options.encodedConstructorArgs
142
+ ? options.encodedConstructorArgs
143
+ : await fetchConstructorParams({
144
+ abi: compilerMetadata?.metadata?.output?.abi || [],
145
+ contract: options.contract,
146
+ explorerApiUrl: options.explorerApiUrl,
147
+ explorerApiKey: options.explorerApiKey,
148
+ });
135
149
 
136
- const data = await result.json();
137
- if (data.status === RequestStatus.OK) {
138
- return data.result;
150
+ const requestBody: Record<string, string> = {
151
+ apikey: options.explorerApiKey,
152
+ module: "contract",
153
+ action: "verifysourcecode",
154
+ contractaddress: options.contract.address,
155
+ sourceCode: JSON.stringify(compilerInput),
156
+ codeformat: "solidity-standard-json-input",
157
+ contractname: `${contractPath}:${compilerMetadata.name}`,
158
+ compilerversion: `v${compilerMetadata.metadata.compiler.version}`,
159
+ constructorArguements: encodedArgs,
160
+ };
161
+
162
+ const parameters = new URLSearchParams({ ...requestBody });
163
+ const result = await fetch(options.explorerApiUrl, {
164
+ method: "POST",
165
+ headers: { "Content-Type": "application/x-www-form-urlencoded" },
166
+ body: parameters.toString(),
167
+ });
168
+ const data = await result.json();
169
+ if (data.status === RequestStatus.OK) {
170
+ return data.result;
171
+ }
172
+ throw new Error(`${data.result}`);
139
173
  }
140
- throw new Error(`${data.result}`);
141
174
  }
142
175
 
143
176
  const VerificationStatus = {
@@ -26,6 +26,11 @@ type FeeDataParams =
26
26
  maxPriorityFeePerGas?: never;
27
27
  };
28
28
 
29
+ // for these chains - always force pre eip1559 transactions
30
+ const FORCE_GAS_PRICE_CHAIN_IDS = [
31
+ 78600, // vanguard
32
+ ];
33
+
29
34
  /**
30
35
  *
31
36
  * @internal
@@ -98,12 +103,15 @@ export async function getDefaultGasOverrides(
98
103
  client: ThirdwebClient,
99
104
  chain: Chain,
100
105
  ) {
101
- const feeData = await getDynamicFeeData(client, chain);
102
- if (feeData.maxFeePerGas && feeData.maxPriorityFeePerGas) {
103
- return {
104
- maxFeePerGas: feeData.maxFeePerGas,
105
- maxPriorityFeePerGas: feeData.maxPriorityFeePerGas,
106
- };
106
+ // if chain is in the force gas price list, always use gas price
107
+ if (!FORCE_GAS_PRICE_CHAIN_IDS.includes(chain.id)) {
108
+ const feeData = await getDynamicFeeData(client, chain);
109
+ if (feeData.maxFeePerGas && feeData.maxPriorityFeePerGas) {
110
+ return {
111
+ maxFeePerGas: feeData.maxFeePerGas,
112
+ maxPriorityFeePerGas: feeData.maxPriorityFeePerGas,
113
+ };
114
+ }
107
115
  }
108
116
  return {
109
117
  gasPrice: await getGasPrice({ client, chain, percentMultiplier: 10 }),
@@ -11,8 +11,6 @@ import type { BaseTransactionOptions } from "../../transaction/types.js";
11
11
  import { getClientFetch } from "../../utils/fetch.js";
12
12
  import { getPayBuyWithCryptoQuoteEndpoint } from "../utils/definitions.js";
13
13
 
14
- // TODO: add JSDoc description for all properties
15
-
16
14
  /**
17
15
  * The parameters for [`getBuyWithCryptoQuote`](https://portal.thirdweb.com/references/typescript/v5/getBuyWithCryptoQuote) function
18
16
  * It includes information about which tokens to swap, the amount of tokens to swap, slippage, etc.
@@ -37,10 +35,15 @@ export type GetBuyWithCryptoQuoteParams = {
37
35
  intentId?: string;
38
36
 
39
37
  /**
40
- * The address of the wallet from which the tokens will be sent.
38
+ * The address of wallet that pays for the tokens.
41
39
  */
42
40
  fromAddress: string;
43
41
 
42
+ /**
43
+ * The address of the wallet where the tokens are sent
44
+ */
45
+ toAddress: string;
46
+
44
47
  // source token
45
48
 
46
49
  /**
@@ -246,6 +249,7 @@ export async function getBuyWithCryptoQuote(
246
249
  },
247
250
  body: JSON.stringify({
248
251
  fromAddress: params.fromAddress,
252
+ toAddress: params.toAddress,
249
253
  fromChainId: params.fromChainId.toString(),
250
254
  fromTokenAddress: params.fromTokenAddress,
251
255
  toChainId: params.toChainId.toString(),
@@ -67,7 +67,12 @@ export async function getPostOnRampQuote({
67
67
  return getBuyWithCryptoQuote({
68
68
  client,
69
69
  intentId: buyWithFiatStatus.intentId,
70
+ // setting the fromAddress and toAddress same - because post onramp swap can only be done if payer wallet is same as the receiver wallet
71
+ // TODO: in future - if fromAddress and toAddress are different, we will onramp to payer wallet and then swap to receiver wallet
72
+ // fiat endpoint should assume this flow and return the quote/status/history accordingly
73
+ // but for now - we will just not allow doing a fiat flow in Pay UI if payer and receiver wallets are different + requires a swap
70
74
  fromAddress: buyWithFiatStatus.toAddress,
75
+ toAddress: buyWithFiatStatus.toAddress,
71
76
  fromChainId: buyWithFiatStatus.quote.onRampToken.chainId,
72
77
  fromTokenAddress: buyWithFiatStatus.quote.onRampToken.tokenAddress,
73
78
  toChainId: buyWithFiatStatus.quote.toToken.chainId,
@@ -143,6 +143,10 @@ export type BuyWithFiatQuote = {
143
143
  * Address of the wallet to which the tokens will be sent.
144
144
  */
145
145
  toAddress: string;
146
+ /**
147
+ * Address of the wallet used for buying the token.
148
+ */
149
+ fromAddress: string;
146
150
  /**
147
151
  * The maximum slippage in basis points (bps) allowed for the transaction.
148
152
  */
@@ -66,10 +66,12 @@ export function useSiweAuth(
66
66
  }
67
67
  return authOptions.isLoggedIn(activeAccount.address);
68
68
  },
69
+ placeholderData: false,
69
70
  refetchOnWindowFocus: false,
70
71
  });
71
72
 
72
73
  const loginMutation = useMutation({
74
+ mutationKey: ["siwe_auth", "login"],
73
75
  mutationFn: async () => {
74
76
  if (!authOptions) {
75
77
  throw new Error("No auth options provided");
@@ -109,6 +111,7 @@ export function useSiweAuth(
109
111
  });
110
112
 
111
113
  const logoutMutation = useMutation({
114
+ mutationKey: ["siwe_auth", "logout"],
112
115
  mutationFn: async () => {
113
116
  if (!authOptions) {
114
117
  throw new Error("No auth options provided");
@@ -137,6 +140,6 @@ export function useSiweAuth(
137
140
 
138
141
  // checking if logged in
139
142
  isLoggedIn: isLoggedInQuery.data,
140
- isLoading: isLoggedInQuery.isLoading,
143
+ isLoading: isLoggedInQuery.isFetching,
141
144
  };
142
145
  }
@@ -15,7 +15,7 @@ export function Header({
15
15
  containerType,
16
16
  }: {
17
17
  theme: Theme;
18
- title?: string;
18
+ title: string;
19
19
  onClose?: () => void;
20
20
  onBack?: () => void;
21
21
  containerType: ContainerType;
@@ -57,7 +57,7 @@ export function Header({
57
57
  </TouchableOpacity>
58
58
  )}
59
59
  <ThemedText theme={theme} type="title">
60
- {title ? title : "Sign in"}
60
+ {title}
61
61
  </ThemedText>
62
62
  {onClose && (
63
63
  <TouchableOpacity onPress={onClose}>
@@ -60,7 +60,12 @@ export function ThemedButtonWithIcon(
60
60
  width: "100%",
61
61
  }}
62
62
  >
63
- <RNImage theme={theme} size={24} data={icon} />
63
+ <RNImage
64
+ theme={theme}
65
+ size={24}
66
+ data={icon}
67
+ color={theme.colors.accentButtonBg}
68
+ />
64
69
  <ThemedText theme={theme}>{title}</ThemedText>
65
70
  </View>
66
71
  </ThemedButton>
@@ -107,7 +107,7 @@ export function ConnectButton(props: ConnectButtonProps) {
107
107
  type="defaultSemiBold"
108
108
  style={{ color: theme.colors.primaryButtonText }}
109
109
  >
110
- Connect Wallet
110
+ {props.connectButton?.label || "Connect Wallet"}
111
111
  </ThemedText>
112
112
  )}
113
113
  </ThemedButton>
@@ -8,7 +8,6 @@ import { parseTheme } from "../../../core/design-system/CustomThemeProvider.js";
8
8
  import type { Theme } from "../../../core/design-system/index.js";
9
9
  import type { ConnectButtonProps } from "../../../core/hooks/connection/ConnectButtonProps.js";
10
10
  import type { ConnectEmbedProps } from "../../../core/hooks/connection/ConnectEmbedProps.js";
11
- import { genericWalletIcon } from "../../../core/utils/socialIcons.js";
12
11
  import { useWalletInfo } from "../../../core/utils/wallet.js";
13
12
  import { radius, spacing } from "../../design-system/index.js";
14
13
  import { useActiveWallet } from "../../hooks/wallets/useActiveWallet.js";
@@ -24,7 +23,7 @@ import { ThemedButtonWithIcon } from "../components/button.js";
24
23
  import { Spacer } from "../components/spacer.js";
25
24
  import { ThemedText } from "../components/text.js";
26
25
  import { ThemedView } from "../components/view.js";
27
- import { TW_ICON } from "../icons/svgs.js";
26
+ import { TW_ICON, WALLET_ICON } from "../icons/svgs.js";
28
27
  import { ErrorView } from "./ErrorView.js";
29
28
  import { ExternalWalletsList } from "./ExternalWalletsList.js";
30
29
  import { InAppWalletUI, OtpLogin } from "./InAppWalletUI.js";
@@ -128,6 +127,7 @@ export function ConnectModal(
128
127
  onClose={props.onClose}
129
128
  containerType={containerType}
130
129
  onBack={() => setModalState({ screen: "base" })}
130
+ title={props.connectModal?.title || "Sign in"}
131
131
  />
132
132
  <Spacer size="xl" />
133
133
  <View
@@ -163,6 +163,7 @@ export function ConnectModal(
163
163
  onClose={props.onClose}
164
164
  containerType={containerType}
165
165
  onBack={() => setModalState({ screen: "base" })}
166
+ title={props.connectModal?.title || "Sign in"}
166
167
  />
167
168
  <Spacer size="lg" />
168
169
  <ExternalWalletsList
@@ -184,6 +185,7 @@ export function ConnectModal(
184
185
  onClose={props.onClose}
185
186
  containerType={containerType}
186
187
  onBack={() => setModalState({ screen: "base" })}
188
+ title={props.connectModal?.title || "Sign in"}
187
189
  />
188
190
  {containerType === "modal" ? (
189
191
  <View style={{ flex: 1 }} />
@@ -212,6 +214,7 @@ export function ConnectModal(
212
214
  onClose={props.onClose}
213
215
  containerType={containerType}
214
216
  onBack={() => setModalState({ screen: "base" })}
217
+ title={props.connectModal?.title || "Sign in"}
215
218
  />
216
219
  {containerType === "modal" ? (
217
220
  <View style={{ flex: 1 }} />
@@ -235,6 +238,7 @@ export function ConnectModal(
235
238
  theme={theme}
236
239
  onClose={props.onClose}
237
240
  containerType={containerType}
241
+ title={props.connectModal?.title || "Sign in"}
238
242
  />
239
243
  {inAppWallet ? (
240
244
  <>
@@ -262,7 +266,7 @@ export function ConnectModal(
262
266
  <OrDivider theme={theme} />
263
267
  <ThemedButtonWithIcon
264
268
  theme={theme}
265
- icon={genericWalletIcon}
269
+ icon={WALLET_ICON}
266
270
  title="Connect a wallet"
267
271
  onPress={() =>
268
272
  setModalState({ screen: "external_wallets" })
@@ -279,7 +283,7 @@ export function ConnectModal(
279
283
  </>
280
284
  ) : externalWallets.length > 0 ? (
281
285
  <>
282
- <Spacer size="lg" />
286
+ <Spacer size="xl" />
283
287
  <View
284
288
  style={{
285
289
  flex: 1,
@@ -343,6 +347,7 @@ function LoadingView({
343
347
  theme={theme}
344
348
  size={90}
345
349
  data={getAuthProviderImage(authProvider)}
350
+ color={theme.colors.accentButtonBg}
346
351
  />
347
352
  </View>
348
353
  ) : (