@seedprotocol/publish 0.6.9 → 0.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/{chainConfig-CA1Hrrjg.js → chainConfig-DWzoOtkS.js} +394 -328
  4. package/dist/chainConfig-DWzoOtkS.js.map +1 -0
  5. package/dist/config.d.ts +5 -4
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/ensureAutomationSessionKey-h3zOmDr5.js +84 -0
  8. package/dist/ensureAutomationSessionKey-h3zOmDr5.js.map +1 -0
  9. package/dist/{ensureModularPublishBootstrap-DGBKVGg5.js → ensureModularPublishBootstrap-BImiIFJe.js} +9 -10
  10. package/dist/{ensureModularPublishBootstrap-5HJDqJJM.js.map → ensureModularPublishBootstrap-BImiIFJe.js.map} +1 -1
  11. package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js → ensureSmartWalletThenPublish-DuOYPJFd.js} +9 -10
  12. package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js.map → ensureSmartWalletThenPublish-DuOYPJFd.js.map} +1 -1
  13. package/dist/errors.d.ts +9 -0
  14. package/dist/errors.d.ts.map +1 -1
  15. package/dist/helpers/abi/executor.d.ts +12 -0
  16. package/dist/helpers/abi/executor.d.ts.map +1 -1
  17. package/dist/helpers/abi/factory.d.ts +11 -0
  18. package/dist/helpers/abi/factory.d.ts.map +1 -1
  19. package/dist/helpers/abi/seedExecutorRouter.d.ts +9 -1
  20. package/dist/helpers/abi/seedExecutorRouter.d.ts.map +1 -1
  21. package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
  22. package/dist/helpers/chainClient.d.ts +18 -2
  23. package/dist/helpers/chainClient.d.ts.map +1 -1
  24. package/dist/helpers/contracts/index.d.ts +9 -0
  25. package/dist/helpers/contracts/index.d.ts.map +1 -1
  26. package/dist/helpers/describeRevert.d.ts +3 -2
  27. package/dist/helpers/describeRevert.d.ts.map +1 -1
  28. package/dist/helpers/enrollPublishAutomation.d.ts +2 -2
  29. package/dist/helpers/enrollPublishAutomation.d.ts.map +1 -1
  30. package/dist/helpers/ensureAutomationSessionKey.d.ts.map +1 -1
  31. package/dist/helpers/ensureExecutorModule.d.ts +28 -5
  32. package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
  33. package/dist/helpers/executorModuleReadiness.d.ts +15 -1
  34. package/dist/helpers/executorModuleReadiness.d.ts.map +1 -1
  35. package/dist/helpers/gasLog.d.ts +8 -0
  36. package/dist/helpers/gasLog.d.ts.map +1 -0
  37. package/dist/helpers/seedPaymaster.d.ts +27 -0
  38. package/dist/helpers/seedPaymaster.d.ts.map +1 -0
  39. package/dist/helpers/thirdweb.d.ts.map +1 -1
  40. package/dist/index.d.ts +3 -3
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +271 -272
  43. package/dist/index.js.map +1 -1
  44. package/dist/{managedAccountAdmin-B64V1rlU.js → managedAccountAdmin-B4HkLWWE.js} +9 -10
  45. package/dist/{managedAccountAdmin-B64V1rlU.js.map → managedAccountAdmin-B4HkLWWE.js.map} +1 -1
  46. package/dist/{publishAuthorization-CxBkijU6.js → publishAuthorization-DgDI4zor.js} +1104 -1018
  47. package/dist/publishAuthorization-DgDI4zor.js.map +1 -0
  48. package/dist/{publishThirdwebClient-CBD9sKJR.js → publishThirdwebClient-CO18ST7C.js} +2 -2
  49. package/dist/{publishThirdwebClient-CBD9sKJR.js.map → publishThirdwebClient-CO18ST7C.js.map} +1 -1
  50. package/dist/{resolveRevokeAccount-CehU81k6.js → resolveRevokeAccount-DsNod8ti.js} +11 -11
  51. package/dist/{resolveRevokeAccount-B5iXpuRT.js.map → resolveRevokeAccount-DsNod8ti.js.map} +1 -1
  52. package/dist/thirdweb.d.ts +2 -1
  53. package/dist/thirdweb.d.ts.map +1 -1
  54. package/dist/thirdweb.js +147 -148
  55. package/dist/thirdweb.js.map +1 -1
  56. package/dist/{worker-2dUZSapK.js → worker-CN7zg73B.js} +2 -2
  57. package/dist/{worker-2dUZSapK.js.map → worker-CN7zg73B.js.map} +1 -1
  58. package/package.json +6 -6
  59. package/dist/chainConfig-3sSqEVQh.js +0 -1433
  60. package/dist/chainConfig-3sSqEVQh.js.map +0 -1
  61. package/dist/chainConfig-3wlYarAG.js +0 -1433
  62. package/dist/chainConfig-3wlYarAG.js.map +0 -1
  63. package/dist/chainConfig-BRcsMopd.js +0 -1442
  64. package/dist/chainConfig-BRcsMopd.js.map +0 -1
  65. package/dist/chainConfig-BYm5OXpk.js +0 -1433
  66. package/dist/chainConfig-BYm5OXpk.js.map +0 -1
  67. package/dist/chainConfig-CA1Hrrjg.js.map +0 -1
  68. package/dist/chainConfig-CYy0XJ0M.js +0 -1283
  69. package/dist/chainConfig-CYy0XJ0M.js.map +0 -1
  70. package/dist/chainConfig-CfVGYAsY.js +0 -1311
  71. package/dist/chainConfig-CfVGYAsY.js.map +0 -1
  72. package/dist/chainConfig-DDA4YmAB.js +0 -1424
  73. package/dist/chainConfig-DDA4YmAB.js.map +0 -1
  74. package/dist/config-BA9la8B6.js +0 -941
  75. package/dist/config-BA9la8B6.js.map +0 -1
  76. package/dist/config-BqguD2Tt.js +0 -806
  77. package/dist/config-BqguD2Tt.js.map +0 -1
  78. package/dist/config-CPBd5C_b.js +0 -1201
  79. package/dist/config-CPBd5C_b.js.map +0 -1
  80. package/dist/config-DkIapO94.js +0 -955
  81. package/dist/config-DkIapO94.js.map +0 -1
  82. package/dist/config-EQZZNH9H.js +0 -955
  83. package/dist/config-EQZZNH9H.js.map +0 -1
  84. package/dist/config-qjpaJcBA.js +0 -947
  85. package/dist/config-qjpaJcBA.js.map +0 -1
  86. package/dist/deploy-BJYwLfz-.js +0 -15
  87. package/dist/deploy-BJYwLfz-.js.map +0 -1
  88. package/dist/enrollPublishAutomation-DYQMoylY.js +0 -3422
  89. package/dist/enrollPublishAutomation-DYQMoylY.js.map +0 -1
  90. package/dist/ensureAutomationSessionKey-BMHLKfjj.js +0 -85
  91. package/dist/ensureAutomationSessionKey-BMHLKfjj.js.map +0 -1
  92. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js +0 -86
  93. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js.map +0 -1
  94. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js +0 -84
  95. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js.map +0 -1
  96. package/dist/ensureAutomationSessionKey-Bw74ZSGI.js +0 -85
  97. package/dist/ensureAutomationSessionKey-Bw74ZSGI.js.map +0 -1
  98. package/dist/ensureAutomationSessionKey-C8D7BFjU.js +0 -85
  99. package/dist/ensureAutomationSessionKey-C8D7BFjU.js.map +0 -1
  100. package/dist/ensureAutomationSessionKey-CClLVX2w.js +0 -85
  101. package/dist/ensureAutomationSessionKey-CClLVX2w.js.map +0 -1
  102. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js +0 -85
  103. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js.map +0 -1
  104. package/dist/ensureAutomationSessionKey-CeUbjcCl.js +0 -85
  105. package/dist/ensureAutomationSessionKey-CeUbjcCl.js.map +0 -1
  106. package/dist/ensureAutomationSessionKey-D8Gki6U6.js +0 -85
  107. package/dist/ensureAutomationSessionKey-D8Gki6U6.js.map +0 -1
  108. package/dist/ensureAutomationSessionKey-DEH7nwUc.js +0 -86
  109. package/dist/ensureAutomationSessionKey-DEH7nwUc.js.map +0 -1
  110. package/dist/ensureAutomationSessionKey-DKriW4Hr.js +0 -85
  111. package/dist/ensureAutomationSessionKey-DKriW4Hr.js.map +0 -1
  112. package/dist/ensureAutomationSessionKey-Dhvbii2M.js +0 -86
  113. package/dist/ensureAutomationSessionKey-Dhvbii2M.js.map +0 -1
  114. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js +0 -85
  115. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js.map +0 -1
  116. package/dist/ensureModularPublishBootstrap-5HJDqJJM.js +0 -24
  117. package/dist/ensureModularPublishBootstrap-BW8jKN_A.js +0 -24
  118. package/dist/ensureModularPublishBootstrap-BW8jKN_A.js.map +0 -1
  119. package/dist/ensureModularPublishBootstrap-BhYNmLzT.js +0 -24
  120. package/dist/ensureModularPublishBootstrap-BhYNmLzT.js.map +0 -1
  121. package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js +0 -24
  122. package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js.map +0 -1
  123. package/dist/ensureModularPublishBootstrap-Btih5xbB.js +0 -129
  124. package/dist/ensureModularPublishBootstrap-Btih5xbB.js.map +0 -1
  125. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js +0 -128
  126. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js.map +0 -1
  127. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js +0 -129
  128. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js.map +0 -1
  129. package/dist/ensureModularPublishBootstrap-CcU-hXll.js +0 -128
  130. package/dist/ensureModularPublishBootstrap-CcU-hXll.js.map +0 -1
  131. package/dist/ensureModularPublishBootstrap-CdrykHAi.js +0 -24
  132. package/dist/ensureModularPublishBootstrap-CdrykHAi.js.map +0 -1
  133. package/dist/ensureModularPublishBootstrap-DGBKVGg5.js.map +0 -1
  134. package/dist/ensureModularPublishBootstrap-DaREOqSc.js +0 -129
  135. package/dist/ensureModularPublishBootstrap-DaREOqSc.js.map +0 -1
  136. package/dist/ensureModularPublishBootstrap-DxIG-LUP.js +0 -24
  137. package/dist/ensureModularPublishBootstrap-DxIG-LUP.js.map +0 -1
  138. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js +0 -127
  139. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js.map +0 -1
  140. package/dist/ensureSessionKey-D2Lq-56x.js +0 -363
  141. package/dist/ensureSessionKey-D2Lq-56x.js.map +0 -1
  142. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js +0 -48
  143. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js.map +0 -1
  144. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js +0 -49
  145. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js.map +0 -1
  146. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js +0 -49
  147. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js.map +0 -1
  148. package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js +0 -48
  149. package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js.map +0 -1
  150. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js +0 -49
  151. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js.map +0 -1
  152. package/dist/ensureSmartWalletThenPublish-CE7acryB.js +0 -49
  153. package/dist/ensureSmartWalletThenPublish-CE7acryB.js.map +0 -1
  154. package/dist/ensureSmartWalletThenPublish-D5GSZRyZ.js +0 -48
  155. package/dist/ensureSmartWalletThenPublish-D5GSZRyZ.js.map +0 -1
  156. package/dist/ensureSmartWalletThenPublish-DAomriGc.js +0 -48
  157. package/dist/ensureSmartWalletThenPublish-DAomriGc.js.map +0 -1
  158. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js +0 -48
  159. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js.map +0 -1
  160. package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js +0 -48
  161. package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js.map +0 -1
  162. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js +0 -48
  163. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js.map +0 -1
  164. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js +0 -48
  165. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js.map +0 -1
  166. package/dist/errors-Du3LNbJN.js +0 -70
  167. package/dist/errors-Du3LNbJN.js.map +0 -1
  168. package/dist/errors-PZAaDlkq.js +0 -79
  169. package/dist/errors-PZAaDlkq.js.map +0 -1
  170. package/dist/helpers/adapters/managedAccountTxSender.d.ts +0 -21
  171. package/dist/helpers/adapters/managedAccountTxSender.d.ts.map +0 -1
  172. package/dist/helpers/modularAccount/abi.d.ts +0 -173
  173. package/dist/helpers/modularAccount/abi.d.ts.map +0 -1
  174. package/dist/helpers/modularAccount/deploy.d.ts +0 -13
  175. package/dist/helpers/modularAccount/deploy.d.ts.map +0 -1
  176. package/dist/helpers/modularAccount/eip712.d.ts +0 -30
  177. package/dist/helpers/modularAccount/eip712.d.ts.map +0 -1
  178. package/dist/helpers/modularAccount/encode.d.ts +0 -16
  179. package/dist/helpers/modularAccount/encode.d.ts.map +0 -1
  180. package/dist/helpers/modularAccount/ensureModule.d.ts +0 -10
  181. package/dist/helpers/modularAccount/ensureModule.d.ts.map +0 -1
  182. package/dist/helpers/modularAccount/ensureSessionKey.d.ts +0 -25
  183. package/dist/helpers/modularAccount/ensureSessionKey.d.ts.map +0 -1
  184. package/dist/helpers/modularAccount/index.d.ts +0 -9
  185. package/dist/helpers/modularAccount/index.d.ts.map +0 -1
  186. package/dist/helpers/modularAccount/permissions.d.ts +0 -32
  187. package/dist/helpers/modularAccount/permissions.d.ts.map +0 -1
  188. package/dist/helpers/modularAccount/reads.d.ts +0 -28
  189. package/dist/helpers/modularAccount/reads.d.ts.map +0 -1
  190. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts +0 -31
  191. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts.map +0 -1
  192. package/dist/helpers/thirdwebModularBootstrap.d.ts +0 -8
  193. package/dist/helpers/thirdwebModularBootstrap.d.ts.map +0 -1
  194. package/dist/helpers/transformPayloadToIntegerIds.d.ts +0 -34
  195. package/dist/helpers/transformPayloadToIntegerIds.d.ts.map +0 -1
  196. package/dist/managedAccountAdmin-BVLGWpEb.js +0 -29
  197. package/dist/managedAccountAdmin-BVLGWpEb.js.map +0 -1
  198. package/dist/managedAccountAdmin-Bje6X8Ds.js +0 -29
  199. package/dist/managedAccountAdmin-Bje6X8Ds.js.map +0 -1
  200. package/dist/managedAccountAdmin-C84-IlQ9.js +0 -29
  201. package/dist/managedAccountAdmin-C84-IlQ9.js.map +0 -1
  202. package/dist/managedAccountAdmin-DJMw6UH6.js +0 -29
  203. package/dist/managedAccountAdmin-DJMw6UH6.js.map +0 -1
  204. package/dist/managedAccountAdmin-DhCRBoPX.js +0 -29
  205. package/dist/managedAccountAdmin-DhCRBoPX.js.map +0 -1
  206. package/dist/managedAccountAdmin-NXD66lP5.js +0 -29
  207. package/dist/managedAccountAdmin-NXD66lP5.js.map +0 -1
  208. package/dist/publishAuthorization-B0G1em4a.js +0 -3695
  209. package/dist/publishAuthorization-B0G1em4a.js.map +0 -1
  210. package/dist/publishAuthorization-B1BVVfp0.js +0 -3604
  211. package/dist/publishAuthorization-B1BVVfp0.js.map +0 -1
  212. package/dist/publishAuthorization-BEqRnP2h.js +0 -3925
  213. package/dist/publishAuthorization-BEqRnP2h.js.map +0 -1
  214. package/dist/publishAuthorization-Bltn3y_K.js +0 -3599
  215. package/dist/publishAuthorization-Bltn3y_K.js.map +0 -1
  216. package/dist/publishAuthorization-By2Tt9kW.js +0 -3912
  217. package/dist/publishAuthorization-By2Tt9kW.js.map +0 -1
  218. package/dist/publishAuthorization-CSN2FsQk.js +0 -3479
  219. package/dist/publishAuthorization-CSN2FsQk.js.map +0 -1
  220. package/dist/publishAuthorization-CxBkijU6.js.map +0 -1
  221. package/dist/publishAuthorization-CxWY7lAQ.js +0 -3706
  222. package/dist/publishAuthorization-CxWY7lAQ.js.map +0 -1
  223. package/dist/publishAuthorization-DEriY_jm.js +0 -3687
  224. package/dist/publishAuthorization-DEriY_jm.js.map +0 -1
  225. package/dist/publishAuthorization-DfAQs1sN.js +0 -3707
  226. package/dist/publishAuthorization-DfAQs1sN.js.map +0 -1
  227. package/dist/publishAuthorization-DgdmgLTa.js +0 -3520
  228. package/dist/publishAuthorization-DgdmgLTa.js.map +0 -1
  229. package/dist/publishAuthorization-DjVrnMC0.js +0 -3925
  230. package/dist/publishAuthorization-DjVrnMC0.js.map +0 -1
  231. package/dist/publishAuthorization-DqhhCAhd.js +0 -3652
  232. package/dist/publishAuthorization-DqhhCAhd.js.map +0 -1
  233. package/dist/publishThirdwebClient-BdgkcqM7.js +0 -18
  234. package/dist/publishThirdwebClient-BdgkcqM7.js.map +0 -1
  235. package/dist/publishThirdwebClient-BkmDN480.js +0 -18
  236. package/dist/publishThirdwebClient-BkmDN480.js.map +0 -1
  237. package/dist/publishThirdwebClient-BnDhP3N-.js +0 -18
  238. package/dist/publishThirdwebClient-BnDhP3N-.js.map +0 -1
  239. package/dist/publishThirdwebClient-CQ29pzG2.js +0 -18
  240. package/dist/publishThirdwebClient-CQ29pzG2.js.map +0 -1
  241. package/dist/publishThirdwebClient-CZIVmr9Z.js +0 -18
  242. package/dist/publishThirdwebClient-CZIVmr9Z.js.map +0 -1
  243. package/dist/publishThirdwebClient-Ce7iBIsj.js +0 -18
  244. package/dist/publishThirdwebClient-Ce7iBIsj.js.map +0 -1
  245. package/dist/publishThirdwebClient-DroRrOFQ.js +0 -18
  246. package/dist/publishThirdwebClient-DroRrOFQ.js.map +0 -1
  247. package/dist/publishThirdwebClient-DzXFjQ7L.js +0 -18
  248. package/dist/publishThirdwebClient-DzXFjQ7L.js.map +0 -1
  249. package/dist/publishThirdwebClient-Dzb2vcEs.js +0 -18
  250. package/dist/publishThirdwebClient-Dzb2vcEs.js.map +0 -1
  251. package/dist/publishThirdwebClient-i8P7fivi.js +0 -18
  252. package/dist/publishThirdwebClient-i8P7fivi.js.map +0 -1
  253. package/dist/publishWalletRegistry-Cugh691z.js +0 -37
  254. package/dist/publishWalletRegistry-Cugh691z.js.map +0 -1
  255. package/dist/resolveRevokeAccount-B5iXpuRT.js +0 -38
  256. package/dist/resolveRevokeAccount-B7ImSb4Y.js +0 -38
  257. package/dist/resolveRevokeAccount-B7ImSb4Y.js.map +0 -1
  258. package/dist/resolveRevokeAccount-BEhKQBTm.js +0 -38
  259. package/dist/resolveRevokeAccount-BEhKQBTm.js.map +0 -1
  260. package/dist/resolveRevokeAccount-BM1j2l5Q.js +0 -38
  261. package/dist/resolveRevokeAccount-BM1j2l5Q.js.map +0 -1
  262. package/dist/resolveRevokeAccount-BtVG0xxc.js +0 -38
  263. package/dist/resolveRevokeAccount-BtVG0xxc.js.map +0 -1
  264. package/dist/resolveRevokeAccount-CJZZdBcQ.js +0 -39
  265. package/dist/resolveRevokeAccount-CJZZdBcQ.js.map +0 -1
  266. package/dist/resolveRevokeAccount-CaIMuCee.js +0 -39
  267. package/dist/resolveRevokeAccount-CaIMuCee.js.map +0 -1
  268. package/dist/resolveRevokeAccount-CehU81k6.js.map +0 -1
  269. package/dist/resolveRevokeAccount-Cg4TQgnd.js +0 -38
  270. package/dist/resolveRevokeAccount-Cg4TQgnd.js.map +0 -1
  271. package/dist/resolveRevokeAccount-DHnxtEIj.js +0 -39
  272. package/dist/resolveRevokeAccount-DHnxtEIj.js.map +0 -1
  273. package/dist/resolveRevokeAccount-DJKfLlyK.js +0 -38
  274. package/dist/resolveRevokeAccount-DJKfLlyK.js.map +0 -1
  275. package/dist/resolveRevokeAccount-S-2WXkNh.js +0 -38
  276. package/dist/resolveRevokeAccount-S-2WXkNh.js.map +0 -1
  277. package/dist/resolveRevokeAccount-mzR11KJ4.js +0 -38
  278. package/dist/resolveRevokeAccount-mzR11KJ4.js.map +0 -1
  279. package/dist/resolveRevokeAccount-yWARIv9i.js +0 -38
  280. package/dist/resolveRevokeAccount-yWARIv9i.js.map +0 -1
  281. package/dist/seedSigner-CFzMD7Rb.js +0 -66
  282. package/dist/seedSigner-CFzMD7Rb.js.map +0 -1
  283. package/dist/thirdweb-BoksPRz3.js +0 -194
  284. package/dist/thirdweb-BoksPRz3.js.map +0 -1
  285. package/dist/thirdwebAccount-C2iOcp4_.js +0 -59
  286. package/dist/thirdwebAccount-C2iOcp4_.js.map +0 -1
  287. package/dist/worker-B1PcFPLi.js +0 -69
  288. package/dist/worker-B1PcFPLi.js.map +0 -1
  289. package/dist/worker-B8gN5WTx.js +0 -69
  290. package/dist/worker-B8gN5WTx.js.map +0 -1
  291. package/dist/worker-BCG1r0AS.js +0 -69
  292. package/dist/worker-BCG1r0AS.js.map +0 -1
  293. package/dist/worker-BgErCNTb.js +0 -69
  294. package/dist/worker-BgErCNTb.js.map +0 -1
  295. package/dist/worker-C07rPV2G.js +0 -69
  296. package/dist/worker-C07rPV2G.js.map +0 -1
  297. package/dist/worker-C9Za_dlQ.js +0 -69
  298. package/dist/worker-C9Za_dlQ.js.map +0 -1
  299. package/dist/worker-CEgulQnm.js +0 -69
  300. package/dist/worker-CEgulQnm.js.map +0 -1
  301. package/dist/worker-C_TL94He.js +0 -69
  302. package/dist/worker-C_TL94He.js.map +0 -1
  303. package/dist/worker-CbtzcKG6.js +0 -69
  304. package/dist/worker-CbtzcKG6.js.map +0 -1
  305. package/dist/worker-DBC_g-3I.js +0 -69
  306. package/dist/worker-DBC_g-3I.js.map +0 -1
  307. package/dist/worker-DHUm-TeQ.js +0 -69
  308. package/dist/worker-DHUm-TeQ.js.map +0 -1
  309. package/dist/worker-DypHzXgH.js +0 -69
  310. package/dist/worker-DypHzXgH.js.map +0 -1
  311. package/dist/worker-ZL4Wg19t.js +0 -69
  312. package/dist/worker-ZL4Wg19t.js.map +0 -1
