@seedprotocol/publish 0.6.9 → 0.7.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 (345) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/{chainConfig-CYy0XJ0M.js → chainConfig-BJ8C_RRz.js} +392 -220
  4. package/dist/chainConfig-BJ8C_RRz.js.map +1 -0
  5. package/dist/{chainConfig-BRcsMopd.js → chainConfig-DWynbnb8.js} +446 -433
  6. package/dist/chainConfig-DWynbnb8.js.map +1 -0
  7. package/dist/{chainConfig-CA1Hrrjg.js → chainConfig-DWzoOtkS.js} +394 -328
  8. package/dist/chainConfig-DWzoOtkS.js.map +1 -0
  9. package/dist/{chainConfig-3wlYarAG.js → chainConfig-DmuPBs3D.js} +442 -420
  10. package/dist/chainConfig-DmuPBs3D.js.map +1 -0
  11. package/dist/config.d.ts +5 -4
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/ensureAutomationSessionKey-BVmh030S.js +84 -0
  14. package/dist/ensureAutomationSessionKey-BVmh030S.js.map +1 -0
  15. package/dist/ensureAutomationSessionKey-CxpJY_uH.js +84 -0
  16. package/dist/ensureAutomationSessionKey-CxpJY_uH.js.map +1 -0
  17. package/dist/ensureAutomationSessionKey-DwRm4YMJ.js +84 -0
  18. package/dist/ensureAutomationSessionKey-DwRm4YMJ.js.map +1 -0
  19. package/dist/ensureAutomationSessionKey-h3zOmDr5.js +84 -0
  20. package/dist/ensureAutomationSessionKey-h3zOmDr5.js.map +1 -0
  21. package/dist/{ensureModularPublishBootstrap-DGBKVGg5.js → ensureModularPublishBootstrap-BImiIFJe.js} +9 -10
  22. package/dist/{ensureModularPublishBootstrap-5HJDqJJM.js.map → ensureModularPublishBootstrap-BImiIFJe.js.map} +1 -1
  23. package/dist/{ensureModularPublishBootstrap-DxIG-LUP.js → ensureModularPublishBootstrap-CmxyX_EN.js} +9 -10
  24. package/dist/{ensureModularPublishBootstrap-BW8jKN_A.js.map → ensureModularPublishBootstrap-CmxyX_EN.js.map} +1 -1
  25. package/dist/{ensureModularPublishBootstrap-BW8jKN_A.js → ensureModularPublishBootstrap-DRFhp-O2.js} +9 -10
  26. package/dist/{ensureModularPublishBootstrap-BhYNmLzT.js.map → ensureModularPublishBootstrap-DRFhp-O2.js.map} +1 -1
  27. package/dist/{ensureModularPublishBootstrap-BhYNmLzT.js → ensureModularPublishBootstrap-DegJnYKL.js} +9 -10
  28. package/dist/{ensureModularPublishBootstrap-Bsw1xSCt.js.map → ensureModularPublishBootstrap-DegJnYKL.js.map} +1 -1
  29. package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js → ensureSmartWalletThenPublish-0nKg13WN.js} +9 -10
  30. package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js.map → ensureSmartWalletThenPublish-0nKg13WN.js.map} +1 -1
  31. package/dist/{ensureSmartWalletThenPublish-D5GSZRyZ.js → ensureSmartWalletThenPublish-BdqeUL6t.js} +9 -10
  32. package/dist/{ensureSmartWalletThenPublish-D5GSZRyZ.js.map → ensureSmartWalletThenPublish-BdqeUL6t.js.map} +1 -1
  33. package/dist/{ensureSmartWalletThenPublish-DAomriGc.js → ensureSmartWalletThenPublish-BfEndtFo.js} +9 -10
  34. package/dist/{ensureSmartWalletThenPublish-DAomriGc.js.map → ensureSmartWalletThenPublish-BfEndtFo.js.map} +1 -1
  35. package/dist/{ensureSmartWalletThenPublish-Dta2AOyJ.js → ensureSmartWalletThenPublish-DuOYPJFd.js} +9 -10
  36. package/dist/{ensureSmartWalletThenPublish-Bl415Ss6.js.map → ensureSmartWalletThenPublish-DuOYPJFd.js.map} +1 -1
  37. package/dist/errors.d.ts +9 -0
  38. package/dist/errors.d.ts.map +1 -1
  39. package/dist/helpers/abi/executor.d.ts +12 -0
  40. package/dist/helpers/abi/executor.d.ts.map +1 -1
  41. package/dist/helpers/abi/factory.d.ts +11 -0
  42. package/dist/helpers/abi/factory.d.ts.map +1 -1
  43. package/dist/helpers/abi/seedExecutorRouter.d.ts +9 -1
  44. package/dist/helpers/abi/seedExecutorRouter.d.ts.map +1 -1
  45. package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
  46. package/dist/helpers/chainClient.d.ts +18 -2
  47. package/dist/helpers/chainClient.d.ts.map +1 -1
  48. package/dist/helpers/contracts/index.d.ts +9 -0
  49. package/dist/helpers/contracts/index.d.ts.map +1 -1
  50. package/dist/helpers/describeRevert.d.ts +3 -2
  51. package/dist/helpers/describeRevert.d.ts.map +1 -1
  52. package/dist/helpers/enrollPublishAutomation.d.ts +2 -2
  53. package/dist/helpers/enrollPublishAutomation.d.ts.map +1 -1
  54. package/dist/helpers/ensureAutomationSessionKey.d.ts.map +1 -1
  55. package/dist/helpers/ensureExecutorModule.d.ts +28 -5
  56. package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
  57. package/dist/helpers/executorModuleReadiness.d.ts +15 -1
  58. package/dist/helpers/executorModuleReadiness.d.ts.map +1 -1
  59. package/dist/helpers/gasLog.d.ts +8 -0
  60. package/dist/helpers/gasLog.d.ts.map +1 -0
  61. package/dist/helpers/seedPaymaster.d.ts +27 -0
  62. package/dist/helpers/seedPaymaster.d.ts.map +1 -0
  63. package/dist/helpers/thirdweb.d.ts.map +1 -1
  64. package/dist/index.d.ts +3 -3
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +271 -272
  67. package/dist/index.js.map +1 -1
  68. package/dist/{managedAccountAdmin-B64V1rlU.js → managedAccountAdmin-B4HkLWWE.js} +9 -10
  69. package/dist/{managedAccountAdmin-B64V1rlU.js.map → managedAccountAdmin-B4HkLWWE.js.map} +1 -1
  70. package/dist/{managedAccountAdmin-Bje6X8Ds.js → managedAccountAdmin-ByEX_Eg2.js} +9 -10
  71. package/dist/{managedAccountAdmin-BVLGWpEb.js.map → managedAccountAdmin-ByEX_Eg2.js.map} +1 -1
  72. package/dist/{managedAccountAdmin-C84-IlQ9.js → managedAccountAdmin-DS6nniiu.js} +9 -10
  73. package/dist/{managedAccountAdmin-Bje6X8Ds.js.map → managedAccountAdmin-DS6nniiu.js.map} +1 -1
  74. package/dist/managedAccountAdmin-DwFI-ZfE.js +28 -0
  75. package/dist/{managedAccountAdmin-C84-IlQ9.js.map → managedAccountAdmin-DwFI-ZfE.js.map} +1 -1
  76. package/dist/{publishAuthorization-DjVrnMC0.js → publishAuthorization-C-XYb9Ef.js} +1500 -1391
  77. package/dist/publishAuthorization-C-XYb9Ef.js.map +1 -0
  78. package/dist/{publishAuthorization-BEqRnP2h.js → publishAuthorization-CG23g8w2.js} +1460 -1398
  79. package/dist/publishAuthorization-CG23g8w2.js.map +1 -0
  80. package/dist/{publishAuthorization-CxBkijU6.js → publishAuthorization-CvK_coYp.js} +1104 -1018
  81. package/dist/publishAuthorization-CvK_coYp.js.map +1 -0
  82. package/dist/{publishAuthorization-By2Tt9kW.js → publishAuthorization-DgDI4zor.js} +1162 -1063
  83. package/dist/publishAuthorization-DgDI4zor.js.map +1 -0
  84. package/dist/{publishThirdwebClient-CBD9sKJR.js → publishThirdwebClient-BQ_KnMi5.js} +2 -2
  85. package/dist/{publishThirdwebClient-CBD9sKJR.js.map → publishThirdwebClient-BQ_KnMi5.js.map} +1 -1
  86. package/dist/{publishThirdwebClient-BdgkcqM7.js → publishThirdwebClient-BmqsJCjp.js} +2 -2
  87. package/dist/{publishThirdwebClient-BdgkcqM7.js.map → publishThirdwebClient-BmqsJCjp.js.map} +1 -1
  88. package/dist/{publishThirdwebClient-BkmDN480.js → publishThirdwebClient-CO18ST7C.js} +2 -2
  89. package/dist/{publishThirdwebClient-BkmDN480.js.map → publishThirdwebClient-CO18ST7C.js.map} +1 -1
  90. package/dist/{publishThirdwebClient-BnDhP3N-.js → publishThirdwebClient-D-K2WEeM.js} +2 -2
  91. package/dist/{publishThirdwebClient-BnDhP3N-.js.map → publishThirdwebClient-D-K2WEeM.js.map} +1 -1
  92. package/dist/{resolveRevokeAccount-CehU81k6.js → resolveRevokeAccount-9-OzXVdp.js} +11 -11
  93. package/dist/{resolveRevokeAccount-B5iXpuRT.js.map → resolveRevokeAccount-9-OzXVdp.js.map} +1 -1
  94. package/dist/{resolveRevokeAccount-BEhKQBTm.js → resolveRevokeAccount-CXa5XlOv.js} +11 -11
  95. package/dist/{resolveRevokeAccount-B7ImSb4Y.js.map → resolveRevokeAccount-CXa5XlOv.js.map} +1 -1
  96. package/dist/{resolveRevokeAccount-CaIMuCee.js → resolveRevokeAccount-DsNod8ti.js} +11 -12
  97. package/dist/{resolveRevokeAccount-BtVG0xxc.js.map → resolveRevokeAccount-DsNod8ti.js.map} +1 -1
  98. package/dist/{resolveRevokeAccount-DHnxtEIj.js → resolveRevokeAccount-QgZ6YZuS.js} +11 -12
  99. package/dist/{resolveRevokeAccount-BM1j2l5Q.js.map → resolveRevokeAccount-QgZ6YZuS.js.map} +1 -1
  100. package/dist/services/publish/actors/checking.d.ts.map +1 -1
  101. package/dist/services/publish/actors/createAttestations.d.ts.map +1 -1
  102. package/dist/services/publish/actors/createAttestationsDirectToEas.d.ts.map +1 -1
  103. package/dist/services/publish/actors/multiPublishReceipt.d.ts +58 -0
  104. package/dist/services/publish/actors/multiPublishReceipt.d.ts.map +1 -0
  105. package/dist/services/publish/actors/persistSeedUid.d.ts.map +1 -1
  106. package/dist/services/publish/actors/recordMultiPublishReceipt.d.ts +45 -0
  107. package/dist/services/publish/actors/recordMultiPublishReceipt.d.ts.map +1 -0
  108. package/dist/services/publish/helpers/getPublishUploadData.d.ts.map +1 -1
  109. package/dist/services/publishCost/types.d.ts +3 -1
  110. package/dist/services/publishCost/types.d.ts.map +1 -1
  111. package/dist/services/publishManager/actions/publishDone.d.ts.map +1 -1
  112. package/dist/services/publishManager/actions/stopAll.d.ts.map +1 -1
  113. package/dist/services/publishManager/actions/stopPublish.d.ts.map +1 -1
  114. package/dist/services/publishManager/actors/restoreFromDb.d.ts.map +1 -1
  115. package/dist/services/publishManager/index.d.ts +3 -3
  116. package/dist/services/publishManager/index.d.ts.map +1 -1
  117. package/dist/services/publishManager/publishLocks.d.ts +22 -0
  118. package/dist/services/publishManager/publishLocks.d.ts.map +1 -0
  119. package/dist/services/revoke/revokeAttestations.d.ts.map +1 -1
  120. package/dist/thirdweb.d.ts +2 -1
  121. package/dist/thirdweb.d.ts.map +1 -1
  122. package/dist/thirdweb.js +147 -148
  123. package/dist/thirdweb.js.map +1 -1
  124. package/dist/{worker-2dUZSapK.js → worker-CJRUAOAn.js} +2 -2
  125. package/dist/{worker-2dUZSapK.js.map → worker-CJRUAOAn.js.map} +1 -1
  126. package/dist/{worker-B1PcFPLi.js → worker-CN7zg73B.js} +2 -2
  127. package/dist/{worker-B1PcFPLi.js.map → worker-CN7zg73B.js.map} +1 -1
  128. package/dist/{worker-BCG1r0AS.js → worker-FmHZbku5.js} +9 -6
  129. package/dist/{worker-BCG1r0AS.js.map → worker-FmHZbku5.js.map} +1 -1
  130. package/dist/{worker-B8gN5WTx.js → worker-qoGuo876.js} +2 -2
  131. package/dist/{worker-B8gN5WTx.js.map → worker-qoGuo876.js.map} +1 -1
  132. package/package.json +6 -6
  133. package/dist/chainConfig-3sSqEVQh.js +0 -1433
  134. package/dist/chainConfig-3sSqEVQh.js.map +0 -1
  135. package/dist/chainConfig-3wlYarAG.js.map +0 -1
  136. package/dist/chainConfig-BRcsMopd.js.map +0 -1
  137. package/dist/chainConfig-BYm5OXpk.js +0 -1433
  138. package/dist/chainConfig-BYm5OXpk.js.map +0 -1
  139. package/dist/chainConfig-CA1Hrrjg.js.map +0 -1
  140. package/dist/chainConfig-CYy0XJ0M.js.map +0 -1
  141. package/dist/chainConfig-CfVGYAsY.js +0 -1311
  142. package/dist/chainConfig-CfVGYAsY.js.map +0 -1
  143. package/dist/chainConfig-DDA4YmAB.js +0 -1424
  144. package/dist/chainConfig-DDA4YmAB.js.map +0 -1
  145. package/dist/config-BA9la8B6.js +0 -941
  146. package/dist/config-BA9la8B6.js.map +0 -1
  147. package/dist/config-BqguD2Tt.js +0 -806
  148. package/dist/config-BqguD2Tt.js.map +0 -1
  149. package/dist/config-CPBd5C_b.js +0 -1201
  150. package/dist/config-CPBd5C_b.js.map +0 -1
  151. package/dist/config-DkIapO94.js +0 -955
  152. package/dist/config-DkIapO94.js.map +0 -1
  153. package/dist/config-EQZZNH9H.js +0 -955
  154. package/dist/config-EQZZNH9H.js.map +0 -1
  155. package/dist/config-qjpaJcBA.js +0 -947
  156. package/dist/config-qjpaJcBA.js.map +0 -1
  157. package/dist/deploy-BJYwLfz-.js +0 -15
  158. package/dist/deploy-BJYwLfz-.js.map +0 -1
  159. package/dist/enrollPublishAutomation-DYQMoylY.js +0 -3422
  160. package/dist/enrollPublishAutomation-DYQMoylY.js.map +0 -1
  161. package/dist/ensureAutomationSessionKey-BMHLKfjj.js +0 -85
  162. package/dist/ensureAutomationSessionKey-BMHLKfjj.js.map +0 -1
  163. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js +0 -86
  164. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js.map +0 -1
  165. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js +0 -84
  166. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js.map +0 -1
  167. package/dist/ensureAutomationSessionKey-Bw74ZSGI.js +0 -85
  168. package/dist/ensureAutomationSessionKey-Bw74ZSGI.js.map +0 -1
  169. package/dist/ensureAutomationSessionKey-C8D7BFjU.js +0 -85
  170. package/dist/ensureAutomationSessionKey-C8D7BFjU.js.map +0 -1
  171. package/dist/ensureAutomationSessionKey-CClLVX2w.js +0 -85
  172. package/dist/ensureAutomationSessionKey-CClLVX2w.js.map +0 -1
  173. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js +0 -85
  174. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js.map +0 -1
  175. package/dist/ensureAutomationSessionKey-CeUbjcCl.js +0 -85
  176. package/dist/ensureAutomationSessionKey-CeUbjcCl.js.map +0 -1
  177. package/dist/ensureAutomationSessionKey-D8Gki6U6.js +0 -85
  178. package/dist/ensureAutomationSessionKey-D8Gki6U6.js.map +0 -1
  179. package/dist/ensureAutomationSessionKey-DEH7nwUc.js +0 -86
  180. package/dist/ensureAutomationSessionKey-DEH7nwUc.js.map +0 -1
  181. package/dist/ensureAutomationSessionKey-DKriW4Hr.js +0 -85
  182. package/dist/ensureAutomationSessionKey-DKriW4Hr.js.map +0 -1
  183. package/dist/ensureAutomationSessionKey-Dhvbii2M.js +0 -86
  184. package/dist/ensureAutomationSessionKey-Dhvbii2M.js.map +0 -1
  185. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js +0 -85
  186. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js.map +0 -1
  187. package/dist/ensureModularPublishBootstrap-5HJDqJJM.js +0 -24
  188. package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js +0 -24
  189. package/dist/ensureModularPublishBootstrap-Btih5xbB.js +0 -129
  190. package/dist/ensureModularPublishBootstrap-Btih5xbB.js.map +0 -1
  191. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js +0 -128
  192. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js.map +0 -1
  193. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js +0 -129
  194. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js.map +0 -1
  195. package/dist/ensureModularPublishBootstrap-CcU-hXll.js +0 -128
  196. package/dist/ensureModularPublishBootstrap-CcU-hXll.js.map +0 -1
  197. package/dist/ensureModularPublishBootstrap-CdrykHAi.js +0 -24
  198. package/dist/ensureModularPublishBootstrap-CdrykHAi.js.map +0 -1
  199. package/dist/ensureModularPublishBootstrap-DGBKVGg5.js.map +0 -1
  200. package/dist/ensureModularPublishBootstrap-DaREOqSc.js +0 -129
  201. package/dist/ensureModularPublishBootstrap-DaREOqSc.js.map +0 -1
  202. package/dist/ensureModularPublishBootstrap-DxIG-LUP.js.map +0 -1
  203. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js +0 -127
  204. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js.map +0 -1
  205. package/dist/ensureSessionKey-D2Lq-56x.js +0 -363
  206. package/dist/ensureSessionKey-D2Lq-56x.js.map +0 -1
  207. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js +0 -48
  208. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js.map +0 -1
  209. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js +0 -49
  210. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js.map +0 -1
  211. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js +0 -49
  212. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js.map +0 -1
  213. package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js +0 -48
  214. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js +0 -49
  215. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js.map +0 -1
  216. package/dist/ensureSmartWalletThenPublish-CE7acryB.js +0 -49
  217. package/dist/ensureSmartWalletThenPublish-CE7acryB.js.map +0 -1
  218. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js +0 -48
  219. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js.map +0 -1
  220. package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js.map +0 -1
  221. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js +0 -48
  222. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js.map +0 -1
  223. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js +0 -48
  224. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js.map +0 -1
  225. package/dist/errors-Du3LNbJN.js +0 -70
  226. package/dist/errors-Du3LNbJN.js.map +0 -1
  227. package/dist/errors-PZAaDlkq.js +0 -79
  228. package/dist/errors-PZAaDlkq.js.map +0 -1
  229. package/dist/helpers/adapters/managedAccountTxSender.d.ts +0 -21
  230. package/dist/helpers/adapters/managedAccountTxSender.d.ts.map +0 -1
  231. package/dist/helpers/modularAccount/abi.d.ts +0 -173
  232. package/dist/helpers/modularAccount/abi.d.ts.map +0 -1
  233. package/dist/helpers/modularAccount/deploy.d.ts +0 -13
  234. package/dist/helpers/modularAccount/deploy.d.ts.map +0 -1
  235. package/dist/helpers/modularAccount/eip712.d.ts +0 -30
  236. package/dist/helpers/modularAccount/eip712.d.ts.map +0 -1
  237. package/dist/helpers/modularAccount/encode.d.ts +0 -16
  238. package/dist/helpers/modularAccount/encode.d.ts.map +0 -1
  239. package/dist/helpers/modularAccount/ensureModule.d.ts +0 -10
  240. package/dist/helpers/modularAccount/ensureModule.d.ts.map +0 -1
  241. package/dist/helpers/modularAccount/ensureSessionKey.d.ts +0 -25
  242. package/dist/helpers/modularAccount/ensureSessionKey.d.ts.map +0 -1
  243. package/dist/helpers/modularAccount/index.d.ts +0 -9
  244. package/dist/helpers/modularAccount/index.d.ts.map +0 -1
  245. package/dist/helpers/modularAccount/permissions.d.ts +0 -32
  246. package/dist/helpers/modularAccount/permissions.d.ts.map +0 -1
  247. package/dist/helpers/modularAccount/reads.d.ts +0 -28
  248. package/dist/helpers/modularAccount/reads.d.ts.map +0 -1
  249. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts +0 -31
  250. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts.map +0 -1
  251. package/dist/helpers/thirdwebModularBootstrap.d.ts +0 -8
  252. package/dist/helpers/thirdwebModularBootstrap.d.ts.map +0 -1
  253. package/dist/helpers/transformPayloadToIntegerIds.d.ts +0 -34
  254. package/dist/helpers/transformPayloadToIntegerIds.d.ts.map +0 -1
  255. package/dist/managedAccountAdmin-BVLGWpEb.js +0 -29
  256. package/dist/managedAccountAdmin-DJMw6UH6.js +0 -29
  257. package/dist/managedAccountAdmin-DJMw6UH6.js.map +0 -1
  258. package/dist/managedAccountAdmin-DhCRBoPX.js +0 -29
  259. package/dist/managedAccountAdmin-DhCRBoPX.js.map +0 -1
  260. package/dist/managedAccountAdmin-NXD66lP5.js +0 -29
  261. package/dist/managedAccountAdmin-NXD66lP5.js.map +0 -1
  262. package/dist/publishAuthorization-B0G1em4a.js +0 -3695
  263. package/dist/publishAuthorization-B0G1em4a.js.map +0 -1
  264. package/dist/publishAuthorization-B1BVVfp0.js +0 -3604
  265. package/dist/publishAuthorization-B1BVVfp0.js.map +0 -1
  266. package/dist/publishAuthorization-BEqRnP2h.js.map +0 -1
  267. package/dist/publishAuthorization-Bltn3y_K.js +0 -3599
  268. package/dist/publishAuthorization-Bltn3y_K.js.map +0 -1
  269. package/dist/publishAuthorization-By2Tt9kW.js.map +0 -1
  270. package/dist/publishAuthorization-CSN2FsQk.js +0 -3479
  271. package/dist/publishAuthorization-CSN2FsQk.js.map +0 -1
  272. package/dist/publishAuthorization-CxBkijU6.js.map +0 -1
  273. package/dist/publishAuthorization-CxWY7lAQ.js +0 -3706
  274. package/dist/publishAuthorization-CxWY7lAQ.js.map +0 -1
  275. package/dist/publishAuthorization-DEriY_jm.js +0 -3687
  276. package/dist/publishAuthorization-DEriY_jm.js.map +0 -1
  277. package/dist/publishAuthorization-DfAQs1sN.js +0 -3707
  278. package/dist/publishAuthorization-DfAQs1sN.js.map +0 -1
  279. package/dist/publishAuthorization-DgdmgLTa.js +0 -3520
  280. package/dist/publishAuthorization-DgdmgLTa.js.map +0 -1
  281. package/dist/publishAuthorization-DjVrnMC0.js.map +0 -1
  282. package/dist/publishAuthorization-DqhhCAhd.js +0 -3652
  283. package/dist/publishAuthorization-DqhhCAhd.js.map +0 -1
  284. package/dist/publishThirdwebClient-CQ29pzG2.js +0 -18
  285. package/dist/publishThirdwebClient-CQ29pzG2.js.map +0 -1
  286. package/dist/publishThirdwebClient-CZIVmr9Z.js +0 -18
  287. package/dist/publishThirdwebClient-CZIVmr9Z.js.map +0 -1
  288. package/dist/publishThirdwebClient-Ce7iBIsj.js +0 -18
  289. package/dist/publishThirdwebClient-Ce7iBIsj.js.map +0 -1
  290. package/dist/publishThirdwebClient-DroRrOFQ.js +0 -18
  291. package/dist/publishThirdwebClient-DroRrOFQ.js.map +0 -1
  292. package/dist/publishThirdwebClient-DzXFjQ7L.js +0 -18
  293. package/dist/publishThirdwebClient-DzXFjQ7L.js.map +0 -1
  294. package/dist/publishThirdwebClient-Dzb2vcEs.js +0 -18
  295. package/dist/publishThirdwebClient-Dzb2vcEs.js.map +0 -1
  296. package/dist/publishThirdwebClient-i8P7fivi.js +0 -18
  297. package/dist/publishThirdwebClient-i8P7fivi.js.map +0 -1
  298. package/dist/publishWalletRegistry-Cugh691z.js +0 -37
  299. package/dist/publishWalletRegistry-Cugh691z.js.map +0 -1
  300. package/dist/resolveRevokeAccount-B5iXpuRT.js +0 -38
  301. package/dist/resolveRevokeAccount-B7ImSb4Y.js +0 -38
  302. package/dist/resolveRevokeAccount-BEhKQBTm.js.map +0 -1
  303. package/dist/resolveRevokeAccount-BM1j2l5Q.js +0 -38
  304. package/dist/resolveRevokeAccount-BtVG0xxc.js +0 -38
  305. package/dist/resolveRevokeAccount-CJZZdBcQ.js +0 -39
  306. package/dist/resolveRevokeAccount-CJZZdBcQ.js.map +0 -1
  307. package/dist/resolveRevokeAccount-CaIMuCee.js.map +0 -1
  308. package/dist/resolveRevokeAccount-CehU81k6.js.map +0 -1
  309. package/dist/resolveRevokeAccount-Cg4TQgnd.js +0 -38
  310. package/dist/resolveRevokeAccount-Cg4TQgnd.js.map +0 -1
  311. package/dist/resolveRevokeAccount-DHnxtEIj.js.map +0 -1
  312. package/dist/resolveRevokeAccount-DJKfLlyK.js +0 -38
  313. package/dist/resolveRevokeAccount-DJKfLlyK.js.map +0 -1
  314. package/dist/resolveRevokeAccount-S-2WXkNh.js +0 -38
  315. package/dist/resolveRevokeAccount-S-2WXkNh.js.map +0 -1
  316. package/dist/resolveRevokeAccount-mzR11KJ4.js +0 -38
  317. package/dist/resolveRevokeAccount-mzR11KJ4.js.map +0 -1
  318. package/dist/resolveRevokeAccount-yWARIv9i.js +0 -38
  319. package/dist/resolveRevokeAccount-yWARIv9i.js.map +0 -1
  320. package/dist/seedSigner-CFzMD7Rb.js +0 -66
  321. package/dist/seedSigner-CFzMD7Rb.js.map +0 -1
  322. package/dist/thirdweb-BoksPRz3.js +0 -194
  323. package/dist/thirdweb-BoksPRz3.js.map +0 -1
  324. package/dist/thirdwebAccount-C2iOcp4_.js +0 -59
  325. package/dist/thirdwebAccount-C2iOcp4_.js.map +0 -1
  326. package/dist/worker-BgErCNTb.js +0 -69
  327. package/dist/worker-BgErCNTb.js.map +0 -1
  328. package/dist/worker-C07rPV2G.js +0 -69
  329. package/dist/worker-C07rPV2G.js.map +0 -1
  330. package/dist/worker-C9Za_dlQ.js +0 -69
  331. package/dist/worker-C9Za_dlQ.js.map +0 -1
  332. package/dist/worker-CEgulQnm.js +0 -69
  333. package/dist/worker-CEgulQnm.js.map +0 -1
  334. package/dist/worker-C_TL94He.js +0 -69
  335. package/dist/worker-C_TL94He.js.map +0 -1
  336. package/dist/worker-CbtzcKG6.js +0 -69
  337. package/dist/worker-CbtzcKG6.js.map +0 -1
  338. package/dist/worker-DBC_g-3I.js +0 -69
  339. package/dist/worker-DBC_g-3I.js.map +0 -1
  340. package/dist/worker-DHUm-TeQ.js +0 -69
  341. package/dist/worker-DHUm-TeQ.js.map +0 -1
  342. package/dist/worker-DypHzXgH.js +0 -69
  343. package/dist/worker-DypHzXgH.js.map +0 -1
  344. package/dist/worker-ZL4Wg19t.js +0 -69
  345. package/dist/worker-ZL4Wg19t.js.map +0 -1
