Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

update to 0.9.42 and remove emulator setup for now #26

Merged
merged 1 commit into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
90 changes: 44 additions & 46 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,62 +7,60 @@ authors = ["Xcm Team"]

[dependencies]
bounded-collections = { version = "0.1.5", default-features = false }
smallvec = "1.4.0"
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
serde_json = { version = "1.0.85" }
smallvec = "1.10.0"
codec = { package = "parity-scale-codec", version = "3.5.0", features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.7.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0.96" }
hex = { version = "0.4" }
hex-literal = { version = "0.3.1" }
libsecp256k1 = { version = "0.7" }

#Polkadot
polkadot-parachain = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
xcm = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
xcm-executor = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
xcm-builder = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
pallet-xcm = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
pallet-balances = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39"}
pallet-assets = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
pallet-uniques = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
pallet-nfts = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
polkadot-primitives = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
polkadot-runtime-parachains = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
kusama-runtime = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
kusama-runtime-constants = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
xcm-simulator = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.39" }
polkadot-parachain = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
xcm = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
xcm-executor = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
xcm-builder = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
pallet-xcm = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
pallet-balances = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42"}
pallet-assets = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-uniques = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-nfts = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
polkadot-primitives = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
polkadot-runtime-parachains = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
kusama-runtime = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
kusama-runtime-constants = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
xcm-simulator = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
# substrate
frame-support = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
frame-system = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-api = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-application-crypto = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-block-builder = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-core = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-inherents = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-io = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-runtime = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-session = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-std = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-version = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-keyring = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
frame-support = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
frame-system = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-api = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-application-crypto = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-block-builder = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-core = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-inherents = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-io = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-runtime = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-session = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-std = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-version = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-keyring = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }

cumulus-primitives-core = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-primitives-utility = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-primitives-timestamp = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-pallet-parachain-system = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-pallet-dmp-queue = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-pallet-xcmp-queue = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-pallet-xcm = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
parachain-info = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-primitives-parachain-inherent = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
cumulus-test-relay-sproof-builder = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }
statemine-runtime = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39" }

xcm-emulator = { git = "/~https://github.com/shaunxw/xcm-simulator", rev = "aa13dce47596e150806dfc3af99096dae6ffc65e" }
cumulus-primitives-core = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-primitives-utility = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-primitives-timestamp = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-pallet-parachain-system = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-pallet-dmp-queue = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-pallet-xcmp-queue = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-pallet-xcm = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
parachain-info = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-primitives-parachain-inherent = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
cumulus-test-relay-sproof-builder = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }
statemine-runtime = { git = "/~https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" }

[dev-dependencies]
env_logger = "0.9.0"
log = "0.4.17"
sp-io = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-trie = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
sp-io = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-trie = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }


9 changes: 4 additions & 5 deletions examples/src/expects/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,18 @@ mod tests {
/// If the status was not succesful, the `ExpectTransactStatus` errors,
/// and the ErrorHandler will report the error back to the Parachain.
///
/// Assert that `set_balance` execution fails as it requires the origin to be root,
/// Assert that `force_set_balance` execution fails as it requires the origin to be root,
/// and the origin_kind is `SovereignAccount`.
#[test]
fn expect_transact_status() {
MockNet::reset();
// Runtime call dispatched by the Transact instruction.
// set_balance requires root origin.
// force_set_balance requires root origin.
let call = relay_chain::RuntimeCall::Balances(pallet_balances::Call::<
relay_chain::Runtime,
>::set_balance {
>::force_set_balance {
who: ALICE,
new_free: 100,
new_reserved: 0,
});

let message = Xcm(vec![
Expand All @@ -219,7 +218,7 @@ mod tests {
assert_ok!(ParachainPalletXcm::send_xcm(Here, Parent, message.clone(),));
});

// The execution of set_balance does not succeed, and error is reported back to the parachain.
// The execution of force_set_balance does not succeed, and error is reported back to the parachain.
ParaA::execute_with(|| {
assert_eq!(
parachain::MsgQueue::received_dmp(),
Expand Down
176 changes: 0 additions & 176 deletions examples/src/kusama_test_net/kusama_test_net.rs

This file was deleted.

2 changes: 0 additions & 2 deletions examples/src/kusama_test_net/mod.rs

This file was deleted.

Loading