@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,1424 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { optimismSepolia as t } from "viem/chains";
|
|
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 te, setRevokeExecutor as ne, updateSeedRevokedAt as re } from "@seedprotocol/sdk";
|
|
4
|
-
import { createPublicClient as d, encodeAbiParameters as f, encodeFunctionData as p, http as m, parseEventLogs as h } from "viem";
|
|
5
|
-
import { prepareTransaction as ie, sendTransaction as ae } from "thirdweb";
|
|
6
|
-
import { ethers as oe } from "ethers";
|
|
7
|
-
import { defineChain as se, optimismSepolia as ce } from "thirdweb/chains";
|
|
8
|
-
import { configureEasReadChain as le, expectEasReadChain as ue, resolveEasChainDeployment as de } from "@seedprotocol/eas";
|
|
9
|
-
//#region src/helpers/constants.ts
|
|
10
|
-
var fe = "0x44d562ac1d7cd77e232978687fea027ace48f719cf1d58c7888e509663bb87fc", pe = { 11155420: "0x76f47d88bfaf670f5208911181fcdc0e160cb16d" }, me = "0xcd8c945872df8e664e55cf8885c85ea3ea8f2148", he = me, ge = {
|
|
11
|
-
SUCCESS: "success",
|
|
12
|
-
FAILURE: "failure"
|
|
13
|
-
}, _e = [
|
|
14
|
-
"pollingForConfirmation",
|
|
15
|
-
"uploadingData",
|
|
16
|
-
"uploadingViaBundler",
|
|
17
|
-
"uploadingViaBundlerPhase2"
|
|
18
|
-
], ve = 3e4, g = t, ye = [
|
|
19
|
-
{
|
|
20
|
-
type: "error",
|
|
21
|
-
name: "AccessDenied",
|
|
22
|
-
inputs: []
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
type: "error",
|
|
26
|
-
name: "AlreadyRevoked",
|
|
27
|
-
inputs: []
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
type: "error",
|
|
31
|
-
name: "InvalidRevocation",
|
|
32
|
-
inputs: []
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: "error",
|
|
36
|
-
name: "InvalidRevocations",
|
|
37
|
-
inputs: []
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
type: "error",
|
|
41
|
-
name: "InvalidSchema",
|
|
42
|
-
inputs: []
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: "error",
|
|
46
|
-
name: "Irrevocable",
|
|
47
|
-
inputs: []
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: "error",
|
|
51
|
-
name: "NotFound",
|
|
52
|
-
inputs: []
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: "error",
|
|
56
|
-
name: "NotPayable",
|
|
57
|
-
inputs: []
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
type: "error",
|
|
61
|
-
name: "InsufficientValue",
|
|
62
|
-
inputs: []
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
type: "error",
|
|
66
|
-
name: "InvalidLength",
|
|
67
|
-
inputs: []
|
|
68
|
-
}
|
|
69
|
-
], be = [
|
|
70
|
-
{
|
|
71
|
-
name: "recipient",
|
|
72
|
-
type: "address"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: "expirationTime",
|
|
76
|
-
type: "uint64"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "revocable",
|
|
80
|
-
type: "bool"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: "refUID",
|
|
84
|
-
type: "bytes32"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "data",
|
|
88
|
-
type: "bytes"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: "value",
|
|
92
|
-
type: "uint256"
|
|
93
|
-
}
|
|
94
|
-
], _ = [
|
|
95
|
-
{
|
|
96
|
-
type: "function",
|
|
97
|
-
name: "attest",
|
|
98
|
-
stateMutability: "payable",
|
|
99
|
-
inputs: [{
|
|
100
|
-
name: "request",
|
|
101
|
-
type: "tuple",
|
|
102
|
-
components: [{
|
|
103
|
-
name: "schema",
|
|
104
|
-
type: "bytes32"
|
|
105
|
-
}, {
|
|
106
|
-
name: "data",
|
|
107
|
-
type: "tuple",
|
|
108
|
-
components: be
|
|
109
|
-
}]
|
|
110
|
-
}],
|
|
111
|
-
outputs: [{ type: "bytes32" }]
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
type: "function",
|
|
115
|
-
name: "multiAttest",
|
|
116
|
-
stateMutability: "payable",
|
|
117
|
-
inputs: [{
|
|
118
|
-
name: "requests",
|
|
119
|
-
type: "tuple[]",
|
|
120
|
-
components: [{
|
|
121
|
-
name: "schema",
|
|
122
|
-
type: "bytes32"
|
|
123
|
-
}, {
|
|
124
|
-
name: "data",
|
|
125
|
-
type: "tuple[]",
|
|
126
|
-
components: be
|
|
127
|
-
}]
|
|
128
|
-
}],
|
|
129
|
-
outputs: [{ type: "bytes32[]" }]
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
type: "function",
|
|
133
|
-
name: "multiRevoke",
|
|
134
|
-
stateMutability: "payable",
|
|
135
|
-
inputs: [{
|
|
136
|
-
name: "multiRequests",
|
|
137
|
-
type: "tuple[]",
|
|
138
|
-
components: [{
|
|
139
|
-
name: "schema",
|
|
140
|
-
type: "bytes32"
|
|
141
|
-
}, {
|
|
142
|
-
name: "data",
|
|
143
|
-
type: "tuple[]",
|
|
144
|
-
components: [{
|
|
145
|
-
name: "uid",
|
|
146
|
-
type: "bytes32"
|
|
147
|
-
}, {
|
|
148
|
-
name: "value",
|
|
149
|
-
type: "uint256"
|
|
150
|
-
}]
|
|
151
|
-
}]
|
|
152
|
-
}],
|
|
153
|
-
outputs: []
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
type: "event",
|
|
157
|
-
name: "Attested",
|
|
158
|
-
inputs: [
|
|
159
|
-
{
|
|
160
|
-
name: "recipient",
|
|
161
|
-
type: "address",
|
|
162
|
-
indexed: !0
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
name: "attester",
|
|
166
|
-
type: "address",
|
|
167
|
-
indexed: !0
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: "uid",
|
|
171
|
-
type: "bytes32",
|
|
172
|
-
indexed: !1
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
name: "schemaUID",
|
|
176
|
-
type: "bytes32",
|
|
177
|
-
indexed: !0
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
|
-
...ye
|
|
182
|
-
], xe = [{
|
|
183
|
-
name: "schema",
|
|
184
|
-
type: "bytes32"
|
|
185
|
-
}, {
|
|
186
|
-
name: "data",
|
|
187
|
-
type: "tuple[]",
|
|
188
|
-
components: [
|
|
189
|
-
{
|
|
190
|
-
name: "recipient",
|
|
191
|
-
type: "address"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: "expirationTime",
|
|
195
|
-
type: "uint64"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name: "revocable",
|
|
199
|
-
type: "bool"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
name: "refUID",
|
|
203
|
-
type: "bytes32"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: "data",
|
|
207
|
-
type: "bytes"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
name: "value",
|
|
211
|
-
type: "uint256"
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
}], Se = [{
|
|
215
|
-
type: "function",
|
|
216
|
-
name: "multiPublish",
|
|
217
|
-
stateMutability: "nonpayable",
|
|
218
|
-
inputs: [{
|
|
219
|
-
name: "requests",
|
|
220
|
-
type: "tuple[]",
|
|
221
|
-
components: [
|
|
222
|
-
{
|
|
223
|
-
name: "localId",
|
|
224
|
-
type: "string"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: "seedUid",
|
|
228
|
-
type: "bytes32"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
name: "seedSchemaUid",
|
|
232
|
-
type: "bytes32"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
name: "versionUid",
|
|
236
|
-
type: "bytes32"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
name: "versionSchemaUid",
|
|
240
|
-
type: "bytes32"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
name: "seedIsRevocable",
|
|
244
|
-
type: "bool"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
name: "listOfAttestations",
|
|
248
|
-
type: "tuple[]",
|
|
249
|
-
components: xe
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
name: "propertiesToUpdate",
|
|
253
|
-
type: "tuple[]",
|
|
254
|
-
components: [{
|
|
255
|
-
name: "publishLocalId",
|
|
256
|
-
type: "string"
|
|
257
|
-
}, {
|
|
258
|
-
name: "propertySchemaUid",
|
|
259
|
-
type: "bytes32"
|
|
260
|
-
}]
|
|
261
|
-
}
|
|
262
|
-
]
|
|
263
|
-
}],
|
|
264
|
-
outputs: [{ type: "bytes32[]" }]
|
|
265
|
-
}], Ce = [{
|
|
266
|
-
type: "function",
|
|
267
|
-
name: "multiPublish",
|
|
268
|
-
stateMutability: "nonpayable",
|
|
269
|
-
inputs: [{
|
|
270
|
-
name: "requests",
|
|
271
|
-
type: "tuple[]",
|
|
272
|
-
components: [
|
|
273
|
-
{
|
|
274
|
-
name: "localIdIndex",
|
|
275
|
-
type: "uint256"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
name: "seedUid",
|
|
279
|
-
type: "bytes32"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
name: "seedSchemaUid",
|
|
283
|
-
type: "bytes32"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
name: "versionUid",
|
|
287
|
-
type: "bytes32"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
name: "versionSchemaUid",
|
|
291
|
-
type: "bytes32"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
name: "seedIsRevocable",
|
|
295
|
-
type: "bool"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
name: "listOfAttestations",
|
|
299
|
-
type: "tuple[]",
|
|
300
|
-
components: xe
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
name: "propertiesToUpdate",
|
|
304
|
-
type: "tuple[]",
|
|
305
|
-
components: [{
|
|
306
|
-
name: "publishLocalIdIndex",
|
|
307
|
-
type: "uint256"
|
|
308
|
-
}, {
|
|
309
|
-
name: "propertySchemaUid",
|
|
310
|
-
type: "bytes32"
|
|
311
|
-
}]
|
|
312
|
-
}
|
|
313
|
-
]
|
|
314
|
-
}],
|
|
315
|
-
outputs: [{ type: "bytes32[]" }]
|
|
316
|
-
}], v = [
|
|
317
|
-
{
|
|
318
|
-
type: "function",
|
|
319
|
-
name: "getEas",
|
|
320
|
-
stateMutability: "view",
|
|
321
|
-
inputs: [],
|
|
322
|
-
outputs: [{ type: "address" }]
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
type: "function",
|
|
326
|
-
name: "setEas",
|
|
327
|
-
stateMutability: "nonpayable",
|
|
328
|
-
inputs: [{
|
|
329
|
-
name: "_eas",
|
|
330
|
-
type: "address"
|
|
331
|
-
}],
|
|
332
|
-
outputs: [{ type: "string" }]
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
type: "function",
|
|
336
|
-
name: "isActiveSigner",
|
|
337
|
-
stateMutability: "view",
|
|
338
|
-
inputs: [{
|
|
339
|
-
name: "signer",
|
|
340
|
-
type: "address"
|
|
341
|
-
}],
|
|
342
|
-
outputs: [{ type: "bool" }]
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
type: "function",
|
|
346
|
-
name: "isAdmin",
|
|
347
|
-
stateMutability: "view",
|
|
348
|
-
inputs: [{
|
|
349
|
-
name: "signer",
|
|
350
|
-
type: "address"
|
|
351
|
-
}],
|
|
352
|
-
outputs: [{ type: "bool" }]
|
|
353
|
-
}
|
|
354
|
-
], we = [{
|
|
355
|
-
type: "event",
|
|
356
|
-
name: "CreatedAttestation",
|
|
357
|
-
inputs: [{
|
|
358
|
-
name: "result",
|
|
359
|
-
type: "tuple",
|
|
360
|
-
indexed: !1,
|
|
361
|
-
components: [{
|
|
362
|
-
name: "schemaUid",
|
|
363
|
-
type: "bytes32"
|
|
364
|
-
}, {
|
|
365
|
-
name: "attestationUid",
|
|
366
|
-
type: "bytes32"
|
|
367
|
-
}]
|
|
368
|
-
}]
|
|
369
|
-
}, {
|
|
370
|
-
type: "event",
|
|
371
|
-
name: "SeedPublished",
|
|
372
|
-
inputs: [{
|
|
373
|
-
name: "returnedDataFromEAS",
|
|
374
|
-
type: "bytes",
|
|
375
|
-
indexed: !1
|
|
376
|
-
}]
|
|
377
|
-
}], y = [{
|
|
378
|
-
type: "function",
|
|
379
|
-
name: "getAddress",
|
|
380
|
-
stateMutability: "view",
|
|
381
|
-
inputs: [{
|
|
382
|
-
name: "_adminSigner",
|
|
383
|
-
type: "address"
|
|
384
|
-
}, {
|
|
385
|
-
name: "_data",
|
|
386
|
-
type: "bytes"
|
|
387
|
-
}],
|
|
388
|
-
outputs: [{ type: "address" }]
|
|
389
|
-
}, {
|
|
390
|
-
type: "function",
|
|
391
|
-
name: "createAccount",
|
|
392
|
-
stateMutability: "nonpayable",
|
|
393
|
-
inputs: [{
|
|
394
|
-
name: "_admin",
|
|
395
|
-
type: "address"
|
|
396
|
-
}, {
|
|
397
|
-
name: "_data",
|
|
398
|
-
type: "bytes"
|
|
399
|
-
}],
|
|
400
|
-
outputs: [{ type: "address" }]
|
|
401
|
-
}], Te = [{
|
|
402
|
-
type: "event",
|
|
403
|
-
name: "CreatedAttestation",
|
|
404
|
-
inputs: [{
|
|
405
|
-
name: "result",
|
|
406
|
-
type: "tuple",
|
|
407
|
-
indexed: !1,
|
|
408
|
-
components: [{
|
|
409
|
-
name: "schemaUid",
|
|
410
|
-
type: "bytes32"
|
|
411
|
-
}, {
|
|
412
|
-
name: "attestationUid",
|
|
413
|
-
type: "bytes32"
|
|
414
|
-
}]
|
|
415
|
-
}]
|
|
416
|
-
}, {
|
|
417
|
-
type: "event",
|
|
418
|
-
name: "SeedPublished",
|
|
419
|
-
inputs: [{
|
|
420
|
-
name: "seedUid",
|
|
421
|
-
type: "bytes32",
|
|
422
|
-
indexed: !1
|
|
423
|
-
}, {
|
|
424
|
-
name: "versionUid",
|
|
425
|
-
type: "bytes32",
|
|
426
|
-
indexed: !1
|
|
427
|
-
}]
|
|
428
|
-
}], b = [
|
|
429
|
-
{
|
|
430
|
-
type: "function",
|
|
431
|
-
name: "multiPublish",
|
|
432
|
-
stateMutability: "payable",
|
|
433
|
-
inputs: [{
|
|
434
|
-
name: "requests",
|
|
435
|
-
type: "tuple[]",
|
|
436
|
-
components: [
|
|
437
|
-
{
|
|
438
|
-
name: "localId",
|
|
439
|
-
type: "string"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
name: "seedUid",
|
|
443
|
-
type: "bytes32"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
name: "versionUid",
|
|
447
|
-
type: "bytes32"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
name: "seedSchemaUid",
|
|
451
|
-
type: "bytes32"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
name: "versionSchemaUid",
|
|
455
|
-
type: "bytes32"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
name: "seedIsRevocable",
|
|
459
|
-
type: "bool"
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
name: "listOfAttestations",
|
|
463
|
-
type: "tuple[]",
|
|
464
|
-
components: [{
|
|
465
|
-
name: "schema",
|
|
466
|
-
type: "bytes32"
|
|
467
|
-
}, {
|
|
468
|
-
name: "data",
|
|
469
|
-
type: "tuple[]",
|
|
470
|
-
components: [
|
|
471
|
-
{
|
|
472
|
-
name: "recipient",
|
|
473
|
-
type: "address"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
name: "expirationTime",
|
|
477
|
-
type: "uint64"
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
name: "revocable",
|
|
481
|
-
type: "bool"
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
name: "refUID",
|
|
485
|
-
type: "bytes32"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
name: "data",
|
|
489
|
-
type: "bytes"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
name: "value",
|
|
493
|
-
type: "uint256"
|
|
494
|
-
}
|
|
495
|
-
]
|
|
496
|
-
}]
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
name: "propertiesToUpdate",
|
|
500
|
-
type: "tuple[]",
|
|
501
|
-
components: [{
|
|
502
|
-
name: "publishIndex",
|
|
503
|
-
type: "uint256"
|
|
504
|
-
}, {
|
|
505
|
-
name: "propertySchemaUid",
|
|
506
|
-
type: "bytes32"
|
|
507
|
-
}]
|
|
508
|
-
}
|
|
509
|
-
]
|
|
510
|
-
}],
|
|
511
|
-
outputs: [{
|
|
512
|
-
name: "",
|
|
513
|
-
type: "bytes32[]"
|
|
514
|
-
}]
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
type: "function",
|
|
518
|
-
name: "isInitialized",
|
|
519
|
-
stateMutability: "view",
|
|
520
|
-
inputs: [{
|
|
521
|
-
name: "account",
|
|
522
|
-
type: "address"
|
|
523
|
-
}],
|
|
524
|
-
outputs: [{
|
|
525
|
-
name: "",
|
|
526
|
-
type: "bool"
|
|
527
|
-
}]
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
type: "function",
|
|
531
|
-
name: "getEAS",
|
|
532
|
-
stateMutability: "view",
|
|
533
|
-
inputs: [{
|
|
534
|
-
name: "account",
|
|
535
|
-
type: "address"
|
|
536
|
-
}],
|
|
537
|
-
outputs: [{
|
|
538
|
-
name: "",
|
|
539
|
-
type: "address"
|
|
540
|
-
}]
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
type: "error",
|
|
544
|
-
name: "AlreadyInitialized",
|
|
545
|
-
inputs: [{
|
|
546
|
-
name: "account",
|
|
547
|
-
type: "address"
|
|
548
|
-
}]
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
type: "error",
|
|
552
|
-
name: "NotInitialized",
|
|
553
|
-
inputs: [{
|
|
554
|
-
name: "account",
|
|
555
|
-
type: "address"
|
|
556
|
-
}]
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
type: "error",
|
|
560
|
-
name: "InvalidEASAddress",
|
|
561
|
-
inputs: []
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
type: "error",
|
|
565
|
-
name: "AttestationFailed",
|
|
566
|
-
inputs: []
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
type: "error",
|
|
570
|
-
name: "MultiAttestFailed",
|
|
571
|
-
inputs: []
|
|
572
|
-
}
|
|
573
|
-
], x = [
|
|
574
|
-
{
|
|
575
|
-
type: "function",
|
|
576
|
-
name: "installSeedExecutor",
|
|
577
|
-
stateMutability: "nonpayable",
|
|
578
|
-
inputs: [],
|
|
579
|
-
outputs: []
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
type: "function",
|
|
583
|
-
name: "getSeedExecutor",
|
|
584
|
-
stateMutability: "view",
|
|
585
|
-
inputs: [],
|
|
586
|
-
outputs: [{
|
|
587
|
-
name: "executor",
|
|
588
|
-
type: "address"
|
|
589
|
-
}, {
|
|
590
|
-
name: "eas",
|
|
591
|
-
type: "address"
|
|
592
|
-
}]
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
type: "function",
|
|
596
|
-
name: "isModuleInstalled",
|
|
597
|
-
stateMutability: "view",
|
|
598
|
-
inputs: [
|
|
599
|
-
{
|
|
600
|
-
name: "moduleTypeId",
|
|
601
|
-
type: "uint256"
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
name: "module",
|
|
605
|
-
type: "address"
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
name: "additionalContext",
|
|
609
|
-
type: "bytes"
|
|
610
|
-
}
|
|
611
|
-
],
|
|
612
|
-
outputs: [{
|
|
613
|
-
name: "",
|
|
614
|
-
type: "bool"
|
|
615
|
-
}]
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
type: "error",
|
|
619
|
-
name: "Unauthorized",
|
|
620
|
-
inputs: [{
|
|
621
|
-
name: "caller",
|
|
622
|
-
type: "address"
|
|
623
|
-
}]
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
type: "error",
|
|
627
|
-
name: "SeedExecutorAlreadyInstalled",
|
|
628
|
-
inputs: []
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
type: "error",
|
|
632
|
-
name: "SeedExecutorNotInstalled",
|
|
633
|
-
inputs: []
|
|
634
|
-
}
|
|
635
|
-
], Ee = 2n, S = [{
|
|
636
|
-
type: "function",
|
|
637
|
-
name: "getSchema",
|
|
638
|
-
stateMutability: "view",
|
|
639
|
-
inputs: [{
|
|
640
|
-
name: "uid",
|
|
641
|
-
type: "bytes32"
|
|
642
|
-
}],
|
|
643
|
-
outputs: [{
|
|
644
|
-
name: "",
|
|
645
|
-
type: "tuple",
|
|
646
|
-
components: [
|
|
647
|
-
{
|
|
648
|
-
name: "uid",
|
|
649
|
-
type: "bytes32"
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
name: "resolver",
|
|
653
|
-
type: "address"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
name: "revocable",
|
|
657
|
-
type: "bool"
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
name: "schema",
|
|
661
|
-
type: "string"
|
|
662
|
-
}
|
|
663
|
-
]
|
|
664
|
-
}]
|
|
665
|
-
}, {
|
|
666
|
-
type: "function",
|
|
667
|
-
name: "register",
|
|
668
|
-
stateMutability: "nonpayable",
|
|
669
|
-
inputs: [
|
|
670
|
-
{
|
|
671
|
-
name: "schema",
|
|
672
|
-
type: "string"
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
name: "resolver",
|
|
676
|
-
type: "address"
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
name: "revocable",
|
|
680
|
-
type: "bool"
|
|
681
|
-
}
|
|
682
|
-
],
|
|
683
|
-
outputs: [{ type: "bytes32" }]
|
|
684
|
-
}], C = null, w = null;
|
|
685
|
-
function De() {
|
|
686
|
-
try {
|
|
687
|
-
let e = Y().thirdwebSecretKey;
|
|
688
|
-
return e ? { headers: { "x-secret-key": e } } : void 0;
|
|
689
|
-
} catch {
|
|
690
|
-
return;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
function Oe() {
|
|
694
|
-
let e = Q(), t = $(), n = De();
|
|
695
|
-
return d({
|
|
696
|
-
chain: e,
|
|
697
|
-
transport: m(t, n ? { fetchOptions: n } : void 0)
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
function T() {
|
|
701
|
-
let e = Q(), t = $(), n = "";
|
|
702
|
-
try {
|
|
703
|
-
n = Y().thirdwebSecretKey ?? "";
|
|
704
|
-
} catch {
|
|
705
|
-
n = "";
|
|
706
|
-
}
|
|
707
|
-
let r = `${e.id}:${t}:${n ? "1" : "0"}:${n}`;
|
|
708
|
-
return (!C || w !== r) && (w = r, C = Oe()), C;
|
|
709
|
-
}
|
|
710
|
-
async function E(e) {
|
|
711
|
-
return T().waitForTransactionReceipt({ hash: e });
|
|
712
|
-
}
|
|
713
|
-
async function D(e) {
|
|
714
|
-
let t = await T().getBytecode({ address: e });
|
|
715
|
-
return !!t && t !== "0x";
|
|
716
|
-
}
|
|
717
|
-
async function ke(e) {
|
|
718
|
-
try {
|
|
719
|
-
let t = await T().getBlock({ blockNumber: e });
|
|
720
|
-
if (t?.timestamp != null) return Number(t.timestamp) * 1e3;
|
|
721
|
-
} catch {}
|
|
722
|
-
return null;
|
|
723
|
-
}
|
|
724
|
-
var Ae = 5, je = 6e3;
|
|
725
|
-
async function Me(e, t = Ae, n = je) {
|
|
726
|
-
for (let r = 0; r < t; r++) {
|
|
727
|
-
if (await D(e)) return !0;
|
|
728
|
-
r < t - 1 && await new Promise((e) => {
|
|
729
|
-
setTimeout(e, n);
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
return !1;
|
|
733
|
-
}
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region src/helpers/contracts/index.ts
|
|
736
|
-
function Ne(e, t, n) {
|
|
737
|
-
return {
|
|
738
|
-
to: e,
|
|
739
|
-
data: p({
|
|
740
|
-
abi: Se,
|
|
741
|
-
functionName: "multiPublish",
|
|
742
|
-
args: [t]
|
|
743
|
-
}),
|
|
744
|
-
gas: n
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
function Pe(e, t, n) {
|
|
748
|
-
return {
|
|
749
|
-
to: e,
|
|
750
|
-
data: p({
|
|
751
|
-
abi: Ce,
|
|
752
|
-
functionName: "multiPublish",
|
|
753
|
-
args: [t]
|
|
754
|
-
}),
|
|
755
|
-
gas: n
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
function Fe(e, t, n) {
|
|
759
|
-
let r = /* @__PURE__ */ new Map();
|
|
760
|
-
t.forEach((e, t) => {
|
|
761
|
-
e.localId && r.set(e.localId, BigInt(t));
|
|
762
|
-
});
|
|
763
|
-
let i = t.map((e) => ({
|
|
764
|
-
localId: e.localId,
|
|
765
|
-
seedUid: e.seedUid,
|
|
766
|
-
versionUid: e.versionUid,
|
|
767
|
-
seedSchemaUid: e.seedSchemaUid,
|
|
768
|
-
versionSchemaUid: e.versionSchemaUid,
|
|
769
|
-
seedIsRevocable: e.seedIsRevocable,
|
|
770
|
-
listOfAttestations: e.listOfAttestations,
|
|
771
|
-
propertiesToUpdate: (e.propertiesToUpdate ?? []).flatMap((e) => {
|
|
772
|
-
let t = e.publishLocalId ? r.get(e.publishLocalId) : void 0;
|
|
773
|
-
return t === void 0 ? [] : [{
|
|
774
|
-
publishIndex: t,
|
|
775
|
-
propertySchemaUid: e.propertySchemaUid
|
|
776
|
-
}];
|
|
777
|
-
})
|
|
778
|
-
}));
|
|
779
|
-
return {
|
|
780
|
-
to: e,
|
|
781
|
-
data: p({
|
|
782
|
-
abi: b,
|
|
783
|
-
functionName: "multiPublish",
|
|
784
|
-
args: [i]
|
|
785
|
-
}),
|
|
786
|
-
gas: n
|
|
787
|
-
};
|
|
788
|
-
}
|
|
789
|
-
async function Ie(e, t) {
|
|
790
|
-
return T().readContract({
|
|
791
|
-
address: e,
|
|
792
|
-
abi: b,
|
|
793
|
-
functionName: "isInitialized",
|
|
794
|
-
args: [t]
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
async function Le(e, t) {
|
|
798
|
-
return T().readContract({
|
|
799
|
-
address: e,
|
|
800
|
-
abi: b,
|
|
801
|
-
functionName: "getEAS",
|
|
802
|
-
args: [t]
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
async function Re(e) {
|
|
806
|
-
try {
|
|
807
|
-
let [t, n] = await T().readContract({
|
|
808
|
-
address: e,
|
|
809
|
-
abi: x,
|
|
810
|
-
functionName: "getSeedExecutor"
|
|
811
|
-
});
|
|
812
|
-
return {
|
|
813
|
-
executor: t,
|
|
814
|
-
eas: n
|
|
815
|
-
};
|
|
816
|
-
} catch {
|
|
817
|
-
return null;
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
async function ze(e, t) {
|
|
821
|
-
return T().readContract({
|
|
822
|
-
address: e,
|
|
823
|
-
abi: x,
|
|
824
|
-
functionName: "isModuleInstalled",
|
|
825
|
-
args: [
|
|
826
|
-
Ee,
|
|
827
|
-
t,
|
|
828
|
-
"0x"
|
|
829
|
-
]
|
|
830
|
-
});
|
|
831
|
-
}
|
|
832
|
-
function Be(e) {
|
|
833
|
-
return {
|
|
834
|
-
to: e,
|
|
835
|
-
data: p({
|
|
836
|
-
abi: x,
|
|
837
|
-
functionName: "installSeedExecutor"
|
|
838
|
-
})
|
|
839
|
-
};
|
|
840
|
-
}
|
|
841
|
-
function Ve(e, t) {
|
|
842
|
-
return {
|
|
843
|
-
to: e,
|
|
844
|
-
data: p({
|
|
845
|
-
abi: v,
|
|
846
|
-
functionName: "setEas",
|
|
847
|
-
args: [t]
|
|
848
|
-
})
|
|
849
|
-
};
|
|
850
|
-
}
|
|
851
|
-
async function He(e) {
|
|
852
|
-
return T().readContract({
|
|
853
|
-
address: e,
|
|
854
|
-
abi: v,
|
|
855
|
-
functionName: "getEas"
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
async function Ue(e, t) {
|
|
859
|
-
return T().readContract({
|
|
860
|
-
address: e,
|
|
861
|
-
abi: v,
|
|
862
|
-
functionName: "isActiveSigner",
|
|
863
|
-
args: [t]
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
async function We(e, t) {
|
|
867
|
-
return T().readContract({
|
|
868
|
-
address: e,
|
|
869
|
-
abi: v,
|
|
870
|
-
functionName: "isAdmin",
|
|
871
|
-
args: [t]
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
async function Ge(e, t = "0x") {
|
|
875
|
-
return T().readContract({
|
|
876
|
-
address: Z(),
|
|
877
|
-
abi: y,
|
|
878
|
-
functionName: "getAddress",
|
|
879
|
-
args: [e, t]
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
function Ke(e, t = "0x") {
|
|
883
|
-
return {
|
|
884
|
-
to: Z(),
|
|
885
|
-
data: p({
|
|
886
|
-
abi: y,
|
|
887
|
-
functionName: "createAccount",
|
|
888
|
-
args: [e, t]
|
|
889
|
-
})
|
|
890
|
-
};
|
|
891
|
-
}
|
|
892
|
-
var qe = "0x0000000000000000000000000000000000000000";
|
|
893
|
-
function O(e) {
|
|
894
|
-
let { easContractAddress: t } = Y();
|
|
895
|
-
return {
|
|
896
|
-
to: t,
|
|
897
|
-
data: p({
|
|
898
|
-
abi: _,
|
|
899
|
-
functionName: "attest",
|
|
900
|
-
args: [{
|
|
901
|
-
schema: e.schema,
|
|
902
|
-
data: {
|
|
903
|
-
recipient: e.data.recipient ?? qe,
|
|
904
|
-
expirationTime: e.data.expirationTime ?? 0n,
|
|
905
|
-
revocable: e.data.revocable ?? !0,
|
|
906
|
-
refUID: e.data.refUID,
|
|
907
|
-
data: e.data.data,
|
|
908
|
-
value: e.data.value ?? 0n
|
|
909
|
-
}
|
|
910
|
-
}]
|
|
911
|
-
})
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
function k(e) {
|
|
915
|
-
let { easContractAddress: t } = Y();
|
|
916
|
-
return {
|
|
917
|
-
to: t,
|
|
918
|
-
data: p({
|
|
919
|
-
abi: _,
|
|
920
|
-
functionName: "multiAttest",
|
|
921
|
-
args: [e]
|
|
922
|
-
})
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
function Je(e) {
|
|
926
|
-
let { easContractAddress: t } = Y();
|
|
927
|
-
return {
|
|
928
|
-
to: t,
|
|
929
|
-
data: p({
|
|
930
|
-
abi: _,
|
|
931
|
-
functionName: "multiRevoke",
|
|
932
|
-
args: [e.map((e) => ({
|
|
933
|
-
schema: e.schema,
|
|
934
|
-
data: e.data.map((e) => ({
|
|
935
|
-
uid: e.uid,
|
|
936
|
-
value: e.value ?? 0n
|
|
937
|
-
}))
|
|
938
|
-
}))]
|
|
939
|
-
})
|
|
940
|
-
};
|
|
941
|
-
}
|
|
942
|
-
var Ye = "0x" + "0".repeat(64);
|
|
943
|
-
async function Xe(e) {
|
|
944
|
-
let t = await T().readContract({
|
|
945
|
-
address: Y().schemaRegistryAddress,
|
|
946
|
-
abi: S,
|
|
947
|
-
functionName: "getSchema",
|
|
948
|
-
args: [e]
|
|
949
|
-
});
|
|
950
|
-
return !t || t.uid === Ye ? null : {
|
|
951
|
-
uid: t.uid,
|
|
952
|
-
resolver: t.resolver,
|
|
953
|
-
revocable: t.revocable,
|
|
954
|
-
schema: t.schema
|
|
955
|
-
};
|
|
956
|
-
}
|
|
957
|
-
function Ze(e) {
|
|
958
|
-
return {
|
|
959
|
-
to: Y().schemaRegistryAddress,
|
|
960
|
-
data: p({
|
|
961
|
-
abi: S,
|
|
962
|
-
functionName: "register",
|
|
963
|
-
args: [
|
|
964
|
-
e.schema,
|
|
965
|
-
e.resolverAddress,
|
|
966
|
-
e.revocable
|
|
967
|
-
]
|
|
968
|
-
})
|
|
969
|
-
};
|
|
970
|
-
}
|
|
971
|
-
//#endregion
|
|
972
|
-
//#region src/helpers/easDirect.ts
|
|
973
|
-
var Qe = "0x0000000000000000000000000000000000000000", $e = "0x" + "0".repeat(64);
|
|
974
|
-
function et(e) {
|
|
975
|
-
return O(e);
|
|
976
|
-
}
|
|
977
|
-
function tt(e) {
|
|
978
|
-
return k(e);
|
|
979
|
-
}
|
|
980
|
-
function nt(e) {
|
|
981
|
-
return f([{ type: "bytes32" }], [e]);
|
|
982
|
-
}
|
|
983
|
-
function rt(e, t) {
|
|
984
|
-
return it(e, t)[0]?.uid;
|
|
985
|
-
}
|
|
986
|
-
function it(e, t) {
|
|
987
|
-
if (!e.logs?.length) return [];
|
|
988
|
-
let n = t.toLowerCase(), r = e.logs.filter((e) => e.address && e.address.toLowerCase() === n);
|
|
989
|
-
if (!r.length) return [];
|
|
990
|
-
try {
|
|
991
|
-
let e = h({
|
|
992
|
-
abi: _,
|
|
993
|
-
eventName: "Attested",
|
|
994
|
-
logs: r,
|
|
995
|
-
strict: !1
|
|
996
|
-
}), t = [];
|
|
997
|
-
for (let n of e) {
|
|
998
|
-
let e = n.args?.uid, r = n.args?.schemaUID;
|
|
999
|
-
e && e !== $e && r && t.push({
|
|
1000
|
-
schemaUid: r,
|
|
1001
|
-
uid: e
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
return t;
|
|
1005
|
-
} catch {
|
|
1006
|
-
return [];
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
function A(e, t = {}) {
|
|
1010
|
-
if (!t.viaExecutorModule) return Je(e);
|
|
1011
|
-
let n = Y().modularAccountModuleContract?.trim();
|
|
1012
|
-
if (!n || !/^0x[0-9a-fA-F]{40}$/.test(n)) throw Error("@seedprotocol/publish: revoking via the executor module requires PublishConfig.modularAccountModuleContract");
|
|
1013
|
-
return at(n, e);
|
|
1014
|
-
}
|
|
1015
|
-
function at(e, t) {
|
|
1016
|
-
return {
|
|
1017
|
-
to: e,
|
|
1018
|
-
data: p({
|
|
1019
|
-
abi: _,
|
|
1020
|
-
functionName: "multiRevoke",
|
|
1021
|
-
args: [t.map((e) => ({
|
|
1022
|
-
schema: e.schema,
|
|
1023
|
-
data: e.data.map((e) => ({
|
|
1024
|
-
uid: e.uid,
|
|
1025
|
-
value: e.value ?? 0n
|
|
1026
|
-
}))
|
|
1027
|
-
}))]
|
|
1028
|
-
})
|
|
1029
|
-
};
|
|
1030
|
-
}
|
|
1031
|
-
//#endregion
|
|
1032
|
-
//#region src/helpers/publishWalletRegistry.ts
|
|
1033
|
-
var j = null;
|
|
1034
|
-
function ot() {
|
|
1035
|
-
return a.isInitialized() ? Promise.resolve() : new Promise((e) => {
|
|
1036
|
-
a.onReady(() => e());
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
async function st(e) {
|
|
1040
|
-
if (j = e, !e) return;
|
|
1041
|
-
await ot();
|
|
1042
|
-
let t = /* @__PURE__ */ new Set();
|
|
1043
|
-
for (let n of e.ownedAddresses ?? []) n && t.add(n.toLowerCase());
|
|
1044
|
-
t.add(e.signer.address.toLowerCase()), t.add(e.txSender.address.toLowerCase()), e.publisherAddress && t.add(e.publisherAddress.toLowerCase());
|
|
1045
|
-
try {
|
|
1046
|
-
await a.setAddresses({ owned: [...t] });
|
|
1047
|
-
let n = e.publisherAddress ?? e.signer.address;
|
|
1048
|
-
n && await a.claimUnpublishedDrafts(n);
|
|
1049
|
-
} catch (e) {
|
|
1050
|
-
console.warn("[publishWalletRegistry] Failed to set seed client addresses:", e);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
function M() {
|
|
1054
|
-
return j;
|
|
1055
|
-
}
|
|
1056
|
-
function ct() {
|
|
1057
|
-
j = null;
|
|
1058
|
-
}
|
|
1059
|
-
//#endregion
|
|
1060
|
-
//#region src/helpers/seedSigner.ts
|
|
1061
|
-
var N = Symbol.for("seedprotocol.SeedSigner"), P = Symbol.for("seedprotocol.SeedTxSender");
|
|
1062
|
-
function F(e) {
|
|
1063
|
-
return Object.assign(e, { [N]: !0 });
|
|
1064
|
-
}
|
|
1065
|
-
function I(e) {
|
|
1066
|
-
return Object.assign(e, { [P]: !0 });
|
|
1067
|
-
}
|
|
1068
|
-
function L(e) {
|
|
1069
|
-
return !!e && typeof e == "object" && N in e;
|
|
1070
|
-
}
|
|
1071
|
-
function R(e) {
|
|
1072
|
-
return !!e && typeof e == "object" && P in e;
|
|
1073
|
-
}
|
|
1074
|
-
function z(e) {
|
|
1075
|
-
return !!e && typeof e == "object" && "signer" in e && "txSender" in e && L(e.signer) && R(e.txSender);
|
|
1076
|
-
}
|
|
1077
|
-
function lt(e) {
|
|
1078
|
-
let t = e.address;
|
|
1079
|
-
return {
|
|
1080
|
-
signer: F({
|
|
1081
|
-
address: t,
|
|
1082
|
-
signMessage: async ({ message: t }) => {
|
|
1083
|
-
if (typeof t == "string") return await e.signMessage(t);
|
|
1084
|
-
let n = t.raw, r = typeof n == "string" ? oe.getBytes(n) : n instanceof Uint8Array ? n : new Uint8Array(n);
|
|
1085
|
-
return await e.signMessage(r);
|
|
1086
|
-
}
|
|
1087
|
-
}),
|
|
1088
|
-
txSender: I({
|
|
1089
|
-
address: t,
|
|
1090
|
-
sendTransaction: async (t) => ({ transactionHash: (await e.sendTransaction({
|
|
1091
|
-
to: t.to,
|
|
1092
|
-
data: t.data,
|
|
1093
|
-
value: t.value,
|
|
1094
|
-
gasLimit: t.gas
|
|
1095
|
-
})).hash })
|
|
1096
|
-
})
|
|
1097
|
-
};
|
|
1098
|
-
}
|
|
1099
|
-
function ut(e) {
|
|
1100
|
-
if (z(e)) return e.signer;
|
|
1101
|
-
if (L(e)) return e;
|
|
1102
|
-
throw Error("@seedprotocol/publish: expected a SeedSigner or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
|
|
1103
|
-
}
|
|
1104
|
-
function dt(e) {
|
|
1105
|
-
if (z(e)) return e.txSender;
|
|
1106
|
-
if (R(e)) return e;
|
|
1107
|
-
throw Error("@seedprotocol/publish: expected a SeedTxSender or PublishWallet. Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
|
|
1108
|
-
}
|
|
1109
|
-
function ft(e) {
|
|
1110
|
-
if (z(e)) return e;
|
|
1111
|
-
throw Error("@seedprotocol/publish: expected a PublishWallet (signer + txSender). Use fromEthersWallet, fromEip1193Provider, or fromThirdwebAccount.");
|
|
1112
|
-
}
|
|
1113
|
-
//#endregion
|
|
1114
|
-
//#region src/helpers/thirdwebChain.ts
|
|
1115
|
-
var B = null;
|
|
1116
|
-
function V(e) {
|
|
1117
|
-
let t = e ?? St() ?? {}, n = t.chain ?? g, r = t.rpcUrl?.trim() || void 0, i = `${n.id}|${r ?? ""}`;
|
|
1118
|
-
if (B?.key === i) return B.chain;
|
|
1119
|
-
let a;
|
|
1120
|
-
return a = n.id === ce.id && !r ? ce : se({
|
|
1121
|
-
id: n.id,
|
|
1122
|
-
name: n.name,
|
|
1123
|
-
nativeCurrency: n.nativeCurrency,
|
|
1124
|
-
testnet: n.testnet ? !0 : void 0,
|
|
1125
|
-
blockExplorers: n.blockExplorers ? Object.values(n.blockExplorers).map(({ name: e, url: t, apiUrl: n }) => ({
|
|
1126
|
-
name: e,
|
|
1127
|
-
url: t,
|
|
1128
|
-
apiUrl: n
|
|
1129
|
-
})) : void 0,
|
|
1130
|
-
...r ? { rpc: r } : {}
|
|
1131
|
-
}), B = {
|
|
1132
|
-
key: i,
|
|
1133
|
-
chain: a
|
|
1134
|
-
}, a;
|
|
1135
|
-
}
|
|
1136
|
-
//#endregion
|
|
1137
|
-
//#region src/helpers/adapters/thirdwebAccount.ts
|
|
1138
|
-
var pt = /* @__PURE__ */ e({
|
|
1139
|
-
asSeedSignerFromThirdweb: () => W,
|
|
1140
|
-
asThirdwebPublishWallet: () => U,
|
|
1141
|
-
fromThirdwebAccount: () => H
|
|
1142
|
-
});
|
|
1143
|
-
function H(e, t) {
|
|
1144
|
-
let n = t?.client, r = e.address;
|
|
1145
|
-
return {
|
|
1146
|
-
signer: F({
|
|
1147
|
-
address: r,
|
|
1148
|
-
signMessage: async ({ message: t }) => await e.signMessage({ message: t })
|
|
1149
|
-
}),
|
|
1150
|
-
txSender: I({
|
|
1151
|
-
address: r,
|
|
1152
|
-
sendTransaction: async (t) => {
|
|
1153
|
-
let r = n ?? (await import("./publishThirdwebClient-CQ29pzG2.js").then((e) => e.n)).getClient(), i = V(), a = ie({
|
|
1154
|
-
client: r,
|
|
1155
|
-
chain: i,
|
|
1156
|
-
to: t.to,
|
|
1157
|
-
data: t.data,
|
|
1158
|
-
value: t.value,
|
|
1159
|
-
gas: t.gas
|
|
1160
|
-
});
|
|
1161
|
-
return { transactionHash: (await ae({
|
|
1162
|
-
account: e,
|
|
1163
|
-
transaction: a
|
|
1164
|
-
})).transactionHash };
|
|
1165
|
-
}
|
|
1166
|
-
})
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
function U(e, t) {
|
|
1170
|
-
if (z(e)) return e;
|
|
1171
|
-
if (L(e)) throw Error("@seedprotocol/publish/thirdweb: SeedSigner alone cannot send sponsored txs. Pass fromThirdwebAccount(account) or a PublishWallet.");
|
|
1172
|
-
return H(e, t);
|
|
1173
|
-
}
|
|
1174
|
-
function W(e) {
|
|
1175
|
-
return z(e) ? e.signer : L(e) ? e : H(e).signer;
|
|
1176
|
-
}
|
|
1177
|
-
//#endregion
|
|
1178
|
-
//#region src/helpers/verifyPublishChain.ts
|
|
1179
|
-
var G = class extends Error {
|
|
1180
|
-
chainId;
|
|
1181
|
-
problems;
|
|
1182
|
-
name = "PublishChainConfigError";
|
|
1183
|
-
constructor(e, t) {
|
|
1184
|
-
super(`@seedprotocol/publish: chain ${e} is not set up for publishing:\n- ${t.join("\n- ")}`), this.chainId = e, this.problems = t;
|
|
1185
|
-
}
|
|
1186
|
-
}, K = null;
|
|
1187
|
-
function mt() {
|
|
1188
|
-
let e = Y();
|
|
1189
|
-
return [
|
|
1190
|
-
e.chain.id,
|
|
1191
|
-
$(),
|
|
1192
|
-
e.easContractAddress,
|
|
1193
|
-
e.schemaRegistryAddress,
|
|
1194
|
-
e.thirdwebAccountFactoryAddress ?? "",
|
|
1195
|
-
e.modularAccountModuleContract ?? ""
|
|
1196
|
-
].join("|").toLowerCase();
|
|
1197
|
-
}
|
|
1198
|
-
async function ht() {
|
|
1199
|
-
let e = Y(), { chain: t } = e, n = [], r;
|
|
1200
|
-
try {
|
|
1201
|
-
r = await T().getChainId();
|
|
1202
|
-
} catch (e) {
|
|
1203
|
-
throw new G(t.id, [`could not reach the RPC (${gt($())}): ${e instanceof Error ? e.message : String(e)}`]);
|
|
1204
|
-
}
|
|
1205
|
-
if (r !== t.id) throw new G(t.id, [`the RPC reports chain ${r}, but PublishConfig.chain is ${t.name} (${t.id}). Point rpcUrl at ${t.name}.`]);
|
|
1206
|
-
let i = [
|
|
1207
|
-
[
|
|
1208
|
-
"EAS contract",
|
|
1209
|
-
e.easContractAddress,
|
|
1210
|
-
"set easContractAddress"
|
|
1211
|
-
],
|
|
1212
|
-
[
|
|
1213
|
-
"EAS SchemaRegistry",
|
|
1214
|
-
e.schemaRegistryAddress,
|
|
1215
|
-
"set schemaRegistryAddress"
|
|
1216
|
-
],
|
|
1217
|
-
[
|
|
1218
|
-
"ManagedAccount factory",
|
|
1219
|
-
e.thirdwebAccountFactoryAddress,
|
|
1220
|
-
"deploy the factory or fix managedAccountFactoryAddress"
|
|
1221
|
-
],
|
|
1222
|
-
[
|
|
1223
|
-
"executor module",
|
|
1224
|
-
e.modularAccountModuleContract?.trim() || void 0,
|
|
1225
|
-
"deploy the module or fix modularAccountModuleContract"
|
|
1226
|
-
]
|
|
1227
|
-
], a = await Promise.all(i.map(async ([e, n, r]) => n ? await D(n) ? null : `no ${e} at ${n} on ${t.name}; ${r}.` : null));
|
|
1228
|
-
for (let e of a) e && n.push(e);
|
|
1229
|
-
if (n.length > 0) throw new G(t.id, n);
|
|
1230
|
-
}
|
|
1231
|
-
function gt(e) {
|
|
1232
|
-
try {
|
|
1233
|
-
let t = new URL(e);
|
|
1234
|
-
return `${t.protocol}//${t.host}`;
|
|
1235
|
-
} catch {
|
|
1236
|
-
return "configured rpcUrl";
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
function _t() {
|
|
1240
|
-
let e = mt();
|
|
1241
|
-
if (K?.key === e) return K.result;
|
|
1242
|
-
let t = ht();
|
|
1243
|
-
return K = {
|
|
1244
|
-
key: e,
|
|
1245
|
-
result: t
|
|
1246
|
-
}, t.catch(() => {
|
|
1247
|
-
K?.result === t && (K = null);
|
|
1248
|
-
}), t;
|
|
1249
|
-
}
|
|
1250
|
-
//#endregion
|
|
1251
|
-
//#region src/services/revoke/revokeAttestations.ts
|
|
1252
|
-
async function vt(e) {
|
|
1253
|
-
if (!e) return !1;
|
|
1254
|
-
let t = s();
|
|
1255
|
-
if (!t) return !1;
|
|
1256
|
-
let n = await t(), r = e.toLowerCase();
|
|
1257
|
-
return !!n?.some((e) => e?.toLowerCase() === r);
|
|
1258
|
-
}
|
|
1259
|
-
async function yt(e, t) {
|
|
1260
|
-
if (!t || !Y().modularAccountModuleContract?.trim()) return !1;
|
|
1261
|
-
let n = e.signer?.address;
|
|
1262
|
-
if (!n || n.toLowerCase() === t.toLowerCase()) return !1;
|
|
1263
|
-
try {
|
|
1264
|
-
let { isAutomationSessionActive: e } = await import("./ensureAutomationSessionKey-C8D7BFjU.js").then((e) => e.n);
|
|
1265
|
-
return await e(t, n);
|
|
1266
|
-
} catch {
|
|
1267
|
-
return !1;
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
async function bt(e) {
|
|
1271
|
-
let { seedLocalId: t, seedUid: n, seedSchemaUid: a } = e;
|
|
1272
|
-
await i(), await _t();
|
|
1273
|
-
let s = await o({
|
|
1274
|
-
seedLocalId: t,
|
|
1275
|
-
seedUid: n
|
|
1276
|
-
});
|
|
1277
|
-
if (await vt(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.");
|
|
1278
|
-
let u = M();
|
|
1279
|
-
if (!u) try {
|
|
1280
|
-
let { getConnectedAccount: e } = await import("./publishAuthorization-B0G1em4a.js").then((e) => e.V), { resolveRevokeAccount: t } = await import("./resolveRevokeAccount-B5iXpuRT.js"), n = await e();
|
|
1281
|
-
if (!n) throw Error("No wallet connected. Connect a wallet to revoke attestations.");
|
|
1282
|
-
u = H(await t({
|
|
1283
|
-
account: n,
|
|
1284
|
-
attester: s
|
|
1285
|
-
}));
|
|
1286
|
-
} catch (e) {
|
|
1287
|
-
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 });
|
|
1288
|
-
}
|
|
1289
|
-
let te = u.txSender;
|
|
1290
|
-
if (await yt(u, s)) throw Error("Automation session keys cannot revoke attestations. Revoking is owner-only: connect the account that published this item.");
|
|
1291
|
-
let [ne, d] = await Promise.all([ee(n), c(n)]), f = ne.map((e) => e.uid).filter((e) => l(e)), p = /* @__PURE__ */ new Map();
|
|
1292
|
-
for (let { uid: e, schemaUid: t } of d) {
|
|
1293
|
-
if (!l(e)) continue;
|
|
1294
|
-
let n = p.get(t) ?? [];
|
|
1295
|
-
n.push(e), p.set(t, n);
|
|
1296
|
-
}
|
|
1297
|
-
let m = [];
|
|
1298
|
-
for (let [e, t] of p) t.length > 0 && m.push({
|
|
1299
|
-
schema: e,
|
|
1300
|
-
data: t.map((e) => ({ uid: e }))
|
|
1301
|
-
});
|
|
1302
|
-
f.length > 0 && m.push({
|
|
1303
|
-
schema: r,
|
|
1304
|
-
data: f.map((e) => ({ uid: e }))
|
|
1305
|
-
}), m.push({
|
|
1306
|
-
schema: a,
|
|
1307
|
-
data: [{ uid: n }]
|
|
1308
|
-
});
|
|
1309
|
-
for (let e of m) {
|
|
1310
|
-
if (e.data.length === 0) continue;
|
|
1311
|
-
let t = A([e]);
|
|
1312
|
-
try {
|
|
1313
|
-
await E((await te.sendTransaction(t)).transactionHash);
|
|
1314
|
-
} catch (e) {
|
|
1315
|
-
let t = e instanceof Error ? e.message : String(e);
|
|
1316
|
-
if (t.includes("AccessDenied") || t.includes("0x4ca88867")) throw Error("Only the original attester can revoke attestations. Connect the wallet that published this item.");
|
|
1317
|
-
if (t.includes("AlreadyRevoked")) continue;
|
|
1318
|
-
throw e;
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
let h = Math.floor(Date.now() / 1e3);
|
|
1322
|
-
await re({
|
|
1323
|
-
seedLocalId: t,
|
|
1324
|
-
revokedAt: h
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
//#endregion
|
|
1328
|
-
//#region src/config.ts
|
|
1329
|
-
ue("publish");
|
|
1330
|
-
var q = null;
|
|
1331
|
-
function xt(e) {
|
|
1332
|
-
q = e;
|
|
1333
|
-
}
|
|
1334
|
-
function St() {
|
|
1335
|
-
return q;
|
|
1336
|
-
}
|
|
1337
|
-
function J(e) {
|
|
1338
|
-
let t = X(e);
|
|
1339
|
-
le("publish", {
|
|
1340
|
-
chainId: t.chainId,
|
|
1341
|
-
indexerUrl: t.indexerUrl
|
|
1342
|
-
}), xt(e), te(async () => {
|
|
1343
|
-
let e = M();
|
|
1344
|
-
if (e?.publisherAddress) return e.publisherAddress;
|
|
1345
|
-
if (e?.signer?.address) return e.signer.address;
|
|
1346
|
-
}), ne(bt), import("./worker-C07rPV2G.js").then((e) => {
|
|
1347
|
-
e.startArweaveL1FinalizeWorker();
|
|
1348
|
-
}), u(async () => e.useModularExecutor && e.modularAccountModuleContract ? [e.modularAccountModuleContract] : []);
|
|
1349
|
-
}
|
|
1350
|
-
var Ct = J;
|
|
1351
|
-
function wt(e) {
|
|
1352
|
-
let t = e?.thirdweb ?? {};
|
|
1353
|
-
return {
|
|
1354
|
-
bundlerUrl: t.bundlerUrl?.trim() || void 0,
|
|
1355
|
-
sponsorGas: t.sponsorGas ?? !0,
|
|
1356
|
-
modularWalletMode: t.modularWalletMode ?? "EIP7702"
|
|
1357
|
-
};
|
|
1358
|
-
}
|
|
1359
|
-
function Y() {
|
|
1360
|
-
let e = q;
|
|
1361
|
-
if (!e) throw Error("@seedprotocol/publish: Call initPublish() or ensure PublishProvider is mounted with config before using the publish package");
|
|
1362
|
-
let t = e.useArweaveBundler ?? !1, r = e.arweaveUploadVerificationBaseUrl ?? e.uploadApiBaseUrl, i = e.arweaveGraphqlUrl ?? n, a = e.useModularExecutor ?? !1, o = e.chain ?? g, s = X(e), c = e.accountMode ?? (e.bundlerUrl ? "eip7702" : "eoa");
|
|
1363
|
-
return {
|
|
1364
|
-
...e,
|
|
1365
|
-
thirdwebAccountFactoryAddress: e.managedAccountFactoryAddress ?? pe[o.id],
|
|
1366
|
-
easContractAddress: s.easContractAddress,
|
|
1367
|
-
schemaRegistryAddress: s.schemaRegistryAddress,
|
|
1368
|
-
easChain: s,
|
|
1369
|
-
useIntegerLocalIds: e.useIntegerLocalIds ?? !1,
|
|
1370
|
-
useDirectEas: e.useDirectEas ?? !1,
|
|
1371
|
-
modularAccountModuleData: e.modularAccountModuleData ?? "0x",
|
|
1372
|
-
useModularExecutor: a,
|
|
1373
|
-
useArweaveBundler: t,
|
|
1374
|
-
arweaveUploadVerificationBaseUrl: r,
|
|
1375
|
-
arweaveGraphqlUrl: i,
|
|
1376
|
-
autoDeployManagedAccount: e.autoDeployManagedAccount ?? !1,
|
|
1377
|
-
autoDeployEip7702ModularAccount: Tt(e, a),
|
|
1378
|
-
chain: o,
|
|
1379
|
-
accountMode: c,
|
|
1380
|
-
thirdweb: wt(e)
|
|
1381
|
-
};
|
|
1382
|
-
}
|
|
1383
|
-
function X(e) {
|
|
1384
|
-
let t = e.chain ?? g;
|
|
1385
|
-
try {
|
|
1386
|
-
return de(t.id, {
|
|
1387
|
-
name: t.name,
|
|
1388
|
-
easContractAddress: e.easContractAddress,
|
|
1389
|
-
schemaRegistryAddress: e.schemaRegistryAddress
|
|
1390
|
-
});
|
|
1391
|
-
} catch (e) {
|
|
1392
|
-
throw Error(`@seedprotocol/publish: ${t.name} (chain ${t.id}) has no known EAS deployment. Pass easContractAddress and schemaRegistryAddress in initPublish / PublishProvider config.`, { cause: e });
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
function Z() {
|
|
1396
|
-
let { thirdwebAccountFactoryAddress: e, chain: t } = Y();
|
|
1397
|
-
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.`);
|
|
1398
|
-
return e;
|
|
1399
|
-
}
|
|
1400
|
-
function Tt(e, t) {
|
|
1401
|
-
return e.autoDeployEip7702ModularAccount === !0 || e.autoDeployEip7702ModularAccount !== !1 && t;
|
|
1402
|
-
}
|
|
1403
|
-
//#endregion
|
|
1404
|
-
//#region src/helpers/chainConfig.ts
|
|
1405
|
-
function Q() {
|
|
1406
|
-
try {
|
|
1407
|
-
return Y().chain ?? g;
|
|
1408
|
-
} catch {
|
|
1409
|
-
return g;
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
function $() {
|
|
1413
|
-
let e = Y();
|
|
1414
|
-
if (e.rpcUrl) return e.rpcUrl;
|
|
1415
|
-
if (e.thirdwebClientId) return `https://${(e.chain ?? g).id}.rpc.thirdweb.com/${e.thirdwebClientId}`;
|
|
1416
|
-
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.");
|
|
1417
|
-
}
|
|
1418
|
-
function Et() {
|
|
1419
|
-
return Q().name;
|
|
1420
|
-
}
|
|
1421
|
-
//#endregion
|
|
1422
|
-
export { We as $, Qe as A, k as B, lt as C, ct as D, R as E, et as F, Pe as G, Fe as H, tt as I, Le as J, Ze as K, A as L, nt as M, rt as N, M as O, it as P, Ue as Q, Ke as R, I as S, L as T, Be as U, Je as V, Ne as W, Ge as X, Ie as Y, He as Z, V as _, ve as _t, St as a, D as at, dt as b, Z as c, Te as ct, G as d, _ as dt, Xe as et, _t as f, g as ft, pt as g, me as gt, H as h, pe as ht, Ct as i, T as it, $e as j, st as k, X as l, b as lt, U as m, _e as mt, $ as n, Re as nt, Y as o, Me as ot, W as p, fe as pt, Ve as q, Q as r, ke as rt, J as s, E as st, Et as t, ze as tt, wt as u, we as ut, ft as v, ge as vt, z as w, F as x, ut as y, he as yt, O as z };
|
|
1423
|
-
|
|
1424
|
-
//# sourceMappingURL=chainConfig-DDA4YmAB.js.map
|