@@ -1,21 +1,21 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { optimismSepolia as t } from "viem/chains";
3
- import { DEFAULT_ARWEAVE_GRAPHQL_URL as n, VERSION_SCHEMA_UID as r, assertLocalDbChain as i, client as a, getAttesterForSeed as o, getGetAdditionalSyncAddresses as s, getMetadataAttestationUidsForSeedUid as c, getVersionsForSeedUid as ee, isValidEasAttestationUid as l, setAdditionalSyncAddresses as u, setGetPublisherForNewSeeds as te, setRevokeExecutor as d, updateSeedRevokedAt as ne } from "@seedprotocol/sdk";
4
- import { createPublicClient as f, encodeAbiParameters as p, encodeFunctionData as m, http as h, parseEventLogs as g } from "viem";
5
- import { prepareTransaction as re, sendTransaction as ie } from "thirdweb";
6
- import { ethers as ae } from "ethers";
7
- import { defineChain as oe, optimismSepolia as se } from "thirdweb/chains";
8
- import { configureEasReadChain as ce, expectEasReadChain as le, resolveEasChainDeployment as ue } from "@seedprotocol/eas";
3
+ import { DEFAULT_ARWEAVE_GRAPHQL_URL as n, VERSION_SCHEMA_UID as r, assertLocalDbChain as i, client as a, getAttesterForSeed as o, getGetAdditionalSyncAddresses as s, getMetadataAttestationUidsForSeedUid as c, getVersionsForSeedUid as ee, isValidEasAttestationUid as l, setAdditionalSyncAddresses as u, setGetPublisherForNewSeeds as d, setRevokeExecutor as te, updateSeedRevokedAt as ne, whenLeaderTab as f } from "@seedprotocol/sdk";
4
+ import { createPublicClient as p, encodeAbiParameters as m, encodeFunctionData as h, getAbiItem as g, http as re, parseEventLogs as ie, toFunctionSelector as ae, zeroAddress as oe } from "viem";
5
+ import { prepareTransaction as se, sendTransaction as ce } from "thirdweb";
6
+ import { ethers as le } from "ethers";
7
+ import { defineChain as ue, optimismSepolia as de } from "thirdweb/chains";
8
+ import { configureEasReadChain as fe, expectEasReadChain as pe, resolveEasChainDeployment as me } from "@seedprotocol/eas";
9
9
  //#region src/helpers/constants.ts
