cosmos-rust icon indicating copy to clipboard operation
cosmos-rust copied to clipboard

Querying `minimum_gas_price`

Open daniel-savu opened this issue 2 years ago • 3 comments

Hi, I'm trying to query the minimum_gas_price configured by the node, as added in https://github.com/cosmos/cosmos-sdk/pull/13485 at /cosmos/base/node/v1beta1/config.

I noticed the protobuf methods are already in place here: https://github.com/cosmos/cosmos-rust/blob/main/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.node.v1beta1.tonic.rs

However it doesn't look like this is exposed in cosmos-sdk-proto. Is this rpc call currently supported in cosmrs?

daniel-savu avatar Dec 06 '23 14:12 daniel-savu

Doesn't look like that one is wired up yet. The re-exports happen here: https://github.com/cosmos/cosmos-rust/blob/main/cosmos-sdk-proto/src/lib.rs

tony-iqlusion avatar Dec 06 '23 15:12 tony-iqlusion

Are there any plans to export this in the near future? Happy to open a PR myself if needed

daniel-savu avatar Dec 06 '23 15:12 daniel-savu

Please do!

tony-iqlusion avatar Dec 06 '23 15:12 tony-iqlusion

It should be available here now:

https://docs.rs/cosmos-sdk-proto/0.24.0/cosmos_sdk_proto/cosmos/base/node/v1beta1/service_client/struct.ServiceClient.html#method.config

https://docs.rs/cosmos-sdk-proto/0.24.0/cosmos_sdk_proto/cosmos/base/node/v1beta1/struct.ConfigResponse.html#structfield.minimum_gas_price

tony-iqlusion avatar Aug 14 '24 21:08 tony-iqlusion