@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
package/dist/index.js CHANGED
@@ -1,24 +1,23 @@
1
- import { A as e, B as t, C as n, D as r, E as i, G as a, H as o, I as s, O as c, P as l, Q as u, R as d, S as f, T as p, V as m, Z as h, a as g, at as _, b as v, c as y, d as ee, f as te, ft as ne, gt as re, ht as ie, i as ae, it as oe, j as se, k as b, l as ce, n as le, o as x, q as ue, r as de, s as fe, st as pe, t as me, vt as S, w as he, x as ge, y as _e, yt as ve } from "./chainConfig-CYy0XJ0M.js";
2
- import { a as ye, i as be, n as xe, o as Se, r as Ce, s as we, t as Te } from "./errors-Du3LNbJN.js";
3
- import { $ as Ee, G as De, J as Oe, K as ke, Q as Ae, X as je, Y as Me, Z as Ne, _ as Pe, a as Fe, b as Ie, c as Le, et as Re, g as ze, h as C, i as Be, l as Ve, n as He, o as Ue, q as We, r as Ge, s as Ke, t as qe, v as Je, y as Ye } from "./publishAuthorization-DjVrnMC0.js";
4
- import { n as Xe, r as Ze } from "./collectBatchUids-CnIe9jUB.js";
5
- import { BaseDb as w, arweaveL1FinalizeJobs as T, isItemOwned as Qe, publishProcesses as E, uploadProcesses as $e } from "@seedprotocol/sdk";
6
- import { createPublicClient as et, createWalletClient as tt, custom as nt, defineChain as rt, http as D } from "viem";
7
- import { ethers as it } from "ethers";
8
- import { DOMAIN_OWNERSHIP_CHALLENGE_TTL_MS as at, DOMAIN_OWNERSHIP_DEFAULT_EXPIRATION_SECS as ot, DOMAIN_OWNERSHIP_METHOD as st, DOMAIN_OWNERSHIP_METHOD as ct, DOMAIN_OWNERSHIP_SCHEMA_DEF as lt, DOMAIN_OWNERSHIP_SCHEMA_DEF as O, DOMAIN_OWNERSHIP_SCHEMA_NAME as ut, DOMAIN_OWNERSHIP_SCHEMA_NAME as dt, DOMAIN_OWNERSHIP_SCOPE_REGISTRABLE as ft, EAS_CHAIN_DEPLOYMENTS as pt, PUBLISHED_BY_SCHEMA_DEF as mt, PUBLISHED_BY_SCHEMA_DEF as k, PUBLISHED_BY_SCHEMA_NAME as ht, PUBLISHED_BY_SCHEMA_NAME as gt, assessDomainOwnership as _t, buildDomainOwnershipTxtValue as vt, decodeDomainOwnershipData as yt, domainOwnershipTxtName as bt, getDomainOwnershipFromEas as xt, getEasChainDeployment as St, hashDomainOwnershipChallenge as Ct, hashDomainRegistryFingerprint as wt, hashPublishedByBatch as Tt, hashPublishedByBatch as Et, isValidEasAttestationUid as A, normalizeBytes32Hex as j, parseDomainOwnershipTxtValue as Dt } from "@seedprotocol/eas";
9
- import { useCallback as M, useEffect as N, useMemo as P, useRef as Ot, useState as F } from "react";
10
- import { jsx as I, jsxs as kt } from "react/jsx-runtime";
11
- import { SeedProvider as At, SeedProvider as jt, useLiveQuery as L } from "@seedprotocol/react";
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, H as o, I as s, M as c, Mt as l, N as u, O as d, Ot as f, R as p, S as m, T as h, Tt as g, U as _, W as v, Y as y, _t as ee, a as te, c as ne, ct as re, d as ie, dt as b, et as ae, f as oe, ft as se, gt as ce, ht as le, i as ue, j as x, jt as S, k as C, kt as de, l as fe, mt as pe, n as me, o as w, pt as he, q as ge, r as _e, s as ve, st as ye, t as be, tt as xe, vt as Se, w as Ce, x as we, yt as Te } from "./chainConfig-DWzoOtkS.js";
2
+ import { $ as Ee, C as De, J as Oe, Q as ke, X as Ae, Y as je, Z as Me, _ as Ne, a as Pe, c as Fe, et as Ie, g as Le, h as Re, i as ze, l as Be, n as Ve, nt as He, o as Ue, q as We, r as Ge, s as Ke, t as qe, tt as Je, v as Ye, w as Xe } from "./publishAuthorization-DgDI4zor.js";
3
+ import { n as Ze, r as Qe } from "./collectBatchUids-CnIe9jUB.js";
4
+ import { BaseDb as T, arweaveL1FinalizeJobs as E, isItemOwned as $e, publishProcesses as D, uploadProcesses as et } from "@seedprotocol/sdk";
5
+ import { createPublicClient as tt, createWalletClient as nt, custom as rt, defineChain as it, http as O } from "viem";
6
+ import { ethers as at } from "ethers";
7
+ import { DOMAIN_OWNERSHIP_CHALLENGE_TTL_MS as ot, DOMAIN_OWNERSHIP_DEFAULT_EXPIRATION_SECS as st, DOMAIN_OWNERSHIP_METHOD as ct, DOMAIN_OWNERSHIP_METHOD as lt, DOMAIN_OWNERSHIP_SCHEMA_DEF as ut, DOMAIN_OWNERSHIP_SCHEMA_DEF as k, DOMAIN_OWNERSHIP_SCHEMA_NAME as dt, DOMAIN_OWNERSHIP_SCHEMA_NAME as ft, DOMAIN_OWNERSHIP_SCOPE_REGISTRABLE as pt, EAS_CHAIN_DEPLOYMENTS as mt, PUBLISHED_BY_SCHEMA_DEF as ht, PUBLISHED_BY_SCHEMA_DEF as A, PUBLISHED_BY_SCHEMA_NAME as gt, PUBLISHED_BY_SCHEMA_NAME as _t, assessDomainOwnership as vt, buildDomainOwnershipTxtValue as yt, decodeDomainOwnershipData as bt, domainOwnershipTxtName as xt, getDomainOwnershipFromEas as St, getEasChainDeployment as Ct, hashDomainOwnershipChallenge as wt, hashDomainRegistryFingerprint as Tt, hashPublishedByBatch as Et, hashPublishedByBatch as Dt, isValidEasAttestationUid as j, normalizeBytes32Hex as M, parseDomainOwnershipTxtValue as Ot } from "@seedprotocol/eas";
8
+ import { useCallback as kt, useEffect as N, useMemo as P, useRef as At, useState as F } from "react";
9
+ import { jsx as I, jsxs as jt } from "react/jsx-runtime";
10
+ import { SeedProvider as Mt, SeedProvider as Nt, useLiveQuery as L } from "@seedprotocol/react";
12
11
  import { entryPoint08Address as R } from "viem/account-abstraction";
13
- import { createSmartAccountClient as Mt } from "permissionless";
14
- import { to7702SimpleSmartAccount as Nt } from "permissionless/accounts";
15
- import { createPimlicoClient as Pt } from "permissionless/clients/pimlico";
16
- import { NO_EXPIRATION as Ft, SchemaEncoder as It, SchemaRegistry as Lt, ZERO_BYTES32 as z } from "@ethereum-attestation-service/eas-sdk";
17
- import { and as Rt, desc as B, eq as V, inArray as zt, notInArray as Bt } from "drizzle-orm";
18
- import { useSelector as Vt } from "@xstate/react";
19
- import { lookup as Ht, toRegistrableDomain as Ut } from "rdapper";
12
+ import { createSmartAccountClient as Pt } from "permissionless";
13
+ import { to7702SimpleSmartAccount as Ft } from "permissionless/accounts";
14
+ import { createPimlicoClient as It } from "permissionless/clients/pimlico";
15
+ import { NO_EXPIRATION as Lt, SchemaEncoder as Rt, SchemaRegistry as zt, ZERO_BYTES32 as z } from "@ethereum-attestation-service/eas-sdk";
16
+ import { and as Bt, desc as B, eq as V, inArray as Vt, notInArray as Ht } from "drizzle-orm";
17
+ import { useSelector as Ut } from "@xstate/react";
18
+ import { lookup as Wt, toRegistrableDomain as Gt } from "rdapper";
20
19
  //#region src/helpers/seedTwin.ts
