@ixo/editor 7.17.1 → 7.18.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/README.md +6 -0
- package/dist/{BidConfig-PKO3SHPM.js → BidConfig-P5CJR43N.js} +10 -10
- package/dist/{BidFlowDetail-56UM43KU.js → BidFlowDetail-SV33OI2Y.js} +20 -17
- package/dist/{BidFlowDetail-56UM43KU.js.map → BidFlowDetail-SV33OI2Y.js.map} +1 -1
- package/dist/{CalendarEventCreateConfig-MCNRXHUN.js → CalendarEventCreateConfig-4IZ2UHS3.js} +11 -11
- package/dist/{CalendarEventCreateFlowDetail-6KSERH4V.js → CalendarEventCreateFlowDetail-CSI6N2PF.js} +12 -12
- package/dist/{CalendarEventListConfig-G3ENMMOL.js → CalendarEventListConfig-N4XXZLUC.js} +11 -11
- package/dist/{CalendarEventListFlowDetail-454HM6LH.js → CalendarEventListFlowDetail-Y2MQYWXT.js} +5 -5
- package/dist/{CalendarEventUpdateConfig-SOE7ETBT.js → CalendarEventUpdateConfig-R2IUZZWK.js} +11 -11
- package/dist/{CalendarEventUpdateFlowDetail-AS6O4DCV.js → CalendarEventUpdateFlowDetail-MAZSAC6G.js} +12 -12
- package/dist/{ClaimConfig-XZWF6MXM.js → ClaimConfig-QJETYD5G.js} +10 -10
- package/dist/{ClaimFlowDetail-TLD7WGZD.js → ClaimFlowDetail-UEGNEOLD.js} +20 -17
- package/dist/{ClaimFlowDetail-TLD7WGZD.js.map → ClaimFlowDetail-UEGNEOLD.js.map} +1 -1
- package/dist/{CollectionLifecycleConfig-DRQU52FG.js → CollectionLifecycleConfig-CGZKXQP7.js} +4 -4
- package/dist/{CollectionLifecycleFlowDetail-W44R544P.js → CollectionLifecycleFlowDetail-HKORLTZM.js} +19 -16
- package/dist/{CollectionLifecycleFlowDetail-W44R544P.js.map → CollectionLifecycleFlowDetail-HKORLTZM.js.map} +1 -1
- package/dist/{CollectionUsersConfig-CTRSFWNE.js → CollectionUsersConfig-A7ASGD2L.js} +10 -10
- package/dist/{CollectionUsersFlowDetail-SAFF27DZ.js → CollectionUsersFlowDetail-JUULKPNC.js} +23 -20
- package/dist/{CollectionUsersFlowDetail-SAFF27DZ.js.map → CollectionUsersFlowDetail-JUULKPNC.js.map} +1 -1
- package/dist/{CredentialStoreConfig-UUIJPIMZ.js → CredentialStoreConfig-DAA3ZT24.js} +8 -8
- package/dist/{CredentialStoreFlowDetail-3YIBCZ2P.js → CredentialStoreFlowDetail-W3TMZREQ.js} +7 -7
- package/dist/{DesignPodFlowDetail-I7APOS5J.js → DesignPodFlowDetail-HEFNV3J3.js} +5 -5
- package/dist/{DomainCardPreviewFlowDetail-7GMZ3U73.js → DomainCardPreviewFlowDetail-OG2SLUYU.js} +7 -7
- package/dist/{DomainIndexerLookupFlowDetail-D5UBF2EZ.js → DomainIndexerLookupFlowDetail-DPPNZNOU.js} +5 -5
- package/dist/{DomainSignFlowDetail-746C7LNN.js → DomainSignFlowDetail-CHJPBXCN.js} +8 -8
- package/dist/{DomainSingleSelectionConfig-IINRDF2X.js → DomainSingleSelectionConfig-6BU762LL.js} +4 -4
- package/dist/{DomainSingleSelectionFlowDetail-DDGNJZ7I.js → DomainSingleSelectionFlowDetail-JFFYQC4P.js} +5 -5
- package/dist/{EmailSendConfig-LKBUVEOZ.js → EmailSendConfig-V2H65UW5.js} +10 -10
- package/dist/{EntityCreateOracleFlowDetail-YQUDO5MI.js → EntityCreateOracleFlowDetail-ZL3FDZHV.js} +7 -7
- package/dist/{EntitySingleSelectionFlowDetail-WU3TRAWU.js → EntitySingleSelectionFlowDetail-TL7PATBJ.js} +5 -5
- package/dist/{EntityTransferFlowDetail-WAMV7YFS.js → EntityTransferFlowDetail-5JMBBK53.js} +7 -7
- package/dist/{EvalEngineConfig-JP3LJWWU.js → EvalEngineConfig-UYKCKNQQ.js} +13 -13
- package/dist/{EvalEngineFlowDetail-BUUKGGSD.js → EvalEngineFlowDetail-VCLYU5FV.js} +9 -9
- package/dist/{EvaluateBidConfig-CXSCBM3X.js → EvaluateBidConfig-T6FZD4KE.js} +10 -10
- package/dist/{EvaluateBidFlowDetail-56FBHYK5.js → EvaluateBidFlowDetail-EKL5NXYX.js} +21 -18
- package/dist/{EvaluateBidFlowDetail-56FBHYK5.js.map → EvaluateBidFlowDetail-EKL5NXYX.js.map} +1 -1
- package/dist/{EvaluateClaimConfig-XNRJJV4U.js → EvaluateClaimConfig-DXPZIL4Q.js} +10 -10
- package/dist/{EvaluateClaimFlowDetail-4664ORTM.js → EvaluateClaimFlowDetail-EVEA3UXR.js} +20 -17
- package/dist/{EvaluateClaimFlowDetail-4664ORTM.js.map → EvaluateClaimFlowDetail-EVEA3UXR.js.map} +1 -1
- package/dist/{FormSubmitFlowDetail-CXG5R3WY.js → FormSubmitFlowDetail-34DAUMGE.js} +7 -7
- package/dist/{GovernanceAuthzExecFlowDetail-KTVR7DCF.js → GovernanceAuthzExecFlowDetail-4ICVRCYV.js} +12 -12
- package/dist/{GovernanceAuthzGrantFlowDetail-644VRW5A.js → GovernanceAuthzGrantFlowDetail-NYU6RBMD.js} +10 -10
- package/dist/{GovernanceAuthzRevokeFlowDetail-ALTWR47Q.js → GovernanceAuthzRevokeFlowDetail-2NYVNJRY.js} +10 -10
- package/dist/{GovernanceChainVoteFlowDetail-5KLKCHEM.js → GovernanceChainVoteFlowDetail-LM3NSV32.js} +9 -9
- package/dist/{GovernanceConfigFlowDetail-SOXSID6T.js → GovernanceConfigFlowDetail-7GPHNALT.js} +5 -5
- package/dist/{GovernanceContractExecuteFlowDetail-Y4TIBJPP.js → GovernanceContractExecuteFlowDetail-U3SOGE5Q.js} +9 -9
- package/dist/{GovernanceContractInstantiateFlowDetail-6RXY72KU.js → GovernanceContractInstantiateFlowDetail-5S7MA2TT.js} +9 -9
- package/dist/{GovernanceContractManageCw20FlowDetail-2EIDOO3K.js → GovernanceContractManageCw20FlowDetail-WTAYJUC6.js} +8 -8
- package/dist/{GovernanceContractMigrateFlowDetail-C3N63YPC.js → GovernanceContractMigrateFlowDetail-FQLAJC7X.js} +9 -9
- package/dist/{GovernanceContractUpdateAdminFlowDetail-HEWDMBAN.js → GovernanceContractUpdateAdminFlowDetail-NGZTF35T.js} +8 -8
- package/dist/{GovernanceCustomMessageFlowDetail-DEZA3Z57.js → GovernanceCustomMessageFlowDetail-5M7NRHYN.js} +9 -9
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-W7KP4FZB.js → GovernanceDaoAcceptToMarketplaceFlowDetail-DJJWFWS6.js} +9 -9
- package/dist/{GovernanceDaoAdminExecFlowDetail-R5EMFJFO.js → GovernanceDaoAdminExecFlowDetail-N7NOFQ4Z.js} +11 -11
- package/dist/{GovernanceDaoCreateEntityFlowDetail-MIZB7SKM.js → GovernanceDaoCreateEntityFlowDetail-PSWK7BXP.js} +9 -9
- package/dist/{GovernanceDaoJoinFlowDetail-WFC43PRS.js → GovernanceDaoJoinFlowDetail-Q3WSUZX3.js} +9 -9
- package/dist/{GovernanceDaoManageStorageFlowDetail-GQHOYJDB.js → GovernanceDaoManageStorageFlowDetail-QWFCDZMJ.js} +8 -8
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-KUQE4XDR.js → GovernanceDaoManageSubDaosFlowDetail-2JITWAYZ.js} +10 -10
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-IONJD53S.js → GovernanceDaoUpdateInfoFlowDetail-R5ZK5SNL.js} +8 -8
- package/dist/{GovernanceMemberProposalConfig-4MLIAT6T.js → GovernanceMemberProposalConfig-DADW2B2Y.js} +5 -5
- package/dist/{GovernanceMemberProposalFlowDetail-IKFBZZJI.js → GovernanceMemberProposalFlowDetail-ZHGLGNVK.js} +9 -9
- package/dist/{GovernanceNftBurnFlowDetail-EQWHCRTN.js → GovernanceNftBurnFlowDetail-XNHCP7SW.js} +8 -8
- package/dist/{GovernanceNftManageCollectionsFlowDetail-Y2ATTFVK.js → GovernanceNftManageCollectionsFlowDetail-RMVCVWXS.js} +8 -8
- package/dist/{GovernanceNftTransferFlowDetail-IAE4ZO5Y.js → GovernanceNftTransferFlowDetail-ANUJ3UUE.js} +9 -9
- package/dist/{GovernanceSettingsProposalConfig-2JMD2SQ6.js → GovernanceSettingsProposalConfig-WT2XRFJV.js} +6 -6
- package/dist/GovernanceSettingsProposalFlowDetail-IWCYMAIH.js +291 -0
- package/dist/GovernanceSettingsProposalFlowDetail-IWCYMAIH.js.map +1 -0
- package/dist/{GovernanceStakingStakeFlowDetail-XH5WPERK.js → GovernanceStakingStakeFlowDetail-LM37IMVO.js} +8 -8
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-WBA5EHOD.js → GovernanceStakingStakeToGroupFlowDetail-VNARHVFO.js} +8 -8
- package/dist/GovernanceSubmissionConfigProposalFlowDetail-ZT4LW4CU.js +202 -0
- package/dist/GovernanceSubmissionConfigProposalFlowDetail-ZT4LW4CU.js.map +1 -0
- package/dist/{GovernanceTransactionMintFlowDetail-LWUSSCMY.js → GovernanceTransactionMintFlowDetail-MP36YVVV.js} +9 -9
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-7RF3YLUW.js → GovernanceTransactionPerformTokenSwapFlowDetail-ABSKBNLZ.js} +8 -8
- package/dist/{GovernanceTransactionSendFundsConfig-MFPOXPYA.js → GovernanceTransactionSendFundsConfig-RLDBUKIT.js} +5 -5
- package/dist/{GovernanceTransactionSendFundsFlowDetail-DMLUO3BM.js → GovernanceTransactionSendFundsFlowDetail-OIYTEWTP.js} +12 -12
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-Y6XITVRH.js → GovernanceTransactionSendGroupTokenFlowDetail-I6ORHQUY.js} +10 -10
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-7RRP7VJF.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-HIJLXLTD.js} +8 -8
- package/dist/{GovernanceValidatorActionsFlowDetail-SP7Q2TJC.js → GovernanceValidatorActionsFlowDetail-ANDTFZ63.js} +9 -9
- package/dist/{HarvestConfig-FFARBTWA.js → HarvestConfig-FBA2LMWP.js} +9 -9
- package/dist/{HarvestFlowDetail-EXFUJCC5.js → HarvestFlowDetail-YSW6OEL6.js} +7 -7
- package/dist/{HttpRequestConfig-JXWZ4XZ5.js → HttpRequestConfig-4OJ4KQGC.js} +8 -8
- package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js → HttpRequestFlowDetail-6JPPTSIZ.js} +5 -5
- package/dist/{IdentityCreateFlowDetail-ZN5UYPAL.js → IdentityCreateFlowDetail-Q2Z7GSMV.js} +13 -13
- package/dist/{IidCreateFlowDetail-6V3HVZTJ.js → IidCreateFlowDetail-LKRE5KDH.js} +13 -13
- package/dist/{KycVerifyConfig-6F55N6UR.js → KycVerifyConfig-ZZSQPKXU.js} +8 -8
- package/dist/{KycVerifyFlowDetail-H3R2KQT5.js → KycVerifyFlowDetail-JEQM5A7R.js} +13 -13
- package/dist/{ListDomainFlowsFlowDetail-WZSP5DDP.js → ListDomainFlowsFlowDetail-DK4YPMEJ.js} +5 -5
- package/dist/{LoadBatchesFlowDetail-6TXNWSPF.js → LoadBatchesFlowDetail-A4HDN3OR.js} +7 -7
- package/dist/{MatrixDmConfig-RFZBU7NL.js → MatrixDmConfig-5VO4RJHR.js} +4 -4
- package/dist/{MatrixRegisterFlowDetail-BQIC4HYM.js → MatrixRegisterFlowDetail-JMPQ6EHL.js} +7 -7
- package/dist/{MemberMultiSelectFlowDetail-BRLUJ4KU.js → MemberMultiSelectFlowDetail-3ZEIOH4X.js} +5 -5
- package/dist/{OracleConfig-H736YKGE.js → OracleConfig-6I47PA2F.js} +8 -8
- package/dist/{OracleConfigureOracleFlowDetail-AS3KBSVG.js → OracleConfigureOracleFlowDetail-BFYUTBHC.js} +13 -13
- package/dist/{OracleContractFlowDetail-6NU5KJ5Z.js → OracleContractFlowDetail-MYEJZNCP.js} +7 -7
- package/dist/{OracleDeployFlowDetail-W2LFK23M.js → OracleDeployFlowDetail-YF7XQMZZ.js} +7 -7
- package/dist/{OracleDeploySetupFlowDetail-4XV3XB6G.js → OracleDeploySetupFlowDetail-QLX7O63W.js} +7 -7
- package/dist/{OracleDeployStartFlowDetail-7ZEZUSMN.js → OracleDeployStartFlowDetail-NRPW76XH.js} +7 -7
- package/dist/{OracleFlowDetail-LQGZ2U2F.js → OracleFlowDetail-F7AX3GTY.js} +7 -7
- package/dist/{OraclePromptFlowDetail-IWUMH4LJ.js → OraclePromptFlowDetail-NVHRWHTS.js} +7 -7
- package/dist/{OracleStoreConfigFlowDetail-ND6YNZPT.js → OracleStoreConfigFlowDetail-XUBCZZBO.js} +7 -7
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js → OracleStoreSecretsAndConfigFlowDetail-M7OEWUPG.js} +13 -13
- package/dist/{OracleStoreSecretsFlowDetail-GX3ADRWP.js → OracleStoreSecretsFlowDetail-LHW2JSKX.js} +13 -13
- package/dist/{ProposalCreateConfig-7YYMB5EH.js → ProposalCreateConfig-DAIAJWU4.js} +12 -12
- package/dist/{ProposalCreateFlowDetail-EU2NNZRS.js → ProposalCreateFlowDetail-I5RX74EW.js} +64 -44
- package/dist/ProposalCreateFlowDetail-I5RX74EW.js.map +1 -0
- package/dist/{ProposalVoteConfig-U5DF2WWT.js → ProposalVoteConfig-2FOG2FFP.js} +10 -10
- package/dist/{ProposalVoteFlowDetail-66B6H75V.js → ProposalVoteFlowDetail-BRHGJXD2.js} +8 -8
- package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js → ProtocolSelectFlowDetail-3RKNFTWF.js} +4 -4
- package/dist/{RetireConfig-4QOIAETV.js → RetireConfig-IFSJTDMZ.js} +9 -9
- package/dist/{RetireFlowDetail-YQLPDYC4.js → RetireFlowDetail-OOGYAODJ.js} +7 -7
- package/dist/{SandboxProvisionFlowDetail-GVC7DAI3.js → SandboxProvisionFlowDetail-LFHRTPLR.js} +7 -7
- package/dist/{WalletFundConfig-UEQ3TKIO.js → WalletFundConfig-WK7QIPL6.js} +5 -5
- package/dist/{WalletFundFlowDetail-767QZKZM.js → WalletFundFlowDetail-N2XTMXIG.js} +8 -8
- package/dist/{WalletGenerateAndFundFlowDetail-VOXXSJRG.js → WalletGenerateAndFundFlowDetail-5LKRKR4R.js} +5 -5
- package/dist/{WalletGenerateFlowDetail-3SQVIUVH.js → WalletGenerateFlowDetail-RXZJMLLP.js} +5 -5
- package/dist/{XeroContactCreateConfig-HXSGZD7Q.js → XeroContactCreateConfig-34JJXNUW.js} +11 -11
- package/dist/{XeroContactCreateFlowDetail-ZUUILA5R.js → XeroContactCreateFlowDetail-4BDRDAXW.js} +12 -12
- package/dist/{XeroInvoiceCreateConfig-72KXJ73Z.js → XeroInvoiceCreateConfig-VI4HQP2Z.js} +11 -11
- package/dist/{XeroInvoiceCreateFlowDetail-ZMYUYNQM.js → XeroInvoiceCreateFlowDetail-AKS7WN4K.js} +14 -14
- package/dist/{XeroInvoiceListConfig-DEZSXEVD.js → XeroInvoiceListConfig-6GELQTQK.js} +11 -11
- package/dist/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js → XeroInvoiceListFlowDetail-27GR2BSJ.js} +5 -5
- package/dist/{XeroPaymentCreateConfig-VXXJE4QT.js → XeroPaymentCreateConfig-7PNHPUGK.js} +8 -8
- package/dist/{XeroPaymentCreateFlowDetail-PXSGHLE2.js → XeroPaymentCreateFlowDetail-PDWKG2SR.js} +13 -13
- package/dist/action-manifest.json +5087 -541
- package/dist/{chunk-DKQM4R2N.js → chunk-25POTAU5.js} +2 -2
- package/dist/{chunk-Z7QWH42V.js → chunk-3C6YD77I.js} +2 -2
- package/dist/{chunk-TSXHPGXB.js → chunk-3WIS2UI4.js} +2 -2
- package/dist/{chunk-WAM3FJJL.js → chunk-635DLQIO.js} +3 -3
- package/dist/{chunk-JRY6LLK6.js → chunk-75L5M6BB.js} +3 -3
- package/dist/chunk-75L5M6BB.js.map +1 -0
- package/dist/{chunk-TMQA4RSG.js → chunk-7WBLDDDN.js} +3 -3
- package/dist/{chunk-OF3LB65M.js → chunk-A35SKJEL.js} +2 -2
- package/dist/{chunk-7TT4RM2M.js → chunk-AJF7MIIN.js} +2 -2
- package/dist/chunk-AKRAO7H6.js +24 -0
- package/dist/chunk-AKRAO7H6.js.map +1 -0
- package/dist/{chunk-XLBKC3EL.js → chunk-ARLE35FS.js} +2 -2
- package/dist/{chunk-T4KY7UF7.js → chunk-B3R2NVUD.js} +2 -2
- package/dist/{chunk-ICKOVZDM.js → chunk-B464VTTD.js} +2 -2
- package/dist/{chunk-AOLCNPGV.js → chunk-BJDQVMYW.js} +2 -2
- package/dist/{chunk-6SWOXRMF.js → chunk-CC7MDRBY.js} +2 -2
- package/dist/{chunk-7LI5YJAE.js → chunk-D737IBAL.js} +2 -2
- package/dist/{chunk-OG56C7DD.js → chunk-DGALOR3X.js} +2 -2
- package/dist/{chunk-OV4KVTZI.js → chunk-EZ424ZXM.js} +2 -2
- package/dist/{chunk-5NJA7YNR.js → chunk-FSGPZ6UT.js} +2 -2
- package/dist/{chunk-EVHWLO2C.js → chunk-FWXXWWT7.js} +2 -2
- package/dist/{chunk-AO5TGK5A.js → chunk-GMEYEPGZ.js} +2 -2
- package/dist/chunk-HVL25AOI.js +55 -0
- package/dist/chunk-HVL25AOI.js.map +1 -0
- package/dist/{chunk-PNHXP67T.js → chunk-JRWJLWOY.js} +6 -6
- package/dist/{chunk-WUWAC5S6.js → chunk-JYNYVFSY.js} +3 -3
- package/dist/{chunk-TK3JNKME.js → chunk-L56HTYJR.js} +1 -1
- package/dist/chunk-L56HTYJR.js.map +1 -0
- package/dist/{chunk-5DOXIPDH.js → chunk-LJCGR4FZ.js} +2 -2
- package/dist/{chunk-4Y66NZYT.js → chunk-LOK5IXGD.js} +26 -1
- package/dist/chunk-LOK5IXGD.js.map +1 -0
- package/dist/{chunk-IZRTWKW3.js → chunk-LVPX7CAS.js} +2 -2
- package/dist/{chunk-DDFGCFUF.js → chunk-NTQKVYLG.js} +17 -6
- package/dist/chunk-NTQKVYLG.js.map +1 -0
- package/dist/{chunk-NBDFKF6H.js → chunk-OHXDPRPB.js} +2 -2
- package/dist/{chunk-3JJJGENW.js → chunk-RG7Z2VMU.js} +2 -2
- package/dist/{chunk-SYOPQ3JE.js → chunk-RNKNOEYB.js} +5 -5
- package/dist/{chunk-EIDAXWST.js → chunk-S2TUXPUL.js} +2 -2
- package/dist/{chunk-U57CCGM4.js → chunk-SAY4IOQ4.js} +2 -2
- package/dist/{chunk-GNXZSPZ5.js → chunk-SWDPZFJ7.js} +4 -4
- package/dist/{chunk-HNZQKYXU.js → chunk-UCO4YJ5L.js} +4 -3
- package/dist/{chunk-HNZQKYXU.js.map → chunk-UCO4YJ5L.js.map} +1 -1
- package/dist/{chunk-GVNMIIMQ.js → chunk-UEIFCJTT.js} +133 -4
- package/dist/chunk-UEIFCJTT.js.map +1 -0
- package/dist/chunk-UIBIZKN4.js +190 -0
- package/dist/chunk-UIBIZKN4.js.map +1 -0
- package/dist/{chunk-EGZGY3OM.js → chunk-VOW7DHXR.js} +2729 -1037
- package/dist/chunk-VOW7DHXR.js.map +1 -0
- package/dist/{chunk-OCAYEGI2.js → chunk-WKYPC2IS.js} +1 -1
- package/dist/chunk-WKYPC2IS.js.map +1 -0
- package/dist/chunk-X7L5XHYY.js +149 -0
- package/dist/chunk-X7L5XHYY.js.map +1 -0
- package/dist/{chunk-VNRY7ABX.js → chunk-X7PMVRGS.js} +3 -3
- package/dist/{chunk-KXTRAHCF.js → chunk-YC6BYZJZ.js} +895 -76
- package/dist/chunk-YC6BYZJZ.js.map +1 -0
- package/dist/{connections-Ch8YM5VH.d.ts → connections-BJYmPkaj.d.ts} +1 -1
- package/dist/core/index.cjs +917 -72
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +10 -10
- package/dist/{graphql-client-CQ4fit1Q.d.ts → graphql-client-CdN8lj4D.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +30 -24
- package/dist/index.js.map +1 -1
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.js +29 -23
- package/dist/mantine/index.js.map +1 -1
- package/dist/{types-C62gQYvE.d.ts → types-DsF-l-4t.d.ts} +552 -4
- package/package.json +1 -1
- package/dist/GovernanceSettingsProposalFlowDetail-IXOEGPQL.js +0 -164
- package/dist/GovernanceSettingsProposalFlowDetail-IXOEGPQL.js.map +0 -1
- package/dist/GovernanceSubmissionConfigProposalFlowDetail-WFPYJRO2.js +0 -110
- package/dist/GovernanceSubmissionConfigProposalFlowDetail-WFPYJRO2.js.map +0 -1
- package/dist/ProposalCreateFlowDetail-EU2NNZRS.js.map +0 -1
- package/dist/chunk-4Y66NZYT.js.map +0 -1
- package/dist/chunk-DDFGCFUF.js.map +0 -1
- package/dist/chunk-DP5X7SLN.js +0 -315
- package/dist/chunk-DP5X7SLN.js.map +0 -1
- package/dist/chunk-EGZGY3OM.js.map +0 -1
- package/dist/chunk-GVNMIIMQ.js.map +0 -1
- package/dist/chunk-JRY6LLK6.js.map +0 -1
- package/dist/chunk-KXTRAHCF.js.map +0 -1
- package/dist/chunk-OCAYEGI2.js.map +0 -1
- package/dist/chunk-TK3JNKME.js.map +0 -1
- /package/dist/{BidConfig-PKO3SHPM.js.map → BidConfig-P5CJR43N.js.map} +0 -0
- /package/dist/{CalendarEventCreateConfig-MCNRXHUN.js.map → CalendarEventCreateConfig-4IZ2UHS3.js.map} +0 -0
- /package/dist/{CalendarEventCreateFlowDetail-6KSERH4V.js.map → CalendarEventCreateFlowDetail-CSI6N2PF.js.map} +0 -0
- /package/dist/{CalendarEventListConfig-G3ENMMOL.js.map → CalendarEventListConfig-N4XXZLUC.js.map} +0 -0
- /package/dist/{CalendarEventListFlowDetail-454HM6LH.js.map → CalendarEventListFlowDetail-Y2MQYWXT.js.map} +0 -0
- /package/dist/{CalendarEventUpdateConfig-SOE7ETBT.js.map → CalendarEventUpdateConfig-R2IUZZWK.js.map} +0 -0
- /package/dist/{CalendarEventUpdateFlowDetail-AS6O4DCV.js.map → CalendarEventUpdateFlowDetail-MAZSAC6G.js.map} +0 -0
- /package/dist/{ClaimConfig-XZWF6MXM.js.map → ClaimConfig-QJETYD5G.js.map} +0 -0
- /package/dist/{CollectionLifecycleConfig-DRQU52FG.js.map → CollectionLifecycleConfig-CGZKXQP7.js.map} +0 -0
- /package/dist/{CollectionUsersConfig-CTRSFWNE.js.map → CollectionUsersConfig-A7ASGD2L.js.map} +0 -0
- /package/dist/{CredentialStoreConfig-UUIJPIMZ.js.map → CredentialStoreConfig-DAA3ZT24.js.map} +0 -0
- /package/dist/{CredentialStoreFlowDetail-3YIBCZ2P.js.map → CredentialStoreFlowDetail-W3TMZREQ.js.map} +0 -0
- /package/dist/{DesignPodFlowDetail-I7APOS5J.js.map → DesignPodFlowDetail-HEFNV3J3.js.map} +0 -0
- /package/dist/{DomainCardPreviewFlowDetail-7GMZ3U73.js.map → DomainCardPreviewFlowDetail-OG2SLUYU.js.map} +0 -0
- /package/dist/{DomainIndexerLookupFlowDetail-D5UBF2EZ.js.map → DomainIndexerLookupFlowDetail-DPPNZNOU.js.map} +0 -0
- /package/dist/{DomainSignFlowDetail-746C7LNN.js.map → DomainSignFlowDetail-CHJPBXCN.js.map} +0 -0
- /package/dist/{DomainSingleSelectionConfig-IINRDF2X.js.map → DomainSingleSelectionConfig-6BU762LL.js.map} +0 -0
- /package/dist/{DomainSingleSelectionFlowDetail-DDGNJZ7I.js.map → DomainSingleSelectionFlowDetail-JFFYQC4P.js.map} +0 -0
- /package/dist/{EmailSendConfig-LKBUVEOZ.js.map → EmailSendConfig-V2H65UW5.js.map} +0 -0
- /package/dist/{EntityCreateOracleFlowDetail-YQUDO5MI.js.map → EntityCreateOracleFlowDetail-ZL3FDZHV.js.map} +0 -0
- /package/dist/{EntitySingleSelectionFlowDetail-WU3TRAWU.js.map → EntitySingleSelectionFlowDetail-TL7PATBJ.js.map} +0 -0
- /package/dist/{EntityTransferFlowDetail-WAMV7YFS.js.map → EntityTransferFlowDetail-5JMBBK53.js.map} +0 -0
- /package/dist/{EvalEngineConfig-JP3LJWWU.js.map → EvalEngineConfig-UYKCKNQQ.js.map} +0 -0
- /package/dist/{EvalEngineFlowDetail-BUUKGGSD.js.map → EvalEngineFlowDetail-VCLYU5FV.js.map} +0 -0
- /package/dist/{EvaluateBidConfig-CXSCBM3X.js.map → EvaluateBidConfig-T6FZD4KE.js.map} +0 -0
- /package/dist/{EvaluateClaimConfig-XNRJJV4U.js.map → EvaluateClaimConfig-DXPZIL4Q.js.map} +0 -0
- /package/dist/{FormSubmitFlowDetail-CXG5R3WY.js.map → FormSubmitFlowDetail-34DAUMGE.js.map} +0 -0
- /package/dist/{GovernanceAuthzExecFlowDetail-KTVR7DCF.js.map → GovernanceAuthzExecFlowDetail-4ICVRCYV.js.map} +0 -0
- /package/dist/{GovernanceAuthzGrantFlowDetail-644VRW5A.js.map → GovernanceAuthzGrantFlowDetail-NYU6RBMD.js.map} +0 -0
- /package/dist/{GovernanceAuthzRevokeFlowDetail-ALTWR47Q.js.map → GovernanceAuthzRevokeFlowDetail-2NYVNJRY.js.map} +0 -0
- /package/dist/{GovernanceChainVoteFlowDetail-5KLKCHEM.js.map → GovernanceChainVoteFlowDetail-LM3NSV32.js.map} +0 -0
- /package/dist/{GovernanceConfigFlowDetail-SOXSID6T.js.map → GovernanceConfigFlowDetail-7GPHNALT.js.map} +0 -0
- /package/dist/{GovernanceContractExecuteFlowDetail-Y4TIBJPP.js.map → GovernanceContractExecuteFlowDetail-U3SOGE5Q.js.map} +0 -0
- /package/dist/{GovernanceContractInstantiateFlowDetail-6RXY72KU.js.map → GovernanceContractInstantiateFlowDetail-5S7MA2TT.js.map} +0 -0
- /package/dist/{GovernanceContractManageCw20FlowDetail-2EIDOO3K.js.map → GovernanceContractManageCw20FlowDetail-WTAYJUC6.js.map} +0 -0
- /package/dist/{GovernanceContractMigrateFlowDetail-C3N63YPC.js.map → GovernanceContractMigrateFlowDetail-FQLAJC7X.js.map} +0 -0
- /package/dist/{GovernanceContractUpdateAdminFlowDetail-HEWDMBAN.js.map → GovernanceContractUpdateAdminFlowDetail-NGZTF35T.js.map} +0 -0
- /package/dist/{GovernanceCustomMessageFlowDetail-DEZA3Z57.js.map → GovernanceCustomMessageFlowDetail-5M7NRHYN.js.map} +0 -0
- /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-W7KP4FZB.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-DJJWFWS6.js.map} +0 -0
- /package/dist/{GovernanceDaoAdminExecFlowDetail-R5EMFJFO.js.map → GovernanceDaoAdminExecFlowDetail-N7NOFQ4Z.js.map} +0 -0
- /package/dist/{GovernanceDaoCreateEntityFlowDetail-MIZB7SKM.js.map → GovernanceDaoCreateEntityFlowDetail-PSWK7BXP.js.map} +0 -0
- /package/dist/{GovernanceDaoJoinFlowDetail-WFC43PRS.js.map → GovernanceDaoJoinFlowDetail-Q3WSUZX3.js.map} +0 -0
- /package/dist/{GovernanceDaoManageStorageFlowDetail-GQHOYJDB.js.map → GovernanceDaoManageStorageFlowDetail-QWFCDZMJ.js.map} +0 -0
- /package/dist/{GovernanceDaoManageSubDaosFlowDetail-KUQE4XDR.js.map → GovernanceDaoManageSubDaosFlowDetail-2JITWAYZ.js.map} +0 -0
- /package/dist/{GovernanceDaoUpdateInfoFlowDetail-IONJD53S.js.map → GovernanceDaoUpdateInfoFlowDetail-R5ZK5SNL.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalConfig-4MLIAT6T.js.map → GovernanceMemberProposalConfig-DADW2B2Y.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalFlowDetail-IKFBZZJI.js.map → GovernanceMemberProposalFlowDetail-ZHGLGNVK.js.map} +0 -0
- /package/dist/{GovernanceNftBurnFlowDetail-EQWHCRTN.js.map → GovernanceNftBurnFlowDetail-XNHCP7SW.js.map} +0 -0
- /package/dist/{GovernanceNftManageCollectionsFlowDetail-Y2ATTFVK.js.map → GovernanceNftManageCollectionsFlowDetail-RMVCVWXS.js.map} +0 -0
- /package/dist/{GovernanceNftTransferFlowDetail-IAE4ZO5Y.js.map → GovernanceNftTransferFlowDetail-ANUJ3UUE.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalConfig-2JMD2SQ6.js.map → GovernanceSettingsProposalConfig-WT2XRFJV.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeFlowDetail-XH5WPERK.js.map → GovernanceStakingStakeFlowDetail-LM37IMVO.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeToGroupFlowDetail-WBA5EHOD.js.map → GovernanceStakingStakeToGroupFlowDetail-VNARHVFO.js.map} +0 -0
- /package/dist/{GovernanceTransactionMintFlowDetail-LWUSSCMY.js.map → GovernanceTransactionMintFlowDetail-MP36YVVV.js.map} +0 -0
- /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-7RF3YLUW.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-ABSKBNLZ.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsConfig-MFPOXPYA.js.map → GovernanceTransactionSendFundsConfig-RLDBUKIT.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsFlowDetail-DMLUO3BM.js.map → GovernanceTransactionSendFundsFlowDetail-OIYTEWTP.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-Y6XITVRH.js.map → GovernanceTransactionSendGroupTokenFlowDetail-I6ORHQUY.js.map} +0 -0
- /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-7RRP7VJF.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-HIJLXLTD.js.map} +0 -0
- /package/dist/{GovernanceValidatorActionsFlowDetail-SP7Q2TJC.js.map → GovernanceValidatorActionsFlowDetail-ANDTFZ63.js.map} +0 -0
- /package/dist/{HarvestConfig-FFARBTWA.js.map → HarvestConfig-FBA2LMWP.js.map} +0 -0
- /package/dist/{HarvestFlowDetail-EXFUJCC5.js.map → HarvestFlowDetail-YSW6OEL6.js.map} +0 -0
- /package/dist/{HttpRequestConfig-JXWZ4XZ5.js.map → HttpRequestConfig-4OJ4KQGC.js.map} +0 -0
- /package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js.map → HttpRequestFlowDetail-6JPPTSIZ.js.map} +0 -0
- /package/dist/{IdentityCreateFlowDetail-ZN5UYPAL.js.map → IdentityCreateFlowDetail-Q2Z7GSMV.js.map} +0 -0
- /package/dist/{IidCreateFlowDetail-6V3HVZTJ.js.map → IidCreateFlowDetail-LKRE5KDH.js.map} +0 -0
- /package/dist/{KycVerifyConfig-6F55N6UR.js.map → KycVerifyConfig-ZZSQPKXU.js.map} +0 -0
- /package/dist/{KycVerifyFlowDetail-H3R2KQT5.js.map → KycVerifyFlowDetail-JEQM5A7R.js.map} +0 -0
- /package/dist/{ListDomainFlowsFlowDetail-WZSP5DDP.js.map → ListDomainFlowsFlowDetail-DK4YPMEJ.js.map} +0 -0
- /package/dist/{LoadBatchesFlowDetail-6TXNWSPF.js.map → LoadBatchesFlowDetail-A4HDN3OR.js.map} +0 -0
- /package/dist/{MatrixDmConfig-RFZBU7NL.js.map → MatrixDmConfig-5VO4RJHR.js.map} +0 -0
- /package/dist/{MatrixRegisterFlowDetail-BQIC4HYM.js.map → MatrixRegisterFlowDetail-JMPQ6EHL.js.map} +0 -0
- /package/dist/{MemberMultiSelectFlowDetail-BRLUJ4KU.js.map → MemberMultiSelectFlowDetail-3ZEIOH4X.js.map} +0 -0
- /package/dist/{OracleConfig-H736YKGE.js.map → OracleConfig-6I47PA2F.js.map} +0 -0
- /package/dist/{OracleConfigureOracleFlowDetail-AS3KBSVG.js.map → OracleConfigureOracleFlowDetail-BFYUTBHC.js.map} +0 -0
- /package/dist/{OracleContractFlowDetail-6NU5KJ5Z.js.map → OracleContractFlowDetail-MYEJZNCP.js.map} +0 -0
- /package/dist/{OracleDeployFlowDetail-W2LFK23M.js.map → OracleDeployFlowDetail-YF7XQMZZ.js.map} +0 -0
- /package/dist/{OracleDeploySetupFlowDetail-4XV3XB6G.js.map → OracleDeploySetupFlowDetail-QLX7O63W.js.map} +0 -0
- /package/dist/{OracleDeployStartFlowDetail-7ZEZUSMN.js.map → OracleDeployStartFlowDetail-NRPW76XH.js.map} +0 -0
- /package/dist/{OracleFlowDetail-LQGZ2U2F.js.map → OracleFlowDetail-F7AX3GTY.js.map} +0 -0
- /package/dist/{OraclePromptFlowDetail-IWUMH4LJ.js.map → OraclePromptFlowDetail-NVHRWHTS.js.map} +0 -0
- /package/dist/{OracleStoreConfigFlowDetail-ND6YNZPT.js.map → OracleStoreConfigFlowDetail-XUBCZZBO.js.map} +0 -0
- /package/dist/{OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js.map → OracleStoreSecretsAndConfigFlowDetail-M7OEWUPG.js.map} +0 -0
- /package/dist/{OracleStoreSecretsFlowDetail-GX3ADRWP.js.map → OracleStoreSecretsFlowDetail-LHW2JSKX.js.map} +0 -0
- /package/dist/{ProposalCreateConfig-7YYMB5EH.js.map → ProposalCreateConfig-DAIAJWU4.js.map} +0 -0
- /package/dist/{ProposalVoteConfig-U5DF2WWT.js.map → ProposalVoteConfig-2FOG2FFP.js.map} +0 -0
- /package/dist/{ProposalVoteFlowDetail-66B6H75V.js.map → ProposalVoteFlowDetail-BRHGJXD2.js.map} +0 -0
- /package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js.map → ProtocolSelectFlowDetail-3RKNFTWF.js.map} +0 -0
- /package/dist/{RetireConfig-4QOIAETV.js.map → RetireConfig-IFSJTDMZ.js.map} +0 -0
- /package/dist/{RetireFlowDetail-YQLPDYC4.js.map → RetireFlowDetail-OOGYAODJ.js.map} +0 -0
- /package/dist/{SandboxProvisionFlowDetail-GVC7DAI3.js.map → SandboxProvisionFlowDetail-LFHRTPLR.js.map} +0 -0
- /package/dist/{WalletFundConfig-UEQ3TKIO.js.map → WalletFundConfig-WK7QIPL6.js.map} +0 -0
- /package/dist/{WalletFundFlowDetail-767QZKZM.js.map → WalletFundFlowDetail-N2XTMXIG.js.map} +0 -0
- /package/dist/{WalletGenerateAndFundFlowDetail-VOXXSJRG.js.map → WalletGenerateAndFundFlowDetail-5LKRKR4R.js.map} +0 -0
- /package/dist/{WalletGenerateFlowDetail-3SQVIUVH.js.map → WalletGenerateFlowDetail-RXZJMLLP.js.map} +0 -0
- /package/dist/{XeroContactCreateConfig-HXSGZD7Q.js.map → XeroContactCreateConfig-34JJXNUW.js.map} +0 -0
- /package/dist/{XeroContactCreateFlowDetail-ZUUILA5R.js.map → XeroContactCreateFlowDetail-4BDRDAXW.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateConfig-72KXJ73Z.js.map → XeroInvoiceCreateConfig-VI4HQP2Z.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateFlowDetail-ZMYUYNQM.js.map → XeroInvoiceCreateFlowDetail-AKS7WN4K.js.map} +0 -0
- /package/dist/{XeroInvoiceListConfig-DEZSXEVD.js.map → XeroInvoiceListConfig-6GELQTQK.js.map} +0 -0
- /package/dist/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js.map → XeroInvoiceListFlowDetail-27GR2BSJ.js.map} +0 -0
- /package/dist/{XeroPaymentCreateConfig-VXXJE4QT.js.map → XeroPaymentCreateConfig-7PNHPUGK.js.map} +0 -0
- /package/dist/{XeroPaymentCreateFlowDetail-PXSGHLE2.js.map → XeroPaymentCreateFlowDetail-PDWKG2SR.js.map} +0 -0
- /package/dist/{chunk-DKQM4R2N.js.map → chunk-25POTAU5.js.map} +0 -0
- /package/dist/{chunk-Z7QWH42V.js.map → chunk-3C6YD77I.js.map} +0 -0
- /package/dist/{chunk-TSXHPGXB.js.map → chunk-3WIS2UI4.js.map} +0 -0
- /package/dist/{chunk-WAM3FJJL.js.map → chunk-635DLQIO.js.map} +0 -0
- /package/dist/{chunk-TMQA4RSG.js.map → chunk-7WBLDDDN.js.map} +0 -0
- /package/dist/{chunk-OF3LB65M.js.map → chunk-A35SKJEL.js.map} +0 -0
- /package/dist/{chunk-7TT4RM2M.js.map → chunk-AJF7MIIN.js.map} +0 -0
- /package/dist/{chunk-XLBKC3EL.js.map → chunk-ARLE35FS.js.map} +0 -0
- /package/dist/{chunk-T4KY7UF7.js.map → chunk-B3R2NVUD.js.map} +0 -0
- /package/dist/{chunk-ICKOVZDM.js.map → chunk-B464VTTD.js.map} +0 -0
- /package/dist/{chunk-AOLCNPGV.js.map → chunk-BJDQVMYW.js.map} +0 -0
- /package/dist/{chunk-6SWOXRMF.js.map → chunk-CC7MDRBY.js.map} +0 -0
- /package/dist/{chunk-7LI5YJAE.js.map → chunk-D737IBAL.js.map} +0 -0
- /package/dist/{chunk-OG56C7DD.js.map → chunk-DGALOR3X.js.map} +0 -0
- /package/dist/{chunk-OV4KVTZI.js.map → chunk-EZ424ZXM.js.map} +0 -0
- /package/dist/{chunk-5NJA7YNR.js.map → chunk-FSGPZ6UT.js.map} +0 -0
- /package/dist/{chunk-EVHWLO2C.js.map → chunk-FWXXWWT7.js.map} +0 -0
- /package/dist/{chunk-AO5TGK5A.js.map → chunk-GMEYEPGZ.js.map} +0 -0
- /package/dist/{chunk-PNHXP67T.js.map → chunk-JRWJLWOY.js.map} +0 -0
- /package/dist/{chunk-WUWAC5S6.js.map → chunk-JYNYVFSY.js.map} +0 -0
- /package/dist/{chunk-5DOXIPDH.js.map → chunk-LJCGR4FZ.js.map} +0 -0
- /package/dist/{chunk-IZRTWKW3.js.map → chunk-LVPX7CAS.js.map} +0 -0
- /package/dist/{chunk-NBDFKF6H.js.map → chunk-OHXDPRPB.js.map} +0 -0
- /package/dist/{chunk-3JJJGENW.js.map → chunk-RG7Z2VMU.js.map} +0 -0
- /package/dist/{chunk-SYOPQ3JE.js.map → chunk-RNKNOEYB.js.map} +0 -0
- /package/dist/{chunk-EIDAXWST.js.map → chunk-S2TUXPUL.js.map} +0 -0
- /package/dist/{chunk-U57CCGM4.js.map → chunk-SAY4IOQ4.js.map} +0 -0
- /package/dist/{chunk-GNXZSPZ5.js.map → chunk-SWDPZFJ7.js.map} +0 -0
- /package/dist/{chunk-VNRY7ABX.js.map → chunk-X7PMVRGS.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
isBlankInputValue,
|
|
9
9
|
parseMaybeJsonObject
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UCO4YJ5L.js";
|
|
11
11
|
import {
|
|
12
12
|
buildRubricEnvelope,
|
|
13
13
|
composeCollectionDescription,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseEvalRubricInputs,
|
|
16
16
|
validateRubric,
|
|
17
17
|
validateRubricShape
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DGALOR3X.js";
|
|
19
19
|
import {
|
|
20
20
|
USDC_INJ_DISPLAY_TOKEN,
|
|
21
21
|
coinLabel,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
readDesignPodState,
|
|
49
49
|
sameDesignPodActor,
|
|
50
50
|
updateDesignPodControl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AJF7MIIN.js";
|
|
52
52
|
import {
|
|
53
53
|
extractDid
|
|
54
54
|
} from "./chunk-EBFFDDAS.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
resolveActionType,
|
|
71
71
|
sendDirectMessage,
|
|
72
72
|
sha256Digest
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-LOK5IXGD.js";
|
|
74
74
|
import {
|
|
75
75
|
isYMapLike
|
|
76
76
|
} from "./chunk-NCSGIRRQ.js";
|
|
@@ -2980,6 +2980,67 @@ register(
|
|
|
2980
2980
|
}
|
|
2981
2981
|
);
|
|
2982
2982
|
|
|
2983
|
+
// src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
|
|
2984
|
+
var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
|
|
2985
|
+
var AUTO_VOTES = /* @__PURE__ */ new Set(["yes", "no", "abstain"]);
|
|
2986
|
+
function autoVoteFromInputs(inputs) {
|
|
2987
|
+
const raw = inputs?.voteOnSubmission;
|
|
2988
|
+
const vote = raw === true ? "yes" : String(raw ?? "").trim().toLowerCase();
|
|
2989
|
+
return AUTO_VOTES.has(vote) ? { vote } : null;
|
|
2990
|
+
}
|
|
2991
|
+
function isGroupExecution(inputs) {
|
|
2992
|
+
return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
|
|
2993
|
+
}
|
|
2994
|
+
function requireGroupExecutionParams(inputs) {
|
|
2995
|
+
const coreAddress = String(inputs.groupCoreAddress || "").trim();
|
|
2996
|
+
if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
|
|
2997
|
+
const title = String(inputs.proposalTitle || "").trim();
|
|
2998
|
+
if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
|
|
2999
|
+
const description = String(inputs.proposalDescription || "").trim();
|
|
3000
|
+
if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
|
|
3001
|
+
return { coreAddress, title, description };
|
|
3002
|
+
}
|
|
3003
|
+
async function proposeGroupExecution(ctx, params) {
|
|
3004
|
+
const handlers = ctx.handlers;
|
|
3005
|
+
if (!handlers?.createGroupExecutionProposal) {
|
|
3006
|
+
throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
|
|
3007
|
+
}
|
|
3008
|
+
const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent, autoVote } = params;
|
|
3009
|
+
const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
|
|
3010
|
+
coreAddress,
|
|
3011
|
+
title,
|
|
3012
|
+
description,
|
|
3013
|
+
msgs,
|
|
3014
|
+
...autoVote ? { autoVote } : {}
|
|
3015
|
+
});
|
|
3016
|
+
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3017
|
+
throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
|
|
3018
|
+
}
|
|
3019
|
+
return {
|
|
3020
|
+
output: {
|
|
3021
|
+
...expectedOutput,
|
|
3022
|
+
groupExecution: true,
|
|
3023
|
+
groupCoreAddress: coreAddress,
|
|
3024
|
+
groupProposalId: String(proposalId),
|
|
3025
|
+
groupProposalContractAddress: String(proposalContractAddress || ""),
|
|
3026
|
+
proposalTitle: title,
|
|
3027
|
+
proposalDescription: description
|
|
3028
|
+
},
|
|
3029
|
+
completion: {
|
|
3030
|
+
state: "awaiting_readback",
|
|
3031
|
+
readBack: {
|
|
3032
|
+
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
3033
|
+
proposalId: String(proposalId),
|
|
3034
|
+
proposalContractAddress: String(proposalContractAddress || ""),
|
|
3035
|
+
coreAddress,
|
|
3036
|
+
expectedOutput,
|
|
3037
|
+
...completionEvent ? { completionEvent } : {},
|
|
3038
|
+
...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
};
|
|
3042
|
+
}
|
|
3043
|
+
|
|
2983
3044
|
// src/core/lib/actionRegistry/actions/governance/_shared.ts
|
|
2984
3045
|
var GOVERNANCE_REQUIRED_FIELDS = {
|
|
2985
3046
|
"qi/governance.authz.exec": ["authzExecActionType"],
|
|
@@ -3007,6 +3068,15 @@ var GOVERNANCE_REQUIRED_FIELDS = {
|
|
|
3007
3068
|
"qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
|
|
3008
3069
|
"qi/governance.settings-proposal": ["votingPeriodHours", "quorumPercent", "thresholdPercent"],
|
|
3009
3070
|
"qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired"],
|
|
3071
|
+
"qi/governance.submission-policy": [],
|
|
3072
|
+
"qi/governance.dao.pause": ["pauseHours"],
|
|
3073
|
+
"qi/governance.nft.active-threshold": ["thresholdType"],
|
|
3074
|
+
"qi/governance.delegation.setup": [],
|
|
3075
|
+
"qi/governance.rewards.create": ["denom", "emissionMode"],
|
|
3076
|
+
"qi/governance.proposal-module.add": ["kind", "votingPeriodSeconds"],
|
|
3077
|
+
"qi/governance.approver.setup": ["approvalModule"],
|
|
3078
|
+
"qi/governance.rewards.fund": ["distributionId", "amount"],
|
|
3079
|
+
"qi/governance.rewards.withdraw": ["distributionId"],
|
|
3010
3080
|
"qi/governance.transaction.mint": ["recipient", "amount"],
|
|
3011
3081
|
"qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
|
|
3012
3082
|
"qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
|
|
@@ -3038,8 +3108,40 @@ var GOVERNANCE_FIELDS = {
|
|
|
3038
3108
|
"qi/governance.nft.transfer": ["collection", "tokenId", "recipient", "executeSmartContract", "smartContractMsg"],
|
|
3039
3109
|
"qi/governance.staking.stake": ["stakeType", "validator", "toValidator", "amount"],
|
|
3040
3110
|
"qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
|
|
3041
|
-
"qi/governance.settings-proposal": [
|
|
3042
|
-
|
|
3111
|
+
"qi/governance.settings-proposal": [
|
|
3112
|
+
"votingPeriodHours",
|
|
3113
|
+
"quorumPercent",
|
|
3114
|
+
"thresholdPercent",
|
|
3115
|
+
"allowRevoting",
|
|
3116
|
+
"vetoEnabled",
|
|
3117
|
+
"vetoer",
|
|
3118
|
+
"vetoTimelockHours",
|
|
3119
|
+
"vetoEarlyExecute",
|
|
3120
|
+
"vetoBeforePassed"
|
|
3121
|
+
],
|
|
3122
|
+
"qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired", "depositAmount", "depositRefundPolicy", "policyMode", "daoMembers", "allowlist", "denylist"],
|
|
3123
|
+
"qi/governance.submission-policy": ["allowlistAdd", "allowlistRemove", "denylistAdd", "denylistRemove", "setDaoMembers"],
|
|
3124
|
+
"qi/governance.dao.pause": ["pauseHours"],
|
|
3125
|
+
"qi/governance.nft.active-threshold": ["thresholdType", "thresholdValue"],
|
|
3126
|
+
"qi/governance.delegation.setup": ["vpCapPercent", "validityBlocks", "maxDelegations"],
|
|
3127
|
+
"qi/governance.rewards.create": ["denomType", "denom", "emissionMode", "amount", "periodSeconds", "continuous", "openFunding", "withdrawDestination"],
|
|
3128
|
+
"qi/governance.proposal-module.add": [
|
|
3129
|
+
"kind",
|
|
3130
|
+
"approvalRequired",
|
|
3131
|
+
"approver",
|
|
3132
|
+
"thresholdPercent",
|
|
3133
|
+
"quorumPercent",
|
|
3134
|
+
"votingPeriodSeconds",
|
|
3135
|
+
"allowRevoting",
|
|
3136
|
+
"anyoneCanPropose",
|
|
3137
|
+
"depositAmount",
|
|
3138
|
+
"depositDenom",
|
|
3139
|
+
"depositRefundPolicy",
|
|
3140
|
+
"label"
|
|
3141
|
+
],
|
|
3142
|
+
"qi/governance.approver.setup": ["approvalModule", "votingPeriodSeconds", "thresholdPercent"],
|
|
3143
|
+
"qi/governance.rewards.fund": ["distributionId", "amount"],
|
|
3144
|
+
"qi/governance.rewards.withdraw": ["distributionId"],
|
|
3043
3145
|
"qi/governance.transaction.mint": ["recipient", "amount"],
|
|
3044
3146
|
"qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
|
|
3045
3147
|
"qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
|
|
@@ -3047,8 +3149,39 @@ var GOVERNANCE_FIELDS = {
|
|
|
3047
3149
|
"qi/governance.transaction.withdraw-token-swap": ["tokenSwapContractAddress"],
|
|
3048
3150
|
"qi/governance.validator.actions": ["validatorActionType", "createMsg", "editMsg"]
|
|
3049
3151
|
};
|
|
3050
|
-
var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
|
|
3051
|
-
|
|
3152
|
+
var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
|
|
3153
|
+
"adding",
|
|
3154
|
+
"automaticallyAddCw20s",
|
|
3155
|
+
"automaticallyAddCw721s",
|
|
3156
|
+
"executeSmartContract",
|
|
3157
|
+
"anyoneCanPropose",
|
|
3158
|
+
"depositRequired",
|
|
3159
|
+
"allowRevoting",
|
|
3160
|
+
"vetoEnabled",
|
|
3161
|
+
"vetoEarlyExecute",
|
|
3162
|
+
"vetoBeforePassed",
|
|
3163
|
+
"daoMembers",
|
|
3164
|
+
"setDaoMembers",
|
|
3165
|
+
"continuous",
|
|
3166
|
+
"openFunding",
|
|
3167
|
+
"approvalRequired"
|
|
3168
|
+
]);
|
|
3169
|
+
var NUMBER_FIELDS = /* @__PURE__ */ new Set([
|
|
3170
|
+
"codeId",
|
|
3171
|
+
"vote",
|
|
3172
|
+
"votingPeriodHours",
|
|
3173
|
+
"quorumPercent",
|
|
3174
|
+
"thresholdPercent",
|
|
3175
|
+
"vetoTimelockHours",
|
|
3176
|
+
"pauseHours",
|
|
3177
|
+
"thresholdValue",
|
|
3178
|
+
"vpCapPercent",
|
|
3179
|
+
"validityBlocks",
|
|
3180
|
+
"maxDelegations",
|
|
3181
|
+
"periodSeconds",
|
|
3182
|
+
"distributionId",
|
|
3183
|
+
"votingPeriodSeconds"
|
|
3184
|
+
]);
|
|
3052
3185
|
var ARRAY_FIELDS = /* @__PURE__ */ new Set(["funds", "msgs", "toAdd", "toRemove", "members"]);
|
|
3053
3186
|
var OBJECT_FIELDS = /* @__PURE__ */ new Set(["value"]);
|
|
3054
3187
|
function governanceProperty(name) {
|
|
@@ -3062,7 +3195,12 @@ function governanceInputSchema(type, extraFields = {}, requiredOverride) {
|
|
|
3062
3195
|
const properties = {
|
|
3063
3196
|
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
3064
3197
|
title: { type: "string", description: "Proposal title voters see." },
|
|
3065
|
-
description: { type: "string", description: "Long-form proposal description voters see." }
|
|
3198
|
+
description: { type: "string", description: "Long-form proposal description voters see." },
|
|
3199
|
+
voteOnSubmission: {
|
|
3200
|
+
type: "string",
|
|
3201
|
+
enum: ["", "yes", "no", "abstain"],
|
|
3202
|
+
description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
|
|
3203
|
+
}
|
|
3066
3204
|
};
|
|
3067
3205
|
for (const field of GOVERNANCE_FIELDS[type] || []) properties[field] = governanceProperty(field);
|
|
3068
3206
|
Object.assign(properties, extraFields);
|
|
@@ -3110,13 +3248,15 @@ function registerGovernanceProposalAction(spec) {
|
|
|
3110
3248
|
const { preProposalContractAddress } = await handlers.getPreProposalContractAddress({ coreAddress });
|
|
3111
3249
|
const { groupContractAddress } = await handlers.getGroupContractAddress({ coreAddress });
|
|
3112
3250
|
const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
|
|
3251
|
+
const autoVote = autoVoteFromInputs(inputs);
|
|
3113
3252
|
const proposalId = await handlers.createProposal({
|
|
3114
3253
|
preProposalContractAddress,
|
|
3115
3254
|
title,
|
|
3116
3255
|
description,
|
|
3117
3256
|
actions,
|
|
3118
3257
|
coreAddress,
|
|
3119
|
-
groupContractAddress
|
|
3258
|
+
groupContractAddress,
|
|
3259
|
+
...autoVote ? { autoVote } : {}
|
|
3120
3260
|
});
|
|
3121
3261
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3122
3262
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -3155,6 +3295,10 @@ function registerGovernanceProposalAction(spec) {
|
|
|
3155
3295
|
}
|
|
3156
3296
|
});
|
|
3157
3297
|
}
|
|
3298
|
+
function parseAddressList(value) {
|
|
3299
|
+
const list = Array.isArray(value) ? value : typeof value === "string" ? value.split(/[\s,;]+/) : [];
|
|
3300
|
+
return [...new Set(list.map((v) => String(v ?? "").trim()).filter(Boolean))];
|
|
3301
|
+
}
|
|
3158
3302
|
|
|
3159
3303
|
// src/core/lib/actionRegistry/actions/governance/memberProposal.ts
|
|
3160
3304
|
var VALID_OPERATIONS = ["add", "remove", "update-weight"];
|
|
@@ -3244,7 +3388,8 @@ registerAction({
|
|
|
3244
3388
|
description,
|
|
3245
3389
|
actions: [updateMembersAction],
|
|
3246
3390
|
coreAddress,
|
|
3247
|
-
groupContractAddress
|
|
3391
|
+
groupContractAddress,
|
|
3392
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
3248
3393
|
});
|
|
3249
3394
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3250
3395
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -3265,6 +3410,8 @@ registerAction({
|
|
|
3265
3410
|
});
|
|
3266
3411
|
|
|
3267
3412
|
// src/core/lib/actionRegistry/actions/governance/settingsProposal.ts
|
|
3413
|
+
var isTrue = (value) => value === true || value === "true";
|
|
3414
|
+
var isFalse = (value) => value === false || value === "false";
|
|
3268
3415
|
function clampPercent(value, label, { allowZero = false } = {}) {
|
|
3269
3416
|
const n = Number(value);
|
|
3270
3417
|
if (!Number.isFinite(n)) throw new Error(`${label} must be a number`);
|
|
@@ -3288,7 +3435,13 @@ registerAction({
|
|
|
3288
3435
|
{ path: "status", displayName: "Proposal Status", type: "string", description: "Current proposal status (open, passed, rejected, executed, etc.)" },
|
|
3289
3436
|
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module contract address" },
|
|
3290
3437
|
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
3291
|
-
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" }
|
|
3438
|
+
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" },
|
|
3439
|
+
{
|
|
3440
|
+
path: "vetoConfigured",
|
|
3441
|
+
displayName: "Veto Configured",
|
|
3442
|
+
type: "string",
|
|
3443
|
+
description: "'true' when the proposal sets a veto, 'false' when it clears one, 'unchanged' otherwise"
|
|
3444
|
+
}
|
|
3292
3445
|
],
|
|
3293
3446
|
// Mirrors run()'s throw-preamble (there is no inputSchema to declare
|
|
3294
3447
|
// requiredness on): coreAddress and the three numeric voting settings.
|
|
@@ -3331,6 +3484,15 @@ registerAction({
|
|
|
3331
3484
|
proposalDurationUnits: "hours",
|
|
3332
3485
|
allowRevoting
|
|
3333
3486
|
};
|
|
3487
|
+
if (isTrue(inputs.vetoEnabled)) {
|
|
3488
|
+
const vetoer = String(inputs.vetoer || "").trim();
|
|
3489
|
+
if (!vetoer) throw new Error("vetoer is required when the veto is enabled");
|
|
3490
|
+
const timelockHours = Number(inputs.vetoTimelockHours);
|
|
3491
|
+
if (!Number.isFinite(timelockHours) || timelockHours <= 0) throw new Error("vetoTimelockHours must be a positive number");
|
|
3492
|
+
Object.assign(data, { veto: { vetoer, timelockHours, earlyExecute: isTrue(inputs.vetoEarlyExecute), vetoBeforePassed: isTrue(inputs.vetoBeforePassed) } });
|
|
3493
|
+
} else if (isFalse(inputs.vetoEnabled)) {
|
|
3494
|
+
Object.assign(data, { veto: null });
|
|
3495
|
+
}
|
|
3334
3496
|
const updateVotingConfigAction = { type: "UpdateVotingConfig", data };
|
|
3335
3497
|
const title = String(inputs.title || "").trim() || "Update governance settings";
|
|
3336
3498
|
const description = String(inputs.description || "").trim() || "Updates the POD's voting rules once the proposal passes.";
|
|
@@ -3343,7 +3505,8 @@ registerAction({
|
|
|
3343
3505
|
description,
|
|
3344
3506
|
actions: [updateVotingConfigAction],
|
|
3345
3507
|
coreAddress,
|
|
3346
|
-
groupContractAddress
|
|
3508
|
+
groupContractAddress,
|
|
3509
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
3347
3510
|
});
|
|
3348
3511
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3349
3512
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -3356,7 +3519,8 @@ registerAction({
|
|
|
3356
3519
|
status: "open",
|
|
3357
3520
|
proposalContractAddress: proposalContractAddress || "",
|
|
3358
3521
|
coreAddress,
|
|
3359
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
3522
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3523
|
+
vetoConfigured: isTrue(inputs.vetoEnabled) ? "true" : isFalse(inputs.vetoEnabled) ? "false" : "unchanged"
|
|
3360
3524
|
}
|
|
3361
3525
|
};
|
|
3362
3526
|
}
|
|
@@ -3383,6 +3547,14 @@ registerGovernanceProposalAction({
|
|
|
3383
3547
|
}
|
|
3384
3548
|
refundPolicy = policy;
|
|
3385
3549
|
}
|
|
3550
|
+
const policyMode = String(inputs.policyMode || "").trim();
|
|
3551
|
+
if (policyMode && policyMode !== "anyone" && policyMode !== "specific") throw new Error("policyMode must be 'anyone' or 'specific'");
|
|
3552
|
+
const submissionPolicy = policyMode ? {
|
|
3553
|
+
mode: policyMode,
|
|
3554
|
+
daoMembers: inputs.daoMembers === void 0 ? true : inputs.daoMembers === true || inputs.daoMembers === "true",
|
|
3555
|
+
allowlist: parseAddressList(inputs.allowlist),
|
|
3556
|
+
denylist: parseAddressList(inputs.denylist)
|
|
3557
|
+
} : void 0;
|
|
3386
3558
|
return [
|
|
3387
3559
|
{
|
|
3388
3560
|
type: "UpdatePreProposeConfig",
|
|
@@ -3390,7 +3562,8 @@ registerGovernanceProposalAction({
|
|
|
3390
3562
|
depositRequired,
|
|
3391
3563
|
// Deposit token fixed to the chain's native IXO (uixo) for now.
|
|
3392
3564
|
depositInfo: { amount, type: "native", denomOrAddress: "uixo", refundPolicy },
|
|
3393
|
-
anyoneCanPropose
|
|
3565
|
+
anyoneCanPropose: submissionPolicy ? submissionPolicy.mode === "anyone" : anyoneCanPropose,
|
|
3566
|
+
...submissionPolicy ? { submissionPolicy } : {}
|
|
3394
3567
|
}
|
|
3395
3568
|
}
|
|
3396
3569
|
];
|
|
@@ -3414,6 +3587,37 @@ registerGovernanceProposalAction({
|
|
|
3414
3587
|
]
|
|
3415
3588
|
});
|
|
3416
3589
|
|
|
3590
|
+
// src/core/lib/actionRegistry/actions/governance/submissionPolicy.ts
|
|
3591
|
+
registerGovernanceProposalAction({
|
|
3592
|
+
type: "qi/governance.submission-policy",
|
|
3593
|
+
can: "governance/submission-policy",
|
|
3594
|
+
buildActions: (inputs) => {
|
|
3595
|
+
const allowlistAdd = parseAddressList(inputs.allowlistAdd);
|
|
3596
|
+
const allowlistRemove = parseAddressList(inputs.allowlistRemove);
|
|
3597
|
+
const denylistAdd = parseAddressList(inputs.denylistAdd);
|
|
3598
|
+
const denylistRemove = parseAddressList(inputs.denylistRemove);
|
|
3599
|
+
const setDaoMembers = inputs.setDaoMembers === true || inputs.setDaoMembers === "true" ? true : inputs.setDaoMembers === false || inputs.setDaoMembers === "false" ? false : null;
|
|
3600
|
+
if (!allowlistAdd.length && !allowlistRemove.length && !denylistAdd.length && !denylistRemove.length && setDaoMembers === null) {
|
|
3601
|
+
throw new Error("Nothing to change \u2014 add or remove at least one address, or set whether members may propose");
|
|
3602
|
+
}
|
|
3603
|
+
return [{ type: "UpdateSubmissionPolicy", data: { allowlistAdd, allowlistRemove, denylistAdd, denylistRemove, setDaoMembers } }];
|
|
3604
|
+
},
|
|
3605
|
+
defaultTitle: () => "Update who may submit proposals",
|
|
3606
|
+
defaultDescription: () => "Changes the allow and deny lists for proposal submission once the proposal passes; the proposal deposit is untouched.",
|
|
3607
|
+
buildExtraOutput: (inputs) => ({
|
|
3608
|
+
allowlistAdd: parseAddressList(inputs.allowlistAdd).join(","),
|
|
3609
|
+
allowlistRemove: parseAddressList(inputs.allowlistRemove).join(","),
|
|
3610
|
+
denylistAdd: parseAddressList(inputs.denylistAdd).join(","),
|
|
3611
|
+
denylistRemove: parseAddressList(inputs.denylistRemove).join(",")
|
|
3612
|
+
}),
|
|
3613
|
+
extraOutputSchema: [
|
|
3614
|
+
{ path: "allowlistAdd", displayName: "Allowlist Added", type: "string", description: "Addresses gaining the right to propose" },
|
|
3615
|
+
{ path: "allowlistRemove", displayName: "Allowlist Removed", type: "string", description: "Addresses losing the right to propose" },
|
|
3616
|
+
{ path: "denylistAdd", displayName: "Denylist Added", type: "string", description: "Addresses blocked from proposing" },
|
|
3617
|
+
{ path: "denylistRemove", displayName: "Denylist Removed", type: "string", description: "Addresses unblocked" }
|
|
3618
|
+
]
|
|
3619
|
+
});
|
|
3620
|
+
|
|
3417
3621
|
// src/core/lib/actionRegistry/actions/governance/transactionSendFunds.ts
|
|
3418
3622
|
registerAction({
|
|
3419
3623
|
type: "qi/governance.transaction.send-funds",
|
|
@@ -3481,7 +3685,8 @@ registerAction({
|
|
|
3481
3685
|
description,
|
|
3482
3686
|
actions: [spendAction],
|
|
3483
3687
|
coreAddress,
|
|
3484
|
-
groupContractAddress
|
|
3688
|
+
groupContractAddress,
|
|
3689
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
3485
3690
|
});
|
|
3486
3691
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3487
3692
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -4038,6 +4243,659 @@ registerGovernanceProposalAction({
|
|
|
4038
4243
|
extraOutputSchema: [{ path: "typeUrl", displayName: "Message Type URL", type: "string", description: "The stargate message type the proposal broadcasts" }]
|
|
4039
4244
|
});
|
|
4040
4245
|
|
|
4246
|
+
// src/core/lib/actionRegistry/actions/governance/daoUpgrade.ts
|
|
4247
|
+
var isTrue2 = (value) => value === true || value === "true";
|
|
4248
|
+
var OUTPUT_SCHEMA = [
|
|
4249
|
+
{ path: "status", displayName: "Upgrade Status", type: "string", description: "'up-to-date', 'core-migrated', 'proposal-open', 'proposal-executed' or 'partial'" },
|
|
4250
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4251
|
+
{ path: "targetVersion", displayName: "Target Version", type: "string", description: "The DAO DAO generation upgraded to" },
|
|
4252
|
+
{ path: "coreMigrated", displayName: "Core Migrated", type: "string", description: "'true' when this run migrated the core contract" },
|
|
4253
|
+
{ path: "coreTransactionHash", displayName: "Core Migration Tx", type: "string", description: "Transaction hash of the direct core migration, when one was signed" },
|
|
4254
|
+
{ path: "proposalId", displayName: "Proposal ID", type: "string", description: "The on-chain proposal migrating the governance modules, when one was created" },
|
|
4255
|
+
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the upgrade proposal lives on" },
|
|
4256
|
+
{ path: "proposalTitle", displayName: "Proposal Title", type: "string", description: "The proposal name voters see on-chain" },
|
|
4257
|
+
{ path: "proposalDescription", displayName: "Proposal Description", type: "string", description: "The long-form description voters see on-chain" },
|
|
4258
|
+
{ path: "migratedModules", displayName: "Migrated Modules", type: "string", description: "Comma-separated list of the modules the proposal migrates" },
|
|
4259
|
+
{ path: "skippedModules", displayName: "Skipped Modules", type: "string", description: "Comma-separated list of modules left as they are, with the reason" },
|
|
4260
|
+
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of this run" }
|
|
4261
|
+
];
|
|
4262
|
+
function summarizePlan(plan) {
|
|
4263
|
+
const migrated = (plan.messages.proposalStep?.items || []).filter((item) => item.kind !== "remove-hook").map((item) => `${item.contract} ${item.fromVersion}\u2192${item.toVersion}${item.kind === "swap" ? " (replaced)" : ""}`).join(", ");
|
|
4264
|
+
const skipped = plan.messages.skipped.map((entry) => `${entry.contract} (${entry.reason})`).join(", ");
|
|
4265
|
+
return { migrated, skipped };
|
|
4266
|
+
}
|
|
4267
|
+
registerAction({
|
|
4268
|
+
type: "qi/governance.dao.upgrade",
|
|
4269
|
+
can: "governance.dao/upgrade",
|
|
4270
|
+
sideEffect: true,
|
|
4271
|
+
executionOwner: "human",
|
|
4272
|
+
proof: { fields: ["status"] },
|
|
4273
|
+
done: doneWhenCompleted,
|
|
4274
|
+
defaultRequiresConfirmation: true,
|
|
4275
|
+
requiredCapability: "flow/block/execute",
|
|
4276
|
+
inputSchema: {
|
|
4277
|
+
type: "object",
|
|
4278
|
+
required: ["coreAddress"],
|
|
4279
|
+
additionalProperties: false,
|
|
4280
|
+
properties: {
|
|
4281
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4282
|
+
migrateVotingModule: { type: "boolean", description: "Also migrate the voting module (cw4 migrations bundle the required RemoveHook)." },
|
|
4283
|
+
skipCoreMigration: { type: "boolean", description: "Leave the core contract at its current version and only propose the module migrations." },
|
|
4284
|
+
title: { type: "string", description: "Proposal title voters see." },
|
|
4285
|
+
description: { type: "string", description: "Long-form proposal description voters see." }
|
|
4286
|
+
}
|
|
4287
|
+
},
|
|
4288
|
+
outputSchema: OUTPUT_SCHEMA,
|
|
4289
|
+
run: async (inputs, ctx) => {
|
|
4290
|
+
const handlers = ctx.handlers;
|
|
4291
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4292
|
+
if (!handlers.getDaoUpgradePlan || !handlers.executeTransaction || !handlers.createProposal) {
|
|
4293
|
+
throw new Error("DAO upgrade handlers not available on this host");
|
|
4294
|
+
}
|
|
4295
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4296
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4297
|
+
const migrateVotingModule = isTrue2(inputs.migrateVotingModule);
|
|
4298
|
+
const plan = await handlers.getDaoUpgradePlan({ coreAddress, migrateVotingModule });
|
|
4299
|
+
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
4300
|
+
const { migrated, skipped } = summarizePlan(plan);
|
|
4301
|
+
const blocking = plan.issues.filter((issue) => issue.severity === "blocking");
|
|
4302
|
+
if (blocking.length) throw new Error(blocking.map((issue) => issue.message).join(" "));
|
|
4303
|
+
const base = {
|
|
4304
|
+
coreAddress,
|
|
4305
|
+
targetVersion: plan.targetVersion,
|
|
4306
|
+
coreMigrated: "false",
|
|
4307
|
+
coreTransactionHash: "",
|
|
4308
|
+
proposalId: "",
|
|
4309
|
+
proposalContractAddress: "",
|
|
4310
|
+
proposalTitle: "",
|
|
4311
|
+
proposalDescription: "",
|
|
4312
|
+
migratedModules: migrated,
|
|
4313
|
+
skippedModules: skipped,
|
|
4314
|
+
createdAt
|
|
4315
|
+
};
|
|
4316
|
+
if (plan.isUpToDate) {
|
|
4317
|
+
return { output: { ...base, status: "up-to-date" } };
|
|
4318
|
+
}
|
|
4319
|
+
let coreTransactionHash = "";
|
|
4320
|
+
const coreStep = plan.messages.coreStep;
|
|
4321
|
+
if (coreStep && plan.canSignCore && !isTrue2(inputs.skipCoreMigration)) {
|
|
4322
|
+
const result = await handlers.executeTransaction({
|
|
4323
|
+
messages: [coreStep.message],
|
|
4324
|
+
memo: `Migrate DAO core ${coreAddress} to DAO DAO v${plan.targetVersion}`
|
|
4325
|
+
});
|
|
4326
|
+
coreTransactionHash = String(result?.transactionHash || "");
|
|
4327
|
+
if (!coreTransactionHash) throw new Error("The core migration returned no transaction hash \u2014 check the wallet and try again.");
|
|
4328
|
+
}
|
|
4329
|
+
const proposalStep = plan.messages.proposalStep;
|
|
4330
|
+
if (!proposalStep) {
|
|
4331
|
+
if (!coreTransactionHash) {
|
|
4332
|
+
throw new Error(plan.issues.map((issue) => issue.message).join(" ") || "Nothing in this upgrade can be executed by the connected wallet.");
|
|
4333
|
+
}
|
|
4334
|
+
return { output: { ...base, status: "core-migrated", coreMigrated: "true", coreTransactionHash } };
|
|
4335
|
+
}
|
|
4336
|
+
const title = String(inputs.title || "").trim() || proposalStep.title;
|
|
4337
|
+
const description = String(inputs.description || "").trim() || proposalStep.description;
|
|
4338
|
+
const proposalId = await handlers.createProposal({
|
|
4339
|
+
preProposalContractAddress: plan.preProposalContractAddress,
|
|
4340
|
+
title,
|
|
4341
|
+
description,
|
|
4342
|
+
actions: proposalStep.actions,
|
|
4343
|
+
coreAddress,
|
|
4344
|
+
groupContractAddress: plan.groupContractAddress
|
|
4345
|
+
});
|
|
4346
|
+
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
4347
|
+
throw new Error("Upgrade proposal creation returned no proposal id. Check the handler logs.");
|
|
4348
|
+
}
|
|
4349
|
+
const proposalContractAddress = String(plan.version.proposal?.address || "");
|
|
4350
|
+
const expectedOutput = {
|
|
4351
|
+
...base,
|
|
4352
|
+
status: "proposal-executed",
|
|
4353
|
+
coreMigrated: coreTransactionHash ? "true" : "false",
|
|
4354
|
+
coreTransactionHash,
|
|
4355
|
+
proposalId: String(proposalId),
|
|
4356
|
+
proposalContractAddress,
|
|
4357
|
+
proposalTitle: title,
|
|
4358
|
+
proposalDescription: description
|
|
4359
|
+
};
|
|
4360
|
+
return {
|
|
4361
|
+
output: { ...expectedOutput, status: "proposal-open" },
|
|
4362
|
+
completion: {
|
|
4363
|
+
state: "awaiting_readback",
|
|
4364
|
+
readBack: {
|
|
4365
|
+
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
4366
|
+
proposalId: String(proposalId),
|
|
4367
|
+
proposalContractAddress,
|
|
4368
|
+
coreAddress,
|
|
4369
|
+
expectedOutput
|
|
4370
|
+
}
|
|
4371
|
+
},
|
|
4372
|
+
topicRecords: ctx.topic ? [
|
|
4373
|
+
{
|
|
4374
|
+
type: "org.ixo.topic.proposal-receipt",
|
|
4375
|
+
id: sha256Digest({ topicId: ctx.topic.topicId, proposalContractAddress, proposalId }),
|
|
4376
|
+
version: 1,
|
|
4377
|
+
value: {
|
|
4378
|
+
event: "created",
|
|
4379
|
+
actionType: "qi/governance.dao.upgrade",
|
|
4380
|
+
proposalId: String(proposalId),
|
|
4381
|
+
proposalContractAddress,
|
|
4382
|
+
coreAddress,
|
|
4383
|
+
proposalTitle: title,
|
|
4384
|
+
proposalDescriptionDigest: sha256Digest(description),
|
|
4385
|
+
createdAt
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4388
|
+
] : void 0
|
|
4389
|
+
};
|
|
4390
|
+
}
|
|
4391
|
+
});
|
|
4392
|
+
|
|
4393
|
+
// src/core/lib/actionRegistry/actions/governance/veto.ts
|
|
4394
|
+
registerAction({
|
|
4395
|
+
type: "qi/governance.veto",
|
|
4396
|
+
can: "governance/veto",
|
|
4397
|
+
sideEffect: true,
|
|
4398
|
+
executionOwner: "human",
|
|
4399
|
+
proof: { fields: ["transactionHash"] },
|
|
4400
|
+
done: doneWhenCompleted,
|
|
4401
|
+
defaultRequiresConfirmation: true,
|
|
4402
|
+
requiredCapability: "flow/block/execute",
|
|
4403
|
+
inputSchema: {
|
|
4404
|
+
type: "object",
|
|
4405
|
+
required: ["coreAddress", "proposalId"],
|
|
4406
|
+
additionalProperties: false,
|
|
4407
|
+
properties: {
|
|
4408
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4409
|
+
proposalId: { type: ["string", "number"], description: "The proposal to veto." }
|
|
4410
|
+
}
|
|
4411
|
+
},
|
|
4412
|
+
outputSchema: [
|
|
4413
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the veto transaction" },
|
|
4414
|
+
{ path: "proposalId", displayName: "Proposal ID", type: "string", description: "The vetoed proposal" },
|
|
4415
|
+
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the veto was sent to" },
|
|
4416
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4417
|
+
{ path: "status", displayName: "Proposal Status", type: "string", description: "'vetoed' once the veto transaction landed" },
|
|
4418
|
+
{ path: "vetoedAt", displayName: "Vetoed At", type: "string", description: "ISO timestamp of the veto" }
|
|
4419
|
+
],
|
|
4420
|
+
run: async (inputs, ctx) => {
|
|
4421
|
+
const handlers = ctx.handlers;
|
|
4422
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4423
|
+
if (!handlers.getProposalContractAddress || !handlers.vetoProposal) throw new Error("Veto handlers not available on this host");
|
|
4424
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4425
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4426
|
+
const proposalId = Number(inputs.proposalId);
|
|
4427
|
+
if (!Number.isInteger(proposalId) || proposalId <= 0) throw new Error("proposalId must be a positive whole number");
|
|
4428
|
+
const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
|
|
4429
|
+
if (!proposalContractAddress) throw new Error(`No proposal module found for ${coreAddress}`);
|
|
4430
|
+
const { transactionHash } = await handlers.vetoProposal({ proposalContractAddress, proposalId });
|
|
4431
|
+
if (!transactionHash) throw new Error("The veto returned no transaction hash. Check the handler logs.");
|
|
4432
|
+
return {
|
|
4433
|
+
output: {
|
|
4434
|
+
transactionHash,
|
|
4435
|
+
proposalId: String(proposalId),
|
|
4436
|
+
proposalContractAddress,
|
|
4437
|
+
coreAddress,
|
|
4438
|
+
status: "vetoed",
|
|
4439
|
+
vetoedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
4440
|
+
}
|
|
4441
|
+
};
|
|
4442
|
+
}
|
|
4443
|
+
});
|
|
4444
|
+
|
|
4445
|
+
// src/core/lib/actionRegistry/actions/governance/daoPause.ts
|
|
4446
|
+
registerGovernanceProposalAction({
|
|
4447
|
+
type: "qi/governance.dao.pause",
|
|
4448
|
+
can: "governance/dao-pause",
|
|
4449
|
+
buildActions: (inputs) => {
|
|
4450
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4451
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4452
|
+
const hours = Number(inputs.pauseHours);
|
|
4453
|
+
if (!Number.isFinite(hours) || hours <= 0) throw new Error("pauseHours must be a positive number of hours");
|
|
4454
|
+
const seconds = Math.round(hours * 3600);
|
|
4455
|
+
return [{ type: "Execute", data: { address: coreAddress, message: JSON.stringify({ pause: { duration: { time: seconds } } }), funds: [] } }];
|
|
4456
|
+
},
|
|
4457
|
+
defaultTitle: (inputs) => `Pause the group for ${Number(inputs.pauseHours) || "?"} hours`,
|
|
4458
|
+
defaultDescription: () => "Once this proposal passes the group executes nothing until the pause ends; proposing and voting continue.",
|
|
4459
|
+
buildExtraOutput: (inputs) => ({ pauseSeconds: String(Math.round((Number(inputs.pauseHours) || 0) * 3600)) }),
|
|
4460
|
+
extraOutputSchema: [{ path: "pauseSeconds", displayName: "Pause Seconds", type: "string", description: "The pause duration submitted, in seconds" }]
|
|
4461
|
+
});
|
|
4462
|
+
|
|
4463
|
+
// src/core/lib/actionRegistry/actions/governance/daoUnpause.ts
|
|
4464
|
+
registerAction({
|
|
4465
|
+
type: "qi/governance.dao.unpause",
|
|
4466
|
+
can: "governance/dao-unpause",
|
|
4467
|
+
sideEffect: true,
|
|
4468
|
+
executionOwner: "human",
|
|
4469
|
+
proof: { fields: ["transactionHash"] },
|
|
4470
|
+
done: doneWhenCompleted,
|
|
4471
|
+
defaultRequiresConfirmation: true,
|
|
4472
|
+
requiredCapability: "flow/block/execute",
|
|
4473
|
+
inputSchema: {
|
|
4474
|
+
type: "object",
|
|
4475
|
+
required: ["coreAddress"],
|
|
4476
|
+
additionalProperties: false,
|
|
4477
|
+
properties: {
|
|
4478
|
+
coreAddress: { type: "string", description: "DAO core contract address." }
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4481
|
+
outputSchema: [
|
|
4482
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the unpause transaction" },
|
|
4483
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4484
|
+
{ path: "unpausedAt", displayName: "Unpaused At", type: "string", description: "ISO timestamp of the unpause" }
|
|
4485
|
+
],
|
|
4486
|
+
run: async (inputs, ctx) => {
|
|
4487
|
+
const handlers = ctx.handlers;
|
|
4488
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4489
|
+
if (!handlers.unpauseDao) throw new Error("Unpause handler not available on this host");
|
|
4490
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4491
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4492
|
+
const { transactionHash } = await handlers.unpauseDao({ coreAddress });
|
|
4493
|
+
if (!transactionHash) throw new Error("The unpause returned no transaction hash. Check the handler logs.");
|
|
4494
|
+
return { output: { transactionHash, coreAddress, unpausedAt: (/* @__PURE__ */ new Date()).toISOString() } };
|
|
4495
|
+
}
|
|
4496
|
+
});
|
|
4497
|
+
|
|
4498
|
+
// src/core/lib/actionRegistry/actions/governance/nftActiveThreshold.ts
|
|
4499
|
+
registerGovernanceProposalAction({
|
|
4500
|
+
type: "qi/governance.nft.active-threshold",
|
|
4501
|
+
can: "governance/nft-active-threshold",
|
|
4502
|
+
buildActions: (inputs) => {
|
|
4503
|
+
const thresholdType = String(inputs.thresholdType || "none").trim();
|
|
4504
|
+
if (!["none", "count", "percent"].includes(thresholdType)) throw new Error("thresholdType must be 'none', 'count' or 'percent'");
|
|
4505
|
+
const value = Number(inputs.thresholdValue);
|
|
4506
|
+
if (thresholdType === "count" && (!Number.isInteger(value) || value <= 0)) throw new Error("thresholdValue must be a whole number greater than 0 for a count threshold");
|
|
4507
|
+
if (thresholdType === "percent" && (!Number.isFinite(value) || value <= 0 || value > 100))
|
|
4508
|
+
throw new Error("thresholdValue must be between 0 and 100 for a percentage threshold");
|
|
4509
|
+
return [{ type: "UpdateActiveThreshold", data: thresholdType === "none" ? { thresholdType } : { thresholdType, thresholdValue: value } }];
|
|
4510
|
+
},
|
|
4511
|
+
defaultTitle: (inputs) => String(inputs.thresholdType || "none") === "none" ? "Remove the active threshold" : `Set the active threshold to ${inputs.thresholdValue}${String(inputs.thresholdType) === "percent" ? "%" : " staked"}`,
|
|
4512
|
+
defaultDescription: () => "Changes how much of the collection must be staked before this group accepts new proposals.",
|
|
4513
|
+
buildExtraOutput: (inputs) => ({ thresholdType: String(inputs.thresholdType || "none"), thresholdValue: String(inputs.thresholdValue ?? "") }),
|
|
4514
|
+
extraOutputSchema: [
|
|
4515
|
+
{ path: "thresholdType", displayName: "Threshold Type", type: "string", description: "none, count or percent" },
|
|
4516
|
+
{ path: "thresholdValue", displayName: "Threshold Value", type: "string", description: "The submitted count or percentage" }
|
|
4517
|
+
]
|
|
4518
|
+
});
|
|
4519
|
+
|
|
4520
|
+
// src/core/lib/actionRegistry/actions/governance/delegationSetup.ts
|
|
4521
|
+
registerGovernanceProposalAction({
|
|
4522
|
+
type: "qi/governance.delegation.setup",
|
|
4523
|
+
can: "governance/delegation-setup",
|
|
4524
|
+
buildActions: (inputs) => {
|
|
4525
|
+
const optional = (value, label, max) => {
|
|
4526
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
4527
|
+
const n = Number(value);
|
|
4528
|
+
if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max) throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
|
|
4529
|
+
return n;
|
|
4530
|
+
};
|
|
4531
|
+
const vpCapPercent = optional(inputs.vpCapPercent, "vpCapPercent", 100);
|
|
4532
|
+
const validityBlocks = optional(inputs.validityBlocks, "validityBlocks");
|
|
4533
|
+
const maxDelegations = optional(inputs.maxDelegations, "maxDelegations");
|
|
4534
|
+
return [{ type: "DelegationSetup", data: { vpCapPercent, validityBlocks, maxDelegations } }];
|
|
4535
|
+
},
|
|
4536
|
+
defaultTitle: () => "Enable vote delegation",
|
|
4537
|
+
defaultDescription: () => "Members will be able to delegate a share of their voting power to registered delegates; delegators can still vote themselves, which overrides the delegate for that proposal.",
|
|
4538
|
+
buildExtraOutput: (inputs) => ({ vpCapPercent: String(inputs.vpCapPercent ?? ""), validityBlocks: String(inputs.validityBlocks ?? ""), maxDelegations: String(inputs.maxDelegations ?? "") }),
|
|
4539
|
+
extraOutputSchema: [
|
|
4540
|
+
{ path: "vpCapPercent", displayName: "Voting Power Cap %", type: "string", description: "The submitted cap, blank for none" },
|
|
4541
|
+
{ path: "validityBlocks", displayName: "Validity Blocks", type: "string", description: "The submitted delegation validity, blank for never expiring" },
|
|
4542
|
+
{ path: "maxDelegations", displayName: "Max Delegations", type: "string", description: "The submitted per-member delegation limit" }
|
|
4543
|
+
]
|
|
4544
|
+
});
|
|
4545
|
+
|
|
4546
|
+
// src/core/lib/actionRegistry/actions/governance/delegation.ts
|
|
4547
|
+
var KINDS = [
|
|
4548
|
+
{ type: "qi/governance.delegation.register", can: "governance/delegation-register", action: "register", needsDelegate: false, needsPercent: false },
|
|
4549
|
+
{ type: "qi/governance.delegation.unregister", can: "governance/delegation-unregister", action: "unregister", needsDelegate: false, needsPercent: false },
|
|
4550
|
+
{ type: "qi/governance.delegation.delegate", can: "governance/delegation-delegate", action: "delegate", needsDelegate: true, needsPercent: true },
|
|
4551
|
+
{ type: "qi/governance.delegation.undelegate", can: "governance/delegation-undelegate", action: "undelegate", needsDelegate: true, needsPercent: false }
|
|
4552
|
+
];
|
|
4553
|
+
for (const kind of KINDS) {
|
|
4554
|
+
registerAction({
|
|
4555
|
+
type: kind.type,
|
|
4556
|
+
can: kind.can,
|
|
4557
|
+
sideEffect: true,
|
|
4558
|
+
executionOwner: "human",
|
|
4559
|
+
proof: { fields: ["transactionHash"] },
|
|
4560
|
+
done: doneWhenCompleted,
|
|
4561
|
+
defaultRequiresConfirmation: true,
|
|
4562
|
+
requiredCapability: "flow/block/execute",
|
|
4563
|
+
inputSchema: {
|
|
4564
|
+
type: "object",
|
|
4565
|
+
required: ["coreAddress", ...kind.needsDelegate ? ["delegate"] : [], ...kind.needsPercent ? ["percent"] : []],
|
|
4566
|
+
additionalProperties: false,
|
|
4567
|
+
properties: {
|
|
4568
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4569
|
+
...kind.needsDelegate ? { delegate: { type: "string", description: "The delegate's address or DID." } } : {},
|
|
4570
|
+
...kind.needsPercent ? { percent: { type: ["number", "string"], description: "Share of your voting power to delegate, 0\u2013100." } } : {}
|
|
4571
|
+
}
|
|
4572
|
+
},
|
|
4573
|
+
outputSchema: [
|
|
4574
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the delegation transaction" },
|
|
4575
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4576
|
+
{ path: "delegationModuleAddress", displayName: "Delegation Module", type: "string", description: "The dao_vote_delegation contract" },
|
|
4577
|
+
{ path: "action", displayName: "Action", type: "string", description: "register | unregister | delegate | undelegate" },
|
|
4578
|
+
{ path: "delegate", displayName: "Delegate", type: "string", description: "The delegate involved, when any" },
|
|
4579
|
+
{ path: "percent", displayName: "Percent", type: "string", description: "The delegated share, when any" }
|
|
4580
|
+
],
|
|
4581
|
+
run: async (inputs, ctx) => {
|
|
4582
|
+
const handlers = ctx.handlers;
|
|
4583
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4584
|
+
if (!handlers.delegationExecute) throw new Error("Delegation handlers not available on this host");
|
|
4585
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4586
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4587
|
+
const delegate = String(inputs.delegate || "").trim();
|
|
4588
|
+
if (kind.needsDelegate && !delegate) throw new Error("delegate is required");
|
|
4589
|
+
const percent = kind.needsPercent ? Number(inputs.percent) : void 0;
|
|
4590
|
+
if (kind.needsPercent && (!Number.isFinite(percent) || percent <= 0 || percent > 100)) throw new Error("percent must be between 0 and 100");
|
|
4591
|
+
const { transactionHash, delegationModuleAddress } = await handlers.delegationExecute({
|
|
4592
|
+
coreAddress,
|
|
4593
|
+
action: kind.action,
|
|
4594
|
+
...kind.needsDelegate ? { delegate } : {},
|
|
4595
|
+
...kind.needsPercent ? { percent } : {}
|
|
4596
|
+
});
|
|
4597
|
+
if (!transactionHash) throw new Error("The delegation transaction returned no hash. Check the handler logs.");
|
|
4598
|
+
return {
|
|
4599
|
+
output: {
|
|
4600
|
+
transactionHash,
|
|
4601
|
+
coreAddress,
|
|
4602
|
+
delegationModuleAddress,
|
|
4603
|
+
action: kind.action,
|
|
4604
|
+
...kind.needsDelegate ? { delegate } : {},
|
|
4605
|
+
...kind.needsPercent ? { percent: String(percent) } : {}
|
|
4606
|
+
}
|
|
4607
|
+
};
|
|
4608
|
+
}
|
|
4609
|
+
});
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
// src/core/lib/actionRegistry/actions/governance/rewards.ts
|
|
4613
|
+
registerGovernanceProposalAction({
|
|
4614
|
+
type: "qi/governance.rewards.create",
|
|
4615
|
+
can: "governance/rewards-create",
|
|
4616
|
+
buildActions: (inputs) => {
|
|
4617
|
+
const denomType = String(inputs.denomType || "native");
|
|
4618
|
+
if (denomType !== "native" && denomType !== "cw20") throw new Error("denomType must be 'native' or 'cw20'");
|
|
4619
|
+
const denom = String(inputs.denom || "").trim();
|
|
4620
|
+
if (!denom) throw new Error("denom is required");
|
|
4621
|
+
const emissionMode = String(inputs.emissionMode || "linear");
|
|
4622
|
+
if (!["linear", "immediate", "paused"].includes(emissionMode)) throw new Error("emissionMode must be 'linear', 'immediate' or 'paused'");
|
|
4623
|
+
const amount = inputs.amount === void 0 || inputs.amount === null || inputs.amount === "" ? null : String(inputs.amount);
|
|
4624
|
+
const periodSeconds = inputs.periodSeconds === void 0 || inputs.periodSeconds === null || inputs.periodSeconds === "" ? null : Number(inputs.periodSeconds);
|
|
4625
|
+
if (emissionMode === "linear") {
|
|
4626
|
+
if (!amount || !/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0 for a linear emission");
|
|
4627
|
+
if (!Number.isInteger(periodSeconds) || periodSeconds <= 0) throw new Error("periodSeconds must be a whole number greater than 0 for a linear emission");
|
|
4628
|
+
}
|
|
4629
|
+
const bool2 = (v) => v === void 0 || v === null || v === "" ? null : v === true || v === "true";
|
|
4630
|
+
return [
|
|
4631
|
+
{
|
|
4632
|
+
type: "RewardsCreate",
|
|
4633
|
+
data: {
|
|
4634
|
+
denomType,
|
|
4635
|
+
denom,
|
|
4636
|
+
emissionMode,
|
|
4637
|
+
amount,
|
|
4638
|
+
periodSeconds,
|
|
4639
|
+
continuous: bool2(inputs.continuous),
|
|
4640
|
+
openFunding: bool2(inputs.openFunding),
|
|
4641
|
+
withdrawDestination: inputs.withdrawDestination ? String(inputs.withdrawDestination) : null
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
];
|
|
4645
|
+
},
|
|
4646
|
+
defaultTitle: (inputs) => `Create a ${String(inputs.denom || "")} reward distribution`,
|
|
4647
|
+
defaultDescription: () => "Members share the rewards in proportion to their voting power.",
|
|
4648
|
+
buildExtraOutput: (inputs) => ({ denom: String(inputs.denom || ""), emissionMode: String(inputs.emissionMode || "linear") }),
|
|
4649
|
+
extraOutputSchema: [
|
|
4650
|
+
{ path: "denom", displayName: "Denom", type: "string", description: "The reward denom" },
|
|
4651
|
+
{ path: "emissionMode", displayName: "Emission", type: "string", description: "linear | immediate | paused" }
|
|
4652
|
+
]
|
|
4653
|
+
});
|
|
4654
|
+
var requireId = (value) => {
|
|
4655
|
+
const id = Number(value);
|
|
4656
|
+
if (!Number.isInteger(id) || id < 0) throw new Error("distributionId must be a whole number");
|
|
4657
|
+
return id;
|
|
4658
|
+
};
|
|
4659
|
+
registerGovernanceProposalAction({
|
|
4660
|
+
type: "qi/governance.rewards.fund",
|
|
4661
|
+
can: "governance/rewards-fund",
|
|
4662
|
+
buildActions: (inputs) => {
|
|
4663
|
+
const id = requireId(inputs.distributionId);
|
|
4664
|
+
const amount = String(inputs.amount ?? "").trim();
|
|
4665
|
+
if (!/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0");
|
|
4666
|
+
return [{ type: "RewardsFund", data: { id, amount } }];
|
|
4667
|
+
},
|
|
4668
|
+
defaultTitle: (inputs) => `Fund reward distribution #${String(inputs.distributionId ?? "")}`,
|
|
4669
|
+
defaultDescription: () => "Moves funds from the treasury into the reward distribution.",
|
|
4670
|
+
buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? ""), amount: String(inputs.amount ?? "") }),
|
|
4671
|
+
extraOutputSchema: [
|
|
4672
|
+
{ path: "distributionId", displayName: "Distribution", type: "string", description: "The funded distribution id" },
|
|
4673
|
+
{ path: "amount", displayName: "Amount", type: "string", description: "Base units funded" }
|
|
4674
|
+
]
|
|
4675
|
+
});
|
|
4676
|
+
registerGovernanceProposalAction({
|
|
4677
|
+
type: "qi/governance.rewards.withdraw",
|
|
4678
|
+
can: "governance/rewards-withdraw",
|
|
4679
|
+
buildActions: (inputs) => [{ type: "RewardsWithdraw", data: { id: requireId(inputs.distributionId) } }],
|
|
4680
|
+
defaultTitle: (inputs) => `Withdraw undistributed rewards from #${String(inputs.distributionId ?? "")}`,
|
|
4681
|
+
defaultDescription: () => "Returns funds that were not yet distributed to the withdraw destination.",
|
|
4682
|
+
buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? "") }),
|
|
4683
|
+
extraOutputSchema: [{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution withdrawn from" }]
|
|
4684
|
+
});
|
|
4685
|
+
registerAction({
|
|
4686
|
+
type: "qi/governance.rewards.claim",
|
|
4687
|
+
can: "governance/rewards-claim",
|
|
4688
|
+
sideEffect: true,
|
|
4689
|
+
executionOwner: "human",
|
|
4690
|
+
proof: { fields: ["transactionHash"] },
|
|
4691
|
+
done: doneWhenCompleted,
|
|
4692
|
+
defaultRequiresConfirmation: true,
|
|
4693
|
+
requiredCapability: "flow/block/execute",
|
|
4694
|
+
inputSchema: {
|
|
4695
|
+
type: "object",
|
|
4696
|
+
required: ["coreAddress", "distributionId"],
|
|
4697
|
+
additionalProperties: false,
|
|
4698
|
+
properties: {
|
|
4699
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4700
|
+
distributionId: { type: ["number", "string"], description: "The distribution to claim from." }
|
|
4701
|
+
}
|
|
4702
|
+
},
|
|
4703
|
+
outputSchema: [
|
|
4704
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the claim transaction" },
|
|
4705
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4706
|
+
{ path: "distributorAddress", displayName: "Distributor", type: "string", description: "The dao_rewards_distributor contract" },
|
|
4707
|
+
{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution claimed from" }
|
|
4708
|
+
],
|
|
4709
|
+
run: async (inputs, ctx) => {
|
|
4710
|
+
const handlers = ctx.handlers;
|
|
4711
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4712
|
+
if (!handlers.rewardsClaim) throw new Error("Rewards handlers not available on this host");
|
|
4713
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4714
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4715
|
+
const id = requireId(inputs.distributionId);
|
|
4716
|
+
const { transactionHash, distributorAddress } = await handlers.rewardsClaim({ coreAddress, id });
|
|
4717
|
+
if (!transactionHash) throw new Error("The claim returned no transaction hash. Check the handler logs.");
|
|
4718
|
+
return { output: { transactionHash, coreAddress, distributorAddress, distributionId: String(id) } };
|
|
4719
|
+
}
|
|
4720
|
+
});
|
|
4721
|
+
|
|
4722
|
+
// src/core/lib/actionRegistry/actions/governance/approval.ts
|
|
4723
|
+
var optionalNumber = (value, label, max) => {
|
|
4724
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
4725
|
+
const n = Number(value);
|
|
4726
|
+
if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max) throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
|
|
4727
|
+
return n;
|
|
4728
|
+
};
|
|
4729
|
+
var bool = (v) => v === void 0 || v === null || v === "" ? void 0 : v === true || v === "true";
|
|
4730
|
+
registerGovernanceProposalAction({
|
|
4731
|
+
type: "qi/governance.proposal-module.add",
|
|
4732
|
+
can: "governance/proposal-module-add",
|
|
4733
|
+
buildActions: (inputs) => {
|
|
4734
|
+
const kind = String(inputs.kind || "single");
|
|
4735
|
+
if (kind !== "single" && kind !== "multiple") throw new Error("kind must be 'single' or 'multiple'");
|
|
4736
|
+
const votingPeriodSeconds = Number(inputs.votingPeriodSeconds);
|
|
4737
|
+
if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
|
|
4738
|
+
const approvalRequired = bool(inputs.approvalRequired) === true;
|
|
4739
|
+
const approver = String(inputs.approver || "").trim();
|
|
4740
|
+
if (approvalRequired && !approver) throw new Error("approver is required when approvalRequired is on");
|
|
4741
|
+
const refund = String(inputs.depositRefundPolicy || "always");
|
|
4742
|
+
if (!["always", "only_passed", "never"].includes(refund)) throw new Error("depositRefundPolicy must be 'always', 'only_passed' or 'never'");
|
|
4743
|
+
return [
|
|
4744
|
+
{
|
|
4745
|
+
type: "AddProposalModule",
|
|
4746
|
+
data: {
|
|
4747
|
+
kind,
|
|
4748
|
+
approvalRequired,
|
|
4749
|
+
approver: approvalRequired ? approver : null,
|
|
4750
|
+
thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100),
|
|
4751
|
+
quorumPercent: optionalNumber(inputs.quorumPercent, "quorumPercent", 100),
|
|
4752
|
+
votingPeriodSeconds,
|
|
4753
|
+
allowRevoting: bool(inputs.allowRevoting) !== false,
|
|
4754
|
+
anyoneCanPropose: bool(inputs.anyoneCanPropose) === true,
|
|
4755
|
+
depositAmount: inputs.depositAmount ? String(inputs.depositAmount) : null,
|
|
4756
|
+
depositDenom: inputs.depositDenom ? String(inputs.depositDenom) : null,
|
|
4757
|
+
depositRefundPolicy: refund,
|
|
4758
|
+
label: inputs.label ? String(inputs.label) : void 0
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
];
|
|
4762
|
+
},
|
|
4763
|
+
defaultTitle: (inputs) => `Add a ${String(inputs.kind || "single") === "multiple" ? "multiple-choice" : "single-choice"} proposal module${bool(inputs.approvalRequired) ? " with approval" : ""}`,
|
|
4764
|
+
defaultDescription: () => "Proposals submitted to the new module follow its own voting rules.",
|
|
4765
|
+
buildExtraOutput: (inputs) => ({ kind: String(inputs.kind || "single"), approvalRequired: String(bool(inputs.approvalRequired) === true) }),
|
|
4766
|
+
extraOutputSchema: [
|
|
4767
|
+
{ path: "kind", displayName: "Kind", type: "string", description: "single | multiple" },
|
|
4768
|
+
{ path: "approvalRequired", displayName: "Approval Required", type: "string", description: "'true' when submissions wait for an approver" }
|
|
4769
|
+
]
|
|
4770
|
+
});
|
|
4771
|
+
registerGovernanceProposalAction({
|
|
4772
|
+
type: "qi/governance.approver.setup",
|
|
4773
|
+
can: "governance/approver-setup",
|
|
4774
|
+
buildActions: (inputs) => {
|
|
4775
|
+
const approvalModule = String(inputs.approvalModule || "").trim();
|
|
4776
|
+
if (!approvalModule) throw new Error("approvalModule (the child POD's approval module address) is required");
|
|
4777
|
+
const votingPeriodSeconds = inputs.votingPeriodSeconds ? Number(inputs.votingPeriodSeconds) : 604800;
|
|
4778
|
+
if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
|
|
4779
|
+
return [{ type: "ApproverSetup", data: { approvalModule, votingPeriodSeconds, thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100) } }];
|
|
4780
|
+
},
|
|
4781
|
+
defaultTitle: (inputs) => `Become the approver for ${String(inputs.approvalModule || "")}`,
|
|
4782
|
+
defaultDescription: () => "Each submission on the child POD's approval module becomes an approve/reject proposal here.",
|
|
4783
|
+
buildExtraOutput: (inputs) => ({ approvalModule: String(inputs.approvalModule || "") }),
|
|
4784
|
+
extraOutputSchema: [{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The child POD's approval module" }]
|
|
4785
|
+
});
|
|
4786
|
+
registerAction({
|
|
4787
|
+
type: "qi/governance.approval.review",
|
|
4788
|
+
can: "governance/approval-review",
|
|
4789
|
+
sideEffect: true,
|
|
4790
|
+
executionOwner: "human",
|
|
4791
|
+
proof: { fields: ["transactionHash"] },
|
|
4792
|
+
done: doneWhenCompleted,
|
|
4793
|
+
defaultRequiresConfirmation: true,
|
|
4794
|
+
requiredCapability: "flow/block/execute",
|
|
4795
|
+
inputSchema: {
|
|
4796
|
+
type: "object",
|
|
4797
|
+
required: ["coreAddress", "approvalModule", "approvalId", "decision"],
|
|
4798
|
+
additionalProperties: false,
|
|
4799
|
+
properties: {
|
|
4800
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4801
|
+
approvalModule: { type: "string", description: "The approval pre-propose module holding the submission." },
|
|
4802
|
+
approvalId: { type: ["number", "string"], description: "The submission id." },
|
|
4803
|
+
decision: { type: "string", enum: ["approve", "reject"], description: "approve | reject" }
|
|
4804
|
+
}
|
|
4805
|
+
},
|
|
4806
|
+
outputSchema: [
|
|
4807
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the review transaction" },
|
|
4808
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4809
|
+
{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The approval module" },
|
|
4810
|
+
{ path: "approvalId", displayName: "Submission", type: "string", description: "The reviewed submission id" },
|
|
4811
|
+
{ path: "decision", displayName: "Decision", type: "string", description: "approve | reject" }
|
|
4812
|
+
],
|
|
4813
|
+
run: async (inputs, ctx) => {
|
|
4814
|
+
const handlers = ctx.handlers;
|
|
4815
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4816
|
+
if (!handlers.reviewSubmission) throw new Error("Approval handlers not available on this host");
|
|
4817
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4818
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4819
|
+
const approvalModule = String(inputs.approvalModule || "").trim();
|
|
4820
|
+
if (!approvalModule) throw new Error("approvalModule is required");
|
|
4821
|
+
const approvalId = Number(inputs.approvalId);
|
|
4822
|
+
if (!Number.isInteger(approvalId) || approvalId < 0) throw new Error("approvalId must be a whole number");
|
|
4823
|
+
const decision = String(inputs.decision);
|
|
4824
|
+
if (decision !== "approve" && decision !== "reject") throw new Error("decision must be 'approve' or 'reject'");
|
|
4825
|
+
const { transactionHash } = await handlers.reviewSubmission({ approvalModule, approvalId, decision });
|
|
4826
|
+
if (!transactionHash) throw new Error("The review returned no transaction hash. Check the handler logs.");
|
|
4827
|
+
return { output: { transactionHash, coreAddress, approvalModule, approvalId: String(approvalId), decision } };
|
|
4828
|
+
}
|
|
4829
|
+
});
|
|
4830
|
+
function parseOptions(value) {
|
|
4831
|
+
if (Array.isArray(value))
|
|
4832
|
+
return value.map(
|
|
4833
|
+
(o) => typeof o === "string" ? { title: o } : { title: String(o?.title ?? ""), description: o?.description ? String(o.description) : void 0 }
|
|
4834
|
+
);
|
|
4835
|
+
const text = String(value ?? "").trim();
|
|
4836
|
+
if (!text) return [];
|
|
4837
|
+
if (text.startsWith("[")) {
|
|
4838
|
+
try {
|
|
4839
|
+
return parseOptions(JSON.parse(text));
|
|
4840
|
+
} catch {
|
|
4841
|
+
throw new Error("options must be a JSON array of { title, description } or one option per line");
|
|
4842
|
+
}
|
|
4843
|
+
}
|
|
4844
|
+
return text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).map((line) => {
|
|
4845
|
+
const [title, ...rest] = line.split(/\s+[-–—]\s+|:\s+/);
|
|
4846
|
+
return { title: title.trim(), description: rest.length ? rest.join(" ").trim() : void 0 };
|
|
4847
|
+
});
|
|
4848
|
+
}
|
|
4849
|
+
registerAction({
|
|
4850
|
+
type: "qi/governance.proposal.create-multiple",
|
|
4851
|
+
can: "governance/proposal-create-multiple",
|
|
4852
|
+
sideEffect: true,
|
|
4853
|
+
executionOwner: "human",
|
|
4854
|
+
proof: { fields: ["transactionHash"] },
|
|
4855
|
+
done: doneWhenCompleted,
|
|
4856
|
+
defaultRequiresConfirmation: true,
|
|
4857
|
+
requiredCapability: "flow/block/execute",
|
|
4858
|
+
inputSchema: {
|
|
4859
|
+
type: "object",
|
|
4860
|
+
required: ["coreAddress", "title", "options"],
|
|
4861
|
+
additionalProperties: false,
|
|
4862
|
+
properties: {
|
|
4863
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4864
|
+
proposalModule: { type: "string", description: "The multiple-choice proposal module; blank = the first one on the POD." },
|
|
4865
|
+
title: { type: "string", description: "Proposal title." },
|
|
4866
|
+
description: { type: "string", description: "Proposal description." },
|
|
4867
|
+
options: { type: ["array", "string"], description: 'JSON array of { title, description }, or one option per line ("Title - description").' }
|
|
4868
|
+
}
|
|
4869
|
+
},
|
|
4870
|
+
outputSchema: [
|
|
4871
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the propose transaction" },
|
|
4872
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4873
|
+
{ path: "proposalModule", displayName: "Proposal Module", type: "string", description: "The multiple-choice module the proposal went to" },
|
|
4874
|
+
{ path: "optionCount", displayName: "Options", type: "string", description: "Number of options submitted" }
|
|
4875
|
+
],
|
|
4876
|
+
run: async (inputs, ctx) => {
|
|
4877
|
+
const handlers = ctx.handlers;
|
|
4878
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4879
|
+
if (!handlers.createMultipleChoiceProposal) throw new Error("Multiple-choice proposal handler not available on this host");
|
|
4880
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4881
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4882
|
+
const title = String(inputs.title || "").trim();
|
|
4883
|
+
if (!title) throw new Error("title is required");
|
|
4884
|
+
const options = parseOptions(inputs.options).filter((o) => o.title);
|
|
4885
|
+
if (options.length < 2) throw new Error("At least two options are required");
|
|
4886
|
+
if (options.length > 10) throw new Error("At most 10 options are allowed");
|
|
4887
|
+
const { transactionHash, proposalModule } = await handlers.createMultipleChoiceProposal({
|
|
4888
|
+
coreAddress,
|
|
4889
|
+
proposalModule: inputs.proposalModule ? String(inputs.proposalModule) : void 0,
|
|
4890
|
+
title,
|
|
4891
|
+
description: String(inputs.description || ""),
|
|
4892
|
+
options
|
|
4893
|
+
});
|
|
4894
|
+
if (!transactionHash) throw new Error("The proposal returned no transaction hash. Check the handler logs.");
|
|
4895
|
+
return { output: { transactionHash, coreAddress, proposalModule, optionCount: String(options.length) } };
|
|
4896
|
+
}
|
|
4897
|
+
});
|
|
4898
|
+
|
|
4041
4899
|
// src/core/lib/actionRegistry/actions/governance/nftBurn.ts
|
|
4042
4900
|
registerGovernanceProposalAction({
|
|
4043
4901
|
type: "qi/governance.nft.burn",
|
|
@@ -4383,7 +5241,7 @@ var INPUT_PROPERTIES = {
|
|
|
4383
5241
|
headers: { type: "object", additionalProperties: { type: "string" }, description: "Non-secret request headers. Authorization and cookies are rejected." },
|
|
4384
5242
|
body: { description: "Request body for a mutating HTTP request." }
|
|
4385
5243
|
};
|
|
4386
|
-
var
|
|
5244
|
+
var OUTPUT_SCHEMA2 = [
|
|
4387
5245
|
{ path: "requestId", displayName: "Request ID", type: "string", description: "Host invocation identifier." },
|
|
4388
5246
|
{ path: "status", displayName: "HTTP Status", type: "number" },
|
|
4389
5247
|
{ path: "responseDigest", displayName: "Response Digest", type: "string", description: "Digest of the response body." },
|
|
@@ -4438,7 +5296,7 @@ registerAction({
|
|
|
4438
5296
|
properties: { ...INPUT_PROPERTIES, method: { type: "string", enum: ["GET", "HEAD"], default: "GET" } }
|
|
4439
5297
|
},
|
|
4440
5298
|
getMissingInputs: missingEndpoint,
|
|
4441
|
-
outputSchema:
|
|
5299
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
4442
5300
|
run: async (rawInputs, ctx) => {
|
|
4443
5301
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
4444
5302
|
const url = publicHttpUrl(inputs.endpoint ?? inputs.url);
|
|
@@ -4509,7 +5367,7 @@ registerAction({
|
|
|
4509
5367
|
}
|
|
4510
5368
|
},
|
|
4511
5369
|
getMissingInputs: missingEndpoint,
|
|
4512
|
-
outputSchema:
|
|
5370
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
4513
5371
|
run: async (rawInputs, ctx) => {
|
|
4514
5372
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
4515
5373
|
const service = ctx.services.http;
|
|
@@ -4937,60 +5795,6 @@ registerAction({
|
|
|
4937
5795
|
}
|
|
4938
5796
|
});
|
|
4939
5797
|
|
|
4940
|
-
// src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
|
|
4941
|
-
var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
|
|
4942
|
-
function isGroupExecution(inputs) {
|
|
4943
|
-
return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
|
|
4944
|
-
}
|
|
4945
|
-
function requireGroupExecutionParams(inputs) {
|
|
4946
|
-
const coreAddress = String(inputs.groupCoreAddress || "").trim();
|
|
4947
|
-
if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
|
|
4948
|
-
const title = String(inputs.proposalTitle || "").trim();
|
|
4949
|
-
if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
|
|
4950
|
-
const description = String(inputs.proposalDescription || "").trim();
|
|
4951
|
-
if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
|
|
4952
|
-
return { coreAddress, title, description };
|
|
4953
|
-
}
|
|
4954
|
-
async function proposeGroupExecution(ctx, params) {
|
|
4955
|
-
const handlers = ctx.handlers;
|
|
4956
|
-
if (!handlers?.createGroupExecutionProposal) {
|
|
4957
|
-
throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
|
|
4958
|
-
}
|
|
4959
|
-
const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent } = params;
|
|
4960
|
-
const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
|
|
4961
|
-
coreAddress,
|
|
4962
|
-
title,
|
|
4963
|
-
description,
|
|
4964
|
-
msgs
|
|
4965
|
-
});
|
|
4966
|
-
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
4967
|
-
throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
|
|
4968
|
-
}
|
|
4969
|
-
return {
|
|
4970
|
-
output: {
|
|
4971
|
-
...expectedOutput,
|
|
4972
|
-
groupExecution: true,
|
|
4973
|
-
groupCoreAddress: coreAddress,
|
|
4974
|
-
groupProposalId: String(proposalId),
|
|
4975
|
-
groupProposalContractAddress: String(proposalContractAddress || ""),
|
|
4976
|
-
proposalTitle: title,
|
|
4977
|
-
proposalDescription: description
|
|
4978
|
-
},
|
|
4979
|
-
completion: {
|
|
4980
|
-
state: "awaiting_readback",
|
|
4981
|
-
readBack: {
|
|
4982
|
-
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
4983
|
-
proposalId: String(proposalId),
|
|
4984
|
-
proposalContractAddress: String(proposalContractAddress || ""),
|
|
4985
|
-
coreAddress,
|
|
4986
|
-
expectedOutput,
|
|
4987
|
-
...completionEvent ? { completionEvent } : {},
|
|
4988
|
-
...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
|
|
4989
|
-
}
|
|
4990
|
-
}
|
|
4991
|
-
};
|
|
4992
|
-
}
|
|
4993
|
-
|
|
4994
5798
|
// src/core/lib/actionRegistry/actions/bid/bid.ts
|
|
4995
5799
|
function normalizeBidRole(role) {
|
|
4996
5800
|
const normalized = String(role || "").trim().toLowerCase();
|
|
@@ -5048,6 +5852,7 @@ registerAction({
|
|
|
5048
5852
|
if (isGroupExecution(inputs)) {
|
|
5049
5853
|
const { coreAddress, title, description } = requireGroupExecutionParams(inputs);
|
|
5050
5854
|
return proposeGroupExecution(ctx, {
|
|
5855
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5051
5856
|
coreAddress,
|
|
5052
5857
|
title,
|
|
5053
5858
|
description,
|
|
@@ -5212,6 +6017,7 @@ registerAction({
|
|
|
5212
6017
|
maxAmounts: Array.isArray(maxAmounts) ? maxAmounts : void 0
|
|
5213
6018
|
});
|
|
5214
6019
|
return proposeGroupExecution(ctx, {
|
|
6020
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5215
6021
|
coreAddress,
|
|
5216
6022
|
title,
|
|
5217
6023
|
description,
|
|
@@ -5224,6 +6030,7 @@ registerAction({
|
|
|
5224
6030
|
const reason = String(inputs.reason || "").trim();
|
|
5225
6031
|
if (!reason) throw new Error("reason is required when decision is reject");
|
|
5226
6032
|
return proposeGroupExecution(ctx, {
|
|
6033
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5227
6034
|
coreAddress,
|
|
5228
6035
|
title,
|
|
5229
6036
|
description,
|
|
@@ -5424,6 +6231,7 @@ registerAction({
|
|
|
5424
6231
|
const claimId2 = String(prepared?.claimId || "").trim();
|
|
5425
6232
|
if (!claimId2) throw new Error("prepareGroupClaimSubmission returned no claim identifier");
|
|
5426
6233
|
return proposeGroupExecution(ctx, {
|
|
6234
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5427
6235
|
coreAddress,
|
|
5428
6236
|
title,
|
|
5429
6237
|
description,
|
|
@@ -5808,6 +6616,7 @@ registerAction({
|
|
|
5808
6616
|
} catch {
|
|
5809
6617
|
}
|
|
5810
6618
|
return proposeGroupExecution(ctx, {
|
|
6619
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5811
6620
|
coreAddress,
|
|
5812
6621
|
title,
|
|
5813
6622
|
description,
|
|
@@ -5985,7 +6794,12 @@ registerAction({
|
|
|
5985
6794
|
coreAddress: { type: "string", description: "The DAO core contract address." },
|
|
5986
6795
|
title: { type: "string", description: "The proposal title." },
|
|
5987
6796
|
description: { type: "string", description: "The proposal description." },
|
|
5988
|
-
actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." }
|
|
6797
|
+
actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." },
|
|
6798
|
+
voteOnSubmission: {
|
|
6799
|
+
type: "string",
|
|
6800
|
+
enum: ["", "yes", "no", "abstain"],
|
|
6801
|
+
description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
|
|
6802
|
+
}
|
|
5989
6803
|
}
|
|
5990
6804
|
},
|
|
5991
6805
|
outputSchema: [
|
|
@@ -6030,13 +6844,15 @@ registerAction({
|
|
|
6030
6844
|
const { proposalContractAddress } = await handlers.getProposalContractAddress({
|
|
6031
6845
|
coreAddress
|
|
6032
6846
|
});
|
|
6847
|
+
const autoVote = autoVoteFromInputs(inputs);
|
|
6033
6848
|
const params = {
|
|
6034
6849
|
preProposalContractAddress,
|
|
6035
6850
|
title,
|
|
6036
6851
|
description,
|
|
6037
6852
|
actions: actions.length > 0 ? actions : void 0,
|
|
6038
6853
|
coreAddress,
|
|
6039
|
-
groupContractAddress
|
|
6854
|
+
groupContractAddress,
|
|
6855
|
+
...autoVote ? { autoVote } : {}
|
|
6040
6856
|
};
|
|
6041
6857
|
const proposalId = await handlers.createProposal(params);
|
|
6042
6858
|
return {
|
|
@@ -8211,6 +9027,7 @@ registerAction({
|
|
|
8211
9027
|
params: createParams
|
|
8212
9028
|
});
|
|
8213
9029
|
return proposeGroupExecution(ctx, {
|
|
9030
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
8214
9031
|
coreAddress,
|
|
8215
9032
|
title,
|
|
8216
9033
|
description,
|
|
@@ -8279,6 +9096,7 @@ registerAction({
|
|
|
8279
9096
|
params: { ...inputs, collectionId, adminAddress }
|
|
8280
9097
|
});
|
|
8281
9098
|
return proposeGroupExecution(ctx, {
|
|
9099
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
8282
9100
|
coreAddress,
|
|
8283
9101
|
title,
|
|
8284
9102
|
description,
|
|
@@ -8651,6 +9469,7 @@ registerAction({
|
|
|
8651
9469
|
msgs.push(...prepared.msgs || []);
|
|
8652
9470
|
}
|
|
8653
9471
|
return proposeGroupExecution(ctx, {
|
|
9472
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
8654
9473
|
coreAddress,
|
|
8655
9474
|
title,
|
|
8656
9475
|
description,
|
|
@@ -13242,4 +14061,4 @@ export {
|
|
|
13242
14061
|
formatCoin,
|
|
13243
14062
|
formatCoinAmount
|
|
13244
14063
|
};
|
|
13245
|
-
//# sourceMappingURL=chunk-
|
|
14064
|
+
//# sourceMappingURL=chunk-YC6BYZJZ.js.map
|