@seedprotocol/publish 0.6.9 → 0.6.10

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 (312) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/{chainConfig-CA1Hrrjg.js → chainConfig-DWzoOtkS.js} +394 -328
  4. package/dist/chainConfig-DWzoOtkS.js.map +1 -0
  5. package/dist/config.d.ts +5 -4
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/ensureAutomationSessionKey-h3zOmDr5.js +84 -0
  8. package/dist/ensureAutomationSessionKey-h3zOmDr5.js.map +1 -0
  9. package/dist/{ensureModularPublishBootstrap-DGBKVGg5.js → ensureModularPublishBootstrap-BImiIFJe.js} +9 -10
  10. package/dist/{ensureModularPublishBootstrap-5HJDqJJM.js.map → ensureModularPublishBootstrap-BImiIFJe.js.map} +1 -1
  11. package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js → ensureSmartWalletThenPublish-DuOYPJFd.js} +9 -10
  12. package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js.map → ensureSmartWalletThenPublish-DuOYPJFd.js.map} +1 -1
  13. package/dist/errors.d.ts +9 -0
  14. package/dist/errors.d.ts.map +1 -1
  15. package/dist/helpers/abi/executor.d.ts +12 -0
  16. package/dist/helpers/abi/executor.d.ts.map +1 -1
  17. package/dist/helpers/abi/factory.d.ts +11 -0
  18. package/dist/helpers/abi/factory.d.ts.map +1 -1
  19. package/dist/helpers/abi/seedExecutorRouter.d.ts +9 -1
  20. package/dist/helpers/abi/seedExecutorRouter.d.ts.map +1 -1
  21. package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
  22. package/dist/helpers/chainClient.d.ts +18 -2
  23. package/dist/helpers/chainClient.d.ts.map +1 -1
  24. package/dist/helpers/contracts/index.d.ts +9 -0
  25. package/dist/helpers/contracts/index.d.ts.map +1 -1
  26. package/dist/helpers/describeRevert.d.ts +3 -2
  27. package/dist/helpers/describeRevert.d.ts.map +1 -1
  28. package/dist/helpers/enrollPublishAutomation.d.ts +2 -2
  29. package/dist/helpers/enrollPublishAutomation.d.ts.map +1 -1
  30. package/dist/helpers/ensureAutomationSessionKey.d.ts.map +1 -1
  31. package/dist/helpers/ensureExecutorModule.d.ts +28 -5
  32. package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
  33. package/dist/helpers/executorModuleReadiness.d.ts +15 -1
  34. package/dist/helpers/executorModuleReadiness.d.ts.map +1 -1
  35. package/dist/helpers/gasLog.d.ts +8 -0
  36. package/dist/helpers/gasLog.d.ts.map +1 -0
  37. package/dist/helpers/seedPaymaster.d.ts +27 -0
  38. package/dist/helpers/seedPaymaster.d.ts.map +1 -0
  39. package/dist/helpers/thirdweb.d.ts.map +1 -1
  40. package/dist/index.d.ts +3 -3
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +271 -272
  43. package/dist/index.js.map +1 -1
  44. package/dist/{managedAccountAdmin-B64V1rlU.js → managedAccountAdmin-B4HkLWWE.js} +9 -10
  45. package/dist/{managedAccountAdmin-B64V1rlU.js.map → managedAccountAdmin-B4HkLWWE.js.map} +1 -1
  46. package/dist/{publishAuthorization-CxBkijU6.js → publishAuthorization-DgDI4zor.js} +1104 -1018
  47. package/dist/publishAuthorization-DgDI4zor.js.map +1 -0
  48. package/dist/{publishThirdwebClient-CBD9sKJR.js → publishThirdwebClient-CO18ST7C.js} +2 -2
  49. package/dist/{publishThirdwebClient-CBD9sKJR.js.map → publishThirdwebClient-CO18ST7C.js.map} +1 -1
  50. package/dist/{resolveRevokeAccount-CehU81k6.js → resolveRevokeAccount-DsNod8ti.js} +11 -11
  51. package/dist/{resolveRevokeAccount-B5iXpuRT.js.map → resolveRevokeAccount-DsNod8ti.js.map} +1 -1
  52. package/dist/thirdweb.d.ts +2 -1
  53. package/dist/thirdweb.d.ts.map +1 -1
  54. package/dist/thirdweb.js +147 -148
  55. package/dist/thirdweb.js.map +1 -1
  56. package/dist/{worker-2dUZSapK.js → worker-CN7zg73B.js} +2 -2
  57. package/dist/{worker-2dUZSapK.js.map → worker-CN7zg73B.js.map} +1 -1
  58. package/package.json +6 -6
  59. package/dist/chainConfig-3sSqEVQh.js +0 -1433
  60. package/dist/chainConfig-3sSqEVQh.js.map +0 -1
  61. package/dist/chainConfig-3wlYarAG.js +0 -1433
  62. package/dist/chainConfig-3wlYarAG.js.map +0 -1
  63. package/dist/chainConfig-BRcsMopd.js +0 -1442
  64. package/dist/chainConfig-BRcsMopd.js.map +0 -1
  65. package/dist/chainConfig-BYm5OXpk.js +0 -1433
  66. package/dist/chainConfig-BYm5OXpk.js.map +0 -1
  67. package/dist/chainConfig-CA1Hrrjg.js.map +0 -1
  68. package/dist/chainConfig-CYy0XJ0M.js +0 -1283
  69. package/dist/chainConfig-CYy0XJ0M.js.map +0 -1
  70. package/dist/chainConfig-CfVGYAsY.js +0 -1311
  71. package/dist/chainConfig-CfVGYAsY.js.map +0 -1
  72. package/dist/chainConfig-DDA4YmAB.js +0 -1424
  73. package/dist/chainConfig-DDA4YmAB.js.map +0 -1
  74. package/dist/config-BA9la8B6.js +0 -941
  75. package/dist/config-BA9la8B6.js.map +0 -1
  76. package/dist/config-BqguD2Tt.js +0 -806
  77. package/dist/config-BqguD2Tt.js.map +0 -1
  78. package/dist/config-CPBd5C_b.js +0 -1201
  79. package/dist/config-CPBd5C_b.js.map +0 -1
  80. package/dist/config-DkIapO94.js +0 -955
  81. package/dist/config-DkIapO94.js.map +0 -1
  82. package/dist/config-EQZZNH9H.js +0 -955
  83. package/dist/config-EQZZNH9H.js.map +0 -1
  84. package/dist/config-qjpaJcBA.js +0 -947
  85. package/dist/config-qjpaJcBA.js.map +0 -1
  86. package/dist/deploy-BJYwLfz-.js +0 -15
  87. package/dist/deploy-BJYwLfz-.js.map +0 -1
  88. package/dist/enrollPublishAutomation-DYQMoylY.js +0 -3422
  89. package/dist/enrollPublishAutomation-DYQMoylY.js.map +0 -1
  90. package/dist/ensureAutomationSessionKey-BMHLKfjj.js +0 -85
  91. package/dist/ensureAutomationSessionKey-BMHLKfjj.js.map +0 -1
  92. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js +0 -86
  93. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js.map +0 -1
  94. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js +0 -84
  95. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js.map +0 -1
  96. package/dist/ensureAutomationSessionKey-Bw74ZSGI.js +0 -85
  97. package/dist/ensureAutomationSessionKey-Bw74ZSGI.js.map +0 -1
  98. package/dist/ensureAutomationSessionKey-C8D7BFjU.js +0 -85
  99. package/dist/ensureAutomationSessionKey-C8D7BFjU.js.map +0 -1
  100. package/dist/ensureAutomationSessionKey-CClLVX2w.js +0 -85
  101. package/dist/ensureAutomationSessionKey-CClLVX2w.js.map +0 -1
  102. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js +0 -85
  103. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js.map +0 -1
  104. package/dist/ensureAutomationSessionKey-CeUbjcCl.js +0 -85
  105. package/dist/ensureAutomationSessionKey-CeUbjcCl.js.map +0 -1
  106. package/dist/ensureAutomationSessionKey-D8Gki6U6.js +0 -85
  107. package/dist/ensureAutomationSessionKey-D8Gki6U6.js.map +0 -1
  108. package/dist/ensureAutomationSessionKey-DEH7nwUc.js +0 -86
  109. package/dist/ensureAutomationSessionKey-DEH7nwUc.js.map +0 -1
  110. package/dist/ensureAutomationSessionKey-DKriW4Hr.js +0 -85
  111. package/dist/ensureAutomationSessionKey-DKriW4Hr.js.map +0 -1
  112. package/dist/ensureAutomationSessionKey-Dhvbii2M.js +0 -86
  113. package/dist/ensureAutomationSessionKey-Dhvbii2M.js.map +0 -1
  114. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js +0 -85
  115. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js.map +0 -1
  116. package/dist/ensureModularPublishBootstrap-5HJDqJJM.js +0 -24
  117. package/dist/ensureModularPublishBootstrap-BW8jKN_A.js +0 -24
  118. package/dist/ensureModularPublishBootstrap-BW8jKN_A.js.map +0 -1
  119. package/dist/ensureModularPublishBootstrap-BhYNmLzT.js +0 -24
  120. package/dist/ensureModularPublishBootstrap-BhYNmLzT.js.map +0 -1
  121. package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js +0 -24
  122. package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js.map +0 -1
  123. package/dist/ensureModularPublishBootstrap-Btih5xbB.js +0 -129
  124. package/dist/ensureModularPublishBootstrap-Btih5xbB.js.map +0 -1
  125. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js +0 -128
  126. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js.map +0 -1
  127. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js +0 -129
  128. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js.map +0 -1
  129. package/dist/ensureModularPublishBootstrap-CcU-hXll.js +0 -128
  130. package/dist/ensureModularPublishBootstrap-CcU-hXll.js.map +0 -1
  131. package/dist/ensureModularPublishBootstrap-CdrykHAi.js +0 -24
  132. package/dist/ensureModularPublishBootstrap-CdrykHAi.js.map +0 -1
  133. package/dist/ensureModularPublishBootstrap-DGBKVGg5.js.map +0 -1
  134. package/dist/ensureModularPublishBootstrap-DaREOqSc.js +0 -129
  135. package/dist/ensureModularPublishBootstrap-DaREOqSc.js.map +0 -1
  136. package/dist/ensureModularPublishBootstrap-DxIG-LUP.js +0 -24
  137. package/dist/ensureModularPublishBootstrap-DxIG-LUP.js.map +0 -1
  138. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js +0 -127
  139. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js.map +0 -1
  140. package/dist/ensureSessionKey-D2Lq-56x.js +0 -363
  141. package/dist/ensureSessionKey-D2Lq-56x.js.map +0 -1
  142. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js +0 -48
  143. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js.map +0 -1
  144. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js +0 -49
  145. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js.map +0 -1
  146. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js +0 -49
  147. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js.map +0 -1
  148. package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js +0 -48
  149. package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js.map +0 -1
  150. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js +0 -49
  151. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js.map +0 -1
  152. package/dist/ensureSmartWalletThenPublish-CE7acryB.js +0 -49
  153. package/dist/ensureSmartWalletThenPublish-CE7acryB.js.map +0 -1
  154. package/dist/ensureSmartWalletThenPublish-D5GSZRyZ.js +0 -48
  155. package/dist/ensureSmartWalletThenPublish-D5GSZRyZ.js.map +0 -1
  156. package/dist/ensureSmartWalletThenPublish-DAomriGc.js +0 -48
  157. package/dist/ensureSmartWalletThenPublish-DAomriGc.js.map +0 -1
  158. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js +0 -48
  159. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js.map +0 -1
  160. package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js +0 -48
  161. package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js.map +0 -1
  162. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js +0 -48
  163. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js.map +0 -1
  164. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js +0 -48
  165. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js.map +0 -1
  166. package/dist/errors-Du3LNbJN.js +0 -70
  167. package/dist/errors-Du3LNbJN.js.map +0 -1
  168. package/dist/errors-PZAaDlkq.js +0 -79
  169. package/dist/errors-PZAaDlkq.js.map +0 -1
  170. package/dist/helpers/adapters/managedAccountTxSender.d.ts +0 -21
  171. package/dist/helpers/adapters/managedAccountTxSender.d.ts.map +0 -1
  172. package/dist/helpers/modularAccount/abi.d.ts +0 -173
  173. package/dist/helpers/modularAccount/abi.d.ts.map +0 -1
  174. package/dist/helpers/modularAccount/deploy.d.ts +0 -13
  175. package/dist/helpers/modularAccount/deploy.d.ts.map +0 -1
  176. package/dist/helpers/modularAccount/eip712.d.ts +0 -30
  177. package/dist/helpers/modularAccount/eip712.d.ts.map +0 -1
  178. package/dist/helpers/modularAccount/encode.d.ts +0 -16
  179. package/dist/helpers/modularAccount/encode.d.ts.map +0 -1
  180. package/dist/helpers/modularAccount/ensureModule.d.ts +0 -10
  181. package/dist/helpers/modularAccount/ensureModule.d.ts.map +0 -1
  182. package/dist/helpers/modularAccount/ensureSessionKey.d.ts +0 -25
  183. package/dist/helpers/modularAccount/ensureSessionKey.d.ts.map +0 -1
  184. package/dist/helpers/modularAccount/index.d.ts +0 -9
  185. package/dist/helpers/modularAccount/index.d.ts.map +0 -1
  186. package/dist/helpers/modularAccount/permissions.d.ts +0 -32
  187. package/dist/helpers/modularAccount/permissions.d.ts.map +0 -1
  188. package/dist/helpers/modularAccount/reads.d.ts +0 -28
  189. package/dist/helpers/modularAccount/reads.d.ts.map +0 -1
  190. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts +0 -31
  191. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts.map +0 -1
  192. package/dist/helpers/thirdwebModularBootstrap.d.ts +0 -8
  193. package/dist/helpers/thirdwebModularBootstrap.d.ts.map +0 -1
  194. package/dist/helpers/transformPayloadToIntegerIds.d.ts +0 -34
  195. package/dist/helpers/transformPayloadToIntegerIds.d.ts.map +0 -1
  196. package/dist/managedAccountAdmin-BVLGWpEb.js +0 -29
  197. package/dist/managedAccountAdmin-BVLGWpEb.js.map +0 -1
  198. package/dist/managedAccountAdmin-Bje6X8Ds.js +0 -29
  199. package/dist/managedAccountAdmin-Bje6X8Ds.js.map +0 -1
  200. package/dist/managedAccountAdmin-C84-IlQ9.js +0 -29
  201. package/dist/managedAccountAdmin-C84-IlQ9.js.map +0 -1
  202. package/dist/managedAccountAdmin-DJMw6UH6.js +0 -29
  203. package/dist/managedAccountAdmin-DJMw6UH6.js.map +0 -1
  204. package/dist/managedAccountAdmin-DhCRBoPX.js +0 -29
  205. package/dist/managedAccountAdmin-DhCRBoPX.js.map +0 -1
  206. package/dist/managedAccountAdmin-NXD66lP5.js +0 -29
  207. package/dist/managedAccountAdmin-NXD66lP5.js.map +0 -1
  208. package/dist/publishAuthorization-B0G1em4a.js +0 -3695
  209. package/dist/publishAuthorization-B0G1em4a.js.map +0 -1
  210. package/dist/publishAuthorization-B1BVVfp0.js +0 -3604
  211. package/dist/publishAuthorization-B1BVVfp0.js.map +0 -1
  212. package/dist/publishAuthorization-BEqRnP2h.js +0 -3925
  213. package/dist/publishAuthorization-BEqRnP2h.js.map +0 -1
  214. package/dist/publishAuthorization-Bltn3y_K.js +0 -3599
  215. package/dist/publishAuthorization-Bltn3y_K.js.map +0 -1
  216. package/dist/publishAuthorization-By2Tt9kW.js +0 -3912
  217. package/dist/publishAuthorization-By2Tt9kW.js.map +0 -1
  218. package/dist/publishAuthorization-CSN2FsQk.js +0 -3479
  219. package/dist/publishAuthorization-CSN2FsQk.js.map +0 -1
  220. package/dist/publishAuthorization-CxBkijU6.js.map +0 -1
  221. package/dist/publishAuthorization-CxWY7lAQ.js +0 -3706
  222. package/dist/publishAuthorization-CxWY7lAQ.js.map +0 -1
  223. package/dist/publishAuthorization-DEriY_jm.js +0 -3687
  224. package/dist/publishAuthorization-DEriY_jm.js.map +0 -1
  225. package/dist/publishAuthorization-DfAQs1sN.js +0 -3707
  226. package/dist/publishAuthorization-DfAQs1sN.js.map +0 -1
  227. package/dist/publishAuthorization-DgdmgLTa.js +0 -3520
  228. package/dist/publishAuthorization-DgdmgLTa.js.map +0 -1
  229. package/dist/publishAuthorization-DjVrnMC0.js +0 -3925
  230. package/dist/publishAuthorization-DjVrnMC0.js.map +0 -1
  231. package/dist/publishAuthorization-DqhhCAhd.js +0 -3652
  232. package/dist/publishAuthorization-DqhhCAhd.js.map +0 -1
  233. package/dist/publishThirdwebClient-BdgkcqM7.js +0 -18
  234. package/dist/publishThirdwebClient-BdgkcqM7.js.map +0 -1
  235. package/dist/publishThirdwebClient-BkmDN480.js +0 -18
  236. package/dist/publishThirdwebClient-BkmDN480.js.map +0 -1
  237. package/dist/publishThirdwebClient-BnDhP3N-.js +0 -18
  238. package/dist/publishThirdwebClient-BnDhP3N-.js.map +0 -1
  239. package/dist/publishThirdwebClient-CQ29pzG2.js +0 -18
  240. package/dist/publishThirdwebClient-CQ29pzG2.js.map +0 -1
  241. package/dist/publishThirdwebClient-CZIVmr9Z.js +0 -18
  242. package/dist/publishThirdwebClient-CZIVmr9Z.js.map +0 -1
  243. package/dist/publishThirdwebClient-Ce7iBIsj.js +0 -18
  244. package/dist/publishThirdwebClient-Ce7iBIsj.js.map +0 -1
  245. package/dist/publishThirdwebClient-DroRrOFQ.js +0 -18
  246. package/dist/publishThirdwebClient-DroRrOFQ.js.map +0 -1
  247. package/dist/publishThirdwebClient-DzXFjQ7L.js +0 -18
  248. package/dist/publishThirdwebClient-DzXFjQ7L.js.map +0 -1
  249. package/dist/publishThirdwebClient-Dzb2vcEs.js +0 -18
  250. package/dist/publishThirdwebClient-Dzb2vcEs.js.map +0 -1
  251. package/dist/publishThirdwebClient-i8P7fivi.js +0 -18
  252. package/dist/publishThirdwebClient-i8P7fivi.js.map +0 -1
  253. package/dist/publishWalletRegistry-Cugh691z.js +0 -37
  254. package/dist/publishWalletRegistry-Cugh691z.js.map +0 -1
  255. package/dist/resolveRevokeAccount-B5iXpuRT.js +0 -38
  256. package/dist/resolveRevokeAccount-B7ImSb4Y.js +0 -38
  257. package/dist/resolveRevokeAccount-B7ImSb4Y.js.map +0 -1
  258. package/dist/resolveRevokeAccount-BEhKQBTm.js +0 -38
  259. package/dist/resolveRevokeAccount-BEhKQBTm.js.map +0 -1
  260. package/dist/resolveRevokeAccount-BM1j2l5Q.js +0 -38
  261. package/dist/resolveRevokeAccount-BM1j2l5Q.js.map +0 -1
  262. package/dist/resolveRevokeAccount-BtVG0xxc.js +0 -38
  263. package/dist/resolveRevokeAccount-BtVG0xxc.js.map +0 -1
  264. package/dist/resolveRevokeAccount-CJZZdBcQ.js +0 -39
  265. package/dist/resolveRevokeAccount-CJZZdBcQ.js.map +0 -1
  266. package/dist/resolveRevokeAccount-CaIMuCee.js +0 -39
  267. package/dist/resolveRevokeAccount-CaIMuCee.js.map +0 -1
  268. package/dist/resolveRevokeAccount-CehU81k6.js.map +0 -1
  269. package/dist/resolveRevokeAccount-Cg4TQgnd.js +0 -38
  270. package/dist/resolveRevokeAccount-Cg4TQgnd.js.map +0 -1
  271. package/dist/resolveRevokeAccount-DHnxtEIj.js +0 -39
  272. package/dist/resolveRevokeAccount-DHnxtEIj.js.map +0 -1
  273. package/dist/resolveRevokeAccount-DJKfLlyK.js +0 -38
  274. package/dist/resolveRevokeAccount-DJKfLlyK.js.map +0 -1
  275. package/dist/resolveRevokeAccount-S-2WXkNh.js +0 -38
  276. package/dist/resolveRevokeAccount-S-2WXkNh.js.map +0 -1
  277. package/dist/resolveRevokeAccount-mzR11KJ4.js +0 -38
  278. package/dist/resolveRevokeAccount-mzR11KJ4.js.map +0 -1
  279. package/dist/resolveRevokeAccount-yWARIv9i.js +0 -38
  280. package/dist/resolveRevokeAccount-yWARIv9i.js.map +0 -1
  281. package/dist/seedSigner-CFzMD7Rb.js +0 -66
  282. package/dist/seedSigner-CFzMD7Rb.js.map +0 -1
  283. package/dist/thirdweb-BoksPRz3.js +0 -194
  284. package/dist/thirdweb-BoksPRz3.js.map +0 -1
  285. package/dist/thirdwebAccount-C2iOcp4_.js +0 -59
  286. package/dist/thirdwebAccount-C2iOcp4_.js.map +0 -1
  287. package/dist/worker-B1PcFPLi.js +0 -69
  288. package/dist/worker-B1PcFPLi.js.map +0 -1
  289. package/dist/worker-B8gN5WTx.js +0 -69
  290. package/dist/worker-B8gN5WTx.js.map +0 -1
  291. package/dist/worker-BCG1r0AS.js +0 -69
  292. package/dist/worker-BCG1r0AS.js.map +0 -1
  293. package/dist/worker-BgErCNTb.js +0 -69
  294. package/dist/worker-BgErCNTb.js.map +0 -1
  295. package/dist/worker-C07rPV2G.js +0 -69
  296. package/dist/worker-C07rPV2G.js.map +0 -1
  297. package/dist/worker-C9Za_dlQ.js +0 -69
  298. package/dist/worker-C9Za_dlQ.js.map +0 -1
  299. package/dist/worker-CEgulQnm.js +0 -69
  300. package/dist/worker-CEgulQnm.js.map +0 -1
  301. package/dist/worker-C_TL94He.js +0 -69
  302. package/dist/worker-C_TL94He.js.map +0 -1
  303. package/dist/worker-CbtzcKG6.js +0 -69
  304. package/dist/worker-CbtzcKG6.js.map +0 -1
  305. package/dist/worker-DBC_g-3I.js +0 -69
  306. package/dist/worker-DBC_g-3I.js.map +0 -1
  307. package/dist/worker-DHUm-TeQ.js +0 -69
  308. package/dist/worker-DHUm-TeQ.js.map +0 -1
  309. package/dist/worker-DypHzXgH.js +0 -69
  310. package/dist/worker-DypHzXgH.js.map +0 -1
  311. package/dist/worker-ZL4Wg19t.js +0 -69
  312. package/dist/worker-ZL4Wg19t.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { o as t } from "./chainConfig-CA1Hrrjg.js";
