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

feat: ⏫ upgrade to Polkadot SDK v1.13.0 #216

Merged
merged 37 commits into from
Oct 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2eff08b
refactor: :art: moved runtime apis into their own file
TDemeco Sep 27, 2024
303feb3
fix: :arrow_up: fix upgrade to polkadot-sdk v1.10.0
TDemeco Sep 27, 2024
e5ba5bd
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 27, 2024
3e4328d
fix: :bug: add removed runtime api `get_worst_case_scenario_slashable…
TDemeco Sep 27, 2024
3605611
fix: :bug: add missing generic in storage providers runtime api
TDemeco Sep 27, 2024
3659377
chore: :label: run typegen
TDemeco Sep 27, 2024
c1219f1
style: :rotating_light: run cargo fmt
TDemeco Sep 27, 2024
5ac0258
fix: :art: fix cargo clippy
TDemeco Sep 28, 2024
e82a113
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 28, 2024
91ae601
fix: :ambulance: fix mocked relay chain randomness
TDemeco Sep 28, 2024
97c0b64
style: :rotating_light: run cargo fmt
TDemeco Sep 28, 2024
787d1df
chore: :rotating_light: temporary remove unused import (until v1.13.0)
TDemeco Sep 28, 2024
9653a4e
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 28, 2024
6fb8bd4
fix: :adhesive_bandage: update `query_earliest_file_volunteer_tick` r…
TDemeco Sep 28, 2024
cde6b90
fix: :ambulance: fix issues with merge from main
TDemeco Sep 28, 2024
570e548
style: :rotating_light: run cargo fmt
TDemeco Sep 28, 2024
9bb33cc
feat: :package: initial update to polkadot sdk v1.11.0
TDemeco Sep 30, 2024
e28f09b
feat: :arrow_up: finish upgrade to polkadot sdk v1.11.0
TDemeco Sep 30, 2024
2947b01
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 30, 2024
5c07140
chore: :label: run typegen
TDemeco Sep 30, 2024
f86f2c1
Merge branch 'update/polkadot-sdk-1.10.0' into update/polkadot-sdk-1.…
TDemeco Sep 30, 2024
f4964fc
chore: :label: run typegen
TDemeco Sep 30, 2024
f85735d
fix: :white_check_mark: fix node tests after rebenchmark of balances …
TDemeco Oct 1, 2024
b7090b5
feat: :arrow_up: update to Polkadot SDK v1.12.0
TDemeco Oct 3, 2024
889fa3c
feat: :arrow_up: update to Polkadot SDK v1.13.0
TDemeco Oct 4, 2024
9587713
fix: :arrow_up: finish upgrading to Polkadot SDK v1.13.0
TDemeco Oct 4, 2024
5142fdd
Merge branch 'main' into update/polkadot-sdk-v1.13.0
TDemeco Oct 4, 2024
4eb7f24
fix: :bug: add missing imports (and run typegen)
TDemeco Oct 4, 2024
73a343f
fix: :arrow_down: rollback polkadotjs api dependencies
TDemeco Oct 4, 2024
090bfa6
chore: :label: rerun pnpm typegen
TDemeco Oct 4, 2024
b857c6d
fix: :rotating_light: format and lint
TDemeco Oct 7, 2024
c6157a0
fix: :rotating_light: remove trailing whitespace
TDemeco Oct 7, 2024
eb25fad
Update runtime/src/configs/mod.rs
TDemeco Oct 7, 2024
6a5b67d
Update mod.rs
TDemeco Oct 7, 2024
32f4de8
Merge branch 'update/polkadot-sdk-v1.13.0' of https://github.com/Moon…
TDemeco Oct 7, 2024
0c7782b
Merge branch 'main' into update/polkadot-sdk-v1.13.0
TDemeco Oct 7, 2024
f01a61e
chore: :label: run typegen
TDemeco Oct 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: 🐛 add missing imports (and run typegen)
TDemeco committed Oct 4, 2024
commit 4eb7f2484e07ba33467919f3636f21ef9acddcb7
2,270 changes: 1,076 additions & 1,194 deletions Cargo.lock

Large diffs are not rendered by default.

200 changes: 103 additions & 97 deletions api-augment/dist/interfaces/lookup.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api-augment/dist/interfaces/lookup.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions api-augment/dist/types/interfaces/augment-api-query.d.ts
Original file line number Diff line number Diff line change
@@ -71,6 +71,7 @@ import type {
SpRuntimeDigest,
SpTrieStorageProof,
SpWeightsWeightV2Weight,
StagingXcmV4Instruction,
StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey,
StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue,
StorageHubRuntimeRuntimeHoldReason,
2 changes: 2 additions & 0 deletions api-augment/dist/types/interfaces/augment-types.d.ts
Original file line number Diff line number Diff line change
@@ -2203,6 +2203,8 @@ declare module "@polkadot/types/types/registry" {
QueryId: QueryId;
QueryMspConfirmChunksToProveForFileError: QueryMspConfirmChunksToProveForFileError;
QueryMspIdOfBucketIdError: QueryMspIdOfBucketIdError;
QueryResponseInfoV3: QueryResponseInfoV3;
QueryResponseInfoV4: QueryResponseInfoV4;
QueryStatus: QueryStatus;
QueryStorageProviderCapacityError: QueryStorageProviderCapacityError;
QueueConfigData: QueueConfigData;
200 changes: 103 additions & 97 deletions api-augment/dist/types/interfaces/lookup.d.ts

Large diffs are not rendered by default.

202 changes: 105 additions & 97 deletions api-augment/dist/types/interfaces/types-lookup.d.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions api-augment/src/interfaces/augment-api-query.ts
Original file line number Diff line number Diff line change
@@ -77,6 +77,8 @@ import type {
SpRuntimeDigest,
SpTrieStorageProof,
SpWeightsWeightV2Weight,
StagingXcmV4Instruction,
StagingXcmV4Xcm,
StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey,
StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue,
StorageHubRuntimeRuntimeHoldReason,
2 changes: 2 additions & 0 deletions api-augment/src/interfaces/augment-types.ts
Original file line number Diff line number Diff line change
@@ -2210,6 +2210,8 @@ declare module "@polkadot/types/types/registry" {
QueryId: QueryId;
QueryMspConfirmChunksToProveForFileError: QueryMspConfirmChunksToProveForFileError;
QueryMspIdOfBucketIdError: QueryMspIdOfBucketIdError;
QueryResponseInfoV3: QueryResponseInfoV3;
QueryResponseInfoV4: QueryResponseInfoV4;
QueryStatus: QueryStatus;
QueryStorageProviderCapacityError: QueryStorageProviderCapacityError;
QueueConfigData: QueueConfigData;
200 changes: 103 additions & 97 deletions api-augment/src/interfaces/lookup.ts

Large diffs are not rendered by default.

203 changes: 106 additions & 97 deletions api-augment/src/interfaces/types-lookup.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api-augment/storagehub.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions runtime/src/configs/mod.rs
Original file line number Diff line number Diff line change
@@ -28,8 +28,8 @@ pub mod xcm_config;

// Substrate and Polkadot dependencies
use core::marker::PhantomData;
use cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases;
use cumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use cumulus_pallet_parachain_system::{RelayChainStateProof, RelayNumberMonotonicallyIncreases};
use cumulus_primitives_core::{relay_chain::well_known_keys, AggregateMessageOrigin, ParaId};
use frame_support::{
derive_impl,
dispatch::DispatchClass,
@@ -58,7 +58,7 @@ use shp_file_metadata::{ChunkId, FileMetadata};
use shp_forest_verifier::ForestVerifier;
use shp_traits::{CommitmentVerifier, MaybeDebug};
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::{blake2_256, ConstU128, Get, Hasher, H256};
use sp_core::{ConstU128, Get, Hasher, H256};
use sp_runtime::{
traits::{BlakeTwo256, Convert, ConvertBack, Verify},
AccountId32, DispatchError, Perbill, SaturatedConversion,
@@ -73,8 +73,8 @@ use xcm::latest::prelude::BodyId;
use crate::{
weights::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},
AccountId, Aura, Balance, Balances, Block, BlockNumber, BucketNfts, CollatorSelection, Hash,
MessageQueue, Nfts, Nonce, PalletInfo, ParachainSystem, PaymentStreams, PolkadotXcm,
ProofsDealer, Providers, Runtime, RuntimeCall, RuntimeEvent, RuntimeFreezeReason,
MessageQueue, Nfts, Nonce, PalletInfo, ParachainInfo, ParachainSystem, PaymentStreams,
PolkadotXcm, ProofsDealer, Providers, Runtime, RuntimeCall, RuntimeEvent, RuntimeFreezeReason,
RuntimeHoldReason, RuntimeOrigin, RuntimeTask, Session, SessionKeys, Signature, System,
WeightToFee, XcmpQueue, AVERAGE_ON_INITIALIZE_RATIO, BLOCK_PROCESSING_VELOCITY, DAYS,
EXISTENTIAL_DEPOSIT, HOURS, MAXIMUM_BLOCK_WEIGHT, MICROUNIT, MINUTES, NORMAL_DISPATCH_RATIO,
2 changes: 1 addition & 1 deletion xcm-simulator/src/storagehub/configs/mod.rs
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ use polkadot_runtime_common::{
use shp_file_metadata::ChunkId;
use shp_traits::{CommitmentVerifier, MaybeDebug, TrieMutation, TrieProofDeltaApplier};
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::{blake2_256, Get, Hasher, H256};
use sp_core::{Get, Hasher, H256};
use sp_runtime::{
traits::{BlakeTwo256, Convert, ConvertBack, Verify},
AccountId32, DispatchError, Perbill, SaturatedConversion,

Unchanged files with check annotations Beta

// Get the number of blocks that have been considered _not_ full in the past `BlockFullnessPeriod`.
let not_full_blocks_count = NotFullBlocksCount::<T>::get();
let mut new_not_full_blocks_count = not_full_blocks_count.clone();

Check warning on line 576 in pallets/proofs-dealer/src/utils.rs

GitHub Actions / Check lint with clippy

using `clone` on type `<<<T as Config>::Block as Block>::Header as Header>::Number` which implements the `Copy` trait
weight.consume(T::DbWeight::get().reads_writes(1, 0));
// This would only be `None` if the block number is 0, so this should be safe.
}};
// Handle boolean type
($condition:expr, $error_msg:expr, $error_type:path, bool) => {{
if !$condition {

Check warning on line 71 in pallets/file-system/src/utils.rs

GitHub Actions / Check lint with clippy

the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable

Check warning on line 71 in pallets/file-system/src/utils.rs

GitHub Actions / Check lint with clippy

the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
#[cfg(test)]
unreachable!($error_msg);
// Iterates and tries to send file to peer.
// Breaks loop after first successful attempt,
// since all peer ids belong to the same BSP.
for peer_id in peer_ids {

Check warning on line 155 in node/src/tasks/user_sends_file.rs

GitHub Actions / Check lint with clippy

this loop never actually loops
for chunk_id in 0..chunk_count {
debug!(target: LOG_TARGET, "Trying to send chunk id {:?} of file {:?} to peer {:?}", chunk_id, file_key, peer_id);
let proof = match self
import { strictEqual } from "node:assert";

Check notice on line 1 in test/suites/solo-node/balances/balances-reaping.test.ts

GitHub Actions / Run Dev Node Tests (2)

'only' and 'runOnly' require the --test-only command-line option.

Check notice on line 1 in test/suites/solo-node/balances/balances-reaping.test.ts

GitHub Actions / Run Dev Node Tests (2)

'only' and 'runOnly' require the --test-only command-line option.
import { after, before, describe, it } from "node:test";
import {
alice,