@ixo/editor 7.17.0 → 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-P5H7O3ZI.js → BidConfig-P5CJR43N.js} +11 -10
- package/dist/{BidConfig-P5H7O3ZI.js.map → BidConfig-P5CJR43N.js.map} +1 -1
- package/dist/{BidFlowDetail-GIZKKMM7.js → BidFlowDetail-SV33OI2Y.js} +21 -17
- package/dist/{BidFlowDetail-GIZKKMM7.js.map → BidFlowDetail-SV33OI2Y.js.map} +1 -1
- package/dist/{CalendarEventCreateConfig-ZKNIK3UX.js → CalendarEventCreateConfig-4IZ2UHS3.js} +12 -11
- package/dist/{CalendarEventCreateConfig-ZKNIK3UX.js.map → CalendarEventCreateConfig-4IZ2UHS3.js.map} +1 -1
- package/dist/{CalendarEventCreateFlowDetail-ZYJFONQ7.js → CalendarEventCreateFlowDetail-CSI6N2PF.js} +13 -12
- package/dist/{CalendarEventCreateFlowDetail-ZYJFONQ7.js.map → CalendarEventCreateFlowDetail-CSI6N2PF.js.map} +1 -1
- package/dist/{CalendarEventListConfig-7G7SJVPB.js → CalendarEventListConfig-N4XXZLUC.js} +12 -11
- package/dist/{CalendarEventListConfig-7G7SJVPB.js.map → CalendarEventListConfig-N4XXZLUC.js.map} +1 -1
- package/dist/{CalendarEventListFlowDetail-454HM6LH.js → CalendarEventListFlowDetail-Y2MQYWXT.js} +5 -5
- package/dist/{CalendarEventUpdateConfig-KFG5ZP3J.js → CalendarEventUpdateConfig-R2IUZZWK.js} +12 -11
- package/dist/{CalendarEventUpdateConfig-KFG5ZP3J.js.map → CalendarEventUpdateConfig-R2IUZZWK.js.map} +1 -1
- package/dist/{CalendarEventUpdateFlowDetail-6KBM5565.js → CalendarEventUpdateFlowDetail-MAZSAC6G.js} +13 -12
- package/dist/{CalendarEventUpdateFlowDetail-6KBM5565.js.map → CalendarEventUpdateFlowDetail-MAZSAC6G.js.map} +1 -1
- package/dist/{ClaimConfig-AI5WAZ5E.js → ClaimConfig-QJETYD5G.js} +11 -10
- package/dist/{ClaimConfig-AI5WAZ5E.js.map → ClaimConfig-QJETYD5G.js.map} +1 -1
- package/dist/{ClaimFlowDetail-V65Q2SJB.js → ClaimFlowDetail-UEGNEOLD.js} +21 -17
- package/dist/{ClaimFlowDetail-V65Q2SJB.js.map → ClaimFlowDetail-UEGNEOLD.js.map} +1 -1
- package/dist/{CollectionLifecycleConfig-DRQU52FG.js → CollectionLifecycleConfig-CGZKXQP7.js} +4 -4
- package/dist/{CollectionLifecycleFlowDetail-DCKBNTID.js → CollectionLifecycleFlowDetail-HKORLTZM.js} +20 -16
- package/dist/{CollectionLifecycleFlowDetail-DCKBNTID.js.map → CollectionLifecycleFlowDetail-HKORLTZM.js.map} +1 -1
- package/dist/{CollectionUsersConfig-6MCC73OQ.js → CollectionUsersConfig-A7ASGD2L.js} +11 -10
- package/dist/{CollectionUsersConfig-6MCC73OQ.js.map → CollectionUsersConfig-A7ASGD2L.js.map} +1 -1
- package/dist/{CollectionUsersFlowDetail-PMYWADSC.js → CollectionUsersFlowDetail-JUULKPNC.js} +26 -23
- package/dist/{CollectionUsersFlowDetail-PMYWADSC.js.map → CollectionUsersFlowDetail-JUULKPNC.js.map} +1 -1
- package/dist/{CredentialStoreConfig-NHGY66QF.js → CredentialStoreConfig-DAA3ZT24.js} +9 -8
- package/dist/{CredentialStoreConfig-NHGY66QF.js.map → CredentialStoreConfig-DAA3ZT24.js.map} +1 -1
- 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-T5DTEG2Q.js → EmailSendConfig-V2H65UW5.js} +11 -10
- package/dist/{EmailSendConfig-T5DTEG2Q.js.map → EmailSendConfig-V2H65UW5.js.map} +1 -1
- 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-2STZZYME.js → EvalEngineConfig-UYKCKNQQ.js} +14 -13
- package/dist/{EvalEngineConfig-2STZZYME.js.map → EvalEngineConfig-UYKCKNQQ.js.map} +1 -1
- package/dist/{EvalEngineFlowDetail-BUUKGGSD.js → EvalEngineFlowDetail-VCLYU5FV.js} +9 -9
- package/dist/{EvaluateBidConfig-RMDAULDJ.js → EvaluateBidConfig-T6FZD4KE.js} +11 -10
- package/dist/{EvaluateBidConfig-RMDAULDJ.js.map → EvaluateBidConfig-T6FZD4KE.js.map} +1 -1
- package/dist/{EvaluateBidFlowDetail-DTNEOYAR.js → EvaluateBidFlowDetail-EKL5NXYX.js} +22 -18
- package/dist/{EvaluateBidFlowDetail-DTNEOYAR.js.map → EvaluateBidFlowDetail-EKL5NXYX.js.map} +1 -1
- package/dist/{EvaluateClaimConfig-OQ3AUXLF.js → EvaluateClaimConfig-DXPZIL4Q.js} +11 -10
- package/dist/{EvaluateClaimConfig-OQ3AUXLF.js.map → EvaluateClaimConfig-DXPZIL4Q.js.map} +1 -1
- package/dist/{EvaluateClaimFlowDetail-E4NKKURS.js → EvaluateClaimFlowDetail-EVEA3UXR.js} +21 -17
- package/dist/{EvaluateClaimFlowDetail-E4NKKURS.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-XWSCTA5Q.js → GovernanceMemberProposalFlowDetail-ZHGLGNVK.js} +20 -19
- package/dist/GovernanceMemberProposalFlowDetail-ZHGLGNVK.js.map +1 -0
- 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-DM3V52S7.js → HarvestConfig-FBA2LMWP.js} +10 -9
- package/dist/{HarvestConfig-DM3V52S7.js.map → HarvestConfig-FBA2LMWP.js.map} +1 -1
- package/dist/{HarvestFlowDetail-EXFUJCC5.js → HarvestFlowDetail-YSW6OEL6.js} +7 -7
- package/dist/{HttpRequestConfig-QJI62HRG.js → HttpRequestConfig-4OJ4KQGC.js} +9 -8
- package/dist/{HttpRequestConfig-QJI62HRG.js.map → HttpRequestConfig-4OJ4KQGC.js.map} +1 -1
- package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js → HttpRequestFlowDetail-6JPPTSIZ.js} +5 -5
- package/dist/{IdentityCreateFlowDetail-UJVKHDHF.js → IdentityCreateFlowDetail-Q2Z7GSMV.js} +14 -13
- package/dist/{IdentityCreateFlowDetail-UJVKHDHF.js.map → IdentityCreateFlowDetail-Q2Z7GSMV.js.map} +1 -1
- package/dist/{IidCreateFlowDetail-GHMBPKMA.js → IidCreateFlowDetail-LKRE5KDH.js} +14 -13
- package/dist/{IidCreateFlowDetail-GHMBPKMA.js.map → IidCreateFlowDetail-LKRE5KDH.js.map} +1 -1
- package/dist/{KycVerifyConfig-VCZCPMHG.js → KycVerifyConfig-ZZSQPKXU.js} +9 -8
- package/dist/{KycVerifyConfig-VCZCPMHG.js.map → KycVerifyConfig-ZZSQPKXU.js.map} +1 -1
- package/dist/{KycVerifyFlowDetail-YERC5WYA.js → KycVerifyFlowDetail-JEQM5A7R.js} +14 -13
- package/dist/{KycVerifyFlowDetail-YERC5WYA.js.map → KycVerifyFlowDetail-JEQM5A7R.js.map} +1 -1
- 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-OSLSWVRA.js → OracleConfig-6I47PA2F.js} +9 -8
- package/dist/{OracleConfig-OSLSWVRA.js.map → OracleConfig-6I47PA2F.js.map} +1 -1
- package/dist/{OracleConfigureOracleFlowDetail-XPLZD46H.js → OracleConfigureOracleFlowDetail-BFYUTBHC.js} +14 -13
- package/dist/{OracleConfigureOracleFlowDetail-XPLZD46H.js.map → OracleConfigureOracleFlowDetail-BFYUTBHC.js.map} +1 -1
- 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-2WVWGUCD.js → OracleStoreSecretsAndConfigFlowDetail-M7OEWUPG.js} +14 -13
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-2WVWGUCD.js.map → OracleStoreSecretsAndConfigFlowDetail-M7OEWUPG.js.map} +1 -1
- package/dist/{OracleStoreSecretsFlowDetail-FCQECAO5.js → OracleStoreSecretsFlowDetail-LHW2JSKX.js} +14 -13
- package/dist/{OracleStoreSecretsFlowDetail-FCQECAO5.js.map → OracleStoreSecretsFlowDetail-LHW2JSKX.js.map} +1 -1
- package/dist/{ProposalCreateConfig-SZ7JKIT2.js → ProposalCreateConfig-DAIAJWU4.js} +32 -16
- package/dist/ProposalCreateConfig-DAIAJWU4.js.map +1 -0
- package/dist/{ProposalCreateFlowDetail-KRWUT6F7.js → ProposalCreateFlowDetail-I5RX74EW.js} +65 -44
- package/dist/ProposalCreateFlowDetail-I5RX74EW.js.map +1 -0
- package/dist/{ProposalVoteConfig-A72TJROG.js → ProposalVoteConfig-2FOG2FFP.js} +11 -10
- package/dist/{ProposalVoteConfig-A72TJROG.js.map → ProposalVoteConfig-2FOG2FFP.js.map} +1 -1
- package/dist/{ProposalVoteFlowDetail-66B6H75V.js → ProposalVoteFlowDetail-BRHGJXD2.js} +8 -8
- package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js → ProtocolSelectFlowDetail-3RKNFTWF.js} +4 -4
- package/dist/{RetireConfig-3FCYGEUG.js → RetireConfig-IFSJTDMZ.js} +10 -9
- package/dist/{RetireConfig-3FCYGEUG.js.map → RetireConfig-IFSJTDMZ.js.map} +1 -1
- 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-2RBRI52X.js → WalletFundFlowDetail-N2XTMXIG.js} +11 -11
- package/dist/{WalletGenerateAndFundFlowDetail-VOXXSJRG.js → WalletGenerateAndFundFlowDetail-5LKRKR4R.js} +5 -5
- package/dist/{WalletGenerateFlowDetail-3SQVIUVH.js → WalletGenerateFlowDetail-RXZJMLLP.js} +5 -5
- package/dist/{XeroContactCreateConfig-GXEFOSCS.js → XeroContactCreateConfig-34JJXNUW.js} +12 -11
- package/dist/{XeroContactCreateConfig-GXEFOSCS.js.map → XeroContactCreateConfig-34JJXNUW.js.map} +1 -1
- package/dist/{XeroContactCreateFlowDetail-PQYBI3O2.js → XeroContactCreateFlowDetail-4BDRDAXW.js} +13 -12
- package/dist/{XeroContactCreateFlowDetail-PQYBI3O2.js.map → XeroContactCreateFlowDetail-4BDRDAXW.js.map} +1 -1
- package/dist/{XeroInvoiceCreateConfig-NRKIAY3J.js → XeroInvoiceCreateConfig-VI4HQP2Z.js} +12 -11
- package/dist/{XeroInvoiceCreateConfig-NRKIAY3J.js.map → XeroInvoiceCreateConfig-VI4HQP2Z.js.map} +1 -1
- package/dist/{XeroInvoiceCreateFlowDetail-BCQBQXPG.js → XeroInvoiceCreateFlowDetail-AKS7WN4K.js} +15 -14
- package/dist/{XeroInvoiceCreateFlowDetail-BCQBQXPG.js.map → XeroInvoiceCreateFlowDetail-AKS7WN4K.js.map} +1 -1
- package/dist/{XeroInvoiceListConfig-T2OQ3DGP.js → XeroInvoiceListConfig-6GELQTQK.js} +12 -11
- package/dist/{XeroInvoiceListConfig-T2OQ3DGP.js.map → XeroInvoiceListConfig-6GELQTQK.js.map} +1 -1
- package/dist/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js → XeroInvoiceListFlowDetail-27GR2BSJ.js} +5 -5
- package/dist/{XeroPaymentCreateConfig-N34OOVF3.js → XeroPaymentCreateConfig-7PNHPUGK.js} +9 -8
- package/dist/{XeroPaymentCreateConfig-N34OOVF3.js.map → XeroPaymentCreateConfig-7PNHPUGK.js.map} +1 -1
- package/dist/{XeroPaymentCreateFlowDetail-GFVSYSOT.js → XeroPaymentCreateFlowDetail-PDWKG2SR.js} +14 -13
- package/dist/{XeroPaymentCreateFlowDetail-GFVSYSOT.js.map → XeroPaymentCreateFlowDetail-PDWKG2SR.js.map} +1 -1
- 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-43D3NWOA.js → chunk-7WBLDDDN.js} +7 -3
- package/dist/chunk-7WBLDDDN.js.map +1 -0
- 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-NPFETBLF.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-PAY3CBWL.js → chunk-GMEYEPGZ.js} +258 -259
- package/dist/chunk-GMEYEPGZ.js.map +1 -0
- package/dist/chunk-HVL25AOI.js +55 -0
- package/dist/chunk-HVL25AOI.js.map +1 -0
- package/dist/{chunk-ADFZLOPH.js → chunk-JRWJLWOY.js} +6 -6
- package/dist/{chunk-GOEVZRLH.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-DV3SAEKZ.js → chunk-RG7Z2VMU.js} +2 -2
- package/dist/{chunk-MH2PPQSO.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-EWWURYIH.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-WM3A4CI6.js → chunk-X7PMVRGS.js} +3 -3
- package/dist/{chunk-Z2CUKACX.js → chunk-YC6BYZJZ.js} +900 -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 +959 -72
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +11 -10
- package/dist/core/index.js.map +1 -1
- 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 +31 -24
- package/dist/index.js.map +1 -1
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.js +30 -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/GovernanceMemberProposalFlowDetail-XWSCTA5Q.js.map +0 -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/ProposalCreateConfig-SZ7JKIT2.js.map +0 -1
- package/dist/ProposalCreateFlowDetail-KRWUT6F7.js.map +0 -1
- package/dist/chunk-43D3NWOA.js.map +0 -1
- package/dist/chunk-4Y66NZYT.js.map +0 -1
- package/dist/chunk-DDFGCFUF.js.map +0 -1
- package/dist/chunk-EWWURYIH.js.map +0 -1
- package/dist/chunk-FBYYPG5K.js +0 -315
- package/dist/chunk-FBYYPG5K.js.map +0 -1
- package/dist/chunk-GVNMIIMQ.js.map +0 -1
- package/dist/chunk-JRY6LLK6.js.map +0 -1
- package/dist/chunk-OCAYEGI2.js.map +0 -1
- package/dist/chunk-PAY3CBWL.js.map +0 -1
- package/dist/chunk-TK3JNKME.js.map +0 -1
- package/dist/chunk-Z2CUKACX.js.map +0 -1
- /package/dist/{CalendarEventListFlowDetail-454HM6LH.js.map → CalendarEventListFlowDetail-Y2MQYWXT.js.map} +0 -0
- /package/dist/{CollectionLifecycleConfig-DRQU52FG.js.map → CollectionLifecycleConfig-CGZKXQP7.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/{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/{EvalEngineFlowDetail-BUUKGGSD.js.map → EvalEngineFlowDetail-VCLYU5FV.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/{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/{HarvestFlowDetail-EXFUJCC5.js.map → HarvestFlowDetail-YSW6OEL6.js.map} +0 -0
- /package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js.map → HttpRequestFlowDetail-6JPPTSIZ.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/{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/{ProposalVoteFlowDetail-66B6H75V.js.map → ProposalVoteFlowDetail-BRHGJXD2.js.map} +0 -0
- /package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js.map → ProtocolSelectFlowDetail-3RKNFTWF.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-2RBRI52X.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/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js.map → XeroInvoiceListFlowDetail-27GR2BSJ.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-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-NPFETBLF.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-ADFZLOPH.js.map → chunk-JRWJLWOY.js.map} +0 -0
- /package/dist/{chunk-GOEVZRLH.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-DV3SAEKZ.js.map → chunk-RG7Z2VMU.js.map} +0 -0
- /package/dist/{chunk-MH2PPQSO.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-WM3A4CI6.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,50 @@ 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
|
+
}
|
|
7855
|
+
|
|
7856
|
+
// src/core/utils/accountList.ts
|
|
7857
|
+
var IXO_HRP = "ixo";
|
|
7858
|
+
var CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
|
|
7859
|
+
var GENERATOR = [996825010, 642813549, 513874426, 1027748829, 705979059];
|
|
7860
|
+
function polymod(values) {
|
|
7861
|
+
let chk = 1;
|
|
7862
|
+
for (const value of values) {
|
|
7863
|
+
const top = chk >> 25;
|
|
7864
|
+
chk = (chk & 33554431) << 5 ^ value;
|
|
7865
|
+
for (let i = 0; i < 5; i += 1) {
|
|
7866
|
+
if (top >> i & 1) chk ^= GENERATOR[i];
|
|
7867
|
+
}
|
|
7868
|
+
}
|
|
7869
|
+
return chk;
|
|
7870
|
+
}
|
|
7871
|
+
function hrpExpand(hrp) {
|
|
7872
|
+
const high = [];
|
|
7873
|
+
const low = [];
|
|
7874
|
+
for (let i = 0; i < hrp.length; i += 1) {
|
|
7875
|
+
high.push(hrp.charCodeAt(i) >> 5);
|
|
7876
|
+
low.push(hrp.charCodeAt(i) & 31);
|
|
7877
|
+
}
|
|
7878
|
+
return [...high, 0, ...low];
|
|
7879
|
+
}
|
|
7880
|
+
function isValidBech32Address(value, hrp = IXO_HRP) {
|
|
7881
|
+
if (!value) return false;
|
|
7882
|
+
if (value !== value.toLowerCase() && value !== value.toUpperCase()) return false;
|
|
7883
|
+
const address = value.toLowerCase();
|
|
7884
|
+
if (address.length < hrp.length + 8 || address.length > 90) return false;
|
|
7885
|
+
if (!address.startsWith(`${hrp}1`)) return false;
|
|
7886
|
+
const dataPart = address.slice(hrp.length + 1);
|
|
7887
|
+
const data = [];
|
|
7888
|
+
for (const char of dataPart) {
|
|
7889
|
+
const index = CHARSET.indexOf(char);
|
|
7890
|
+
if (index === -1) return false;
|
|
7891
|
+
data.push(index);
|
|
7892
|
+
}
|
|
7893
|
+
return polymod([...hrpExpand(hrp), ...data]) === 1;
|
|
7894
|
+
}
|
|
7686
7895
|
|
|
7687
7896
|
// src/core/lib/actionRegistry/actions/governance/memberProposal.ts
|
|
7688
7897
|
var VALID_OPERATIONS = ["add", "remove", "update-weight"];
|
|
@@ -7746,6 +7955,8 @@ registerAction({
|
|
|
7746
7955
|
weight: Number(m.weight ?? 0)
|
|
7747
7956
|
}));
|
|
7748
7957
|
if (normalized.some((m) => !m.addr)) throw new Error("Every member needs an address");
|
|
7958
|
+
const badAddress = normalized.find((m) => !isValidBech32Address(m.addr));
|
|
7959
|
+
if (badAddress) throw new Error(`Not a wallet address: ${badAddress.addr}`);
|
|
7749
7960
|
const addrs = normalized.map((m) => m.addr);
|
|
7750
7961
|
if (new Set(addrs).size !== addrs.length) throw new Error("Duplicate member addresses are not allowed");
|
|
7751
7962
|
let add = [];
|
|
@@ -7770,7 +7981,8 @@ registerAction({
|
|
|
7770
7981
|
description,
|
|
7771
7982
|
actions: [updateMembersAction],
|
|
7772
7983
|
coreAddress,
|
|
7773
|
-
groupContractAddress
|
|
7984
|
+
groupContractAddress,
|
|
7985
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
7774
7986
|
});
|
|
7775
7987
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
7776
7988
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -7791,6 +8003,8 @@ registerAction({
|
|
|
7791
8003
|
});
|
|
7792
8004
|
|
|
7793
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";
|
|
7794
8008
|
function clampPercent(value, label, { allowZero = false } = {}) {
|
|
7795
8009
|
const n = Number(value);
|
|
7796
8010
|
if (!Number.isFinite(n)) throw new Error(`${label} must be a number`);
|
|
@@ -7814,7 +8028,13 @@ registerAction({
|
|
|
7814
8028
|
{ path: "status", displayName: "Proposal Status", type: "string", description: "Current proposal status (open, passed, rejected, executed, etc.)" },
|
|
7815
8029
|
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module contract address" },
|
|
7816
8030
|
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
7817
|
-
{ 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
|
+
}
|
|
7818
8038
|
],
|
|
7819
8039
|
// Mirrors run()'s throw-preamble (there is no inputSchema to declare
|
|
7820
8040
|
// requiredness on): coreAddress and the three numeric voting settings.
|
|
@@ -7857,6 +8077,15 @@ registerAction({
|
|
|
7857
8077
|
proposalDurationUnits: "hours",
|
|
7858
8078
|
allowRevoting
|
|
7859
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
|
+
}
|
|
7860
8089
|
const updateVotingConfigAction = { type: "UpdateVotingConfig", data };
|
|
7861
8090
|
const title = String(inputs.title || "").trim() || "Update governance settings";
|
|
7862
8091
|
const description = String(inputs.description || "").trim() || "Updates the POD's voting rules once the proposal passes.";
|
|
@@ -7869,7 +8098,8 @@ registerAction({
|
|
|
7869
8098
|
description,
|
|
7870
8099
|
actions: [updateVotingConfigAction],
|
|
7871
8100
|
coreAddress,
|
|
7872
|
-
groupContractAddress
|
|
8101
|
+
groupContractAddress,
|
|
8102
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
7873
8103
|
});
|
|
7874
8104
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
7875
8105
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -7882,7 +8112,8 @@ registerAction({
|
|
|
7882
8112
|
status: "open",
|
|
7883
8113
|
proposalContractAddress: proposalContractAddress || "",
|
|
7884
8114
|
coreAddress,
|
|
7885
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
8115
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8116
|
+
vetoConfigured: isTrue(inputs.vetoEnabled) ? "true" : isFalse(inputs.vetoEnabled) ? "false" : "unchanged"
|
|
7886
8117
|
}
|
|
7887
8118
|
};
|
|
7888
8119
|
}
|
|
@@ -7909,6 +8140,14 @@ registerGovernanceProposalAction({
|
|
|
7909
8140
|
}
|
|
7910
8141
|
refundPolicy = policy;
|
|
7911
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;
|
|
7912
8151
|
return [
|
|
7913
8152
|
{
|
|
7914
8153
|
type: "UpdatePreProposeConfig",
|
|
@@ -7916,7 +8155,8 @@ registerGovernanceProposalAction({
|
|
|
7916
8155
|
depositRequired,
|
|
7917
8156
|
// Deposit token fixed to the chain's native IXO (uixo) for now.
|
|
7918
8157
|
depositInfo: { amount, type: "native", denomOrAddress: "uixo", refundPolicy },
|
|
7919
|
-
anyoneCanPropose
|
|
8158
|
+
anyoneCanPropose: submissionPolicy ? submissionPolicy.mode === "anyone" : anyoneCanPropose,
|
|
8159
|
+
...submissionPolicy ? { submissionPolicy } : {}
|
|
7920
8160
|
}
|
|
7921
8161
|
}
|
|
7922
8162
|
];
|
|
@@ -7940,6 +8180,37 @@ registerGovernanceProposalAction({
|
|
|
7940
8180
|
]
|
|
7941
8181
|
});
|
|
7942
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
|
+
|
|
7943
8214
|
// src/core/lib/actionRegistry/actions/governance/transactionSendFunds.ts
|
|
7944
8215
|
registerAction({
|
|
7945
8216
|
type: "qi/governance.transaction.send-funds",
|
|
@@ -8007,7 +8278,8 @@ registerAction({
|
|
|
8007
8278
|
description,
|
|
8008
8279
|
actions: [spendAction],
|
|
8009
8280
|
coreAddress,
|
|
8010
|
-
groupContractAddress
|
|
8281
|
+
groupContractAddress,
|
|
8282
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
8011
8283
|
});
|
|
8012
8284
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
8013
8285
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -8564,6 +8836,659 @@ registerGovernanceProposalAction({
|
|
|
8564
8836
|
extraOutputSchema: [{ path: "typeUrl", displayName: "Message Type URL", type: "string", description: "The stargate message type the proposal broadcasts" }]
|
|
8565
8837
|
});
|
|
8566
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
|
+
|
|
8567
9492
|
// src/core/lib/actionRegistry/actions/governance/nftBurn.ts
|
|
8568
9493
|
registerGovernanceProposalAction({
|
|
8569
9494
|
type: "qi/governance.nft.burn",
|
|
@@ -8909,7 +9834,7 @@ var INPUT_PROPERTIES = {
|
|
|
8909
9834
|
headers: { type: "object", additionalProperties: { type: "string" }, description: "Non-secret request headers. Authorization and cookies are rejected." },
|
|
8910
9835
|
body: { description: "Request body for a mutating HTTP request." }
|
|
8911
9836
|
};
|
|
8912
|
-
var
|
|
9837
|
+
var OUTPUT_SCHEMA2 = [
|
|
8913
9838
|
{ path: "requestId", displayName: "Request ID", type: "string", description: "Host invocation identifier." },
|
|
8914
9839
|
{ path: "status", displayName: "HTTP Status", type: "number" },
|
|
8915
9840
|
{ path: "responseDigest", displayName: "Response Digest", type: "string", description: "Digest of the response body." },
|
|
@@ -8964,7 +9889,7 @@ registerAction({
|
|
|
8964
9889
|
properties: { ...INPUT_PROPERTIES, method: { type: "string", enum: ["GET", "HEAD"], default: "GET" } }
|
|
8965
9890
|
},
|
|
8966
9891
|
getMissingInputs: missingEndpoint,
|
|
8967
|
-
outputSchema:
|
|
9892
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
8968
9893
|
run: async (rawInputs, ctx) => {
|
|
8969
9894
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
8970
9895
|
const url = publicHttpUrl(inputs.endpoint ?? inputs.url);
|
|
@@ -9035,7 +9960,7 @@ registerAction({
|
|
|
9035
9960
|
}
|
|
9036
9961
|
},
|
|
9037
9962
|
getMissingInputs: missingEndpoint,
|
|
9038
|
-
outputSchema:
|
|
9963
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
9039
9964
|
run: async (rawInputs, ctx) => {
|
|
9040
9965
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
9041
9966
|
const service = ctx.services.http;
|
|
@@ -9463,60 +10388,6 @@ registerAction({
|
|
|
9463
10388
|
}
|
|
9464
10389
|
});
|
|
9465
10390
|
|
|
9466
|
-
// src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
|
|
9467
|
-
var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
|
|
9468
|
-
function isGroupExecution(inputs) {
|
|
9469
|
-
return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
|
|
9470
|
-
}
|
|
9471
|
-
function requireGroupExecutionParams(inputs) {
|
|
9472
|
-
const coreAddress = String(inputs.groupCoreAddress || "").trim();
|
|
9473
|
-
if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
|
|
9474
|
-
const title = String(inputs.proposalTitle || "").trim();
|
|
9475
|
-
if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
|
|
9476
|
-
const description = String(inputs.proposalDescription || "").trim();
|
|
9477
|
-
if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
|
|
9478
|
-
return { coreAddress, title, description };
|
|
9479
|
-
}
|
|
9480
|
-
async function proposeGroupExecution(ctx, params) {
|
|
9481
|
-
const handlers = ctx.handlers;
|
|
9482
|
-
if (!handlers?.createGroupExecutionProposal) {
|
|
9483
|
-
throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
|
|
9484
|
-
}
|
|
9485
|
-
const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent } = params;
|
|
9486
|
-
const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
|
|
9487
|
-
coreAddress,
|
|
9488
|
-
title,
|
|
9489
|
-
description,
|
|
9490
|
-
msgs
|
|
9491
|
-
});
|
|
9492
|
-
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
9493
|
-
throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
|
|
9494
|
-
}
|
|
9495
|
-
return {
|
|
9496
|
-
output: {
|
|
9497
|
-
...expectedOutput,
|
|
9498
|
-
groupExecution: true,
|
|
9499
|
-
groupCoreAddress: coreAddress,
|
|
9500
|
-
groupProposalId: String(proposalId),
|
|
9501
|
-
groupProposalContractAddress: String(proposalContractAddress || ""),
|
|
9502
|
-
proposalTitle: title,
|
|
9503
|
-
proposalDescription: description
|
|
9504
|
-
},
|
|
9505
|
-
completion: {
|
|
9506
|
-
state: "awaiting_readback",
|
|
9507
|
-
readBack: {
|
|
9508
|
-
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
9509
|
-
proposalId: String(proposalId),
|
|
9510
|
-
proposalContractAddress: String(proposalContractAddress || ""),
|
|
9511
|
-
coreAddress,
|
|
9512
|
-
expectedOutput,
|
|
9513
|
-
...completionEvent ? { completionEvent } : {},
|
|
9514
|
-
...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
|
|
9515
|
-
}
|
|
9516
|
-
}
|
|
9517
|
-
};
|
|
9518
|
-
}
|
|
9519
|
-
|
|
9520
10391
|
// src/core/lib/actionRegistry/actions/bid/bid.ts
|
|
9521
10392
|
function normalizeBidRole(role) {
|
|
9522
10393
|
const normalized = String(role || "").trim().toLowerCase();
|
|
@@ -9574,6 +10445,7 @@ registerAction({
|
|
|
9574
10445
|
if (isGroupExecution(inputs)) {
|
|
9575
10446
|
const { coreAddress, title, description } = requireGroupExecutionParams(inputs);
|
|
9576
10447
|
return proposeGroupExecution(ctx, {
|
|
10448
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
9577
10449
|
coreAddress,
|
|
9578
10450
|
title,
|
|
9579
10451
|
description,
|
|
@@ -9738,6 +10610,7 @@ registerAction({
|
|
|
9738
10610
|
maxAmounts: Array.isArray(maxAmounts) ? maxAmounts : void 0
|
|
9739
10611
|
});
|
|
9740
10612
|
return proposeGroupExecution(ctx, {
|
|
10613
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
9741
10614
|
coreAddress,
|
|
9742
10615
|
title,
|
|
9743
10616
|
description,
|
|
@@ -9750,6 +10623,7 @@ registerAction({
|
|
|
9750
10623
|
const reason = String(inputs.reason || "").trim();
|
|
9751
10624
|
if (!reason) throw new Error("reason is required when decision is reject");
|
|
9752
10625
|
return proposeGroupExecution(ctx, {
|
|
10626
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
9753
10627
|
coreAddress,
|
|
9754
10628
|
title,
|
|
9755
10629
|
description,
|
|
@@ -9958,6 +10832,7 @@ registerAction({
|
|
|
9958
10832
|
const claimId2 = String(prepared?.claimId || "").trim();
|
|
9959
10833
|
if (!claimId2) throw new Error("prepareGroupClaimSubmission returned no claim identifier");
|
|
9960
10834
|
return proposeGroupExecution(ctx, {
|
|
10835
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
9961
10836
|
coreAddress,
|
|
9962
10837
|
title,
|
|
9963
10838
|
description,
|
|
@@ -10632,6 +11507,7 @@ registerAction({
|
|
|
10632
11507
|
} catch {
|
|
10633
11508
|
}
|
|
10634
11509
|
return proposeGroupExecution(ctx, {
|
|
11510
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
10635
11511
|
coreAddress,
|
|
10636
11512
|
title,
|
|
10637
11513
|
description,
|
|
@@ -10809,7 +11685,12 @@ registerAction({
|
|
|
10809
11685
|
coreAddress: { type: "string", description: "The DAO core contract address." },
|
|
10810
11686
|
title: { type: "string", description: "The proposal title." },
|
|
10811
11687
|
description: { type: "string", description: "The proposal description." },
|
|
10812
|
-
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
|
+
}
|
|
10813
11694
|
}
|
|
10814
11695
|
},
|
|
10815
11696
|
outputSchema: [
|
|
@@ -10854,13 +11735,15 @@ registerAction({
|
|
|
10854
11735
|
const { proposalContractAddress } = await handlers.getProposalContractAddress({
|
|
10855
11736
|
coreAddress
|
|
10856
11737
|
});
|
|
11738
|
+
const autoVote = autoVoteFromInputs(inputs);
|
|
10857
11739
|
const params = {
|
|
10858
11740
|
preProposalContractAddress,
|
|
10859
11741
|
title,
|
|
10860
11742
|
description,
|
|
10861
11743
|
actions: actions2.length > 0 ? actions2 : void 0,
|
|
10862
11744
|
coreAddress,
|
|
10863
|
-
groupContractAddress
|
|
11745
|
+
groupContractAddress,
|
|
11746
|
+
...autoVote ? { autoVote } : {}
|
|
10864
11747
|
};
|
|
10865
11748
|
const proposalId = await handlers.createProposal(params);
|
|
10866
11749
|
return {
|
|
@@ -11250,7 +12133,8 @@ function buildGroupConfig(groupType, governance, memberConfig) {
|
|
|
11250
12133
|
...baseConfig,
|
|
11251
12134
|
...decisionPolicy,
|
|
11252
12135
|
nftContractAddress: memberConfig?.nftContractAddress || "",
|
|
11253
|
-
...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 } : {}
|
|
11254
12138
|
};
|
|
11255
12139
|
}
|
|
11256
12140
|
if (groupType === "tokenStaking") {
|
|
@@ -13814,6 +14698,7 @@ registerAction({
|
|
|
13814
14698
|
params: createParams
|
|
13815
14699
|
});
|
|
13816
14700
|
return proposeGroupExecution(ctx, {
|
|
14701
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
13817
14702
|
coreAddress,
|
|
13818
14703
|
title,
|
|
13819
14704
|
description,
|
|
@@ -13882,6 +14767,7 @@ registerAction({
|
|
|
13882
14767
|
params: { ...inputs, collectionId, adminAddress }
|
|
13883
14768
|
});
|
|
13884
14769
|
return proposeGroupExecution(ctx, {
|
|
14770
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
13885
14771
|
coreAddress,
|
|
13886
14772
|
title,
|
|
13887
14773
|
description,
|
|
@@ -14373,6 +15259,7 @@ registerAction({
|
|
|
14373
15259
|
msgs.push(...prepared.msgs || []);
|
|
14374
15260
|
}
|
|
14375
15261
|
return proposeGroupExecution(ctx, {
|
|
15262
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
14376
15263
|
coreAddress,
|
|
14377
15264
|
title,
|
|
14378
15265
|
description,
|