1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use bigdecimal::BigDecimal;
use serde::Deserialize;

#[derive(Debug, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
#[allow(dead_code)]
pub struct Fee {
  pub network_fee: Option<BigDecimal>,
  pub gas_price: Option<BigDecimal>,
  pub fee_per_byte: Option<BigDecimal>,
  pub base_fee: Option<BigDecimal>,
  pub priority_fee: Option<BigDecimal>,
}

#[derive(Debug, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
#[allow(dead_code)]
pub struct EstimateFee {
  pub low: Fee,
  pub medium: Fee,
  pub high: Fee,
}