Skip to content

Commit 12e3982

Browse files
TDemecoffarall
andauthored
feat: ⏫ upgrade to Polkadot SDK stable2409 (#228)
* refactor: 🎨 moved runtime apis into their own file * fix: ⬆️ fix upgrade to polkadot-sdk v1.10.0 * fix: 🐛 add removed runtime api `get_worst_case_scenario_slashable_amount` * fix: 🐛 add missing generic in storage providers runtime api * chore: 🏷️ run typegen * style: 🚨 run cargo fmt * fix: 🎨 fix cargo clippy * fix: 🚑 fix mocked relay chain randomness * style: 🚨 run cargo fmt * chore: 🚨 temporary remove unused import (until v1.13.0) * fix: 🩹 update `query_earliest_file_volunteer_tick` runtime api * fix: 🚑 fix issues with merge from main * style: 🚨 run cargo fmt * feat: 📦 initial update to polkadot sdk v1.11.0 * feat: ⬆️ finish upgrade to polkadot sdk v1.11.0 * chore: 🏷️ run typegen * chore: 🏷️ run typegen * fix: ✅ fix node tests after rebenchmark of balances pallet in v1.11.0 * feat: ⬆️ update to Polkadot SDK v1.12.0 * feat: ⬆️ update to Polkadot SDK v1.13.0 * fix: ⬆️ finish upgrading to Polkadot SDK v1.13.0 * fix: 🐛 add missing imports (and run typegen) * fix: ⬇️ rollback polkadotjs api dependencies * chore: 🏷️ rerun pnpm typegen * feat: 🚧 start upgrade to Polkadot SDK 1.14.0 * fix: 🚨 format and lint * fix: 🚨 remove trailing whitespace * feat: ⬆️ upgrade to Polkadot SDK v1.14.0 * chore: 🏷️ run typegen * fix: 🚨 run cargo fmt * docs: 🔥 remove wrong license docs * feat: ⬆️ update Polkadot SDK to stable2407 * chore: 🏷️ run typegen * chore: 🏷️ run typegen * fix: ✅ fix bsp-threshold test * fix: 💚 try to fix tests in CI * fix: ✅ try again to fix the integration tests in the CI * test: 🧪 fix batch file confirm storing test * fix: ✅ remove unused imports from volunteer test * fix: ✅ add wait for file in file storage success and fix volunteer test * fix: ✅ wait more time for bsp volunteering * test: 🧪 fix a few issues * fix: ✅ maybe (hopefully) finish fixing tests * fix: ✅ fix new bsps not catching up to the tip of the chain and missing events in tests * test: ✅ disconnect api * test: 🐛 fix timeout bug * test: ✅ add initialization wait + fix single bsp initialized network * chore: 🚨 removed unused variables * test: 🐛 initialised bsp net now correctly waits for bsp to store file * test: 🐛 add missing wait for chain tip sync on test * fix: 🩹 Remove sleeps from single tests, in favour of putting it in setup * feat: 🚧 start update to stable2409 * feat: ⬆️ update to Polkadot SDK stable2409 * chore: 🏷️ run typegen --------- Co-authored-by: Facundo Farall <37149322+ffarall@users.noreply.github.com>
1 parent 85e28c8 commit 12e3982

File tree

37 files changed

+2020
-2026
lines changed

37 files changed

+2020
-2026
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 105 additions & 104 deletions
Large diffs are not rendered by default.

api-augment/dist/interfaces/lookup.js

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

api-augment/dist/interfaces/lookup.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-augment/dist/types/interfaces/augment-api-query.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ import type {
6161
PalletXcmRemoteLockedFungibleRecord,
6262
PalletXcmVersionMigrationStage,
6363
PolkadotCorePrimitivesOutboundHrmpMessage,
64-
PolkadotPrimitivesV7AbridgedHostConfiguration,
65-
PolkadotPrimitivesV7PersistedValidationData,
66-
PolkadotPrimitivesV7UpgradeGoAhead,
67-
PolkadotPrimitivesV7UpgradeRestriction,
64+
PolkadotPrimitivesV8AbridgedHostConfiguration,
65+
PolkadotPrimitivesV8PersistedValidationData,
66+
PolkadotPrimitivesV8UpgradeGoAhead,
67+
PolkadotPrimitivesV8UpgradeRestriction,
6868
ShpTraitsTrieRemoveMutation,
6969
SpConsensusAuraSr25519AppSr25519Public,
7070
SpCoreCryptoKeyTypeId,
@@ -773,7 +773,7 @@ declare module "@polkadot/api-base/types/storage" {
773773
**/
774774
hostConfiguration: AugmentedQuery<
775775
ApiType,
776-
() => Observable<Option<PolkadotPrimitivesV7AbridgedHostConfiguration>>,
776+
() => Observable<Option<PolkadotPrimitivesV8AbridgedHostConfiguration>>,
777777
[]
778778
> &
779779
QueryableStorageEntry<ApiType, []>;
@@ -919,7 +919,7 @@ declare module "@polkadot/api-base/types/storage" {
919919
**/
920920
upgradeGoAhead: AugmentedQuery<
921921
ApiType,
922-
() => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>,
922+
() => Observable<Option<PolkadotPrimitivesV8UpgradeGoAhead>>,
923923
[]
924924
> &
925925
QueryableStorageEntry<ApiType, []>;
@@ -934,7 +934,7 @@ declare module "@polkadot/api-base/types/storage" {
934934
**/
935935
upgradeRestrictionSignal: AugmentedQuery<
936936
ApiType,
937-
() => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>,
937+
() => Observable<Option<PolkadotPrimitivesV8UpgradeRestriction>>,
938938
[]
939939
> &
940940
QueryableStorageEntry<ApiType, []>;
@@ -957,7 +957,7 @@ declare module "@polkadot/api-base/types/storage" {
957957
**/
958958
validationData: AugmentedQuery<
959959
ApiType,
960-
() => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>,
960+
() => Observable<Option<PolkadotPrimitivesV8PersistedValidationData>>,
961961
[]
962962
> &
963963
QueryableStorageEntry<ApiType, []>;

api-augment/dist/types/interfaces/augment-api-tx.d.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,38 +2184,6 @@ declare module "@polkadot/api-base/types/submittable" {
21842184
[key: string]: SubmittableExtrinsicFunction<ApiType>;
21852185
};
21862186
parachainSystem: {
2187-
/**
2188-
* Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
2189-
* later.
2190-
*
2191-
* The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
2192-
* version and name should be verified on upgrade. Since the authorization only has a hash,
2193-
* it cannot actually perform the verification.
2194-
*
2195-
* This call requires Root origin.
2196-
**/
2197-
authorizeUpgrade: AugmentedSubmittable<
2198-
(
2199-
codeHash: H256 | string | Uint8Array,
2200-
checkVersion: bool | boolean | Uint8Array
2201-
) => SubmittableExtrinsic<ApiType>,
2202-
[H256, bool]
2203-
>;
2204-
/**
2205-
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
2206-
*
2207-
* If the authorization required a version check, this call will ensure the spec name
2208-
* remains unchanged and that the spec version has increased.
2209-
*
2210-
* Note that this function will not apply the new `code`, but only attempt to schedule the
2211-
* upgrade with the Relay Chain.
2212-
*
2213-
* All origins are allowed.
2214-
**/
2215-
enactAuthorizedUpgrade: AugmentedSubmittable<
2216-
(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2217-
[Bytes]
2218-
>;
22192187
/**
22202188
* Set the current validation data.
22212189
*

api-augment/dist/types/interfaces/lookup.d.ts

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,9 +2211,9 @@ declare const _default: {
22112211
totalBytes: string;
22122212
};
22132213
/**
2214-
* Lookup222: polkadot_primitives::v7::UpgradeGoAhead
2214+
* Lookup222: polkadot_primitives::v8::UpgradeGoAhead
22152215
**/
2216-
PolkadotPrimitivesV7UpgradeGoAhead: {
2216+
PolkadotPrimitivesV8UpgradeGoAhead: {
22172217
_enum: string[];
22182218
};
22192219
/**
@@ -2225,18 +2225,18 @@ declare const _default: {
22252225
consumedGoAheadSignal: string;
22262226
};
22272227
/**
2228-
* Lookup224: polkadot_primitives::v7::PersistedValidationData<primitive_types::H256, N>
2228+
* Lookup224: polkadot_primitives::v8::PersistedValidationData<primitive_types::H256, N>
22292229
**/
2230-
PolkadotPrimitivesV7PersistedValidationData: {
2230+
PolkadotPrimitivesV8PersistedValidationData: {
22312231
parentHead: string;
22322232
relayParentNumber: string;
22332233
relayParentStorageRoot: string;
22342234
maxPovSize: string;
22352235
};
22362236
/**
2237-
* Lookup227: polkadot_primitives::v7::UpgradeRestriction
2237+
* Lookup227: polkadot_primitives::v8::UpgradeRestriction
22382238
**/
2239-
PolkadotPrimitivesV7UpgradeRestriction: {
2239+
PolkadotPrimitivesV8UpgradeRestriction: {
22402240
_enum: string[];
22412241
};
22422242
/**
@@ -2262,9 +2262,9 @@ declare const _default: {
22622262
remainingSize: string;
22632263
};
22642264
/**
2265-
* Lookup234: polkadot_primitives::v7::AbridgedHrmpChannel
2265+
* Lookup234: polkadot_primitives::v8::AbridgedHrmpChannel
22662266
**/
2267-
PolkadotPrimitivesV7AbridgedHrmpChannel: {
2267+
PolkadotPrimitivesV8AbridgedHrmpChannel: {
22682268
maxCapacity: string;
22692269
maxTotalSize: string;
22702270
maxMessageSize: string;
@@ -2273,9 +2273,9 @@ declare const _default: {
22732273
mqcHead: string;
22742274
};
22752275
/**
2276-
* Lookup235: polkadot_primitives::v7::AbridgedHostConfiguration
2276+
* Lookup235: polkadot_primitives::v8::AbridgedHostConfiguration
22772277
**/
2278-
PolkadotPrimitivesV7AbridgedHostConfiguration: {
2278+
PolkadotPrimitivesV8AbridgedHostConfiguration: {
22792279
maxCodeSize: string;
22802280
maxHeadDataSize: string;
22812281
maxUpwardQueueCount: string;
@@ -2288,9 +2288,9 @@ declare const _default: {
22882288
asyncBackingParams: string;
22892289
};
22902290
/**
2291-
* Lookup236: polkadot_primitives::v7::async_backing::AsyncBackingParams
2291+
* Lookup236: polkadot_primitives::v8::async_backing::AsyncBackingParams
22922292
**/
2293-
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: {
2293+
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams: {
22942294
maxCandidateDepth: string;
22952295
allowedAncestryLen: string;
22962296
};
@@ -2312,13 +2312,6 @@ declare const _default: {
23122312
sudo_send_upward_message: {
23132313
message: string;
23142314
};
2315-
authorize_upgrade: {
2316-
codeHash: string;
2317-
checkVersion: string;
2318-
};
2319-
enact_authorized_upgrade: {
2320-
code: string;
2321-
};
23222315
};
23232316
};
23242317
/**

api-augment/dist/types/interfaces/registry.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ import type {
159159
PolkadotCorePrimitivesInboundDownwardMessage,
160160
PolkadotCorePrimitivesInboundHrmpMessage,
161161
PolkadotCorePrimitivesOutboundHrmpMessage,
162-
PolkadotPrimitivesV7AbridgedHostConfiguration,
163-
PolkadotPrimitivesV7AbridgedHrmpChannel,
164-
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
165-
PolkadotPrimitivesV7PersistedValidationData,
166-
PolkadotPrimitivesV7UpgradeGoAhead,
167-
PolkadotPrimitivesV7UpgradeRestriction,
162+
PolkadotPrimitivesV8AbridgedHostConfiguration,
163+
PolkadotPrimitivesV8AbridgedHrmpChannel,
164+
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
165+
PolkadotPrimitivesV8PersistedValidationData,
166+
PolkadotPrimitivesV8UpgradeGoAhead,
167+
PolkadotPrimitivesV8UpgradeRestriction,
168168
ShpFileKeyVerifierFileKeyProof,
169169
ShpFileMetadataFileMetadata,
170170
ShpFileMetadataFingerprint,
@@ -428,12 +428,12 @@ declare module "@polkadot/types/types/registry" {
428428
PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage;
429429
PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage;
430430
PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage;
431-
PolkadotPrimitivesV7AbridgedHostConfiguration: PolkadotPrimitivesV7AbridgedHostConfiguration;
432-
PolkadotPrimitivesV7AbridgedHrmpChannel: PolkadotPrimitivesV7AbridgedHrmpChannel;
433-
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
434-
PolkadotPrimitivesV7PersistedValidationData: PolkadotPrimitivesV7PersistedValidationData;
435-
PolkadotPrimitivesV7UpgradeGoAhead: PolkadotPrimitivesV7UpgradeGoAhead;
436-
PolkadotPrimitivesV7UpgradeRestriction: PolkadotPrimitivesV7UpgradeRestriction;
431+
PolkadotPrimitivesV8AbridgedHostConfiguration: PolkadotPrimitivesV8AbridgedHostConfiguration;
432+
PolkadotPrimitivesV8AbridgedHrmpChannel: PolkadotPrimitivesV8AbridgedHrmpChannel;
433+
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams;
434+
PolkadotPrimitivesV8PersistedValidationData: PolkadotPrimitivesV8PersistedValidationData;
435+
PolkadotPrimitivesV8UpgradeGoAhead: PolkadotPrimitivesV8UpgradeGoAhead;
436+
PolkadotPrimitivesV8UpgradeRestriction: PolkadotPrimitivesV8UpgradeRestriction;
437437
ShpFileKeyVerifierFileKeyProof: ShpFileKeyVerifierFileKeyProof;
438438
ShpFileMetadataFileMetadata: ShpFileMetadataFileMetadata;
439439
ShpFileMetadataFingerprint: ShpFileMetadataFingerprint;

0 commit comments

Comments
 (0)