@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
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 } 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";
4
+ import { createPublicClient as f, encodeAbiParameters as p, encodeFunctionData as m, getAbiItem as h, http as g, parseEventLogs as re, toFunctionSelector as ie, zeroAddress as ae } from "viem";
5
+ import { prepareTransaction as oe, sendTransaction as se } from "thirdweb";
6
+ import { ethers as ce } from "ethers";
7
+ import { defineChain as le, optimismSepolia as ue } from "thirdweb/chains";
8
+ import { configureEasReadChain as de, expectEasReadChain as fe, resolveEasChainDeployment as pe } from "@seedprotocol/eas";
9
9
  //#region src/helpers/constants.ts
10
- var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", fe = { 11155420: "0x76f47d88bfaf670f5208911181fcdc0e160cb16d" }, pe = "0xcd8c945872df8e664e55cf8885c85ea3ea8f2148", me = pe, he = {
10
+ var me = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", he = { 11155420: "0x76f47d88bfaf670f5208911181fcdc0e160cb16d" }, ge = "0xcd8c945872df8e664e55cf8885c85ea3ea8f2148", _e = ge, ve = {
11
11
  SUCCESS: "success",
12
12
  FAILURE: "failure"
13
- }, ge = [
13
+ }, ye = [
14
14
  "pollingForConfirmation",
15
15
  "uploadingData",
16
16
  "uploadingViaBundler",
17
17
  "uploadingViaBundlerPhase2"
18
- ], _e = 3e4, _ = t, ve = [
18
+ ], be = 3e4, _ = t, xe = [
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
+ ], Se = [
70
70
  {
71
71
  name: "recipient",
72
72
  type: "address"
@@ -105,7 +105,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
105
105
  }, {
106
106
  name: "data",
107
107
  type: "tuple",
108
- components: ye
108
+ components: Se
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: Se
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
- ], y = [{
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
- }], be = [{
181
+ ...xe
182
+ ], Ce = [{
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: y
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
- }], xe = [{
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: y
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
- }], b = [
265
+ }], y = [
317
266
  {
318
267
  type: "function",
319
268
  name: "getEas",
@@ -351,7 +300,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
351
300
  }],
352
301
  outputs: [{ type: "bool" }]
353
302
  }
