-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: structure chain spec patches better
- Loading branch information
1 parent
152329a
commit 81d60db
Showing
10 changed files
with
194 additions
and
262 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "pallet-subspace-genesis-config" | ||
authors = ["Commune Nucleus Team"] | ||
version = "1.0.0" | ||
edition = "2021" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
serde.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#![no_std] | ||
|
||
extern crate alloc; | ||
|
||
use alloc::vec::Vec; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Deserialize, Serialize)] | ||
pub struct ConfigSubnet<Name, AccountId> { | ||
pub name: Name, | ||
pub founder: AccountId, | ||
pub tempo: Option<u16>, | ||
pub immunity_period: Option<u16>, | ||
pub min_allowed_weights: Option<u16>, | ||
pub max_allowed_weights: Option<u16>, | ||
pub max_allowed_uids: Option<u16>, | ||
pub min_stake: Option<u64>, | ||
pub modules: Vec<ConfigModule<Name, AccountId>>, | ||
} | ||
|
||
#[derive(Debug, Deserialize, Serialize)] | ||
pub struct ConfigModule<Name, AccountId> { | ||
pub key: AccountId, | ||
pub name: Name, | ||
pub address: Name, | ||
pub weights: Option<Vec<(u16, u16)>>, | ||
pub stake_from: Option<Vec<(AccountId, u64)>>, | ||
} |
Oops, something went wrong.