Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Polkadot-v1.7.2 #1833

Merged
merged 78 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
d6e0bf4
set dependency versions
lemunozm May 9, 2024
07bb334
upgrade libs/*
lemunozm May 10, 2024
446439a
upgrade pallet-anchors
lemunozm May 10, 2024
52d1b85
upgrade pallet-fees
lemunozm May 10, 2024
7183815
upgrade pallet-bridge
lemunozm May 13, 2024
3374bac
migrate simple pallets
lemunozm May 13, 2024
b161119
migrate pallet-order-book
lemunozm May 13, 2024
9fc71f5
migrated collator-allowlist & swaps
lemunozm May 13, 2024
f302388
upgrade rewards
lemunozm May 13, 2024
a38bfb6
upgraded pallet-mux
lemunozm May 13, 2024
5ccb3d0
upgrade transfer-allowlist
lemunozm May 13, 2024
056d942
Merge remote-tracking branch 'origin/main' into polkadot-v1.7.2
lemunozm May 13, 2024
5940897
fix hold reason in restricted tokens
lemunozm May 13, 2024
7d3335f
simplify set_balance removing the holding part
lemunozm May 13, 2024
3c2bb34
upgrade restricted-xtokens
lemunozm May 13, 2024
da56ef2
upgrade some pallets
lemunozm May 13, 2024
8ad0451
upgrade pallet-ethereum-transaction
lemunozm May 13, 2024
8461f41
upgrade pallet-loans
lemunozm May 13, 2024
873507d
upgrade pool-system
lemunozm May 14, 2024
3ae8b03
upgrade pool-fees
lemunozm May 14, 2024
4a2b98b
upgrade pool-registry
lemunozm May 14, 2024
3f94ea2
upgrade liquidity-pools stuffs
lemunozm May 14, 2024
45ca1c4
avoid duplicated polkadot-sdk repos
lemunozm May 16, 2024
45b3f11
minor fixes
lemunozm May 16, 2024
a783c9f
upgraded runtime-common
lemunozm May 17, 2024
1f70efe
CfgLocation to RestrictedTransferLocation
lemunozm May 17, 2024
f713417
restricted tokens with NativeIndex for native fungibles
lemunozm May 20, 2024
9f12a65
rename dependency
lemunozm May 20, 2024
f84ac93
upgraded development-runtime
lemunozm May 21, 2024
769afc5
fix partially benchmarks
lemunozm May 21, 2024
5f5f7b6
fix benchmarks
lemunozm May 22, 2024
aaceaf9
overpass xcmp-queue integrity tests
lemunozm May 22, 2024
1a23394
minor coments
lemunozm May 22, 2024
3a0e1cd
upgrade altair & centrifuge
lemunozm May 23, 2024
a259be5
remove some benchmarking pallets that are not needed
lemunozm May 23, 2024
c9729ef
fix runtime upgrades
lemunozm May 23, 2024
65b32a1
upgrade integration-test proc
lemunozm May 24, 2024
ed5b888
upgrade integration-tests framework
lemunozm May 27, 2024
493a602
upgraded all tests except liquidity pools
lemunozm May 27, 2024
55d28ee
99% upgraded liquidity-pools tests
lemunozm May 27, 2024
f172b1d
fix lookup
lemunozm May 28, 2024
b886c46
Merge remote-tracking branch 'origin/main' into polkadot-v1.7.2
lemunozm May 28, 2024
9c27823
cargo fmt
lemunozm May 28, 2024
55bfab5
taplo fmt
lemunozm May 28, 2024
75ae4a4
using nightly cargo in CI
lemunozm May 28, 2024
38377a9
restore set_balance as it was
lemunozm May 28, 2024
8071ffe
allow nightly support in CI
lemunozm May 28, 2024
338a573
use restricted_tokens again to fetch from investement portfolio
lemunozm May 28, 2024
8c92688
Install rust-src for docs
lemunozm May 28, 2024
625f9d2
fix tests
lemunozm May 28, 2024
1bd859b
remove unused restricted tokens
lemunozm May 28, 2024
a304d7f
fix block rewards
lemunozm May 28, 2024
99b4abc
fix WrongWitness for some tests in IT
lemunozm May 29, 2024
17a180c
fix liquidity-pools
lemunozm May 29, 2024
aa40ed0
minor fixes
lemunozm May 29, 2024
7b1b7e2
fix clippy
lemunozm May 30, 2024
a5dbd56
remove unneeded tests
lemunozm May 30, 2024
bc17d18
feat: Update client to Polkadot v1.7.2 (#1844)
wischli May 30, 2024
a95459b
cargo fmt
lemunozm May 30, 2024
3e44ef9
fix clippy
lemunozm May 30, 2024
f83d95f
feat: Polkadot v1.7.2 migrations (#1849)
wischli May 31, 2024
fb52bc4
last William iteration review
lemunozm Jun 3, 2024
988fcbb
increase passed blocks
lemunozm Jun 5, 2024
8410d16
use rococo instead of polkadot-test-runtime
lemunozm Jun 5, 2024
db844a5
fix tests
lemunozm Jun 5, 2024
beb13f0
remove line
lemunozm Jun 5, 2024
7e69e68
dirty fix to fix Hrmp test issue
lemunozm Jun 6, 2024
1c96ae1
use default weights for treasury
lemunozm Jun 6, 2024
7edbc3a
remove getrandom unused dep
lemunozm Jun 6, 2024
e1bad5f
upgrade to last polkadot-sdk version
lemunozm Jun 6, 2024
43f7c48
Polkadot-1.7.2: restricted transfer location changes (#1853)
lemunozm Jun 6, 2024
43fbab5
Merge remote-tracking branch 'origin/main' into polkadot-v1.7.2
lemunozm Jun 6, 2024
dde6ca4
fix: collator selection v2 storage migration (#1862)
wischli Jun 6, 2024
519e998
using latest fudge version
lemunozm Jun 6, 2024
5baab79
protect againts crash in RtAPI
lemunozm Jun 7, 2024
b5a7d89
add dmp-queue to the lazy migration, use better weights
lemunozm Jun 7, 2024
e7f9c27
fix clippy
lemunozm Jun 7, 2024
d2072ce
Merge remote-tracking branch 'origin/main' into polkadot-v1.7.2
lemunozm Jun 7, 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
Prev Previous commit
Next Next commit
fix lookup
lemunozm committed May 28, 2024
commit f172b1d799e71598ce51365f693869295e254d80
18 changes: 10 additions & 8 deletions runtime/integration-tests/src/generic/cases/liquidity_pools.rs
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ use sp_core::{Get, H160, U256};
use sp_runtime::{
traits::{
AccountIdConversion, BadOrigin, ConstU32, Convert as C1, Convert as C2, EnsureAdd, Hash,
One, Zero,
One, StaticLookup, Zero,
},
BoundedVec, BuildStorage, DispatchError, FixedPointNumber, Perquintill, SaturatedConversion,
WeakBoundedVec,
@@ -70,7 +70,7 @@ use crate::{
generic::{
config::Runtime,
env::{Blocks, Env},
envs::fudge_env::{handle::FudgeHandle, FudgeEnv, FudgeSupport},
envs::fudge_env::{handle::FudgeHandle, FudgeEnv, FudgeRelayRuntime, FudgeSupport},
utils::{
democracy::execute_via_democracy, evm::mint_balance_into_derived_account, genesis,
genesis::Genesis, xcm::setup_xcm,
@@ -214,8 +214,6 @@ pub mod utils {
}
}

type FudgeRelayRuntime<T> = <<T as FudgeSupport>::FudgeHandle as FudgeHandle<T>>::RelayRuntime;

use utils::*;

mod development {
@@ -5616,7 +5614,9 @@ mod altair {
assert_ok!(
pallet_balances::Pallet::<FudgeRelayRuntime<T>>::force_set_balance(
<FudgeRelayRuntime<T> as frame_system::Config>::RuntimeOrigin::root(),
Keyring::Alice.to_account_id().into(),
<FudgeRelayRuntime<T> as frame_system::Config>::Lookup::unlookup(
Keyring::Alice.id()
),
transfer_amount * 2,
)
);
@@ -6142,7 +6142,7 @@ mod altair {
register_ksm::<T>();

assert_eq!(
<CurrencyIdConvert as C1<_, _>>::convert(ksm_location),
<CurrencyIdConvert as C1<_, _>>::convert(ksm_location.clone()),
Some(KSM_ASSET_ID),
);

@@ -6411,7 +6411,9 @@ mod centrifuge {
assert_ok!(
pallet_balances::Pallet::<FudgeRelayRuntime<T>>::force_set_balance(
<FudgeRelayRuntime<T> as frame_system::Config>::RuntimeOrigin::root(),
Keyring::Alice.to_account_id().into(),
<FudgeRelayRuntime<T> as frame_system::Config>::Lookup::unlookup(
Keyring::Alice.id()
),
alice_initial_dot,
)
);
@@ -6660,7 +6662,7 @@ mod centrifuge {
register_dot::<T>();

assert_eq!(
<CurrencyIdConvert as C1<_, _>>::convert(dot_location),
<CurrencyIdConvert as C1<_, _>>::convert(dot_location.clone()),
Some(DOT_ASSET_ID),
);

2 changes: 2 additions & 0 deletions runtime/integration-tests/src/generic/envs/fudge_env.rs
Original file line number Diff line number Diff line change
@@ -24,6 +24,8 @@ pub trait FudgeSupport: Runtime {
type FudgeHandle: FudgeHandle<Self>;
}

pub type FudgeRelayRuntime<T> = <<T as FudgeSupport>::FudgeHandle as FudgeHandle<T>>::RelayRuntime;

/// Evironment that uses fudge to interact with the runtime
pub struct FudgeEnv<T: Runtime + FudgeSupport> {
handle: T::FudgeHandle,
20 changes: 12 additions & 8 deletions runtime/integration-tests/src/generic/envs/fudge_env/handle.rs
Original file line number Diff line number Diff line change
@@ -252,11 +252,13 @@ pub trait FudgeHandle<T: Runtime> {
let mut runtime = RelaychainBuilder::new(init, |client| (cidp(client), dp))
.expect("ESSENTIAL: Relaychain Builder can be created.");

runtime.with_mut_state(|| {
frame_system::Pallet::<T>::update_code_in_storage(code);
}).unwrap();
runtime
.with_mut_state(|| {
frame_system::Pallet::<T>::update_code_in_storage(code);
})
.unwrap();

runtime
runtime
}

fn new_parachain_builder(
@@ -352,10 +354,12 @@ pub trait FudgeHandle<T: Runtime> {
let mut runtime = ParachainBuilder::new(para_id, init, |client| (cidp, dp(client)))
.expect("ESSENTIAL: Parachain Builder can be created.");

runtime.with_mut_state(|| {
frame_system::Pallet::<T>::update_code_in_storage(code);
}).unwrap();
runtime
.with_mut_state(|| {
frame_system::Pallet::<T>::update_code_in_storage(code);
})
.unwrap();

runtime
runtime
}
}
4 changes: 1 addition & 3 deletions runtime/integration-tests/src/generic/utils/xcm.rs
Original file line number Diff line number Diff line change
@@ -8,11 +8,9 @@ use staging_xcm::{
use crate::generic::{
config::Runtime,
env::{Blocks, Env},
envs::fudge_env::{handle::FudgeHandle, FudgeEnv, FudgeSupport},
envs::fudge_env::{handle::FudgeHandle, FudgeEnv, FudgeRelayRuntime, FudgeSupport},
};

type FudgeRelayRuntime<T> = <<T as FudgeSupport>::FudgeHandle as FudgeHandle<T>>::RelayRuntime;

pub fn setup_xcm<T: Runtime + FudgeSupport>(env: &mut FudgeEnv<T>) {
env.parachain_state_mut(|| {
// Set the XCM version used when sending XCM messages to sibling.