thirdweb 5.44.2-nightly-7c2f616dfe6880beefa4eb48f8dcbce6bba9461a-20240808000401 → 5.45.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 (1208) hide show
  1. package/dist/cjs/adapters/ethers5.js +3 -2
  2. package/dist/cjs/adapters/ethers5.js.map +1 -1
  3. package/dist/cjs/adapters/wallet-adapter.js +3 -0
  4. package/dist/cjs/adapters/wallet-adapter.js.map +1 -1
  5. package/dist/cjs/auth/constants.js +1 -26
  6. package/dist/cjs/auth/constants.js.map +1 -1
  7. package/dist/cjs/auth/verify-hash.js +2 -3
  8. package/dist/cjs/auth/verify-hash.js.map +1 -1
  9. package/dist/cjs/chains/chain-definitions/fraxtal-testnet.js +20 -0
  10. package/dist/cjs/chains/chain-definitions/fraxtal-testnet.js.map +1 -0
  11. package/dist/cjs/chains/chain-definitions/mode-testnet.js +20 -0
  12. package/dist/cjs/chains/chain-definitions/mode-testnet.js.map +1 -0
  13. package/dist/cjs/chains/utils.js +7 -0
  14. package/dist/cjs/chains/utils.js.map +1 -1
  15. package/dist/cjs/exports/extensions/split.js +36 -0
  16. package/dist/cjs/exports/extensions/split.js.map +1 -0
  17. package/dist/cjs/exports/extensions/vote.js +70 -0
  18. package/dist/cjs/exports/extensions/vote.js.map +1 -0
  19. package/dist/cjs/exports/react.js +4 -2
  20. package/dist/cjs/exports/react.js.map +1 -1
  21. package/dist/cjs/exports/wallets/in-app.js +2 -2
  22. package/dist/cjs/exports/wallets/in-app.js.map +1 -1
  23. package/dist/cjs/exports/wallets.js +4 -1
  24. package/dist/cjs/exports/wallets.js.map +1 -1
  25. package/dist/cjs/extensions/modular/__generated__/BatchMetadataERC1155/write/uploadMetadata.js +1 -0
  26. package/dist/cjs/extensions/modular/__generated__/BatchMetadataERC1155/write/uploadMetadata.js.map +1 -1
  27. package/dist/cjs/extensions/modular/__generated__/BatchMetadataERC721/write/uploadMetadata.js +1 -0
  28. package/dist/cjs/extensions/modular/__generated__/BatchMetadataERC721/write/uploadMetadata.js.map +1 -1
  29. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/beforeMintERC1155.js +1 -0
  30. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/beforeMintERC1155.js.map +1 -1
  31. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/onInstall.js +1 -0
  32. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/onInstall.js.map +1 -1
  33. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/onUninstall.js +1 -0
  34. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/onUninstall.js.map +1 -1
  35. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.js +1 -0
  36. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.js.map +1 -1
  37. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/setSaleConfig.js +1 -0
  38. package/dist/cjs/extensions/modular/__generated__/ClaimableERC1155/write/setSaleConfig.js.map +1 -1
  39. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/beforeMintERC20.js +1 -0
  40. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/beforeMintERC20.js.map +1 -1
  41. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/onInstall.js +1 -0
  42. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/onInstall.js.map +1 -1
  43. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/onUninstall.js +1 -0
  44. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/onUninstall.js.map +1 -1
  45. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/setClaimCondition.js +1 -0
  46. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/setClaimCondition.js.map +1 -1
  47. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/setSaleConfig.js +1 -0
  48. package/dist/cjs/extensions/modular/__generated__/ClaimableERC20/write/setSaleConfig.js.map +1 -1
  49. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/beforeMintERC721.js +1 -0
  50. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/beforeMintERC721.js.map +1 -1
  51. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/onInstall.js +1 -0
  52. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/onInstall.js.map +1 -1
  53. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/onUninstall.js +1 -0
  54. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/onUninstall.js.map +1 -1
  55. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/setClaimCondition.js +1 -0
  56. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/setClaimCondition.js.map +1 -1
  57. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/setSaleConfig.js +1 -0
  58. package/dist/cjs/extensions/modular/__generated__/ClaimableERC721/write/setSaleConfig.js.map +1 -1
  59. package/dist/cjs/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/reveal.js +1 -0
  60. package/dist/cjs/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/reveal.js.map +1 -1
  61. package/dist/cjs/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/uploadMetadata.js +1 -0
  62. package/dist/cjs/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/uploadMetadata.js.map +1 -1
  63. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/beforeMintERC1155.js +1 -0
  64. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/beforeMintERC1155.js.map +1 -1
  65. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/onInstall.js +1 -0
  66. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/onInstall.js.map +1 -1
  67. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/onUninstall.js +1 -0
  68. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/onUninstall.js.map +1 -1
  69. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/setSaleConfig.js +1 -0
  70. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/setSaleConfig.js.map +1 -1
  71. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/setTokenURI.js +1 -0
  72. package/dist/cjs/extensions/modular/__generated__/MintableERC1155/write/setTokenURI.js.map +1 -1
  73. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/beforeMintERC20.js +1 -0
  74. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/beforeMintERC20.js.map +1 -1
  75. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/completeOwnershipHandover.js +1 -0
  76. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/completeOwnershipHandover.js.map +1 -1
  77. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/grantRoles.js +1 -0
  78. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/grantRoles.js.map +1 -1
  79. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/onInstall.js +1 -0
  80. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/onInstall.js.map +1 -1
  81. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/onUninstall.js +1 -0
  82. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/onUninstall.js.map +1 -1
  83. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/renounceRoles.js +1 -0
  84. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/renounceRoles.js.map +1 -1
  85. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/revokeRoles.js +1 -0
  86. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/revokeRoles.js.map +1 -1
  87. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/setSaleConfig.js +1 -0
  88. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/setSaleConfig.js.map +1 -1
  89. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/transferOwnership.js +1 -0
  90. package/dist/cjs/extensions/modular/__generated__/MintableERC20/write/transferOwnership.js.map +1 -1
  91. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/beforeMintERC721.js +1 -0
  92. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/beforeMintERC721.js.map +1 -1
  93. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/onInstall.js +1 -0
  94. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/onInstall.js.map +1 -1
  95. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/onUninstall.js +1 -0
  96. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/onUninstall.js.map +1 -1
  97. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/setSaleConfig.js +1 -0
  98. package/dist/cjs/extensions/modular/__generated__/MintableERC721/write/setSaleConfig.js.map +1 -1
  99. package/dist/cjs/extensions/modular/__generated__/OpenEditionMetadataERC1155/write/setSharedMetadata.js +1 -0
  100. package/dist/cjs/extensions/modular/__generated__/OpenEditionMetadataERC1155/write/setSharedMetadata.js.map +1 -1
  101. package/dist/cjs/extensions/modular/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.js +1 -0
  102. package/dist/cjs/extensions/modular/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.js.map +1 -1
  103. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/onInstall.js +1 -0
  104. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/onInstall.js.map +1 -1
  105. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/onUninstall.js +1 -0
  106. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/onUninstall.js.map +1 -1
  107. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.js +1 -0
  108. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.js.map +1 -1
  109. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.js +1 -0
  110. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.js.map +1 -1
  111. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/onInstall.js +1 -0
  112. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/onInstall.js.map +1 -1
  113. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/onUninstall.js +1 -0
  114. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/onUninstall.js.map +1 -1
  115. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.js +1 -0
  116. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.js.map +1 -1
  117. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.js +1 -0
  118. package/dist/cjs/extensions/modular/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.js.map +1 -1
  119. package/dist/cjs/extensions/modular/__generated__/SimpleMetadataERC1155/write/setTokenURI.js +1 -0
  120. package/dist/cjs/extensions/modular/__generated__/SimpleMetadataERC1155/write/setTokenURI.js.map +1 -1
  121. package/dist/cjs/extensions/modular/__generated__/SimpleMetadataERC721/write/setTokenURI.js +1 -0
  122. package/dist/cjs/extensions/modular/__generated__/SimpleMetadataERC721/write/setTokenURI.js.map +1 -1
  123. package/dist/cjs/extensions/split/__generated__/Split/read/payee.js +115 -0
  124. package/dist/cjs/extensions/split/__generated__/Split/read/payee.js.map +1 -0
  125. package/dist/cjs/extensions/split/__generated__/Split/read/payeeCount.js +71 -0
  126. package/dist/cjs/extensions/split/__generated__/Split/read/payeeCount.js.map +1 -0
  127. package/dist/cjs/extensions/split/__generated__/Split/read/releasable.js +115 -0
  128. package/dist/cjs/extensions/split/__generated__/Split/read/releasable.js.map +1 -0
  129. package/dist/cjs/extensions/split/__generated__/Split/read/released.js +115 -0
  130. package/dist/cjs/extensions/split/__generated__/Split/read/released.js.map +1 -0
  131. package/dist/cjs/extensions/split/__generated__/Split/read/shares.js +115 -0
  132. package/dist/cjs/extensions/split/__generated__/Split/read/shares.js.map +1 -0
  133. package/dist/cjs/extensions/split/__generated__/Split/read/totalReleased.js +71 -0
  134. package/dist/cjs/extensions/split/__generated__/Split/read/totalReleased.js.map +1 -0
  135. package/dist/cjs/extensions/split/__generated__/Split/write/distribute.js +51 -0
  136. package/dist/cjs/extensions/split/__generated__/Split/write/distribute.js.map +1 -0
  137. package/dist/cjs/extensions/split/__generated__/Split/write/release.js +117 -0
  138. package/dist/cjs/extensions/split/__generated__/Split/write/release.js.map +1 -0
  139. package/dist/cjs/extensions/split/read/releasableByToken.js +28 -0
  140. package/dist/cjs/extensions/split/read/releasableByToken.js.map +1 -0
  141. package/dist/cjs/extensions/split/read/releasedByToken.js +31 -0
  142. package/dist/cjs/extensions/split/read/releasedByToken.js.map +1 -0
  143. package/dist/cjs/extensions/split/read/totalReleasedByToken.js +30 -0
  144. package/dist/cjs/extensions/split/read/totalReleasedByToken.js.map +1 -0
  145. package/dist/cjs/extensions/split/write/distributeByToken.js +29 -0
  146. package/dist/cjs/extensions/split/write/distributeByToken.js.map +1 -0
  147. package/dist/cjs/extensions/split/write/releaseByToken.js +34 -0
  148. package/dist/cjs/extensions/split/write/releaseByToken.js.map +1 -0
  149. package/dist/cjs/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.js +71 -0
  150. package/dist/cjs/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.js.map +1 -0
  151. package/dist/cjs/extensions/vote/__generated__/Vote/read/COUNTING_MODE.js +71 -0
  152. package/dist/cjs/extensions/vote/__generated__/Vote/read/COUNTING_MODE.js.map +1 -0
  153. package/dist/cjs/extensions/vote/__generated__/Vote/read/getAllProposals.js +110 -0
  154. package/dist/cjs/extensions/vote/__generated__/Vote/read/getAllProposals.js.map +1 -0
  155. package/dist/cjs/extensions/vote/__generated__/Vote/read/getVotes.js +122 -0
  156. package/dist/cjs/extensions/vote/__generated__/Vote/read/getVotes.js.map +1 -0
  157. package/dist/cjs/extensions/vote/__generated__/Vote/read/getVotesWithParams.js +133 -0
  158. package/dist/cjs/extensions/vote/__generated__/Vote/read/getVotesWithParams.js.map +1 -0
  159. package/dist/cjs/extensions/vote/__generated__/Vote/read/hasVoted.js +122 -0
  160. package/dist/cjs/extensions/vote/__generated__/Vote/read/hasVoted.js.map +1 -0
  161. package/dist/cjs/extensions/vote/__generated__/Vote/read/hashProposal.js +146 -0
  162. package/dist/cjs/extensions/vote/__generated__/Vote/read/hashProposal.js.map +1 -0
  163. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalDeadline.js +115 -0
  164. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalDeadline.js.map +1 -0
  165. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalIndex.js +71 -0
  166. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalIndex.js.map +1 -0
  167. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalSnapshot.js +115 -0
  168. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalSnapshot.js.map +1 -0
  169. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalThreshold.js +71 -0
  170. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalThreshold.js.map +1 -0
  171. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalVotes.js +124 -0
  172. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposalVotes.js.map +1 -0
  173. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposals.js +132 -0
  174. package/dist/cjs/extensions/vote/__generated__/Vote/read/proposals.js.map +1 -0
  175. package/dist/cjs/extensions/vote/__generated__/Vote/read/quorum.js +115 -0
  176. package/dist/cjs/extensions/vote/__generated__/Vote/read/quorum.js.map +1 -0
  177. package/dist/cjs/extensions/vote/__generated__/Vote/read/quorumDenominator.js +71 -0
  178. package/dist/cjs/extensions/vote/__generated__/Vote/read/quorumDenominator.js.map +1 -0
  179. package/dist/cjs/extensions/vote/__generated__/Vote/read/state.js +115 -0
  180. package/dist/cjs/extensions/vote/__generated__/Vote/read/state.js.map +1 -0
  181. package/dist/cjs/extensions/vote/__generated__/Vote/read/token.js +71 -0
  182. package/dist/cjs/extensions/vote/__generated__/Vote/read/token.js.map +1 -0
  183. package/dist/cjs/extensions/vote/__generated__/Vote/read/votingDelay.js +71 -0
  184. package/dist/cjs/extensions/vote/__generated__/Vote/read/votingDelay.js.map +1 -0
  185. package/dist/cjs/extensions/vote/__generated__/Vote/read/votingPeriod.js +71 -0
  186. package/dist/cjs/extensions/vote/__generated__/Vote/read/votingPeriod.js.map +1 -0
  187. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVote.js +128 -0
  188. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVote.js.map +1 -0
  189. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteBySig.js +161 -0
  190. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteBySig.js.map +1 -0
  191. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteWithReason.js +143 -0
  192. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteWithReason.js.map +1 -0
  193. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.js +152 -0
  194. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.js.map +1 -0
  195. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.js +179 -0
  196. package/dist/cjs/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.js.map +1 -0
  197. package/dist/cjs/extensions/vote/__generated__/Vote/write/execute.js +152 -0
  198. package/dist/cjs/extensions/vote/__generated__/Vote/write/execute.js.map +1 -0
  199. package/dist/cjs/extensions/vote/__generated__/Vote/write/propose.js +153 -0
  200. package/dist/cjs/extensions/vote/__generated__/Vote/write/propose.js.map +1 -0
  201. package/dist/cjs/extensions/vote/__generated__/Vote/write/relay.js +139 -0
  202. package/dist/cjs/extensions/vote/__generated__/Vote/write/relay.js.map +1 -0
  203. package/dist/cjs/extensions/vote/__generated__/Vote/write/setProposalThreshold.js +117 -0
  204. package/dist/cjs/extensions/vote/__generated__/Vote/write/setProposalThreshold.js.map +1 -0
  205. package/dist/cjs/extensions/vote/__generated__/Vote/write/setVotingDelay.js +117 -0
  206. package/dist/cjs/extensions/vote/__generated__/Vote/write/setVotingDelay.js.map +1 -0
  207. package/dist/cjs/extensions/vote/__generated__/Vote/write/setVotingPeriod.js +117 -0
  208. package/dist/cjs/extensions/vote/__generated__/Vote/write/setVotingPeriod.js.map +1 -0
  209. package/dist/cjs/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.js +117 -0
  210. package/dist/cjs/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.js.map +1 -0
  211. package/dist/cjs/extensions/vote/read/quorumNumeratorByBlockNumber.js +29 -0
  212. package/dist/cjs/extensions/vote/read/quorumNumeratorByBlockNumber.js.map +1 -0
  213. package/dist/cjs/gas/fee-data.js +4 -0
  214. package/dist/cjs/gas/fee-data.js.map +1 -1
  215. package/dist/cjs/react/core/hooks/others/useProfiles.js +36 -0
  216. package/dist/cjs/react/core/hooks/others/useProfiles.js.map +1 -0
  217. package/dist/cjs/react/core/hooks/others/useWalletBalance.js +4 -1
  218. package/dist/cjs/react/core/hooks/others/useWalletBalance.js.map +1 -1
  219. package/dist/cjs/react/core/utils/{socialIcons.js → walletIcon.js} +26 -1
  220. package/dist/cjs/react/core/utils/walletIcon.js.map +1 -0
  221. package/dist/cjs/react/native/ui/components/TokenIcon.js +2 -2
  222. package/dist/cjs/react/native/ui/components/TokenIcon.js.map +1 -1
  223. package/dist/cjs/react/native/ui/connect/ConnectButton.js +13 -8
  224. package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -1
  225. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +13 -8
  226. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  227. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +22 -5
  228. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  229. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +2 -2
  230. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  231. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +13 -8
  232. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  233. package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js +1 -1
  234. package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
  235. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +2 -2
  236. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  237. package/dist/cjs/react/web/ui/ConnectWallet/icons/AddUserIcon.js +12 -0
  238. package/dist/cjs/react/web/ui/ConnectWallet/icons/AddUserIcon.js.map +1 -0
  239. package/dist/cjs/react/web/ui/ConnectWallet/icons/MultiUserIcon.js +12 -0
  240. package/dist/cjs/react/web/ui/ConnectWallet/icons/MultiUserIcon.js.map +1 -0
  241. package/dist/cjs/react/web/ui/ConnectWallet/locale/de.js +6 -0
  242. package/dist/cjs/react/web/ui/ConnectWallet/locale/de.js.map +1 -1
  243. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js +6 -0
  244. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  245. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js +6 -0
  246. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  247. package/dist/cjs/react/web/ui/ConnectWallet/locale/fr.js +6 -0
  248. package/dist/cjs/react/web/ui/ConnectWallet/locale/fr.js.map +1 -1
  249. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js +6 -0
  250. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  251. package/dist/cjs/react/web/ui/ConnectWallet/locale/kr.js +6 -0
  252. package/dist/cjs/react/web/ui/ConnectWallet/locale/kr.js.map +1 -1
  253. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js +6 -0
  254. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  255. package/dist/cjs/react/web/ui/ConnectWallet/locale/vi.js +6 -0
  256. package/dist/cjs/react/web/ui/ConnectWallet/locale/vi.js.map +1 -1
  257. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +3 -1
  258. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  259. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +42 -0
  260. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -0
  261. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +58 -0
  262. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -0
  263. package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +8 -5
  264. package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
  265. package/dist/cjs/react/web/ui/PayEmbed.js +13 -8
  266. package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
  267. package/dist/cjs/react/web/ui/components/Spinner.js +1 -1
  268. package/dist/cjs/react/web/ui/components/Spinner.js.map +1 -1
  269. package/dist/cjs/react/web/ui/components/TokenIcon.js +2 -2
  270. package/dist/cjs/react/web/ui/components/TokenIcon.js.map +1 -1
  271. package/dist/cjs/react/web/ui/components/WalletImage.js +6 -32
  272. package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
  273. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +8 -4
  274. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  275. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +1 -1
  276. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
  277. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
  278. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  279. package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js +5 -5
  280. package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
  281. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +22 -16
  282. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  283. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +36 -49
  284. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  285. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +47 -20
  286. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  287. package/dist/cjs/react/web/wallets/shared/SocialLogin.js +33 -13
  288. package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
  289. package/dist/cjs/react/web/wallets/shared/locale/en.js +1 -1
  290. package/dist/cjs/react/web/wallets/shared/oauthSignIn.js +1 -1
  291. package/dist/cjs/react/web/wallets/shared/oauthSignIn.js.map +1 -1
  292. package/dist/cjs/reactive/store.js +3 -0
  293. package/dist/cjs/reactive/store.js.map +1 -1
  294. package/dist/cjs/transaction/serialize-transaction.js +20 -142
  295. package/dist/cjs/transaction/serialize-transaction.js.map +1 -1
  296. package/dist/cjs/version.js +1 -1
  297. package/dist/cjs/version.js.map +1 -1
  298. package/dist/cjs/wallets/coinbase/coinbase-wallet.js +8 -1
  299. package/dist/cjs/wallets/coinbase/coinbase-wallet.js.map +1 -1
  300. package/dist/cjs/wallets/create-wallet.js +8 -1
  301. package/dist/cjs/wallets/create-wallet.js.map +1 -1
  302. package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js +14 -3
  303. package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
  304. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js +67 -0
  305. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js.map +1 -0
  306. package/dist/cjs/wallets/in-app/core/authentication/siwe.js +49 -0
  307. package/dist/cjs/wallets/in-app/core/authentication/siwe.js.map +1 -0
  308. package/dist/cjs/wallets/in-app/core/authentication/{type.js → types.js} +1 -1
  309. package/dist/cjs/wallets/in-app/core/authentication/types.js.map +1 -0
  310. package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js +8 -1
  311. package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
  312. package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js +47 -1
  313. package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
  314. package/dist/cjs/wallets/in-app/core/wallet/index.js +3 -3
  315. package/dist/cjs/wallets/in-app/core/wallet/index.js.map +1 -1
  316. package/dist/cjs/wallets/in-app/core/wallet/profiles.js +60 -0
  317. package/dist/cjs/wallets/in-app/core/wallet/profiles.js.map +1 -0
  318. package/dist/cjs/wallets/in-app/native/auth/index.js +3 -3
  319. package/dist/cjs/wallets/in-app/native/auth/index.js.map +1 -1
  320. package/dist/cjs/wallets/in-app/native/auth/native-auth.js +47 -112
  321. package/dist/cjs/wallets/in-app/native/auth/native-auth.js.map +1 -1
  322. package/dist/cjs/wallets/in-app/native/helpers/auth/middleware.js +5 -5
  323. package/dist/cjs/wallets/in-app/native/helpers/auth/middleware.js.map +1 -1
  324. package/dist/cjs/wallets/in-app/native/native-connector.js +76 -36
  325. package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
  326. package/dist/cjs/wallets/in-app/web/lib/auth/abstract-login.js +0 -2
  327. package/dist/cjs/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
  328. package/dist/cjs/wallets/in-app/web/lib/auth/base-login.js +49 -148
  329. package/dist/cjs/wallets/in-app/web/lib/auth/base-login.js.map +1 -1
  330. package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js +26 -12
  331. package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
  332. package/dist/cjs/wallets/in-app/web/lib/auth/index.js +3 -3
  333. package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
  334. package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js +2 -2
  335. package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
  336. package/dist/cjs/wallets/in-app/web/lib/auth/otp.js +89 -0
  337. package/dist/cjs/wallets/in-app/web/lib/auth/otp.js.map +1 -0
  338. package/dist/cjs/wallets/in-app/web/lib/get-url-token.js +3 -2
  339. package/dist/cjs/wallets/in-app/web/lib/get-url-token.js.map +1 -1
  340. package/dist/cjs/wallets/in-app/web/lib/in-app-account.js +7 -7
  341. package/dist/cjs/wallets/in-app/web/lib/in-app-account.js.map +1 -1
  342. package/dist/cjs/wallets/in-app/web/lib/web-connector.js +89 -30
  343. package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
  344. package/dist/cjs/wallets/manager/index.js +41 -5
  345. package/dist/cjs/wallets/manager/index.js.map +1 -1
  346. package/dist/cjs/wallets/native/create-wallet.js +8 -1
  347. package/dist/cjs/wallets/native/create-wallet.js.map +1 -1
  348. package/dist/cjs/wallets/smart/smart-wallet.js +8 -1
  349. package/dist/cjs/wallets/smart/smart-wallet.js.map +1 -1
  350. package/dist/esm/adapters/ethers5.js +3 -2
  351. package/dist/esm/adapters/ethers5.js.map +1 -1
  352. package/dist/esm/adapters/wallet-adapter.js +3 -0
  353. package/dist/esm/adapters/wallet-adapter.js.map +1 -1
  354. package/dist/esm/auth/constants.js +0 -25
  355. package/dist/esm/auth/constants.js.map +1 -1
  356. package/dist/esm/auth/verify-hash.js +1 -2
  357. package/dist/esm/auth/verify-hash.js.map +1 -1
  358. package/dist/esm/chains/chain-definitions/fraxtal-testnet.js +17 -0
  359. package/dist/esm/chains/chain-definitions/fraxtal-testnet.js.map +1 -0
  360. package/dist/esm/chains/chain-definitions/mode-testnet.js +17 -0
  361. package/dist/esm/chains/chain-definitions/mode-testnet.js.map +1 -0
  362. package/dist/esm/chains/utils.js +6 -0
  363. package/dist/esm/chains/utils.js.map +1 -1
  364. package/dist/esm/exports/extensions/split.js +20 -0
  365. package/dist/esm/exports/extensions/split.js.map +1 -0
  366. package/dist/esm/exports/extensions/vote.js +37 -0
  367. package/dist/esm/exports/extensions/vote.js.map +1 -0
  368. package/dist/esm/exports/react.js +1 -0
  369. package/dist/esm/exports/react.js.map +1 -1
  370. package/dist/esm/exports/wallets/embedded.js +1 -1
  371. package/dist/esm/exports/wallets/embedded.js.map +1 -1
  372. package/dist/esm/exports/wallets/in-app.js +2 -2
  373. package/dist/esm/exports/wallets/in-app.js.map +1 -1
  374. package/dist/esm/exports/wallets/in-app.native.js +1 -1
  375. package/dist/esm/exports/wallets/in-app.native.js.map +1 -1
  376. package/dist/esm/exports/wallets.js +1 -0
  377. package/dist/esm/exports/wallets.js.map +1 -1
  378. package/dist/esm/extensions/modular/__generated__/BatchMetadataERC1155/write/uploadMetadata.js +1 -0
  379. package/dist/esm/extensions/modular/__generated__/BatchMetadataERC1155/write/uploadMetadata.js.map +1 -1
  380. package/dist/esm/extensions/modular/__generated__/BatchMetadataERC721/write/uploadMetadata.js +1 -0
  381. package/dist/esm/extensions/modular/__generated__/BatchMetadataERC721/write/uploadMetadata.js.map +1 -1
  382. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/beforeMintERC1155.js +1 -0
  383. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/beforeMintERC1155.js.map +1 -1
  384. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/onInstall.js +1 -0
  385. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/onInstall.js.map +1 -1
  386. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/onUninstall.js +1 -0
  387. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/onUninstall.js.map +1 -1
  388. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.js +1 -0
  389. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.js.map +1 -1
  390. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/setSaleConfig.js +1 -0
  391. package/dist/esm/extensions/modular/__generated__/ClaimableERC1155/write/setSaleConfig.js.map +1 -1
  392. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/beforeMintERC20.js +1 -0
  393. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/beforeMintERC20.js.map +1 -1
  394. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/onInstall.js +1 -0
  395. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/onInstall.js.map +1 -1
  396. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/onUninstall.js +1 -0
  397. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/onUninstall.js.map +1 -1
  398. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/setClaimCondition.js +1 -0
  399. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/setClaimCondition.js.map +1 -1
  400. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/setSaleConfig.js +1 -0
  401. package/dist/esm/extensions/modular/__generated__/ClaimableERC20/write/setSaleConfig.js.map +1 -1
  402. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/beforeMintERC721.js +1 -0
  403. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/beforeMintERC721.js.map +1 -1
  404. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/onInstall.js +1 -0
  405. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/onInstall.js.map +1 -1
  406. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/onUninstall.js +1 -0
  407. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/onUninstall.js.map +1 -1
  408. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/setClaimCondition.js +1 -0
  409. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/setClaimCondition.js.map +1 -1
  410. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/setSaleConfig.js +1 -0
  411. package/dist/esm/extensions/modular/__generated__/ClaimableERC721/write/setSaleConfig.js.map +1 -1
  412. package/dist/esm/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/reveal.js +1 -0
  413. package/dist/esm/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/reveal.js.map +1 -1
  414. package/dist/esm/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/uploadMetadata.js +1 -0
  415. package/dist/esm/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/uploadMetadata.js.map +1 -1
  416. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/beforeMintERC1155.js +1 -0
  417. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/beforeMintERC1155.js.map +1 -1
  418. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/onInstall.js +1 -0
  419. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/onInstall.js.map +1 -1
  420. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/onUninstall.js +1 -0
  421. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/onUninstall.js.map +1 -1
  422. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/setSaleConfig.js +1 -0
  423. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/setSaleConfig.js.map +1 -1
  424. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/setTokenURI.js +1 -0
  425. package/dist/esm/extensions/modular/__generated__/MintableERC1155/write/setTokenURI.js.map +1 -1
  426. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/beforeMintERC20.js +1 -0
  427. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/beforeMintERC20.js.map +1 -1
  428. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/completeOwnershipHandover.js +1 -0
  429. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/completeOwnershipHandover.js.map +1 -1
  430. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/grantRoles.js +1 -0
  431. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/grantRoles.js.map +1 -1
  432. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/onInstall.js +1 -0
  433. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/onInstall.js.map +1 -1
  434. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/onUninstall.js +1 -0
  435. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/onUninstall.js.map +1 -1
  436. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/renounceRoles.js +1 -0
  437. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/renounceRoles.js.map +1 -1
  438. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/revokeRoles.js +1 -0
  439. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/revokeRoles.js.map +1 -1
  440. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/setSaleConfig.js +1 -0
  441. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/setSaleConfig.js.map +1 -1
  442. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/transferOwnership.js +1 -0
  443. package/dist/esm/extensions/modular/__generated__/MintableERC20/write/transferOwnership.js.map +1 -1
  444. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/beforeMintERC721.js +1 -0
  445. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/beforeMintERC721.js.map +1 -1
  446. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/onInstall.js +1 -0
  447. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/onInstall.js.map +1 -1
  448. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/onUninstall.js +1 -0
  449. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/onUninstall.js.map +1 -1
  450. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/setSaleConfig.js +1 -0
  451. package/dist/esm/extensions/modular/__generated__/MintableERC721/write/setSaleConfig.js.map +1 -1
  452. package/dist/esm/extensions/modular/__generated__/OpenEditionMetadataERC1155/write/setSharedMetadata.js +1 -0
  453. package/dist/esm/extensions/modular/__generated__/OpenEditionMetadataERC1155/write/setSharedMetadata.js.map +1 -1
  454. package/dist/esm/extensions/modular/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.js +1 -0
  455. package/dist/esm/extensions/modular/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.js.map +1 -1
  456. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/onInstall.js +1 -0
  457. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/onInstall.js.map +1 -1
  458. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/onUninstall.js +1 -0
  459. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/onUninstall.js.map +1 -1
  460. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.js +1 -0
  461. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.js.map +1 -1
  462. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.js +1 -0
  463. package/dist/esm/extensions/modular/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.js.map +1 -1
  464. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/onInstall.js +1 -0
  465. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/onInstall.js.map +1 -1
  466. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/onUninstall.js +1 -0
  467. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/onUninstall.js.map +1 -1
  468. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.js +1 -0
  469. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.js.map +1 -1
  470. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.js +1 -0
  471. package/dist/esm/extensions/modular/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.js.map +1 -1
  472. package/dist/esm/extensions/modular/__generated__/SimpleMetadataERC1155/write/setTokenURI.js +1 -0
  473. package/dist/esm/extensions/modular/__generated__/SimpleMetadataERC1155/write/setTokenURI.js.map +1 -1
  474. package/dist/esm/extensions/modular/__generated__/SimpleMetadataERC721/write/setTokenURI.js +1 -0
  475. package/dist/esm/extensions/modular/__generated__/SimpleMetadataERC721/write/setTokenURI.js.map +1 -1
  476. package/dist/esm/extensions/split/__generated__/Split/read/payee.js +107 -0
  477. package/dist/esm/extensions/split/__generated__/Split/read/payee.js.map +1 -0
  478. package/dist/esm/extensions/split/__generated__/Split/read/payeeCount.js +65 -0
  479. package/dist/esm/extensions/split/__generated__/Split/read/payeeCount.js.map +1 -0
  480. package/dist/esm/extensions/split/__generated__/Split/read/releasable.js +107 -0
  481. package/dist/esm/extensions/split/__generated__/Split/read/releasable.js.map +1 -0
  482. package/dist/esm/extensions/split/__generated__/Split/read/released.js +107 -0
  483. package/dist/esm/extensions/split/__generated__/Split/read/released.js.map +1 -0
  484. package/dist/esm/extensions/split/__generated__/Split/read/shares.js +107 -0
  485. package/dist/esm/extensions/split/__generated__/Split/read/shares.js.map +1 -0
  486. package/dist/esm/extensions/split/__generated__/Split/read/totalReleased.js +65 -0
  487. package/dist/esm/extensions/split/__generated__/Split/read/totalReleased.js.map +1 -0
  488. package/dist/esm/extensions/split/__generated__/Split/write/distribute.js +46 -0
  489. package/dist/esm/extensions/split/__generated__/Split/write/distribute.js.map +1 -0
  490. package/dist/esm/extensions/split/__generated__/Split/write/release.js +110 -0
  491. package/dist/esm/extensions/split/__generated__/Split/write/release.js.map +1 -0
  492. package/dist/esm/extensions/split/read/releasableByToken.js +25 -0
  493. package/dist/esm/extensions/split/read/releasableByToken.js.map +1 -0
  494. package/dist/esm/extensions/split/read/releasedByToken.js +28 -0
  495. package/dist/esm/extensions/split/read/releasedByToken.js.map +1 -0
  496. package/dist/esm/extensions/split/read/totalReleasedByToken.js +27 -0
  497. package/dist/esm/extensions/split/read/totalReleasedByToken.js.map +1 -0
  498. package/dist/esm/extensions/split/write/distributeByToken.js +26 -0
  499. package/dist/esm/extensions/split/write/distributeByToken.js.map +1 -0
  500. package/dist/esm/extensions/split/write/releaseByToken.js +31 -0
  501. package/dist/esm/extensions/split/write/releaseByToken.js.map +1 -0
  502. package/dist/esm/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.js +65 -0
  503. package/dist/esm/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.js.map +1 -0
  504. package/dist/esm/extensions/vote/__generated__/Vote/read/COUNTING_MODE.js +65 -0
  505. package/dist/esm/extensions/vote/__generated__/Vote/read/COUNTING_MODE.js.map +1 -0
  506. package/dist/esm/extensions/vote/__generated__/Vote/read/getAllProposals.js +104 -0
  507. package/dist/esm/extensions/vote/__generated__/Vote/read/getAllProposals.js.map +1 -0
  508. package/dist/esm/extensions/vote/__generated__/Vote/read/getVotes.js +114 -0
  509. package/dist/esm/extensions/vote/__generated__/Vote/read/getVotes.js.map +1 -0
  510. package/dist/esm/extensions/vote/__generated__/Vote/read/getVotesWithParams.js +125 -0
  511. package/dist/esm/extensions/vote/__generated__/Vote/read/getVotesWithParams.js.map +1 -0
  512. package/dist/esm/extensions/vote/__generated__/Vote/read/hasVoted.js +114 -0
  513. package/dist/esm/extensions/vote/__generated__/Vote/read/hasVoted.js.map +1 -0
  514. package/dist/esm/extensions/vote/__generated__/Vote/read/hashProposal.js +138 -0
  515. package/dist/esm/extensions/vote/__generated__/Vote/read/hashProposal.js.map +1 -0
  516. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalDeadline.js +107 -0
  517. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalDeadline.js.map +1 -0
  518. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalIndex.js +65 -0
  519. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalIndex.js.map +1 -0
  520. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalSnapshot.js +107 -0
  521. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalSnapshot.js.map +1 -0
  522. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalThreshold.js +65 -0
  523. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalThreshold.js.map +1 -0
  524. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalVotes.js +116 -0
  525. package/dist/esm/extensions/vote/__generated__/Vote/read/proposalVotes.js.map +1 -0
  526. package/dist/esm/extensions/vote/__generated__/Vote/read/proposals.js +124 -0
  527. package/dist/esm/extensions/vote/__generated__/Vote/read/proposals.js.map +1 -0
  528. package/dist/esm/extensions/vote/__generated__/Vote/read/quorum.js +107 -0
  529. package/dist/esm/extensions/vote/__generated__/Vote/read/quorum.js.map +1 -0
  530. package/dist/esm/extensions/vote/__generated__/Vote/read/quorumDenominator.js +65 -0
  531. package/dist/esm/extensions/vote/__generated__/Vote/read/quorumDenominator.js.map +1 -0
  532. package/dist/esm/extensions/vote/__generated__/Vote/read/state.js +107 -0
  533. package/dist/esm/extensions/vote/__generated__/Vote/read/state.js.map +1 -0
  534. package/dist/esm/extensions/vote/__generated__/Vote/read/token.js +65 -0
  535. package/dist/esm/extensions/vote/__generated__/Vote/read/token.js.map +1 -0
  536. package/dist/esm/extensions/vote/__generated__/Vote/read/votingDelay.js +65 -0
  537. package/dist/esm/extensions/vote/__generated__/Vote/read/votingDelay.js.map +1 -0
  538. package/dist/esm/extensions/vote/__generated__/Vote/read/votingPeriod.js +65 -0
  539. package/dist/esm/extensions/vote/__generated__/Vote/read/votingPeriod.js.map +1 -0
  540. package/dist/esm/extensions/vote/__generated__/Vote/write/castVote.js +121 -0
  541. package/dist/esm/extensions/vote/__generated__/Vote/write/castVote.js.map +1 -0
  542. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteBySig.js +154 -0
  543. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteBySig.js.map +1 -0
  544. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteWithReason.js +136 -0
  545. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteWithReason.js.map +1 -0
  546. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.js +145 -0
  547. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.js.map +1 -0
  548. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.js +172 -0
  549. package/dist/esm/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.js.map +1 -0
  550. package/dist/esm/extensions/vote/__generated__/Vote/write/execute.js +145 -0
  551. package/dist/esm/extensions/vote/__generated__/Vote/write/execute.js.map +1 -0
  552. package/dist/esm/extensions/vote/__generated__/Vote/write/propose.js +146 -0
  553. package/dist/esm/extensions/vote/__generated__/Vote/write/propose.js.map +1 -0
  554. package/dist/esm/extensions/vote/__generated__/Vote/write/relay.js +132 -0
  555. package/dist/esm/extensions/vote/__generated__/Vote/write/relay.js.map +1 -0
  556. package/dist/esm/extensions/vote/__generated__/Vote/write/setProposalThreshold.js +110 -0
  557. package/dist/esm/extensions/vote/__generated__/Vote/write/setProposalThreshold.js.map +1 -0
  558. package/dist/esm/extensions/vote/__generated__/Vote/write/setVotingDelay.js +110 -0
  559. package/dist/esm/extensions/vote/__generated__/Vote/write/setVotingDelay.js.map +1 -0
  560. package/dist/esm/extensions/vote/__generated__/Vote/write/setVotingPeriod.js +110 -0
  561. package/dist/esm/extensions/vote/__generated__/Vote/write/setVotingPeriod.js.map +1 -0
  562. package/dist/esm/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.js +110 -0
  563. package/dist/esm/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.js.map +1 -0
  564. package/dist/esm/extensions/vote/read/quorumNumeratorByBlockNumber.js +26 -0
  565. package/dist/esm/extensions/vote/read/quorumNumeratorByBlockNumber.js.map +1 -0
  566. package/dist/esm/gas/fee-data.js +4 -0
  567. package/dist/esm/gas/fee-data.js.map +1 -1
  568. package/dist/esm/react/core/hooks/others/useProfiles.js +33 -0
  569. package/dist/esm/react/core/hooks/others/useProfiles.js.map +1 -0
  570. package/dist/esm/react/core/hooks/others/useWalletBalance.js +4 -1
  571. package/dist/esm/react/core/hooks/others/useWalletBalance.js.map +1 -1
  572. package/dist/esm/react/core/utils/{socialIcons.js → walletIcon.js} +25 -1
  573. package/dist/esm/react/core/utils/walletIcon.js.map +1 -0
  574. package/dist/esm/react/native/ui/components/TokenIcon.js +1 -1
  575. package/dist/esm/react/native/ui/components/TokenIcon.js.map +1 -1
  576. package/dist/esm/react/native/ui/connect/ConnectButton.js +14 -9
  577. package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -1
  578. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +13 -8
  579. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  580. package/dist/esm/react/web/ui/ConnectWallet/Details.js +22 -5
  581. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  582. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +1 -1
  583. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  584. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +13 -8
  585. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  586. package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js +1 -1
  587. package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
  588. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +1 -1
  589. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  590. package/dist/esm/react/web/ui/ConnectWallet/icons/AddUserIcon.js +8 -0
  591. package/dist/esm/react/web/ui/ConnectWallet/icons/AddUserIcon.js.map +1 -0
  592. package/dist/esm/react/web/ui/ConnectWallet/icons/MultiUserIcon.js +8 -0
  593. package/dist/esm/react/web/ui/ConnectWallet/icons/MultiUserIcon.js.map +1 -0
  594. package/dist/esm/react/web/ui/ConnectWallet/locale/de.js +6 -0
  595. package/dist/esm/react/web/ui/ConnectWallet/locale/de.js.map +1 -1
  596. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js +6 -0
  597. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  598. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js +6 -0
  599. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  600. package/dist/esm/react/web/ui/ConnectWallet/locale/fr.js +6 -0
  601. package/dist/esm/react/web/ui/ConnectWallet/locale/fr.js.map +1 -1
  602. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js +6 -0
  603. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  604. package/dist/esm/react/web/ui/ConnectWallet/locale/kr.js +6 -0
  605. package/dist/esm/react/web/ui/ConnectWallet/locale/kr.js.map +1 -1
  606. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js +6 -0
  607. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  608. package/dist/esm/react/web/ui/ConnectWallet/locale/vi.js +6 -0
  609. package/dist/esm/react/web/ui/ConnectWallet/locale/vi.js.map +1 -1
  610. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +3 -1
  611. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  612. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +39 -0
  613. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -0
  614. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +55 -0
  615. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -0
  616. package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +8 -5
  617. package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
  618. package/dist/esm/react/web/ui/PayEmbed.js +14 -9
  619. package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
  620. package/dist/esm/react/web/ui/components/Spinner.js +1 -1
  621. package/dist/esm/react/web/ui/components/Spinner.js.map +1 -1
  622. package/dist/esm/react/web/ui/components/TokenIcon.js +1 -1
  623. package/dist/esm/react/web/ui/components/TokenIcon.js.map +1 -1
  624. package/dist/esm/react/web/ui/components/WalletImage.js +4 -30
  625. package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
  626. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +8 -4
  627. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  628. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +2 -2
  629. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
  630. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
  631. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  632. package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js +5 -5
  633. package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
  634. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +18 -12
  635. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  636. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +36 -49
  637. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  638. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +47 -20
  639. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  640. package/dist/esm/react/web/wallets/shared/SocialLogin.js +33 -13
  641. package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
  642. package/dist/esm/react/web/wallets/shared/locale/en.js +1 -1
  643. package/dist/esm/react/web/wallets/shared/oauthSignIn.js +2 -2
  644. package/dist/esm/react/web/wallets/shared/oauthSignIn.js.map +1 -1
  645. package/dist/esm/reactive/store.js +3 -0
  646. package/dist/esm/reactive/store.js.map +1 -1
  647. package/dist/esm/transaction/serialize-transaction.js +21 -142
  648. package/dist/esm/transaction/serialize-transaction.js.map +1 -1
  649. package/dist/esm/version.js +1 -1
  650. package/dist/esm/version.js.map +1 -1
  651. package/dist/esm/wallets/coinbase/coinbase-wallet.js +8 -1
  652. package/dist/esm/wallets/coinbase/coinbase-wallet.js.map +1 -1
  653. package/dist/esm/wallets/create-wallet.js +8 -1
  654. package/dist/esm/wallets/create-wallet.js.map +1 -1
  655. package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js +11 -1
  656. package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
  657. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js +63 -0
  658. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js.map +1 -0
  659. package/dist/esm/wallets/in-app/core/authentication/siwe.js +46 -0
  660. package/dist/esm/wallets/in-app/core/authentication/siwe.js.map +1 -0
  661. package/dist/esm/wallets/in-app/core/authentication/{type.js → types.js} +1 -1
  662. package/dist/esm/wallets/in-app/core/authentication/types.js.map +1 -0
  663. package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js +8 -1
  664. package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
  665. package/dist/esm/wallets/in-app/core/wallet/in-app-core.js +47 -1
  666. package/dist/esm/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
  667. package/dist/esm/wallets/in-app/core/wallet/index.js +2 -2
  668. package/dist/esm/wallets/in-app/core/wallet/index.js.map +1 -1
  669. package/dist/esm/wallets/in-app/core/wallet/profiles.js +56 -0
  670. package/dist/esm/wallets/in-app/core/wallet/profiles.js.map +1 -0
  671. package/dist/esm/wallets/in-app/native/auth/index.js +2 -2
  672. package/dist/esm/wallets/in-app/native/auth/index.js.map +1 -1
  673. package/dist/esm/wallets/in-app/native/auth/native-auth.js +47 -112
  674. package/dist/esm/wallets/in-app/native/auth/native-auth.js.map +1 -1
  675. package/dist/esm/wallets/in-app/native/helpers/auth/middleware.js +1 -1
  676. package/dist/esm/wallets/in-app/native/helpers/auth/middleware.js.map +1 -1
  677. package/dist/esm/wallets/in-app/native/native-connector.js +67 -27
  678. package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
  679. package/dist/esm/wallets/in-app/web/lib/auth/abstract-login.js +0 -2
  680. package/dist/esm/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
  681. package/dist/esm/wallets/in-app/web/lib/auth/base-login.js +49 -148
  682. package/dist/esm/wallets/in-app/web/lib/auth/base-login.js.map +1 -1
  683. package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js +26 -12
  684. package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
  685. package/dist/esm/wallets/in-app/web/lib/auth/index.js +2 -2
  686. package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
  687. package/dist/esm/wallets/in-app/web/lib/auth/oauth.js +3 -3
  688. package/dist/esm/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
  689. package/dist/esm/wallets/in-app/web/lib/auth/otp.js +84 -0
  690. package/dist/esm/wallets/in-app/web/lib/auth/otp.js.map +1 -0
  691. package/dist/esm/wallets/in-app/web/lib/get-url-token.js +3 -2
  692. package/dist/esm/wallets/in-app/web/lib/get-url-token.js.map +1 -1
  693. package/dist/esm/wallets/in-app/web/lib/in-app-account.js +1 -1
  694. package/dist/esm/wallets/in-app/web/lib/in-app-account.js.map +1 -1
  695. package/dist/esm/wallets/in-app/web/lib/web-connector.js +88 -29
  696. package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
  697. package/dist/esm/wallets/manager/index.js +41 -5
  698. package/dist/esm/wallets/manager/index.js.map +1 -1
  699. package/dist/esm/wallets/native/create-wallet.js +8 -1
  700. package/dist/esm/wallets/native/create-wallet.js.map +1 -1
  701. package/dist/esm/wallets/smart/smart-wallet.js +8 -1
  702. package/dist/esm/wallets/smart/smart-wallet.js.map +1 -1
  703. package/dist/types/adapters/ethers5.d.ts +1 -1
  704. package/dist/types/adapters/ethers5.d.ts.map +1 -1
  705. package/dist/types/adapters/wallet-adapter.d.ts.map +1 -1
  706. package/dist/types/auth/constants.d.ts +0 -18
  707. package/dist/types/auth/constants.d.ts.map +1 -1
  708. package/dist/types/auth/verify-hash.d.ts.map +1 -1
  709. package/dist/types/chains/chain-definitions/fraxtal-testnet.d.ts +7 -0
  710. package/dist/types/chains/chain-definitions/fraxtal-testnet.d.ts.map +1 -0
  711. package/dist/types/chains/chain-definitions/mode-testnet.d.ts +7 -0
  712. package/dist/types/chains/chain-definitions/mode-testnet.d.ts.map +1 -0
  713. package/dist/types/chains/utils.d.ts +6 -0
  714. package/dist/types/chains/utils.d.ts.map +1 -1
  715. package/dist/types/exports/extensions/split.d.ts +20 -0
  716. package/dist/types/exports/extensions/split.d.ts.map +1 -0
  717. package/dist/types/exports/extensions/vote.d.ts +37 -0
  718. package/dist/types/exports/extensions/vote.d.ts.map +1 -0
  719. package/dist/types/exports/react.d.ts +1 -0
  720. package/dist/types/exports/react.d.ts.map +1 -1
  721. package/dist/types/exports/wallets/embedded.d.ts +1 -1
  722. package/dist/types/exports/wallets/embedded.d.ts.map +1 -1
  723. package/dist/types/exports/wallets/in-app.d.ts +2 -2
  724. package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
  725. package/dist/types/exports/wallets/in-app.native.d.ts +1 -1
  726. package/dist/types/exports/wallets/in-app.native.d.ts.map +1 -1
  727. package/dist/types/exports/wallets.d.ts +1 -0
  728. package/dist/types/exports/wallets.d.ts.map +1 -1
  729. package/dist/types/extensions/modular/__generated__/BatchMetadataERC1155/write/uploadMetadata.d.ts.map +1 -1
  730. package/dist/types/extensions/modular/__generated__/BatchMetadataERC721/write/uploadMetadata.d.ts.map +1 -1
  731. package/dist/types/extensions/modular/__generated__/ClaimableERC1155/write/beforeMintERC1155.d.ts.map +1 -1
  732. package/dist/types/extensions/modular/__generated__/ClaimableERC1155/write/onInstall.d.ts.map +1 -1
  733. package/dist/types/extensions/modular/__generated__/ClaimableERC1155/write/onUninstall.d.ts.map +1 -1
  734. package/dist/types/extensions/modular/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.d.ts.map +1 -1
  735. package/dist/types/extensions/modular/__generated__/ClaimableERC1155/write/setSaleConfig.d.ts.map +1 -1
  736. package/dist/types/extensions/modular/__generated__/ClaimableERC20/write/beforeMintERC20.d.ts.map +1 -1
  737. package/dist/types/extensions/modular/__generated__/ClaimableERC20/write/onInstall.d.ts.map +1 -1
  738. package/dist/types/extensions/modular/__generated__/ClaimableERC20/write/onUninstall.d.ts.map +1 -1
  739. package/dist/types/extensions/modular/__generated__/ClaimableERC20/write/setClaimCondition.d.ts.map +1 -1
  740. package/dist/types/extensions/modular/__generated__/ClaimableERC20/write/setSaleConfig.d.ts.map +1 -1
  741. package/dist/types/extensions/modular/__generated__/ClaimableERC721/write/beforeMintERC721.d.ts.map +1 -1
  742. package/dist/types/extensions/modular/__generated__/ClaimableERC721/write/onInstall.d.ts.map +1 -1
  743. package/dist/types/extensions/modular/__generated__/ClaimableERC721/write/onUninstall.d.ts.map +1 -1
  744. package/dist/types/extensions/modular/__generated__/ClaimableERC721/write/setClaimCondition.d.ts.map +1 -1
  745. package/dist/types/extensions/modular/__generated__/ClaimableERC721/write/setSaleConfig.d.ts.map +1 -1
  746. package/dist/types/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/reveal.d.ts.map +1 -1
  747. package/dist/types/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/uploadMetadata.d.ts.map +1 -1
  748. package/dist/types/extensions/modular/__generated__/MintableERC1155/write/beforeMintERC1155.d.ts.map +1 -1
  749. package/dist/types/extensions/modular/__generated__/MintableERC1155/write/onInstall.d.ts.map +1 -1
  750. package/dist/types/extensions/modular/__generated__/MintableERC1155/write/onUninstall.d.ts.map +1 -1
  751. package/dist/types/extensions/modular/__generated__/MintableERC1155/write/setSaleConfig.d.ts.map +1 -1
  752. package/dist/types/extensions/modular/__generated__/MintableERC1155/write/setTokenURI.d.ts.map +1 -1
  753. package/dist/types/extensions/modular/__generated__/MintableERC20/write/beforeMintERC20.d.ts.map +1 -1
  754. package/dist/types/extensions/modular/__generated__/MintableERC20/write/completeOwnershipHandover.d.ts.map +1 -1
  755. package/dist/types/extensions/modular/__generated__/MintableERC20/write/grantRoles.d.ts.map +1 -1
  756. package/dist/types/extensions/modular/__generated__/MintableERC20/write/onInstall.d.ts.map +1 -1
  757. package/dist/types/extensions/modular/__generated__/MintableERC20/write/onUninstall.d.ts.map +1 -1
  758. package/dist/types/extensions/modular/__generated__/MintableERC20/write/renounceRoles.d.ts.map +1 -1
  759. package/dist/types/extensions/modular/__generated__/MintableERC20/write/revokeRoles.d.ts.map +1 -1
  760. package/dist/types/extensions/modular/__generated__/MintableERC20/write/setSaleConfig.d.ts.map +1 -1
  761. package/dist/types/extensions/modular/__generated__/MintableERC20/write/transferOwnership.d.ts.map +1 -1
  762. package/dist/types/extensions/modular/__generated__/MintableERC721/write/beforeMintERC721.d.ts.map +1 -1
  763. package/dist/types/extensions/modular/__generated__/MintableERC721/write/onInstall.d.ts.map +1 -1
  764. package/dist/types/extensions/modular/__generated__/MintableERC721/write/onUninstall.d.ts.map +1 -1
  765. package/dist/types/extensions/modular/__generated__/MintableERC721/write/setSaleConfig.d.ts.map +1 -1
  766. package/dist/types/extensions/modular/__generated__/OpenEditionMetadataERC1155/write/setSharedMetadata.d.ts.map +1 -1
  767. package/dist/types/extensions/modular/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.d.ts.map +1 -1
  768. package/dist/types/extensions/modular/__generated__/RoyaltyERC1155/write/onInstall.d.ts.map +1 -1
  769. package/dist/types/extensions/modular/__generated__/RoyaltyERC1155/write/onUninstall.d.ts.map +1 -1
  770. package/dist/types/extensions/modular/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.d.ts.map +1 -1
  771. package/dist/types/extensions/modular/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.d.ts.map +1 -1
  772. package/dist/types/extensions/modular/__generated__/RoyaltyERC721/write/onInstall.d.ts.map +1 -1
  773. package/dist/types/extensions/modular/__generated__/RoyaltyERC721/write/onUninstall.d.ts.map +1 -1
  774. package/dist/types/extensions/modular/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.d.ts.map +1 -1
  775. package/dist/types/extensions/modular/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.d.ts.map +1 -1
  776. package/dist/types/extensions/modular/__generated__/SimpleMetadataERC1155/write/setTokenURI.d.ts.map +1 -1
  777. package/dist/types/extensions/modular/__generated__/SimpleMetadataERC721/write/setTokenURI.d.ts.map +1 -1
  778. package/dist/types/extensions/split/__generated__/Split/read/payee.d.ts +85 -0
  779. package/dist/types/extensions/split/__generated__/Split/read/payee.d.ts.map +1 -0
  780. package/dist/types/extensions/split/__generated__/Split/read/payeeCount.d.ts +46 -0
  781. package/dist/types/extensions/split/__generated__/Split/read/payeeCount.d.ts.map +1 -0
  782. package/dist/types/extensions/split/__generated__/Split/read/releasable.d.ts +85 -0
  783. package/dist/types/extensions/split/__generated__/Split/read/releasable.d.ts.map +1 -0
  784. package/dist/types/extensions/split/__generated__/Split/read/released.d.ts +85 -0
  785. package/dist/types/extensions/split/__generated__/Split/read/released.d.ts.map +1 -0
  786. package/dist/types/extensions/split/__generated__/Split/read/shares.d.ts +85 -0
  787. package/dist/types/extensions/split/__generated__/Split/read/shares.d.ts.map +1 -0
  788. package/dist/types/extensions/split/__generated__/Split/read/totalReleased.d.ts +46 -0
  789. package/dist/types/extensions/split/__generated__/Split/read/totalReleased.d.ts.map +1 -0
  790. package/dist/types/extensions/split/__generated__/Split/write/distribute.d.ts +34 -0
  791. package/dist/types/extensions/split/__generated__/Split/write/distribute.d.ts.map +1 -0
  792. package/dist/types/extensions/split/__generated__/Split/write/release.d.ts +80 -0
  793. package/dist/types/extensions/split/__generated__/Split/write/release.d.ts.map +1 -0
  794. package/dist/types/extensions/split/read/releasableByToken.d.ts +23 -0
  795. package/dist/types/extensions/split/read/releasableByToken.d.ts.map +1 -0
  796. package/dist/types/extensions/split/read/releasedByToken.d.ts +25 -0
  797. package/dist/types/extensions/split/read/releasedByToken.d.ts.map +1 -0
  798. package/dist/types/extensions/split/read/totalReleasedByToken.d.ts +23 -0
  799. package/dist/types/extensions/split/read/totalReleasedByToken.d.ts.map +1 -0
  800. package/dist/types/extensions/split/write/distributeByToken.d.ts +31 -0
  801. package/dist/types/extensions/split/write/distributeByToken.d.ts.map +1 -0
  802. package/dist/types/extensions/split/write/releaseByToken.d.ts +41 -0
  803. package/dist/types/extensions/split/write/releaseByToken.d.ts.map +1 -0
  804. package/dist/types/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.d.ts +46 -0
  805. package/dist/types/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.d.ts.map +1 -0
  806. package/dist/types/extensions/vote/__generated__/Vote/read/COUNTING_MODE.d.ts +46 -0
  807. package/dist/types/extensions/vote/__generated__/Vote/read/COUNTING_MODE.d.ts.map +1 -0
  808. package/dist/types/extensions/vote/__generated__/Vote/read/getAllProposals.d.ts +66 -0
  809. package/dist/types/extensions/vote/__generated__/Vote/read/getAllProposals.d.ts.map +1 -0
  810. package/dist/types/extensions/vote/__generated__/Vote/read/getVotes.d.ts +92 -0
  811. package/dist/types/extensions/vote/__generated__/Vote/read/getVotes.d.ts.map +1 -0
  812. package/dist/types/extensions/vote/__generated__/Vote/read/getVotesWithParams.d.ts +99 -0
  813. package/dist/types/extensions/vote/__generated__/Vote/read/getVotesWithParams.d.ts.map +1 -0
  814. package/dist/types/extensions/vote/__generated__/Vote/read/hasVoted.d.ts +92 -0
  815. package/dist/types/extensions/vote/__generated__/Vote/read/hasVoted.d.ts.map +1 -0
  816. package/dist/types/extensions/vote/__generated__/Vote/read/hashProposal.d.ts +106 -0
  817. package/dist/types/extensions/vote/__generated__/Vote/read/hashProposal.d.ts.map +1 -0
  818. package/dist/types/extensions/vote/__generated__/Vote/read/proposalDeadline.d.ts +85 -0
  819. package/dist/types/extensions/vote/__generated__/Vote/read/proposalDeadline.d.ts.map +1 -0
  820. package/dist/types/extensions/vote/__generated__/Vote/read/proposalIndex.d.ts +46 -0
  821. package/dist/types/extensions/vote/__generated__/Vote/read/proposalIndex.d.ts.map +1 -0
  822. package/dist/types/extensions/vote/__generated__/Vote/read/proposalSnapshot.d.ts +85 -0
  823. package/dist/types/extensions/vote/__generated__/Vote/read/proposalSnapshot.d.ts.map +1 -0
  824. package/dist/types/extensions/vote/__generated__/Vote/read/proposalThreshold.d.ts +46 -0
  825. package/dist/types/extensions/vote/__generated__/Vote/read/proposalThreshold.d.ts.map +1 -0
  826. package/dist/types/extensions/vote/__generated__/Vote/read/proposalVotes.d.ts +85 -0
  827. package/dist/types/extensions/vote/__generated__/Vote/read/proposalVotes.d.ts.map +1 -0
  828. package/dist/types/extensions/vote/__generated__/Vote/read/proposals.d.ts +85 -0
  829. package/dist/types/extensions/vote/__generated__/Vote/read/proposals.d.ts.map +1 -0
  830. package/dist/types/extensions/vote/__generated__/Vote/read/quorum.d.ts +85 -0
  831. package/dist/types/extensions/vote/__generated__/Vote/read/quorum.d.ts.map +1 -0
  832. package/dist/types/extensions/vote/__generated__/Vote/read/quorumDenominator.d.ts +46 -0
  833. package/dist/types/extensions/vote/__generated__/Vote/read/quorumDenominator.d.ts.map +1 -0
  834. package/dist/types/extensions/vote/__generated__/Vote/read/state.d.ts +85 -0
  835. package/dist/types/extensions/vote/__generated__/Vote/read/state.d.ts.map +1 -0
  836. package/dist/types/extensions/vote/__generated__/Vote/read/token.d.ts +46 -0
  837. package/dist/types/extensions/vote/__generated__/Vote/read/token.d.ts.map +1 -0
  838. package/dist/types/extensions/vote/__generated__/Vote/read/votingDelay.d.ts +46 -0
  839. package/dist/types/extensions/vote/__generated__/Vote/read/votingDelay.d.ts.map +1 -0
  840. package/dist/types/extensions/vote/__generated__/Vote/read/votingPeriod.d.ts +46 -0
  841. package/dist/types/extensions/vote/__generated__/Vote/read/votingPeriod.d.ts.map +1 -0
  842. package/dist/types/extensions/vote/__generated__/Vote/write/castVote.d.ts +87 -0
  843. package/dist/types/extensions/vote/__generated__/Vote/write/castVote.d.ts.map +1 -0
  844. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteBySig.d.ts +108 -0
  845. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteBySig.d.ts.map +1 -0
  846. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteWithReason.d.ts +94 -0
  847. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteWithReason.d.ts.map +1 -0
  848. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.d.ts +101 -0
  849. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.d.ts.map +1 -0
  850. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.d.ts +122 -0
  851. package/dist/types/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.d.ts.map +1 -0
  852. package/dist/types/extensions/vote/__generated__/Vote/write/execute.d.ts +101 -0
  853. package/dist/types/extensions/vote/__generated__/Vote/write/execute.d.ts.map +1 -0
  854. package/dist/types/extensions/vote/__generated__/Vote/write/propose.d.ts +101 -0
  855. package/dist/types/extensions/vote/__generated__/Vote/write/propose.d.ts.map +1 -0
  856. package/dist/types/extensions/vote/__generated__/Vote/write/relay.d.ts +94 -0
  857. package/dist/types/extensions/vote/__generated__/Vote/write/relay.d.ts.map +1 -0
  858. package/dist/types/extensions/vote/__generated__/Vote/write/setProposalThreshold.d.ts +80 -0
  859. package/dist/types/extensions/vote/__generated__/Vote/write/setProposalThreshold.d.ts.map +1 -0
  860. package/dist/types/extensions/vote/__generated__/Vote/write/setVotingDelay.d.ts +80 -0
  861. package/dist/types/extensions/vote/__generated__/Vote/write/setVotingDelay.d.ts.map +1 -0
  862. package/dist/types/extensions/vote/__generated__/Vote/write/setVotingPeriod.d.ts +80 -0
  863. package/dist/types/extensions/vote/__generated__/Vote/write/setVotingPeriod.d.ts.map +1 -0
  864. package/dist/types/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.d.ts +80 -0
  865. package/dist/types/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.d.ts.map +1 -0
  866. package/dist/types/extensions/vote/read/quorumNumeratorByBlockNumber.d.ts +22 -0
  867. package/dist/types/extensions/vote/read/quorumNumeratorByBlockNumber.d.ts.map +1 -0
  868. package/dist/types/gas/fee-data.d.ts.map +1 -1
  869. package/dist/types/react/core/hooks/others/useProfiles.d.ts +23 -0
  870. package/dist/types/react/core/hooks/others/useProfiles.d.ts.map +1 -0
  871. package/dist/types/react/core/hooks/others/useWalletBalance.d.ts +1 -1
  872. package/dist/types/react/core/hooks/others/useWalletBalance.d.ts.map +1 -1
  873. package/dist/types/react/core/providers/connection-manager.d.ts +3 -0
  874. package/dist/types/react/core/providers/connection-manager.d.ts.map +1 -1
  875. package/dist/types/react/core/utils/storage.d.ts +2 -2
  876. package/dist/types/react/core/utils/storage.d.ts.map +1 -1
  877. package/dist/types/react/core/utils/{socialIcons.d.ts → walletIcon.d.ts} +2 -1
  878. package/dist/types/react/core/utils/walletIcon.d.ts.map +1 -0
  879. package/dist/types/react/native/ui/connect/ConnectButton.d.ts.map +1 -1
  880. package/dist/types/react/native/ui/connect/ConnectModal.d.ts +1 -1
  881. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
  882. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts +1 -1
  883. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -1
  884. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  885. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  886. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  887. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  888. package/dist/types/react/web/ui/ConnectWallet/icons/AddUserIcon.d.ts +6 -0
  889. package/dist/types/react/web/ui/ConnectWallet/icons/AddUserIcon.d.ts.map +1 -0
  890. package/dist/types/react/web/ui/ConnectWallet/icons/MultiUserIcon.d.ts +6 -0
  891. package/dist/types/react/web/ui/ConnectWallet/icons/MultiUserIcon.d.ts.map +1 -0
  892. package/dist/types/react/web/ui/ConnectWallet/locale/de.d.ts.map +1 -1
  893. package/dist/types/react/web/ui/ConnectWallet/locale/en.d.ts.map +1 -1
  894. package/dist/types/react/web/ui/ConnectWallet/locale/es.d.ts.map +1 -1
  895. package/dist/types/react/web/ui/ConnectWallet/locale/fr.d.ts.map +1 -1
  896. package/dist/types/react/web/ui/ConnectWallet/locale/ja.d.ts.map +1 -1
  897. package/dist/types/react/web/ui/ConnectWallet/locale/kr.d.ts.map +1 -1
  898. package/dist/types/react/web/ui/ConnectWallet/locale/tl.d.ts.map +1 -1
  899. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts +6 -0
  900. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts.map +1 -1
  901. package/dist/types/react/web/ui/ConnectWallet/locale/vi.d.ts.map +1 -1
  902. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts +11 -0
  903. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts.map +1 -0
  904. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts +13 -0
  905. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -0
  906. package/dist/types/react/web/ui/ConnectWallet/screens/ManageWalletScreen.d.ts.map +1 -1
  907. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts +1 -1
  908. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts.map +1 -1
  909. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  910. package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
  911. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts +1 -0
  912. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
  913. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts +1 -0
  914. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts.map +1 -1
  915. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +2 -1
  916. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  917. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts +2 -1
  918. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts.map +1 -1
  919. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts +3 -1
  920. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  921. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts +1 -0
  922. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
  923. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +4 -1
  924. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
  925. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts +3 -0
  926. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
  927. package/dist/types/reactive/store.d.ts.map +1 -1
  928. package/dist/types/transaction/serialize-transaction.d.ts +8 -8
  929. package/dist/types/transaction/serialize-transaction.d.ts.map +1 -1
  930. package/dist/types/utils/any-evm/keyless-transaction.d.ts +1 -1
  931. package/dist/types/version.d.ts +1 -1
  932. package/dist/types/version.d.ts.map +1 -1
  933. package/dist/types/wallets/coinbase/coinbase-wallet.d.ts.map +1 -1
  934. package/dist/types/wallets/create-wallet.d.ts.map +1 -1
  935. package/dist/types/wallets/ecosystem/types.d.ts +2 -8
  936. package/dist/types/wallets/ecosystem/types.d.ts.map +1 -1
  937. package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts +8 -3
  938. package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts.map +1 -1
  939. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts +24 -0
  940. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts.map +1 -0
  941. package/dist/types/wallets/in-app/core/authentication/siwe.d.ts +14 -0
  942. package/dist/types/wallets/in-app/core/authentication/siwe.d.ts.map +1 -0
  943. package/dist/types/wallets/in-app/core/authentication/{type.d.ts → types.d.ts} +17 -2
  944. package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -0
  945. package/dist/types/wallets/in-app/core/interfaces/connector.d.ts +4 -3
  946. package/dist/types/wallets/in-app/core/interfaces/connector.d.ts.map +1 -1
  947. package/dist/types/wallets/in-app/core/wallet/ecosystem-core.d.ts.map +1 -1
  948. package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts.map +1 -1
  949. package/dist/types/wallets/in-app/core/wallet/profiles.d.ts +48 -0
  950. package/dist/types/wallets/in-app/core/wallet/profiles.d.ts.map +1 -0
  951. package/dist/types/wallets/in-app/core/wallet/types.d.ts +1 -1
  952. package/dist/types/wallets/in-app/core/wallet/types.d.ts.map +1 -1
  953. package/dist/types/wallets/in-app/native/auth/index.d.ts +3 -3
  954. package/dist/types/wallets/in-app/native/auth/index.d.ts.map +1 -1
  955. package/dist/types/wallets/in-app/native/auth/native-auth.d.ts +7 -13
  956. package/dist/types/wallets/in-app/native/auth/native-auth.d.ts.map +1 -1
  957. package/dist/types/wallets/in-app/native/helpers/api/fetchers.d.ts +1 -1
  958. package/dist/types/wallets/in-app/native/helpers/api/fetchers.d.ts.map +1 -1
  959. package/dist/types/wallets/in-app/native/helpers/auth/logout.d.ts +1 -1
  960. package/dist/types/wallets/in-app/native/helpers/auth/logout.d.ts.map +1 -1
  961. package/dist/types/wallets/in-app/native/helpers/auth/middleware.d.ts +3 -3
  962. package/dist/types/wallets/in-app/native/helpers/auth/middleware.d.ts.map +1 -1
  963. package/dist/types/wallets/in-app/native/helpers/storage/local.d.ts +1 -1
  964. package/dist/types/wallets/in-app/native/helpers/storage/local.d.ts.map +1 -1
  965. package/dist/types/wallets/in-app/native/helpers/types.d.ts +1 -1
  966. package/dist/types/wallets/in-app/native/helpers/types.d.ts.map +1 -1
  967. package/dist/types/wallets/in-app/native/helpers/wallet/creation.d.ts +1 -1
  968. package/dist/types/wallets/in-app/native/helpers/wallet/retrieval.d.ts +1 -1
  969. package/dist/types/wallets/in-app/native/helpers/wallet/retrieval.d.ts.map +1 -1
  970. package/dist/types/wallets/in-app/native/native-connector.d.ts +6 -4
  971. package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
  972. package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts +4 -12
  973. package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts.map +1 -1
  974. package/dist/types/wallets/in-app/web/lib/auth/base-login.d.ts +12 -15
  975. package/dist/types/wallets/in-app/web/lib/auth/base-login.d.ts.map +1 -1
  976. package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts +11 -9
  977. package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts.map +1 -1
  978. package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +4 -4
  979. package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
  980. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts +1 -1
  981. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts.map +1 -1
  982. package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts +15 -0
  983. package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts.map +1 -0
  984. package/dist/types/wallets/in-app/web/lib/auth/passkeys.d.ts +1 -1
  985. package/dist/types/wallets/in-app/web/lib/auth/passkeys.d.ts.map +1 -1
  986. package/dist/types/wallets/in-app/web/lib/get-url-token.d.ts +1 -1
  987. package/dist/types/wallets/in-app/web/lib/get-url-token.d.ts.map +1 -1
  988. package/dist/types/wallets/in-app/web/lib/in-app-account.d.ts +1 -1
  989. package/dist/types/wallets/in-app/web/lib/in-app-account.d.ts.map +1 -1
  990. package/dist/types/wallets/in-app/web/lib/web-connector.d.ts +11 -4
  991. package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
  992. package/dist/types/wallets/in-app/web/types.d.ts +1 -1
  993. package/dist/types/wallets/in-app/web/types.d.ts.map +1 -1
  994. package/dist/types/wallets/interfaces/wallet.d.ts.map +1 -1
  995. package/dist/types/wallets/manager/index.d.ts +1 -0
  996. package/dist/types/wallets/manager/index.d.ts.map +1 -1
  997. package/dist/types/wallets/native/create-wallet.d.ts.map +1 -1
  998. package/dist/types/wallets/smart/smart-wallet.d.ts.map +1 -1
  999. package/dist/types/wallets/types.d.ts +1 -1
  1000. package/dist/types/wallets/types.d.ts.map +1 -1
  1001. package/package.json +2 -2
  1002. package/src/adapters/ethers5.ts +4 -2
  1003. package/src/adapters/wallet-adapter.ts +3 -0
  1004. package/src/auth/constants.ts +0 -28
  1005. package/src/auth/verify-hash.ts +7 -5
  1006. package/src/chains/chain-definitions/fraxtal-testnet.ts +17 -0
  1007. package/src/chains/chain-definitions/mode-testnet.ts +17 -0
  1008. package/src/chains/utils.ts +7 -0
  1009. package/src/exports/extensions/split.ts +52 -0
  1010. package/src/exports/extensions/vote.ts +131 -0
  1011. package/src/exports/react.ts +1 -0
  1012. package/src/exports/wallets/embedded.ts +1 -1
  1013. package/src/exports/wallets/in-app.native.ts +1 -1
  1014. package/src/exports/wallets/in-app.ts +2 -2
  1015. package/src/exports/wallets.ts +5 -0
  1016. package/src/extensions/marketplace/direct-listings/direct-listings.test.ts +334 -337
  1017. package/src/extensions/marketplace/english-auctions/english-auctions.test.ts +231 -236
  1018. package/src/extensions/marketplace/offers/offers.test.ts +1 -1
  1019. package/src/extensions/modular/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts +1 -0
  1020. package/src/extensions/modular/__generated__/BatchMetadataERC721/write/uploadMetadata.ts +1 -0
  1021. package/src/extensions/modular/__generated__/ClaimableERC1155/write/beforeMintERC1155.ts +1 -0
  1022. package/src/extensions/modular/__generated__/ClaimableERC1155/write/onInstall.ts +1 -0
  1023. package/src/extensions/modular/__generated__/ClaimableERC1155/write/onUninstall.ts +1 -0
  1024. package/src/extensions/modular/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts +1 -0
  1025. package/src/extensions/modular/__generated__/ClaimableERC1155/write/setSaleConfig.ts +1 -0
  1026. package/src/extensions/modular/__generated__/ClaimableERC20/write/beforeMintERC20.ts +1 -0
  1027. package/src/extensions/modular/__generated__/ClaimableERC20/write/onInstall.ts +1 -0
  1028. package/src/extensions/modular/__generated__/ClaimableERC20/write/onUninstall.ts +1 -0
  1029. package/src/extensions/modular/__generated__/ClaimableERC20/write/setClaimCondition.ts +1 -0
  1030. package/src/extensions/modular/__generated__/ClaimableERC20/write/setSaleConfig.ts +1 -0
  1031. package/src/extensions/modular/__generated__/ClaimableERC721/write/beforeMintERC721.ts +1 -0
  1032. package/src/extensions/modular/__generated__/ClaimableERC721/write/onInstall.ts +1 -0
  1033. package/src/extensions/modular/__generated__/ClaimableERC721/write/onUninstall.ts +1 -0
  1034. package/src/extensions/modular/__generated__/ClaimableERC721/write/setClaimCondition.ts +1 -0
  1035. package/src/extensions/modular/__generated__/ClaimableERC721/write/setSaleConfig.ts +1 -0
  1036. package/src/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/reveal.ts +1 -0
  1037. package/src/extensions/modular/__generated__/DelayedRevealBatchMetadataERC721/write/uploadMetadata.ts +1 -0
  1038. package/src/extensions/modular/__generated__/MintableERC1155/write/beforeMintERC1155.ts +1 -0
  1039. package/src/extensions/modular/__generated__/MintableERC1155/write/onInstall.ts +1 -0
  1040. package/src/extensions/modular/__generated__/MintableERC1155/write/onUninstall.ts +1 -0
  1041. package/src/extensions/modular/__generated__/MintableERC1155/write/setSaleConfig.ts +1 -0
  1042. package/src/extensions/modular/__generated__/MintableERC1155/write/setTokenURI.ts +1 -0
  1043. package/src/extensions/modular/__generated__/MintableERC20/write/beforeMintERC20.ts +1 -0
  1044. package/src/extensions/modular/__generated__/MintableERC20/write/completeOwnershipHandover.ts +1 -0
  1045. package/src/extensions/modular/__generated__/MintableERC20/write/grantRoles.ts +1 -0
  1046. package/src/extensions/modular/__generated__/MintableERC20/write/onInstall.ts +1 -0
  1047. package/src/extensions/modular/__generated__/MintableERC20/write/onUninstall.ts +1 -0
  1048. package/src/extensions/modular/__generated__/MintableERC20/write/renounceRoles.ts +1 -0
  1049. package/src/extensions/modular/__generated__/MintableERC20/write/revokeRoles.ts +1 -0
  1050. package/src/extensions/modular/__generated__/MintableERC20/write/setSaleConfig.ts +1 -0
  1051. package/src/extensions/modular/__generated__/MintableERC20/write/transferOwnership.ts +1 -0
  1052. package/src/extensions/modular/__generated__/MintableERC721/write/beforeMintERC721.ts +1 -0
  1053. package/src/extensions/modular/__generated__/MintableERC721/write/onInstall.ts +1 -0
  1054. package/src/extensions/modular/__generated__/MintableERC721/write/onUninstall.ts +1 -0
  1055. package/src/extensions/modular/__generated__/MintableERC721/write/setSaleConfig.ts +1 -0
  1056. package/src/extensions/modular/__generated__/OpenEditionMetadataERC1155/write/setSharedMetadata.ts +1 -0
  1057. package/src/extensions/modular/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts +1 -0
  1058. package/src/extensions/modular/__generated__/RoyaltyERC1155/write/onInstall.ts +1 -0
  1059. package/src/extensions/modular/__generated__/RoyaltyERC1155/write/onUninstall.ts +1 -0
  1060. package/src/extensions/modular/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts +1 -0
  1061. package/src/extensions/modular/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts +1 -0
  1062. package/src/extensions/modular/__generated__/RoyaltyERC721/write/onInstall.ts +1 -0
  1063. package/src/extensions/modular/__generated__/RoyaltyERC721/write/onUninstall.ts +1 -0
  1064. package/src/extensions/modular/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts +1 -0
  1065. package/src/extensions/modular/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts +1 -0
  1066. package/src/extensions/modular/__generated__/SimpleMetadataERC1155/write/setTokenURI.ts +1 -0
  1067. package/src/extensions/modular/__generated__/SimpleMetadataERC721/write/setTokenURI.ts +1 -0
  1068. package/src/extensions/prebuilts/deploy-modular-core.test.ts +1 -1
  1069. package/src/extensions/split/__generated__/Split/read/payee.ts +123 -0
  1070. package/src/extensions/split/__generated__/Split/read/payeeCount.ts +72 -0
  1071. package/src/extensions/split/__generated__/Split/read/releasable.ts +127 -0
  1072. package/src/extensions/split/__generated__/Split/read/released.ts +125 -0
  1073. package/src/extensions/split/__generated__/Split/read/shares.ts +123 -0
  1074. package/src/extensions/split/__generated__/Split/read/totalReleased.ts +74 -0
  1075. package/src/extensions/split/__generated__/Split/write/distribute.ts +51 -0
  1076. package/src/extensions/split/__generated__/Split/write/release.ts +136 -0
  1077. package/src/extensions/split/read/releasableByToken.ts +34 -0
  1078. package/src/extensions/split/read/releasedByToken.ts +33 -0
  1079. package/src/extensions/split/read/totalReleasedByToken.ts +30 -0
  1080. package/src/extensions/split/write/distributeByToken.ts +29 -0
  1081. package/src/extensions/split/write/releaseByToken.ts +39 -0
  1082. package/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts +74 -0
  1083. package/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts +74 -0
  1084. package/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts +113 -0
  1085. package/src/extensions/vote/__generated__/Vote/read/getVotes.ts +136 -0
  1086. package/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts +154 -0
  1087. package/src/extensions/vote/__generated__/Vote/read/hasVoted.ts +136 -0
  1088. package/src/extensions/vote/__generated__/Vote/read/hashProposal.ts +167 -0
  1089. package/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts +132 -0
  1090. package/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts +74 -0
  1091. package/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts +132 -0
  1092. package/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts +74 -0
  1093. package/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts +141 -0
  1094. package/src/extensions/vote/__generated__/Vote/read/proposals.ts +144 -0
  1095. package/src/extensions/vote/__generated__/Vote/read/quorum.ts +126 -0
  1096. package/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts +74 -0
  1097. package/src/extensions/vote/__generated__/Vote/read/state.ts +126 -0
  1098. package/src/extensions/vote/__generated__/Vote/read/token.ts +72 -0
  1099. package/src/extensions/vote/__generated__/Vote/read/votingDelay.ts +72 -0
  1100. package/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts +72 -0
  1101. package/src/extensions/vote/__generated__/Vote/write/castVote.ts +151 -0
  1102. package/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts +191 -0
  1103. package/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts +173 -0
  1104. package/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts +185 -0
  1105. package/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts +215 -0
  1106. package/src/extensions/vote/__generated__/Vote/write/execute.ts +180 -0
  1107. package/src/extensions/vote/__generated__/Vote/write/propose.ts +181 -0
  1108. package/src/extensions/vote/__generated__/Vote/write/relay.ts +160 -0
  1109. package/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts +147 -0
  1110. package/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts +143 -0
  1111. package/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts +143 -0
  1112. package/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts +147 -0
  1113. package/src/extensions/vote/read/quorumNumeratorByBlockNumber.ts +30 -0
  1114. package/src/gas/fee-data.ts +4 -0
  1115. package/src/react/core/hooks/others/useProfiles.ts +36 -0
  1116. package/src/react/core/hooks/others/useWalletBalance.ts +6 -2
  1117. package/src/react/core/utils/storage.ts +1 -1
  1118. package/src/react/core/utils/{socialIcons.ts → walletIcon.ts} +25 -0
  1119. package/src/react/native/ui/components/TokenIcon.tsx +1 -1
  1120. package/src/react/native/ui/connect/ConnectButton.tsx +14 -9
  1121. package/src/react/native/ui/connect/ConnectModal.tsx +1 -1
  1122. package/src/react/native/ui/connect/InAppWalletUI.tsx +1 -1
  1123. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +13 -8
  1124. package/src/react/web/ui/ConnectWallet/Details.tsx +45 -11
  1125. package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +3 -1
  1126. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +13 -8
  1127. package/src/react/web/ui/ConnectWallet/Modal/screen.tsx +1 -1
  1128. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +1 -1
  1129. package/src/react/web/ui/ConnectWallet/icons/AddUserIcon.tsx +25 -0
  1130. package/src/react/web/ui/ConnectWallet/icons/MultiUserIcon.tsx +25 -0
  1131. package/src/react/web/ui/ConnectWallet/locale/de.ts +6 -0
  1132. package/src/react/web/ui/ConnectWallet/locale/en.ts +6 -0
  1133. package/src/react/web/ui/ConnectWallet/locale/es.ts +6 -0
  1134. package/src/react/web/ui/ConnectWallet/locale/fr.ts +6 -0
  1135. package/src/react/web/ui/ConnectWallet/locale/ja.ts +6 -0
  1136. package/src/react/web/ui/ConnectWallet/locale/kr.ts +6 -0
  1137. package/src/react/web/ui/ConnectWallet/locale/tl.ts +6 -1
  1138. package/src/react/web/ui/ConnectWallet/locale/types.ts +6 -0
  1139. package/src/react/web/ui/ConnectWallet/locale/vi.ts +6 -0
  1140. package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +5 -1
  1141. package/src/react/web/ui/ConnectWallet/screens/LinkProfileScreen.tsx +88 -0
  1142. package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx +119 -0
  1143. package/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx +20 -4
  1144. package/src/react/web/ui/ConnectWallet/screens/types.ts +3 -1
  1145. package/src/react/web/ui/PayEmbed.tsx +14 -9
  1146. package/src/react/web/ui/components/Spinner.tsx +1 -1
  1147. package/src/react/web/ui/components/TokenIcon.tsx +1 -1
  1148. package/src/react/web/ui/components/WalletImage.tsx +7 -41
  1149. package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +16 -4
  1150. package/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx +14 -6
  1151. package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +17 -5
  1152. package/src/react/web/wallets/in-app/InAppWalletFormUI.tsx +13 -12
  1153. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +20 -15
  1154. package/src/react/web/wallets/shared/OTPLoginUI.tsx +49 -54
  1155. package/src/react/web/wallets/shared/PassKeyLogin.tsx +59 -20
  1156. package/src/react/web/wallets/shared/SocialLogin.tsx +46 -14
  1157. package/src/react/web/wallets/shared/locale/en.ts +1 -1
  1158. package/src/react/web/wallets/shared/oauthSignIn.ts +2 -2
  1159. package/src/reactive/store.ts +3 -0
  1160. package/src/transaction/serialize-transaction.test.ts +13 -9
  1161. package/src/transaction/serialize-transaction.ts +31 -258
  1162. package/src/version.ts +1 -1
  1163. package/src/wallets/coinbase/coinbase-wallet.ts +9 -1
  1164. package/src/wallets/create-wallet.ts +9 -1
  1165. package/src/wallets/ecosystem/types.ts +2 -10
  1166. package/src/wallets/in-app/core/authentication/getLoginPath.ts +22 -3
  1167. package/src/wallets/in-app/core/authentication/linkAccount.ts +96 -0
  1168. package/src/wallets/in-app/core/authentication/siwe.ts +65 -0
  1169. package/src/wallets/in-app/core/authentication/{type.ts → types.ts} +18 -1
  1170. package/src/wallets/in-app/core/interfaces/connector.ts +14 -5
  1171. package/src/wallets/in-app/core/wallet/ecosystem-core.ts +10 -1
  1172. package/src/wallets/in-app/core/wallet/in-app-core.ts +68 -3
  1173. package/src/wallets/in-app/core/wallet/index.ts +2 -2
  1174. package/src/wallets/in-app/core/wallet/profiles.ts +74 -0
  1175. package/src/wallets/in-app/core/wallet/types.ts +1 -1
  1176. package/src/wallets/in-app/native/auth/index.ts +2 -2
  1177. package/src/wallets/in-app/native/auth/native-auth.ts +70 -183
  1178. package/src/wallets/in-app/native/helpers/api/fetchers.ts +1 -1
  1179. package/src/wallets/in-app/native/helpers/auth/logout.ts +1 -1
  1180. package/src/wallets/in-app/native/helpers/auth/middleware.ts +1 -1
  1181. package/src/wallets/in-app/native/helpers/storage/local.ts +1 -1
  1182. package/src/wallets/in-app/native/helpers/types.ts +1 -1
  1183. package/src/wallets/in-app/native/helpers/wallet/creation.ts +1 -1
  1184. package/src/wallets/in-app/native/helpers/wallet/retrieval.ts +1 -1
  1185. package/src/wallets/in-app/native/native-connector.ts +96 -35
  1186. package/src/wallets/in-app/web/lib/auth/abstract-login.ts +4 -14
  1187. package/src/wallets/in-app/web/lib/auth/base-login.ts +75 -177
  1188. package/src/wallets/in-app/web/lib/auth/iframe-auth.ts +37 -18
  1189. package/src/wallets/in-app/web/lib/auth/index.ts +2 -2
  1190. package/src/wallets/in-app/web/lib/auth/oauth.ts +4 -4
  1191. package/src/wallets/in-app/web/lib/auth/otp.ts +114 -0
  1192. package/src/wallets/in-app/web/lib/auth/passkeys.ts +1 -1
  1193. package/src/wallets/in-app/web/lib/get-url-token.ts +4 -3
  1194. package/src/wallets/in-app/web/lib/in-app-account.ts +1 -1
  1195. package/src/wallets/in-app/web/lib/web-connector.ts +93 -37
  1196. package/src/wallets/in-app/web/types.ts +1 -1
  1197. package/src/wallets/interfaces/wallet.ts +1 -0
  1198. package/src/wallets/manager/index.ts +51 -5
  1199. package/src/wallets/native/create-wallet.ts +9 -1
  1200. package/src/wallets/smart/smart-wallet-integration.test.ts +3 -3
  1201. package/src/wallets/smart/smart-wallet.ts +9 -1
  1202. package/src/wallets/types.ts +6 -1
  1203. package/dist/cjs/react/core/utils/socialIcons.js.map +0 -1
  1204. package/dist/cjs/wallets/in-app/core/authentication/type.js.map +0 -1
  1205. package/dist/esm/react/core/utils/socialIcons.js.map +0 -1
  1206. package/dist/esm/wallets/in-app/core/authentication/type.js.map +0 -1
  1207. package/dist/types/react/core/utils/socialIcons.d.ts.map +0 -1
  1208. package/dist/types/wallets/in-app/core/authentication/type.d.ts.map +0 -1
