multiversx_sc/abi/
build_info_abi.rs#[derive(Clone, Default, Debug)]
pub struct BuildInfoAbi {
pub contract_crate: ContractCrateBuildAbi,
pub framework: FrameworkBuildAbi,
}
#[derive(Clone, Default, Debug)]
pub struct ContractCrateBuildAbi {
pub name: &'static str,
pub version: &'static str,
pub git_version: &'static str,
}
#[derive(Clone, Default, Debug)]
pub struct FrameworkBuildAbi {
pub name: &'static str,
pub version: &'static str,
}
impl FrameworkBuildAbi {
pub fn create() -> Self {
FrameworkBuildAbi {
name: env!("CARGO_PKG_NAME"),
version: env!("CARGO_PKG_VERSION"),
}
}
}