extend network inspect handler trait with additional function

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-06-03 18:58:21 +03:00
parent f3d8ee3ab2
commit 5847097e94
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-traits"
version = "0.3.19"
version = "0.3.20"
license.workspace = true
authors.workspace = true
edition.workspace = true

View File

@ -21,6 +21,7 @@ pub trait NetworkDataBasicHandler {
pub trait NetworkDataInspectHandler<Network>: NetworkDataBasicHandler {
fn get(n: &Self::NetworkId) -> Option<Network>;
fn iter() -> PrefixIterator<(Self::NetworkId, Network)>;
fn is_nullification_period() -> bool;
}
pub trait NetworkDataMutateHandler<Network, Balance>: NetworkDataInspectHandler<Network> {