cosm_utils/config/
cfg.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4// TODO: Create a way to use the cosmos chain registry instead of manual
5
6#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq)]
7pub struct ChainConfig {
8    /// example: uatom
9    pub denom: String,
10    /// example: cosmos
11    pub prefix: String,
12    /// example: cosmoshub-4
13    pub chain_id: String,
14    /// example: m/44'/118'/0'/0/0
15    pub derivation_path: String,
16    /// example: 0.025
17    pub gas_price: f64,
18    /// example: 1.3
19    pub gas_adjustment: f64,
20}