@@ -1,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
- ], v = [
69
+ ], Se = [
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
- ], y = [
94
+ ], v = [
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: v
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: v
126
+ components: Se
127
127
  }]
128
128
  }],
129
129
  outputs: [{ type: "bytes32[]" }]
@@ -178,8 +178,8 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
178
178
  }
179
179
  ]
180
180
  },
181
- ...ve
182
- ], ye = [{
181
+ ...xe
182
+ ], Ce = [{
183
183
  type: "function",
184
184
  name: "multiPublish",
185
185
  stateMutability: "payable",
@@ -262,7 +262,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
262
262
  ]
263
263
  }],
264
264
  outputs: [{ type: "bytes32[]" }]
265
- }], b = [
265
+ }], y = [
266
266
  {
267
267
  type: "function",
268
268
  name: "getEas",
@@ -300,7 +300,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
300
300
  }],
301
301
  outputs: [{ type: "bool" }]
302
302
  }
303
- ], be = [{
303
+ ], we = [{
304
304
  type: "event",
305
305
  name: "CreatedAttestation",
306
306
  inputs: [{
@@ -323,31 +323,44 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
323
323
  type: "bytes",
324
324
  indexed: !1
325
325
  }]
326
- }], x = [{
327
- type: "function",
328
- name: "getAddress",
329
- stateMutability: "view",
330
- inputs: [{
331
- name: "_adminSigner",
332
- type: "address"
333
- }, {
334
- name: "_data",
335
- type: "bytes"
336
- }],
337
- outputs: [{ type: "address" }]
338
- }, {
339
- type: "function",
340
- name: "createAccount",
341
- stateMutability: "nonpayable",
342
- inputs: [{
343
- name: "_admin",
344
- type: "address"
345
- }, {
346
- name: "_data",
347
- type: "bytes"
348
- }],
349
- outputs: [{ type: "address" }]
350
- }], xe = [{
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 = [{
351
364
  type: "event",
352
365
  name: "CreatedAttestation",
353
366
  inputs: [{
@@ -374,94 +387,8 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
374
387
  type: "bytes32",
375
388
  indexed: !1
376
389
  }]
377
- }], S = [
378
- {
379
- type: "function",
380
- name: "multiPublish",
381
- stateMutability: "payable",
382
- inputs: [{
383
- name: "requests",
384
- type: "tuple[]",
385
- components: [
386
- {
387
- name: "localId",
388
- type: "string"
389
- },
390
- {
391
- name: "seedUid",
392
- type: "bytes32"
393
- },
394
- {
395
- name: "versionUid",
396
- type: "bytes32"
397
- },
398
- {
399
- name: "seedSchemaUid",
400
- type: "bytes32"
401
- },
402
- {
403
- name: "versionSchemaUid",
404
- type: "bytes32"
405
- },
406
- {
407
- name: "seedIsRevocable",
408
- type: "bool"
409
- },
410
- {
411
- name: "listOfAttestations",
412
- type: "tuple[]",
413
- components: [{
414
- name: "schema",
415
- type: "bytes32"
416
- }, {
417
- name: "data",
418
- type: "tuple[]",
419
- components: [
420
- {
421
- name: "recipient",
422
- type: "address"
423
- },
424
- {
425
- name: "expirationTime",
426
- type: "uint64"
427
- },
428
- {
429
- name: "revocable",
430
- type: "bool"
431
- },
432
- {
433
- name: "refUID",
434
- type: "bytes32"
435
- },
436
- {
437
- name: "data",
438
- type: "bytes"
439
- },
440
- {
441
- name: "value",
442
- type: "uint256"
443
- }
444
- ]
445
- }]
446
- },
447
- {
448
- name: "propertiesToUpdate",
449
- type: "tuple[]",
450
- components: [{
451
- name: "publishIndex",
452
- type: "uint256"
453
- }, {
454
- name: "propertySchemaUid",
455
- type: "bytes32"
456
- }]
457
- }
458
- ]
459
- }],
460
- outputs: [{
461
- name: "",
462
- type: "bytes32[]"
463
- }]
464
- },
390
+ }], x = [
391
+ Ce[0],
465
392
  {
466
393
  type: "function",
467
394
  name: "isInitialized",
@@ -488,6 +415,19 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
488
415
  type: "address"
489
416
  }]
490
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
+ },
491
431
  {
492
432
  type: "error",
493
433
  name: "AlreadyInitialized",
@@ -519,7 +459,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
519
459
  name: "MultiAttestFailed",
520
460
  inputs: []
521
461
  }
522
- ], C = [
462
+ ], S = [
523
463
  {
524
464
  type: "function",
525
465
  name: "installSeedExecutor",
@@ -563,6 +503,15 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
563
503
  type: "bool"
564
504
  }]
