use dbc::LIB_NAME_BPCORE;
use strict_types::{CompileError, LibBuilder, TypeLib};
pub const LIB_ID_BPCORE: &str =
"stl:nvSE47Z1-CpbRP8D-m2tdzo3-zmE6UE9-kU~HJm~-0pTqlGo#lagoon-concept-trade";
#[allow(clippy::result_large_err)]
fn _bp_core_stl() -> Result<TypeLib, CompileError> {
LibBuilder::with(libname!(LIB_NAME_BPCORE), [
strict_types::stl::std_stl().to_dependency_types(),
bc::stl::bp_consensus_stl().to_dependency_types(),
commit_verify::stl::commit_verify_stl().to_dependency_types(),
])
.transpile::<seals::TxoSeal>()
.transpile::<seals::WTxoSeal>()
.transpile::<seals::Anchor>()
.transpile::<seals::mpc::Source>()
.compile()
}
pub fn bp_core_stl() -> TypeLib { _bp_core_stl().expect("invalid strict type BPCore library") }
#[cfg(test)]
mod test {
#![cfg_attr(coverage_nightly, coverage(off))]
use super::*;
#[test]
fn lib_id() {
let lib = bp_core_stl();
assert_eq!(lib.id().to_string(), LIB_ID_BPCORE);
}
}