@seedprotocol/publish 0.6.8 → 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 (278) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -19
  3. package/dist/{chainConfig-3sSqEVQh.js → chainConfig-DWzoOtkS.js} +439 -419
  4. package/dist/chainConfig-DWzoOtkS.js.map +1 -0
  5. package/dist/config.d.ts +5 -11
  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-D5GSZRyZ.js → ensureSmartWalletThenPublish-DuOYPJFd.js} +9 -10
  12. package/dist/{ensureSmartWalletThenPublish-D5GSZRyZ.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 +16 -7
  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/publisher.d.ts +7 -74
  20. package/dist/helpers/abi/publisher.d.ts.map +1 -1
  21. package/dist/helpers/abi/seedExecutorRouter.d.ts +9 -1
  22. package/dist/helpers/abi/seedExecutorRouter.d.ts.map +1 -1
  23. package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
  24. package/dist/helpers/chainClient.d.ts +18 -2
  25. package/dist/helpers/chainClient.d.ts.map +1 -1
  26. package/dist/helpers/contracts/index.d.ts +15 -18
  27. package/dist/helpers/contracts/index.d.ts.map +1 -1
  28. package/dist/helpers/describeRevert.d.ts +3 -2
  29. package/dist/helpers/describeRevert.d.ts.map +1 -1
  30. package/dist/helpers/enrollPublishAutomation.d.ts +2 -2
  31. package/dist/helpers/enrollPublishAutomation.d.ts.map +1 -1
  32. package/dist/helpers/ensureAutomationSessionKey.d.ts.map +1 -1
  33. package/dist/helpers/ensureExecutorModule.d.ts +28 -5
  34. package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
  35. package/dist/helpers/executorModuleReadiness.d.ts +15 -1
  36. package/dist/helpers/executorModuleReadiness.d.ts.map +1 -1
  37. package/dist/helpers/gasLog.d.ts +8 -0
  38. package/dist/helpers/gasLog.d.ts.map +1 -0
  39. package/dist/helpers/seedPaymaster.d.ts +27 -0
  40. package/dist/helpers/seedPaymaster.d.ts.map +1 -0
  41. package/dist/helpers/thirdweb.d.ts.map +1 -1
  42. package/dist/index.d.ts +3 -4
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +316 -342
  45. package/dist/index.js.map +1 -1
  46. package/dist/{managedAccountAdmin-B64V1rlU.js → managedAccountAdmin-B4HkLWWE.js} +9 -10
  47. package/dist/{managedAccountAdmin-B64V1rlU.js.map → managedAccountAdmin-B4HkLWWE.js.map} +1 -1
  48. package/dist/{publishAuthorization-CxBkijU6.js → publishAuthorization-DgDI4zor.js} +1104 -1018
  49. package/dist/publishAuthorization-DgDI4zor.js.map +1 -0
  50. package/dist/{publishThirdwebClient-CQ29pzG2.js → publishThirdwebClient-CO18ST7C.js} +2 -2
  51. package/dist/{publishThirdwebClient-CQ29pzG2.js.map → publishThirdwebClient-CO18ST7C.js.map} +1 -1
  52. package/dist/{resolveRevokeAccount-CehU81k6.js → resolveRevokeAccount-DsNod8ti.js} +11 -11
  53. package/dist/{resolveRevokeAccount-B5iXpuRT.js.map → resolveRevokeAccount-DsNod8ti.js.map} +1 -1
  54. package/dist/thirdweb.d.ts +2 -1
  55. package/dist/thirdweb.d.ts.map +1 -1
  56. package/dist/thirdweb.js +155 -156
  57. package/dist/thirdweb.js.map +1 -1
  58. package/dist/{worker-2dUZSapK.js → worker-CN7zg73B.js} +2 -2
  59. package/dist/{worker-2dUZSapK.js.map → worker-CN7zg73B.js.map} +1 -1
  60. package/package.json +6 -6
  61. package/dist/chainConfig-3sSqEVQh.js.map +0 -1
  62. package/dist/chainConfig-3wlYarAG.js +0 -1433
  63. package/dist/chainConfig-3wlYarAG.js.map +0 -1
  64. package/dist/chainConfig-BRcsMopd.js +0 -1442
  65. package/dist/chainConfig-BRcsMopd.js.map +0 -1
  66. package/dist/chainConfig-BYm5OXpk.js +0 -1433
  67. package/dist/chainConfig-BYm5OXpk.js.map +0 -1
  68. package/dist/chainConfig-CfVGYAsY.js +0 -1311
  69. package/dist/chainConfig-CfVGYAsY.js.map +0 -1
  70. package/dist/chainConfig-DDA4YmAB.js +0 -1424
  71. package/dist/chainConfig-DDA4YmAB.js.map +0 -1
  72. package/dist/config-BA9la8B6.js +0 -941
  73. package/dist/config-BA9la8B6.js.map +0 -1
  74. package/dist/config-BqguD2Tt.js +0 -806
  75. package/dist/config-BqguD2Tt.js.map +0 -1
  76. package/dist/config-CPBd5C_b.js +0 -1201
  77. package/dist/config-CPBd5C_b.js.map +0 -1
  78. package/dist/config-DkIapO94.js +0 -955
  79. package/dist/config-DkIapO94.js.map +0 -1
  80. package/dist/config-EQZZNH9H.js +0 -955
  81. package/dist/config-EQZZNH9H.js.map +0 -1
  82. package/dist/config-qjpaJcBA.js +0 -947
  83. package/dist/config-qjpaJcBA.js.map +0 -1
  84. package/dist/deploy-BJYwLfz-.js +0 -15
  85. package/dist/deploy-BJYwLfz-.js.map +0 -1
  86. package/dist/enrollPublishAutomation-DYQMoylY.js +0 -3422
  87. package/dist/enrollPublishAutomation-DYQMoylY.js.map +0 -1
  88. package/dist/ensureAutomationSessionKey-BMHLKfjj.js +0 -85
  89. package/dist/ensureAutomationSessionKey-BMHLKfjj.js.map +0 -1
  90. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js +0 -86
  91. package/dist/ensureAutomationSessionKey-BZ9_3FMW.js.map +0 -1
  92. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js +0 -84
  93. package/dist/ensureAutomationSessionKey-Bq0PaTYE.js.map +0 -1
  94. package/dist/ensureAutomationSessionKey-C8D7BFjU.js +0 -85
  95. package/dist/ensureAutomationSessionKey-C8D7BFjU.js.map +0 -1
  96. package/dist/ensureAutomationSessionKey-CClLVX2w.js +0 -85
  97. package/dist/ensureAutomationSessionKey-CClLVX2w.js.map +0 -1
  98. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js +0 -85
  99. package/dist/ensureAutomationSessionKey-CNNN1jBQ.js.map +0 -1
  100. package/dist/ensureAutomationSessionKey-D8Gki6U6.js +0 -85
  101. package/dist/ensureAutomationSessionKey-D8Gki6U6.js.map +0 -1
  102. package/dist/ensureAutomationSessionKey-DEH7nwUc.js +0 -86
  103. package/dist/ensureAutomationSessionKey-DEH7nwUc.js.map +0 -1
  104. package/dist/ensureAutomationSessionKey-DKriW4Hr.js +0 -85
  105. package/dist/ensureAutomationSessionKey-DKriW4Hr.js.map +0 -1
  106. package/dist/ensureAutomationSessionKey-Dhvbii2M.js +0 -86
  107. package/dist/ensureAutomationSessionKey-Dhvbii2M.js.map +0 -1
  108. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js +0 -85
  109. package/dist/ensureAutomationSessionKey-Dyfk8qVp.js.map +0 -1
  110. package/dist/ensureModularPublishBootstrap-5HJDqJJM.js +0 -24
  111. package/dist/ensureModularPublishBootstrap-BW8jKN_A.js +0 -24
  112. package/dist/ensureModularPublishBootstrap-BW8jKN_A.js.map +0 -1
  113. package/dist/ensureModularPublishBootstrap-Btih5xbB.js +0 -129
  114. package/dist/ensureModularPublishBootstrap-Btih5xbB.js.map +0 -1
  115. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js +0 -128
  116. package/dist/ensureModularPublishBootstrap-C8wdnH1P.js.map +0 -1
  117. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js +0 -129
  118. package/dist/ensureModularPublishBootstrap-CI4U08Gc.js.map +0 -1
  119. package/dist/ensureModularPublishBootstrap-CcU-hXll.js +0 -128
  120. package/dist/ensureModularPublishBootstrap-CcU-hXll.js.map +0 -1
  121. package/dist/ensureModularPublishBootstrap-CdrykHAi.js +0 -24
  122. package/dist/ensureModularPublishBootstrap-CdrykHAi.js.map +0 -1
  123. package/dist/ensureModularPublishBootstrap-DGBKVGg5.js.map +0 -1
  124. package/dist/ensureModularPublishBootstrap-DaREOqSc.js +0 -129
  125. package/dist/ensureModularPublishBootstrap-DaREOqSc.js.map +0 -1
  126. package/dist/ensureModularPublishBootstrap-DxIG-LUP.js +0 -24
  127. package/dist/ensureModularPublishBootstrap-DxIG-LUP.js.map +0 -1
  128. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js +0 -127
  129. package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js.map +0 -1
  130. package/dist/ensureSessionKey-D2Lq-56x.js +0 -363
  131. package/dist/ensureSessionKey-D2Lq-56x.js.map +0 -1
  132. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js +0 -48
  133. package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js.map +0 -1
  134. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js +0 -49
  135. package/dist/ensureSmartWalletThenPublish-BSYzckyS.js.map +0 -1
  136. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js +0 -49
  137. package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js.map +0 -1
  138. package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js +0 -48
  139. package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js.map +0 -1
  140. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js +0 -49
  141. package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js.map +0 -1
  142. package/dist/ensureSmartWalletThenPublish-CE7acryB.js +0 -49
  143. package/dist/ensureSmartWalletThenPublish-CE7acryB.js.map +0 -1
  144. package/dist/ensureSmartWalletThenPublish-DAomriGc.js +0 -48
  145. package/dist/ensureSmartWalletThenPublish-DAomriGc.js.map +0 -1
  146. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js +0 -48
  147. package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js.map +0 -1
  148. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js +0 -48
  149. package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js.map +0 -1
  150. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js +0 -48
  151. package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js.map +0 -1
  152. package/dist/errors-Du3LNbJN.js +0 -70
  153. package/dist/errors-Du3LNbJN.js.map +0 -1
  154. package/dist/errors-PZAaDlkq.js +0 -79
  155. package/dist/errors-PZAaDlkq.js.map +0 -1
  156. package/dist/helpers/adapters/managedAccountTxSender.d.ts +0 -21
  157. package/dist/helpers/adapters/managedAccountTxSender.d.ts.map +0 -1
  158. package/dist/helpers/modularAccount/abi.d.ts +0 -173
  159. package/dist/helpers/modularAccount/abi.d.ts.map +0 -1
  160. package/dist/helpers/modularAccount/deploy.d.ts +0 -13
  161. package/dist/helpers/modularAccount/deploy.d.ts.map +0 -1
  162. package/dist/helpers/modularAccount/eip712.d.ts +0 -30
  163. package/dist/helpers/modularAccount/eip712.d.ts.map +0 -1
  164. package/dist/helpers/modularAccount/encode.d.ts +0 -16
  165. package/dist/helpers/modularAccount/encode.d.ts.map +0 -1
  166. package/dist/helpers/modularAccount/ensureModule.d.ts +0 -10
  167. package/dist/helpers/modularAccount/ensureModule.d.ts.map +0 -1
  168. package/dist/helpers/modularAccount/ensureSessionKey.d.ts +0 -25
  169. package/dist/helpers/modularAccount/ensureSessionKey.d.ts.map +0 -1
  170. package/dist/helpers/modularAccount/index.d.ts +0 -9
  171. package/dist/helpers/modularAccount/index.d.ts.map +0 -1
  172. package/dist/helpers/modularAccount/permissions.d.ts +0 -32
  173. package/dist/helpers/modularAccount/permissions.d.ts.map +0 -1
  174. package/dist/helpers/modularAccount/reads.d.ts +0 -28
  175. package/dist/helpers/modularAccount/reads.d.ts.map +0 -1
  176. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts +0 -31
  177. package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts.map +0 -1
  178. package/dist/helpers/thirdwebModularBootstrap.d.ts +0 -8
  179. package/dist/helpers/thirdwebModularBootstrap.d.ts.map +0 -1
  180. package/dist/helpers/transformPayloadToIntegerIds.d.ts +0 -34
  181. package/dist/helpers/transformPayloadToIntegerIds.d.ts.map +0 -1
  182. package/dist/managedAccountAdmin-BVLGWpEb.js +0 -29
  183. package/dist/managedAccountAdmin-BVLGWpEb.js.map +0 -1
  184. package/dist/managedAccountAdmin-Bje6X8Ds.js +0 -29
  185. package/dist/managedAccountAdmin-Bje6X8Ds.js.map +0 -1
  186. package/dist/managedAccountAdmin-C84-IlQ9.js +0 -29
  187. package/dist/managedAccountAdmin-C84-IlQ9.js.map +0 -1
  188. package/dist/managedAccountAdmin-DhCRBoPX.js +0 -29
  189. package/dist/managedAccountAdmin-DhCRBoPX.js.map +0 -1
  190. package/dist/publishAuthorization-B0G1em4a.js +0 -3695
  191. package/dist/publishAuthorization-B0G1em4a.js.map +0 -1
  192. package/dist/publishAuthorization-B1BVVfp0.js +0 -3604
  193. package/dist/publishAuthorization-B1BVVfp0.js.map +0 -1
  194. package/dist/publishAuthorization-Bltn3y_K.js +0 -3599
  195. package/dist/publishAuthorization-Bltn3y_K.js.map +0 -1
  196. package/dist/publishAuthorization-By2Tt9kW.js +0 -3912
  197. package/dist/publishAuthorization-By2Tt9kW.js.map +0 -1
  198. package/dist/publishAuthorization-CSN2FsQk.js +0 -3479
  199. package/dist/publishAuthorization-CSN2FsQk.js.map +0 -1
  200. package/dist/publishAuthorization-CxBkijU6.js.map +0 -1
  201. package/dist/publishAuthorization-CxWY7lAQ.js +0 -3706
  202. package/dist/publishAuthorization-CxWY7lAQ.js.map +0 -1
  203. package/dist/publishAuthorization-DEriY_jm.js +0 -3687
  204. package/dist/publishAuthorization-DEriY_jm.js.map +0 -1
  205. package/dist/publishAuthorization-DfAQs1sN.js +0 -3707
  206. package/dist/publishAuthorization-DfAQs1sN.js.map +0 -1
  207. package/dist/publishAuthorization-DgdmgLTa.js +0 -3520
  208. package/dist/publishAuthorization-DgdmgLTa.js.map +0 -1
  209. package/dist/publishAuthorization-DqhhCAhd.js +0 -3652
  210. package/dist/publishAuthorization-DqhhCAhd.js.map +0 -1
  211. package/dist/publishThirdwebClient-BdgkcqM7.js +0 -18
  212. package/dist/publishThirdwebClient-BdgkcqM7.js.map +0 -1
  213. package/dist/publishThirdwebClient-BkmDN480.js +0 -18
  214. package/dist/publishThirdwebClient-BkmDN480.js.map +0 -1
  215. package/dist/publishThirdwebClient-BnDhP3N-.js +0 -18
  216. package/dist/publishThirdwebClient-BnDhP3N-.js.map +0 -1
  217. package/dist/publishThirdwebClient-CZIVmr9Z.js +0 -18
  218. package/dist/publishThirdwebClient-CZIVmr9Z.js.map +0 -1
  219. package/dist/publishThirdwebClient-DroRrOFQ.js +0 -18
  220. package/dist/publishThirdwebClient-DroRrOFQ.js.map +0 -1
  221. package/dist/publishThirdwebClient-DzXFjQ7L.js +0 -18
  222. package/dist/publishThirdwebClient-DzXFjQ7L.js.map +0 -1
  223. package/dist/publishThirdwebClient-Dzb2vcEs.js +0 -18
  224. package/dist/publishThirdwebClient-Dzb2vcEs.js.map +0 -1
  225. package/dist/publishThirdwebClient-i8P7fivi.js +0 -18
  226. package/dist/publishThirdwebClient-i8P7fivi.js.map +0 -1
  227. package/dist/publishWalletRegistry-Cugh691z.js +0 -37
  228. package/dist/publishWalletRegistry-Cugh691z.js.map +0 -1
  229. package/dist/resolveRevokeAccount-B5iXpuRT.js +0 -38
  230. package/dist/resolveRevokeAccount-B7ImSb4Y.js +0 -38
  231. package/dist/resolveRevokeAccount-B7ImSb4Y.js.map +0 -1
  232. package/dist/resolveRevokeAccount-BEhKQBTm.js +0 -38
  233. package/dist/resolveRevokeAccount-BEhKQBTm.js.map +0 -1
  234. package/dist/resolveRevokeAccount-BM1j2l5Q.js +0 -38
  235. package/dist/resolveRevokeAccount-BM1j2l5Q.js.map +0 -1
  236. package/dist/resolveRevokeAccount-BtVG0xxc.js +0 -38
  237. package/dist/resolveRevokeAccount-BtVG0xxc.js.map +0 -1
  238. package/dist/resolveRevokeAccount-CJZZdBcQ.js +0 -39
  239. package/dist/resolveRevokeAccount-CJZZdBcQ.js.map +0 -1
  240. package/dist/resolveRevokeAccount-CaIMuCee.js +0 -39
  241. package/dist/resolveRevokeAccount-CaIMuCee.js.map +0 -1
  242. package/dist/resolveRevokeAccount-CehU81k6.js.map +0 -1
  243. package/dist/resolveRevokeAccount-Cg4TQgnd.js +0 -38
  244. package/dist/resolveRevokeAccount-Cg4TQgnd.js.map +0 -1
  245. package/dist/resolveRevokeAccount-DHnxtEIj.js +0 -39
  246. package/dist/resolveRevokeAccount-DHnxtEIj.js.map +0 -1
  247. package/dist/resolveRevokeAccount-S-2WXkNh.js +0 -38
  248. package/dist/resolveRevokeAccount-S-2WXkNh.js.map +0 -1
  249. package/dist/resolveRevokeAccount-yWARIv9i.js +0 -38
  250. package/dist/resolveRevokeAccount-yWARIv9i.js.map +0 -1
  251. package/dist/seedSigner-CFzMD7Rb.js +0 -66
  252. package/dist/seedSigner-CFzMD7Rb.js.map +0 -1
  253. package/dist/thirdweb-BoksPRz3.js +0 -194
  254. package/dist/thirdweb-BoksPRz3.js.map +0 -1
  255. package/dist/thirdwebAccount-C2iOcp4_.js +0 -59
  256. package/dist/thirdwebAccount-C2iOcp4_.js.map +0 -1
  257. package/dist/worker-B1PcFPLi.js +0 -69
  258. package/dist/worker-B1PcFPLi.js.map +0 -1
  259. package/dist/worker-B8gN5WTx.js +0 -69
  260. package/dist/worker-B8gN5WTx.js.map +0 -1
  261. package/dist/worker-BCG1r0AS.js +0 -69
  262. package/dist/worker-BCG1r0AS.js.map +0 -1
  263. package/dist/worker-BgErCNTb.js +0 -69
  264. package/dist/worker-BgErCNTb.js.map +0 -1
  265. package/dist/worker-C07rPV2G.js +0 -69
  266. package/dist/worker-C07rPV2G.js.map +0 -1
  267. package/dist/worker-C9Za_dlQ.js +0 -69
  268. package/dist/worker-C9Za_dlQ.js.map +0 -1
  269. package/dist/worker-CEgulQnm.js +0 -69
  270. package/dist/worker-CEgulQnm.js.map +0 -1
  271. package/dist/worker-C_TL94He.js +0 -69
  272. package/dist/worker-C_TL94He.js.map +0 -1
  273. package/dist/worker-DBC_g-3I.js +0 -69
  274. package/dist/worker-DBC_g-3I.js.map +0 -1
  275. package/dist/worker-DypHzXgH.js +0 -69
  276. package/dist/worker-DypHzXgH.js.map +0 -1
  277. package/dist/worker-ZL4Wg19t.js +0 -69
  278. package/dist/worker-ZL4Wg19t.js.map +0 -1
@@ -1,947 +0,0 @@
1
- import { DEFAULT_ARWEAVE_GRAPHQL_URL as e, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as t, client as n, getAttesterForSeed as r, getGetAdditionalSyncAddresses as i, getMetadataAttestationUidsForSeedUid as a, getVersionsForSeedUid as o, isValidEasAttestationUid as s, setAdditionalSyncAddresses as c, setGetPublisherForNewSeeds as l, setRevokeExecutor as u, updateSeedRevokedAt as ee } from "@seedprotocol/sdk";
2
- import { createPublicClient as te, encodeAbiParameters as d, encodeFunctionData as f, http as p, parseEventLogs as m } from "viem";
3
- import { optimismSepolia as h } from "viem/chains";
4
- import { defineChain as ne, prepareTransaction as re, sendTransaction as ie } from "thirdweb";
5
- import { optimismSepolia as ae } from "thirdweb/chains";
6
- import { ethers as oe } from "ethers";
7
- //#region \0rolldown/runtime.js
8
- var g = Object.defineProperty, _ = (e, t) => {
9
- let n = {};
10
- for (var r in e) g(n, r, {
11
- get: e[r],
12
- enumerable: !0
13
- });
14
- return t || g(n, Symbol.toStringTag, { value: "Module" }), n;
15
- }, v = "0x4200000000000000000000000000000000000020", se = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", y = "0x76f47d88bfaf670f5208911181fcdc0e160cb16d", b = "0x4200000000000000000000000000000000000021", x = "0xcd8c945872df8e664e55cf8885c85ea3ea8f2148", ce = x, le = {
16
- SUCCESS: "success",
17
- FAILURE: "failure"
18
- }, ue = [
19
- "pollingForConfirmation",
20
- "uploadingData",
21
- "uploadingViaBundler",
22
- "uploadingViaBundlerPhase2"
23
- ], de = 3e4, fe = [
24
- {
25
- type: "error",
26
- name: "AccessDenied",
27
- inputs: []
28
- },
29
- {
30
- type: "error",
31
- name: "AlreadyRevoked",
32
- inputs: []
33
- },
34
- {
35
- type: "error",
36
- name: "InvalidRevocation",
37
- inputs: []
38
- },
39
- {
40
- type: "error",
41
- name: "InvalidRevocations",
42
- inputs: []
43
- },
44
- {
45
- type: "error",
46
- name: "InvalidSchema",
47
- inputs: []
48
- },
49
- {
50
- type: "error",
51
- name: "Irrevocable",
52
- inputs: []
53
- },
54
- {
55
- type: "error",
56
- name: "NotFound",
57
- inputs: []
58
- },
59
- {
60
- type: "error",
61
- name: "NotPayable",
62
- inputs: []
63
- },
64
- {
65
- type: "error",
66
- name: "InsufficientValue",
67
- inputs: []
68
- },
69
- {
70
- type: "error",
71
- name: "InvalidLength",
72
- inputs: []
73
- }
74
- ], S = [
75
- {
76
- name: "recipient",
77
- type: "address"
78
- },
79
- {
80
- name: "expirationTime",
81
- type: "uint64"
82
- },
83
- {
84
- name: "revocable",
85
- type: "bool"
86
- },
87
- {
88
- name: "refUID",
89
- type: "bytes32"
90
- },
91
- {
92
- name: "data",
93
- type: "bytes"
94
- },
95
- {
96
- name: "value",
97
- type: "uint256"
98
- }
99
- ], C = [
100
- {
101
- type: "function",
102
- name: "attest",
103
- stateMutability: "payable",
104
- inputs: [{
105
- name: "request",
106
- type: "tuple",
107
- components: [{
108
- name: "schema",
109
- type: "bytes32"
110
- }, {
111
- name: "data",
112
- type: "tuple",
113
- components: S
114
- }]
115
- }],
116
- outputs: [{ type: "bytes32" }]
117
- },
118
- {
119
- type: "function",
120
- name: "multiAttest",
121
- stateMutability: "payable",
122
- inputs: [{
123
- name: "requests",
124
- type: "tuple[]",
125
- components: [{
126
- name: "schema",
127
- type: "bytes32"
128
- }, {
129
- name: "data",
130
- type: "tuple[]",
131
- components: S
132
- }]
133
- }],
134
- outputs: [{ type: "bytes32[]" }]
135
- },
136
- {
137
- type: "function",
138
- name: "multiRevoke",
139
- stateMutability: "payable",
140
- inputs: [{
141
- name: "multiRequests",
142
- type: "tuple[]",
143
- components: [{
144
- name: "schema",
145
- type: "bytes32"
146
- }, {
147
- name: "data",
148
- type: "tuple[]",
149
- components: [{
150
- name: "uid",
151
- type: "bytes32"
152
- }, {
153
- name: "value",
154
- type: "uint256"
155
- }]
156
- }]
157
- }],
158
- outputs: []
159
- },
160
- {
161
- type: "event",
162
- name: "Attested",
163
- inputs: [
164
- {
165
- name: "recipient",
166
- type: "address",
167
- indexed: !0
168
- },
169
- {
170
- name: "attester",
171
- type: "address",
172
- indexed: !0
173
- },
174
- {
175
- name: "uid",
176
- type: "bytes32",
177
- indexed: !1
178
- },
179
- {
180
- name: "schemaUID",
181
- type: "bytes32",
182
- indexed: !0
183
- }
184
- ]
185
- },
186
- ...fe
187
- ], w = [{
188
- name: "schema",
189
- type: "bytes32"
190
- }, {
191
- name: "data",
192
- type: "tuple[]",
193
- components: [
194
- {
195
- name: "recipient",
196
- type: "address"
197
- },
198
- {
199
- name: "expirationTime",
200
- type: "uint64"
201
- },
202
- {
203
- name: "revocable",
204
- type: "bool"
205
- },
206
- {
207
- name: "refUID",
208
- type: "bytes32"
209
- },
210
- {
211
- name: "data",
212
- type: "bytes"
213
- },
214
- {
215
- name: "value",
216
- type: "uint256"
217
- }
218
- ]
219
- }], pe = [{
220
- type: "function",
221
- name: "multiPublish",
222
- stateMutability: "nonpayable",
223
- inputs: [{
224
- name: "requests",
225
- type: "tuple[]",
226
- components: [
227
- {
228
- name: "localId",
229
- type: "string"
230
- },
231
- {
232
- name: "seedUid",
233
- type: "bytes32"
234
- },
235
- {
236
- name: "seedSchemaUid",
237
- type: "bytes32"
238
- },
239
- {
240
- name: "versionUid",
241
- type: "bytes32"
242
- },
243
- {
244
- name: "versionSchemaUid",
245
- type: "bytes32"
246
- },
247
- {
248
- name: "seedIsRevocable",
249
- type: "bool"
250
- },
251
- {
252
- name: "listOfAttestations",
253
- type: "tuple[]",
254
- components: w
255
- },
256
- {
257
- name: "propertiesToUpdate",
258
- type: "tuple[]",
259
- components: [{
260
- name: "publishLocalId",
261
- type: "string"
262
- }, {
263
- name: "propertySchemaUid",
264
- type: "bytes32"
265
- }]
266
- }
267
- ]
268
- }],
269
- outputs: [{ type: "bytes32[]" }]
270
- }], me = [{
271
- type: "function",
272
- name: "multiPublish",
273
- stateMutability: "nonpayable",
274
- inputs: [{
275
- name: "requests",
276
- type: "tuple[]",
277
- components: [
278
- {
279
- name: "localIdIndex",
280
- type: "uint256"
281
- },
282
- {
283
- name: "seedUid",
284
- type: "bytes32"
285
- },
286
- {
287
- name: "seedSchemaUid",
288
- type: "bytes32"
289
- },
290
- {
291
- name: "versionUid",
292
- type: "bytes32"
293
- },
294
- {
295
- name: "versionSchemaUid",
296
- type: "bytes32"
297
- },
298
- {
299
- name: "seedIsRevocable",
300
- type: "bool"
301
- },
302
- {
303
- name: "listOfAttestations",
304
- type: "tuple[]",
305
- components: w
306
- },
307
- {
308
- name: "propertiesToUpdate",
309
- type: "tuple[]",
310
- components: [{
311
- name: "publishLocalIdIndex",
312
- type: "uint256"
313
- }, {
314
- name: "propertySchemaUid",
315
- type: "bytes32"
316
- }]
317
- }
318
- ]
319
- }],
320
- outputs: [{ type: "bytes32[]" }]
321
- }], T = [
322
- {
323
- type: "function",
324
- name: "getEas",
325
- stateMutability: "view",
326
- inputs: [],
327
- outputs: [{ type: "address" }]
328
- },
329
- {
330
- type: "function",
331
- name: "setEas",
332
- stateMutability: "nonpayable",
333
- inputs: [{
334
- name: "_eas",
335
- type: "address"
336
- }],
337
- outputs: [{ type: "string" }]
338
- },
339
- {
340
- type: "function",
341
- name: "isActiveSigner",
342
- stateMutability: "view",
343
- inputs: [{
344
- name: "signer",
345
- type: "address"
346
- }],
347
- outputs: [{ type: "bool" }]
348
- }
349
- ], he = [{
350
- type: "event",
351
- name: "CreatedAttestation",
352
- inputs: [{
353
- name: "result",
354
- type: "tuple",
355
- indexed: !1,
356
- components: [{
357
- name: "schemaUid",
358
- type: "bytes32"
359
- }, {
360
- name: "attestationUid",
361
- type: "bytes32"
362
- }]
363
- }]
364
- }, {
365
- type: "event",
366
- name: "SeedPublished",
367
- inputs: [{
368
- name: "returnedDataFromEAS",
369
- type: "bytes",
370
- indexed: !1
371
- }]
372
- }], E = [{
373
- type: "function",
374
- name: "getAddress",
375
- stateMutability: "view",
376
- inputs: [{
377
- name: "_adminSigner",
378
- type: "address"
379
- }, {
380
- name: "_data",
381
- type: "bytes"
382
- }],
383
- outputs: [{ type: "address" }]
384
- }, {
385
- type: "function",
386
- name: "createAccount",
387
- stateMutability: "nonpayable",
388
- inputs: [{
389
- name: "_admin",
390
- type: "address"
391
- }, {
392
- name: "_data",
393
- type: "bytes"
394
- }],
395
- outputs: [{ type: "address" }]
396
- }], D = [{
397
- type: "function",
398
- name: "getSchema",
399
- stateMutability: "view",
400
- inputs: [{
401
- name: "uid",
402
- type: "bytes32"
403
- }],
404
- outputs: [{
405
- name: "",
406
- type: "tuple",
407
- components: [
408
- {
409
- name: "uid",
410
- type: "bytes32"
411
- },
412
- {
413
- name: "resolver",
414
- type: "address"
415
- },
416
- {
417
- name: "revocable",
418
- type: "bool"
419
- },
420
- {
421
- name: "schema",
422
- type: "string"
423
- }
424
- ]
425
- }]
426
- }, {
427
- type: "function",
428
- name: "register",
429
- stateMutability: "nonpayable",
430
- inputs: [
431
- {
432
- name: "schema",
433
- type: "string"
434
- },
435
- {
436
- name: "resolver",
437
- type: "address"
438
- },
439
- {
440
- name: "revocable",
441
- type: "bool"
442
- }
443
- ],
444
- outputs: [{ type: "bytes32" }]
445
- }], O = h;
446
- //#endregion
447
- //#region src/helpers/chainConfig.ts
448
- function k() {
449
- try {
450
- return $().chain ?? O;
451
- } catch {
452
- return O;
453
- }
454
- }
455
- function A() {
456
- let e = $();
457
- if (e.rpcUrl) return e.rpcUrl;
458
- if (e.thirdwebClientId) return `https://${(e.chain ?? O).id}.rpc.thirdweb.com/${e.thirdwebClientId}`;
459
- throw Error("@seedprotocol/publish: rpcUrl is required when thirdwebClientId is not set. Pass rpcUrl in initPublish / PublishProvider config.");
460
- }
461
- //#endregion
462
- //#region src/helpers/chainClient.ts
463
- var j = null, M = null;
464
- function ge() {
465
- let e = k(), t = A();
466
- return te({
467
- chain: e,
468
- transport: p(t)
469
- });
470
- }
471
- function N() {
472
- let e = k(), t = A(), n = `${e.id}:${t}`;
473
- return (!j || M !== n) && (M = n, j = ge()), j;
474
- }
475
- async function P(e) {
476
- return N().waitForTransactionReceipt({ hash: e });
477
- }
478
- async function F(e) {
479
- let t = await N().getBytecode({ address: e });
480
- return !!t && t !== "0x";
481
- }
482
- async function _e(e) {
483
- try {
484
- let t = await N().getBlock({ blockNumber: e });
485
- if (t?.timestamp != null) return Number(t.timestamp) * 1e3;
486
- } catch {}
487
- return null;
488
- }
489
- var ve = 5, ye = 6e3;
490
- async function be(e, t = ve, n = ye) {
491
- for (let r = 0; r < t; r++) {
492
- if (await F(e)) return !0;
493
- r < t - 1 && await new Promise((e) => {
494
- setTimeout(e, n);
495
- });
496
- }
497
- return !1;
498
- }
499
- //#endregion
500
- //#region src/helpers/contracts/index.ts
501
- function xe(e, t, n) {
502
- return {
503
- to: e,
504
- data: f({
505
- abi: pe,
506
- functionName: "multiPublish",
507
- args: [t]
508
- }),
509
- gas: n
510
- };
511
- }
512
- function Se(e, t, n) {
513
- return {
514
- to: e,
515
- data: f({
516
- abi: me,
517
- functionName: "multiPublish",
518
- args: [t]
519
- }),
520
- gas: n
521
- };
522
- }
523
- function Ce(e, t) {
524
- return {
525
- to: e,
526
- data: f({
527
- abi: T,
528
- functionName: "setEas",
529
- args: [t]
530
- })
531
- };
532
- }
533
- async function we(e) {
534
- return N().readContract({
535
- address: e,
536
- abi: T,
537
- functionName: "getEas"
538
- });
539
- }
540
- async function Te(e, t) {
541
- return N().readContract({
542
- address: e,
543
- abi: T,
544
- functionName: "isActiveSigner",
545
- args: [t]
546
- });
547
- }
548
- async function Ee(e, t = "0x") {
549
- let { thirdwebAccountFactoryAddress: n } = $();
550
- return N().readContract({
551
- address: n || "0x76f47d88bfaf670f5208911181fcdc0e160cb16d",
552
- abi: E,
553
- functionName: "getAddress",
554
- args: [e, t]
555
- });
556
- }
557
- function De(e, t = "0x") {
558
- let { thirdwebAccountFactoryAddress: n } = $();
559
- return {
560
- to: n || "0x76f47d88bfaf670f5208911181fcdc0e160cb16d",
561
- data: f({
562
- abi: E,
563
- functionName: "createAccount",
564
- args: [e, t]
565
- })
566
- };
567
- }
568
- var Oe = "0x0000000000000000000000000000000000000000";
569
- function I(e) {
570
- let { easContractAddress: t } = $();
571
- return {
572
- to: t,
573
- data: f({
574
- abi: C,
575
- functionName: "attest",
576
- args: [{
577
- schema: e.schema,
578
- data: {
579
- recipient: e.data.recipient ?? Oe,
580
- expirationTime: e.data.expirationTime ?? 0n,
581
- revocable: e.data.revocable ?? !0,
582
- refUID: e.data.refUID,
583
- data: e.data.data,
584
- value: e.data.value ?? 0n
585
- }
586
- }]
587
- })
588
- };
589
- }
590
- function L(e) {
591
- let { easContractAddress: t } = $();
592
- return {
593
- to: t,
594
- data: f({
595
- abi: C,
596
- functionName: "multiAttest",
597
- args: [e]
598
- })
599
- };
600
- }
601
- function R(e) {
602
- let { easContractAddress: t } = $();
603
- return {
604
- to: t,
605
- data: f({
606
- abi: C,
607
- functionName: "multiRevoke",
608
- args: [e.map((e) => ({
609
- schema: e.schema,
610
- data: e.data.map((e) => ({
611
- uid: e.uid,
612
- value: e.value ?? 0n
613
- }))
614
- }))]
615
- })
616
- };
617
- }
618
- var ke = "0x" + "0".repeat(64);
619
- async function Ae(e) {
620
- let t = await N().readContract({
621
- address: v,
622
- abi: D,
623
- functionName: "getSchema",
624
- args: [e]
625
- });
626
- return !t || t.uid === ke ? null : {
627
- uid: t.uid,
628
- resolver: t.resolver,
629
- revocable: t.revocable,
630
- schema: t.schema
631
- };
632
- }
633
- function je(e) {
634
- return {
635
- to: v,
636
- data: f({
637
- abi: D,
638
- functionName: "register",
639
- args: [
640
- e.schema,
641
- e.resolverAddress,
642
- e.revocable
643
- ]
644
- })
645
- };
646
- }
647
- //#endregion
648
- //#region src/helpers/easDirect.ts
649
- var z = "0x" + "0".repeat(64);
650
- function Me(e) {
651
- return I(e);
652
- }
653
- function Ne(e) {
654
- return L(e);
655
- }
656
- function Pe(e) {
657
- return d([{ type: "bytes32" }], [e]);
658
- }
659
- function Fe(e, t) {
660
- return B(e, t)[0]?.uid;
661
- }
662
- function B(e, t) {
663
- if (!e.logs?.length) return [];
664
- let n = t.toLowerCase(), r = e.logs.filter((e) => e.address && e.address.toLowerCase() === n);
665
- if (!r.length) return [];
666
- try {
667
- let e = m({
668
- abi: C,
669
- eventName: "Attested",
670
- logs: r,
671
- strict: !1
672
- }), t = [];
673
- for (let n of e) {
674
- let e = n.args?.uid, r = n.args?.schemaUID;
675
- e && e !== z && r && t.push({
676
- schemaUid: r,
677
- uid: e
678
- });
679
- }
680
- return t;
681
- } catch {
682
- return [];
683
- }
684
- }
685
- function V(e) {
686
- let { modularAccountModuleContract: t } = $(), n = t?.trim();
687
- return n && /^0x[0-9a-fA-F]{40}$/.test(n) ? Ie(n, e) : R(e);
688
- }
689
- function Ie(e, t) {
690
- return {
691
- to: e,
692
- data: f({
693
- abi: C,
694
- functionName: "multiRevoke",
695
- args: [t.map((e) => ({
696
- schema: e.schema,
697
- data: e.data.map((e) => ({
698
- uid: e.uid,
699
- value: e.value ?? 0n
700
- }))
701
- }))]
702
- })
703
- };
704
- }
705
- //#endregion
706
- //#region src/helpers/publishWalletRegistry.ts
707
- var H = null;
708
- function Le() {
709
- return n.isInitialized() ? Promise.resolve() : new Promise((e) => {
710
- n.onReady(() => e());
711
- });
712
- }
713
- async function Re(e) {
714
- if (H = e, !e) return;
715
- await Le();
716
- let t = /* @__PURE__ */ new Set();
717
- for (let n of e.ownedAddresses ?? []) n && t.add(n.toLowerCase());
718
- t.add(e.signer.address.toLowerCase()), t.add(e.txSender.address.toLowerCase()), e.publisherAddress && t.add(e.publisherAddress.toLowerCase());
719
- try {
720
- await n.setAddresses({ owned: [...t] });
721
- let r = e.publisherAddress ?? e.signer.address;
722
- r && await n.claimUnpublishedDrafts(r);
723
- } catch (e) {
724
- console.warn("[publishWalletRegistry] Failed to set seed client addresses:", e);
725
- }
726
- }
727
- function U() {
728
- return H;
729
- }
730
- function ze() {
731
- H = null;
732
- }
733
- //#endregion
734
- //#region src/helpers/seedSigner.ts
735
- var W = Symbol.for("seedprotocol.SeedSigner"), G = Symbol.for("seedprotocol.SeedTxSender");
736
- function K(e) {
737
- return Object.assign(e, { [W]: !0 });
738
- }
739
- function q(e) {
740
- return Object.assign(e, { [G]: !0 });
741
- }
742
- function J(e) {
743
- return !!e && typeof e == "object" && W in e;
744
- }
745
- function Y(e) {
746
- return !!e && typeof e == "object" && G in e;
747
- }
748
- function X(e) {
749
- return !!e && typeof e == "object" && "signer" in e && "txSender" in e && J(e.signer) && Y(e.txSender);
750
- }
751
- function Be(e) {
752
- let t = e.address;
753
- return {
754
- signer: K({
755
- address: t,
756
- signMessage: async ({ message: t }) => {
757
- if (typeof t == "string") return await e.signMessage(t);
758
- let n = t.raw, r = typeof n == "string" ? oe.getBytes(n) : n instanceof Uint8Array ? n : new Uint8Array(n);
759
- return await e.signMessage(r);
760
- }
761
- }),
762
- txSender: q({
763
- address: t,
764
- sendTransaction: async (t) => ({ transactionHash: (await e.sendTransaction({
765
- to: t.to,
766
- data: t.data,
767
- value: t.value,
768
- gasLimit: t.gas
769
- })).hash })
770
- })
771
- };
772
- }
773
- function Ve(e) {
774
- if (X(e)) return e.signer;
775
- if (J(e)) return e;
776
- throw Error("@seedprotocol/publish: expected a SeedSigner or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
777
- }
778
- function He(e) {
779
- if (X(e)) return e.txSender;
780
- if (Y(e)) return e;
781
- throw Error("@seedprotocol/publish: expected a SeedTxSender or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
782
- }
783
- function Ue(e) {
784
- if (X(e)) return e;
785
- throw Error("@seedprotocol/publish: expected a PublishWallet (signer + txSender). Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
786
- }
787
- //#endregion
788
- //#region src/helpers/adapters/thirdwebAccount.ts
789
- var We = /* @__PURE__ */ _({
790
- asSeedSignerFromThirdweb: () => qe,
791
- asThirdwebPublishWallet: () => Ke,
792
- fromThirdwebAccount: () => Z
793
- });
794
- function Ge() {
795
- let e = k();
796
- return e.id === ae.id ? ae : ne({
797
- id: e.id,
798
- name: e.name,
799
- nativeCurrency: e.nativeCurrency,
800
- rpc: e.rpcUrls.default.http[0] ?? ""
801
- });
802
- }
803
- function Z(e) {
804
- let t = e.address;
805
- return {
806
- signer: K({
807
- address: t,
808
- signMessage: async ({ message: t }) => await e.signMessage({ message: t })
809
- }),
810
- txSender: q({
811
- address: t,
812
- sendTransaction: async (t) => {
813
- let { getClient: n } = await import("./publishAuthorization-CSN2FsQk.js").then((e) => e.B), r = Ge(), i = re({
814
- client: n(),
815
- chain: r,
816
- to: t.to,
817
- data: t.data,
818
- value: t.value,
819
- gas: t.gas
820
- });
821
- return { transactionHash: (await ie({
822
- account: e,
823
- transaction: i
824
- })).transactionHash };
825
- }
826
- })
827
- };
828
- }
829
- function Ke(e) {
830
- if (X(e)) return e;
831
- if (J(e)) throw Error("@seedprotocol/publish/thirdweb: SeedSigner alone cannot send sponsored txs. Pass fromThirdwebAccount(account) or a PublishWallet.");
832
- return Z(e);
833
- }
834
- function qe(e) {
835
- return X(e) ? e.signer : J(e) ? e : Z(e).signer;
836
- }
837
- //#endregion
838
- //#region src/services/revoke/revokeAttestations.ts
839
- async function Je(e) {
840
- if (!e) return !1;
841
- let t = i();
842
- if (!t) return !1;
843
- let n = await t(), r = e.toLowerCase();
844
- return !!n?.some((e) => e?.toLowerCase() === r);
845
- }
846
- async function Ye(e) {
847
- let { seedLocalId: n, seedUid: i, seedSchemaUid: c } = e, l = await r({
848
- seedLocalId: n,
849
- seedUid: i
850
- }), u = U();
851
- if (!u) try {
852
- let { getConnectedAccount: e } = await import("./publishAuthorization-CSN2FsQk.js").then((e) => e.B), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-BEhKQBTm.js"), n = await e();
853
- if (!n) throw Error("No wallet connected. Connect a wallet to revoke attestations.");
854
- u = Z(await t({
855
- account: n,
856
- attester: l
857
- }));
858
- } catch (e) {
859
- 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 });
860
- }
861
- else if (await Je(l)) {
862
- let { modularAccountModuleContract: e } = $();
863
- if (!e?.trim()) throw Error("Revocation not supported for items published via the modular executor.");
864
- }
865
- let te = u.txSender, [d, f] = await Promise.all([o(i), a(i)]), p = d.map((e) => e.uid).filter((e) => s(e)), m = /* @__PURE__ */ new Map();
866
- for (let { uid: e, schemaUid: t } of f) {
867
- if (!s(e)) continue;
868
- let n = m.get(t) ?? [];
869
- n.push(e), m.set(t, n);
870
- }
871
- let h = [];
872
- for (let [e, t] of m) t.length > 0 && h.push({
873
- schema: e,
874
- data: t.map((e) => ({ uid: e }))
875
- });
876
- p.length > 0 && h.push({
877
- schema: t,
878
- data: p.map((e) => ({ uid: e }))
879
- }), h.push({
880
- schema: c,
881
- data: [{ uid: i }]
882
- });
883
- for (let e of h) {
884
- if (e.data.length === 0) continue;
885
- let t = V([e]);
886
- try {
887
- await P((await te.sendTransaction(t)).transactionHash);
888
- } catch (e) {
889
- let t = e instanceof Error ? e.message : String(e);
890
- if (t.includes("AccessDenied") || t.includes("0x4ca88867")) throw Error("Only the original attester can revoke attestations. Connect the wallet that published this item.");
891
- if (t.includes("AlreadyRevoked")) continue;
892
- throw e;
893
- }
894
- }
895
- let ne = Math.floor(Date.now() / 1e3);
896
- await ee({
897
- seedLocalId: n,
898
- revokedAt: ne
899
- });
900
- }
901
- //#endregion
902
- //#region src/config.ts
903
- var Q = null;
904
- function Xe(e) {
905
- Q = e;
906
- }
907
- function Ze() {
908
- return Q;
909
- }
910
- function Qe(e) {
911
- Xe(e), l(async () => {
912
- let e = U();
913
- if (e?.publisherAddress) return e.publisherAddress;
914
- if (e?.signer?.address) return e.signer.address;
915
- }), u(Ye), import("./worker-B1PcFPLi.js").then((e) => {
916
- e.startArweaveL1FinalizeWorker();
917
- }), c(async () => e.useModularExecutor && e.modularAccountModuleContract ? [e.modularAccountModuleContract] : []);
918
- }
919
- var $e = Qe;
920
- function $() {
921
- let t = Q;
922
- if (!t) throw Error("@seedprotocol/publish: Call initPublish() or ensure PublishProvider is mounted with config before using the publish package");
923
- let n = t.useArweaveBundler ?? !1, r = t.arweaveUploadVerificationBaseUrl ?? t.uploadApiBaseUrl, i = t.arweaveGraphqlUrl ?? e, a = t.useModularExecutor ?? !1, o = t.chain ?? O, s = t.accountMode ?? (t.bundlerUrl ? "eip7702" : "eoa");
924
- return {
925
- ...t,
926
- thirdwebAccountFactoryAddress: y,
927
- easContractAddress: b,
928
- useIntegerLocalIds: t.useIntegerLocalIds ?? !1,
929
- useDirectEas: t.useDirectEas ?? !1,
930
- modularAccountModuleData: t.modularAccountModuleData ?? "0x",
931
- useModularExecutor: a,
932
- useArweaveBundler: n,
933
- arweaveUploadVerificationBaseUrl: r,
934
- arweaveGraphqlUrl: i,
935
- autoDeployManagedAccount: t.autoDeployManagedAccount ?? !1,
936
- autoDeployEip7702ModularAccount: et(t, a),
937
- chain: o,
938
- accountMode: s
939
- };
940
- }
941
- function et(e, t) {
942
- return e.autoDeployEip7702ModularAccount === !0 || e.autoDeployEip7702ModularAccount !== !1 && t;
943
- }
944
- //#endregion
945
- export { le as $, L as A, _e as B, Fe as C, V as D, Ne as E, Ce as F, A as G, F as H, Ee as I, b as J, k as K, we as L, xe as M, Se as N, De as O, je as P, de as Q, Te as R, Pe as S, Me as T, be as U, N as V, P as W, ue as X, se as Y, x as Z, Y as _, qe as a, Re as b, We as c, He as d, ce as et, K as f, J as g, X as h, Qe as i, R as j, I as k, Ue as l, Be as m, Ze as n, _ as nt, Ke as o, q as p, he as q, $ as r, Z as s, $e as t, y as tt, Ve as u, ze as v, B as w, z as x, U as y, Ae as z };
946
-
947
- //# sourceMappingURL=config-qjpaJcBA.js.map