Skip to content

Commit

Permalink
refactor(staking): 🎁 consolidate public submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Mar 13, 2024
1 parent 6376796 commit 043222e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions crates/core/component/stake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ mod penalty;
mod unbonding_token;
mod uptime;

pub mod delegate;
pub mod funding_stream;
pub mod genesis;
pub mod params;
pub mod rate;
pub mod state_key;
pub mod undelegate;
pub mod undelegate_claim;
pub mod validator;

#[cfg(feature = "component")]
pub mod component;

Expand All @@ -22,14 +32,6 @@ pub use component::{StateReadExt, StateWriteExt};
pub static BPS_SQUARED_SCALING_FACTOR: Lazy<penumbra_num::fixpoint::U128x128> =
Lazy::new(|| 1_0000_0000u128.into());

pub mod delegate;
pub mod funding_stream;
pub mod rate;
pub mod state_key;
pub mod undelegate;
pub mod undelegate_claim;
pub mod validator;

pub use delegate::Delegate;
use once_cell::sync::Lazy;
pub use undelegate::Undelegate;
Expand All @@ -47,6 +49,3 @@ pub use changes::DelegationChanges;
pub use current_consensus_keys::CurrentConsensusKeys;
pub use funding_stream::{FundingStream, FundingStreams};
pub use uptime::Uptime;

pub mod genesis;
pub mod params;

0 comments on commit 043222e

Please sign in to comment.