@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
package/dist/core/index.cjs
CHANGED
|
@@ -1461,6 +1461,31 @@ var PRESENTATION = {
|
|
|
1461
1461
|
"qi/governance.dao.manage-storage": { displayName: "Manage Storage Items", description: "Propose setting or removing an item in the DAO's on-chain storage" },
|
|
1462
1462
|
"qi/governance.dao.manage-subdaos": { displayName: "Manage SubDAOs", description: "Propose recognising or removing SubDAOs of this DAO" },
|
|
1463
1463
|
"qi/governance.dao.update-info": { displayName: "Update DAO Info", description: "Propose replacing the DAO's name, description and image" },
|
|
1464
|
+
"qi/governance.dao.upgrade": { displayName: "Upgrade DAO Contracts", description: "Migrate a DAO's governance contracts to the current DAO DAO generation" },
|
|
1465
|
+
"qi/governance.veto": { displayName: "Veto Proposal", description: "Cancel a passed proposal during its veto window as the POD's configured vetoer" },
|
|
1466
|
+
"qi/governance.proposal-module.add": {
|
|
1467
|
+
displayName: "Add Proposal Module",
|
|
1468
|
+
description: "Propose a new single- or multiple-choice proposal module, optionally gated by an approver"
|
|
1469
|
+
},
|
|
1470
|
+
"qi/governance.approver.setup": { displayName: "Become Approver", description: "Propose automating this POD's approval of a child POD's submissions" },
|
|
1471
|
+
"qi/governance.approval.review": { displayName: "Review Submission", description: "Approve or reject a submission waiting for you as approver" },
|
|
1472
|
+
"qi/governance.proposal.create-multiple": { displayName: "Multiple-Choice Proposal", description: "Submit a proposal where members pick one of several options" },
|
|
1473
|
+
"qi/governance.rewards.create": { displayName: "Create Reward Distribution", description: "Propose a native or cw20 reward stream split among members by voting power" },
|
|
1474
|
+
"qi/governance.rewards.fund": { displayName: "Fund Rewards", description: "Propose funding a reward distribution from the treasury" },
|
|
1475
|
+
"qi/governance.rewards.withdraw": { displayName: "Withdraw Rewards", description: "Propose clawing back undistributed reward funds" },
|
|
1476
|
+
"qi/governance.rewards.claim": { displayName: "Claim Rewards", description: "Claim your pending rewards from a distribution" },
|
|
1477
|
+
"qi/governance.delegation.setup": { displayName: "Enable Vote Delegation", description: "Propose adding a delegation module so members can delegate their voting power" },
|
|
1478
|
+
"qi/governance.delegation.register": { displayName: "Register as Delegate", description: "Become a delegate other members can delegate voting power to" },
|
|
1479
|
+
"qi/governance.delegation.unregister": { displayName: "Unregister as Delegate", description: "Stop being a delegate" },
|
|
1480
|
+
"qi/governance.delegation.delegate": { displayName: "Delegate Voting Power", description: "Delegate a share of your voting power to a registered delegate" },
|
|
1481
|
+
"qi/governance.delegation.undelegate": { displayName: "Withdraw Delegation", description: "Take back voting power you delegated" },
|
|
1482
|
+
"qi/governance.nft.active-threshold": { displayName: "Active Threshold", description: "Propose how much of the collection must be staked before the group accepts proposals" },
|
|
1483
|
+
"qi/governance.dao.pause": { displayName: "Pause Group", description: "Propose pausing the group so nothing executes for a set time" },
|
|
1484
|
+
"qi/governance.dao.unpause": { displayName: "Unpause Group", description: "End a group's pause early as its admin (DAO DAO v2.7.1+)" },
|
|
1485
|
+
"qi/governance.submission-policy": {
|
|
1486
|
+
displayName: "Update Who May Propose",
|
|
1487
|
+
description: "Propose changes to the allow and deny lists for proposal submission, without touching the deposit"
|
|
1488
|
+
},
|
|
1464
1489
|
"qi/governance.member-proposal": { displayName: "Membership Proposal", description: "Propose adding/removing members or changing voting power" },
|
|
1465
1490
|
"qi/governance.nft.burn": { displayName: "Burn NFT", description: "Propose permanently burning an NFT held by the treasury" },
|
|
1466
1491
|
"qi/governance.nft.manage-collections": { displayName: "Manage NFT Collections", description: "Propose tracking or untracking an NFT collection in the treasury" },
|
|
@@ -7508,6 +7533,67 @@ register(
|
|
|
7508
7533
|
}
|
|
7509
7534
|
);
|
|
7510
7535
|
|
|
7536
|
+
// src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
|
|
7537
|
+
var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
|
|
7538
|
+
var AUTO_VOTES = /* @__PURE__ */ new Set(["yes", "no", "abstain"]);
|
|
7539
|
+
function autoVoteFromInputs(inputs) {
|
|
7540
|
+
const raw = inputs?.voteOnSubmission;
|
|
7541
|
+
const vote = raw === true ? "yes" : String(raw ?? "").trim().toLowerCase();
|
|
7542
|
+
return AUTO_VOTES.has(vote) ? { vote } : null;
|
|
7543
|
+
}
|
|
7544
|
+
function isGroupExecution(inputs) {
|
|
7545
|
+
return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
|
|
7546
|
+
}
|
|
7547
|
+
function requireGroupExecutionParams(inputs) {
|
|
7548
|
+
const coreAddress = String(inputs.groupCoreAddress || "").trim();
|
|
7549
|
+
if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
|
|
7550
|
+
const title = String(inputs.proposalTitle || "").trim();
|
|
7551
|
+
if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
|
|
7552
|
+
const description = String(inputs.proposalDescription || "").trim();
|
|
7553
|
+
if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
|
|
7554
|
+
return { coreAddress, title, description };
|
|
7555
|
+
}
|
|
7556
|
+
async function proposeGroupExecution(ctx, params) {
|
|
7557
|
+
const handlers = ctx.handlers;
|
|
7558
|
+
if (!handlers?.createGroupExecutionProposal) {
|
|
7559
|
+
throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
|
|
7560
|
+
}
|
|
7561
|
+
const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent, autoVote } = params;
|
|
7562
|
+
const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
|
|
7563
|
+
coreAddress,
|
|
7564
|
+
title,
|
|
7565
|
+
description,
|
|
7566
|
+
msgs,
|
|
7567
|
+
...autoVote ? { autoVote } : {}
|
|
7568
|
+
});
|
|
7569
|
+
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
7570
|
+
throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
|
|
7571
|
+
}
|
|
7572
|
+
return {
|
|
7573
|
+
output: {
|
|
7574
|
+
...expectedOutput,
|
|
7575
|
+
groupExecution: true,
|
|
7576
|
+
groupCoreAddress: coreAddress,
|
|
7577
|
+
groupProposalId: String(proposalId),
|
|
7578
|
+
groupProposalContractAddress: String(proposalContractAddress || ""),
|
|
7579
|
+
proposalTitle: title,
|
|
7580
|
+
proposalDescription: description
|
|
7581
|
+
},
|
|
7582
|
+
completion: {
|
|
7583
|
+
state: "awaiting_readback",
|
|
7584
|
+
readBack: {
|
|
7585
|
+
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
7586
|
+
proposalId: String(proposalId),
|
|
7587
|
+
proposalContractAddress: String(proposalContractAddress || ""),
|
|
7588
|
+
coreAddress,
|
|
7589
|
+
expectedOutput,
|
|
7590
|
+
...completionEvent ? { completionEvent } : {},
|
|
7591
|
+
...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
|
|
7592
|
+
}
|
|
7593
|
+
}
|
|
7594
|
+
};
|
|
7595
|
+
}
|
|
7596
|
+
|
|
7511
7597
|
// src/core/lib/actionRegistry/actions/governance/_shared.ts
|
|
7512
7598
|
var GOVERNANCE_REQUIRED_FIELDS = {
|
|
7513
7599
|
"qi/governance.authz.exec": ["authzExecActionType"],
|
|
@@ -7535,6 +7621,15 @@ var GOVERNANCE_REQUIRED_FIELDS = {
|
|
|
7535
7621
|
"qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
|
|
7536
7622
|
"qi/governance.settings-proposal": ["votingPeriodHours", "quorumPercent", "thresholdPercent"],
|
|
7537
7623
|
"qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired"],
|
|
7624
|
+
"qi/governance.submission-policy": [],
|
|
7625
|
+
"qi/governance.dao.pause": ["pauseHours"],
|
|
7626
|
+
"qi/governance.nft.active-threshold": ["thresholdType"],
|
|
7627
|
+
"qi/governance.delegation.setup": [],
|
|
7628
|
+
"qi/governance.rewards.create": ["denom", "emissionMode"],
|
|
7629
|
+
"qi/governance.proposal-module.add": ["kind", "votingPeriodSeconds"],
|
|
7630
|
+
"qi/governance.approver.setup": ["approvalModule"],
|
|
7631
|
+
"qi/governance.rewards.fund": ["distributionId", "amount"],
|
|
7632
|
+
"qi/governance.rewards.withdraw": ["distributionId"],
|
|
7538
7633
|
"qi/governance.transaction.mint": ["recipient", "amount"],
|
|
7539
7634
|
"qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
|
|
7540
7635
|
"qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
|
|
@@ -7566,8 +7661,40 @@ var GOVERNANCE_FIELDS = {
|
|
|
7566
7661
|
"qi/governance.nft.transfer": ["collection", "tokenId", "recipient", "executeSmartContract", "smartContractMsg"],
|
|
7567
7662
|
"qi/governance.staking.stake": ["stakeType", "validator", "toValidator", "amount"],
|
|
7568
7663
|
"qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
|
|
7569
|
-
"qi/governance.settings-proposal": [
|
|
7570
|
-
|
|
7664
|
+
"qi/governance.settings-proposal": [
|
|
7665
|
+
"votingPeriodHours",
|
|
7666
|
+
"quorumPercent",
|
|
7667
|
+
"thresholdPercent",
|
|
7668
|
+
"allowRevoting",
|
|
7669
|
+
"vetoEnabled",
|
|
7670
|
+
"vetoer",
|
|
7671
|
+
"vetoTimelockHours",
|
|
7672
|
+
"vetoEarlyExecute",
|
|
7673
|
+
"vetoBeforePassed"
|
|
7674
|
+
],
|
|
7675
|
+
"qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired", "depositAmount", "depositRefundPolicy", "policyMode", "daoMembers", "allowlist", "denylist"],
|
|
7676
|
+
"qi/governance.submission-policy": ["allowlistAdd", "allowlistRemove", "denylistAdd", "denylistRemove", "setDaoMembers"],
|
|
7677
|
+
"qi/governance.dao.pause": ["pauseHours"],
|
|
7678
|
+
"qi/governance.nft.active-threshold": ["thresholdType", "thresholdValue"],
|
|
7679
|
+
"qi/governance.delegation.setup": ["vpCapPercent", "validityBlocks", "maxDelegations"],
|
|
7680
|
+
"qi/governance.rewards.create": ["denomType", "denom", "emissionMode", "amount", "periodSeconds", "continuous", "openFunding", "withdrawDestination"],
|
|
7681
|
+
"qi/governance.proposal-module.add": [
|
|
7682
|
+
"kind",
|
|
7683
|
+
"approvalRequired",
|
|
7684
|
+
"approver",
|
|
7685
|
+
"thresholdPercent",
|
|
7686
|
+
"quorumPercent",
|
|
7687
|
+
"votingPeriodSeconds",
|
|
7688
|
+
"allowRevoting",
|
|
7689
|
+
"anyoneCanPropose",
|
|
7690
|
+
"depositAmount",
|
|
7691
|
+
"depositDenom",
|
|
7692
|
+
"depositRefundPolicy",
|
|
7693
|
+
"label"
|
|
7694
|
+
],
|
|
7695
|
+
"qi/governance.approver.setup": ["approvalModule", "votingPeriodSeconds", "thresholdPercent"],
|
|
7696
|
+
"qi/governance.rewards.fund": ["distributionId", "amount"],
|
|
7697
|
+
"qi/governance.rewards.withdraw": ["distributionId"],
|
|
7571
7698
|
"qi/governance.transaction.mint": ["recipient", "amount"],
|
|
7572
7699
|
"qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
|
|
7573
7700
|
"qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
|
|
@@ -7575,8 +7702,39 @@ var GOVERNANCE_FIELDS = {
|
|
|
7575
7702
|
"qi/governance.transaction.withdraw-token-swap": ["tokenSwapContractAddress"],
|
|
7576
7703
|
"qi/governance.validator.actions": ["validatorActionType", "createMsg", "editMsg"]
|
|
7577
7704
|
};
|
|
7578
|
-
var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
|
|
7579
|
-
|
|
7705
|
+
var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
|
|
7706
|
+
"adding",
|
|
7707
|
+
"automaticallyAddCw20s",
|
|
7708
|
+
"automaticallyAddCw721s",
|
|
7709
|
+
"executeSmartContract",
|
|
7710
|
+
"anyoneCanPropose",
|
|
7711
|
+
"depositRequired",
|
|
7712
|
+
"allowRevoting",
|
|
7713
|
+
"vetoEnabled",
|
|
7714
|
+
"vetoEarlyExecute",
|
|
7715
|
+
"vetoBeforePassed",
|
|
7716
|
+
"daoMembers",
|
|
7717
|
+
"setDaoMembers",
|
|
7718
|
+
"continuous",
|
|
7719
|
+
"openFunding",
|
|
7720
|
+
"approvalRequired"
|
|
7721
|
+
]);
|
|
7722
|
+
var NUMBER_FIELDS = /* @__PURE__ */ new Set([
|
|
7723
|
+
"codeId",
|
|
7724
|
+
"vote",
|
|
7725
|
+
"votingPeriodHours",
|
|
7726
|
+
"quorumPercent",
|
|
7727
|
+
"thresholdPercent",
|
|
7728
|
+
"vetoTimelockHours",
|
|
7729
|
+
"pauseHours",
|
|
7730
|
+
"thresholdValue",
|
|
7731
|
+
"vpCapPercent",
|
|
7732
|
+
"validityBlocks",
|
|
7733
|
+
"maxDelegations",
|
|
7734
|
+
"periodSeconds",
|
|
7735
|
+
"distributionId",
|
|
7736
|
+
"votingPeriodSeconds"
|
|
7737
|
+
]);
|
|
7580
7738
|
var ARRAY_FIELDS = /* @__PURE__ */ new Set(["funds", "msgs", "toAdd", "toRemove", "members"]);
|
|
7581
7739
|
var OBJECT_FIELDS = /* @__PURE__ */ new Set(["value"]);
|
|
7582
7740
|
function governanceProperty(name) {
|
|
@@ -7590,7 +7748,12 @@ function governanceInputSchema(type, extraFields = {}, requiredOverride) {
|
|
|
7590
7748
|
const properties = {
|
|
7591
7749
|
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
7592
7750
|
title: { type: "string", description: "Proposal title voters see." },
|
|
7593
|
-
description: { type: "string", description: "Long-form proposal description voters see." }
|
|
7751
|
+
description: { type: "string", description: "Long-form proposal description voters see." },
|
|
7752
|
+
voteOnSubmission: {
|
|
7753
|
+
type: "string",
|
|
7754
|
+
enum: ["", "yes", "no", "abstain"],
|
|
7755
|
+
description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
|
|
7756
|
+
}
|
|
7594
7757
|
};
|
|
7595
7758
|
for (const field of GOVERNANCE_FIELDS[type] || []) properties[field] = governanceProperty(field);
|
|
7596
7759
|
Object.assign(properties, extraFields);
|
|
@@ -7638,13 +7801,15 @@ function registerGovernanceProposalAction(spec) {
|
|
|
7638
7801
|
const { preProposalContractAddress } = await handlers.getPreProposalContractAddress({ coreAddress });
|
|
7639
7802
|
const { groupContractAddress } = await handlers.getGroupContractAddress({ coreAddress });
|
|
7640
7803
|
const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
|
|
7804
|
+
const autoVote = autoVoteFromInputs(inputs);
|
|
7641
7805
|
const proposalId = await handlers.createProposal({
|
|
7642
7806
|
preProposalContractAddress,
|
|
7643
7807
|
title,
|
|
7644
7808
|
description,
|
|
7645
7809
|
actions: actions2,
|
|
7646
7810
|
coreAddress,
|
|
7647
|
-
groupContractAddress
|
|
7811
|
+
groupContractAddress,
|
|
7812
|
+
...autoVote ? { autoVote } : {}
|
|
7648
7813
|
});
|
|
7649
7814
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
7650
7815
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -7683,6 +7848,10 @@ function registerGovernanceProposalAction(spec) {
|
|
|
7683
7848
|
}
|
|
7684
7849
|
});
|
|
7685
7850
|
}
|
|
7851
|
+
function parseAddressList(value) {
|
|
7852
|
+
const list = Array.isArray(value) ? value : typeof value === "string" ? value.split(/[\s,;]+/) : [];
|
|
7853
|
+
return [...new Set(list.map((v) => String(v ?? "").trim()).filter(Boolean))];
|
|
7854
|
+
}
|
|
7686
7855
|
|
|
7687
7856
|
// src/core/utils/accountList.ts
|
|
7688
7857
|
var IXO_HRP = "ixo";
|
|
@@ -7812,7 +7981,8 @@ registerAction({
|
|
|
7812
7981
|
description,
|
|
7813
7982
|
actions: [updateMembersAction],
|
|
7814
7983
|
coreAddress,
|
|
7815
|
-
groupContractAddress
|
|
7984
|
+
groupContractAddress,
|
|
7985
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
7816
7986
|
});
|
|
7817
7987
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
7818
7988
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -7833,6 +8003,8 @@ registerAction({
|
|
|
7833
8003
|
});
|
|
7834
8004
|
|
|
7835
8005
|
// src/core/lib/actionRegistry/actions/governance/settingsProposal.ts
|
|
8006
|
+
var isTrue = (value) => value === true || value === "true";
|
|
8007
|
+
var isFalse = (value) => value === false || value === "false";
|
|
7836
8008
|
function clampPercent(value, label, { allowZero = false } = {}) {
|
|
7837
8009
|
const n = Number(value);
|
|
7838
8010
|
if (!Number.isFinite(n)) throw new Error(`${label} must be a number`);
|
|
@@ -7856,7 +8028,13 @@ registerAction({
|
|
|
7856
8028
|
{ path: "status", displayName: "Proposal Status", type: "string", description: "Current proposal status (open, passed, rejected, executed, etc.)" },
|
|
7857
8029
|
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module contract address" },
|
|
7858
8030
|
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
7859
|
-
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" }
|
|
8031
|
+
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" },
|
|
8032
|
+
{
|
|
8033
|
+
path: "vetoConfigured",
|
|
8034
|
+
displayName: "Veto Configured",
|
|
8035
|
+
type: "string",
|
|
8036
|
+
description: "'true' when the proposal sets a veto, 'false' when it clears one, 'unchanged' otherwise"
|
|
8037
|
+
}
|
|
7860
8038
|
],
|
|
7861
8039
|
// Mirrors run()'s throw-preamble (there is no inputSchema to declare
|
|
7862
8040
|
// requiredness on): coreAddress and the three numeric voting settings.
|
|
@@ -7899,6 +8077,15 @@ registerAction({
|
|
|
7899
8077
|
proposalDurationUnits: "hours",
|
|
7900
8078
|
allowRevoting
|
|
7901
8079
|
};
|
|
8080
|
+
if (isTrue(inputs.vetoEnabled)) {
|
|
8081
|
+
const vetoer = String(inputs.vetoer || "").trim();
|
|
8082
|
+
if (!vetoer) throw new Error("vetoer is required when the veto is enabled");
|
|
8083
|
+
const timelockHours = Number(inputs.vetoTimelockHours);
|
|
8084
|
+
if (!Number.isFinite(timelockHours) || timelockHours <= 0) throw new Error("vetoTimelockHours must be a positive number");
|
|
8085
|
+
Object.assign(data, { veto: { vetoer, timelockHours, earlyExecute: isTrue(inputs.vetoEarlyExecute), vetoBeforePassed: isTrue(inputs.vetoBeforePassed) } });
|
|
8086
|
+
} else if (isFalse(inputs.vetoEnabled)) {
|
|
8087
|
+
Object.assign(data, { veto: null });
|
|
8088
|
+
}
|
|
7902
8089
|
const updateVotingConfigAction = { type: "UpdateVotingConfig", data };
|
|
7903
8090
|
const title = String(inputs.title || "").trim() || "Update governance settings";
|
|
7904
8091
|
const description = String(inputs.description || "").trim() || "Updates the POD's voting rules once the proposal passes.";
|
|
@@ -7911,7 +8098,8 @@ registerAction({
|
|
|
7911
8098
|
description,
|
|
7912
8099
|
actions: [updateVotingConfigAction],
|
|
7913
8100
|
coreAddress,
|
|
7914
|
-
groupContractAddress
|
|
8101
|
+
groupContractAddress,
|
|
8102
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
7915
8103
|
});
|
|
7916
8104
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
7917
8105
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -7924,7 +8112,8 @@ registerAction({
|
|
|
7924
8112
|
status: "open",
|
|
7925
8113
|
proposalContractAddress: proposalContractAddress || "",
|
|
7926
8114
|
coreAddress,
|
|
7927
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
8115
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8116
|
+
vetoConfigured: isTrue(inputs.vetoEnabled) ? "true" : isFalse(inputs.vetoEnabled) ? "false" : "unchanged"
|
|
7928
8117
|
}
|
|
7929
8118
|
};
|
|
7930
8119
|
}
|
|
@@ -7951,6 +8140,14 @@ registerGovernanceProposalAction({
|
|
|
7951
8140
|
}
|
|
7952
8141
|
refundPolicy = policy;
|
|
7953
8142
|
}
|
|
8143
|
+
const policyMode = String(inputs.policyMode || "").trim();
|
|
8144
|
+
if (policyMode && policyMode !== "anyone" && policyMode !== "specific") throw new Error("policyMode must be 'anyone' or 'specific'");
|
|
8145
|
+
const submissionPolicy = policyMode ? {
|
|
8146
|
+
mode: policyMode,
|
|
8147
|
+
daoMembers: inputs.daoMembers === void 0 ? true : inputs.daoMembers === true || inputs.daoMembers === "true",
|
|
8148
|
+
allowlist: parseAddressList(inputs.allowlist),
|
|
8149
|
+
denylist: parseAddressList(inputs.denylist)
|
|
8150
|
+
} : void 0;
|
|
7954
8151
|
return [
|
|
7955
8152
|
{
|
|
7956
8153
|
type: "UpdatePreProposeConfig",
|
|
@@ -7958,7 +8155,8 @@ registerGovernanceProposalAction({
|
|
|
7958
8155
|
depositRequired,
|
|
7959
8156
|
// Deposit token fixed to the chain's native IXO (uixo) for now.
|
|
7960
8157
|
depositInfo: { amount, type: "native", denomOrAddress: "uixo", refundPolicy },
|
|
7961
|
-
anyoneCanPropose
|
|
8158
|
+
anyoneCanPropose: submissionPolicy ? submissionPolicy.mode === "anyone" : anyoneCanPropose,
|
|
8159
|
+
...submissionPolicy ? { submissionPolicy } : {}
|
|
7962
8160
|
}
|
|
7963
8161
|
}
|
|
7964
8162
|
];
|
|
@@ -7982,6 +8180,37 @@ registerGovernanceProposalAction({
|
|
|
7982
8180
|
]
|
|
7983
8181
|
});
|
|
7984
8182
|
|
|
8183
|
+
// src/core/lib/actionRegistry/actions/governance/submissionPolicy.ts
|
|
8184
|
+
registerGovernanceProposalAction({
|
|
8185
|
+
type: "qi/governance.submission-policy",
|
|
8186
|
+
can: "governance/submission-policy",
|
|
8187
|
+
buildActions: (inputs) => {
|
|
8188
|
+
const allowlistAdd = parseAddressList(inputs.allowlistAdd);
|
|
8189
|
+
const allowlistRemove = parseAddressList(inputs.allowlistRemove);
|
|
8190
|
+
const denylistAdd = parseAddressList(inputs.denylistAdd);
|
|
8191
|
+
const denylistRemove = parseAddressList(inputs.denylistRemove);
|
|
8192
|
+
const setDaoMembers = inputs.setDaoMembers === true || inputs.setDaoMembers === "true" ? true : inputs.setDaoMembers === false || inputs.setDaoMembers === "false" ? false : null;
|
|
8193
|
+
if (!allowlistAdd.length && !allowlistRemove.length && !denylistAdd.length && !denylistRemove.length && setDaoMembers === null) {
|
|
8194
|
+
throw new Error("Nothing to change \u2014 add or remove at least one address, or set whether members may propose");
|
|
8195
|
+
}
|
|
8196
|
+
return [{ type: "UpdateSubmissionPolicy", data: { allowlistAdd, allowlistRemove, denylistAdd, denylistRemove, setDaoMembers } }];
|
|
8197
|
+
},
|
|
8198
|
+
defaultTitle: () => "Update who may submit proposals",
|
|
8199
|
+
defaultDescription: () => "Changes the allow and deny lists for proposal submission once the proposal passes; the proposal deposit is untouched.",
|
|
8200
|
+
buildExtraOutput: (inputs) => ({
|
|
8201
|
+
allowlistAdd: parseAddressList(inputs.allowlistAdd).join(","),
|
|
8202
|
+
allowlistRemove: parseAddressList(inputs.allowlistRemove).join(","),
|
|
8203
|
+
denylistAdd: parseAddressList(inputs.denylistAdd).join(","),
|
|
8204
|
+
denylistRemove: parseAddressList(inputs.denylistRemove).join(",")
|
|
8205
|
+
}),
|
|
8206
|
+
extraOutputSchema: [
|
|
8207
|
+
{ path: "allowlistAdd", displayName: "Allowlist Added", type: "string", description: "Addresses gaining the right to propose" },
|
|
8208
|
+
{ path: "allowlistRemove", displayName: "Allowlist Removed", type: "string", description: "Addresses losing the right to propose" },
|
|
8209
|
+
{ path: "denylistAdd", displayName: "Denylist Added", type: "string", description: "Addresses blocked from proposing" },
|
|
8210
|
+
{ path: "denylistRemove", displayName: "Denylist Removed", type: "string", description: "Addresses unblocked" }
|
|
8211
|
+
]
|
|
8212
|
+
});
|
|
8213
|
+
|
|
7985
8214
|
// src/core/lib/actionRegistry/actions/governance/transactionSendFunds.ts
|
|
7986
8215
|
registerAction({
|
|
7987
8216
|
type: "qi/governance.transaction.send-funds",
|
|
@@ -8049,7 +8278,8 @@ registerAction({
|
|
|
8049
8278
|
description,
|
|
8050
8279
|
actions: [spendAction],
|
|
8051
8280
|
coreAddress,
|
|
8052
|
-
groupContractAddress
|
|
8281
|
+
groupContractAddress,
|
|
8282
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
8053
8283
|
});
|
|
8054
8284
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
8055
8285
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -8606,6 +8836,659 @@ registerGovernanceProposalAction({
|
|
|
8606
8836
|
extraOutputSchema: [{ path: "typeUrl", displayName: "Message Type URL", type: "string", description: "The stargate message type the proposal broadcasts" }]
|
|
8607
8837
|
});
|
|
8608
8838
|
|
|
8839
|
+
// src/core/lib/actionRegistry/actions/governance/daoUpgrade.ts
|
|
8840
|
+
var isTrue2 = (value) => value === true || value === "true";
|
|
8841
|
+
var OUTPUT_SCHEMA = [
|
|
8842
|
+
{ path: "status", displayName: "Upgrade Status", type: "string", description: "'up-to-date', 'core-migrated', 'proposal-open', 'proposal-executed' or 'partial'" },
|
|
8843
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
8844
|
+
{ path: "targetVersion", displayName: "Target Version", type: "string", description: "The DAO DAO generation upgraded to" },
|
|
8845
|
+
{ path: "coreMigrated", displayName: "Core Migrated", type: "string", description: "'true' when this run migrated the core contract" },
|
|
8846
|
+
{ path: "coreTransactionHash", displayName: "Core Migration Tx", type: "string", description: "Transaction hash of the direct core migration, when one was signed" },
|
|
8847
|
+
{ path: "proposalId", displayName: "Proposal ID", type: "string", description: "The on-chain proposal migrating the governance modules, when one was created" },
|
|
8848
|
+
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the upgrade proposal lives on" },
|
|
8849
|
+
{ path: "proposalTitle", displayName: "Proposal Title", type: "string", description: "The proposal name voters see on-chain" },
|
|
8850
|
+
{ path: "proposalDescription", displayName: "Proposal Description", type: "string", description: "The long-form description voters see on-chain" },
|
|
8851
|
+
{ path: "migratedModules", displayName: "Migrated Modules", type: "string", description: "Comma-separated list of the modules the proposal migrates" },
|
|
8852
|
+
{ path: "skippedModules", displayName: "Skipped Modules", type: "string", description: "Comma-separated list of modules left as they are, with the reason" },
|
|
8853
|
+
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of this run" }
|
|
8854
|
+
];
|
|
8855
|
+
function summarizePlan(plan) {
|
|
8856
|
+
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(", ");
|
|
8857
|
+
const skipped = plan.messages.skipped.map((entry) => `${entry.contract} (${entry.reason})`).join(", ");
|
|
8858
|
+
return { migrated, skipped };
|
|
8859
|
+
}
|
|
8860
|
+
registerAction({
|
|
8861
|
+
type: "qi/governance.dao.upgrade",
|
|
8862
|
+
can: "governance.dao/upgrade",
|
|
8863
|
+
sideEffect: true,
|
|
8864
|
+
executionOwner: "human",
|
|
8865
|
+
proof: { fields: ["status"] },
|
|
8866
|
+
done: doneWhenCompleted,
|
|
8867
|
+
defaultRequiresConfirmation: true,
|
|
8868
|
+
requiredCapability: "flow/block/execute",
|
|
8869
|
+
inputSchema: {
|
|
8870
|
+
type: "object",
|
|
8871
|
+
required: ["coreAddress"],
|
|
8872
|
+
additionalProperties: false,
|
|
8873
|
+
properties: {
|
|
8874
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
8875
|
+
migrateVotingModule: { type: "boolean", description: "Also migrate the voting module (cw4 migrations bundle the required RemoveHook)." },
|
|
8876
|
+
skipCoreMigration: { type: "boolean", description: "Leave the core contract at its current version and only propose the module migrations." },
|
|
8877
|
+
title: { type: "string", description: "Proposal title voters see." },
|
|
8878
|
+
description: { type: "string", description: "Long-form proposal description voters see." }
|
|
8879
|
+
}
|
|
8880
|
+
},
|
|
8881
|
+
outputSchema: OUTPUT_SCHEMA,
|
|
8882
|
+
run: async (inputs, ctx) => {
|
|
8883
|
+
const handlers = ctx.handlers;
|
|
8884
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
8885
|
+
if (!handlers.getDaoUpgradePlan || !handlers.executeTransaction || !handlers.createProposal) {
|
|
8886
|
+
throw new Error("DAO upgrade handlers not available on this host");
|
|
8887
|
+
}
|
|
8888
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
8889
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
8890
|
+
const migrateVotingModule = isTrue2(inputs.migrateVotingModule);
|
|
8891
|
+
const plan = await handlers.getDaoUpgradePlan({ coreAddress, migrateVotingModule });
|
|
8892
|
+
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
8893
|
+
const { migrated, skipped } = summarizePlan(plan);
|
|
8894
|
+
const blocking = plan.issues.filter((issue) => issue.severity === "blocking");
|
|
8895
|
+
if (blocking.length) throw new Error(blocking.map((issue) => issue.message).join(" "));
|
|
8896
|
+
const base = {
|
|
8897
|
+
coreAddress,
|
|
8898
|
+
targetVersion: plan.targetVersion,
|
|
8899
|
+
coreMigrated: "false",
|
|
8900
|
+
coreTransactionHash: "",
|
|
8901
|
+
proposalId: "",
|
|
8902
|
+
proposalContractAddress: "",
|
|
8903
|
+
proposalTitle: "",
|
|
8904
|
+
proposalDescription: "",
|
|
8905
|
+
migratedModules: migrated,
|
|
8906
|
+
skippedModules: skipped,
|
|
8907
|
+
createdAt
|
|
8908
|
+
};
|
|
8909
|
+
if (plan.isUpToDate) {
|
|
8910
|
+
return { output: { ...base, status: "up-to-date" } };
|
|
8911
|
+
}
|
|
8912
|
+
let coreTransactionHash = "";
|
|
8913
|
+
const coreStep = plan.messages.coreStep;
|
|
8914
|
+
if (coreStep && plan.canSignCore && !isTrue2(inputs.skipCoreMigration)) {
|
|
8915
|
+
const result = await handlers.executeTransaction({
|
|
8916
|
+
messages: [coreStep.message],
|
|
8917
|
+
memo: `Migrate DAO core ${coreAddress} to DAO DAO v${plan.targetVersion}`
|
|
8918
|
+
});
|
|
8919
|
+
coreTransactionHash = String(result?.transactionHash || "");
|
|
8920
|
+
if (!coreTransactionHash) throw new Error("The core migration returned no transaction hash \u2014 check the wallet and try again.");
|
|
8921
|
+
}
|
|
8922
|
+
const proposalStep = plan.messages.proposalStep;
|
|
8923
|
+
if (!proposalStep) {
|
|
8924
|
+
if (!coreTransactionHash) {
|
|
8925
|
+
throw new Error(plan.issues.map((issue) => issue.message).join(" ") || "Nothing in this upgrade can be executed by the connected wallet.");
|
|
8926
|
+
}
|
|
8927
|
+
return { output: { ...base, status: "core-migrated", coreMigrated: "true", coreTransactionHash } };
|
|
8928
|
+
}
|
|
8929
|
+
const title = String(inputs.title || "").trim() || proposalStep.title;
|
|
8930
|
+
const description = String(inputs.description || "").trim() || proposalStep.description;
|
|
8931
|
+
const proposalId = await handlers.createProposal({
|
|
8932
|
+
preProposalContractAddress: plan.preProposalContractAddress,
|
|
8933
|
+
title,
|
|
8934
|
+
description,
|
|
8935
|
+
actions: proposalStep.actions,
|
|
8936
|
+
coreAddress,
|
|
8937
|
+
groupContractAddress: plan.groupContractAddress
|
|
8938
|
+
});
|
|
8939
|
+
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
8940
|
+
throw new Error("Upgrade proposal creation returned no proposal id. Check the handler logs.");
|
|
8941
|
+
}
|
|
8942
|
+
const proposalContractAddress = String(plan.version.proposal?.address || "");
|
|
8943
|
+
const expectedOutput = {
|
|
8944
|
+
...base,
|
|
8945
|
+
status: "proposal-executed",
|
|
8946
|
+
coreMigrated: coreTransactionHash ? "true" : "false",
|
|
8947
|
+
coreTransactionHash,
|
|
8948
|
+
proposalId: String(proposalId),
|
|
8949
|
+
proposalContractAddress,
|
|
8950
|
+
proposalTitle: title,
|
|
8951
|
+
proposalDescription: description
|
|
8952
|
+
};
|
|
8953
|
+
return {
|
|
8954
|
+
output: { ...expectedOutput, status: "proposal-open" },
|
|
8955
|
+
completion: {
|
|
8956
|
+
state: "awaiting_readback",
|
|
8957
|
+
readBack: {
|
|
8958
|
+
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
8959
|
+
proposalId: String(proposalId),
|
|
8960
|
+
proposalContractAddress,
|
|
8961
|
+
coreAddress,
|
|
8962
|
+
expectedOutput
|
|
8963
|
+
}
|
|
8964
|
+
},
|
|
8965
|
+
topicRecords: ctx.topic ? [
|
|
8966
|
+
{
|
|
8967
|
+
type: "org.ixo.topic.proposal-receipt",
|
|
8968
|
+
id: sha256Digest({ topicId: ctx.topic.topicId, proposalContractAddress, proposalId }),
|
|
8969
|
+
version: 1,
|
|
8970
|
+
value: {
|
|
8971
|
+
event: "created",
|
|
8972
|
+
actionType: "qi/governance.dao.upgrade",
|
|
8973
|
+
proposalId: String(proposalId),
|
|
8974
|
+
proposalContractAddress,
|
|
8975
|
+
coreAddress,
|
|
8976
|
+
proposalTitle: title,
|
|
8977
|
+
proposalDescriptionDigest: sha256Digest(description),
|
|
8978
|
+
createdAt
|
|
8979
|
+
}
|
|
8980
|
+
}
|
|
8981
|
+
] : void 0
|
|
8982
|
+
};
|
|
8983
|
+
}
|
|
8984
|
+
});
|
|
8985
|
+
|
|
8986
|
+
// src/core/lib/actionRegistry/actions/governance/veto.ts
|
|
8987
|
+
registerAction({
|
|
8988
|
+
type: "qi/governance.veto",
|
|
8989
|
+
can: "governance/veto",
|
|
8990
|
+
sideEffect: true,
|
|
8991
|
+
executionOwner: "human",
|
|
8992
|
+
proof: { fields: ["transactionHash"] },
|
|
8993
|
+
done: doneWhenCompleted,
|
|
8994
|
+
defaultRequiresConfirmation: true,
|
|
8995
|
+
requiredCapability: "flow/block/execute",
|
|
8996
|
+
inputSchema: {
|
|
8997
|
+
type: "object",
|
|
8998
|
+
required: ["coreAddress", "proposalId"],
|
|
8999
|
+
additionalProperties: false,
|
|
9000
|
+
properties: {
|
|
9001
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
9002
|
+
proposalId: { type: ["string", "number"], description: "The proposal to veto." }
|
|
9003
|
+
}
|
|
9004
|
+
},
|
|
9005
|
+
outputSchema: [
|
|
9006
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the veto transaction" },
|
|
9007
|
+
{ path: "proposalId", displayName: "Proposal ID", type: "string", description: "The vetoed proposal" },
|
|
9008
|
+
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the veto was sent to" },
|
|
9009
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
9010
|
+
{ path: "status", displayName: "Proposal Status", type: "string", description: "'vetoed' once the veto transaction landed" },
|
|
9011
|
+
{ path: "vetoedAt", displayName: "Vetoed At", type: "string", description: "ISO timestamp of the veto" }
|
|
9012
|
+
],
|
|
9013
|
+
run: async (inputs, ctx) => {
|
|
9014
|
+
const handlers = ctx.handlers;
|
|
9015
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
9016
|
+
if (!handlers.getProposalContractAddress || !handlers.vetoProposal) throw new Error("Veto handlers not available on this host");
|
|
9017
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
9018
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
9019
|
+
const proposalId = Number(inputs.proposalId);
|
|
9020
|
+
if (!Number.isInteger(proposalId) || proposalId <= 0) throw new Error("proposalId must be a positive whole number");
|
|
9021
|
+
const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
|
|
9022
|
+
if (!proposalContractAddress) throw new Error(`No proposal module found for ${coreAddress}`);
|
|
9023
|
+
const { transactionHash } = await handlers.vetoProposal({ proposalContractAddress, proposalId });
|
|
9024
|
+
if (!transactionHash) throw new Error("The veto returned no transaction hash. Check the handler logs.");
|
|
9025
|
+
return {
|
|
9026
|
+
output: {
|
|
9027
|
+
transactionHash,
|
|
9028
|
+
proposalId: String(proposalId),
|
|
9029
|
+
proposalContractAddress,
|
|
9030
|
+
coreAddress,
|
|
9031
|
+
status: "vetoed",
|
|
9032
|
+
vetoedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
9033
|
+
}
|
|
9034
|
+
};
|
|
9035
|
+
}
|
|
9036
|
+
});
|
|
9037
|
+
|
|
9038
|
+
// src/core/lib/actionRegistry/actions/governance/daoPause.ts
|
|
9039
|
+
registerGovernanceProposalAction({
|
|
9040
|
+
type: "qi/governance.dao.pause",
|
|
9041
|
+
can: "governance/dao-pause",
|
|
9042
|
+
buildActions: (inputs) => {
|
|
9043
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
9044
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
9045
|
+
const hours = Number(inputs.pauseHours);
|
|
9046
|
+
if (!Number.isFinite(hours) || hours <= 0) throw new Error("pauseHours must be a positive number of hours");
|
|
9047
|
+
const seconds = Math.round(hours * 3600);
|
|
9048
|
+
return [{ type: "Execute", data: { address: coreAddress, message: JSON.stringify({ pause: { duration: { time: seconds } } }), funds: [] } }];
|
|
9049
|
+
},
|
|
9050
|
+
defaultTitle: (inputs) => `Pause the group for ${Number(inputs.pauseHours) || "?"} hours`,
|
|
9051
|
+
defaultDescription: () => "Once this proposal passes the group executes nothing until the pause ends; proposing and voting continue.",
|
|
9052
|
+
buildExtraOutput: (inputs) => ({ pauseSeconds: String(Math.round((Number(inputs.pauseHours) || 0) * 3600)) }),
|
|
9053
|
+
extraOutputSchema: [{ path: "pauseSeconds", displayName: "Pause Seconds", type: "string", description: "The pause duration submitted, in seconds" }]
|
|
9054
|
+
});
|
|
9055
|
+
|
|
9056
|
+
// src/core/lib/actionRegistry/actions/governance/daoUnpause.ts
|
|
9057
|
+
registerAction({
|
|
9058
|
+
type: "qi/governance.dao.unpause",
|
|
9059
|
+
can: "governance/dao-unpause",
|
|
9060
|
+
sideEffect: true,
|
|
9061
|
+
executionOwner: "human",
|
|
9062
|
+
proof: { fields: ["transactionHash"] },
|
|
9063
|
+
done: doneWhenCompleted,
|
|
9064
|
+
defaultRequiresConfirmation: true,
|
|
9065
|
+
requiredCapability: "flow/block/execute",
|
|
9066
|
+
inputSchema: {
|
|
9067
|
+
type: "object",
|
|
9068
|
+
required: ["coreAddress"],
|
|
9069
|
+
additionalProperties: false,
|
|
9070
|
+
properties: {
|
|
9071
|
+
coreAddress: { type: "string", description: "DAO core contract address." }
|
|
9072
|
+
}
|
|
9073
|
+
},
|
|
9074
|
+
outputSchema: [
|
|
9075
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the unpause transaction" },
|
|
9076
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
9077
|
+
{ path: "unpausedAt", displayName: "Unpaused At", type: "string", description: "ISO timestamp of the unpause" }
|
|
9078
|
+
],
|
|
9079
|
+
run: async (inputs, ctx) => {
|
|
9080
|
+
const handlers = ctx.handlers;
|
|
9081
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
9082
|
+
if (!handlers.unpauseDao) throw new Error("Unpause handler not available on this host");
|
|
9083
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
9084
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
9085
|
+
const { transactionHash } = await handlers.unpauseDao({ coreAddress });
|
|
9086
|
+
if (!transactionHash) throw new Error("The unpause returned no transaction hash. Check the handler logs.");
|
|
9087
|
+
return { output: { transactionHash, coreAddress, unpausedAt: (/* @__PURE__ */ new Date()).toISOString() } };
|
|
9088
|
+
}
|
|
9089
|
+
});
|
|
9090
|
+
|
|
9091
|
+
// src/core/lib/actionRegistry/actions/governance/nftActiveThreshold.ts
|
|
9092
|
+
registerGovernanceProposalAction({
|
|
9093
|
+
type: "qi/governance.nft.active-threshold",
|
|
9094
|
+
can: "governance/nft-active-threshold",
|
|
9095
|
+
buildActions: (inputs) => {
|
|
9096
|
+
const thresholdType = String(inputs.thresholdType || "none").trim();
|
|
9097
|
+
if (!["none", "count", "percent"].includes(thresholdType)) throw new Error("thresholdType must be 'none', 'count' or 'percent'");
|
|
9098
|
+
const value = Number(inputs.thresholdValue);
|
|
9099
|
+
if (thresholdType === "count" && (!Number.isInteger(value) || value <= 0)) throw new Error("thresholdValue must be a whole number greater than 0 for a count threshold");
|
|
9100
|
+
if (thresholdType === "percent" && (!Number.isFinite(value) || value <= 0 || value > 100))
|
|
9101
|
+
throw new Error("thresholdValue must be between 0 and 100 for a percentage threshold");
|
|
9102
|
+
return [{ type: "UpdateActiveThreshold", data: thresholdType === "none" ? { thresholdType } : { thresholdType, thresholdValue: value } }];
|
|
9103
|
+
},
|
|
9104
|
+
defaultTitle: (inputs) => String(inputs.thresholdType || "none") === "none" ? "Remove the active threshold" : `Set the active threshold to ${inputs.thresholdValue}${String(inputs.thresholdType) === "percent" ? "%" : " staked"}`,
|
|
9105
|
+
defaultDescription: () => "Changes how much of the collection must be staked before this group accepts new proposals.",
|
|
9106
|
+
buildExtraOutput: (inputs) => ({ thresholdType: String(inputs.thresholdType || "none"), thresholdValue: String(inputs.thresholdValue ?? "") }),
|
|
9107
|
+
extraOutputSchema: [
|
|
9108
|
+
{ path: "thresholdType", displayName: "Threshold Type", type: "string", description: "none, count or percent" },
|
|
9109
|
+
{ path: "thresholdValue", displayName: "Threshold Value", type: "string", description: "The submitted count or percentage" }
|
|
9110
|
+
]
|
|
9111
|
+
});
|
|
9112
|
+
|
|
9113
|
+
// src/core/lib/actionRegistry/actions/governance/delegationSetup.ts
|
|
9114
|
+
registerGovernanceProposalAction({
|
|
9115
|
+
type: "qi/governance.delegation.setup",
|
|
9116
|
+
can: "governance/delegation-setup",
|
|
9117
|
+
buildActions: (inputs) => {
|
|
9118
|
+
const optional = (value, label, max) => {
|
|
9119
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
9120
|
+
const n = Number(value);
|
|
9121
|
+
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}` : ""}`);
|
|
9122
|
+
return n;
|
|
9123
|
+
};
|
|
9124
|
+
const vpCapPercent = optional(inputs.vpCapPercent, "vpCapPercent", 100);
|
|
9125
|
+
const validityBlocks = optional(inputs.validityBlocks, "validityBlocks");
|
|
9126
|
+
const maxDelegations = optional(inputs.maxDelegations, "maxDelegations");
|
|
9127
|
+
return [{ type: "DelegationSetup", data: { vpCapPercent, validityBlocks, maxDelegations } }];
|
|
9128
|
+
},
|
|
9129
|
+
defaultTitle: () => "Enable vote delegation",
|
|
9130
|
+
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.",
|
|
9131
|
+
buildExtraOutput: (inputs) => ({ vpCapPercent: String(inputs.vpCapPercent ?? ""), validityBlocks: String(inputs.validityBlocks ?? ""), maxDelegations: String(inputs.maxDelegations ?? "") }),
|
|
9132
|
+
extraOutputSchema: [
|
|
9133
|
+
{ path: "vpCapPercent", displayName: "Voting Power Cap %", type: "string", description: "The submitted cap, blank for none" },
|
|
9134
|
+
{ path: "validityBlocks", displayName: "Validity Blocks", type: "string", description: "The submitted delegation validity, blank for never expiring" },
|
|
9135
|
+
{ path: "maxDelegations", displayName: "Max Delegations", type: "string", description: "The submitted per-member delegation limit" }
|
|
9136
|
+
]
|
|
9137
|
+
});
|
|
9138
|
+
|
|
9139
|
+
// src/core/lib/actionRegistry/actions/governance/delegation.ts
|
|
9140
|
+
var KINDS = [
|
|
9141
|
+
{ type: "qi/governance.delegation.register", can: "governance/delegation-register", action: "register", needsDelegate: false, needsPercent: false },
|
|
9142
|
+
{ type: "qi/governance.delegation.unregister", can: "governance/delegation-unregister", action: "unregister", needsDelegate: false, needsPercent: false },
|
|
9143
|
+
{ type: "qi/governance.delegation.delegate", can: "governance/delegation-delegate", action: "delegate", needsDelegate: true, needsPercent: true },
|
|
9144
|
+
{ type: "qi/governance.delegation.undelegate", can: "governance/delegation-undelegate", action: "undelegate", needsDelegate: true, needsPercent: false }
|
|
9145
|
+
];
|
|
9146
|
+
for (const kind of KINDS) {
|
|
9147
|
+
registerAction({
|
|
9148
|
+
type: kind.type,
|
|
9149
|
+
can: kind.can,
|
|
9150
|
+
sideEffect: true,
|
|
9151
|
+
executionOwner: "human",
|
|
9152
|
+
proof: { fields: ["transactionHash"] },
|
|
9153
|
+
done: doneWhenCompleted,
|
|
9154
|
+
defaultRequiresConfirmation: true,
|
|
9155
|
+
requiredCapability: "flow/block/execute",
|
|
9156
|
+
inputSchema: {
|
|
9157
|
+
type: "object",
|
|
9158
|
+
required: ["coreAddress", ...kind.needsDelegate ? ["delegate"] : [], ...kind.needsPercent ? ["percent"] : []],
|
|
9159
|
+
additionalProperties: false,
|
|
9160
|
+
properties: {
|
|
9161
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
9162
|
+
...kind.needsDelegate ? { delegate: { type: "string", description: "The delegate's address or DID." } } : {},
|
|
9163
|
+
...kind.needsPercent ? { percent: { type: ["number", "string"], description: "Share of your voting power to delegate, 0\u2013100." } } : {}
|
|
9164
|
+
}
|
|
9165
|
+
},
|
|
9166
|
+
outputSchema: [
|
|
9167
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the delegation transaction" },
|
|
9168
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
9169
|
+
{ path: "delegationModuleAddress", displayName: "Delegation Module", type: "string", description: "The dao_vote_delegation contract" },
|
|
9170
|
+
{ path: "action", displayName: "Action", type: "string", description: "register | unregister | delegate | undelegate" },
|
|
9171
|
+
{ path: "delegate", displayName: "Delegate", type: "string", description: "The delegate involved, when any" },
|
|
9172
|
+
{ path: "percent", displayName: "Percent", type: "string", description: "The delegated share, when any" }
|
|
9173
|
+
],
|
|
9174
|
+
run: async (inputs, ctx) => {
|
|
9175
|
+
const handlers = ctx.handlers;
|
|
9176
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
9177
|
+
if (!handlers.delegationExecute) throw new Error("Delegation handlers not available on this host");
|
|
9178
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
9179
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
9180
|
+
const delegate = String(inputs.delegate || "").trim();
|
|
9181
|
+
if (kind.needsDelegate && !delegate) throw new Error("delegate is required");
|
|
9182
|
+
const percent = kind.needsPercent ? Number(inputs.percent) : void 0;
|
|
9183
|
+
if (kind.needsPercent && (!Number.isFinite(percent) || percent <= 0 || percent > 100)) throw new Error("percent must be between 0 and 100");
|
|
9184
|
+
const { transactionHash, delegationModuleAddress } = await handlers.delegationExecute({
|
|
9185
|
+
coreAddress,
|
|
9186
|
+
action: kind.action,
|
|
9187
|
+
...kind.needsDelegate ? { delegate } : {},
|
|
9188
|
+
...kind.needsPercent ? { percent } : {}
|
|
9189
|
+
});
|
|
9190
|
+
if (!transactionHash) throw new Error("The delegation transaction returned no hash. Check the handler logs.");
|
|
9191
|
+
return {
|
|
9192
|
+
output: {
|
|
9193
|
+
transactionHash,
|
|
9194
|
+
coreAddress,
|
|
9195
|
+
delegationModuleAddress,
|
|
9196
|
+
action: kind.action,
|
|
9197
|
+
...kind.needsDelegate ? { delegate } : {},
|
|
9198
|
+
...kind.needsPercent ? { percent: String(percent) } : {}
|
|
9199
|
+
}
|
|
9200
|
+
};
|
|
9201
|
+
}
|
|
9202
|
+
});
|
|
9203
|
+
}
|
|
9204
|
+
|
|
9205
|
+
// src/core/lib/actionRegistry/actions/governance/rewards.ts
|
|
9206
|
+
registerGovernanceProposalAction({
|
|
9207
|
+
type: "qi/governance.rewards.create",
|
|
9208
|
+
can: "governance/rewards-create",
|
|
9209
|
+
buildActions: (inputs) => {
|
|
9210
|
+
const denomType = String(inputs.denomType || "native");
|
|
9211
|
+
if (denomType !== "native" && denomType !== "cw20") throw new Error("denomType must be 'native' or 'cw20'");
|
|
9212
|
+
const denom = String(inputs.denom || "").trim();
|
|
9213
|
+
if (!denom) throw new Error("denom is required");
|
|
9214
|
+
const emissionMode = String(inputs.emissionMode || "linear");
|
|
9215
|
+
if (!["linear", "immediate", "paused"].includes(emissionMode)) throw new Error("emissionMode must be 'linear', 'immediate' or 'paused'");
|
|
9216
|
+
const amount = inputs.amount === void 0 || inputs.amount === null || inputs.amount === "" ? null : String(inputs.amount);
|
|
9217
|
+
const periodSeconds = inputs.periodSeconds === void 0 || inputs.periodSeconds === null || inputs.periodSeconds === "" ? null : Number(inputs.periodSeconds);
|
|
9218
|
+
if (emissionMode === "linear") {
|
|
9219
|
+
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");
|
|
9220
|
+
if (!Number.isInteger(periodSeconds) || periodSeconds <= 0) throw new Error("periodSeconds must be a whole number greater than 0 for a linear emission");
|
|
9221
|
+
}
|
|
9222
|
+
const bool2 = (v) => v === void 0 || v === null || v === "" ? null : v === true || v === "true";
|
|
9223
|
+
return [
|
|
9224
|
+
{
|
|
9225
|
+
type: "RewardsCreate",
|
|
9226
|
+
data: {
|
|
9227
|
+
denomType,
|
|
9228
|
+
denom,
|
|
9229
|
+
emissionMode,
|
|
9230
|
+
amount,
|
|
9231
|
+
periodSeconds,
|
|
9232
|
+
continuous: bool2(inputs.continuous),
|
|
9233
|
+
openFunding: bool2(inputs.openFunding),
|
|
9234
|
+
withdrawDestination: inputs.withdrawDestination ? String(inputs.withdrawDestination) : null
|
|
9235
|
+
}
|
|
9236
|
+
}
|
|
9237
|
+
];
|
|
9238
|
+
},
|
|
9239
|
+
defaultTitle: (inputs) => `Create a ${String(inputs.denom || "")} reward distribution`,
|
|
9240
|
+
defaultDescription: () => "Members share the rewards in proportion to their voting power.",
|
|
9241
|
+
buildExtraOutput: (inputs) => ({ denom: String(inputs.denom || ""), emissionMode: String(inputs.emissionMode || "linear") }),
|
|
9242
|
+
extraOutputSchema: [
|
|
9243
|
+
{ path: "denom", displayName: "Denom", type: "string", description: "The reward denom" },
|
|
9244
|
+
{ path: "emissionMode", displayName: "Emission", type: "string", description: "linear | immediate | paused" }
|
|
9245
|
+
]
|
|
9246
|
+
});
|
|
9247
|
+
var requireId = (value) => {
|
|
9248
|
+
const id = Number(value);
|
|
9249
|
+
if (!Number.isInteger(id) || id < 0) throw new Error("distributionId must be a whole number");
|
|
9250
|
+
return id;
|
|
9251
|
+
};
|
|
9252
|
+
registerGovernanceProposalAction({
|
|
9253
|
+
type: "qi/governance.rewards.fund",
|
|
9254
|
+
can: "governance/rewards-fund",
|
|
9255
|
+
buildActions: (inputs) => {
|
|
9256
|
+
const id = requireId(inputs.distributionId);
|
|
9257
|
+
const amount = String(inputs.amount ?? "").trim();
|
|
9258
|
+
if (!/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0");
|
|
9259
|
+
return [{ type: "RewardsFund", data: { id, amount } }];
|
|
9260
|
+
},
|
|
9261
|
+
defaultTitle: (inputs) => `Fund reward distribution #${String(inputs.distributionId ?? "")}`,
|
|
9262
|
+
defaultDescription: () => "Moves funds from the treasury into the reward distribution.",
|
|
9263
|
+
buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? ""), amount: String(inputs.amount ?? "") }),
|
|
9264
|
+
extraOutputSchema: [
|
|
9265
|
+
{ path: "distributionId", displayName: "Distribution", type: "string", description: "The funded distribution id" },
|
|
9266
|
+
{ path: "amount", displayName: "Amount", type: "string", description: "Base units funded" }
|
|
9267
|
+
]
|
|
9268
|
+
});
|
|
9269
|
+
registerGovernanceProposalAction({
|
|
9270
|
+
type: "qi/governance.rewards.withdraw",
|
|
9271
|
+
can: "governance/rewards-withdraw",
|
|
9272
|
+
buildActions: (inputs) => [{ type: "RewardsWithdraw", data: { id: requireId(inputs.distributionId) } }],
|
|
9273
|
+
defaultTitle: (inputs) => `Withdraw undistributed rewards from #${String(inputs.distributionId ?? "")}`,
|
|
9274
|
+
defaultDescription: () => "Returns funds that were not yet distributed to the withdraw destination.",
|
|
9275
|
+
buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? "") }),
|
|
9276
|
+
extraOutputSchema: [{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution withdrawn from" }]
|
|
9277
|
+
});
|
|
9278
|
+
registerAction({
|
|
9279
|
+
type: "qi/governance.rewards.claim",
|
|
9280
|
+
can: "governance/rewards-claim",
|
|
9281
|
+
sideEffect: true,
|
|
9282
|
+
executionOwner: "human",
|
|
9283
|
+
proof: { fields: ["transactionHash"] },
|
|
9284
|
+
done: doneWhenCompleted,
|
|
9285
|
+
defaultRequiresConfirmation: true,
|
|
9286
|
+
requiredCapability: "flow/block/execute",
|
|
9287
|
+
inputSchema: {
|
|
9288
|
+
type: "object",
|
|
9289
|
+
required: ["coreAddress", "distributionId"],
|
|
9290
|
+
additionalProperties: false,
|
|
9291
|
+
properties: {
|
|
9292
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
9293
|
+
distributionId: { type: ["number", "string"], description: "The distribution to claim from." }
|
|
9294
|
+
}
|
|
9295
|
+
},
|
|
9296
|
+
outputSchema: [
|
|
9297
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the claim transaction" },
|
|
9298
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
9299
|
+
{ path: "distributorAddress", displayName: "Distributor", type: "string", description: "The dao_rewards_distributor contract" },
|
|
9300
|
+
{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution claimed from" }
|
|
9301
|
+
],
|
|
9302
|
+
run: async (inputs, ctx) => {
|
|
9303
|
+
const handlers = ctx.handlers;
|
|
9304
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
9305
|
+
if (!handlers.rewardsClaim) throw new Error("Rewards handlers not available on this host");
|
|
9306
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
9307
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
9308
|
+
const id = requireId(inputs.distributionId);
|
|
9309
|
+
const { transactionHash, distributorAddress } = await handlers.rewardsClaim({ coreAddress, id });
|
|
9310
|
+
if (!transactionHash) throw new Error("The claim returned no transaction hash. Check the handler logs.");
|
|
9311
|
+
return { output: { transactionHash, coreAddress, distributorAddress, distributionId: String(id) } };
|
|
9312
|
+
}
|
|
9313
|
+
});
|
|
9314
|
+
|
|
9315
|
+
// src/core/lib/actionRegistry/actions/governance/approval.ts
|
|
9316
|
+
var optionalNumber = (value, label, max) => {
|
|
9317
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
9318
|
+
const n = Number(value);
|
|
9319
|
+
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}` : ""}`);
|
|
9320
|
+
return n;
|
|
9321
|
+
};
|
|
9322
|
+
var bool = (v) => v === void 0 || v === null || v === "" ? void 0 : v === true || v === "true";
|
|
9323
|
+
registerGovernanceProposalAction({
|
|
9324
|
+
type: "qi/governance.proposal-module.add",
|
|
9325
|
+
can: "governance/proposal-module-add",
|
|
9326
|
+
buildActions: (inputs) => {
|
|
9327
|
+
const kind = String(inputs.kind || "single");
|
|
9328
|
+
if (kind !== "single" && kind !== "multiple") throw new Error("kind must be 'single' or 'multiple'");
|
|
9329
|
+
const votingPeriodSeconds = Number(inputs.votingPeriodSeconds);
|
|
9330
|
+
if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
|
|
9331
|
+
const approvalRequired = bool(inputs.approvalRequired) === true;
|
|
9332
|
+
const approver = String(inputs.approver || "").trim();
|
|
9333
|
+
if (approvalRequired && !approver) throw new Error("approver is required when approvalRequired is on");
|
|
9334
|
+
const refund = String(inputs.depositRefundPolicy || "always");
|
|
9335
|
+
if (!["always", "only_passed", "never"].includes(refund)) throw new Error("depositRefundPolicy must be 'always', 'only_passed' or 'never'");
|
|
9336
|
+
return [
|
|
9337
|
+
{
|
|
9338
|
+
type: "AddProposalModule",
|
|
9339
|
+
data: {
|
|
9340
|
+
kind,
|
|
9341
|
+
approvalRequired,
|
|
9342
|
+
approver: approvalRequired ? approver : null,
|
|
9343
|
+
thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100),
|
|
9344
|
+
quorumPercent: optionalNumber(inputs.quorumPercent, "quorumPercent", 100),
|
|
9345
|
+
votingPeriodSeconds,
|
|
9346
|
+
allowRevoting: bool(inputs.allowRevoting) !== false,
|
|
9347
|
+
anyoneCanPropose: bool(inputs.anyoneCanPropose) === true,
|
|
9348
|
+
depositAmount: inputs.depositAmount ? String(inputs.depositAmount) : null,
|
|
9349
|
+
depositDenom: inputs.depositDenom ? String(inputs.depositDenom) : null,
|
|
9350
|
+
depositRefundPolicy: refund,
|
|
9351
|
+
label: inputs.label ? String(inputs.label) : void 0
|
|
9352
|
+
}
|
|
9353
|
+
}
|
|
9354
|
+
];
|
|
9355
|
+
},
|
|
9356
|
+
defaultTitle: (inputs) => `Add a ${String(inputs.kind || "single") === "multiple" ? "multiple-choice" : "single-choice"} proposal module${bool(inputs.approvalRequired) ? " with approval" : ""}`,
|
|
9357
|
+
defaultDescription: () => "Proposals submitted to the new module follow its own voting rules.",
|
|
9358
|
+
buildExtraOutput: (inputs) => ({ kind: String(inputs.kind || "single"), approvalRequired: String(bool(inputs.approvalRequired) === true) }),
|
|
9359
|
+
extraOutputSchema: [
|
|
9360
|
+
{ path: "kind", displayName: "Kind", type: "string", description: "single | multiple" },
|
|
9361
|
+
{ path: "approvalRequired", displayName: "Approval Required", type: "string", description: "'true' when submissions wait for an approver" }
|
|
9362
|
+
]
|
|
9363
|
+
});
|
|
9364
|
+
registerGovernanceProposalAction({
|
|
9365
|
+
type: "qi/governance.approver.setup",
|
|
9366
|
+
can: "governance/approver-setup",
|
|
9367
|
+
buildActions: (inputs) => {
|
|
9368
|
+
const approvalModule = String(inputs.approvalModule || "").trim();
|
|
9369
|
+
if (!approvalModule) throw new Error("approvalModule (the child POD's approval module address) is required");
|
|
9370
|
+
const votingPeriodSeconds = inputs.votingPeriodSeconds ? Number(inputs.votingPeriodSeconds) : 604800;
|
|
9371
|
+
if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
|
|
9372
|
+
return [{ type: "ApproverSetup", data: { approvalModule, votingPeriodSeconds, thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100) } }];
|
|
9373
|
+
},
|
|
9374
|
+
defaultTitle: (inputs) => `Become the approver for ${String(inputs.approvalModule || "")}`,
|
|
9375
|
+
defaultDescription: () => "Each submission on the child POD's approval module becomes an approve/reject proposal here.",
|
|
9376
|
+
buildExtraOutput: (inputs) => ({ approvalModule: String(inputs.approvalModule || "") }),
|
|
9377
|
+
extraOutputSchema: [{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The child POD's approval module" }]
|
|
9378
|
+
});
|
|
9379
|
+
registerAction({
|
|
9380
|
+
type: "qi/governance.approval.review",
|
|
9381
|
+
can: "governance/approval-review",
|
|
9382
|
+
sideEffect: true,
|
|
9383
|
+
executionOwner: "human",
|
|
9384
|
+
proof: { fields: ["transactionHash"] },
|
|
9385
|
+
done: doneWhenCompleted,
|
|
9386
|
+
defaultRequiresConfirmation: true,
|
|
9387
|
+
requiredCapability: "flow/block/execute",
|
|
9388
|
+
inputSchema: {
|
|
9389
|
+
type: "object",
|
|
9390
|
+
required: ["coreAddress", "approvalModule", "approvalId", "decision"],
|
|
9391
|
+
additionalProperties: false,
|
|
9392
|
+
properties: {
|
|
9393
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
9394
|
+
approvalModule: { type: "string", description: "The approval pre-propose module holding the submission." },
|
|
9395
|
+
approvalId: { type: ["number", "string"], description: "The submission id." },
|
|
9396
|
+
decision: { type: "string", enum: ["approve", "reject"], description: "approve | reject" }
|
|
9397
|
+
}
|
|
9398
|
+
},
|
|
9399
|
+
outputSchema: [
|
|
9400
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the review transaction" },
|
|
9401
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
9402
|
+
{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The approval module" },
|
|
9403
|
+
{ path: "approvalId", displayName: "Submission", type: "string", description: "The reviewed submission id" },
|
|
9404
|
+
{ path: "decision", displayName: "Decision", type: "string", description: "approve | reject" }
|
|
9405
|
+
],
|
|
9406
|
+
run: async (inputs, ctx) => {
|
|
9407
|
+
const handlers = ctx.handlers;
|
|
9408
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
9409
|
+
if (!handlers.reviewSubmission) throw new Error("Approval handlers not available on this host");
|
|
9410
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
9411
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
9412
|
+
const approvalModule = String(inputs.approvalModule || "").trim();
|
|
9413
|
+
if (!approvalModule) throw new Error("approvalModule is required");
|
|
9414
|
+
const approvalId = Number(inputs.approvalId);
|
|
9415
|
+
if (!Number.isInteger(approvalId) || approvalId < 0) throw new Error("approvalId must be a whole number");
|
|
9416
|
+
const decision = String(inputs.decision);
|
|
9417
|
+
if (decision !== "approve" && decision !== "reject") throw new Error("decision must be 'approve' or 'reject'");
|
|
9418
|
+
const { transactionHash } = await handlers.reviewSubmission({ approvalModule, approvalId, decision });
|
|
9419
|
+
if (!transactionHash) throw new Error("The review returned no transaction hash. Check the handler logs.");
|
|
9420
|
+
return { output: { transactionHash, coreAddress, approvalModule, approvalId: String(approvalId), decision } };
|
|
9421
|
+
}
|
|
9422
|
+
});
|
|
9423
|
+
function parseOptions(value) {
|
|
9424
|
+
if (Array.isArray(value))
|
|
9425
|
+
return value.map(
|
|
9426
|
+
(o) => typeof o === "string" ? { title: o } : { title: String(o?.title ?? ""), description: o?.description ? String(o.description) : void 0 }
|
|
9427
|
+
);
|
|
9428
|
+
const text = String(value ?? "").trim();
|
|
9429
|
+
if (!text) return [];
|
|
9430
|
+
if (text.startsWith("[")) {
|
|
9431
|
+
try {
|
|
9432
|
+
return parseOptions(JSON.parse(text));
|
|
9433
|
+
} catch {
|
|
9434
|
+
throw new Error("options must be a JSON array of { title, description } or one option per line");
|
|
9435
|
+
}
|
|
9436
|
+
}
|
|
9437
|
+
return text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).map((line) => {
|
|
9438
|
+
const [title, ...rest] = line.split(/\s+[-–—]\s+|:\s+/);
|
|
9439
|
+
return { title: title.trim(), description: rest.length ? rest.join(" ").trim() : void 0 };
|
|
9440
|
+
});
|
|
9441
|
+
}
|
|
9442
|
+
registerAction({
|
|
9443
|
+
type: "qi/governance.proposal.create-multiple",
|
|
9444
|
+
can: "governance/proposal-create-multiple",
|
|
9445
|
+
sideEffect: true,
|
|
9446
|
+
executionOwner: "human",
|
|
9447
|
+
proof: { fields: ["transactionHash"] },
|
|
9448
|
+
done: doneWhenCompleted,
|
|
9449
|
+
defaultRequiresConfirmation: true,
|
|
9450
|
+
requiredCapability: "flow/block/execute",
|
|
9451
|
+
inputSchema: {
|
|
9452
|
+
type: "object",
|
|
9453
|
+
required: ["coreAddress", "title", "options"],
|
|
9454
|
+
additionalProperties: false,
|
|
9455
|
+
properties: {
|
|
9456
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
9457
|
+
proposalModule: { type: "string", description: "The multiple-choice proposal module; blank = the first one on the POD." },
|
|
9458
|
+
title: { type: "string", description: "Proposal title." },
|
|
9459
|
+
description: { type: "string", description: "Proposal description." },
|
|
9460
|
+
options: { type: ["array", "string"], description: 'JSON array of { title, description }, or one option per line ("Title - description").' }
|
|
9461
|
+
}
|
|
9462
|
+
},
|
|
9463
|
+
outputSchema: [
|
|
9464
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the propose transaction" },
|
|
9465
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
9466
|
+
{ path: "proposalModule", displayName: "Proposal Module", type: "string", description: "The multiple-choice module the proposal went to" },
|
|
9467
|
+
{ path: "optionCount", displayName: "Options", type: "string", description: "Number of options submitted" }
|
|
9468
|
+
],
|
|
9469
|
+
run: async (inputs, ctx) => {
|
|
9470
|
+
const handlers = ctx.handlers;
|
|
9471
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
9472
|
+
if (!handlers.createMultipleChoiceProposal) throw new Error("Multiple-choice proposal handler not available on this host");
|
|
9473
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
9474
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
9475
|
+
const title = String(inputs.title || "").trim();
|
|
9476
|
+
if (!title) throw new Error("title is required");
|
|
9477
|
+
const options = parseOptions(inputs.options).filter((o) => o.title);
|
|
9478
|
+
if (options.length < 2) throw new Error("At least two options are required");
|
|
9479
|
+
if (options.length > 10) throw new Error("At most 10 options are allowed");
|
|
9480
|
+
const { transactionHash, proposalModule } = await handlers.createMultipleChoiceProposal({
|
|
9481
|
+
coreAddress,
|
|
9482
|
+
proposalModule: inputs.proposalModule ? String(inputs.proposalModule) : void 0,
|
|
9483
|
+
title,
|
|
9484
|
+
description: String(inputs.description || ""),
|
|
9485
|
+
options
|
|
9486
|
+
});
|
|
9487
|
+
if (!transactionHash) throw new Error("The proposal returned no transaction hash. Check the handler logs.");
|
|
9488
|
+
return { output: { transactionHash, coreAddress, proposalModule, optionCount: String(options.length) } };
|
|
9489
|
+
}
|
|
9490
|
+
});
|
|
9491
|
+
|
|
8609
9492
|
// src/core/lib/actionRegistry/actions/governance/nftBurn.ts
|
|
8610
9493
|
registerGovernanceProposalAction({
|
|
8611
9494
|
type: "qi/governance.nft.burn",
|
|
@@ -8951,7 +9834,7 @@ var INPUT_PROPERTIES = {
|
|
|
8951
9834
|
headers: { type: "object", additionalProperties: { type: "string" }, description: "Non-secret request headers. Authorization and cookies are rejected." },
|
|
8952
9835
|
body: { description: "Request body for a mutating HTTP request." }
|
|
8953
9836
|
};
|
|
8954
|
-
var
|
|
9837
|
+
var OUTPUT_SCHEMA2 = [
|
|
8955
9838
|
{ path: "requestId", displayName: "Request ID", type: "string", description: "Host invocation identifier." },
|
|
8956
9839
|
{ path: "status", displayName: "HTTP Status", type: "number" },
|
|
8957
9840
|
{ path: "responseDigest", displayName: "Response Digest", type: "string", description: "Digest of the response body." },
|
|
@@ -9006,7 +9889,7 @@ registerAction({
|
|
|
9006
9889
|
properties: { ...INPUT_PROPERTIES, method: { type: "string", enum: ["GET", "HEAD"], default: "GET" } }
|
|
9007
9890
|
},
|
|
9008
9891
|
getMissingInputs: missingEndpoint,
|
|
9009
|
-
outputSchema:
|
|
9892
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
9010
9893
|
run: async (rawInputs, ctx) => {
|
|
9011
9894
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
9012
9895
|
const url = publicHttpUrl(inputs.endpoint ?? inputs.url);
|
|
@@ -9077,7 +9960,7 @@ registerAction({
|
|
|
9077
9960
|
}
|
|
9078
9961
|
},
|
|
9079
9962
|
getMissingInputs: missingEndpoint,
|
|
9080
|
-
outputSchema:
|
|
9963
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
9081
9964
|
run: async (rawInputs, ctx) => {
|
|
9082
9965
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
9083
9966
|
const service = ctx.services.http;
|
|
@@ -9505,60 +10388,6 @@ registerAction({
|
|
|
9505
10388
|
}
|
|
9506
10389
|
});
|
|
9507
10390
|
|
|
9508
|
-
// src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
|
|
9509
|
-
var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
|
|
9510
|
-
function isGroupExecution(inputs) {
|
|
9511
|
-
return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
|
|
9512
|
-
}
|
|
9513
|
-
function requireGroupExecutionParams(inputs) {
|
|
9514
|
-
const coreAddress = String(inputs.groupCoreAddress || "").trim();
|
|
9515
|
-
if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
|
|
9516
|
-
const title = String(inputs.proposalTitle || "").trim();
|
|
9517
|
-
if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
|
|
9518
|
-
const description = String(inputs.proposalDescription || "").trim();
|
|
9519
|
-
if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
|
|
9520
|
-
return { coreAddress, title, description };
|
|
9521
|
-
}
|
|
9522
|
-
async function proposeGroupExecution(ctx, params) {
|
|
9523
|
-
const handlers = ctx.handlers;
|
|
9524
|
-
if (!handlers?.createGroupExecutionProposal) {
|
|
9525
|
-
throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
|
|
9526
|
-
}
|
|
9527
|
-
const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent } = params;
|
|
9528
|
-
const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
|
|
9529
|
-
coreAddress,
|
|
9530
|
-
title,
|
|
9531
|
-
description,
|
|
9532
|
-
msgs
|
|
9533
|
-
});
|
|
9534
|
-
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
9535
|
-
throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
|
|
9536
|
-
}
|
|
9537
|
-
return {
|
|
9538
|
-
output: {
|
|
9539
|
-
...expectedOutput,
|
|
9540
|
-
groupExecution: true,
|
|
9541
|
-
groupCoreAddress: coreAddress,
|
|
9542
|
-
groupProposalId: String(proposalId),
|
|
9543
|
-
groupProposalContractAddress: String(proposalContractAddress || ""),
|
|
9544
|
-
proposalTitle: title,
|
|
9545
|
-
proposalDescription: description
|
|
9546
|
-
},
|
|
9547
|
-
completion: {
|
|
9548
|
-
state: "awaiting_readback",
|
|
9549
|
-
readBack: {
|
|
9550
|
-
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
9551
|
-
proposalId: String(proposalId),
|
|
9552
|
-
proposalContractAddress: String(proposalContractAddress || ""),
|
|
9553
|
-
coreAddress,
|
|
9554
|
-
expectedOutput,
|
|
9555
|
-
...completionEvent ? { completionEvent } : {},
|
|
9556
|
-
...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
|
|
9557
|
-
}
|
|
9558
|
-
}
|
|
9559
|
-
};
|
|
9560
|
-
}
|
|
9561
|
-
|
|
9562
10391
|
// src/core/lib/actionRegistry/actions/bid/bid.ts
|
|
9563
10392
|
function normalizeBidRole(role) {
|
|
9564
10393
|
const normalized = String(role || "").trim().toLowerCase();
|
|
@@ -9616,6 +10445,7 @@ registerAction({
|
|
|
9616
10445
|
if (isGroupExecution(inputs)) {
|
|
9617
10446
|
const { coreAddress, title, description } = requireGroupExecutionParams(inputs);
|
|
9618
10447
|
return proposeGroupExecution(ctx, {
|
|
10448
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
9619
10449
|
coreAddress,
|
|
9620
10450
|
title,
|
|
9621
10451
|
description,
|
|
@@ -9780,6 +10610,7 @@ registerAction({
|
|
|
9780
10610
|
maxAmounts: Array.isArray(maxAmounts) ? maxAmounts : void 0
|
|
9781
10611
|
});
|
|
9782
10612
|
return proposeGroupExecution(ctx, {
|
|
10613
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
9783
10614
|
coreAddress,
|
|
9784
10615
|
title,
|
|
9785
10616
|
description,
|
|
@@ -9792,6 +10623,7 @@ registerAction({
|
|
|
9792
10623
|
const reason = String(inputs.reason || "").trim();
|
|
9793
10624
|
if (!reason) throw new Error("reason is required when decision is reject");
|
|
9794
10625
|
return proposeGroupExecution(ctx, {
|
|
10626
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
9795
10627
|
coreAddress,
|
|
9796
10628
|
title,
|
|
9797
10629
|
description,
|
|
@@ -10000,6 +10832,7 @@ registerAction({
|
|
|
10000
10832
|
const claimId2 = String(prepared?.claimId || "").trim();
|
|
10001
10833
|
if (!claimId2) throw new Error("prepareGroupClaimSubmission returned no claim identifier");
|
|
10002
10834
|
return proposeGroupExecution(ctx, {
|
|
10835
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
10003
10836
|
coreAddress,
|
|
10004
10837
|
title,
|
|
10005
10838
|
description,
|
|
@@ -10674,6 +11507,7 @@ registerAction({
|
|
|
10674
11507
|
} catch {
|
|
10675
11508
|
}
|
|
10676
11509
|
return proposeGroupExecution(ctx, {
|
|
11510
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
10677
11511
|
coreAddress,
|
|
10678
11512
|
title,
|
|
10679
11513
|
description,
|
|
@@ -10851,7 +11685,12 @@ registerAction({
|
|
|
10851
11685
|
coreAddress: { type: "string", description: "The DAO core contract address." },
|
|
10852
11686
|
title: { type: "string", description: "The proposal title." },
|
|
10853
11687
|
description: { type: "string", description: "The proposal description." },
|
|
10854
|
-
actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." }
|
|
11688
|
+
actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." },
|
|
11689
|
+
voteOnSubmission: {
|
|
11690
|
+
type: "string",
|
|
11691
|
+
enum: ["", "yes", "no", "abstain"],
|
|
11692
|
+
description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
|
|
11693
|
+
}
|
|
10855
11694
|
}
|
|
10856
11695
|
},
|
|
10857
11696
|
outputSchema: [
|
|
@@ -10896,13 +11735,15 @@ registerAction({
|
|
|
10896
11735
|
const { proposalContractAddress } = await handlers.getProposalContractAddress({
|
|
10897
11736
|
coreAddress
|
|
10898
11737
|
});
|
|
11738
|
+
const autoVote = autoVoteFromInputs(inputs);
|
|
10899
11739
|
const params = {
|
|
10900
11740
|
preProposalContractAddress,
|
|
10901
11741
|
title,
|
|
10902
11742
|
description,
|
|
10903
11743
|
actions: actions2.length > 0 ? actions2 : void 0,
|
|
10904
11744
|
coreAddress,
|
|
10905
|
-
groupContractAddress
|
|
11745
|
+
groupContractAddress,
|
|
11746
|
+
...autoVote ? { autoVote } : {}
|
|
10906
11747
|
};
|
|
10907
11748
|
const proposalId = await handlers.createProposal(params);
|
|
10908
11749
|
return {
|
|
@@ -11292,7 +12133,8 @@ function buildGroupConfig(groupType, governance, memberConfig) {
|
|
|
11292
12133
|
...baseConfig,
|
|
11293
12134
|
...decisionPolicy,
|
|
11294
12135
|
nftContractAddress: memberConfig?.nftContractAddress || "",
|
|
11295
|
-
...unstakingDuration ? { unstakingDurationAmount: unstakingDuration.amount, unstakingDurationUnit: unstakingDuration.unit } : {}
|
|
12136
|
+
...unstakingDuration ? { unstakingDurationAmount: unstakingDuration.amount, unstakingDurationUnit: unstakingDuration.unit } : {},
|
|
12137
|
+
...memberConfig?.activeThresholdType && memberConfig.activeThresholdType !== "none" ? { activeThresholdType: memberConfig.activeThresholdType, activeThresholdValue: memberConfig.activeThresholdValue } : {}
|
|
11296
12138
|
};
|
|
11297
12139
|
}
|
|
11298
12140
|
if (groupType === "tokenStaking") {
|
|
@@ -13856,6 +14698,7 @@ registerAction({
|
|
|
13856
14698
|
params: createParams
|
|
13857
14699
|
});
|
|
13858
14700
|
return proposeGroupExecution(ctx, {
|
|
14701
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
13859
14702
|
coreAddress,
|
|
13860
14703
|
title,
|
|
13861
14704
|
description,
|
|
@@ -13924,6 +14767,7 @@ registerAction({
|
|
|
13924
14767
|
params: { ...inputs, collectionId, adminAddress }
|
|
13925
14768
|
});
|
|
13926
14769
|
return proposeGroupExecution(ctx, {
|
|
14770
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
13927
14771
|
coreAddress,
|
|
13928
14772
|
title,
|
|
13929
14773
|
description,
|
|
@@ -14415,6 +15259,7 @@ registerAction({
|
|
|
14415
15259
|
msgs.push(...prepared.msgs || []);
|
|
14416
15260
|
}
|
|
14417
15261
|
return proposeGroupExecution(ctx, {
|
|
15262
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
14418
15263
|
coreAddress,
|
|
14419
15264
|
title,
|
|
14420
15265
|
description,
|