Skip to content

Commit

Permalink
Merge pull request #265 from RGB-WG/movearound
Browse files Browse the repository at this point in the history
Re-order modules and re-name data types
  • Loading branch information
dr-orlovsky authored Aug 9, 2024
2 parents e24c3d9 + a71b1e7 commit 8af3baf
Show file tree
Hide file tree
Showing 31 changed files with 940 additions and 906 deletions.
321 changes: 0 additions & 321 deletions src/contract/seal.rs

This file was deleted.

5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern crate commit_verify;
extern crate serde_crate as serde;
extern crate core;

mod contract;
mod operation;
pub mod schema;
pub mod validation;
#[macro_use]
Expand All @@ -54,8 +54,9 @@ pub mod stl;

pub mod prelude {
pub use commit_verify::ReservedBytes;
pub use contract::*;
pub use operation::*;
pub use schema::*;
pub use vm::XWitnessId;

#[cfg(feature = "stl")]
pub use super::stl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use commit_verify::{Conceal, ReservedBytes};
use strict_encoding::{StrictDumb, StrictEncode};

use super::ExposedState;
use crate::contract::seal::GenesisSeal;
use crate::operation::seal::GenesisSeal;
use crate::{
AssignmentType, ExposedSeal, GraphSeal, RevealedAttach, RevealedData, RevealedValue,
SecretSeal, StateType, VoidState, XChain, LIB_NAME_RGB_COMMIT,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/contract/mod.rs → src/operation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ pub use fungible::{
pub use global::{GlobalState, GlobalValues};
pub use meta::{MetaValue, Metadata, MetadataError};
pub use operations::{
AssetTags, Extension, Genesis, Identity, Input, Inputs, OpRef, Operation, Opout,
OpoutParseError, Redeemed, Transition, Valencies,
AssetTags, Extension, Genesis, Identity, Input, Inputs, Operation, Opout, OpoutParseError,
Redeemed, Transition, Valencies,
};
pub use seal::{
ExposedSeal, GenesisSeal, GraphSeal, OutputSeal, SecretSeal, TxoSeal, WitnessOrd, WitnessPos,
XGenesisSeal, XGraphSeal, XOutputSeal, XWitnessId, XWitnessTx,
ExposedSeal, GenesisSeal, GraphSeal, OutputSeal, SecretSeal, TxoSeal, XGenesisSeal, XGraphSeal,
XOutputSeal,
};
pub use state::{ConcealedState, ConfidentialState, ExposedState, RevealedState, StateType};
pub use xchain::{
Expand Down
Loading

0 comments on commit 8af3baf

Please sign in to comment.