@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.
- package/CHANGELOG.md +11 -0
- package/README.md +1 -19
- package/dist/{chainConfig-3sSqEVQh.js → chainConfig-DWzoOtkS.js} +439 -419
- package/dist/chainConfig-DWzoOtkS.js.map +1 -0
- package/dist/config.d.ts +5 -11
- package/dist/config.d.ts.map +1 -1
- package/dist/ensureAutomationSessionKey-h3zOmDr5.js +84 -0
- package/dist/ensureAutomationSessionKey-h3zOmDr5.js.map +1 -0
- package/dist/{ensureModularPublishBootstrap-DGBKVGg5.js → ensureModularPublishBootstrap-BImiIFJe.js} +9 -10
- package/dist/{ensureModularPublishBootstrap-5HJDqJJM.js.map → ensureModularPublishBootstrap-BImiIFJe.js.map} +1 -1
- package/dist/{ensureSmartWalletThenPublish-D5GSZRyZ.js → ensureSmartWalletThenPublish-DuOYPJFd.js} +9 -10
- package/dist/{ensureSmartWalletThenPublish-D5GSZRyZ.js.map → ensureSmartWalletThenPublish-DuOYPJFd.js.map} +1 -1
- package/dist/errors.d.ts +9 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/helpers/abi/executor.d.ts +16 -7
- package/dist/helpers/abi/executor.d.ts.map +1 -1
- package/dist/helpers/abi/factory.d.ts +11 -0
- package/dist/helpers/abi/factory.d.ts.map +1 -1
- package/dist/helpers/abi/publisher.d.ts +7 -74
- package/dist/helpers/abi/publisher.d.ts.map +1 -1
- package/dist/helpers/abi/seedExecutorRouter.d.ts +9 -1
- package/dist/helpers/abi/seedExecutorRouter.d.ts.map +1 -1
- package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
- package/dist/helpers/chainClient.d.ts +18 -2
- package/dist/helpers/chainClient.d.ts.map +1 -1
- package/dist/helpers/contracts/index.d.ts +15 -18
- package/dist/helpers/contracts/index.d.ts.map +1 -1
- package/dist/helpers/describeRevert.d.ts +3 -2
- package/dist/helpers/describeRevert.d.ts.map +1 -1
- package/dist/helpers/enrollPublishAutomation.d.ts +2 -2
- package/dist/helpers/enrollPublishAutomation.d.ts.map +1 -1
- package/dist/helpers/ensureAutomationSessionKey.d.ts.map +1 -1
- package/dist/helpers/ensureExecutorModule.d.ts +28 -5
- package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
- package/dist/helpers/executorModuleReadiness.d.ts +15 -1
- package/dist/helpers/executorModuleReadiness.d.ts.map +1 -1
- package/dist/helpers/gasLog.d.ts +8 -0
- package/dist/helpers/gasLog.d.ts.map +1 -0
- package/dist/helpers/seedPaymaster.d.ts +27 -0
- package/dist/helpers/seedPaymaster.d.ts.map +1 -0
- package/dist/helpers/thirdweb.d.ts.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +316 -342
- package/dist/index.js.map +1 -1
- package/dist/{managedAccountAdmin-B64V1rlU.js → managedAccountAdmin-B4HkLWWE.js} +9 -10
- package/dist/{managedAccountAdmin-B64V1rlU.js.map → managedAccountAdmin-B4HkLWWE.js.map} +1 -1
- package/dist/{publishAuthorization-CxBkijU6.js → publishAuthorization-DgDI4zor.js} +1104 -1018
- package/dist/publishAuthorization-DgDI4zor.js.map +1 -0
- package/dist/{publishThirdwebClient-CQ29pzG2.js → publishThirdwebClient-CO18ST7C.js} +2 -2
- package/dist/{publishThirdwebClient-CQ29pzG2.js.map → publishThirdwebClient-CO18ST7C.js.map} +1 -1
- package/dist/{resolveRevokeAccount-CehU81k6.js → resolveRevokeAccount-DsNod8ti.js} +11 -11
- package/dist/{resolveRevokeAccount-B5iXpuRT.js.map → resolveRevokeAccount-DsNod8ti.js.map} +1 -1
- package/dist/thirdweb.d.ts +2 -1
- package/dist/thirdweb.d.ts.map +1 -1
- package/dist/thirdweb.js +155 -156
- package/dist/thirdweb.js.map +1 -1
- package/dist/{worker-2dUZSapK.js → worker-CN7zg73B.js} +2 -2
- package/dist/{worker-2dUZSapK.js.map → worker-CN7zg73B.js.map} +1 -1
- package/package.json +6 -6
- package/dist/chainConfig-3sSqEVQh.js.map +0 -1
- package/dist/chainConfig-3wlYarAG.js +0 -1433
- package/dist/chainConfig-3wlYarAG.js.map +0 -1
- package/dist/chainConfig-BRcsMopd.js +0 -1442
- package/dist/chainConfig-BRcsMopd.js.map +0 -1
- package/dist/chainConfig-BYm5OXpk.js +0 -1433
- package/dist/chainConfig-BYm5OXpk.js.map +0 -1
- package/dist/chainConfig-CfVGYAsY.js +0 -1311
- package/dist/chainConfig-CfVGYAsY.js.map +0 -1
- package/dist/chainConfig-DDA4YmAB.js +0 -1424
- package/dist/chainConfig-DDA4YmAB.js.map +0 -1
- package/dist/config-BA9la8B6.js +0 -941
- package/dist/config-BA9la8B6.js.map +0 -1
- package/dist/config-BqguD2Tt.js +0 -806
- package/dist/config-BqguD2Tt.js.map +0 -1
- package/dist/config-CPBd5C_b.js +0 -1201
- package/dist/config-CPBd5C_b.js.map +0 -1
- package/dist/config-DkIapO94.js +0 -955
- package/dist/config-DkIapO94.js.map +0 -1
- package/dist/config-EQZZNH9H.js +0 -955
- package/dist/config-EQZZNH9H.js.map +0 -1
- package/dist/config-qjpaJcBA.js +0 -947
- package/dist/config-qjpaJcBA.js.map +0 -1
- package/dist/deploy-BJYwLfz-.js +0 -15
- package/dist/deploy-BJYwLfz-.js.map +0 -1
- package/dist/enrollPublishAutomation-DYQMoylY.js +0 -3422
- package/dist/enrollPublishAutomation-DYQMoylY.js.map +0 -1
- package/dist/ensureAutomationSessionKey-BMHLKfjj.js +0 -85
- package/dist/ensureAutomationSessionKey-BMHLKfjj.js.map +0 -1
- package/dist/ensureAutomationSessionKey-BZ9_3FMW.js +0 -86
- package/dist/ensureAutomationSessionKey-BZ9_3FMW.js.map +0 -1
- package/dist/ensureAutomationSessionKey-Bq0PaTYE.js +0 -84
- package/dist/ensureAutomationSessionKey-Bq0PaTYE.js.map +0 -1
- package/dist/ensureAutomationSessionKey-C8D7BFjU.js +0 -85
- package/dist/ensureAutomationSessionKey-C8D7BFjU.js.map +0 -1
- package/dist/ensureAutomationSessionKey-CClLVX2w.js +0 -85
- package/dist/ensureAutomationSessionKey-CClLVX2w.js.map +0 -1
- package/dist/ensureAutomationSessionKey-CNNN1jBQ.js +0 -85
- package/dist/ensureAutomationSessionKey-CNNN1jBQ.js.map +0 -1
- package/dist/ensureAutomationSessionKey-D8Gki6U6.js +0 -85
- package/dist/ensureAutomationSessionKey-D8Gki6U6.js.map +0 -1
- package/dist/ensureAutomationSessionKey-DEH7nwUc.js +0 -86
- package/dist/ensureAutomationSessionKey-DEH7nwUc.js.map +0 -1
- package/dist/ensureAutomationSessionKey-DKriW4Hr.js +0 -85
- package/dist/ensureAutomationSessionKey-DKriW4Hr.js.map +0 -1
- package/dist/ensureAutomationSessionKey-Dhvbii2M.js +0 -86
- package/dist/ensureAutomationSessionKey-Dhvbii2M.js.map +0 -1
- package/dist/ensureAutomationSessionKey-Dyfk8qVp.js +0 -85
- package/dist/ensureAutomationSessionKey-Dyfk8qVp.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-5HJDqJJM.js +0 -24
- package/dist/ensureModularPublishBootstrap-BW8jKN_A.js +0 -24
- package/dist/ensureModularPublishBootstrap-BW8jKN_A.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-Btih5xbB.js +0 -129
- package/dist/ensureModularPublishBootstrap-Btih5xbB.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-C8wdnH1P.js +0 -128
- package/dist/ensureModularPublishBootstrap-C8wdnH1P.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-CI4U08Gc.js +0 -129
- package/dist/ensureModularPublishBootstrap-CI4U08Gc.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-CcU-hXll.js +0 -128
- package/dist/ensureModularPublishBootstrap-CcU-hXll.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-CdrykHAi.js +0 -24
- package/dist/ensureModularPublishBootstrap-CdrykHAi.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-DGBKVGg5.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-DaREOqSc.js +0 -129
- package/dist/ensureModularPublishBootstrap-DaREOqSc.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-DxIG-LUP.js +0 -24
- package/dist/ensureModularPublishBootstrap-DxIG-LUP.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js +0 -127
- package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js.map +0 -1
- package/dist/ensureSessionKey-D2Lq-56x.js +0 -363
- package/dist/ensureSessionKey-D2Lq-56x.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js +0 -48
- package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-BSYzckyS.js +0 -49
- package/dist/ensureSmartWalletThenPublish-BSYzckyS.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js +0 -49
- package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js +0 -48
- package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js +0 -49
- package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-CE7acryB.js +0 -49
- package/dist/ensureSmartWalletThenPublish-CE7acryB.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-DAomriGc.js +0 -48
- package/dist/ensureSmartWalletThenPublish-DAomriGc.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js +0 -48
- package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js +0 -48
- package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js +0 -48
- package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js.map +0 -1
- package/dist/errors-Du3LNbJN.js +0 -70
- package/dist/errors-Du3LNbJN.js.map +0 -1
- package/dist/errors-PZAaDlkq.js +0 -79
- package/dist/errors-PZAaDlkq.js.map +0 -1
- package/dist/helpers/adapters/managedAccountTxSender.d.ts +0 -21
- package/dist/helpers/adapters/managedAccountTxSender.d.ts.map +0 -1
- package/dist/helpers/modularAccount/abi.d.ts +0 -173
- package/dist/helpers/modularAccount/abi.d.ts.map +0 -1
- package/dist/helpers/modularAccount/deploy.d.ts +0 -13
- package/dist/helpers/modularAccount/deploy.d.ts.map +0 -1
- package/dist/helpers/modularAccount/eip712.d.ts +0 -30
- package/dist/helpers/modularAccount/eip712.d.ts.map +0 -1
- package/dist/helpers/modularAccount/encode.d.ts +0 -16
- package/dist/helpers/modularAccount/encode.d.ts.map +0 -1
- package/dist/helpers/modularAccount/ensureModule.d.ts +0 -10
- package/dist/helpers/modularAccount/ensureModule.d.ts.map +0 -1
- package/dist/helpers/modularAccount/ensureSessionKey.d.ts +0 -25
- package/dist/helpers/modularAccount/ensureSessionKey.d.ts.map +0 -1
- package/dist/helpers/modularAccount/index.d.ts +0 -9
- package/dist/helpers/modularAccount/index.d.ts.map +0 -1
- package/dist/helpers/modularAccount/permissions.d.ts +0 -32
- package/dist/helpers/modularAccount/permissions.d.ts.map +0 -1
- package/dist/helpers/modularAccount/reads.d.ts +0 -28
- package/dist/helpers/modularAccount/reads.d.ts.map +0 -1
- package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts +0 -31
- package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts.map +0 -1
- package/dist/helpers/thirdwebModularBootstrap.d.ts +0 -8
- package/dist/helpers/thirdwebModularBootstrap.d.ts.map +0 -1
- package/dist/helpers/transformPayloadToIntegerIds.d.ts +0 -34
- package/dist/helpers/transformPayloadToIntegerIds.d.ts.map +0 -1
- package/dist/managedAccountAdmin-BVLGWpEb.js +0 -29
- package/dist/managedAccountAdmin-BVLGWpEb.js.map +0 -1
- package/dist/managedAccountAdmin-Bje6X8Ds.js +0 -29
- package/dist/managedAccountAdmin-Bje6X8Ds.js.map +0 -1
- package/dist/managedAccountAdmin-C84-IlQ9.js +0 -29
- package/dist/managedAccountAdmin-C84-IlQ9.js.map +0 -1
- package/dist/managedAccountAdmin-DhCRBoPX.js +0 -29
- package/dist/managedAccountAdmin-DhCRBoPX.js.map +0 -1
- package/dist/publishAuthorization-B0G1em4a.js +0 -3695
- package/dist/publishAuthorization-B0G1em4a.js.map +0 -1
- package/dist/publishAuthorization-B1BVVfp0.js +0 -3604
- package/dist/publishAuthorization-B1BVVfp0.js.map +0 -1
- package/dist/publishAuthorization-Bltn3y_K.js +0 -3599
- package/dist/publishAuthorization-Bltn3y_K.js.map +0 -1
- package/dist/publishAuthorization-By2Tt9kW.js +0 -3912
- package/dist/publishAuthorization-By2Tt9kW.js.map +0 -1
- package/dist/publishAuthorization-CSN2FsQk.js +0 -3479
- package/dist/publishAuthorization-CSN2FsQk.js.map +0 -1
- package/dist/publishAuthorization-CxBkijU6.js.map +0 -1
- package/dist/publishAuthorization-CxWY7lAQ.js +0 -3706
- package/dist/publishAuthorization-CxWY7lAQ.js.map +0 -1
- package/dist/publishAuthorization-DEriY_jm.js +0 -3687
- package/dist/publishAuthorization-DEriY_jm.js.map +0 -1
- package/dist/publishAuthorization-DfAQs1sN.js +0 -3707
- package/dist/publishAuthorization-DfAQs1sN.js.map +0 -1
- package/dist/publishAuthorization-DgdmgLTa.js +0 -3520
- package/dist/publishAuthorization-DgdmgLTa.js.map +0 -1
- package/dist/publishAuthorization-DqhhCAhd.js +0 -3652
- package/dist/publishAuthorization-DqhhCAhd.js.map +0 -1
- package/dist/publishThirdwebClient-BdgkcqM7.js +0 -18
- package/dist/publishThirdwebClient-BdgkcqM7.js.map +0 -1
- package/dist/publishThirdwebClient-BkmDN480.js +0 -18
- package/dist/publishThirdwebClient-BkmDN480.js.map +0 -1
- package/dist/publishThirdwebClient-BnDhP3N-.js +0 -18
- package/dist/publishThirdwebClient-BnDhP3N-.js.map +0 -1
- package/dist/publishThirdwebClient-CZIVmr9Z.js +0 -18
- package/dist/publishThirdwebClient-CZIVmr9Z.js.map +0 -1
- package/dist/publishThirdwebClient-DroRrOFQ.js +0 -18
- package/dist/publishThirdwebClient-DroRrOFQ.js.map +0 -1
- package/dist/publishThirdwebClient-DzXFjQ7L.js +0 -18
- package/dist/publishThirdwebClient-DzXFjQ7L.js.map +0 -1
- package/dist/publishThirdwebClient-Dzb2vcEs.js +0 -18
- package/dist/publishThirdwebClient-Dzb2vcEs.js.map +0 -1
- package/dist/publishThirdwebClient-i8P7fivi.js +0 -18
- package/dist/publishThirdwebClient-i8P7fivi.js.map +0 -1
- package/dist/publishWalletRegistry-Cugh691z.js +0 -37
- package/dist/publishWalletRegistry-Cugh691z.js.map +0 -1
- package/dist/resolveRevokeAccount-B5iXpuRT.js +0 -38
- package/dist/resolveRevokeAccount-B7ImSb4Y.js +0 -38
- package/dist/resolveRevokeAccount-B7ImSb4Y.js.map +0 -1
- package/dist/resolveRevokeAccount-BEhKQBTm.js +0 -38
- package/dist/resolveRevokeAccount-BEhKQBTm.js.map +0 -1
- package/dist/resolveRevokeAccount-BM1j2l5Q.js +0 -38
- package/dist/resolveRevokeAccount-BM1j2l5Q.js.map +0 -1
- package/dist/resolveRevokeAccount-BtVG0xxc.js +0 -38
- package/dist/resolveRevokeAccount-BtVG0xxc.js.map +0 -1
- package/dist/resolveRevokeAccount-CJZZdBcQ.js +0 -39
- package/dist/resolveRevokeAccount-CJZZdBcQ.js.map +0 -1
- package/dist/resolveRevokeAccount-CaIMuCee.js +0 -39
- package/dist/resolveRevokeAccount-CaIMuCee.js.map +0 -1
- package/dist/resolveRevokeAccount-CehU81k6.js.map +0 -1
- package/dist/resolveRevokeAccount-Cg4TQgnd.js +0 -38
- package/dist/resolveRevokeAccount-Cg4TQgnd.js.map +0 -1
- package/dist/resolveRevokeAccount-DHnxtEIj.js +0 -39
- package/dist/resolveRevokeAccount-DHnxtEIj.js.map +0 -1
- package/dist/resolveRevokeAccount-S-2WXkNh.js +0 -38
- package/dist/resolveRevokeAccount-S-2WXkNh.js.map +0 -1
- package/dist/resolveRevokeAccount-yWARIv9i.js +0 -38
- package/dist/resolveRevokeAccount-yWARIv9i.js.map +0 -1
- package/dist/seedSigner-CFzMD7Rb.js +0 -66
- package/dist/seedSigner-CFzMD7Rb.js.map +0 -1
- package/dist/thirdweb-BoksPRz3.js +0 -194
- package/dist/thirdweb-BoksPRz3.js.map +0 -1
- package/dist/thirdwebAccount-C2iOcp4_.js +0 -59
- package/dist/thirdwebAccount-C2iOcp4_.js.map +0 -1
- package/dist/worker-B1PcFPLi.js +0 -69
- package/dist/worker-B1PcFPLi.js.map +0 -1
- package/dist/worker-B8gN5WTx.js +0 -69
- package/dist/worker-B8gN5WTx.js.map +0 -1
- package/dist/worker-BCG1r0AS.js +0 -69
- package/dist/worker-BCG1r0AS.js.map +0 -1
- package/dist/worker-BgErCNTb.js +0 -69
- package/dist/worker-BgErCNTb.js.map +0 -1
- package/dist/worker-C07rPV2G.js +0 -69
- package/dist/worker-C07rPV2G.js.map +0 -1
- package/dist/worker-C9Za_dlQ.js +0 -69
- package/dist/worker-C9Za_dlQ.js.map +0 -1
- package/dist/worker-CEgulQnm.js +0 -69
- package/dist/worker-CEgulQnm.js.map +0 -1
- package/dist/worker-C_TL94He.js +0 -69
- package/dist/worker-C_TL94He.js.map +0 -1
- package/dist/worker-DBC_g-3I.js +0 -69
- package/dist/worker-DBC_g-3I.js.map +0 -1
- package/dist/worker-DypHzXgH.js +0 -69
- package/dist/worker-DypHzXgH.js.map +0 -1
- package/dist/worker-ZL4Wg19t.js +0 -69
- package/dist/worker-ZL4Wg19t.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a,
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { lookup as Vt, toRegistrableDomain as Ht } from "rdapper";
|
|
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";
|
|
11
|
+
import { entryPoint08Address as R } from "viem/account-abstraction";
|
|
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
|
|
20
|
+
function Kt(e) {
|
|
22
21
|
let t = [
|
|
23
22
|
["chainId", e?.chainId],
|
|
24
23
|
["rpcUrl", e?.rpcUrl],
|
|
@@ -30,7 +29,7 @@ function Ut(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 =
|
|
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 Ut(e) {
|
|
|
64
63
|
}
|
|
65
64
|
//#endregion
|
|
66
65
|
//#region src/react/PublishModeButtons.tsx
|
|
67
|
-
var
|
|
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,17 +78,17 @@ var Wt = ({ 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__ */
|
|
81
|
+
return /* @__PURE__ */ jt("div", {
|
|
83
82
|
role: "group",
|
|
84
83
|
"aria-label": r,
|
|
85
84
|
style: i,
|
|
86
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ I("button", {
|
|
87
86
|
type: "button",
|
|
88
87
|
disabled: n,
|
|
89
88
|
style: a(e === "patch"),
|
|
90
89
|
onClick: () => t("patch"),
|
|
91
90
|
children: "Publish updates"
|
|
92
|
-
}), /* @__PURE__ */
|
|
91
|
+
}), /* @__PURE__ */ I("button", {
|
|
93
92
|
type: "button",
|
|
94
93
|
disabled: n,
|
|
95
94
|
style: a(e === "new_version"),
|
|
@@ -97,11 +96,11 @@ var Wt = ({ value: e, onChange: t, disabled: n = !1, "aria-label": r = "Publish
|
|
|
97
96
|
children: "New version"
|
|
98
97
|
})]
|
|
99
98
|
});
|
|
100
|
-
},
|
|
101
|
-
t &&
|
|
102
|
-
}, [t]), /* @__PURE__ */
|
|
103
|
-
value: t ??
|
|
104
|
-
children: /* @__PURE__ */
|
|
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,30 +108,30 @@ var Wt = ({ 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
|
|
113
|
-
let n = t.chain ??
|
|
114
|
-
if (!
|
|
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
|
-
|
|
116
|
+
r = t[0];
|
|
118
117
|
}
|
|
119
|
-
let
|
|
120
|
-
account:
|
|
118
|
+
let i = nt({
|
|
119
|
+
account: r,
|
|
121
120
|
chain: n,
|
|
122
|
-
transport:
|
|
121
|
+
transport: rt(e)
|
|
123
122
|
});
|
|
124
123
|
return {
|
|
125
|
-
signer:
|
|
126
|
-
address:
|
|
127
|
-
signMessage: async ({ message: e }) =>
|
|
128
|
-
account:
|
|
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:
|
|
133
|
-
address:
|
|
134
|
-
sendTransaction: async (e) => ({ transactionHash: await
|
|
135
|
-
account:
|
|
131
|
+
txSender: h({
|
|
132
|
+
address: r,
|
|
133
|
+
sendTransaction: async (e) => ({ transactionHash: await i.sendTransaction({
|
|
134
|
+
account: r,
|
|
136
135
|
chain: n,
|
|
137
136
|
to: e.to,
|
|
138
137
|
data: e.data,
|
|
@@ -142,14 +141,14 @@ async function Kt(e, t = {}) {
|
|
|
142
141
|
})
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
|
-
async function
|
|
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
|
|
147
|
+
return H(t, e);
|
|
149
148
|
}
|
|
150
149
|
//#endregion
|
|
151
150
|
//#region src/helpers/adapters/permissionlessTxSender.ts
|
|
152
|
-
function
|
|
151
|
+
function Xt(e) {
|
|
153
152
|
return {
|
|
154
153
|
address: e.address,
|
|
155
154
|
type: "local",
|
|
@@ -164,7 +163,7 @@ function Jt(e) {
|
|
|
164
163
|
}
|
|
165
164
|
};
|
|
166
165
|
}
|
|
167
|
-
async function
|
|
166
|
+
async function Zt(e) {
|
|
168
167
|
let t;
|
|
169
168
|
try {
|
|
170
169
|
t = (await (await fetch(e, {
|
|
@@ -182,58 +181,58 @@ async function Yt(e) {
|
|
|
182
181
|
}
|
|
183
182
|
if (!Array.isArray(t)) return;
|
|
184
183
|
let n = t.map((e) => String(e).toLowerCase());
|
|
185
|
-
if (!n.includes(
|
|
186
|
-
}
|
|
187
|
-
async function
|
|
188
|
-
let { signer: t, bundlerUrl: n, paymasterUrl:
|
|
189
|
-
await
|
|
190
|
-
let
|
|
191
|
-
chain:
|
|
192
|
-
transport:
|
|
193
|
-
}),
|
|
194
|
-
client:
|
|
195
|
-
owner:
|
|
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.`);
|
|
185
|
+
}
|
|
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
|
-
address:
|
|
196
|
+
address: R,
|
|
198
197
|
version: "0.8"
|
|
199
198
|
}
|
|
200
|
-
}),
|
|
201
|
-
transport:
|
|
199
|
+
}), u = It({
|
|
200
|
+
transport: O(r ?? n),
|
|
202
201
|
entryPoint: {
|
|
203
|
-
address:
|
|
202
|
+
address: R,
|
|
204
203
|
version: "0.8"
|
|
205
204
|
}
|
|
206
|
-
}),
|
|
207
|
-
account:
|
|
208
|
-
chain:
|
|
209
|
-
bundlerTransport:
|
|
210
|
-
paymaster:
|
|
211
|
-
userOperation: { estimateFeesPerGas: async () => (await
|
|
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
|
|
214
|
-
address:
|
|
212
|
+
return h({
|
|
213
|
+
address: l.address ?? o,
|
|
215
214
|
sendTransaction: async (e) => {
|
|
216
215
|
let t;
|
|
217
216
|
try {
|
|
218
|
-
let n = await
|
|
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
|
|
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:
|
|
227
|
+
return { transactionHash: Qt(t, l.address) };
|
|
229
228
|
}
|
|
230
229
|
});
|
|
231
230
|
}
|
|
232
|
-
function
|
|
231
|
+
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
|
|
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
|
|
@@ -241,42 +240,42 @@ function Zt(e, t) {
|
|
|
241
240
|
}
|
|
242
241
|
//#endregion
|
|
243
242
|
//#region src/react/useSeedWallet.ts
|
|
244
|
-
function
|
|
245
|
-
let [e, n] =
|
|
246
|
-
|
|
247
|
-
n(
|
|
243
|
+
function $t() {
|
|
244
|
+
let [e, n] = F(() => x()), [r, a] = F(() => x() ? "connected" : "disconnected");
|
|
245
|
+
N(() => {
|
|
246
|
+
n(x());
|
|
248
247
|
}, []);
|
|
249
|
-
let
|
|
250
|
-
|
|
248
|
+
let o = kt(async (e) => {
|
|
249
|
+
a("connecting");
|
|
251
250
|
try {
|
|
252
|
-
let
|
|
253
|
-
|
|
254
|
-
let
|
|
255
|
-
|
|
256
|
-
signer:
|
|
257
|
-
bundlerUrl:
|
|
258
|
-
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:
|
|
260
|
+
signer: t.signer,
|
|
262
261
|
txSender: o,
|
|
263
|
-
ownedAddresses: [
|
|
264
|
-
publisherAddress:
|
|
262
|
+
ownedAddresses: [t.signer.address, o.address],
|
|
263
|
+
publisherAddress: t.signer.address
|
|
265
264
|
};
|
|
266
|
-
return await
|
|
265
|
+
return await c(s), n(s), a("connected"), s;
|
|
267
266
|
} catch (e) {
|
|
268
|
-
throw
|
|
267
|
+
throw a("disconnected"), e;
|
|
269
268
|
}
|
|
270
|
-
}, []),
|
|
271
|
-
|
|
269
|
+
}, []), s = kt(() => {
|
|
270
|
+
t(), n(null), a("disconnected");
|
|
272
271
|
}, []);
|
|
273
272
|
return {
|
|
274
273
|
address: e?.signer.address,
|
|
275
274
|
signer: e?.signer,
|
|
276
275
|
txSender: e?.txSender,
|
|
277
276
|
status: r,
|
|
278
|
-
connect:
|
|
279
|
-
disconnect:
|
|
277
|
+
connect: o,
|
|
278
|
+
disconnect: s
|
|
280
279
|
};
|
|
281
280
|
}
|
|
282
281
|
//#endregion
|
|
@@ -287,38 +286,38 @@ var W = {
|
|
|
287
286
|
NEW_VERSION: 80000n,
|
|
288
287
|
ATTESTATION: 55000n
|
|
289
288
|
};
|
|
290
|
-
function
|
|
289
|
+
function en(e) {
|
|
291
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
|
|
296
|
-
function
|
|
294
|
+
var tn = 6e4, G = null, K = null;
|
|
295
|
+
function nn() {
|
|
297
296
|
try {
|
|
298
|
-
return
|
|
297
|
+
return w().getTokenPrices;
|
|
299
298
|
} catch {
|
|
300
299
|
return;
|
|
301
300
|
}
|
|
302
301
|
}
|
|
303
|
-
async function
|
|
302
|
+
async function rn(e) {
|
|
304
303
|
let t = await fetch(`https://api.coinbase.com/v2/prices/${e}-USD/spot`);
|
|
305
304
|
if (!t.ok) throw Error(`Coinbase ${e}-USD spot failed: ${t.status}`);
|
|
306
305
|
let n = await t.json(), r = Number(n.data?.amount);
|
|
307
306
|
if (!Number.isFinite(r) || r <= 0) throw Error(`Invalid ${e} USD price`);
|
|
308
307
|
return r;
|
|
309
308
|
}
|
|
310
|
-
async function
|
|
311
|
-
let [e, t] = await Promise.all([
|
|
309
|
+
async function an() {
|
|
310
|
+
let [e, t] = await Promise.all([rn("ETH"), rn("AR")]);
|
|
312
311
|
return {
|
|
313
312
|
ethUsd: e,
|
|
314
313
|
arUsd: t
|
|
315
314
|
};
|
|
316
315
|
}
|
|
317
|
-
async function
|
|
316
|
+
async function on(e) {
|
|
318
317
|
let t = Date.now();
|
|
319
|
-
return !e?.forceRefresh && G && t - G.fetchedAt <
|
|
318
|
+
return !e?.forceRefresh && G && t - G.fetchedAt < tn ? G : (K && !e?.forceRefresh || (K = (async () => {
|
|
320
319
|
try {
|
|
321
|
-
let e =
|
|
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()
|
|
@@ -332,27 +331,27 @@ async function an(e) {
|
|
|
332
331
|
}
|
|
333
332
|
})()), K);
|
|
334
333
|
}
|
|
335
|
-
function
|
|
334
|
+
function sn() {
|
|
336
335
|
G = null, K = null;
|
|
337
336
|
}
|
|
338
337
|
//#endregion
|
|
339
338
|
//#region src/services/publishCost/marketRates.ts
|
|
340
|
-
var
|
|
341
|
-
async function ln() {
|
|
342
|
-
return b().getGasPrice();
|
|
343
|
-
}
|
|
339
|
+
var cn = 6e4, ln = 1e6, q = null, J = null;
|
|
344
340
|
async function un() {
|
|
345
|
-
|
|
346
|
-
return Number(e) / cn;
|
|
341
|
+
return ye().getGasPrice();
|
|
347
342
|
}
|
|
348
|
-
async function dn(
|
|
343
|
+
async function dn() {
|
|
344
|
+
let e = BigInt(await Ee().transactions.getPrice(ln));
|
|
345
|
+
return Number(e) / ln;
|
|
346
|
+
}
|
|
347
|
+
async function fn(e) {
|
|
349
348
|
let t = Date.now();
|
|
350
|
-
return !e?.forceRefresh && q && t - q.fetchedAt <
|
|
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
|
-
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
on({ forceRefresh: e?.forceRefresh }),
|
|
353
|
+
un(),
|
|
354
|
+
dn()
|
|
356
355
|
]), i = {
|
|
357
356
|
...t,
|
|
358
357
|
gasPriceWei: n,
|
|
@@ -368,15 +367,15 @@ async function dn(e) {
|
|
|
368
367
|
}
|
|
369
368
|
})()), J);
|
|
370
369
|
}
|
|
371
|
-
function
|
|
372
|
-
q = null, J = null,
|
|
370
|
+
function pn() {
|
|
371
|
+
q = null, J = null, sn();
|
|
373
372
|
}
|
|
374
373
|
//#endregion
|
|
375
374
|
//#region src/services/publishCost/estimatePublishCost.ts
|
|
376
|
-
var
|
|
377
|
-
function
|
|
375
|
+
var mn = 0xe8d4a51000, hn = 0xde0b6b3a7640000;
|
|
376
|
+
function gn() {
|
|
378
377
|
try {
|
|
379
|
-
let e =
|
|
378
|
+
let e = w();
|
|
380
379
|
return {
|
|
381
380
|
evmUserPays: !e.paymasterUrl,
|
|
382
381
|
arweavePath: e.useArweaveBundler ? "bundler" : "l1"
|
|
@@ -388,22 +387,22 @@ function hn() {
|
|
|
388
387
|
};
|
|
389
388
|
}
|
|
390
389
|
}
|
|
391
|
-
function
|
|
390
|
+
function _n(e) {
|
|
392
391
|
return Math.round(e * 100) / 100;
|
|
393
392
|
}
|
|
394
|
-
function
|
|
395
|
-
let r = n?.evmUserPays ?? !0, i = n?.arweavePath ?? "l1", a =
|
|
393
|
+
function vn(e, t, n) {
|
|
394
|
+
let r = n?.evmUserPays ?? !0, i = n?.arweavePath ?? "l1", a = en(e), o = a * t.gasPriceWei, s = Number(o) / hn, c = s * t.ethUsd, l = Math.max(0, Math.round(e.uploadBytes * t.winstonPerByte)) / mn, u = l * t.arUsd;
|
|
396
395
|
return {
|
|
397
|
-
totalUsd:
|
|
396
|
+
totalUsd: _n(c + u),
|
|
398
397
|
evm: {
|
|
399
398
|
eth: s.toPrecision(6),
|
|
400
|
-
usd:
|
|
399
|
+
usd: _n(c),
|
|
401
400
|
gas: a,
|
|
402
401
|
userPays: r
|
|
403
402
|
},
|
|
404
403
|
arweave: {
|
|
405
404
|
ar: l.toPrecision(6),
|
|
406
|
-
usd:
|
|
405
|
+
usd: _n(u),
|
|
407
406
|
bytes: e.uploadBytes,
|
|
408
407
|
uploadCount: e.uploadCount,
|
|
409
408
|
path: i,
|
|
@@ -418,42 +417,42 @@ function _n(e, t, n) {
|
|
|
418
417
|
estimatedAt: Date.now()
|
|
419
418
|
};
|
|
420
419
|
}
|
|
421
|
-
async function
|
|
422
|
-
let n =
|
|
420
|
+
async function yn(e, t) {
|
|
421
|
+
let n = gn(), r = t?.work;
|
|
423
422
|
if (!r) {
|
|
424
423
|
let { summarizePublishWork: n } = await import("@seedprotocol/sdk");
|
|
425
424
|
r = await n(e, { publishMode: t?.publishMode });
|
|
426
425
|
}
|
|
427
|
-
let i = t?.rates ?? await
|
|
428
|
-
return
|
|
426
|
+
let i = t?.rates ?? await fn();
|
|
427
|
+
return vn(r, i, n);
|
|
429
428
|
}
|
|
430
429
|
//#endregion
|
|
431
430
|
//#region src/services/publishCost/watchPublishCost.ts
|
|
432
|
-
var
|
|
433
|
-
function
|
|
431
|
+
var bn = 6e4, xn = 15e3;
|
|
432
|
+
function Sn(e) {
|
|
434
433
|
let t = e.getService().getSnapshot(), n = (t && typeof t == "object" && "context" in t ? t.context : void 0)?.propertyValue ?? e.value;
|
|
435
434
|
return `${e.propertyName}:${e.uid ?? ""}:${String(n ?? "")}`;
|
|
436
435
|
}
|
|
437
|
-
function
|
|
436
|
+
function Cn(e) {
|
|
438
437
|
let t = e.properties ?? [];
|
|
439
438
|
return [
|
|
440
439
|
e.seedLocalId,
|
|
441
440
|
e.seedUid ?? "",
|
|
442
441
|
e.latestVersionLocalId ?? "",
|
|
443
|
-
...t.map(
|
|
442
|
+
...t.map(Sn)
|
|
444
443
|
].join("|");
|
|
445
444
|
}
|
|
446
|
-
function
|
|
445
|
+
function wn(e) {
|
|
447
446
|
return e instanceof Error ? e : Error(String(e));
|
|
448
447
|
}
|
|
449
|
-
function
|
|
450
|
-
let r = n?.priceRefreshMs ??
|
|
451
|
-
let t = await
|
|
452
|
-
return
|
|
448
|
+
function Tn(e, t, n) {
|
|
449
|
+
let r = n?.priceRefreshMs ?? bn, i = n?.itemIdleMs ?? xn, a = n?.estimate ?? ((e) => yn(e, n)), o = n?.reprice ?? (async (e) => {
|
|
450
|
+
let t = await fn({ forceRefresh: !0 });
|
|
451
|
+
return vn(e.work, t, {
|
|
453
452
|
evmUserPays: e.evm.userPays,
|
|
454
453
|
arweavePath: e.arweave.path
|
|
455
454
|
});
|
|
456
|
-
}), s = !1, c =
|
|
455
|
+
}), s = !1, c = Cn(e), l = null, u = !1, d = !1, f = null, p = 0, m = null, h = null, g = () => {
|
|
457
456
|
s || t({
|
|
458
457
|
estimate: l,
|
|
459
458
|
isEstimating: u,
|
|
@@ -467,10 +466,10 @@ function wn(e, t, n) {
|
|
|
467
466
|
try {
|
|
468
467
|
let n = await a(e);
|
|
469
468
|
if (s || t !== p) return;
|
|
470
|
-
l = n, c =
|
|
469
|
+
l = n, c = Cn(e), d = !1, u = !1, f = null, g();
|
|
471
470
|
} catch (e) {
|
|
472
471
|
if (s || t !== p) return;
|
|
473
|
-
u = !1, f =
|
|
472
|
+
u = !1, f = wn(e), g();
|
|
474
473
|
}
|
|
475
474
|
}, v = () => {
|
|
476
475
|
if (l && (d = !0), i <= 0) {
|
|
@@ -484,9 +483,9 @@ function wn(e, t, n) {
|
|
|
484
483
|
m &&= (clearTimeout(m), null), _();
|
|
485
484
|
};
|
|
486
485
|
_();
|
|
487
|
-
let
|
|
486
|
+
let ee = e.subscribe(() => {
|
|
488
487
|
if (s) return;
|
|
489
|
-
let t =
|
|
488
|
+
let t = Cn(e);
|
|
490
489
|
t !== c && (c = t, v());
|
|
491
490
|
});
|
|
492
491
|
return r > 0 && (h = setInterval(() => {
|
|
@@ -497,44 +496,44 @@ function wn(e, t, n) {
|
|
|
497
496
|
l = e, g();
|
|
498
497
|
} catch (e) {
|
|
499
498
|
if (s) return;
|
|
500
|
-
f =
|
|
499
|
+
f = wn(e), g();
|
|
501
500
|
}
|
|
502
501
|
})();
|
|
503
502
|
}, r)), {
|
|
504
503
|
refresh: y,
|
|
505
504
|
dispose: () => {
|
|
506
|
-
s = !0,
|
|
505
|
+
s = !0, ee.unsubscribe(), m && clearTimeout(m), h && clearInterval(h);
|
|
507
506
|
}
|
|
508
507
|
};
|
|
509
508
|
}
|
|
510
509
|
//#endregion
|
|
511
510
|
//#region src/helpers/publishDisplayHelpers.ts
|
|
512
|
-
function
|
|
511
|
+
function En(e) {
|
|
513
512
|
return e === "creatingAttestationsDirectToEas" ? "creatingAttestations" : e;
|
|
514
513
|
}
|
|
515
|
-
function
|
|
514
|
+
function Dn(e, t, n) {
|
|
516
515
|
if (e != null) return n;
|
|
517
|
-
if (t?.status === "completed") return
|
|
518
|
-
if (t?.status === "failed") return
|
|
516
|
+
if (t?.status === "completed") return S.SUCCESS;
|
|
517
|
+
if (t?.status === "failed") return S.FAILURE;
|
|
519
518
|
if (t?.status !== "interrupted") return n;
|
|
520
519
|
}
|
|
521
|
-
function
|
|
520
|
+
function On(e) {
|
|
522
521
|
if (e) {
|
|
523
|
-
if (e.status === "failed") return
|
|
524
|
-
if (e.status === "completed") return
|
|
522
|
+
if (e.status === "failed") return S.FAILURE;
|
|
523
|
+
if (e.status === "completed") return S.SUCCESS;
|
|
525
524
|
if (e.status !== "interrupted") {
|
|
526
525
|
if (e.completedAt != null) {
|
|
527
526
|
try {
|
|
528
527
|
let t = JSON.parse(e.persistedSnapshot);
|
|
529
|
-
if (t.status === "done" && t.value ===
|
|
528
|
+
if (t.status === "done" && t.value === S.FAILURE) return S.FAILURE;
|
|
530
529
|
} catch {}
|
|
531
|
-
return
|
|
530
|
+
return S.SUCCESS;
|
|
532
531
|
}
|
|
533
532
|
try {
|
|
534
533
|
let t = JSON.parse(e.persistedSnapshot);
|
|
535
534
|
if (t.status === "done") {
|
|
536
|
-
if (t.value ===
|
|
537
|
-
if (t.value ===
|
|
535
|
+
if (t.value === S.SUCCESS) return S.SUCCESS;
|
|
536
|
+
if (t.value === S.FAILURE) return S.FAILURE;
|
|
538
537
|
}
|
|
539
538
|
if (typeof t.value == "string") return t.value;
|
|
540
539
|
} catch {
|
|
@@ -545,19 +544,19 @@ function Dn(e) {
|
|
|
545
544
|
}
|
|
546
545
|
//#endregion
|
|
547
546
|
//#region src/hooks/usePublishProcess.ts
|
|
548
|
-
function On(e) {
|
|
549
|
-
return !e || e.status !== "done" ? !1 : e.value === w.SUCCESS || e.value === w.FAILURE;
|
|
550
|
-
}
|
|
551
547
|
function kn(e) {
|
|
552
|
-
|
|
553
|
-
|
|
548
|
+
return !e || e.status !== "done" ? !1 : e.value === S.SUCCESS || e.value === S.FAILURE;
|
|
549
|
+
}
|
|
550
|
+
function An(e) {
|
|
551
|
+
let t = Re.getService(), n = Ut(t, (t) => t?.context?.publishProcesses?.get(e) ?? null), r = At(null);
|
|
552
|
+
N(() => {
|
|
554
553
|
r.current = null;
|
|
555
554
|
}, [e]);
|
|
556
|
-
let [i, a] =
|
|
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
|
-
let e =
|
|
560
|
-
return e ===
|
|
558
|
+
let e = On(u);
|
|
559
|
+
return e === S.SUCCESS || e === S.FAILURE ? e : Dn(n, d == null ? void 0 : { status: d }, i);
|
|
561
560
|
}, [
|
|
562
561
|
n,
|
|
563
562
|
d,
|
|
@@ -565,16 +564,16 @@ function kn(e) {
|
|
|
565
564
|
o,
|
|
566
565
|
u
|
|
567
566
|
]);
|
|
568
|
-
return
|
|
567
|
+
return N(() => {
|
|
569
568
|
s(null);
|
|
570
|
-
}, [e]),
|
|
569
|
+
}, [e]), N(() => {
|
|
571
570
|
n ?? (d === "completed" ? s("success") : d === "failed" && s("failure"));
|
|
572
|
-
}, [d, n]),
|
|
571
|
+
}, [d, n]), N(() => {
|
|
573
572
|
n != null && s(null);
|
|
574
|
-
}, [n]),
|
|
573
|
+
}, [n]), N(() => {
|
|
575
574
|
if (!n) {
|
|
576
575
|
let e = r.current;
|
|
577
|
-
|
|
576
|
+
kn(e) ? (a(e.value), e.value === S.SUCCESS ? s("success") : e.value === S.FAILURE && s("failure")) : a(void 0);
|
|
578
577
|
return;
|
|
579
578
|
}
|
|
580
579
|
let e = n.getSnapshot();
|
|
@@ -598,21 +597,21 @@ function kn(e) {
|
|
|
598
597
|
}
|
|
599
598
|
//#endregion
|
|
600
599
|
//#region src/hooks/useCanPublishItem.ts
|
|
601
|
-
function
|
|
602
|
-
let [t, n] =
|
|
603
|
-
return
|
|
600
|
+
function jn(e) {
|
|
601
|
+
let [t, n] = F(!0);
|
|
602
|
+
return N(() => {
|
|
604
603
|
if (!e) {
|
|
605
604
|
n(!1);
|
|
606
605
|
return;
|
|
607
606
|
}
|
|
608
|
-
|
|
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
|
-
function
|
|
614
|
-
let t =
|
|
615
|
-
return
|
|
612
|
+
function Mn(e) {
|
|
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) ?? [];
|
|
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 {
|
|
618
617
|
hasPendingL1: e > 0,
|
|
@@ -624,8 +623,8 @@ function jn(e) {
|
|
|
624
623
|
}
|
|
625
624
|
//#endregion
|
|
626
625
|
//#region src/hooks/useItemPublishStatus.ts
|
|
627
|
-
function
|
|
628
|
-
let { publishProcess: t, value: n } =
|
|
626
|
+
function Nn(e) {
|
|
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,
|
|
@@ -638,44 +637,44 @@ function Mn(e) {
|
|
|
638
637
|
}
|
|
639
638
|
//#endregion
|
|
640
639
|
//#region src/hooks/usePublishProcesses.ts
|
|
641
|
-
function
|
|
642
|
-
let e =
|
|
643
|
-
return
|
|
640
|
+
function Pn() {
|
|
641
|
+
let e = T.getAppDb();
|
|
642
|
+
return P(() => e ? e.select().from(D).orderBy(B(D.startedAt)) : null, [e]);
|
|
644
643
|
}
|
|
645
|
-
function
|
|
646
|
-
let t =
|
|
647
|
-
return
|
|
644
|
+
function Fn(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
|
-
function
|
|
650
|
-
let e =
|
|
648
|
+
function In() {
|
|
649
|
+
let e = Pn(), t = L(e);
|
|
651
650
|
return {
|
|
652
651
|
records: t,
|
|
653
|
-
nonActiveCount:
|
|
652
|
+
nonActiveCount: P(() => t === void 0 ? void 0 : t.filter((e) => e.status !== "in_progress").length, [t])
|
|
654
653
|
};
|
|
655
654
|
}
|
|
656
|
-
function In() {
|
|
657
|
-
let e = Nn();
|
|
658
|
-
return z(e);
|
|
659
|
-
}
|
|
660
655
|
function Ln() {
|
|
661
|
-
|
|
656
|
+
let e = Pn();
|
|
657
|
+
return L(e);
|
|
662
658
|
}
|
|
663
|
-
function Rn(
|
|
664
|
-
|
|
665
|
-
return z(t);
|
|
659
|
+
function Rn() {
|
|
660
|
+
return In().nonActiveCount;
|
|
666
661
|
}
|
|
667
662
|
function zn(e) {
|
|
668
|
-
let t =
|
|
663
|
+
let t = Fn(e);
|
|
664
|
+
return L(t);
|
|
665
|
+
}
|
|
666
|
+
function Bn(e) {
|
|
667
|
+
let t = Fn(e), n = L(t);
|
|
669
668
|
return {
|
|
670
669
|
records: n,
|
|
671
|
-
nonActiveCount:
|
|
670
|
+
nonActiveCount: P(() => n === void 0 ? void 0 : n.filter((e) => e.status !== "in_progress").length, [n])
|
|
672
671
|
};
|
|
673
672
|
}
|
|
674
|
-
function Bn(e) {
|
|
675
|
-
return zn(e).nonActiveCount;
|
|
676
|
-
}
|
|
677
673
|
function Vn(e) {
|
|
678
|
-
|
|
674
|
+
return Bn(e).nonActiveCount;
|
|
675
|
+
}
|
|
676
|
+
function Hn(e) {
|
|
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
|
|
@@ -683,45 +682,45 @@ function Vn(e) {
|
|
|
683
682
|
}
|
|
684
683
|
//#endregion
|
|
685
684
|
//#region src/hooks/clearCompletedPublishProcesses.ts
|
|
686
|
-
async function
|
|
687
|
-
let e =
|
|
688
|
-
e && await e.delete(
|
|
685
|
+
async function Un() {
|
|
686
|
+
let e = T.getAppDb();
|
|
687
|
+
e && await e.delete(D).where(Ht(D.status, ["in_progress"]));
|
|
689
688
|
}
|
|
690
|
-
async function
|
|
691
|
-
let t =
|
|
692
|
-
t && await t.delete(
|
|
693
|
-
}
|
|
694
|
-
async function Wn() {
|
|
695
|
-
let e = E.getAppDb();
|
|
696
|
-
e && await e.delete(O);
|
|
689
|
+
async function Wn(e) {
|
|
690
|
+
let t = T.getAppDb();
|
|
691
|
+
t && await t.delete(D).where(Bt(V(D.seedLocalId, e), Ht(D.status, ["in_progress"])));
|
|
697
692
|
}
|
|
698
693
|
async function Gn() {
|
|
699
|
-
let e =
|
|
700
|
-
e && await e.delete(
|
|
694
|
+
let e = T.getAppDb();
|
|
695
|
+
e && await e.delete(D);
|
|
701
696
|
}
|
|
702
|
-
async function Kn(
|
|
703
|
-
let
|
|
704
|
-
|
|
697
|
+
async function Kn() {
|
|
698
|
+
let e = T.getAppDb();
|
|
699
|
+
e && await e.delete(et);
|
|
705
700
|
}
|
|
706
701
|
async function qn(e) {
|
|
707
|
-
let t =
|
|
708
|
-
t && await t.delete(
|
|
702
|
+
let t = T.getAppDb();
|
|
703
|
+
t && await t.delete(D).where(V(D.seedLocalId, e));
|
|
709
704
|
}
|
|
710
705
|
async function Jn(e) {
|
|
706
|
+
let t = T.getAppDb();
|
|
707
|
+
t && await t.delete(D).where(V(D.id, e));
|
|
708
|
+
}
|
|
709
|
+
async function Yn(e) {
|
|
711
710
|
if (e.length === 0) return;
|
|
712
|
-
let t =
|
|
713
|
-
t && await t.delete(
|
|
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
|
|
717
|
-
function
|
|
716
|
+
function Xn(e) {
|
|
718
717
|
try {
|
|
719
718
|
return (JSON.parse(e.persistedSnapshot).context?.arweaveTransactions ?? []).map((e) => e.transaction?.id).filter((e) => typeof e == "string");
|
|
720
719
|
} catch {
|
|
721
720
|
return [];
|
|
722
721
|
}
|
|
723
722
|
}
|
|
724
|
-
function
|
|
723
|
+
function Zn(e) {
|
|
725
724
|
try {
|
|
726
725
|
return JSON.parse(e.persistedSnapshot).context?.easPayload ?? void 0;
|
|
727
726
|
} catch {
|
|
@@ -730,14 +729,14 @@ function Xn(e) {
|
|
|
730
729
|
}
|
|
731
730
|
//#endregion
|
|
732
731
|
//#region src/hooks/usePublishCostEstimate.ts
|
|
733
|
-
function
|
|
734
|
-
let [n, r] =
|
|
735
|
-
return
|
|
732
|
+
function Qn(e, t) {
|
|
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;
|
|
734
|
+
return N(() => {
|
|
736
735
|
if (!e) {
|
|
737
736
|
r(null), a(!1), s(!1), l(null), u.current = () => {};
|
|
738
737
|
return;
|
|
739
738
|
}
|
|
740
|
-
let n =
|
|
739
|
+
let n = Tn(e, (e) => {
|
|
741
740
|
r(e.estimate), a(e.isEstimating), s(e.isStale), l(e.error), u.current = e.refresh;
|
|
742
741
|
}, t);
|
|
743
742
|
return () => {
|
|
@@ -754,58 +753,33 @@ function Zn(e, t) {
|
|
|
754
753
|
isEstimating: i,
|
|
755
754
|
isStale: o,
|
|
756
755
|
error: c,
|
|
757
|
-
refresh:
|
|
756
|
+
refresh: kt(() => {
|
|
758
757
|
u.current();
|
|
759
758
|
}, [])
|
|
760
759
|
};
|
|
761
760
|
}
|
|
762
761
|
//#endregion
|
|
763
|
-
//#region src/helpers/transformPayloadToIntegerIds.ts
|
|
764
|
-
function Qn(e) {
|
|
765
|
-
let t = /* @__PURE__ */ new Map();
|
|
766
|
-
for (let n = 0; n < e.length; n++) {
|
|
767
|
-
let r = e[n]?.localId;
|
|
768
|
-
r != null && t.set(r, BigInt(n));
|
|
769
|
-
}
|
|
770
|
-
return e.map((e, n) => {
|
|
771
|
-
let r = (e.propertiesToUpdate ?? []).map((e) => {
|
|
772
|
-
let n = e.publishLocalId, r = n == null ? void 0 : t.get(n);
|
|
773
|
-
if (n != null && n !== "" && r === void 0) throw Error(`publishLocalId "${n}" not found in payload (valid localIds: ${Array.from(t.keys()).join(", ")})`);
|
|
774
|
-
let { publishLocalId: i, ...a } = e;
|
|
775
|
-
return {
|
|
776
|
-
...a,
|
|
777
|
-
publishLocalIdIndex: r ?? BigInt(0)
|
|
778
|
-
};
|
|
779
|
-
}), { localId: i, ...a } = e;
|
|
780
|
-
return {
|
|
781
|
-
...a,
|
|
782
|
-
localIdIndex: BigInt(n),
|
|
783
|
-
propertiesToUpdate: r
|
|
784
|
-
};
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
//#endregion
|
|
788
762
|
//#region src/helpers/ensureWalletThenPublish.ts
|
|
789
763
|
function $n(e) {
|
|
790
764
|
if (e) {
|
|
791
|
-
if (e instanceof
|
|
792
|
-
if (
|
|
793
|
-
if (
|
|
765
|
+
if (e instanceof at.Wallet) return e;
|
|
766
|
+
if (i(e)) return e.signer;
|
|
767
|
+
if (d(e)) return e;
|
|
794
768
|
}
|
|
795
769
|
}
|
|
796
770
|
async function er(e, t) {
|
|
797
|
-
let n =
|
|
771
|
+
let n = w();
|
|
798
772
|
if (n.useModularExecutor) {
|
|
799
|
-
let { ensureSmartWalletThenPublish: n } = await import("./ensureSmartWalletThenPublish-
|
|
773
|
+
let { ensureSmartWalletThenPublish: n } = await import("./ensureSmartWalletThenPublish-DuOYPJFd.js").then((e) => e.n);
|
|
800
774
|
return n(e, null, async () => {
|
|
801
|
-
let e =
|
|
775
|
+
let e = x();
|
|
802
776
|
return e?.publisherAddress ?? e?.signer.address ?? null;
|
|
803
777
|
}, t);
|
|
804
778
|
}
|
|
805
|
-
let r =
|
|
779
|
+
let r = x();
|
|
806
780
|
if (!r) return { outcome: "no_wallet" };
|
|
807
781
|
if (n.accountMode === "eip7702" && n.bundlerUrl) {
|
|
808
|
-
let e = await
|
|
782
|
+
let e = await U({
|
|
809
783
|
signer: r.signer,
|
|
810
784
|
bundlerUrl: n.bundlerUrl,
|
|
811
785
|
paymasterUrl: n.paymasterUrl
|
|
@@ -817,7 +791,7 @@ async function er(e, t) {
|
|
|
817
791
|
};
|
|
818
792
|
}
|
|
819
793
|
let i = r.publisherAddress ?? r.txSender.address ?? r.signer.address;
|
|
820
|
-
return i?.trim() ? (
|
|
794
|
+
return i?.trim() ? (Re.createPublish(e, i, r, {
|
|
821
795
|
...t,
|
|
822
796
|
dataItemSigner: $n(t?.dataItemSigner) ?? r.signer
|
|
823
797
|
}), { outcome: "started" }) : { outcome: "no_address" };
|
|
@@ -825,12 +799,12 @@ async function er(e, t) {
|
|
|
825
799
|
//#endregion
|
|
826
800
|
//#region src/services/domainOwnership/registry.ts
|
|
827
801
|
function Y(e) {
|
|
828
|
-
let t =
|
|
802
|
+
let t = Gt(e);
|
|
829
803
|
if (!t) throw Error(`@seedprotocol/publish: unable to resolve registrable domain for "${e}"`);
|
|
830
804
|
return t.toLowerCase();
|
|
831
805
|
}
|
|
832
806
|
async function tr(e) {
|
|
833
|
-
let t = Y(e), n = await
|
|
807
|
+
let t = Y(e), n = await Wt(t);
|
|
834
808
|
if (!n.ok || !n.record) return null;
|
|
835
809
|
let r = n.record;
|
|
836
810
|
return {
|
|
@@ -845,7 +819,7 @@ async function tr(e) {
|
|
|
845
819
|
};
|
|
846
820
|
}
|
|
847
821
|
function nr(e) {
|
|
848
|
-
return
|
|
822
|
+
return Tt({
|
|
849
823
|
domain: e.domain,
|
|
850
824
|
creationDate: e.creationDate ?? "",
|
|
851
825
|
registrarIanaId: e.registrarIanaId ?? ""
|
|
@@ -867,12 +841,12 @@ function ar(e) {
|
|
|
867
841
|
if (!t || t.includes(" ")) throw Error("@seedprotocol/publish: createDomainOwnershipChallenge requires a valid domain");
|
|
868
842
|
let n = e.claimer.trim();
|
|
869
843
|
if (!/^0x[0-9a-fA-F]{40}$/.test(n)) throw Error("@seedprotocol/publish: createDomainOwnershipChallenge requires a 20-byte hex claimer address");
|
|
870
|
-
let r = e.scope ??
|
|
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({
|
|
871
845
|
domain: t,
|
|
872
846
|
claimer: n,
|
|
873
847
|
token: s,
|
|
874
848
|
scope: r
|
|
875
|
-
}), l =
|
|
849
|
+
}), l = xt(t), u = yt({
|
|
876
850
|
token: s,
|
|
877
851
|
claimer: n,
|
|
878
852
|
expiry: o
|
|
@@ -882,7 +856,7 @@ function ar(e) {
|
|
|
882
856
|
domain: t,
|
|
883
857
|
claimer: n,
|
|
884
858
|
scope: r,
|
|
885
|
-
method:
|
|
859
|
+
method: lt,
|
|
886
860
|
token: s,
|
|
887
861
|
txtName: l,
|
|
888
862
|
txtValue: u,
|
|
@@ -915,10 +889,10 @@ function cr() {
|
|
|
915
889
|
return typeof document > "u" && e.unshift((e) => or(e)), e;
|
|
916
890
|
}
|
|
917
891
|
function lr(e, t) {
|
|
918
|
-
let n =
|
|
892
|
+
let n = Ot(t);
|
|
919
893
|
for (let r of e) {
|
|
920
894
|
if (r === t || r.replace(/^"|"$/g, "") === t) return !0;
|
|
921
|
-
let e =
|
|
895
|
+
let e = Ot(r);
|
|
922
896
|
if (n && e && e.token === n.token && e.claimer === n.claimer) return !0;
|
|
923
897
|
}
|
|
924
898
|
return !1;
|
|
@@ -931,7 +905,7 @@ async function ur(e, t) {
|
|
|
931
905
|
lookups: [],
|
|
932
906
|
error: "Challenge expired"
|
|
933
907
|
};
|
|
934
|
-
let r =
|
|
908
|
+
let r = yt({
|
|
935
909
|
token: e.token,
|
|
936
910
|
claimer: e.claimer,
|
|
937
911
|
expiry: e.expiresAt
|
|
@@ -966,30 +940,30 @@ async function ur(e, t) {
|
|
|
966
940
|
//#region src/services/domainOwnership/index.ts
|
|
967
941
|
var dr = "0x0000000000000000000000000000000000000000", fr = !0;
|
|
968
942
|
function pr(e) {
|
|
969
|
-
if (
|
|
970
|
-
if (
|
|
943
|
+
if (i(e)) return e.txSender;
|
|
944
|
+
if (C(e)) return e;
|
|
971
945
|
throw Error("@seedprotocol/publish: domain ownership write APIs require a PublishWallet or SeedTxSender");
|
|
972
946
|
}
|
|
973
947
|
async function X(e, t) {
|
|
974
948
|
let n = await e.sendTransaction(t);
|
|
975
|
-
return
|
|
949
|
+
return b(n.transactionHash);
|
|
976
950
|
}
|
|
977
951
|
function Z() {
|
|
978
|
-
return
|
|
952
|
+
return zt.getSchemaUID(k, dr, fr);
|
|
979
953
|
}
|
|
980
954
|
async function mr(e) {
|
|
981
955
|
let t = pr(e), n = Z();
|
|
982
|
-
return await
|
|
983
|
-
schema:
|
|
956
|
+
return await Me(n) || (await X(t, ke({
|
|
957
|
+
schema: k,
|
|
984
958
|
resolverAddress: dr,
|
|
985
959
|
revocable: fr
|
|
986
|
-
})), await X(t,
|
|
960
|
+
})), await X(t, Ae({
|
|
987
961
|
schemaUid: n,
|
|
988
|
-
schemaName:
|
|
962
|
+
schemaName: ft
|
|
989
963
|
}))), n;
|
|
990
964
|
}
|
|
991
965
|
function hr(e) {
|
|
992
|
-
return new
|
|
966
|
+
return new Rt(k).encodeData([
|
|
993
967
|
{
|
|
994
968
|
name: "domain",
|
|
995
969
|
value: e.domain,
|
|
@@ -1007,7 +981,7 @@ function hr(e) {
|
|
|
1007
981
|
},
|
|
1008
982
|
{
|
|
1009
983
|
name: "challengeHash",
|
|
1010
|
-
value:
|
|
984
|
+
value: M(e.challengeHash),
|
|
1011
985
|
type: "bytes32"
|
|
1012
986
|
},
|
|
1013
987
|
{
|
|
@@ -1027,7 +1001,7 @@ function hr(e) {
|
|
|
1027
1001
|
},
|
|
1028
1002
|
{
|
|
1029
1003
|
name: "registryFingerprint",
|
|
1030
|
-
value:
|
|
1004
|
+
value: M(e.registryFingerprint),
|
|
1031
1005
|
type: "bytes32"
|
|
1032
1006
|
},
|
|
1033
1007
|
{
|
|
@@ -1043,70 +1017,70 @@ function gr(e) {
|
|
|
1043
1017
|
let t = Date.parse(e.registryExpirationDate);
|
|
1044
1018
|
if (Number.isFinite(t) && t > 0) return Math.floor(t / 1e3);
|
|
1045
1019
|
}
|
|
1046
|
-
return e.verifiedAt +
|
|
1020
|
+
return e.verifiedAt + st;
|
|
1047
1021
|
}
|
|
1048
1022
|
async function _r(e) {
|
|
1049
1023
|
let t = pr(e.wallet), n = e.ensureSchema === !1 ? Z() : await mr(e.wallet), r = Y(e.domain), i = e.claimer.trim();
|
|
1050
1024
|
if (!/^0x[0-9a-fA-F]{40}$/.test(i)) throw Error("@seedprotocol/publish: attestDomainOwnership requires a valid claimer address");
|
|
1051
|
-
let a =
|
|
1052
|
-
if (a ===
|
|
1053
|
-
let o = e.verifiedAt ?? Math.floor(Date.now() / 1e3),
|
|
1025
|
+
let a = M(e.challengeHash);
|
|
1026
|
+
if (a === z) throw Error("@seedprotocol/publish: attestDomainOwnership requires a non-zero challengeHash");
|
|
1027
|
+
let o = e.verifiedAt ?? Math.floor(Date.now() / 1e3), c = nr({
|
|
1054
1028
|
domain: r,
|
|
1055
1029
|
creationDate: e.registrySnapshot.creationDate ?? "",
|
|
1056
1030
|
registrarIanaId: e.registrySnapshot.registrarIanaId ?? ""
|
|
1057
|
-
}), l = e.registrySnapshot.creationDate ?? "", u = e.registrySnapshot.expirationDate ?? "", d = e.scope ??
|
|
1031
|
+
}), l = e.registrySnapshot.creationDate ?? "", u = e.registrySnapshot.expirationDate ?? "", d = e.scope ?? pt, f = e.method ?? lt, m = gr({
|
|
1058
1032
|
verifiedAt: o,
|
|
1059
1033
|
registryExpirationDate: u,
|
|
1060
1034
|
override: e.expirationTime
|
|
1061
1035
|
}), h = hr({
|
|
1062
1036
|
domain: r,
|
|
1063
1037
|
claimer: i,
|
|
1064
|
-
method:
|
|
1038
|
+
method: f,
|
|
1065
1039
|
challengeHash: a,
|
|
1066
1040
|
verifiedAt: o,
|
|
1067
1041
|
registryCreationDate: l,
|
|
1068
1042
|
registryExpirationDate: u,
|
|
1069
|
-
registryFingerprint:
|
|
1043
|
+
registryFingerprint: c,
|
|
1070
1044
|
scope: d
|
|
1071
|
-
}), g = await X(t,
|
|
1045
|
+
}), g = await X(t, p({
|
|
1072
1046
|
schema: n,
|
|
1073
1047
|
data: {
|
|
1074
1048
|
recipient: i,
|
|
1075
1049
|
expirationTime: BigInt(m),
|
|
1076
1050
|
revocable: !0,
|
|
1077
|
-
refUID:
|
|
1051
|
+
refUID: z,
|
|
1078
1052
|
data: h,
|
|
1079
1053
|
value: 0n
|
|
1080
1054
|
}
|
|
1081
1055
|
}));
|
|
1082
1056
|
if (!g) throw Error("@seedprotocol/publish: attestDomainOwnership failed — no receipt");
|
|
1083
|
-
let { easContractAddress: _ } =
|
|
1084
|
-
if (!v || !
|
|
1057
|
+
let { easContractAddress: _ } = w(), v = s(g, _);
|
|
1058
|
+
if (!v || !j(v)) throw Error("@seedprotocol/publish: attestDomainOwnership failed — could not parse attestation UID");
|
|
1085
1059
|
return {
|
|
1086
1060
|
uid: v,
|
|
1087
1061
|
schemaUid: n,
|
|
1088
1062
|
challengeHash: a,
|
|
1089
|
-
registryFingerprint:
|
|
1063
|
+
registryFingerprint: c,
|
|
1090
1064
|
verifiedAt: o,
|
|
1091
1065
|
expirationTime: m
|
|
1092
1066
|
};
|
|
1093
1067
|
}
|
|
1094
1068
|
async function vr(e) {
|
|
1095
|
-
let t = pr(e.wallet),
|
|
1096
|
-
if (!
|
|
1097
|
-
if (!await X(t,
|
|
1098
|
-
schema:
|
|
1099
|
-
data: [{ uid:
|
|
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 }]
|
|
1100
1074
|
}]))) throw Error("@seedprotocol/publish: revokeDomainOwnership failed — no receipt");
|
|
1101
1075
|
}
|
|
1102
1076
|
async function yr(e) {
|
|
1103
|
-
let { challenge: t } = e, n =
|
|
1077
|
+
let { challenge: t } = e, n = wt({
|
|
1104
1078
|
domain: t.domain,
|
|
1105
1079
|
claimer: t.claimer,
|
|
1106
1080
|
token: t.token,
|
|
1107
1081
|
scope: t.scope
|
|
1108
1082
|
});
|
|
1109
|
-
if (
|
|
1083
|
+
if (M(n) !== M(t.challengeHash)) return {
|
|
1110
1084
|
ok: !1,
|
|
1111
1085
|
dns: {
|
|
1112
1086
|
ok: !1,
|
|
@@ -1172,20 +1146,20 @@ async function br(e) {
|
|
|
1172
1146
|
};
|
|
1173
1147
|
}
|
|
1174
1148
|
async function xr(e) {
|
|
1175
|
-
let t = (await
|
|
1149
|
+
let t = (await St({
|
|
1176
1150
|
toolAddresses: e.toolAddresses,
|
|
1177
1151
|
schemaUid: e.schemaUid,
|
|
1178
1152
|
excludeRevoked: !0
|
|
1179
|
-
})).find((t) =>
|
|
1153
|
+
})).find((t) => M(t.id) === M(e.uid));
|
|
1180
1154
|
if (!t) throw Error("@seedprotocol/publish: assessDomainOwnershipLive could not find attestation for uid/toolAddresses");
|
|
1181
|
-
let n =
|
|
1155
|
+
let n = bt(t.decodedDataJson ?? "[]"), r = e.registryLookup ?? tr, i;
|
|
1182
1156
|
try {
|
|
1183
1157
|
i = await r(n.domain);
|
|
1184
1158
|
} catch {
|
|
1185
1159
|
i = null;
|
|
1186
1160
|
}
|
|
1187
1161
|
return {
|
|
1188
|
-
...
|
|
1162
|
+
...vt({
|
|
1189
1163
|
decoded: n,
|
|
1190
1164
|
registrySnapshot: i,
|
|
1191
1165
|
now: e.now
|
|
@@ -1199,48 +1173,48 @@ async function xr(e) {
|
|
|
1199
1173
|
//#region src/services/publishedBy/index.ts
|
|
1200
1174
|
var Sr = "0x0000000000000000000000000000000000000000", Cr = !0;
|
|
1201
1175
|
function wr(e) {
|
|
1202
|
-
if (
|
|
1203
|
-
if (
|
|
1176
|
+
if (i(e)) return e.txSender;
|
|
1177
|
+
if (C(e)) return e;
|
|
1204
1178
|
throw Error("@seedprotocol/publish: attestPublishedBy / revokePublishedBy require a PublishWallet or SeedTxSender");
|
|
1205
1179
|
}
|
|
1206
1180
|
async function Q(e, t) {
|
|
1207
1181
|
let n = await e.sendTransaction(t);
|
|
1208
|
-
return
|
|
1182
|
+
return b(n.transactionHash);
|
|
1209
1183
|
}
|
|
1210
1184
|
function $() {
|
|
1211
|
-
return
|
|
1185
|
+
return zt.getSchemaUID(A, Sr, Cr);
|
|
1212
1186
|
}
|
|
1213
1187
|
async function Tr(e) {
|
|
1214
1188
|
let t = wr(e), n = $();
|
|
1215
|
-
return await
|
|
1216
|
-
schema:
|
|
1189
|
+
return await Me(n) || (await Q(t, ke({
|
|
1190
|
+
schema: A,
|
|
1217
1191
|
resolverAddress: Sr,
|
|
1218
1192
|
revocable: Cr
|
|
1219
|
-
})), await Q(t,
|
|
1193
|
+
})), await Q(t, Ae({
|
|
1220
1194
|
schemaUid: n,
|
|
1221
|
-
schemaName:
|
|
1195
|
+
schemaName: _t
|
|
1222
1196
|
}))), n;
|
|
1223
1197
|
}
|
|
1224
1198
|
function Er(e) {
|
|
1225
|
-
return new
|
|
1199
|
+
return new Rt(A).encodeData([
|
|
1226
1200
|
{
|
|
1227
1201
|
name: "seedUid",
|
|
1228
|
-
value:
|
|
1202
|
+
value: M(e.seedUid),
|
|
1229
1203
|
type: "bytes32"
|
|
1230
1204
|
},
|
|
1231
1205
|
{
|
|
1232
1206
|
name: "versionUid",
|
|
1233
|
-
value:
|
|
1207
|
+
value: M(e.versionUid || z),
|
|
1234
1208
|
type: "bytes32"
|
|
1235
1209
|
},
|
|
1236
1210
|
{
|
|
1237
1211
|
name: "attestationUids",
|
|
1238
|
-
value: e.attestationUids.map((e) =>
|
|
1212
|
+
value: e.attestationUids.map((e) => M(e)),
|
|
1239
1213
|
type: "bytes32[]"
|
|
1240
1214
|
},
|
|
1241
1215
|
{
|
|
1242
1216
|
name: "batchHash",
|
|
1243
|
-
value:
|
|
1217
|
+
value: M(e.batchHash),
|
|
1244
1218
|
type: "bytes32"
|
|
1245
1219
|
},
|
|
1246
1220
|
{
|
|
@@ -1257,50 +1231,50 @@ function Er(e) {
|
|
|
1257
1231
|
}
|
|
1258
1232
|
async function Dr(e) {
|
|
1259
1233
|
let t = wr(e.wallet), n = e.ensureSchema === !1 ? $() : await Tr(e.wallet), r = [], i;
|
|
1260
|
-
if (e.mode === "uids") r = e.attestationUids.map((e) =>
|
|
1234
|
+
if (e.mode === "uids") r = e.attestationUids.map((e) => M(e)).filter((e) => j(e)), i = e.batchHash ? M(e.batchHash) : Dt(r);
|
|
1261
1235
|
else {
|
|
1262
1236
|
if (!e.batchHash) throw Error("@seedprotocol/publish: attestPublishedBy hash mode requires batchHash");
|
|
1263
|
-
if (i =
|
|
1237
|
+
if (i = M(e.batchHash), i === z) throw Error("@seedprotocol/publish: attestPublishedBy hash mode requires a non-zero batchHash");
|
|
1264
1238
|
}
|
|
1265
|
-
let a =
|
|
1266
|
-
if (!
|
|
1239
|
+
let a = M(e.seedUid);
|
|
1240
|
+
if (!j(a)) throw Error("@seedprotocol/publish: attestPublishedBy requires a valid seedUid");
|
|
1267
1241
|
let o = Er({
|
|
1268
1242
|
seedUid: a,
|
|
1269
|
-
versionUid:
|
|
1243
|
+
versionUid: M(e.versionUid ?? z),
|
|
1270
1244
|
attestationUids: r,
|
|
1271
1245
|
batchHash: i,
|
|
1272
1246
|
toolName: e.toolName,
|
|
1273
1247
|
toolVersion: e.toolVersion
|
|
1274
|
-
}),
|
|
1248
|
+
}), c = await Q(t, p({
|
|
1275
1249
|
schema: n,
|
|
1276
1250
|
data: {
|
|
1277
|
-
recipient:
|
|
1278
|
-
expirationTime: BigInt(
|
|
1251
|
+
recipient: u,
|
|
1252
|
+
expirationTime: BigInt(Lt),
|
|
1279
1253
|
revocable: !0,
|
|
1280
1254
|
refUID: a,
|
|
1281
1255
|
data: o,
|
|
1282
1256
|
value: 0n
|
|
1283
1257
|
}
|
|
1284
1258
|
}));
|
|
1285
|
-
if (!
|
|
1286
|
-
let { easContractAddress: l } =
|
|
1287
|
-
if (!
|
|
1259
|
+
if (!c) throw Error("@seedprotocol/publish: attestPublishedBy failed — no receipt");
|
|
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");
|
|
1288
1262
|
return {
|
|
1289
|
-
uid:
|
|
1263
|
+
uid: d,
|
|
1290
1264
|
schemaUid: n,
|
|
1291
1265
|
batchHash: i,
|
|
1292
1266
|
attestationUids: r
|
|
1293
1267
|
};
|
|
1294
1268
|
}
|
|
1295
1269
|
async function Or(e) {
|
|
1296
|
-
let t = wr(e.wallet),
|
|
1297
|
-
if (!
|
|
1298
|
-
if (!await Q(t,
|
|
1299
|
-
schema:
|
|
1300
|
-
data: [{ uid:
|
|
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 }]
|
|
1301
1275
|
}]))) throw Error("@seedprotocol/publish: revokePublishedBy failed — no receipt");
|
|
1302
1276
|
}
|
|
1303
1277
|
//#endregion
|
|
1304
|
-
export {
|
|
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 };
|
|
1305
1279
|
|
|
1306
1280
|
//# sourceMappingURL=index.js.map
|