pub async fn create_parameter_change_proposal(
    contact: &Contact,
    key: CosmosPrivateKey,
    deposit: Coin,
    params_to_change: Vec<ParamChange>,
) {
    let proposal = ParameterChangeProposal {
        title: "Set gravity settings!".to_string(),
        description: "test proposal".to_string(),
        changes: params_to_change,
    };
    let any = encode_any(
        proposal,
        "/cosmos.params.v1beta1.ParameterChangeProposal".to_string(),
    );

    let res = contact
        .create_gov_proposal(any, deposit, get_fee(), key, Some(TOTAL_TIMEOUT))
        .await
        .unwrap();
    trace!("Gov proposal submitted with {:?}", res);
    let res = contact.wait_for_tx(res, TOTAL_TIMEOUT).await.unwrap();
    trace!("Gov proposal executed with {:?}", res);
}
/// Creates a proposal to change the params of our test chain
Creates a proposal to change the params of our test chain
Creates a proposal to change the params of our test chain
pub async fn create_parameter_change_proposal(
    contact: &Contact,
    key: CosmosPrivateKey,
    deposit: Coin,
    params_to_change: Vec<ParamChange>,
) {
    let proposal = ParameterChangeProposal {
        title: "Set gravity settings!".to_string(),
        description: "test proposal".to_string(),
        changes: params_to_change,
    };
    let any = encode_any(
        proposal,
        "/cosmos.params.v1beta1.ParameterChangeProposal".to_string(),
    );
    let res = contact
        .create_gov_proposal(any, deposit, get_fee(), key, Some(TOTAL_TIMEOUT))
        .await
        .unwrap();
    trace!("Gov proposal submitted with {:?}", res);
    let res = contact.wait_for_tx(res, TOTAL_TIMEOUT).await.unwrap();
    trace!("Gov proposal executed with {:?}", res);
}
pub async fn create_parameter_change_proposal ( contact : & Contact , key : CosmosPrivateKey , deposit : Coin , params_to_change : Vec < ParamChange > , ) { let proposal = ParameterChangeProposal { title : " " . to_string ( ) , description : " " . to_string ( ) , changes : params_to_change , } ; let any = encode_any ( proposal , " " . to_string ( ) , ) ; let res = contact . create_gov_proposal ( any , deposit , get_fee ( ) , key , Some ( TOTAL_TIMEOUT ) ) . await . unwrap ( ) ; trace ! ( " " res ) ; let res = contact . wait_for_tx ( res , TOTAL_TIMEOUT ) . await . unwrap ( ) ; trace ! ( " " res ) ; }
Creates a proposal to change the params of our test chain
Creates a proposal to change the params of our test chain
contact
&Contact
key
CosmosPrivateKey
deposit
Coin
params_to_change
Vec<ParamChange>
contact
&Contact
key
CosmosPrivateKey
deposit
Coin
params_to_change
Vec<ParamChange>