@seedprotocol/publish 0.7.3-next.613.g79a8dfd → 0.7.3

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 (44) hide show
  1. package/README.md +4 -2
  2. package/dist/chainConfig-RhKIuGtN.js +5289 -0
  3. package/dist/chainConfig-RhKIuGtN.js.map +1 -0
  4. package/dist/config.d.ts +3 -1
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/{ensureAutomationSessionKey-bw6knEyC.js → ensureAutomationSessionKey-CvUntLne.js} +25 -26
  7. package/dist/{ensureAutomationSessionKey-bw6knEyC.js.map → ensureAutomationSessionKey-CvUntLne.js.map} +1 -1
  8. package/dist/{ensureModularPublishBootstrap-Vc4Jz_B9.js → ensureModularPublishBootstrap-D9q246TT.js} +9 -11
  9. package/dist/{ensureModularPublishBootstrap-Vc4Jz_B9.js.map → ensureModularPublishBootstrap-D9q246TT.js.map} +1 -1
  10. package/dist/ensureSmartWalletThenPublish-C_iS5Wb-.js +52 -0
  11. package/dist/ensureSmartWalletThenPublish-C_iS5Wb-.js.map +1 -0
  12. package/dist/helpers/ensureSmartWalletThenPublish.d.ts +1 -0
  13. package/dist/helpers/ensureSmartWalletThenPublish.d.ts.map +1 -1
  14. package/dist/helpers/ensureWalletThenPublish.d.ts +7 -0
  15. package/dist/helpers/ensureWalletThenPublish.d.ts.map +1 -1
  16. package/dist/helpers/publishItem.d.ts +21 -0
  17. package/dist/helpers/publishItem.d.ts.map +1 -0
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +341 -476
  21. package/dist/index.js.map +1 -1
  22. package/dist/managedAccountAdmin-CLVRJEKI.js +26 -0
  23. package/dist/{managedAccountAdmin-B3DPMmhR.js.map → managedAccountAdmin-CLVRJEKI.js.map} +1 -1
  24. package/dist/publishAuthorization-DAarz1JK.js +176 -0
  25. package/dist/publishAuthorization-DAarz1JK.js.map +1 -0
  26. package/dist/{resolveRevokeAccount-CkbTpC27.js → resolveRevokeAccount-TRcqJtIO.js} +13 -15
  27. package/dist/{resolveRevokeAccount-CkbTpC27.js.map → resolveRevokeAccount-TRcqJtIO.js.map} +1 -1
  28. package/dist/services/publish/helpers/getPublishUploadData.d.ts +12 -23
  29. package/dist/services/publish/helpers/getPublishUploadData.d.ts.map +1 -1
  30. package/dist/services/upload/uploadMachine.d.ts +1 -1
  31. package/dist/thirdweb.js +144 -145
  32. package/dist/thirdweb.js.map +1 -1
  33. package/dist/{worker-CCQ7KBMm.js → worker-CyuMiBB-.js} +2 -2
  34. package/dist/{worker-CCQ7KBMm.js.map → worker-CyuMiBB-.js.map} +1 -1
  35. package/package.json +6 -6
  36. package/dist/chainConfig-BDMRU4m8.js +0 -1455
  37. package/dist/chainConfig-BDMRU4m8.js.map +0 -1
  38. package/dist/ensureSmartWalletThenPublish-42iEhiHG.js +0 -47
  39. package/dist/ensureSmartWalletThenPublish-42iEhiHG.js.map +0 -1
  40. package/dist/managedAccountAdmin-B3DPMmhR.js +0 -28
  41. package/dist/publishAuthorization-CAFF5jQ2.js +0 -4023
  42. package/dist/publishAuthorization-CAFF5jQ2.js.map +0 -1
  43. package/dist/publishThirdwebClient-CPzAjnmf.js +0 -18
  44. package/dist/publishThirdwebClient-CPzAjnmf.js.map +0 -1
