thirdweb 5.100.2 → 5.101.0

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 (356) hide show
  1. package/dist/cjs/bridge/Webhook.js +105 -0
  2. package/dist/cjs/bridge/Webhook.js.map +1 -0
  3. package/dist/cjs/bridge/index.js +4 -1
  4. package/dist/cjs/bridge/index.js.map +1 -1
  5. package/dist/cjs/version.js +1 -1
  6. package/dist/esm/bridge/Webhook.js +102 -0
  7. package/dist/esm/bridge/Webhook.js.map +1 -0
  8. package/dist/esm/bridge/index.js +2 -0
  9. package/dist/esm/bridge/index.js.map +1 -1
  10. package/dist/esm/version.js +1 -1
  11. package/dist/types/bridge/Webhook.d.ts +82 -0
  12. package/dist/types/bridge/Webhook.d.ts.map +1 -0
  13. package/dist/types/bridge/index.d.ts +4 -1
  14. package/dist/types/bridge/index.d.ts.map +1 -1
  15. package/dist/types/react/core/account/provider.d.ts +1 -1
  16. package/dist/types/react/core/account/provider.d.ts.map +1 -1
  17. package/dist/types/react/core/design-system/CustomThemeProvider.d.ts +1 -1
  18. package/dist/types/react/core/design-system/CustomThemeProvider.d.ts.map +1 -1
  19. package/dist/types/react/core/providers/thirdweb-provider.d.ts +1 -1
  20. package/dist/types/react/core/providers/thirdweb-provider.d.ts.map +1 -1
  21. package/dist/types/react/core/wallet/provider.d.ts +1 -1
  22. package/dist/types/react/core/wallet/provider.d.ts.map +1 -1
  23. package/dist/types/react/native/providers/thirdweb-provider.d.ts +1 -1
  24. package/dist/types/react/native/providers/thirdweb-provider.d.ts.map +1 -1
  25. package/dist/types/react/native/ui/AutoConnect/AutoConnect.d.ts +1 -1
  26. package/dist/types/react/native/ui/AutoConnect/AutoConnect.d.ts.map +1 -1
  27. package/dist/types/react/native/ui/components/Address.d.ts +1 -1
  28. package/dist/types/react/native/ui/components/Address.d.ts.map +1 -1
  29. package/dist/types/react/native/ui/components/ChainIcon.d.ts +1 -1
  30. package/dist/types/react/native/ui/components/ChainIcon.d.ts.map +1 -1
  31. package/dist/types/react/native/ui/components/Header.d.ts +1 -1
  32. package/dist/types/react/native/ui/components/Header.d.ts.map +1 -1
  33. package/dist/types/react/native/ui/components/RNImage.d.ts +1 -1
  34. package/dist/types/react/native/ui/components/RNImage.d.ts.map +1 -1
  35. package/dist/types/react/native/ui/components/TokenIcon.d.ts +1 -1
  36. package/dist/types/react/native/ui/components/TokenIcon.d.ts.map +1 -1
  37. package/dist/types/react/native/ui/components/WalletImage.d.ts +1 -1
  38. package/dist/types/react/native/ui/components/WalletImage.d.ts.map +1 -1
  39. package/dist/types/react/native/ui/components/button.d.ts +2 -2
  40. package/dist/types/react/native/ui/components/button.d.ts.map +1 -1
  41. package/dist/types/react/native/ui/components/input.d.ts +2 -2
  42. package/dist/types/react/native/ui/components/input.d.ts.map +1 -1
  43. package/dist/types/react/native/ui/components/spacer.d.ts +1 -1
  44. package/dist/types/react/native/ui/components/spacer.d.ts.map +1 -1
  45. package/dist/types/react/native/ui/components/text.d.ts +1 -1
  46. package/dist/types/react/native/ui/components/text.d.ts.map +1 -1
  47. package/dist/types/react/native/ui/components/view.d.ts +1 -1
  48. package/dist/types/react/native/ui/components/view.d.ts.map +1 -1
  49. package/dist/types/react/native/ui/connect/ConnectButton.d.ts +1 -1
  50. package/dist/types/react/native/ui/connect/ConnectButton.d.ts.map +1 -1
  51. package/dist/types/react/native/ui/connect/ConnectModal.d.ts +2 -2
  52. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
  53. package/dist/types/react/native/ui/connect/ConnectedButton.d.ts +1 -1
  54. package/dist/types/react/native/ui/connect/ConnectedButton.d.ts.map +1 -1
  55. package/dist/types/react/native/ui/connect/ConnectedModal.d.ts +1 -1
  56. package/dist/types/react/native/ui/connect/ConnectedModal.d.ts.map +1 -1
  57. package/dist/types/react/native/ui/connect/ErrorView.d.ts +1 -1
  58. package/dist/types/react/native/ui/connect/ErrorView.d.ts.map +1 -1
  59. package/dist/types/react/native/ui/connect/ExternalWalletsList.d.ts +2 -2
  60. package/dist/types/react/native/ui/connect/ExternalWalletsList.d.ts.map +1 -1
  61. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts +3 -3
  62. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -1
  63. package/dist/types/react/native/ui/connect/LoadingView.d.ts +1 -1
  64. package/dist/types/react/native/ui/connect/LoadingView.d.ts.map +1 -1
  65. package/dist/types/react/native/ui/connect/ReceiveScreen.d.ts +1 -1
  66. package/dist/types/react/native/ui/connect/ReceiveScreen.d.ts.map +1 -1
  67. package/dist/types/react/native/ui/connect/SendScreen.d.ts +1 -1
  68. package/dist/types/react/native/ui/connect/SendScreen.d.ts.map +1 -1
  69. package/dist/types/react/native/ui/connect/SuccessView.d.ts +1 -1
  70. package/dist/types/react/native/ui/connect/SuccessView.d.ts.map +1 -1
  71. package/dist/types/react/native/ui/connect/TokenListScreen.d.ts +2 -2
  72. package/dist/types/react/native/ui/connect/TokenListScreen.d.ts.map +1 -1
  73. package/dist/types/react/native/ui/connect/WalletLoadingThumbnail.d.ts +1 -1
  74. package/dist/types/react/native/ui/connect/WalletLoadingThumbnail.d.ts.map +1 -1
  75. package/dist/types/react/native/ui/prebuilt/Account/address.d.ts +1 -1
  76. package/dist/types/react/native/ui/prebuilt/Account/address.d.ts.map +1 -1
  77. package/dist/types/react/native/ui/prebuilt/Account/avatar.d.ts +1 -1
  78. package/dist/types/react/native/ui/prebuilt/Account/avatar.d.ts.map +1 -1
  79. package/dist/types/react/native/ui/prebuilt/Account/balance.d.ts +1 -1
  80. package/dist/types/react/native/ui/prebuilt/Account/balance.d.ts.map +1 -1
  81. package/dist/types/react/native/ui/prebuilt/Account/blobbie.d.ts +2 -2
  82. package/dist/types/react/native/ui/prebuilt/Account/blobbie.d.ts.map +1 -1
  83. package/dist/types/react/native/ui/prebuilt/Account/name.d.ts +1 -1
  84. package/dist/types/react/native/ui/prebuilt/Account/name.d.ts.map +1 -1
  85. package/dist/types/react/native/ui/prebuilt/Wallet/icon.d.ts +2 -2
  86. package/dist/types/react/native/ui/prebuilt/Wallet/icon.d.ts.map +1 -1
  87. package/dist/types/react/native/ui/prebuilt/Wallet/name.d.ts +1 -1
  88. package/dist/types/react/native/ui/prebuilt/Wallet/name.d.ts.map +1 -1
  89. package/dist/types/react/native/ui/transaction/TransactionButton.d.ts +1 -1
  90. package/dist/types/react/native/ui/transaction/TransactionButton.d.ts.map +1 -1
  91. package/dist/types/react/web/providers/thirdweb-provider.d.ts +1 -1
  92. package/dist/types/react/web/providers/thirdweb-provider.d.ts.map +1 -1
  93. package/dist/types/react/web/providers/wallet-ui-states-provider.d.ts +1 -1
  94. package/dist/types/react/web/providers/wallet-ui-states-provider.d.ts.map +1 -1
  95. package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts +1 -1
  96. package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts.map +1 -1
  97. package/dist/types/react/web/ui/ConnectWallet/Blobbie.d.ts +1 -1
  98. package/dist/types/react/web/ui/ConnectWallet/Blobbie.d.ts.map +1 -1
  99. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +1 -1
  100. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  101. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts +5 -5
  102. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  103. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts +1 -1
  104. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts.map +1 -1
  105. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts +1 -1
  106. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  107. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +1 -1
  108. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  109. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts +1 -1
  110. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts.map +1 -1
  111. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts +1 -1
  112. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
  113. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalSkeleton.d.ts +2 -2
  114. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalSkeleton.d.ts.map +1 -1
  115. package/dist/types/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.d.ts +1 -1
  116. package/dist/types/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.d.ts.map +1 -1
  117. package/dist/types/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.d.ts +1 -1
  118. package/dist/types/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.d.ts.map +1 -1
  119. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts +1 -1
  120. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts.map +1 -1
  121. package/dist/types/react/web/ui/ConnectWallet/Modal/TOS.d.ts +1 -1
  122. package/dist/types/react/web/ui/ConnectWallet/Modal/TOS.d.ts.map +1 -1
  123. package/dist/types/react/web/ui/ConnectWallet/NetworkSelector.d.ts +1 -1
  124. package/dist/types/react/web/ui/ConnectWallet/NetworkSelector.d.ts.map +1 -1
  125. package/dist/types/react/web/ui/ConnectWallet/PoweredByTW.d.ts +1 -1
  126. package/dist/types/react/web/ui/ConnectWallet/PoweredByTW.d.ts.map +1 -1
  127. package/dist/types/react/web/ui/ConnectWallet/TransactionsScreen.d.ts +1 -1
  128. package/dist/types/react/web/ui/ConnectWallet/TransactionsScreen.d.ts.map +1 -1
  129. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts +1 -1
  130. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts.map +1 -1
  131. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts +1 -1
  132. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
  133. package/dist/types/react/web/ui/ConnectWallet/WalletTypeRowButton.d.ts +1 -1
  134. package/dist/types/react/web/ui/ConnectWallet/WalletTypeRowButton.d.ts.map +1 -1
  135. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts +1 -1
  136. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
  137. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.d.ts +1 -1
  138. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.d.ts.map +1 -1
  139. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/EstimatedTimeAndFees.d.ts +1 -1
  140. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/EstimatedTimeAndFees.d.ts.map +1 -1
  141. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/LazyBuyScreen.d.ts +1 -1
  142. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/LazyBuyScreen.d.ts.map +1 -1
  143. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayProviderSelection.d.ts +1 -1
  144. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayProviderSelection.d.ts.map +1 -1
  145. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.d.ts +1 -1
  146. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.d.ts.map +1 -1
  147. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayWIthCreditCard.d.ts +1 -1
  148. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayWIthCreditCard.d.ts.map +1 -1
  149. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/Stepper.d.ts +2 -2
  150. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/Stepper.d.ts.map +1 -1
  151. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.d.ts +1 -1
  152. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.d.ts.map +1 -1
  153. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.d.ts +1 -1
  154. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.d.ts.map +1 -1
  155. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatScreenContent.d.ts +1 -1
  156. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatScreenContent.d.ts.map +1 -1
  157. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.d.ts +1 -1
  158. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.d.ts.map +1 -1
  159. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.d.ts +1 -1
  160. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.d.ts.map +1 -1
  161. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/Providers.d.ts +1 -1
  162. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/Providers.d.ts.map +1 -1
  163. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.d.ts +1 -1
  164. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.d.ts.map +1 -1
  165. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/TokenInfoRow.d.ts +1 -1
  166. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/TokenInfoRow.d.ts.map +1 -1
  167. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.d.ts +1 -1
  168. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.d.ts.map +1 -1
  169. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.d.ts +1 -1
  170. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.d.ts.map +1 -1
  171. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ErrorText.d.ts +1 -1
  172. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ErrorText.d.ts.map +1 -1
  173. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.d.ts +2 -2
  174. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.d.ts.map +1 -1
  175. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.d.ts +1 -1
  176. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.d.ts.map +1 -1
  177. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts +1 -1
  178. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts.map +1 -1
  179. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/StepConnector.d.ts +1 -1
  180. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/StepConnector.d.ts.map +1 -1
  181. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.d.ts +1 -1
  182. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.d.ts.map +1 -1
  183. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapScreenContent.d.ts +1 -1
  184. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapScreenContent.d.ts.map +1 -1
  185. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.d.ts +1 -1
  186. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.d.ts.map +1 -1
  187. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapSummary.d.ts +1 -1
  188. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapSummary.d.ts.map +1 -1
  189. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/TokenSelectorScreen.d.ts +1 -1
  190. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/TokenSelectorScreen.d.ts.map +1 -1
  191. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.d.ts +1 -1
  192. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.d.ts.map +1 -1
  193. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/TransferFlow.d.ts +1 -1
  194. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/TransferFlow.d.ts.map +1 -1
  195. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/WalletRow.d.ts +1 -1
  196. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/WalletRow.d.ts.map +1 -1
  197. package/dist/types/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.d.ts +1 -1
  198. package/dist/types/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.d.ts.map +1 -1
  199. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts +1 -1
  200. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts.map +1 -1
  201. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts +1 -1
  202. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -1
  203. package/dist/types/react/web/ui/ConnectWallet/screens/ManageWalletScreen.d.ts +1 -1
  204. package/dist/types/react/web/ui/ConnectWallet/screens/ManageWalletScreen.d.ts.map +1 -1
  205. package/dist/types/react/web/ui/ConnectWallet/screens/PrivateKey.d.ts +1 -1
  206. package/dist/types/react/web/ui/ConnectWallet/screens/PrivateKey.d.ts.map +1 -1
  207. package/dist/types/react/web/ui/ConnectWallet/screens/ReceiveFunds.d.ts +1 -1
  208. package/dist/types/react/web/ui/ConnectWallet/screens/ReceiveFunds.d.ts.map +1 -1
  209. package/dist/types/react/web/ui/ConnectWallet/screens/SendFunds.d.ts +2 -2
  210. package/dist/types/react/web/ui/ConnectWallet/screens/SendFunds.d.ts.map +1 -1
  211. package/dist/types/react/web/ui/ConnectWallet/screens/StartScreen.d.ts +1 -1
  212. package/dist/types/react/web/ui/ConnectWallet/screens/StartScreen.d.ts.map +1 -1
  213. package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts +1 -1
  214. package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts.map +1 -1
  215. package/dist/types/react/web/ui/ConnectWallet/screens/ViewAssets.d.ts +1 -1
  216. package/dist/types/react/web/ui/ConnectWallet/screens/ViewAssets.d.ts.map +1 -1
  217. package/dist/types/react/web/ui/ConnectWallet/screens/ViewNFTs.d.ts +2 -2
  218. package/dist/types/react/web/ui/ConnectWallet/screens/ViewNFTs.d.ts.map +1 -1
  219. package/dist/types/react/web/ui/ConnectWallet/screens/ViewTokens.d.ts +2 -2
  220. package/dist/types/react/web/ui/ConnectWallet/screens/ViewTokens.d.ts.map +1 -1
  221. package/dist/types/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.d.ts +1 -1
  222. package/dist/types/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.d.ts.map +1 -1
  223. package/dist/types/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.d.ts +1 -1
  224. package/dist/types/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.d.ts.map +1 -1
  225. package/dist/types/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.d.ts +1 -1
  226. package/dist/types/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.d.ts.map +1 -1
  227. package/dist/types/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.d.ts +1 -1
  228. package/dist/types/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.d.ts.map +1 -1
  229. package/dist/types/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.d.ts +1 -1
  230. package/dist/types/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.d.ts.map +1 -1
  231. package/dist/types/react/web/ui/PayEmbed.d.ts +1 -1
  232. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  233. package/dist/types/react/web/ui/SiteEmbed.d.ts +1 -1
  234. package/dist/types/react/web/ui/SiteEmbed.d.ts.map +1 -1
  235. package/dist/types/react/web/ui/SiteLink.d.ts +1 -1
  236. package/dist/types/react/web/ui/SiteLink.d.ts.map +1 -1
  237. package/dist/types/react/web/ui/TransactionButton/DepositScreen.d.ts +1 -1
  238. package/dist/types/react/web/ui/TransactionButton/DepositScreen.d.ts.map +1 -1
  239. package/dist/types/react/web/ui/TransactionButton/ExecutingScreen.d.ts +1 -1
  240. package/dist/types/react/web/ui/TransactionButton/ExecutingScreen.d.ts.map +1 -1
  241. package/dist/types/react/web/ui/TransactionButton/TransactionModal.d.ts +1 -1
  242. package/dist/types/react/web/ui/TransactionButton/TransactionModal.d.ts.map +1 -1
  243. package/dist/types/react/web/ui/TransactionButton/index.d.ts +1 -1
  244. package/dist/types/react/web/ui/TransactionButton/index.d.ts.map +1 -1
  245. package/dist/types/react/web/ui/components/OTPInput.d.ts +1 -1
  246. package/dist/types/react/web/ui/components/OTPInput.d.ts.map +1 -1
  247. package/dist/types/react/web/ui/components/QRCode.d.ts +1 -1
  248. package/dist/types/react/web/ui/components/QRCode.d.ts.map +1 -1
  249. package/dist/types/react/web/ui/components/StepBar.d.ts +1 -1
  250. package/dist/types/react/web/ui/components/StepBar.d.ts.map +1 -1
  251. package/dist/types/react/web/ui/components/SwitchNetwork.d.ts +1 -1
  252. package/dist/types/react/web/ui/components/SwitchNetwork.d.ts.map +1 -1
  253. package/dist/types/react/web/ui/components/Tabs.d.ts +1 -1
  254. package/dist/types/react/web/ui/components/Tabs.d.ts.map +1 -1
  255. package/dist/types/react/web/ui/components/TextDivider.d.ts +1 -1
  256. package/dist/types/react/web/ui/components/TextDivider.d.ts.map +1 -1
  257. package/dist/types/react/web/ui/components/TokenIcon.d.ts +1 -1
  258. package/dist/types/react/web/ui/components/TokenIcon.d.ts.map +1 -1
  259. package/dist/types/react/web/ui/components/WalletImage.d.ts +1 -1
  260. package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
  261. package/dist/types/react/web/ui/components/basic.d.ts +2 -2
  262. package/dist/types/react/web/ui/components/basic.d.ts.map +1 -1
  263. package/dist/types/react/web/ui/components/token/TokenRow.d.ts +1 -1
  264. package/dist/types/react/web/ui/components/token/TokenRow.d.ts.map +1 -1
  265. package/dist/types/react/web/ui/components/token/TokenSymbol.d.ts +1 -1
  266. package/dist/types/react/web/ui/components/token/TokenSymbol.d.ts.map +1 -1
  267. package/dist/types/react/web/ui/prebuilt/Account/address.d.ts +1 -1
  268. package/dist/types/react/web/ui/prebuilt/Account/address.d.ts.map +1 -1
  269. package/dist/types/react/web/ui/prebuilt/Account/avatar.d.ts +1 -1
  270. package/dist/types/react/web/ui/prebuilt/Account/avatar.d.ts.map +1 -1
  271. package/dist/types/react/web/ui/prebuilt/Account/balance.d.ts +1 -1
  272. package/dist/types/react/web/ui/prebuilt/Account/balance.d.ts.map +1 -1
  273. package/dist/types/react/web/ui/prebuilt/Account/blobbie.d.ts +1 -1
  274. package/dist/types/react/web/ui/prebuilt/Account/blobbie.d.ts.map +1 -1
  275. package/dist/types/react/web/ui/prebuilt/Account/name.d.ts +1 -1
  276. package/dist/types/react/web/ui/prebuilt/Account/name.d.ts.map +1 -1
  277. package/dist/types/react/web/ui/prebuilt/Chain/icon.d.ts +1 -1
  278. package/dist/types/react/web/ui/prebuilt/Chain/icon.d.ts.map +1 -1
  279. package/dist/types/react/web/ui/prebuilt/Chain/name.d.ts +1 -1
  280. package/dist/types/react/web/ui/prebuilt/Chain/name.d.ts.map +1 -1
  281. package/dist/types/react/web/ui/prebuilt/Chain/provider.d.ts +1 -1
  282. package/dist/types/react/web/ui/prebuilt/Chain/provider.d.ts.map +1 -1
  283. package/dist/types/react/web/ui/prebuilt/NFT/description.d.ts +1 -1
  284. package/dist/types/react/web/ui/prebuilt/NFT/description.d.ts.map +1 -1
  285. package/dist/types/react/web/ui/prebuilt/NFT/media.d.ts +1 -1
  286. package/dist/types/react/web/ui/prebuilt/NFT/media.d.ts.map +1 -1
  287. package/dist/types/react/web/ui/prebuilt/NFT/name.d.ts +1 -1
  288. package/dist/types/react/web/ui/prebuilt/NFT/name.d.ts.map +1 -1
  289. package/dist/types/react/web/ui/prebuilt/NFT/provider.d.ts +1 -1
  290. package/dist/types/react/web/ui/prebuilt/NFT/provider.d.ts.map +1 -1
  291. package/dist/types/react/web/ui/prebuilt/Token/icon.d.ts +1 -1
  292. package/dist/types/react/web/ui/prebuilt/Token/icon.d.ts.map +1 -1
  293. package/dist/types/react/web/ui/prebuilt/Token/name.d.ts +1 -1
  294. package/dist/types/react/web/ui/prebuilt/Token/name.d.ts.map +1 -1
  295. package/dist/types/react/web/ui/prebuilt/Token/provider.d.ts +1 -1
  296. package/dist/types/react/web/ui/prebuilt/Token/provider.d.ts.map +1 -1
  297. package/dist/types/react/web/ui/prebuilt/Token/symbol.d.ts +1 -1
  298. package/dist/types/react/web/ui/prebuilt/Token/symbol.d.ts.map +1 -1
  299. package/dist/types/react/web/ui/prebuilt/Wallet/icon.d.ts +2 -2
  300. package/dist/types/react/web/ui/prebuilt/Wallet/icon.d.ts.map +1 -1
  301. package/dist/types/react/web/ui/prebuilt/Wallet/name.d.ts +1 -1
  302. package/dist/types/react/web/ui/prebuilt/Wallet/name.d.ts.map +1 -1
  303. package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts +1 -1
  304. package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts.map +1 -1
  305. package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts +1 -1
  306. package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts.map +1 -1
  307. package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts +1 -1
  308. package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts.map +1 -1
  309. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts +1 -1
  310. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
  311. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts +1 -1
  312. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts.map +1 -1
  313. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletHeader.d.ts +1 -1
  314. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletHeader.d.ts.map +1 -1
  315. package/dist/types/react/web/wallets/in-app/CountrySelector.d.ts +1 -1
  316. package/dist/types/react/web/wallets/in-app/CountrySelector.d.ts.map +1 -1
  317. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +1 -1
  318. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  319. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts +1 -1
  320. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts.map +1 -1
  321. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts +1 -1
  322. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts.map +1 -1
  323. package/dist/types/react/web/wallets/in-app/InputSelectionUI.d.ts +1 -1
  324. package/dist/types/react/web/wallets/in-app/InputSelectionUI.d.ts.map +1 -1
  325. package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts +1 -1
  326. package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts.map +1 -1
  327. package/dist/types/react/web/wallets/shared/CoinbaseSDKConnection.d.ts +1 -1
  328. package/dist/types/react/web/wallets/shared/CoinbaseSDKConnection.d.ts.map +1 -1
  329. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts +1 -1
  330. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  331. package/dist/types/react/web/wallets/shared/ErrorState.d.ts +1 -1
  332. package/dist/types/react/web/wallets/shared/ErrorState.d.ts.map +1 -1
  333. package/dist/types/react/web/wallets/shared/GuestLogin.d.ts +1 -1
  334. package/dist/types/react/web/wallets/shared/GuestLogin.d.ts.map +1 -1
  335. package/dist/types/react/web/wallets/shared/LoadingScreen.d.ts +1 -1
  336. package/dist/types/react/web/wallets/shared/LoadingScreen.d.ts.map +1 -1
  337. package/dist/types/react/web/wallets/shared/LoadingState.d.ts +1 -1
  338. package/dist/types/react/web/wallets/shared/LoadingState.d.ts.map +1 -1
  339. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts +1 -1
  340. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
  341. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +1 -1
  342. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
  343. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts +1 -1
  344. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
  345. package/dist/types/transaction/actions/to-serializable-transaction.d.ts +2 -2
  346. package/dist/types/utils/abi/decodeFunctionData.d.ts +1 -1
  347. package/dist/types/utils/abi/decodeFunctionData.d.ts.map +1 -1
  348. package/dist/types/utils/abi/decodeFunctionResult.d.ts +1 -1
  349. package/dist/types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
  350. package/dist/types/version.d.ts +1 -1
  351. package/dist/types/wallets/in-app/native/helpers/storage/local.d.ts +1 -1
  352. package/package.json +6 -5
  353. package/src/bridge/Webhook.test.ts +589 -0
  354. package/src/bridge/Webhook.ts +139 -0
  355. package/src/bridge/index.ts +4 -1
  356. package/src/version.ts +1 -1
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parse = parse;
4
+ const v4_mini_1 = require("zod/v4-mini");
5
+ const address_js_1 = require("../utils/address.js");
6
+ const hex_js_1 = require("../utils/encoding/hex.js");
7
+ const hexSchema = v4_mini_1.z
8
+ .string()
9
+ .check(v4_mini_1.z.refine(hex_js_1.isHex, { message: "Invalid hex string" }));
10
+ const addressSchema = v4_mini_1.z
11
+ .string()
12
+ .check(v4_mini_1.z.refine(address_js_1.isAddress, { message: "Invalid address" }));
13
+ const webhookSchema = v4_mini_1.z.union([
14
+ v4_mini_1.z.object({
15
+ version: v4_mini_1.z.literal(1),
16
+ data: v4_mini_1.z.object({}),
17
+ }),
18
+ v4_mini_1.z.object({
19
+ version: v4_mini_1.z.literal(2),
20
+ data: v4_mini_1.z.object({
21
+ paymentId: v4_mini_1.z.string(),
22
+ // only exists when the payment was triggered from a developer specified payment link
23
+ paymentLinkId: v4_mini_1.z.optional(v4_mini_1.z.string()),
24
+ clientId: v4_mini_1.z.string(),
25
+ action: v4_mini_1.z.enum(["TRANSFER", "BUY", "SELL"]),
26
+ status: v4_mini_1.z.enum(["PENDING", "FAILED", "COMPLETED"]),
27
+ originToken: addressSchema,
28
+ originAmount: v4_mini_1.z.string(),
29
+ destinationToken: addressSchema,
30
+ destinationAmount: v4_mini_1.z.string(),
31
+ sender: addressSchema,
32
+ receiver: addressSchema,
33
+ type: v4_mini_1.z.string(),
34
+ transactions: v4_mini_1.z.array(hexSchema),
35
+ developerFeeBps: v4_mini_1.z.coerce.number(),
36
+ developerFeeRecipient: addressSchema,
37
+ purchaseData: v4_mini_1.z.record(v4_mini_1.z.string(), v4_mini_1.z.unknown()),
38
+ }),
39
+ }),
40
+ ]);
41
+ /**
42
+ * Parses an incoming webhook from thirdweb.
43
+ *
44
+ * @param payload - The raw text body received from thirdweb.
45
+ * @param headers - The webhook headers received from thirdweb.
46
+ * @param secret - The webhook secret to verify the payload with.
47
+ */
48
+ async function parse(
49
+ /**
50
+ * Raw text body received from thirdweb.
51
+ */
52
+ payload,
53
+ /**
54
+ * The webhook headers received from thirdweb.
55
+ */
56
+ headers,
57
+ /**
58
+ * The webhook secret to verify the payload with.
59
+ */
60
+ secret,
61
+ /**
62
+ * The tolerance in seconds for the timestamp verification.
63
+ */
64
+ tolerance = 300) {
65
+ // Get the signature and timestamp from headers
66
+ const receivedSignature = headers["x-payload-signature"] || headers["x-pay-signature"];
67
+ const receivedTimestamp = headers["x-timestamp"] || headers["x-pay-timestamp"];
68
+ if (!receivedSignature || !receivedTimestamp) {
69
+ throw new Error("Missing required webhook headers: signature or timestamp");
70
+ }
71
+ // Verify timestamp
72
+ const now = Math.floor(Date.now() / 1000);
73
+ const timestamp = Number.parseInt(receivedTimestamp, 10);
74
+ const diff = Math.abs(now - timestamp);
75
+ if (diff > tolerance) {
76
+ throw new Error(`Webhook timestamp is too old. Difference: ${diff}s, tolerance: ${tolerance}s`);
77
+ }
78
+ // Generate signature using the same method as the sender
79
+ const encoder = new TextEncoder();
80
+ const key = await crypto.subtle.importKey("raw", encoder.encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
81
+ const signature = await crypto.subtle.sign("HMAC", key, encoder.encode(`${receivedTimestamp}.${payload}`));
82
+ // Convert the signature to hex string
83
+ const computedSignature = Array.from(new Uint8Array(signature))
84
+ .map((b) => b.toString(16).padStart(2, "0"))
85
+ .join("");
86
+ // Compare signatures
87
+ if (computedSignature !== receivedSignature) {
88
+ throw new Error("Invalid webhook signature");
89
+ }
90
+ // Parse the payload as JSON
91
+ let payloadObject;
92
+ try {
93
+ payloadObject = JSON.parse(payload);
94
+ }
95
+ catch {
96
+ throw new Error("Invalid webhook payload: not valid JSON");
97
+ }
98
+ const parsedPayload = webhookSchema.parse(payloadObject);
99
+ // v1 is no longer supported
100
+ if (parsedPayload.version === 1) {
101
+ throw new Error("Invalid webhook payload: version 1 is no longer supported, please upgrade to webhook version 2.");
102
+ }
103
+ return parsedPayload;
104
+ }
105
+ //# sourceMappingURL=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OAAO,KAAK,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -1,14 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chains = exports.routes = exports.status = exports.Onramp = exports.Transfer = exports.Sell = exports.Buy = void 0;
3
+ exports.parse = exports.chains = exports.routes = exports.status = exports.Webhook = exports.Onramp = exports.Transfer = exports.Sell = exports.Buy = void 0;
4
4
  exports.Buy = require("./Buy.js");
5
5
  exports.Sell = require("./Sell.js");
6
6
  exports.Transfer = require("./Transfer.js");
7
7
  exports.Onramp = require("./Onramp.js");
8
+ exports.Webhook = require("./Webhook.js");
8
9
  var Status_js_1 = require("./Status.js");
9
10
  Object.defineProperty(exports, "status", { enumerable: true, get: function () { return Status_js_1.status; } });
10
11
  var Routes_js_1 = require("./Routes.js");
11
12
  Object.defineProperty(exports, "routes", { enumerable: true, get: function () { return Routes_js_1.routes; } });
12
13
  var Chains_js_1 = require("./Chains.js");
13
14
  Object.defineProperty(exports, "chains", { enumerable: true, get: function () { return Chains_js_1.chains; } });
15
+ var Webhook_js_1 = require("./Webhook.js");
16
+ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return Webhook_js_1.parse; } });
14
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bridge/index.ts"],"names":[],"mappings":";;;AAAA,kCAAgC;AAChC,oCAAkC;AAClC,4CAA0C;AAC1C,wCAAsC;AACtC,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AACf,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AACf,yCAAqC;AAA5B,mGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bridge/index.ts"],"names":[],"mappings":";;;AAAA,kCAAgC;AAChC,oCAAkC;AAClC,4CAA0C;AAC1C,wCAAsC;AACtC,0CAAwC;AACxC,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AACf,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AACf,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AACf,2CAAqC;AAA5B,mGAAA,KAAK,OAAA"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "5.100.2";
4
+ exports.version = "5.101.0";
5
5
  //# sourceMappingURL=version.js.map