2
+ import { o as t } from "./chainConfig-DWzoOtkS.js";
3
3
  import { createThirdwebClient as n } from "thirdweb";
4
4
  //#region src/helpers/publishThirdwebClient.ts
5
5
  var r = /* @__PURE__ */ e({ getClient: () => o }), i = null, a = null;
@@ -15,4 +15,4 @@ function o() {
15
15
  //#endregion
16
16
  export { r as n, o as t };
17
17
 
18
- //# sourceMappingURL=publishThirdwebClient-CBD9sKJR.js.map
18
+ //# sourceMappingURL=publishThirdwebClient-CO18ST7C.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"publishThirdwebClient-CBD9sKJR.js","names":[],"sources":["../src/helpers/publishThirdwebClient.ts"],"sourcesContent":["import { createThirdwebClient, type ThirdwebClient } from 'thirdweb'\nimport { getPublishConfig } from '../config'\n\nlet _client: ThirdwebClient | null = null\nlet _clientKey: string | null = null\n\n/**\n * Thirdweb client for publish sends and contract calls.\n * Uses `thirdwebSecretKey` when set so server-side RPC is not limited to browser origins.\n * Recreates the client when the client id or secret key changes.\n */\nexport function getClient(): ThirdwebClient {\n const { thirdwebClientId, thirdwebSecretKey } = getPublishConfig()\n if (!thirdwebClientId && !thirdwebSecretKey) {\n throw new Error(\n '@seedprotocol/publish/thirdweb: thirdwebClientId or thirdwebSecretKey is required. Pass one in initPublish / PublishProvider config.',\n )\n }\n const key = `${thirdwebClientId ?? ''}\\0${thirdwebSecretKey ?? ''}`\n if (!_client || _clientKey !== key) {\n _clientKey = key\n _client = thirdwebClientId\n ? createThirdwebClient({\n clientId: thirdwebClientId,\n ...(thirdwebSecretKey ? { secretKey: thirdwebSecretKey } : {}),\n })\n : createThirdwebClient({ secretKey: thirdwebSecretKey! })\n }\n return _client\n}\n\n/** Drop the cached client (tests). */\nexport function resetPublishThirdwebClient(): void {\n _client = null\n _clientKey = null\n}\n"],"mappings":";;;;mDAGI,IAAiC,MACjC,IAA4B;AAOhC,SAAgB,IAA4B;CAC1C,IAAM,EAAE,qBAAkB,yBAAsB,EAAiB;CACjE,IAAI,CAAC,KAAoB,CAAC,GACxB,MAAU,MACR,sIACF;CAEF,IAAM,IAAM,GAAG,KAAoB,GAAG,IAAI,KAAqB;CAU/D,QATI,CAAC,KAAW,MAAe,OAC7B,IAAa,GACb,IACI,EADM,IACe;EACnB,UAAU;EACV,GAAI,IAAoB,EAAE,WAAW,EAAkB,IAAI,CAAC;CAC9D,IACqB,EAAE,WAAW,EAAmB,CAAC,IAErD;AACT"}
1
+ {"version":3,"file":"publishThirdwebClient-CO18ST7C.js","names":[],"sources":["../src/helpers/publishThirdwebClient.ts"],"sourcesContent":["import { createThirdwebClient, type ThirdwebClient } from 'thirdweb'\nimport { getPublishConfig } from '../config'\n\nlet _client: ThirdwebClient | null = null\nlet _clientKey: string | null = null\n\n/**\n * Thirdweb client for publish sends and contract calls.\n * Uses `thirdwebSecretKey` when set so server-side RPC is not limited to browser origins.\n * Recreates the client when the client id or secret key changes.\n */\nexport function getClient(): ThirdwebClient {\n const { thirdwebClientId, thirdwebSecretKey } = getPublishConfig()\n if (!thirdwebClientId && !thirdwebSecretKey) {\n throw new Error(\n '@seedprotocol/publish/thirdweb: thirdwebClientId or thirdwebSecretKey is required. Pass one in initPublish / PublishProvider config.',\n )\n }\n const key = `${thirdwebClientId ?? ''}\\0${thirdwebSecretKey ?? ''}`\n if (!_client || _clientKey !== key) {\n _clientKey = key\n _client = thirdwebClientId\n ? createThirdwebClient({\n clientId: thirdwebClientId,\n ...(thirdwebSecretKey ? { secretKey: thirdwebSecretKey } : {}),\n })\n : createThirdwebClient({ secretKey: thirdwebSecretKey! })\n }\n return _client\n}\n\n/** Drop the cached client (tests). */\nexport function resetPublishThirdwebClient(): void {\n _client = null\n _clientKey = null\n}\n"],"mappings":";;;;mDAGI,IAAiC,MACjC,IAA4B;AAOhC,SAAgB,IAA4B;CAC1C,IAAM,EAAE,qBAAkB,yBAAsB,EAAiB;CACjE,IAAI,CAAC,KAAoB,CAAC,GACxB,MAAU,MACR,sIACF;CAEF,IAAM,IAAM,GAAG,KAAoB,GAAG,IAAI,KAAqB;CAU/D,QATI,CAAC,KAAW,MAAe,OAC7B,IAAa,GACb,IACI,EADM,IACe;EACnB,UAAU;EACV,GAAI,IAAoB,EAAE,WAAW,EAAkB,IAAI,CAAC;CAC9D,IACqB,EAAE,WAAW,EAAmB,CAAC,IAErD;AACT"}
@@ -1,12 +1,12 @@
1
- import { r as e } from "./config-BA9la8B6.js";
2
- import { D as t, I as n, P as r, j as i, k as a } from "./publishAuthorization-DgdmgLTa.js";
3
- import { getGetAdditionalSyncAddresses as o } from "@seedprotocol/sdk";
4
- import { optimismSepolia as s } from "thirdweb/chains";
1
+ import { o as e, y as t } from "./chainConfig-DWzoOtkS.js";
2
+ import { A as n, F as r, L as i, M as a } from "./publishAuthorization-DgDI4zor.js";
3
+ import { t as o } from "./publishThirdwebClient-CO18ST7C.js";
4
+ import { getGetAdditionalSyncAddresses as s } from "@seedprotocol/sdk";
5
5
  //#region src/helpers/resolveRevokeAccount.ts
6
6
  async function c(c) {
7
7
  let { account: l, attester: u } = c;
8
8
  if (!u || l.address.toLowerCase() === u.toLowerCase()) return l;
9
- let d = o(), f = !1;
9
+ let d = s(), f = !1;
10
10
  if (d) {
11
11
  let e = await d(), t = u.toLowerCase();
12
12
  f = !!e?.some((e) => e?.toLowerCase() === t);
@@ -14,12 +14,12 @@ async function c(c) {
14
14
  try {
15
15
  let e = await r(l.address);
16
16
  if (u.toLowerCase() === e.toLowerCase() || f) {
17
- let r = f ? await a(s).catch(() => e) : e;
18
- if (await n(r)) {
19
- let e = i();
17
+ let r = f ? await n(t()).catch(() => e) : e;
18
+ if (await i(r)) {
19
+ let e = a();
20
20
  await e.autoConnect({
21
- client: t(),
22
- chain: s
21
+ client: o(),
22
+ chain: t()
23
23
  });
24
24
  let n = e.getAccount();
25
25
  if (n) return n;
@@ -35,4 +35,4 @@ async function c(c) {
35
35
  //#endregion
36
36
  export { c as resolveRevokeAccount };
37
37
 
38
- //# sourceMappingURL=resolveRevokeAccount-CehU81k6.js.map
38
+ //# sourceMappingURL=resolveRevokeAccount-DsNod8ti.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveRevokeAccount-B5iXpuRT.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport { getPublishConfig } from '~/config'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n getConnectedManagedAccountAddress,\n} from '~/helpers/thirdweb'\nimport { getPublishThirdwebChain } from './thirdwebChain'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * When the attester is the legacy executor module address, attempts the ManagedAccount\n * wallet if `modularAccountModuleContract` is configured (executor-routed multiRevoke).\n * Throws only when the module was the attester and no ManagedAccount path is available.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n let attesterIsExecutorModule = false\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n attesterIsExecutorModule = !!additional?.some(\n (a: string | undefined) => a?.toLowerCase() === attesterLower,\n )\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower || attesterIsExecutorModule) {\n const managedAddress = attesterIsExecutorModule\n ? await getConnectedManagedAccountAddress(getPublishThirdwebChain()).catch(() => derivedManagedAccount)\n : derivedManagedAccount\n const deployed = await isSmartWalletDeployed(managedAddress)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: getPublishThirdwebChain(),\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through\n }\n\n if (attesterIsExecutorModule) {\n const { modularAccountModuleContract } = getPublishConfig()\n if (!modularAccountModuleContract?.trim()) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n // Module configured but ManagedAccount wallet unavailable\n throw new Error(\n 'Revocation not supported for items published via the modular executor. Connect the ManagedAccount that controls the executor module.',\n )\n }\n\n return account\n}\n"],"mappings":";;;;;AAsBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B,GACnD,IAA2B;CAC/B,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAA2B,CAAC,CAAC,GAAY,MACtC,MAA0B,GAAG,YAAY,MAAM,CAClD;CACF;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAAgB,GAA0B;GAC9D,IAAM,IAAiB,IACnB,MAAM,EAAkC,EAAwB,CAAC,CAAC,CAAC,YAAY,CAAqB,IACpG;GAEJ,IAAI,MADmB,EAAsB,CAAc,GAC7C;IACZ,IAAM,IAAuB,EAAwB;IACrD,MAAM,EAAqB,YAAY;KACrC,QAAQ,EAAU;KAClB,OAAO,EAAwB;IACjC,CAAC;IACD,IAAM,IAAiB,EAAqB,WAAW;IACvD,IAAI,GACF,OAAO;GAEX;EACF;CACF,QAAQ,CAER;CAEA,IAAI,GAA0B;EAC5B,IAAM,EAAE,oCAAiC,EAAiB;EAO1D,MANK,GAA8B,KAAK,IAM9B,MACR,sIACF,IAPY,MACR,wEACF;CAMJ;CAEA,OAAO;AACT"}
1
+ {"version":3,"file":"resolveRevokeAccount-DsNod8ti.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport { getPublishConfig } from '~/config'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n getConnectedManagedAccountAddress,\n} from '~/helpers/thirdweb'\nimport { getPublishThirdwebChain } from './thirdwebChain'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * When the attester is the legacy executor module address, attempts the ManagedAccount\n * wallet if `modularAccountModuleContract` is configured (executor-routed multiRevoke).\n * Throws only when the module was the attester and no ManagedAccount path is available.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n let attesterIsExecutorModule = false\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n attesterIsExecutorModule = !!additional?.some(\n (a: string | undefined) => a?.toLowerCase() === attesterLower,\n )\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower || attesterIsExecutorModule) {\n const managedAddress = attesterIsExecutorModule\n ? await getConnectedManagedAccountAddress(getPublishThirdwebChain()).catch(() => derivedManagedAccount)\n : derivedManagedAccount\n const deployed = await isSmartWalletDeployed(managedAddress)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: getPublishThirdwebChain(),\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through\n }\n\n if (attesterIsExecutorModule) {\n const { modularAccountModuleContract } = getPublishConfig()\n if (!modularAccountModuleContract?.trim()) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n // Module configured but ManagedAccount wallet unavailable\n throw new Error(\n 'Revocation not supported for items published via the modular executor. Connect the ManagedAccount that controls the executor module.',\n )\n }\n\n return account\n}\n"],"mappings":";;;;;AAsBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B,GACnD,IAA2B;CAC/B,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAA2B,CAAC,CAAC,GAAY,MACtC,MAA0B,GAAG,YAAY,MAAM,CAClD;CACF;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAAgB,GAA0B;GAC9D,IAAM,IAAiB,IACnB,MAAM,EAAkC,EAAwB,CAAC,CAAC,CAAC,YAAY,CAAqB,IACpG;GAEJ,IAAI,MADmB,EAAsB,CAAc,GAC7C;IACZ,IAAM,IAAuB,EAAwB;IACrD,MAAM,EAAqB,YAAY;KACrC,QAAQ,EAAU;KAClB,OAAO,EAAwB;IACjC,CAAC;IACD,IAAM,IAAiB,EAAqB,WAAW;IACvD,IAAI,GACF,OAAO;GAEX;EACF;CACF,QAAQ,CAER;CAEA,IAAI,GAA0B;EAC5B,IAAM,EAAE,oCAAiC,EAAiB;EAO1D,MANK,GAA8B,KAAK,IAM9B,MACR,sIACF,IAPY,MACR,wEACF;CAMJ;CAEA,OAAO;AACT"}
@@ -5,11 +5,12 @@
5
5
  export { fromThirdwebAccount, asThirdwebPublishWallet, asSeedSignerFromThirdweb } from './helpers/adapters/thirdwebAccount';
6
6
  export { getClient, getManagedAccountWallet, getModularAccountWallet, getWalletsForConnectButton, getConnectedModularAccount, getConnectedAccount, getConnectedManagedAccountAddress, resolveSmartWalletForPublish, isSmartWalletDeployed, pollSmartWalletDeployed, deploySmartWalletContract, deployManagedAccountViaFactory, getSmartWalletAddressForAdmin, appMetadata, wallets, ExternalWalletsForDeploy, getSharedPublishInAppWalletStorage, useActiveSmartWalletContract, useLocalWalletAccount, } from './helpers/thirdweb';
7
7
  export { getPublishThirdwebChain } from './helpers/thirdwebChain';
8
+ export { seedPaymaster, CALL_GAS_HEADROOM_BPS } from './helpers/seedPaymaster';
8
9
  export { default as ConnectButton } from './react/ConnectButton';
9
10
  export { default as PublishProvider, usePublishConfig } from './react/PublishProvider.thirdweb';
10
11
  export type { PublishProviderProps } from './react/PublishProvider';
11
12
  export { ensureSmartWalletThenPublish, type EnsureSmartWalletResult, } from './helpers/ensureSmartWalletThenPublish';
12
- export { ensureExecutorModuleInstalled } from './helpers/ensureExecutorModule';
13
+ export { ensureExecutorModuleInstalled, type EnsureExecutorModuleResult, } from './helpers/ensureExecutorModule';
13
14
  export { ensureManagedAccountReady, tryDeployManagedAccount, runModularExecutorPublishPrep, type EnsureManagedAccountReadyResult, type ModularExecutorPublishPrepResult, } from './helpers/ensureManagedAccountReady';
14
15
  export { ensureEip7702ModularAccountReady } from './helpers/ensureEip7702ModularAccountReady';
15
16
  export { ensureManagedSignerSessionKey } from './helpers/ensureManagedSignerSessionKey';
@@ -1 +1 @@
1
- {"version":3,"file":"thirdweb.d.ts","sourceRoot":"","sources":["../src/thirdweb.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAE3H,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,WAAW,EACX,OAAO,EACP,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAC/F,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,EACL,4BAA4B,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,GACtC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAA;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAA;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAA;AACvF,OAAO,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAA;AAC3G,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAA;AACnG,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACpC,mCAAmC,EACnC,+BAA+B,EAC/B,KAAK,+BAA+B,GACrC,MAAM,2CAA2C,CAAA;AAClD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,GACnC,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,GACxC,MAAM,wCAAwC,CAAA"}
1
+ {"version":3,"file":"thirdweb.d.ts","sourceRoot":"","sources":["../src/thirdweb.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAE3H,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,WAAW,EACX,OAAO,EACP,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE9E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAC/F,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,EACL,4BAA4B,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,6BAA6B,EAC7B,KAAK,0BAA0B,GAChC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,GACtC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAA;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAA;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAA;AACvF,OAAO,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAA;AAC3G,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAA;AACnG,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACpC,mCAAmC,EACnC,+BAA+B,EAC/B,KAAK,+BAA+B,GACrC,MAAM,2CAA2C,CAAA;AAClD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,GACnC,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,GACxC,MAAM,wCAAwC,CAAA"}
package/dist/thirdweb.js CHANGED
@@ -1,58 +1,57 @@
1
- import { A as e, O as t, Q as n, _ as r, a as i, at as a, h as o, m as s, o as c, ot as l, p as u, s as d, st as f, t as p } from "./chainConfig-CYy0XJ0M.js";
2
- import { n as m, r as h } from "./errors-Du3LNbJN.js";
3
- import { $ as ee, A as g, B as _, C as v, D as y, E as b, F as x, H as te, I as S, L as C, M as w, N as T, O as E, P as ne, R as re, S as ie, T as ae, U as oe, W as se, a as ce, d as le, et as D, f as ue, h as O, j as de, k as fe, l as pe, m as k, p as A, u as j, w as M, x as N, y as P, z as F } from "./publishAuthorization-DjVrnMC0.js";
4
- import { t as I } from "./publishThirdwebClient-Ce7iBIsj.js";
5
- import { t as L } from "./ensureSmartWalletThenPublish-Dta2AOyJ.js";
6
- import { t as R } from "./ensureModularPublishBootstrap-BhYNmLzT.js";
7
- import { i as z, r as B, t as V } from "./ensureAutomationSessionKey-CeUbjcCl.js";
1
+ import { A as e, M as t, a as n, ct as r, dt as i, h as a, lt as o, m as s, mt as c, o as l, p as u, pt as d, s as f, t as p, tt as ee, y as m } from "./chainConfig-DWzoOtkS.js";
2
+ import { A as h, B as g, C as _, D as te, E as ne, F as v, G as re, H as ie, I as y, K as ae, L as oe, M as b, N as x, O as se, P as S, R as C, S as w, T as ce, U as le, W as ue, a as de, b as fe, d as pe, f as me, h as T, j as he, k as E, l as D, m as O, nt as k, p as A, tt as j, u as M, x as N, y as P, z as F } from "./publishAuthorization-DgDI4zor.js";
3
+ import { t as I } from "./publishThirdwebClient-CO18ST7C.js";
4
+ import { t as L } from "./ensureSmartWalletThenPublish-DuOYPJFd.js";
5
+ import { t as R } from "./ensureModularPublishBootstrap-BImiIFJe.js";
6
+ import { i as z, r as B, t as V } from "./ensureAutomationSessionKey-h3zOmDr5.js";
8
7
  import { client as H } from "@seedprotocol/sdk";
9
- import { deploySmartAccount as me, getContract as U, sendTransaction as he } from "thirdweb";
10
- import { assessPublishAuthorization as ge, decodePublishAuthorizationData as _e, getPublishAuthorizationFromEas as ve } from "@seedprotocol/eas";
11
- import { useCallback as ye, useEffect as W, useRef as G } from "react";
12
- import { jsx as K } from "react/jsx-runtime";
13
- import { SeedProvider as be } from "@seedprotocol/react";
14
- import { ConnectButton as xe, ThirdwebProvider as Se, darkTheme as Ce, useActiveAccount as we, useActiveWallet as Te, useActiveWalletConnectionStatus as Ee, useIsAutoConnecting as De } from "thirdweb/react";
15
- import { addSessionKey as Oe, shouldUpdateSessionKey as ke } from "thirdweb/extensions/erc4337";
8
+ import { deploySmartAccount as ge, getContract as U, sendTransaction as _e } from "thirdweb";
9
+ import { assessPublishAuthorization as ve, decodePublishAuthorizationData as ye, getPublishAuthorizationFromEas as be } from "@seedprotocol/eas";
10
+ import { useCallback as W, useEffect as G, useRef as K } from "react";
11
+ import { jsx as q } from "react/jsx-runtime";
12
+ import { SeedProvider as xe } from "@seedprotocol/react";
13
+ import { ConnectButton as Se, ThirdwebProvider as Ce, darkTheme as we, useActiveAccount as Te, useActiveWallet as Ee, useActiveWalletConnectionStatus as De, useIsAutoConnecting as Oe } from "thirdweb/react";
14
+ import { addSessionKey as ke, shouldUpdateSessionKey as Ae } from "thirdweb/extensions/erc4337";
16
15
  //#region src/react/ConnectButton.tsx
17
- var q = "seedProtocol:publish:userChoseWalletDisconnect";
18
- function Ae(e) {
19
- console.warn("[ConnectButton] Wallet setup / module install skipped:", e), c().onWalletSetupWarning?.(e);
16
+ var J = "seedProtocol:publish:userChoseWalletDisconnect";
17
+ function je(e) {
18
+ console.warn("[ConnectButton] Wallet setup / module install skipped:", e), l().onWalletSetupWarning?.(e);
20
19
  }
21
- function je() {
20
+ function Me() {
22
21
  return H.isInitialized() ? Promise.resolve() : new Promise((e) => {
23
22
  H.onReady(() => e());
24
23
  });
25
24
  }
26
- async function Me(e, t, n) {
25
+ async function Ne(e, t, n) {
27
26
  if (n.modularAccountModuleContract) {
28
27
  if (n.useModularExecutor) {
29
28
  if (!t) return;
30
29
  try {
31
- _();
32
- let e = w();
30
+ g();
31
+ let e = b();
33
32
  await e.autoConnect({
34
33
  client: I(),
35
- chain: r(n)
34
+ chain: m(n)
36
35
  });
37
- let i = e.getAccount();
38
- if (!i) return;
39
- await M(t, i, n);
36
+ let r = e.getAccount();
37
+ if (!r) return;
38
+ await w(t, r, n);
40
39
  } catch {}
41
40
  return;
42
41
  }
43
42
  try {
44
- await M(e.address, e, n);
43
+ await w(e.address, e, n);
45
44
  } catch (e) {
46
- Ae(e);
45
+ je(e);
47
46
  }
48
47
  }
49
48
  }
50
- var Ne = () => {
51
- let n = D(), i = r(n), a = Te(), s = we(), c = Ee(), l = De(), u = G(null), d = G(!1), f = G(!1);
52
- W(() => {
49
+ var Pe = () => {
50
+ let n = k(), r = m(n), i = Ee(), o = Te(), s = De(), c = Oe(), l = K(null), u = K(!1), d = K(!1);
51
+ G(() => {
53
52
  if (typeof window > "u") return;
54
- let e = d.current;
55
- d.current = l;
53
+ let e = u.current;
54
+ u.current = c;
56
55
  let t;
57
56
  try {
58
57
  t = performance.getEntriesByType("navigation")[0]?.type;
@@ -60,105 +59,105 @@ var Ne = () => {
60
59
  t = void 0;
61
60
  }
62
61
  if (t !== "reload") return;
63
- let r = !1;
62
+ let i = !1;
64
63
  try {
65
- r = sessionStorage.getItem(q) === "1";
64
+ i = sessionStorage.getItem(J) === "1";
66
65
  } catch {
67
- r = !1;
66
+ i = !1;
68
67
  }
69
- r || e && !l && c === "disconnected" && (f.current || (f.current = !0, (n.useModularExecutor ? T() : w()).autoConnect({
68
+ i || e && !c && s === "disconnected" && (d.current || (d.current = !0, (n.useModularExecutor ? x() : b()).autoConnect({
70
69
  client: I(),
71
- chain: i
70
+ chain: r
72
71
  }).catch(() => {})));
73
72
  }, [
73
+ s,
74
74
  c,
75
- l,
76
75
  n.useModularExecutor,
77
- i
76
+ r
78
77
  ]);
79
- let p = ye(async (t) => {
80
- let r = t.getAccount();
81
- if (!r) return;
82
- await je(), O.stopAll();
83
- let a = /* @__PURE__ */ new Set([r.address.toLowerCase()]), s;
78
+ let f = W(async (e) => {
79
+ let i = e.getAccount();
80
+ if (!i) return;
81
+ await Me(), T.stopAll();
82
+ let o = /* @__PURE__ */ new Set([i.address.toLowerCase()]), s;
84
83
  if (n.useModularExecutor) {
85
- _();
86
- let e = t.getAdminAccount?.()?.address ?? r.address, n = async () => {
84
+ g();
85
+ let t = e.getAdminAccount?.()?.address ?? i.address, n = async () => {
87
86
  try {
88
- return await g(i);
87
+ return await h(r);
89
88
  } catch {
90
89
  try {
91
- return await x(e);
90
+ return await v(t);
92
91
  } catch {
93
92
  return;
94
93
  }
95
94
  }
96
95
  };
97
- s = await n(), s ||= (await new Promise((e) => queueMicrotask(() => e())), await n()), s && a.add(s.toLowerCase());
96
+ s = await n(), s ||= (await new Promise((e) => queueMicrotask(() => e())), await n()), s && o.add(s.toLowerCase());
98
97
  }
99
- let c = [...a].sort().join(",");
100
- if (u.current !== c) {
101
- u.current = c;
98
+ let c = [...o].sort().join(",");
99
+ if (l.current !== c) {
100
+ l.current = c;
102
101
  try {
103
- let t = o(r);
104
- await e({
105
- ...t,
106
- ownedAddresses: [...a],
107
- publisherAddress: s ?? r.address
102
+ let e = a(i);
103
+ await t({
104
+ ...e,
105
+ ownedAddresses: [...o],
106
+ publisherAddress: s ?? i.address
108
107
  });
109
108
  } catch (e) {
110
- throw u.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
109
+ throw l.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
111
110
  }
112
- await Me(r, s, n);
111
+ await Ne(i, s, n);
113
112
  }
114
113
  }, [n]);
115
- return W(() => {
116
- if (l) return;
117
- if (c !== "connected") {
118
- u.current = null;
114
+ return G(() => {
115
+ if (c) return;
116
+ if (s !== "connected") {
117
+ l.current = null;
119
118
  return;
120
119
  }
121
- if (!a) return;
120
+ if (!i) return;
122
121
  let e = !1;
123
122
  return (async () => {
124
123
  try {
125
124
  if (e) return;
126
- await p(a);
125
+ await f(i);
127
126
  } catch {}
128
127
  })(), () => {
129
128
  e = !0;
130
129
  };
131
130
  }, [
132
- a,
133
- s?.address,
131
+ i,
132
+ o?.address,
133
+ s,
134
134
  c,
135
- l,
136
- p
137
- ]), /* @__PURE__ */ K(xe, {
135
+ f
136
+ ]), /* @__PURE__ */ q(Se, {
138
137
  client: I(),
139
- wallets: S(n),
138
+ wallets: y(n),
140
139
  autoConnect: !0,
141
- chain: i,
142
- chains: [i],
140
+ chain: r,
141
+ chains: [r],
143
142
  onConnect: async (e, t) => {
144
143
  let n = e.getAccount();
145
144
  if (n) {
146
145
  try {
147
- sessionStorage.removeItem(q);
146
+ sessionStorage.removeItem(J);
148
147
  } catch {}
149
148
  console.log("[ConnectButton] Connected", n.address);
150
149
  try {
151
- await p(e);
150
+ await f(e);
152
151
  } catch {}
153
152
  }
154
153
  },
155
154
  onDisconnect: () => {
156
155
  try {
157
- sessionStorage.setItem(q, "1");
156
+ sessionStorage.setItem(J, "1");
158
157
  } catch {}
159
- t(), O.stopAll();
158
+ e(), T.stopAll();
160
159
  },
161
- theme: Ce({ colors: {
160
+ theme: we({ colors: {
162
161
  primaryButtonBg: "#1D2939",
163
162
  primaryButtonText: "#FFFFFF",
164
163
  secondaryButtonHoverBg: "#1D2939",
@@ -167,129 +166,129 @@ var Ne = () => {
167
166
  borderColor: "#344054"
168
167
  } })
169
168
  });
170
- }, Pe = ({ children: e, config: t, queryClient: n, queryClientRef: r }) => (W(() => {
171
- t && d(t);
172
- }, [t]), /* @__PURE__ */ K(ee.Provider, {
173
- value: t ?? i(),
174
- children: /* @__PURE__ */ K(Se, { children: /* @__PURE__ */ K(be, {
175
- queryClient: n,
176
- queryClientRef: r,
169
+ }, Fe = ({ children: e, config: t, queryClient: r, queryClientRef: i }) => (G(() => {
170
+ t && f(t);
171
+ }, [t]), /* @__PURE__ */ q(j.Provider, {
172
+ value: t ?? n(),
173
+ children: /* @__PURE__ */ q(Ce, { children: /* @__PURE__ */ q(xe, {
174
+ queryClient: r,
175
+ queryClientRef: i,
177
176
  children: e
178
177
  }) })
179
- })), Fe = "Modular (EIP-7702) wallet is not connected. Sign in with the same method and try again.", Ie = () => `Your modular account is not upgraded to an EIP-7702 smart account on ${p()} yet. Enable autoDeployEip7702ModularAccount in publish config or complete wallet setup, then retry.`, Le = () => `Automatic EIP-7702 smart account setup failed on ${p()}. Retry or reconnect your wallet.`, Re = "EIP-7702 upgrade was sent but on-chain bytecode was not detected yet. Wait a moment and retry.", J = 5;
180
- async function Y() {
181
- let { autoDeployEip7702ModularAccount: e } = c(), t = T();
178
+ })), Ie = "Modular (EIP-7702) wallet is not connected. Sign in with the same method and try again.", Le = () => `Your modular account is not upgraded to an EIP-7702 smart account on ${p()} yet. Enable autoDeployEip7702ModularAccount in publish config or complete wallet setup, then retry.`, Re = () => `Automatic EIP-7702 smart account setup failed on ${p()}. Retry or reconnect your wallet.`, ze = "EIP-7702 upgrade was sent but on-chain bytecode was not detected yet. Wait a moment and retry.", Y = 5;
179
+ async function Be() {
180
+ let { autoDeployEip7702ModularAccount: e } = l(), t = x();
182
181
  await t.autoConnect({
183
182
  client: I(),
184
- chain: r()
183
+ chain: m()
185
184
  });
186
185
  let n = t.getAccount();
187
- if (!n) throw new m(Fe, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
188
- let i = I(), o = U({
186
+ if (!n) throw new d(Ie, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
187
+ let i = I(), a = U({
189
188
  client: i,
190
- chain: r(),
189
+ chain: m(),
191
190
  address: n.address
192
191
  });
193
- if (!await a(n.address)) {
194
- if (!e) throw new m(Ie(), "EIP7702_MODULAR_NOT_UPGRADED", n.address);
192
+ if (!await r(n.address)) {
193
+ if (!e) throw new d(Le(), "EIP7702_MODULAR_NOT_UPGRADED", n.address);
195
194
  try {
196
- await me({
195
+ await ge({
197
196
  smartAccount: n,
198
- chain: r(),
197
+ chain: m(),
199
198
  client: i,
200
- accountContract: o
199
+ accountContract: a
201
200
  });
202
201
  } catch (e) {
203
- if (await l(n.address, J)) return;
204
- throw new m(Le(), "EIP7702_MODULAR_DEPLOY_FAILED", n.address, e);
202
+ if (await o(n.address, Y)) return;
203
+ throw new d(Re(), "EIP7702_MODULAR_DEPLOY_FAILED", n.address, e);
205
204
  }
206
- if (!await l(n.address, J)) throw new m(Re, "EIP7702_MODULAR_NOT_CONFIRMED", n.address);
205
+ if (!await o(n.address, Y)) throw new d(ze, "EIP7702_MODULAR_NOT_CONFIRMED", n.address);
207
206
  }
208
207
  }
209
208
  //#endregion
210
209
  //#region src/helpers/defaultApprovedTargetsForModularPublish.ts
211
210
  function X(e) {
212
- return k();
211
+ return O();
213
212
  }
214
213
  //#endregion
215
214
  //#region src/helpers/ensureManagedSignerSessionKey.ts
216
- var ze = () => `Could not connect the managed publishing account to authorize the modular signer on ${p()}. Reconnect and try again.`, Z = () => `Could not authorize the modular wallet as a session signer on your publishing account on ${p()}.`;
217
- async function Be(e) {
218
- let { managedAddress: t, signerAddress: i } = e, a = w();
219
- await a.autoConnect({
215
+ var Ve = () => `Could not connect the managed publishing account to authorize the modular signer on ${p()}. Reconnect and try again.`, Z = () => `Could not authorize the modular wallet as a session signer on your publishing account on ${p()}.`;
216
+ async function He(e) {
217
+ let { managedAddress: t, signerAddress: n } = e, r = b();
218
+ await r.autoConnect({
220
219
  client: I(),
221
- chain: r()
220
+ chain: m()
222
221
  });
223
- let o = a.getAccount();
224
- if (!o) throw new h(ze(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
225
- let s = U({
222
+ let a = r.getAccount();
223
+ if (!a) throw new c(Ve(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
224
+ let o = U({
226
225
  client: I(),
227
- chain: r(),
226
+ chain: m(),
228
227
  address: t
229
- }), c = {
228
+ }), s = {
230
229
  approvedTargets: X(t),
231
230
  nativeTokenLimitPerTransaction: 0
232
231
  }, l = !1;
233
232
  try {
234
- l = await ke({
235
- accountContract: s,
236
- sessionKeyAddress: i,
237
- newPermissions: c
233
+ l = await Ae({
234
+ accountContract: o,
235
+ sessionKeyAddress: n,
236
+ newPermissions: s
238
237
  });
239
238
  } catch (e) {
240
- throw new h(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
239
+ throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
241
240
  }
242
241
  if (l) try {
243
- let e = Oe({
244
- contract: s,
245
- account: o,
246
- sessionKeyAddress: i,
247
- permissions: c
248
- }), t = await he({
249
- account: o,
242
+ let e = ke({
243
+ contract: o,
244
+ account: a,
245
+ sessionKeyAddress: n,
246
+ permissions: s
247
+ }), t = await _e({
248
+ account: a,
250
249
  transaction: e
251
250
  });
252
- await f(t.transactionHash);
251
+ await i(t.transactionHash);
253
252
  } catch (e) {
254
- throw new h(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
253
+ throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
255
254
  }
256
255
  let u = !1;
257
256
  try {
258
- u = await n(t, i);
257
+ u = await ee(t, n);
259
258
  } catch (e) {
260
- throw new h(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
259
+ throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
261
260
  }
262
- if (!u) throw new h(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
261
+ if (!u) throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
263
262
  }
264
263
  //#endregion
265
264
  //#region src/helpers/enrollPublishAutomation.ts
266
265
  async function Q(e) {
267
- let t = w();
266
+ let t = b();
268
267
  await t.autoConnect({
269
268
  client: I(),
270
- chain: r()
269
+ chain: m()
271
270
  });
272
271
  let n = t.getAccount();
273
- if (!n) throw new h("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
272
+ if (!n) throw new c("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
274
273
  return n;
275
274
  }
276
275
  async function $(e, t) {
277
- return t || o(await Q(e));
276
+ return t || a(await Q(e));
278
277
  }
279
- async function Ve(e) {
280
- let t = c();
278
+ async function Ue(e) {
279
+ let t = l();
281
280
  if (!t.modularAccountModuleContract?.trim()) throw Error("@seedprotocol/publish: enrollPublishAutomation requires PublishConfig.modularAccountModuleContract");
282
- let n = await Q(e);
281
+ let n = await Q(e), r;
283
282
  try {
284
- await M(e, n, t);
283
+ r = await w(e, n, t);
285
284
  } catch (t) {
286
- throw t instanceof h ? t : new h("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
285
+ throw t instanceof c ? t : new c("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
287
286
  }
288
- await P(e);
287
+ await _(e, r.status === "installed" ? { installedEas: r.eas } : { readAttempts: r.status === "already-installed" ? 5 : 1 });
289
288
  }
290
- async function He(e) {
289
+ async function We(e) {
291
290
  let { managedAddress: t, sessionKeyAddress: n, appAddress: r, expiresAt: i } = e;
292
- await Ve(t), await V({
291
+ await Ue(t), await V({
293
292
  managedAddress: t,
294
293
  sessionKeyAddress: n,
295
294
  expiresAt: i
@@ -298,7 +297,7 @@ async function He(e) {
298
297
  return {
299
298
  managedAddress: t,
300
299
  sessionKeyAddress: n,
301
- authorization: await ce({
300
+ authorization: await de({
302
301
  wallet: a,
303
302
  identity: t,
304
303
  sessionKey: n,
@@ -307,19 +306,19 @@ async function He(e) {
307
306
  })
308
307
  };
309
308
  }
310
- async function Ue(e) {
309
+ async function Ge(e) {
311
310
  let { managedAddress: t, sessionKeyAddress: n, authorizationUid: r } = e, i = await $(t, e.userWallet);
312
311
  await z({
313
312
  managedAddress: t,
314
313
  sessionKeyAddress: n
315
- }), await pe({
314
+ }), await D({
316
315
  wallet: i,
317
316
  uid: r
318
317
  });
319
318
  }
320
319
  //#endregion
321
320
  //#region src/helpers/assertStorageBoundToIdentity.ts
322
- async function We(e) {
321
+ async function Ke(e) {
323
322
  let { managedAddress: t, dataItemOwner: n, atTime: r, allowActiveSessionKey: i = !0, allowSidecar: a = !0 } = e, o = [], s = n.trim().toLowerCase(), c = t.trim().toLowerCase();
324
323
  if (!/^0x[0-9a-fA-F]{40}$/.test(s) || !/^0x[0-9a-fA-F]{40}$/.test(c)) return {
325
324
  bound: !1,
@@ -336,15 +335,15 @@ async function We(e) {
336
335
  o.push(e instanceof Error ? e.message : "isActiveSigner check failed");
337
336
  }
338
337
  if (a) try {
339
- let e = await ve({
338
+ let e = await be({
340
339
  identities: [t],
341
340
  sessionKeys: [n],
342
341
  excludeRevoked: !0
343
342
  }), i = r == null ? Date.now() : r * 1e3;
344
343
  for (let t of e) try {
345
- let e = _e(t.decodedDataJson ?? "[]");
344
+ let e = ye(t.decodedDataJson ?? "[]");
346
345
  if (e.identity.toLowerCase() !== c || e.sessionKey.toLowerCase() !== s) continue;
347
- let n = typeof t.expirationTime == "number" ? t.expirationTime : null, r = ge({
346
+ let n = typeof t.expirationTime == "number" ? t.expirationTime : null, r = ve({
348
347
  decoded: e,
349
348
  expirationTime: n,
350
349
  now: i
@@ -366,6 +365,6 @@ async function We(e) {
366
365
  };
367
366
  }
368
367
  //#endregion
369
- export { Ne as ConnectButton, ae as ExternalWalletsForDeploy, j as PUBLISH_AUTOMATION_SCOPES, Pe as PublishProvider, b as appMetadata, k as approvedTargetsForAutomationPublish, u as asSeedSignerFromThirdweb, s as asThirdwebPublishWallet, We as assertStorageBoundToIdentity, le as buildAutomationSessionKeyPermissions, X as defaultApprovedTargetsForModularPublish, y as deployManagedAccountViaFactory, E as deploySmartWalletContract, He as enrollPublishAutomation, V as ensureAutomationSessionKey, Y as ensureEip7702ModularAccountReady, M as ensureExecutorModuleInstalled, N as ensureManagedAccountReady, Be as ensureManagedSignerSessionKey, R as ensureModularPublishBootstrap, L as ensureSmartWalletThenPublish, o as fromThirdwebAccount, I as getClient, fe as getConnectedAccount, g as getConnectedManagedAccountAddress, de as getConnectedModularAccount, w as getManagedAccountWallet, T as getModularAccountWallet, r as getPublishThirdwebChain, ne as getSharedPublishInAppWalletStorage, x as getSmartWalletAddressForAdmin, S as getWalletsForConnectButton, ue as hashAutomationSessionKeyPermissions, B as isAutomationSessionActive, C as isSmartWalletDeployed, re as pollSmartWalletDeployed, z as removeAutomationSessionKey, F as resolveSmartWalletForPublish, Ue as revokePublishAutomation, ie as runModularExecutorPublishPrep, A as toThirdwebSessionKeyPermissions, v as tryDeployManagedAccount, te as useActiveSmartWalletContract, oe as useLocalWalletAccount, D as usePublishConfig, se as wallets };
368
+ export { re as CALL_GAS_HEADROOM_BPS, Pe as ConnectButton, ce as ExternalWalletsForDeploy, M as PUBLISH_AUTOMATION_SCOPES, Fe as PublishProvider, ne as appMetadata, O as approvedTargetsForAutomationPublish, u as asSeedSignerFromThirdweb, s as asThirdwebPublishWallet, Ke as assertStorageBoundToIdentity, pe as buildAutomationSessionKeyPermissions, X as defaultApprovedTargetsForModularPublish, te as deployManagedAccountViaFactory, se as deploySmartWalletContract, We as enrollPublishAutomation, V as ensureAutomationSessionKey, Be as ensureEip7702ModularAccountReady, w as ensureExecutorModuleInstalled, P as ensureManagedAccountReady, He as ensureManagedSignerSessionKey, R as ensureModularPublishBootstrap, L as ensureSmartWalletThenPublish, a as fromThirdwebAccount, I as getClient, E as getConnectedAccount, h as getConnectedManagedAccountAddress, he as getConnectedModularAccount, b as getManagedAccountWallet, x as getModularAccountWallet, m as getPublishThirdwebChain, S as getSharedPublishInAppWalletStorage, v as getSmartWalletAddressForAdmin, y as getWalletsForConnectButton, me as hashAutomationSessionKeyPermissions, B as isAutomationSessionActive, oe as isSmartWalletDeployed, C as pollSmartWalletDeployed, z as removeAutomationSessionKey, F as resolveSmartWalletForPublish, Ge as revokePublishAutomation, fe as runModularExecutorPublishPrep, ae as seedPaymaster, A as toThirdwebSessionKeyPermissions, N as tryDeployManagedAccount, ie as useActiveSmartWalletContract, le as useLocalWalletAccount, k as usePublishConfig, ue as wallets };
370
369
 
371
370
  //# sourceMappingURL=thirdweb.js.map