1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
// expose web3 types
pub mod web3 {
pub use web3::types::*;
}
pub mod ethereum {
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub(crate) struct GasPrice {
pub(crate) code: i32,
pub(crate) data: GasPriceData,
}
#[derive(Debug, Serialize, Deserialize)]
pub(crate) struct GasPriceData {
pub(crate) rapid: u64,
pub(crate) fast: u64,
pub(crate) slow: u64,
pub(crate) standard: u64,
pub(crate) timestamp: u64,
}
}