@seedprotocol/publish 0.7.4 → 0.7.5-next.871.g8788c94

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 (87) hide show
  1. package/CHANGELOG.md +229 -3
  2. package/README.md +31 -8
  3. package/dist/{chainConfig-DM9RSIMT.js → chainConfig-CY22-kWO.js} +1534 -1458
  4. package/dist/chainConfig-CY22-kWO.js.map +1 -0
  5. package/dist/config.d.ts +11 -5
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/{ensureAutomationSessionKey-DTO5lxXB.js → ensureAutomationSessionKey-CKFyZNj7.js} +22 -22
  8. package/dist/{ensureAutomationSessionKey-DTO5lxXB.js.map → ensureAutomationSessionKey-CKFyZNj7.js.map} +1 -1
  9. package/dist/{ensureModularPublishBootstrap-BYySx3sx.js → ensureModularPublishBootstrap-DQDSbkQy.js} +9 -9
  10. package/dist/{ensureModularPublishBootstrap-BYySx3sx.js.map → ensureModularPublishBootstrap-DQDSbkQy.js.map} +1 -1
  11. package/dist/ensureSmartWalletThenPublish-By_Xv7xG.js +47 -0
  12. package/dist/ensureSmartWalletThenPublish-By_Xv7xG.js.map +1 -0
  13. package/dist/helpers/adapters/thirdwebAccount.d.ts +3 -1
  14. package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
  15. package/dist/helpers/arweave.d.ts.map +1 -1
  16. package/dist/helpers/chainClient.d.ts +6 -0
  17. package/dist/helpers/chainClient.d.ts.map +1 -1
  18. package/dist/helpers/ensureSmartWalletThenPublish.d.ts +3 -4
  19. package/dist/helpers/ensureSmartWalletThenPublish.d.ts.map +1 -1
  20. package/dist/helpers/ensureWalletThenPublish.d.ts +18 -4
  21. package/dist/helpers/ensureWalletThenPublish.d.ts.map +1 -1
  22. package/dist/helpers/publishItem.d.ts.map +1 -1
  23. package/dist/helpers/publishWalletRegistry.d.ts +17 -0
  24. package/dist/helpers/publishWalletRegistry.d.ts.map +1 -1
  25. package/dist/helpers/seedSigner.d.ts +8 -0
  26. package/dist/helpers/seedSigner.d.ts.map +1 -1
  27. package/dist/helpers/thirdweb.d.ts +4 -0
  28. package/dist/helpers/thirdweb.d.ts.map +1 -1
  29. package/dist/hooks/useCanPublishItem.d.ts +5 -0
  30. package/dist/hooks/useCanPublishItem.d.ts.map +1 -1
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +274 -260
  34. package/dist/index.js.map +1 -1
  35. package/dist/{managedAccountAdmin-rhHtJC4y.js → managedAccountAdmin-DBAX8yny.js} +9 -9
  36. package/dist/{managedAccountAdmin-rhHtJC4y.js.map → managedAccountAdmin-DBAX8yny.js.map} +1 -1
  37. package/dist/{publishAuthorization-Dx-4adsz.js → publishAuthorization-D2wbNc-H.js} +24 -24
  38. package/dist/{publishAuthorization-Dx-4adsz.js.map → publishAuthorization-D2wbNc-H.js.map} +1 -1
  39. package/dist/publishWalletRegistry-BaQe9rIR.js +48 -0
  40. package/dist/publishWalletRegistry-BaQe9rIR.js.map +1 -0
  41. package/dist/react/ConnectButton.d.ts.map +1 -1
  42. package/dist/react/PublishProvider.d.ts.map +1 -1
  43. package/dist/react/PublishProvider.initOrder.test.d.ts +2 -0
  44. package/dist/react/PublishProvider.initOrder.test.d.ts.map +1 -0
  45. package/dist/react/PublishProvider.thirdweb.d.ts.map +1 -1
  46. package/dist/{resolveRevokeAccount-CC9X1H9x.js → resolveRevokeAccount-B7cj6OyT.js} +9 -9
  47. package/dist/{resolveRevokeAccount-CC9X1H9x.js.map → resolveRevokeAccount-B7cj6OyT.js.map} +1 -1
  48. package/dist/services/arweaveL1Finalize/worker.d.ts.map +1 -1
  49. package/dist/services/publish/actors/checking.d.ts.map +1 -1
  50. package/dist/services/publish/actors/createArweaveDataItems.d.ts +2 -0
  51. package/dist/services/publish/actors/createArweaveDataItems.d.ts.map +1 -1
  52. package/dist/services/publish/actors/createArweaveDataItemsPhase2.d.ts.map +1 -1
  53. package/dist/services/publish/actors/pollForConfirmation.d.ts +14 -0
  54. package/dist/services/publish/actors/pollForConfirmation.d.ts.map +1 -1
  55. package/dist/services/publish/actors/uploadViaBundler.d.ts +5 -0
  56. package/dist/services/publish/actors/uploadViaBundler.d.ts.map +1 -1
  57. package/dist/services/publish/helpers/undeployedSmartAccount.d.ts +11 -7
  58. package/dist/services/publish/helpers/undeployedSmartAccount.d.ts.map +1 -1
  59. package/dist/services/publish/index.d.ts +3 -1
  60. package/dist/services/publish/index.d.ts.map +1 -1
  61. package/dist/services/publishCost/estimatePublishCost.d.ts +14 -2
  62. package/dist/services/publishCost/estimatePublishCost.d.ts.map +1 -1
  63. package/dist/services/publishCost/types.d.ts +10 -0
  64. package/dist/services/publishCost/types.d.ts.map +1 -1
  65. package/dist/services/publishManager/actors/restorableSnapshot.d.ts +22 -0
  66. package/dist/services/publishManager/actors/restorableSnapshot.d.ts.map +1 -0
  67. package/dist/services/publishManager/actors/restoreFromDb.d.ts.map +1 -1
  68. package/dist/services/publishManager/index.d.ts +6 -10
  69. package/dist/services/publishManager/index.d.ts.map +1 -1
  70. package/dist/thirdweb.js +98 -92
  71. package/dist/thirdweb.js.map +1 -1
  72. package/dist/types.d.ts +6 -0
  73. package/dist/types.d.ts.map +1 -1
  74. package/dist/undeployedSmartAccount-pbMpi4PV.js +15 -0
  75. package/dist/undeployedSmartAccount-pbMpi4PV.js.map +1 -0
  76. package/dist/worker-CBBwWaxo.js +87 -0
  77. package/dist/worker-CBBwWaxo.js.map +1 -0
  78. package/package.json +25 -7
  79. package/dist/chainConfig-DM9RSIMT.js.map +0 -1
  80. package/dist/ensureSmartWalletThenPublish-DiH5CKLY.js +0 -52
  81. package/dist/ensureSmartWalletThenPublish-DiH5CKLY.js.map +0 -1
  82. package/dist/services/publishManager/actions/query.d.ts +0 -2
  83. package/dist/services/publishManager/actions/query.d.ts.map +0 -1
  84. package/dist/undeployedSmartAccount-uDk6iZjl.js +0 -24
  85. package/dist/undeployedSmartAccount-uDk6iZjl.js.map +0 -1
  86. package/dist/worker-Bv_xadel.js +0 -88
  87. package/dist/worker-Bv_xadel.js.map +0 -1
