Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9ab7d7c
Simple template compiles
Feb 9, 2024
3ef4d8f
Simple template cleanup
Feb 9, 2024
d8c9bcd
Simple template chainspec
Feb 9, 2024
ac5fea8
Complete build green
Feb 13, 2024
35cf56c
fmt
Feb 13, 2024
e2c616b
Fix deps
Feb 14, 2024
0f3297b
Tests builds
Feb 15, 2024
fc012bb
impl GenesisBuilder
Feb 15, 2024
07b1d11
Updated polkadot-sdk commit
Feb 16, 2024
e32171e
Missing deps
Feb 16, 2024
766140f
Unit tests ok!
Feb 16, 2024
8b1003f
bring serde regardless of std feature
girazoki Feb 16, 2024
fea9133
api-augment
Feb 16, 2024
0ee0a6e
Fix container chain chain spec using set_storage
tmpolaczyk Feb 16, 2024
bbcbecc
Merge branch 'master' into fg/polkadot-v1.6.0
Feb 16, 2024
36274a4
Merge branch 'master' into fg/polkadot-v1.6.0
Feb 16, 2024
d9e272a
Fix frontier node and identity tests
Feb 16, 2024
9125148
Fix xcm tests for message queue
Feb 16, 2024
1121930
use build_storage from emulated_integration_tests
girazoki Feb 16, 2024
98ec012
Merge branch 'master' into fg/polkadot-v1.6.0
Feb 19, 2024
d027f6c
fmt
Feb 19, 2024
e44ca0f
Update moonkit ref
Feb 19, 2024
1b75b68
try-runtime builds
Feb 19, 2024
ce7ae5c
Ts lint
Feb 19, 2024
30fd8cd
toml maid
Feb 19, 2024
f35ea5d
merge
girazoki Feb 20, 2024
fdc1a26
fix runtime-benchmarks compilation
girazoki Feb 19, 2024
8e3ece1
try-runtime to pallet-balances
girazoki Feb 20, 2024
e1ea242
XcmpQueue migrations
Feb 20, 2024
33f74cd
Migrations
Feb 20, 2024
e4c461f
try-runtime
Feb 20, 2024
e59d5cb
zepter
Feb 20, 2024
a66e937
toml-maid
Feb 20, 2024
4dfe83e
Review
Feb 20, 2024
bb99085
Merge remote-tracking branch 'origin/master' into fg/polkadot-v1.6.0
Feb 20, 2024
d5f17a5
try runtime subcommand
Feb 20, 2024
e6ba443
MessageQueueServiceWeight to 25%
Feb 20, 2024
b60d095
Unused import
Feb 20, 2024
017af80
Fix clippy
Feb 20, 2024
9e058e4
increase sleep time for first block in parathread
girazoki Feb 21, 2024
c2fe33c
be a bit more mindful about times in parachains
girazoki Feb 21, 2024
98fd437
increment even more timeout
girazoki Feb 21, 2024
4b534dc
Formatting and API augment
Feb 21, 2024
34f4c04
Update forks refs
Feb 22, 2024
c538141
Merge branch 'master' into fg/polkadot-v1.6.0
Feb 22, 2024
2e91399
Increase grcov version in coverage
Feb 22, 2024
e412943
Remove ignores from coverage
Feb 22, 2024
917d08a
Remove ignores from coverage
Feb 22, 2024
996d4a8
Revert coverage changes
Feb 22, 2024
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
4 changes: 4 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ sc-transaction-pool-api = { git = "https://github.com/moondance-labs/polkadot-sd
sc-utils = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.6.0" }
sp-blockchain = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.6.0" }
sp-externalities = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.6.0", default-features = false }
sp-genesis-builder = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.6.0", default-features = false }
sp-keystore = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.6.0", default-features = false }
sp-staking = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.6.0", default-features = false }
sp-storage = { git = "https://github.com/moondance-labs/polkadot-sdk", branch = "tanssi-polkadot-v1.6.0", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions container-chains/templates/frontier/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ sp-consensus-aura = { workspace = true }
sp-consensus-slots = { workspace = true }
sp-core = { workspace = true }
sp-debug-derive = { workspace = true }
sp-genesis-builder = { workspace = true }
sp-inherents = { workspace = true }
sp-offchain = { workspace = true }
sp-runtime = { workspace = true }
Expand Down
11 changes: 11 additions & 0 deletions container-chains/templates/frontier/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ use {
frame_support::{
construct_runtime,
dispatch::{DispatchClass, GetDispatchInfo},
genesis_builder_helper::{build_config, create_default_config},
pallet_prelude::DispatchResult,
parameter_types,
traits::{
Expand Down Expand Up @@ -1056,6 +1057,16 @@ impl_runtime_apis! {
}
}

impl sp_genesis_builder::GenesisBuilder<Block> for Runtime {
fn create_default_config() -> Vec<u8> {
create_default_config::<RuntimeGenesisConfig>()
}

fn build_config(config: Vec<u8>) -> sp_genesis_builder::Result {
build_config::<RuntimeGenesisConfig>(config)
}
}

#[cfg(feature = "runtime-benchmarks")]
impl frame_benchmarking::Benchmark<Block> for Runtime {
fn benchmark_metadata(
Expand Down
1 change: 1 addition & 0 deletions container-chains/templates/simple/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ sp-consensus-aura = { workspace = true }
sp-consensus-slots = { workspace = true }
sp-core = { workspace = true }
sp-debug-derive = { workspace = true }
sp-genesis-builder = { workspace = true }
sp-inherents = { workspace = true }
sp-offchain = { workspace = true }
sp-runtime = { workspace = true }
Expand Down
11 changes: 11 additions & 0 deletions container-chains/templates/simple/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use {
frame_support::{
construct_runtime,
dispatch::DispatchClass,
genesis_builder_helper::{build_config, create_default_config},
pallet_prelude::DispatchResult,
parameter_types,
traits::{
Expand Down Expand Up @@ -771,6 +772,16 @@ impl_runtime_apis! {
}
}

impl sp_genesis_builder::GenesisBuilder<Block> for Runtime {
fn create_default_config() -> Vec<u8> {
create_default_config::<RuntimeGenesisConfig>()
}

fn build_config(config: Vec<u8>) -> sp_genesis_builder::Result {
build_config::<RuntimeGenesisConfig>(config)
}
}

#[cfg(feature = "runtime-benchmarks")]
impl frame_benchmarking::Benchmark<Block> for Runtime {
fn benchmark_metadata(
Expand Down
1 change: 1 addition & 0 deletions runtime/dancebox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ sp-consensus-aura = { workspace = true }
sp-consensus-slots = { workspace = true }
sp-core = { workspace = true }
sp-debug-derive = { workspace = true }
sp-genesis-builder = { workspace = true }
sp-inherents = { workspace = true }
sp-offchain = { workspace = true }
sp-runtime = { workspace = true }
Expand Down
11 changes: 11 additions & 0 deletions runtime/dancebox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ use {
frame_support::{
construct_runtime,
dispatch::DispatchClass,
genesis_builder_helper::{build_config, create_default_config},
pallet_prelude::DispatchResult,
parameter_types,
traits::{
Expand Down Expand Up @@ -1521,6 +1522,16 @@ impl_runtime_apis! {
}
}

impl sp_genesis_builder::GenesisBuilder<Block> for Runtime {
fn create_default_config() -> Vec<u8> {
create_default_config::<RuntimeGenesisConfig>()
}

fn build_config(config: Vec<u8>) -> sp_genesis_builder::Result {
build_config::<RuntimeGenesisConfig>(config)
}
}

#[cfg(feature = "runtime-benchmarks")]
impl frame_benchmarking::Benchmark<Block> for Runtime {
fn benchmark_metadata(
Expand Down
7 changes: 5 additions & 2 deletions runtime/dancebox/tests/common/xcm/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@ pub mod frontier_template {

pub fn genesis() -> sp_core::storage::Storage {
let genesis_config = container_chain_template_frontier_runtime::RuntimeGenesisConfig {
system: Default::default(),
balances: container_chain_template_frontier_runtime::BalancesConfig {
balances: pre_funded_accounts()
.iter()
.cloned()
.map(|k| (k, 1 << 80))
Comment thread
fgamundi marked this conversation as resolved.
.map(|k| (k, 1u128 << 60))
.collect(),
},
parachain_info: container_chain_template_frontier_runtime::ParachainInfoConfig {
Expand All @@ -247,12 +248,14 @@ pub mod frontier_template {
..Default::default()
};

let json = serde_json::to_value(&genesis_config).unwrap();

ChainSpec::builder(
container_chain_template_frontier_runtime::WASM_BINARY
.expect("WASM binary was not build, please build it!"),
None,
)
.with_genesis_config(serde_json::to_value(&genesis_config).unwrap())
.with_genesis_config(json)
.build()
.build_storage()
.unwrap()
Expand Down
1 change: 1 addition & 0 deletions runtime/flashbox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ sp-consensus-aura = { workspace = true }
sp-consensus-slots = { workspace = true }
sp-core = { workspace = true }
sp-debug-derive = { workspace = true }
sp-genesis-builder = { workspace = true }
sp-inherents = { workspace = true }
sp-offchain = { workspace = true }
sp-runtime = { workspace = true }
Expand Down
11 changes: 11 additions & 0 deletions runtime/flashbox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use {
frame_support::{
construct_runtime,
dispatch::DispatchClass,
genesis_builder_helper::{build_config, create_default_config},
pallet_prelude::DispatchResult,
parameter_types,
traits::{
Expand Down Expand Up @@ -1320,6 +1321,16 @@ impl_runtime_apis! {
}
}

impl sp_genesis_builder::GenesisBuilder<Block> for Runtime {
fn create_default_config() -> Vec<u8> {
create_default_config::<RuntimeGenesisConfig>()
}

fn build_config(config: Vec<u8>) -> sp_genesis_builder::Result {
build_config::<RuntimeGenesisConfig>(config)
}
}

#[cfg(feature = "runtime-benchmarks")]
impl frame_benchmarking::Benchmark<Block> for Runtime {
fn benchmark_metadata(
Expand Down