@seedprotocol/publish 0.6.9 → 0.7.0

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