@@ -0,0 +1,22 @@
1
+ /** Minimal snapshot shape for restore; avoids excessive type recursion from SnapshotFrom<typeof publishMachine>.
2
+ * Older rows may omit `context.attestationStrategy`; publish guards then fall back to `useDirectEas`. */
3
+ export interface PersistedSnapshot {
4
+ status?: string;
5
+ value?: string | Record<string, unknown>;
6
+ context?: {
7
+ item?: {
8
+ seedLocalId?: string;
9
+ modelName?: string;
10
+ schemaId?: string;
11
+ };
12
+ modelName?: string;
13
+ schemaId?: string;
14
+ reimbursementTransactionId?: string;
15
+ requestResponse?: unknown;
16
+ arweaveTransactions?: unknown[];
17
+ publishUploads?: unknown[];
18
+ bundlerUploadNotNeeded?: boolean;
19
+ };
20
+ }
21
+ export declare function isRestorableSnapshot(parsed: PersistedSnapshot): boolean;
22
+ //# sourceMappingURL=restorableSnapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorableSnapshot.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actors/restorableSnapshot.ts"],"names":[],"mappings":"AAEA;yGACyG;AACzG,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;QACtE,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,0BAA0B,CAAC,EAAE,MAAM,CAAA;QACnC,eAAe,CAAC,EAAE,OAAO,CAAA;QACzB,mBAAmB,CAAC,EAAE,OAAO,EAAE,CAAA;QAC/B,cAAc,CAAC,EAAE,OAAO,EAAE,CAAA;QAC1B,sBAAsB,CAAC,EAAE,OAAO,CAAA;KACjC,CAAA;CACF;AAeD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAevE"}
@@ -1 +1 @@
1
- {"version":3,"file":"restoreFromDb.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actors/restoreFromDb.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,WAAW,EAAgB,MAAM,QAAQ,CAAA;AAoH/D,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE;QACP,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QACtC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACpC,CAAA;CACF;AAED,eAAO,MAAM,aAAa,mFAiGzB,CAAA"}
1
+ {"version":3,"file":"restoreFromDb.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actors/restoreFromDb.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,WAAW,EAAgB,MAAM,QAAQ,CAAA;AA+E/D,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE;QACP,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QACtC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACpC,CAAA;CACF;AAED,eAAO,MAAM,aAAa,mFAqGzB,CAAA"}
@@ -46,9 +46,6 @@ type PublishManagerEvent = {
46
46
  } | {
47
47
  type: 'STOP_PUBLISH';
48
48
  seedLocalId: string;
49
- } | {
50
- type: 'QUERY';
51
- seedLocalId: string;
52
49
  } | {
53
50
  type: 'STOP_ALL';
54
51
  };
