Skip to content

Commit

Permalink
companion: for #282
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Sep 11, 2020
1 parent 3e542ae commit aba5d33
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions node/service/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use sc_telemetry::TelemetryEndpoints;
use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
use sp_consensus_babe::AuthorityId as BabeId;
use sp_core::{crypto::UncheckedInto, sr25519, Pair, Public};
use sp_runtime::{traits::IdentifyAccount, Perbill, Perquintill};
use sp_runtime::{traits::IdentifyAccount, Perbill};
// --- darwinia ---
use array_bytes::fixed_hex_bytes_unchecked;
use crab_runtime::{constants::currency::COIN, GenesisConfig as CrabGenesisConfig};
Expand Down Expand Up @@ -262,7 +262,7 @@ pub fn crab_build_spec_genesis() -> CrabGenesisConfig {
.collect(),
force_era: crab_runtime::Forcing::NotForcing,
slash_reward_fraction: Perbill::from_percent(10),
payout_fraction: Perquintill::from_percent(50),
payout_fraction: Perbill::from_percent(50),
..Default::default()
}),
pallet_session: Some(crab_runtime::SessionConfig {
Expand Down Expand Up @@ -450,7 +450,7 @@ pub fn crab_testnet_genesis(
invulnerables: initial_authorities.iter().cloned().map(|x| x.0).collect(),
force_era: crab_runtime::Forcing::ForceAlways,
slash_reward_fraction: Perbill::from_percent(10),
payout_fraction: Perquintill::from_percent(50),
payout_fraction: Perbill::from_percent(50),
..Default::default()
}),
pallet_session: Some(crab_runtime::SessionConfig {
Expand Down
2 changes: 2 additions & 0 deletions runtime/crab/darwinia_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
"ring_bond": "Balance",
"kton_bond": "Balance"
},
"__[pallet.bridge.crab]__": {},
"MappedRing": "u128",
"__[pallet.bridge.eth]__": {},
"EthereumTransactionIndex": "(H256, u64)",
"EthereumHeaderBrief": {
Expand Down
2 changes: 2 additions & 0 deletions runtime/crab/polkadot_compatible_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
"ring_bond": "Balance",
"kton_bond": "Balance"
},
"__[pallet.bridge.crab]__": {},
"MappedRing": "u128",
"__[pallet.bridge.eth]__": {},
"EthereumTransactionIndex": "(H256, u64)",
"EthereumHeaderBrief": {
Expand Down

0 comments on commit aba5d33

Please sign in to comment.