Skip to content

Commit

Permalink
chore: stargate whitelist denom trace query (osmosis-labs#4498)
Browse files Browse the repository at this point in the history
* stargate whitelist denom trace query

* update queries count by one
  • Loading branch information
czarcas7ic authored Mar 6, 2023
1 parent b8e84ea commit 0118209
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/upgrades/v15/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (suite *UpgradeTestSuite) TestSetICQParams() {
v15.SetICQParams(suite.Ctx, suite.App.ICQKeeper)

suite.Require().True(suite.App.ICQKeeper.IsHostEnabled(suite.Ctx))
suite.Require().Len(suite.App.ICQKeeper.GetAllowQueries(suite.Ctx), 64)
suite.Require().Len(suite.App.ICQKeeper.GetAllowQueries(suite.Ctx), 65)
}

func (suite *UpgradeTestSuite) TestSetRateLimits() {
Expand Down
4 changes: 4 additions & 0 deletions wasmbinding/stargate_whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"

downtimequerytypes "github.com/osmosis-labs/osmosis/v15/x/downtime-detector/client/queryproto"
epochtypes "github.com/osmosis-labs/osmosis/v15/x/epochs/types"
Expand Down Expand Up @@ -40,6 +41,9 @@ var stargateWhitelist sync.Map

//nolint:staticcheck
func init() {
// ibc queries
setWhitelistedQuery("/ibc.applications.transfer.v1.Query/DenomTrace", &ibctransfertypes.QueryDenomTraceResponse{})

// cosmos-sdk queries

// auth
Expand Down

0 comments on commit 0118209

Please sign in to comment.