@@ -89,9 +86,6 @@ export declare const publishManagerMachine: import("xstate").StateMachine<Publis
89
86
  } | {
90
87
  type: "STOP_PUBLISH";
91
88
  seedLocalId: string;
92
- } | {
93
- type: "QUERY";
94
- seedLocalId: string;
95
89
  } | {
96
90
  type: "STOP_ALL";
97
91
  }, {
@@ -148,9 +142,6 @@ export declare const PublishManager: {
148
142
  } | {
149
143
  type: "STOP_PUBLISH";
150
144
  seedLocalId: string;
151
- } | {
152
- type: "QUERY";
153
- seedLocalId: string;
154
145
  } | {
155
146
  type: "STOP_ALL";
156
147
  }, {
@@ -182,7 +173,12 @@ export declare const PublishManager: {
182
173
  createPublish: (item: InstanceType<typeof Item>, address: string, account?: import("../../helpers/seedSigner").PublishWallet, options?: import("../../config").CreatePublishOptions) => Promise<import("xstate").ActorRef<any, any> | undefined>;
183
174
  retryAttestations: (seedLocalId: string, account?: import("../../helpers/seedSigner").PublishWallet) => void;
184
175
  stopPublish: (seedLocalId: string) => void;
185
- query: (seedLocalId: string) => void;
176
+ /**
177
+ * The current snapshot of a seed's publish (running, or settled this session), or undefined.
178
+ * A read only: it used to stop the publish it named, as stopPublish does without marking the row
179
+ * or releasing the lock.
180
+ */
181
+ query: (seedLocalId: string) => any;
186
182
  stopAll: () => void;
187
183
  getPublish: (seedLocalId: string) => import("xstate").ActorRef<any, any, import("xstate").EventObject> | undefined;
188
184
  savePublish: (seedLocalId: string, publishProcess: ActorRefFrom<typeof publishMachine>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/publishManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,QAAQ,CAAA;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAqB3C,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAClE,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,OAAO,QAAQ,EAAE,WA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K,kBAAkB;qBAAe,MAAM;0BAAoB,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;;cAC9F,sBAAsB;qBAAe,MAAM;yBAAmB,OAAO;6BAAuB,OAAO;;cACnG,mBAAmB;qBAAe,MAAM;6BAAuB,OAAO;;cACtE,cAAc;qBAAe,MAAM;;cACnC,qBAAqB;qBAAe,MAAM;;cAC1C,oBAAoB;qBAAe,MAAM;kBAAY,OAAO;;cAC5D,cAAc;qBAAe,MAAM;;cACnC,UAAU;;;;;;;;;;;;;;;;;IAwJpB;;;OAGG;iBACQ,OAAO,CAAC,IAAI,CAAC;IAgBxB;;;;OAIG;0BAEK,YAAY,CAAC,OAAO,IAAI,CAAC,WACtB,MAAM,YACL,OAAO,0BAA0B,EAAE,aAAa,YAChD,OAAO,cAAc,EAAE,oBAAoB,KACpD,OAAO,CAAC,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;qCAe1B,MAAM,YAAY,OAAO,0BAA0B,EAAE,aAAa;+BAExE,MAAM;IACjC;;;;OAIG;yBACkB,MAAM;;8BAED,MAAM;+BAIL,MAAM,kBAAkB,YAAY,CAAC,OAAO,cAAc,CAAC;mCAEvD,MAAM,qBAAqB,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;sCAE3D,MAAM;CACzC,CAAA"}
package/dist/thirdweb.js CHANGED
@@ -1,8 +1,9 @@
1
- import { $ as e, A as t, B as n, Et as r, F as i, G as a, Gt as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, Ot as ee, Q as m, R as te, U as h, V as g, Vt as ne, W as re, Wt as ie, X as _, Xt as v, Y as ae, Yt as y, Z as b, a as x, et as oe, gt as S, ht as C, i as se, j as ce, k as le, mt as ue, nt as w, o as de, p as T, pt as fe, q as pe, qt as me, t as E, tt as he, z as D } from "./chainConfig-DM9RSIMT.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-Dx-4adsz.js";
3
- import { t as L } from "./ensureSmartWalletThenPublish-DiH5CKLY.js";
4
- import { t as R } from "./ensureModularPublishBootstrap-BYySx3sx.js";
5
- import { i as z, r as B, t as V } from "./ensureAutomationSessionKey-DTO5lxXB.js";
1
+ import { $ as e, A as t, B as n, G as r, H as i, Ht as a, I as o, J as s, K as c, Kt as l, L as u, M as d, N as f, P as ee, Q as te, R as ne, Rt as p, U as m, V as h, Vt as re, W as g, Wt as ie, X as ae, Y as oe, Z as _, _t as v, a as y, et as se, gt as b, ht as ce, i as le, j as ue, m as x, mt as de, nt as fe, o as pe, q as S, qt as C, rt as w, t as T, tt as me, z as E } from "./chainConfig-CY22-kWO.js";
2
+ import { i as he, t as D } from "./publishWalletRegistry-BaQe9rIR.js";
3
+ 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-D2wbNc-H.js";
4
+ import { t as L } from "./ensureSmartWalletThenPublish-By_Xv7xG.js";
5
+ import { t as R } from "./ensureModularPublishBootstrap-DQDSbkQy.js";
6
+ import { i as z, r as B, t as V } from "./ensureAutomationSessionKey-CKFyZNj7.js";
6
7
  import { client as H } from "@seedprotocol/sdk";
7
8
  import { deploySmartAccount as ge, getContract as U, sendTransaction as _e } from "thirdweb";
8
9
  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";
@@ -14,7 +15,7 @@ import { addSessionKey as Ae, shouldUpdateSessionKey as je } from "thirdweb/exte
14
15
  //#region src/react/ConnectButton.tsx
15
16
  var q = "seedProtocol:publish:userChoseWalletDisconnect";
16
17
  function Me(e) {
17
- console.warn("[ConnectButton] Wallet setup / module install skipped:", e), x().onWalletSetupWarning?.(e);
18
+ console.warn("[ConnectButton] Wallet setup / module install skipped:", e), y().onWalletSetupWarning?.(e);
18
19
  }
19
20
  function Ne() {
20
21
  return H.isInitialized() ? Promise.resolve() : new Promise((e) => {
@@ -27,10 +28,10 @@ async function Pe(e, t, n) {
27
28
  if (!t) return;
28
29
  try {
29
30
  _();
30
- let e = s();
31
+ let e = m();
31
32
  await e.autoConnect({
32
33
  client: w(),
33
- chain: S(n)
34
+ chain: v(n)
34
35
  });
35
36
  let r = e.getAccount();
36
37
  if (!r) return;
@@ -44,11 +45,11 @@ async function Pe(e, t, n) {
44
45
  }
45
46
  }
46
47
  var Fe = () => {
47
- let e = j(), t = S(e), i = Se(), o = xe(), c = Ce(), l = we(), d = G(null), f = G(!1), p = G(!1);
48
+ let e = j(), t = v(e), n = Se(), r = xe(), i = Ce(), a = we(), o = G(null), s = G(!1), l = G(!1);
48
49
  W(() => {
49
50
  if (typeof window > "u") return;
50
- let n = f.current;
51
- f.current = l;
51
+ let n = s.current;
52
+ s.current = a;
52
53
  let r;
53
54
  try {
54
55
  r = performance.getEntriesByType("navigation")[0]?.type;
@@ -56,84 +57,88 @@ var Fe = () => {
56
57
  r = void 0;
57
58
  }
58
59
  if (r !== "reload") return;
59
- let i = !1;
60
+ let o = !1;
60
61
  try {
61
- i = sessionStorage.getItem(q) === "1";
62
+ o = sessionStorage.getItem(q) === "1";
62
63
  } catch {
63
- i = !1;
64
+ o = !1;
64
65
  }
65
- i || n && !l && c === "disconnected" && (p.current || (p.current = !0, (e.useModularExecutor ? h() : s()).autoConnect({
66
+ o || n && !a && i === "disconnected" && (l.current || (l.current = !0, (e.useModularExecutor ? g() : m()).autoConnect({
66
67
  client: w(),
67
68
  chain: t
68
69
  }).catch(() => {})));
69
70
  }, [
70
- c,
71
- l,
71
+ i,
72
+ a,
72
73
  e.useModularExecutor,
73
74
  t
74
75
  ]);
75
- let m = Te(async (r) => {
76
- let i = r.getAccount();
77
- if (!i) return;
78
- await Ne(), T.stopAll();
79
- let o = /* @__PURE__ */ new Set([i.address.toLowerCase()]), s;
76
+ let u = Te(async (n) => {
77
+ let r = n.getAccount();
78
+ if (!r) return;
79
+ await Ne();
80
+ let i = /* @__PURE__ */ new Set([r.address.toLowerCase()]), a;
80
81
  if (e.useModularExecutor) {
81
82
  _();
82
- let e = r.getAdminAccount?.()?.address ?? i.address, c = async () => {
83
+ let e = n.getAdminAccount?.()?.address ?? r.address, o = async () => {
83
84
  try {
84
- return await n(t);
85
+ return await h(t);
85
86
  } catch {
86
87
  try {
87
- return await a(e);
88
+ return await c(e);
88
89
  } catch {
89
90
  return;
90
91
  }
91
92
  }
92
93
  };
93
- s = await c(), s ||= (await new Promise((e) => queueMicrotask(() => e())), await c()), s && o.add(s.toLowerCase());
94
+ a = await o(), a ||= (await new Promise((e) => queueMicrotask(() => e())), await o()), a && i.add(a.toLowerCase());
94
95
  }
95
- let c = [...o].sort().join(",");
96
- if (d.current !== c) {
97
- d.current = c;
96
+ let s = [...i].sort().join(",");
97
+ if (o.current !== s) {
98
+ o.current !== null && x.stopAll(), o.current = s;
98
99
  try {
99
- let e = C(i), t = r.getAdminAccount?.()?.address;
100
- await ee({
101
- ...e,
102
- ownedAddresses: [...o],
103
- publisherAddress: s ?? i.address,
104
- ...t && t.toLowerCase() !== i.address.toLowerCase() ? { adminAddress: t } : {}
100
+ let e = n.getAdminAccount?.()?.address, t = !!a || !!e && e.toLowerCase() !== r.address.toLowerCase(), o = b(r, { kind: t ? "smart" : "eoa" }), s = n.getAdminAccount?.(), c = a ? o.signer : t && s && s.address.toLowerCase() !== r.address.toLowerCase() ? b(s, { kind: "eoa" }).signer : void 0;
101
+ await he({
102
+ ...o,
103
+ ownedAddresses: [...i],
104
+ publisherAddress: a ?? r.address,
105
+ ...c ? { dataItemSigner: c } : {},
106
+ ...t && !a ? { deploy: async () => {
107
+ await E(r);
108
+ } } : {},
109
+ ...e && e.toLowerCase() !== r.address.toLowerCase() ? { adminAddress: e } : {}
105
110
  });
106
111
  } catch (e) {
107
- throw d.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
112
+ throw o.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
108
113
  }
109
- await Pe(i, s, e);
114
+ await Pe(r, a, e);
110
115
  }
111
116
  }, [e]);
112
117
  return W(() => {
113
- if (l) return;
114
- if (c !== "connected") {
115
- d.current = null;
118
+ if (a) return;
119
+ if (i !== "connected") {
120
+ o.current = null;
116
121
  return;
117
122
  }
118
- if (!i) return;
123
+ if (!n) return;
119
124
  let e = !1;
120
125
  return (async () => {
121
126
  try {
122
127
  if (e) return;
123
- await m(i);
128
+ await u(n);
124
129
  } catch {}
125
130
  })(), () => {
126
131
  e = !0;
127
132
  };
128
133
  }, [
134
+ n,
135
+ r?.address,
129
136
  i,
130
- o?.address,
131
- c,
132
- l,
133
- m
137
+ a,
138
+ u
134
139
  ]), /* @__PURE__ */ K(ve, {
135
140
  client: w(),
136
- wallets: u(e),
141
+ wallets: S(e),
137
142
  autoConnect: !0,
138
143
  chain: t,
139
144
  chains: [t],
@@ -145,7 +150,7 @@ var Fe = () => {
145
150
  } catch {}
146
151
  console.log("[ConnectButton] Connected", n.address);
147
152
  try {
148
- await m(e);
153
+ await u(e);
149
154
  } catch {}
150
155
  }
151
156
  },
@@ -153,7 +158,7 @@ var Fe = () => {
153
158
  try {
154
159
  sessionStorage.setItem(q, "1");
155
160
  } catch {}
156
- r(), T.stopAll();
161
+ D(), x.stopAll();
157
162
  },
158
163
  theme: be({ colors: {
159
164
  primaryButtonBg: "#1D2939",
@@ -164,43 +169,44 @@ var Fe = () => {
164
169
  borderColor: "#344054"
165
170
  } })
166
171
  });
167
- }, Ie = ({ children: e, config: t, queryClient: n, queryClientRef: r }) => (W(() => {
168
- t && de(t);
169
- }, [t]), /* @__PURE__ */ K(M.Provider, {
170
- value: t ?? se(),
171
- children: /* @__PURE__ */ K(ye, { children: /* @__PURE__ */ K(ke, {
172
- queryClient: n,
173
- queryClientRef: r,
174
- children: e
175
- }) })
176
- })), 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 ${E()} yet. Enable autoDeployEip7702ModularAccount in publish config or complete wallet setup, then retry.`, ze = () => `Automatic EIP-7702 smart account setup failed on ${E()}. 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;
172
+ }, Ie = ({ children: e, config: t, queryClient: n, queryClientRef: r }) => {
173
+ let i = G(void 0);
174
+ return t && i.current !== t && (pe(t), i.current = t), /* @__PURE__ */ K(M.Provider, {
175
+ value: t ?? le(),
176
+ children: /* @__PURE__ */ K(ye, { children: /* @__PURE__ */ K(ke, {
177
+ queryClient: n,
178
+ queryClientRef: r,
179
+ children: e
180
+ }) })
181
+ });
182
+ }, 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 ${T()} yet. Enable autoDeployEip7702ModularAccount in publish config or complete wallet setup, then retry.`, ze = () => `Automatic EIP-7702 smart account setup failed on ${T()}. 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
183
  async function Be() {
178
- let { autoDeployEip7702ModularAccount: e } = x(), t = h();
184
+ let { autoDeployEip7702ModularAccount: e } = y(), t = g();
179
185
  await t.autoConnect({
180
186
  client: w(),
181
- chain: S()
187
+ chain: v()
182
188
  });
183
189
  let n = t.getAccount();
184
- if (!n) throw new y(Le, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
190
+ if (!n) throw new l(Le, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
185
191
  let r = w(), i = U({
186
192
  client: r,
187
- chain: S(),
193
+ chain: v(),
188
194
  address: n.address
189
195
  });
190
- if (!await ie(n.address)) {
191
- if (!e) throw new y(Re(), "EIP7702_MODULAR_NOT_UPGRADED", n.address);
196
+ if (!await re(n.address)) {
197
+ if (!e) throw new l(Re(), "EIP7702_MODULAR_NOT_UPGRADED", n.address);
192
198
  try {
193
199
  await ge({
194
200
  smartAccount: n,
195
- chain: S(),
201
+ chain: v(),
196
202
  client: r,
197
203
  accountContract: i
198
204
  });
199
205
  } catch (e) {
200
- if (await o(n.address, Y)) return;
201
- throw new y(ze(), "EIP7702_MODULAR_DEPLOY_FAILED", n.address, e);
206
+ if (await a(n.address, Y)) return;
207
+ throw new l(ze(), "EIP7702_MODULAR_DEPLOY_FAILED", n.address, e);
202
208
  }
203
- if (!await o(n.address, Y)) throw new y(J, "EIP7702_MODULAR_NOT_CONFIRMED", n.address);
209
+ if (!await a(n.address, Y)) throw new l(J, "EIP7702_MODULAR_NOT_CONFIRMED", n.address);
204
210
  }
205
211
  }
206
212
  //#endregion
@@ -210,33 +216,33 @@ function X(e) {
210
216
  }
211
217
  //#endregion
212
218
  //#region src/helpers/ensureManagedSignerSessionKey.ts
213
- var Ve = () => `Could not connect the managed publishing account to authorize the modular signer on ${E()}. Reconnect and try again.`, Z = () => `Could not authorize the modular wallet as a session signer on your publishing account on ${E()}.`;
219
+ var Ve = () => `Could not connect the managed publishing account to authorize the modular signer on ${T()}. Reconnect and try again.`, Z = () => `Could not authorize the modular wallet as a session signer on your publishing account on ${T()}.`;
214
220
  async function He(e) {
215
- let { managedAddress: t, signerAddress: n } = e, r = s();
221
+ let { managedAddress: t, signerAddress: n } = e, r = m();
216
222
  await r.autoConnect({
217
223
  client: w(),
218
- chain: S()
224
+ chain: v()
219
225
  });
220
226
  let i = r.getAccount();
221
- if (!i) throw new v(Ve(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
227
+ if (!i) throw new C(Ve(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
222
228
  let a = U({
223
229
  client: w(),
224
- chain: S(),
230
+ chain: v(),
225
231
  address: t
226
232
  }), o = {
227
233
  approvedTargets: X(t),
228
234
  nativeTokenLimitPerTransaction: 0
229
- }, c = !1;
235
+ }, s = !1;
230
236
  try {
231
- c = await je({
237
+ s = await je({
232
238
  accountContract: a,
233
239
  sessionKeyAddress: n,
234
240
  newPermissions: o
235
241
  });
236
242
  } catch (e) {
237
- throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
243
+ throw new C(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
238
244
  }
239
- if (c) try {
245
+ if (s) try {
240
246
  let e = Ae({
241
247
  contract: a,
242
248
  account: i,
@@ -246,43 +252,43 @@ async function He(e) {
246
252
  account: i,
247
253
  transaction: e
248
254
  });
249
- await me(t.transactionHash);
255
+ await ie(t.transactionHash);
250
256
  } catch (e) {
251
- throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
257
+ throw new C(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
252
258
  }
253
- let l = !1;
259
+ let c = !1;
254
260
  try {
255
- l = await ne(t, n);
261
+ c = await p(t, n);
256
262
  } catch (e) {
257
- throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
263
+ throw new C(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
258
264
  }
259
- if (!l) throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
265
+ if (!c) throw new C(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
260
266
  }
261
267
  //#endregion
262
268
  //#region src/helpers/enrollPublishAutomation.ts
263
269
  async function Q(e) {
264
- let t = s();
270
+ let t = m();
265
271
  await t.autoConnect({
266
272
  client: w(),
267
- chain: S()
273
+ chain: v()
268
274
  });
269
275
  let n = t.getAccount();
270
- if (!n) throw new v("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
276
+ if (!n) throw new C("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
271
277
  return n;
272
278
  }
273
279
  async function $(e, t) {
274
- return t || C(await Q(e));
280
+ return t || b(await Q(e), { kind: "smart" });
275
281
  }
276
282
  async function Ue(e) {
277
- let t = x();
283
+ let t = y();
278
284
  if (!t.modularAccountModuleContract?.trim()) throw Error("@seedprotocol/publish: enrollPublishAutomation requires PublishConfig.modularAccountModuleContract");
279
285
  let n = await Q(e), r;
280
286
  try {
281
287
  r = await f(e, n, t);
282
288
  } catch (t) {
283
- throw t instanceof v ? t : new v("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
289
+ throw t instanceof C ? t : new C("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
284
290
  }
285
- await p(e, r.status === "installed" ? { installedEas: r.eas } : { readAttempts: r.status === "already-installed" ? 5 : 1 });
291
+ await ee(e, r.status === "installed" ? { installedEas: r.eas } : { readAttempts: r.status === "already-installed" ? 5 : 1 });
286
292
  }
287
293
  async function We(e) {
288
294
  let { managedAddress: t, sessionKeyAddress: n, appAddress: r, expiresAt: i } = e;
@@ -363,6 +369,6 @@ async function Ke(e) {
363
369
  };
364
370
  }
365
371
  //#endregion
366
- export { oe as CALL_GAS_HEADROOM_BPS, Fe as ConnectButton, i as ExternalWalletsForDeploy, I as PUBLISH_AUTOMATION_SCOPES, Ie as PublishProvider, c as appMetadata, P as approvedTargetsForAutomationPublish, fe as asSeedSignerFromThirdweb, ue as asThirdwebPublishWallet, Ke as assertStorageBoundToIdentity, k as buildAutomationSessionKeyPermissions, X as defaultApprovedTargetsForModularPublish, d as deployManagedAccountViaFactory, te as deploySmartWalletContract, We as enrollPublishAutomation, V as ensureAutomationSessionKey, Be as ensureEip7702ModularAccountReady, f as ensureExecutorModuleInstalled, le as ensureManagedAccountReady, He as ensureManagedSignerSessionKey, R as ensureModularPublishBootstrap, L as ensureSmartWalletThenPublish, C as fromThirdwebAccount, w as getClient, D as getConnectedAccount, n as getConnectedManagedAccountAddress, g as getConnectedModularAccount, s as getManagedAccountWallet, h as getModularAccountWallet, S as getPublishThirdwebChain, re as getSharedPublishInAppWalletStorage, a as getSmartWalletAddressForAdmin, u as getWalletsForConnectButton, A as hashAutomationSessionKeyPermissions, B as isAutomationSessionActive, pe as isSmartWalletDeployed, l as pollSmartWalletDeployed, z as removeAutomationSessionKey, ae as resolveSmartWalletForPublish, Ge as revokePublishAutomation, t as runModularExecutorPublishPrep, he as seedPaymaster, F as toThirdwebSessionKeyPermissions, ce as tryDeployManagedAccount, b as useActiveSmartWalletContract, m as useLocalWalletAccount, j as usePublishConfig, e as wallets };
372
+ export { me as CALL_GAS_HEADROOM_BPS, Fe as ConnectButton, o as ExternalWalletsForDeploy, I as PUBLISH_AUTOMATION_SCOPES, Ie as PublishProvider, u as appMetadata, P as approvedTargetsForAutomationPublish, de as asSeedSignerFromThirdweb, ce as asThirdwebPublishWallet, Ke as assertStorageBoundToIdentity, k as buildAutomationSessionKeyPermissions, X as defaultApprovedTargetsForModularPublish, ne as deployManagedAccountViaFactory, E as deploySmartWalletContract, We as enrollPublishAutomation, V as ensureAutomationSessionKey, Be as ensureEip7702ModularAccountReady, f as ensureExecutorModuleInstalled, t as ensureManagedAccountReady, He as ensureManagedSignerSessionKey, R as ensureModularPublishBootstrap, L as ensureSmartWalletThenPublish, b as fromThirdwebAccount, w as getClient, n as getConnectedAccount, h as getConnectedManagedAccountAddress, i as getConnectedModularAccount, m as getManagedAccountWallet, g as getModularAccountWallet, v as getPublishThirdwebChain, r as getSharedPublishInAppWalletStorage, c as getSmartWalletAddressForAdmin, S as getWalletsForConnectButton, A as hashAutomationSessionKeyPermissions, B as isAutomationSessionActive, s as isSmartWalletDeployed, oe as pollSmartWalletDeployed, z as removeAutomationSessionKey, ae as resolveSmartWalletForPublish, Ge as revokePublishAutomation, ue as runModularExecutorPublishPrep, fe as seedPaymaster, F as toThirdwebSessionKeyPermissions, d as tryDeployManagedAccount, te as useActiveSmartWalletContract, e as useLocalWalletAccount, j as usePublishConfig, se as wallets };
367
373
 
368
374
  //# sourceMappingURL=thirdweb.js.map