#[subxt::subxt(
runtime_metadata_path = "src/cmd/extrinsics/runtime_api/contracts_runtime.scale"
)]
pub mod api {
#[subxt(substitute_type = "frame_support::weights::weight_v2::Weight")]
use crate::cmd::extrinsics::runtime_api::Weight;
}
#[derive(scale::Encode, scale::Decode, scale::CompactAs, Clone, Copy, Debug)]
pub struct Weight {
ref_time: u64,
}
impl ToString for Weight {
fn to_string(&self) -> String {
self.ref_time.to_string()
}
}
impl Weight {
pub fn from_ref_time(ref_time: u64) -> Self {
Self { ref_time }
}
}