Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
afe92fd
Update dependencies
ntn-x2 Feb 24, 2023
2538942
Update node side
ntn-x2 Feb 24, 2023
c585f30
Peregrine runtime compiling
ntn-x2 Feb 24, 2023
bc1da7a
Spiritnet runtime compiling
ntn-x2 Feb 24, 2023
b427a6d
Everything compiling
ntn-x2 Feb 24, 2023
d865e0f
All fixes
ntn-x2 Feb 24, 2023
0cd10f7
Compiles
ntn-x2 Feb 24, 2023
8a43ba1
Last fixes
ntn-x2 Feb 24, 2023
23ac524
More
ntn-x2 Feb 24, 2023
71732cc
fmt
ntn-x2 Feb 24, 2023
bb58447
Add pallet-xcm to runtime bench script
ntn-x2 Feb 24, 2023
f5bc271
Clippy
ntn-x2 Feb 27, 2023
a266edc
New pallet skeleton
ntn-x2 Feb 27, 2023
12b4fc9
First iteration
ntn-x2 Feb 27, 2023
39f5696
Test setup
ntn-x2 Feb 28, 2023
fb69836
Before switching to the Parity example
ntn-x2 Feb 28, 2023
6e6c59a
Integrate Parity example
ntn-x2 Feb 28, 2023
11d6fcf
Parity example refactoring in progress
ntn-x2 Feb 28, 2023
a3b9236
Test setup refactoring complete
ntn-x2 Mar 1, 2023
ff76493
Test environment compiling successfully
ntn-x2 Mar 1, 2023
7fc85c6
Messages going from parachain A to parachain B
ntn-x2 Mar 1, 2023
873c2d9
Transact works! Must add WithdrawAsset instruction first
ntn-x2 Mar 2, 2023
708f249
E2e flow works
ntn-x2 Mar 3, 2023
e0fe62a
More progress on the receiver side
ntn-x2 Mar 3, 2023
7760d02
Compiling
ntn-x2 Mar 3, 2023
53c04b7
IT WORKS
ntn-x2 Mar 3, 2023
10faad2
Working again
ntn-x2 Mar 3, 2023
6c0518b
Add support for additional details
ntn-x2 Mar 3, 2023
8646bbc
Add error handling
ntn-x2 Mar 3, 2023
b2b0d72
Change Transact origin to be the parachain itself
ntn-x2 Mar 6, 2023
b7bd163
Refactoring complete
ntn-x2 Mar 6, 2023
77e7b61
All working again
ntn-x2 Mar 6, 2023
c0bf753
Better refactoring
ntn-x2 Mar 6, 2023
845cf6b
Fix some features
ntn-x2 Mar 6, 2023
e8591b3
Merge commit '4eb94ef8e66343af651942653f25b939cfbf044e' into aa/dip-t…
ntn-x2 Mar 6, 2023
bef19d9
Fix compilation mess
ntn-x2 Mar 6, 2023
3c08a7d
Fix dip-receiver feature
ntn-x2 Mar 6, 2023
b3bf93f
Template node compiling
ntn-x2 Mar 8, 2023
cc4e907
Setup for local rococo 0.9.38
ntn-x2 Mar 8, 2023
17e5517
Minor runtime fixes WIP
ntn-x2 Mar 10, 2023
2bdd304
Add Parity feature flag fix
ntn-x2 Mar 10, 2023
fdc3981
Merge commit '2bdd304e09a3fe3ec1bb92e1d7b99cbe516232bb' into aa/dip-t…
ntn-x2 Mar 10, 2023
f31c2fc
Temporary fixes
ntn-x2 Mar 10, 2023
f825b95
More demo fixes
ntn-x2 Mar 10, 2023
a32f292
Fixes pt. 2
ntn-x2 Mar 10, 2023
b5fd68f
More fixess
ntn-x2 Mar 10, 2023
a7a022d
WORKING
ntn-x2 Mar 13, 2023
9609da4
Remove debug prints
ntn-x2 Mar 13, 2023
831c874
Revert test change
ntn-x2 Mar 13, 2023
4d2385c
Clean up dip-sender pallet
ntn-x2 Mar 14, 2023
6695380
Refactor dip-receiver
ntn-x2 Mar 14, 2023
97f8289
Rename dip pallets
ntn-x2 Mar 14, 2023
12ab8ee
Refactor dip-support
ntn-x2 Mar 14, 2023
09c0f5f
Refactor dip-sender and dip-receiver pallets
ntn-x2 Mar 14, 2023
89c6e0a
Merge commit '3f67a3192e75e181e1bf366748eb1b3e22bde18e' into aa/dip-t…
ntn-x2 Mar 14, 2023
6b44010
More refactoring
ntn-x2 Mar 14, 2023
fd2e1e9
Mid refactoring dip-sender template runtime
ntn-x2 Mar 14, 2023
9c83152
Complete refactor for dip-sender runtime template
ntn-x2 Mar 14, 2023
d02475b
receiver runtime template refactor
ntn-x2 Mar 15, 2023
9be02a9
One more refactoring complete
ntn-x2 Mar 15, 2023
9606829
XCM integration tests refactored
ntn-x2 Mar 15, 2023
4e704be
Almost there
ntn-x2 Mar 15, 2023
d45ed6f
Template nodes compiling
ntn-x2 Mar 15, 2023
c40af4d
Remove unused deps
ntn-x2 Mar 15, 2023
e9b49c4
Last fixes
ntn-x2 Mar 15, 2023
3fc04ce
Merge commit 'c6d5e7e9a08cef8697dfe37dd96dd5633a639c1d' into aa/dip-t…
ntn-x2 Mar 15, 2023
dd03b0c
Feature fixed
ntn-x2 Mar 15, 2023
2097d27
Add XCM pallet to template runtimes
ntn-x2 Mar 16, 2023
22ffcc9
Merge commit '7234aee203bc488b7e4bef7cc9cf69bfb1ba3ea4' into aa/dip-t…
ntn-x2 Mar 28, 2023
41d5538
Merge commit 'df9cef8e473a0512c17954baa6e2363ce8c65231' into aa/dip-t…
ntn-x2 Mar 28, 2023
4d8f14d
Remove unnecessary code duplication
ntn-x2 Mar 30, 2023
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
Prev Previous commit
Next Next commit
All fixes
  • Loading branch information
