@seedprotocol/publish 0.7.4-next.784.g879c6a3 → 0.7.4-next.793.g6dd83dd
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/dist/{chainConfig-BHTH_BGB.js → chainConfig-BKuFZqOU.js} +28 -15
- package/dist/chainConfig-BKuFZqOU.js.map +1 -0
- package/dist/{ensureAutomationSessionKey-DITIsceC.js → ensureAutomationSessionKey-DgpGcDDd.js} +3 -3
- package/dist/{ensureAutomationSessionKey-DITIsceC.js.map → ensureAutomationSessionKey-DgpGcDDd.js.map} +1 -1
- package/dist/{ensureModularPublishBootstrap-sAAJn75c.js → ensureModularPublishBootstrap-C-z64vF-.js} +3 -3
- package/dist/{ensureModularPublishBootstrap-sAAJn75c.js.map → ensureModularPublishBootstrap-C-z64vF-.js.map} +1 -1
- package/dist/{ensureSmartWalletThenPublish-hRJ9T0f8.js → ensureSmartWalletThenPublish-YoUtjqRN.js} +2 -2
- package/dist/{ensureSmartWalletThenPublish-hRJ9T0f8.js.map → ensureSmartWalletThenPublish-YoUtjqRN.js.map} +1 -1
- package/dist/helpers/publishWalletRegistry.d.ts +6 -1
- package/dist/helpers/publishWalletRegistry.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{managedAccountAdmin-CSBb6NaZ.js → managedAccountAdmin-C2sRBf9X.js} +2 -2
- package/dist/{managedAccountAdmin-CSBb6NaZ.js.map → managedAccountAdmin-C2sRBf9X.js.map} +1 -1
- package/dist/{publishAuthorization-CZyvsNGG.js → publishAuthorization-Dprnd1G4.js} +2 -2
- package/dist/{publishAuthorization-CZyvsNGG.js.map → publishAuthorization-Dprnd1G4.js.map} +1 -1
- package/dist/{resolveRevokeAccount-CbQiAEZp.js → resolveRevokeAccount-BQWdziaJ.js} +2 -2
- package/dist/{resolveRevokeAccount-CbQiAEZp.js.map → resolveRevokeAccount-BQWdziaJ.js.map} +1 -1
- package/dist/thirdweb.js +5 -5
- package/dist/thirdweb.js.map +1 -1
- package/dist/{undeployedSmartAccount-DwGsM3K1.js → undeployedSmartAccount-96Jwrrl6.js} +2 -2
- package/dist/{undeployedSmartAccount-DwGsM3K1.js.map → undeployedSmartAccount-96Jwrrl6.js.map} +1 -1
- package/dist/{worker--EZUESZk.js → worker-CcBaiQEh.js} +2 -2
- package/dist/{worker--EZUESZk.js.map → worker-CcBaiQEh.js.map} +1 -1
- package/package.json +6 -6
- package/dist/chainConfig-BHTH_BGB.js.map +0 -1
|
@@ -1362,9 +1362,13 @@ async function Jn(e) {
|
|
|
1362
1362
|
for (let n of e.ownedAddresses ?? []) n && t.add(n.toLowerCase());
|
|
1363
1363
|
t.add(e.signer.address.toLowerCase()), t.add(e.txSender.address.toLowerCase()), e.publisherAddress && t.add(e.publisherAddress.toLowerCase());
|
|
1364
1364
|
try {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1365
|
+
let { watched: n } = await p.getAddresses();
|
|
1366
|
+
await p.setAddresses({
|
|
1367
|
+
owned: [...t],
|
|
1368
|
+
watched: n
|
|
1369
|
+
});
|
|
1370
|
+
let r = e.publisherAddress ?? e.signer.address;
|
|
1371
|
+
r && await p.claimUnpublishedDrafts(r);
|
|
1368
1372
|
} catch (e) {
|
|
1369
1373
|
console.warn("[publishWalletRegistry] Failed to set seed client addresses:", e);
|
|
1370
1374
|
}
|
|
@@ -1372,8 +1376,17 @@ async function Jn(e) {
|
|
|
1372
1376
|
function P() {
|
|
1373
1377
|
return Kn;
|
|
1374
1378
|
}
|
|
1375
|
-
function Yn() {
|
|
1376
|
-
Kn = null
|
|
1379
|
+
async function Yn() {
|
|
1380
|
+
if (Kn = null, p.isInitialized()) try {
|
|
1381
|
+
let { watched: e } = await p.getAddresses();
|
|
1382
|
+
if (Kn) return;
|
|
1383
|
+
await p.setAddresses({
|
|
1384
|
+
owned: [],
|
|
1385
|
+
watched: e
|
|
1386
|
+
});
|
|
1387
|
+
} catch (e) {
|
|
1388
|
+
console.warn("[publishWalletRegistry] Failed to clear seed client owned addresses:", e);
|
|
1389
|
+
}
|
|
1377
1390
|
}
|
|
1378
1391
|
//#endregion
|
|
1379
1392
|
//#region src/helpers/retryNonceTooLow.ts
|
|
@@ -1642,7 +1655,7 @@ async function Sr(e, t) {
|
|
|
1642
1655
|
let n = e.signer?.address;
|
|
1643
1656
|
if (!n || n.toLowerCase() === t.toLowerCase()) return !1;
|
|
1644
1657
|
try {
|
|
1645
|
-
let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-
|
|
1658
|
+
let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-DgpGcDDd.js").then((e) => e.n);
|
|
1646
1659
|
return await e(t, n);
|
|
1647
1660
|
} catch {
|
|
1648
1661
|
return !1;
|
|
@@ -1661,7 +1674,7 @@ async function Dr(e) {
|
|
|
1661
1674
|
let t = P();
|
|
1662
1675
|
if (t && (!e || Tr(t.txSender.address, e))) return t;
|
|
1663
1676
|
try {
|
|
1664
|
-
let { getConnectedAccount: n } = await Promise.resolve().then(() => ba), { resolveRevokeAccount: r } = await import("./resolveRevokeAccount-
|
|
1677
|
+
let { getConnectedAccount: n } = await Promise.resolve().then(() => ba), { resolveRevokeAccount: r } = await import("./resolveRevokeAccount-BQWdziaJ.js"), i = await n();
|
|
1665
1678
|
if (!i) throw Error("No wallet connected. Connect a wallet to revoke attestations.");
|
|
1666
1679
|
let a = await r({
|
|
1667
1680
|
account: i,
|
|
@@ -3122,7 +3135,7 @@ async function ao(e, t, n) {
|
|
|
3122
3135
|
let r = e, i, a, o;
|
|
3123
3136
|
try {
|
|
3124
3137
|
if (await pn(r, t)) return { status: "already-installed" };
|
|
3125
|
-
let { getManagedAccountAdmin: n } = await import("./managedAccountAdmin-
|
|
3138
|
+
let { getManagedAccountAdmin: n } = await import("./managedAccountAdmin-C2sRBf9X.js").then((e) => e.n), s = fr(await n(e));
|
|
3126
3139
|
i = s.txSender.address;
|
|
3127
3140
|
let c = await s.txSender.sendTransaction(mn(r));
|
|
3128
3141
|
o = c.transactionHash;
|
|
@@ -3370,7 +3383,7 @@ async function Fo(e, t) {
|
|
|
3370
3383
|
if (typeof t?.blockSchemaRegistration == "boolean") return t.blockSchemaRegistration;
|
|
3371
3384
|
let n = t?.managedAddress?.trim();
|
|
3372
3385
|
if (!n || !I(e)) return !1;
|
|
3373
|
-
let { isAutomationSessionActive: r } = await import("./ensureAutomationSessionKey-
|
|
3386
|
+
let { isAutomationSessionActive: r } = await import("./ensureAutomationSessionKey-DgpGcDDd.js").then((e) => e.n);
|
|
3374
3387
|
return r(n, e.signer.address);
|
|
3375
3388
|
}
|
|
3376
3389
|
async function Io(e, t, n) {
|
|
@@ -3662,7 +3675,7 @@ var Qo = T(async ({ input: { context: e } }) => {
|
|
|
3662
3675
|
if (c) {
|
|
3663
3676
|
let e = u?.signer?.address, n = !1;
|
|
3664
3677
|
if (t && e) {
|
|
3665
|
-
let { isAutomationSessionActive: r } = await import("./ensureAutomationSessionKey-
|
|
3678
|
+
let { isAutomationSessionActive: r } = await import("./ensureAutomationSessionKey-DgpGcDDd.js").then((e) => e.n);
|
|
3666
3679
|
n = await r(t, e);
|
|
3667
3680
|
}
|
|
3668
3681
|
if (n) {
|
|
@@ -3684,7 +3697,7 @@ var Qo = T(async ({ input: { context: e } }) => {
|
|
|
3684
3697
|
modularAccountModuleContract: s,
|
|
3685
3698
|
managedAddress: e.managedAddress
|
|
3686
3699
|
});
|
|
3687
|
-
let { ensureModularPublishBootstrap: n } = await import("./ensureModularPublishBootstrap-
|
|
3700
|
+
let { ensureModularPublishBootstrap: n } = await import("./ensureModularPublishBootstrap-C-z64vF-.js").then((e) => e.n), { fromThirdwebAccount: r } = await Promise.resolve().then(() => dr);
|
|
3688
3701
|
u = r(await n(e.managedAddress));
|
|
3689
3702
|
}
|
|
3690
3703
|
} else await Jo(t, u);
|
|
@@ -4045,7 +4058,7 @@ async function gs(e) {
|
|
|
4045
4058
|
return t.useDirectEas ? "directEas" : t.useModularExecutor || await en(e) ? "multiPublish" : "directEas";
|
|
4046
4059
|
}
|
|
4047
4060
|
async function _s(e, t) {
|
|
4048
|
-
let { undeployedPublisherProblem: n } = await import("./undeployedSmartAccount-
|
|
4061
|
+
let { undeployedPublisherProblem: n } = await import("./undeployedSmartAccount-96Jwrrl6.js"), r = await n(e, t);
|
|
4049
4062
|
return r === "undeployed_smart_account" ? new A(`The publishing smart account ${e} is not deployed on ${$()} yet. Deploy it first (your wallet's setup flow, or deploySmartWalletContract from @seedprotocol/publish/thirdweb), then publish again.`, "MANAGED_ACCOUNT_NOT_DEPLOYED", e) : r === "sender_is_not_publisher" ? /* @__PURE__ */ Error(`The publish wallet sends as ${t?.txSender?.address}, not as the publisher ${e}, which has no contract deployed on ${$()}. Attesting directly to EAS would record the wrong attester. Connect the publisher's wallet, or deploy the publisher's smart account first.`) : null;
|
|
4050
4063
|
}
|
|
4051
4064
|
var vs = We(({ sendBack: e, input: { context: t } }) => {
|
|
@@ -5644,7 +5657,7 @@ function hl(e) {
|
|
|
5644
5657
|
async function gl(e, t) {
|
|
5645
5658
|
let n = Q(), r = Et(n);
|
|
5646
5659
|
if (r.sender === "modular") {
|
|
5647
|
-
let { ensureSmartWalletThenPublish: n } = await import("./ensureSmartWalletThenPublish-
|
|
5660
|
+
let { ensureSmartWalletThenPublish: n } = await import("./ensureSmartWalletThenPublish-YoUtjqRN.js").then((e) => e.n);
|
|
5648
5661
|
return n(e, null, async () => {
|
|
5649
5662
|
let e = P();
|
|
5650
5663
|
return e?.publisherAddress ?? e?.signer.address ?? null;
|
|
@@ -5733,7 +5746,7 @@ function wl(e) {
|
|
|
5733
5746
|
let e = P();
|
|
5734
5747
|
if (e?.publisherAddress) return e.publisherAddress;
|
|
5735
5748
|
if (e?.signer?.address) return e.signer.address;
|
|
5736
|
-
}), me(bl), he(Ar), xe().then(() => import("./worker
|
|
5749
|
+
}), me(bl), he(Ar), xe().then(() => import("./worker-CcBaiQEh.js")).then((e) => {
|
|
5737
5750
|
e.startArweaveL1FinalizeWorker();
|
|
5738
5751
|
}), fe(async () => e.useModularExecutor && e.modularAccountModuleContract ? [e.modularAccountModuleContract] : []);
|
|
5739
5752
|
}
|
|
@@ -5810,4 +5823,4 @@ function $() {
|
|
|
5810
5823
|
//#endregion
|
|
5811
5824
|
export { Da as $, Wt as $t, vo as A, Mn as At, Ra as B, gn as Bt, qo as C, I as Ct, bo as D, P as Dt, Co as E, Yn as Et, Pa as F, wn as Ft, Aa as G, an as Gt, Wa as H, vn as Ht, La as I, sn as It, Ma as J, Vt as Jt, qa as K, $t as Kt, Ia as L, hn as Lt, io as M, Pn as Mt, eo as N, Sn as Nt, xo as O, Jn as Ot, no as P, Cn as Pt, Oa as Q, qt as Qt, Fa as R, yn as Rt, bs as S, rr as St, Io as T, nr as Tt, Ka as U, j as Ut, Ba as V, _n as Vt, wa as W, en as Wt, Ta as X, A as Xt, Na as Y, Gt as Yt, ka as Z, Ut as Zt, Fs as _, or as _t, Q as a, Et as an, ji as at, Os as b, er as bt, Dl as c, gt as cn, Gr as ct, gl as d, vt as dn, hr as dt, Jt as en, _a as et, pl as f, br as ft, Hs as g, L as gt, Vs as h, fr as ht, Cl as i, k as in, Ai as it, _o as j, kn as jt, po as k, On as kt, bl as l, _t as ln, si as lt, Js as m, pr as mt, Al as n, Ct as nn, K as nt, wl as o, wt as on, mi as ot, ul as p, mr as pt, ja as q, M as qt, Tl as r, St as rn, Oi as rt, Ol as s, O as sn, hi as st, $ as t, Ht as tn, ya as tt, yl as u, yt as un, z as ut, Is as v, ir as vt, Jo as w, F as wt, ys as x, tr as xt, Ds as y, ar as yt, za as z, fn as zt };
|
|
5812
5825
|
|
|
5813
|
-
//# sourceMappingURL=chainConfig-
|
|
5826
|
+
//# sourceMappingURL=chainConfig-BKuFZqOU.js.map
|