@@ -0,0 +1,102 @@
1
+ import { z } from "zod/v4-mini";
2
+ import { isAddress } from "../utils/address.js";
3
+ import { isHex } from "../utils/encoding/hex.js";
4
+ const hexSchema = z
5
+ .string()
6
+ .check(z.refine(isHex, { message: "Invalid hex string" }));
7
+ const addressSchema = z
8
+ .string()
9
+ .check(z.refine(isAddress, { message: "Invalid address" }));
10
+ const webhookSchema = z.union([
11
+ z.object({
12
+ version: z.literal(1),
13
+ data: z.object({}),
14
+ }),
15
+ z.object({
16
+ version: z.literal(2),
17
+ data: z.object({
18
+ paymentId: z.string(),
19
+ // only exists when the payment was triggered from a developer specified payment link
20
+ paymentLinkId: z.optional(z.string()),
21
+ clientId: z.string(),
22
+ action: z.enum(["TRANSFER", "BUY", "SELL"]),
23
+ status: z.enum(["PENDING", "FAILED", "COMPLETED"]),
24
+ originToken: addressSchema,
25
+ originAmount: z.string(),
26
+ destinationToken: addressSchema,
27
+ destinationAmount: z.string(),
28
+ sender: addressSchema,
29
+ receiver: addressSchema,
30
+ type: z.string(),
31
+ transactions: z.array(hexSchema),
32
+ developerFeeBps: z.coerce.number(),
33
+ developerFeeRecipient: addressSchema,
34
+ purchaseData: z.record(z.string(), z.unknown()),
35
+ }),
36
+ }),
37
+ ]);
38
+ /**
39
+ * Parses an incoming webhook from thirdweb.
40
+ *
41
+ * @param payload - The raw text body received from thirdweb.
42
+ * @param headers - The webhook headers received from thirdweb.
43
+ * @param secret - The webhook secret to verify the payload with.
44
+ */
45
+ export async function parse(
46
+ /**
47
+ * Raw text body received from thirdweb.
48
+ */
49
+ payload,
50
+ /**
51
+ * The webhook headers received from thirdweb.
52
+ */
53
+ headers,
54
+ /**
55
+ * The webhook secret to verify the payload with.
56
+ */
57
+ secret,
58
+ /**
59
+ * The tolerance in seconds for the timestamp verification.
60
+ */
61
+ tolerance = 300) {
62
+ // Get the signature and timestamp from headers
63
+ const receivedSignature = headers["x-payload-signature"] || headers["x-pay-signature"];
64
+ const receivedTimestamp = headers["x-timestamp"] || headers["x-pay-timestamp"];
65
+ if (!receivedSignature || !receivedTimestamp) {
66
+ throw new Error("Missing required webhook headers: signature or timestamp");
67
+ }
68
+ // Verify timestamp
69
+ const now = Math.floor(Date.now() / 1000);
70
+ const timestamp = Number.parseInt(receivedTimestamp, 10);
71
+ const diff = Math.abs(now - timestamp);
72
+ if (diff > tolerance) {
73
+ throw new Error(`Webhook timestamp is too old. Difference: ${diff}s, tolerance: ${tolerance}s`);
74
+ }
75
+ // Generate signature using the same method as the sender
76
+ const encoder = new TextEncoder();
77
+ const key = await crypto.subtle.importKey("raw", encoder.encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
78
+ const signature = await crypto.subtle.sign("HMAC", key, encoder.encode(`${receivedTimestamp}.${payload}`));
79
+ // Convert the signature to hex string
80
+ const computedSignature = Array.from(new Uint8Array(signature))
81
+ .map((b) => b.toString(16).padStart(2, "0"))
82
+ .join("");
83
+ // Compare signatures
84
+ if (computedSignature !== receivedSignature) {
85
+ throw new Error("Invalid webhook signature");
86
+ }
87
+ // Parse the payload as JSON
88
+ let payloadObject;
89
+ try {
90
+ payloadObject = JSON.parse(payload);
91
+ }
92
+ catch {
93
+ throw new Error("Invalid webhook payload: not valid JSON");
94
+ }
95
+ const parsedPayload = webhookSchema.parse(payloadObject);
96
+ // v1 is no longer supported
97
+ if (parsedPayload.version === 1) {
98
+ throw new Error("Invalid webhook payload: version 1 is no longer supported, please upgrade to webhook version 2.");
99
+ }
100
+ return parsedPayload;
101
+ }
102
+ //# sourceMappingURL=Webhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../../src/bridge/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,MAAM,SAAS,GAAG,CAAC;KAChB,MAAM,EAAE;KACR,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAC7D,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,EAAE;KACR,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;AAE9D,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC;IAC5B,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACrB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;KACnB,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACrB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YACb,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;YACrB,qFAAqF;YACrF,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;YACpB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;YAC3C,MAAM,EAA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C;QACP,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAEzD,4BAA4B;IAC5B,IAAI,aAAa,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -2,7 +2,9 @@ export * as Buy from "./Buy.js";
2
2
  export * as Sell from "./Sell.js";
3
3
  export * as Transfer from "./Transfer.js";
4
4
  export * as Onramp from "./Onramp.js";
5
+ export * as Webhook from "./Webhook.js";
5
6
  export { status } from "./Status.js";
6
7
  export { routes } from "./Routes.js";
7
8
  export { chains } from "./Chains.js";
9
+ export { parse } from "./Webhook.js";
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bridge/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bridge/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC"}
@@ -1,2 +1,2 @@
1
- export const version = "5.100.2";
1
+ export const version = "5.101.0";
2
2
  //# sourceMappingURL=version.js.map
@@ -0,0 +1,82 @@
1
+ import { z } from "zod/v4-mini";
2
+ declare const webhookSchema: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
3
+ version: z.ZodMiniLiteral<1>;
4
+ data: z.ZodMiniObject<{}, z.core.$strip>;
5
+ }, z.core.$strip>, z.ZodMiniObject<{
6
+ version: z.ZodMiniLiteral<2>;
7
+ data: z.ZodMiniObject<{
8
+ paymentId: z.ZodMiniString<string>;
9
+ paymentLinkId: z.ZodMiniOptional<z.ZodMiniString<string>>;
10
+ clientId: z.ZodMiniString<string>;
11
+ action: z.ZodMiniEnum<{
12
+ TRANSFER: "TRANSFER";
13
+ BUY: "BUY";
14
+ SELL: "SELL";
15
+ }>;
16
+ status: z.ZodMiniEnum<{
17
+ COMPLETED: "COMPLETED";
18
+ PENDING: "PENDING";
19
+ FAILED: "FAILED";
20
+ }>;
21
+ originToken: z.ZodMiniString<string>;
22
+ originAmount: z.ZodMiniString<string>;
23
+ destinationToken: z.ZodMiniString<string>;
24
+ destinationAmount: z.ZodMiniString<string>;
25
+ sender: z.ZodMiniString<string>;
26
+ receiver: z.ZodMiniString<string>;
27
+ type: z.ZodMiniString<string>;
28
+ transactions: z.ZodMiniArray<z.ZodMiniString<string>>;
29
+ developerFeeBps: z.ZodMiniNumber<unknown>;
30
+ developerFeeRecipient: z.ZodMiniString<string>;
31
+ purchaseData: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>]>;
34
+ export type WebhookPayload = Exclude<z.infer<typeof webhookSchema>, {
35
+ version: 1;
36
+ }>;
37
+ /**
38
+ * Parses an incoming webhook from thirdweb.
39
+ *
40
+ * @param payload - The raw text body received from thirdweb.
41
+ * @param headers - The webhook headers received from thirdweb.
42
+ * @param secret - The webhook secret to verify the payload with.
43
+ */
44
+ export declare function parse(
45
+ /**
46
+ * Raw text body received from thirdweb.
47
+ */
48
+ payload: string,
49
+ /**
50
+ * The webhook headers received from thirdweb.
51
+ */
52
+ headers: Record<string, string>,
53
+ /**
54
+ * The webhook secret to verify the payload with.
55
+ */
56
+ secret: string,
57
+ /**
58
+ * The tolerance in seconds for the timestamp verification.
59
+ */
60
+ tolerance?: number): Promise<{
61
+ version: 2;
62
+ data: {
63
+ paymentId: string;
64
+ clientId: string;
65
+ action: "TRANSFER" | "BUY" | "SELL";
66
+ status: "COMPLETED" | "PENDING" | "FAILED";
67
+ originToken: string;
68
+ originAmount: string;
69
+ destinationToken: string;
70
+ destinationAmount: string;
71
+ sender: string;
72
+ receiver: string;
73
+ type: string;
74
+ transactions: string[];
75
+ developerFeeBps: number;
76
+ developerFeeRecipient: string;
77
+ purchaseData: Record<string, unknown>;
78
+ paymentLinkId?: string | undefined;
79
+ };
80
+ }>;
81
+ export {};
82
+ //# sourceMappingURL=Webhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Webhook.d.ts","sourceRoot":"","sources":["../../../src/bridge/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAWhC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA2BjB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,EAC7B;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CACf,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,KAAK;AACzB;;GAEG;AACH,OAAO,EAAE,MAAM;AAEf;;GAEG;AACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;AAE/B;;GAEG;AACH,MAAM,EAAE,MAAM;AAEd;;GAEG;AACH,SAAS,SAAM;;;;;;;;;;;;;;;;;;;;GAmEhB"}
@@ -2,14 +2,17 @@ export * as Buy from "./Buy.js";
2
2
  export * as Sell from "./Sell.js";
3
3
  export * as Transfer from "./Transfer.js";
4
4
  export * as Onramp from "./Onramp.js";
5
+ export * as Webhook from "./Webhook.js";
5
6
  export { status } from "./Status.js";
6
7
  export { routes } from "./Routes.js";
7
8
  export { chains } from "./Chains.js";
9
+ export { parse } from "./Webhook.js";
8
10
  export type { Chain } from "./types/Chain.js";
9
11
  export type { Quote, PreparedQuote } from "./types/Quote.js";
10
12
  export type { Route, RouteQuoteStep, RouteStep, RouteTransaction, } from "./types/Route.js";
11
13
  export type { Status } from "./types/Status.js";
12
14
  export type { Token } from "./types/Token.js";
13
- export type { Action } from "./types/BridgeAction.js";
14
15
  export type { ApiError } from "./types/Errors.js";
16
+ export type { Action } from "./types/BridgeAction.js";
17
+ export type { WebhookPayload } from "./Webhook.js";
15
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bridge/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,KAAK,EAAE,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,EAAE,MAAM,cAAc,CAAC"}
@@ -36,7 +36,7 @@ export type AccountProviderProps = {
36
36
  * @wallet
37
37
  * @beta
38
38
  */
39
- export declare function AccountProvider(props: React.PropsWithChildren<AccountProviderProps>): import("react/jsx-runtime.js").JSX.Element;
39
+ export declare function AccountProvider(props: React.PropsWithChildren<AccountProviderProps>): import("react/jsx-runtime").JSX.Element;
40
40
  /**
41
41
  * @internal
42
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/account/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,8CAYrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,yBAQhC"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/account/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,2CAYrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,yBAQhC"}
@@ -5,7 +5,7 @@ import { type Theme } from "./index.js";
5
5
  export declare function CustomThemeProvider(props: {
6
6
  children: React.ReactNode;
7
7
  theme: "light" | "dark" | Theme | undefined;
8
- }): import("react/jsx-runtime.js").JSX.Element;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
9
  export declare function parseTheme(theme: "light" | "dark" | Theme | undefined): Theme;
10
10
  /**
11
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"CustomThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/design-system/CustomThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAA+B,MAAM,YAAY,CAAC;AAIrE;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CAC7C,8CASA;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,CAc7E;AAUD;;;GAGG;AACH,wBAAgB,cAAc,UAE7B"}
1
+ {"version":3,"file":"CustomThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/design-system/CustomThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAA+B,MAAM,YAAY,CAAC;AAIrE;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CAC7C,2CASA;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,CAc7E;AAUD;;;GAGG;AACH,wBAAgB,cAAc,UAE7B"}
@@ -5,5 +5,5 @@ import type { ConnectionManager } from "../../../wallets/manager/index.js";
5
5
  export declare function ThirdwebProviderCore(props: {
6
6
  manager: ConnectionManager;
7
7
  children: React.ReactNode;
8
- }): import("react/jsx-runtime.js").JSX.Element;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
9
  //# sourceMappingURL=thirdweb-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thirdweb-provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/providers/thirdweb-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAM3E;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,8CAgEA"}
1
+ {"version":3,"file":"thirdweb-provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/providers/thirdweb-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAM3E;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAgEA"}
@@ -32,7 +32,7 @@ export declare const WalletProviderContext: React.Context<WalletProviderProps |
32
32
  * @component
33
33
  * @wallet
34
34
  */
35
- export declare function WalletProvider(props: React.PropsWithChildren<WalletProviderProps>): import("react/jsx-runtime.js").JSX.Element;
35
+ export declare function WalletProvider(props: React.PropsWithChildren<WalletProviderProps>): import("react/jsx-runtime").JSX.Element;
36
36
  /**
37
37
  * @internal
38
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/wallet/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,QAAQ,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,gDAEtB,CAAC;AAEb;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,8CAOpD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,wBAQ/B"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/wallet/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,QAAQ,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,gDAEtB,CAAC;AAEb;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,2CAOpD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,wBAQ/B"}
@@ -19,5 +19,5 @@ import { type ConnectionManager } from "../../../wallets/manager/index.js";
19
19
  */
20
20
  export declare function ThirdwebProvider(props: React.PropsWithChildren<{
21
21
  connectionManager?: ConnectionManager;
22
- }>): import("react/jsx-runtime.js").JSX.Element;
22
+ }>): import("react/jsx-runtime").JSX.Element;
23
23
  //# sourceMappingURL=thirdweb-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thirdweb-provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/native/providers/thirdweb-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAG3C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAC7B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC,8CAaH"}