21
- function Wt(e) {
20
+ function Kt(e) {
22
21
  let t = [
23
22
  ["chainId", e?.chainId],
24
23
  ["rpcUrl", e?.rpcUrl],
@@ -30,7 +29,7 @@ function Wt(e) {
30
29
  ["contracts.seedProtocolExecutor", e?.contracts?.seedProtocolExecutor]
31
30
  ].filter(([, e]) => e == null || e === "").map(([e]) => e);
32
31
  if (t.length > 0) throw Error(`seedTwinConfig: twin.json is missing ${t.join(", ")}. Re-run twin:up.`);
33
- let n = e.forkedFrom?.chain ? ` (${e.forkedFrom.chain} fork)` : "", r = rt({
32
+ let n = e.forkedFrom?.chain ? ` (${e.forkedFrom.chain} fork)` : "", r = it({
34
33
  id: e.chainId,
35
34
  name: `Seed twin${n}`,
36
35
  nativeCurrency: {
@@ -64,7 +63,7 @@ function Wt(e) {
64
63
  }
65
64
  //#endregion
66
65
  //#region src/react/PublishModeButtons.tsx
67
- var Gt = ({ value: e, onChange: t, disabled: n = !1, "aria-label": r = "Publish mode" }) => {
66
+ var qt = ({ value: e, onChange: t, disabled: n = !1, "aria-label": r = "Publish mode" }) => {
68
67
  let i = {
69
68
  display: "inline-flex",
70
69
  gap: 8,
@@ -79,7 +78,7 @@ var Gt = ({ value: e, onChange: t, disabled: n = !1, "aria-label": r = "Publish
79
78
  cursor: n ? "not-allowed" : "pointer",
80
79
  opacity: n ? .6 : 1
81
80
  });
82
- return /* @__PURE__ */ kt("div", {
81
+ return /* @__PURE__ */ jt("div", {
83
82
  role: "group",
84
83
  "aria-label": r,
85
84
  style: i,
@@ -97,11 +96,11 @@ var Gt = ({ value: e, onChange: t, disabled: n = !1, "aria-label": r = "Publish
97
96
  children: "New version"
98
97
  })]
99
98
  });
100
- }, Kt = ({ children: e, config: t, queryClient: n, queryClientRef: r }) => (N(() => {
101
- t && fe(t);
102
- }, [t]), /* @__PURE__ */ I(Ee.Provider, {
103
- value: t ?? g(),
104
- children: /* @__PURE__ */ I(jt, {
99
+ }, Jt = ({ children: e, config: t, queryClient: n, queryClientRef: r }) => (N(() => {
100
+ t && ve(t);
101
+ }, [t]), /* @__PURE__ */ I(Je.Provider, {
102
+ value: t ?? te(),
103
+ children: /* @__PURE__ */ I(Nt, {
105
104
  queryClient: n,
106
105
  queryClientRef: r,
107
106
  children: e
@@ -109,31 +108,31 @@ var Gt = ({ value: e, onChange: t, disabled: n = !1, "aria-label": r = "Publish
109
108
  }));
110
109
  //#endregion
111
110
  //#region src/helpers/adapters/eip1193.ts
112
- async function qt(e, t = {}) {
113
- let r = t.chain ?? de(), i = t.address;
114
- if (!i) {
111
+ async function H(e, t = {}) {
112
+ let n = t.chain ?? _e(), r = t.address;
113
+ if (!r) {
115
114
  let t = await e.request({ method: "eth_requestAccounts" });
116
115
  if (!t?.[0]) throw Error("@seedprotocol/publish: EIP-1193 provider returned no accounts");
117
- i = t[0];
116
+ r = t[0];
118
117
  }
119
- let a = tt({
120
- account: i,
121
- chain: r,
122
- transport: nt(e)
118
+ let i = nt({
119
+ account: r,
120
+ chain: n,
121
+ transport: rt(e)
123
122
  });
124
123
  return {
125
- signer: f({
126
- address: i,
127
- signMessage: async ({ message: e }) => a.signMessage({
128
- account: i,
124
+ signer: Ce({
125
+ address: r,
126
+ signMessage: async ({ message: e }) => i.signMessage({
127
+ account: r,
129
128
  message: typeof e == "string" ? e : { raw: e.raw }
130
129
  })
131
130
  }),
132
- txSender: n({
133
- address: i,
134
- sendTransaction: async (e) => ({ transactionHash: await a.sendTransaction({
135
- account: i,
136
- chain: r,
131
+ txSender: h({
132
+ address: r,
133
+ sendTransaction: async (e) => ({ transactionHash: await i.sendTransaction({
134
+ account: r,
135
+ chain: n,
137
136
  to: e.to,
138
137
  data: e.data,
139
138
  value: e.value,
@@ -142,14 +141,14 @@ async function qt(e, t = {}) {
142
141
  })
143
142
  };
144
143
  }
145
- async function Jt(e = {}) {
144
+ async function Yt(e = {}) {
146
145
  let t = globalThis.ethereum;
147
146
  if (!t) throw Error("@seedprotocol/publish: window.ethereum is not available");
148
- return qt(t, e);
147
+ return H(t, e);
149
148
  }
150
149
  //#endregion
151
150
  //#region src/helpers/adapters/permissionlessTxSender.ts
152
- function Yt(e) {
151
+ function Xt(e) {
153
152
  return {
154
153
  address: e.address,
155
154
  type: "local",
@@ -164,7 +163,7 @@ function Yt(e) {
164
163
  }
165
164
  };
166
165
  }
167
- async function Xt(e) {
166
+ async function Zt(e) {
168
167
  let t;
169
168
  try {
170
169
  t = (await (await fetch(e, {
@@ -184,48 +183,48 @@ async function Xt(e) {
184
183
  let n = t.map((e) => String(e).toLowerCase());
185
184
  if (!n.includes(R.toLowerCase())) throw Error(`@seedprotocol/publish: PublishConfig.bundlerUrl (${e}) does not support EntryPoint v0.8 (it lists ${n.join(", ") || "none"}). The top-level bundlerUrl is only for the permissionless EIP-7702 sender. For Thirdweb in-app wallets (e.g. a local twin's bundler), set PublishConfig.thirdweb.bundlerUrl instead.`);
186
185
  }
187
- async function Zt(e) {
188
- let { signer: t, bundlerUrl: r, paymasterUrl: i } = e;
189
- await Xt(r);
190
- let a = de(), o = le(), s = t.address, c = et({
191
- chain: a,
192
- transport: D(o)
193
- }), l = Yt(t), u = await Nt({
194
- client: c,
195
- owner: l,
186
+ async function U(e) {
187
+ let { signer: t, bundlerUrl: n, paymasterUrl: r } = e;
188
+ await Zt(n);
189
+ let i = _e(), a = me(), o = t.address, s = tt({
190
+ chain: i,
191
+ transport: O(a)
192
+ }), c = Xt(t), l = await Ft({
193
+ client: s,
194
+ owner: c,
196
195
  entryPoint: {
197
196
  address: R,
198
197
  version: "0.8"
199
198
  }
200
- }), d = Pt({
201
- transport: D(i ?? r),
199
+ }), u = It({
200
+ transport: O(r ?? n),
202
201
  entryPoint: {
203
202
  address: R,
204
203
  version: "0.8"
205
204
  }
206
- }), f = Mt({
207
- account: u,
208
- chain: a,
209
- bundlerTransport: D(r),
210
- paymaster: d,
211
- userOperation: { estimateFeesPerGas: async () => (await d.getUserOperationGasPrice()).fast }
205
+ }), d = Pt({
206
+ account: l,
207
+ chain: i,
208
+ bundlerTransport: O(n),
209
+ paymaster: u,
210
+ userOperation: { estimateFeesPerGas: async () => (await u.getUserOperationGasPrice()).fast }
212
211
  });
213
- return n({
214
- address: u.address ?? s,
212
+ return h({
213
+ address: l.address ?? o,
215
214
  sendTransaction: async (e) => {
216
215
  let t;
217
216
  try {
218
- let n = await f.sendUserOperation({ calls: [{
217
+ let n = await d.sendUserOperation({ calls: [{
219
218
  to: e.to,
220
219
  data: e.data,
221
220
  value: e.value ?? 0n
222
221
  }] });
223
- t = await f.waitForUserOperationReceipt({ hash: n });
222
+ t = await d.waitForUserOperationReceipt({ hash: n });
224
223
  } catch (e) {
225
224
  let t = e instanceof Error ? e.message : String(e);
226
225
  throw Error(`@seedprotocol/publish: permissionless/EIP-7702 send failed (${t}). Ensure bundlerUrl/paymasterUrl support EntryPoint v0.8, or use accountMode: 'eoa' / Thirdweb adapter.`, { cause: e });
227
226
  }
228
- return { transactionHash: Qt(t, u.address) };
227
+ return { transactionHash: Qt(t, l.address) };
229
228
  }
230
229
  });
231
230
  }
@@ -233,7 +232,7 @@ function Qt(e, t) {
233
232
  let n = e.receipt.transactionHash;
234
233
  if (e.success) return n;
235
234
  let r = e.reason;
236
- throw r && !/^0x[0-9a-f]*$/i.test(r) ? new Ce(`The publish UserOp in transaction ${n} failed: ${r}`, "USEROP_REVERTED", t) : Ae({
235
+ throw r && !/^0x[0-9a-f]*$/i.test(r) ? new pe(`The publish UserOp in transaction ${n} failed: ${r}`, "USEROP_REVERTED", t) : Ie({
237
236
  txHash: n,
238
237
  revertData: r,
239
238
  sender: t
@@ -242,60 +241,60 @@ function Qt(e, t) {
242
241
  //#endregion
243
242
  //#region src/react/useSeedWallet.ts
244
243
  function $t() {
245
- let [t, n] = F(() => b()), [r, i] = F(() => b() ? "connected" : "disconnected");
244
+ let [e, n] = F(() => x()), [r, a] = F(() => x() ? "connected" : "disconnected");
246
245
  N(() => {
247
- n(b());
246
+ n(x());
248
247
  }, []);
249
- let a = M(async (t) => {
250
- i("connecting");
248
+ let o = kt(async (e) => {
249
+ a("connecting");
251
250
  try {
252
- let r;
253
- r = p(t) ? t : await qt(t);
254
- let a = x(), o = r.txSender;
255
- a.accountMode === "eip7702" && a.bundlerUrl && (o = await Zt({
256
- signer: r.signer,
257
- bundlerUrl: a.bundlerUrl,
258
- paymasterUrl: a.paymasterUrl
251
+ let t;
252
+ t = i(e) ? e : await H(e);
253
+ let r = w(), o = t.txSender;
254
+ r.accountMode === "eip7702" && r.bundlerUrl && (o = await U({
255
+ signer: t.signer,
256
+ bundlerUrl: r.bundlerUrl,
257
+ paymasterUrl: r.paymasterUrl
259
258
  }));
260
259
  let s = {
261
- signer: r.signer,
260
+ signer: t.signer,
262
261
  txSender: o,
263
- ownedAddresses: [r.signer.address, o.address],
264
- publisherAddress: r.signer.address
262
+ ownedAddresses: [t.signer.address, o.address],
263
+ publisherAddress: t.signer.address
265
264
  };
266
- return await e(s), n(s), i("connected"), s;
265
+ return await c(s), n(s), a("connected"), s;
267
266
  } catch (e) {
268
- throw i("disconnected"), e;
267
+ throw a("disconnected"), e;
269
268
  }
270
- }, []), o = M(() => {
271
- c(), n(null), i("disconnected");
269
+ }, []), s = kt(() => {
270
+ t(), n(null), a("disconnected");
272
271
  }, []);
273
272
  return {
274
- address: t?.signer.address,
275
- signer: t?.signer,
276
- txSender: t?.txSender,
273
+ address: e?.signer.address,
274
+ signer: e?.signer,
275
+ txSender: e?.txSender,
277
276
  status: r,
278
- connect: a,
279
- disconnect: o
277
+ connect: o,
278
+ disconnect: s
280
279
  };
281
280
  }
282
281
  //#endregion
283
282
  //#region src/services/publishCost/gasHeuristics.ts
284
- var H = {
283
+ var W = {
285
284
  BASE: 80000n,
286
285
  NEW_SEED: 120000n,
287
286
  NEW_VERSION: 80000n,
288
287
  ATTESTATION: 55000n
289
288
  };
290
289
  function en(e) {
291
- return H.BASE + H.NEW_SEED * BigInt(e.newSeedCount) + H.NEW_VERSION * BigInt(e.newVersionCount) + H.ATTESTATION * BigInt(e.attestationCount);
290
+ return W.BASE + W.NEW_SEED * BigInt(e.newSeedCount) + W.NEW_VERSION * BigInt(e.newVersionCount) + W.ATTESTATION * BigInt(e.attestationCount);
292
291
  }
293
292
  //#endregion
294
293
  //#region src/services/publishCost/tokenPrices.ts
295
- var tn = 6e4, U = null, W = null;
294
+ var tn = 6e4, G = null, K = null;
296
295
  function nn() {
297
296
  try {
298
- return x().getTokenPrices;
297
+ return w().getTokenPrices;
299
298
  } catch {
300
299
  return;
301
300
  }
@@ -316,38 +315,38 @@ async function an() {
316
315
  }
317
316
  async function on(e) {
318
317
  let t = Date.now();
319
- return !e?.forceRefresh && U && t - U.fetchedAt < tn ? U : (W && !e?.forceRefresh || (W = (async () => {
318
+ return !e?.forceRefresh && G && t - G.fetchedAt < tn ? G : (K && !e?.forceRefresh || (K = (async () => {
320
319
  try {
321
320
  let e = nn(), t = e ? await e() : await an(), n = {
322
321
  ethUsd: t.ethUsd,
323
322
  arUsd: t.arUsd,
324
323
  fetchedAt: Date.now()
325
324
  };
326
- return U = n, n;
325
+ return G = n, n;
327
326
  } catch (e) {
328
- if (U) return U;
327
+ if (G) return G;
329
328
  throw e;
330
329
  } finally {
331
- W = null;
330
+ K = null;
332
331
  }
333
- })()), W);
332
+ })()), K);
334
333
  }
335
334
  function sn() {
336
- U = null, W = null;
335
+ G = null, K = null;
337
336
  }
338
337
  //#endregion
339
338
  //#region src/services/publishCost/marketRates.ts
340
- var cn = 6e4, ln = 1e6, G = null, K = null;
339
+ var cn = 6e4, ln = 1e6, q = null, J = null;
341
340
  async function un() {
342
- return oe().getGasPrice();
341
+ return ye().getGasPrice();
343
342
  }
344
343
  async function dn() {
345
- let e = BigInt(await Ne().transactions.getPrice(ln));
344
+ let e = BigInt(await Ee().transactions.getPrice(ln));
346
345
  return Number(e) / ln;
347
346
  }
348
347
  async function fn(e) {
349
348
  let t = Date.now();
350
- return !e?.forceRefresh && G && t - G.fetchedAt < cn ? G : (K && !e?.forceRefresh || (K = (async () => {
349
+ return !e?.forceRefresh && q && t - q.fetchedAt < cn ? q : (J && !e?.forceRefresh || (J = (async () => {
351
350
  try {
352
351
  let [t, n, r] = await Promise.all([
353
352
  on({ forceRefresh: e?.forceRefresh }),
@@ -359,24 +358,24 @@ async function fn(e) {
359
358
  winstonPerByte: r,
360
359
  fetchedAt: Date.now()
361
360
  };
362
- return G = i, i;
361
+ return q = i, i;
363
362
  } catch (e) {
364
- if (G) return G;
363
+ if (q) return q;
365
364
  throw e;
366
365
  } finally {
367
- K = null;
366
+ J = null;
368
367
  }
369
- })()), K);
368
+ })()), J);
370
369
  }
371
370
  function pn() {
372
- G = null, K = null, sn();
371
+ q = null, J = null, sn();
373
372
  }
374
373
  //#endregion
375
374
  //#region src/services/publishCost/estimatePublishCost.ts
376
375
  var mn = 0xe8d4a51000, hn = 0xde0b6b3a7640000;
377
376
  function gn() {
378
377
  try {
379
- let e = x();
378
+ let e = w();
380
379
  return {
381
380
  evmUserPays: !e.paymasterUrl,
382
381
  arweavePath: e.useArweaveBundler ? "bundler" : "l1"
@@ -549,11 +548,11 @@ function kn(e) {
549
548
  return !e || e.status !== "done" ? !1 : e.value === S.SUCCESS || e.value === S.FAILURE;
550
549
  }
551
550
  function An(e) {
552
- let t = C.getService(), n = Vt(t, (t) => t?.context?.publishProcesses?.get(e) ?? null), r = Ot(null);
551
+ let t = Re.getService(), n = Ut(t, (t) => t?.context?.publishProcesses?.get(e) ?? null), r = At(null);
553
552
  N(() => {
554
553
  r.current = null;
555
554
  }, [e]);
556
- let [i, a] = F(void 0), [o, s] = F(null), c = w.getAppDb(), l = P(() => e && c ? c.select().from(E).where(V(E.seedLocalId, e)).orderBy(B(E.startedAt)).limit(1) : null, [c, e]), u = L(l)?.[0], d = u?.status, f = P(() => {
555
+ let [i, a] = F(void 0), [o, s] = F(null), c = T.getAppDb(), l = P(() => e && c ? c.select().from(D).where(V(D.seedLocalId, e)).orderBy(B(D.startedAt)).limit(1) : null, [c, e]), u = L(l)?.[0], d = u?.status, f = P(() => {
557
556
  if (n != null) return i;
558
557
  if (o === "success" || o === "failure") return o;
559
558
  let e = On(u);
@@ -605,13 +604,13 @@ function jn(e) {
605
604
  n(!1);
606
605
  return;
607
606
  }
608
- Qe(e).then(n).catch(() => n(!1));
607
+ $e(e).then(n).catch(() => n(!1));
609
608
  }, [e?.seedLocalId]), t;
610
609
  }
611
610
  //#endregion
612
611
  //#region src/hooks/useArweaveL1Finalize.ts
613
612
  function Mn(e) {
614
- let t = w.getAppDb(), n = P(() => e && t ? t.select().from(T).where(V(T.seedLocalId, e)).orderBy(B(T.updatedAt)) : null, [t, e]), r = L(n) ?? [];
613
+ let t = T.getAppDb(), n = P(() => e && t ? t.select().from(E).where(V(E.seedLocalId, e)).orderBy(B(E.updatedAt)) : null, [t, e]), r = L(n) ?? [];
615
614
  return P(() => {
616
615
  let e = r.filter((e) => e.phase === "pending_l1").length, t = r.filter((e) => e.phase === "confirmed").length;
617
616
  return {
@@ -625,7 +624,7 @@ function Mn(e) {
625
624
  //#endregion
626
625
  //#region src/hooks/useItemPublishStatus.ts
627
626
  function Nn(e) {
628
- let { publishProcess: t, value: n } = An(e ?? ""), r = Mn(e), i = w.getAppDb(), a = P(() => e && i ? i.select().from(E).where(V(E.seedLocalId, e)).orderBy(B(E.startedAt)).limit(1) : null, [i, e]), o = L(a)?.[0];
627
+ let { publishProcess: t, value: n } = An(e ?? ""), r = Mn(e), i = T.getAppDb(), a = P(() => e && i ? i.select().from(D).where(V(D.seedLocalId, e)).orderBy(B(D.startedAt)).limit(1) : null, [i, e]), o = L(a)?.[0];
629
628
  return {
630
629
  latestRecord: o,
631
630
  publishProcess: t,
@@ -639,12 +638,12 @@ function Nn(e) {
639
638
  //#endregion
640
639
  //#region src/hooks/usePublishProcesses.ts
641
640
  function Pn() {
642
- let e = w.getAppDb();
643
- return P(() => e ? e.select().from(E).orderBy(B(E.startedAt)) : null, [e]);
641
+ let e = T.getAppDb();
642
+ return P(() => e ? e.select().from(D).orderBy(B(D.startedAt)) : null, [e]);
644
643
  }
645
644
  function Fn(e) {
646
- let t = w.getAppDb();
647
- return P(() => t && e ? t.select().from(E).where(V(E.seedLocalId, e)).orderBy(B(E.startedAt)) : null, [t, e]);
645
+ let t = T.getAppDb();
646
+ return P(() => t && e ? t.select().from(D).where(V(D.seedLocalId, e)).orderBy(B(D.startedAt)) : null, [t, e]);
648
647
  }
649
648
  function In() {
650
649
  let e = Pn(), t = L(e);
@@ -675,7 +674,7 @@ function Vn(e) {
675
674
  return Bn(e).nonActiveCount;
676
675
  }
677
676
  function Hn(e) {
678
- let t = w.getAppDb(), n = P(() => e != null && t ? t.select().from(E).where(V(E.id, e)).limit(1) : null, [t, e]), r = L(n), i = r === void 0;
677
+ let t = T.getAppDb(), n = P(() => e != null && t ? t.select().from(D).where(V(D.id, e)).limit(1) : null, [t, e]), r = L(n), i = r === void 0;
679
678
  return {
680
679
  record: r && r.length > 0 ? r[0] : null,
681
680
  isLoading: i
@@ -684,33 +683,33 @@ function Hn(e) {
684
683
  //#endregion
685
684
  //#region src/hooks/clearCompletedPublishProcesses.ts
686
685
  async function Un() {
687
- let e = w.getAppDb();
688
- e && await e.delete(E).where(Bt(E.status, ["in_progress"]));
686
+ let e = T.getAppDb();
687
+ e && await e.delete(D).where(Ht(D.status, ["in_progress"]));
689
688
  }
690
689
  async function Wn(e) {
691
- let t = w.getAppDb();
692
- t && await t.delete(E).where(Rt(V(E.seedLocalId, e), Bt(E.status, ["in_progress"])));
690
+ let t = T.getAppDb();
691
+ t && await t.delete(D).where(Bt(V(D.seedLocalId, e), Ht(D.status, ["in_progress"])));
693
692
  }
694
693
  async function Gn() {
695
- let e = w.getAppDb();
696
- e && await e.delete(E);
694
+ let e = T.getAppDb();
695
+ e && await e.delete(D);
697
696
  }
698
697
  async function Kn() {
699
- let e = w.getAppDb();
700
- e && await e.delete($e);
698
+ let e = T.getAppDb();
699
+ e && await e.delete(et);
701
700
  }
702
701
  async function qn(e) {
703
- let t = w.getAppDb();
704
- t && await t.delete(E).where(V(E.seedLocalId, e));
702
+ let t = T.getAppDb();
703
+ t && await t.delete(D).where(V(D.seedLocalId, e));
705
704
  }
706
705
  async function Jn(e) {
707
- let t = w.getAppDb();
708
- t && await t.delete(E).where(V(E.id, e));
706
+ let t = T.getAppDb();
707
+ t && await t.delete(D).where(V(D.id, e));
709
708
  }
710
709
  async function Yn(e) {
711
710
  if (e.length === 0) return;
712
- let t = w.getAppDb();
713
- t && await t.delete(E).where(zt(E.id, e));
711
+ let t = T.getAppDb();
712
+ t && await t.delete(D).where(Vt(D.id, e));
714
713
  }
715
714
  //#endregion
716
715
  //#region src/hooks/publishProcessHelpers.ts
@@ -731,7 +730,7 @@ function Zn(e) {
731
730
  //#endregion
732
731
  //#region src/hooks/usePublishCostEstimate.ts
733
732
  function Qn(e, t) {
734
- let [n, r] = F(null), [i, a] = F(!1), [o, s] = F(!1), [c, l] = F(null), u = Ot(() => {}), d = t?.publishMode, f = t?.priceRefreshMs, p = t?.itemIdleMs;
733
+ let [n, r] = F(null), [i, a] = F(!1), [o, s] = F(!1), [c, l] = F(null), u = At(() => {}), d = t?.publishMode, f = t?.priceRefreshMs, p = t?.itemIdleMs;
735
734
  return N(() => {
736
735
  if (!e) {
737
736
  r(null), a(!1), s(!1), l(null), u.current = () => {};
@@ -754,7 +753,7 @@ function Qn(e, t) {
754
753
  isEstimating: i,
755
754
  isStale: o,
756
755
  error: c,
757
- refresh: M(() => {
756
+ refresh: kt(() => {
758
757
  u.current();
759
758
  }, [])
760
759
  };
@@ -763,24 +762,24 @@ function Qn(e, t) {
763
762
  //#region src/helpers/ensureWalletThenPublish.ts
764
763
  function $n(e) {
765
764
  if (e) {
766
- if (e instanceof it.Wallet) return e;
767
- if (p(e)) return e.signer;
768
- if (i(e)) return e;
765
+ if (e instanceof at.Wallet) return e;
766
+ if (i(e)) return e.signer;
767
+ if (d(e)) return e;
769
768
  }
770
769
  }
771
770
  async function er(e, t) {
772
- let n = x();
771
+ let n = w();
773
772
  if (n.useModularExecutor) {
774
- let { ensureSmartWalletThenPublish: n } = await import("./ensureSmartWalletThenPublish-Dta2AOyJ.js").then((e) => e.n);
773
+ let { ensureSmartWalletThenPublish: n } = await import("./ensureSmartWalletThenPublish-DuOYPJFd.js").then((e) => e.n);
775
774
  return n(e, null, async () => {
776
- let e = b();
775
+ let e = x();
777
776
  return e?.publisherAddress ?? e?.signer.address ?? null;
778
777
  }, t);
779
778
  }
780
- let r = b();
779
+ let r = x();
781
780
  if (!r) return { outcome: "no_wallet" };
782
781
  if (n.accountMode === "eip7702" && n.bundlerUrl) {
783
- let e = await Zt({
782
+ let e = await U({
784
783
  signer: r.signer,
785
784
  bundlerUrl: n.bundlerUrl,
786
785
  paymasterUrl: n.paymasterUrl
@@ -792,20 +791,20 @@ async function er(e, t) {
792
791
  };
793
792
  }
794
793
  let i = r.publisherAddress ?? r.txSender.address ?? r.signer.address;
795
- return i?.trim() ? (C.createPublish(e, i, r, {
794
+ return i?.trim() ? (Re.createPublish(e, i, r, {
796
795
  ...t,
797
796
  dataItemSigner: $n(t?.dataItemSigner) ?? r.signer
798
797
  }), { outcome: "started" }) : { outcome: "no_address" };
799
798
  }
800
799
  //#endregion
801
800
  //#region src/services/domainOwnership/registry.ts
802
- function q(e) {
803
- let t = Ut(e);
801
+ function Y(e) {
802
+ let t = Gt(e);
804
803
  if (!t) throw Error(`@seedprotocol/publish: unable to resolve registrable domain for "${e}"`);
805
804
  return t.toLowerCase();
806
805
  }
807
- async function J(e) {
808
- let t = q(e), n = await Ht(t);
806
+ async function tr(e) {
807
+ let t = Y(e), n = await Wt(t);
809
808
  if (!n.ok || !n.record) return null;
810
809
  let r = n.record;
811
810
  return {
@@ -819,8 +818,8 @@ async function J(e) {
819
818
  isRegistered: r.isRegistered
820
819
  };
821
820
  }
822
- function tr(e) {
823
- return wt({
821
+ function nr(e) {
822
+ return Tt({
824
823
  domain: e.domain,
825
824
  creationDate: e.creationDate ?? "",
826
825
  registrarIanaId: e.registrarIanaId ?? ""
@@ -828,36 +827,36 @@ function tr(e) {
828
827
  }
829
828
  //#endregion
830
829
  //#region src/services/domainOwnership/challenge.ts
831
- function nr(e) {
830
+ function rr(e) {
832
831
  let t = new Uint8Array(e);
833
832
  return crypto.getRandomValues(t), t;
834
833
  }
835
- function rr(e) {
834
+ function ir(e) {
836
835
  let t = "";
837
836
  for (let n of e) t += String.fromCharCode(n);
838
837
  return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
839
838
  }
840
- function ir(e) {
841
- let t = e.normalizeRegistrable === !1 ? e.domain.trim().toLowerCase().replace(/\.$/, "") : q(e.domain);
839
+ function ar(e) {
840
+ let t = e.normalizeRegistrable === !1 ? e.domain.trim().toLowerCase().replace(/\.$/, "") : Y(e.domain);
842
841
  if (!t || t.includes(" ")) throw Error("@seedprotocol/publish: createDomainOwnershipChallenge requires a valid domain");
843
842
  let n = e.claimer.trim();
844
843
  if (!/^0x[0-9a-fA-F]{40}$/.test(n)) throw Error("@seedprotocol/publish: createDomainOwnershipChallenge requires a 20-byte hex claimer address");
845
- let r = e.scope ?? ft, i = e.ttlMs ?? at, a = e.now ?? Date.now(), o = new Date(a + i).toISOString(), s = rr(nr(32)), c = Ct({
844
+ let r = e.scope ?? pt, i = e.ttlMs ?? ot, a = e.now ?? Date.now(), o = new Date(a + i).toISOString(), s = ir(rr(32)), c = wt({
846
845
  domain: t,
847
846
  claimer: n,
848
847
  token: s,
849
848
  scope: r
850
- }), l = bt(t), u = vt({
849
+ }), l = xt(t), u = yt({
851
850
  token: s,
852
851
  claimer: n,
853
852
  expiry: o
854
853
  });
855
854
  return {
856
- challengeId: rr(nr(16)),
855
+ challengeId: ir(rr(16)),
857
856
  domain: t,
858
857
  claimer: n,
859
858
  scope: r,
860
- method: ct,
859
+ method: lt,
861
860
  token: s,
862
861
  txtName: l,
863
862
  txtValue: u,
@@ -868,14 +867,14 @@ function ir(e) {
868
867
  }
869
868
  //#endregion
870
869
  //#region src/services/domainOwnership/dnsVerify.ts
871
- async function ar(e) {
870
+ async function or(e) {
872
871
  let { promises: t } = await import("node:dns");
873
872
  return {
874
873
  source: "node:dns",
875
874
  values: (await t.resolveTxt(e)).map((e) => e.join(""))
876
875
  };
877
876
  }
878
- async function or(e, t, n) {
877
+ async function sr(e, t, n) {
879
878
  let r = `${n}?name=${encodeURIComponent(e)}&type=TXT`, i = await fetch(r, { headers: { accept: "application/dns-json" } });
880
879
  if (!i.ok) throw Error(`DoH ${t} HTTP ${i.status}`);
881
880
  let a = await i.json();
@@ -885,20 +884,20 @@ async function or(e, t, n) {
885
884
  dnssecAuthenticated: !!a.AD
886
885
  };
887
886
  }
888
- function sr() {
889
- let e = [(e) => or(e, "cloudflare-doh", "https://cloudflare-dns.com/dns-query"), (e) => or(e, "google-doh", "https://dns.google/resolve")];
890
- return typeof document > "u" && e.unshift((e) => ar(e)), e;
887
+ function cr() {
888
+ let e = [(e) => sr(e, "cloudflare-doh", "https://cloudflare-dns.com/dns-query"), (e) => sr(e, "google-doh", "https://dns.google/resolve")];
889
+ return typeof document > "u" && e.unshift((e) => or(e)), e;
891
890
  }
892
- function cr(e, t) {
893
- let n = Dt(t);
891
+ function lr(e, t) {
892
+ let n = Ot(t);
894
893
  for (let r of e) {
895
894
  if (r === t || r.replace(/^"|"$/g, "") === t) return !0;
896
- let e = Dt(r);
895
+ let e = Ot(r);
897
896
  if (n && e && e.token === n.token && e.claimer === n.claimer) return !0;
898
897
  }
899
898
  return !1;
900
899
  }
901
- async function lr(e, t) {
900
+ async function ur(e, t) {
902
901
  let n = t?.now ?? Date.now();
903
902
  if (Date.parse(e.expiresAt) <= n) return {
904
903
  ok: !1,
@@ -906,7 +905,7 @@ async function lr(e, t) {
906
905
  lookups: [],
907
906
  error: "Challenge expired"
908
907
  };
909
- let r = vt({
908
+ let r = yt({
910
909
  token: e.token,
911
910
  claimer: e.claimer,
912
911
  expiry: e.expiresAt
@@ -917,11 +916,11 @@ async function lr(e, t) {
917
916
  lookups: [],
918
917
  error: "Challenge txtValue does not match token/claimer/expiry"
919
918
  };
920
- let i = t?.lookups ?? sr(), a = t?.quorum ?? 2, o = [], s = [], c = !1;
919
+ let i = t?.lookups ?? cr(), a = t?.quorum ?? 2, o = [], s = [], c = !1;
921
920
  await Promise.all(i.map(async (t) => {
922
921
  try {
923
922
  let n = await t(e.txtName);
924
- o.push(n), cr(n.values, r) && (s.push(n.source), n.dnssecAuthenticated && (c = !0));
923
+ o.push(n), lr(n.values, r) && (s.push(n.source), n.dnssecAuthenticated && (c = !0));
925
924
  } catch {
926
925
  o.push({
927
926
  source: "error",
@@ -939,32 +938,32 @@ async function lr(e, t) {
939
938
  }
940
939
  //#endregion
941
940
  //#region src/services/domainOwnership/index.ts
942
- var ur = "0x0000000000000000000000000000000000000000", dr = !0;
943
- function fr(e) {
944
- if (p(e)) return e.txSender;
945
- if (r(e)) return e;
941
+ var dr = "0x0000000000000000000000000000000000000000", fr = !0;
942
+ function pr(e) {
943
+ if (i(e)) return e.txSender;
944
+ if (C(e)) return e;
946
945
  throw Error("@seedprotocol/publish: domain ownership write APIs require a PublishWallet or SeedTxSender");
947
946
  }
948
- async function Y(e, t) {
947
+ async function X(e, t) {
949
948
  let n = await e.sendTransaction(t);
950
- return pe(n.transactionHash);
951
- }
952
- function X() {
953
- return Lt.getSchemaUID(O, ur, dr);
954
- }
955
- async function pr(e) {
956
- let t = fr(e), n = X();
957
- return await Me(n) || (await Y(t, je({
958
- schema: O,
959
- resolverAddress: ur,
960
- revocable: dr
961
- })), await Y(t, Oe({
949
+ return b(n.transactionHash);
950
+ }
951
+ function Z() {
952
+ return zt.getSchemaUID(k, dr, fr);
953
+ }
954
+ async function mr(e) {
955
+ let t = pr(e), n = Z();
956
+ return await Me(n) || (await X(t, ke({
957
+ schema: k,
958
+ resolverAddress: dr,
959
+ revocable: fr
960
+ })), await X(t, Ae({
962
961
  schemaUid: n,
963
- schemaName: dt
962
+ schemaName: ft
964
963
  }))), n;
965
964
  }
966
- function mr(e) {
967
- return new It(O).encodeData([
965
+ function hr(e) {
966
+ return new Rt(k).encodeData([
968
967
  {
969
968
  name: "domain",
970
969
  value: e.domain,
@@ -982,7 +981,7 @@ function mr(e) {
982
981
  },
983
982
  {
984
983
  name: "challengeHash",
985
- value: j(e.challengeHash),
984
+ value: M(e.challengeHash),
986
985
  type: "bytes32"
987
986
  },
988
987
  {
@@ -1002,7 +1001,7 @@ function mr(e) {
1002
1001
  },
1003
1002
  {
1004
1003
  name: "registryFingerprint",
1005
- value: j(e.registryFingerprint),
1004
+ value: M(e.registryFingerprint),
1006
1005
  type: "bytes32"
1007
1006
  },
1008
1007
  {
@@ -1012,38 +1011,38 @@ function mr(e) {
1012
1011
  }
1013
1012
  ]);
1014
1013
  }
1015
- function hr(e) {
1014
+ function gr(e) {
1016
1015
  if (typeof e.override == "number" && e.override > 0) return e.override;
1017
1016
  if (e.registryExpirationDate) {
1018
1017
  let t = Date.parse(e.registryExpirationDate);
1019
1018
  if (Number.isFinite(t) && t > 0) return Math.floor(t / 1e3);
1020
1019
  }
1021
- return e.verifiedAt + ot;
1020
+ return e.verifiedAt + st;
1022
1021
  }
1023
- async function gr(e) {
1024
- let t = fr(e.wallet), n = e.ensureSchema === !1 ? X() : await pr(e.wallet), r = q(e.domain), i = e.claimer.trim();
1022
+ async function _r(e) {
1023
+ let t = pr(e.wallet), n = e.ensureSchema === !1 ? Z() : await mr(e.wallet), r = Y(e.domain), i = e.claimer.trim();
1025
1024
  if (!/^0x[0-9a-fA-F]{40}$/.test(i)) throw Error("@seedprotocol/publish: attestDomainOwnership requires a valid claimer address");
1026
- let a = j(e.challengeHash);
1025
+ let a = M(e.challengeHash);
1027
1026
  if (a === z) throw Error("@seedprotocol/publish: attestDomainOwnership requires a non-zero challengeHash");
1028
- let o = e.verifiedAt ?? Math.floor(Date.now() / 1e3), c = tr({
1027
+ let o = e.verifiedAt ?? Math.floor(Date.now() / 1e3), c = nr({
1029
1028
  domain: r,
1030
1029
  creationDate: e.registrySnapshot.creationDate ?? "",
1031
1030
  registrarIanaId: e.registrySnapshot.registrarIanaId ?? ""
1032
- }), u = e.registrySnapshot.creationDate ?? "", d = e.registrySnapshot.expirationDate ?? "", f = e.scope ?? ft, p = e.method ?? ct, m = hr({
1031
+ }), l = e.registrySnapshot.creationDate ?? "", u = e.registrySnapshot.expirationDate ?? "", d = e.scope ?? pt, f = e.method ?? lt, m = gr({
1033
1032
  verifiedAt: o,
1034
- registryExpirationDate: d,
1033
+ registryExpirationDate: u,
1035
1034
  override: e.expirationTime
1036
- }), h = mr({
1035
+ }), h = hr({
1037
1036
  domain: r,
1038
1037
  claimer: i,
1039
- method: p,
1038
+ method: f,
1040
1039
  challengeHash: a,
1041
1040
  verifiedAt: o,
1042
- registryCreationDate: u,
1043
- registryExpirationDate: d,
1041
+ registryCreationDate: l,
1042
+ registryExpirationDate: u,
1044
1043
  registryFingerprint: c,
1045
- scope: f
1046
- }), g = await Y(t, s({
1044
+ scope: d
1045
+ }), g = await X(t, p({
1047
1046
  schema: n,
1048
1047
  data: {
1049
1048
  recipient: i,
@@ -1055,8 +1054,8 @@ async function gr(e) {
1055
1054
  }
1056
1055
  }));
1057
1056
  if (!g) throw Error("@seedprotocol/publish: attestDomainOwnership failed — no receipt");
1058
- let { easContractAddress: _ } = x(), v = l(g, _);
1059
- if (!v || !A(v)) throw Error("@seedprotocol/publish: attestDomainOwnership failed — could not parse attestation UID");
1057
+ let { easContractAddress: _ } = w(), v = s(g, _);
1058
+ if (!v || !j(v)) throw Error("@seedprotocol/publish: attestDomainOwnership failed — could not parse attestation UID");
1060
1059
  return {
1061
1060
  uid: v,
1062
1061
  schemaUid: n,
@@ -1066,22 +1065,22 @@ async function gr(e) {
1066
1065
  expirationTime: m
1067
1066
  };
1068
1067
  }
1069
- async function _r(e) {
1070
- let t = fr(e.wallet), n = e.schemaUid ?? X(), r = j(e.uid);
1071
- if (!A(r)) throw Error("@seedprotocol/publish: revokeDomainOwnership requires a valid attestation uid");
1072
- if (!await Y(t, d([{
1073
- schema: n,
1074
- data: [{ uid: r }]
1068
+ async function vr(e) {
1069
+ let t = pr(e.wallet), r = e.schemaUid ?? Z(), i = M(e.uid);
1070
+ if (!j(i)) throw Error("@seedprotocol/publish: revokeDomainOwnership requires a valid attestation uid");
1071
+ if (!await X(t, n([{
1072
+ schema: r,
1073
+ data: [{ uid: i }]
1075
1074
  }]))) throw Error("@seedprotocol/publish: revokeDomainOwnership failed — no receipt");
1076
1075
  }
1077
- async function vr(e) {
1078
- let { challenge: t } = e, n = Ct({
1076
+ async function yr(e) {
1077
+ let { challenge: t } = e, n = wt({
1079
1078
  domain: t.domain,
1080
1079
  claimer: t.claimer,
1081
1080
  token: t.token,
1082
1081
  scope: t.scope
1083
1082
  });
1084
- if (j(n) !== j(t.challengeHash)) return {
1083
+ if (M(n) !== M(t.challengeHash)) return {
1085
1084
  ok: !1,
1086
1085
  dns: {
1087
1086
  ok: !1,
@@ -1093,7 +1092,7 @@ async function vr(e) {
1093
1092
  challengeHash: n,
1094
1093
  error: "Challenge hash does not match domain/claimer/token/scope"
1095
1094
  };
1096
- let r = await lr(t, {
1095
+ let r = await ur(t, {
1097
1096
  lookups: e.dnsLookups,
1098
1097
  now: e.now
1099
1098
  });
@@ -1104,7 +1103,7 @@ async function vr(e) {
1104
1103
  challengeHash: n,
1105
1104
  error: r.error ?? "DNS verification failed"
1106
1105
  };
1107
- let i = e.registryLookup ?? J, a;
1106
+ let i = e.registryLookup ?? tr, a;
1108
1107
  try {
1109
1108
  a = await i(t.domain);
1110
1109
  } catch {
@@ -1123,8 +1122,8 @@ async function vr(e) {
1123
1122
  error: "Registry lookup failed"
1124
1123
  };
1125
1124
  }
1126
- async function yr(e) {
1127
- let t = await vr({
1125
+ async function br(e) {
1126
+ let t = await yr({
1128
1127
  challenge: e.challenge,
1129
1128
  dnsLookups: e.dnsLookups,
1130
1129
  registryLookup: e.registryLookup,
@@ -1132,7 +1131,7 @@ async function yr(e) {
1132
1131
  });
1133
1132
  if (!t.ok || !t.registrySnapshot) throw Error(`@seedprotocol/publish: verifyAndAttestDomainOwnership failed — ${t.error ?? "verification failed"}`);
1134
1133
  return {
1135
- ...await gr({
1134
+ ...await _r({
1136
1135
  wallet: e.wallet,
1137
1136
  domain: e.challenge.domain,
1138
1137
  claimer: e.challenge.claimer,
@@ -1146,21 +1145,21 @@ async function yr(e) {
1146
1145
  dns: t.dns
1147
1146
  };
1148
1147
  }
1149
- async function br(e) {
1150
- let t = (await xt({
1148
+ async function xr(e) {
1149
+ let t = (await St({
1151
1150
  toolAddresses: e.toolAddresses,
1152
1151
  schemaUid: e.schemaUid,
1153
1152
  excludeRevoked: !0
1154
- })).find((t) => j(t.id) === j(e.uid));
1153
+ })).find((t) => M(t.id) === M(e.uid));
1155
1154
  if (!t) throw Error("@seedprotocol/publish: assessDomainOwnershipLive could not find attestation for uid/toolAddresses");
1156
- let n = yt(t.decodedDataJson ?? "[]"), r = e.registryLookup ?? J, i;
1155
+ let n = bt(t.decodedDataJson ?? "[]"), r = e.registryLookup ?? tr, i;
1157
1156
  try {
1158
1157
  i = await r(n.domain);
1159
1158
  } catch {
1160
1159
  i = null;
1161
1160
  }
1162
1161
  return {
1163
- ..._t({
1162
+ ...vt({
1164
1163
  decoded: n,
1165
1164
  registrySnapshot: i,
1166
1165
  now: e.now
@@ -1172,50 +1171,50 @@ async function br(e) {
1172
1171
  }
1173
1172
  //#endregion
1174
1173
  //#region src/services/publishedBy/index.ts
1175
- var xr = "0x0000000000000000000000000000000000000000", Sr = !0;
1176
- function Z(e) {
1177
- if (p(e)) return e.txSender;
1178
- if (r(e)) return e;
1174
+ var Sr = "0x0000000000000000000000000000000000000000", Cr = !0;
1175
+ function wr(e) {
1176
+ if (i(e)) return e.txSender;
1177
+ if (C(e)) return e;
1179
1178
  throw Error("@seedprotocol/publish: attestPublishedBy / revokePublishedBy require a PublishWallet or SeedTxSender");
1180
1179
  }
1181
1180
  async function Q(e, t) {
1182
1181
  let n = await e.sendTransaction(t);
1183
- return pe(n.transactionHash);
1182
+ return b(n.transactionHash);
1184
1183
  }
1185
1184
  function $() {
1186
- return Lt.getSchemaUID(k, xr, Sr);
1185
+ return zt.getSchemaUID(A, Sr, Cr);
1187
1186
  }
1188
- async function Cr(e) {
1189
- let t = Z(e), n = $();
1190
- return await Me(n) || (await Q(t, je({
1191
- schema: k,
1192
- resolverAddress: xr,
1193
- revocable: Sr
1194
- })), await Q(t, Oe({
1187
+ async function Tr(e) {
1188
+ let t = wr(e), n = $();
1189
+ return await Me(n) || (await Q(t, ke({
1190
+ schema: A,
1191
+ resolverAddress: Sr,
1192
+ revocable: Cr
1193
+ })), await Q(t, Ae({
1195
1194
  schemaUid: n,
1196
- schemaName: gt
1195
+ schemaName: _t
1197
1196
  }))), n;
1198
1197
  }
1199
- function wr(e) {
1200
- return new It(k).encodeData([
1198
+ function Er(e) {
1199
+ return new Rt(A).encodeData([
1201
1200
  {
1202
1201
  name: "seedUid",
1203
- value: j(e.seedUid),
1202
+ value: M(e.seedUid),
1204
1203
  type: "bytes32"
1205
1204
  },
1206
1205
  {
1207
1206
  name: "versionUid",
1208
- value: j(e.versionUid || z),
1207
+ value: M(e.versionUid || z),
1209
1208
  type: "bytes32"
1210
1209
  },
1211
1210
  {
1212
1211
  name: "attestationUids",
1213
- value: e.attestationUids.map((e) => j(e)),
1212
+ value: e.attestationUids.map((e) => M(e)),
1214
1213
  type: "bytes32[]"
1215
1214
  },
1216
1215
  {
1217
1216
  name: "batchHash",
1218
- value: j(e.batchHash),
1217
+ value: M(e.batchHash),
1219
1218
  type: "bytes32"
1220
1219
  },
1221
1220
  {
@@ -1230,27 +1229,27 @@ function wr(e) {
1230
1229
  }
1231
1230
  ]);
1232
1231
  }
1233
- async function Tr(e) {
1234
- let t = Z(e.wallet), n = e.ensureSchema === !1 ? $() : await Cr(e.wallet), r = [], i;
1235
- if (e.mode === "uids") r = e.attestationUids.map((e) => j(e)).filter((e) => A(e)), i = e.batchHash ? j(e.batchHash) : Et(r);
1232
+ async function Dr(e) {
1233
+ let t = wr(e.wallet), n = e.ensureSchema === !1 ? $() : await Tr(e.wallet), r = [], i;
1234
+ if (e.mode === "uids") r = e.attestationUids.map((e) => M(e)).filter((e) => j(e)), i = e.batchHash ? M(e.batchHash) : Dt(r);
1236
1235
  else {
1237
1236
  if (!e.batchHash) throw Error("@seedprotocol/publish: attestPublishedBy hash mode requires batchHash");
1238
- if (i = j(e.batchHash), i === z) throw Error("@seedprotocol/publish: attestPublishedBy hash mode requires a non-zero batchHash");
1237
+ if (i = M(e.batchHash), i === z) throw Error("@seedprotocol/publish: attestPublishedBy hash mode requires a non-zero batchHash");
1239
1238
  }
1240
- let a = j(e.seedUid);
1241
- if (!A(a)) throw Error("@seedprotocol/publish: attestPublishedBy requires a valid seedUid");
1242
- let o = wr({
1239
+ let a = M(e.seedUid);
1240
+ if (!j(a)) throw Error("@seedprotocol/publish: attestPublishedBy requires a valid seedUid");
1241
+ let o = Er({
1243
1242
  seedUid: a,
1244
- versionUid: j(e.versionUid ?? z),
1243
+ versionUid: M(e.versionUid ?? z),
1245
1244
  attestationUids: r,
1246
1245
  batchHash: i,
1247
1246
  toolName: e.toolName,
1248
1247
  toolVersion: e.toolVersion
1249
- }), c = await Q(t, s({
1248
+ }), c = await Q(t, p({
1250
1249
  schema: n,
1251
1250
  data: {
1252
- recipient: se,
1253
- expirationTime: BigInt(Ft),
1251
+ recipient: u,
1252
+ expirationTime: BigInt(Lt),
1254
1253
  revocable: !0,
1255
1254
  refUID: a,
1256
1255
  data: o,
@@ -1258,8 +1257,8 @@ async function Tr(e) {
1258
1257
  }
1259
1258
  }));
1260
1259
  if (!c) throw Error("@seedprotocol/publish: attestPublishedBy failed — no receipt");
1261
- let { easContractAddress: u } = x(), d = l(c, u);
1262
- if (!d || !A(d)) throw Error("@seedprotocol/publish: attestPublishedBy failed — could not parse attestation UID");
1260
+ let { easContractAddress: l } = w(), d = s(c, l);
1261
+ if (!d || !j(d)) throw Error("@seedprotocol/publish: attestPublishedBy failed — could not parse attestation UID");
1263
1262
  return {
1264
1263
  uid: d,
1265
1264
  schemaUid: n,
@@ -1267,15 +1266,15 @@ async function Tr(e) {
1267
1266
  attestationUids: r
1268
1267
  };
1269
1268
  }
1270
- async function Er(e) {
1271
- let t = Z(e.wallet), n = e.schemaUid ?? $(), r = j(e.uid);
1272
- if (!A(r)) throw Error("@seedprotocol/publish: revokePublishedBy requires a valid attestation uid");
1273
- if (!await Q(t, d([{
1274
- schema: n,
1275
- data: [{ uid: r }]
1269
+ async function Or(e) {
1270
+ let t = wr(e.wallet), r = e.schemaUid ?? $(), i = M(e.uid);
1271
+ if (!j(i)) throw Error("@seedprotocol/publish: revokePublishedBy requires a valid attestation uid");
1272
+ if (!await Q(t, n([{
1273
+ schema: r,
1274
+ data: [{ uid: i }]
1276
1275
  }]))) throw Error("@seedprotocol/publish: revokePublishedBy failed — no receipt");
1277
1276
  }
1278
1277
  //#endregion
1279
- export { Te as AttestationVerificationError, ne as DEFAULT_PUBLISH_CHAIN, st as DOMAIN_OWNERSHIP_METHOD, lt as DOMAIN_OWNERSHIP_SCHEMA_DEF, ut as DOMAIN_OWNERSHIP_SCHEMA_NAME, pt as EAS_CHAIN_DEPLOYMENTS, xe as Eip7702ModularAccountPublishError, ie as MANAGED_ACCOUNT_FACTORY_ADDRESSES, re as MULTI_PUBLISH_ABI_REFERENCE_ADDRESS_OP_SEPOLIA, Ce as ManagedAccountPublishError, mt as PUBLISHED_BY_SCHEMA_DEF, ht as PUBLISHED_BY_SCHEMA_NAME, qe as PUBLISH_AUTHORIZATION_SCHEMA_DEF, He as PUBLISH_AUTHORIZATION_SCHEMA_NAME, Ge as PUBLISH_AUTHORIZATION_SCOPES, H as PUBLISH_GAS_HEURISTICS, ee as PublishChainConfigError, C as PublishManager, Gt as PublishModeButtons, Kt as PublishProvider, ve as SEED_PROTOCOL_CONTRACT_ADDRESS_OP_SEPOLIA, At as SeedProvider, _e as asPublishWallet, v as asSeedSigner, ge as asSeedTxSender, Ye as assertExecutorModuleReadyForAccount, Pe as assertManagedAccountEasMatchesConfig, br as assessDomainOwnershipLive, Be as assessPublishAuthorizationLive, gr as attestDomainOwnership, Fe as attestPublishAuthorization, Tr as attestPublishedBy, De as buildPublishAnchorBytes, Gn as clearAllPublishProcesses, Kn as clearAllUploadProcesses, Un as clearCompletedPublishProcesses, Wn as clearCompletedPublishProcessesForSeed, c as clearPublishWallet, Xe as collectPublishedBatch, vn as combinePublishCostEstimate, ae as configurePublish, ir as createDomainOwnershipChallenge, Zt as createPermissionlessTxSender, Jn as deletePublishProcessById, Yn as deletePublishProcessesByIds, qn as deletePublishProcessesForSeed, mr as encodeDomainOwnershipAttestationData, t as encodeEasAttest, m as encodeEasMultiAttest, o as encodeEasMultiRevoke, a as encodeMultiPublish, Ue as encodePublishAuthorizationAttestationData, wr as encodePublishedByAttestationData, ue as encodeSetEas, pr as ensureDomainOwnershipSchema, We as ensureEasSchemasForItem, Je as ensureManagedAccountEasConfigured, Ke as ensurePublishAuthorizationSchema, Cr as ensurePublishedBySchema, er as ensureWalletThenPublish, yn as estimatePublishCost, tr as fingerprintFromRegistrySnapshot, qt as fromEip1193Provider, he as fromEthersWallet, Jt as fromWindowEthereum, Ne as getArweave, Xn as getArweaveTransactionIds, fn as getCachedMarketRates, on as getCachedTokenPrices, En as getDisplayStepId, X as getDomainOwnershipSchemaUid, St as getEasChainDeployment, Zn as getEasPayload, Le as getPublishAuthorizationSchemaUid, me as getPublishChainName, x as getPublishConfig, On as getPublishMachineValueForUi, oe as getPublishPublicClient, b as getPublishWallet, $ as getPublishedBySchemaUid, Tt as hashPublishedByBatch, en as heuristicPublishGas, fe as initPublish, _ as isContractDeployed, be as isEip7702ModularAccountPublishError, ye as isManagedAccountPublishError, p as isPublishWallet, Se as isRouterNonModularCoreAccountError, i as isSeedSigner, r as isSeedTxSender, J as lookupDomainRegistry, q as normalizeRegistrableDomain, ze as publishMachine, h as readGetEas, u as readIsActiveSigner, y as requireManagedAccountFactoryAddress, pn as resetMarketRateCache, sn as resetTokenPriceCache, Dn as resolvePublishDisplayValue, ce as resolvePublishEasChain, _r as revokeDomainOwnership, Ve as revokePublishAuthorization, Er as revokePublishedBy, Wt as seedTwinConfig, e as setPublishWallet, Ie as simulateCallFromAccount, we as stringifyUnderlyingCause, Ze as uidsFromAttestationPairs, Mn as useArweaveL1Finalize, jn as useCanPublishItem, Nn as useItemPublishStatus, Re as usePublishConfig, Qn as usePublishCostEstimate, An as usePublishProcess, Hn as usePublishProcessById, Ln as usePublishProcesses, zn as usePublishProcessesForSeed, Rn as usePublishProcessesNonActiveCount, Vn as usePublishProcessesNonActiveCountForSeed, In as usePublishProcessesState, Bn as usePublishProcessesStateForSeed, $t as useSeedWallet, yr as verifyAndAttestDomainOwnership, ke as verifyDataItem, vr as verifyDomainOwnershipChallenge, lr as verifyDomainOwnershipDns, te as verifyPublishChain, pe as waitForPublishReceipt, Tn as watchPublishCost };
1278
+ export { se as AttestationVerificationError, g as DEFAULT_PUBLISH_CHAIN, ct as DOMAIN_OWNERSHIP_METHOD, ut as DOMAIN_OWNERSHIP_SCHEMA_DEF, dt as DOMAIN_OWNERSHIP_SCHEMA_NAME, mt as EAS_CHAIN_DEPLOYMENTS, he as Eip7702ModularAccountPublishError, f as MANAGED_ACCOUNT_FACTORY_ADDRESSES, de as MULTI_PUBLISH_ABI_REFERENCE_ADDRESS_OP_SEPOLIA, pe as ManagedAccountPublishError, ht as PUBLISHED_BY_SCHEMA_DEF, gt as PUBLISHED_BY_SCHEMA_NAME, qe as PUBLISH_AUTHORIZATION_SCHEMA_DEF, Ve as PUBLISH_AUTHORIZATION_SCHEMA_NAME, Ge as PUBLISH_AUTHORIZATION_SCOPES, W as PUBLISH_GAS_HEURISTICS, ie as PublishChainConfigError, Re as PublishManager, qt as PublishModeButtons, Jt as PublishProvider, le as PublishTransactionRevertedError, l as SEED_PROTOCOL_CONTRACT_ADDRESS_OP_SEPOLIA, Mt as SeedProvider, we as asPublishWallet, m as asSeedSigner, r as asSeedTxSender, De as assertExecutorModuleReadyForAccount, Ne as assertManagedAccountEasMatchesConfig, xr as assessDomainOwnershipLive, ze as assessPublishAuthorizationLive, _r as attestDomainOwnership, Pe as attestPublishAuthorization, Dr as attestPublishedBy, We as buildPublishAnchorBytes, Gn as clearAllPublishProcesses, Kn as clearAllUploadProcesses, Un as clearCompletedPublishProcesses, Wn as clearCompletedPublishProcessesForSeed, t as clearPublishWallet, Ze as collectPublishedBatch, vn as combinePublishCostEstimate, ue as configurePublish, ar as createDomainOwnershipChallenge, U as createPermissionlessTxSender, Jn as deletePublishProcessById, Yn as deletePublishProcessesByIds, qn as deletePublishProcessesForSeed, hr as encodeDomainOwnershipAttestationData, o as encodeEasAttest, _ as encodeEasMultiAttest, v as encodeEasMultiRevoke, ge as encodeMultiPublish, Ue as encodePublishAuthorizationAttestationData, Er as encodePublishedByAttestationData, y as encodeSetEas, mr as ensureDomainOwnershipSchema, je as ensureEasSchemasForItem, Ye as ensureManagedAccountEasConfigured, Ke as ensurePublishAuthorizationSchema, Tr as ensurePublishedBySchema, er as ensureWalletThenPublish, yn as estimatePublishCost, nr as fingerprintFromRegistrySnapshot, H as fromEip1193Provider, a as fromEthersWallet, Yt as fromWindowEthereum, Ee as getArweave, Xn as getArweaveTransactionIds, fn as getCachedMarketRates, on as getCachedTokenPrices, En as getDisplayStepId, Z as getDomainOwnershipSchemaUid, Ct as getEasChainDeployment, Zn as getEasPayload, Fe as getPublishAuthorizationSchemaUid, be as getPublishChainName, w as getPublishConfig, On as getPublishMachineValueForUi, ye as getPublishPublicClient, x as getPublishWallet, $ as getPublishedBySchemaUid, Et as hashPublishedByBatch, en as heuristicPublishGas, ve as initPublish, re as isContractDeployed, ce as isEip7702ModularAccountPublishError, ee as isManagedAccountPublishError, i as isPublishWallet, Se as isRouterNonModularCoreAccountError, d as isSeedSigner, C as isSeedTxSender, tr as lookupDomainRegistry, Y as normalizeRegistrableDomain, Le as publishMachine, e as readFactorySeedExecutor, ae as readGetEas, xe as readIsActiveSigner, ne as requireManagedAccountFactoryAddress, pn as resetMarketRateCache, sn as resetTokenPriceCache, Dn as resolvePublishDisplayValue, fe as resolvePublishEasChain, vr as revokeDomainOwnership, Be as revokePublishAuthorization, Or as revokePublishedBy, Kt as seedTwinConfig, c as setPublishWallet, Xe as simulateCallFromAccount, Te as stringifyUnderlyingCause, Qe as uidsFromAttestationPairs, Mn as useArweaveL1Finalize, jn as useCanPublishItem, Nn as useItemPublishStatus, He as usePublishConfig, Qn as usePublishCostEstimate, An as usePublishProcess, Hn as usePublishProcessById, Ln as usePublishProcesses, zn as usePublishProcessesForSeed, Rn as usePublishProcessesNonActiveCount, Vn as usePublishProcessesNonActiveCountForSeed, In as usePublishProcessesState, Bn as usePublishProcessesStateForSeed, $t as useSeedWallet, br as verifyAndAttestDomainOwnership, Oe as verifyDataItem, yr as verifyDomainOwnershipChallenge, ur as verifyDomainOwnershipDns, oe as verifyPublishChain, b as waitForPublishReceipt, Tn as watchPublishCost };
1280
1279
 
1281
1280
  //# sourceMappingURL=index.js.map