@seedprotocol/publish 0.6.9 → 0.7.0
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 +11 -0
- package/README.md +1 -1
- package/dist/{chainConfig-CYy0XJ0M.js → chainConfig-BJ8C_RRz.js} +392 -220
- package/dist/chainConfig-BJ8C_RRz.js.map +1 -0
- package/dist/{chainConfig-BRcsMopd.js → chainConfig-DWynbnb8.js} +446 -433
- package/dist/chainConfig-DWynbnb8.js.map +1 -0
- package/dist/{chainConfig-CA1Hrrjg.js → chainConfig-DWzoOtkS.js} +394 -328
- package/dist/chainConfig-DWzoOtkS.js.map +1 -0
- package/dist/{chainConfig-3wlYarAG.js → chainConfig-DmuPBs3D.js} +442 -420
- package/dist/chainConfig-DmuPBs3D.js.map +1 -0
- package/dist/config.d.ts +5 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/ensureAutomationSessionKey-BVmh030S.js +84 -0
- package/dist/ensureAutomationSessionKey-BVmh030S.js.map +1 -0
- package/dist/ensureAutomationSessionKey-CxpJY_uH.js +84 -0
- package/dist/ensureAutomationSessionKey-CxpJY_uH.js.map +1 -0
- package/dist/ensureAutomationSessionKey-DwRm4YMJ.js +84 -0
- package/dist/ensureAutomationSessionKey-DwRm4YMJ.js.map +1 -0
- package/dist/ensureAutomationSessionKey-h3zOmDr5.js +84 -0
- package/dist/ensureAutomationSessionKey-h3zOmDr5.js.map +1 -0
- package/dist/{ensureModularPublishBootstrap-DGBKVGg5.js → ensureModularPublishBootstrap-BImiIFJe.js} +9 -10
- package/dist/{ensureModularPublishBootstrap-5HJDqJJM.js.map → ensureModularPublishBootstrap-BImiIFJe.js.map} +1 -1
- package/dist/{ensureModularPublishBootstrap-DxIG-LUP.js → ensureModularPublishBootstrap-CmxyX_EN.js} +9 -10
- package/dist/{ensureModularPublishBootstrap-BW8jKN_A.js.map → ensureModularPublishBootstrap-CmxyX_EN.js.map} +1 -1
- package/dist/{ensureModularPublishBootstrap-BW8jKN_A.js → ensureModularPublishBootstrap-DRFhp-O2.js} +9 -10
- package/dist/{ensureModularPublishBootstrap-BhYNmLzT.js.map → ensureModularPublishBootstrap-DRFhp-O2.js.map} +1 -1
- package/dist/{ensureModularPublishBootstrap-BhYNmLzT.js → ensureModularPublishBootstrap-DegJnYKL.js} +9 -10
- package/dist/{ensureModularPublishBootstrap-Bsw1xSCt.js.map → ensureModularPublishBootstrap-DegJnYKL.js.map} +1 -1
- package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js → ensureSmartWalletThenPublish-0nKg13WN.js} +9 -10
- package/dist/{ensureSmartWalletThenPublish-Bm58tc-b.js.map → ensureSmartWalletThenPublish-0nKg13WN.js.map} +1 -1
- package/dist/{ensureSmartWalletThenPublish-D5GSZRyZ.js → ensureSmartWalletThenPublish-BdqeUL6t.js} +9 -10
- package/dist/{ensureSmartWalletThenPublish-D5GSZRyZ.js.map → ensureSmartWalletThenPublish-BdqeUL6t.js.map} +1 -1
- package/dist/{ensureSmartWalletThenPublish-DAomriGc.js → ensureSmartWalletThenPublish-BfEndtFo.js} +9 -10
- package/dist/{ensureSmartWalletThenPublish-DAomriGc.js.map → ensureSmartWalletThenPublish-BfEndtFo.js.map} +1 -1
- package/dist/{ensureSmartWalletThenPublish-Dta2AOyJ.js → ensureSmartWalletThenPublish-DuOYPJFd.js} +9 -10
- package/dist/{ensureSmartWalletThenPublish-Bl415Ss6.js.map → ensureSmartWalletThenPublish-DuOYPJFd.js.map} +1 -1
- package/dist/errors.d.ts +9 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/helpers/abi/executor.d.ts +12 -0
- package/dist/helpers/abi/executor.d.ts.map +1 -1
- package/dist/helpers/abi/factory.d.ts +11 -0
- package/dist/helpers/abi/factory.d.ts.map +1 -1
- package/dist/helpers/abi/seedExecutorRouter.d.ts +9 -1
- package/dist/helpers/abi/seedExecutorRouter.d.ts.map +1 -1
- package/dist/helpers/adapters/thirdwebAccount.d.ts.map +1 -1
- package/dist/helpers/chainClient.d.ts +18 -2
- package/dist/helpers/chainClient.d.ts.map +1 -1
- package/dist/helpers/contracts/index.d.ts +9 -0
- package/dist/helpers/contracts/index.d.ts.map +1 -1
- package/dist/helpers/describeRevert.d.ts +3 -2
- package/dist/helpers/describeRevert.d.ts.map +1 -1
- package/dist/helpers/enrollPublishAutomation.d.ts +2 -2
- package/dist/helpers/enrollPublishAutomation.d.ts.map +1 -1
- package/dist/helpers/ensureAutomationSessionKey.d.ts.map +1 -1
- package/dist/helpers/ensureExecutorModule.d.ts +28 -5
- package/dist/helpers/ensureExecutorModule.d.ts.map +1 -1
- package/dist/helpers/executorModuleReadiness.d.ts +15 -1
- package/dist/helpers/executorModuleReadiness.d.ts.map +1 -1
- package/dist/helpers/gasLog.d.ts +8 -0
- package/dist/helpers/gasLog.d.ts.map +1 -0
- package/dist/helpers/seedPaymaster.d.ts +27 -0
- package/dist/helpers/seedPaymaster.d.ts.map +1 -0
- package/dist/helpers/thirdweb.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +271 -272
- package/dist/index.js.map +1 -1
- package/dist/{managedAccountAdmin-B64V1rlU.js → managedAccountAdmin-B4HkLWWE.js} +9 -10
- package/dist/{managedAccountAdmin-B64V1rlU.js.map → managedAccountAdmin-B4HkLWWE.js.map} +1 -1
- package/dist/{managedAccountAdmin-Bje6X8Ds.js → managedAccountAdmin-ByEX_Eg2.js} +9 -10
- package/dist/{managedAccountAdmin-BVLGWpEb.js.map → managedAccountAdmin-ByEX_Eg2.js.map} +1 -1
- package/dist/{managedAccountAdmin-C84-IlQ9.js → managedAccountAdmin-DS6nniiu.js} +9 -10
- package/dist/{managedAccountAdmin-Bje6X8Ds.js.map → managedAccountAdmin-DS6nniiu.js.map} +1 -1
- package/dist/managedAccountAdmin-DwFI-ZfE.js +28 -0
- package/dist/{managedAccountAdmin-C84-IlQ9.js.map → managedAccountAdmin-DwFI-ZfE.js.map} +1 -1
- package/dist/{publishAuthorization-DjVrnMC0.js → publishAuthorization-C-XYb9Ef.js} +1500 -1391
- package/dist/publishAuthorization-C-XYb9Ef.js.map +1 -0
- package/dist/{publishAuthorization-BEqRnP2h.js → publishAuthorization-CG23g8w2.js} +1460 -1398
- package/dist/publishAuthorization-CG23g8w2.js.map +1 -0
- package/dist/{publishAuthorization-CxBkijU6.js → publishAuthorization-CvK_coYp.js} +1104 -1018
- package/dist/publishAuthorization-CvK_coYp.js.map +1 -0
- package/dist/{publishAuthorization-By2Tt9kW.js → publishAuthorization-DgDI4zor.js} +1162 -1063
- package/dist/publishAuthorization-DgDI4zor.js.map +1 -0
- package/dist/{publishThirdwebClient-CBD9sKJR.js → publishThirdwebClient-BQ_KnMi5.js} +2 -2
- package/dist/{publishThirdwebClient-CBD9sKJR.js.map → publishThirdwebClient-BQ_KnMi5.js.map} +1 -1
- package/dist/{publishThirdwebClient-BdgkcqM7.js → publishThirdwebClient-BmqsJCjp.js} +2 -2
- package/dist/{publishThirdwebClient-BdgkcqM7.js.map → publishThirdwebClient-BmqsJCjp.js.map} +1 -1
- package/dist/{publishThirdwebClient-BkmDN480.js → publishThirdwebClient-CO18ST7C.js} +2 -2
- package/dist/{publishThirdwebClient-BkmDN480.js.map → publishThirdwebClient-CO18ST7C.js.map} +1 -1
- package/dist/{publishThirdwebClient-BnDhP3N-.js → publishThirdwebClient-D-K2WEeM.js} +2 -2
- package/dist/{publishThirdwebClient-BnDhP3N-.js.map → publishThirdwebClient-D-K2WEeM.js.map} +1 -1
- package/dist/{resolveRevokeAccount-CehU81k6.js → resolveRevokeAccount-9-OzXVdp.js} +11 -11
- package/dist/{resolveRevokeAccount-B5iXpuRT.js.map → resolveRevokeAccount-9-OzXVdp.js.map} +1 -1
- package/dist/{resolveRevokeAccount-BEhKQBTm.js → resolveRevokeAccount-CXa5XlOv.js} +11 -11
- package/dist/{resolveRevokeAccount-B7ImSb4Y.js.map → resolveRevokeAccount-CXa5XlOv.js.map} +1 -1
- package/dist/{resolveRevokeAccount-CaIMuCee.js → resolveRevokeAccount-DsNod8ti.js} +11 -12
- package/dist/{resolveRevokeAccount-BtVG0xxc.js.map → resolveRevokeAccount-DsNod8ti.js.map} +1 -1
- package/dist/{resolveRevokeAccount-DHnxtEIj.js → resolveRevokeAccount-QgZ6YZuS.js} +11 -12
- package/dist/{resolveRevokeAccount-BM1j2l5Q.js.map → resolveRevokeAccount-QgZ6YZuS.js.map} +1 -1
- 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/actors/createAttestationsDirectToEas.d.ts.map +1 -1
- package/dist/services/publish/actors/multiPublishReceipt.d.ts +58 -0
- package/dist/services/publish/actors/multiPublishReceipt.d.ts.map +1 -0
- package/dist/services/publish/actors/persistSeedUid.d.ts.map +1 -1
- package/dist/services/publish/actors/recordMultiPublishReceipt.d.ts +45 -0
- package/dist/services/publish/actors/recordMultiPublishReceipt.d.ts.map +1 -0
- package/dist/services/publish/helpers/getPublishUploadData.d.ts.map +1 -1
- package/dist/services/publishCost/types.d.ts +3 -1
- package/dist/services/publishCost/types.d.ts.map +1 -1
- package/dist/services/publishManager/actions/publishDone.d.ts.map +1 -1
- package/dist/services/publishManager/actions/stopAll.d.ts.map +1 -1
- package/dist/services/publishManager/actions/stopPublish.d.ts.map +1 -1
- package/dist/services/publishManager/actors/restoreFromDb.d.ts.map +1 -1
- package/dist/services/publishManager/index.d.ts +3 -3
- package/dist/services/publishManager/index.d.ts.map +1 -1
- package/dist/services/publishManager/publishLocks.d.ts +22 -0
- package/dist/services/publishManager/publishLocks.d.ts.map +1 -0
- package/dist/services/revoke/revokeAttestations.d.ts.map +1 -1
- package/dist/thirdweb.d.ts +2 -1
- package/dist/thirdweb.d.ts.map +1 -1
- package/dist/thirdweb.js +147 -148
- package/dist/thirdweb.js.map +1 -1
- package/dist/{worker-2dUZSapK.js → worker-CJRUAOAn.js} +2 -2
- package/dist/{worker-2dUZSapK.js.map → worker-CJRUAOAn.js.map} +1 -1
- package/dist/{worker-B1PcFPLi.js → worker-CN7zg73B.js} +2 -2
- package/dist/{worker-B1PcFPLi.js.map → worker-CN7zg73B.js.map} +1 -1
- package/dist/{worker-BCG1r0AS.js → worker-FmHZbku5.js} +9 -6
- package/dist/{worker-BCG1r0AS.js.map → worker-FmHZbku5.js.map} +1 -1
- package/dist/{worker-B8gN5WTx.js → worker-qoGuo876.js} +2 -2
- package/dist/{worker-B8gN5WTx.js.map → worker-qoGuo876.js.map} +1 -1
- package/package.json +6 -6
- package/dist/chainConfig-3sSqEVQh.js +0 -1433
- package/dist/chainConfig-3sSqEVQh.js.map +0 -1
- package/dist/chainConfig-3wlYarAG.js.map +0 -1
- package/dist/chainConfig-BRcsMopd.js.map +0 -1
- package/dist/chainConfig-BYm5OXpk.js +0 -1433
- package/dist/chainConfig-BYm5OXpk.js.map +0 -1
- package/dist/chainConfig-CA1Hrrjg.js.map +0 -1
- package/dist/chainConfig-CYy0XJ0M.js.map +0 -1
- package/dist/chainConfig-CfVGYAsY.js +0 -1311
- package/dist/chainConfig-CfVGYAsY.js.map +0 -1
- package/dist/chainConfig-DDA4YmAB.js +0 -1424
- package/dist/chainConfig-DDA4YmAB.js.map +0 -1
- package/dist/config-BA9la8B6.js +0 -941
- package/dist/config-BA9la8B6.js.map +0 -1
- package/dist/config-BqguD2Tt.js +0 -806
- package/dist/config-BqguD2Tt.js.map +0 -1
- package/dist/config-CPBd5C_b.js +0 -1201
- package/dist/config-CPBd5C_b.js.map +0 -1
- package/dist/config-DkIapO94.js +0 -955
- package/dist/config-DkIapO94.js.map +0 -1
- package/dist/config-EQZZNH9H.js +0 -955
- package/dist/config-EQZZNH9H.js.map +0 -1
- package/dist/config-qjpaJcBA.js +0 -947
- package/dist/config-qjpaJcBA.js.map +0 -1
- package/dist/deploy-BJYwLfz-.js +0 -15
- package/dist/deploy-BJYwLfz-.js.map +0 -1
- package/dist/enrollPublishAutomation-DYQMoylY.js +0 -3422
- package/dist/enrollPublishAutomation-DYQMoylY.js.map +0 -1
- package/dist/ensureAutomationSessionKey-BMHLKfjj.js +0 -85
- package/dist/ensureAutomationSessionKey-BMHLKfjj.js.map +0 -1
- package/dist/ensureAutomationSessionKey-BZ9_3FMW.js +0 -86
- package/dist/ensureAutomationSessionKey-BZ9_3FMW.js.map +0 -1
- package/dist/ensureAutomationSessionKey-Bq0PaTYE.js +0 -84
- package/dist/ensureAutomationSessionKey-Bq0PaTYE.js.map +0 -1
- package/dist/ensureAutomationSessionKey-Bw74ZSGI.js +0 -85
- package/dist/ensureAutomationSessionKey-Bw74ZSGI.js.map +0 -1
- package/dist/ensureAutomationSessionKey-C8D7BFjU.js +0 -85
- package/dist/ensureAutomationSessionKey-C8D7BFjU.js.map +0 -1
- package/dist/ensureAutomationSessionKey-CClLVX2w.js +0 -85
- package/dist/ensureAutomationSessionKey-CClLVX2w.js.map +0 -1
- package/dist/ensureAutomationSessionKey-CNNN1jBQ.js +0 -85
- package/dist/ensureAutomationSessionKey-CNNN1jBQ.js.map +0 -1
- package/dist/ensureAutomationSessionKey-CeUbjcCl.js +0 -85
- package/dist/ensureAutomationSessionKey-CeUbjcCl.js.map +0 -1
- package/dist/ensureAutomationSessionKey-D8Gki6U6.js +0 -85
- package/dist/ensureAutomationSessionKey-D8Gki6U6.js.map +0 -1
- package/dist/ensureAutomationSessionKey-DEH7nwUc.js +0 -86
- package/dist/ensureAutomationSessionKey-DEH7nwUc.js.map +0 -1
- package/dist/ensureAutomationSessionKey-DKriW4Hr.js +0 -85
- package/dist/ensureAutomationSessionKey-DKriW4Hr.js.map +0 -1
- package/dist/ensureAutomationSessionKey-Dhvbii2M.js +0 -86
- package/dist/ensureAutomationSessionKey-Dhvbii2M.js.map +0 -1
- package/dist/ensureAutomationSessionKey-Dyfk8qVp.js +0 -85
- package/dist/ensureAutomationSessionKey-Dyfk8qVp.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-5HJDqJJM.js +0 -24
- package/dist/ensureModularPublishBootstrap-Bsw1xSCt.js +0 -24
- package/dist/ensureModularPublishBootstrap-Btih5xbB.js +0 -129
- package/dist/ensureModularPublishBootstrap-Btih5xbB.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-C8wdnH1P.js +0 -128
- package/dist/ensureModularPublishBootstrap-C8wdnH1P.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-CI4U08Gc.js +0 -129
- package/dist/ensureModularPublishBootstrap-CI4U08Gc.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-CcU-hXll.js +0 -128
- package/dist/ensureModularPublishBootstrap-CcU-hXll.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-CdrykHAi.js +0 -24
- package/dist/ensureModularPublishBootstrap-CdrykHAi.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-DGBKVGg5.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-DaREOqSc.js +0 -129
- package/dist/ensureModularPublishBootstrap-DaREOqSc.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-DxIG-LUP.js.map +0 -1
- package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js +0 -127
- package/dist/ensureModularPublishBootstrap-Jm1AAqBo.js.map +0 -1
- package/dist/ensureSessionKey-D2Lq-56x.js +0 -363
- package/dist/ensureSessionKey-D2Lq-56x.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js +0 -48
- package/dist/ensureSmartWalletThenPublish-BFPugsKJ.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-BSYzckyS.js +0 -49
- package/dist/ensureSmartWalletThenPublish-BSYzckyS.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js +0 -49
- package/dist/ensureSmartWalletThenPublish-Bf8FN1un.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-Bl415Ss6.js +0 -48
- package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js +0 -49
- package/dist/ensureSmartWalletThenPublish-Bmm5Fpat.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-CE7acryB.js +0 -49
- package/dist/ensureSmartWalletThenPublish-CE7acryB.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js +0 -48
- package/dist/ensureSmartWalletThenPublish-DaZf3q5S.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-Dta2AOyJ.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js +0 -48
- package/dist/ensureSmartWalletThenPublish-ekb0xJRn.js.map +0 -1
- package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js +0 -48
- package/dist/ensureSmartWalletThenPublish-v5fhvKxZ.js.map +0 -1
- package/dist/errors-Du3LNbJN.js +0 -70
- package/dist/errors-Du3LNbJN.js.map +0 -1
- package/dist/errors-PZAaDlkq.js +0 -79
- package/dist/errors-PZAaDlkq.js.map +0 -1
- package/dist/helpers/adapters/managedAccountTxSender.d.ts +0 -21
- package/dist/helpers/adapters/managedAccountTxSender.d.ts.map +0 -1
- package/dist/helpers/modularAccount/abi.d.ts +0 -173
- package/dist/helpers/modularAccount/abi.d.ts.map +0 -1
- package/dist/helpers/modularAccount/deploy.d.ts +0 -13
- package/dist/helpers/modularAccount/deploy.d.ts.map +0 -1
- package/dist/helpers/modularAccount/eip712.d.ts +0 -30
- package/dist/helpers/modularAccount/eip712.d.ts.map +0 -1
- package/dist/helpers/modularAccount/encode.d.ts +0 -16
- package/dist/helpers/modularAccount/encode.d.ts.map +0 -1
- package/dist/helpers/modularAccount/ensureModule.d.ts +0 -10
- package/dist/helpers/modularAccount/ensureModule.d.ts.map +0 -1
- package/dist/helpers/modularAccount/ensureSessionKey.d.ts +0 -25
- package/dist/helpers/modularAccount/ensureSessionKey.d.ts.map +0 -1
- package/dist/helpers/modularAccount/index.d.ts +0 -9
- package/dist/helpers/modularAccount/index.d.ts.map +0 -1
- package/dist/helpers/modularAccount/permissions.d.ts +0 -32
- package/dist/helpers/modularAccount/permissions.d.ts.map +0 -1
- package/dist/helpers/modularAccount/reads.d.ts +0 -28
- package/dist/helpers/modularAccount/reads.d.ts.map +0 -1
- package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts +0 -31
- package/dist/helpers/thirdwebEnrollPublishAutomation.d.ts.map +0 -1
- package/dist/helpers/thirdwebModularBootstrap.d.ts +0 -8
- package/dist/helpers/thirdwebModularBootstrap.d.ts.map +0 -1
- package/dist/helpers/transformPayloadToIntegerIds.d.ts +0 -34
- package/dist/helpers/transformPayloadToIntegerIds.d.ts.map +0 -1
- package/dist/managedAccountAdmin-BVLGWpEb.js +0 -29
- package/dist/managedAccountAdmin-DJMw6UH6.js +0 -29
- package/dist/managedAccountAdmin-DJMw6UH6.js.map +0 -1
- package/dist/managedAccountAdmin-DhCRBoPX.js +0 -29
- package/dist/managedAccountAdmin-DhCRBoPX.js.map +0 -1
- package/dist/managedAccountAdmin-NXD66lP5.js +0 -29
- package/dist/managedAccountAdmin-NXD66lP5.js.map +0 -1
- package/dist/publishAuthorization-B0G1em4a.js +0 -3695
- package/dist/publishAuthorization-B0G1em4a.js.map +0 -1
- package/dist/publishAuthorization-B1BVVfp0.js +0 -3604
- package/dist/publishAuthorization-B1BVVfp0.js.map +0 -1
- package/dist/publishAuthorization-BEqRnP2h.js.map +0 -1
- package/dist/publishAuthorization-Bltn3y_K.js +0 -3599
- package/dist/publishAuthorization-Bltn3y_K.js.map +0 -1
- package/dist/publishAuthorization-By2Tt9kW.js.map +0 -1
- package/dist/publishAuthorization-CSN2FsQk.js +0 -3479
- package/dist/publishAuthorization-CSN2FsQk.js.map +0 -1
- package/dist/publishAuthorization-CxBkijU6.js.map +0 -1
- package/dist/publishAuthorization-CxWY7lAQ.js +0 -3706
- package/dist/publishAuthorization-CxWY7lAQ.js.map +0 -1
- package/dist/publishAuthorization-DEriY_jm.js +0 -3687
- package/dist/publishAuthorization-DEriY_jm.js.map +0 -1
- package/dist/publishAuthorization-DfAQs1sN.js +0 -3707
- package/dist/publishAuthorization-DfAQs1sN.js.map +0 -1
- package/dist/publishAuthorization-DgdmgLTa.js +0 -3520
- package/dist/publishAuthorization-DgdmgLTa.js.map +0 -1
- package/dist/publishAuthorization-DjVrnMC0.js.map +0 -1
- package/dist/publishAuthorization-DqhhCAhd.js +0 -3652
- package/dist/publishAuthorization-DqhhCAhd.js.map +0 -1
- package/dist/publishThirdwebClient-CQ29pzG2.js +0 -18
- package/dist/publishThirdwebClient-CQ29pzG2.js.map +0 -1
- package/dist/publishThirdwebClient-CZIVmr9Z.js +0 -18
- package/dist/publishThirdwebClient-CZIVmr9Z.js.map +0 -1
- package/dist/publishThirdwebClient-Ce7iBIsj.js +0 -18
- package/dist/publishThirdwebClient-Ce7iBIsj.js.map +0 -1
- package/dist/publishThirdwebClient-DroRrOFQ.js +0 -18
- package/dist/publishThirdwebClient-DroRrOFQ.js.map +0 -1
- package/dist/publishThirdwebClient-DzXFjQ7L.js +0 -18
- package/dist/publishThirdwebClient-DzXFjQ7L.js.map +0 -1
- package/dist/publishThirdwebClient-Dzb2vcEs.js +0 -18
- package/dist/publishThirdwebClient-Dzb2vcEs.js.map +0 -1
- package/dist/publishThirdwebClient-i8P7fivi.js +0 -18
- package/dist/publishThirdwebClient-i8P7fivi.js.map +0 -1
- package/dist/publishWalletRegistry-Cugh691z.js +0 -37
- package/dist/publishWalletRegistry-Cugh691z.js.map +0 -1
- package/dist/resolveRevokeAccount-B5iXpuRT.js +0 -38
- package/dist/resolveRevokeAccount-B7ImSb4Y.js +0 -38
- package/dist/resolveRevokeAccount-BEhKQBTm.js.map +0 -1
- package/dist/resolveRevokeAccount-BM1j2l5Q.js +0 -38
- package/dist/resolveRevokeAccount-BtVG0xxc.js +0 -38
- package/dist/resolveRevokeAccount-CJZZdBcQ.js +0 -39
- package/dist/resolveRevokeAccount-CJZZdBcQ.js.map +0 -1
- package/dist/resolveRevokeAccount-CaIMuCee.js.map +0 -1
- package/dist/resolveRevokeAccount-CehU81k6.js.map +0 -1
- package/dist/resolveRevokeAccount-Cg4TQgnd.js +0 -38
- package/dist/resolveRevokeAccount-Cg4TQgnd.js.map +0 -1
- package/dist/resolveRevokeAccount-DHnxtEIj.js.map +0 -1
- package/dist/resolveRevokeAccount-DJKfLlyK.js +0 -38
- package/dist/resolveRevokeAccount-DJKfLlyK.js.map +0 -1
- package/dist/resolveRevokeAccount-S-2WXkNh.js +0 -38
- package/dist/resolveRevokeAccount-S-2WXkNh.js.map +0 -1
- package/dist/resolveRevokeAccount-mzR11KJ4.js +0 -38
- package/dist/resolveRevokeAccount-mzR11KJ4.js.map +0 -1
- package/dist/resolveRevokeAccount-yWARIv9i.js +0 -38
- package/dist/resolveRevokeAccount-yWARIv9i.js.map +0 -1
- package/dist/seedSigner-CFzMD7Rb.js +0 -66
- package/dist/seedSigner-CFzMD7Rb.js.map +0 -1
- package/dist/thirdweb-BoksPRz3.js +0 -194
- package/dist/thirdweb-BoksPRz3.js.map +0 -1
- package/dist/thirdwebAccount-C2iOcp4_.js +0 -59
- package/dist/thirdwebAccount-C2iOcp4_.js.map +0 -1
- package/dist/worker-BgErCNTb.js +0 -69
- package/dist/worker-BgErCNTb.js.map +0 -1
- package/dist/worker-C07rPV2G.js +0 -69
- package/dist/worker-C07rPV2G.js.map +0 -1
- package/dist/worker-C9Za_dlQ.js +0 -69
- package/dist/worker-C9Za_dlQ.js.map +0 -1
- package/dist/worker-CEgulQnm.js +0 -69
- package/dist/worker-CEgulQnm.js.map +0 -1
- package/dist/worker-C_TL94He.js +0 -69
- package/dist/worker-C_TL94He.js.map +0 -1
- package/dist/worker-CbtzcKG6.js +0 -69
- package/dist/worker-CbtzcKG6.js.map +0 -1
- package/dist/worker-DBC_g-3I.js +0 -69
- package/dist/worker-DBC_g-3I.js.map +0 -1
- package/dist/worker-DHUm-TeQ.js +0 -69
- package/dist/worker-DHUm-TeQ.js.map +0 -1
- package/dist/worker-DypHzXgH.js +0 -69
- package/dist/worker-DypHzXgH.js.map +0 -1
- package/dist/worker-ZL4Wg19t.js +0 -69
- package/dist/worker-ZL4Wg19t.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { optimismSepolia as t } from "viem/chains";
|
|
3
3
|
import { DEFAULT_ARWEAVE_GRAPHQL_URL as n, VERSION_SCHEMA_UID as r, assertLocalDbChain as i, client as a, getAttesterForSeed as o, getGetAdditionalSyncAddresses as s, getMetadataAttestationUidsForSeedUid as c, getVersionsForSeedUid as ee, isValidEasAttestationUid as l, setAdditionalSyncAddresses as u, setGetPublisherForNewSeeds as d, setRevokeExecutor as te, updateSeedRevokedAt as ne } from "@seedprotocol/sdk";
|
|
4
|
-
import { createPublicClient as f, encodeAbiParameters as p, encodeFunctionData as m,
|
|
5
|
-
import { prepareTransaction as
|
|
6
|
-
import { ethers as
|
|
7
|
-
import { defineChain as
|
|
8
|
-
import { configureEasReadChain as
|
|
4
|
+
import { createPublicClient as f, encodeAbiParameters as p, encodeFunctionData as m, getAbiItem as h, http as g, parseEventLogs as re, toFunctionSelector as ie, zeroAddress as ae } from "viem";
|
|
5
|
+
import { prepareTransaction as oe, sendTransaction as se } from "thirdweb";
|
|
6
|
+
import { ethers as ce } from "ethers";
|
|
7
|
+
import { defineChain as le, optimismSepolia as ue } from "thirdweb/chains";
|
|
8
|
+
import { configureEasReadChain as de, expectEasReadChain as fe, resolveEasChainDeployment as pe } from "@seedprotocol/eas";
|
|
9
9
|
//#region src/helpers/constants.ts
|
|
10
|
-
var
|
|
10
|
+
var me = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", he = { 11155420: "0x76f47d88bfaf670f5208911181fcdc0e160cb16d" }, ge = "0xcd8c945872df8e664e55cf8885c85ea3ea8f2148", _e = ge, ve = {
|
|
11
11
|
SUCCESS: "success",
|
|
12
12
|
FAILURE: "failure"
|
|
13
|
-
},
|
|
13
|
+
}, ye = [
|
|
14
14
|
"pollingForConfirmation",
|
|
15
15
|
"uploadingData",
|
|
16
16
|
"uploadingViaBundler",
|
|
17
17
|
"uploadingViaBundlerPhase2"
|
|
18
|
-
],
|
|
18
|
+
], be = 3e4, _ = t, xe = [
|
|
19
19
|
{
|
|
20
20
|
type: "error",
|
|
21
21
|
name: "AccessDenied",
|
|
@@ -66,7 +66,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
66
66
|
name: "InvalidLength",
|
|
67
67
|
inputs: []
|
|
68
68
|
}
|
|
69
|
-
],
|
|
69
|
+
], Se = [
|
|
70
70
|
{
|
|
71
71
|
name: "recipient",
|
|
72
72
|
type: "address"
|
|
@@ -105,7 +105,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
105
105
|
}, {
|
|
106
106
|
name: "data",
|
|
107
107
|
type: "tuple",
|
|
108
|
-
components:
|
|
108
|
+
components: Se
|
|
109
109
|
}]
|
|
110
110
|
}],
|
|
111
111
|
outputs: [{ type: "bytes32" }]
|
|
@@ -123,7 +123,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
123
123
|
}, {
|
|
124
124
|
name: "data",
|
|
125
125
|
type: "tuple[]",
|
|
126
|
-
components:
|
|
126
|
+
components: Se
|
|
127
127
|
}]
|
|
128
128
|
}],
|
|
129
129
|
outputs: [{ type: "bytes32[]" }]
|
|
@@ -178,8 +178,8 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
|
-
...
|
|
182
|
-
],
|
|
181
|
+
...xe
|
|
182
|
+
], Ce = [{
|
|
183
183
|
type: "function",
|
|
184
184
|
name: "multiPublish",
|
|
185
185
|
stateMutability: "payable",
|
|
@@ -262,7 +262,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
262
262
|
]
|
|
263
263
|
}],
|
|
264
264
|
outputs: [{ type: "bytes32[]" }]
|
|
265
|
-
}],
|
|
265
|
+
}], y = [
|
|
266
266
|
{
|
|
267
267
|
type: "function",
|
|
268
268
|
name: "getEas",
|
|
@@ -300,7 +300,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
300
300
|
}],
|
|
301
301
|
outputs: [{ type: "bool" }]
|
|
302
302
|
}
|
|
303
|
-
],
|
|
303
|
+
], we = [{
|
|
304
304
|
type: "event",
|
|
305
305
|
name: "CreatedAttestation",
|
|
306
306
|
inputs: [{
|
|
@@ -323,31 +323,44 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
323
323
|
type: "bytes",
|
|
324
324
|
indexed: !1
|
|
325
325
|
}]
|
|
326
|
-
}],
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}],
|
|
326
|
+
}], b = [
|
|
327
|
+
{
|
|
328
|
+
type: "function",
|
|
329
|
+
name: "getAddress",
|
|
330
|
+
stateMutability: "view",
|
|
331
|
+
inputs: [{
|
|
332
|
+
name: "_adminSigner",
|
|
333
|
+
type: "address"
|
|
334
|
+
}, {
|
|
335
|
+
name: "_data",
|
|
336
|
+
type: "bytes"
|
|
337
|
+
}],
|
|
338
|
+
outputs: [{ type: "address" }]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
type: "function",
|
|
342
|
+
name: "createAccount",
|
|
343
|
+
stateMutability: "nonpayable",
|
|
344
|
+
inputs: [{
|
|
345
|
+
name: "_admin",
|
|
346
|
+
type: "address"
|
|
347
|
+
}, {
|
|
348
|
+
name: "_data",
|
|
349
|
+
type: "bytes"
|
|
350
|
+
}],
|
|
351
|
+
outputs: [{ type: "address" }]
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
type: "function",
|
|
355
|
+
name: "getImplementationForFunction",
|
|
356
|
+
stateMutability: "view",
|
|
357
|
+
inputs: [{
|
|
358
|
+
name: "_functionSelector",
|
|
359
|
+
type: "bytes4"
|
|
360
|
+
}],
|
|
361
|
+
outputs: [{ type: "address" }]
|
|
362
|
+
}
|
|
363
|
+
], Te = [{
|
|
351
364
|
type: "event",
|
|
352
365
|
name: "CreatedAttestation",
|
|
353
366
|
inputs: [{
|
|
@@ -374,8 +387,8 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
374
387
|
type: "bytes32",
|
|
375
388
|
indexed: !1
|
|
376
389
|
}]
|
|
377
|
-
}],
|
|
378
|
-
|
|
390
|
+
}], x = [
|
|
391
|
+
Ce[0],
|
|
379
392
|
{
|
|
380
393
|
type: "function",
|
|
381
394
|
name: "isInitialized",
|
|
@@ -402,6 +415,19 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
402
415
|
type: "address"
|
|
403
416
|
}]
|
|
404
417
|
},
|
|
418
|
+
{
|
|
419
|
+
type: "event",
|
|
420
|
+
name: "ModuleInitialized",
|
|
421
|
+
inputs: [{
|
|
422
|
+
name: "account",
|
|
423
|
+
type: "address",
|
|
424
|
+
indexed: !0
|
|
425
|
+
}, {
|
|
426
|
+
name: "eas",
|
|
427
|
+
type: "address",
|
|
428
|
+
indexed: !0
|
|
429
|
+
}]
|
|
430
|
+
},
|
|
405
431
|
{
|
|
406
432
|
type: "error",
|
|
407
433
|
name: "AlreadyInitialized",
|
|
@@ -433,7 +459,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
433
459
|
name: "MultiAttestFailed",
|
|
434
460
|
inputs: []
|
|
435
461
|
}
|
|
436
|
-
],
|
|
462
|
+
], S = [
|
|
437
463
|
{
|
|
438
464
|
type: "function",
|
|
439
465
|
name: "installSeedExecutor",
|
|
@@ -477,6 +503,15 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
477
503
|
type: "bool"
|
|
478
504
|
}]
|
|
479
505
|
},
|
|
506
|
+
{
|
|
507
|
+
type: "event",
|
|
508
|
+
name: "SeedExecutorInstalled",
|
|
509
|
+
inputs: [{
|
|
510
|
+
name: "executor",
|
|
511
|
+
type: "address",
|
|
512
|
+
indexed: !0
|
|
513
|
+
}]
|
|
514
|
+
},
|
|
480
515
|
{
|
|
481
516
|
type: "error",
|
|
482
517
|
name: "Unauthorized",
|
|
@@ -495,7 +530,7 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
495
530
|
name: "SeedExecutorNotInstalled",
|
|
496
531
|
inputs: []
|
|
497
532
|
}
|
|
498
|
-
],
|
|
533
|
+
], Ee = 2n, C = [{
|
|
499
534
|
type: "function",
|
|
500
535
|
name: "getSchema",
|
|
501
536
|
stateMutability: "view",
|
|
@@ -544,8 +579,81 @@ var de = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", f
|
|
|
544
579
|
}
|
|
545
580
|
],
|
|
546
581
|
outputs: [{ type: "bytes32" }]
|
|
547
|
-
}],
|
|
548
|
-
|
|
582
|
+
}], De = class extends Error {
|
|
583
|
+
seedLocalId;
|
|
584
|
+
expectedSchemas;
|
|
585
|
+
foundSchemas;
|
|
586
|
+
code;
|
|
587
|
+
constructor(e, t, n, r, i = "METADATA_PROPERTIES_MISSING") {
|
|
588
|
+
super(e), this.seedLocalId = t, this.expectedSchemas = n, this.foundSchemas = r, this.code = i, this.name = "AttestationVerificationError";
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
function w(e, t = 700) {
|
|
592
|
+
if (e == null) return "";
|
|
593
|
+
if (e instanceof Error) {
|
|
594
|
+
let n = e.cause instanceof Error ? ` | cause: ${e.cause.message}` : "";
|
|
595
|
+
return (e.message + n).slice(0, t);
|
|
596
|
+
}
|
|
597
|
+
if (typeof e == "object") {
|
|
598
|
+
let n = e, r = [];
|
|
599
|
+
if (typeof n.message == "string" && r.push(n.message), typeof n.shortMessage == "string" && r.push(n.shortMessage), typeof n.details == "string" && r.push(n.details), typeof n.reason == "string" && r.push(n.reason), r.length) return r.join(" | ").slice(0, t);
|
|
600
|
+
try {
|
|
601
|
+
return JSON.stringify(e).slice(0, t);
|
|
602
|
+
} catch {
|
|
603
|
+
return String(e).slice(0, t);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return String(e).slice(0, t);
|
|
607
|
+
}
|
|
608
|
+
var T = class extends Error {
|
|
609
|
+
code;
|
|
610
|
+
managedAddress;
|
|
611
|
+
underlyingCause;
|
|
612
|
+
constructor(e, t, n, r) {
|
|
613
|
+
let i = r != null && r !== "" ? ` (${w(r)})` : "";
|
|
614
|
+
super(e + i), this.code = t, this.managedAddress = n, this.name = "ManagedAccountPublishError", this.underlyingCause = r;
|
|
615
|
+
}
|
|
616
|
+
}, E = class extends Error {
|
|
617
|
+
transactionHash;
|
|
618
|
+
receipt;
|
|
619
|
+
constructor(e, t) {
|
|
620
|
+
super(`Transaction ${e} reverted.`), this.transactionHash = e, this.receipt = t, this.name = "PublishTransactionRevertedError";
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
function Oe(e) {
|
|
624
|
+
if (e instanceof T) return !0;
|
|
625
|
+
if (typeof e != "object" || !e) return !1;
|
|
626
|
+
let t = e;
|
|
627
|
+
return t.name === "ManagedAccountPublishError" && typeof t.code == "string";
|
|
628
|
+
}
|
|
629
|
+
var D = class extends Error {
|
|
630
|
+
code;
|
|
631
|
+
modularAddress;
|
|
632
|
+
underlyingCause;
|
|
633
|
+
constructor(e, t, n, r) {
|
|
634
|
+
let i = r != null && r !== "" ? ` (${w(r)})` : "";
|
|
635
|
+
super(e + i), this.code = t, this.modularAddress = n, this.name = "Eip7702ModularAccountPublishError", this.underlyingCause = r;
|
|
636
|
+
}
|
|
637
|
+
}, ke = [
|
|
638
|
+
"EIP7702_MODULAR_ACCOUNT_UNAVAILABLE",
|
|
639
|
+
"EIP7702_MODULAR_NOT_UPGRADED",
|
|
640
|
+
"EIP7702_MODULAR_DEPLOY_FAILED",
|
|
641
|
+
"EIP7702_MODULAR_NOT_CONFIRMED"
|
|
642
|
+
];
|
|
643
|
+
function Ae(e) {
|
|
644
|
+
if (e instanceof D) return !0;
|
|
645
|
+
if (typeof e != "object" || !e) return !1;
|
|
646
|
+
let t = e;
|
|
647
|
+
return t.name === "Eip7702ModularAccountPublishError" && typeof t.code == "string" && ke.includes(t.code);
|
|
648
|
+
}
|
|
649
|
+
function je(e) {
|
|
650
|
+
let t = w(e);
|
|
651
|
+
return !!(/Router:\s*function does not exist/i.test(t) || /Cannot decode zero data\s*\(\s*["']0x["']\s*\)/i.test(t));
|
|
652
|
+
}
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region src/helpers/chainClient.ts
|
|
655
|
+
var O = null, k = null;
|
|
656
|
+
function Me() {
|
|
549
657
|
try {
|
|
550
658
|
let e = Y().thirdwebSecretKey;
|
|
551
659
|
return e ? { headers: { "x-secret-key": e } } : void 0;
|
|
@@ -553,14 +661,14 @@ function Ce() {
|
|
|
553
661
|
return;
|
|
554
662
|
}
|
|
555
663
|
}
|
|
556
|
-
function
|
|
557
|
-
let e = Q(), t = $(), n =
|
|
664
|
+
function Ne() {
|
|
665
|
+
let e = Q(), t = $(), n = Me();
|
|
558
666
|
return f({
|
|
559
667
|
chain: e,
|
|
560
|
-
transport:
|
|
668
|
+
transport: g(t, n ? { fetchOptions: n } : void 0)
|
|
561
669
|
});
|
|
562
670
|
}
|
|
563
|
-
function
|
|
671
|
+
function A() {
|
|
564
672
|
let e = Q(), t = $(), n = "";
|
|
565
673
|
try {
|
|
566
674
|
n = Y().thirdwebSecretKey ?? "";
|
|
@@ -568,26 +676,33 @@ function D() {
|
|
|
568
676
|
n = "";
|
|
569
677
|
}
|
|
570
678
|
let r = `${e.id}:${t}:${n ? "1" : "0"}:${n}`;
|
|
571
|
-
return (!
|
|
679
|
+
return (!O || k !== r) && (k = r, O = Ne()), O;
|
|
572
680
|
}
|
|
573
|
-
async function
|
|
574
|
-
|
|
681
|
+
async function j(e) {
|
|
682
|
+
let t = await A().waitForTransactionReceipt({ hash: e });
|
|
683
|
+
if (t.status === "reverted") throw new E(e, t);
|
|
684
|
+
return t;
|
|
575
685
|
}
|
|
576
|
-
async function
|
|
577
|
-
let
|
|
686
|
+
async function Pe(e, t, { attempts: n = 5, intervalMs: r = 2e3 } = {}) {
|
|
687
|
+
let i = await e();
|
|
688
|
+
for (let a = 1; a < n && !t(i); a++) await new Promise((e) => setTimeout(e, r)), i = await e();
|
|
689
|
+
return i;
|
|
690
|
+
}
|
|
691
|
+
async function M(e) {
|
|
692
|
+
let t = await A().getBytecode({ address: e });
|
|
578
693
|
return !!t && t !== "0x";
|
|
579
694
|
}
|
|
580
|
-
async function
|
|
695
|
+
async function Fe(e) {
|
|
581
696
|
try {
|
|
582
|
-
let t = await
|
|
697
|
+
let t = await A().getBlock({ blockNumber: e });
|
|
583
698
|
if (t?.timestamp != null) return Number(t.timestamp) * 1e3;
|
|
584
699
|
} catch {}
|
|
585
700
|
return null;
|
|
586
701
|
}
|
|
587
|
-
var
|
|
588
|
-
async function
|
|
702
|
+
var Ie = 5, Le = 6e3;
|
|
703
|
+
async function Re(e, t = Ie, n = Le) {
|
|
589
704
|
for (let r = 0; r < t; r++) {
|
|
590
|
-
if (await
|
|
705
|
+
if (await M(e)) return !0;
|
|
591
706
|
r < t - 1 && await new Promise((e) => {
|
|
592
707
|
setTimeout(e, n);
|
|
593
708
|
});
|
|
@@ -596,7 +711,7 @@ async function Oe(e, t = Ee, n = De) {
|
|
|
596
711
|
}
|
|
597
712
|
//#endregion
|
|
598
713
|
//#region src/helpers/contracts/index.ts
|
|
599
|
-
function
|
|
714
|
+
function ze(e) {
|
|
600
715
|
let t = /* @__PURE__ */ new Map();
|
|
601
716
|
return e.forEach((e, n) => {
|
|
602
717
|
if (e.localId) {
|
|
@@ -613,12 +728,12 @@ function ke(e) {
|
|
|
613
728
|
};
|
|
614
729
|
});
|
|
615
730
|
}
|
|
616
|
-
function
|
|
617
|
-
let r =
|
|
731
|
+
function N(e, t, n) {
|
|
732
|
+
let r = ze(t);
|
|
618
733
|
return {
|
|
619
734
|
to: e,
|
|
620
735
|
data: m({
|
|
621
|
-
abi:
|
|
736
|
+
abi: Ce,
|
|
622
737
|
functionName: "multiPublish",
|
|
623
738
|
args: [t.map((e) => ({
|
|
624
739
|
localId: e.localId,
|
|
@@ -634,30 +749,30 @@ function A(e, t, n) {
|
|
|
634
749
|
gas: n
|
|
635
750
|
};
|
|
636
751
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
752
|
+
function Be(e, t, n) {
|
|
753
|
+
return N(e, t, n);
|
|
639
754
|
}
|
|
640
|
-
async function
|
|
641
|
-
return
|
|
755
|
+
async function Ve(e, t) {
|
|
756
|
+
return A().readContract({
|
|
642
757
|
address: e,
|
|
643
|
-
abi:
|
|
758
|
+
abi: x,
|
|
644
759
|
functionName: "isInitialized",
|
|
645
760
|
args: [t]
|
|
646
761
|
});
|
|
647
762
|
}
|
|
648
|
-
async function
|
|
649
|
-
return
|
|
763
|
+
async function He(e, t) {
|
|
764
|
+
return A().readContract({
|
|
650
765
|
address: e,
|
|
651
|
-
abi:
|
|
766
|
+
abi: x,
|
|
652
767
|
functionName: "getEAS",
|
|
653
768
|
args: [t]
|
|
654
769
|
});
|
|
655
770
|
}
|
|
656
|
-
async function
|
|
771
|
+
async function Ue(e) {
|
|
657
772
|
try {
|
|
658
|
-
let [t, n] = await
|
|
773
|
+
let [t, n] = await A().readContract({
|
|
659
774
|
address: e,
|
|
660
|
-
abi:
|
|
775
|
+
abi: S,
|
|
661
776
|
functionName: "getSeedExecutor"
|
|
662
777
|
});
|
|
663
778
|
return {
|
|
@@ -668,80 +783,101 @@ async function Ne(e) {
|
|
|
668
783
|
return null;
|
|
669
784
|
}
|
|
670
785
|
}
|
|
671
|
-
async function
|
|
672
|
-
|
|
786
|
+
async function We(e = Z()) {
|
|
787
|
+
let t = A(), n = await t.readContract({
|
|
673
788
|
address: e,
|
|
674
|
-
abi:
|
|
789
|
+
abi: b,
|
|
790
|
+
functionName: "getImplementationForFunction",
|
|
791
|
+
args: [ie(h({
|
|
792
|
+
abi: S,
|
|
793
|
+
name: "getSeedExecutor"
|
|
794
|
+
}))]
|
|
795
|
+
});
|
|
796
|
+
if (n === ae) return null;
|
|
797
|
+
let [r, i] = await t.readContract({
|
|
798
|
+
address: n,
|
|
799
|
+
abi: S,
|
|
800
|
+
functionName: "getSeedExecutor"
|
|
801
|
+
});
|
|
802
|
+
return {
|
|
803
|
+
executor: r,
|
|
804
|
+
eas: i
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
async function Ge(e, t) {
|
|
808
|
+
return A().readContract({
|
|
809
|
+
address: e,
|
|
810
|
+
abi: S,
|
|
675
811
|
functionName: "isModuleInstalled",
|
|
676
812
|
args: [
|
|
677
|
-
|
|
813
|
+
Ee,
|
|
678
814
|
t,
|
|
679
815
|
"0x"
|
|
680
816
|
]
|
|
681
817
|
});
|
|
682
818
|
}
|
|
683
|
-
function
|
|
819
|
+
function Ke(e) {
|
|
684
820
|
return {
|
|
685
821
|
to: e,
|
|
686
822
|
data: m({
|
|
687
|
-
abi:
|
|
823
|
+
abi: S,
|
|
688
824
|
functionName: "installSeedExecutor"
|
|
689
825
|
})
|
|
690
826
|
};
|
|
691
827
|
}
|
|
692
|
-
function
|
|
828
|
+
function qe(e, t) {
|
|
693
829
|
return {
|
|
694
830
|
to: e,
|
|
695
831
|
data: m({
|
|
696
|
-
abi:
|
|
832
|
+
abi: y,
|
|
697
833
|
functionName: "setEas",
|
|
698
834
|
args: [t]
|
|
699
835
|
})
|
|
700
836
|
};
|
|
701
837
|
}
|
|
702
|
-
async function
|
|
703
|
-
return
|
|
838
|
+
async function Je(e) {
|
|
839
|
+
return A().readContract({
|
|
704
840
|
address: e,
|
|
705
|
-
abi:
|
|
841
|
+
abi: y,
|
|
706
842
|
functionName: "getEas"
|
|
707
843
|
});
|
|
708
844
|
}
|
|
709
|
-
async function
|
|
710
|
-
return
|
|
845
|
+
async function Ye(e, t) {
|
|
846
|
+
return A().readContract({
|
|
711
847
|
address: e,
|
|
712
|
-
abi:
|
|
848
|
+
abi: y,
|
|
713
849
|
functionName: "isActiveSigner",
|
|
714
850
|
args: [t]
|
|
715
851
|
});
|
|
716
852
|
}
|
|
717
|
-
async function
|
|
718
|
-
return
|
|
853
|
+
async function Xe(e, t) {
|
|
854
|
+
return A().readContract({
|
|
719
855
|
address: e,
|
|
720
|
-
abi:
|
|
856
|
+
abi: y,
|
|
721
857
|
functionName: "isAdmin",
|
|
722
858
|
args: [t]
|
|
723
859
|
});
|
|
724
860
|
}
|
|
725
|
-
async function
|
|
726
|
-
return
|
|
861
|
+
async function Ze(e, t = "0x") {
|
|
862
|
+
return A().readContract({
|
|
727
863
|
address: Z(),
|
|
728
|
-
abi:
|
|
864
|
+
abi: b,
|
|
729
865
|
functionName: "getAddress",
|
|
730
866
|
args: [e, t]
|
|
731
867
|
});
|
|
732
868
|
}
|
|
733
|
-
function
|
|
869
|
+
function Qe(e, t = "0x") {
|
|
734
870
|
return {
|
|
735
871
|
to: Z(),
|
|
736
872
|
data: m({
|
|
737
|
-
abi:
|
|
873
|
+
abi: b,
|
|
738
874
|
functionName: "createAccount",
|
|
739
875
|
args: [e, t]
|
|
740
876
|
})
|
|
741
877
|
};
|
|
742
878
|
}
|
|
743
|
-
var
|
|
744
|
-
function
|
|
879
|
+
var $e = "0x0000000000000000000000000000000000000000";
|
|
880
|
+
function P(e) {
|
|
745
881
|
let { easContractAddress: t } = Y();
|
|
746
882
|
return {
|
|
747
883
|
to: t,
|
|
@@ -751,7 +887,7 @@ function j(e) {
|
|
|
751
887
|
args: [{
|
|
752
888
|
schema: e.schema,
|
|
753
889
|
data: {
|
|
754
|
-
recipient: e.data.recipient ??
|
|
890
|
+
recipient: e.data.recipient ?? $e,
|
|
755
891
|
expirationTime: e.data.expirationTime ?? 0n,
|
|
756
892
|
revocable: e.data.revocable ?? !0,
|
|
757
893
|
refUID: e.data.refUID,
|
|
@@ -762,7 +898,7 @@ function j(e) {
|
|
|
762
898
|
})
|
|
763
899
|
};
|
|
764
900
|
}
|
|
765
|
-
function
|
|
901
|
+
function F(e) {
|
|
766
902
|
let { easContractAddress: t } = Y();
|
|
767
903
|
return {
|
|
768
904
|
to: t,
|
|
@@ -773,7 +909,7 @@ function M(e) {
|
|
|
773
909
|
})
|
|
774
910
|
};
|
|
775
911
|
}
|
|
776
|
-
function
|
|
912
|
+
function et(e) {
|
|
777
913
|
let { easContractAddress: t } = Y();
|
|
778
914
|
return {
|
|
779
915
|
to: t,
|
|
@@ -790,26 +926,26 @@ function N(e) {
|
|
|
790
926
|
})
|
|
791
927
|
};
|
|
792
928
|
}
|
|
793
|
-
var
|
|
794
|
-
async function
|
|
795
|
-
let t = await
|
|
929
|
+
var tt = "0x" + "0".repeat(64);
|
|
930
|
+
async function nt(e) {
|
|
931
|
+
let t = await A().readContract({
|
|
796
932
|
address: Y().schemaRegistryAddress,
|
|
797
|
-
abi:
|
|
933
|
+
abi: C,
|
|
798
934
|
functionName: "getSchema",
|
|
799
935
|
args: [e]
|
|
800
936
|
});
|
|
801
|
-
return !t || t.uid ===
|
|
937
|
+
return !t || t.uid === tt ? null : {
|
|
802
938
|
uid: t.uid,
|
|
803
939
|
resolver: t.resolver,
|
|
804
940
|
revocable: t.revocable,
|
|
805
941
|
schema: t.schema
|
|
806
942
|
};
|
|
807
943
|
}
|
|
808
|
-
function
|
|
944
|
+
function rt(e) {
|
|
809
945
|
return {
|
|
810
946
|
to: Y().schemaRegistryAddress,
|
|
811
947
|
data: m({
|
|
812
|
-
abi:
|
|
948
|
+
abi: C,
|
|
813
949
|
functionName: "register",
|
|
814
950
|
args: [
|
|
815
951
|
e.schema,
|
|
@@ -821,25 +957,25 @@ function Ge(e) {
|
|
|
821
957
|
}
|
|
822
958
|
//#endregion
|
|
823
959
|
//#region src/helpers/easDirect.ts
|
|
824
|
-
var
|
|
825
|
-
function
|
|
826
|
-
return
|
|
960
|
+
var it = "0x0000000000000000000000000000000000000000", at = "0x" + "0".repeat(64);
|
|
961
|
+
function ot(e) {
|
|
962
|
+
return P(e);
|
|
827
963
|
}
|
|
828
|
-
function
|
|
829
|
-
return
|
|
964
|
+
function st(e) {
|
|
965
|
+
return F(e);
|
|
830
966
|
}
|
|
831
|
-
function
|
|
967
|
+
function ct(e) {
|
|
832
968
|
return p([{ type: "bytes32" }], [e]);
|
|
833
969
|
}
|
|
834
|
-
function
|
|
835
|
-
return
|
|
970
|
+
function lt(e, t) {
|
|
971
|
+
return ut(e, t)[0]?.uid;
|
|
836
972
|
}
|
|
837
|
-
function
|
|
973
|
+
function ut(e, t) {
|
|
838
974
|
if (!e.logs?.length) return [];
|
|
839
975
|
let n = t.toLowerCase(), r = e.logs.filter((e) => e.address && e.address.toLowerCase() === n);
|
|
840
976
|
if (!r.length) return [];
|
|
841
977
|
try {
|
|
842
|
-
let e =
|
|
978
|
+
let e = re({
|
|
843
979
|
abi: v,
|
|
844
980
|
eventName: "Attested",
|
|
845
981
|
logs: r,
|
|
@@ -847,7 +983,7 @@ function F(e, t) {
|
|
|
847
983
|
}), t = [];
|
|
848
984
|
for (let n of e) {
|
|
849
985
|
let e = n.args?.uid, r = n.args?.schemaUID;
|
|
850
|
-
e && e !==
|
|
986
|
+
e && e !== at && r && t.push({
|
|
851
987
|
schemaUid: r,
|
|
852
988
|
uid: e
|
|
853
989
|
});
|
|
@@ -857,20 +993,20 @@ function F(e, t) {
|
|
|
857
993
|
return [];
|
|
858
994
|
}
|
|
859
995
|
}
|
|
860
|
-
function
|
|
861
|
-
return
|
|
996
|
+
function dt(e) {
|
|
997
|
+
return et(e);
|
|
862
998
|
}
|
|
863
999
|
//#endregion
|
|
864
1000
|
//#region src/helpers/publishWalletRegistry.ts
|
|
865
|
-
var
|
|
866
|
-
function
|
|
1001
|
+
var I = null;
|
|
1002
|
+
function ft() {
|
|
867
1003
|
return a.isInitialized() ? Promise.resolve() : new Promise((e) => {
|
|
868
1004
|
a.onReady(() => e());
|
|
869
1005
|
});
|
|
870
1006
|
}
|
|
871
|
-
async function
|
|
872
|
-
if (
|
|
873
|
-
await
|
|
1007
|
+
async function pt(e) {
|
|
1008
|
+
if (I = e, !e) return;
|
|
1009
|
+
await ft();
|
|
874
1010
|
let t = /* @__PURE__ */ new Set();
|
|
875
1011
|
for (let n of e.ownedAddresses ?? []) n && t.add(n.toLowerCase());
|
|
876
1012
|
t.add(e.signer.address.toLowerCase()), t.add(e.txSender.address.toLowerCase()), e.publisherAddress && t.add(e.publisherAddress.toLowerCase());
|
|
@@ -882,15 +1018,15 @@ async function Qe(e) {
|
|
|
882
1018
|
console.warn("[publishWalletRegistry] Failed to set seed client addresses:", e);
|
|
883
1019
|
}
|
|
884
1020
|
}
|
|
885
|
-
function
|
|
886
|
-
return
|
|
1021
|
+
function L() {
|
|
1022
|
+
return I;
|
|
887
1023
|
}
|
|
888
|
-
function
|
|
889
|
-
|
|
1024
|
+
function mt() {
|
|
1025
|
+
I = null;
|
|
890
1026
|
}
|
|
891
1027
|
//#endregion
|
|
892
1028
|
//#region src/helpers/retryNonceTooLow.ts
|
|
893
|
-
function
|
|
1029
|
+
function ht(e) {
|
|
894
1030
|
let t = [], n = e;
|
|
895
1031
|
for (let e = 0; n && e < 5; e++) {
|
|
896
1032
|
let e = n;
|
|
@@ -898,46 +1034,46 @@ function et(e) {
|
|
|
898
1034
|
}
|
|
899
1035
|
return /nonce too low|nonce has already been used|NONCE_EXPIRED|nonce.*already.*(used|known)|lower than the current nonce/i.test(t.join(" "));
|
|
900
1036
|
}
|
|
901
|
-
async function
|
|
1037
|
+
async function gt(e, { attempts: t = 3, delayMs: n = 1e3 } = {}) {
|
|
902
1038
|
for (let r = 1;; r++) try {
|
|
903
1039
|
return await e();
|
|
904
1040
|
} catch (e) {
|
|
905
|
-
if (r >= t || !
|
|
1041
|
+
if (r >= t || !ht(e)) throw e;
|
|
906
1042
|
await new Promise((e) => setTimeout(e, n));
|
|
907
1043
|
}
|
|
908
1044
|
}
|
|
909
1045
|
//#endregion
|
|
910
1046
|
//#region src/helpers/seedSigner.ts
|
|
911
|
-
var
|
|
1047
|
+
var _t = Symbol.for("seedprotocol.SeedSigner"), vt = Symbol.for("seedprotocol.SeedTxSender");
|
|
1048
|
+
function R(e) {
|
|
1049
|
+
return Object.assign(e, { [_t]: !0 });
|
|
1050
|
+
}
|
|
912
1051
|
function z(e) {
|
|
913
|
-
return Object.assign(e, { [
|
|
1052
|
+
return Object.assign(e, { [vt]: !0 });
|
|
914
1053
|
}
|
|
915
1054
|
function B(e) {
|
|
916
|
-
return
|
|
1055
|
+
return !!e && typeof e == "object" && _t in e;
|
|
917
1056
|
}
|
|
918
1057
|
function V(e) {
|
|
919
|
-
return !!e && typeof e == "object" &&
|
|
1058
|
+
return !!e && typeof e == "object" && vt in e;
|
|
920
1059
|
}
|
|
921
1060
|
function H(e) {
|
|
922
|
-
return !!e && typeof e == "object" &&
|
|
923
|
-
}
|
|
924
|
-
function U(e) {
|
|
925
|
-
return !!e && typeof e == "object" && "signer" in e && "txSender" in e && V(e.signer) && H(e.txSender);
|
|
1061
|
+
return !!e && typeof e == "object" && "signer" in e && "txSender" in e && B(e.signer) && V(e.txSender);
|
|
926
1062
|
}
|
|
927
|
-
function
|
|
1063
|
+
function yt(e) {
|
|
928
1064
|
let t = e.address;
|
|
929
1065
|
return {
|
|
930
|
-
signer:
|
|
1066
|
+
signer: R({
|
|
931
1067
|
address: t,
|
|
932
1068
|
signMessage: async ({ message: t }) => {
|
|
933
1069
|
if (typeof t == "string") return await e.signMessage(t);
|
|
934
|
-
let n = t.raw, r = typeof n == "string" ?
|
|
1070
|
+
let n = t.raw, r = typeof n == "string" ? ce.getBytes(n) : n instanceof Uint8Array ? n : new Uint8Array(n);
|
|
935
1071
|
return await e.signMessage(r);
|
|
936
1072
|
}
|
|
937
1073
|
}),
|
|
938
|
-
txSender:
|
|
1074
|
+
txSender: z({
|
|
939
1075
|
address: t,
|
|
940
|
-
sendTransaction: async (t) => ({ transactionHash: (await
|
|
1076
|
+
sendTransaction: async (t) => ({ transactionHash: (await gt(() => e.sendTransaction({
|
|
941
1077
|
to: t.to,
|
|
942
1078
|
data: t.data,
|
|
943
1079
|
value: t.value,
|
|
@@ -946,28 +1082,28 @@ function it(e) {
|
|
|
946
1082
|
})
|
|
947
1083
|
};
|
|
948
1084
|
}
|
|
949
|
-
function
|
|
950
|
-
if (
|
|
951
|
-
if (
|
|
1085
|
+
function bt(e) {
|
|
1086
|
+
if (H(e)) return e.signer;
|
|
1087
|
+
if (B(e)) return e;
|
|
952
1088
|
throw Error("@seedprotocol/publish: expected a SeedSigner or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
|
|
953
1089
|
}
|
|
954
|
-
function
|
|
955
|
-
if (
|
|
956
|
-
if (
|
|
1090
|
+
function xt(e) {
|
|
1091
|
+
if (H(e)) return e.txSender;
|
|
1092
|
+
if (V(e)) return e;
|
|
957
1093
|
throw Error("@seedprotocol/publish: expected a SeedTxSender or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
|
|
958
1094
|
}
|
|
959
|
-
function
|
|
960
|
-
if (
|
|
1095
|
+
function St(e) {
|
|
1096
|
+
if (H(e)) return e;
|
|
961
1097
|
throw Error("@seedprotocol/publish: expected a PublishWallet (signer + txSender). Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
|
|
962
1098
|
}
|
|
963
1099
|
//#endregion
|
|
964
1100
|
//#region src/helpers/thirdwebChain.ts
|
|
965
|
-
var
|
|
966
|
-
function
|
|
967
|
-
let t = e ??
|
|
968
|
-
if (
|
|
1101
|
+
var U = null;
|
|
1102
|
+
function Ct(e) {
|
|
1103
|
+
let t = e ?? Rt() ?? {}, n = t.chain ?? _, r = t.rpcUrl?.trim() || void 0, i = `${n.id}|${r ?? ""}`;
|
|
1104
|
+
if (U?.key === i) return U.chain;
|
|
969
1105
|
let a;
|
|
970
|
-
return a = n.id ===
|
|
1106
|
+
return a = n.id === ue.id && !r ? ue : le({
|
|
971
1107
|
id: n.id,
|
|
972
1108
|
name: n.name,
|
|
973
1109
|
nativeCurrency: n.nativeCurrency,
|
|
@@ -978,14 +1114,14 @@ function ct(e) {
|
|
|
978
1114
|
apiUrl: n
|
|
979
1115
|
})) : void 0,
|
|
980
1116
|
...r ? { rpc: r } : {}
|
|
981
|
-
}),
|
|
1117
|
+
}), U = {
|
|
982
1118
|
key: i,
|
|
983
1119
|
chain: a
|
|
984
1120
|
}, a;
|
|
985
1121
|
}
|
|
986
|
-
var
|
|
987
|
-
function
|
|
988
|
-
if (
|
|
1122
|
+
var wt = /* @__PURE__ */ new Set([31337, 1337]);
|
|
1123
|
+
function Tt(e) {
|
|
1124
|
+
if (wt.has(e.id)) return !0;
|
|
989
1125
|
try {
|
|
990
1126
|
let t = new URL(e.rpc).hostname.replace(/^\[|\]$/g, "");
|
|
991
1127
|
return t === "localhost" || t === "127.0.0.1" || t === "::1" || t.endsWith(".localhost");
|
|
@@ -994,45 +1130,79 @@ function ut(e) {
|
|
|
994
1130
|
}
|
|
995
1131
|
}
|
|
996
1132
|
//#endregion
|
|
1133
|
+
//#region src/helpers/gasLog.ts
|
|
1134
|
+
function W(e, t) {
|
|
1135
|
+
let n = Object.fromEntries(Object.entries(t).map(([e, t]) => [e, typeof t == "bigint" ? t.toString() : t]));
|
|
1136
|
+
console.info(`[seed:gas] ${e}`, n);
|
|
1137
|
+
}
|
|
1138
|
+
function Et(e) {
|
|
1139
|
+
let t = e.paymasterAndData;
|
|
1140
|
+
return {
|
|
1141
|
+
callGasLimit: e.callGasLimit,
|
|
1142
|
+
verificationGasLimit: e.verificationGasLimit,
|
|
1143
|
+
preVerificationGas: e.preVerificationGas,
|
|
1144
|
+
...t === void 0 ? {} : { paymasterAndData: t.length > 20 ? `${t.slice(0, 20)}… (${(t.length - 2) / 2} bytes)` : t }
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
//#endregion
|
|
997
1148
|
//#region src/helpers/adapters/thirdwebAccount.ts
|
|
998
|
-
var
|
|
999
|
-
asSeedSignerFromThirdweb: () =>
|
|
1000
|
-
asThirdwebPublishWallet: () =>
|
|
1149
|
+
var Dt = /* @__PURE__ */ e({
|
|
1150
|
+
asSeedSignerFromThirdweb: () => kt,
|
|
1151
|
+
asThirdwebPublishWallet: () => Ot,
|
|
1001
1152
|
fromThirdwebAccount: () => G
|
|
1002
1153
|
});
|
|
1003
1154
|
function G(e, t) {
|
|
1004
1155
|
let n = t?.client, r = e.address;
|
|
1005
1156
|
return {
|
|
1006
|
-
signer:
|
|
1157
|
+
signer: R({
|
|
1007
1158
|
address: r,
|
|
1008
1159
|
signMessage: async ({ message: t }) => await e.signMessage({ message: t })
|
|
1009
1160
|
}),
|
|
1010
|
-
txSender:
|
|
1161
|
+
txSender: z({
|
|
1011
1162
|
address: r,
|
|
1012
1163
|
sendTransaction: async (t) => {
|
|
1013
|
-
let
|
|
1014
|
-
client:
|
|
1015
|
-
chain:
|
|
1164
|
+
let i = n ?? (await import("./publishThirdwebClient-D-K2WEeM.js").then((e) => e.n)).getClient(), a = Ct(), o = oe({
|
|
1165
|
+
client: i,
|
|
1166
|
+
chain: a,
|
|
1016
1167
|
to: t.to,
|
|
1017
1168
|
data: t.data,
|
|
1018
1169
|
value: t.value,
|
|
1019
1170
|
gas: t.gas
|
|
1020
1171
|
});
|
|
1021
|
-
|
|
1022
|
-
account:
|
|
1023
|
-
|
|
1024
|
-
|
|
1172
|
+
W("sending transaction through thirdweb", {
|
|
1173
|
+
account: r,
|
|
1174
|
+
chainId: a.id,
|
|
1175
|
+
to: t.to,
|
|
1176
|
+
dataBytes: t.data ? (t.data.length - 2) / 2 : 0,
|
|
1177
|
+
txGas: t.gas ?? "(none: thirdweb estimates)"
|
|
1178
|
+
});
|
|
1179
|
+
let s;
|
|
1180
|
+
try {
|
|
1181
|
+
s = await gt(() => se({
|
|
1182
|
+
account: e,
|
|
1183
|
+
transaction: o
|
|
1184
|
+
}));
|
|
1185
|
+
} catch (e) {
|
|
1186
|
+
throw W("thirdweb sendTransaction failed", {
|
|
1187
|
+
account: r,
|
|
1188
|
+
error: e instanceof Error ? e.message : String(e)
|
|
1189
|
+
}), e;
|
|
1190
|
+
}
|
|
1191
|
+
return W("thirdweb sendTransaction returned", {
|
|
1192
|
+
account: r,
|
|
1193
|
+
transactionHash: s.transactionHash
|
|
1194
|
+
}), { transactionHash: s.transactionHash };
|
|
1025
1195
|
}
|
|
1026
1196
|
})
|
|
1027
1197
|
};
|
|
1028
1198
|
}
|
|
1029
|
-
function
|
|
1030
|
-
if (
|
|
1031
|
-
if (
|
|
1199
|
+
function Ot(e, t) {
|
|
1200
|
+
if (H(e)) return e;
|
|
1201
|
+
if (B(e)) throw Error("@seedprotocol/publish/thirdweb: SeedSigner alone cannot send sponsored txs. Pass fromThirdwebAccount(account) or a PublishWallet.");
|
|
1032
1202
|
return G(e, t);
|
|
1033
1203
|
}
|
|
1034
|
-
function
|
|
1035
|
-
return
|
|
1204
|
+
function kt(e) {
|
|
1205
|
+
return H(e) ? e.signer : B(e) ? e : G(e).signer;
|
|
1036
1206
|
}
|
|
1037
1207
|
//#endregion
|
|
1038
1208
|
//#region src/helpers/verifyPublishChain.ts
|
|
@@ -1044,7 +1214,7 @@ var K = class extends Error {
|
|
|
1044
1214
|
super(`@seedprotocol/publish: chain ${e} is not set up for publishing:\n- ${t.join("\n- ")}`), this.chainId = e, this.problems = t;
|
|
1045
1215
|
}
|
|
1046
1216
|
}, q = null;
|
|
1047
|
-
function
|
|
1217
|
+
function At() {
|
|
1048
1218
|
let e = Y();
|
|
1049
1219
|
return [
|
|
1050
1220
|
e.chain.id,
|
|
@@ -1055,12 +1225,12 @@ function mt() {
|
|
|
1055
1225
|
e.modularAccountModuleContract ?? ""
|
|
1056
1226
|
].join("|").toLowerCase();
|
|
1057
1227
|
}
|
|
1058
|
-
async function
|
|
1228
|
+
async function jt() {
|
|
1059
1229
|
let e = Y(), { chain: t } = e, n = [], r;
|
|
1060
1230
|
try {
|
|
1061
|
-
r = await
|
|
1231
|
+
r = await A().getChainId();
|
|
1062
1232
|
} catch (e) {
|
|
1063
|
-
throw new K(t.id, [`could not reach the RPC (${
|
|
1233
|
+
throw new K(t.id, [`could not reach the RPC (${Mt($())}): ${e instanceof Error ? e.message : String(e)}`]);
|
|
1064
1234
|
}
|
|
1065
1235
|
if (r !== t.id) throw new K(t.id, [`the RPC reports chain ${r}, but PublishConfig.chain is ${t.name} (${t.id}). Point rpcUrl at ${t.name}.`]);
|
|
1066
1236
|
let i = [
|
|
@@ -1084,11 +1254,11 @@ async function ht() {
|
|
|
1084
1254
|
e.modularAccountModuleContract?.trim() || void 0,
|
|
1085
1255
|
"deploy the module or fix modularAccountModuleContract"
|
|
1086
1256
|
]
|
|
1087
|
-
], a = await Promise.all(i.map(async ([e, n, r]) => n ? await
|
|
1257
|
+
], a = await Promise.all(i.map(async ([e, n, r]) => n ? await M(n) ? null : `no ${e} at ${n} on ${t.name}; ${r}.` : null));
|
|
1088
1258
|
for (let e of a) e && n.push(e);
|
|
1089
1259
|
if (n.length > 0) throw new K(t.id, n);
|
|
1090
1260
|
}
|
|
1091
|
-
function
|
|
1261
|
+
function Mt(e) {
|
|
1092
1262
|
try {
|
|
1093
1263
|
let t = new URL(e);
|
|
1094
1264
|
return `${t.protocol}//${t.host}`;
|
|
@@ -1096,10 +1266,10 @@ function gt(e) {
|
|
|
1096
1266
|
return "configured rpcUrl";
|
|
1097
1267
|
}
|
|
1098
1268
|
}
|
|
1099
|
-
function
|
|
1100
|
-
let e =
|
|
1269
|
+
function Nt() {
|
|
1270
|
+
let e = At();
|
|
1101
1271
|
if (q?.key === e) return q.result;
|
|
1102
|
-
let t =
|
|
1272
|
+
let t = jt();
|
|
1103
1273
|
return q = {
|
|
1104
1274
|
key: e,
|
|
1105
1275
|
result: t
|
|
@@ -1109,35 +1279,35 @@ function _t() {
|
|
|
1109
1279
|
}
|
|
1110
1280
|
//#endregion
|
|
1111
1281
|
//#region src/services/revoke/revokeAttestations.ts
|
|
1112
|
-
async function
|
|
1282
|
+
async function Pt(e) {
|
|
1113
1283
|
if (!e) return !1;
|
|
1114
1284
|
let t = s();
|
|
1115
1285
|
if (!t) return !1;
|
|
1116
1286
|
let n = await t(), r = e.toLowerCase();
|
|
1117
1287
|
return !!n?.some((e) => e?.toLowerCase() === r);
|
|
1118
1288
|
}
|
|
1119
|
-
async function
|
|
1289
|
+
async function Ft(e, t) {
|
|
1120
1290
|
if (!t || !Y().modularAccountModuleContract?.trim()) return !1;
|
|
1121
1291
|
let n = e.signer?.address;
|
|
1122
1292
|
if (!n || n.toLowerCase() === t.toLowerCase()) return !1;
|
|
1123
1293
|
try {
|
|
1124
|
-
let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-
|
|
1294
|
+
let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-DwRm4YMJ.js").then((e) => e.n);
|
|
1125
1295
|
return await e(t, n);
|
|
1126
1296
|
} catch {
|
|
1127
1297
|
return !1;
|
|
1128
1298
|
}
|
|
1129
1299
|
}
|
|
1130
|
-
async function
|
|
1300
|
+
async function It(e) {
|
|
1131
1301
|
let { seedLocalId: t, seedUid: n, seedSchemaUid: a } = e;
|
|
1132
|
-
await i(), await
|
|
1302
|
+
await i(), await Nt();
|
|
1133
1303
|
let s = await o({
|
|
1134
1304
|
seedLocalId: t,
|
|
1135
1305
|
seedUid: n
|
|
1136
1306
|
});
|
|
1137
|
-
if (await
|
|
1138
|
-
let u =
|
|
1307
|
+
if (await Pt(s)) throw Error("Revocation not supported for items attested by the Seed executor module: the executor has no revoke and is the only attester that could revoke them.");
|
|
1308
|
+
let u = L();
|
|
1139
1309
|
if (!u) try {
|
|
1140
|
-
let { getConnectedAccount: e } = await import("./publishAuthorization-
|
|
1310
|
+
let { getConnectedAccount: e } = await import("./publishAuthorization-CvK_coYp.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-QgZ6YZuS.js"), n = await e();
|
|
1141
1311
|
if (!n) throw Error("No wallet connected. Connect a wallet to revoke attestations.");
|
|
1142
1312
|
u = G(await t({
|
|
1143
1313
|
account: n,
|
|
@@ -1147,7 +1317,7 @@ async function bt(e) {
|
|
|
1147
1317
|
throw e instanceof Error && e.message.includes("No wallet connected") || e instanceof Error && e.message.includes("Revocation not supported") ? e : Error("No wallet connected. Use useSeedWallet / setPublishWallet, or @seedprotocol/publish/thirdweb ConnectButton.", { cause: e });
|
|
1148
1318
|
}
|
|
1149
1319
|
let d = u.txSender;
|
|
1150
|
-
if (await
|
|
1320
|
+
if (await Ft(u, s)) throw Error("Automation session keys cannot revoke attestations. Revoking is owner-only: connect the account that published this item.");
|
|
1151
1321
|
let [te, f] = await Promise.all([ee(n), c(n)]), p = te.map((e) => e.uid).filter((e) => l(e)), m = /* @__PURE__ */ new Map();
|
|
1152
1322
|
for (let { uid: e, schemaUid: t } of f) {
|
|
1153
1323
|
if (!l(e)) continue;
|
|
@@ -1168,9 +1338,9 @@ async function bt(e) {
|
|
|
1168
1338
|
});
|
|
1169
1339
|
for (let e of h) {
|
|
1170
1340
|
if (e.data.length === 0) continue;
|
|
1171
|
-
let t =
|
|
1341
|
+
let t = dt([e]);
|
|
1172
1342
|
try {
|
|
1173
|
-
await
|
|
1343
|
+
await j((await d.sendTransaction(t)).transactionHash);
|
|
1174
1344
|
} catch (e) {
|
|
1175
1345
|
let t = e instanceof Error ? e.message : String(e);
|
|
1176
1346
|
if (t.includes("AccessDenied") || t.includes("0x4ca88867")) throw Error("Only the original attester can revoke attestations. Connect the wallet that published this item.");
|
|
@@ -1181,34 +1351,36 @@ async function bt(e) {
|
|
|
1181
1351
|
let g = Math.floor(Date.now() / 1e3);
|
|
1182
1352
|
await ne({
|
|
1183
1353
|
seedLocalId: t,
|
|
1184
|
-
revokedAt: g
|
|
1354
|
+
revokedAt: g,
|
|
1355
|
+
metadataUids: [...m.values()].flat(),
|
|
1356
|
+
versionUids: p
|
|
1185
1357
|
});
|
|
1186
1358
|
}
|
|
1187
1359
|
//#endregion
|
|
1188
1360
|
//#region src/config.ts
|
|
1189
|
-
|
|
1361
|
+
fe("publish");
|
|
1190
1362
|
var J = null;
|
|
1191
|
-
function
|
|
1363
|
+
function Lt(e) {
|
|
1192
1364
|
J = e;
|
|
1193
1365
|
}
|
|
1194
|
-
function
|
|
1366
|
+
function Rt() {
|
|
1195
1367
|
return J;
|
|
1196
1368
|
}
|
|
1197
|
-
function
|
|
1369
|
+
function zt(e) {
|
|
1198
1370
|
let t = X(e);
|
|
1199
|
-
|
|
1371
|
+
de("publish", {
|
|
1200
1372
|
chainId: t.chainId,
|
|
1201
1373
|
indexerUrl: t.indexerUrl
|
|
1202
|
-
}),
|
|
1203
|
-
let e =
|
|
1374
|
+
}), Lt(e), d(async () => {
|
|
1375
|
+
let e = L();
|
|
1204
1376
|
if (e?.publisherAddress) return e.publisherAddress;
|
|
1205
1377
|
if (e?.signer?.address) return e.signer.address;
|
|
1206
|
-
}), te(
|
|
1378
|
+
}), te(It), import("./worker-qoGuo876.js").then((e) => {
|
|
1207
1379
|
e.startArweaveL1FinalizeWorker();
|
|
1208
1380
|
}), u(async () => e.useModularExecutor && e.modularAccountModuleContract ? [e.modularAccountModuleContract] : []);
|
|
1209
1381
|
}
|
|
1210
|
-
var
|
|
1211
|
-
function
|
|
1382
|
+
var Bt = zt;
|
|
1383
|
+
function Vt(e) {
|
|
1212
1384
|
let t = e?.thirdweb ?? {};
|
|
1213
1385
|
return {
|
|
1214
1386
|
bundlerUrl: t.bundlerUrl?.trim() || void 0,
|
|
@@ -1222,7 +1394,7 @@ function Y() {
|
|
|
1222
1394
|
let t = e.useArweaveBundler ?? !1, r = e.arweaveUploadVerificationBaseUrl ?? e.uploadApiBaseUrl, i = e.arweaveGraphqlUrl ?? n, a = e.useModularExecutor ?? !1, o = e.chain ?? _, s = X(e), c = e.accountMode ?? (e.bundlerUrl ? "eip7702" : "eoa");
|
|
1223
1395
|
return {
|
|
1224
1396
|
...e,
|
|
1225
|
-
thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ??
|
|
1397
|
+
thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? he[o.id],
|
|
1226
1398
|
easContractAddress: s.easContractAddress,
|
|
1227
1399
|
schemaRegistryAddress: s.schemaRegistryAddress,
|
|
1228
1400
|
easChain: s,
|
|
@@ -1233,16 +1405,16 @@ function Y() {
|
|
|
1233
1405
|
arweaveUploadVerificationBaseUrl: r,
|
|
1234
1406
|
arweaveGraphqlUrl: i,
|
|
1235
1407
|
autoDeployManagedAccount: e.autoDeployManagedAccount ?? !1,
|
|
1236
|
-
autoDeployEip7702ModularAccount:
|
|
1408
|
+
autoDeployEip7702ModularAccount: Ht(e, a),
|
|
1237
1409
|
chain: o,
|
|
1238
1410
|
accountMode: c,
|
|
1239
|
-
thirdweb:
|
|
1411
|
+
thirdweb: Vt(e)
|
|
1240
1412
|
};
|
|
1241
1413
|
}
|
|
1242
1414
|
function X(e) {
|
|
1243
1415
|
let t = e.chain ?? _;
|
|
1244
1416
|
try {
|
|
1245
|
-
return
|
|
1417
|
+
return pe(t.id, {
|
|
1246
1418
|
name: t.name,
|
|
1247
1419
|
easContractAddress: e.easContractAddress,
|
|
1248
1420
|
schemaRegistryAddress: e.schemaRegistryAddress
|
|
@@ -1256,7 +1428,7 @@ function Z() {
|
|
|
1256
1428
|
if (!e) throw Error(`@seedprotocol/publish: no ManagedAccount factory is known for ${t.name} (chain ${t.id}). Pass managedAccountFactoryAddress in publish config, or use the EOA / direct EAS path.`);
|
|
1257
1429
|
return e;
|
|
1258
1430
|
}
|
|
1259
|
-
function
|
|
1431
|
+
function Ht(e, t) {
|
|
1260
1432
|
return e.autoDeployEip7702ModularAccount === !0 || e.autoDeployEip7702ModularAccount !== !1 && t;
|
|
1261
1433
|
}
|
|
1262
1434
|
//#endregion
|
|
@@ -1274,10 +1446,10 @@ function $() {
|
|
|
1274
1446
|
if (e.thirdwebClientId) return `https://${(e.chain ?? _).id}.rpc.thirdweb.com/${e.thirdwebClientId}`;
|
|
1275
1447
|
throw Error("@seedprotocol/publish: rpcUrl is required when thirdwebClientId is not set. A thirdwebSecretKey authenticates Thirdweb RPC but does not build this URL. Pass rpcUrl or thirdwebClientId in initPublish / PublishProvider config.");
|
|
1276
1448
|
}
|
|
1277
|
-
function
|
|
1449
|
+
function Ut() {
|
|
1278
1450
|
return Q().name;
|
|
1279
1451
|
}
|
|
1280
1452
|
//#endregion
|
|
1281
|
-
export {
|
|
1453
|
+
export { We as $, mt as A, be as At, dt as B, xt as C, we as Ct, H as D, ye as Dt, yt as E, me as Et, ct as F, Be as G, P as H, lt as I, rt as J, Ke as K, ut as L, pt as M, _e as Mt, it as N, B as O, he as Ot, at as P, Ze as Q, ot as R, bt as S, x as St, z as T, _ as Tt, F as U, Qe as V, et as W, He as X, qe as Y, Ve as Z, Et as _, Oe as _t, Rt as a, Ue as at, Tt as b, S as bt, Z as c, M as ct, K as d, j as dt, Je as et, Nt as f, De as ft, Dt as g, Ae as gt, G as h, E as ht, Bt as i, Ge as it, L as j, ve as jt, V as k, ge as kt, X as l, Re as lt, Ot as m, T as mt, $ as n, Xe as nt, Y as o, Fe as ot, kt as p, D as pt, N as q, Q as r, nt as rt, zt as s, A as st, Ut as t, Ye as tt, Vt as u, Pe as ut, W as v, je as vt, R as w, v as wt, St as x, Te as xt, Ct as y, w as yt, st as z };
|
|
1282
1454
|
|
|
1283
|
-
//# sourceMappingURL=chainConfig-
|
|
1455
|
+
//# sourceMappingURL=chainConfig-BJ8C_RRz.js.map
|