@@ -1,11 +1,10 @@
1
- import { serializeTransaction as _serializeTransaction, assertTransactionEIP1559, assertTransactionEIP2930, assertTransactionLegacy, serializeAccessList, toRlp, } from "viem";
2
- import { trim } from "../utils/encoding/helpers/trim.js";
3
- import { toHex } from "../utils/encoding/hex.js";
1
+ import { serializeTransaction as _serializeTransaction, } from "viem";
4
2
  /**
5
- * Serializes a legacy, EIP-1559, EIP-2930, or EIP-4844 transaction object.
3
+ * Serializes a legacy, EIP-1559, EIP-2930, EIP-4844, or EIP-7702 transaction object.
6
4
  *
7
5
  * @param options - The serialization options.
8
- * @param options.transaction - The transaction object to be serialized, including the signature parameters if necessary.
6
+ * @param options.transaction - The transaction object to be serialized.
7
+ * @param [options.signature] - The signature to include with the transaction, if necessary.
9
8
  * @returns The serialized transaction.
10
9
  * @throws An error if the provided transaction object is invalid.
11
10
  * @transaction
@@ -22,143 +21,23 @@ import { toHex } from "../utils/encoding/hex.js";
22
21
  */
23
22
  export function serializeTransaction(options) {
24
23
  const { transaction } = options;
25
- if (transaction.type === "eip4844" || // explicit type checks required for viem parity
26
- typeof transaction.blobs !== "undefined" ||
27
- typeof transaction.blobVersionedHashes !== "undefined" ||
28
- typeof transaction.maxFeePerBlobGas !== "undefined" ||
29
- typeof transaction.sidecars !== "undefined") {
30
- // default to viem's 4844 serialization until we have blob utilities
31
- return _serializeTransaction(transaction);
32
- }
33
- if (transaction.type === "eip1559" ||
34
- typeof transaction.maxFeePerGas !== "undefined" ||
35
- typeof transaction.maxPriorityFeePerGas !== "undefined") {
36
- return serializeEIP1559Transaction({
37
- transaction,
38
- });
39
- }
40
- if (transaction.type === "eip2930" ||
41
- (typeof transaction.gasPrice !== "undefined" &&
42
- typeof transaction.accessList !== "undefined")) {
43
- return serializeEIP2930Transaction({
44
- transaction,
45
- });
46
- }
47
- if (transaction.type === "legacy" ||
48
- typeof transaction.gasPrice !== "undefined") {
49
- return serializeTransactionLegacy({
50
- transaction: transaction,
51
- });
52
- }
53
- throw new Error(`Invalid transaction to serialize.\n\n${JSON.stringify(transaction, (_, v) => (typeof v === "bigint" ? `${v.toString()}n` : v), 2)}`);
54
- }
55
- function serializeEIP1559Transaction(options) {
56
- assertTransactionEIP1559(options.transaction);
57
- const { transaction: { chainId, gas, nonce, to, value, maxFeePerGas, maxPriorityFeePerGas, accessList, data, r, s, v, yParity, }, } = options;
58
- const serializedAccessList = serializeAccessList(accessList);
59
- const serializedTransaction = [
60
- toHex(chainId),
61
- nonce ? toHex(nonce) : "0x",
62
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
63
- maxFeePerGas ? toHex(maxFeePerGas) : "0x",
64
- gas ? toHex(gas) : "0x",
65
- // To fix when migrating to our own version of TransactionSerializable (the viem type is downgraded from Address to string when importing)
66
- (to ?? "0x"),
67
- value ? toHex(value) : "0x",
68
- data ?? "0x",
69
- serializedAccessList,
70
- ...toYParitySignatureArray({ r, s, v, yParity }),
71
- ];
72
- return `0x02${toRlp(serializedTransaction).slice(2)}`;
73
- }
74
- function serializeEIP2930Transaction(options) {
75
- assertTransactionEIP2930(options.transaction);
76
- const { transaction: { chainId, gas, gasPrice, nonce, to, value, accessList, data, r, s, v, yParity, }, } = options;
77
- const serializedAccessList = serializeAccessList(accessList);
78
- const serializedTransaction = [
79
- toHex(chainId),
80
- nonce ? toHex(nonce) : "0x",
81
- gasPrice ? toHex(gasPrice) : "0x",
82
- gas ? toHex(gas) : "0x",
83
- (to ?? "0x"),
84
- value ? toHex(value) : "0x",
85
- data ?? "0x",
86
- serializedAccessList,
87
- ...toYParitySignatureArray({ r, s, v, yParity }),
88
- ];
89
- return `0x01${toRlp(serializedTransaction).slice(2)}`;
90
- }
91
- function serializeTransactionLegacy(options) {
92
- assertTransactionLegacy(options.transaction);
93
- const { chainId = 0, gas, data, nonce, to, value, gasPrice, r, s, v, } = options.transaction;
94
- let serializedTransaction = [
95
- nonce ? toHex(nonce) : "0x",
96
- gasPrice ? toHex(gasPrice) : "0x",
97
- gas ? toHex(gas) : "0x",
98
- (to ?? "0x"),
99
- value ? toHex(value) : "0x",
100
- data ?? "0x",
101
- ];
102
- if (typeof v !== "undefined") {
103
- const v_ = (() => {
104
- // EIP-155 (inferred chainId)
105
- if (v >= 35n) {
106
- const inferredChainId = (v - 35n) / 2n;
107
- if (inferredChainId > 0)
108
- return v;
109
- return 27n + (v === 35n ? 0n : 1n);
110
- }
111
- // EIP-155 (explicit chainId)
112
- if (chainId > 0)
113
- return BigInt(chainId * 2) + BigInt(35n + v - 27n);
114
- // Pre-EIP-155 (no chainId)
115
- const v_ = 27n + (v === 27n ? 0n : 1n);
116
- if (v !== v_)
117
- throw new Error(`Invalid legacy signature value v: ${v}`);
118
- return v_;
119
- })();
120
- if (typeof r === "undefined")
121
- throw new Error(`Invalid legacy signature value r: ${r}`);
122
- if (typeof s === "undefined")
123
- throw new Error(`Invalid legacy signature value s: ${s}`);
124
- serializedTransaction = [
125
- ...serializedTransaction,
126
- toHex(v_),
127
- r === "0x00" ? "0x" : r,
128
- s === "0x00" ? "0x" : s,
129
- ];
130
- }
131
- else if (chainId > 0) {
132
- serializedTransaction = [
133
- ...serializedTransaction,
134
- toHex(chainId),
135
- "0x",
136
- "0x",
137
- ];
138
- }
139
- return toRlp(serializedTransaction);
140
- }
141
- export function toYParitySignatureArray(signature) {
142
- const { v, yParity } = signature;
143
- if (typeof signature.r === "undefined")
144
- return [];
145
- if (typeof signature.s === "undefined")
146
- return [];
147
- if (typeof v === "undefined" && typeof yParity === "undefined")
148
- return [];
149
- const r = trim(signature.r);
150
- const s = trim(signature.s);
151
- const yParity_ = (() => {
152
- if (yParity === 1 || yParity === 0)
153
- return yParity ? toHex(1) : "0x";
154
- if (typeof yParity !== "undefined")
155
- throw new Error(`Invalid signature value for yParity: ${yParity}`);
156
- if (v === 0n || v === 27n)
157
- return "0x";
158
- if (v === 1n || v === 28n)
159
- return toHex(1);
160
- throw new Error(`Invalid signature value v: ${v}`);
24
+ // This is to maintain compatibility with our old interface (including the signature in the transaction object)
25
+ const signature = (() => {
26
+ if (options.signature)
27
+ return options.signature;
28
+ if (transaction.v === undefined && transaction.yParity === undefined) {
29
+ return undefined;
30
+ }
31
+ if (transaction.r === undefined || transaction.s === undefined) {
32
+ throw new Error("Invalid signature provided with transaction");
33
+ }
34
+ return {
35
+ v: transaction.v,
36
+ r: transaction.r,
37
+ s: transaction.s,
38
+ yParity: transaction.yParity,
39
+ };
161
40
  })();
162
- return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
41
+ return _serializeTransaction(transaction, signature); // Trust the options type-checking did its job and that the converted signature mirrors that type
163
42
  }
164
43
  //# sourceMappingURL=serialize-transaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"serialize-transaction.js","sourceRoot":"","sources":["../../../src/transaction/serialize-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAYL,oBAAoB,IAAI,qBAAqB,EAC7C,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,m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AAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACrE,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,WAAW,CAAC,CAAC,KAAK,SAAS,IAAI,WAAW,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YAC/D,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACjE,CAAC;QAED,OAAO;YACL,CAAC,EAAE,WAAW,CAAC,CAAC;YAChB,CAAC,EAAE,WAAW,CAAC,CAAC;YAChB,CAAC,EAAE,WAAW,CAAC,CAAC;YAChB,OAAO,EAAE,WAAW,CAAC,OAAO;SAC7B,CAAC;IACJ,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO,qBAAqB,CAAC,WAAW,EAAE,SAAkC,CAAC,CAAC,CAAC,iGAAiG;AAClL,CAAC"}
@@ -1,2 +1,2 @@
1
- export const version = "5.44.2-nightly-7c2f616dfe6880beefa4eb48f8dcbce6bba9461a-20240808000401";
1
+ export const version = "5.45.0";
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,wEAAwE,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
@@ -2,6 +2,7 @@
2
2
  * internal helper functions
3
3
  */
4
4
  import { trackConnect } from "../../analytics/track.js";
5
+ import { getCachedChainIfExists } from "../../chains/utils.js";
5
6
  import { COINBASE } from "../constants.js";
6
7
  import { createWalletEmitter } from "../wallet-emitter.js";
7
8
  /**
@@ -34,7 +35,13 @@ export function coinbaseWalletSDK(args) {
34
35
  return {
35
36
  id: COINBASE,
36
37
  subscribe: emitter.subscribe,
37
- getChain: () => chain,
38
+ getChain() {
39
+ if (!chain) {
40
+ return undefined;
41
+ }
42
+ chain = getCachedChainIfExists(chain.id) || chain;
43
+ return chain;
44
+ },
38
45
  getConfig: () => createOptions,
39
46
  getAccount: () => account,
40
47
  autoConnect: async (options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"coinbase-wallet.js","sourceRoot":"","sources":["../../../../src/wallets/coinbase/coinbase-wallet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAIjC;IACC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAC/B,MAAM,OAAO,GAAG,mBAAmB,EAAmB,CAAC;IACvD,IAAI,OAAO,GAAwB,SAAS,CAAC;IAC7C,IAAI,KAAK,GAAsB,SAAS,CAAC;IAEzC,SAAS,KAAK;QACZ,OAAO,GAAG,SAAS,CAAC;QACpB,KAAK,GAAG,SAAS,CAAC;IACpB,CAAC;IAED,IAAI,gBAAgB,GAAG,KAAK,IAAI,EAAE,GAAE,CAAC,CAAC;IAEtC,IAAI,iBAAiB,GAAG,KAAK,EAAE,QAAe,EAAE,EAAE;QAChD,KAAK,GAAG,QAAQ,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAC/C,cAAc,EACd,CAAC,QAAQ,EAAE,EAAE;QACX,KAAK,GAAG,QAAQ,CAAC;IACnB,CAAC,CACF,CAAC;IAEF,MAAM,qBAAqB,GAAG,OAAO,CAAC,SAAS,CAAC,YAAY,EAAE,GAAG,EAAE;QACjE,KAAK,EAAE,CAAC;QACR,uBAAuB,EAAE,CAAC;QAC1B,qBAAqB,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC,QAAQ,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,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,UAAU,EAAE,KAAK,IAAI,EAAE;YACrB,KAAK,EAAE,CAAC;YACR,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC;QACD,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;YAC9B,MAAM,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QACpC,CAAC;QACD,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBAC5B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;gBAC9C,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { trackConnect } from "../analytics/track.js";
2
+ import { getCachedChainIfExists } from "../chains/utils.js";
2
3
  import { webLocalStorage } from "../utils/storage/webStorage.js";
3
4
  import { isMobile } from "../utils/web/isMobile.js";
4
5
  import { openWindow } from "../utils/web/openWindow.js";
@@ -170,7 +171,13 @@ export function createWallet(...args) {
170
171
  id,
171
172
  subscribe: emitter.subscribe,
172
173
  getConfig: () => args[1],
173
- getChain: () => chain,
174
+ getChain() {
175
+ if (!chain) {
176
+ return undefined;
177
+ }
178
+ chain = getCachedChainIfExists(chain.id) || chain;
179
+ return chain;
180
+ },
174
181
  getAccount: () => account,
175
182
  autoConnect: async (options) => {
176
183
  const { injectedProvider } = await import("./injected/mipdStore.js");
@@ -1 +1 @@
1
- {"version":3,"file":"create-wallet.js","sourceRoot":"","sources":["../../../src/wallets/create-wallet.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAA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B,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC;AACvC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
2
- export const getSocialAuthLoginPath = ({ authOption, client, ecosystem, mode = "popup", redirectUrl, }) => {
2
+ export const getLoginUrl = ({ authOption, client, ecosystem, mode = "popup", redirectUrl, }) => {
3
3
  let baseUrl = `${getThirdwebBaseUrl("inAppWallet")}/api/2024-05-05/login/${authOption}?clientId=${client.clientId}`;
4
4
  if (ecosystem?.partnerId) {
5
5
  baseUrl = `${baseUrl}&ecosystemId=${ecosystem.id}&ecosystemPartnerId=${ecosystem.partnerId}`;
@@ -21,4 +21,14 @@ export const getSocialAuthLoginPath = ({ authOption, client, ecosystem, mode = "
21
21
  }
22
22
  return baseUrl;
23
23
  };
24
+ export const getLoginCallbackUrl = ({ authOption, client, ecosystem, }) => {
25
+ let baseUrl = `${getThirdwebBaseUrl("inAppWallet")}/api/2024-05-05/login/${authOption}/callback?clientId=${client.clientId}`;
26
+ if (ecosystem?.partnerId) {
27
+ baseUrl = `${baseUrl}&ecosystemId=${ecosystem.id}&ecosystemPartnerId=${ecosystem.partnerId}`;
28
+ }
29
+ else if (ecosystem) {
30
+ baseUrl = `${baseUrl}&ecosystemId=${ecosystem.id}`;
31
+ }
32
+ return baseUrl;
33
+ };
24
34
  //# sourceMappingURL=getLoginPath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLoginPath.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/getLoginPath.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAIlE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,UAAU,EACV,MAAM,EACN,SAAS,EACT,IAAI,GAAG,OAAO,EACd,WAAW,GAOZ,EAAE,EAAE;IACH,IAAI,OAAO,GAAG,GAAG,kBAAkB,CAAC,aAAa,CAAC,yBAAyB,UAAU,aAAa,MAAM,CAAC,QAAQ,EAAE,CAAC;IACpH,IAAI,SAAS,EAAE,SAAS,EAAE,CAAC;QACzB,OAAO,GAAG,GAAG,OAAO,gBAAgB,SAAS,CAAC,EAAE,uBAAuB,SAAS,CAAC,SAAS,EAAE,CAAC;IAC/F,CAAC;SAAM,IAAI,SAAS,EAAE,CAAC;QACrB,OAAO,GAAG,GAAG,OAAO,gBAAgB,SAAS,CAAC,EAAE,EAAE,CAAC;IACrD,CAAC;IAED,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;QACxB,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC,WAAW,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC1E,oBAAoB,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,IAAI,OAAO,CAAC,CAAC;QAC5E,oBAAoB,CAAC,YAAY,CAAC,GAAG,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAClE,OAAO,GAAG,GAAG,OAAO,gBAAgB,kBAAkB,CAAC,oBAAoB,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;IAC5F,CAAC;IAED,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,GAAG,GAAG,OAAO,gBAAgB,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;IACxE,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
1
+ {"version":3,"file":"getLoginPath.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/getLoginPath.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAIlE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,UAAU,EACV,MAAM,EACN,SAAS,EACT,I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GAAG,kBAAkB,CAAC,aAAa,CAAC,yBAAyB,UAAU,sBAAsB,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7H,IAAI,SAAS,EAAE,SAAS,EAAE,CAAC;QACzB,OAAO,GAAG,GAAG,OAAO,gBAAgB,SAAS,CAAC,EAAE,uBAAuB,SAAS,CAAC,SAAS,EAAE,CAAC;IAC/F,CAAC;SAAM,IAAI,SAAS,EAAE,CAAC;QACrB,OAAO,GAAG,GAAG,OAAO,gBAAgB,SAAS,CAAC,EAAE,EAAE,CAAC;IACrD,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
2
+ /**
3
+ * @description
4
+ * Links a new account to the current one using an auth token.
5
+ * For the public-facing API, use `wallet.linkProfile` instead.
6
+ *
7
+ * @internal
8
+ */
9
+ export async function linkAccount({ client, tokenToLink, }) {
10
+ const IN_APP_URL = getThirdwebBaseUrl("inAppWallet");
11
+ const currentAccountToken = localStorage.getItem(`walletToken-${client.clientId}`);
12
+ if (!currentAccountToken) {
13
+ throw new Error("Failed to link account, no user logged in");
14
+ }
15
+ const headers = {
16
+ "Content-Type": "application/json",
17
+ Authorization: `Bearer iaw-auth-token:${currentAccountToken}`,
18
+ "x-thirdweb-client-id": client.clientId,
19
+ };
20
+ const linkedDetailsResp = await fetch(`${IN_APP_URL}/api/2024-05-05/account/connect`, {
21
+ method: "POST",
22
+ headers,
23
+ body: JSON.stringify({
24
+ accountAuthTokenToConnect: tokenToLink,
25
+ }),
26
+ });
27
+ if (!linkedDetailsResp.ok) {
28
+ const body = await linkedDetailsResp.json();
29
+ throw new Error(body.message || "Failed to link account.");
30
+ }
31
+ const { linkedAccounts } = await linkedDetailsResp.json();
32
+ return (linkedAccounts ?? []);
33
+ }
34
+ /**
35
+ * @description
36
+ * Gets the linked accounts for the current user.
37
+ * For the public-facing API, use `wallet.getProfiles` instead.
38
+ *
39
+ * @internal
40
+ */
41
+ export async function getLinkedProfilesInternal({ client, }) {
42
+ const IN_APP_URL = getThirdwebBaseUrl("inAppWallet");
43
+ const currentAccountToken = localStorage.getItem(`walletToken-${client.clientId}`);
44
+ if (!currentAccountToken) {
45
+ throw new Error("Failed to get linked accounts, no user logged in");
46
+ }
47
+ const headers = {
48
+ "Content-Type": "application/json",
49
+ Authorization: `Bearer iaw-auth-token:${currentAccountToken}`,
50
+ "x-thirdweb-client-id": client.clientId,
51
+ };
52
+ const linkedAccountsResp = await fetch(`${IN_APP_URL}/api/2024-05-05/accounts`, {
53
+ method: "GET",
54
+ headers,
55
+ });
56
+ if (!linkedAccountsResp.ok) {
57
+ const body = await linkedAccountsResp.json();
58
+ throw new Error(body.message || "Failed to get linked accounts.");
59
+ }
60
+ const { linkedAccounts } = await linkedAccountsResp.json();
61
+ return (linkedAccounts ?? []);
62
+ }
63
+ //# sourceMappingURL=linkAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkAccount.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGlE;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,EAChC,MAAM,EACN,WAAW,GAIZ;IACC,MAAM,UAAU,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACrD,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,CAC9C,eAAe,MAAM,CAAC,QAAQ,EAAE,CACjC,CAAC;IAEF,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,OAAO,GAA2B;QACtC,cAAc,EAAE,kBAAkB;QAClC,aAAa,EAAE,yBAAyB,mBAAmB,EAAE;QAC7D,sBAAsB,EAAE,MAAM,CAAC,QAAQ;KACxC,CAAC;IA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IAAI,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,gCAAgC,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,kBAAkB,CAAC,IAAI,EAAE,CAAC;IAE3D,OAAO,CAAC,cAAc,IAAI,EAAE,CAAqB,CAAC;AACpD,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { signLoginPayload } from "../../../../auth/core/sign-login-payload.js";
2
+ import { getClientFetch } from "../../../../utils/fetch.js";
3
+ import { createWallet } from "../../../../wallets/create-wallet.js";
4
+ import { getLoginCallbackUrl, getLoginUrl } from "./getLoginPath.js";
5
+ /**
6
+ * @internal
7
+ */
8
+ export async function siweAuthenticate(args) {
9
+ const wallet = createWallet(args.walletId);
10
+ const account = await wallet.connect({ client: args.client });
11
+ const clientFetch = getClientFetch(args.client, args.ecosystem);
12
+ const payload = await (async () => {
13
+ const path = getLoginUrl({
14
+ authOption: "siwe",
15
+ client: args.client,
16
+ ecosystem: args.ecosystem,
17
+ });
18
+ const res = await clientFetch(`${path}&address=${account.address}&chainId=${args.chainId}`);
19
+ if (!res.ok)
20
+ throw new Error("Failed to generate SIWE login payload");
21
+ return (await res.json());
22
+ })();
23
+ const { signature } = await signLoginPayload({ payload, account });
24
+ const authResult = await (async () => {
25
+ const path = getLoginCallbackUrl({
26
+ authOption: "siwe",
27
+ client: args.client,
28
+ ecosystem: args.ecosystem,
29
+ });
30
+ const res = await clientFetch(`${path}&signature=${signature}&payload=${encodeURIComponent(payload)}`, {
31
+ method: "POST",
32
+ headers: {
33
+ "Content-Type": "application/json",
34
+ },
35
+ body: JSON.stringify({
36
+ signature,
37
+ payload,
38
+ }),
39
+ });
40
+ if (!res.ok)
41
+ throw new Error("Failed to verify SIWE signature");
42
+ return (await res.json());
43
+ })();
44
+ return authResult;
45
+ }
46
+ //# sourceMappingURL=siwe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"siwe.js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,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE;QACnC,MAAM,IAAI,GAAG,mBAAmB,CAAC;YAC/B,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,WAAW,CAC3B,GAAG,IAAI,cAAc,SAAS,YAAY,kBAAkB,CAAC,OAAO,CAAC,EAAE,EACvE;YACE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,SAAS;gBACT,OAAO;aACR,CAAC;SACH,CACF,CAAC;QAEF,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QAEhE,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAA+C,CAAC;IAC1E,CAAC,CAAC,EAAE,CAAC;IACL,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -27,4 +27,4 @@ export var UserWalletStatus;
27
27
  UserWalletStatus["LOGGED_IN_NEW_DEVICE"] = "Logged In, New Device";
28
28
  UserWalletStatus["LOGGED_IN_WALLET_INITIALIZED"] = "Logged In, Wallet Initialized";
29
29
  })(UserWalletStatus || (UserWalletStatus = {}));
