Unverified Commit 385abb8b authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Add tokenfactory and TWAP to query whitelist (#2677) (#2681)

(cherry picked from commit 85beb4f5

)

Co-authored-by: default avatarDev Ojha <ValarDragon@users.noreply.github.com>
parent 9513fd5f
Showing with 12 additions and 0 deletions
+12 -0
......@@ -20,6 +20,8 @@ import (
minttypes "github.com/osmosis-labs/osmosis/v12/x/mint/types"
poolincentivestypes "github.com/osmosis-labs/osmosis/v12/x/pool-incentives/types"
superfluidtypes "github.com/osmosis-labs/osmosis/v12/x/superfluid/types"
tokenfactorytypes "github.com/osmosis-labs/osmosis/v12/x/tokenfactory/types"
twapquerytypes "github.com/osmosis-labs/osmosis/v12/x/twap/client/queryproto"
txfeestypes "github.com/osmosis-labs/osmosis/v12/x/txfees/types"
)
......@@ -107,6 +109,16 @@ func init() {
setWhitelistedQuery("/osmosis.txfees.v1beta1.Query/DenomSpotPrice", &txfeestypes.QueryDenomSpotPriceResponse{})
setWhitelistedQuery("/osmosis.txfees.v1beta1.Query/DenomPoolId", &txfeestypes.QueryDenomPoolIdResponse{})
setWhitelistedQuery("/osmosis.txfees.v1beta1.Query/BaseDenom", &txfeestypes.QueryBaseDenomResponse{})
// tokenfactory
setWhitelistedQuery("/osmosis.tokenfactory.v1beta1.Query/params", &tokenfactorytypes.QueryParamsResponse{})
setWhitelistedQuery("/osmosis.tokenfactory.v1beta1.Query/DenomAuthorityMetadata", &tokenfactorytypes.QueryDenomAuthorityMetadataResponse{})
// Does not include denoms_from_creator, TBD if this is the index we want contracts to use instead of admin
// twap
setWhitelistedQuery("/osmosis.twap.v1beta1.Query/GetArithmeticTwap", &twapquerytypes.GetArithmeticTwapResponse{})
setWhitelistedQuery("/osmosis.twap.v1beta1.Query/GetArithmeticTwapToNow", &twapquerytypes.GetArithmeticTwapToNowResponse{})
// TODO: Add params query
}
// GetWhitelistedQuery returns the whitelisted query at the provided path.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment