Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missed AnchoredBundle type in STL library #177

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 4 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/stl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,29 @@
pub use aluvm::stl::aluvm_stl;
pub use bp::bc::stl::bp_tx_stl;
pub use bp::stl::bp_core_stl;
use commit_verify::stl::commit_verify_stl;
use strict_types::stl::{std_stl, strict_types_stl};
use strict_types::typelib::LibBuilder;
use strict_types::{CompileError, TypeLib};

use crate::{Extension, Genesis, SubSchema, TransitionBundle, LIB_NAME_RGB};
use crate::{AnchoredBundle, Extension, Genesis, SubSchema, TransitionBundle, LIB_NAME_RGB};

/// Strict types id for the library providing data types for RGB consensus.
pub const LIB_ID_RGB: &str =
"urn:ubideco:stl:4fGZWR5mH5zZzRZ1r7CSRe776zm3hLBUngfXc4s3vm3V#saturn-flash-emerald";
"urn:ubideco:stl:8yC4CaGQwoBm8tANZDkVe4gFP5dtpQD7Z4jJ4VSgAEkE#parker-strange-orinoco";

fn _rgb_core_stl() -> Result<TypeLib, CompileError> {
LibBuilder::new(libname!(LIB_NAME_RGB), tiny_bset! {
std_stl().to_dependency(),
strict_types_stl().to_dependency(),
commit_verify_stl().to_dependency(),
bp_tx_stl().to_dependency(),
bp_core_stl().to_dependency(),
aluvm_stl().to_dependency()
})
.transpile::<SubSchema>()
.transpile::<Genesis>()
.transpile::<AnchoredBundle>()
.transpile::<TransitionBundle>()
.transpile::<Extension>()
.compile()
Expand Down
Loading
Loading