10
- var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", fe = { 11155420: "0x76f47d88bfaf670f5208911181fcdc0e160cb16d" }, pe = "0xcd8c945872df8e664e55cf8885c85ea3ea8f2148", me = pe, he = {
10
+ var he = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", ge = { 11155420: "0x76f47d88bfaf670f5208911181fcdc0e160cb16d" }, _e = "0xcd8c945872df8e664e55cf8885c85ea3ea8f2148", ve = _e, ye = {
11
11
  SUCCESS: "success",
12
12
  FAILURE: "failure"
13
- }, ge = [
13
+ }, be = [
14
14
  "pollingForConfirmation",
15
15
  "uploadingData",
16
16
  "uploadingViaBundler",
17
17
  "uploadingViaBundlerPhase2"
18
- ], _e = 3e4, _ = t, ve = [
18
+ ], xe = 3e4, _ = t, Se = [
19
19
  {
20
20
  type: "error",
21
21
  name: "AccessDenied",
@@ -66,7 +66,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
66
66
  name: "InvalidLength",
67
67
  inputs: []
68
68
  }
69
- ], ye = [
69
+ ], v = [
70
70
  {
71
71
  name: "recipient",
72
72
  type: "address"
@@ -91,7 +91,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
91
91
  name: "value",
92
92
  type: "uint256"
93
93
  }
94
- ], v = [
94
+ ], y = [
95
95
  {
96
96
  type: "function",
97
97
  name: "attest",
@@ -105,7 +105,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
105
105
  }, {
106
106
  name: "data",
107
107
  type: "tuple",
108
- components: ye
108
+ components: v
109
109
  }]
