Skip to content

Commit 790ef91

Browse files
seadandabkchrjoepetrowskifellowship-merge-bot[bot]
authored
Trigger release v1.3.0 (#438)
Trigger the v1.3.0 release with the following additional changes: - Bump `polkadot-runtime-parachains` version to get paritytech/polkadot-sdk#5369 in [63cb34d](63cb34d) and update tests in [e718c64](e718c64). - Filter calls to `interlace` on the Polkadot Coretime Chain until the relay implementation matures in [1126cf7](1126cf7). - Update all runtime versions to `1_003_000` in [08744df](08744df) TODO: - [x] Finalise changelog - [x] Wait for #433 - [x] Wait for #364 Closes #186 --------- Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: fellowship-merge-bot[bot] <151052383+fellowship-merge-bot[bot]@users.noreply.github.com>
1 parent 56de0a9 commit 790ef91

File tree

18 files changed

+80
-42
lines changed

18 files changed

+80
-42
lines changed

CHANGELOG.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog for the runtimes governed by the Polkadot Fellowship.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7-
## [Unreleased]
7+
## [1.3.0] 20.08.2024
88

99
### Added
1010

@@ -15,15 +15,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1515
- Core-Fellowship: new `promote_fast` call ([runtimes#381](https://github.com/polkadot-fellows/runtimes/pull/381), [SDK v1.14 #4877](https://github.com/paritytech/polkadot-sdk/pull/4877)).
1616
- Pallet ranked collective: max member count per rank ([runtimes#381](https://github.com/polkadot-fellows/runtimes/pull/381), [SDK v1.14 #4807](https://github.com/paritytech/polkadot-sdk/pull/4807)).
1717
- All runtimes: XcmPaymentApi and DryRunApi ([polkadot-fellows/runtimes#380](https://github.com/polkadot-fellows/runtimes/pull/380))
18+
- Fast promotion tracks for the Fellowship ranks I-III ([polkadot-fellows/runtimes#356](https://github.com/polkadot-fellows/runtimes/pull/356)).
1819
- All runtimes: add `LocationToAccountApi` ([polkadot-fellows/runtimes#413](https://github.com/polkadot-fellows/runtimes/pull/413))
1920
- Enable Agile Coretime on Polkadot ([polkadot-fellows/runtimes#401](https://github.com/polkadot-fellows/runtimes/pull/401))
2021
- Add the Polkadot Coretime Chain runtime ([polkadot-fellows/runtimes#410](https://github.com/polkadot-fellows/runtimes/pull/410))
2122
- Kusama: Add a "Spokesperson" proxy type only allowed to send remarks ([polkadot-fellows/runtimes#430](https://github.com/polkadot-fellows/runtimes/pull/430))
2223
- Add the Polkadot and Kusama Coretime Chain specs ([polkadot-fellows/runtimes#432](https://github.com/polkadot-fellows/runtimes/pull/432))
24+
- Migration to remove all but the 21 first elected Head Ambassador members from the Program ([polkadot-fellows/runtimes#422](https://github.com/polkadot-fellows/runtimes/pull/422)).
2325
- Kusama: Make the current inflation formula adjustable ([polkadot-fellows/runtimes#364](https://github.com/polkadot-fellows/runtimes/pull/364))
2426
- Port Agile Coretime migration from polkadot-sdk in order to fix leases with gaps handling([polkadot-fellows/runtimes#426](https://github.com/polkadot-fellows/runtimes/pull/426))
2527

26-
2728
#### From [#322](https://github.com/polkadot-fellows/runtimes/pull/322):
2829

2930
- Add `claim_assets` extrinsic to `pallet-xcm` ([SDK v1.9 #3403](https://github.com/paritytech/polkadot-sdk/pull/3403)).
@@ -49,17 +50,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4950
- Ranked collective introduce `Add` and `Remove` origins ([SDK v1.8 #3212](https://github.com/paritytech/polkadot-sdk/pull/3212)).
5051
- Runtime apis to help with delegate-stake based Nomination Pools ([SDK v1.13 #4537](https://github.com/paritytech/polkadot-sdk/pull/4537)).
5152

52-
### Added
53-
54-
- Fast promotion tracks for the Fellowship ranks I-III ([polkadot-fellows/runtimes#356](https://github.com/polkadot-fellows/runtimes/pull/356)).
55-
- Migration to remove all but the 21 first elected Head Ambassador members from the Program ([polkadot-fellows/runtimes#422](https://github.com/polkadot-fellows/runtimes/pull/422)).
56-
5753
### Changed
5854

5955
- Polkadot chains: allow arbitrary XCM execution ([polkadot-fellows/runtimes#345](https://github.com/polkadot-fellows/runtimes/pull/345)).
6056
- Bounties: Remove payout delay ([polkadot-fellows/runtimes#386](https://github.com/polkadot-fellows/runtimes/pull/386)).
6157
- Polkadot System Chains: Reduce the base transaction fee by half ([polkadot-fellows/runtimes#398](https://github.com/polkadot-fellows/runtimes/pull/398)).
6258
- Asset Hubs: setup auto incremented asset id to 50_000_000 for trust backed assets ([polkadot-fellows/runtimes#414](https://github.com/polkadot-fellows/runtimes/pull/414)).
59+
- Upgrade dependencies to the [polkadot-sdk@1.13.0](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.13.0) release ([polkadot-fellows/runtimes#332](https://github.com/polkadot-fellows/runtimes/pull/332)).
60+
- Filter `interlace` calls on the Polkadot Coretime Chain until the Relay chain implementation is more mature ([polkadot-fellows/runtimes#438](https://github.com/polkadot-fellows/runtimes/pull/438)).
6361

6462
#### From [#322](https://github.com/polkadot-fellows/runtimes/pull/322):
6563

@@ -82,6 +80,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
8280
- `pallet-referenda`: Ensure to schedule referenda earliest at the next block ([runtimes#381](https://github.com/polkadot-fellows/runtimes/pull/381), [SDK v1.14 #4823](https://github.com/paritytech/polkadot-sdk/pull/4823)).
8381
- Don't partially modify HRMP pages ([runtimes#381](https://github.com/polkadot-fellows/runtimes/pull/381), [SDK v1.14 #4710](https://github.com/paritytech/polkadot-sdk/pull/4710)).
8482
- Coretime Chain: mitigate behaviour with many assignments on one core ([runtimes#434][https://github.com/polkadot-fellows/runtimes/pull/434]).
83+
- Port Agile Coretime migration from polkadot-sdk in order to fix leases with gaps handling([polkadot-fellows/runtimes#426](https://github.com/polkadot-fellows/runtimes/pull/426))
8584

8685
#### From [#322](https://github.com/polkadot-fellows/runtimes/pull/322):
8786

@@ -120,7 +119,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
120119
- Remove deprecated calls from treasury pallet ([runtimes#381](https://github.com/polkadot-fellows/runtimes/pull/381), [SDK v1.14 #3820](https://github.com/paritytech/polkadot-sdk/pull/3820)).
121120
- Treasury pallet: - remove unused config parameters ([runtimes#381](https://github.com/polkadot-fellows/runtimes/pull/381), [SDK v1.14 #4831](https://github.com/paritytech/polkadot-sdk/pull/4831)).
122121
- Remove Identity from Polkadot Relay Chain ([runtimes#415](https://github.com/polkadot-fellows/runtimes/pull/415))
123-
- Kusama: Remove unused Snowbridge code and configs ([polkadot-fellows/runtimes#411](https://github.com/polkadot-fellows/runtimes/pull/411)
122+
- Kusama: Remove unused Snowbridge code and configs ([polkadot-fellows/runtimes#411](https://github.com/polkadot-fellows/runtimes/pull/411)).
124123
- Remove the identity ops pallet after the invalid judgments have been cleared ([polkadot-fellows/runtimes#408](https://github.com/polkadot-fellows/runtimes/pull/408)).
125124

126125
#### From [#322](https://github.com/polkadot-fellows/runtimes/pull/322):
@@ -132,10 +131,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
132131
- Pallet-xcm: deprecate transfer extrinsics without weight limit ([SDK v1.10 #3927](https://github.com/paritytech/polkadot-sdk/pull/3927)).
133132
- Remove `parametrized-consensus-hook` feature ([SDK v1.13 #4380](https://github.com/paritytech/polkadot-sdk/pull/4380)).
134133

135-
### Based on Polkadot-SDK
136-
137-
- Upgrade dependencies to the [polkadot-sdk@1.13.0](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.13.0) release ([polkadot-fellows/runtimes#332](https://github.com/polkadot-fellows/runtimes/pull/332))
138-
139134
## [1.2.8] 03.07.2024
140135

141136
### Changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ polkadot-system-emulated-network = { path = "integration-tests/emulated/networks
187187
primitive-types = { version = "0.12.2", default-features = false }
188188
frame-metadata-hash-extension = { version = "0.4.0", default-features = false }
189189
remote-externalities = { version = "0.43.0", package = "frame-remote-externalities" }
190-
runtime-parachains = { version = "15.0.1", default-features = false, package = "polkadot-runtime-parachains" }
190+
runtime-parachains = { version = "15.0.2", default-features = false, package = "polkadot-runtime-parachains" }
191191
sc-chain-spec = { version = "35.0.0" }
192192
sc-network = { version = "0.42.0" }
193193
scale-info = { version = "2.10.0", default-features = false }

integration-tests/emulated/tests/coretime/coretime-kusama/src/tests/coretime_interface.rs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ fn transact_hardcoded_weights_are_sane() {
137137
Kusama::ext_wrapper(|| {
138138
block_number_cursor = <Kusama as Chain>::System::block_number();
139139
});
140-
141-
dbg!(&block_number_cursor);
142140
}
143141

144142
// In this block we trigger assign core.
@@ -201,4 +199,25 @@ fn transact_hardcoded_weights_are_sane() {
201199
]
202200
);
203201
});
202+
203+
// Here we receive and process the notify_revenue XCM with zero revenue.
204+
CoretimeKusama::execute_with(|| {
205+
// Hooks don't run in emulated tests - workaround.
206+
<CoretimeKusama as CoretimeKusamaPallet>::Broker::on_initialize(
207+
<CoretimeKusama as Chain>::System::block_number(),
208+
);
209+
210+
assert_expected_events!(
211+
CoretimeKusama,
212+
vec![
213+
CoretimeEvent::MessageQueue(
214+
pallet_message_queue::Event::Processed { success: true, .. }
215+
) => {},
216+
// Zero revenue in first timeslice so history is immediately dropped.
217+
CoretimeEvent::Broker(
218+
pallet_broker::Event::HistoryDropped { when: 0, revenue: 0 }
219+
) => {},
220+
]
221+
);
222+
});
204223
}

integration-tests/emulated/tests/coretime/coretime-polkadot/src/tests/coretime_interface.rs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ fn transact_hardcoded_weights_are_sane() {
137137
Polkadot::ext_wrapper(|| {
138138
block_number_cursor = <Polkadot as Chain>::System::block_number();
139139
});
140-
141-
dbg!(&block_number_cursor);
142140
}
143141

144142
// In this block we trigger assign core.
@@ -201,4 +199,25 @@ fn transact_hardcoded_weights_are_sane() {
201199
]
202200
);
203201
});
202+
203+
// Here we receive and process the notify_revenue XCM with zero revenue.
204+
CoretimePolkadot::execute_with(|| {
205+
// Hooks don't run in emulated tests - workaround.
206+
<CoretimePolkadot as CoretimePolkadotPallet>::Broker::on_initialize(
207+
<CoretimePolkadot as Chain>::System::block_number(),
208+
);
209+
210+
assert_expected_events!(
211+
CoretimePolkadot,
212+
vec![
213+
CoretimeEvent::MessageQueue(
214+
pallet_message_queue::Event::Processed { success: true, .. }
215+
) => {},
216+
// Zero revenue in first timeslice so history is immediately dropped.
217+
CoretimeEvent::Broker(
218+
pallet_broker::Event::HistoryDropped { when: 0, revenue: 0 }
219+
) => {},
220+
]
221+
);
222+
});
204223
}

relay/kusama/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
172172
spec_name: create_runtime_str!("kusama"),
173173
impl_name: create_runtime_str!("parity-kusama"),
174174
authoring_version: 2,
175-
spec_version: 1_002_008,
175+
spec_version: 1_003_000,
176176
impl_version: 0,
177177
apis: RUNTIME_API_VERSIONS,
178178
transaction_version: 26,

relay/polkadot/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
158158
spec_name: create_runtime_str!("polkadot"),
159159
impl_name: create_runtime_str!("parity-polkadot"),
160160
authoring_version: 0,
161-
spec_version: 1_002_008,
161+
spec_version: 1_003_000,
162162
impl_version: 0,
163163
apis: RUNTIME_API_VERSIONS,
164164
transaction_version: 26,

system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
121121
spec_name: create_runtime_str!("statemine"),
122122
impl_name: create_runtime_str!("statemine"),
123123
authoring_version: 1,
124-
spec_version: 1_002_006,
124+
spec_version: 1_003_000,
125125
impl_version: 0,
126126
apis: RUNTIME_API_VERSIONS,
127127
transaction_version: 15,
@@ -137,7 +137,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
137137
spec_name: create_runtime_str!("statemine"),
138138
impl_name: create_runtime_str!("statemine"),
139139
authoring_version: 1,
140-
spec_version: 1_002_008,
140+
spec_version: 1_003_000,
141141
impl_version: 0,
142142
apis: RUNTIME_API_VERSIONS,
143143
transaction_version: 15,

system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
155155
spec_name: create_runtime_str!("statemint"),
156156
impl_name: create_runtime_str!("statemint"),
157157
authoring_version: 1,
158-
spec_version: 1_002_008,
158+
spec_version: 1_003_000,
159159
impl_version: 0,
160160
apis: RUNTIME_API_VERSIONS,
161161
transaction_version: 15,

system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
186186
spec_name: create_runtime_str!("bridge-hub-kusama"),
187187
impl_name: create_runtime_str!("bridge-hub-kusama"),
188188
authoring_version: 1,
189-
spec_version: 1_002_008,
189+
spec_version: 1_003_000,
190190
impl_version: 0,
191191
apis: RUNTIME_API_VERSIONS,
192192
transaction_version: 5,

0 commit comments

Comments
 (0)