Skip to content

Commit e124aeb

Browse files
OverOrioncoax1d
andauthored
Polkadot update v0.9.42 (#175)
* polkadot update to v0.9.42 * remove deprecated trait Store uses See paritytech/substrate#13535 * remove deprecated Weight::from_{ref_time, proof_size} See paritytech/substrate#13475 * allowlist one constant weight See paritytech/substrate#13798 * add new trait associated types * polkadot update to v0.9.42 (xcm) * fixup! remove deprecated trait Store uses * teerex/mock: add missing trait imports * claims/tests: fix benchmark as described in substrate/12951 See: paritytech/substrate#12951 * claims/tests: fix claiming_while_vested_doesnt_work by giving it the existential deposit (ED) Co-authored-by: coax1d <[email protected]> --------- Co-authored-by: coax1d <[email protected]>
1 parent 4239d3d commit e124aeb

File tree

30 files changed

+789
-623
lines changed

30 files changed

+789
-623
lines changed

Cargo.lock

Lines changed: 613 additions & 469 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

claims/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ serde = { version = "1.0.13", default-features = false }
1414
serde_derive = { version = "1.0.13", optional = true }
1515

1616
# substrate dependencies
17-
frame-benchmarking = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
18-
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
19-
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
20-
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
21-
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
22-
sp-std = { package = "sp-std", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
17+
frame-benchmarking = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
18+
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
19+
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
20+
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
21+
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
22+
sp-std = { package = "sp-std", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
2323

2424
# local
2525
claims-primitives = { package = "claims-primitives", path = "../primitives/claims", default-features = false }
2626

2727
[dev-dependencies]
2828
hex-literal = "0.3.3"
2929
libsecp256k1 = "0.7.0"
30-
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
31-
pallet-vesting = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
30+
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
31+
pallet-vesting = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
3232
serde_json = { version = "1.0" }
33-
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
33+
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
3434

3535
[features]
3636
default = ["std"]

claims/src/lib.rs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ pub trait WeightInfo {
5454
pub struct TestWeightInfo;
5555
impl WeightInfo for TestWeightInfo {
5656
fn claim() -> Weight {
57-
Weight::from_ref_time(0)
57+
Weight::from_parts(0, 0u64)
5858
}
5959
fn mint_claim() -> Weight {
60-
Weight::from_ref_time(0)
60+
Weight::from_parts(0, 0u64)
6161
}
6262
fn claim_attest() -> Weight {
63-
Weight::from_ref_time(0)
63+
Weight::from_parts(0, 0u64)
6464
}
6565
fn attest() -> Weight {
66-
Weight::from_ref_time(0)
66+
Weight::from_parts(0, 0u64)
6767
}
6868
fn move_claim() -> Weight {
69-
Weight::from_ref_time(0)
69+
Weight::from_parts(0, 0u64)
7070
}
7171
}
7272

@@ -77,7 +77,6 @@ pub mod pallet {
7777
use frame_system::pallet_prelude::*;
7878

7979
#[pallet::pallet]
80-
#[pallet::generate_store(pub(super) trait Store)]
8180
#[pallet::without_storage_info]
8281
pub struct Pallet<T>(_);
8382

@@ -640,6 +639,7 @@ mod tests {
640639

641640
use parity_scale_codec::Encode;
642641
use sp_core::H256;
642+
use sp_runtime::{DispatchError::Token, TokenError::Frozen};
643643
// The testing primitives are very useful for avoiding having to work with signatures
644644
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
645645
use super::Call as ClaimsCall;
@@ -716,6 +716,10 @@ mod tests {
716716
type MaxReserves = ();
717717
type ReserveIdentifier = [u8; 8];
718718
type WeightInfo = ();
719+
type HoldIdentifier = ();
720+
type FreezeIdentifier = ();
721+
type MaxHolds = ();
722+
type MaxFreezes = ();
719723
}
720724

721725
parameter_types! {
@@ -1136,7 +1140,7 @@ mod tests {
11361140
180,
11371141
ExistenceRequirement::AllowDeath
11381142
),
1139-
pallet_balances::Error::<Test, _>::LiquidityRestrictions,
1143+
Token(Frozen),
11401144
);
11411145
});
11421146
}
@@ -1224,6 +1228,13 @@ mod tests {
12241228
#[test]
12251229
fn claiming_while_vested_doesnt_work() {
12261230
new_test_ext().execute_with(|| {
1231+
CurrencyOf::<Test>::make_free_balance_be(&69, CurrencyOf::<Test>::minimum_balance());
1232+
assert_ok!(<Test as Config>::VestingSchedule::can_add_vesting_schedule(
1233+
&69,
1234+
total_claims(),
1235+
100,
1236+
10
1237+
));
12271238
// A user is already vested
12281239
assert_ok!(<Test as Config>::VestingSchedule::add_vesting_schedule(
12291240
&69,

parentchain/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ scale-info = { version = "2.0.1", default-features = false, features = ["derive"
1515
serde = { version = "1.0.13", features = ["derive"], optional = true }
1616

1717
# substrate dependencies
18-
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
19-
frame-system = { default-features = false, package = "frame-system", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
20-
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
21-
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
22-
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
23-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
18+
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
19+
frame-system = { default-features = false, package = "frame-system", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
20+
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
21+
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
22+
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
23+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
2424

2525
[dev-dependencies]
2626
env_logger = "0.9.0"
27-
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
28-
pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
27+
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
28+
pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
2929

3030
[features]
3131
default = ["std"]

parentchain/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pub mod pallet {
99
use frame_system::pallet_prelude::*;
1010

1111
#[pallet::pallet]
12-
#[pallet::generate_store(pub(super) trait Store)]
1312
pub struct Pallet<T>(_);
1413

1514
/// Configuration trait.

parentchain/src/mock.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ impl pallet_balances::Config for Test {
107107
type WeightInfo = ();
108108
type MaxReserves = ();
109109
type ReserveIdentifier = ();
110+
type HoldIdentifier = ();
111+
type FreezeIdentifier = ();
112+
type MaxHolds = ();
113+
type MaxFreezes = ();
110114
}
111115

112116
// This function basically just builds a genesis storage key/value store according to

parentchain/src/weights.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ pub trait WeightInfo {
88
/// Weights for pallet_parentchain using the Integritee parachain node and recommended hardware.
99
impl WeightInfo for () {
1010
fn set_block() -> Weight {
11-
Weight::from_ref_time(10_000)
11+
Weight::from_parts(10_000, 0u64)
1212
}
1313
}

primitives/claims/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ scale-info = { version = "2.0.1", default-features = false, features = ["derive"
1414
serde = { version = "1.0.13", default-features = false }
1515

1616
# substrate dependencies
17-
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
18-
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
19-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" }
17+
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
18+
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
19+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
2020

2121
[features]
2222
default = ["std"]

primitives/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2021"
1010
[dependencies]
1111

1212
# substrate deps
13-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
13+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
1414

1515
[features]
1616
default = ["std"]

primitives/sidechain/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ serde = { version = "1.0.13", default-features = false }
1414

1515

1616
# substrate dependencies
17-
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
18-
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
19-
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
20-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
17+
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
18+
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
19+
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
20+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
2121

2222

2323
[features]

primitives/teeracle/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ common-primitives = { path = "../common", default-features = false }
1515
substrate-fixed = { tag = "v0.5.9", default-features = false, git = "https://github.com/encointer/substrate-fixed.git" }
1616

1717
# substrate
18-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
18+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
1919

2020

2121
[features]

primitives/teerex/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ scale-info = { version = "2.0.1", default-features = false, features = ["derive"
1414
serde = { version = "1.0.13", default-features = false }
1515

1616
# substrate dependencies
17-
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
18-
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
19-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
17+
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
18+
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
19+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
2020

2121
[dev-dependencies]
2222
hex-literal = "0.3.4"

primitives/xcm-transactor/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features =
1313
common-primitives = { path = "../common", default-features = false }
1414

1515
# substrate
16-
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
17-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
16+
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
17+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
1818

1919
# xcm/polkadot
20-
xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.39", default-features = false }
20+
xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.42", default-features = false }
2121

2222
# cumulus
23-
cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.39", default-features = false }
23+
cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42", default-features = false }
2424

2525
[features]
2626
default = ["std"]

sidechain/Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,27 @@ sidechain-primitives = { path = "../primitives/sidechain", default-features = fa
2020
teerex-primitives = { path = "../primitives/teerex", default-features = false }
2121

2222
# substrate dependencies
23-
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
24-
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
25-
pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
26-
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
27-
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
28-
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
29-
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
23+
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
24+
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
25+
pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
26+
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
27+
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
28+
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
29+
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
3030

3131
# benchmarking
32-
frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
32+
frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
3333
hex-literal = { version = "0.3.2", optional = true }
34-
pallet-balances = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
34+
pallet-balances = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
3535
test-utils = { path = "../test-utils", default-features = false, optional = true }
3636

3737
[dev-dependencies]
3838
env_logger = "0.9.0"
39-
externalities = { package = "sp-externalities", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
40-
frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
39+
externalities = { package = "sp-externalities", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
40+
frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
4141
hex-literal = "0.3.2"
42-
pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
43-
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" }
42+
pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
43+
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
4444
test-utils = { path = "../test-utils" }
4545

4646
[features]

sidechain/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ pub mod pallet {
4141
use frame_system::pallet_prelude::*;
4242

4343
#[pallet::pallet]
44-
#[pallet::generate_store(pub(super) trait Store)]
4544
#[pallet::without_storage_info]
4645
pub struct Pallet<T>(PhantomData<T>);
4746

sidechain/src/mock.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ impl pallet_balances::Config for Test {
106106
type WeightInfo = ();
107107
type MaxReserves = ();
108108
type ReserveIdentifier = ();
109+
type HoldIdentifier = ();
110+
type FreezeIdentifier = ();
111+
type MaxHolds = ();
112+
type MaxFreezes = ();
109113
}
110114

111115
parameter_types! {

sidechain/src/weights.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub trait WeightInfo {
3030
pub struct IntegriteeWeight<T>(PhantomData<T>);
3131
impl<T: frame_system::Config> WeightInfo for IntegriteeWeight<T> {
3232
fn confirm_imported_sidechain_block() -> Weight {
33-
Weight::from_ref_time(46_200_000)
33+
Weight::from_parts(46_200_000, 0u64)
3434
.saturating_add(T::DbWeight::get().reads(1))
3535
.saturating_add(T::DbWeight::get().writes(2))
3636
}
@@ -39,7 +39,7 @@ impl<T: frame_system::Config> WeightInfo for IntegriteeWeight<T> {
3939
// For tests
4040
impl WeightInfo for () {
4141
fn confirm_imported_sidechain_block() -> Weight {
42-
Weight::from_ref_time(46_200_000)
42+
Weight::from_parts(46_200_000, 0u64)
4343
.saturating_add(RocksDbWeight::get().reads(1))
4444
.saturating_add(RocksDbWeight::get().writes(2))
4545
}

0 commit comments

Comments
 (0)