Neutron's proto-generated types and helpers for interacting with the appchain. Compatible with CosmWasm contract.
You can find all types and querier generated from Neutron's protobuf in their respective module in neutron_std
.
```rust use cosmwasmstd::{CosmosMsg, Response, Env}; use neutronstd::types::osmosis::tokenfactory::v1beta1::MsgCreateDenom;
// ..
pub fn trycreatedenom(env: Env, subdenom: String) -> Result
// construct message and convert them into cosmos message
// (notice `CosmosMsg` type and `.into()`)
let msg_create_denom: CosmosMsg = MsgCreateDenom { sender, subdenom }.into();
Ok(Response::new()
.add_message(msg_create_denom)
.add_attribute("method", "try_create_denom"))
}
```
Stargate queries are currently disabled on Neutron, but will be enabled in the future. For now, you can use the bindings in neutron-sdk
crate to query Neutron modules.