354
- ], Se = [{
303
+ ], we = [{
355
304
  type: "event",
356
305
  name: "CreatedAttestation",
357
306
  inputs: [{
@@ -374,31 +323,44 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
374
323
  type: "bytes",
375
324
  indexed: !1
376
325
  }]
377
- }], x = [{
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
- }], Ce = [{
326
+ }], b = [
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
+ ], Te = [{
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
- }], S = [
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
+ }], x = [
391
+ Ce[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
- ], C = [
462
+ ], S = [
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
- ], we = 2n, w = [{
533
+ ], Ee = 2n, C = [{
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
- }], T = null, E = null;
685
- function Te() {
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 w(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 T = class extends Error {
609
+ code;
610
+ managedAddress;
611
+ underlyingCause;
612
+ constructor(e, t, n, r) {
613
+ let i = r != null && r !== "" ? ` (${w(r)})` : "";
614
+ super(e + i), this.code = t, this.managedAddress = n, this.name = "ManagedAccountPublishError", this.underlyingCause = r;
615
+ }
616
+ }, E = 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 Oe(e) {
624
+ if (e instanceof T) 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 D = class extends Error {
630
+ code;
631
+ modularAddress;
632
+ underlyingCause;
633
+ constructor(e, t, n, r) {
634
+ let i = r != null && r !== "" ? ` (${w(r)})` : "";
635
+ super(e + i), this.code = t, this.modularAddress = n, this.name = "Eip7702ModularAccountPublishError", this.underlyingCause = r;
636
+ }
637
+ }, ke = [
638
+ "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE",
639
+ "EIP7702_MODULAR_NOT_UPGRADED",
640
+ "EIP7702_MODULAR_DEPLOY_FAILED",
641
+ "EIP7702_MODULAR_NOT_CONFIRMED"
642
+ ];
643
+ function Ae(e) {
644
+ if (e instanceof D) return !0;
645
+ if (typeof e != "object" || !e) return !1;
646
+ let t = e;
647
+ return t.name === "Eip7702ModularAccountPublishError" && typeof t.code == "string" && ke.includes(t.code);
648
+ }
649
+ function je(e) {
650
+ let t = w(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 O = null, k = null;
656
+ function Me() {
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 Te() {
690
661
  return;
691
662
  }
692
663
  }
693
- function Ee() {
694
- let e = Q(), t = $(), n = Te();
664
+ function Ne() {
665
+ let e = Q(), t = $(), n = Me();
695
666
  return f({
696
667
  chain: e,
697
- transport: h(t, n ? { fetchOptions: n } : void 0)
668
+ transport: g(t, n ? { fetchOptions: n } : void 0)
698
669
  });
699
670
  }
700
- function D() {
671
+ function A() {
701
672
  let e = Q(), t = $(), n = "";
702
673
  try {
703
674
  n = Y().thirdwebSecretKey ?? "";
@@ -705,26 +676,33 @@ function D() {
705
676
  n = "";
706
677
  }
707
678
  let r = `${e.id}:${t}:${n ? "1" : "0"}:${n}`;
708
- return (!T || E !== r) && (E = r, T = Ee()), T;
679
+ return (!O || k !== r) && (k = r, O = Ne()), O;
709
680
  }
710
- async function O(e) {
711
- return D().waitForTransactionReceipt({ hash: e });
681
+ async function j(e) {
682
+ let t = await A().waitForTransactionReceipt({ hash: e });
683
+ if (t.status === "reverted") throw new E(e, t);
684
+ return t;
712
685
  }
713
- async function k(e) {
714
- let t = await D().getBytecode({ address: e });
686
+ async function Pe(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;
690
+ }
691
+ async function M(e) {
692
+ let t = await A().getBytecode({ address: e });
715
693
  return !!t && t !== "0x";
716
694
  }
717
- async function De(e) {
695
+ async function Fe(e) {
718
696
  try {
719
- let t = await D().getBlock({ blockNumber: e });
697
+ let t = await A().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 Oe = 5, ke = 6e3;
725
- async function Ae(e, t = Oe, n = ke) {
702
+ var Ie = 5, Le = 6e3;
703
+ async function Re(e, t = Ie, n = Le) {
726
704
  for (let r = 0; r < t; r++) {
727
- if (await k(e)) return !0;
705
+ if (await M(e)) return !0;
728
706
  r < t - 1 && await new Promise((e) => {
729
707
  setTimeout(e, n);
730
708
  });
@@ -733,80 +711,68 @@ async function Ae(e, t = Oe, n = ke) {
733
711
  }
734
712
  //#endregion
735
713
  //#region src/helpers/contracts/index.ts
736
- function je(e, t, n) {
737
- return {
738
- to: e,
739
- data: m({
740
- abi: be,
741
- functionName: "multiPublish",
742
- args: [t]
743
- }),
744
- gas: n
745
- };
714
+ function ze(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 Me(e, t, n) {
731
+ function N(e, t, n) {
732
+ let r = ze(t);
748
733
  return {
749
734
  to: e,
750
735
  data: m({
751
- abi: xe,
736
+ abi: Ce,
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 Ne(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: S,
783
- functionName: "multiPublish",
784
- args: [i]
785
- }),
786
- gas: n
787
- };
752
+ function Be(e, t, n) {
753
+ return N(e, t, n);
788
754
  }
789
- async function Pe(e, t) {
790
- return D().readContract({
755
+ async function Ve(e, t) {
756
+ return A().readContract({
791
757
  address: e,
792
- abi: S,
758
+ abi: x,
793
759
  functionName: "isInitialized",
794
760
  args: [t]
795
761
  });
796
762
  }
797
- async function Fe(e, t) {
798
- return D().readContract({
763
+ async function He(e, t) {
764
+ return A().readContract({
799
765
  address: e,
800
- abi: S,
766
+ abi: x,
801
767
  functionName: "getEAS",
802
768
  args: [t]
803
769
  });
804
770
  }
805
- async function Ie(e) {
771
+ async function Ue(e) {
806
772
  try {
807
- let [t, n] = await D().readContract({
773
+ let [t, n] = await A().readContract({
808
774
  address: e,
809
- abi: C,
775
+ abi: S,
810
776
  functionName: "getSeedExecutor"
811
777
  });
812
778
  return {
@@ -817,80 +783,101 @@ async function Ie(e) {
817
783
  return null;
818
784
  }
819
785
  }
820
- async function Le(e, t) {
821
- return D().readContract({
786
+ async function We(e = Z()) {
787
+ let t = A(), n = await t.readContract({
822
788
  address: e,
823
- abi: C,
789
+ abi: b,
790
+ functionName: "getImplementationForFunction",
791
+ args: [ie(h({
792
+ abi: S,
793
+ name: "getSeedExecutor"
794
+ }))]
795
+ });
796
+ if (n === ae) return null;
797
+ let [r, i] = await t.readContract({
798
+ address: n,
799
+ abi: S,
800
+ functionName: "getSeedExecutor"
801
+ });
802
+ return {
803
+ executor: r,
804
+ eas: i
805
+ };
806
+ }
807
+ async function Ge(e, t) {
808
+ return A().readContract({
809
+ address: e,
810
+ abi: S,
824
811
  functionName: "isModuleInstalled",
825
812
  args: [
826
- we,
813
+ Ee,
827
814
  t,
828
815
  "0x"
829
816
  ]
830
817
  });
831
818
  }
832
- function Re(e) {
819
+ function Ke(e) {
833
820
  return {
834
821
  to: e,
835
822
  data: m({
836
- abi: C,
823
+ abi: S,
837
824
  functionName: "installSeedExecutor"
838
825
  })
839
826
  };
840
827
  }
841
- function ze(e, t) {
828
+ function qe(e, t) {
842
829
  return {
843
830
  to: e,
844
831
  data: m({
845
- abi: b,
832
+ abi: y,
846
833
  functionName: "setEas",
847
834
  args: [t]
848
835
  })
849
836
  };
850
837
  }
851
- async function Be(e) {
852
- return D().readContract({
838
+ async function Je(e) {
839
+ return A().readContract({
853
840
  address: e,
854
- abi: b,
841
+ abi: y,
855
842
  functionName: "getEas"
856
843
  });
857
844
  }
858
- async function Ve(e, t) {
859
- return D().readContract({
845
+ async function Ye(e, t) {
846
+ return A().readContract({
860
847
  address: e,
861
- abi: b,
848
+ abi: y,
862
849
  functionName: "isActiveSigner",
863
850
  args: [t]
864
851
  });
865
852
  }
866
- async function He(e, t) {
867
- return D().readContract({
853
+ async function Xe(e, t) {
854
+ return A().readContract({
868
855
  address: e,
869
- abi: b,
856
+ abi: y,
870
857
  functionName: "isAdmin",
871
858
  args: [t]
872
859
  });
873
860
  }
874
- async function Ue(e, t = "0x") {
875
- return D().readContract({
861
+ async function Ze(e, t = "0x") {
862
+ return A().readContract({
876
863
  address: Z(),
877
- abi: x,
864
+ abi: b,
878
865
  functionName: "getAddress",
879
866
  args: [e, t]
880
867
  });
881
868
  }
882
- function We(e, t = "0x") {
869
+ function Qe(e, t = "0x") {
883
870
  return {
884
871
  to: Z(),
885
872
  data: m({
886
- abi: x,
873
+ abi: b,
887
874
  functionName: "createAccount",
888
875
  args: [e, t]
889
876
  })
890
877
  };
891
878
  }
892
- var Ge = "0x0000000000000000000000000000000000000000";
893
- function A(e) {
879
+ var $e = "0x0000000000000000000000000000000000000000";
880
+ function P(e) {
894
881
  let { easContractAddress: t } = Y();
895
882
  return {
896
883
  to: t,
@@ -900,7 +887,7 @@ function A(e) {
900
887
  args: [{
901
888
  schema: e.schema,
902
889
  data: {
903
- recipient: e.data.recipient ?? Ge,
890
+ recipient: e.data.recipient ?? $e,
904
891
  expirationTime: e.data.expirationTime ?? 0n,
905
892
  revocable: e.data.revocable ?? !0,
906
893
  refUID: e.data.refUID,
@@ -911,7 +898,7 @@ function A(e) {
911
898
  })
912
899
  };
913
900
  }
914
- function j(e) {
901
+ function F(e) {
915
902
  let { easContractAddress: t } = Y();
916
903
  return {
917
904
  to: t,
@@ -922,7 +909,7 @@ function j(e) {
922
909
  })
923
910
  };
924
911
  }
925
- function M(e) {
912
+ function et(e) {
926
913
  let { easContractAddress: t } = Y();
927
914
  return {
928
915
  to: t,
@@ -939,26 +926,26 @@ function M(e) {
939
926
  })
940
927
  };
941
928
  }
942
- var Ke = "0x" + "0".repeat(64);
943
- async function qe(e) {
944
- let t = await D().readContract({
929
+ var tt = "0x" + "0".repeat(64);
930
+ async function nt(e) {
931
+ let t = await A().readContract({
945
932
  address: Y().schemaRegistryAddress,
946
- abi: w,
933
+ abi: C,
947
934
  functionName: "getSchema",
948
935
  args: [e]
949
936
  });
950
- return !t || t.uid === Ke ? null : {
937
+ return !t || t.uid === tt ? 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 Je(e) {
944
+ function rt(e) {
958
945
  return {
959
946
  to: Y().schemaRegistryAddress,
960
947
  data: m({
961
- abi: w,
948
+ abi: C,
962
949
  functionName: "register",
963
950
  args: [
964
951
  e.schema,
@@ -970,25 +957,25 @@ function Je(e) {
970
957
  }
971
958
  //#endregion
972
959
  //#region src/helpers/easDirect.ts
973
- var Ye = "0x0000000000000000000000000000000000000000", N = "0x" + "0".repeat(64);
974
- function Xe(e) {
975
- return A(e);
960
+ var it = "0x0000000000000000000000000000000000000000", at = "0x" + "0".repeat(64);
961
+ function ot(e) {
962
+ return P(e);
976
963
  }
977
- function Ze(e) {
978
- return j(e);
964
+ function st(e) {
965
+ return F(e);
979
966
  }
980
- function Qe(e) {
967
+ function ct(e) {
981
968
  return p([{ type: "bytes32" }], [e]);
982
969
  }
983
- function $e(e, t) {
984
- return P(e, t)[0]?.uid;
970
+ function lt(e, t) {
971
+ return ut(e, t)[0]?.uid;
985
972
  }
986
- function P(e, t) {
973
+ function ut(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({
978
+ let e = re({
992
979
  abi: v,
993
980
  eventName: "Attested",
994
981
  logs: r,
@@ -996,7 +983,7 @@ function P(e, t) {
996
983
  }), t = [];
997
984
  for (let n of e) {
998
985
  let e = n.args?.uid, r = n.args?.schemaUID;
999
- e && e !== N && r && t.push({
986
+ e && e !== at && r && t.push({
1000
987
  schemaUid: r,
1001
988
  uid: e
1002
989
  });
@@ -1006,20 +993,20 @@ function P(e, t) {
1006
993
  return [];
1007
994
  }
1008
995
  }
1009
- function F(e) {
1010
- return M(e);
996
+ function dt(e) {
997
+ return et(e);
1011
998
  }
1012
999
  //#endregion
1013
1000
  //#region src/helpers/publishWalletRegistry.ts
1014
1001
  var I = null;
1015
- function et() {
1002
+ function ft() {
1016
1003
  return a.isInitialized() ? Promise.resolve() : new Promise((e) => {
1017
1004
  a.onReady(() => e());
1018
1005
  });
1019
1006
  }
1020
- async function tt(e) {
1007
+ async function pt(e) {
1021
1008
  if (I = e, !e) return;
1022
- await et();
1009
+ await ft();
1023
1010
  let t = /* @__PURE__ */ new Set();
1024
1011
  for (let n of e.ownedAddresses ?? []) n && t.add(n.toLowerCase());
1025
1012
  t.add(e.signer.address.toLowerCase()), t.add(e.txSender.address.toLowerCase()), e.publisherAddress && t.add(e.publisherAddress.toLowerCase());
@@ -1034,12 +1021,12 @@ async function tt(e) {
1034
1021
  function L() {
1035
1022
  return I;
1036
1023
  }
1037
- function nt() {
1024
+ function mt() {
1038
1025
  I = null;
1039
1026
  }
1040
1027
  //#endregion
1041
1028
  //#region src/helpers/retryNonceTooLow.ts
1042
- function rt(e) {
1029
+ function ht(e) {
1043
1030
  let t = [], n = e;
1044
1031
  for (let e = 0; n && e < 5; e++) {
1045
1032
  let e = n;
@@ -1047,46 +1034,46 @@ function rt(e) {
1047
1034
  }
1048
1035
  return /nonce too low|nonce has already been used|NONCE_EXPIRED|nonce.*already.*(used|known)|lower than the current nonce/i.test(t.join(" "));
1049
1036
  }
1050
- async function R(e, { attempts: t = 3, delayMs: n = 1e3 } = {}) {
1037
+ async function gt(e, { attempts: t = 3, delayMs: n = 1e3 } = {}) {
1051
1038
  for (let r = 1;; r++) try {
1052
1039
  return await e();
1053
1040
  } catch (e) {
1054
- if (r >= t || !rt(e)) throw e;
1041
+ if (r >= t || !ht(e)) throw e;
1055
1042
  await new Promise((e) => setTimeout(e, n));
1056
1043
  }
1057
1044
  }
1058
1045
  //#endregion
1059
1046
  //#region src/helpers/seedSigner.ts
1060
- var it = Symbol.for("seedprotocol.SeedSigner"), at = Symbol.for("seedprotocol.SeedTxSender");
1047
+ var _t = Symbol.for("seedprotocol.SeedSigner"), vt = Symbol.for("seedprotocol.SeedTxSender");
1048
+ function R(e) {
1049
+ return Object.assign(e, { [_t]: !0 });
1050
+ }
1061
1051
  function z(e) {
1062
- return Object.assign(e, { [it]: !0 });
1052
+ return Object.assign(e, { [vt]: !0 });
1063
1053
  }
1064
1054
  function B(e) {
1065
- return Object.assign(e, { [at]: !0 });
1055
+ return !!e && typeof e == "object" && _t in e;
1066
1056
  }
1067
1057
  function V(e) {
1068
- return !!e && typeof e == "object" && it in e;
1058
+ return !!e && typeof e == "object" && vt in e;
1069
1059
  }
1070
1060
  function H(e) {
1071
- return !!e && typeof e == "object" && at in e;
1061
+ return !!e && typeof e == "object" && "signer" in e && "txSender" in e && B(e.signer) && V(e.txSender);
1072
1062
  }
1073
- function U(e) {
1074
- return !!e && typeof e == "object" && "signer" in e && "txSender" in e && V(e.signer) && H(e.txSender);
1075
- }
1076
- function ot(e) {
1063
+ function yt(e) {
1077
1064
  let t = e.address;
1078
1065
  return {
1079
- signer: z({
1066
+ signer: R({
1080
1067
  address: t,
1081
1068
  signMessage: async ({ message: t }) => {
1082
1069
  if (typeof t == "string") return await e.signMessage(t);
1083
- 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" ? ce.getBytes(n) : n instanceof Uint8Array ? n : new Uint8Array(n);
1084
1071
  return await e.signMessage(r);
1085
1072
  }
1086
1073
  }),
1087
- txSender: B({
1074
+ txSender: z({
1088
1075
  address: t,
1089
- sendTransaction: async (t) => ({ transactionHash: (await R(() => e.sendTransaction({
1076
+ sendTransaction: async (t) => ({ transactionHash: (await gt(() => e.sendTransaction({
1090
1077
  to: t.to,
1091
1078
  data: t.data,
1092
1079
  value: t.value,
@@ -1095,28 +1082,28 @@ function ot(e) {
1095
1082
  })
1096
1083
  };
1097
1084
  }
1098
- function st(e) {
1099
- if (U(e)) return e.signer;
1100
- if (V(e)) return e;
1085
+ function bt(e) {
1086
+ if (H(e)) return e.signer;
1087
+ if (B(e)) return e;
1101
1088
  throw Error("@seedprotocol/publish: expected a SeedSigner or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1102
1089
  }
1103
- function ct(e) {
1104
- if (U(e)) return e.txSender;
1105
- if (H(e)) return e;
1090
+ function xt(e) {
1091
+ if (H(e)) return e.txSender;
1092
+ if (V(e)) return e;
1106
1093
  throw Error("@seedprotocol/publish: expected a SeedTxSender or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1107
1094
  }
1108
- function lt(e) {
1109
- if (U(e)) return e;
1095
+ function St(e) {
1096
+ if (H(e)) return e;
1110
1097
  throw Error("@seedprotocol/publish: expected a PublishWallet (signer + txSender). Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1111
1098
  }
1112
1099
  //#endregion
1113
1100
  //#region src/helpers/thirdwebChain.ts
1114
- var W = null;
1115
- function ut(e) {
1116
- let t = e ?? wt() ?? {}, n = t.chain ?? _, r = t.rpcUrl?.trim() || void 0, i = `${n.id}|${r ?? ""}`;
1117
- if (W?.key === i) return W.chain;
1101
+ var U = null;
1102
+ function Ct(e) {
1103
+ let t = e ?? Rt() ?? {}, n = t.chain ?? _, r = t.rpcUrl?.trim() || void 0, i = `${n.id}|${r ?? ""}`;
1104
+ if (U?.key === i) return U.chain;
1118
1105
  let a;
1119
- return a = n.id === se.id && !r ? se : oe({
1106
+ return a = n.id === ue.id && !r ? ue : le({
1120
1107
  id: n.id,
1121
1108
  name: n.name,
1122
1109
  nativeCurrency: n.nativeCurrency,
@@ -1127,14 +1114,14 @@ function ut(e) {
1127
1114
  apiUrl: n
1128
1115
  })) : void 0,
1129
1116
  ...r ? { rpc: r } : {}
1130
- }), W = {
1117
+ }), U = {
1131
1118
  key: i,
1132
1119
  chain: a
1133
1120
  }, a;
1134
1121
  }
1135
- var dt = /* @__PURE__ */ new Set([31337, 1337]);
1136
- function ft(e) {
1137
- if (dt.has(e.id)) return !0;
1122
+ var wt = /* @__PURE__ */ new Set([31337, 1337]);
1123
+ function Tt(e) {
1124
+ if (wt.has(e.id)) return !0;
1138
1125
  try {
1139
1126
  let t = new URL(e.rpc).hostname.replace(/^\[|\]$/g, "");
1140
1127
  return t === "localhost" || t === "127.0.0.1" || t === "::1" || t.endsWith(".localhost");
@@ -1143,45 +1130,79 @@ function ft(e) {
1143
1130
  }
1144
1131
  }
1145
1132
  //#endregion
1133
+ //#region src/helpers/gasLog.ts
1134
+ function W(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 Et(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
+ }
1147
+ //#endregion
1146
1148
  //#region src/helpers/adapters/thirdwebAccount.ts
1147
- var pt = /* @__PURE__ */ e({
1148
- asSeedSignerFromThirdweb: () => ht,
1149
- asThirdwebPublishWallet: () => mt,
1149
+ var Dt = /* @__PURE__ */ e({
1150
+ asSeedSignerFromThirdweb: () => kt,
1151
+ asThirdwebPublishWallet: () => Ot,
1150
1152
  fromThirdwebAccount: () => G
1151
1153
  });
1152
1154
  function G(e, t) {
1153
1155
  let n = t?.client, r = e.address;
1154
1156
  return {
1155
- signer: z({
1157
+ signer: R({
1156
1158
  address: r,
1157
1159
  signMessage: async ({ message: t }) => await e.signMessage({ message: t })
1158
1160
  }),
1159
- txSender: B({
1161
+ txSender: z({
1160
1162
  address: r,
1161
1163
  sendTransaction: async (t) => {
1162
- let r = n ?? (await import("./publishThirdwebClient-i8P7fivi.js").then((e) => e.n)).getClient(), i = ut(), a = re({
1163
- client: r,
1164
- chain: i,
1164
+ let i = n ?? (await import("./publishThirdwebClient-BQ_KnMi5.js").then((e) => e.n)).getClient(), a = Ct(), o = oe({
1165
+ client: i,
1166
+ chain: a,
1165
1167
  to: t.to,
1166
1168
  data: t.data,
1167
1169
  value: t.value,
1168
1170
  gas: t.gas
1169
1171
  });
1170
- return { transactionHash: (await R(() => ie({
1171
- account: e,
1172
- transaction: a
1173
- }))).transactionHash };
1172
+ W("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 gt(() => se({
1182
+ account: e,
1183
+ transaction: o
1184
+ }));
1185
+ } catch (e) {
1186
+ throw W("thirdweb sendTransaction failed", {
1187
+ account: r,
1188
+ error: e instanceof Error ? e.message : String(e)
1189
+ }), e;
1190
+ }
1191
+ return W("thirdweb sendTransaction returned", {
1192
+ account: r,
1193
+ transactionHash: s.transactionHash
1194
+ }), { transactionHash: s.transactionHash };
1174
1195
  }
1175
1196
  })
1176
1197
  };
1177
1198
  }
1178
- function mt(e, t) {
1179
- if (U(e)) return e;
1180
- if (V(e)) throw Error("@seedprotocol/publish/thirdweb: SeedSigner alone cannot send sponsored txs. Pass fromThirdwebAccount(account) or a PublishWallet.");
1199
+ function Ot(e, t) {
1200
+ if (H(e)) return e;
1201
+ if (B(e)) throw Error("@seedprotocol/publish/thirdweb: SeedSigner alone cannot send sponsored txs. Pass fromThirdwebAccount(account) or a PublishWallet.");
1181
1202
  return G(e, t);
1182
1203
  }
1183
- function ht(e) {
1184
- return U(e) ? e.signer : V(e) ? e : G(e).signer;
1204
+ function kt(e) {
1205
+ return H(e) ? e.signer : B(e) ? e : G(e).signer;
1185
1206
  }
1186
1207
  //#endregion
1187
1208
  //#region src/helpers/verifyPublishChain.ts
@@ -1193,7 +1214,7 @@ var K = class extends Error {
1193
1214
  super(`@seedprotocol/publish: chain ${e} is not set up for publishing:\n- ${t.join("\n- ")}`), this.chainId = e, this.problems = t;
1194
1215
  }
1195
1216
  }, q = null;
1196
- function gt() {
1217
+ function At() {
1197
1218
  let e = Y();
1198
1219
  return [
1199
1220
  e.chain.id,
@@ -1204,12 +1225,12 @@ function gt() {
1204
1225
  e.modularAccountModuleContract ?? ""
1205
1226
  ].join("|").toLowerCase();
1206
1227
  }
1207
- async function _t() {
1228
+ async function jt() {
1208
1229
  let e = Y(), { chain: t } = e, n = [], r;
1209
1230
  try {
1210
- r = await D().getChainId();
1231
+ r = await A().getChainId();
1211
1232
  } catch (e) {
1212
- throw new K(t.id, [`could not reach the RPC (${vt($())}): ${e instanceof Error ? e.message : String(e)}`]);
1233
+ throw new K(t.id, [`could not reach the RPC (${Mt($())}): ${e instanceof Error ? e.message : String(e)}`]);
1213
1234
  }
1214
1235
  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}.`]);
1215
1236
  let i = [
@@ -1233,11 +1254,11 @@ async function _t() {
1233
1254
  e.modularAccountModuleContract?.trim() || void 0,
1234
1255
  "deploy the module or fix modularAccountModuleContract"
1235
1256
  ]
1236
- ], a = await Promise.all(i.map(async ([e, n, r]) => n ? await k(n) ? null : `no ${e} at ${n} on ${t.name}; ${r}.` : null));
1257
+ ], a = await Promise.all(i.map(async ([e, n, r]) => n ? await M(n) ? null : `no ${e} at ${n} on ${t.name}; ${r}.` : null));
1237
1258
  for (let e of a) e && n.push(e);
1238
1259
  if (n.length > 0) throw new K(t.id, n);
1239
1260
  }
1240
- function vt(e) {
1261
+ function Mt(e) {
1241
1262
  try {
1242
1263
  let t = new URL(e);
1243
1264
  return `${t.protocol}//${t.host}`;
@@ -1245,10 +1266,10 @@ function vt(e) {
1245
1266
  return "configured rpcUrl";
1246
1267
  }
1247
1268
  }
1248
- function yt() {
1249
- let e = gt();
1269
+ function Nt() {
1270
+ let e = At();
1250
1271
  if (q?.key === e) return q.result;
1251
- let t = _t();
1272
+ let t = jt();
1252
1273
  return q = {
1253
1274
  key: e,
1254
1275
  result: t
@@ -1258,35 +1279,35 @@ function yt() {
1258
1279
  }
1259
1280
  //#endregion
1260
1281
  //#region src/services/revoke/revokeAttestations.ts
1261
- async function bt(e) {
1282
+ async function Pt(e) {
1262
1283
  if (!e) return !1;
1263
1284
  let t = s();
1264
1285
  if (!t) return !1;
1265
1286
  let n = await t(), r = e.toLowerCase();
1266
1287
  return !!n?.some((e) => e?.toLowerCase() === r);
1267
1288
  }
1268
- async function xt(e, t) {
1289
+ async function Ft(e, t) {
1269
1290
  if (!t || !Y().modularAccountModuleContract?.trim()) return !1;
1270
1291
  let n = e.signer?.address;
1271
1292
  if (!n || n.toLowerCase() === t.toLowerCase()) return !1;
1272
1293
  try {
1273
- let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-D8Gki6U6.js").then((e) => e.n);
1294
+ let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-BVmh030S.js").then((e) => e.n);
1274
1295
  return await e(t, n);
1275
1296
  } catch {
1276
1297
  return !1;
1277
1298
  }
1278
1299
  }
1279
- async function St(e) {
1300
+ async function It(e) {
1280
1301
  let { seedLocalId: t, seedUid: n, seedSchemaUid: a } = e;
1281
- await i(), await yt();
1302
+ await i(), await Nt();
1282
1303
  let s = await o({
1283
1304
  seedLocalId: t,
1284
1305
  seedUid: n
1285
1306
  });
1286
- if (await bt(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 Pt(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.");
1287
1308
  let u = L();
1288
1309
  if (!u) try {
1289
- let { getConnectedAccount: e } = await import("./publishAuthorization-DfAQs1sN.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-Cg4TQgnd.js"), n = await e();
1310
+ let { getConnectedAccount: e } = await import("./publishAuthorization-CG23g8w2.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-CXa5XlOv.js"), n = await e();
1290
1311
  if (!n) throw Error("No wallet connected. Connect a wallet to revoke attestations.");
1291
1312
  u = G(await t({
1292
1313
  account: n,
@@ -1296,7 +1317,7 @@ async function St(e) {
1296
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 });
1297
1318
  }
1298
1319
  let d = u.txSender;
1299
- if (await xt(u, s)) throw Error("Automation session keys cannot revoke attestations. Revoking is owner-only: connect the account that published this item.");
1320
+ if (await Ft(u, s)) throw Error("Automation session keys cannot revoke attestations. Revoking is owner-only: connect the account that published this item.");
1300
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();
1301
1322
  for (let { uid: e, schemaUid: t } of f) {
1302
1323
  if (!l(e)) continue;
@@ -1317,9 +1338,9 @@ async function St(e) {
1317
1338
  });
1318
1339
  for (let e of h) {
1319
1340
  if (e.data.length === 0) continue;
1320
- let t = F([e]);
1341
+ let t = dt([e]);
1321
1342
  try {
1322
- await O((await d.sendTransaction(t)).transactionHash);
1343
+ await j((await d.sendTransaction(t)).transactionHash);
1323
1344
  } catch (e) {
1324
1345
  let t = e instanceof Error ? e.message : String(e);
1325
1346
  if (t.includes("AccessDenied") || t.includes("0x4ca88867")) throw Error("Only the original attester can revoke attestations. Connect the wallet that published this item.");
@@ -1330,34 +1351,36 @@ async function St(e) {
1330
1351
  let g = Math.floor(Date.now() / 1e3);
1331
1352
  await ne({
1332
1353
  seedLocalId: t,
1333
- revokedAt: g
1354
+ revokedAt: g,
1355
+ metadataUids: [...m.values()].flat(),
1356
+ versionUids: p
1334
1357
  });
1335
1358
  }
1336
1359
  //#endregion
1337
1360
  //#region src/config.ts
1338
- le("publish");
1361
+ fe("publish");
1339
1362
  var J = null;
1340
- function Ct(e) {
1363
+ function Lt(e) {
1341
1364
  J = e;
1342
1365
  }
1343
- function wt() {
1366
+ function Rt() {
1344
1367
  return J;
1345
1368
  }
1346
- function Tt(e) {
1369
+ function zt(e) {
1347
1370
  let t = X(e);
1348
- ce("publish", {
1371
+ de("publish", {
1349
1372
  chainId: t.chainId,
1350
1373
  indexerUrl: t.indexerUrl
1351
- }), Ct(e), d(async () => {
1374
+ }), Lt(e), d(async () => {
1352
1375
  let e = L();
1353
1376
  if (e?.publisherAddress) return e.publisherAddress;
1354
1377
  if (e?.signer?.address) return e.signer.address;
1355
- }), te(St), import("./worker-DypHzXgH.js").then((e) => {
1378
+ }), te(It), import("./worker-CJRUAOAn.js").then((e) => {
1356
1379
  e.startArweaveL1FinalizeWorker();
1357
1380
  }), u(async () => e.useModularExecutor && e.modularAccountModuleContract ? [e.modularAccountModuleContract] : []);
1358
1381
  }
1359
- var Et = Tt;
1360
- function Dt(e) {
1382
+ var Bt = zt;
1383
+ function Vt(e) {
1361
1384
  let t = e?.thirdweb ?? {};
1362
1385
  return {
1363
1386
  bundlerUrl: t.bundlerUrl?.trim() || void 0,
@@ -1371,11 +1394,10 @@ function Y() {
1371
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");
1372
1395
  return {
1373
1396
  ...e,
1374
- thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? fe[o.id],
1397
+ thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? he[o.id],
1375
1398
  easContractAddress: s.easContractAddress,
1376
1399
  schemaRegistryAddress: s.schemaRegistryAddress,
1377
1400
  easChain: s,
1378
- useIntegerLocalIds: e.useIntegerLocalIds ?? !1,
1379
1401
  useDirectEas: e.useDirectEas ?? !1,
1380
1402
  modularAccountModuleData: e.modularAccountModuleData ?? "0x",
1381
1403
  useModularExecutor: a,
@@ -1383,16 +1405,16 @@ function Y() {
1383
1405
  arweaveUploadVerificationBaseUrl: r,
1384
1406
  arweaveGraphqlUrl: i,
1385
1407
  autoDeployManagedAccount: e.autoDeployManagedAccount ?? !1,
1386
- autoDeployEip7702ModularAccount: Ot(e, a),
1408
+ autoDeployEip7702ModularAccount: Ht(e, a),
1387
1409
  chain: o,
1388
1410
  accountMode: c,
1389
- thirdweb: Dt(e)
1411
+ thirdweb: Vt(e)
1390
1412
  };
1391
1413
  }
1392
1414
  function X(e) {
1393
1415
  let t = e.chain ?? _;
1394
1416
  try {
1395
- return ue(t.id, {
1417
+ return pe(t.id, {
1396
1418
  name: t.name,
1397
1419
  easContractAddress: e.easContractAddress,
1398
1420
  schemaRegistryAddress: e.schemaRegistryAddress
@@ -1406,7 +1428,7 @@ function Z() {
1406
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.`);
1407
1429
  return e;
1408
1430
  }
1409
- function Ot(e, t) {
1431
+ function Ht(e, t) {
1410
1432
  return e.autoDeployEip7702ModularAccount === !0 || e.autoDeployEip7702ModularAccount !== !1 && t;
1411
1433
  }
1412
1434
  //#endregion
@@ -1424,10 +1446,10 @@ function $() {
1424
1446
  if (e.thirdwebClientId) return `https://${(e.chain ?? _).id}.rpc.thirdweb.com/${e.thirdwebClientId}`;
1425
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.");
1426
1448
  }
1427
- function kt() {
1449
+ function Ut() {
1428
1450
  return Q().name;
1429
1451
  }
1430
1452
  //#endregion
1431
- export { Ve as $, tt as A, A as B, B as C, H as D, V as E, P as F, je as G, M as H, Xe as I, ze as J, Me as K, Ze as L, N as M, Qe as N, nt as O, $e as P, Be as Q, F as R, z as S, U as T, Ne as U, j as V, Re as W, Pe as X, Fe as Y, Ue as Z, ut as _, pe as _t, wt as a, D as at, st as b, me as bt, Z as c, O as ct, K as d, Se as dt, He as et, yt as f, v as ft, pt as g, fe as gt, G as h, ge as ht, Et as i, De as it, Ye as j, L as k, X as l, Ce as lt, mt as m, de as mt, $ as n, Le as nt, Y as o, k as ot, ht as p, _ as pt, Je as q, Q as r, Ie as rt, Tt as s, Ae as st, kt as t, qe as tt, Dt as u, S as ut, ft as v, _e as vt, ot as w, ct as x, lt as y, he as yt, We as z };
1453
+ export { We as $, mt as A, be as At, dt as B, xt as C, we as Ct, H as D, ye as Dt, yt as E, me as Et, ct as F, Be as G, P as H, lt as I, rt as J, Ke as K, ut as L, pt as M, _e as Mt, it as N, B as O, he as Ot, at as P, Ze as Q, ot as R, bt as S, x as St, z as T, _ as Tt, F as U, Qe as V, et as W, He as X, qe as Y, Ve as Z, Et as _, Oe as _t, Rt as a, Ue as at, Tt as b, S as bt, Z as c, M as ct, K as d, j as dt, Je as et, Nt as f, De as ft, Dt as g, Ae as gt, G as h, E as ht, Bt as i, Ge as it, L as j, ve as jt, V as k, ge as kt, X as l, Re as lt, Ot as m, T as mt, $ as n, Xe as nt, Y as o, Fe as ot, kt as p, D as pt, N as q, Q as r, nt as rt, zt as s, A as st, Ut as t, Ye as tt, Vt as u, Pe as ut, W as v, je as vt, R as w, v as wt, St as x, Te as xt, Ct as y, w as yt, st as z };
1432
1454
 
1433
- //# sourceMappingURL=chainConfig-3wlYarAG.js.map
1455
+ //# sourceMappingURL=chainConfig-DmuPBs3D.js.map