InjectiveLabs / cw-injective

Apache License 2.0
22 stars 24 forks source link

Can you add the mint module to injective-std? #200

Closed Philipp-Sc closed 1 month ago

Philipp-Sc commented 10 months ago

Right now I am unable to handle governance proposals containing MsgUpdateParams /cosmos.mint.v1beta1.MsgUpdateParams

maxrobot commented 8 months ago

@Philipp-Sc you can just define the message type and do a governance action with it, e.g.

#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
    Clone,
    PartialEq,
    Eq,
    ::prost::Message,
    ::serde::Serialize,
    ::serde::Deserialize,
    ::schemars::JsonSchema,
)]
pub struct MsgCreateSpotLimitOrder {
    #[prost(string, tag = "1")]
    pub sender: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub order: ::core::option::Option<SpotOrder>,
}

Unless I am missing something then you could make a MsgUpdateParams type as above and then submit it in your SC or test-tube tests.