Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/node/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ log = "0.4.8"
tempfile = "3.1.0"
fs_extra = "1"
futures = "0.3.1"
hex-literal = "0.3.1"

[dev-dependencies]
criterion = "0.3.0"
Expand Down
17 changes: 16 additions & 1 deletion bin/node/testing/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ use sp_keyring::{Ed25519Keyring, Sr25519Keyring};
use node_runtime::{
GenesisConfig, BalancesConfig, SessionConfig, StakingConfig, SystemConfig,
GrandpaConfig, IndicesConfig, ContractsConfig, SocietyConfig, wasm_binary_unwrap,
AccountId, StakerStatus,
AccountId, StakerStatus, DotMogModuleConfig, DotMogBaseConfig,
};
use node_runtime::constants::currency::*;
use sp_core::ChangesTrieConfiguration;
use sp_runtime::Perbill;
use hex_literal::hex;

/// Create genesis runtime configuration for tests.
pub fn config(support_changes_trie: bool, code: Option<&[u8]>) -> GenesisConfig {
Expand All @@ -51,6 +52,14 @@ pub fn config_endowed(
(ferdie(), 100 * DOLLARS),
];

let root_key: AccountId = hex![
// 5Ff3iXP75ruzroPWRP2FYBHWnmGGBSb63857BgnzCoXNxfPo
"9ee5e5bdc0ec239eb164f865ecc345ce4c88e76ee002e0f7e318097347471809"
].into();

let endowed_accounts: Vec<AccountId> = vec![root_key.clone()];


endowed.extend(
extra_endowed.into_iter().map(|endowed| (endowed, 100*DOLLARS))
);
Expand Down Expand Up @@ -119,5 +128,11 @@ pub fn config_endowed(
max_members: 999,
}),
pallet_vesting: Some(Default::default()),
pallet_dotmog: Some(DotMogModuleConfig {
key: root_key.clone(),
}),
pallet_dotmogbase: Some(DotMogBaseConfig {
key: root_key,
}),
}
}
2 changes: 1 addition & 1 deletion primitives/externalities/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-storage = { version = "3.0.0", path = "../storage", default-features = false }
sp-std = { version = "3.0.0", path = "../std", default-features = false }
environmental = { version = "1.1.2", default-features = false }
environmental = { version = "1.1.3", default-features = false }
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }

[features]
Expand Down