@seedprotocol/publish 0.6.7 → 0.6.9
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 +8 -0
- package/README.md +64 -24
- package/dist/chainConfig-3sSqEVQh.js +1433 -0
- package/dist/chainConfig-3sSqEVQh.js.map +1 -0
- package/dist/chainConfig-3wlYarAG.js +1433 -0
- package/dist/chainConfig-3wlYarAG.js.map +1 -0
- package/dist/chainConfig-BRcsMopd.js +1442 -0
- package/dist/chainConfig-BRcsMopd.js.map +1 -0
- package/dist/chainConfig-BYm5OXpk.js +1433 -0
- package/dist/chainConfig-BYm5OXpk.js.map +1 -0
- package/dist/chainConfig-CA1Hrrjg.js +1387 -0
- package/dist/chainConfig-CA1Hrrjg.js.map +1 -0
- package/dist/chainConfig-CYy0XJ0M.js +1283 -0
- package/dist/chainConfig-CYy0XJ0M.js.map +1 -0
- package/dist/chainConfig-CfVGYAsY.js +1311 -0
- package/dist/chainConfig-CfVGYAsY.js.map +1 -0
- package/dist/chainConfig-DDA4YmAB.js +1424 -0
- package/dist/chainConfig-DDA4YmAB.js.map +1 -0
- package/dist/config-CPBd5C_b.js +1201 -0
- package/dist/config-CPBd5C_b.js.map +1 -0
- package/dist/config-DkIapO94.js +955 -0
- package/dist/config-DkIapO94.js.map +1 -0
- package/dist/config-EQZZNH9H.js +955 -0
- package/dist/config-EQZZNH9H.js.map +1 -0
- package/dist/config.d.ts +85 -13
- package/dist/config.d.ts.map +1 -1
- package/dist/ensureAutomationSessionKey-BMHLKfjj.js +85 -0
- package/dist/ensureAutomationSessionKey-BMHLKfjj.js.map +1 -0
- package/dist/ensureAutomationSessionKey-BZ9_3FMW.js +86 -0
- package/dist/ensureAutomationSessionKey-BZ9_3FMW.js.map +1 -0
- package/dist/ensureAutomationSessionKey-Bw74ZSGI.js +85 -0
- package/dist/ensureAutomationSessionKey-Bw74ZSGI.js.map +1 -0
- package/dist/ensureAutomationSessionKey-C8D7BFjU.js +85 -0
- package/dist/ensureAutomationSessionKey-C8D7BFjU.js.map +1 -0
- package/dist/ensureAutomationSessionKey-CClLVX2w.js +85 -0
- package/dist/ensureAutomationSessionKey-CClLVX2w.js.map +1 -0
- package/dist/ensureAutomationSessionKey-CNNN1jBQ.js +85 -0
- package/dist/ensureAutomationSessionKey-CNNN1jBQ.js.map +1 -0
- package/dist/ensureAutomationSessionKey-CeUbjcCl.js +85 -0
- package/dist/ensureAutomationSessionKey-CeUbjcCl.js.map +1 -0
- package/dist/ensureAutomationSessionKey-D8Gki6U6.js +85 -0
- package/dist/ensureAutomationSessionKey-D8Gki6U6.js.map +1 -0
- package/dist/ensureAutomationSessionKey-DEH7nwUc.js +86 -0
- package/dist/ensureAutomationSessionKey-DEH7nwUc.js.map +1 -0
- package/dist/ensureAutomationSessionKey-Dhvbii2M.js +86 -0
- package/dist/ensureAutomationSessionKey-Dhvbii2M.js.map +1 -0
- package/dist/ensureAutomationSessionKey-Dyfk8qVp.js +85 -0
- package/dist/ensureAutomationSessionKey-Dyfk8qVp.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-5HJDqJJM.js +24 -0
- package/dist/ensureModularPublishBootstrap-5HJDqJJM.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-BW8jKN_A.js +24 -0
- package/dist/ensureModularPublishBootstrap-BW8jKN_A.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-BhYNmLzT.js +24 -0
- package/dist/ensureModularPublishBootstrap-BhYNmLzT.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js +24 -0
- package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-Btih5xbB.js +129 -0
- package/dist/ensureModularPublishBootstrap-Btih5xbB.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-CI4U08Gc.js +129 -0
- package/dist/ensureModularPublishBootstrap-CI4U08Gc.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-CcU-hXll.js +128 -0
- package/dist/ensureModularPublishBootstrap-CcU-hXll.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-CdrykHAi.js +24 -0
- package/dist/ensureModularPublishBootstrap-CdrykHAi.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-DGBKVGg5.js +24 -0
- package/dist/ensureModularPublishBootstrap-DGBKVGg5.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-DaREOqSc.js +129 -0
- package/dist/ensureModularPublishBootstrap-DaREOqSc.js.map +1 -0
- package/dist/ensureModularPublishBootstrap-DxIG-LUP.js +24 -0
- package/dist/ensureModularPublishBootstrap-DxIG-LUP.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-BSYzckyS.js +49 -0
- package/dist/ensureSmartWalletThenPublish-BSYzckyS.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js +49 -0
- package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js +48 -0
- package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-Bm58tc-b.js +48 -0
- package/dist/ensureSmartWalletThenPublish-Bm58tc-b.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-CE7acryB.js +49 -0
- package/dist/ensureSmartWalletThenPublish-CE7acryB.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-D5GSZRyZ.js +48 -0
- package/dist/ensureSmartWalletThenPublish-D5GSZRyZ.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-DAomriGc.js +48 -0
- package/dist/ensureSmartWalletThenPublish-DAomriGc.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js +48 -0
- package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js +48 -0
- package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js +48 -0
- package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js.map +1 -0
- package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js +48 -0
- package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js.map +1 -0
- package/dist/errors-Du3LNbJN.js.map +1 -1
- package/dist/errors.d.ts +2 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/helpers/abi/executor.d.ts +125 -0
- package/dist/helpers/abi/executor.d.ts.map +1 -1
- package/dist/helpers/abi/factory.d.ts +1 -1
- package/dist/helpers/abi/factory.d.ts.map +1 -1
- package/dist/helpers/abi/publisher.d.ts +18 -74
- package/dist/helpers/abi/publisher.d.ts.map +1 -1
- package/dist/helpers/abi/seedErrors.d.ts +141 -0
- package/dist/helpers/abi/seedErrors.d.ts.map +1 -0
- package/dist/helpers/abi/seedExecutorRouter.d.ts +60 -0
- package/dist/helpers/abi/seedExecutorRouter.d.ts.map +1 -0
- package/dist/helpers/adapters/permissionlessTxSender.d.ts +26 -0
- package/dist/helpers/adapters/permissionlessTxSender.d.ts.map +1 -1
- package/dist/helpers/adapters/thirdwebAccount.d.ts +10 -2
- package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
- package/dist/helpers/approvedTargetsForAutomationPublish.d.ts +1 -1
- package/dist/helpers/blockchain.d.ts +4 -0
- package/dist/helpers/blockchain.d.ts.map +1 -1
- package/dist/helpers/chainClient.d.ts.map +1 -1
- package/dist/helpers/chainConfig.d.ts +2 -0
- package/dist/helpers/chainConfig.d.ts.map +1 -1
- package/dist/helpers/constants.d.ts +14 -3
- package/dist/helpers/constants.d.ts.map +1 -1
- package/dist/helpers/contracts/index.d.ts +27 -14
- package/dist/helpers/contracts/index.d.ts.map +1 -1
- package/dist/helpers/defaultApprovedTargetsForModularPublish.d.ts +12 -2
- package/dist/helpers/defaultApprovedTargetsForModularPublish.d.ts.map +1 -1
- package/dist/helpers/describeRevert.d.ts +33 -0
- package/dist/helpers/describeRevert.d.ts.map +1 -0
- package/dist/helpers/easDirect.d.ts +3 -8
- package/dist/helpers/easDirect.d.ts.map +1 -1
- package/dist/helpers/enrollPublishAutomation.d.ts +6 -2
- package/dist/helpers/enrollPublishAutomation.d.ts.map +1 -1
- package/dist/helpers/ensureAutomationSessionKey.d.ts.map +1 -1
- package/dist/helpers/ensureEip7702ModularAccountReady.d.ts +1 -1
- package/dist/helpers/ensureEip7702ModularAccountReady.d.ts.map +1 -1
- package/dist/helpers/ensureExecutorModule.d.ts +6 -3
- package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
- package/dist/helpers/ensureManagedAccountEasConfigured.d.ts +8 -3
- package/dist/helpers/ensureManagedAccountEasConfigured.d.ts.map +1 -1
- package/dist/helpers/ensureManagedAccountReady.d.ts.map +1 -1
- package/dist/helpers/ensureManagedSignerSessionKey.d.ts +5 -0
- package/dist/helpers/ensureManagedSignerSessionKey.d.ts.map +1 -1
- package/dist/helpers/ensureModularPublishBootstrap.d.ts +6 -2
- package/dist/helpers/ensureModularPublishBootstrap.d.ts.map +1 -1
- package/dist/helpers/ensureSmartWalletThenPublish.d.ts.map +1 -1
- package/dist/helpers/executorModuleReadiness.d.ts +28 -0
- package/dist/helpers/executorModuleReadiness.d.ts.map +1 -0
- package/dist/helpers/managedAccountAdmin.d.ts +12 -0
- package/dist/helpers/managedAccountAdmin.d.ts.map +1 -0
- package/dist/helpers/publishThirdwebClient.d.ts +10 -0
- package/dist/helpers/publishThirdwebClient.d.ts.map +1 -0
- package/dist/helpers/retryNonceTooLow.d.ts +12 -0
- package/dist/helpers/retryNonceTooLow.d.ts.map +1 -0
- package/dist/helpers/seedSigner.d.ts.map +1 -1
- package/dist/helpers/seedTwin.d.ts +47 -0
- package/dist/helpers/seedTwin.d.ts.map +1 -0
- package/dist/helpers/thirdweb.d.ts +21 -6
- package/dist/helpers/thirdweb.d.ts.map +1 -1
- package/dist/helpers/thirdwebChain.d.ts +21 -0
- package/dist/helpers/thirdwebChain.d.ts.map +1 -0
- package/dist/helpers/verifyPublishChain.d.ts +21 -0
- package/dist/helpers/verifyPublishChain.d.ts.map +1 -0
- package/dist/hooks/useItemPublishStatus.d.ts +2 -0
- package/dist/hooks/useItemPublishStatus.d.ts.map +1 -1
- package/dist/index.d.ts +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +463 -408
- package/dist/index.js.map +1 -1
- package/dist/managedAccountAdmin-B64V1rlU.js +29 -0
- package/dist/managedAccountAdmin-B64V1rlU.js.map +1 -0
- package/dist/managedAccountAdmin-BVLGWpEb.js +29 -0
- package/dist/managedAccountAdmin-BVLGWpEb.js.map +1 -0
- package/dist/managedAccountAdmin-Bje6X8Ds.js +29 -0
- package/dist/managedAccountAdmin-Bje6X8Ds.js.map +1 -0
- package/dist/managedAccountAdmin-C84-IlQ9.js +29 -0
- package/dist/managedAccountAdmin-C84-IlQ9.js.map +1 -0
- package/dist/managedAccountAdmin-DJMw6UH6.js +29 -0
- package/dist/managedAccountAdmin-DJMw6UH6.js.map +1 -0
- package/dist/managedAccountAdmin-DhCRBoPX.js +29 -0
- package/dist/managedAccountAdmin-DhCRBoPX.js.map +1 -0
- package/dist/managedAccountAdmin-NXD66lP5.js +29 -0
- package/dist/managedAccountAdmin-NXD66lP5.js.map +1 -0
- package/dist/publishAuthorization-B0G1em4a.js +3695 -0
- package/dist/publishAuthorization-B0G1em4a.js.map +1 -0
- package/dist/publishAuthorization-B1BVVfp0.js +3604 -0
- package/dist/publishAuthorization-B1BVVfp0.js.map +1 -0
- package/dist/publishAuthorization-BEqRnP2h.js +3925 -0
- package/dist/publishAuthorization-BEqRnP2h.js.map +1 -0
- package/dist/publishAuthorization-Bltn3y_K.js +3599 -0
- package/dist/publishAuthorization-Bltn3y_K.js.map +1 -0
- package/dist/publishAuthorization-By2Tt9kW.js +3912 -0
- package/dist/publishAuthorization-By2Tt9kW.js.map +1 -0
- package/dist/publishAuthorization-CxBkijU6.js +3925 -0
- package/dist/publishAuthorization-CxBkijU6.js.map +1 -0
- package/dist/publishAuthorization-CxWY7lAQ.js +3706 -0
- package/dist/publishAuthorization-CxWY7lAQ.js.map +1 -0
- package/dist/publishAuthorization-DEriY_jm.js +3687 -0
- package/dist/publishAuthorization-DEriY_jm.js.map +1 -0
- package/dist/publishAuthorization-DfAQs1sN.js +3707 -0
- package/dist/publishAuthorization-DfAQs1sN.js.map +1 -0
- package/dist/publishAuthorization-DjVrnMC0.js +3925 -0
- package/dist/publishAuthorization-DjVrnMC0.js.map +1 -0
- package/dist/publishAuthorization-DqhhCAhd.js +3652 -0
- package/dist/publishAuthorization-DqhhCAhd.js.map +1 -0
- package/dist/publishThirdwebClient-BdgkcqM7.js +18 -0
- package/dist/publishThirdwebClient-BdgkcqM7.js.map +1 -0
- package/dist/publishThirdwebClient-BkmDN480.js +18 -0
- package/dist/publishThirdwebClient-BkmDN480.js.map +1 -0
- package/dist/publishThirdwebClient-BnDhP3N-.js +18 -0
- package/dist/publishThirdwebClient-BnDhP3N-.js.map +1 -0
- package/dist/publishThirdwebClient-CBD9sKJR.js +18 -0
- package/dist/publishThirdwebClient-CBD9sKJR.js.map +1 -0
- package/dist/publishThirdwebClient-CQ29pzG2.js +18 -0
- package/dist/publishThirdwebClient-CQ29pzG2.js.map +1 -0
- package/dist/publishThirdwebClient-CZIVmr9Z.js +18 -0
- package/dist/publishThirdwebClient-CZIVmr9Z.js.map +1 -0
- package/dist/publishThirdwebClient-Ce7iBIsj.js +18 -0
- package/dist/publishThirdwebClient-Ce7iBIsj.js.map +1 -0
- package/dist/publishThirdwebClient-DroRrOFQ.js +18 -0
- package/dist/publishThirdwebClient-DroRrOFQ.js.map +1 -0
- package/dist/publishThirdwebClient-DzXFjQ7L.js +18 -0
- package/dist/publishThirdwebClient-DzXFjQ7L.js.map +1 -0
- package/dist/publishThirdwebClient-Dzb2vcEs.js +18 -0
- package/dist/publishThirdwebClient-Dzb2vcEs.js.map +1 -0
- package/dist/publishThirdwebClient-i8P7fivi.js +18 -0
- package/dist/publishThirdwebClient-i8P7fivi.js.map +1 -0
- package/dist/react/ConnectButton.d.ts.map +1 -1
- package/dist/resolveRevokeAccount-B5iXpuRT.js +38 -0
- package/dist/resolveRevokeAccount-B5iXpuRT.js.map +1 -0
- package/dist/resolveRevokeAccount-B7ImSb4Y.js +38 -0
- package/dist/resolveRevokeAccount-B7ImSb4Y.js.map +1 -0
- package/dist/resolveRevokeAccount-BM1j2l5Q.js +38 -0
- package/dist/resolveRevokeAccount-BM1j2l5Q.js.map +1 -0
- package/dist/resolveRevokeAccount-BtVG0xxc.js +38 -0
- package/dist/resolveRevokeAccount-BtVG0xxc.js.map +1 -0
- package/dist/resolveRevokeAccount-CJZZdBcQ.js +39 -0
- package/dist/resolveRevokeAccount-CJZZdBcQ.js.map +1 -0
- package/dist/resolveRevokeAccount-CaIMuCee.js +39 -0
- package/dist/resolveRevokeAccount-CaIMuCee.js.map +1 -0
- package/dist/resolveRevokeAccount-Cg4TQgnd.js +38 -0
- package/dist/resolveRevokeAccount-Cg4TQgnd.js.map +1 -0
- package/dist/resolveRevokeAccount-DHnxtEIj.js +39 -0
- package/dist/resolveRevokeAccount-DHnxtEIj.js.map +1 -0
- package/dist/resolveRevokeAccount-DJKfLlyK.js +38 -0
- package/dist/resolveRevokeAccount-DJKfLlyK.js.map +1 -0
- package/dist/resolveRevokeAccount-S-2WXkNh.js +38 -0
- package/dist/resolveRevokeAccount-S-2WXkNh.js.map +1 -0
- package/dist/resolveRevokeAccount-mzR11KJ4.js +38 -0
- package/dist/resolveRevokeAccount-mzR11KJ4.js.map +1 -0
- package/dist/services/publish/actors/checking.d.ts.map +1 -1
- package/dist/services/publish/actors/createAttestations.d.ts.map +1 -1
- package/dist/services/publish/helpers/ensureEasSchemas.d.ts +12 -1
- package/dist/services/publish/helpers/ensureEasSchemas.d.ts.map +1 -1
- package/dist/services/publish/helpers/getPublishUploadData.d.ts.map +1 -1
- package/dist/services/publishManager/actions/createPublish.d.ts.map +1 -1
- package/dist/services/publishManager/actions/drainPendingCreates.d.ts +3 -0
- package/dist/services/publishManager/actions/drainPendingCreates.d.ts.map +1 -0
- package/dist/services/publishManager/actions/publishDone.d.ts.map +1 -1
- package/dist/services/publishManager/actions/queueCreatePublish.d.ts +2 -0
- package/dist/services/publishManager/actions/queueCreatePublish.d.ts.map +1 -0
- package/dist/services/publishManager/actors/restoreFromDb.d.ts.map +1 -1
- package/dist/services/publishManager/actors/savePublish.d.ts +11 -0
- package/dist/services/publishManager/actors/savePublish.d.ts.map +1 -1
- package/dist/services/publishManager/createPublishResult.d.ts +6 -0
- package/dist/services/publishManager/createPublishResult.d.ts.map +1 -0
- package/dist/services/publishManager/index.d.ts +61 -1
- package/dist/services/publishManager/index.d.ts.map +1 -1
- package/dist/services/revoke/revokeAttestations.d.ts +3 -2
- package/dist/services/revoke/revokeAttestations.d.ts.map +1 -1
- package/dist/thirdweb.d.ts +1 -0
- package/dist/thirdweb.d.ts.map +1 -1
- package/dist/thirdweb.js +204 -128
- package/dist/thirdweb.js.map +1 -1
- package/dist/worker-2dUZSapK.js +69 -0
- package/dist/worker-2dUZSapK.js.map +1 -0
- package/dist/worker-B8gN5WTx.js +69 -0
- package/dist/worker-B8gN5WTx.js.map +1 -0
- package/dist/worker-BgErCNTb.js +69 -0
- package/dist/worker-BgErCNTb.js.map +1 -0
- package/dist/worker-C07rPV2G.js +69 -0
- package/dist/worker-C07rPV2G.js.map +1 -0
- package/dist/worker-C9Za_dlQ.js +69 -0
- package/dist/worker-C9Za_dlQ.js.map +1 -0
- package/dist/worker-CEgulQnm.js +69 -0
- package/dist/worker-CEgulQnm.js.map +1 -0
- package/dist/worker-C_TL94He.js +69 -0
- package/dist/worker-C_TL94He.js.map +1 -0
- package/dist/worker-CbtzcKG6.js +69 -0
- package/dist/worker-CbtzcKG6.js.map +1 -0
- package/dist/worker-DHUm-TeQ.js +69 -0
- package/dist/worker-DHUm-TeQ.js.map +1 -0
- package/dist/worker-DypHzXgH.js +69 -0
- package/dist/worker-DypHzXgH.js.map +1 -0
- package/dist/worker-ZL4Wg19t.js +69 -0
- package/dist/worker-ZL4Wg19t.js.map +1 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-Du3LNbJN.js","names":[],"sources":["../src/errors.ts"],"sourcesContent":["export class AttestationVerificationError extends Error {\n constructor(\n message: string,\n public readonly seedLocalId: string,\n public readonly expectedSchemas: string[],\n public readonly foundSchemas: string[],\n public readonly code: 'METADATA_PROPERTIES_MISSING' = 'METADATA_PROPERTIES_MISSING',\n ) {\n super(message)\n this.name = 'AttestationVerificationError'\n }\n}\n\nexport type ManagedAccountPublishErrorCode =\n | 'MANAGED_ACCOUNT_NOT_DEPLOYED'\n | 'MANAGED_ACCOUNT_UNAVAILABLE'\n | 'EXECUTOR_MODULE_NOT_INSTALLED'\n | 'MANAGED_ACCOUNT_SET_EAS_FAILED'\n | 'MODULAR_SIGNER_ACTIVATION_FAILED'\n\n/**\n * Best-effort string for RPC / thirdweb / viem failures that are not plain `Error`\n * (so logs and UIs can show the real revert or RPC reason).\n */\nexport function stringifyUnderlyingCause(u: unknown, maxLen = 700): string {\n if (u == null) return ''\n if (u instanceof Error) {\n const nested = u.cause instanceof Error ? ` | cause: ${u.cause.message}` : ''\n return (u.message + nested).slice(0, maxLen)\n }\n if (typeof u === 'object') {\n const o = u as Record<string, unknown>\n const parts: string[] = []\n if (typeof o.message === 'string') parts.push(o.message)\n if (typeof o.shortMessage === 'string') parts.push(o.shortMessage)\n if (typeof o.details === 'string') parts.push(o.details)\n if (typeof o.reason === 'string') parts.push(o.reason)\n if (parts.length) return parts.join(' | ').slice(0, maxLen)\n try {\n return JSON.stringify(u).slice(0, maxLen)\n } catch {\n return String(u).slice(0, maxLen)\n }\n }\n return String(u).slice(0, maxLen)\n}\n\n/**\n * Thrown or returned when the managed publishing account (
|
|
1
|
+
{"version":3,"file":"errors-Du3LNbJN.js","names":[],"sources":["../src/errors.ts"],"sourcesContent":["export class AttestationVerificationError extends Error {\n constructor(\n message: string,\n public readonly seedLocalId: string,\n public readonly expectedSchemas: string[],\n public readonly foundSchemas: string[],\n public readonly code: 'METADATA_PROPERTIES_MISSING' = 'METADATA_PROPERTIES_MISSING',\n ) {\n super(message)\n this.name = 'AttestationVerificationError'\n }\n}\n\nexport type ManagedAccountPublishErrorCode =\n | 'MANAGED_ACCOUNT_NOT_DEPLOYED'\n | 'MANAGED_ACCOUNT_UNAVAILABLE'\n | 'EXECUTOR_MODULE_NOT_INSTALLED'\n | 'MANAGED_ACCOUNT_SET_EAS_FAILED'\n | 'MODULAR_SIGNER_ACTIVATION_FAILED'\n | 'AUTOMATION_UNSUPPORTED_ACCOUNT'\n | 'AUTOMATION_PREFLIGHT_FAILED'\n | 'PUBLISH_PREFLIGHT_FAILED'\n | 'USEROP_FAILED_NO_REASON'\n | 'USEROP_REVERTED'\n\n/**\n * Best-effort string for RPC / thirdweb / viem failures that are not plain `Error`\n * (so logs and UIs can show the real revert or RPC reason).\n */\nexport function stringifyUnderlyingCause(u: unknown, maxLen = 700): string {\n if (u == null) return ''\n if (u instanceof Error) {\n const nested = u.cause instanceof Error ? ` | cause: ${u.cause.message}` : ''\n return (u.message + nested).slice(0, maxLen)\n }\n if (typeof u === 'object') {\n const o = u as Record<string, unknown>\n const parts: string[] = []\n if (typeof o.message === 'string') parts.push(o.message)\n if (typeof o.shortMessage === 'string') parts.push(o.shortMessage)\n if (typeof o.details === 'string') parts.push(o.details)\n if (typeof o.reason === 'string') parts.push(o.reason)\n if (parts.length) return parts.join(' | ').slice(0, maxLen)\n try {\n return JSON.stringify(u).slice(0, maxLen)\n } catch {\n return String(u).slice(0, maxLen)\n }\n }\n return String(u).slice(0, maxLen)\n}\n\n/**\n * Thrown or returned when the managed publishing account (on the publish chain) is missing,\n * unreachable, missing the executor module for the modular executor path, or EAS\n * pointer setup (`getEas` / `setEas`) fails, or modular session-signer activation fails.\n */\nexport class ManagedAccountPublishError extends Error {\n /** Original error when connection or deployment failed (avoids shadowing `Error.cause`). */\n public readonly underlyingCause?: unknown\n\n constructor(\n message: string,\n public readonly code: ManagedAccountPublishErrorCode,\n public readonly managedAddress?: string,\n underlyingCause?: unknown,\n ) {\n const extra =\n underlyingCause != null && underlyingCause !== ''\n ? ` (${stringifyUnderlyingCause(underlyingCause)})`\n : ''\n super(message + extra)\n this.name = 'ManagedAccountPublishError'\n this.underlyingCause = underlyingCause\n }\n}\n\n/**\n * True when `e` is a managed-account publish error. Uses `name` + `code` as a fallback\n * when `instanceof` fails across duplicate bundled class identities.\n */\nexport function isManagedAccountPublishError(e: unknown): e is ManagedAccountPublishError {\n if (e instanceof ManagedAccountPublishError) return true\n if (typeof e !== 'object' || e === null) return false\n const o = e as { name?: string; code?: unknown }\n return o.name === 'ManagedAccountPublishError' && typeof o.code === 'string'\n}\n\nexport type Eip7702ModularAccountPublishErrorCode =\n | 'EIP7702_MODULAR_ACCOUNT_UNAVAILABLE'\n | 'EIP7702_MODULAR_NOT_UPGRADED'\n | 'EIP7702_MODULAR_DEPLOY_FAILED'\n | 'EIP7702_MODULAR_NOT_CONFIRMED'\n\n/**\n * Thrown when the in-app modular (EIP-7702) wallet is missing, not upgraded on-chain, or deploy/bootstrap failed.\n */\nexport class Eip7702ModularAccountPublishError extends Error {\n public readonly underlyingCause?: unknown\n\n constructor(\n message: string,\n public readonly code: Eip7702ModularAccountPublishErrorCode,\n public readonly modularAddress?: string,\n underlyingCause?: unknown,\n ) {\n const extra =\n underlyingCause != null && underlyingCause !== ''\n ? ` (${stringifyUnderlyingCause(underlyingCause)})`\n : ''\n super(message + extra)\n this.name = 'Eip7702ModularAccountPublishError'\n this.underlyingCause = underlyingCause\n }\n}\n\nconst eip7702ModularCodes: Eip7702ModularAccountPublishErrorCode[] = [\n 'EIP7702_MODULAR_ACCOUNT_UNAVAILABLE',\n 'EIP7702_MODULAR_NOT_UPGRADED',\n 'EIP7702_MODULAR_DEPLOY_FAILED',\n 'EIP7702_MODULAR_NOT_CONFIRMED',\n]\n\nexport function isEip7702ModularAccountPublishError(e: unknown): e is Eip7702ModularAccountPublishError {\n if (e instanceof Eip7702ModularAccountPublishError) return true\n if (typeof e !== 'object' || e === null) return false\n const o = e as { name?: string; code?: unknown }\n return (\n o.name === 'Eip7702ModularAccountPublishError' &&\n typeof o.code === 'string' &&\n (eip7702ModularCodes as string[]).includes(o.code)\n )\n}\n\n/**\n * True when the RPC/contract error indicates the account is **not** Thirdweb ModularCore\n * (no Router / `getInstalledModules`), e.g. default EIP-4337 smart accounts.\n * Includes viem \"Cannot decode zero data\" when `eth_call` returns `0x` for a missing Router view.\n */\nexport function isRouterNonModularCoreAccountError(cause: unknown): boolean {\n const msg = stringifyUnderlyingCause(cause)\n if (/Router:\\s*function does not exist/i.test(msg)) return true\n if (/Cannot decode zero data\\s*\\(\\s*[\"']0x[\"']\\s*\\)/i.test(msg)) return true\n return false\n}\n"],"mappings":";AAAA,IAAa,IAAb,cAAkD,MAAM;CAGpC;CACA;CACA;CACA;CALlB,YACE,GACA,GACA,GACA,GACA,IAAsD,+BACtD;EAEA,AADA,MAAM,CAAO,GALG,KAAA,cAAA,GACA,KAAA,kBAAA,GACA,KAAA,eAAA,GACA,KAAA,OAAA,GAGhB,KAAK,OAAO;CACd;AACF;AAkBA,SAAgB,EAAyB,GAAY,IAAS,KAAa;CACzE,IAAI,KAAK,MAAM,OAAO;CACtB,IAAI,aAAa,OAAO;EACtB,IAAM,IAAS,EAAE,iBAAiB,QAAQ,aAAa,EAAE,MAAM,YAAY;EAC3E,QAAQ,EAAE,UAAU,EAAA,CAAQ,MAAM,GAAG,CAAM;CAC7C;CACA,IAAI,OAAO,KAAM,UAAU;EACzB,IAAM,IAAI,GACJ,IAAkB,CAAC;EAKzB,IAJI,OAAO,EAAE,WAAY,YAAU,EAAM,KAAK,EAAE,OAAO,GACnD,OAAO,EAAE,gBAAiB,YAAU,EAAM,KAAK,EAAE,YAAY,GAC7D,OAAO,EAAE,WAAY,YAAU,EAAM,KAAK,EAAE,OAAO,GACnD,OAAO,EAAE,UAAW,YAAU,EAAM,KAAK,EAAE,MAAM,GACjD,EAAM,QAAQ,OAAO,EAAM,KAAK,KAAK,CAAC,CAAC,MAAM,GAAG,CAAM;EAC1D,IAAI;GACF,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,GAAG,CAAM;EAC1C,QAAQ;GACN,OAAO,OAAO,CAAC,CAAC,CAAC,MAAM,GAAG,CAAM;EAClC;CACF;CACA,OAAO,OAAO,CAAC,CAAC,CAAC,MAAM,GAAG,CAAM;AAClC;AAOA,IAAa,IAAb,cAAgD,MAAM;CAMlC;CACA;CALlB;CAEA,YACE,GACA,GACA,GACA,GACA;EACA,IAAM,IACJ,KAAmB,QAAQ,MAAoB,KAC3C,KAAK,EAAyB,CAAe,EAAE,KAC/C;EAGN,AAFA,MAAM,IAAU,CAAK,GARL,KAAA,OAAA,GACA,KAAA,iBAAA,GAQhB,KAAK,OAAO,8BACZ,KAAK,kBAAkB;CACzB;AACF;AAMA,SAAgB,EAA6B,GAA6C;CACxF,IAAI,aAAa,GAA4B,OAAO;CACpD,IAAI,OAAO,KAAM,aAAY,GAAY,OAAO;CAChD,IAAM,IAAI;CACV,OAAO,EAAE,SAAS,gCAAgC,OAAO,EAAE,QAAS;AACtE;AAWA,IAAa,IAAb,cAAuD,MAAM;CAKzC;CACA;CALlB;CAEA,YACE,GACA,GACA,GACA,GACA;EACA,IAAM,IACJ,KAAmB,QAAQ,MAAoB,KAC3C,KAAK,EAAyB,CAAe,EAAE,KAC/C;EAGN,AAFA,MAAM,IAAU,CAAK,GARL,KAAA,OAAA,GACA,KAAA,iBAAA,GAQhB,KAAK,OAAO,qCACZ,KAAK,kBAAkB;CACzB;AACF,GAEM,IAA+D;CACnE;CACA;CACA;CACA;AACF;AAEA,SAAgB,EAAoC,GAAoD;CACtG,IAAI,aAAa,GAAmC,OAAO;CAC3D,IAAI,OAAO,KAAM,aAAY,GAAY,OAAO;CAChD,IAAM,IAAI;CACV,OACE,EAAE,SAAS,uCACX,OAAO,EAAE,QAAS,YACjB,EAAiC,SAAS,EAAE,IAAI;AAErD;AAOA,SAAgB,EAAmC,GAAyB;CAC1E,IAAM,IAAM,EAAyB,CAAK;CAG1C,OADA,GADI,qCAAqC,KAAK,CAAG,KAC7C,kDAAkD,KAAK,CAAG;AAEhE"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ export declare class AttestationVerificationError extends Error {
|
|
|
5
5
|
readonly code: 'METADATA_PROPERTIES_MISSING';
|
|
6
6
|
constructor(message: string, seedLocalId: string, expectedSchemas: string[], foundSchemas: string[], code?: 'METADATA_PROPERTIES_MISSING');
|
|
7
7
|
}
|
|
8
|
-
export type ManagedAccountPublishErrorCode = 'MANAGED_ACCOUNT_NOT_DEPLOYED' | 'MANAGED_ACCOUNT_UNAVAILABLE' | 'EXECUTOR_MODULE_NOT_INSTALLED' | 'MANAGED_ACCOUNT_SET_EAS_FAILED' | 'MODULAR_SIGNER_ACTIVATION_FAILED';
|
|
8
|
+
export type ManagedAccountPublishErrorCode = 'MANAGED_ACCOUNT_NOT_DEPLOYED' | 'MANAGED_ACCOUNT_UNAVAILABLE' | 'EXECUTOR_MODULE_NOT_INSTALLED' | 'MANAGED_ACCOUNT_SET_EAS_FAILED' | 'MODULAR_SIGNER_ACTIVATION_FAILED' | 'AUTOMATION_UNSUPPORTED_ACCOUNT' | 'AUTOMATION_PREFLIGHT_FAILED' | 'PUBLISH_PREFLIGHT_FAILED' | 'USEROP_FAILED_NO_REASON' | 'USEROP_REVERTED';
|
|
9
9
|
/**
|
|
10
10
|
* Best-effort string for RPC / thirdweb / viem failures that are not plain `Error`
|
|
11
11
|
* (so logs and UIs can show the real revert or RPC reason).
|
|
12
12
|
*/
|
|
13
13
|
export declare function stringifyUnderlyingCause(u: unknown, maxLen?: number): string;
|
|
14
14
|
/**
|
|
15
|
-
* Thrown or returned when the managed publishing account (
|
|
15
|
+
* Thrown or returned when the managed publishing account (on the publish chain) is missing,
|
|
16
16
|
* unreachable, missing the executor module for the modular executor path, or EAS
|
|
17
17
|
* pointer setup (`getEas` / `setEas`) fails, or modular session-signer activation fails.
|
|
18
18
|
*/
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,4BAA6B,SAAQ,KAAK;aAGnC,WAAW,EAAE,MAAM;aACnB,eAAe,EAAE,MAAM,EAAE;aACzB,YAAY,EAAE,MAAM,EAAE;aACtB,IAAI,EAAE,6BAA6B;gBAJnD,OAAO,EAAE,MAAM,EACC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EAAE,EACzB,YAAY,EAAE,MAAM,EAAE,EACtB,IAAI,GAAE,6BAA6D;CAKtF;AAED,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,GAC9B,6BAA6B,GAC7B,+BAA+B,GAC/B,gCAAgC,GAChC,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,4BAA6B,SAAQ,KAAK;aAGnC,WAAW,EAAE,MAAM;aACnB,eAAe,EAAE,MAAM,EAAE;aACzB,YAAY,EAAE,MAAM,EAAE;aACtB,IAAI,EAAE,6BAA6B;gBAJnD,OAAO,EAAE,MAAM,EACC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EAAE,EACzB,YAAY,EAAE,MAAM,EAAE,EACtB,IAAI,GAAE,6BAA6D;CAKtF;AAED,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,GAC9B,6BAA6B,GAC7B,+BAA+B,GAC/B,gCAAgC,GAChC,kCAAkC,GAClC,gCAAgC,GAChC,6BAA6B,GAC7B,0BAA0B,GAC1B,yBAAyB,GACzB,iBAAiB,CAAA;AAErB;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,SAAM,GAAG,MAAM,CAqBzE;AAED;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;aAMjC,IAAI,EAAE,8BAA8B;aACpC,cAAc,CAAC,EAAE,MAAM;IANzC,4FAA4F;IAC5F,SAAgB,eAAe,CAAC,EAAE,OAAO,CAAA;gBAGvC,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,8BAA8B,EACpC,cAAc,CAAC,EAAE,MAAM,YAAA,EACvC,eAAe,CAAC,EAAE,OAAO;CAU5B;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,0BAA0B,CAKxF;AAED,MAAM,MAAM,qCAAqC,GAC7C,qCAAqC,GACrC,8BAA8B,GAC9B,+BAA+B,GAC/B,+BAA+B,CAAA;AAEnC;;GAEG;AACH,qBAAa,iCAAkC,SAAQ,KAAK;aAKxC,IAAI,EAAE,qCAAqC;aAC3C,cAAc,CAAC,EAAE,MAAM;IALzC,SAAgB,eAAe,CAAC,EAAE,OAAO,CAAA;gBAGvC,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,qCAAqC,EAC3C,cAAc,CAAC,EAAE,MAAM,YAAA,EACvC,eAAe,CAAC,EAAE,OAAO;CAU5B;AASD,wBAAgB,mCAAmC,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,iCAAiC,CAStG;AAED;;;;GAIG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK1E"}
|
|
@@ -30,4 +30,129 @@ export declare const executorEventsAbi: readonly [{
|
|
|
30
30
|
readonly indexed: false;
|
|
31
31
|
}];
|
|
32
32
|
}];
|
|
33
|
+
/**
|
|
34
|
+
* SeedProtocolExecutor (ERC-7579 executor module) calls and errors.
|
|
35
|
+
* `multiPublish` takes the same `PublishRequestData` as the ManagedAccount extension (selector
|
|
36
|
+
* 0x2a29fadc), so it shares `multiPublishAbi`'s entry.
|
|
37
|
+
*/
|
|
38
|
+
export declare const executorModuleAbi: readonly [{
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
readonly name: "multiPublish";
|
|
41
|
+
readonly stateMutability: "payable";
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly name: "requests";
|
|
44
|
+
readonly type: "tuple[]";
|
|
45
|
+
readonly components: readonly [{
|
|
46
|
+
readonly name: "localId";
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "seedUid";
|
|
50
|
+
readonly type: "bytes32";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "seedSchemaUid";
|
|
53
|
+
readonly type: "bytes32";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "versionUid";
|
|
56
|
+
readonly type: "bytes32";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "versionSchemaUid";
|
|
59
|
+
readonly type: "bytes32";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "seedIsRevocable";
|
|
62
|
+
readonly type: "bool";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "listOfAttestations";
|
|
65
|
+
readonly type: "tuple[]";
|
|
66
|
+
readonly components: readonly [{
|
|
67
|
+
readonly name: "schema";
|
|
68
|
+
readonly type: "bytes32";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "data";
|
|
71
|
+
readonly type: "tuple[]";
|
|
72
|
+
readonly components: readonly [{
|
|
73
|
+
readonly name: "recipient";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "expirationTime";
|
|
77
|
+
readonly type: "uint64";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "revocable";
|
|
80
|
+
readonly type: "bool";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "refUID";
|
|
83
|
+
readonly type: "bytes32";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "data";
|
|
86
|
+
readonly type: "bytes";
|
|
87
|
+
}, {
|
|
88
|
+
readonly name: "value";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
}];
|
|
91
|
+
}];
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "propertiesToUpdate";
|
|
94
|
+
readonly type: "tuple[]";
|
|
95
|
+
readonly components: readonly [{
|
|
96
|
+
readonly name: "publishIndex";
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "propertySchemaUid";
|
|
100
|
+
readonly type: "bytes32";
|
|
101
|
+
}];
|
|
102
|
+
}];
|
|
103
|
+
}];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly type: "bytes32[]";
|
|
106
|
+
}];
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
readonly name: "isInitialized";
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
readonly inputs: readonly [{
|
|
112
|
+
readonly name: "account";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
}];
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly type: "bool";
|
|
118
|
+
}];
|
|
119
|
+
}, {
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
readonly name: "getEAS";
|
|
122
|
+
readonly stateMutability: "view";
|
|
123
|
+
readonly inputs: readonly [{
|
|
124
|
+
readonly name: "account";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}];
|
|
127
|
+
readonly outputs: readonly [{
|
|
128
|
+
readonly name: "";
|
|
129
|
+
readonly type: "address";
|
|
130
|
+
}];
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "error";
|
|
133
|
+
readonly name: "AlreadyInitialized";
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly name: "account";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
}];
|
|
138
|
+
}, {
|
|
139
|
+
readonly type: "error";
|
|
140
|
+
readonly name: "NotInitialized";
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly name: "account";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}];
|
|
145
|
+
}, {
|
|
146
|
+
readonly type: "error";
|
|
147
|
+
readonly name: "InvalidEASAddress";
|
|
148
|
+
readonly inputs: readonly [];
|
|
149
|
+
}, {
|
|
150
|
+
readonly type: "error";
|
|
151
|
+
readonly name: "AttestationFailed";
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
}, {
|
|
154
|
+
readonly type: "error";
|
|
155
|
+
readonly name: "MultiAttestFailed";
|
|
156
|
+
readonly inputs: readonly [];
|
|
157
|
+
}];
|
|
33
158
|
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/executor.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBpB,CAAA;AAEV;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBpB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Thirdweb ManagedAccount factory (
|
|
1
|
+
/** Thirdweb ManagedAccount factory ABI (see `MANAGED_ACCOUNT_FACTORY_ADDRESSES` for deployments). */
|
|
2
2
|
export declare const managedAccountFactoryAbi: readonly [{
|
|
3
3
|
readonly type: "function";
|
|
4
4
|
readonly name: "getAddress";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/factory.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/factory.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3B,CAAA"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* `multiPublish` (selector 0x2a29fadc) on SeedProtocolExtension and SeedProtocolExecutor, which take
|
|
3
|
+
* the same `PublishRequestData`: `propertiesToUpdate` names its target by `publishIndex`, the
|
|
4
|
+
* target's position in `requests`.
|
|
5
|
+
*/
|
|
2
6
|
export declare const multiPublishAbi: readonly [{
|
|
3
7
|
readonly type: "function";
|
|
4
8
|
readonly name: "multiPublish";
|
|
5
|
-
readonly stateMutability: "
|
|
9
|
+
readonly stateMutability: "payable";
|
|
6
10
|
readonly inputs: readonly [{
|
|
7
11
|
readonly name: "requests";
|
|
8
12
|
readonly type: "tuple[]";
|
|
@@ -57,78 +61,7 @@ export declare const multiPublishAbi: readonly [{
|
|
|
57
61
|
readonly name: "propertiesToUpdate";
|
|
58
62
|
readonly type: "tuple[]";
|
|
59
63
|
readonly components: readonly [{
|
|
60
|
-
readonly name: "
|
|
61
|
-
readonly type: "string";
|
|
62
|
-
}, {
|
|
63
|
-
readonly name: "propertySchemaUid";
|
|
64
|
-
readonly type: "bytes32";
|
|
65
|
-
}];
|
|
66
|
-
}];
|
|
67
|
-
}];
|
|
68
|
-
readonly outputs: readonly [{
|
|
69
|
-
readonly type: "bytes32[]";
|
|
70
|
-
}];
|
|
71
|
-
}];
|
|
72
|
-
/** multiPublish with uint256 localId indices (selector 0xd688e801). */
|
|
73
|
-
export declare const multiPublishIntegerAbi: readonly [{
|
|
74
|
-
readonly type: "function";
|
|
75
|
-
readonly name: "multiPublish";
|
|
76
|
-
readonly stateMutability: "nonpayable";
|
|
77
|
-
readonly inputs: readonly [{
|
|
78
|
-
readonly name: "requests";
|
|
79
|
-
readonly type: "tuple[]";
|
|
80
|
-
readonly components: readonly [{
|
|
81
|
-
readonly name: "localIdIndex";
|
|
82
|
-
readonly type: "uint256";
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "seedUid";
|
|
85
|
-
readonly type: "bytes32";
|
|
86
|
-
}, {
|
|
87
|
-
readonly name: "seedSchemaUid";
|
|
88
|
-
readonly type: "bytes32";
|
|
89
|
-
}, {
|
|
90
|
-
readonly name: "versionUid";
|
|
91
|
-
readonly type: "bytes32";
|
|
92
|
-
}, {
|
|
93
|
-
readonly name: "versionSchemaUid";
|
|
94
|
-
readonly type: "bytes32";
|
|
95
|
-
}, {
|
|
96
|
-
readonly name: "seedIsRevocable";
|
|
97
|
-
readonly type: "bool";
|
|
98
|
-
}, {
|
|
99
|
-
readonly name: "listOfAttestations";
|
|
100
|
-
readonly type: "tuple[]";
|
|
101
|
-
readonly components: readonly [{
|
|
102
|
-
readonly name: "schema";
|
|
103
|
-
readonly type: "bytes32";
|
|
104
|
-
}, {
|
|
105
|
-
readonly name: "data";
|
|
106
|
-
readonly type: "tuple[]";
|
|
107
|
-
readonly components: readonly [{
|
|
108
|
-
readonly name: "recipient";
|
|
109
|
-
readonly type: "address";
|
|
110
|
-
}, {
|
|
111
|
-
readonly name: "expirationTime";
|
|
112
|
-
readonly type: "uint64";
|
|
113
|
-
}, {
|
|
114
|
-
readonly name: "revocable";
|
|
115
|
-
readonly type: "bool";
|
|
116
|
-
}, {
|
|
117
|
-
readonly name: "refUID";
|
|
118
|
-
readonly type: "bytes32";
|
|
119
|
-
}, {
|
|
120
|
-
readonly name: "data";
|
|
121
|
-
readonly type: "bytes";
|
|
122
|
-
}, {
|
|
123
|
-
readonly name: "value";
|
|
124
|
-
readonly type: "uint256";
|
|
125
|
-
}];
|
|
126
|
-
}];
|
|
127
|
-
}, {
|
|
128
|
-
readonly name: "propertiesToUpdate";
|
|
129
|
-
readonly type: "tuple[]";
|
|
130
|
-
readonly components: readonly [{
|
|
131
|
-
readonly name: "publishLocalIdIndex";
|
|
64
|
+
readonly name: "publishIndex";
|
|
132
65
|
readonly type: "uint256";
|
|
133
66
|
}, {
|
|
134
67
|
readonly name: "propertySchemaUid";
|
|
@@ -170,6 +103,17 @@ export declare const publisherReadWriteAbi: readonly [{
|
|
|
170
103
|
readonly outputs: readonly [{
|
|
171
104
|
readonly type: "bool";
|
|
172
105
|
}];
|
|
106
|
+
}, {
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
readonly name: "isAdmin";
|
|
109
|
+
readonly stateMutability: "view";
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly name: "signer";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}];
|
|
114
|
+
readonly outputs: readonly [{
|
|
115
|
+
readonly type: "bool";
|
|
116
|
+
}];
|
|
173
117
|
}];
|
|
174
118
|
/** Extension / ManagedAccount publisher events. */
|
|
175
119
|
export declare const publisherEventsAbi: readonly [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publisher.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/publisher.ts"],"names":[],"mappings":"AAmBA
|
|
1
|
+
{"version":3,"file":"publisher.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/publisher.ts"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkClB,CAAA;AAEV,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BxB,CAAA;AAEV,mDAAmD;AACnD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;EAqBrB,CAAA"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom errors a publish call can revert with on the ManagedAccount stack: SeedPublishLib,
|
|
3
|
+
* the Seed protocol extensions, SeedAccountAuth and the Seed executor router extension.
|
|
4
|
+
* The executor module's own errors are in `executorModuleAbi`, EAS's in `easAbi`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const seedErrorsAbi: readonly [{
|
|
7
|
+
readonly type: "error";
|
|
8
|
+
readonly name: "PublishIndexOutOfBounds";
|
|
9
|
+
readonly inputs: readonly [{
|
|
10
|
+
readonly name: "targetIndex";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "length";
|
|
14
|
+
readonly type: "uint256";
|
|
15
|
+
}];
|
|
16
|
+
}, {
|
|
17
|
+
readonly type: "error";
|
|
18
|
+
readonly name: "UnknownPublishLocalId";
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly name: "publishLocalId";
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
}];
|
|
23
|
+
}, {
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
readonly name: "PublishTargetAlreadyAttested";
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly name: "requestIndex";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "targetIndex";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "error";
|
|
35
|
+
readonly name: "EmptyAttestationData";
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly name: "targetIndex";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "propertySchemaUid";
|
|
41
|
+
readonly type: "bytes32";
|
|
42
|
+
}];
|
|
43
|
+
}, {
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
readonly name: "PropertyToUpdateNotFound";
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly name: "requestIndex";
|
|
48
|
+
readonly type: "uint256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "targetIndex";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "propertySchemaUid";
|
|
54
|
+
readonly type: "bytes32";
|
|
55
|
+
}];
|
|
56
|
+
}, {
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
readonly name: "AmbiguousPropertyToUpdate";
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly name: "targetIndex";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "propertySchemaUid";
|
|
64
|
+
readonly type: "bytes32";
|
|
65
|
+
}];
|
|
66
|
+
}, {
|
|
67
|
+
readonly type: "error";
|
|
68
|
+
readonly name: "InvalidEAS";
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly name: "eas";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}];
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "error";
|
|
75
|
+
readonly name: "AttestationFailed";
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly name: "schemaUid";
|
|
78
|
+
readonly type: "bytes32";
|
|
79
|
+
}];
|
|
80
|
+
}, {
|
|
81
|
+
readonly type: "error";
|
|
82
|
+
readonly name: "Unauthorized";
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly name: "caller";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}];
|
|
87
|
+
}, {
|
|
88
|
+
readonly type: "error";
|
|
89
|
+
readonly name: "InvalidAddress";
|
|
90
|
+
readonly inputs: readonly [{
|
|
91
|
+
readonly name: "addr";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}];
|
|
94
|
+
}, {
|
|
95
|
+
readonly type: "error";
|
|
96
|
+
readonly name: "SeedExecutorAlreadyInstalled";
|
|
97
|
+
readonly inputs: readonly [];
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "error";
|
|
100
|
+
readonly name: "SeedExecutorNotInstalled";
|
|
101
|
+
readonly inputs: readonly [];
|
|
102
|
+
}, {
|
|
103
|
+
readonly type: "error";
|
|
104
|
+
readonly name: "NotSeedExecutor";
|
|
105
|
+
readonly inputs: readonly [{
|
|
106
|
+
readonly name: "caller";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
}];
|
|
109
|
+
}, {
|
|
110
|
+
readonly type: "error";
|
|
111
|
+
readonly name: "UnsupportedExecutionMode";
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly name: "mode";
|
|
114
|
+
readonly type: "bytes32";
|
|
115
|
+
}];
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "error";
|
|
118
|
+
readonly name: "TargetNotAllowed";
|
|
119
|
+
readonly inputs: readonly [{
|
|
120
|
+
readonly name: "target";
|
|
121
|
+
readonly type: "address";
|
|
122
|
+
}];
|
|
123
|
+
}, {
|
|
124
|
+
readonly type: "error";
|
|
125
|
+
readonly name: "SelectorNotAllowed";
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly name: "selector";
|
|
128
|
+
readonly type: "bytes4";
|
|
129
|
+
}];
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "error";
|
|
132
|
+
readonly name: "ValueMismatch";
|
|
133
|
+
readonly inputs: readonly [{
|
|
134
|
+
readonly name: "encodedValue";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "sentValue";
|
|
138
|
+
readonly type: "uint256";
|
|
139
|
+
}];
|
|
140
|
+
}];
|
|
141
|
+
//# sourceMappingURL=seedErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seedErrors.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/seedErrors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEhB,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `SeedExecutorRouterExtension`, routed on ManagedAccounts by the factory
|
|
3
|
+
* (seed-protocol contracts/SeedExecutorRouterExtension.sol). Installs the Seed executor on a
|
|
4
|
+
* Router (non-ModularCore) account.
|
|
5
|
+
*/
|
|
6
|
+
export declare const seedExecutorRouterAbi: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly name: "installSeedExecutor";
|
|
9
|
+
readonly stateMutability: "nonpayable";
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly outputs: readonly [];
|
|
12
|
+
}, {
|
|
13
|
+
readonly type: "function";
|
|
14
|
+
readonly name: "getSeedExecutor";
|
|
15
|
+
readonly stateMutability: "view";
|
|
16
|
+
readonly inputs: readonly [];
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly name: "executor";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "eas";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
}, {
|
|
25
|
+
readonly type: "function";
|
|
26
|
+
readonly name: "isModuleInstalled";
|
|
27
|
+
readonly stateMutability: "view";
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly name: "moduleTypeId";
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "module";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "additionalContext";
|
|
36
|
+
readonly type: "bytes";
|
|
37
|
+
}];
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "bool";
|
|
41
|
+
}];
|
|
42
|
+
}, {
|
|
43
|
+
readonly type: "error";
|
|
44
|
+
readonly name: "Unauthorized";
|
|
45
|
+
readonly inputs: readonly [{
|
|
46
|
+
readonly name: "caller";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
readonly name: "SeedExecutorAlreadyInstalled";
|
|
52
|
+
readonly inputs: readonly [];
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "error";
|
|
55
|
+
readonly name: "SeedExecutorNotInstalled";
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
}];
|
|
58
|
+
/** ERC-7579 module type id for executors. */
|
|
59
|
+
export declare const MODULE_TYPE_EXECUTOR = 2n;
|
|
60
|
+
//# sourceMappingURL=seedExecutorRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seedExecutorRouter.d.ts","sourceRoot":"","sources":["../../../src/helpers/abi/seedExecutorRouter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BxB,CAAA;AAEV,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB,KAAK,CAAA"}
|
|
@@ -1,11 +1,37 @@
|
|
|
1
|
+
import type { Hex } from 'viem';
|
|
2
|
+
import { type Hash } from 'viem';
|
|
1
3
|
import { type SeedSigner, type SeedTxSender } from '../seedSigner';
|
|
2
4
|
export type CreatePermissionlessTxSenderOptions = {
|
|
3
5
|
signer: SeedSigner;
|
|
4
6
|
bundlerUrl: string;
|
|
5
7
|
paymasterUrl?: string;
|
|
6
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Throws when the bundler lists its EntryPoints and v0.8 is not among them (e.g. a local twin's
|
|
11
|
+
* v0.6 bundler, which belongs in `PublishConfig.thirdweb.bundlerUrl`). Bundlers that do not
|
|
12
|
+
* answer `eth_supportedEntryPoints` are let through.
|
|
13
|
+
* @internal Exported for unit tests.
|
|
14
|
+
*/
|
|
15
|
+
export declare function assertBundlerSupportsEntryPoint08(bundlerUrl: string): Promise<void>;
|
|
7
16
|
/**
|
|
8
17
|
* Sponsored EIP-7702 `SeedTxSender` via permissionless `to7702SimpleSmartAccount`.
|
|
18
|
+
* @throws when `bundlerUrl` reports no EntryPoint v0.8 support
|
|
9
19
|
*/
|
|
10
20
|
export declare function createPermissionlessTxSender(options: CreatePermissionlessTxSenderOptions): Promise<SeedTxSender>;
|
|
21
|
+
type UserOpReceiptLike = {
|
|
22
|
+
success: boolean;
|
|
23
|
+
reason?: string;
|
|
24
|
+
receipt: {
|
|
25
|
+
transactionHash: Hash;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Returns the transaction hash of a successful UserOp, and throws for a failed one. The
|
|
30
|
+
* bundle transaction itself succeeds when a UserOp in it fails, so its receipt alone would
|
|
31
|
+
* pass a failed publish off as a success.
|
|
32
|
+
* @throws ManagedAccountPublishError `USEROP_REVERTED` or `USEROP_FAILED_NO_REASON`
|
|
33
|
+
* @internal Exported for unit tests.
|
|
34
|
+
*/
|
|
35
|
+
export declare function assertUserOpSucceeded(receipt: UserOpReceiptLike, sender?: string): Hex;
|
|
36
|
+
export {};
|
|
11
37
|
//# sourceMappingURL=permissionlessTxSender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissionlessTxSender.d.ts","sourceRoot":"","sources":["../../../src/helpers/adapters/permissionlessTxSender.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"permissionlessTxSender.d.ts","sourceRoot":"","sources":["../../../src/helpers/adapters/permissionlessTxSender.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,GAAG,EAAiC,MAAM,MAAM,CAAA;AACvE,OAAO,EAA4B,KAAK,IAAI,EAAE,MAAM,MAAM,CAAA;AAK1D,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,YAAY,EAClB,MAAM,eAAe,CAAA;AAKtB,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,UAAU,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAuBD;;;;;GAKG;AACH,wBAAsB,iCAAiC,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBzF;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,YAAY,CAAC,CA6DvB;AAED,KAAK,iBAAiB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,eAAe,EAAE,IAAI,CAAA;KAAE,CAAA;CAAE,CAAA;AAElG;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,CAYtF"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
+
import { type ThirdwebClient } from 'thirdweb';
|
|
1
2
|
import type { Account } from 'thirdweb/wallets';
|
|
2
3
|
import { type PublishWallet, type SeedSigner } from '../seedSigner';
|
|
4
|
+
export type FromThirdwebAccountOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* Thirdweb client for `prepareTransaction`. A Thirdweb Account does not carry a client.
|
|
7
|
+
* Pass the secret-key client from the server, or omit this to use `getClient()`.
|
|
8
|
+
*/
|
|
9
|
+
client?: ThirdwebClient;
|
|
10
|
+
};
|
|
3
11
|
/**
|
|
4
12
|
* Wrap a Thirdweb Account so AA gas sponsorship still flows through thirdweb `sendTransaction`.
|
|
5
13
|
*/
|
|
6
|
-
export declare function fromThirdwebAccount(account: Account): PublishWallet;
|
|
14
|
+
export declare function fromThirdwebAccount(account: Account, options?: FromThirdwebAccountOptions): PublishWallet;
|
|
7
15
|
/**
|
|
8
16
|
* Coerce Thirdweb Account, SeedSigner, or PublishWallet to PublishWallet.
|
|
9
17
|
*/
|
|
10
|
-
export declare function asThirdwebPublishWallet(accountOrWallet: Account | SeedSigner | PublishWallet): PublishWallet;
|
|
18
|
+
export declare function asThirdwebPublishWallet(accountOrWallet: Account | SeedSigner | PublishWallet, options?: FromThirdwebAccountOptions): PublishWallet;
|
|
11
19
|
/** @deprecated Prefer {@link asThirdwebPublishWallet}; kept for call-site migration. */
|
|
12
20
|
export declare function asSeedSignerFromThirdweb(accountOrWallet: Account | SeedSigner | PublishWallet): SeedSigner;
|
|
13
21
|
//# sourceMappingURL=thirdwebAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thirdwebAccount.d.ts","sourceRoot":"","sources":["../../../src/helpers/adapters/thirdwebAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thirdwebAccount.d.ts","sourceRoot":"","sources":["../../../src/helpers/adapters/thirdwebAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,cAAc,EAAE,MAAM,UAAU,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AAItB,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB,CAAA;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,0BAA0B,GACnC,aAAa,CA6Bf;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,OAAO,GAAG,UAAU,GAAG,aAAa,EACrD,OAAO,CAAC,EAAE,0BAA0B,GACnC,aAAa,CAQf;AAED,wFAAwF;AACxF,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,OAAO,GAAG,UAAU,GAAG,aAAa,GACpD,UAAU,CAIZ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Allowlisted call targets for
|
|
2
|
+
* Allowlisted call targets for session keys on a ManagedAccount.
|
|
3
3
|
* Returns only the configured Seed executor module — never the ManagedAccount or raw EAS
|
|
4
4
|
* (those would allow `setEas` / arbitrary attestations).
|
|
5
5
|
*
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import Arweave from 'arweave';
|
|
2
|
+
/**
|
|
3
|
+
* `arweave` client for the configured gateway, keeping its protocol and port so local gateways
|
|
4
|
+
* (e.g. `http://localhost:1984`) work. See {@link BaseArweaveClient.getArweaveJsApiConfig}.
|
|
5
|
+
*/
|
|
2
6
|
export declare const getArweave: () => Arweave;
|
|
3
7
|
//# sourceMappingURL=blockchain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchain.d.ts","sourceRoot":"","sources":["../../src/helpers/blockchain.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,eAAO,MAAM,UAAU,QAAO,
|
|
1
|
+
{"version":3,"file":"blockchain.d.ts","sourceRoot":"","sources":["../../src/helpers/blockchain.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAO,OAS7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainClient.d.ts","sourceRoot":"","sources":["../../src/helpers/chainClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"chainClient.d.ts","sourceRoot":"","sources":["../../src/helpers/chainClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,MAAM,CAAA;AAI1F,KAAK,mBAAmB,GAAG,YAAY,CAAA;AAyBvC;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,CAe5D;AAED,mCAAmC;AACnC,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C;AAED,wBAAsB,qBAAqB,CAAC,eAAe,EAAE,GAAG,8CAE/D;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAK1E;AAED,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQrF;AAKD,0FAA0F;AAC1F,wBAAsB,uBAAuB,CAC3C,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,GAAE,MAAqC,EAC/C,UAAU,GAAE,MAAwC,GACnD,OAAO,CAAC,OAAO,CAAC,CAYlB"}
|
|
@@ -9,4 +9,6 @@ export declare function getPublishViemChain(): Chain;
|
|
|
9
9
|
* Resolved RPC URL. Prefer explicit `rpcUrl`; fall back to Thirdweb edge URL when client id is set.
|
|
10
10
|
*/
|
|
11
11
|
export declare function getPublishRpcUrl(): string;
|
|
12
|
+
/** Display name of the publish chain for user-facing messages. */
|
|
13
|
+
export declare function getPublishChainName(): string;
|
|
12
14
|
//# sourceMappingURL=chainConfig.d.ts.map
|