1
+ {"version":3,"file":"thirdweb-provider.d.ts","sourceRoot":"","sources":["../../../../../src/react/native/providers/thirdweb-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAG3C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAC7B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC,2CAaH"}
@@ -31,5 +31,5 @@ import type { AutoConnectProps } from "../../../../wallets/connection/types.js";
31
31
  * @component
32
32
  * @walletConnection
33
33
  */
34
- export declare function AutoConnect(props: AutoConnectProps): import("react/jsx-runtime.js").JSX.Element;
34
+ export declare function AutoConnect(props: AutoConnectProps): import("react/jsx-runtime").JSX.Element;
35
35
  //# sourceMappingURL=AutoConnect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoConnect.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/AutoConnect/AutoConnect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAGhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,8CAGlD"}
1
+ {"version":3,"file":"AutoConnect.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/AutoConnect/AutoConnect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAGhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAGlD"}
@@ -5,6 +5,6 @@ type AddressProps = {
5
5
  theme: Theme;
6
6
  addressOrENS: string;
7
7
  };
8
- export declare const Address: ({ account, theme, addressOrENS }: AddressProps) => import("react/jsx-runtime.js").JSX.Element;
8
+ export declare const Address: ({ account, theme, addressOrENS }: AddressProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
10
10
  //# sourceMappingURL=Address.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/Address.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAMlE,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,kCAAkC,YAAY,+CA0BrE,CAAC"}
1
+ {"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/Address.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAMlE,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,kCAAkC,YAAY,4CA0BrE,CAAC"}
@@ -7,6 +7,6 @@ type ChainIconProps = {
7
7
  client: ThirdwebClient;
8
8
  chain?: Chain;
9
9
  };
10
- export declare const ChainIcon: (props: ChainIconProps) => import("react/jsx-runtime.js").JSX.Element;
10
+ export declare const ChainIcon: (props: ChainIconProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
12
12
  //# sourceMappingURL=ChainIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/ChainIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAKlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,+CAwB9C,CAAC"}
1
+ {"version":3,"file":"ChainIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/ChainIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAKlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,4CAwB9C,CAAC"}
@@ -6,5 +6,5 @@ export declare function Header({ theme, title, onClose, onBack, containerType, }
6
6
  onClose?: () => void;
7
7
  onBack?: () => void;
8
8
  containerType: ContainerType;
9
- }): import("react/jsx-runtime.js").JSX.Element | null;
9
+ }): import("react/jsx-runtime").JSX.Element | null;
10
10
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAMlE,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9C,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,aAAa,GACd,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;CAC9B,qDAoDA"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAMlE,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9C,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,aAAa,GACd,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;CAC9B,kDAoDA"}
@@ -6,6 +6,6 @@ type ImageInfo = {
6
6
  placeholder?: string;
7
7
  color?: string;
8
8
  };
