1package memba_weighted_host23func (h *Host) questConfigJSON() string {4 if h.questPolicy == nil {5 return ""6 }7 return `,"questPolicy":{"target":` + quoteJSON(QuestPath) + `,"successor":` + quoteJSON(string(h.questPolicy.Successor())) + `,"signerCategory":"critical","returnStagesOnly":true,"invalidatesOtherProposals":true}`8}9func questStateJSON(s QuestState) string {10 return `{"owner":` + quoteJSON(string(s.Owner)) + `,"pendingOwner":` + quoteJSON(string(s.PendingOwner)) + `,"signer":` + quoteJSON(s.Signer) + `}`11}12func questActionJSON(a QuestAction, s QuestState) string {13 return `{"type":"quest","target":` + quoteJSON(QuestPath) + `,"operation":` + quoteJSON(string(a.Kind())) + `,"signer":` + quoteJSON(a.Key()) + `,"recipient":` + quoteJSON(string(a.Recipient())) + `,"before":` + questStateJSON(s) + `}`14}15Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.