From fbed793ef87183d781a0fee3b6b4cf08e18f91f3 Mon Sep 17 00:00:00 2001 From: Aryan Shah <05aryanshah@gmail.com> Date: Tue, 29 Oct 2024 19:13:05 +0530 Subject: [PATCH] adding new proposal types --- queryengine/native/proposals.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/queryengine/native/proposals.go b/queryengine/native/proposals.go index 69725fb..75f91d3 100644 --- a/queryengine/native/proposals.go +++ b/queryengine/native/proposals.go @@ -70,6 +70,22 @@ func GetProposalMetadata(content *types1.Any) (BasicMetadata, error) { Title: metadata.GetTitle(), Description: metadata.GetDescription(), }, nil + // TODO ADD DESCRIPTIONS + case "/cosmos.gov.v1.MsgUpdateParams": + return BasicMetadata{ + Title: "Governance Update Params", + Description: "Lorem ipsum dolor sit amet, consectetur", + }, nil + case "/canto.govshuttle.v1.MsgLendingMarketProposal": + return BasicMetadata{ + Title: "Lending Market", + Description: "Lorem ipsum dolor sit amet, consectetur", + }, nil + case "/cosmos.slashing.v1beta1.MsgUpdateParams": + return BasicMetadata{ + Title: "Slashing Update Params", + Description: "Lorem ipsum dolor sit amet, consectetur", + }, nil default: return BasicMetadata{}, fmt.Errorf("Proposal type: %s not found", typeUrl) }