Skip to content

Commit

Permalink
Add paseo feature and update runtime and package versions (#814)
Browse files Browse the repository at this point in the history
* using paseo genesis and version

* cargo.lock

* lint
  • Loading branch information
asiniscalchi authored Oct 14, 2024
1 parent 81a821b commit 52e87d4
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository = "https://github.com/freeverseio/laos.git"
homepage = "https://www.laosfoundation.io"
authors = ["Freeverse"]
edition = "2021"
version = "0.22.90"
version = "0.22.91"

[workspace]
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/tests/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ParachainStaking from "../build/contracts/ParachainStaking.json";

// Node config
export const RUNTIME_SPEC_NAME = "laos";
export const RUNTIME_SPEC_VERSION = 2290;
export const RUNTIME_SPEC_VERSION = 2291;
export const RUNTIME_IMPL_VERSION = 0;
export const LOCAL_NODE_URL = "http://127.0.0.1:9999";

Expand Down
1 change: 1 addition & 0 deletions runtime/laos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ test-utils = { workspace = true }
ethereum = { workspace = true }

[features]
paseo=[]
fast-runtime=[]
default = [
"std",
Expand Down
7 changes: 6 additions & 1 deletion runtime/laos/src/configs/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,17 @@ use xcm_builder::{
use xcm_executor::XcmExecutor;

pub const ASSET_HUB_ID: u32 = 1000;
#[cfg(not(feature = "paseo"))]
pub const RELAY_NETWORK: NetworkId = NetworkId::Polkadot;
#[cfg(feature = "paseo")]
pub const RELAY_NETWORK: NetworkId =
NetworkId::ByGenesis(hex!("77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f"));

parameter_types! {
// Represents the location of the Relay Chain (parent in the XCM hierarchy).
pub const RelayLocation: Location = Location::parent();
// Optional network identifier for the Relay Chain; set to `None` for default behavior.
pub const RelayNetwork: NetworkId = NetworkId::Polkadot;
pub const RelayNetwork: NetworkId = RELAY_NETWORK;
// Defines the origin for messages coming from the Relay Chain.
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
// For the real deployment, it is recommended to set `RelayNetwork` according to the relay chain
Expand Down
2 changes: 1 addition & 1 deletion runtime/laos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("laos"),
impl_name: create_runtime_str!("laos"),
authoring_version: 1,
spec_version: 2290,
spec_version: 2291,
impl_version: 0,
apis: apis::RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
2 changes: 1 addition & 1 deletion xcm-simulator/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ fn teleport_para_teleport_to_para_a() {
let amount = 1_000;

assert_ok!(ParachainTeleporterPalletXcm::limited_teleport_assets(
parachain_teleporter::RuntimeOrigin::signed(ALICE.into()),
parachain_teleporter::RuntimeOrigin::signed(ALICE),
Box::new(Parachain(PARA_A_ID).into()),
Box::new(AccountId32 { network: None, id: ALICE.into() }.into()),
Box::new((Here, amount).into()),
Expand Down

0 comments on commit 52e87d4

Please sign in to comment.