9
- export declare const RNImage: (props: ImageInfo) => import("react/jsx-runtime.js").JSX.Element | null;
9
+ export declare const RNImage: (props: ImageInfo) => import("react/jsx-runtime").JSX.Element | null;
10
10
  export {};
11
11
  //# sourceMappingURL=RNImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNImage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/RNImage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAGlE,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAqBF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,sDAkCvC,CAAC"}
1
+ {"version":3,"file":"RNImage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/RNImage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAGlE,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAqBF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,mDAkCvC,CAAC"}
@@ -11,5 +11,5 @@ export declare function TokenIcon(props: {
11
11
  token?: TokenInfo;
12
12
  chain?: Chain;
13
13
  client: ThirdwebClient;
14
- }): import("react/jsx-runtime.js").JSX.Element;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
15
  //# sourceMappingURL=TokenIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/TokenIcon.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,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAKtE;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,cAAc,CAAC;CACxB,8CAUA"}
1
+ {"version":3,"file":"TokenIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/TokenIcon.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,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAKtE;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,cAAc,CAAC;CACxB,2CAUA"}
@@ -7,6 +7,6 @@ export declare const WalletImage: (props: {
7
7
  client: ThirdwebClient;
8
8
  size: number;
9
9
  avatar?: string | null;
10
- }) => import("react/jsx-runtime.js").JSX.Element;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
11
  export declare function getAuthProviderImage(authProvider: string | null): string;
