From 5d7bd5e28f1bb52cc840804fb73ff540c600d18a Mon Sep 17 00:00:00 2001 From: Mykhailo Donchenko <91957742+Buckram123@users.noreply.github.com> Date: Fri, 18 Aug 2023 19:06:28 +0300 Subject: [PATCH] whitelist lockup query AccountLockedCoins (#5906) * whitelist AccountLockedCoins * update changelog * format changelog * add gov.query/proposal * remove query proposal from whitelist * summarize reply via comment --- CHANGELOG.md | 1 + wasmbinding/stargate_whitelist.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac9fcddda10..cf1431bdad1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### API breaks * [#6071](https://github.com/osmosis-labs/osmosis/pull/6071) reduce number of returns for UpdatePosition and TicksToSqrtPrice functions +* [#5906](https://github.com/osmosis-labs/osmosis/pull/5906) Add `AccountLockedCoins` query in lockup module to stargate whitelist. ## v17.0.0 diff --git a/wasmbinding/stargate_whitelist.go b/wasmbinding/stargate_whitelist.go index 6117b092530..ea1e7f44017 100644 --- a/wasmbinding/stargate_whitelist.go +++ b/wasmbinding/stargate_whitelist.go @@ -105,6 +105,8 @@ func init() { // lockup setWhitelistedQuery("/osmosis.lockup.Query/ModuleBalance", &lockuptypes.ModuleBalanceResponse{}) setWhitelistedQuery("/osmosis.lockup.Query/ModuleLockedAmount", &lockuptypes.ModuleLockedAmountResponse{}) + // Warning: it iterates over every single lock account has, which means this query can have unbounded gas + setWhitelistedQuery("/osmosis.lockup.Query/AccountLockedCoins", &lockuptypes.AccountLockedCoinsResponse{}) setWhitelistedQuery("/osmosis.lockup.Query/AccountUnlockableCoins", &lockuptypes.AccountUnlockableCoinsResponse{}) setWhitelistedQuery("/osmosis.lockup.Query/AccountUnlockingCoins", &lockuptypes.AccountUnlockingCoinsResponse{}) setWhitelistedQuery("/osmosis.lockup.Query/LockedDenom", &lockuptypes.LockedDenomResponse{})