@seedprotocol/publish 0.7.3 → 0.7.4-next.784.g879c6a3

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 (88) hide show
  1. package/README.md +75 -0
  2. package/dist/authorization.d.ts +41 -0
  3. package/dist/authorization.d.ts.map +1 -0
  4. package/dist/{chainConfig-RhKIuGtN.js → chainConfig-BHTH_BGB.js} +2012 -1488
  5. package/dist/chainConfig-BHTH_BGB.js.map +1 -0
  6. package/dist/config.d.ts +25 -4
  7. package/dist/config.d.ts.map +1 -1
  8. package/dist/{ensureAutomationSessionKey-CvUntLne.js → ensureAutomationSessionKey-DITIsceC.js} +31 -31
  9. package/dist/{ensureAutomationSessionKey-CvUntLne.js.map → ensureAutomationSessionKey-DITIsceC.js.map} +1 -1
  10. package/dist/ensureModularPublishBootstrap-sAAJn75c.js +21 -0
  11. package/dist/{ensureModularPublishBootstrap-D9q246TT.js.map → ensureModularPublishBootstrap-sAAJn75c.js.map} +1 -1
  12. package/dist/{ensureSmartWalletThenPublish-C_iS5Wb-.js → ensureSmartWalletThenPublish-hRJ9T0f8.js} +15 -15
  13. package/dist/{ensureSmartWalletThenPublish-C_iS5Wb-.js.map → ensureSmartWalletThenPublish-hRJ9T0f8.js.map} +1 -1
  14. package/dist/helpers/abi/eas.d.ts +42 -0
  15. package/dist/helpers/abi/eas.d.ts.map +1 -1
  16. package/dist/helpers/adapters/permissionlessTxSender.d.ts +5 -1
  17. package/dist/helpers/adapters/permissionlessTxSender.d.ts.map +1 -1
  18. package/dist/helpers/ensureWalletThenPublish.d.ts.map +1 -1
  19. package/dist/helpers/publishWalletRegistry.d.ts +5 -0
  20. package/dist/helpers/publishWalletRegistry.d.ts.map +1 -1
  21. package/dist/helpers/resolveRevokeAccount.d.ts.map +1 -1
  22. package/dist/helpers/turbo.d.ts +55 -0
  23. package/dist/helpers/turbo.d.ts.map +1 -0
  24. package/dist/helpers/uploadApi.d.ts +3 -1
  25. package/dist/helpers/uploadApi.d.ts.map +1 -1
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +338 -479
  29. package/dist/index.js.map +1 -1
  30. package/dist/{managedAccountAdmin-CLVRJEKI.js → managedAccountAdmin-CSBb6NaZ.js} +10 -10
  31. package/dist/{managedAccountAdmin-CLVRJEKI.js.map → managedAccountAdmin-CSBb6NaZ.js.map} +1 -1
  32. package/dist/payment.d.ts +106 -0
  33. package/dist/payment.d.ts.map +1 -0
  34. package/dist/{publishAuthorization-DAarz1JK.js → publishAuthorization-CZyvsNGG.js} +25 -25
  35. package/dist/{publishAuthorization-DAarz1JK.js.map → publishAuthorization-CZyvsNGG.js.map} +1 -1
  36. package/dist/react/ConnectButton.d.ts.map +1 -1
  37. package/dist/react/useSeedWallet.d.ts.map +1 -1
  38. package/dist/resolveRevokeAccount-CbQiAEZp.js +37 -0
  39. package/dist/resolveRevokeAccount-CbQiAEZp.js.map +1 -0
  40. package/dist/services/arweaveL1Finalize/worker.d.ts.map +1 -1
  41. package/dist/services/domainOwnership/challenge.d.ts +4 -1
  42. package/dist/services/domainOwnership/challenge.d.ts.map +1 -1
  43. package/dist/services/domainOwnership/index.d.ts +1 -1
  44. package/dist/services/domainOwnership/index.d.ts.map +1 -1
  45. package/dist/services/domainOwnership/public.d.ts +1 -1
  46. package/dist/services/domainOwnership/public.d.ts.map +1 -1
  47. package/dist/services/domainOwnership/registry.d.ts +2 -0
  48. package/dist/services/domainOwnership/registry.d.ts.map +1 -1
  49. package/dist/services/publish/actors/authorizing.d.ts +10 -0
  50. package/dist/services/publish/actors/authorizing.d.ts.map +1 -0
  51. package/dist/services/publish/actors/checking.d.ts.map +1 -1
  52. package/dist/services/publish/actors/createAttestationsDirectToEas.d.ts.map +1 -1
  53. package/dist/services/publish/actors/index.d.ts +1 -0
  54. package/dist/services/publish/actors/index.d.ts.map +1 -1
  55. package/dist/services/publish/actors/sendReimbursementRequest.d.ts.map +1 -1
  56. package/dist/services/publish/actors/uploadViaBundler.d.ts.map +1 -1
  57. package/dist/services/publish/helpers/undeployedSmartAccount.d.ts +15 -0
  58. package/dist/services/publish/helpers/undeployedSmartAccount.d.ts.map +1 -0
  59. package/dist/services/publish/helpers/uploadToTurbo.d.ts +8 -0
  60. package/dist/services/publish/helpers/uploadToTurbo.d.ts.map +1 -0
  61. package/dist/services/publish/helpers/verifyArweaveTransactionsExist.d.ts +2 -1
  62. package/dist/services/publish/helpers/verifyArweaveTransactionsExist.d.ts.map +1 -1
  63. package/dist/services/publish/index.d.ts +13 -1
  64. package/dist/services/publish/index.d.ts.map +1 -1
  65. package/dist/services/publishCost/estimatePublishCost.d.ts +1 -0
  66. package/dist/services/publishCost/estimatePublishCost.d.ts.map +1 -1
  67. package/dist/services/publishCost/types.d.ts +7 -0
  68. package/dist/services/publishCost/types.d.ts.map +1 -1
  69. package/dist/services/publishManager/actions/createPublish.d.ts.map +1 -1
  70. package/dist/services/publishManager/actions/requestSavePublish.d.ts +10 -0
  71. package/dist/services/publishManager/actions/requestSavePublish.d.ts.map +1 -1
  72. package/dist/services/revoke/revokeAttestations.d.ts +2 -1
  73. package/dist/services/revoke/revokeAttestations.d.ts.map +1 -1
  74. package/dist/thirdweb.js +106 -105
  75. package/dist/thirdweb.js.map +1 -1
  76. package/dist/types.d.ts +4 -0
  77. package/dist/types.d.ts.map +1 -1
  78. package/dist/undeployedSmartAccount-DwGsM3K1.js +24 -0
  79. package/dist/undeployedSmartAccount-DwGsM3K1.js.map +1 -0
  80. package/dist/worker--EZUESZk.js +88 -0
  81. package/dist/worker--EZUESZk.js.map +1 -0
  82. package/package.json +6 -6
  83. package/dist/chainConfig-RhKIuGtN.js.map +0 -1
  84. package/dist/ensureModularPublishBootstrap-D9q246TT.js +0 -21
  85. package/dist/resolveRevokeAccount-TRcqJtIO.js +0 -36
  86. package/dist/resolveRevokeAccount-TRcqJtIO.js.map +0 -1
  87. package/dist/worker-CyuMiBB-.js +0 -72
  88. package/dist/worker-CyuMiBB-.js.map +0 -1