30
- //# sourceMappingURL=type.js.map
30
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/types.ts"],"names":[],"mappings":"AAsDA,gEAAgE;AAChE,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,wDAA6B,CAAA;IAC7B,wDAA6B,CAAA;AAC/B,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,sCAAsB,CAAA;IACtB,wCAAwB,CAAA;IACxB,2DAA2C,CAAA;IAC3C,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;AACvB,CAAC,EAZW,YAAY,KAAZ,YAAY,QAYvB;AA2ED,sBAAsB;AACtB,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,sFAAkE,CAAA;IAClE,kEAA8C,CAAA;IAC9C,kFAA8D,CAAA;AAChE,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B"}
@@ -1,4 +1,5 @@
1
1
  import { trackConnect } from "../../../../analytics/track.js";
2
+ import { getCachedChainIfExists } from "../../../../chains/utils.js";
2
3
  import { createWalletEmitter } from "../../../wallet-emitter.js";
3
4
  import { getOrCreateInAppWalletConnector } from "./in-app-core.js";
4
5
  /**
@@ -14,7 +15,13 @@ export function createEcosystemWallet(args) {
14
15
  return {
15
16
  id,
16
17
  subscribe: emitter.subscribe,
17
- getChain: () => chain,
18
+ getChain() {
19
+ if (!chain) {
20
+ return undefined;
21
+ }
22
+ chain = getCachedChainIfExists(chain.id) || chain;
23
+ return chain;
24
+ },
18
25
  getConfig: () => createOptions,
19
26
  getAccount: () => account,
20
27
  autoConnect: async (options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ecosystem-core.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/ecosystem-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAI9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AACH,MAAM,U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,SAAS,GAAG,MAAM,+BAA+B,CACrD,MAAM,EACN,gBAAgB,EAChB;oBACE,EAAE;oBACF,SAAS,EAAE,aAAa,EAAE,SAAS;iBACpC,CACF,CAAC;gBACF,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,CAAC;gBACxC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;oBACpB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;gBACtC,CAAC;YACH,CAAC;YACD,OAAO,GAAG,SAAS,CAAC;YACpB,KAAK,GAAG,SAAS,CAAC;YAClB,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACxC,CAAC;QACD,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;YAC9B,KAAK,GAAG,QAAQ,CAAC;YACjB,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;QACzC,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { trackConnect } from "../../../../analytics/track.js";
2
+ import { getCachedChainIfExists } from "../../../../chains/utils.js";
2
3
  import { createWalletEmitter } from "../../../wallet-emitter.js";
4
+ import { getLinkedProfilesInternal, linkAccount as linkProfileWithToken, } from "../authentication/linkAccount.js";
3
5
  const connectorCache = new WeakMap();
4
6
  /**
5
7
  * @internal
@@ -25,9 +27,41 @@ export function createInAppWallet(args) {
25
27
  return {
26
28
  id: "inApp",
27
29
  subscribe: emitter.subscribe,
28
- getChain: () => chain,
30
+ getChain() {
31
+ if (!chain) {
32
+ return undefined;
33
+ }
34
+ chain = getCachedChainIfExists(chain.id) || chain;
35
+ return chain;
36
+ },
29
37
  getConfig: () => createOptions,
30
38
  getAccount: () => account,
39
+ /**
40
+ * @description
41
+ * Gets the linked profiles for the current wallet.
42
+ * This method is only available for in-app or ecosystem wallets.
43
+ *
44
+ * @returns An array of accounts user profiles linked to the current wallet.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * import { inAppWallet } from "thirdweb/wallets";
49
+ *
50
+ * const wallet = inAppWallet();
51
+ * wallet.connect({ strategy: "google" });
52
+ *
53
+ * const profiles = wallet.getProfiles();
54
+ *
55
+ * console.log(profiles[0].type);
56
+ * console.log(profiles[0].details.email);
57
+ * ```
58
+ */
59
+ getProfiles: async () => {
60
+ if (!client) {
61
+ return [];
62
+ }
63
+ return getLinkedProfilesInternal({ client });
64
+ },
31
65
  autoConnect: async (options) => {
32
66
  const { autoConnectInAppWallet } = await import("./index.js");
33
67
  const connector = await getOrCreateInAppWalletConnector(options.client, connectorFactory);
@@ -91,6 +125,18 @@ export function createInAppWallet(args) {
91
125
  }
92
126
  emitter.emit("chainChanged", newChain);
93
127
  },
