Skip to content

Commit

Permalink
chore: update for asset tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Apr 11, 2024
1 parent cecebe5 commit ad18a86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ bp-std = { git = "https://github.com/BP-WG/bp-std", branch = "v0.11" }
psbt = { git = "https://github.com/BP-WG/bp-std", branch = "v0.11" }
descriptors = { git = "https://github.com/BP-WG/bp-std", branch = "v0.11" }
bp-wallet = { git = "https://github.com/BP-WG/bp-wallet", branch = "v0.11" }
rgb-core = { git = "https://github.com/RGB-WG/rgb-core", branch = "v0.11" }
rgb-std = { git = "https://github.com/RGB-WG/rgb-std", branch = "v0.11" }
rgb-invoice = { git = "https://github.com/RGB-WG/rgb-std", branch = "v0.11" }
rgb-core = { git = "https://github.com/RGB-WG/rgb-core", branch = "asset_tags" }
rgb-std = { git = "https://github.com/RGB-WG/rgb-std", branch = "asset_tags" }
rgb-invoice = { git = "https://github.com/RGB-WG/rgb-std", branch = "asset_tags" }
9 changes: 1 addition & 8 deletions cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use rgbstd::persistence::{Inventory, Stash};
use rgbstd::schema::SchemaId;
use rgbstd::validation::Validity;
use rgbstd::vm::RgbIsa;
use rgbstd::{AssetTag, AssignmentType, BundleId, OutputSeal, XChain, XOutputSeal};
use rgbstd::{BundleId, OutputSeal, XChain, XOutputSeal};
use seals::txout::CloseMethod;
use serde_crate::{Deserialize, Serialize};
use strict_types::encoding::{FieldName, TypeName};
Expand Down Expand Up @@ -784,7 +784,6 @@ impl Exec for RgbArgs {
pub struct ConsignmentInspection {
version: ContainerVer,
transfer: bool,
asset_tags: TinyOrdMap<AssignmentType, AssetTag>,
terminals: SmallOrdMap<BundleId, Terminal>,
supplements: TinyOrdSet<ContractSuppl>,
signatures: TinyOrdMap<ContentId, ContentSigs>,
Expand Down Expand Up @@ -838,7 +837,6 @@ impl Exec for RgbArgs {
let contract = ConsignmentInspection {
version: contract.version,
transfer: contract.transfer,
asset_tags: contract.asset_tags,
terminals: contract.terminals,
supplements: contract.supplements,
signatures: contract.signatures,
Expand Down Expand Up @@ -925,11 +923,6 @@ impl Exec for RgbArgs {
serde_yaml::to_string(suppl)?,
)?;
}
let tags = runtime.contract_asset_tags(id)?;
fs::write(
format!("{root_dir}/stash/geneses/{id}.tags.yaml"),
serde_yaml::to_string(tags)?,
)?;
}
for id in runtime.bundle_ids()? {
fs::write(
Expand Down

0 comments on commit ad18a86

Please sign in to comment.