Skip to content

Commit

Permalink
Update stargateQueryAllowlist compute queries
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Sep 8, 2022
1 parent af91aab commit 8bcf46c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions x/compute/internal/keeper/query_plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,13 @@ var stargateQueryAllowlist = map[string]bool{
"/ibc.applications.transfer.v1.Query/Params": true,
"/ibc.applications.transfer.v1.Query/DenomHash": true,

"/secret.compute.v1beta1.Query/ContractInfo": true,
"/secret.compute.v1beta1.Query/ContractsByCode": true,
"/secret.compute.v1beta1.Query/Codes": true,
"/secret.compute.v1beta1.Query/ContractInfo": true,
"/secret.compute.v1beta1.Query/ContractsByCodeID": true,
"/secret.compute.v1beta1.Query/Codes": true,
"/secret.compute.v1beta1.Query/CodeHashByContractAddress": true,
"/secret.compute.v1beta1.Query/CodeHashByCodeID": true,
"/secret.compute.v1beta1.Query/LabelByAddress": true,
"/secret.compute.v1beta1.Query/AddressByLabel": true,
}

func StargateQuerier(queryRouter GRPCQueryRouter) func(ctx sdk.Context, request *wasmTypes.StargateQuery) ([]byte, error) {
Expand Down

0 comments on commit 8bcf46c

Please sign in to comment.