package/dist/thirdweb.js CHANGED
@@ -1,161 +1,160 @@
1
- import { A as e, M as t, a as n, ct as r, dt as i, h as a, lt as o, m as s, mt as c, o as l, p as u, pt as d, s as f, t as p, tt as ee, y as m } from "./chainConfig-BDMRU4m8.js";
2
- import { A as h, B as g, C as _, D as te, E as ne, F as v, G as re, H as ie, I as y, K as ae, L as oe, M as b, N as x, O as se, P as S, R as C, S as w, T as ce, U as le, W as ue, a as de, b as fe, d as pe, f as me, h as T, j as he, k as E, l as D, m as O, nt as k, p as A, tt as j, u as M, x as N, y as P, z as F } from "./publishAuthorization-CAFF5jQ2.js";
3
- import { t as I } from "./publishThirdwebClient-CPzAjnmf.js";
4
- import { t as L } from "./ensureSmartWalletThenPublish-42iEhiHG.js";
5
- import { t as R } from "./ensureModularPublishBootstrap-Vc4Jz_B9.js";
6
- import { i as z, r as B, t as V } from "./ensureAutomationSessionKey-bw6knEyC.js";
1
+ import { A as e, At as t, B as n, C as r, D as i, Dt as a, F as o, Ft as s, G as c, H as l, I as u, It as d, J as f, K as ee, L as p, M as m, N as te, Nt as ne, O as re, P as h, R as g, S as ie, T as ae, U as oe, V as _, W as v, a as y, et as se, ht as ce, i as le, j as ue, jt as b, k as de, nt as x, o as fe, p as S, pt as pe, q as me, rt as C, t as w, tt as he, w as T, x as E, z as D } from "./chainConfig-RhKIuGtN.js";
2
+ import { a as O, d as k, f as A, g as j, h as M, l as N, m as P, p as F, u as I } from "./publishAuthorization-DAarz1JK.js";
3
+ import { t as L } from "./ensureSmartWalletThenPublish-C_iS5Wb-.js";
4
+ import { t as R } from "./ensureModularPublishBootstrap-D9q246TT.js";
5
+ import { i as z, r as B, t as V } from "./ensureAutomationSessionKey-CvUntLne.js";
7
6
  import { client as H } from "@seedprotocol/sdk";
8
7
  import { deploySmartAccount as ge, getContract as U, sendTransaction as _e } from "thirdweb";
9
- import { assessPublishAuthorization as ve, decodePublishAuthorizationData as ye, getPublishAuthorizationFromEas as be } from "@seedprotocol/eas";
10
- import { useCallback as W, useEffect as G, useRef as K } from "react";
11
- import { jsx as q } from "react/jsx-runtime";
12
- import { SeedProvider as xe } from "@seedprotocol/react";
13
- import { ConnectButton as Se, ThirdwebProvider as Ce, darkTheme as we, useActiveAccount as Te, useActiveWallet as Ee, useActiveWalletConnectionStatus as De, useIsAutoConnecting as Oe } from "thirdweb/react";
14
- import { addSessionKey as ke, shouldUpdateSessionKey as Ae } from "thirdweb/extensions/erc4337";
8
+ import { ConnectButton as ve, ThirdwebProvider as ye, darkTheme as be, useActiveAccount as xe, useActiveWallet as Se, useActiveWalletConnectionStatus as Ce, useIsAutoConnecting as we } from "thirdweb/react";
9
+ import { useCallback as Te, useEffect as W, useRef as G } from "react";
10
+ import { assessPublishAuthorization as Ee, decodePublishAuthorizationData as De, getPublishAuthorizationFromEas as Oe } from "@seedprotocol/eas";
11
+ import { jsx as K } from "react/jsx-runtime";
12
+ import { SeedProvider as ke } from "@seedprotocol/react";
13
+ import { addSessionKey as Ae, shouldUpdateSessionKey as je } from "thirdweb/extensions/erc4337";
15
14
  //#region src/react/ConnectButton.tsx
16
- var J = "seedProtocol:publish:userChoseWalletDisconnect";
17
- function je(e) {
18
- console.warn("[ConnectButton] Wallet setup / module install skipped:", e), l().onWalletSetupWarning?.(e);
15
+ var q = "seedProtocol:publish:userChoseWalletDisconnect";
16
+ function Me(e) {
17
+ console.warn("[ConnectButton] Wallet setup / module install skipped:", e), y().onWalletSetupWarning?.(e);
19
18
  }
20
- function Me() {
19
+ function Ne() {
21
20
  return H.isInitialized() ? Promise.resolve() : new Promise((e) => {
22
21
  H.onReady(() => e());
23
22
  });
24
23
  }
25
- async function Ne(e, t, n) {
24
+ async function Pe(e, t, n) {
26
25
  if (n.modularAccountModuleContract) {
27
26
  if (n.useModularExecutor) {
28
27
  if (!t) return;
29
28
  try {
30
- g();
31
- let e = b();
29
+ l();
30
+ let e = h();
32
31
  await e.autoConnect({
33
- client: I(),
34
- chain: m(n)
32
+ client: f(),
33
+ chain: C(n)
35
34
  });
36
35
  let r = e.getAccount();
37
36
  if (!r) return;
38
- await w(t, r, n);
37
+ await T(t, r, n);
39
38
  } catch {}
40
39
  } else try {
41
- await w(e.address, e, n);
40
+ await T(e.address, e, n);
42
41
  } catch (e) {
43
- je(e);
42
+ Me(e);
44
43
  }
45
44
  }
46
45
  }
47
- var Pe = () => {
48
- let n = k(), r = m(n), i = Ee(), o = Te(), s = De(), c = Oe(), l = K(null), u = K(!1), d = K(!1);
49
- G(() => {
46
+ var Fe = () => {
47
+ let e = j(), t = C(e), n = Se(), r = xe(), i = Ce(), a = we(), s = G(null), c = G(!1), u = G(!1);
48
+ W(() => {
50
49
  if (typeof window > "u") return;
51
- let e = u.current;
52
- u.current = c;
53
- let t;
50
+ let n = c.current;
51
+ c.current = a;
52
+ let r;
54
53
  try {
55
- t = performance.getEntriesByType("navigation")[0]?.type;
54
+ r = performance.getEntriesByType("navigation")[0]?.type;
56
55
  } catch {
57
- t = void 0;
56
+ r = void 0;
58
57
  }
59
- if (t !== "reload") return;
60
- let i = !1;
58
+ if (r !== "reload") return;
59
+ let s = !1;
61
60
  try {
62
- i = sessionStorage.getItem(J) === "1";
61
+ s = sessionStorage.getItem(q) === "1";
63
62
  } catch {
64
- i = !1;
63
+ s = !1;
65
64
  }
66
- i || e && !c && s === "disconnected" && (d.current || (d.current = !0, (n.useModularExecutor ? x() : b()).autoConnect({
67
- client: I(),
68
- chain: r
65
+ s || n && !a && i === "disconnected" && (u.current || (u.current = !0, (e.useModularExecutor ? o() : h()).autoConnect({
66
+ client: f(),
67
+ chain: t
69
68
  }).catch(() => {})));
70
69
  }, [
71
- s,
72
- c,
73
- n.useModularExecutor,
74
- r
70
+ i,
71
+ a,
72
+ e.useModularExecutor,
73
+ t
75
74
  ]);
76
- let f = W(async (e) => {
77
- let i = e.getAccount();
78
- if (!i) return;
79
- await Me(), T.stopAll();
80
- let o = /* @__PURE__ */ new Set([i.address.toLowerCase()]), s;
81
- if (n.useModularExecutor) {
82
- g();
83
- let t = e.getAdminAccount?.()?.address ?? i.address, n = async () => {
75
+ let d = Te(async (n) => {
76
+ let r = n.getAccount();
77
+ if (!r) return;
78
+ await Ne(), S.stopAll();
79
+ let i = /* @__PURE__ */ new Set([r.address.toLowerCase()]), a;
80
+ if (e.useModularExecutor) {
81
+ l();
82
+ let e = n.getAdminAccount?.()?.address ?? r.address, o = async () => {
84
83
  try {
85
- return await h(r);
84
+ return await m(t);
86
85
  } catch {
87
86
  try {
88
- return await v(t);
87
+ return await p(e);
89
88
  } catch {
90
89
  return;
91
90
  }
92
91
  }
93
92
  };
94
- s = await n(), s ||= (await new Promise((e) => queueMicrotask(() => e())), await n()), s && o.add(s.toLowerCase());
93
+ a = await o(), a ||= (await new Promise((e) => queueMicrotask(() => e())), await o()), a && i.add(a.toLowerCase());
95
94
  }
96
- let c = [...o].sort().join(",");
97
- if (l.current !== c) {
98
- l.current = c;
95
+ let o = [...i].sort().join(",");
96
+ if (s.current !== o) {
97
+ s.current = o;
99
98
  try {
100
- let e = a(i);
101
- await t({
99
+ let e = x(r);
100
+ await ce({
102
101
  ...e,
103
- ownedAddresses: [...o],
104
- publisherAddress: s ?? i.address
102
+ ownedAddresses: [...i],
103
+ publisherAddress: a ?? r.address
105
104
  });
106
105
  } catch (e) {
107
- throw l.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
106
+ throw s.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
108
107
  }
109
- await Ne(i, s, n);
108
+ await Pe(r, a, e);
110
109
  }
111
- }, [n]);
112
- return G(() => {
113
- if (c) return;
114
- if (s !== "connected") {
115
- l.current = null;
110
+ }, [e]);
111
+ return W(() => {
112
+ if (a) return;
113
+ if (i !== "connected") {
114
+ s.current = null;
116
115
  return;
117
116
  }
118
- if (!i) return;
117
+ if (!n) return;
119
118
  let e = !1;
120
119
  return (async () => {
121
120
  try {
122
121
  if (e) return;
123
- await f(i);
122
+ await d(n);
124
123
  } catch {}
125
124
  })(), () => {
126
125
  e = !0;
127
126
  };
128
127
  }, [
128
+ n,
129
+ r?.address,
129
130
  i,
130
- o?.address,
131
- s,
132
- c,
133
- f
134
- ]), /* @__PURE__ */ q(Se, {
135
- client: I(),
136
- wallets: y(n),
131
+ a,
132
+ d
133
+ ]), /* @__PURE__ */ K(ve, {
134
+ client: f(),
135
+ wallets: g(e),
137
136
  autoConnect: !0,
138
- chain: r,
139
- chains: [r],
137
+ chain: t,
138
+ chains: [t],
140
139
  onConnect: async (e, t) => {
141
140
  let n = e.getAccount();
142
141
  if (n) {
143
142
  try {
144
- sessionStorage.removeItem(J);
143
+ sessionStorage.removeItem(q);
145
144
  } catch {}
146
145
  console.log("[ConnectButton] Connected", n.address);
147
146
  try {
148
- await f(e);
147
+ await d(e);
149
148
  } catch {}
150
149
  }
151
150
  },
152
151
  onDisconnect: () => {
153
152
  try {
154
- sessionStorage.setItem(J, "1");
153
+ sessionStorage.setItem(q, "1");
155
154
  } catch {}
156
- e(), T.stopAll();
155
+ pe(), S.stopAll();
157
156
  },
158
- theme: we({ colors: {
157
+ theme: be({ colors: {
159
158
  primaryButtonBg: "#1D2939",
160
159
  primaryButtonText: "#FFFFFF",
161
160
  secondaryButtonHoverBg: "#1D2939",
@@ -164,125 +163,125 @@ var Pe = () => {
164
163
  borderColor: "#344054"
165
164
  } })
166
165
  });
167
- }, Fe = ({ children: e, config: t, queryClient: r, queryClientRef: i }) => (G(() => {
168
- t && f(t);
169
- }, [t]), /* @__PURE__ */ q(j.Provider, {
170
- value: t ?? n(),
171
- children: /* @__PURE__ */ q(Ce, { children: /* @__PURE__ */ q(xe, {
172
- queryClient: r,
173
- queryClientRef: i,
166
+ }, Ie = ({ children: e, config: t, queryClient: n, queryClientRef: r }) => (W(() => {
167
+ t && fe(t);
168
+ }, [t]), /* @__PURE__ */ K(M.Provider, {
169
+ value: t ?? le(),
170
+ children: /* @__PURE__ */ K(ye, { children: /* @__PURE__ */ K(ke, {
171
+ queryClient: n,
172
+ queryClientRef: r,
174
173
  children: e
175
174
  }) })
176
- })), Ie = "Modular (EIP-7702) wallet is not connected. Sign in with the same method and try again.", Le = () => `Your modular account is not upgraded to an EIP-7702 smart account on ${p()} yet. Enable autoDeployEip7702ModularAccount in publish config or complete wallet setup, then retry.`, Re = () => `Automatic EIP-7702 smart account setup failed on ${p()}. Retry or reconnect your wallet.`, ze = "EIP-7702 upgrade was sent but on-chain bytecode was not detected yet. Wait a moment and retry.", Y = 5;
175
+ })), Le = "Modular (EIP-7702) wallet is not connected. Sign in with the same method and try again.", Re = () => `Your modular account is not upgraded to an EIP-7702 smart account on ${w()} yet. Enable autoDeployEip7702ModularAccount in publish config or complete wallet setup, then retry.`, ze = () => `Automatic EIP-7702 smart account setup failed on ${w()}. Retry or reconnect your wallet.`, J = "EIP-7702 upgrade was sent but on-chain bytecode was not detected yet. Wait a moment and retry.", Y = 5;
177
176
  async function Be() {
178
- let { autoDeployEip7702ModularAccount: e } = l(), t = x();
179
- await t.autoConnect({
180
- client: I(),
181
- chain: m()
177
+ let { autoDeployEip7702ModularAccount: e } = y(), n = o();
178
+ await n.autoConnect({
179
+ client: f(),
180
+ chain: C()
182
181
  });
183
- let n = t.getAccount();
184
- if (!n) throw new d(Ie, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
185
- let i = I(), a = U({
182
+ let r = n.getAccount();
183
+ if (!r) throw new s(Le, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
184
+ let i = f(), a = U({
186
185
  client: i,
187
- chain: m(),
188
- address: n.address
186
+ chain: C(),
187
+ address: r.address
189
188
  });
190
- if (!await r(n.address)) {
191
- if (!e) throw new d(Le(), "EIP7702_MODULAR_NOT_UPGRADED", n.address);
189
+ if (!await t(r.address)) {
190
+ if (!e) throw new s(Re(), "EIP7702_MODULAR_NOT_UPGRADED", r.address);
192
191
  try {
193
192
  await ge({
194
- smartAccount: n,
195
- chain: m(),
193
+ smartAccount: r,
194
+ chain: C(),
196
195
  client: i,
197
196
  accountContract: a
198
197
  });
199
198
  } catch (e) {
200
- if (await o(n.address, Y)) return;
201
- throw new d(Re(), "EIP7702_MODULAR_DEPLOY_FAILED", n.address, e);
199
+ if (await b(r.address, Y)) return;
200
+ throw new s(ze(), "EIP7702_MODULAR_DEPLOY_FAILED", r.address, e);
202
201
  }
203
- if (!await o(n.address, Y)) throw new d(ze, "EIP7702_MODULAR_NOT_CONFIRMED", n.address);
202
+ if (!await b(r.address, Y)) throw new s(J, "EIP7702_MODULAR_NOT_CONFIRMED", r.address);
204
203
  }
205
204
  }
206
205
  //#endregion
207
206
  //#region src/helpers/defaultApprovedTargetsForModularPublish.ts
208
207
  function X(e) {
209
- return O();
208
+ return P();
210
209
  }
211
210
  //#endregion
212
211
  //#region src/helpers/ensureManagedSignerSessionKey.ts
213
- var Ve = () => `Could not connect the managed publishing account to authorize the modular signer on ${p()}. Reconnect and try again.`, Z = () => `Could not authorize the modular wallet as a session signer on your publishing account on ${p()}.`;
212
+ var Ve = () => `Could not connect the managed publishing account to authorize the modular signer on ${w()}. Reconnect and try again.`, Z = () => `Could not authorize the modular wallet as a session signer on your publishing account on ${w()}.`;
214
213
  async function He(e) {
215
- let { managedAddress: t, signerAddress: n } = e, r = b();
214
+ let { managedAddress: t, signerAddress: n } = e, r = h();
216
215
  await r.autoConnect({
217
- client: I(),
218
- chain: m()
216
+ client: f(),
217
+ chain: C()
219
218
  });
220
- let a = r.getAccount();
221
- if (!a) throw new c(Ve(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
219
+ let i = r.getAccount();
220
+ if (!i) throw new d(Ve(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
222
221
  let o = U({
223
- client: I(),
224
- chain: m(),
222
+ client: f(),
223
+ chain: C(),
225
224
  address: t
226
225
  }), s = {
227
226
  approvedTargets: X(t),
228
227
  nativeTokenLimitPerTransaction: 0
229
- }, l = !1;
228
+ }, c = !1;
230
229
  try {
231
- l = await Ae({
230
+ c = await je({
232
231
  accountContract: o,
233
232
  sessionKeyAddress: n,
234
233
  newPermissions: s
235
234
  });
236
235
  } catch (e) {
237
- throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
236
+ throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
238
237
  }
239
- if (l) try {
240
- let e = ke({
238
+ if (c) try {
239
+ let e = Ae({
241
240
  contract: o,
242
- account: a,
241
+ account: i,
243
242
  sessionKeyAddress: n,
244
243
  permissions: s
245
244
  }), t = await _e({
246
- account: a,
245
+ account: i,
247
246
  transaction: e
248
247
  });
249
- await i(t.transactionHash);
248
+ await ne(t.transactionHash);
250
249
  } catch (e) {
251
- throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
250
+ throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
252
251
  }
253
- let u = !1;
252
+ let l = !1;
254
253
  try {
255
- u = await ee(t, n);
254
+ l = await a(t, n);
256
255
  } catch (e) {
257
- throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
256
+ throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
258
257
  }
259
- if (!u) throw new c(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
258
+ if (!l) throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
260
259
  }
261
260
  //#endregion
262
261
  //#region src/helpers/enrollPublishAutomation.ts
263
262
  async function Q(e) {
264
- let t = b();
263
+ let t = h();
265
264
  await t.autoConnect({
266
- client: I(),
267
- chain: m()
265
+ client: f(),
266
+ chain: C()
268
267
  });
269
268
  let n = t.getAccount();
270
- if (!n) throw new c("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
269
+ if (!n) throw new d("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
271
270
  return n;
272
271
  }
273
272
  async function $(e, t) {
274
- return t || a(await Q(e));
273
+ return t || x(await Q(e));
275
274
  }
276
275
  async function Ue(e) {
277
- let t = l();
276
+ let t = y();
278
277
  if (!t.modularAccountModuleContract?.trim()) throw Error("@seedprotocol/publish: enrollPublishAutomation requires PublishConfig.modularAccountModuleContract");
279
278
  let n = await Q(e), r;
280
279
  try {
281
- r = await w(e, n, t);
280
+ r = await T(e, n, t);
282
281
  } catch (t) {
283
- throw t instanceof c ? t : new c("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
282
+ throw t instanceof d ? t : new d("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
284
283
  }
285
- await _(e, r.status === "installed" ? { installedEas: r.eas } : { readAttempts: r.status === "already-installed" ? 5 : 1 });
284
+ await ae(e, r.status === "installed" ? { installedEas: r.eas } : { readAttempts: r.status === "already-installed" ? 5 : 1 });
286
285
  }
287
286
  async function We(e) {
288
287
  let { managedAddress: t, sessionKeyAddress: n, appAddress: r, expiresAt: i } = e;
@@ -295,7 +294,7 @@ async function We(e) {
295
294
  return {
296
295
  managedAddress: t,
297
296
  sessionKeyAddress: n,
298
- authorization: await de({
297
+ authorization: await O({
299
298
  wallet: a,
300
299
  identity: t,
301
300
  sessionKey: n,
@@ -309,7 +308,7 @@ async function Ge(e) {
309
308
  await z({
310
309
  managedAddress: t,
311
310
  sessionKeyAddress: n
312
- }), await D({
311
+ }), await N({
313
312
  wallet: i,
314
313
  uid: r
315
314
  });
@@ -333,15 +332,15 @@ async function Ke(e) {
333
332
  o.push(e instanceof Error ? e.message : "isActiveSigner check failed");
334
333
  }
335
334
  if (a) try {
336
- let e = await be({
335
+ let e = await Oe({
337
336
  identities: [t],
338
337
  sessionKeys: [n],
339
338
  excludeRevoked: !0
340
339
  }), i = r == null ? Date.now() : r * 1e3;
341
340
  for (let t of e) try {
342
- let e = ye(t.decodedDataJson ?? "[]");
341
+ let e = De(t.decodedDataJson ?? "[]");
343
342
  if (e.identity.toLowerCase() !== c || e.sessionKey.toLowerCase() !== s) continue;
344
- let n = typeof t.expirationTime == "number" ? t.expirationTime : null, r = ve({
343
+ let n = typeof t.expirationTime == "number" ? t.expirationTime : null, r = Ee({
345
344
  decoded: e,
346
345
  expirationTime: n,
347
346
  now: i
@@ -363,6 +362,6 @@ async function Ke(e) {
363
362
  };
364
363
  }
365
364
  //#endregion
366
- export { re as CALL_GAS_HEADROOM_BPS, Pe as ConnectButton, ce as ExternalWalletsForDeploy, M as PUBLISH_AUTOMATION_SCOPES, Fe as PublishProvider, ne as appMetadata, O as approvedTargetsForAutomationPublish, u as asSeedSignerFromThirdweb, s as asThirdwebPublishWallet, Ke as assertStorageBoundToIdentity, pe as buildAutomationSessionKeyPermissions, X as defaultApprovedTargetsForModularPublish, te as deployManagedAccountViaFactory, se as deploySmartWalletContract, We as enrollPublishAutomation, V as ensureAutomationSessionKey, Be as ensureEip7702ModularAccountReady, w as ensureExecutorModuleInstalled, P as ensureManagedAccountReady, He as ensureManagedSignerSessionKey, R as ensureModularPublishBootstrap, L as ensureSmartWalletThenPublish, a as fromThirdwebAccount, I as getClient, E as getConnectedAccount, h as getConnectedManagedAccountAddress, he as getConnectedModularAccount, b as getManagedAccountWallet, x as getModularAccountWallet, m as getPublishThirdwebChain, S as getSharedPublishInAppWalletStorage, v as getSmartWalletAddressForAdmin, y as getWalletsForConnectButton, me as hashAutomationSessionKeyPermissions, B as isAutomationSessionActive, oe as isSmartWalletDeployed, C as pollSmartWalletDeployed, z as removeAutomationSessionKey, F as resolveSmartWalletForPublish, Ge as revokePublishAutomation, fe as runModularExecutorPublishPrep, ae as seedPaymaster, A as toThirdwebSessionKeyPermissions, N as tryDeployManagedAccount, ie as useActiveSmartWalletContract, le as useLocalWalletAccount, k as usePublishConfig, ue as wallets };
365
+ export { ee as CALL_GAS_HEADROOM_BPS, Fe as ConnectButton, i as ExternalWalletsForDeploy, I as PUBLISH_AUTOMATION_SCOPES, Ie as PublishProvider, re as appMetadata, P as approvedTargetsForAutomationPublish, se as asSeedSignerFromThirdweb, he as asThirdwebPublishWallet, Ke as assertStorageBoundToIdentity, k as buildAutomationSessionKeyPermissions, X as defaultApprovedTargetsForModularPublish, de as deployManagedAccountViaFactory, e as deploySmartWalletContract, We as enrollPublishAutomation, V as ensureAutomationSessionKey, Be as ensureEip7702ModularAccountReady, T as ensureExecutorModuleInstalled, E as ensureManagedAccountReady, He as ensureManagedSignerSessionKey, R as ensureModularPublishBootstrap, L as ensureSmartWalletThenPublish, x as fromThirdwebAccount, f as getClient, ue as getConnectedAccount, m as getConnectedManagedAccountAddress, te as getConnectedModularAccount, h as getManagedAccountWallet, o as getModularAccountWallet, C as getPublishThirdwebChain, u as getSharedPublishInAppWalletStorage, p as getSmartWalletAddressForAdmin, g as getWalletsForConnectButton, A as hashAutomationSessionKeyPermissions, B as isAutomationSessionActive, D as isSmartWalletDeployed, n as pollSmartWalletDeployed, z as removeAutomationSessionKey, _ as resolveSmartWalletForPublish, Ge as revokePublishAutomation, ie as runModularExecutorPublishPrep, me as seedPaymaster, F as toThirdwebSessionKeyPermissions, r as tryDeployManagedAccount, oe as useActiveSmartWalletContract, v as useLocalWalletAccount, j as usePublishConfig, c as wallets };
367
366
 
368
367
  //# sourceMappingURL=thirdweb.js.map