Skip to content

Commit 3c7d7e7

Browse files
authored
Bump v0.9.0 (#295)
* bump version to v0.9.0 * remove sudo * cargo +nightly fmt * cargo +nightly fmt * cargo +nightly fmt
1 parent eae2902 commit 3c7d7e7

5 files changed

Lines changed: 5 additions & 25 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "node-cli"
3-
version = "0.8.3"
3+
version = "0.9.0"
44
authors = ["Liebi Technologies <bifrost@liebi.com>"]
55
description = "Bifrost Parachain Node"
66
build = "build.rs"

node/service/src/chain_spec/bifrost.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use std::{
2424
use bifrost_runtime::{
2525
constants::currency::DOLLARS, AccountId, AuraId, Balance, BalancesConfig, BlockNumber,
2626
CollatorSelectionConfig, CouncilConfig, DemocracyConfig, GenesisConfig, IndicesConfig,
27-
ParachainInfoConfig, SessionConfig, SudoConfig, SystemConfig, TechnicalCommitteeConfig,
28-
TokensConfig, VestingConfig, WASM_BINARY,
27+
ParachainInfoConfig, SessionConfig, SystemConfig, TechnicalCommitteeConfig, TokensConfig,
28+
VestingConfig, WASM_BINARY,
2929
};
3030
use cumulus_primitives_core::ParaId;
3131
use frame_benchmarking::{account, whitelisted_caller};
@@ -50,7 +50,6 @@ const ENDOWMENT: u128 = 1_000_000 * DOLLARS;
5050

5151
pub fn bifrost_genesis(
5252
invulnerables: Vec<(AccountId, AuraId)>,
53-
root_key: AccountId,
5453
balances: Vec<(AccountId, Balance)>,
5554
vestings: Vec<(AccountId, BlockNumber, BlockNumber, Balance)>,
5655
id: ParaId,
@@ -73,7 +72,6 @@ pub fn bifrost_genesis(
7372
technical_membership: Default::default(),
7473
treasury: Default::default(),
7574
phragmen_election: Default::default(),
76-
sudo: SudoConfig { key: root_key.clone() },
7775
parachain_info: ParachainInfoConfig { parachain_id: id },
7876
collator_selection: CollatorSelectionConfig {
7977
invulnerables: invulnerables.iter().cloned().map(|(acc, _)| acc).collect(),
@@ -128,7 +126,6 @@ fn development_config_genesis(id: ParaId) -> GenesisConfig {
128126
get_account_id_from_seed::<sr25519::Public>("Alice"),
129127
get_from_seed::<AuraId>("Alice"),
130128
)],
131-
get_account_id_from_seed::<sr25519::Public>("Alice"),
132129
balances,
133130
vestings,
134131
id,
@@ -198,7 +195,6 @@ fn local_config_genesis(id: ParaId) -> GenesisConfig {
198195
),
199196
(get_account_id_from_seed::<sr25519::Public>("Bob"), get_from_seed::<AuraId>("Bob")),
200197
],
201-
get_account_id_from_seed::<sr25519::Public>("Alice"),
202198
balances,
203199
vestings,
204200
id,
@@ -266,12 +262,6 @@ fn bifrost_config_genesis(id: ParaId) -> GenesisConfig {
266262
),
267263
];
268264

269-
let root_key: AccountId = hex![
270-
// cjAZA391BNi2S1Je7PNGHiX4UoJh3SbknQSDQ7qh3g4Aa9H
271-
"2c64a40ec236d0a0823065791946f6254c4577c6110f512614bd6ece1a3fa22b"
272-
]
273-
.into();
274-
275265
let exe_dir = {
276266
let mut exe_dir = std::env::current_exe().unwrap();
277267
exe_dir.pop();
@@ -311,7 +301,6 @@ fn bifrost_config_genesis(id: ParaId) -> GenesisConfig {
311301
use sp_core::sp_std::collections::btree_map::BTreeMap;
312302
bifrost_genesis(
313303
invulnerables,
314-
root_key,
315304
balances,
316305
vesting_configs.into_iter().flat_map(|vc| vc.vesting).collect(),
317306
id,

runtime/bifrost/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ pallet-multisig = { git = "https://github.com/paritytech/substrate", branch = "p
5151
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9", default-features = false }
5252
pallet-scheduler = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9", default-features = false }
5353
pallet-session = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9", default-features = false }
54-
pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9", default-features = false }
5554
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9", default-features = false }
5655
pallet-tips = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9", default-features = false }
5756
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9", default-features = false }
@@ -118,7 +117,6 @@ std = [
118117
"pallet-indices/std",
119118
"pallet-multisig/std",
120119
"pallet-randomness-collective-flip/std",
121-
"pallet-sudo/std",
122120
"pallet-timestamp/std",
123121
"pallet-transaction-payment-rpc-runtime-api/std",
124122
"pallet-transaction-payment/std",

runtime/bifrost/src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
127127
spec_name: create_runtime_str!("bifrost"),
128128
impl_name: create_runtime_str!("bifrost"),
129129
authoring_version: 1,
130-
spec_version: 803,
130+
spec_version: 900,
131131
impl_version: 0,
132132
apis: RUNTIME_API_VERSIONS,
133133
transaction_version: 1,
@@ -562,11 +562,6 @@ impl pallet_transaction_payment::Config for Runtime {
562562
type WeightToFee = IdentityFee<Balance>;
563563
}
564564

565-
impl pallet_sudo::Config for Runtime {
566-
type Call = Call;
567-
type Event = Event;
568-
}
569-
570565
// culumus runtime start
571566
parameter_types! {
572567
pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;
@@ -1054,7 +1049,6 @@ construct_runtime! {
10541049
System: frame_system::{Pallet, Call, Config, Storage, Event<T>} = 0,
10551050
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 1,
10561051
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>} = 2,
1057-
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>} = 3,
10581052
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 4,
10591053
ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned} = 5,
10601054
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 6,

0 commit comments

Comments
 (0)