Skip to content

Commit afe2b9f

Browse files
authored
Merge pull request #109 from RGB-WG/v0.11
Support asset tag and fungible blinding factors in the APIs
2 parents e57c206 + 982d1be commit afe2b9f

15 files changed

+741
-518
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,6 @@ wasm-bindgen-test = "0.3"
8282

8383
[package.metadata.docs.rs]
8484
features = [ "all" ]
85+
86+
[patch.crates-io]
87+
rgb-core = { git = "https://github.com/RGB-WG/rgb-core", branch = "v0.11" }

src/containers/consignment.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub struct Consignment<const TYPE: bool> {
8888
pub supplements: TinyOrdSet<ContractSuppl>,
8989

9090
/// Confidential asset tags.
91-
pub asset_tags: SmallOrdMap<AssignmentType, AssetTag>,
91+
pub asset_tags: TinyOrdMap<AssignmentType, AssetTag>,
9292

9393
/// Genesis data.
9494
pub genesis: Genesis,
@@ -119,7 +119,11 @@ impl<const TYPE: bool> Consignment<TYPE> {
119119
/// # Panics
120120
///
121121
/// If the provided schema is not the one which is used by genesis.
122-
pub fn new(schema: SubSchema, genesis: Genesis) -> Self {
122+
pub fn new(
123+
schema: SubSchema,
124+
genesis: Genesis,
125+
asset_tags: TinyOrdMap<AssignmentType, AssetTag>,
126+
) -> Self {
123127
assert_eq!(schema.schema_id(), genesis.schema_id);
124128
Consignment {
125129
validation_status: None,
@@ -128,7 +132,7 @@ impl<const TYPE: bool> Consignment<TYPE> {
128132
schema,
129133
ifaces: none!(),
130134
supplements: none!(),
131-
asset_tags: none!(),
135+
asset_tags,
132136
genesis,
133137
terminals: none!(),
134138
bundles: none!(),

0 commit comments

Comments
 (0)