diff --git a/contracts/okp4-cognitarium/src/contract.rs b/contracts/okp4-cognitarium/src/contract.rs index fadf535f..c97744d1 100644 --- a/contracts/okp4-cognitarium/src/contract.rs +++ b/contracts/okp4-cognitarium/src/contract.rs @@ -48,7 +48,7 @@ pub mod execute { use super::*; use crate::msg::DataFormat; use crate::rdf::TripleReader; - use crate::state::TripleStorer; + use crate::storer::TripleStorer; use std::io::BufReader; pub fn insert( diff --git a/contracts/okp4-cognitarium/src/lib.rs b/contracts/okp4-cognitarium/src/lib.rs index d43e0389..7728f722 100644 --- a/contracts/okp4-cognitarium/src/lib.rs +++ b/contracts/okp4-cognitarium/src/lib.rs @@ -3,5 +3,6 @@ mod error; pub mod msg; mod rdf; pub mod state; +mod storer; pub use crate::error::ContractError; diff --git a/contracts/okp4-cognitarium/src/state/mod.rs b/contracts/okp4-cognitarium/src/state/mod.rs index d74f0c28..e2f548f8 100644 --- a/contracts/okp4-cognitarium/src/state/mod.rs +++ b/contracts/okp4-cognitarium/src/state/mod.rs @@ -1,9 +1,7 @@ mod namespaces; mod store; -mod storer; mod triples; pub use namespaces::*; pub use store::*; -pub use storer::*; pub use triples::*; diff --git a/contracts/okp4-cognitarium/src/state/triples.rs b/contracts/okp4-cognitarium/src/state/triples.rs index ffbb1152..aedeadb6 100644 --- a/contracts/okp4-cognitarium/src/state/triples.rs +++ b/contracts/okp4-cognitarium/src/state/triples.rs @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize}; pub type TriplePK<'a> = (&'a [u8], Vec, Vec); pub struct TripleIndexes<'a> { - subject_and_predicate: MultiIndex<'a, (Vec, Vec), Triple, TriplePK<'a>>, + pub subject_and_predicate: MultiIndex<'a, (Vec, Vec), Triple, TriplePK<'a>>, } impl IndexList for TripleIndexes<'_> { diff --git a/contracts/okp4-cognitarium/src/state/storer.rs b/contracts/okp4-cognitarium/src/storer.rs similarity index 100% rename from contracts/okp4-cognitarium/src/state/storer.rs rename to contracts/okp4-cognitarium/src/storer.rs