@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
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isValidBech32Address
|
|
3
|
+
} from "./chunk-7LSARC2G.js";
|
|
1
4
|
import {
|
|
2
5
|
formatTokenAmount
|
|
3
6
|
} from "./chunk-IH4T7V4C.js";
|
|
4
7
|
import {
|
|
5
8
|
isBlankInputValue,
|
|
6
9
|
parseMaybeJsonObject
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UCO4YJ5L.js";
|
|
8
11
|
import {
|
|
9
12
|
buildRubricEnvelope,
|
|
10
13
|
composeCollectionDescription,
|
|
@@ -12,7 +15,7 @@ import {
|
|
|
12
15
|
parseEvalRubricInputs,
|
|
13
16
|
validateRubric,
|
|
14
17
|
validateRubricShape
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DGALOR3X.js";
|
|
16
19
|
import {
|
|
17
20
|
USDC_INJ_DISPLAY_TOKEN,
|
|
18
21
|
coinLabel,
|
|
@@ -45,7 +48,7 @@ import {
|
|
|
45
48
|
readDesignPodState,
|
|
46
49
|
sameDesignPodActor,
|
|
47
50
|
updateDesignPodControl
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AJF7MIIN.js";
|
|
49
52
|
import {
|
|
50
53
|
extractDid
|
|
51
54
|
} from "./chunk-EBFFDDAS.js";
|
|
@@ -67,7 +70,7 @@ import {
|
|
|
67
70
|
resolveActionType,
|
|
68
71
|
sendDirectMessage,
|
|
69
72
|
sha256Digest
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-LOK5IXGD.js";
|
|
71
74
|
import {
|
|
72
75
|
isYMapLike
|
|
73
76
|
} from "./chunk-NCSGIRRQ.js";
|
|
@@ -2977,6 +2980,67 @@ register(
|
|
|
2977
2980
|
}
|
|
2978
2981
|
);
|
|
2979
2982
|
|
|
2983
|
+
// src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
|
|
2984
|
+
var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
|
|
2985
|
+
var AUTO_VOTES = /* @__PURE__ */ new Set(["yes", "no", "abstain"]);
|
|
2986
|
+
function autoVoteFromInputs(inputs) {
|
|
2987
|
+
const raw = inputs?.voteOnSubmission;
|
|
2988
|
+
const vote = raw === true ? "yes" : String(raw ?? "").trim().toLowerCase();
|
|
2989
|
+
return AUTO_VOTES.has(vote) ? { vote } : null;
|
|
2990
|
+
}
|
|
2991
|
+
function isGroupExecution(inputs) {
|
|
2992
|
+
return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
|
|
2993
|
+
}
|
|
2994
|
+
function requireGroupExecutionParams(inputs) {
|
|
2995
|
+
const coreAddress = String(inputs.groupCoreAddress || "").trim();
|
|
2996
|
+
if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
|
|
2997
|
+
const title = String(inputs.proposalTitle || "").trim();
|
|
2998
|
+
if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
|
|
2999
|
+
const description = String(inputs.proposalDescription || "").trim();
|
|
3000
|
+
if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
|
|
3001
|
+
return { coreAddress, title, description };
|
|
3002
|
+
}
|
|
3003
|
+
async function proposeGroupExecution(ctx, params) {
|
|
3004
|
+
const handlers = ctx.handlers;
|
|
3005
|
+
if (!handlers?.createGroupExecutionProposal) {
|
|
3006
|
+
throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
|
|
3007
|
+
}
|
|
3008
|
+
const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent, autoVote } = params;
|
|
3009
|
+
const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
|
|
3010
|
+
coreAddress,
|
|
3011
|
+
title,
|
|
3012
|
+
description,
|
|
3013
|
+
msgs,
|
|
3014
|
+
...autoVote ? { autoVote } : {}
|
|
3015
|
+
});
|
|
3016
|
+
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3017
|
+
throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
|
|
3018
|
+
}
|
|
3019
|
+
return {
|
|
3020
|
+
output: {
|
|
3021
|
+
...expectedOutput,
|
|
3022
|
+
groupExecution: true,
|
|
3023
|
+
groupCoreAddress: coreAddress,
|
|
3024
|
+
groupProposalId: String(proposalId),
|
|
3025
|
+
groupProposalContractAddress: String(proposalContractAddress || ""),
|
|
3026
|
+
proposalTitle: title,
|
|
3027
|
+
proposalDescription: description
|
|
3028
|
+
},
|
|
3029
|
+
completion: {
|
|
3030
|
+
state: "awaiting_readback",
|
|
3031
|
+
readBack: {
|
|
3032
|
+
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
3033
|
+
proposalId: String(proposalId),
|
|
3034
|
+
proposalContractAddress: String(proposalContractAddress || ""),
|
|
3035
|
+
coreAddress,
|
|
3036
|
+
expectedOutput,
|
|
3037
|
+
...completionEvent ? { completionEvent } : {},
|
|
3038
|
+
...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
};
|
|
3042
|
+
}
|
|
3043
|
+
|
|
2980
3044
|
// src/core/lib/actionRegistry/actions/governance/_shared.ts
|
|
2981
3045
|
var GOVERNANCE_REQUIRED_FIELDS = {
|
|
2982
3046
|
"qi/governance.authz.exec": ["authzExecActionType"],
|
|
@@ -3004,6 +3068,15 @@ var GOVERNANCE_REQUIRED_FIELDS = {
|
|
|
3004
3068
|
"qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
|
|
3005
3069
|
"qi/governance.settings-proposal": ["votingPeriodHours", "quorumPercent", "thresholdPercent"],
|
|
3006
3070
|
"qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired"],
|
|
3071
|
+
"qi/governance.submission-policy": [],
|
|
3072
|
+
"qi/governance.dao.pause": ["pauseHours"],
|
|
3073
|
+
"qi/governance.nft.active-threshold": ["thresholdType"],
|
|
3074
|
+
"qi/governance.delegation.setup": [],
|
|
3075
|
+
"qi/governance.rewards.create": ["denom", "emissionMode"],
|
|
3076
|
+
"qi/governance.proposal-module.add": ["kind", "votingPeriodSeconds"],
|
|
3077
|
+
"qi/governance.approver.setup": ["approvalModule"],
|
|
3078
|
+
"qi/governance.rewards.fund": ["distributionId", "amount"],
|
|
3079
|
+
"qi/governance.rewards.withdraw": ["distributionId"],
|
|
3007
3080
|
"qi/governance.transaction.mint": ["recipient", "amount"],
|
|
3008
3081
|
"qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
|
|
3009
3082
|
"qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
|
|
@@ -3035,8 +3108,40 @@ var GOVERNANCE_FIELDS = {
|
|
|
3035
3108
|
"qi/governance.nft.transfer": ["collection", "tokenId", "recipient", "executeSmartContract", "smartContractMsg"],
|
|
3036
3109
|
"qi/governance.staking.stake": ["stakeType", "validator", "toValidator", "amount"],
|
|
3037
3110
|
"qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
|
|
3038
|
-
"qi/governance.settings-proposal": [
|
|
3039
|
-
|
|
3111
|
+
"qi/governance.settings-proposal": [
|
|
3112
|
+
"votingPeriodHours",
|
|
3113
|
+
"quorumPercent",
|
|
3114
|
+
"thresholdPercent",
|
|
3115
|
+
"allowRevoting",
|
|
3116
|
+
"vetoEnabled",
|
|
3117
|
+
"vetoer",
|
|
3118
|
+
"vetoTimelockHours",
|
|
3119
|
+
"vetoEarlyExecute",
|
|
3120
|
+
"vetoBeforePassed"
|
|
3121
|
+
],
|
|
3122
|
+
"qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired", "depositAmount", "depositRefundPolicy", "policyMode", "daoMembers", "allowlist", "denylist"],
|
|
3123
|
+
"qi/governance.submission-policy": ["allowlistAdd", "allowlistRemove", "denylistAdd", "denylistRemove", "setDaoMembers"],
|
|
3124
|
+
"qi/governance.dao.pause": ["pauseHours"],
|
|
3125
|
+
"qi/governance.nft.active-threshold": ["thresholdType", "thresholdValue"],
|
|
3126
|
+
"qi/governance.delegation.setup": ["vpCapPercent", "validityBlocks", "maxDelegations"],
|
|
3127
|
+
"qi/governance.rewards.create": ["denomType", "denom", "emissionMode", "amount", "periodSeconds", "continuous", "openFunding", "withdrawDestination"],
|
|
3128
|
+
"qi/governance.proposal-module.add": [
|
|
3129
|
+
"kind",
|
|
3130
|
+
"approvalRequired",
|
|
3131
|
+
"approver",
|
|
3132
|
+
"thresholdPercent",
|
|
3133
|
+
"quorumPercent",
|
|
3134
|
+
"votingPeriodSeconds",
|
|
3135
|
+
"allowRevoting",
|
|
3136
|
+
"anyoneCanPropose",
|
|
3137
|
+
"depositAmount",
|
|
3138
|
+
"depositDenom",
|
|
3139
|
+
"depositRefundPolicy",
|
|
3140
|
+
"label"
|
|
3141
|
+
],
|
|
3142
|
+
"qi/governance.approver.setup": ["approvalModule", "votingPeriodSeconds", "thresholdPercent"],
|
|
3143
|
+
"qi/governance.rewards.fund": ["distributionId", "amount"],
|
|
3144
|
+
"qi/governance.rewards.withdraw": ["distributionId"],
|
|
3040
3145
|
"qi/governance.transaction.mint": ["recipient", "amount"],
|
|
3041
3146
|
"qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
|
|
3042
3147
|
"qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
|
|
@@ -3044,8 +3149,39 @@ var GOVERNANCE_FIELDS = {
|
|
|
3044
3149
|
"qi/governance.transaction.withdraw-token-swap": ["tokenSwapContractAddress"],
|
|
3045
3150
|
"qi/governance.validator.actions": ["validatorActionType", "createMsg", "editMsg"]
|
|
3046
3151
|
};
|
|
3047
|
-
var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
|
|
3048
|
-
|
|
3152
|
+
var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
|
|
3153
|
+
"adding",
|
|
3154
|
+
"automaticallyAddCw20s",
|
|
3155
|
+
"automaticallyAddCw721s",
|
|
3156
|
+
"executeSmartContract",
|
|
3157
|
+
"anyoneCanPropose",
|
|
3158
|
+
"depositRequired",
|
|
3159
|
+
"allowRevoting",
|
|
3160
|
+
"vetoEnabled",
|
|
3161
|
+
"vetoEarlyExecute",
|
|
3162
|
+
"vetoBeforePassed",
|
|
3163
|
+
"daoMembers",
|
|
3164
|
+
"setDaoMembers",
|
|
3165
|
+
"continuous",
|
|
3166
|
+
"openFunding",
|
|
3167
|
+
"approvalRequired"
|
|
3168
|
+
]);
|
|
3169
|
+
var NUMBER_FIELDS = /* @__PURE__ */ new Set([
|
|
3170
|
+
"codeId",
|
|
3171
|
+
"vote",
|
|
3172
|
+
"votingPeriodHours",
|
|
3173
|
+
"quorumPercent",
|
|
3174
|
+
"thresholdPercent",
|
|
3175
|
+
"vetoTimelockHours",
|
|
3176
|
+
"pauseHours",
|
|
3177
|
+
"thresholdValue",
|
|
3178
|
+
"vpCapPercent",
|
|
3179
|
+
"validityBlocks",
|
|
3180
|
+
"maxDelegations",
|
|
3181
|
+
"periodSeconds",
|
|
3182
|
+
"distributionId",
|
|
3183
|
+
"votingPeriodSeconds"
|
|
3184
|
+
]);
|
|
3049
3185
|
var ARRAY_FIELDS = /* @__PURE__ */ new Set(["funds", "msgs", "toAdd", "toRemove", "members"]);
|
|
3050
3186
|
var OBJECT_FIELDS = /* @__PURE__ */ new Set(["value"]);
|
|
3051
3187
|
function governanceProperty(name) {
|
|
@@ -3059,7 +3195,12 @@ function governanceInputSchema(type, extraFields = {}, requiredOverride) {
|
|
|
3059
3195
|
const properties = {
|
|
3060
3196
|
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
3061
3197
|
title: { type: "string", description: "Proposal title voters see." },
|
|
3062
|
-
description: { type: "string", description: "Long-form proposal description voters see." }
|
|
3198
|
+
description: { type: "string", description: "Long-form proposal description voters see." },
|
|
3199
|
+
voteOnSubmission: {
|
|
3200
|
+
type: "string",
|
|
3201
|
+
enum: ["", "yes", "no", "abstain"],
|
|
3202
|
+
description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
|
|
3203
|
+
}
|
|
3063
3204
|
};
|
|
3064
3205
|
for (const field of GOVERNANCE_FIELDS[type] || []) properties[field] = governanceProperty(field);
|
|
3065
3206
|
Object.assign(properties, extraFields);
|
|
@@ -3107,13 +3248,15 @@ function registerGovernanceProposalAction(spec) {
|
|
|
3107
3248
|
const { preProposalContractAddress } = await handlers.getPreProposalContractAddress({ coreAddress });
|
|
3108
3249
|
const { groupContractAddress } = await handlers.getGroupContractAddress({ coreAddress });
|
|
3109
3250
|
const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
|
|
3251
|
+
const autoVote = autoVoteFromInputs(inputs);
|
|
3110
3252
|
const proposalId = await handlers.createProposal({
|
|
3111
3253
|
preProposalContractAddress,
|
|
3112
3254
|
title,
|
|
3113
3255
|
description,
|
|
3114
3256
|
actions,
|
|
3115
3257
|
coreAddress,
|
|
3116
|
-
groupContractAddress
|
|
3258
|
+
groupContractAddress,
|
|
3259
|
+
...autoVote ? { autoVote } : {}
|
|
3117
3260
|
});
|
|
3118
3261
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3119
3262
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -3152,6 +3295,10 @@ function registerGovernanceProposalAction(spec) {
|
|
|
3152
3295
|
}
|
|
3153
3296
|
});
|
|
3154
3297
|
}
|
|
3298
|
+
function parseAddressList(value) {
|
|
3299
|
+
const list = Array.isArray(value) ? value : typeof value === "string" ? value.split(/[\s,;]+/) : [];
|
|
3300
|
+
return [...new Set(list.map((v) => String(v ?? "").trim()).filter(Boolean))];
|
|
3301
|
+
}
|
|
3155
3302
|
|
|
3156
3303
|
// src/core/lib/actionRegistry/actions/governance/memberProposal.ts
|
|
3157
3304
|
var VALID_OPERATIONS = ["add", "remove", "update-weight"];
|
|
@@ -3215,6 +3362,8 @@ registerAction({
|
|
|
3215
3362
|
weight: Number(m.weight ?? 0)
|
|
3216
3363
|
}));
|
|
3217
3364
|
if (normalized.some((m) => !m.addr)) throw new Error("Every member needs an address");
|
|
3365
|
+
const badAddress = normalized.find((m) => !isValidBech32Address(m.addr));
|
|
3366
|
+
if (badAddress) throw new Error(`Not a wallet address: ${badAddress.addr}`);
|
|
3218
3367
|
const addrs = normalized.map((m) => m.addr);
|
|
3219
3368
|
if (new Set(addrs).size !== addrs.length) throw new Error("Duplicate member addresses are not allowed");
|
|
3220
3369
|
let add = [];
|
|
@@ -3239,7 +3388,8 @@ registerAction({
|
|
|
3239
3388
|
description,
|
|
3240
3389
|
actions: [updateMembersAction],
|
|
3241
3390
|
coreAddress,
|
|
3242
|
-
groupContractAddress
|
|
3391
|
+
groupContractAddress,
|
|
3392
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
3243
3393
|
});
|
|
3244
3394
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3245
3395
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -3260,6 +3410,8 @@ registerAction({
|
|
|
3260
3410
|
});
|
|
3261
3411
|
|
|
3262
3412
|
// src/core/lib/actionRegistry/actions/governance/settingsProposal.ts
|
|
3413
|
+
var isTrue = (value) => value === true || value === "true";
|
|
3414
|
+
var isFalse = (value) => value === false || value === "false";
|
|
3263
3415
|
function clampPercent(value, label, { allowZero = false } = {}) {
|
|
3264
3416
|
const n = Number(value);
|
|
3265
3417
|
if (!Number.isFinite(n)) throw new Error(`${label} must be a number`);
|
|
@@ -3283,7 +3435,13 @@ registerAction({
|
|
|
3283
3435
|
{ path: "status", displayName: "Proposal Status", type: "string", description: "Current proposal status (open, passed, rejected, executed, etc.)" },
|
|
3284
3436
|
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module contract address" },
|
|
3285
3437
|
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
3286
|
-
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" }
|
|
3438
|
+
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" },
|
|
3439
|
+
{
|
|
3440
|
+
path: "vetoConfigured",
|
|
3441
|
+
displayName: "Veto Configured",
|
|
3442
|
+
type: "string",
|
|
3443
|
+
description: "'true' when the proposal sets a veto, 'false' when it clears one, 'unchanged' otherwise"
|
|
3444
|
+
}
|
|
3287
3445
|
],
|
|
3288
3446
|
// Mirrors run()'s throw-preamble (there is no inputSchema to declare
|
|
3289
3447
|
// requiredness on): coreAddress and the three numeric voting settings.
|
|
@@ -3326,6 +3484,15 @@ registerAction({
|
|
|
3326
3484
|
proposalDurationUnits: "hours",
|
|
3327
3485
|
allowRevoting
|
|
3328
3486
|
};
|
|
3487
|
+
if (isTrue(inputs.vetoEnabled)) {
|
|
3488
|
+
const vetoer = String(inputs.vetoer || "").trim();
|
|
3489
|
+
if (!vetoer) throw new Error("vetoer is required when the veto is enabled");
|
|
3490
|
+
const timelockHours = Number(inputs.vetoTimelockHours);
|
|
3491
|
+
if (!Number.isFinite(timelockHours) || timelockHours <= 0) throw new Error("vetoTimelockHours must be a positive number");
|
|
3492
|
+
Object.assign(data, { veto: { vetoer, timelockHours, earlyExecute: isTrue(inputs.vetoEarlyExecute), vetoBeforePassed: isTrue(inputs.vetoBeforePassed) } });
|
|
3493
|
+
} else if (isFalse(inputs.vetoEnabled)) {
|
|
3494
|
+
Object.assign(data, { veto: null });
|
|
3495
|
+
}
|
|
3329
3496
|
const updateVotingConfigAction = { type: "UpdateVotingConfig", data };
|
|
3330
3497
|
const title = String(inputs.title || "").trim() || "Update governance settings";
|
|
3331
3498
|
const description = String(inputs.description || "").trim() || "Updates the POD's voting rules once the proposal passes.";
|
|
@@ -3338,7 +3505,8 @@ registerAction({
|
|
|
3338
3505
|
description,
|
|
3339
3506
|
actions: [updateVotingConfigAction],
|
|
3340
3507
|
coreAddress,
|
|
3341
|
-
groupContractAddress
|
|
3508
|
+
groupContractAddress,
|
|
3509
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
3342
3510
|
});
|
|
3343
3511
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3344
3512
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -3351,7 +3519,8 @@ registerAction({
|
|
|
3351
3519
|
status: "open",
|
|
3352
3520
|
proposalContractAddress: proposalContractAddress || "",
|
|
3353
3521
|
coreAddress,
|
|
3354
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
3522
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3523
|
+
vetoConfigured: isTrue(inputs.vetoEnabled) ? "true" : isFalse(inputs.vetoEnabled) ? "false" : "unchanged"
|
|
3355
3524
|
}
|
|
3356
3525
|
};
|
|
3357
3526
|
}
|
|
@@ -3378,6 +3547,14 @@ registerGovernanceProposalAction({
|
|
|
3378
3547
|
}
|
|
3379
3548
|
refundPolicy = policy;
|
|
3380
3549
|
}
|
|
3550
|
+
const policyMode = String(inputs.policyMode || "").trim();
|
|
3551
|
+
if (policyMode && policyMode !== "anyone" && policyMode !== "specific") throw new Error("policyMode must be 'anyone' or 'specific'");
|
|
3552
|
+
const submissionPolicy = policyMode ? {
|
|
3553
|
+
mode: policyMode,
|
|
3554
|
+
daoMembers: inputs.daoMembers === void 0 ? true : inputs.daoMembers === true || inputs.daoMembers === "true",
|
|
3555
|
+
allowlist: parseAddressList(inputs.allowlist),
|
|
3556
|
+
denylist: parseAddressList(inputs.denylist)
|
|
3557
|
+
} : void 0;
|
|
3381
3558
|
return [
|
|
3382
3559
|
{
|
|
3383
3560
|
type: "UpdatePreProposeConfig",
|
|
@@ -3385,7 +3562,8 @@ registerGovernanceProposalAction({
|
|
|
3385
3562
|
depositRequired,
|
|
3386
3563
|
// Deposit token fixed to the chain's native IXO (uixo) for now.
|
|
3387
3564
|
depositInfo: { amount, type: "native", denomOrAddress: "uixo", refundPolicy },
|
|
3388
|
-
anyoneCanPropose
|
|
3565
|
+
anyoneCanPropose: submissionPolicy ? submissionPolicy.mode === "anyone" : anyoneCanPropose,
|
|
3566
|
+
...submissionPolicy ? { submissionPolicy } : {}
|
|
3389
3567
|
}
|
|
3390
3568
|
}
|
|
3391
3569
|
];
|
|
@@ -3409,6 +3587,37 @@ registerGovernanceProposalAction({
|
|
|
3409
3587
|
]
|
|
3410
3588
|
});
|
|
3411
3589
|
|
|
3590
|
+
// src/core/lib/actionRegistry/actions/governance/submissionPolicy.ts
|
|
3591
|
+
registerGovernanceProposalAction({
|
|
3592
|
+
type: "qi/governance.submission-policy",
|
|
3593
|
+
can: "governance/submission-policy",
|
|
3594
|
+
buildActions: (inputs) => {
|
|
3595
|
+
const allowlistAdd = parseAddressList(inputs.allowlistAdd);
|
|
3596
|
+
const allowlistRemove = parseAddressList(inputs.allowlistRemove);
|
|
3597
|
+
const denylistAdd = parseAddressList(inputs.denylistAdd);
|
|
3598
|
+
const denylistRemove = parseAddressList(inputs.denylistRemove);
|
|
3599
|
+
const setDaoMembers = inputs.setDaoMembers === true || inputs.setDaoMembers === "true" ? true : inputs.setDaoMembers === false || inputs.setDaoMembers === "false" ? false : null;
|
|
3600
|
+
if (!allowlistAdd.length && !allowlistRemove.length && !denylistAdd.length && !denylistRemove.length && setDaoMembers === null) {
|
|
3601
|
+
throw new Error("Nothing to change \u2014 add or remove at least one address, or set whether members may propose");
|
|
3602
|
+
}
|
|
3603
|
+
return [{ type: "UpdateSubmissionPolicy", data: { allowlistAdd, allowlistRemove, denylistAdd, denylistRemove, setDaoMembers } }];
|
|
3604
|
+
},
|
|
3605
|
+
defaultTitle: () => "Update who may submit proposals",
|
|
3606
|
+
defaultDescription: () => "Changes the allow and deny lists for proposal submission once the proposal passes; the proposal deposit is untouched.",
|
|
3607
|
+
buildExtraOutput: (inputs) => ({
|
|
3608
|
+
allowlistAdd: parseAddressList(inputs.allowlistAdd).join(","),
|
|
3609
|
+
allowlistRemove: parseAddressList(inputs.allowlistRemove).join(","),
|
|
3610
|
+
denylistAdd: parseAddressList(inputs.denylistAdd).join(","),
|
|
3611
|
+
denylistRemove: parseAddressList(inputs.denylistRemove).join(",")
|
|
3612
|
+
}),
|
|
3613
|
+
extraOutputSchema: [
|
|
3614
|
+
{ path: "allowlistAdd", displayName: "Allowlist Added", type: "string", description: "Addresses gaining the right to propose" },
|
|
3615
|
+
{ path: "allowlistRemove", displayName: "Allowlist Removed", type: "string", description: "Addresses losing the right to propose" },
|
|
3616
|
+
{ path: "denylistAdd", displayName: "Denylist Added", type: "string", description: "Addresses blocked from proposing" },
|
|
3617
|
+
{ path: "denylistRemove", displayName: "Denylist Removed", type: "string", description: "Addresses unblocked" }
|
|
3618
|
+
]
|
|
3619
|
+
});
|
|
3620
|
+
|
|
3412
3621
|
// src/core/lib/actionRegistry/actions/governance/transactionSendFunds.ts
|
|
3413
3622
|
registerAction({
|
|
3414
3623
|
type: "qi/governance.transaction.send-funds",
|
|
@@ -3476,7 +3685,8 @@ registerAction({
|
|
|
3476
3685
|
description,
|
|
3477
3686
|
actions: [spendAction],
|
|
3478
3687
|
coreAddress,
|
|
3479
|
-
groupContractAddress
|
|
3688
|
+
groupContractAddress,
|
|
3689
|
+
...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
|
|
3480
3690
|
});
|
|
3481
3691
|
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
3482
3692
|
throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
|
|
@@ -4033,6 +4243,659 @@ registerGovernanceProposalAction({
|
|
|
4033
4243
|
extraOutputSchema: [{ path: "typeUrl", displayName: "Message Type URL", type: "string", description: "The stargate message type the proposal broadcasts" }]
|
|
4034
4244
|
});
|
|
4035
4245
|
|
|
4246
|
+
// src/core/lib/actionRegistry/actions/governance/daoUpgrade.ts
|
|
4247
|
+
var isTrue2 = (value) => value === true || value === "true";
|
|
4248
|
+
var OUTPUT_SCHEMA = [
|
|
4249
|
+
{ path: "status", displayName: "Upgrade Status", type: "string", description: "'up-to-date', 'core-migrated', 'proposal-open', 'proposal-executed' or 'partial'" },
|
|
4250
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4251
|
+
{ path: "targetVersion", displayName: "Target Version", type: "string", description: "The DAO DAO generation upgraded to" },
|
|
4252
|
+
{ path: "coreMigrated", displayName: "Core Migrated", type: "string", description: "'true' when this run migrated the core contract" },
|
|
4253
|
+
{ path: "coreTransactionHash", displayName: "Core Migration Tx", type: "string", description: "Transaction hash of the direct core migration, when one was signed" },
|
|
4254
|
+
{ path: "proposalId", displayName: "Proposal ID", type: "string", description: "The on-chain proposal migrating the governance modules, when one was created" },
|
|
4255
|
+
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the upgrade proposal lives on" },
|
|
4256
|
+
{ path: "proposalTitle", displayName: "Proposal Title", type: "string", description: "The proposal name voters see on-chain" },
|
|
4257
|
+
{ path: "proposalDescription", displayName: "Proposal Description", type: "string", description: "The long-form description voters see on-chain" },
|
|
4258
|
+
{ path: "migratedModules", displayName: "Migrated Modules", type: "string", description: "Comma-separated list of the modules the proposal migrates" },
|
|
4259
|
+
{ path: "skippedModules", displayName: "Skipped Modules", type: "string", description: "Comma-separated list of modules left as they are, with the reason" },
|
|
4260
|
+
{ path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of this run" }
|
|
4261
|
+
];
|
|
4262
|
+
function summarizePlan(plan) {
|
|
4263
|
+
const migrated = (plan.messages.proposalStep?.items || []).filter((item) => item.kind !== "remove-hook").map((item) => `${item.contract} ${item.fromVersion}\u2192${item.toVersion}${item.kind === "swap" ? " (replaced)" : ""}`).join(", ");
|
|
4264
|
+
const skipped = plan.messages.skipped.map((entry) => `${entry.contract} (${entry.reason})`).join(", ");
|
|
4265
|
+
return { migrated, skipped };
|
|
4266
|
+
}
|
|
4267
|
+
registerAction({
|
|
4268
|
+
type: "qi/governance.dao.upgrade",
|
|
4269
|
+
can: "governance.dao/upgrade",
|
|
4270
|
+
sideEffect: true,
|
|
4271
|
+
executionOwner: "human",
|
|
4272
|
+
proof: { fields: ["status"] },
|
|
4273
|
+
done: doneWhenCompleted,
|
|
4274
|
+
defaultRequiresConfirmation: true,
|
|
4275
|
+
requiredCapability: "flow/block/execute",
|
|
4276
|
+
inputSchema: {
|
|
4277
|
+
type: "object",
|
|
4278
|
+
required: ["coreAddress"],
|
|
4279
|
+
additionalProperties: false,
|
|
4280
|
+
properties: {
|
|
4281
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4282
|
+
migrateVotingModule: { type: "boolean", description: "Also migrate the voting module (cw4 migrations bundle the required RemoveHook)." },
|
|
4283
|
+
skipCoreMigration: { type: "boolean", description: "Leave the core contract at its current version and only propose the module migrations." },
|
|
4284
|
+
title: { type: "string", description: "Proposal title voters see." },
|
|
4285
|
+
description: { type: "string", description: "Long-form proposal description voters see." }
|
|
4286
|
+
}
|
|
4287
|
+
},
|
|
4288
|
+
outputSchema: OUTPUT_SCHEMA,
|
|
4289
|
+
run: async (inputs, ctx) => {
|
|
4290
|
+
const handlers = ctx.handlers;
|
|
4291
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4292
|
+
if (!handlers.getDaoUpgradePlan || !handlers.executeTransaction || !handlers.createProposal) {
|
|
4293
|
+
throw new Error("DAO upgrade handlers not available on this host");
|
|
4294
|
+
}
|
|
4295
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4296
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4297
|
+
const migrateVotingModule = isTrue2(inputs.migrateVotingModule);
|
|
4298
|
+
const plan = await handlers.getDaoUpgradePlan({ coreAddress, migrateVotingModule });
|
|
4299
|
+
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
4300
|
+
const { migrated, skipped } = summarizePlan(plan);
|
|
4301
|
+
const blocking = plan.issues.filter((issue) => issue.severity === "blocking");
|
|
4302
|
+
if (blocking.length) throw new Error(blocking.map((issue) => issue.message).join(" "));
|
|
4303
|
+
const base = {
|
|
4304
|
+
coreAddress,
|
|
4305
|
+
targetVersion: plan.targetVersion,
|
|
4306
|
+
coreMigrated: "false",
|
|
4307
|
+
coreTransactionHash: "",
|
|
4308
|
+
proposalId: "",
|
|
4309
|
+
proposalContractAddress: "",
|
|
4310
|
+
proposalTitle: "",
|
|
4311
|
+
proposalDescription: "",
|
|
4312
|
+
migratedModules: migrated,
|
|
4313
|
+
skippedModules: skipped,
|
|
4314
|
+
createdAt
|
|
4315
|
+
};
|
|
4316
|
+
if (plan.isUpToDate) {
|
|
4317
|
+
return { output: { ...base, status: "up-to-date" } };
|
|
4318
|
+
}
|
|
4319
|
+
let coreTransactionHash = "";
|
|
4320
|
+
const coreStep = plan.messages.coreStep;
|
|
4321
|
+
if (coreStep && plan.canSignCore && !isTrue2(inputs.skipCoreMigration)) {
|
|
4322
|
+
const result = await handlers.executeTransaction({
|
|
4323
|
+
messages: [coreStep.message],
|
|
4324
|
+
memo: `Migrate DAO core ${coreAddress} to DAO DAO v${plan.targetVersion}`
|
|
4325
|
+
});
|
|
4326
|
+
coreTransactionHash = String(result?.transactionHash || "");
|
|
4327
|
+
if (!coreTransactionHash) throw new Error("The core migration returned no transaction hash \u2014 check the wallet and try again.");
|
|
4328
|
+
}
|
|
4329
|
+
const proposalStep = plan.messages.proposalStep;
|
|
4330
|
+
if (!proposalStep) {
|
|
4331
|
+
if (!coreTransactionHash) {
|
|
4332
|
+
throw new Error(plan.issues.map((issue) => issue.message).join(" ") || "Nothing in this upgrade can be executed by the connected wallet.");
|
|
4333
|
+
}
|
|
4334
|
+
return { output: { ...base, status: "core-migrated", coreMigrated: "true", coreTransactionHash } };
|
|
4335
|
+
}
|
|
4336
|
+
const title = String(inputs.title || "").trim() || proposalStep.title;
|
|
4337
|
+
const description = String(inputs.description || "").trim() || proposalStep.description;
|
|
4338
|
+
const proposalId = await handlers.createProposal({
|
|
4339
|
+
preProposalContractAddress: plan.preProposalContractAddress,
|
|
4340
|
+
title,
|
|
4341
|
+
description,
|
|
4342
|
+
actions: proposalStep.actions,
|
|
4343
|
+
coreAddress,
|
|
4344
|
+
groupContractAddress: plan.groupContractAddress
|
|
4345
|
+
});
|
|
4346
|
+
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
4347
|
+
throw new Error("Upgrade proposal creation returned no proposal id. Check the handler logs.");
|
|
4348
|
+
}
|
|
4349
|
+
const proposalContractAddress = String(plan.version.proposal?.address || "");
|
|
4350
|
+
const expectedOutput = {
|
|
4351
|
+
...base,
|
|
4352
|
+
status: "proposal-executed",
|
|
4353
|
+
coreMigrated: coreTransactionHash ? "true" : "false",
|
|
4354
|
+
coreTransactionHash,
|
|
4355
|
+
proposalId: String(proposalId),
|
|
4356
|
+
proposalContractAddress,
|
|
4357
|
+
proposalTitle: title,
|
|
4358
|
+
proposalDescription: description
|
|
4359
|
+
};
|
|
4360
|
+
return {
|
|
4361
|
+
output: { ...expectedOutput, status: "proposal-open" },
|
|
4362
|
+
completion: {
|
|
4363
|
+
state: "awaiting_readback",
|
|
4364
|
+
readBack: {
|
|
4365
|
+
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
4366
|
+
proposalId: String(proposalId),
|
|
4367
|
+
proposalContractAddress,
|
|
4368
|
+
coreAddress,
|
|
4369
|
+
expectedOutput
|
|
4370
|
+
}
|
|
4371
|
+
},
|
|
4372
|
+
topicRecords: ctx.topic ? [
|
|
4373
|
+
{
|
|
4374
|
+
type: "org.ixo.topic.proposal-receipt",
|
|
4375
|
+
id: sha256Digest({ topicId: ctx.topic.topicId, proposalContractAddress, proposalId }),
|
|
4376
|
+
version: 1,
|
|
4377
|
+
value: {
|
|
4378
|
+
event: "created",
|
|
4379
|
+
actionType: "qi/governance.dao.upgrade",
|
|
4380
|
+
proposalId: String(proposalId),
|
|
4381
|
+
proposalContractAddress,
|
|
4382
|
+
coreAddress,
|
|
4383
|
+
proposalTitle: title,
|
|
4384
|
+
proposalDescriptionDigest: sha256Digest(description),
|
|
4385
|
+
createdAt
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4388
|
+
] : void 0
|
|
4389
|
+
};
|
|
4390
|
+
}
|
|
4391
|
+
});
|
|
4392
|
+
|
|
4393
|
+
// src/core/lib/actionRegistry/actions/governance/veto.ts
|
|
4394
|
+
registerAction({
|
|
4395
|
+
type: "qi/governance.veto",
|
|
4396
|
+
can: "governance/veto",
|
|
4397
|
+
sideEffect: true,
|
|
4398
|
+
executionOwner: "human",
|
|
4399
|
+
proof: { fields: ["transactionHash"] },
|
|
4400
|
+
done: doneWhenCompleted,
|
|
4401
|
+
defaultRequiresConfirmation: true,
|
|
4402
|
+
requiredCapability: "flow/block/execute",
|
|
4403
|
+
inputSchema: {
|
|
4404
|
+
type: "object",
|
|
4405
|
+
required: ["coreAddress", "proposalId"],
|
|
4406
|
+
additionalProperties: false,
|
|
4407
|
+
properties: {
|
|
4408
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4409
|
+
proposalId: { type: ["string", "number"], description: "The proposal to veto." }
|
|
4410
|
+
}
|
|
4411
|
+
},
|
|
4412
|
+
outputSchema: [
|
|
4413
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the veto transaction" },
|
|
4414
|
+
{ path: "proposalId", displayName: "Proposal ID", type: "string", description: "The vetoed proposal" },
|
|
4415
|
+
{ path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the veto was sent to" },
|
|
4416
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4417
|
+
{ path: "status", displayName: "Proposal Status", type: "string", description: "'vetoed' once the veto transaction landed" },
|
|
4418
|
+
{ path: "vetoedAt", displayName: "Vetoed At", type: "string", description: "ISO timestamp of the veto" }
|
|
4419
|
+
],
|
|
4420
|
+
run: async (inputs, ctx) => {
|
|
4421
|
+
const handlers = ctx.handlers;
|
|
4422
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4423
|
+
if (!handlers.getProposalContractAddress || !handlers.vetoProposal) throw new Error("Veto handlers not available on this host");
|
|
4424
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4425
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4426
|
+
const proposalId = Number(inputs.proposalId);
|
|
4427
|
+
if (!Number.isInteger(proposalId) || proposalId <= 0) throw new Error("proposalId must be a positive whole number");
|
|
4428
|
+
const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
|
|
4429
|
+
if (!proposalContractAddress) throw new Error(`No proposal module found for ${coreAddress}`);
|
|
4430
|
+
const { transactionHash } = await handlers.vetoProposal({ proposalContractAddress, proposalId });
|
|
4431
|
+
if (!transactionHash) throw new Error("The veto returned no transaction hash. Check the handler logs.");
|
|
4432
|
+
return {
|
|
4433
|
+
output: {
|
|
4434
|
+
transactionHash,
|
|
4435
|
+
proposalId: String(proposalId),
|
|
4436
|
+
proposalContractAddress,
|
|
4437
|
+
coreAddress,
|
|
4438
|
+
status: "vetoed",
|
|
4439
|
+
vetoedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
4440
|
+
}
|
|
4441
|
+
};
|
|
4442
|
+
}
|
|
4443
|
+
});
|
|
4444
|
+
|
|
4445
|
+
// src/core/lib/actionRegistry/actions/governance/daoPause.ts
|
|
4446
|
+
registerGovernanceProposalAction({
|
|
4447
|
+
type: "qi/governance.dao.pause",
|
|
4448
|
+
can: "governance/dao-pause",
|
|
4449
|
+
buildActions: (inputs) => {
|
|
4450
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4451
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4452
|
+
const hours = Number(inputs.pauseHours);
|
|
4453
|
+
if (!Number.isFinite(hours) || hours <= 0) throw new Error("pauseHours must be a positive number of hours");
|
|
4454
|
+
const seconds = Math.round(hours * 3600);
|
|
4455
|
+
return [{ type: "Execute", data: { address: coreAddress, message: JSON.stringify({ pause: { duration: { time: seconds } } }), funds: [] } }];
|
|
4456
|
+
},
|
|
4457
|
+
defaultTitle: (inputs) => `Pause the group for ${Number(inputs.pauseHours) || "?"} hours`,
|
|
4458
|
+
defaultDescription: () => "Once this proposal passes the group executes nothing until the pause ends; proposing and voting continue.",
|
|
4459
|
+
buildExtraOutput: (inputs) => ({ pauseSeconds: String(Math.round((Number(inputs.pauseHours) || 0) * 3600)) }),
|
|
4460
|
+
extraOutputSchema: [{ path: "pauseSeconds", displayName: "Pause Seconds", type: "string", description: "The pause duration submitted, in seconds" }]
|
|
4461
|
+
});
|
|
4462
|
+
|
|
4463
|
+
// src/core/lib/actionRegistry/actions/governance/daoUnpause.ts
|
|
4464
|
+
registerAction({
|
|
4465
|
+
type: "qi/governance.dao.unpause",
|
|
4466
|
+
can: "governance/dao-unpause",
|
|
4467
|
+
sideEffect: true,
|
|
4468
|
+
executionOwner: "human",
|
|
4469
|
+
proof: { fields: ["transactionHash"] },
|
|
4470
|
+
done: doneWhenCompleted,
|
|
4471
|
+
defaultRequiresConfirmation: true,
|
|
4472
|
+
requiredCapability: "flow/block/execute",
|
|
4473
|
+
inputSchema: {
|
|
4474
|
+
type: "object",
|
|
4475
|
+
required: ["coreAddress"],
|
|
4476
|
+
additionalProperties: false,
|
|
4477
|
+
properties: {
|
|
4478
|
+
coreAddress: { type: "string", description: "DAO core contract address." }
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4481
|
+
outputSchema: [
|
|
4482
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the unpause transaction" },
|
|
4483
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4484
|
+
{ path: "unpausedAt", displayName: "Unpaused At", type: "string", description: "ISO timestamp of the unpause" }
|
|
4485
|
+
],
|
|
4486
|
+
run: async (inputs, ctx) => {
|
|
4487
|
+
const handlers = ctx.handlers;
|
|
4488
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4489
|
+
if (!handlers.unpauseDao) throw new Error("Unpause handler not available on this host");
|
|
4490
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4491
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4492
|
+
const { transactionHash } = await handlers.unpauseDao({ coreAddress });
|
|
4493
|
+
if (!transactionHash) throw new Error("The unpause returned no transaction hash. Check the handler logs.");
|
|
4494
|
+
return { output: { transactionHash, coreAddress, unpausedAt: (/* @__PURE__ */ new Date()).toISOString() } };
|
|
4495
|
+
}
|
|
4496
|
+
});
|
|
4497
|
+
|
|
4498
|
+
// src/core/lib/actionRegistry/actions/governance/nftActiveThreshold.ts
|
|
4499
|
+
registerGovernanceProposalAction({
|
|
4500
|
+
type: "qi/governance.nft.active-threshold",
|
|
4501
|
+
can: "governance/nft-active-threshold",
|
|
4502
|
+
buildActions: (inputs) => {
|
|
4503
|
+
const thresholdType = String(inputs.thresholdType || "none").trim();
|
|
4504
|
+
if (!["none", "count", "percent"].includes(thresholdType)) throw new Error("thresholdType must be 'none', 'count' or 'percent'");
|
|
4505
|
+
const value = Number(inputs.thresholdValue);
|
|
4506
|
+
if (thresholdType === "count" && (!Number.isInteger(value) || value <= 0)) throw new Error("thresholdValue must be a whole number greater than 0 for a count threshold");
|
|
4507
|
+
if (thresholdType === "percent" && (!Number.isFinite(value) || value <= 0 || value > 100))
|
|
4508
|
+
throw new Error("thresholdValue must be between 0 and 100 for a percentage threshold");
|
|
4509
|
+
return [{ type: "UpdateActiveThreshold", data: thresholdType === "none" ? { thresholdType } : { thresholdType, thresholdValue: value } }];
|
|
4510
|
+
},
|
|
4511
|
+
defaultTitle: (inputs) => String(inputs.thresholdType || "none") === "none" ? "Remove the active threshold" : `Set the active threshold to ${inputs.thresholdValue}${String(inputs.thresholdType) === "percent" ? "%" : " staked"}`,
|
|
4512
|
+
defaultDescription: () => "Changes how much of the collection must be staked before this group accepts new proposals.",
|
|
4513
|
+
buildExtraOutput: (inputs) => ({ thresholdType: String(inputs.thresholdType || "none"), thresholdValue: String(inputs.thresholdValue ?? "") }),
|
|
4514
|
+
extraOutputSchema: [
|
|
4515
|
+
{ path: "thresholdType", displayName: "Threshold Type", type: "string", description: "none, count or percent" },
|
|
4516
|
+
{ path: "thresholdValue", displayName: "Threshold Value", type: "string", description: "The submitted count or percentage" }
|
|
4517
|
+
]
|
|
4518
|
+
});
|
|
4519
|
+
|
|
4520
|
+
// src/core/lib/actionRegistry/actions/governance/delegationSetup.ts
|
|
4521
|
+
registerGovernanceProposalAction({
|
|
4522
|
+
type: "qi/governance.delegation.setup",
|
|
4523
|
+
can: "governance/delegation-setup",
|
|
4524
|
+
buildActions: (inputs) => {
|
|
4525
|
+
const optional = (value, label, max) => {
|
|
4526
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
4527
|
+
const n = Number(value);
|
|
4528
|
+
if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max) throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
|
|
4529
|
+
return n;
|
|
4530
|
+
};
|
|
4531
|
+
const vpCapPercent = optional(inputs.vpCapPercent, "vpCapPercent", 100);
|
|
4532
|
+
const validityBlocks = optional(inputs.validityBlocks, "validityBlocks");
|
|
4533
|
+
const maxDelegations = optional(inputs.maxDelegations, "maxDelegations");
|
|
4534
|
+
return [{ type: "DelegationSetup", data: { vpCapPercent, validityBlocks, maxDelegations } }];
|
|
4535
|
+
},
|
|
4536
|
+
defaultTitle: () => "Enable vote delegation",
|
|
4537
|
+
defaultDescription: () => "Members will be able to delegate a share of their voting power to registered delegates; delegators can still vote themselves, which overrides the delegate for that proposal.",
|
|
4538
|
+
buildExtraOutput: (inputs) => ({ vpCapPercent: String(inputs.vpCapPercent ?? ""), validityBlocks: String(inputs.validityBlocks ?? ""), maxDelegations: String(inputs.maxDelegations ?? "") }),
|
|
4539
|
+
extraOutputSchema: [
|
|
4540
|
+
{ path: "vpCapPercent", displayName: "Voting Power Cap %", type: "string", description: "The submitted cap, blank for none" },
|
|
4541
|
+
{ path: "validityBlocks", displayName: "Validity Blocks", type: "string", description: "The submitted delegation validity, blank for never expiring" },
|
|
4542
|
+
{ path: "maxDelegations", displayName: "Max Delegations", type: "string", description: "The submitted per-member delegation limit" }
|
|
4543
|
+
]
|
|
4544
|
+
});
|
|
4545
|
+
|
|
4546
|
+
// src/core/lib/actionRegistry/actions/governance/delegation.ts
|
|
4547
|
+
var KINDS = [
|
|
4548
|
+
{ type: "qi/governance.delegation.register", can: "governance/delegation-register", action: "register", needsDelegate: false, needsPercent: false },
|
|
4549
|
+
{ type: "qi/governance.delegation.unregister", can: "governance/delegation-unregister", action: "unregister", needsDelegate: false, needsPercent: false },
|
|
4550
|
+
{ type: "qi/governance.delegation.delegate", can: "governance/delegation-delegate", action: "delegate", needsDelegate: true, needsPercent: true },
|
|
4551
|
+
{ type: "qi/governance.delegation.undelegate", can: "governance/delegation-undelegate", action: "undelegate", needsDelegate: true, needsPercent: false }
|
|
4552
|
+
];
|
|
4553
|
+
for (const kind of KINDS) {
|
|
4554
|
+
registerAction({
|
|
4555
|
+
type: kind.type,
|
|
4556
|
+
can: kind.can,
|
|
4557
|
+
sideEffect: true,
|
|
4558
|
+
executionOwner: "human",
|
|
4559
|
+
proof: { fields: ["transactionHash"] },
|
|
4560
|
+
done: doneWhenCompleted,
|
|
4561
|
+
defaultRequiresConfirmation: true,
|
|
4562
|
+
requiredCapability: "flow/block/execute",
|
|
4563
|
+
inputSchema: {
|
|
4564
|
+
type: "object",
|
|
4565
|
+
required: ["coreAddress", ...kind.needsDelegate ? ["delegate"] : [], ...kind.needsPercent ? ["percent"] : []],
|
|
4566
|
+
additionalProperties: false,
|
|
4567
|
+
properties: {
|
|
4568
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4569
|
+
...kind.needsDelegate ? { delegate: { type: "string", description: "The delegate's address or DID." } } : {},
|
|
4570
|
+
...kind.needsPercent ? { percent: { type: ["number", "string"], description: "Share of your voting power to delegate, 0\u2013100." } } : {}
|
|
4571
|
+
}
|
|
4572
|
+
},
|
|
4573
|
+
outputSchema: [
|
|
4574
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the delegation transaction" },
|
|
4575
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4576
|
+
{ path: "delegationModuleAddress", displayName: "Delegation Module", type: "string", description: "The dao_vote_delegation contract" },
|
|
4577
|
+
{ path: "action", displayName: "Action", type: "string", description: "register | unregister | delegate | undelegate" },
|
|
4578
|
+
{ path: "delegate", displayName: "Delegate", type: "string", description: "The delegate involved, when any" },
|
|
4579
|
+
{ path: "percent", displayName: "Percent", type: "string", description: "The delegated share, when any" }
|
|
4580
|
+
],
|
|
4581
|
+
run: async (inputs, ctx) => {
|
|
4582
|
+
const handlers = ctx.handlers;
|
|
4583
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4584
|
+
if (!handlers.delegationExecute) throw new Error("Delegation handlers not available on this host");
|
|
4585
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4586
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4587
|
+
const delegate = String(inputs.delegate || "").trim();
|
|
4588
|
+
if (kind.needsDelegate && !delegate) throw new Error("delegate is required");
|
|
4589
|
+
const percent = kind.needsPercent ? Number(inputs.percent) : void 0;
|
|
4590
|
+
if (kind.needsPercent && (!Number.isFinite(percent) || percent <= 0 || percent > 100)) throw new Error("percent must be between 0 and 100");
|
|
4591
|
+
const { transactionHash, delegationModuleAddress } = await handlers.delegationExecute({
|
|
4592
|
+
coreAddress,
|
|
4593
|
+
action: kind.action,
|
|
4594
|
+
...kind.needsDelegate ? { delegate } : {},
|
|
4595
|
+
...kind.needsPercent ? { percent } : {}
|
|
4596
|
+
});
|
|
4597
|
+
if (!transactionHash) throw new Error("The delegation transaction returned no hash. Check the handler logs.");
|
|
4598
|
+
return {
|
|
4599
|
+
output: {
|
|
4600
|
+
transactionHash,
|
|
4601
|
+
coreAddress,
|
|
4602
|
+
delegationModuleAddress,
|
|
4603
|
+
action: kind.action,
|
|
4604
|
+
...kind.needsDelegate ? { delegate } : {},
|
|
4605
|
+
...kind.needsPercent ? { percent: String(percent) } : {}
|
|
4606
|
+
}
|
|
4607
|
+
};
|
|
4608
|
+
}
|
|
4609
|
+
});
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
// src/core/lib/actionRegistry/actions/governance/rewards.ts
|
|
4613
|
+
registerGovernanceProposalAction({
|
|
4614
|
+
type: "qi/governance.rewards.create",
|
|
4615
|
+
can: "governance/rewards-create",
|
|
4616
|
+
buildActions: (inputs) => {
|
|
4617
|
+
const denomType = String(inputs.denomType || "native");
|
|
4618
|
+
if (denomType !== "native" && denomType !== "cw20") throw new Error("denomType must be 'native' or 'cw20'");
|
|
4619
|
+
const denom = String(inputs.denom || "").trim();
|
|
4620
|
+
if (!denom) throw new Error("denom is required");
|
|
4621
|
+
const emissionMode = String(inputs.emissionMode || "linear");
|
|
4622
|
+
if (!["linear", "immediate", "paused"].includes(emissionMode)) throw new Error("emissionMode must be 'linear', 'immediate' or 'paused'");
|
|
4623
|
+
const amount = inputs.amount === void 0 || inputs.amount === null || inputs.amount === "" ? null : String(inputs.amount);
|
|
4624
|
+
const periodSeconds = inputs.periodSeconds === void 0 || inputs.periodSeconds === null || inputs.periodSeconds === "" ? null : Number(inputs.periodSeconds);
|
|
4625
|
+
if (emissionMode === "linear") {
|
|
4626
|
+
if (!amount || !/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0 for a linear emission");
|
|
4627
|
+
if (!Number.isInteger(periodSeconds) || periodSeconds <= 0) throw new Error("periodSeconds must be a whole number greater than 0 for a linear emission");
|
|
4628
|
+
}
|
|
4629
|
+
const bool2 = (v) => v === void 0 || v === null || v === "" ? null : v === true || v === "true";
|
|
4630
|
+
return [
|
|
4631
|
+
{
|
|
4632
|
+
type: "RewardsCreate",
|
|
4633
|
+
data: {
|
|
4634
|
+
denomType,
|
|
4635
|
+
denom,
|
|
4636
|
+
emissionMode,
|
|
4637
|
+
amount,
|
|
4638
|
+
periodSeconds,
|
|
4639
|
+
continuous: bool2(inputs.continuous),
|
|
4640
|
+
openFunding: bool2(inputs.openFunding),
|
|
4641
|
+
withdrawDestination: inputs.withdrawDestination ? String(inputs.withdrawDestination) : null
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
];
|
|
4645
|
+
},
|
|
4646
|
+
defaultTitle: (inputs) => `Create a ${String(inputs.denom || "")} reward distribution`,
|
|
4647
|
+
defaultDescription: () => "Members share the rewards in proportion to their voting power.",
|
|
4648
|
+
buildExtraOutput: (inputs) => ({ denom: String(inputs.denom || ""), emissionMode: String(inputs.emissionMode || "linear") }),
|
|
4649
|
+
extraOutputSchema: [
|
|
4650
|
+
{ path: "denom", displayName: "Denom", type: "string", description: "The reward denom" },
|
|
4651
|
+
{ path: "emissionMode", displayName: "Emission", type: "string", description: "linear | immediate | paused" }
|
|
4652
|
+
]
|
|
4653
|
+
});
|
|
4654
|
+
var requireId = (value) => {
|
|
4655
|
+
const id = Number(value);
|
|
4656
|
+
if (!Number.isInteger(id) || id < 0) throw new Error("distributionId must be a whole number");
|
|
4657
|
+
return id;
|
|
4658
|
+
};
|
|
4659
|
+
registerGovernanceProposalAction({
|
|
4660
|
+
type: "qi/governance.rewards.fund",
|
|
4661
|
+
can: "governance/rewards-fund",
|
|
4662
|
+
buildActions: (inputs) => {
|
|
4663
|
+
const id = requireId(inputs.distributionId);
|
|
4664
|
+
const amount = String(inputs.amount ?? "").trim();
|
|
4665
|
+
if (!/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0");
|
|
4666
|
+
return [{ type: "RewardsFund", data: { id, amount } }];
|
|
4667
|
+
},
|
|
4668
|
+
defaultTitle: (inputs) => `Fund reward distribution #${String(inputs.distributionId ?? "")}`,
|
|
4669
|
+
defaultDescription: () => "Moves funds from the treasury into the reward distribution.",
|
|
4670
|
+
buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? ""), amount: String(inputs.amount ?? "") }),
|
|
4671
|
+
extraOutputSchema: [
|
|
4672
|
+
{ path: "distributionId", displayName: "Distribution", type: "string", description: "The funded distribution id" },
|
|
4673
|
+
{ path: "amount", displayName: "Amount", type: "string", description: "Base units funded" }
|
|
4674
|
+
]
|
|
4675
|
+
});
|
|
4676
|
+
registerGovernanceProposalAction({
|
|
4677
|
+
type: "qi/governance.rewards.withdraw",
|
|
4678
|
+
can: "governance/rewards-withdraw",
|
|
4679
|
+
buildActions: (inputs) => [{ type: "RewardsWithdraw", data: { id: requireId(inputs.distributionId) } }],
|
|
4680
|
+
defaultTitle: (inputs) => `Withdraw undistributed rewards from #${String(inputs.distributionId ?? "")}`,
|
|
4681
|
+
defaultDescription: () => "Returns funds that were not yet distributed to the withdraw destination.",
|
|
4682
|
+
buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? "") }),
|
|
4683
|
+
extraOutputSchema: [{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution withdrawn from" }]
|
|
4684
|
+
});
|
|
4685
|
+
registerAction({
|
|
4686
|
+
type: "qi/governance.rewards.claim",
|
|
4687
|
+
can: "governance/rewards-claim",
|
|
4688
|
+
sideEffect: true,
|
|
4689
|
+
executionOwner: "human",
|
|
4690
|
+
proof: { fields: ["transactionHash"] },
|
|
4691
|
+
done: doneWhenCompleted,
|
|
4692
|
+
defaultRequiresConfirmation: true,
|
|
4693
|
+
requiredCapability: "flow/block/execute",
|
|
4694
|
+
inputSchema: {
|
|
4695
|
+
type: "object",
|
|
4696
|
+
required: ["coreAddress", "distributionId"],
|
|
4697
|
+
additionalProperties: false,
|
|
4698
|
+
properties: {
|
|
4699
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4700
|
+
distributionId: { type: ["number", "string"], description: "The distribution to claim from." }
|
|
4701
|
+
}
|
|
4702
|
+
},
|
|
4703
|
+
outputSchema: [
|
|
4704
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the claim transaction" },
|
|
4705
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4706
|
+
{ path: "distributorAddress", displayName: "Distributor", type: "string", description: "The dao_rewards_distributor contract" },
|
|
4707
|
+
{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution claimed from" }
|
|
4708
|
+
],
|
|
4709
|
+
run: async (inputs, ctx) => {
|
|
4710
|
+
const handlers = ctx.handlers;
|
|
4711
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4712
|
+
if (!handlers.rewardsClaim) throw new Error("Rewards handlers not available on this host");
|
|
4713
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4714
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4715
|
+
const id = requireId(inputs.distributionId);
|
|
4716
|
+
const { transactionHash, distributorAddress } = await handlers.rewardsClaim({ coreAddress, id });
|
|
4717
|
+
if (!transactionHash) throw new Error("The claim returned no transaction hash. Check the handler logs.");
|
|
4718
|
+
return { output: { transactionHash, coreAddress, distributorAddress, distributionId: String(id) } };
|
|
4719
|
+
}
|
|
4720
|
+
});
|
|
4721
|
+
|
|
4722
|
+
// src/core/lib/actionRegistry/actions/governance/approval.ts
|
|
4723
|
+
var optionalNumber = (value, label, max) => {
|
|
4724
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
4725
|
+
const n = Number(value);
|
|
4726
|
+
if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max) throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
|
|
4727
|
+
return n;
|
|
4728
|
+
};
|
|
4729
|
+
var bool = (v) => v === void 0 || v === null || v === "" ? void 0 : v === true || v === "true";
|
|
4730
|
+
registerGovernanceProposalAction({
|
|
4731
|
+
type: "qi/governance.proposal-module.add",
|
|
4732
|
+
can: "governance/proposal-module-add",
|
|
4733
|
+
buildActions: (inputs) => {
|
|
4734
|
+
const kind = String(inputs.kind || "single");
|
|
4735
|
+
if (kind !== "single" && kind !== "multiple") throw new Error("kind must be 'single' or 'multiple'");
|
|
4736
|
+
const votingPeriodSeconds = Number(inputs.votingPeriodSeconds);
|
|
4737
|
+
if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
|
|
4738
|
+
const approvalRequired = bool(inputs.approvalRequired) === true;
|
|
4739
|
+
const approver = String(inputs.approver || "").trim();
|
|
4740
|
+
if (approvalRequired && !approver) throw new Error("approver is required when approvalRequired is on");
|
|
4741
|
+
const refund = String(inputs.depositRefundPolicy || "always");
|
|
4742
|
+
if (!["always", "only_passed", "never"].includes(refund)) throw new Error("depositRefundPolicy must be 'always', 'only_passed' or 'never'");
|
|
4743
|
+
return [
|
|
4744
|
+
{
|
|
4745
|
+
type: "AddProposalModule",
|
|
4746
|
+
data: {
|
|
4747
|
+
kind,
|
|
4748
|
+
approvalRequired,
|
|
4749
|
+
approver: approvalRequired ? approver : null,
|
|
4750
|
+
thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100),
|
|
4751
|
+
quorumPercent: optionalNumber(inputs.quorumPercent, "quorumPercent", 100),
|
|
4752
|
+
votingPeriodSeconds,
|
|
4753
|
+
allowRevoting: bool(inputs.allowRevoting) !== false,
|
|
4754
|
+
anyoneCanPropose: bool(inputs.anyoneCanPropose) === true,
|
|
4755
|
+
depositAmount: inputs.depositAmount ? String(inputs.depositAmount) : null,
|
|
4756
|
+
depositDenom: inputs.depositDenom ? String(inputs.depositDenom) : null,
|
|
4757
|
+
depositRefundPolicy: refund,
|
|
4758
|
+
label: inputs.label ? String(inputs.label) : void 0
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
];
|
|
4762
|
+
},
|
|
4763
|
+
defaultTitle: (inputs) => `Add a ${String(inputs.kind || "single") === "multiple" ? "multiple-choice" : "single-choice"} proposal module${bool(inputs.approvalRequired) ? " with approval" : ""}`,
|
|
4764
|
+
defaultDescription: () => "Proposals submitted to the new module follow its own voting rules.",
|
|
4765
|
+
buildExtraOutput: (inputs) => ({ kind: String(inputs.kind || "single"), approvalRequired: String(bool(inputs.approvalRequired) === true) }),
|
|
4766
|
+
extraOutputSchema: [
|
|
4767
|
+
{ path: "kind", displayName: "Kind", type: "string", description: "single | multiple" },
|
|
4768
|
+
{ path: "approvalRequired", displayName: "Approval Required", type: "string", description: "'true' when submissions wait for an approver" }
|
|
4769
|
+
]
|
|
4770
|
+
});
|
|
4771
|
+
registerGovernanceProposalAction({
|
|
4772
|
+
type: "qi/governance.approver.setup",
|
|
4773
|
+
can: "governance/approver-setup",
|
|
4774
|
+
buildActions: (inputs) => {
|
|
4775
|
+
const approvalModule = String(inputs.approvalModule || "").trim();
|
|
4776
|
+
if (!approvalModule) throw new Error("approvalModule (the child POD's approval module address) is required");
|
|
4777
|
+
const votingPeriodSeconds = inputs.votingPeriodSeconds ? Number(inputs.votingPeriodSeconds) : 604800;
|
|
4778
|
+
if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
|
|
4779
|
+
return [{ type: "ApproverSetup", data: { approvalModule, votingPeriodSeconds, thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100) } }];
|
|
4780
|
+
},
|
|
4781
|
+
defaultTitle: (inputs) => `Become the approver for ${String(inputs.approvalModule || "")}`,
|
|
4782
|
+
defaultDescription: () => "Each submission on the child POD's approval module becomes an approve/reject proposal here.",
|
|
4783
|
+
buildExtraOutput: (inputs) => ({ approvalModule: String(inputs.approvalModule || "") }),
|
|
4784
|
+
extraOutputSchema: [{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The child POD's approval module" }]
|
|
4785
|
+
});
|
|
4786
|
+
registerAction({
|
|
4787
|
+
type: "qi/governance.approval.review",
|
|
4788
|
+
can: "governance/approval-review",
|
|
4789
|
+
sideEffect: true,
|
|
4790
|
+
executionOwner: "human",
|
|
4791
|
+
proof: { fields: ["transactionHash"] },
|
|
4792
|
+
done: doneWhenCompleted,
|
|
4793
|
+
defaultRequiresConfirmation: true,
|
|
4794
|
+
requiredCapability: "flow/block/execute",
|
|
4795
|
+
inputSchema: {
|
|
4796
|
+
type: "object",
|
|
4797
|
+
required: ["coreAddress", "approvalModule", "approvalId", "decision"],
|
|
4798
|
+
additionalProperties: false,
|
|
4799
|
+
properties: {
|
|
4800
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4801
|
+
approvalModule: { type: "string", description: "The approval pre-propose module holding the submission." },
|
|
4802
|
+
approvalId: { type: ["number", "string"], description: "The submission id." },
|
|
4803
|
+
decision: { type: "string", enum: ["approve", "reject"], description: "approve | reject" }
|
|
4804
|
+
}
|
|
4805
|
+
},
|
|
4806
|
+
outputSchema: [
|
|
4807
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the review transaction" },
|
|
4808
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4809
|
+
{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The approval module" },
|
|
4810
|
+
{ path: "approvalId", displayName: "Submission", type: "string", description: "The reviewed submission id" },
|
|
4811
|
+
{ path: "decision", displayName: "Decision", type: "string", description: "approve | reject" }
|
|
4812
|
+
],
|
|
4813
|
+
run: async (inputs, ctx) => {
|
|
4814
|
+
const handlers = ctx.handlers;
|
|
4815
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4816
|
+
if (!handlers.reviewSubmission) throw new Error("Approval handlers not available on this host");
|
|
4817
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4818
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4819
|
+
const approvalModule = String(inputs.approvalModule || "").trim();
|
|
4820
|
+
if (!approvalModule) throw new Error("approvalModule is required");
|
|
4821
|
+
const approvalId = Number(inputs.approvalId);
|
|
4822
|
+
if (!Number.isInteger(approvalId) || approvalId < 0) throw new Error("approvalId must be a whole number");
|
|
4823
|
+
const decision = String(inputs.decision);
|
|
4824
|
+
if (decision !== "approve" && decision !== "reject") throw new Error("decision must be 'approve' or 'reject'");
|
|
4825
|
+
const { transactionHash } = await handlers.reviewSubmission({ approvalModule, approvalId, decision });
|
|
4826
|
+
if (!transactionHash) throw new Error("The review returned no transaction hash. Check the handler logs.");
|
|
4827
|
+
return { output: { transactionHash, coreAddress, approvalModule, approvalId: String(approvalId), decision } };
|
|
4828
|
+
}
|
|
4829
|
+
});
|
|
4830
|
+
function parseOptions(value) {
|
|
4831
|
+
if (Array.isArray(value))
|
|
4832
|
+
return value.map(
|
|
4833
|
+
(o) => typeof o === "string" ? { title: o } : { title: String(o?.title ?? ""), description: o?.description ? String(o.description) : void 0 }
|
|
4834
|
+
);
|
|
4835
|
+
const text = String(value ?? "").trim();
|
|
4836
|
+
if (!text) return [];
|
|
4837
|
+
if (text.startsWith("[")) {
|
|
4838
|
+
try {
|
|
4839
|
+
return parseOptions(JSON.parse(text));
|
|
4840
|
+
} catch {
|
|
4841
|
+
throw new Error("options must be a JSON array of { title, description } or one option per line");
|
|
4842
|
+
}
|
|
4843
|
+
}
|
|
4844
|
+
return text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).map((line) => {
|
|
4845
|
+
const [title, ...rest] = line.split(/\s+[-–—]\s+|:\s+/);
|
|
4846
|
+
return { title: title.trim(), description: rest.length ? rest.join(" ").trim() : void 0 };
|
|
4847
|
+
});
|
|
4848
|
+
}
|
|
4849
|
+
registerAction({
|
|
4850
|
+
type: "qi/governance.proposal.create-multiple",
|
|
4851
|
+
can: "governance/proposal-create-multiple",
|
|
4852
|
+
sideEffect: true,
|
|
4853
|
+
executionOwner: "human",
|
|
4854
|
+
proof: { fields: ["transactionHash"] },
|
|
4855
|
+
done: doneWhenCompleted,
|
|
4856
|
+
defaultRequiresConfirmation: true,
|
|
4857
|
+
requiredCapability: "flow/block/execute",
|
|
4858
|
+
inputSchema: {
|
|
4859
|
+
type: "object",
|
|
4860
|
+
required: ["coreAddress", "title", "options"],
|
|
4861
|
+
additionalProperties: false,
|
|
4862
|
+
properties: {
|
|
4863
|
+
coreAddress: { type: "string", description: "DAO core contract address." },
|
|
4864
|
+
proposalModule: { type: "string", description: "The multiple-choice proposal module; blank = the first one on the POD." },
|
|
4865
|
+
title: { type: "string", description: "Proposal title." },
|
|
4866
|
+
description: { type: "string", description: "Proposal description." },
|
|
4867
|
+
options: { type: ["array", "string"], description: 'JSON array of { title, description }, or one option per line ("Title - description").' }
|
|
4868
|
+
}
|
|
4869
|
+
},
|
|
4870
|
+
outputSchema: [
|
|
4871
|
+
{ path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the propose transaction" },
|
|
4872
|
+
{ path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
|
|
4873
|
+
{ path: "proposalModule", displayName: "Proposal Module", type: "string", description: "The multiple-choice module the proposal went to" },
|
|
4874
|
+
{ path: "optionCount", displayName: "Options", type: "string", description: "Number of options submitted" }
|
|
4875
|
+
],
|
|
4876
|
+
run: async (inputs, ctx) => {
|
|
4877
|
+
const handlers = ctx.handlers;
|
|
4878
|
+
if (!handlers) throw new Error("Handlers not available");
|
|
4879
|
+
if (!handlers.createMultipleChoiceProposal) throw new Error("Multiple-choice proposal handler not available on this host");
|
|
4880
|
+
const coreAddress = String(inputs.coreAddress || "").trim();
|
|
4881
|
+
if (!coreAddress) throw new Error("coreAddress is required");
|
|
4882
|
+
const title = String(inputs.title || "").trim();
|
|
4883
|
+
if (!title) throw new Error("title is required");
|
|
4884
|
+
const options = parseOptions(inputs.options).filter((o) => o.title);
|
|
4885
|
+
if (options.length < 2) throw new Error("At least two options are required");
|
|
4886
|
+
if (options.length > 10) throw new Error("At most 10 options are allowed");
|
|
4887
|
+
const { transactionHash, proposalModule } = await handlers.createMultipleChoiceProposal({
|
|
4888
|
+
coreAddress,
|
|
4889
|
+
proposalModule: inputs.proposalModule ? String(inputs.proposalModule) : void 0,
|
|
4890
|
+
title,
|
|
4891
|
+
description: String(inputs.description || ""),
|
|
4892
|
+
options
|
|
4893
|
+
});
|
|
4894
|
+
if (!transactionHash) throw new Error("The proposal returned no transaction hash. Check the handler logs.");
|
|
4895
|
+
return { output: { transactionHash, coreAddress, proposalModule, optionCount: String(options.length) } };
|
|
4896
|
+
}
|
|
4897
|
+
});
|
|
4898
|
+
|
|
4036
4899
|
// src/core/lib/actionRegistry/actions/governance/nftBurn.ts
|
|
4037
4900
|
registerGovernanceProposalAction({
|
|
4038
4901
|
type: "qi/governance.nft.burn",
|
|
@@ -4378,7 +5241,7 @@ var INPUT_PROPERTIES = {
|
|
|
4378
5241
|
headers: { type: "object", additionalProperties: { type: "string" }, description: "Non-secret request headers. Authorization and cookies are rejected." },
|
|
4379
5242
|
body: { description: "Request body for a mutating HTTP request." }
|
|
4380
5243
|
};
|
|
4381
|
-
var
|
|
5244
|
+
var OUTPUT_SCHEMA2 = [
|
|
4382
5245
|
{ path: "requestId", displayName: "Request ID", type: "string", description: "Host invocation identifier." },
|
|
4383
5246
|
{ path: "status", displayName: "HTTP Status", type: "number" },
|
|
4384
5247
|
{ path: "responseDigest", displayName: "Response Digest", type: "string", description: "Digest of the response body." },
|
|
@@ -4433,7 +5296,7 @@ registerAction({
|
|
|
4433
5296
|
properties: { ...INPUT_PROPERTIES, method: { type: "string", enum: ["GET", "HEAD"], default: "GET" } }
|
|
4434
5297
|
},
|
|
4435
5298
|
getMissingInputs: missingEndpoint,
|
|
4436
|
-
outputSchema:
|
|
5299
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
4437
5300
|
run: async (rawInputs, ctx) => {
|
|
4438
5301
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
4439
5302
|
const url = publicHttpUrl(inputs.endpoint ?? inputs.url);
|
|
@@ -4504,7 +5367,7 @@ registerAction({
|
|
|
4504
5367
|
}
|
|
4505
5368
|
},
|
|
4506
5369
|
getMissingInputs: missingEndpoint,
|
|
4507
|
-
outputSchema:
|
|
5370
|
+
outputSchema: OUTPUT_SCHEMA2,
|
|
4508
5371
|
run: async (rawInputs, ctx) => {
|
|
4509
5372
|
const inputs = normalizeHttpInputs(rawInputs);
|
|
4510
5373
|
const service = ctx.services.http;
|
|
@@ -4932,60 +5795,6 @@ registerAction({
|
|
|
4932
5795
|
}
|
|
4933
5796
|
});
|
|
4934
5797
|
|
|
4935
|
-
// src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
|
|
4936
|
-
var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
|
|
4937
|
-
function isGroupExecution(inputs) {
|
|
4938
|
-
return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
|
|
4939
|
-
}
|
|
4940
|
-
function requireGroupExecutionParams(inputs) {
|
|
4941
|
-
const coreAddress = String(inputs.groupCoreAddress || "").trim();
|
|
4942
|
-
if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
|
|
4943
|
-
const title = String(inputs.proposalTitle || "").trim();
|
|
4944
|
-
if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
|
|
4945
|
-
const description = String(inputs.proposalDescription || "").trim();
|
|
4946
|
-
if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
|
|
4947
|
-
return { coreAddress, title, description };
|
|
4948
|
-
}
|
|
4949
|
-
async function proposeGroupExecution(ctx, params) {
|
|
4950
|
-
const handlers = ctx.handlers;
|
|
4951
|
-
if (!handlers?.createGroupExecutionProposal) {
|
|
4952
|
-
throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
|
|
4953
|
-
}
|
|
4954
|
-
const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent } = params;
|
|
4955
|
-
const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
|
|
4956
|
-
coreAddress,
|
|
4957
|
-
title,
|
|
4958
|
-
description,
|
|
4959
|
-
msgs
|
|
4960
|
-
});
|
|
4961
|
-
if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
|
|
4962
|
-
throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
|
|
4963
|
-
}
|
|
4964
|
-
return {
|
|
4965
|
-
output: {
|
|
4966
|
-
...expectedOutput,
|
|
4967
|
-
groupExecution: true,
|
|
4968
|
-
groupCoreAddress: coreAddress,
|
|
4969
|
-
groupProposalId: String(proposalId),
|
|
4970
|
-
groupProposalContractAddress: String(proposalContractAddress || ""),
|
|
4971
|
-
proposalTitle: title,
|
|
4972
|
-
proposalDescription: description
|
|
4973
|
-
},
|
|
4974
|
-
completion: {
|
|
4975
|
-
state: "awaiting_readback",
|
|
4976
|
-
readBack: {
|
|
4977
|
-
kind: GROUP_PROPOSAL_READBACK_KIND,
|
|
4978
|
-
proposalId: String(proposalId),
|
|
4979
|
-
proposalContractAddress: String(proposalContractAddress || ""),
|
|
4980
|
-
coreAddress,
|
|
4981
|
-
expectedOutput,
|
|
4982
|
-
...completionEvent ? { completionEvent } : {},
|
|
4983
|
-
...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
|
|
4984
|
-
}
|
|
4985
|
-
}
|
|
4986
|
-
};
|
|
4987
|
-
}
|
|
4988
|
-
|
|
4989
5798
|
// src/core/lib/actionRegistry/actions/bid/bid.ts
|
|
4990
5799
|
function normalizeBidRole(role) {
|
|
4991
5800
|
const normalized = String(role || "").trim().toLowerCase();
|
|
@@ -5043,6 +5852,7 @@ registerAction({
|
|
|
5043
5852
|
if (isGroupExecution(inputs)) {
|
|
5044
5853
|
const { coreAddress, title, description } = requireGroupExecutionParams(inputs);
|
|
5045
5854
|
return proposeGroupExecution(ctx, {
|
|
5855
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5046
5856
|
coreAddress,
|
|
5047
5857
|
title,
|
|
5048
5858
|
description,
|
|
@@ -5207,6 +6017,7 @@ registerAction({
|
|
|
5207
6017
|
maxAmounts: Array.isArray(maxAmounts) ? maxAmounts : void 0
|
|
5208
6018
|
});
|
|
5209
6019
|
return proposeGroupExecution(ctx, {
|
|
6020
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5210
6021
|
coreAddress,
|
|
5211
6022
|
title,
|
|
5212
6023
|
description,
|
|
@@ -5219,6 +6030,7 @@ registerAction({
|
|
|
5219
6030
|
const reason = String(inputs.reason || "").trim();
|
|
5220
6031
|
if (!reason) throw new Error("reason is required when decision is reject");
|
|
5221
6032
|
return proposeGroupExecution(ctx, {
|
|
6033
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5222
6034
|
coreAddress,
|
|
5223
6035
|
title,
|
|
5224
6036
|
description,
|
|
@@ -5419,6 +6231,7 @@ registerAction({
|
|
|
5419
6231
|
const claimId2 = String(prepared?.claimId || "").trim();
|
|
5420
6232
|
if (!claimId2) throw new Error("prepareGroupClaimSubmission returned no claim identifier");
|
|
5421
6233
|
return proposeGroupExecution(ctx, {
|
|
6234
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5422
6235
|
coreAddress,
|
|
5423
6236
|
title,
|
|
5424
6237
|
description,
|
|
@@ -5803,6 +6616,7 @@ registerAction({
|
|
|
5803
6616
|
} catch {
|
|
5804
6617
|
}
|
|
5805
6618
|
return proposeGroupExecution(ctx, {
|
|
6619
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
5806
6620
|
coreAddress,
|
|
5807
6621
|
title,
|
|
5808
6622
|
description,
|
|
@@ -5980,7 +6794,12 @@ registerAction({
|
|
|
5980
6794
|
coreAddress: { type: "string", description: "The DAO core contract address." },
|
|
5981
6795
|
title: { type: "string", description: "The proposal title." },
|
|
5982
6796
|
description: { type: "string", description: "The proposal description." },
|
|
5983
|
-
actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." }
|
|
6797
|
+
actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." },
|
|
6798
|
+
voteOnSubmission: {
|
|
6799
|
+
type: "string",
|
|
6800
|
+
enum: ["", "yes", "no", "abstain"],
|
|
6801
|
+
description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
|
|
6802
|
+
}
|
|
5984
6803
|
}
|
|
5985
6804
|
},
|
|
5986
6805
|
outputSchema: [
|
|
@@ -6025,13 +6844,15 @@ registerAction({
|
|
|
6025
6844
|
const { proposalContractAddress } = await handlers.getProposalContractAddress({
|
|
6026
6845
|
coreAddress
|
|
6027
6846
|
});
|
|
6847
|
+
const autoVote = autoVoteFromInputs(inputs);
|
|
6028
6848
|
const params = {
|
|
6029
6849
|
preProposalContractAddress,
|
|
6030
6850
|
title,
|
|
6031
6851
|
description,
|
|
6032
6852
|
actions: actions.length > 0 ? actions : void 0,
|
|
6033
6853
|
coreAddress,
|
|
6034
|
-
groupContractAddress
|
|
6854
|
+
groupContractAddress,
|
|
6855
|
+
...autoVote ? { autoVote } : {}
|
|
6035
6856
|
};
|
|
6036
6857
|
const proposalId = await handlers.createProposal(params);
|
|
6037
6858
|
return {
|
|
@@ -8206,6 +9027,7 @@ registerAction({
|
|
|
8206
9027
|
params: createParams
|
|
8207
9028
|
});
|
|
8208
9029
|
return proposeGroupExecution(ctx, {
|
|
9030
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
8209
9031
|
coreAddress,
|
|
8210
9032
|
title,
|
|
8211
9033
|
description,
|
|
@@ -8274,6 +9096,7 @@ registerAction({
|
|
|
8274
9096
|
params: { ...inputs, collectionId, adminAddress }
|
|
8275
9097
|
});
|
|
8276
9098
|
return proposeGroupExecution(ctx, {
|
|
9099
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
8277
9100
|
coreAddress,
|
|
8278
9101
|
title,
|
|
8279
9102
|
description,
|
|
@@ -8646,6 +9469,7 @@ registerAction({
|
|
|
8646
9469
|
msgs.push(...prepared.msgs || []);
|
|
8647
9470
|
}
|
|
8648
9471
|
return proposeGroupExecution(ctx, {
|
|
9472
|
+
autoVote: autoVoteFromInputs(inputs),
|
|
8649
9473
|
coreAddress,
|
|
8650
9474
|
title,
|
|
8651
9475
|
description,
|
|
@@ -13237,4 +14061,4 @@ export {
|
|
|
13237
14061
|
formatCoin,
|
|
13238
14062
|
formatCoinAmount
|
|
13239
14063
|
};
|
|
13240
|
-
//# sourceMappingURL=chunk-
|
|
14064
|
+
//# sourceMappingURL=chunk-YC6BYZJZ.js.map
|