565
505
  },
506
+ {
507
+ type: "event",
508
+ name: "SeedExecutorInstalled",
509
+ inputs: [{
510
+ name: "executor",
511
+ type: "address",
512
+ indexed: !0
513
+ }]
514
+ },
566
515
  {
567
516
  type: "error",
568
517
  name: "Unauthorized",
@@ -581,7 +530,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
581
530
  name: "SeedExecutorNotInstalled",
582
531
  inputs: []
583
532
  }
584
- ], Se = 2n, w = [{
533
+ ], Ee = 2n, C = [{
585
534
  type: "function",
586
535
  name: "getSchema",
587
536
  stateMutability: "view",
@@ -630,8 +579,81 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
630
579
  }
631
580
  ],
632
581
  outputs: [{ type: "bytes32" }]
633
- }], T = null, E = null;
634
- function Ce() {
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() {
635
657
  try {
636
658
  let e = Y().thirdwebSecretKey;
637
659
  return e ? { headers: { "x-secret-key": e } } : void 0;
@@ -639,14 +661,14 @@ function Ce() {
639
661
  return;
640
662
  }
641
663
  }
642
- function we() {
643
- let e = Q(), t = $(), n = Ce();
664
+ function Ne() {
665
+ let e = Q(), t = $(), n = Me();
644
666
  return f({
645
667
  chain: e,
646
- transport: h(t, n ? { fetchOptions: n } : void 0)
668
+ transport: g(t, n ? { fetchOptions: n } : void 0)
647
669
  });
648
670
  }
649
- function D() {
671
+ function A() {
650
672
  let e = Q(), t = $(), n = "";
651
673
  try {
652
674
  n = Y().thirdwebSecretKey ?? "";
@@ -654,26 +676,33 @@ function D() {
654
676
  n = "";
655
677
  }
656
678
  let r = `${e.id}:${t}:${n ? "1" : "0"}:${n}`;
657
- return (!T || E !== r) && (E = r, T = we()), T;
679
+ return (!O || k !== r) && (k = r, O = Ne()), O;
680
+ }
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;
658
685
  }
659
- async function O(e) {
660
- return D().waitForTransactionReceipt({ hash: 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;
661
690
  }
662
- async function k(e) {
663
- let t = await D().getBytecode({ address: e });
691
+ async function M(e) {
692
+ let t = await A().getBytecode({ address: e });
664
693
  return !!t && t !== "0x";
665
694
  }
666
- async function Te(e) {
695
+ async function Fe(e) {
667
696
  try {
668
- let t = await D().getBlock({ blockNumber: e });
697
+ let t = await A().getBlock({ blockNumber: e });
669
698
  if (t?.timestamp != null) return Number(t.timestamp) * 1e3;
670
699
  } catch {}
671
700
  return null;
672
701
  }
673
- var Ee = 5, De = 6e3;
674
- async function Oe(e, t = Ee, n = De) {
702
+ var Ie = 5, Le = 6e3;
703
+ async function Re(e, t = Ie, n = Le) {
675
704
  for (let r = 0; r < t; r++) {
676
- if (await k(e)) return !0;
705
+ if (await M(e)) return !0;
677
706
  r < t - 1 && await new Promise((e) => {
678
707
  setTimeout(e, n);
679
708
  });
@@ -682,7 +711,7 @@ async function Oe(e, t = Ee, n = De) {
682
711
  }
683
712
  //#endregion
684
713
  //#region src/helpers/contracts/index.ts
685
- function A(e) {
714
+ function ze(e) {
686
715
  let t = /* @__PURE__ */ new Map();
687
716
  return e.forEach((e, n) => {
688
717
  if (e.localId) {
@@ -699,12 +728,12 @@ function A(e) {
699
728
  };
700
729
  });
701
730
  }
702
- function ke(e, t, n) {
703
- let r = A(t);
731
+ function N(e, t, n) {
732
+ let r = ze(t);
704
733
  return {
705
734
  to: e,
706
735
  data: m({
707
- abi: ye,
736
+ abi: Ce,
708
737
  functionName: "multiPublish",
709
738
  args: [t.map((e) => ({
710
739
  localId: e.localId,
@@ -720,48 +749,30 @@ function ke(e, t, n) {
720
749
  gas: n
721
750
  };
722
751
  }
723
- function Ae(e, t, n) {
724
- let r = A(t);
725
- return {
726
- to: e,
727
- data: m({
728
- abi: S,
729
- functionName: "multiPublish",
730
- args: [t.map((e) => ({
731
- localId: e.localId,
732
- seedUid: e.seedUid,
733
- versionUid: e.versionUid,
734
- seedSchemaUid: e.seedSchemaUid,
735
- versionSchemaUid: e.versionSchemaUid,
736
- seedIsRevocable: e.seedIsRevocable,
737
- listOfAttestations: e.listOfAttestations,
738
- propertiesToUpdate: r(e)
739
- }))]
740
- }),
741
- gas: n
742
- };
752
+ function Be(e, t, n) {
753
+ return N(e, t, n);
743
754
  }
744
- async function je(e, t) {
745
- return D().readContract({
755
+ async function Ve(e, t) {
756
+ return A().readContract({
746
757
  address: e,
747
- abi: S,
758
+ abi: x,
748
759
  functionName: "isInitialized",
749
760
  args: [t]
750
761
  });
751
762
  }
752
- async function Me(e, t) {
753
- return D().readContract({
763
+ async function He(e, t) {
764
+ return A().readContract({
754
765
  address: e,
755
- abi: S,
766
+ abi: x,
756
767
  functionName: "getEAS",
757
768
  args: [t]
758
769
  });
759
770
  }
760
- async function Ne(e) {
771
+ async function Ue(e) {
761
772
  try {
762
- let [t, n] = await D().readContract({
773
+ let [t, n] = await A().readContract({
763
774
  address: e,
764
- abi: C,
775
+ abi: S,
765
776
  functionName: "getSeedExecutor"
766
777
  });
767
778
  return {
@@ -772,90 +783,111 @@ async function Ne(e) {
772
783
  return null;
773
784
  }
774
785
  }
775
- async function Pe(e, t) {
776
- return D().readContract({
786
+ async function We(e = Z()) {
787
+ let t = A(), n = await t.readContract({
777
788
  address: e,
778
- 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,
779
811
  functionName: "isModuleInstalled",
780
812
  args: [
781
- Se,
813
+ Ee,
782
814
  t,
783
815
  "0x"
784
816
  ]
785
817
  });
786
818
  }
787
- function Fe(e) {
819
+ function Ke(e) {
788
820
  return {
789
821
  to: e,
790
822
  data: m({
791
- abi: C,
823
+ abi: S,
792
824
  functionName: "installSeedExecutor"
793
825
  })
794
826
  };
795
827
  }
796
- function Ie(e, t) {
828
+ function qe(e, t) {
797
829
  return {
798
830
  to: e,
799
831
  data: m({
800
- abi: b,
832
+ abi: y,
801
833
  functionName: "setEas",
802
834
  args: [t]
803
835
  })
804
836
  };
805
837
  }
806
- async function Le(e) {
807
- return D().readContract({
838
+ async function Je(e) {
839
+ return A().readContract({
808
840
  address: e,
809
- abi: b,
841
+ abi: y,
810
842
  functionName: "getEas"
811
843
  });
812
844
  }
813
- async function Re(e, t) {
814
- return D().readContract({
845
+ async function Ye(e, t) {
846
+ return A().readContract({
815
847
  address: e,
816
- abi: b,
848
+ abi: y,
817
849
  functionName: "isActiveSigner",
818
850
  args: [t]
819
851
  });
820
852
  }
821
- async function ze(e, t) {
822
- return D().readContract({
853
+ async function Xe(e, t) {
854
+ return A().readContract({
823
855
  address: e,
824
- abi: b,
856
+ abi: y,
825
857
  functionName: "isAdmin",
826
858
  args: [t]
827
859
  });
828
860
  }
829
- async function Be(e, t = "0x") {
830
- return D().readContract({
861
+ async function Ze(e, t = "0x") {
862
+ return A().readContract({
831
863
  address: Z(),
832
- abi: x,
864
+ abi: b,
833
865
  functionName: "getAddress",
834
866
  args: [e, t]
835
867
  });
836
868
  }
837
- function Ve(e, t = "0x") {
869
+ function Qe(e, t = "0x") {
838
870
  return {
839
871
  to: Z(),
840
872
  data: m({
841
- abi: x,
873
+ abi: b,
842
874
  functionName: "createAccount",
843
875
  args: [e, t]
844
876
  })
845
877
  };
846
878
  }
847
- var He = "0x0000000000000000000000000000000000000000";
848
- function j(e) {
879
+ var $e = "0x0000000000000000000000000000000000000000";
880
+ function P(e) {
849
881
  let { easContractAddress: t } = Y();
850
882
  return {
851
883
  to: t,
852
884
  data: m({
853
- abi: y,
885
+ abi: v,
854
886
  functionName: "attest",
855
887
  args: [{
856
888
  schema: e.schema,
857
889
  data: {
858
- recipient: e.data.recipient ?? He,
890
+ recipient: e.data.recipient ?? $e,
859
891
  expirationTime: e.data.expirationTime ?? 0n,
860
892
  revocable: e.data.revocable ?? !0,
861
893
  refUID: e.data.refUID,
@@ -866,23 +898,23 @@ function j(e) {
866
898
  })
867
899
  };
868
900
  }
869
- function M(e) {
901
+ function F(e) {
870
902
  let { easContractAddress: t } = Y();
871
903
  return {
872
904
  to: t,
873
905
  data: m({
874
- abi: y,
906
+ abi: v,
875
907
  functionName: "multiAttest",
876
908
  args: [e]
877
909
  })
878
910
  };
879
911
  }
880
- function N(e) {
912
+ function et(e) {
881
913
  let { easContractAddress: t } = Y();
882
914
  return {
883
915
  to: t,
884
916
  data: m({
885
- abi: y,
917
+ abi: v,
886
918
  functionName: "multiRevoke",
887
919
  args: [e.map((e) => ({
888
920
  schema: e.schema,
@@ -894,26 +926,26 @@ function N(e) {
894
926
  })
895
927
  };
896
928
  }
897
- var Ue = "0x" + "0".repeat(64);
898
- async function We(e) {
899
- let t = await D().readContract({
929
+ var tt = "0x" + "0".repeat(64);
930
+ async function nt(e) {
931
+ let t = await A().readContract({
900
932
  address: Y().schemaRegistryAddress,
901
- abi: w,
933
+ abi: C,
902
934
  functionName: "getSchema",
903
935
  args: [e]
904
936
  });
905
- return !t || t.uid === Ue ? null : {
937
+ return !t || t.uid === tt ? null : {
906
938
  uid: t.uid,
907
939
  resolver: t.resolver,
908
940
  revocable: t.revocable,
909
941
  schema: t.schema
910
942
  };
911
943
  }
912
- function Ge(e) {
944
+ function rt(e) {
913
945
  return {
914
946
  to: Y().schemaRegistryAddress,
915
947
  data: m({
916
- abi: w,
948
+ abi: C,
917
949
  functionName: "register",
918
950
  args: [
919
951
  e.schema,
@@ -925,33 +957,33 @@ function Ge(e) {
925
957
  }
926
958
  //#endregion
927
959
  //#region src/helpers/easDirect.ts
928
- var Ke = "0x0000000000000000000000000000000000000000", P = "0x" + "0".repeat(64);
929
- function qe(e) {
930
- return j(e);
960
+ var it = "0x0000000000000000000000000000000000000000", at = "0x" + "0".repeat(64);
961
+ function ot(e) {
962
+ return P(e);
931
963
  }
932
- function Je(e) {
933
- return M(e);
964
+ function st(e) {
965
+ return F(e);
934
966
  }
935
- function Ye(e) {
967
+ function ct(e) {
936
968
  return p([{ type: "bytes32" }], [e]);
937
969
  }
938
- function Xe(e, t) {
939
- return F(e, t)[0]?.uid;
970
+ function lt(e, t) {
971
+ return ut(e, t)[0]?.uid;
940
972
  }
941
- function F(e, t) {
973
+ function ut(e, t) {
942
974
  if (!e.logs?.length) return [];
943
975
  let n = t.toLowerCase(), r = e.logs.filter((e) => e.address && e.address.toLowerCase() === n);
944
976
  if (!r.length) return [];
945
977
  try {
946
- let e = g({
947
- abi: y,
978
+ let e = re({
979
+ abi: v,
948
980
  eventName: "Attested",
949
981
  logs: r,
950
982
  strict: !1
951
983
  }), t = [];
952
984
  for (let n of e) {
953
985
  let e = n.args?.uid, r = n.args?.schemaUID;
954
- e && e !== P && r && t.push({
986
+ e && e !== at && r && t.push({
955
987
  schemaUid: r,
956
988
  uid: e
957
989
  });
@@ -961,20 +993,20 @@ function F(e, t) {
961
993
  return [];
962
994
  }
963
995
  }
964
- function I(e) {
965
- return N(e);
996
+ function dt(e) {
997
+ return et(e);
966
998
  }
967
999
  //#endregion
968
1000
  //#region src/helpers/publishWalletRegistry.ts
969
- var L = null;
970
- function Ze() {
1001
+ var I = null;
1002
+ function ft() {
971
1003
  return a.isInitialized() ? Promise.resolve() : new Promise((e) => {
972
1004
  a.onReady(() => e());
973
1005
  });
974
1006
  }
975
- async function Qe(e) {
976
- if (L = e, !e) return;
977
- await Ze();
1007
+ async function pt(e) {
1008
+ if (I = e, !e) return;
1009
+ await ft();
978
1010
  let t = /* @__PURE__ */ new Set();
979
1011
  for (let n of e.ownedAddresses ?? []) n && t.add(n.toLowerCase());
980
1012
  t.add(e.signer.address.toLowerCase()), t.add(e.txSender.address.toLowerCase()), e.publisherAddress && t.add(e.publisherAddress.toLowerCase());
@@ -986,15 +1018,15 @@ async function Qe(e) {
986
1018
  console.warn("[publishWalletRegistry] Failed to set seed client addresses:", e);
987
1019
  }
988
1020
  }
989
- function R() {
990
- return L;
1021
+ function L() {
1022
+ return I;
991
1023
  }
992
- function $e() {
993
- L = null;
1024
+ function mt() {
1025
+ I = null;
994
1026
  }
995
1027
  //#endregion
996
1028
  //#region src/helpers/retryNonceTooLow.ts
997
- function et(e) {
1029
+ function ht(e) {
998
1030
  let t = [], n = e;
999
1031
  for (let e = 0; n && e < 5; e++) {
1000
1032
  let e = n;
@@ -1002,46 +1034,46 @@ function et(e) {
1002
1034
  }
1003
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(" "));
1004
1036
  }
1005
- async function tt(e, { attempts: t = 3, delayMs: n = 1e3 } = {}) {
1037
+ async function gt(e, { attempts: t = 3, delayMs: n = 1e3 } = {}) {
1006
1038
  for (let r = 1;; r++) try {
1007
1039
  return await e();
1008
1040
  } catch (e) {
1009
- if (r >= t || !et(e)) throw e;
1041
+ if (r >= t || !ht(e)) throw e;
1010
1042
  await new Promise((e) => setTimeout(e, n));
1011
1043
  }
1012
1044
  }
1013
1045
  //#endregion
1014
1046
  //#region src/helpers/seedSigner.ts
1015
- var nt = Symbol.for("seedprotocol.SeedSigner"), rt = 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
+ }
1016
1051
  function z(e) {
1017
- return Object.assign(e, { [nt]: !0 });
1052
+ return Object.assign(e, { [vt]: !0 });
1018
1053
  }
1019
1054
  function B(e) {
1020
- return Object.assign(e, { [rt]: !0 });
1055
+ return !!e && typeof e == "object" && _t in e;
1021
1056
  }
1022
1057
  function V(e) {
1023
- return !!e && typeof e == "object" && nt in e;
1058
+ return !!e && typeof e == "object" && vt in e;
1024
1059
  }
1025
1060
  function H(e) {
1026
- return !!e && typeof e == "object" && rt in e;
1027
- }
1028
- function U(e) {
1029
- return !!e && typeof e == "object" && "signer" in e && "txSender" in e && V(e.signer) && H(e.txSender);
1061
+ return !!e && typeof e == "object" && "signer" in e && "txSender" in e && B(e.signer) && V(e.txSender);
1030
1062
  }
1031
- function it(e) {
1063
+ function yt(e) {
1032
1064
  let t = e.address;
1033
1065
  return {
1034
- signer: z({
1066
+ signer: R({
1035
1067
  address: t,
1036
1068
  signMessage: async ({ message: t }) => {
1037
1069
  if (typeof t == "string") return await e.signMessage(t);
1038
- 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);
1039
1071
  return await e.signMessage(r);
1040
1072
  }
1041
1073
  }),
1042
- txSender: B({
1074
+ txSender: z({
1043
1075
  address: t,
1044
- sendTransaction: async (t) => ({ transactionHash: (await tt(() => e.sendTransaction({
1076
+ sendTransaction: async (t) => ({ transactionHash: (await gt(() => e.sendTransaction({
1045
1077
  to: t.to,
1046
1078
  data: t.data,
1047
1079
  value: t.value,
@@ -1050,28 +1082,28 @@ function it(e) {
1050
1082
  })
1051
1083
  };
1052
1084
  }
1053
- function at(e) {
1054
- if (U(e)) return e.signer;
1055
- if (V(e)) return e;
1085
+ function bt(e) {
1086
+ if (H(e)) return e.signer;
1087
+ if (B(e)) return e;
1056
1088
  throw Error("@seedprotocol/publish: expected a SeedSigner or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1057
1089
  }
1058
- function ot(e) {
1059
- if (U(e)) return e.txSender;
1060
- if (H(e)) return e;
1090
+ function xt(e) {
1091
+ if (H(e)) return e.txSender;
1092
+ if (V(e)) return e;
1061
1093
  throw Error("@seedprotocol/publish: expected a SeedTxSender or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1062
1094
  }
1063
- function st(e) {
1064
- if (U(e)) return e;
1095
+ function St(e) {
1096
+ if (H(e)) return e;
1065
1097
  throw Error("@seedprotocol/publish: expected a PublishWallet (signer + txSender). Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
1066
1098
  }
1067
1099
  //#endregion
1068
1100
  //#region src/helpers/thirdwebChain.ts
1069
- var W = null;
1070
- function ct(e) {
1071
- let t = e ?? St() ?? {}, n = t.chain ?? _, r = t.rpcUrl?.trim() || void 0, i = `${n.id}|${r ?? ""}`;
1072
- 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;
1073
1105
  let a;
1074
- return a = n.id === se.id && !r ? se : oe({
1106
+ return a = n.id === ue.id && !r ? ue : le({
1075
1107
  id: n.id,
1076
1108
  name: n.name,
1077
1109
  nativeCurrency: n.nativeCurrency,
@@ -1082,14 +1114,14 @@ function ct(e) {
1082
1114
  apiUrl: n
1083
1115
  })) : void 0,
1084
1116
  ...r ? { rpc: r } : {}
1085
- }), W = {
1117
+ }), U = {
1086
1118
  key: i,
1087
1119
  chain: a
1088
1120
  }, a;
1089
1121
  }
1090
- var lt = /* @__PURE__ */ new Set([31337, 1337]);
1091
- function ut(e) {
1092
- if (lt.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;
1093
1125
  try {
1094
1126
  let t = new URL(e.rpc).hostname.replace(/^\[|\]$/g, "");
1095
1127
  return t === "localhost" || t === "127.0.0.1" || t === "::1" || t.endsWith(".localhost");
@@ -1098,45 +1130,79 @@ function ut(e) {
1098
1130
  }
1099
1131
  }
1100
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
1101
1148
  //#region src/helpers/adapters/thirdwebAccount.ts
1102
- var dt = /* @__PURE__ */ e({
1103
- asSeedSignerFromThirdweb: () => pt,
1104
- asThirdwebPublishWallet: () => ft,
1149
+ var Dt = /* @__PURE__ */ e({
1150
+ asSeedSignerFromThirdweb: () => kt,
1151
+ asThirdwebPublishWallet: () => Ot,
1105
1152
  fromThirdwebAccount: () => G
1106
1153
  });
1107
1154
  function G(e, t) {
1108
1155
  let n = t?.client, r = e.address;
1109
1156
  return {
1110
- signer: z({
1157
+ signer: R({
1111
1158
  address: r,
1112
1159
  signMessage: async ({ message: t }) => await e.signMessage({ message: t })
1113
1160
  }),
1114
- txSender: B({
1161
+ txSender: z({
1115
1162
  address: r,
1116
1163
  sendTransaction: async (t) => {
1117
- let r = n ?? (await import("./publishThirdwebClient-CBD9sKJR.js").then((e) => e.n)).getClient(), i = ct(), a = re({
1118
- client: r,
1119
- chain: i,
1164
+ let i = n ?? (await import("./publishThirdwebClient-CO18ST7C.js").then((e) => e.n)).getClient(), a = Ct(), o = oe({
1165
+ client: i,
1166
+ chain: a,
1120
1167
  to: t.to,
1121
1168
  data: t.data,
1122
1169
  value: t.value,
1123
1170
  gas: t.gas
1124
1171
  });
1125
- return { transactionHash: (await tt(() => ie({
1126
- account: e,
1127
- transaction: a
1128
- }))).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 };
1129
1195
  }
1130
1196
  })
1131
1197
  };
1132
1198
  }
1133
- function ft(e, t) {
1134
- if (U(e)) return e;
1135
- 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.");
1136
1202
  return G(e, t);
1137
1203
  }
1138
- function pt(e) {
1139
- 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;
1140
1206
  }
1141
1207
  //#endregion
1142
1208
  //#region src/helpers/verifyPublishChain.ts
@@ -1148,7 +1214,7 @@ var K = class extends Error {
1148
1214
  super(`@seedprotocol/publish: chain ${e} is not set up for publishing:\n- ${t.join("\n- ")}`), this.chainId = e, this.problems = t;
1149
1215
  }
1150
1216
  }, q = null;
1151
- function mt() {
1217
+ function At() {
1152
1218
  let e = Y();
1153
1219
  return [
1154
1220
  e.chain.id,
@@ -1159,12 +1225,12 @@ function mt() {
1159
1225
  e.modularAccountModuleContract ?? ""
1160
1226
  ].join("|").toLowerCase();
1161
1227
  }
1162
- async function ht() {
1228
+ async function jt() {
1163
1229
  let e = Y(), { chain: t } = e, n = [], r;
1164
1230
  try {
1165
- r = await D().getChainId();
1231
+ r = await A().getChainId();
1166
1232
  } catch (e) {
1167
- throw new K(t.id, [`could not reach the RPC (${gt($())}): ${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)}`]);
1168
1234
  }
1169
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}.`]);
1170
1236
  let i = [
@@ -1188,11 +1254,11 @@ async function ht() {
1188
1254
  e.modularAccountModuleContract?.trim() || void 0,
1189
1255
  "deploy the module or fix modularAccountModuleContract"
1190
1256
  ]
1191
- ], 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));
1192
1258
  for (let e of a) e && n.push(e);
1193
1259
  if (n.length > 0) throw new K(t.id, n);
1194
1260
  }
1195
- function gt(e) {
1261
+ function Mt(e) {
1196
1262
  try {
1197
1263
  let t = new URL(e);
1198
1264
  return `${t.protocol}//${t.host}`;
@@ -1200,10 +1266,10 @@ function gt(e) {
1200
1266
  return "configured rpcUrl";
1201
1267
  }
1202
1268
  }
1203
- function _t() {
1204
- let e = mt();
1269
+ function Nt() {
1270
+ let e = At();
1205
1271
  if (q?.key === e) return q.result;
1206
- let t = ht();
1272
+ let t = jt();
1207
1273
  return q = {
1208
1274
  key: e,
1209
1275
  result: t
@@ -1213,35 +1279,35 @@ function _t() {
1213
1279
  }
1214
1280
  //#endregion
1215
1281
  //#region src/services/revoke/revokeAttestations.ts
1216
- async function vt(e) {
1282
+ async function Pt(e) {
1217
1283
  if (!e) return !1;
1218
1284
  let t = s();
1219
1285
  if (!t) return !1;
1220
1286
  let n = await t(), r = e.toLowerCase();
1221
1287
  return !!n?.some((e) => e?.toLowerCase() === r);
1222
1288
  }
1223
- async function yt(e, t) {
1289
+ async function Ft(e, t) {
1224
1290
  if (!t || !Y().modularAccountModuleContract?.trim()) return !1;
1225
1291
  let n = e.signer?.address;
1226
1292
  if (!n || n.toLowerCase() === t.toLowerCase()) return !1;
1227
1293
  try {
1228
- let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-Bw74ZSGI.js").then((e) => e.n);
1294
+ let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-h3zOmDr5.js").then((e) => e.n);
1229
1295
  return await e(t, n);
1230
1296
  } catch {
1231
1297
  return !1;
1232
1298
  }
1233
1299
  }
1234
- async function bt(e) {
1300
+ async function It(e) {
1235
1301
  let { seedLocalId: t, seedUid: n, seedSchemaUid: a } = e;
1236
- await i(), await _t();
1302
+ await i(), await Nt();
1237
1303
  let s = await o({
1238
1304
  seedLocalId: t,
1239
1305
  seedUid: n
1240
1306
  });
1241
- if (await vt(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.");
1242
- let u = R();
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.");
1308
+ let u = L();
1243
1309
  if (!u) try {
1244
- let { getConnectedAccount: e } = await import("./publishAuthorization-BEqRnP2h.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-DJKfLlyK.js"), n = await e();
1310
+ let { getConnectedAccount: e } = await import("./publishAuthorization-DgDI4zor.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-DsNod8ti.js"), n = await e();
1245
1311
  if (!n) throw Error("No wallet connected. Connect a wallet to revoke attestations.");
1246
1312
  u = G(await t({
1247
1313
  account: n,
@@ -1251,7 +1317,7 @@ async function bt(e) {
1251
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 });
1252
1318
  }
1253
1319
  let d = u.txSender;
1254
- if (await yt(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.");
1255
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();
1256
1322
  for (let { uid: e, schemaUid: t } of f) {
1257
1323
  if (!l(e)) continue;
@@ -1272,9 +1338,9 @@ async function bt(e) {
1272
1338
  });
1273
1339
  for (let e of h) {
1274
1340
  if (e.data.length === 0) continue;
1275
- let t = I([e]);
1341
+ let t = dt([e]);
1276
1342
  try {
1277
- await O((await d.sendTransaction(t)).transactionHash);
1343
+ await j((await d.sendTransaction(t)).transactionHash);
1278
1344
  } catch (e) {
1279
1345
  let t = e instanceof Error ? e.message : String(e);
1280
1346
  if (t.includes("AccessDenied") || t.includes("0x4ca88867")) throw Error("Only the original attester can revoke attestations. Connect the wallet that published this item.");
@@ -1290,29 +1356,29 @@ async function bt(e) {
1290
1356
  }
1291
1357
  //#endregion
1292
1358
  //#region src/config.ts
1293
- le("publish");
1359
+ fe("publish");
1294
1360
  var J = null;
1295
- function xt(e) {
1361
+ function Lt(e) {
1296
1362
  J = e;
1297
1363
  }
1298
- function St() {
1364
+ function Rt() {
1299
1365
  return J;
1300
1366
  }
1301
- function Ct(e) {
1367
+ function zt(e) {
1302
1368
  let t = X(e);
1303
- ce("publish", {
1369
+ de("publish", {
1304
1370
  chainId: t.chainId,
1305
1371
  indexerUrl: t.indexerUrl
1306
- }), xt(e), d(async () => {
1307
- let e = R();
1372
+ }), Lt(e), d(async () => {
1373
+ let e = L();
1308
1374
  if (e?.publisherAddress) return e.publisherAddress;
1309
1375
  if (e?.signer?.address) return e.signer.address;
1310
- }), te(bt), import("./worker-DHUm-TeQ.js").then((e) => {
1376
+ }), te(It), import("./worker-CN7zg73B.js").then((e) => {
1311
1377
  e.startArweaveL1FinalizeWorker();
1312
1378
  }), u(async () => e.useModularExecutor && e.modularAccountModuleContract ? [e.modularAccountModuleContract] : []);
1313
1379
  }
1314
- var wt = Ct;
1315
- function Tt(e) {
1380
+ var Bt = zt;
1381
+ function Vt(e) {
1316
1382
  let t = e?.thirdweb ?? {};
1317
1383
  return {
1318
1384
  bundlerUrl: t.bundlerUrl?.trim() || void 0,
@@ -1326,7 +1392,7 @@ function Y() {
1326
1392
  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");
1327
1393
  return {
1328
1394
  ...e,
1329
- thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? fe[o.id],
1395
+ thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? he[o.id],
1330
1396
  easContractAddress: s.easContractAddress,
1331
1397
  schemaRegistryAddress: s.schemaRegistryAddress,
1332
1398
  easChain: s,
@@ -1337,16 +1403,16 @@ function Y() {
1337
1403
  arweaveUploadVerificationBaseUrl: r,
1338
1404
  arweaveGraphqlUrl: i,
1339
1405
  autoDeployManagedAccount: e.autoDeployManagedAccount ?? !1,
1340
- autoDeployEip7702ModularAccount: Et(e, a),
1406
+ autoDeployEip7702ModularAccount: Ht(e, a),
1341
1407
  chain: o,
1342
1408
  accountMode: c,
1343
- thirdweb: Tt(e)
1409
+ thirdweb: Vt(e)
1344
1410
  };
1345
1411
  }
1346
1412
  function X(e) {
1347
1413
  let t = e.chain ?? _;
1348
1414
  try {
1349
- return ue(t.id, {
1415
+ return pe(t.id, {
1350
1416
  name: t.name,
1351
1417
  easContractAddress: e.easContractAddress,
1352
1418
  schemaRegistryAddress: e.schemaRegistryAddress
@@ -1360,7 +1426,7 @@ function Z() {
1360
1426
  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.`);
1361
1427
  return e;
1362
1428
  }
1363
- function Et(e, t) {
1429
+ function Ht(e, t) {
1364
1430
  return e.autoDeployEip7702ModularAccount === !0 || e.autoDeployEip7702ModularAccount !== !1 && t;
1365
1431
  }
1366
1432
  //#endregion
@@ -1378,10 +1444,10 @@ function $() {
1378
1444
  if (e.thirdwebClientId) return `https://${(e.chain ?? _).id}.rpc.thirdweb.com/${e.thirdwebClientId}`;
1379
1445
  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.");
1380
1446
  }
1381
- function Dt() {
1447
+ function Ut() {
1382
1448
  return Q().name;
1383
1449
  }
1384
1450
  //#endregion
1385
- export { ze as $, Qe as A, j as B, B as C, H as D, V as E, F, ke as G, N as H, qe as I, Me as J, Ge as K, Je as L, P as M, Ye as N, $e as O, Xe as P, Re as Q, I as R, z as S, U as T, Ae as U, M as V, Fe as W, Be as X, je as Y, Le as Z, ct as _, _e as _t, St as a, k as at, at as b, Z as c, xe as ct, K as d, y as dt, We as et, _t as f, _ as ft, dt as g, pe as gt, G as h, fe as ht, wt as i, D as it, Ke as j, R as k, X as l, S as lt, ft as m, ge as mt, $ as n, Ne as nt, Y as o, Oe as ot, pt as p, de as pt, Ie as q, Q as r, Te as rt, Ct as s, O as st, Dt as t, Pe as tt, Tt as u, be as ut, ut as v, he as vt, it as w, ot as x, st as y, me as yt, Ve as z };
1451
+ 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 };
1386
1452
 
1387
- //# sourceMappingURL=chainConfig-CA1Hrrjg.js.map
1453
+ //# sourceMappingURL=chainConfig-DWzoOtkS.js.map