Skip to content

Commit

Permalink
chore: use new DBC method APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 12, 2024
1 parent c2a7ff7 commit c7fe4e7
Show file tree
Hide file tree
Showing 10 changed files with 263 additions and 261 deletions.
15 changes: 5 additions & 10 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,10 @@ wasm-bindgen-test = "0.3"

[package.metadata.docs.rs]
features = ["all"]

[patch.crates-io]
bp-consensus = { git = "https://github.com/BP-WG/bp-core", branch = "methods" }
bp-dbc = { git = "https://github.com/BP-WG/bp-core", branch = "methods" }
bp-seals = { git = "https://github.com/BP-WG/bp-core", branch = "methods" }
bp-core = { git = "https://github.com/BP-WG/bp-core", branch = "methods" }
rgb-core = { git = "https://github.com/RGB-WG/rgb-core", branch = "methods" }
2 changes: 1 addition & 1 deletion src/containers/anchors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl<D: dbc::Proof> ClientBundle<D> {
///
/// Panics if DBC proof and bundle have different closing methods
pub fn new(mpc_proof: mpc::MerkleProof, dbc_proof: D, bundle: TransitionBundle) -> Self {
assert_eq!(D::METHOD, bundle.close_method);
assert_eq!(dbc_proof.method(), bundle.close_method);
Self {
mpc_proof,
dbc_proof,
Expand Down
4 changes: 2 additions & 2 deletions src/stl/stl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use crate::LIB_NAME_RGB_STD;
/// Strict types id for the library providing standard data types which may be
/// used in RGB smart contracts.
pub const LIB_ID_RGB_STORAGE: &str =
"stl:7gJzyOSk-9kGbkdS-oKUNJvS-tk6p!Hw-!uhig0T-fkZgi4g#serial-cake-educate";
"stl:t8loV$Vb-Z8hGMSi-pC9dCUe-Lpy$rm8-CGtTeJa-6ll2sCk#guest-infant-crash";

/// Strict types id for the library providing standard data types which may be
/// used in RGB smart contracts.
Expand All @@ -50,7 +50,7 @@ pub const LIB_ID_RGB_CONTRACT: &str =

/// Strict types id for the library representing of RGB StdLib data types.
pub const LIB_ID_RGB_STD: &str =
"stl:xjwnXqkB-dTDlmmW-QIpkDHJ-$!ERsTT-Tdsz4MM-7JIQTT8#jessica-tropic-song";
"stl:JhUC5JgH-Kwps4cO-ZNUklUj-UP6boFp-OY!18Kx-xOSJaVQ#hair-magnum-helena";

fn _rgb_std_stl() -> Result<TypeLib, CompileError> {
LibBuilder::new(libname!(LIB_NAME_RGB_STD), tiny_bset! {
Expand Down
126 changes: 63 additions & 63 deletions stl/[email protected]

Large diffs are not rendered by default.

Binary file modified stl/[email protected]
Binary file not shown.
70 changes: 35 additions & 35 deletions stl/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-
Id: stl:xjwnXqkB-dTDlmmW-QIpkDHJ-$!ERsTT-Tdsz4MM-7JIQTT8#jessica-tropic-song
Id: stl:JhUC5JgH-Kwps4cO-ZNUklUj-UP6boFp-OY!18Kx-xOSJaVQ#hair-magnum-helena
Name: RGBStd
Version: 0.11.0
Description: RGB standard library
Expand All @@ -11,32 +11,7 @@
@context
typelib RGBStd

import StrictTypes#century-comrade-chess
use VariantName#theory-austin-before
use FieldName#present-flute-herman
use Primitive#deliver-arrow-boxer
use TySemId#popcorn-super-young
use FieldSemId#spiral-road-marco
use TypeName#edgar-carol-mystery
use UnnamedFieldsSemId#freedom-degree-gregory
use SemId#logic-absorb-hilton
use Variant#humor-regard-promise
use Sizing#courage-alien-salon
use NamedFieldsSemId#solar-salad-smoke
use EnumVariants#dispute-natasha-vega
use VariantInfoSemId#museum-edward-mirror
use UnionVariantsSemId#santana-address-pepper
use TypeSystem#adrian-boris-sponsor
import AluVM#congo-archive-folio
use Lib#gate-biology-optimal
use LibSite#ultra-grace-message
use IsaName#taboo-olympic-cloud
use LibId#germany-culture-olivia
use IsaSeg#size-shake-olga
use LibSeg#lemon-philips-horse
import RGBCommit#tuna-safari-design
import RGBCommit#harvest-person-orion
use ExtensionSchema#active-eddie-empty
use BundleId#carmen-farmer-diesel
use AttachState#lady-japan-fiesta
Expand Down Expand Up @@ -106,15 +81,24 @@ import RGBCommit#tuna-safari-design
use RevealedData#olivia-copper-stamp
use AssignRevealedValueBlindSealTxid#photo-jump-silicon

import CommitVerify#miller-pancake-elastic
use MerkleHash#horse-popcorn-bundle
use MerkleProof#price-aloha-grid
use ReservedBytes1#origin-roger-relax
use ReservedBytes2#florida-libra-circus
use ReservedBytes4#young-goblin-academy
use ReservedBytes8#rudolf-tape-adrian
import StrictTypes#century-comrade-chess
use VariantName#theory-austin-before
use FieldName#present-flute-herman
use Primitive#deliver-arrow-boxer
use TySemId#popcorn-super-young
use FieldSemId#spiral-road-marco
use TypeName#edgar-carol-mystery
use UnnamedFieldsSemId#freedom-degree-gregory
use SemId#logic-absorb-hilton
use Variant#humor-regard-promise
use Sizing#courage-alien-salon
use NamedFieldsSemId#solar-salad-smoke
use EnumVariants#dispute-natasha-vega
use VariantInfoSemId#museum-edward-mirror
use UnionVariantsSemId#santana-address-pepper
use TypeSystem#adrian-boris-sponsor

import BPCore#totem-holiday-helena
import BPCore#austin-story-retro
use TapretNodePartner#roger-member-educate
use TapretProof#marco-border-sample
use TapretPathProof#kiwi-mirror-paris
Expand All @@ -126,6 +110,22 @@ import BPCore#totem-holiday-helena
use BlindSealTxid#media-judge-anita
use TxPtr#italian-july-eddie

import AluVM#congo-archive-folio
use Lib#gate-biology-optimal
use LibSite#ultra-grace-message
use IsaName#taboo-olympic-cloud
use LibId#germany-culture-olivia
use IsaSeg#size-shake-olga
use LibSeg#lemon-philips-horse

import CommitVerify#miller-pancake-elastic
use MerkleHash#horse-popcorn-bundle
use MerkleProof#price-aloha-grid
use ReservedBytes1#origin-roger-relax
use ReservedBytes2#florida-libra-circus
use ReservedBytes4#young-goblin-academy
use ReservedBytes8#rudolf-tape-adrian

import Std#ralph-blue-lucky
use AlphaCaps#picnic-soprano-aurora
use AsciiPrintable#ultra-sunset-format
Expand Down
Loading

0 comments on commit c7fe4e7

Please sign in to comment.