110
110
  }],
111
111
  outputs: [{ type: "bytes32" }]
@@ -123,7 +123,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
123
123
  }, {
124
124
  name: "data",
125
125
  type: "tuple[]",
126
- components: ye
126
+ components: v
127
127
  }]
128
128
  }],
129
129
  outputs: [{ type: "bytes32[]" }]
@@ -178,43 +178,11 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
178
178
  }
179
179
  ]
180
180
  },
181
- ...ve
182
- ], be = [{
183
- name: "schema",
184
- type: "bytes32"
185
- }, {
186
- name: "data",
187
- type: "tuple[]",
188
- components: [
189
- {
190
- name: "recipient",
191
- type: "address"
192
- },
193
- {
194
- name: "expirationTime",
195
- type: "uint64"
196
- },
197
- {
198
- name: "revocable",
199
- type: "bool"
200
- },
201
- {
202
- name: "refUID",
203
- type: "bytes32"
204
- },
205
- {
206
- name: "data",
207
- type: "bytes"
208
- },
209
- {
210
- name: "value",
211
- type: "uint256"
212
- }
213
- ]
214
- }], xe = [{
181
+ ...Se
182
+ ], b = [{
215
183
  type: "function",
216
184
  name: "multiPublish",
217
- stateMutability: "nonpayable",
185
+ stateMutability: "payable",
218
186
  inputs: [{
219
187
  name: "requests",
220
188
  type: "tuple[]",
@@ -246,64 +214,45 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
246
214
  {
247
215
  name: "listOfAttestations",
248
216
  type: "tuple[]",
249
- components: be
250
- },
251
- {
252
- name: "propertiesToUpdate",
253
- type: "tuple[]",
254
217
  components: [{
255
- name: "publishLocalId",
256
- type: "string"
257
- }, {
258
- name: "propertySchemaUid",
218
+ name: "schema",
259
219
  type: "bytes32"
220
+ }, {
221
+ name: "data",
222
+ type: "tuple[]",
223
+ components: [
224
+ {
225
+ name: "recipient",
226
+ type: "address"
227
+ },
228
+ {
229
+ name: "expirationTime",
230
+ type: "uint64"
231
+ },
232
+ {
233
+ name: "revocable",
234
+ type: "bool"
235
+ },
236
+ {
237
+ name: "refUID",
238
+ type: "bytes32"
239
+ },
240
+ {
241
+ name: "data",
242
+ type: "bytes"
243
+ },
244
+ {
245
+ name: "value",
246
+ type: "uint256"
247
+ }
248
+ ]
260
249
  }]
261
- }
262
- ]
263
- }],
264
- outputs: [{ type: "bytes32[]" }]
265
- }], Se = [{
266
- type: "function",
267
- name: "multiPublish",
268
- stateMutability: "nonpayable",
269
- inputs: [{
270
- name: "requests",
271
- type: "tuple[]",
272
- components: [
273
- {
274
- name: "localIdIndex",
275
- type: "uint256"
276
- },
277
- {
278
- name: "seedUid",
279
- type: "bytes32"
280
- },
281
- {
282
- name: "seedSchemaUid",
283
- type: "bytes32"
284
- },
285
- {
286
- name: "versionUid",
287
- type: "bytes32"
288
- },
289
- {
290
- name: "versionSchemaUid",
291
- type: "bytes32"
292
- },
293
- {
294
- name: "seedIsRevocable",
295
- type: "bool"
296
- },
297
- {
298
- name: "listOfAttestations",
299
- type: "tuple[]",
300
- components: be
301
250
  },
302
251
  {
303
252
  name: "propertiesToUpdate",
304
253
  type: "tuple[]",
305
254
  components: [{
306
- name: "publishLocalIdIndex",
255
+ name: "publishIndex",
307
256
  type: "uint256"
308
257
  }, {
309
258
  name: "propertySchemaUid",
@@ -313,7 +262,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
313
262
  ]
314
263
  }],
315
264
  outputs: [{ type: "bytes32[]" }]
316
- }], y = [
265
+ }], x = [
317
266
  {
318
267
  type: "function",
319
268
  name: "getEas",
@@ -374,31 +323,44 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
374
323
  type: "bytes",
375
324
  indexed: !1
376
325
  }]
377
- }], b = [{
378
- type: "function",
379
- name: "getAddress",
380
- stateMutability: "view",
381
- inputs: [{
382
- name: "_adminSigner",
383
- type: "address"
384
- }, {
385
- name: "_data",
386
- type: "bytes"
387
- }],
388
- outputs: [{ type: "address" }]
389
- }, {
390
- type: "function",
391
- name: "createAccount",
392
- stateMutability: "nonpayable",
393
- inputs: [{
394
- name: "_admin",
395
- type: "address"
396
- }, {
397
- name: "_data",
398
- type: "bytes"
399
- }],
400
- outputs: [{ type: "address" }]
401
- }], we = [{
326
+ }], S = [
327
+ {
328
+ type: "function",
329
+ name: "getAddress",
330
+ stateMutability: "view",
331
+ inputs: [{
332
+ name: "_adminSigner",
333
+ type: "address"
334
+ }, {
335
+ name: "_data",
336
+ type: "bytes"
337
+ }],
338
+ outputs: [{ type: "address" }]
339
+ },
340
+ {
341
+ type: "function",
342
+ name: "createAccount",
343
+ stateMutability: "nonpayable",
344
+ inputs: [{
345
+ name: "_admin",
346
+ type: "address"
347
+ }, {
348
+ name: "_data",
349
+ type: "bytes"
350
+ }],
351
+ outputs: [{ type: "address" }]
352
+ },
353
+ {
354
+ type: "function",
355
+ name: "getImplementationForFunction",
356
+ stateMutability: "view",
357
+ inputs: [{
358
+ name: "_functionSelector",
359
+ type: "bytes4"
360
+ }],
361
+ outputs: [{ type: "address" }]
362
+ }
363
+ ], we = [{
402
364
  type: "event",
403
365
  name: "CreatedAttestation",
404
366
  inputs: [{
@@ -425,94 +387,8 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
425
387
  type: "bytes32",
426
388
  indexed: !1
427
389
  }]
428
- }], x = [
429
- {
430
- type: "function",
431
- name: "multiPublish",
432
- stateMutability: "payable",
433
- inputs: [{
434
- name: "requests",
435
- type: "tuple[]",
436
- components: [
437
- {
438
- name: "localId",
439
- type: "string"
440
- },
441
- {
442
- name: "seedUid",
443
- type: "bytes32"
444
- },
445
- {
446
- name: "versionUid",
447
- type: "bytes32"
448
- },
449
- {
450
- name: "seedSchemaUid",
451
- type: "bytes32"
452
- },
453
- {
454
- name: "versionSchemaUid",
455
- type: "bytes32"
456
- },
457
- {
458
- name: "seedIsRevocable",
459
- type: "bool"
460
- },
461
- {
462
- name: "listOfAttestations",
463
- type: "tuple[]",
464
- components: [{
465
- name: "schema",
466
- type: "bytes32"
467
- }, {
468
- name: "data",
469
- type: "tuple[]",
470
- components: [
471
- {
472
- name: "recipient",
473
- type: "address"
474
- },
475
- {
476
- name: "expirationTime",
477
- type: "uint64"
478
- },
479
- {
480
- name: "revocable",
481
- type: "bool"
482
- },
483
- {
484
- name: "refUID",
485
- type: "bytes32"
486
- },
487
- {
488
- name: "data",
489
- type: "bytes"
490
- },
491
- {
492
- name: "value",
493
- type: "uint256"
494
- }
495
- ]
496
- }]
497
- },
498
- {
499
- name: "propertiesToUpdate",
500
- type: "tuple[]",
501
- components: [{
502
- name: "publishIndex",
503
- type: "uint256"
504
- }, {
505
- name: "propertySchemaUid",
506
- type: "bytes32"
507
- }]
508
- }
509
- ]
510
- }],
511
- outputs: [{
512
- name: "",
513
- type: "bytes32[]"
514
- }]
515
- },
390
+ }], C = [
391
+ b[0],
516
392
  {
517
393
  type: "function",
518
394
  name: "isInitialized",
@@ -539,6 +415,19 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
539
415
  type: "address"
540
416
  }]
541
417
  },
418
+ {
419
+ type: "event",
420
+ name: "ModuleInitialized",
421
+ inputs: [{
422
+ name: "account",
423
+ type: "address",
424
+ indexed: !0
425
+ }, {
426
+ name: "eas",
427
+ type: "address",
428
+ indexed: !0
429
+ }]
430
+ },
542
431
  {
543
432
  type: "error",
544
433
  name: "AlreadyInitialized",
@@ -570,7 +459,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
570
459
  name: "MultiAttestFailed",
571
460
  inputs: []
572
461
  }
573
- ], S = [
462
+ ], w = [
574
463
  {
575
464
  type: "function",
576
465
  name: "installSeedExecutor",
@@ -614,6 +503,15 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
614
503
  type: "bool"
615
504
  }]
616
505
  },
506
+ {
507
+ type: "event",
508
+ name: "SeedExecutorInstalled",
509
+ inputs: [{
510
+ name: "executor",
511
+ type: "address",
512
+ indexed: !0
513
+ }]
514
+ },
617
515
  {
618
516
  type: "error",
619
517
  name: "Unauthorized",
@@ -632,7 +530,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
632
530
  name: "SeedExecutorNotInstalled",
633
531
  inputs: []
634
532
  }