@@ -44,6 +44,8 @@ export declare const publishMachine: import("xstate").StateMachine<Partial<Publi
44
44
  }, import("xstate").EventObject> | import("xstate").CallbackActorLogic<import("xstate").EventObject, {
45
45
  context: PublishMachineContext;
46
46
  event?: unknown;
47
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<import("../..").PublishAuthorization, {
48
+ context: PublishMachineContext;
47
49
  }, import("xstate").EventObject>> | undefined;
48
50
  }, {
49
51
  src: "createArweaveTransactions";
@@ -126,6 +128,12 @@ export declare const publishMachine: import("xstate").StateMachine<Partial<Publi
126
128
  event?: unknown;
127
129
  }, import("xstate").EventObject>;
128
130
  id: string | undefined;
131
+ } | {
132
+ src: "authorizing";
133
+ logic: import("xstate").PromiseActorLogic<import("../..").PublishAuthorization, {
134
+ context: PublishMachineContext;
135
+ }, import("xstate").EventObject>;
136
+ id: string | undefined;
129
137
  } | {
130
138
  src: "preparingHtmlEmbedded";
131
139
  logic: import("xstate").PromiseActorLogic<{
@@ -194,12 +202,16 @@ export declare const publishMachine: import("xstate").StateMachine<Partial<Publi
194
202
  } | {
195
203
  type: "assignErrorValidationFailed";
196
204
  params: import("xstate").NonReducibleUnknown;
205
+ } | {
206
+ type: "assignErrorAuthorizing";
207
+ params: import("xstate").NonReducibleUnknown;
197
208
  } | {
198
209
  type: "assignErrorCheckingFailed";
199
210
  params: import("xstate").NonReducibleUnknown;
200
- }, never, never, "success" | "failure" | "pollingForConfirmation" | "uploadingData" | "uploadingViaBundler" | "uploadingViaBundlerPhase2" | "checking" | "preparingHtmlEmbedded" | "rewritingHtmlEmbedded" | "creatingArweaveTransactions" | "creatingArweaveDataItems" | "sendingReimbursementRequest" | "creatingArweaveTransactionsPhase2" | "uploadingDataPhase2" | "creatingArweaveDataItemsPhase2" | "creatingAttestations" | "creatingAttestationsDirectToEas" | "stopping" | "attestationFailureRecoverable" | "attestationFailureRecoverableDirectToEas", string, Partial<PublishMachineContext>, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
211
+ }, never, never, "success" | "failure" | "pollingForConfirmation" | "uploadingData" | "uploadingViaBundler" | "uploadingViaBundlerPhase2" | "checking" | "authorizing" | "preparingHtmlEmbedded" | "rewritingHtmlEmbedded" | "creatingArweaveTransactions" | "creatingArweaveDataItems" | "sendingReimbursementRequest" | "creatingArweaveTransactionsPhase2" | "uploadingDataPhase2" | "creatingArweaveDataItemsPhase2" | "creatingAttestations" | "creatingAttestationsDirectToEas" | "stopping" | "attestationFailureRecoverable" | "attestationFailureRecoverableDirectToEas", string, Partial<PublishMachineContext>, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
201
212
  id: "publish";
202
213
  states: {
214
+ readonly authorizing: {};
203
215
  readonly checking: {};
204
216
  readonly preparingHtmlEmbedded: {};
205
217
  readonly creatingArweaveTransactions: {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/publish/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAE1C,OAAO,EAEL,qBAAqB,EACrB,qBAAqB,EAEtB,MAAiG,aAAa,CAAA;AAgD/G,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAmnBzB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/publish/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAE1C,OAAO,EAEL,qBAAqB,EACrB,qBAAqB,EAEtB,MAAiG,aAAa,CAAA;AAiD/G,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAuoBzB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -3,6 +3,7 @@ import { type MarketRates } from './marketRates';
3
3
  import type { EstimatePublishCostOptions, PublishCostEstimate, PublishWorkSummary } from './types';
4
4
  export declare function combinePublishCostEstimate(work: PublishWorkSummary, rates: MarketRates, flags?: {
5
5
  evmUserPays?: boolean;
6
+ arweaveUserPays?: boolean;
6
7
  arweavePath?: 'l1' | 'bundler';
7
8
  }): PublishCostEstimate;
8
9
  export declare function estimatePublishCost(item: IItem<any>, options?: EstimatePublishCostOptions): Promise<PublishCostEstimate>;
@@ -1 +1 @@
1
- {"version":3,"file":"estimatePublishCost.d.ts","sourceRoot":"","sources":["../../../src/services/publishCost/estimatePublishCost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAG9C,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAqBlG,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,WAAW,EAClB,KAAK,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CAAE,GAChE,mBAAmB,CAoCrB;AAED,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAChB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,mBAAmB,CAAC,CAS9B"}
1
+ {"version":3,"file":"estimatePublishCost.d.ts","sourceRoot":"","sources":["../../../src/services/publishCost/estimatePublishCost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAI9C,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAuBlG,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,WAAW,EAClB,KAAK,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CAAE,GAC3F,mBAAmB,CAqCrB;AAED,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAChB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,mBAAmB,CAAC,CAS9B"}
@@ -12,11 +12,13 @@ export type PublishWorkSummary = {
12
12
  unpublishedRelatedItems?: UnpublishedRelatedItem[];
13
13
  };
14
14
  export type PublishCostEstimate = {
15
+ /** Cost of the publish whoever pays it; see `evm.userPays` / `arweave.userPays`. */
15
16
  totalUsd: number;
16
17
  evm: {
17
18
  eth: string;
18
19
  usd: number;
19
20
  gas: bigint;
21
+ /** Whether the user's wallet pays this gas, or a sponsor (paymaster / Thirdweb) does. */
20
22
  userPays: boolean;
21
23
  };
22
24
  arweave: {
@@ -25,6 +27,11 @@ export type PublishCostEstimate = {
25
27
  bytes: number;
26
28
  uploadCount: number;
27
29
  path: 'l1' | 'bundler';
30
+ /**
31
+ * Whether the user pays for storage (`payment.storage`). With the default `'operator'` the
32
+ * upload API funds it: on the bundler path directly, on the L1 path by reimbursing the user's
33
+ * Arweave key before the upload (the deferred-Html second pass is not reimbursed).
34
+ */
28
35
  userPays: boolean;
29
36
  };
30
37
  prices: {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/publishCost/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE5E,YAAY,EAAE,WAAW,EAAE,CAAA;AAE3B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,iGAAiG;IACjG,uBAAuB,CAAC,EAAE,sBAAsB,EAAE,CAAA;CACnD,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE;QACH,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,EAAE,MAAM,CAAA;QACX,QAAQ,EAAE,OAAO,CAAA;KAClB,CAAA;IACD,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAA;QACV,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAA;QACtB,QAAQ,EAAE,OAAO,CAAA;KAClB,CAAA;IACD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,IAAI,EAAE,kBAAkB,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;QACjB,WAAW,EAAE,MAAM,CAAA;QACnB,cAAc,EAAE,MAAM,CAAA;KACvB,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/publishCost/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE5E,YAAY,EAAE,WAAW,EAAE,CAAA;AAE3B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,iGAAiG;IACjG,uBAAuB,CAAC,EAAE,sBAAsB,EAAE,CAAA;CACnD,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE;QACH,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,EAAE,MAAM,CAAA;QACX,yFAAyF;QACzF,QAAQ,EAAE,OAAO,CAAA;KAClB,CAAA;IACD,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAA;QACV,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAA;QACtB;;;;WAIG;QACH,QAAQ,EAAE,OAAO,CAAA;KAClB,CAAA;IACD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,IAAI,EAAE,kBAAkB,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;QACjB,WAAW,EAAE,MAAM,CAAA;QACnB,cAAc,EAAE,MAAM,CAAA;KACvB,CAAA;CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"createPublish.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/createPublish.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,aAAa,qTAgGxB,CAAA"}
1
+ {"version":3,"file":"createPublish.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/createPublish.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,aAAa,qTAiGxB,CAAA"}
@@ -1,2 +1,12 @@
1
+ type PublishProcessActor = {
2
+ getPersistedSnapshot?: () => unknown;
3
+ getSnapshot: () => {
4
+ status?: string;
5
+ value?: unknown;
6
+ context?: Record<string, unknown>;
7
+ };
8
+ };
9
+ export declare function getPersistableSnapshot(actor: PublishProcessActor): unknown;
1
10
  export declare const requestSavePublish: import("xstate").ActionFunction<import("xstate").MachineContext, import("xstate").AnyEventObject, import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").ProvidedActor, never, never, never, never>;
11
+ export {};
2
12
  //# sourceMappingURL=requestSavePublish.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestSavePublish.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/requestSavePublish.ts"],"names":[],"mappings":"AAgEA,eAAO,MAAM,kBAAkB,mOAuB7B,CAAA"}
1
+ {"version":3,"file":"requestSavePublish.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/requestSavePublish.ts"],"names":[],"mappings":"AAGA,KAAK,mBAAmB,GAAG;IACzB,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAA;IACpC,WAAW,EAAE,MAAM;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAA;CAC3F,CAAA;AA4CD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAqB1E;AAED,eAAO,MAAM,kBAAkB,mOAuB7B,CAAA"}
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Revokes the Seed attestation and all Version and metadata attestations on EAS.
3
- * Prefer the registered publish wallet; fall back to Thirdweb connected account when present.
3
+ * Sends from the attester: the registered publish wallet when it is the attester, else the
4
+ * connected Thirdweb account resolved to the attester (see {@link resolveRevokeWallet}).
4
5
  *
5
6
  * Only the attester's owner can revoke: `multiRevoke` goes to EAS from the publishing account
6
7
  * (for a ManagedAccount, a UserOp `execute(EAS, multiRevoke)`). The Seed executor has no revoke,
@@ -1 +1 @@
1
- {"version":3,"file":"revokeAttestations.d.ts","sourceRoot":"","sources":["../../../src/services/revoke/revokeAttestations.ts"],"names":[],"mappings":"AAkDA;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CA+GhB"}
1
+ {"version":3,"file":"revokeAttestations.d.ts","sourceRoot":"","sources":["../../../src/services/revoke/revokeAttestations.ts"],"names":[],"mappings":"AA4KA;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6EhB"}
package/dist/thirdweb.js CHANGED
@@ -1,8 +1,8 @@
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";
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-BHTH_BGB.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-CZyvsNGG.js";
3
+ import { t as L } from "./ensureSmartWalletThenPublish-hRJ9T0f8.js";
4
+ import { t as R } from "./ensureModularPublishBootstrap-sAAJn75c.js";
5
+ import { i as z, r as B, t as V } from "./ensureAutomationSessionKey-DITIsceC.js";
6
6
  import { client as H } from "@seedprotocol/sdk";
7
7
  import { deploySmartAccount as ge, getContract as U, sendTransaction as _e } from "thirdweb";
8
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";
@@ -14,7 +14,7 @@ import { addSessionKey as Ae, shouldUpdateSessionKey as je } from "thirdweb/exte
14
14
  //#region src/react/ConnectButton.tsx
15
15
  var q = "seedProtocol:publish:userChoseWalletDisconnect";
16
16
  function Me(e) {
17
- console.warn("[ConnectButton] Wallet setup / module install skipped:", e), y().onWalletSetupWarning?.(e);
17
+ console.warn("[ConnectButton] Wallet setup / module install skipped:", e), x().onWalletSetupWarning?.(e);
18
18
  }
19
19
  function Ne() {
20
20
  return H.isInitialized() ? Promise.resolve() : new Promise((e) => {
@@ -26,29 +26,29 @@ async function Pe(e, t, n) {
26
26
  if (n.useModularExecutor) {
27
27
  if (!t) return;
28
28
  try {
29
- l();
30
- let e = h();
29
+ _();
30
+ let e = s();
31
31
  await e.autoConnect({
32
- client: f(),
33
- chain: C(n)
32
+ client: w(),
33
+ chain: S(n)
34
34
  });
35
35
  let r = e.getAccount();
36
36
  if (!r) return;
37
- await T(t, r, n);
37
+ await f(t, r, n);
38
38
  } catch {}
39
39
  } else try {
40
- await T(e.address, e, n);
40
+ await f(e.address, e, n);
41
41
  } catch (e) {
42
42
  Me(e);
43
43
  }
44
44
  }
45
45
  }
46
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);
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
48
  W(() => {
49
49
  if (typeof window > "u") return;
50
- let n = c.current;
51
- c.current = a;
50
+ let n = f.current;
51
+ f.current = l;
52
52
  let r;
53
53
  try {
54
54
  r = performance.getEntriesByType("navigation")[0]?.type;
@@ -56,83 +56,84 @@ var Fe = () => {
56
56
  r = void 0;
57
57
  }
58
58
  if (r !== "reload") return;
59
- let s = !1;
59
+ let i = !1;
60
60
  try {
61
- s = sessionStorage.getItem(q) === "1";
61
+ i = sessionStorage.getItem(q) === "1";
62
62
  } catch {
63
- s = !1;
63
+ i = !1;
64
64
  }
65
- s || n && !a && i === "disconnected" && (u.current || (u.current = !0, (e.useModularExecutor ? o() : h()).autoConnect({
66
- client: f(),
65
+ i || n && !l && c === "disconnected" && (p.current || (p.current = !0, (e.useModularExecutor ? h() : s()).autoConnect({
66
+ client: w(),
67
67
  chain: t
68
68
  }).catch(() => {})));
69
69
  }, [
70
- i,
71
- a,
70
+ c,
71
+ l,
72
72
  e.useModularExecutor,
73
73
  t
74
74
  ]);
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;
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;
80
80
  if (e.useModularExecutor) {
81
- l();
82
- let e = n.getAdminAccount?.()?.address ?? r.address, o = async () => {
81
+ _();
82
+ let e = r.getAdminAccount?.()?.address ?? i.address, c = async () => {
83
83
  try {
84
- return await m(t);
84
+ return await n(t);
85
85
  } catch {
86
86
  try {
87
- return await p(e);
87
+ return await a(e);
88
88
  } catch {
89
89
  return;
90
90
  }
91
91
  }
92
92
  };
93
- a = await o(), a ||= (await new Promise((e) => queueMicrotask(() => e())), await o()), a && i.add(a.toLowerCase());
93
+ s = await c(), s ||= (await new Promise((e) => queueMicrotask(() => e())), await c()), s && o.add(s.toLowerCase());
94
94
  }
95
- let o = [...i].sort().join(",");
96
- if (s.current !== o) {
97
- s.current = o;
95
+ let c = [...o].sort().join(",");
96
+ if (d.current !== c) {
97
+ d.current = c;
98
98
  try {
99
- let e = x(r);
100
- await ce({
99
+ let e = C(i), t = r.getAdminAccount?.()?.address;
100
+ await ee({
101
101
  ...e,
102
- ownedAddresses: [...i],
103
- publisherAddress: a ?? r.address
102
+ ownedAddresses: [...o],
103
+ publisherAddress: s ?? i.address,
104
+ ...t && t.toLowerCase() !== i.address.toLowerCase() ? { adminAddress: t } : {}
104
105
  });
105
106
  } catch (e) {
106
- throw s.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
107
+ throw d.current = null, console.warn("[ConnectButton] Failed to set seed client addresses:", e), e;
107
108
  }
108
- await Pe(r, a, e);
109
+ await Pe(i, s, e);
109
110
  }
110
111
  }, [e]);
111
112
  return W(() => {
112
- if (a) return;
113
- if (i !== "connected") {
114
- s.current = null;
113
+ if (l) return;
114
+ if (c !== "connected") {
115
+ d.current = null;
115
116
  return;
116
117
  }
117
- if (!n) return;
118
+ if (!i) return;
118
119
  let e = !1;
119
120
  return (async () => {
120
121
  try {
121
122
  if (e) return;
122
- await d(n);
123
+ await m(i);
123
124
  } catch {}
124
125
  })(), () => {
125
126
  e = !0;
126
127
  };
127
128
  }, [
128
- n,
129
- r?.address,
130
129
  i,
131
- a,
132
- d
130
+ o?.address,
131
+ c,
132
+ l,
133
+ m
133
134
  ]), /* @__PURE__ */ K(ve, {
134
- client: f(),
135
- wallets: g(e),
135
+ client: w(),
136
+ wallets: u(e),
136
137
  autoConnect: !0,
137
138
  chain: t,
138
139
  chains: [t],
@@ -144,7 +145,7 @@ var Fe = () => {
144
145
  } catch {}
145
146
  console.log("[ConnectButton] Connected", n.address);
146
147
  try {
147
- await d(e);
148
+ await m(e);
148
149
  } catch {}
149
150
  }
150
151
  },
@@ -152,7 +153,7 @@ var Fe = () => {
152
153
  try {
153
154
  sessionStorage.setItem(q, "1");
154
155
  } catch {}
155
- pe(), S.stopAll();
156
+ r(), T.stopAll();
156
157
  },
157
158
  theme: be({ colors: {
158
159
  primaryButtonBg: "#1D2939",
@@ -164,42 +165,42 @@ var Fe = () => {
164
165
  } })
165
166
  });
166
167
  }, Ie = ({ children: e, config: t, queryClient: n, queryClientRef: r }) => (W(() => {
167
- t && fe(t);
168
+ t && de(t);
168
169
  }, [t]), /* @__PURE__ */ K(M.Provider, {
169
- value: t ?? le(),
170
+ value: t ?? se(),
170
171
  children: /* @__PURE__ */ K(ye, { children: /* @__PURE__ */ K(ke, {
171
172
  queryClient: n,
172
173
  queryClientRef: r,
173
174
  children: e
174
175
  }) })
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;
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;
176
177
  async function Be() {
177
- let { autoDeployEip7702ModularAccount: e } = y(), n = o();
178
- await n.autoConnect({
179
- client: f(),
180
- chain: C()
178
+ let { autoDeployEip7702ModularAccount: e } = x(), t = h();
179
+ await t.autoConnect({
180
+ client: w(),
181
+ chain: S()
181
182
  });
182
- let r = n.getAccount();
183
- if (!r) throw new s(Le, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
184
- let i = f(), a = U({
185
- client: i,
186
- chain: C(),
187
- address: r.address
183
+ let n = t.getAccount();
184
+ if (!n) throw new y(Le, "EIP7702_MODULAR_ACCOUNT_UNAVAILABLE");
185
+ let r = w(), i = U({
186
+ client: r,
187
+ chain: S(),
188
+ address: n.address
188
189
  });
189
- if (!await t(r.address)) {
190
- if (!e) throw new s(Re(), "EIP7702_MODULAR_NOT_UPGRADED", r.address);
190
+ if (!await ie(n.address)) {
191
+ if (!e) throw new y(Re(), "EIP7702_MODULAR_NOT_UPGRADED", n.address);
191
192
  try {
192
193
  await ge({
193
- smartAccount: r,
194
- chain: C(),
195
- client: i,
196
- accountContract: a
194
+ smartAccount: n,
195
+ chain: S(),
196
+ client: r,
197
+ accountContract: i
197
198
  });
198
199
  } catch (e) {
199
- if (await b(r.address, Y)) return;
200
- throw new s(ze(), "EIP7702_MODULAR_DEPLOY_FAILED", r.address, e);
200
+ if (await o(n.address, Y)) return;
201
+ throw new y(ze(), "EIP7702_MODULAR_DEPLOY_FAILED", n.address, e);
201
202
  }
202
- if (!await b(r.address, Y)) throw new s(J, "EIP7702_MODULAR_NOT_CONFIRMED", r.address);
203
+ if (!await o(n.address, Y)) throw new y(J, "EIP7702_MODULAR_NOT_CONFIRMED", n.address);
203
204
  }
204
205
  }
205
206
  //#endregion
@@ -209,79 +210,79 @@ function X(e) {
209
210
  }
210
211
  //#endregion
211
212
  //#region src/helpers/ensureManagedSignerSessionKey.ts
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()}.`;
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()}.`;
213
214
  async function He(e) {
214
- let { managedAddress: t, signerAddress: n } = e, r = h();
215
+ let { managedAddress: t, signerAddress: n } = e, r = s();
215
216
  await r.autoConnect({
216
- client: f(),
217
- chain: C()
217
+ client: w(),
218
+ chain: S()
218
219
  });
219
220
  let i = r.getAccount();
220
- if (!i) throw new d(Ve(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
221
- let o = U({
222
- client: f(),
223
- chain: C(),
221
+ if (!i) throw new v(Ve(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
222
+ let a = U({
223
+ client: w(),
224
+ chain: S(),
224
225
  address: t
225
- }), s = {
226
+ }), o = {
226
227
  approvedTargets: X(t),
227
228
  nativeTokenLimitPerTransaction: 0
228
229
  }, c = !1;
229
230
  try {
230
231
  c = await je({
231
- accountContract: o,
232
+ accountContract: a,
232
233
  sessionKeyAddress: n,
233
- newPermissions: s
234
+ newPermissions: o
234
235
  });
235
236
  } catch (e) {
236
- throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
237
+ throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
237
238
  }
238
239
  if (c) try {
239
240
  let e = Ae({
240
- contract: o,
241
+ contract: a,
241
242
  account: i,
242
243
  sessionKeyAddress: n,
243
- permissions: s
244
+ permissions: o
244
245
  }), t = await _e({
245
246
  account: i,
246
247
  transaction: e
247
248
  });
248
- await ne(t.transactionHash);
249
+ await me(t.transactionHash);
249
250
  } catch (e) {
250
- throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
251
+ throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
251
252
  }
252
253
  let l = !1;
253
254
  try {
254
- l = await a(t, n);
255
+ l = await ne(t, n);
255
256
  } catch (e) {
256
- throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
257
+ throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t, e);
257
258
  }
258
- if (!l) throw new d(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
259
+ if (!l) throw new v(Z(), "MODULAR_SIGNER_ACTIVATION_FAILED", t);
259
260
  }
260
261
  //#endregion
261
262
  //#region src/helpers/enrollPublishAutomation.ts
262
263
  async function Q(e) {
263
- let t = h();
264
+ let t = s();
264
265
  await t.autoConnect({
265
- client: f(),
266
- chain: C()
266
+ client: w(),
267
+ chain: S()
267
268
  });
268
269
  let n = t.getAccount();
269
- if (!n) throw new d("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
270
+ if (!n) throw new v("Could not connect the managed publishing account to enroll or revoke publish automation.", "MANAGED_ACCOUNT_UNAVAILABLE", e);
270
271
  return n;
271
272
  }
272
273
  async function $(e, t) {
273
- return t || x(await Q(e));
274
+ return t || C(await Q(e));
274
275
  }
275
276
  async function Ue(e) {
276
- let t = y();
277
+ let t = x();
277
278
  if (!t.modularAccountModuleContract?.trim()) throw Error("@seedprotocol/publish: enrollPublishAutomation requires PublishConfig.modularAccountModuleContract");
278
279
  let n = await Q(e), r;
279
280
  try {
280
- r = await T(e, n, t);
281
+ r = await f(e, n, t);
281
282
  } catch (t) {
282
- throw t instanceof d ? t : new d("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
283
+ throw t instanceof v ? t : new v("Executor module setup failed for publish automation.", "EXECUTOR_MODULE_NOT_INSTALLED", e, t);
283
284
  }
284
- await ae(e, r.status === "installed" ? { installedEas: r.eas } : { readAttempts: r.status === "already-installed" ? 5 : 1 });
285
+ await p(e, r.status === "installed" ? { installedEas: r.eas } : { readAttempts: r.status === "already-installed" ? 5 : 1 });
285
286
  }
286
287
  async function We(e) {
287
288
  let { managedAddress: t, sessionKeyAddress: n, appAddress: r, expiresAt: i } = e;
@@ -362,6 +363,6 @@ async function Ke(e) {
362
363
  };
363
364
  }
364
365
  //#endregion
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 };
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 };
366
367
 
367
368
  //# sourceMappingURL=thirdweb.js.map