12
12
  //# sourceMappingURL=WalletImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WalletImage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/WalletImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAEvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAsBlE,eAAO,MAAM,WAAW,GAAI,OAAO;IACjC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,+CAgDA,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAmCxE"}
1
+ {"version":3,"file":"WalletImage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/WalletImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAEvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAsBlE,eAAO,MAAM,WAAW,GAAI,OAAO;IACjC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,4CAgDA,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAmCxE"}
@@ -4,10 +4,10 @@ type ThemedButtonProps = TouchableOpacityProps & {
4
4
  theme: Theme;
5
5
  variant?: "primary" | "secondary" | "accent";
6
6
  };
7
- export declare function ThemedButton(props: ThemedButtonProps): import("react/jsx-runtime.js").JSX.Element;
7
+ export declare function ThemedButton(props: ThemedButtonProps): import("react/jsx-runtime").JSX.Element;
8
8
  export declare function ThemedButtonWithIcon(props: ThemedButtonProps & {
9
9
  title: string;
10
10
  icon: string;
11
- }): import("react/jsx-runtime.js").JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
12
  export {};
13
13
  //# sourceMappingURL=button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAKlE,KAAK,iBAAiB,GAAG,qBAAqB,GAAG;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC9C,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,8CA0BpD;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,8CAwBF"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAKlE,KAAK,iBAAiB,GAAG,qBAAqB,GAAG;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC9C,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA0BpD;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,2CAwBF"}
@@ -5,10 +5,10 @@ type ThemedInputProps = {
5
5
  leftView?: React.ReactNode;
6
6
  rightView?: React.ReactNode;
7
7
  } & TextInputProps;
8
- export declare function ThemedInput(props: ThemedInputProps): import("react/jsx-runtime.js").JSX.Element;
8
+ export declare function ThemedInput(props: ThemedInputProps): import("react/jsx-runtime").JSX.Element;
9
9
  export declare function ThemedInputWithSubmit(props: ThemedInputProps & {
10
10
  onSubmit?: (value: string) => void;
11
11
  isSubmitting?: boolean;
12
- }): import("react/jsx-runtime.js").JSX.Element;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
13
  export {};
14
14
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/input.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAKlE,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,GAAG,cAAc,CAAC;AAEnB,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,8CAkClD;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,gBAAgB,GAAG;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,8CAoDF"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/ui/components/input.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAKlE,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,GAAG,cAAc,CAAC;AAEnB,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAkClD;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,gBAAgB,GAAG;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,2CAoDF"}