635
- ], Te = 2n, C = [{
533
+ ], Te = 2n, Ee = [{
636
534
  type: "function",
637
535
  name: "getSchema",
638
536
  stateMutability: "view",
@@ -681,8 +579,81 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
681
579
  }
682
580
  ],
683
581
  outputs: [{ type: "bytes32" }]
684
- }], w = null, T = null;
685
- function Ee() {
582
+ }], De = class extends Error {
583
+ seedLocalId;
584
+ expectedSchemas;
585
+ foundSchemas;
586
+ code;
587
+ constructor(e, t, n, r, i = "METADATA_PROPERTIES_MISSING") {
588
+ super(e), this.seedLocalId = t, this.expectedSchemas = n, this.foundSchemas = r, this.code = i, this.name = "AttestationVerificationError";
589
+ }
590
+ };
591
+ function T(e, t = 700) {
592
+ if (e == null) return "";
593
+ if (e instanceof Error) {
594
+ let n = e.cause instanceof Error ? ` | cause: ${e.cause.message}` : "";
595
+ return (e.message + n).slice(0, t);
596
+ }
597
+ if (typeof e == "object") {
598
+ let n = e, r = [];
599
+ if (typeof n.message == "string" && r.push(n.message), typeof n.shortMessage == "string" && r.push(n.shortMessage), typeof n.details == "string" && r.push(n.details), typeof n.reason == "string" && r.push(n.reason), r.length) return r.join(" | ").slice(0, t);
600
+ try {
601
+ return JSON.stringify(e).slice(0, t);
602
+ } catch {
603
+ return String(e).slice(0, t);
604
+ }
605
+ }
606
+ return String(e).slice(0, t);
607
+ }
608
+ var Oe = class extends Error {
609
+ code;
610
+ managedAddress;
611
+ underlyingCause;
612
+ constructor(e, t, n, r) {
613
+ let i = r != null && r !== "" ? ` (${T(r)})` : "";
614
+ super(e + i), this.code = t, this.managedAddress = n, this.name = "ManagedAccountPublishError", this.underlyingCause = r;
615
+ }
616
+ }, ke = class extends Error {
617
+ transactionHash;
618
+ receipt;
619
+ constructor(e, t) {
620
+ super(`Transaction ${e} reverted.`), this.transactionHash = e, this.receipt = t, this.name = "PublishTransactionRevertedError";
621
+ }
622
+ };
623
+ function Ae(e) {
624
+ if (e instanceof Oe) return !0;
625
+ if (typeof e != "object" || !e) return !1;
626
+ let t = e;
627
+ return t.name === "ManagedAccountPublishError" && typeof t.code == "string";
628
+ }
629
+ var je = class extends Error {
630
+ code;
631
+ modularAddress;
632
+ underlyingCause;
633
+ constructor(e, t, n, r) {
634
+ let i = r != null && r !== "" ? ` (${T(r)})` : "";
635
+ super(e + i), this.code = t, this.modularAddress = n, this.name = "Eip7702ModularAccountPublishError", this.underlyingCause = r;
636
+ }
637
+ }, Me = [
638
+ "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE",
639
+ "EIP7702_MODULAR_NOT_UPGRADED",
640
+ "EIP7702_MODULAR_DEPLOY_FAILED",
641
+ "EIP7702_MODULAR_NOT_CONFIRMED"
642
+ ];
643
+ function Ne(e) {
644
+ if (e instanceof je) return !0;
645
+ if (typeof e != "object" || !e) return !1;
646
+ let t = e;
647
+ return t.name === "Eip7702ModularAccountPublishError" && typeof t.code == "string" && Me.includes(t.code);
648
+ }
649
+ function Pe(e) {
650
+ let t = T(e);
651
+ return !!(/Router:\s*function does not exist/i.test(t) || /Cannot decode zero data\s*\(\s*["']0x["']\s*\)/i.test(t));
652
+ }
653
+ //#endregion
654
+ //#region src/helpers/chainClient.ts
655
+ var E = null, Fe = null;
656
+ function Ie() {
686
657
  try {
687
658
  let e = Y().thirdwebSecretKey;
688
659
  return e ? { headers: { "x-secret-key": e } } : void 0;
@@ -690,14 +661,14 @@ function Ee() {
690
661
  return;
691
662
  }
692
663
  }
693
- function De() {
694
- let e = Q(), t = $(), n = Ee();
695
- return f({
664
+ function Le() {
665
+ let e = Q(), t = $(), n = Ie();
666
+ return p({
696
667
  chain: e,
697
- transport: h(t, n ? { fetchOptions: n } : void 0)
668
+ transport: re(t, n ? { fetchOptions: n } : void 0)
698
669
  });
699
670
  }
700
- function E() {
671
+ function D() {
701
672
  let e = Q(), t = $(), n = "";
702
673
  try {
703
674
  n = Y().thirdwebSecretKey ?? "";
@@ -705,24 +676,31 @@ function E() {
705
676
  n = "";
706
677
  }
707
678
  let r = `${e.id}:${t}:${n ? "1" : "0"}:${n}`;
708
- return (!w || T !== r) && (T = r, w = De()), w;
679
+ return (!E || Fe !== r) && (Fe = r, E = Le()), E;
709
680
  }
710
- async function D(e) {
711
- return E().waitForTransactionReceipt({ hash: e });
681
+ async function Re(e) {
682
+ let t = await D().waitForTransactionReceipt({ hash: e });
683
+ if (t.status === "reverted") throw new ke(e, t);
684
+ return t;
685
+ }
686
+ async function ze(e, t, { attempts: n = 5, intervalMs: r = 2e3 } = {}) {
687
+ let i = await e();
688
+ for (let a = 1; a < n && !t(i); a++) await new Promise((e) => setTimeout(e, r)), i = await e();
689
+ return i;
712
690
  }
713
691
  async function O(e) {
714
- let t = await E().getBytecode({ address: e });
692
+ let t = await D().getBytecode({ address: e });
715
693
  return !!t && t !== "0x";
716
694
  }
717
- async function Oe(e) {
695
+ async function Be(e) {
718
696
  try {
719
- let t = await E().getBlock({ blockNumber: e });
697
+ let t = await D().getBlock({ blockNumber: e });
720
698
  if (t?.timestamp != null) return Number(t.timestamp) * 1e3;
721
699
  } catch {}
722
700
  return null;
723
701
  }
724
- var ke = 5, Ae = 6e3;
725
- async function je(e, t = ke, n = Ae) {
702
+ var Ve = 5, He = 6e3;
703
+ async function Ue(e, t = Ve, n = He) {
726
704
  for (let r = 0; r < t; r++) {
727
705
  if (await O(e)) return !0;
728
706
  r < t - 1 && await new Promise((e) => {
@@ -733,80 +711,68 @@ async function je(e, t = ke, n = Ae) {
733
711
  }
734
712
  //#endregion
735
713
  //#region src/helpers/contracts/index.ts
736
- function Me(e, t, n) {
737
- return {
738
- to: e,
739
- data: m({
740
- abi: xe,
741
- functionName: "multiPublish",
742
- args: [t]
743
- }),
744
- gas: n
745
- };
714
+ function We(e) {
715
+ let t = /* @__PURE__ */ new Map();
716
+ return e.forEach((e, n) => {
717
+ if (e.localId) {
718
+ if (t.has(e.localId)) throw Error(`multiPublish: duplicate localId "${e.localId}" in the batch`);
719
+ t.set(e.localId, BigInt(n));
720
+ }
721
+ }), (e) => (e.propertiesToUpdate ?? []).map((n) => {
722
+ if (!n.publishLocalId) throw Error(`multiPublish: request "${e.localId}" has a cross-reference with no publishLocalId`);
723
+ let r = t.get(n.publishLocalId);
724
+ if (r === void 0) throw Error(`multiPublish: request "${e.localId}" cross-references localId "${n.publishLocalId}", which isn't in the batch`);
725
+ return {
726
+ publishIndex: r,
727
+ propertySchemaUid: n.propertySchemaUid
728
+ };
729
+ });
746
730
  }
747
- function Ne(e, t, n) {
731
+ function Ge(e, t, n) {
732
+ let r = We(t);
748
733
  return {
749
734
  to: e,
750
- data: m({
751
- abi: Se,
735
+ data: h({
736
+ abi: b,
752
737
  functionName: "multiPublish",
753
- args: [t]
738
+ args: [t.map((e) => ({
739
+ localId: e.localId,
740
+ seedUid: e.seedUid,
741
+ seedSchemaUid: e.seedSchemaUid,
742
+ versionUid: e.versionUid,
743
+ versionSchemaUid: e.versionSchemaUid,
744
+ seedIsRevocable: e.seedIsRevocable,
745
+ listOfAttestations: e.listOfAttestations,
746
+ propertiesToUpdate: r(e)
747
+ }))]
754
748
  }),
755
749
  gas: n
756
750
  };
757
751
  }
758
- function Pe(e, t, n) {
759
- let r = /* @__PURE__ */ new Map();
760
- t.forEach((e, t) => {
761
- e.localId && r.set(e.localId, BigInt(t));
762
- });
763
- let i = t.map((e) => ({
764
- localId: e.localId,
765
- seedUid: e.seedUid,
766
- versionUid: e.versionUid,
767
- seedSchemaUid: e.seedSchemaUid,
768
- versionSchemaUid: e.versionSchemaUid,
769
- seedIsRevocable: e.seedIsRevocable,
770
- listOfAttestations: e.listOfAttestations,
771
- propertiesToUpdate: (e.propertiesToUpdate ?? []).flatMap((e) => {
772
- let t = e.publishLocalId ? r.get(e.publishLocalId) : void 0;
773
- return t === void 0 ? [] : [{
774
- publishIndex: t,
775
- propertySchemaUid: e.propertySchemaUid
776
- }];
777
- })
778
- }));
779
- return {
780
- to: e,
781
- data: m({
782
- abi: x,
783
- functionName: "multiPublish",
784
- args: [i]
785
- }),
786
- gas: n
787
- };
752
+ function Ke(e, t, n) {
753
+ return Ge(e, t, n);
788
754
  }
789
- async function Fe(e, t) {
790
- return E().readContract({
755
+ async function qe(e, t) {
756
+ return D().readContract({
791
757
  address: e,
792
- abi: x,
758
+ abi: C,
793
759
  functionName: "isInitialized",
794
760
  args: [t]
795
761
  });
796
762
  }
797
- async function Ie(e, t) {
798
- return E().readContract({
763
+ async function Je(e, t) {
764
+ return D().readContract({
799
765
  address: e,
800
- abi: x,
766
+ abi: C,
801
767
  functionName: "getEAS",
802
768
  args: [t]
803
769
  });
804
770
  }
805
- async function Le(e) {
771
+ async function Ye(e) {
806
772
  try {
807
- let [t, n] = await E().readContract({
773
+ let [t, n] = await D().readContract({
808
774
  address: e,
809
- abi: S,
775
+ abi: w,
810
776
  functionName: "getSeedExecutor"
811
777
  });
812
778
  return {
@@ -817,10 +783,31 @@ async function Le(e) {
817
783
  return null;
818
784
  }
819
785
  }
820
- async function Re(e, t) {
821
- return E().readContract({
786
+ async function Xe(e = Z()) {
787
+ let t = D(), n = await t.readContract({
822
788
  address: e,
823
789
  abi: S,
790
+ functionName: "getImplementationForFunction",
791
+ args: [ae(g({
792
+ abi: w,
793
+ name: "getSeedExecutor"
794
+ }))]
795
+ });
796
+ if (n === oe) return null;
797
+ let [r, i] = await t.readContract({
798
+ address: n,
799
+ abi: w,
800
+ functionName: "getSeedExecutor"
801
+ });
802
+ return {
803
+ executor: r,
804
+ eas: i
805
+ };
806
+ }
807
+ async function Ze(e, t) {
808
+ return D().readContract({
809
+ address: e,
810
+ abi: w,
824
811
  functionName: "isModuleInstalled",
825
812
  args: [
826
813
  Te,
@@ -829,78 +816,78 @@ async function Re(e, t) {
829
816
  ]
830
817
  });
831
818
  }
832
- function ze(e) {
819
+ function Qe(e) {
833
820
  return {
834
821
  to: e,
835
- data: m({
836
- abi: S,
822
+ data: h({
823
+ abi: w,
837
824
  functionName: "installSeedExecutor"
838
825
  })
839
826
  };
840
827
  }
841
- function Be(e, t) {
828
+ function $e(e, t) {
842
829
  return {
843
830
  to: e,
844
- data: m({
845
- abi: y,
831
+ data: h({
832
+ abi: x,
846
833
  functionName: "setEas",
847
834
  args: [t]
848
835
  })
849
836
  };
850
837
  }
851
- async function Ve(e) {
852
- return E().readContract({
838
+ async function et(e) {
839
+ return D().readContract({
853
840
  address: e,
854
- abi: y,
841
+ abi: x,
855
842
  functionName: "getEas"
856
843
  });
857
844
  }
858
- async function He(e, t) {
859
- return E().readContract({
845
+ async function tt(e, t) {
846
+ return D().readContract({
860
847
  address: e,
861
- abi: y,
848
+ abi: x,
862
849
  functionName: "isActiveSigner",
863
850
  args: [t]
864
851
  });
865
852
  }
866
- async function Ue(e, t) {
867
- return E().readContract({
853
+ async function nt(e, t) {
854
+ return D().readContract({
868
855
  address: e,
869
- abi: y,
856
+ abi: x,
870
857
  functionName: "isAdmin",
871
858
  args: [t]
872
859
  });
873
860
  }
874
- async function We(e, t = "0x") {
875
- return E().readContract({
861
+ async function rt(e, t = "0x") {
862
+ return D().readContract({
876
863
  address: Z(),
877
- abi: b,
864
+ abi: S,
878
865
  functionName: "getAddress",
879
866
  args: [e, t]
880
867
  });
881
868
  }
882
- function Ge(e, t = "0x") {
869
+ function it(e, t = "0x") {
883
870
  return {
884
871
  to: Z(),
885
- data: m({
886
- abi: b,
872
+ data: h({
873
+ abi: S,
887
874
  functionName: "createAccount",
888
875
  args: [e, t]
889
876
  })
890
877
  };
891
878
  }
892
- var Ke = "0x0000000000000000000000000000000000000000";
893
- function k(e) {
879
+ var at = "0x0000000000000000000000000000000000000000";
880
+ function ot(e) {
894
881
  let { easContractAddress: t } = Y();
895
882
  return {
896
883
  to: t,
897
- data: m({
898
- abi: v,
884
+ data: h({
885
+ abi: y,
899
886
  functionName: "attest",
900
887
  args: [{
901
888
  schema: e.schema,
902
889
  data: {
903
- recipient: e.data.recipient ?? Ke,
890
+ recipient: e.data.recipient ?? at,
904
891
  expirationTime: e.data.expirationTime ?? 0n,
905
892
  revocable: e.data.revocable ?? !0,
906
893
  refUID: e.data.refUID,
@@ -911,23 +898,23 @@ function k(e) {
911
898
  })
912
899
  };
913
900
  }
914
- function A(e) {
901
+ function st(e) {
915
902
  let { easContractAddress: t } = Y();
916
903
  return {
917
904
  to: t,
918
- data: m({
919
- abi: v,
905
+ data: h({
906
+ abi: y,
920
907
  functionName: "multiAttest",
921
908
  args: [e]
922
909
  })
923
910
  };
924
911
  }
925
- function qe(e) {
912
+ function ct(e) {
926
913
  let { easContractAddress: t } = Y();
927
914
  return {
928
915
  to: t,
929
- data: m({
930
- abi: v,
916
+ data: h({
917
+ abi: y,
931
918
  functionName: "multiRevoke",
932
919
  args: [e.map((e) => ({
933
920
  schema: e.schema,
@@ -939,26 +926,26 @@ function qe(e) {
939
926
  })
940
927
  };
941
928
  }
942
- var Je = "0x" + "0".repeat(64);
943
- async function Ye(e) {
944
- let t = await E().readContract({
929
+ var lt = "0x" + "0".repeat(64);
930
+ async function ut(e) {
931
+ let t = await D().readContract({
945
932
  address: Y().schemaRegistryAddress,
946
- abi: C,
933
+ abi: Ee,
947
934
  functionName: "getSchema",
948
935
  args: [e]
949
936
  });
950
- return !t || t.uid === Je ? null : {
937
+ return !t || t.uid === lt ? null : {
951
938
  uid: t.uid,
952
939
  resolver: t.resolver,
953
940
  revocable: t.revocable,
954
941
  schema: t.schema
955
942
  };
956
943
  }
957
- function Xe(e) {
944
+ function dt(e) {
958
945
  return {
959
946
  to: Y().schemaRegistryAddress,
960
- data: m({
961
- abi: C,
947
+ data: h({
948
+ abi: Ee,
962
949
  functionName: "register",
963
950
  args: [
964
951
  e.schema,
@@ -970,33 +957,33 @@ function Xe(e) {
970
957
  }
971
958
  //#endregion
972
959
  //#region src/helpers/easDirect.ts
973
- var Ze = "0x0000000000000000000000000000000000000000", Qe = "0x" + "0".repeat(64);
974
- function $e(e) {
975
- return k(e);
960
+ var ft = "0x0000000000000000000000000000000000000000", k = "0x" + "0".repeat(64);
961
+ function pt(e) {
962
+ return ot(e);
976
963
  }
977
- function et(e) {
978
- return A(e);
964
+ function mt(e) {
965
+ return st(e);
979
966
  }
980
- function tt(e) {
981
- return p([{ type: "bytes32" }], [e]);
967
+ function ht(e) {
968
+ return m([{ type: "bytes32" }], [e]);
982
969
  }
983
- function nt(e, t) {
984
- return rt(e, t)[0]?.uid;
970
+ function gt(e, t) {
971
+ return A(e, t)[0]?.uid;
985
972
  }
986
- function rt(e, t) {
973
+ function A(e, t) {
987
974
  if (!e.logs?.length) return [];
988
975
  let n = t.toLowerCase(), r = e.logs.filter((e) => e.address && e.address.toLowerCase() === n);
989
976
  if (!r.length) return [];
990
977
  try {
991
- let e = g({
992
- abi: v,
978
+ let e = ie({
979
+ abi: y,
993
980
  eventName: "Attested",
994
981
  logs: r,
995
982
  strict: !1
996
983
  }), t = [];
997
984
  for (let n of e) {
998
985
  let e = n.args?.uid, r = n.args?.schemaUID;
999
- e && e !== Qe && r && t.push({
986
+ e && e !== k && r && t.push({
1000
987
  schemaUid: r,
1001
988
  uid: e
1002
989
  });
@@ -1006,39 +993,20 @@ function rt(e, t) {
1006
993
  return [];
1007
994
  }
1008
995
  }
1009
- function j(e, t = {}) {
1010
- if (!t.viaExecutorModule) return qe(e);
1011
- let n = Y().modularAccountModuleContract?.trim();
1012
- if (!n || !/^0x[0-9a-fA-F]{40}$/.test(n)) throw Error("@seedprotocol/publish: revoking via the executor module requires PublishConfig.modularAccountModuleContract");
1013
- return it(n, e);
1014
- }
1015
- function it(e, t) {
1016
- return {
1017
- to: e,
1018
- data: m({
1019
- abi: v,
1020
- functionName: "multiRevoke",
1021
- args: [t.map((e) => ({
1022
- schema: e.schema,
1023
- data: e.data.map((e) => ({
1024
- uid: e.uid,
1025
- value: e.value ?? 0n
1026
- }))
1027
- }))]
1028
- })
1029
- };
996
+ function j(e) {
997
+ return ct(e);
1030
998
  }
1031
999
  //#endregion
1032
1000
  //#region src/helpers/publishWalletRegistry.ts
1033
1001
  var M = null;
1034
- function at() {
1002
+ function _t() {
1035
1003
  return a.isInitialized() ? Promise.resolve() : new Promise((e) => {
1036
1004
  a.onReady(() => e());
1037
1005
  });
1038
1006
  }
1039
- async function ot(e) {
1007
+ async function vt(e) {
1040
1008
  if (M = e, !e) return;
1041
- await at();
1009
+ await _t();
1042
1010
  let t = /* @__PURE__ */ new Set();
1043
1011
  for (let n of e.ownedAddresses ?? []) n && t.add(n.toLowerCase());
1044
1012
  t.add(e.signer.address.toLowerCase()), t.add(e.txSender.address.toLowerCase()), e.publisherAddress && t.add(e.publisherAddress.toLowerCase());
@@ -1053,12 +1021,12 @@ async function ot(e) {
1053
1021
  function N() {
1054
1022
  return M;
1055
1023
  }
1056
- function st() {
1024
+ function yt() {
1057
1025
  M = null;
1058
1026
  }
1059
1027
  //#endregion
1060
1028
  //#region src/helpers/retryNonceTooLow.ts
1061
- function ct(e) {
1029
+ function bt(e) {
1062
1030
  let t = [], n = e;
1063
1031
  for (let e = 0; n && e < 5; e++) {
1064
1032
  let e = n;
@@ -1070,7 +1038,7 @@ async function P(e, { attempts: t = 3, delayMs: n = 1e3 } = {}) {
1070
1038
  for (let r = 1;; r++) try {
1071
1039
  return await e();
1072
1040
  } catch (e) {
1073
- if (r >= t || !ct(e)) throw e;
1041
+ if (r >= t || !bt(e)) throw e;
1074
1042
  await new Promise((e) => setTimeout(e, n));
1075
1043
  }
1076
1044
  }
@@ -1092,14 +1060,14 @@ function B(e) {
1092
1060
  function V(e) {
1093
1061
  return !!e && typeof e == "object" && "signer" in e && "txSender" in e && z(e.signer) && B(e.txSender);
1094
1062
  }
1095
- function lt(e) {
1063
+ function xt(e) {
1096
1064
  let t = e.address;
1097
1065
  return {
1098
1066
  signer: L({
1099
1067
  address: t,
1100
1068
  signMessage: async ({ message: t }) => {
1101
1069
  if (typeof t == "string") return await e.signMessage(t);
1102
- let n = t.raw, r = typeof n == "string" ? ae.getBytes(n) : n instanceof Uint8Array ? n : new Uint8Array(n);
1070
+ let n = t.raw, r = typeof n == "string" ? le.getBytes(n) : n instanceof Uint8Array ? n : new Uint8Array(n);
1103
1071
  return await e.signMessage(r);
1104
1072
  }
1105
1073
  }),
@@ -1114,28 +1082,28 @@ function lt(e) {
1114
1082
  })
1115
1083
  };
1116
1084
  }
1117
- function ut(e) {
1085
+ function St(e) {
1118
1086
  if (V(e)) return e.signer;
1119
1087
  if (z(e)) return e;
1120
1088
  throw Error("@seedprotocol/publish: expected a SeedSigner or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1121
1089
  }
1122
- function dt(e) {
1090
+ function Ct(e) {
1123
1091
  if (V(e)) return e.txSender;
1124
1092
  if (B(e)) return e;
1125
1093
  throw Error("@seedprotocol/publish: expected a SeedTxSender or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1126
1094
  }
1127
- function ft(e) {
1095
+ function wt(e) {
1128
1096
  if (V(e)) return e;
1129
1097
  throw Error("@seedprotocol/publish: expected a PublishWallet (signer + txSender). Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1130
1098
  }
1131
1099
  //#endregion
1132
1100
  //#region src/helpers/thirdwebChain.ts
1133
1101
  var H = null;
1134
- function U(e) {
1135
- let t = e ?? Ct() ?? {}, n = t.chain ?? _, r = t.rpcUrl?.trim() || void 0, i = `${n.id}|${r ?? ""}`;
1102
+ function Tt(e) {
1103
+ let t = e ?? Bt() ?? {}, n = t.chain ?? _, r = t.rpcUrl?.trim() || void 0, i = `${n.id}|${r ?? ""}`;
1136
1104
  if (H?.key === i) return H.chain;
1137
1105
  let a;
1138
- return a = n.id === se.id && !r ? se : oe({
1106
+ return a = n.id === de.id && !r ? de : ue({
1139
1107
  id: n.id,
1140
1108
  name: n.name,
1141
1109
  nativeCurrency: n.nativeCurrency,
@@ -1151,11 +1119,36 @@ function U(e) {
1151
1119
  chain: a
1152
1120
  }, a;
1153
1121
  }
1122
+ var Et = /* @__PURE__ */ new Set([31337, 1337]);
1123
+ function Dt(e) {
1124
+ if (Et.has(e.id)) return !0;
1125
+ try {
1126
+ let t = new URL(e.rpc).hostname.replace(/^\[|\]$/g, "");
1127
+ return t === "localhost" || t === "127.0.0.1" || t === "::1" || t.endsWith(".localhost");
1128
+ } catch {
1129
+ return !1;
1130
+ }
1131
+ }
1132
+ //#endregion
1133
+ //#region src/helpers/gasLog.ts
1134
+ function U(e, t) {
1135
+ let n = Object.fromEntries(Object.entries(t).map(([e, t]) => [e, typeof t == "bigint" ? t.toString() : t]));
1136
+ console.info(`[seed:gas] ${e}`, n);
1137
+ }
1138
+ function Ot(e) {
1139
+ let t = e.paymasterAndData;
1140
+ return {
1141
+ callGasLimit: e.callGasLimit,
1142
+ verificationGasLimit: e.verificationGasLimit,
1143
+ preVerificationGas: e.preVerificationGas,
1144
+ ...t === void 0 ? {} : { paymasterAndData: t.length > 20 ? `${t.slice(0, 20)}… (${(t.length - 2) / 2} bytes)` : t }
1145
+ };
1146
+ }
1154
1147
  //#endregion
1155
1148
  //#region src/helpers/adapters/thirdwebAccount.ts
1156
- var pt = /* @__PURE__ */ e({
1157
- asSeedSignerFromThirdweb: () => mt,
1158
- asThirdwebPublishWallet: () => G,
1149
+ var kt = /* @__PURE__ */ e({
1150
+ asSeedSignerFromThirdweb: () => jt,
1151
+ asThirdwebPublishWallet: () => At,
1159
1152
  fromThirdwebAccount: () => W
1160
1153
  });
1161
1154
  function W(e, t) {
@@ -1168,41 +1161,60 @@ function W(e, t) {
1168
1161
  txSender: R({
1169
1162
  address: r,
1170
1163
  sendTransaction: async (t) => {
1171
- let r = n ?? (await import("./publishThirdwebClient-Dzb2vcEs.js").then((e) => e.n)).getClient(), i = U(), a = re({
1172
- client: r,
1173
- chain: i,
1164
+ let i = n ?? (await import("./publishThirdwebClient-BmqsJCjp.js").then((e) => e.n)).getClient(), a = Tt(), o = se({
1165
+ client: i,
1166
+ chain: a,
1174
1167
  to: t.to,
1175
1168
  data: t.data,
1176
1169
  value: t.value,
1177
1170
  gas: t.gas
1178
1171
  });
1179
- return { transactionHash: (await P(() => ie({
1180
- account: e,
1181
- transaction: a
1182
- }))).transactionHash };
1172
+ U("sending transaction through thirdweb", {
1173
+ account: r,
1174
+ chainId: a.id,
1175
+ to: t.to,
1176
+ dataBytes: t.data ? (t.data.length - 2) / 2 : 0,
1177
+ txGas: t.gas ?? "(none: thirdweb estimates)"
1178
+ });
1179
+ let s;
1180
+ try {
1181
+ s = await P(() => ce({
1182
+ account: e,
1183
+ transaction: o
1184
+ }));
1185
+ } catch (e) {
1186
+ throw U("thirdweb sendTransaction failed", {
1187
+ account: r,
1188
+ error: e instanceof Error ? e.message : String(e)
1189
+ }), e;
1190
+ }
1191
+ return U("thirdweb sendTransaction returned", {
1192
+ account: r,
1193
+ transactionHash: s.transactionHash
1194
+ }), { transactionHash: s.transactionHash };
1183
1195
  }
1184
1196
  })
1185
1197
  };
1186
1198
  }
1187
- function G(e, t) {
1199
+ function At(e, t) {
1188
1200
  if (V(e)) return e;
1189
1201
  if (z(e)) throw Error("@seedprotocol/publish/thirdweb: SeedSigner alone cannot send sponsored txs. Pass fromThirdwebAccount(account) or a PublishWallet.");
1190
1202
  return W(e, t);
1191
1203
  }
1192
- function mt(e) {
1204
+ function jt(e) {
1193
1205
  return V(e) ? e.signer : z(e) ? e : W(e).signer;
1194
1206
  }
1195
1207
  //#endregion
1196
1208
  //#region src/helpers/verifyPublishChain.ts
1197
- var K = class extends Error {
1209
+ var G = class extends Error {
1198
1210
  chainId;
1199
1211
  problems;
1200
1212
  name = "PublishChainConfigError";
1201
1213
  constructor(e, t) {
1202
1214
  super(`@seedprotocol/publish: chain ${e} is not set up for publishing:\n- ${t.join("\n- ")}`), this.chainId = e, this.problems = t;
1203
1215
  }
1204
- }, q = null;
1205
- function ht() {
1216
+ }, K = null;
1217
+ function Mt() {
1206
1218
  let e = Y();
1207
1219
  return [
1208
1220
  e.chain.id,
@@ -1213,14 +1225,14 @@ function ht() {
1213
1225
  e.modularAccountModuleContract ?? ""
1214
1226
  ].join("|").toLowerCase();
1215
1227
  }
1216
- async function gt() {
1228
+ async function Nt() {
1217
1229
  let e = Y(), { chain: t } = e, n = [], r;
1218
1230
  try {
1219
- r = await E().getChainId();
1231
+ r = await D().getChainId();
1220
1232
  } catch (e) {
1221
- throw new K(t.id, [`could not reach the RPC (${_t($())}): ${e instanceof Error ? e.message : String(e)}`]);
1233
+ throw new G(t.id, [`could not reach the RPC (${Pt($())}): ${e instanceof Error ? e.message : String(e)}`]);
1222
1234
  }
1223
- if (r !== t.id) throw new K(t.id, [`the RPC reports chain ${r}, but PublishConfig.chain is ${t.name} (${t.id}). Point rpcUrl at ${t.name}.`]);
1235
+ if (r !== t.id) throw new G(t.id, [`the RPC reports chain ${r}, but PublishConfig.chain is ${t.name} (${t.id}). Point rpcUrl at ${t.name}.`]);
1224
1236
  let i = [
1225
1237
  [
1226
1238
  "EAS contract",
@@ -1244,9 +1256,9 @@ async function gt() {
1244
1256
  ]
1245
1257
  ], a = await Promise.all(i.map(async ([e, n, r]) => n ? await O(n) ? null : `no ${e} at ${n} on ${t.name}; ${r}.` : null));
1246
1258
  for (let e of a) e && n.push(e);
1247
- if (n.length > 0) throw new K(t.id, n);
1259
+ if (n.length > 0) throw new G(t.id, n);
1248
1260
  }
1249
- function _t(e) {
1261
+ function Pt(e) {
1250
1262
  try {
1251
1263
  let t = new URL(e);
1252
1264
  return `${t.protocol}//${t.host}`;
@@ -1254,48 +1266,48 @@ function _t(e) {
1254
1266
  return "configured rpcUrl";
1255
1267
  }
1256
1268
  }
1257
- function vt() {
1258
- let e = ht();
1259
- if (q?.key === e) return q.result;
1260
- let t = gt();
1261
- return q = {
1269
+ function Ft() {
1270
+ let e = Mt();
1271
+ if (K?.key === e) return K.result;
1272
+ let t = Nt();
1273
+ return K = {
1262
1274
  key: e,
1263
1275
  result: t
1264
1276
  }, t.catch(() => {
1265
- q?.result === t && (q = null);
1277
+ K?.result === t && (K = null);
1266
1278
  }), t;
1267
1279
  }
1268
1280
  //#endregion
1269
1281
  //#region src/services/revoke/revokeAttestations.ts
1270
- async function yt(e) {
1282
+ async function It(e) {
1271
1283
  if (!e) return !1;
1272
1284
  let t = s();
1273
1285
  if (!t) return !1;
1274
1286
  let n = await t(), r = e.toLowerCase();
1275
1287
  return !!n?.some((e) => e?.toLowerCase() === r);
1276
1288
  }
1277
- async function bt(e, t) {
1289
+ async function Lt(e, t) {
1278
1290
  if (!t || !Y().modularAccountModuleContract?.trim()) return !1;
1279
1291
  let n = e.signer?.address;
1280
1292
  if (!n || n.toLowerCase() === t.toLowerCase()) return !1;
1281
1293
  try {
1282
- let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-CNNN1jBQ.js").then((e) => e.n);
1294
+ let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-CxpJY_uH.js").then((e) => e.n);
1283
1295
  return await e(t, n);
1284
1296
  } catch {
1285
1297
  return !1;
1286
1298
  }
1287
1299
  }
1288
- async function xt(e) {
1300
+ async function Rt(e) {
1289
1301
  let { seedLocalId: t, seedUid: n, seedSchemaUid: a } = e;
1290
- await i(), await vt();
1302
+ await i(), await Ft();
1291
1303
  let s = await o({
1292
1304
  seedLocalId: t,
1293
1305
  seedUid: n
1294
1306
  });
1295
- if (await yt(s)) throw Error("Revocation not supported for items attested by the Seed executor module: the executor has no revoke and is the only attester that could revoke them.");
1307
+ if (await It(s)) throw Error("Revocation not supported for items attested by the Seed executor module: the executor has no revoke and is the only attester that could revoke them.");
1296
1308
  let u = N();
1297
1309
  if (!u) try {
1298
- let { getConnectedAccount: e } = await import("./publishAuthorization-CxWY7lAQ.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-BtVG0xxc.js"), n = await e();
1310
+ let { getConnectedAccount: e } = await import("./publishAuthorization-C-XYb9Ef.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-9-OzXVdp.js"), n = await e();
1299
1311
  if (!n) throw Error("No wallet connected. Connect a wallet to revoke attestations.");
1300
1312
  u = W(await t({
1301
1313
  account: n,
@@ -1304,9 +1316,9 @@ async function xt(e) {
1304
1316
  } catch (e) {
1305
1317
  throw e instanceof Error && e.message.includes("No wallet connected") || e instanceof Error && e.message.includes("Revocation not supported") ? e : Error("No wallet connected. Use useSeedWallet / setPublishWallet, or @seedprotocol/publish/thirdweb ConnectButton.", { cause: e });
1306
1318
  }
1307
- let te = u.txSender;
1308
- if (await bt(u, s)) throw Error("Automation session keys cannot revoke attestations. Revoking is owner-only: connect the account that published this item.");
1309
- let [d, f] = await Promise.all([ee(n), c(n)]), p = d.map((e) => e.uid).filter((e) => l(e)), m = /* @__PURE__ */ new Map();
1319
+ let d = u.txSender;
1320
+ if (await Lt(u, s)) throw Error("Automation session keys cannot revoke attestations. Revoking is owner-only: connect the account that published this item.");
1321
+ let [te, f] = await Promise.all([ee(n), c(n)]), p = te.map((e) => e.uid).filter((e) => l(e)), m = /* @__PURE__ */ new Map();
1310
1322
  for (let { uid: e, schemaUid: t } of f) {
1311
1323
  if (!l(e)) continue;
1312
1324
  let n = m.get(t) ?? [];
@@ -1328,7 +1340,7 @@ async function xt(e) {
1328
1340
  if (e.data.length === 0) continue;
1329
1341
  let t = j([e]);
1330
1342
  try {
1331
- await D((await te.sendTransaction(t)).transactionHash);
1343
+ await Re((await d.sendTransaction(t)).transactionHash);
1332
1344
  } catch (e) {
1333
1345
  let t = e instanceof Error ? e.message : String(e);
1334
1346
  if (t.includes("AccessDenied") || t.includes("0x4ca88867")) throw Error("Only the original attester can revoke attestations. Connect the wallet that published this item.");
@@ -1339,34 +1351,36 @@ async function xt(e) {
1339
1351
  let g = Math.floor(Date.now() / 1e3);
1340
1352
  await ne({
1341
1353
  seedLocalId: t,
1342
- revokedAt: g
1354
+ revokedAt: g,
1355
+ metadataUids: [...m.values()].flat(),
1356
+ versionUids: p
1343
1357
  });
1344
1358
  }
1345
1359
  //#endregion
1346
1360
  //#region src/config.ts
1347
- le("publish");
1348
- var J = null;
1349
- function St(e) {
1350
- J = e;
1361
+ pe("publish");
1362
+ var q = null;
1363
+ function zt(e) {
1364
+ q = e;
1351
1365
  }
1352
- function Ct() {
1353
- return J;
1366
+ function Bt() {
1367
+ return q;
1354
1368
  }
1355
- function wt(e) {
1369
+ function J(e) {
1356
1370
  let t = X(e);
1357
- ce("publish", {
1371
+ fe("publish", {
1358
1372
  chainId: t.chainId,
1359
1373
  indexerUrl: t.indexerUrl
1360
- }), St(e), te(async () => {
1374
+ }), zt(e), d(async () => {
1361
1375
  let e = N();
1362
1376
  if (e?.publisherAddress) return e.publisherAddress;
1363
1377
  if (e?.signer?.address) return e.signer.address;
1364
- }), d(xt), import("./worker-C_TL94He.js").then((e) => {
1378
+ }), te(Rt), f().then(() => import("./worker-FmHZbku5.js")).then((e) => {
1365
1379
  e.startArweaveL1FinalizeWorker();
1366
1380
  }), u(async () => e.useModularExecutor && e.modularAccountModuleContract ? [e.modularAccountModuleContract] : []);
1367
1381
  }
1368
- var Tt = wt;
1369
- function Et(e) {
1382
+ var Vt = J;
1383
+ function Ht(e) {
1370
1384
  let t = e?.thirdweb ?? {};
1371
1385
  return {
1372
1386
  bundlerUrl: t.bundlerUrl?.trim() || void 0,
@@ -1375,16 +1389,15 @@ function Et(e) {
1375
1389
  };
1376
1390
  }
1377
1391
  function Y() {
1378
- let e = J;
1392
+ let e = q;
1379
1393
  if (!e) throw Error("@seedprotocol/publish: Call initPublish() or ensure PublishProvider is mounted with config before using the publish package");
1380
1394
  let t = e.useArweaveBundler ?? !1, r = e.arweaveUploadVerificationBaseUrl ?? e.uploadApiBaseUrl, i = e.arweaveGraphqlUrl ?? n, a = e.useModularExecutor ?? !1, o = e.chain ?? _, s = X(e), c = e.accountMode ?? (e.bundlerUrl ? "eip7702" : "eoa");
1381
1395
  return {
1382
1396
  ...e,
1383
- thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? fe[o.id],
1397
+ thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? ge[o.id],
1384
1398
  easContractAddress: s.easContractAddress,
1385
1399
  schemaRegistryAddress: s.schemaRegistryAddress,
1386
1400
  easChain: s,
1387
- useIntegerLocalIds: e.useIntegerLocalIds ?? !1,
1388
1401
  useDirectEas: e.useDirectEas ?? !1,
1389
1402
  modularAccountModuleData: e.modularAccountModuleData ?? "0x",
1390
1403
  useModularExecutor: a,
@@ -1392,16 +1405,16 @@ function Y() {
1392
1405
  arweaveUploadVerificationBaseUrl: r,
1393
1406
  arweaveGraphqlUrl: i,
1394
1407
  autoDeployManagedAccount: e.autoDeployManagedAccount ?? !1,
1395
- autoDeployEip7702ModularAccount: Dt(e, a),
1408
+ autoDeployEip7702ModularAccount: Ut(e, a),
1396
1409
  chain: o,
1397
1410
  accountMode: c,
1398
- thirdweb: Et(e)
1411
+ thirdweb: Ht(e)
1399
1412
  };
1400
1413
  }
1401
1414
  function X(e) {
1402
1415
  let t = e.chain ?? _;
1403
1416
  try {
1404
- return ue(t.id, {
1417
+ return me(t.id, {
1405
1418
  name: t.name,
1406
1419
  easContractAddress: e.easContractAddress,
1407
1420
  schemaRegistryAddress: e.schemaRegistryAddress
@@ -1415,7 +1428,7 @@ function Z() {
1415
1428
  if (!e) throw Error(`@seedprotocol/publish: no ManagedAccount factory is known for ${t.name} (chain ${t.id}). Pass managedAccountFactoryAddress in publish config, or use the EOA / direct EAS path.`);
1416
1429
  return e;
1417
1430
  }
1418
- function Dt(e, t) {
1431
+ function Ut(e, t) {
1419
1432
  return e.autoDeployEip7702ModularAccount === !0 || e.autoDeployEip7702ModularAccount !== !1 && t;
1420
1433
  }
1421
1434
  //#endregion
@@ -1433,10 +1446,10 @@ function $() {
1433
1446
  if (e.thirdwebClientId) return `https://${(e.chain ?? _).id}.rpc.thirdweb.com/${e.thirdwebClientId}`;
1434
1447
  throw Error("@seedprotocol/publish: rpcUrl is required when thirdwebClientId is not set. A thirdwebSecretKey authenticates Thirdweb RPC but does not build this URL. Pass rpcUrl or thirdwebClientId in initPublish / PublishProvider config.");
1435
1448
  }
1436
- function Ot() {
1449
+ function Wt() {
1437
1450
  return Q().name;
1438
1451
  }
1439
1452
  //#endregion
1440
- export { Ue as $, Ze as A, A as B, lt as C, st as D, B as E, $e as F, Ne as G, Pe as H, et as I, Ie as J, Xe as K, j as L, tt as M, nt as N, N as O, rt as P, He as Q, Ge as R, R as S, z as T, ze as U, qe as V, Me as W, We as X, Fe as Y, Ve as Z, U as _, _e as _t, Ct as a, O as at, dt as b, Z as c, we as ct, K as d, v as dt, Ye as et, vt as f, _ as ft, pt as g, pe as gt, W as h, fe as ht, Tt as i, E as it, Qe as j, ot as k, X as l, x as lt, G as m, ge as mt, $ as n, Le as nt, Y as o, je as ot, mt as p, de as pt, Be as q, Q as r, Oe as rt, wt as s, D as st, Ot as t, Re as tt, Et as u, Ce as ut, ft as v, he as vt, V as w, L as x, ut as y, me as yt, k as z };
1453
+ export { Xe as $, yt as A, xe as At, j as B, Ct as C, Ce as Ct, V as D, be as Dt, xt as E, he as Et, ht as F, Ke as G, ot as H, gt as I, dt as J, Qe as K, A as L, vt as M, ve as Mt, ft as N, z as O, ge as Ot, k as P, rt as Q, pt as R, St as S, C as St, R as T, _ as Tt, st as U, it as V, ct as W, Je as X, $e as Y, qe as Z, Ot as _, Ae as _t, Bt as a, Ye as at, Dt as b, w as bt, Z as c, O as ct, G as d, Re as dt, et, Ft as f, De as ft, kt as g, Ne as gt, W as h, ke as ht, Vt as i, Ze as it, N as j, ye as jt, B as k, _e as kt, X as l, Ue as lt, At as m, Oe as mt, $ as n, nt, Y as o, Be as ot, jt as p, je as pt, Ge as q, Q as r, ut as rt, J as s, D as st, Wt as t, tt, Ht as u, ze as ut, U as v, Pe as vt, L as w, y as wt, wt as x, we as xt, Tt as y, T as yt, mt as z };
1441
1454
 
1442
- //# sourceMappingURL=chainConfig-BRcsMopd.js.map
1455
+ //# sourceMappingURL=chainConfig-DWynbnb8.js.map