osmosis icon indicating copy to clipboard operation
osmosis copied to clipboard

Update Whitelist for Stargate Query to use Inferred value

Open mattverse opened this issue 3 years ago • 2 comments

Background

Currently Stargate Querier Whitelist keeps a hard coded map of whitelist, using query path as keys, and the actual response proto struct as the value for the map.

For those queries we do want to whitelist, we have to go through the process of hard coding the whitelist map manually.

Suggested Design

The values we are hard coding right now should be able to be inferred using the auto generated proto files, we can create a method to extract the query path and the correct proto struct from the query.pb.go files. The implementation of this might differ depending on how we extract and infer values from the query.pb.go files, it'd be best IMO if we can infer the query path when we simply have a list of response structs.

mattverse avatar Sep 07 '22 05:09 mattverse

Does this issue have been assigned sir @mattverse

ThanhNhann avatar Oct 04 '22 09:10 ThanhNhann

@ThanhNhann Please go ahead! This would be an awesome feature to have!

mattverse avatar Oct 06 '22 05:10 mattverse

I believe this was fixed?

ValarDragon avatar Mar 18 '24 16:03 ValarDragon