@seedprotocol/publish 0.4.32 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +64 -18
- package/dist/config-Q3y4Fab2.js +936 -0
- package/dist/config-Q3y4Fab2.js.map +1 -0
- package/dist/config-bUKEs4Uf.js +511 -0
- package/dist/config-bUKEs4Uf.js.map +1 -0
- package/dist/config.d.ts +42 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/ensureManagedAccountEasConfigured-BXF7gQCi.js +1270 -0
- package/dist/ensureManagedAccountEasConfigured-BXF7gQCi.js.map +1 -0
- package/dist/ensureManagedAccountEasConfigured-BxdK_Vhf.js +1204 -0
- package/dist/ensureManagedAccountEasConfigured-BxdK_Vhf.js.map +1 -0
- package/dist/ensureManagedAccountEasConfigured-CZGguM7q.js +1177 -0
- package/dist/ensureManagedAccountEasConfigured-CZGguM7q.js.map +1 -0
- package/dist/ensureManagedAccountEasConfigured-CZS__-ha.js +1177 -0
- package/dist/ensureManagedAccountEasConfigured-CZS__-ha.js.map +1 -0
- package/dist/ensureManagedAccountEasConfigured-D2_Jjjxt.js +1192 -0
- package/dist/ensureManagedAccountEasConfigured-D2_Jjjxt.js.map +1 -0
- package/dist/ensureManagedAccountEasConfigured-DDFBEb-B.js +1192 -0
- package/dist/ensureManagedAccountEasConfigured-DDFBEb-B.js.map +1 -0
- package/dist/ensureManagedAccountEasConfigured-zcyqhWPe.js +1270 -0
- package/dist/ensureManagedAccountEasConfigured-zcyqhWPe.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-2agkGdih.js +124 -0
- package/dist/ensureModularPublishBootstrap-2agkGdih.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-B5i_dQrv.js +124 -0
- package/dist/ensureModularPublishBootstrap-B5i_dQrv.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-BSXyZgld.js +124 -0
- package/dist/ensureModularPublishBootstrap-BSXyZgld.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-C0gx7sbt.js +124 -0
- package/dist/ensureModularPublishBootstrap-C0gx7sbt.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-DHNo4j6X.js +124 -0
- package/dist/ensureModularPublishBootstrap-DHNo4j6X.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-DQ-oruO1.js +124 -0
- package/dist/ensureModularPublishBootstrap-DQ-oruO1.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-QRGGgnkz.js +124 -0
- package/dist/ensureModularPublishBootstrap-QRGGgnkz.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-BmeIFGIX.js +47 -0
- package/dist/ensureSmartWalletThenPublish-BmeIFGIX.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-CR4N0M9S.js +47 -0
- package/dist/ensureSmartWalletThenPublish-CR4N0M9S.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-CRza0sML.js +47 -0
- package/dist/ensureSmartWalletThenPublish-CRza0sML.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-DzOnwM-9.js +47 -0
- package/dist/ensureSmartWalletThenPublish-DzOnwM-9.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-UFczP8th.js +47 -0
- package/dist/ensureSmartWalletThenPublish-UFczP8th.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-k085lqDO.js +47 -0
- package/dist/ensureSmartWalletThenPublish-k085lqDO.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-xcHGv06S.js +47 -0
- package/dist/ensureSmartWalletThenPublish-xcHGv06S.js.map +1 -0
- package/dist/helpers/abi/eas.d.ts +203 -0
- package/dist/helpers/abi/eas.d.ts.map +1 -0
- package/dist/helpers/abi/executor.d.ts +33 -0
- package/dist/helpers/abi/executor.d.ts.map +1 -0
- package/dist/helpers/abi/factory.d.ts +31 -0
- package/dist/helpers/abi/factory.d.ts.map +1 -0
- package/dist/helpers/abi/publisher.d.ts +199 -0
- package/dist/helpers/abi/publisher.d.ts.map +1 -0
- package/dist/helpers/abi/schemaRegistry.d.ts +45 -0
- package/dist/helpers/abi/schemaRegistry.d.ts.map +1 -0
- package/dist/helpers/adapters/eip1193.d.ts +17 -0
- package/dist/helpers/adapters/eip1193.d.ts.map +1 -0
- package/dist/helpers/adapters/permissionlessTxSender.d.ts +11 -0
- package/dist/helpers/adapters/permissionlessTxSender.d.ts.map +1 -0
- package/dist/helpers/adapters/thirdwebAccount.d.ts +13 -0
- package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -0
- package/dist/helpers/arweave.d.ts +4 -4
- package/dist/helpers/arweave.d.ts.map +1 -1
- package/dist/helpers/chainClient.d.ts +15 -0
- package/dist/helpers/chainClient.d.ts.map +1 -0
- package/dist/helpers/chainConfig.d.ts +12 -0
- package/dist/helpers/chainConfig.d.ts.map +1 -0
- package/dist/helpers/constants.d.ts +1 -2
- package/dist/helpers/constants.d.ts.map +1 -1
- package/dist/helpers/contracts/index.d.ts +90 -0
- package/dist/helpers/contracts/index.d.ts.map +1 -0
- package/dist/helpers/defaultChain.d.ts +4 -0
- package/dist/helpers/defaultChain.d.ts.map +1 -0
- package/dist/helpers/easDirect.d.ts +7 -76
- package/dist/helpers/easDirect.d.ts.map +1 -1
- package/dist/helpers/ensureEip7702ModularAccountReady.d.ts +1 -4
- package/dist/helpers/ensureEip7702ModularAccountReady.d.ts.map +1 -1
- package/dist/helpers/ensureExecutorModule.d.ts +1 -9
- package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
- package/dist/helpers/ensureManagedAccountEasConfigured.d.ts +2 -5
- package/dist/helpers/ensureManagedAccountEasConfigured.d.ts.map +1 -1
- package/dist/helpers/ensureManagedAccountReady.d.ts.map +1 -1
- package/dist/helpers/ensureManagedSignerSessionKey.d.ts +1 -0
- package/dist/helpers/ensureManagedSignerSessionKey.d.ts.map +1 -1
- package/dist/helpers/ensureSmartWalletThenPublish.d.ts +3 -13
- package/dist/helpers/ensureSmartWalletThenPublish.d.ts.map +1 -1
- package/dist/helpers/ensureWalletThenPublish.d.ts +21 -0
- package/dist/helpers/ensureWalletThenPublish.d.ts.map +1 -0
- package/dist/helpers/nameSchemaAttestation.d.ts +7 -0
- package/dist/helpers/nameSchemaAttestation.d.ts.map +1 -0
- package/dist/helpers/publishWalletRegistry.d.ts +19 -0
- package/dist/helpers/publishWalletRegistry.d.ts.map +1 -0
- package/dist/helpers/resolvePublishWallet.d.ts +7 -0
- package/dist/helpers/resolvePublishWallet.d.ts.map +1 -0
- package/dist/helpers/schemaRegistry.d.ts +11 -0
- package/dist/helpers/schemaRegistry.d.ts.map +1 -0
- package/dist/helpers/seedSigner.d.ts +62 -0
- package/dist/helpers/seedSigner.d.ts.map +1 -0
- package/dist/helpers/thirdweb.d.ts +14 -2
- package/dist/helpers/thirdweb.d.ts.map +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +283 -5171
- package/dist/index.js.map +1 -1
- package/dist/publishManager-1vLf1ZHv.js +3005 -0
- package/dist/publishManager-1vLf1ZHv.js.map +1 -0
- package/dist/publishManager-5hUL8Of5.js +3007 -0
- package/dist/publishManager-5hUL8Of5.js.map +1 -0
- package/dist/publishManager-BO4sSSvo.js +3007 -0
- package/dist/publishManager-BO4sSSvo.js.map +1 -0
- package/dist/publishManager-BOICv9Yl.js +3008 -0
- package/dist/publishManager-BOICv9Yl.js.map +1 -0
- package/dist/publishManager-CCXWxiT1.js +3008 -0
- package/dist/publishManager-CCXWxiT1.js.map +1 -0
- package/dist/publishManager-Ccot_poQ.js +3008 -0
- package/dist/publishManager-Ccot_poQ.js.map +1 -0
- package/dist/publishManager-De3uWE-p.js +3007 -0
- package/dist/publishManager-De3uWE-p.js.map +1 -0
- package/dist/react/ConnectButton.d.ts.map +1 -1
- package/dist/react/PublishConfigContext.d.ts +4 -0
- package/dist/react/PublishConfigContext.d.ts.map +1 -0
- package/dist/react/PublishProvider.d.ts +7 -1
- package/dist/react/PublishProvider.d.ts.map +1 -1
- package/dist/react/PublishProvider.thirdweb.d.ts +11 -0
- package/dist/react/PublishProvider.thirdweb.d.ts.map +1 -0
- package/dist/react/useSeedWallet.d.ts +17 -0
- package/dist/react/useSeedWallet.d.ts.map +1 -0
- package/dist/resolveRevokeAccount-BGVjf-kI.js +30 -0
- package/dist/resolveRevokeAccount-BGVjf-kI.js.map +1 -0
- package/dist/resolveRevokeAccount-BRwOBTJ4.js +30 -0
- package/dist/resolveRevokeAccount-BRwOBTJ4.js.map +1 -0
- package/dist/resolveRevokeAccount-C0ZWAcHX.js +30 -0
- package/dist/resolveRevokeAccount-C0ZWAcHX.js.map +1 -0
- package/dist/resolveRevokeAccount-CKcr55EY.js +30 -0
- package/dist/resolveRevokeAccount-CKcr55EY.js.map +1 -0
- package/dist/resolveRevokeAccount-DNvuOQ1c.js +30 -0
- package/dist/resolveRevokeAccount-DNvuOQ1c.js.map +1 -0
- package/dist/resolveRevokeAccount-DvEPXZKI.js +30 -0
- package/dist/resolveRevokeAccount-DvEPXZKI.js.map +1 -0
- package/dist/resolveRevokeAccount-rOof3dUA.js +30 -0
- package/dist/resolveRevokeAccount-rOof3dUA.js.map +1 -0
- package/dist/seedSigner-BvK5WjmV.js +66 -0
- package/dist/seedSigner-BvK5WjmV.js.map +1 -0
- package/dist/services/PublishManager/actions/createPublish.d.ts.map +1 -1
- package/dist/services/PublishManager/actions/retryAttestations.d.ts +3 -2
- package/dist/services/PublishManager/actions/retryAttestations.d.ts.map +1 -1
- package/dist/services/PublishManager/actors/restoreFromDb.d.ts.map +1 -1
- package/dist/services/PublishManager/index.d.ts +2 -2
- package/dist/services/PublishManager/index.d.ts.map +1 -1
- package/dist/services/publish/actors/checking.d.ts.map +1 -1
- package/dist/services/publish/actors/createArweaveDataItems.d.ts.map +1 -1
- package/dist/services/publish/actors/createAttestations.d.ts.map +1 -1
- package/dist/services/publish/actors/createAttestationsDirectToEas.d.ts.map +1 -1
- package/dist/services/publish/actors/seedUidHelpers.d.ts +1 -17
- package/dist/services/publish/actors/seedUidHelpers.d.ts.map +1 -1
- package/dist/services/publish/helpers/ensureEasSchemas.d.ts +2 -5
- package/dist/services/publish/helpers/ensureEasSchemas.d.ts.map +1 -1
- package/dist/services/publish/helpers/receiptAttestationMs.d.ts +1 -3
- package/dist/services/publish/helpers/receiptAttestationMs.d.ts.map +1 -1
- package/dist/services/publish/index.d.ts.map +1 -1
- package/dist/services/revoke/revokeAttestations.d.ts +1 -3
- package/dist/services/revoke/revokeAttestations.d.ts.map +1 -1
- package/dist/services/upload/uploadMachine.d.ts +1 -1
- package/dist/thirdweb.d.ts +17 -0
- package/dist/thirdweb.d.ts.map +1 -0
- package/dist/thirdweb.js +176 -0
- package/dist/thirdweb.js.map +1 -0
- package/dist/types.d.ts +9 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/worker-B3R2zwxm.js +69 -0
- package/dist/worker-B3R2zwxm.js.map +1 -0
- package/dist/worker-BVc0OzNI.js +105 -0
- package/dist/worker-BVc0OzNI.js.map +1 -0
- package/dist/worker-BWERw2Le.js +69 -0
- package/dist/worker-BWERw2Le.js.map +1 -0
- package/dist/worker-Bb3a6nOf.js +69 -0
- package/dist/worker-Bb3a6nOf.js.map +1 -0
- package/dist/worker-BqeFFnN_.js +69 -0
- package/dist/worker-BqeFFnN_.js.map +1 -0
- package/dist/worker-CqCsdQeT.js +69 -0
- package/dist/worker-CqCsdQeT.js.map +1 -0
- package/dist/worker-QZN_HMAs.js +69 -0
- package/dist/worker-QZN_HMAs.js.map +1 -0
- package/dist/worker-VilzVQ8C.js +69 -0
- package/dist/worker-VilzVQ8C.js.map +1 -0
- package/dist/worker-j_9ajZZU.js +100 -0
- package/dist/worker-j_9ajZZU.js.map +1 -0
- package/package.json +20 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectButton.d.ts","sourceRoot":"","sources":["../../src/react/ConnectButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAkC,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ConnectButton.d.ts","sourceRoot":"","sources":["../../src/react/ConnectButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAkC,MAAM,OAAO,CAAA;AAsFjE,QAAA,MAAM,aAAa,EAAE,EA+LpB,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublishConfigContext.d.ts","sourceRoot":"","sources":["../../src/react/PublishConfigContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,oBAAoB,+CAA4C,CAAA;AAE7E,wBAAgB,gBAAgB,IAAI,aAAa,CAQhD"}
|
|
@@ -2,7 +2,9 @@ import React, { FC } from "react";
|
|
|
2
2
|
import type { MutableRefObject } from "react";
|
|
3
3
|
import type { QueryClient } from "@tanstack/react-query";
|
|
4
4
|
import { type PublishConfig } from "../config";
|
|
5
|
-
|
|
5
|
+
import { usePublishConfig } from "./PublishConfigContext";
|
|
6
|
+
export { usePublishConfig };
|
|
7
|
+
export type { PublishConfig };
|
|
6
8
|
export interface PublishProviderProps {
|
|
7
9
|
children: React.ReactNode;
|
|
8
10
|
/**
|
|
@@ -15,6 +17,10 @@ export interface PublishProviderProps {
|
|
|
15
17
|
/** Optional: ref to receive the QueryClient instance (e.g. for tests). */
|
|
16
18
|
queryClientRef?: MutableRefObject<QueryClient | null>;
|
|
17
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Core PublishProvider — no Thirdweb dependency.
|
|
22
|
+
* For in-app wallets / ConnectButton, use `@seedprotocol/publish/thirdweb`.
|
|
23
|
+
*/
|
|
18
24
|
declare const PublishProvider: FC<PublishProviderProps>;
|
|
19
25
|
export default PublishProvider;
|
|
20
26
|
//# sourceMappingURL=PublishProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishProvider.d.ts","sourceRoot":"","sources":["../../src/react/PublishProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PublishProvider.d.ts","sourceRoot":"","sources":["../../src/react/PublishProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAa,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAwB,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE/E,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAC3B,YAAY,EAAE,aAAa,EAAE,CAAA;AAE7B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,oGAAoG;IACpG,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACtD;AAED;;;GAGG;AACH,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAmB7C,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { usePublishConfig } from "./PublishConfigContext";
|
|
3
|
+
import type { PublishProviderProps } from "./PublishProvider";
|
|
4
|
+
export { usePublishConfig };
|
|
5
|
+
export type { PublishProviderProps };
|
|
6
|
+
/**
|
|
7
|
+
* Thirdweb-backed PublishProvider (includes ThirdwebProvider).
|
|
8
|
+
*/
|
|
9
|
+
declare const PublishProviderThirdweb: FC<PublishProviderProps>;
|
|
10
|
+
export default PublishProviderThirdweb;
|
|
11
|
+
//# sourceMappingURL=PublishProvider.thirdweb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublishProvider.thirdweb.d.ts","sourceRoot":"","sources":["../../src/react/PublishProvider.thirdweb.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAa,MAAM,OAAO,CAAA;AAM5C,OAAO,EAAwB,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAC3B,YAAY,EAAE,oBAAoB,EAAE,CAAA;AAEpC;;GAEG;AACH,QAAA,MAAM,uBAAuB,EAAE,EAAE,CAAC,oBAAoB,CAqBrD,CAAA;AAED,eAAe,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Address, EIP1193Provider } from 'viem';
|
|
2
|
+
import { type PublishWallet, type SeedSigner, type SeedTxSender } from '../helpers/seedSigner';
|
|
3
|
+
export type SeedWalletStatus = 'disconnected' | 'connecting' | 'connected';
|
|
4
|
+
export type UseSeedWalletResult = {
|
|
5
|
+
address: Address | undefined;
|
|
6
|
+
signer: SeedSigner | undefined;
|
|
7
|
+
txSender: SeedTxSender | undefined;
|
|
8
|
+
status: SeedWalletStatus;
|
|
9
|
+
connect: (input: EIP1193Provider | PublishWallet) => Promise<PublishWallet>;
|
|
10
|
+
disconnect: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Headless wallet session for publish — no Thirdweb dependency.
|
|
14
|
+
* Registers into {@link setPublishWallet} so createPublish / ensureWalletThenPublish work.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useSeedWallet(): UseSeedWalletResult;
|
|
17
|
+
//# sourceMappingURL=useSeedWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSeedWallet.d.ts","sourceRoot":"","sources":["../../src/react/useSeedWallet.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAA;AAW9B,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,CAAA;AAE1E,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;IAC9B,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,MAAM,EAAE,gBAAgB,CAAA;IACxB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;IAC3E,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,mBAAmB,CA4DnD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h as e, o as t, p as n, u as r } from "./ensureManagedAccountEasConfigured-BXF7gQCi.js";
|
|
2
|
+
import { getGetAdditionalSyncAddresses as i } from "@seedprotocol/sdk";
|
|
3
|
+
import { optimismSepolia as a } from "thirdweb/chains";
|
|
4
|
+
//#region src/helpers/resolveRevokeAccount.ts
|
|
5
|
+
async function o(o) {
|
|
6
|
+
let { account: s, attester: c } = o;
|
|
7
|
+
if (!c || s.address.toLowerCase() === c.toLowerCase()) return s;
|
|
8
|
+
let l = i();
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = await l(), t = c.toLowerCase();
|
|
11
|
+
if (e?.some((e) => e?.toLowerCase() === t)) throw Error("Revocation not supported for items published via the modular executor.");
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
let i = await n(s.address);
|
|
15
|
+
if (c.toLowerCase() === i.toLowerCase() && await e(i)) {
|
|
16
|
+
let e = r();
|
|
17
|
+
await e.autoConnect({
|
|
18
|
+
client: t(),
|
|
19
|
+
chain: a
|
|
20
|
+
});
|
|
21
|
+
let n = e.getAccount();
|
|
22
|
+
if (n) return n;
|
|
23
|
+
}
|
|
24
|
+
} catch {}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as resolveRevokeAccount };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=resolveRevokeAccount-BGVjf-kI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRevokeAccount-BGVjf-kI.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n} from '~/helpers/thirdweb'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * @param account - The currently connected account\n * @param attester - The attester address from the seed (publisher or attestationRaw.attester)\n * @returns The account to use for revoke\n * @throws If `attester` equals any address from {@link getGetAdditionalSyncAddresses}\n * (e.g. `modularAccountModuleContract` when `initPublish` registers it). Those addresses\n * cannot revoke via the app wallet’s EAS `multiRevoke` path today.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n if (additional?.some((a: string | undefined) => a?.toLowerCase() === attesterLower)) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower) {\n const deployed = await isSmartWalletDeployed(derivedManagedAccount)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: optimismSepolia,\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through to return account; revoke attempt may fail with AccessDenied\n }\n\n return account\n}\n"],"mappings":";;;;AAuBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B;CACvD,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAAI,GAAY,MAAM,MAA0B,GAAG,YAAY,MAAM,CAAa,GAChF,MAAU,MACR,wEACF;CAEJ;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAEhB,MADmB,EAAsB,CAAqB,GACpD;GACZ,IAAM,IAAuB,EAAwB;GACrD,MAAM,EAAqB,YAAY;IACrC,QAAQ,EAAU;IAClB,OAAO;GACT,CAAC;GACD,IAAM,IAAiB,EAAqB,WAAW;GACvD,IAAI,GACF,OAAO;EAEX;CAEJ,QAAQ,CAER;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h as e, o as t, p as n, u as r } from "./ensureManagedAccountEasConfigured-BxdK_Vhf.js";
|
|
2
|
+
import { getGetAdditionalSyncAddresses as i } from "@seedprotocol/sdk";
|
|
3
|
+
import { optimismSepolia as a } from "thirdweb/chains";
|
|
4
|
+
//#region src/helpers/resolveRevokeAccount.ts
|
|
5
|
+
async function o(o) {
|
|
6
|
+
let { account: s, attester: c } = o;
|
|
7
|
+
if (!c || s.address.toLowerCase() === c.toLowerCase()) return s;
|
|
8
|
+
let l = i();
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = await l(), t = c.toLowerCase();
|
|
11
|
+
if (e?.some((e) => e?.toLowerCase() === t)) throw Error("Revocation not supported for items published via the modular executor.");
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
let i = await n(s.address);
|
|
15
|
+
if (c.toLowerCase() === i.toLowerCase() && await e(i)) {
|
|
16
|
+
let e = r();
|
|
17
|
+
await e.autoConnect({
|
|
18
|
+
client: t(),
|
|
19
|
+
chain: a
|
|
20
|
+
});
|
|
21
|
+
let n = e.getAccount();
|
|
22
|
+
if (n) return n;
|
|
23
|
+
}
|
|
24
|
+
} catch {}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as resolveRevokeAccount };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=resolveRevokeAccount-BRwOBTJ4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRevokeAccount-BRwOBTJ4.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n} from '~/helpers/thirdweb'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * @param account - The currently connected account\n * @param attester - The attester address from the seed (publisher or attestationRaw.attester)\n * @returns The account to use for revoke\n * @throws If `attester` equals any address from {@link getGetAdditionalSyncAddresses}\n * (e.g. `modularAccountModuleContract` when `initPublish` registers it). Those addresses\n * cannot revoke via the app wallet’s EAS `multiRevoke` path today.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n if (additional?.some((a: string | undefined) => a?.toLowerCase() === attesterLower)) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower) {\n const deployed = await isSmartWalletDeployed(derivedManagedAccount)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: optimismSepolia,\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through to return account; revoke attempt may fail with AccessDenied\n }\n\n return account\n}\n"],"mappings":";;;;AAuBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B;CACvD,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAAI,GAAY,MAAM,MAA0B,GAAG,YAAY,MAAM,CAAa,GAChF,MAAU,MACR,wEACF;CAEJ;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAEhB,MADmB,EAAsB,CAAqB,GACpD;GACZ,IAAM,IAAuB,EAAwB;GACrD,MAAM,EAAqB,YAAY;IACrC,QAAQ,EAAU;IAClB,OAAO;GACT,CAAC;GACD,IAAM,IAAiB,EAAqB,WAAW;GACvD,IAAI,GACF,OAAO;EAEX;CAEJ,QAAQ,CAER;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h as e, o as t, p as n, u as r } from "./ensureManagedAccountEasConfigured-D2_Jjjxt.js";
|
|
2
|
+
import { getGetAdditionalSyncAddresses as i } from "@seedprotocol/sdk";
|
|
3
|
+
import { optimismSepolia as a } from "thirdweb/chains";
|
|
4
|
+
//#region src/helpers/resolveRevokeAccount.ts
|
|
5
|
+
async function o(o) {
|
|
6
|
+
let { account: s, attester: c } = o;
|
|
7
|
+
if (!c || s.address.toLowerCase() === c.toLowerCase()) return s;
|
|
8
|
+
let l = i();
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = await l(), t = c.toLowerCase();
|
|
11
|
+
if (e?.some((e) => e?.toLowerCase() === t)) throw Error("Revocation not supported for items published via the modular executor.");
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
let i = await n(s.address);
|
|
15
|
+
if (c.toLowerCase() === i.toLowerCase() && await e(i)) {
|
|
16
|
+
let e = r();
|
|
17
|
+
await e.autoConnect({
|
|
18
|
+
client: t(),
|
|
19
|
+
chain: a
|
|
20
|
+
});
|
|
21
|
+
let n = e.getAccount();
|
|
22
|
+
if (n) return n;
|
|
23
|
+
}
|
|
24
|
+
} catch {}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as resolveRevokeAccount };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=resolveRevokeAccount-C0ZWAcHX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRevokeAccount-C0ZWAcHX.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n} from '~/helpers/thirdweb'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * @param account - The currently connected account\n * @param attester - The attester address from the seed (publisher or attestationRaw.attester)\n * @returns The account to use for revoke\n * @throws If `attester` equals any address from {@link getGetAdditionalSyncAddresses}\n * (e.g. `modularAccountModuleContract` when `initPublish` registers it). Those addresses\n * cannot revoke via the app wallet’s EAS `multiRevoke` path today.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n if (additional?.some((a: string | undefined) => a?.toLowerCase() === attesterLower)) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower) {\n const deployed = await isSmartWalletDeployed(derivedManagedAccount)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: optimismSepolia,\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through to return account; revoke attempt may fail with AccessDenied\n }\n\n return account\n}\n"],"mappings":";;;;AAuBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B;CACvD,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAAI,GAAY,MAAM,MAA0B,GAAG,YAAY,MAAM,CAAa,GAChF,MAAU,MACR,wEACF;CAEJ;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAEhB,MADmB,EAAsB,CAAqB,GACpD;GACZ,IAAM,IAAuB,EAAwB;GACrD,MAAM,EAAqB,YAAY;IACrC,QAAQ,EAAU;IAClB,OAAO;GACT,CAAC;GACD,IAAM,IAAiB,EAAqB,WAAW;GACvD,IAAI,GACF,OAAO;EAEX;CAEJ,QAAQ,CAER;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h as e, o as t, p as n, u as r } from "./ensureManagedAccountEasConfigured-CZS__-ha.js";
|
|
2
|
+
import { getGetAdditionalSyncAddresses as i } from "@seedprotocol/sdk";
|
|
3
|
+
import { optimismSepolia as a } from "thirdweb/chains";
|
|
4
|
+
//#region src/helpers/resolveRevokeAccount.ts
|
|
5
|
+
async function o(o) {
|
|
6
|
+
let { account: s, attester: c } = o;
|
|
7
|
+
if (!c || s.address.toLowerCase() === c.toLowerCase()) return s;
|
|
8
|
+
let l = i();
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = await l(), t = c.toLowerCase();
|
|
11
|
+
if (e?.some((e) => e?.toLowerCase() === t)) throw Error("Revocation not supported for items published via the modular executor.");
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
let i = await n(s.address);
|
|
15
|
+
if (c.toLowerCase() === i.toLowerCase() && await e(i)) {
|
|
16
|
+
let e = r();
|
|
17
|
+
await e.autoConnect({
|
|
18
|
+
client: t(),
|
|
19
|
+
chain: a
|
|
20
|
+
});
|
|
21
|
+
let n = e.getAccount();
|
|
22
|
+
if (n) return n;
|
|
23
|
+
}
|
|
24
|
+
} catch {}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as resolveRevokeAccount };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=resolveRevokeAccount-CKcr55EY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRevokeAccount-CKcr55EY.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n} from '~/helpers/thirdweb'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * @param account - The currently connected account\n * @param attester - The attester address from the seed (publisher or attestationRaw.attester)\n * @returns The account to use for revoke\n * @throws If `attester` equals any address from {@link getGetAdditionalSyncAddresses}\n * (e.g. `modularAccountModuleContract` when `initPublish` registers it). Those addresses\n * cannot revoke via the app wallet’s EAS `multiRevoke` path today.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n if (additional?.some((a: string | undefined) => a?.toLowerCase() === attesterLower)) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower) {\n const deployed = await isSmartWalletDeployed(derivedManagedAccount)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: optimismSepolia,\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through to return account; revoke attempt may fail with AccessDenied\n }\n\n return account\n}\n"],"mappings":";;;;AAuBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B;CACvD,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAAI,GAAY,MAAM,MAA0B,GAAG,YAAY,MAAM,CAAa,GAChF,MAAU,MACR,wEACF;CAEJ;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAEhB,MADmB,EAAsB,CAAqB,GACpD;GACZ,IAAM,IAAuB,EAAwB;GACrD,MAAM,EAAqB,YAAY;IACrC,QAAQ,EAAU;IAClB,OAAO;GACT,CAAC;GACD,IAAM,IAAiB,EAAqB,WAAW;GACvD,IAAI,GACF,OAAO;EAEX;CAEJ,QAAQ,CAER;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h as e, o as t, p as n, u as r } from "./ensureManagedAccountEasConfigured-zcyqhWPe.js";
|
|
2
|
+
import { getGetAdditionalSyncAddresses as i } from "@seedprotocol/sdk";
|
|
3
|
+
import { optimismSepolia as a } from "thirdweb/chains";
|
|
4
|
+
//#region src/helpers/resolveRevokeAccount.ts
|
|
5
|
+
async function o(o) {
|
|
6
|
+
let { account: s, attester: c } = o;
|
|
7
|
+
if (!c || s.address.toLowerCase() === c.toLowerCase()) return s;
|
|
8
|
+
let l = i();
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = await l(), t = c.toLowerCase();
|
|
11
|
+
if (e?.some((e) => e?.toLowerCase() === t)) throw Error("Revocation not supported for items published via the modular executor.");
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
let i = await n(s.address);
|
|
15
|
+
if (c.toLowerCase() === i.toLowerCase() && await e(i)) {
|
|
16
|
+
let e = r();
|
|
17
|
+
await e.autoConnect({
|
|
18
|
+
client: t(),
|
|
19
|
+
chain: a
|
|
20
|
+
});
|
|
21
|
+
let n = e.getAccount();
|
|
22
|
+
if (n) return n;
|
|
23
|
+
}
|
|
24
|
+
} catch {}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as resolveRevokeAccount };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=resolveRevokeAccount-DNvuOQ1c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRevokeAccount-DNvuOQ1c.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n} from '~/helpers/thirdweb'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * @param account - The currently connected account\n * @param attester - The attester address from the seed (publisher or attestationRaw.attester)\n * @returns The account to use for revoke\n * @throws If `attester` equals any address from {@link getGetAdditionalSyncAddresses}\n * (e.g. `modularAccountModuleContract` when `initPublish` registers it). Those addresses\n * cannot revoke via the app wallet’s EAS `multiRevoke` path today.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n if (additional?.some((a: string | undefined) => a?.toLowerCase() === attesterLower)) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower) {\n const deployed = await isSmartWalletDeployed(derivedManagedAccount)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: optimismSepolia,\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through to return account; revoke attempt may fail with AccessDenied\n }\n\n return account\n}\n"],"mappings":";;;;AAuBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B;CACvD,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAAI,GAAY,MAAM,MAA0B,GAAG,YAAY,MAAM,CAAa,GAChF,MAAU,MACR,wEACF;CAEJ;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAEhB,MADmB,EAAsB,CAAqB,GACpD;GACZ,IAAM,IAAuB,EAAwB;GACrD,MAAM,EAAqB,YAAY;IACrC,QAAQ,EAAU;IAClB,OAAO;GACT,CAAC;GACD,IAAM,IAAiB,EAAqB,WAAW;GACvD,IAAI,GACF,OAAO;EAEX;CAEJ,QAAQ,CAER;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h as e, o as t, p as n, u as r } from "./ensureManagedAccountEasConfigured-DDFBEb-B.js";
|
|
2
|
+
import { getGetAdditionalSyncAddresses as i } from "@seedprotocol/sdk";
|
|
3
|
+
import { optimismSepolia as a } from "thirdweb/chains";
|
|
4
|
+
//#region src/helpers/resolveRevokeAccount.ts
|
|
5
|
+
async function o(o) {
|
|
6
|
+
let { account: s, attester: c } = o;
|
|
7
|
+
if (!c || s.address.toLowerCase() === c.toLowerCase()) return s;
|
|
8
|
+
let l = i();
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = await l(), t = c.toLowerCase();
|
|
11
|
+
if (e?.some((e) => e?.toLowerCase() === t)) throw Error("Revocation not supported for items published via the modular executor.");
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
let i = await n(s.address);
|
|
15
|
+
if (c.toLowerCase() === i.toLowerCase() && await e(i)) {
|
|
16
|
+
let e = r();
|
|
17
|
+
await e.autoConnect({
|
|
18
|
+
client: t(),
|
|
19
|
+
chain: a
|
|
20
|
+
});
|
|
21
|
+
let n = e.getAccount();
|
|
22
|
+
if (n) return n;
|
|
23
|
+
}
|
|
24
|
+
} catch {}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as resolveRevokeAccount };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=resolveRevokeAccount-DvEPXZKI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRevokeAccount-DvEPXZKI.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n} from '~/helpers/thirdweb'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * @param account - The currently connected account\n * @param attester - The attester address from the seed (publisher or attestationRaw.attester)\n * @returns The account to use for revoke\n * @throws If `attester` equals any address from {@link getGetAdditionalSyncAddresses}\n * (e.g. `modularAccountModuleContract` when `initPublish` registers it). Those addresses\n * cannot revoke via the app wallet’s EAS `multiRevoke` path today.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n if (additional?.some((a: string | undefined) => a?.toLowerCase() === attesterLower)) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower) {\n const deployed = await isSmartWalletDeployed(derivedManagedAccount)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: optimismSepolia,\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through to return account; revoke attempt may fail with AccessDenied\n }\n\n return account\n}\n"],"mappings":";;;;AAuBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B;CACvD,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAAI,GAAY,MAAM,MAA0B,GAAG,YAAY,MAAM,CAAa,GAChF,MAAU,MACR,wEACF;CAEJ;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAEhB,MADmB,EAAsB,CAAqB,GACpD;GACZ,IAAM,IAAuB,EAAwB;GACrD,MAAM,EAAqB,YAAY;IACrC,QAAQ,EAAU;IAClB,OAAO;GACT,CAAC;GACD,IAAM,IAAiB,EAAqB,WAAW;GACvD,IAAI,GACF,OAAO;EAEX;CAEJ,QAAQ,CAER;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h as e, o as t, p as n, u as r } from "./ensureManagedAccountEasConfigured-CZGguM7q.js";
|
|
2
|
+
import { getGetAdditionalSyncAddresses as i } from "@seedprotocol/sdk";
|
|
3
|
+
import { optimismSepolia as a } from "thirdweb/chains";
|
|
4
|
+
//#region src/helpers/resolveRevokeAccount.ts
|
|
5
|
+
async function o(o) {
|
|
6
|
+
let { account: s, attester: c } = o;
|
|
7
|
+
if (!c || s.address.toLowerCase() === c.toLowerCase()) return s;
|
|
8
|
+
let l = i();
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = await l(), t = c.toLowerCase();
|
|
11
|
+
if (e?.some((e) => e?.toLowerCase() === t)) throw Error("Revocation not supported for items published via the modular executor.");
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
let i = await n(s.address);
|
|
15
|
+
if (c.toLowerCase() === i.toLowerCase() && await e(i)) {
|
|
16
|
+
let e = r();
|
|
17
|
+
await e.autoConnect({
|
|
18
|
+
client: t(),
|
|
19
|
+
chain: a
|
|
20
|
+
});
|
|
21
|
+
let n = e.getAccount();
|
|
22
|
+
if (n) return n;
|
|
23
|
+
}
|
|
24
|
+
} catch {}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as resolveRevokeAccount };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=resolveRevokeAccount-rOof3dUA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRevokeAccount-rOof3dUA.js","names":[],"sources":["../src/helpers/resolveRevokeAccount.ts"],"sourcesContent":["import type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport { getGetAdditionalSyncAddresses } from '@seedprotocol/sdk'\nimport {\n getClient,\n getSmartWalletAddressForAdmin,\n isSmartWalletDeployed,\n getManagedAccountWallet,\n} from '~/helpers/thirdweb'\n\n/**\n * Resolves which account to use for revoking attestations.\n * When the attester is the user's ManagedAccount (EIP4337) but they're connected\n * with a different wallet (e.g. EOA or modular account), attempts to use the\n * ManagedAccount wallet for the revoke.\n *\n * @param account - The currently connected account\n * @param attester - The attester address from the seed (publisher or attestationRaw.attester)\n * @returns The account to use for revoke\n * @throws If `attester` equals any address from {@link getGetAdditionalSyncAddresses}\n * (e.g. `modularAccountModuleContract` when `initPublish` registers it). Those addresses\n * cannot revoke via the app wallet’s EAS `multiRevoke` path today.\n */\nexport async function resolveRevokeAccount(params: {\n account: Account\n attester: string | null\n}): Promise<Account> {\n const { account, attester } = params\n\n if (!attester || account.address.toLowerCase() === attester.toLowerCase()) {\n return account\n }\n\n const additionalGetter = getGetAdditionalSyncAddresses()\n if (additionalGetter) {\n const additional = await additionalGetter()\n const attesterLower = attester.toLowerCase()\n if (additional?.some((a: string | undefined) => a?.toLowerCase() === attesterLower)) {\n throw new Error(\n 'Revocation not supported for items published via the modular executor.',\n )\n }\n }\n\n try {\n const derivedManagedAccount = await getSmartWalletAddressForAdmin(account.address)\n const attesterLower = attester.toLowerCase()\n const derivedLower = derivedManagedAccount.toLowerCase()\n\n if (attesterLower === derivedLower) {\n const deployed = await isSmartWalletDeployed(derivedManagedAccount)\n if (deployed) {\n const managedAccountWallet = getManagedAccountWallet()\n await managedAccountWallet.autoConnect({\n client: getClient(),\n chain: optimismSepolia,\n })\n const managedAccount = managedAccountWallet.getAccount()\n if (managedAccount) {\n return managedAccount\n }\n }\n }\n } catch {\n // Fall through to return account; revoke attempt may fail with AccessDenied\n }\n\n return account\n}\n"],"mappings":";;;;AAuBA,eAAsB,EAAqB,GAGtB;CACnB,IAAM,EAAE,YAAS,gBAAa;CAE9B,IAAI,CAAC,KAAY,EAAQ,QAAQ,YAAY,MAAM,EAAS,YAAY,GACtE,OAAO;CAGT,IAAM,IAAmB,EAA8B;CACvD,IAAI,GAAkB;EACpB,IAAM,IAAa,MAAM,EAAiB,GACpC,IAAgB,EAAS,YAAY;EAC3C,IAAI,GAAY,MAAM,MAA0B,GAAG,YAAY,MAAM,CAAa,GAChF,MAAU,MACR,wEACF;CAEJ;CAEA,IAAI;EACF,IAAM,IAAwB,MAAM,EAA8B,EAAQ,OAAO;EAIjF,IAHsB,EAAS,YAG3B,MAFiB,EAAsB,YAErB,KAEhB,MADmB,EAAsB,CAAqB,GACpD;GACZ,IAAM,IAAuB,EAAwB;GACrD,MAAM,EAAqB,YAAY;IACrC,QAAQ,EAAU;IAClB,OAAO;GACT,CAAC;GACD,IAAM,IAAiB,EAAqB,WAAW;GACvD,IAAI,GACF,OAAO;EAEX;CAEJ,QAAQ,CAER;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { prepareTransaction as e, sendTransaction as t } from "thirdweb";
|
|
2
|
+
import { optimismSepolia as n } from "thirdweb/chains";
|
|
3
|
+
import { ethers as r } from "ethers";
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
|
+
var i = Object.defineProperty, a = (e, t) => {
|
|
6
|
+
let n = {};
|
|
7
|
+
for (var r in e) i(n, r, {
|
|
8
|
+
get: e[r],
|
|
9
|
+
enumerable: !0
|
|
10
|
+
});
|
|
11
|
+
return t || i(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, o = /* @__PURE__ */ a({
|
|
13
|
+
asSeedSigner: () => f,
|
|
14
|
+
fromEthersWallet: () => d,
|
|
15
|
+
fromThirdwebAccount: () => u,
|
|
16
|
+
isSeedSigner: () => l
|
|
17
|
+
}), s = Symbol.for("seedprotocol.SeedSigner");
|
|
18
|
+
function c(e) {
|
|
19
|
+
return Object.assign(e, { [s]: !0 });
|
|
20
|
+
}
|
|
21
|
+
function l(e) {
|
|
22
|
+
return !!e && typeof e == "object" && s in e;
|
|
23
|
+
}
|
|
24
|
+
function u(r) {
|
|
25
|
+
return c({
|
|
26
|
+
address: r.address,
|
|
27
|
+
signMessage: async ({ message: e }) => await r.signMessage({ message: e }),
|
|
28
|
+
sendTransaction: async (i) => {
|
|
29
|
+
let { getClient: a } = await import("./config-Q3y4Fab2.js").then((e) => e.D);
|
|
30
|
+
return { transactionHash: (await t({
|
|
31
|
+
account: r,
|
|
32
|
+
transaction: e({
|
|
33
|
+
client: a(),
|
|
34
|
+
chain: n,
|
|
35
|
+
to: i.to,
|
|
36
|
+
data: i.data,
|
|
37
|
+
value: i.value,
|
|
38
|
+
gas: i.gas
|
|
39
|
+
})
|
|
40
|
+
})).transactionHash };
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function d(e) {
|
|
45
|
+
return c({
|
|
46
|
+
address: e.address,
|
|
47
|
+
signMessage: async ({ message: t }) => {
|
|
48
|
+
if (typeof t == "string") return await e.signMessage(t);
|
|
49
|
+
let n = t.raw, i = typeof n == "string" ? r.getBytes(n) : n instanceof Uint8Array ? n : new Uint8Array(n);
|
|
50
|
+
return await e.signMessage(i);
|
|
51
|
+
},
|
|
52
|
+
sendTransaction: async (t) => ({ transactionHash: (await e.sendTransaction({
|
|
53
|
+
to: t.to,
|
|
54
|
+
data: t.data,
|
|
55
|
+
value: t.value,
|
|
56
|
+
gasLimit: t.gas
|
|
57
|
+
})).hash })
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function f(e) {
|
|
61
|
+
return l(e) ? e : u(e);
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { o as a, l as i, d as n, a as o, u as r, f as t };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=seedSigner-BvK5WjmV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seedSigner-BvK5WjmV.js","names":[],"sources":["../src/helpers/seedSigner.ts"],"sourcesContent":["import { prepareTransaction, sendTransaction } from 'thirdweb'\nimport type { Account } from 'thirdweb/wallets'\nimport { optimismSepolia } from 'thirdweb/chains'\nimport type { Address, Hex, SignableMessage } from 'viem'\nimport { ethers } from 'ethers'\n\n/** Encoded calldata ready for submission (viem path). */\nexport type SeedTxRequest = {\n to: Address\n data: Hex\n value?: bigint\n gas?: bigint\n}\n\n/**\n * Vendor-neutral signer for Arweave DataItems and on-chain sends.\n * Thirdweb Account remains the AA backend via {@link fromThirdwebAccount}.\n */\nexport interface SeedSigner {\n readonly address: Address\n\n /**\n * personal_sign. For Arweave/ANS-104 use `message: { raw: Hex | Uint8Array }`\n * (matches Thirdweb Account). Plain string is UTF-8 prefixed hash.\n */\n signMessage(args: { message: SignableMessage }): Promise<Hex>\n\n /**\n * Submit already-encoded calldata. Thirdweb adapter preserves EIP-4337 / EIP-7702 sponsorship.\n */\n sendTransaction(tx: SeedTxRequest): Promise<{ transactionHash: Hex }>\n}\n\nconst SEED_SIGNER_BRAND = Symbol.for('seedprotocol.SeedSigner')\n\ntype BrandedSeedSigner = SeedSigner & { readonly [SEED_SIGNER_BRAND]: true }\n\nfunction brand(signer: SeedSigner): SeedSigner {\n return Object.assign(signer, { [SEED_SIGNER_BRAND]: true as const }) as BrandedSeedSigner\n}\n\nexport function isSeedSigner(value: unknown): value is SeedSigner {\n return !!value && typeof value === 'object' && SEED_SIGNER_BRAND in value\n}\n\n/**\n * Wrap a Thirdweb Account so AA gas sponsorship still flows through thirdweb `sendTransaction`.\n */\nexport function fromThirdwebAccount(account: Account): SeedSigner {\n return brand({\n address: account.address as Address,\n signMessage: async ({ message }) => {\n const sig = await account.signMessage({ message })\n return sig as Hex\n },\n sendTransaction: async (tx) => {\n // Lazy import avoids circular dependency with helpers/thirdweb.ts\n const { getClient } = await import('./thirdweb')\n const transaction = prepareTransaction({\n client: getClient(),\n chain: optimismSepolia,\n to: tx.to,\n data: tx.data,\n value: tx.value,\n gas: tx.gas,\n })\n const result = await sendTransaction({ account, transaction })\n return { transactionHash: result.transactionHash as Hex }\n },\n })\n}\n\n/**\n * Wrap an ethers Wallet for tests / EOA scripts.\n */\nexport function fromEthersWallet(wallet: ethers.Wallet): SeedSigner {\n return brand({\n address: wallet.address as Address,\n signMessage: async ({ message }) => {\n if (typeof message === 'string') {\n return (await wallet.signMessage(message)) as Hex\n }\n const raw = message.raw\n const bytes =\n typeof raw === 'string'\n ? ethers.getBytes(raw)\n : raw instanceof Uint8Array\n ? raw\n : new Uint8Array(raw)\n return (await wallet.signMessage(bytes)) as Hex\n },\n sendTransaction: async (tx) => {\n const result = await wallet.sendTransaction({\n to: tx.to,\n data: tx.data,\n value: tx.value,\n gasLimit: tx.gas,\n })\n return { transactionHash: result.hash as Hex }\n },\n })\n}\n\n/**\n * Coerce Thirdweb Account or SeedSigner. Thirdweb Accounts are wrapped; branded SeedSigners pass through.\n */\nexport function asSeedSigner(accountOrSigner: Account | SeedSigner): SeedSigner {\n if (isSeedSigner(accountOrSigner)) return accountOrSigner\n return fromThirdwebAccount(accountOrSigner)\n}\n"],"mappings":";;;;;;;;;;;;;;;;IAiCM,IAAoB,OAAO,IAAI,yBAAyB;AAI9D,SAAS,EAAM,GAAgC;CAC7C,OAAO,OAAO,OAAO,GAAQ,GAAG,IAAoB,GAAc,CAAC;AACrE;AAEA,SAAgB,EAAa,GAAqC;CAChE,OAAO,CAAC,CAAC,KAAS,OAAO,KAAU,YAAY,KAAqB;AACtE;AAKA,SAAgB,EAAoB,GAA8B;CAChE,OAAO,EAAM;EACX,SAAS,EAAQ;EACjB,aAAa,OAAO,EAAE,iBAEb,MADW,EAAQ,YAAY,EAAE,WAAQ,CAAC;EAGnD,iBAAiB,OAAO,MAAO;GAE7B,IAAM,EAAE,iBAAc,MAAM,OAAO,wBAAA,MAAA,MAAA,EAAA,CAAA;GAUnC,OAAO,EAAE,kBAAiB,MADL,EAAgB;IAAE;IAAS,aAR5B,EAAmB;KACrC,QAAQ,EAAU;KAClB,OAAO;KACP,IAAI,EAAG;KACP,MAAM,EAAG;KACT,OAAO,EAAG;KACV,KAAK,EAAG;IACV,CACgD;GAAY,CAAC,GAC5B,gBAAuB;EAC1D;CACF,CAAC;AACH;AAKA,SAAgB,EAAiB,GAAmC;CAClE,OAAO,EAAM;EACX,SAAS,EAAO;EAChB,aAAa,OAAO,EAAE,iBAAc;GAClC,IAAI,OAAO,KAAY,UACrB,OAAQ,MAAM,EAAO,YAAY,CAAO;GAE1C,IAAM,IAAM,EAAQ,KACd,IACJ,OAAO,KAAQ,WACX,EAAO,SAAS,CAAG,IACnB,aAAe,aACb,IACA,IAAI,WAAW,CAAG;GAC1B,OAAQ,MAAM,EAAO,YAAY,CAAK;EACxC;EACA,iBAAiB,OAAO,OAOf,EAAE,kBAAiB,MANL,EAAO,gBAAgB;GAC1C,IAAI,EAAG;GACP,MAAM,EAAG;GACT,OAAO,EAAG;GACV,UAAU,EAAG;EACf,CAAC,GACgC,KAAY;CAEjD,CAAC;AACH;AAKA,SAAgB,EAAa,GAAmD;CAE9E,OADI,EAAa,CAAe,IAAU,IACnC,EAAoB,CAAe;AAC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPublish.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/createPublish.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createPublish.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/createPublish.ts"],"names":[],"mappings":"AA0CA,eAAO,MAAM,aAAa,qTAwFxB,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PublishWallet } from '~/helpers/seedSigner';
|
|
2
2
|
export declare const retryAttestations: ({ context, event, }: {
|
|
3
3
|
context: {
|
|
4
4
|
publishProcesses: Map<string, {
|
|
5
5
|
send: (event: {
|
|
6
6
|
type: string;
|
|
7
|
-
account?:
|
|
7
|
+
account?: PublishWallet;
|
|
8
|
+
wallet?: PublishWallet;
|
|
8
9
|
}) => void;
|
|
9
10
|
}>;
|
|
10
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retryAttestations.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/retryAttestations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"retryAttestations.d.ts","sourceRoot":"","sources":["../../../../src/services/publishManager/actions/retryAttestations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAA;AAG7B,eAAO,MAAM,iBAAiB,GAAI,qBAG/B;IACD,OAAO,EAAE;QACP,gBAAgB,EAAE,GAAG,CACnB,MAAM,EACN;YAAE,IAAI,EAAE,CAAC,KAAK,EAAE;gBAAE,IAAI,EAAE,MAAM,CAAC;gBAAC,OAAO,CAAC,EAAE,aAAa,CAAC;gBAAC,MAAM,CAAC,EAAE,aAAa,CAAA;aAAE,KAAK,IAAI,CAAA;SAAE,CAC7F,CAAA;KACF,CAAA;IACD,KAAK,EAAE,OAAO,CAAA;CACf,SAoBA,CAAA"}
|
|
@@ -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;
|
|
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;AA4G/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,mFAiFzB,CAAA"}
|
|
@@ -120,8 +120,8 @@ export declare const PublishManager: {
|
|
|
120
120
|
readonly active: {};
|
|
121
121
|
};
|
|
122
122
|
}>>;
|
|
123
|
-
createPublish: (item: InstanceType<typeof Item>, address: string, account?: import("
|
|
124
|
-
retryAttestations: (seedLocalId: string, account?: import("
|
|
123
|
+
createPublish: (item: InstanceType<typeof Item>, address: string, account?: import("../../helpers/seedSigner").PublishWallet, options?: import("../../config").CreatePublishOptions) => void;
|
|
124
|
+
retryAttestations: (seedLocalId: string, account?: import("../../helpers/seedSigner").PublishWallet) => void;
|
|
125
125
|
stopPublish: (seedLocalId: string) => void;
|
|
126
126
|
query: (seedLocalId: string) => void;
|
|
127
127
|
stopAll: () => 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;AAiB3C,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,WAAW,CAAC,CAAC,CAAA;CACzF;AAeD,eAAO,MAAM,qBAAqB;UAZtB,sBAAsB;sBAAoB,4BAA4B,CAAC,kBAAkB,CAAC;mBAAiB,4BAA4B,CAAC,eAAe,CAAC;;UACxJ,gBAAgB;UAAQ,OAAO,mBAAmB,EAAE,IAAI,CAAC,GAAG,CAAC;aAAW,MAAM;cAAY,OAAO;cAAY,OAAO,cAAc,EAAE,oBAAoB;;UACxJ,kBAAkB;iBAAe,MAAM;sBAAoB,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;;UAC9F,sBAAsB;iBAAe,MAAM;qBAAmB,OAAO;yBAAuB,OAAO;;UACnG,mBAAmB;iBAAe,MAAM;yBAAuB,OAAO;;UACtE,cAAc;iBAAe,MAAM;;UACnC,qBAAqB;iBAAe,MAAM;;UAC1C,oBAAoB;iBAAe,MAAM;cAAY,OAAO;;UAC5D,cAAc;iBAAe,MAAM;;UACnC,OAAO;iBAAe,MAAM;;UAC5B,UAAU;;;;;;;;;;;;;;;;EAiFpB,CAAA;AA4CF,eAAO,MAAM,cAAc;;cAvIf,sBAAsB;0BAAoB,4BAA4B,CAAC,kBAAkB,CAAC;uBAAiB,4BAA4B,CAAC,eAAe,CAAC;;cACxJ,gBAAgB;cAAQ,OAAO,mBAAmB,EAAE,IAAI,CAAC,GAAG,CAAC;iBAAW,MAAM;kBAAY,OAAO;kBAAY,OAAO,cAAc,EAAE,oBAAoB;;cACxJ,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,OAAO;qBAAe,MAAM;;cAC5B,UAAU;;;;;;;;;;;;;;;;;0BAgIZ,YAAY,CAAC,OAAO,IAAI,CAAC,WACtB,MAAM,YACL,OAAO,
|
|
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;AAiB3C,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,WAAW,CAAC,CAAC,CAAA;CACzF;AAeD,eAAO,MAAM,qBAAqB;UAZtB,sBAAsB;sBAAoB,4BAA4B,CAAC,kBAAkB,CAAC;mBAAiB,4BAA4B,CAAC,eAAe,CAAC;;UACxJ,gBAAgB;UAAQ,OAAO,mBAAmB,EAAE,IAAI,CAAC,GAAG,CAAC;aAAW,MAAM;cAAY,OAAO;cAAY,OAAO,cAAc,EAAE,oBAAoB;;UACxJ,kBAAkB;iBAAe,MAAM;sBAAoB,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;;UAC9F,sBAAsB;iBAAe,MAAM;qBAAmB,OAAO;yBAAuB,OAAO;;UACnG,mBAAmB;iBAAe,MAAM;yBAAuB,OAAO;;UACtE,cAAc;iBAAe,MAAM;;UACnC,qBAAqB;iBAAe,MAAM;;UAC1C,oBAAoB;iBAAe,MAAM;cAAY,OAAO;;UAC5D,cAAc;iBAAe,MAAM;;UACnC,OAAO;iBAAe,MAAM;;UAC5B,UAAU;;;;;;;;;;;;;;;;EAiFpB,CAAA;AA4CF,eAAO,MAAM,cAAc;;cAvIf,sBAAsB;0BAAoB,4BAA4B,CAAC,kBAAkB,CAAC;uBAAiB,4BAA4B,CAAC,eAAe,CAAC;;cACxJ,gBAAgB;cAAQ,OAAO,mBAAmB,EAAE,IAAI,CAAC,GAAG,CAAC;iBAAW,MAAM;kBAAY,OAAO;kBAAY,OAAO,cAAc,EAAE,oBAAoB;;cACxJ,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,OAAO;qBAAe,MAAM;;cAC5B,UAAU;;;;;;;;;;;;;;;;;0BAgIZ,YAAY,CAAC,OAAO,IAAI,CAAC,WACtB,MAAM,YACL,OAAO,0BAA0B,EAAE,aAAa,YAChD,OAAO,cAAc,EAAE,oBAAoB;qCAEtB,MAAM,YAAY,OAAO,0BAA0B,EAAE,aAAa;+BAExE,MAAM;yBACZ,MAAM;;8BAED,MAAM;+BACL,MAAM,kBAAkB,YAAY,CAAC,OAAO,cAAc,CAAC;mCAEvD,MAAM,qBAAqB,OAAO,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;sCAE3D,MAAM;CACzC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checking.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/checking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAE3D,KAAK,iBAAiB,CAAC,CAAC,IAAI;IAAE,OAAO,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"checking.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/checking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAE3D,KAAK,iBAAiB,CAAC,CAAC,IAAI;IAAE,OAAO,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;AAiBlD,eAAO,MAAM,QAAQ,yGA8FpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createArweaveDataItems.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/createArweaveDataItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAGrG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"createArweaveDataItems.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/createArweaveDataItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAGrG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAiBnD,MAAM,MAAM,4BAA4B,GAAG;IACzC,mBAAmB,EAAE,sBAAsB,EAAE,CAAA;IAC7C,cAAc,EAAE,aAAa,EAAE,CAAA;IAC/B,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,EAAE,CAAA;CAC5B,CAAA;AAID,KAAK,OAAO,GAAG;IACb,aAAa,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAA;IACrD,cAAc,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAA;CACxD,CAAA;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,cAAc,EAAE,iBAAiB,EAAE,EACnC,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC,EACvC,cAAc,EAAE,OAAO,CAAC,gBAAgB,CAAC,GACxC,OAAO,CAAC,4BAA4B,CAAC,CA2EvC;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB;aA/FK,qBAAqB;WAAS,OAAO;gCA2H5E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAttestations.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/createAttestations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"createAttestations.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/createAttestations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAqD3D,KAAK,mBAAmB,GAAG;IACzB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,wBAAwB,EAAE,MAAM,CAAA;CACjC,CAAA;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,mBAAmB,GAAG,cAAc,CAoBhF;AAqHD,eAAO,MAAM,kBAAkB;gBACuC,OAAO;;aA7JrC,qBAAqB;WAAS,OAAO;gCAoa5E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAttestationsDirectToEas.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/createAttestationsDirectToEas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"createAttestationsDirectToEas.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/createAttestationsDirectToEas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAgH3D,eAAO,MAAM,6BAA6B;gBACmC,OAAO;;aA1B5C,qBAAqB;WAAS,OAAO;gCAqS5E,CAAA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare function toHex32Normalized(v: string | undefined): string;
|
|
2
2
|
/**
|
|
3
3
|
* Extract the seed attestation UID by matching the request's seedSchemaUid to a CreatedAttestation
|
|
4
|
-
* event.
|
|
5
|
-
* CreatedAttestation(schemaUid, attestationUid) for each attestation, so we find the event whose
|
|
6
|
-
* schemaUid matches and use its attestationUid. No index guessing.
|
|
4
|
+
* event.
|
|
7
5
|
*/
|
|
8
6
|
export declare function seedUidFromCreatedAttestationEvents(receipt: {
|
|
9
7
|
logs?: Array<{
|
|
@@ -18,7 +16,6 @@ export type SeedPublishedPair = {
|
|
|
18
16
|
};
|
|
19
17
|
/**
|
|
20
18
|
* Seed + Version UIDs from SeedPublished (executor: typed args; extension: bytes32[] layout).
|
|
21
|
-
* Extension layout: seed at index listOfAttestationsCount, version at listOfAttestationsCount + 1 when present.
|
|
22
19
|
*/
|
|
23
20
|
export declare function uidsFromSeedPublished(receipt: {
|
|
24
21
|
logs?: Array<{
|
|
@@ -27,12 +24,6 @@ export declare function uidsFromSeedPublished(receipt: {
|
|
|
27
24
|
topics?: unknown[];
|
|
28
25
|
}>;
|
|
29
26
|
}, contractAddress: string, listOfAttestationsCount: number, useModularExecutor: boolean): SeedPublishedPair;
|
|
30
|
-
/**
|
|
31
|
-
* Fallback: extract seed UID from SeedPublished when CreatedAttestation events are not
|
|
32
|
-
* available or don't match.
|
|
33
|
-
* Extension: SeedPublished(bytes returnedDataFromEAS) - decode bytes as bytes32[], use index.
|
|
34
|
-
* Executor: SeedPublished(bytes32 seedUid, bytes32 versionUid) - read args.seedUid directly.
|
|
35
|
-
*/
|
|
36
27
|
export declare function seedUidFromSeedPublished(receipt: {
|
|
37
28
|
logs?: Array<{
|
|
38
29
|
address?: string;
|
|
@@ -40,9 +31,6 @@ export declare function seedUidFromSeedPublished(receipt: {
|
|
|
40
31
|
topics?: unknown[];
|
|
41
32
|
}>;
|
|
42
33
|
}, contractAddress: string, listOfAttestationsCount: number, useModularExecutor: boolean): string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Version attestation UID from CreatedAttestation logs (schema matches request versionSchemaUid).
|
|
45
|
-
*/
|
|
46
34
|
export declare function versionUidFromCreatedAttestationEvents(receipt: {
|
|
47
35
|
logs?: Array<{
|
|
48
36
|
address?: string;
|
|
@@ -54,10 +42,6 @@ export type CreatedAttestationPair = {
|
|
|
54
42
|
schemaUid: string;
|
|
55
43
|
attestationUid: string;
|
|
56
44
|
};
|
|
57
|
-
/**
|
|
58
|
-
* All `CreatedAttestation` (schemaUid, attestationUid) pairs from the receipt, in parse order.
|
|
59
|
-
* Includes seed, version, and property attestations emitted by the Seed Protocol publish flow.
|
|
60
|
-
*/
|
|
61
45
|
export declare function listCreatedAttestationPairsFromReceipt(receipt: {
|
|
62
46
|
logs?: Array<{
|
|
63
47
|
address?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seedUidHelpers.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/seedUidHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seedUidHelpers.d.ts","sourceRoot":"","sources":["../../../../src/services/publish/actors/seedUidHelpers.ts"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK/D;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CACjD,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAA;CAAE,EAClF,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,kBAAkB,EAAE,OAAO,GAC1B,MAAM,GAAG,SAAS,CAyBpB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAA;CAAE,EAClF,eAAe,EAAE,MAAM,EACvB,uBAAuB,EAAE,MAAM,EAC/B,kBAAkB,EAAE,OAAO,GAC1B,iBAAiB,CAoDnB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAA;CAAE,EAClF,eAAe,EAAE,MAAM,EACvB,uBAAuB,EAAE,MAAM,EAC/B,kBAAkB,EAAE,OAAO,GAC1B,MAAM,GAAG,SAAS,CAOpB;AAED,wBAAgB,sCAAsC,CACpD,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAA;CAAE,EAClF,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,kBAAkB,EAAE,OAAO,GAC1B,MAAM,GAAG,SAAS,CAyBpB;AAED,MAAM,MAAM,sBAAsB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAA;AAElF,wBAAgB,sCAAsC,CACpD,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAA;CAAE,EAClF,kBAAkB,EAAE,OAAO,GAC1B,sBAAsB,EAAE,CA0B1B"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { IItem } from '@seedprotocol/sdk';
|
|
2
|
-
import type
|
|
3
|
-
import type { Chain } from 'thirdweb/chains';
|
|
4
|
-
import type { Account } from 'thirdweb/wallets';
|
|
2
|
+
import { type PublishWallet, type SeedTxSender } from '~/helpers/seedSigner';
|
|
5
3
|
/**
|
|
6
4
|
* Ensures EAS schemas exist for each item property and each model used by the item.
|
|
7
5
|
* If a schema is not found on-chain or in the indexer, registers it via SchemaRegistry
|
|
8
6
|
* and creates a name attestation (Schema #1) so EASSCAN displays it.
|
|
9
|
-
* Populates the SDK's schema map so getPublishPayload can resolve schema UIDs.
|
|
10
7
|
*/
|
|
11
|
-
export declare function ensureEasSchemasForItem(item: IItem<any>, account:
|
|
8
|
+
export declare function ensureEasSchemasForItem(item: IItem<any>, account: PublishWallet | SeedTxSender): Promise<void>;
|
|
12
9
|
//# sourceMappingURL=ensureEasSchemas.d.ts.map
|