ntn-x2 committed Feb 24, 2023
commit d865e0fbd3f5ae9d060c91bf8655aaf086b9775c
2 changes: 1 addition & 1 deletion nodes/parachain/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#![allow(clippy::derive_partial_eq_without_eq)]

use cumulus_primitives_core::ParaId;
use polkadot_primitives::LOWEST_PUBLIC_ID;
use polkadot_primitives::v2::LOWEST_PUBLIC_ID;
use runtime_common::{AccountId, AccountPublic};
use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
use sc_service::Properties;
Expand Down
8 changes: 3 additions & 5 deletions nodes/parachain/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,12 @@ pub fn run() -> Result<()> {
let collator_options = cli.run.collator_options();

runner.run_node_until_exit(|config| async move {
let hwbench = if !cli.no_hardware_benchmarks {
let hwbench = (!cli.no_hardware_benchmarks).then_some(
config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
})
} else {
None
};
})).flatten();


let para_id = chain_spec::Extensions::try_get(&*config.chain_spec)
.map(|e| e.para_id)
Expand Down
9 changes: 0 additions & 9 deletions nodes/parachain/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use cumulus_relay_chain_inprocess_interface::build_inprocess_relay_chain;
use cumulus_relay_chain_interface::{RelayChainError, RelayChainInterface, RelayChainResult};
use cumulus_relay_chain_minimal_node::build_minimal_relay_chain_node;
use polkadot_service::{CollatorPair, NativeExecutionDispatch};
use frame_benchmarking_cli::SUBSTRATE_REFERENCE_HARDWARE;
use sc_consensus::ImportQueue;
use sc_executor::NativeElseWasmExecutor;
use sc_network::{NetworkBlock, NetworkService};
Expand Down Expand Up @@ -358,14 +357,6 @@ where

if let Some(hwbench) = hwbench {
sc_sysinfo::print_hwbench(&hwbench);
// Here you can check whether the hardware meets your chains' requirements. Putting a link
// in there and swapping out the requirements for your own are probably a good idea. The
// requirements for a para-chain are dictated by its relay-chain.
if !SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench) && validator {
log::warn!(
"⚠️ The hardware does not meet the minimal requirements for role 'Authority'."
);
}

if let Some(ref mut telemetry) = telemetry {
let telemetry_handle = telemetry.handle();
Expand Down
7 changes: 4 additions & 3 deletions runtimes/common/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ pub const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);
/// used by Operational extrinsics.
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
/// We allow for 0.5 seconds of compute with a 12 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND)
.saturating_div(2)
.set_proof_size(cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64);
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
);

pub const INFLATION_CONFIG: (Perquintill, Perquintill, Perquintill, Perquintill) = (
// max collator staking rate
Expand Down
4 changes: 2 additions & 2 deletions runtimes/common/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
// If you feel like getting in touch with us, you can do so at [email protected]

use core::marker::PhantomData;
use frame_support::{log, match_types, parameter_types};
use frame_support::{log, match_types, parameter_types, weights::Weight};
use polkadot_parachain::primitives::Sibling;
use xcm::latest::{prelude::*, Weight};
use xcm::latest::prelude::*;
use xcm_builder::{AccountId32Aliases, CurrencyAdapter, IsConcrete, ParentIsPreset, SiblingParachainConvertsVia};
use xcm_executor::traits::ShouldExecute;

Expand Down
1 change: 1 addition & 0 deletions runtimes/spiritnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,7 @@ mod benches {
[pallet_utility, Utility]
[pallet_vesting, Vesting]
[pallet_proxy, Proxy]
[pallet_xcm, PolkadotXcm]
);
}

Expand Down
2 changes: 1 addition & 1 deletion runtimes/spiritnet/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ parameter_types! {
pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();
pub const RelayNetworkId: NetworkId = NetworkId::Polkadot;
pub UniversalLocation: InteriorMultiLocation =
X2(GlobalConsensus(RelayNetworkId::get()), Parachain(ParachainInfo::parachain_id().into()).into());
X2(GlobalConsensus(RelayNetworkId::get()), Parachain(ParachainInfo::parachain_id().into()));
}

/// This is the type we use to convert an (incoming) XCM origin into a local
Expand Down