cosm_tome_wasm_deploy_fork/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: "https://terra-testnet-rpc.polkachu.com"
17 pub rpc_endpoint: Option<String>,
18 /// example: "https://terra-testnet-grpc.polkachu.com:11790"
19 pub grpc_endpoint: Option<String>,
20 /// example: 0.025
21 pub gas_prices: f64,
22 /// example: 1.3
23 pub gas_adjustment: f64,
24}