128
+ // This is not included on the global interface but is force-resolved in linkProfile
129
+ linkProfile: async (options) => {
130
+ if (!client) {
131
+ throw new Error("No client found, please connect the wallet before linking a profile");
132
+ }
133
+ const connector = await getOrCreateInAppWalletConnector(client, connectorFactory);
134
+ const { storedToken } = await connector.authenticate(options);
135
+ return await linkProfileWithToken({
136
+ client,
137
+ tokenToLink: storedToken.cookieString,
138
+ });
139
+ },
94
140
  };
95
141
  }
96
142
  //# sourceMappingURL=in-app-core.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"in-app-core.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/in-app-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAI9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAKjE,MAAM,cAAc,GAAG,IAAI,OAAO,EAG/B,CAAC;AAEJ;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,MAAsB,EACtB,gBAAqE,EACrE,SAAqB;IAErB,MAAM,GAAG,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAClC,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,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AC9B,IAAI,aAAa,EAAE,YAAY,IAAI,MAAM,IAAI,OAAO,EAAE,CAAC;gBACrD,iFAAiF;gBACjF,MAAM,EAAE,sBAAsB,EAAE,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;gBAC9D,MAAM,SAAS,GAAG,MAAM,+BAA+B,CACrD,MAAM,EACN,gBAAgB,CACjB,CAAC;gBACF,MAAM,CAAC,gBAAgB,EAAE,cAAc,CAAC,GAAG,MAAM,sBAAsB,CACrE;oBACE,KAAK,EAAE,QAAQ;oBACf,MAAM;iBACP,EACD,aAAa,EACb,SAAS,CACV,CAAC;gBACF,OAAO,GAAG,gBAAgB,CAAC;gBAC3B,KAAK,GAAG,cAAc,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACN,mCAAmC;gBACnC,KAAK,GAAG,QAAQ,CAAC;YACnB,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;QACzC,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"in-app-core.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/in-app-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EACL,yBAAyB,EACzB,WAAW,IAAI,oBAAoB,GACpC,MAAM,kCAAkC,CAAC;AAQ1C,MAAM,cAAc,GAAG,IAAI,OAAO,EAG/B,CAAC;AAEJ;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,MAAsB,EACtB,gBAAqE,EACrE,SAAqB;IAErB,MAAM,GAAG,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAClC,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5B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AS,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAC9D,OAAO,MAAM,oBAAoB,CAAC;gBAChC,MAAM;gBACN,WAAW,EAAE,WAAW,CAAC,YAAY;aACtC,CAAC,CAAC;QACL,CAAC;KACiB,CAAC;AACvB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ethereum } from "../../../../chains/chain-definitions/ethereum.js";
2
2
  import { socialAuthOptions, } from "../../../../wallets/types.js";
3
- import { UserWalletStatus } from "../authentication/type.js";
3
+ import { UserWalletStatus } from "../authentication/types.js";
4
4
  /**
5
5
  * Checks if the provided wallet is an in-app wallet.
6
6
  *
@@ -24,7 +24,7 @@ export async function connectInAppWallet(options, createOptions, connector) {
24
24
  // If we don't have authenticateWithRedirect then it's likely react native, so the default is to redirect and we can carry on
25
25
  // IF WE EVER ADD MORE CONNECTOR TYPES, this could cause redirect to be ignored despite being specified
26
26
  // TODO: In V6, make everything redirect auth
27
- const authResult = await connector.authenticate(options);
27
+ const authResult = await connector.connect(options);
28
28
  const authAccount = authResult.user.account;
29
29
  if (createOptions &&
30
30
  "smartAccount" in createOptions &&
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAG5E,OAAO,EAEL,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAwB;IAExB,OAAO,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,MAAM,CAAC,EAAE,KAAK,UAAU,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAE6C,EAC7C,aAE0C,EAC1C,SAAyB;IAEzB,IACE,aAAa,EAAE,IAAI,EAAE,IA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