Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit fdc5073

Browse files
authored
Merge pull request #174 from vaporos/016-move-protocol-structs
Move transact::protocol::* to protocol::*
2 parents a8b582e + c272af8 commit fdc5073

File tree

10 files changed

+17
-6
lines changed

10 files changed

+17
-6
lines changed
File renamed without changes.
File renamed without changes.

libsawtooth/src/protocol/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,24 @@
1717

1818
//! Structs that cover the core protocols of the Sawtooth system.
1919
20+
#[cfg(feature = "transact-protocol-batch")]
21+
pub mod batch;
2022
#[cfg(feature = "protocol-block")]
2123
pub mod block;
2224
pub mod block_info;
25+
pub mod command;
2326
#[cfg(feature = "protocol-genesis")]
2427
pub mod genesis;
2528
pub mod identity;
29+
#[cfg(feature = "transact-key-value-state")]
30+
pub mod key_value_state;
31+
#[cfg(feature = "transact")]
32+
pub mod receipt;
33+
#[cfg(any(feature = "transact-protocol-sabre", feature = "family-sabre"))]
34+
pub mod sabre;
2635
pub mod setting;
36+
#[cfg(feature = "transact-protocol-transaction")]
37+
pub mod transaction;
2738

2839
#[cfg(feature = "cylinder")]
2940
use cylinder::SigningError;
File renamed without changes.

libsawtooth/src/transact/protocol/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
//! scheduled and executed. The resuls of execution are stored in transaction receipts.
2222
2323
#[cfg(feature = "transact-protocol-batch")]
24-
pub mod batch;
25-
pub mod command;
24+
pub use crate::protocol::batch;
25+
pub use crate::protocol::command;
2626
#[cfg(feature = "transact-key-value-state")]
27-
pub mod key_value_state;
28-
pub mod receipt;
27+
pub use crate::protocol::key_value_state;
28+
pub use crate::protocol::receipt;
2929
#[cfg(any(feature = "transact-protocol-sabre", feature = "family-sabre"))]
30-
pub mod sabre;
30+
pub use crate::protocol::sabre;
3131
#[cfg(feature = "transact-protocol-transaction")]
32-
pub mod transaction;
32+
pub use crate::protocol::transaction;

0 commit comments

Comments
 (0)