From b234c4a4cc9d417cd0f051c40359babe5562d82b Mon Sep 17 00:00:00 2001 From: Matthew Witkowski Date: Thu, 30 May 2024 11:20:00 -0400 Subject: [PATCH] Add additional stargate queries. --- internal/provwasm/stargate_whitelist.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/internal/provwasm/stargate_whitelist.go b/internal/provwasm/stargate_whitelist.go index 0f7748902..4ba0321b7 100644 --- a/internal/provwasm/stargate_whitelist.go +++ b/internal/provwasm/stargate_whitelist.go @@ -24,6 +24,8 @@ import ( msgfeestypes "github.com/provenance-io/provenance/x/msgfees/types" nametypes "github.com/provenance-io/provenance/x/name/types" oracletypes "github.com/provenance-io/provenance/x/oracle/types" + "github.com/provenance-io/provenance/x/quarantine" + "github.com/provenance-io/provenance/x/sanction" triggertypes "github.com/provenance-io/provenance/x/trigger/types" ) @@ -65,6 +67,17 @@ func init() { setWhitelistedQuery("/cosmos.gov.v1beta1.Query/Params", &govtypes.QueryParamsResponse{}) setWhitelistedQuery("/cosmos.gov.v1beta1.Query/Vote", &govtypes.QueryVoteResponse{}) + // quarantine + setWhitelistedQuery("/cosmos.quarantine.v1beta1.Query/IsQuarantined", &quarantine.QueryIsQuarantinedResponse{}) + setWhitelistedQuery("/cosmos.quarantine.v1beta1.Query/QuarantinedFunds", &quarantine.QueryQuarantinedFundsResponse{}) + setWhitelistedQuery("/cosmos.quarantine.v1beta1.Query/AutoResponses", &quarantine.QueryAutoResponsesResponse{}) + + // sanction + setWhitelistedQuery("/cosmos.sanction.v1beta1.Query/IsSanctioned", &sanction.QueryIsSanctionedResponse{}) + setWhitelistedQuery("/cosmos.sanction.v1beta1.Query/SanctionedAddresses", &sanction.QuerySanctionedAddressesResponse{}) + setWhitelistedQuery("/cosmos.sanction.v1beta1.Query/TemporaryEntries", &sanction.QueryTemporaryEntriesResponse{}) + setWhitelistedQuery("/cosmos.sanction.v1beta1.Query/Params", &sanction.QueryParamsResponse{}) + // slashing setWhitelistedQuery("/cosmos.slashing.v1beta1.Query/Params", &slashingtypes.QueryParamsResponse{}) setWhitelistedQuery("/cosmos.slashing.v1beta1.Query/SigningInfo", &slashingtypes.QuerySigningInfoResponse{})