Skip to content

Commit fc161a7

Browse files
authored
Merge branch 'master' into muharem-meta-tx
2 parents c54e68f + 762f902 commit fc161a7

File tree

209 files changed

+8197
-1882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+8197
-1882
lines changed

.config/taplo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude = [
1515
[formatting]
1616
reorder_arrays = true
1717
inline_table_expand = false
18-
array_auto_expand = false
18+
array_auto_expand = true
1919
array_auto_collapse = false
2020
indent_string = " " # tab
2121

.github/scripts/common/lib.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,17 @@ fetch_release_artifacts() {
243243
# - REPO in the form paritytech/polkadot
244244
fetch_debian_package_from_s3() {
245245
BINARY=$1
246-
echo "Version : $VERSION"
246+
echo "Version : $NODE_VERSION"
247247
echo "Repo : $REPO"
248248
echo "Binary : $BINARY"
249-
echo "Tag : $RELEASE_TAG"
249+
echo "Tag : $VERSION"
250250
OUTPUT_DIR=${OUTPUT_DIR:-"./release-artifacts/${BINARY}"}
251251
echo "OUTPUT_DIR : $OUTPUT_DIR"
252252

253253
URL_BASE=$(get_s3_url_base $BINARY)
254254
echo "URL_BASE=$URL_BASE"
255255

256-
URL=$URL_BASE/$RELEASE_TAG/x86_64-unknown-linux-gnu/${BINARY}_${VERSION}_amd64.deb
256+
URL=$URL_BASE/$VERSION/x86_64-unknown-linux-gnu/${BINARY}_${NODE_VERSION}_amd64.deb
257257

258258
mkdir -p "$OUTPUT_DIR"
259259
pushd "$OUTPUT_DIR" > /dev/null

.github/scripts/release/release_lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ git_show_log() {
7171
# 1_012_000 or 1_012_001 if SUFFIX is set
7272
function get_spec_version() {
7373
INPUT=$1
74-
SUFFIX=${SUFFIX:-000} #this variable makes it possible to set a specific ruuntime version like 93826 it can be intialised as sestem variable
74+
SUFFIX=${SUFFIX:-000} #this variable makes it possible to set a specific runtime version like 93826 it can be initialised as system variable
7575
[[ $INPUT =~ .*([0-9]+\.[0-9]+\.[0-9]{1,2}).* ]]
7676
VERSION="${BASH_REMATCH[1]}"
7777
MATCH="${BASH_REMATCH[0]}"

.github/workflows/checks-quick.yml

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
--exclude
103103
"substrate/frame/contracts/fixtures/build"
104104
"substrate/frame/contracts/fixtures/contracts/common"
105-
"substrate/frame/revive/fixtures/contracts/common"
106105
- name: deny git deps
107106
run: python3 .github/scripts/deny-git-deps.py .
108107
check-markdown:

.github/workflows/release-11_rc-automation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release - RC automation
22
on:
3-
# TODO: Activate it and delete old branches patterns, when the release process from stable is setteled
3+
# TODO: Activate it and delete old branches patterns, when the release process from stable is settled
44
#push:
55
# branches:
66
# # Catches release-polkadot-v1.2.3, release-v1.2.3-rc1, etc

.github/workflows/release-40_publish-deb-package.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Release - Publish polakdot deb package
1+
name: Release - Publish polkadot deb package
22

33
on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: Current final release tag in the format polakdot-stableYYMM or polkadot-stable-YYMM-X
7+
description: Current final release tag in the format polkadot-stableYYMM or polkadot-stable-YYMM-X
88
default: polkadot-stable2412
99
required: true
1010
type: string
@@ -44,9 +44,9 @@ jobs:
4444
needs: [validate-inputs]
4545
env:
4646
REPO: ${{ github.repository }}
47-
RELEASE_TAG: ${{ needs.validate-inputs.outputs.release_tag }}
47+
VERSION: ${{ needs.validate-inputs.outputs.release_tag }}
4848
outputs:
49-
VERSION: ${{ steps.fetch_artifacts_from_s3.outputs.VERSION }}
49+
NODE_VERSION: ${{ steps.fetch_artifacts_from_s3.outputs.NODE_VERSION }}
5050

5151
steps:
5252
- name: Checkout sources
@@ -57,8 +57,8 @@ jobs:
5757
run: |
5858
. ./.github/scripts/common/lib.sh
5959
60-
VERSION="$(get_polkadot_node_version_from_code)"
61-
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
60+
NODE_VERSION="$(get_polkadot_node_version_from_code)"
61+
echo "NODE_VERSION=${NODE_VERSION}" >> $GITHUB_OUTPUT
6262
6363
fetch_debian_package_from_s3 polkadot
6464
@@ -76,7 +76,7 @@ jobs:
7676
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
7777
AWS_DEB_PATH: "s3://releases-package-repos/deb"
7878
LOCAL_DEB_REPO_PATH: ${{ github.workspace }}/deb
79-
VERSION: ${{ needs.fetch-artifacts-from-s3.outputs.VERSION }}
79+
NODE_VERSION: ${{ needs.fetch-artifacts-from-s3.outputs.NODE_VERSION }}
8080

8181
steps:
8282
- name: Install pgpkkms
@@ -135,7 +135,7 @@ jobs:
135135
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
136136
run: |
137137
# Add the new deb to the repo
138-
reprepro -b "$LOCAL_DEB_REPO_PATH" includedeb "${{ inputs.distribution }}" "release-artifacts/polkadot_${VERSION}_amd64.deb"
138+
reprepro -b "$LOCAL_DEB_REPO_PATH" includedeb "${{ inputs.distribution }}" "release-artifacts/polkadot_${NODE_VERSION}_amd64.deb"
139139
140140
- name: Upload updated deb repo
141141
env:

.github/workflows/release-50_publish-docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ jobs:
281281
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
282282

283283
- name: Cache Docker layers
284-
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
284+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
285285
with:
286286
path: /tmp/.buildx-cache
287287
key: ${{ runner.os }}-buildx-${{ github.sha }}

.github/workflows/release-reusable-promote-to-final.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_RELEASE_ACCESS_KEY_ID }}
3636
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_RELEASE_SECRET_ACCESS_KEY }}
3737
AWS_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
38+
RELEASE_TAG: ${{ inputs.release_tag }}
39+
PACKAGE: ${{ inputs.package }}
40+
TARGET: ${{ inputs.target }}
3841

3942
steps:
4043
- name: Checkout sources
@@ -44,22 +47,25 @@ jobs:
4447
id: prepare_final_tag
4548
shell: bash
4649
run: |
47-
tag="$(echo ${{ inputs.release_tag }} | sed 's/-rc[0-9]*$//')"
50+
tag="$(echo $RELEASE_TAG | sed 's/-rc[0-9]*$//')"
4851
echo $tag
4952
echo "FINAL_TAG=${tag}" >> $GITHUB_OUTPUT
5053
5154
- name: Fetch binaries from s3 based on version
5255
run: |
5356
. ./.github/scripts/common/lib.sh
5457
55-
VERSION="${{ inputs.release_tag }}"
56-
if [[ ${{ inputs.package }} == 'polkadot' ]]; then
58+
VERSION="$RELEASE_TAG"
59+
if [[ "$PACKAGE" == 'polkadot' ]]; then
5760
packages=(polkadot polkadot-prepare-worker polkadot-execute-worker)
5861
for package in "${packages[@]}"; do
59-
fetch_release_artifacts_from_s3 $package ${{ inputs.target }}
62+
OUTPUT_DIR="./release-artifacts/$TARGET/${package}"
63+
fetch_release_artifacts_from_s3 "$package" "$TARGET"
6064
done
65+
NODE_VERSION="$(get_polkadot_node_version_from_code)"
66+
fetch_debian_package_from_s3 polkadot
6167
else
62-
fetch_release_artifacts_from_s3 ${{ inputs.package }} ${{ inputs.target }}
68+
fetch_release_artifacts_from_s3 "$PACKAGE" "$TARGET"
6369
fi
6470
6571
- name: Configure AWS Credentials
@@ -73,11 +79,11 @@ jobs:
7379
run: |
7480
. ./.github/scripts/release/release_lib.sh
7581
76-
if [[ ${{ inputs.package }} == 'polkadot' ]]; then
82+
if [[ "$PACKAGE" == 'polkadot' ]]; then
7783
packages=(polkadot polkadot-prepare-worker polkadot-execute-worker)
7884
for package in "${packages[@]}"; do
7985
upload_s3_release $package ${{ steps.prepare_final_tag.outputs.final_tag }} ${{ inputs.target }}
8086
done
8187
else
82-
upload_s3_release ${{ inputs.package }} ${{ steps.prepare_final_tag.outputs.final_tag }} ${{ inputs.target }}
88+
upload_s3_release "$PACKAGE" ${{ steps.prepare_final_tag.outputs.final_tag }} "$TARGET"
8389
fi

.github/workflows/release-reusable-rc-buid.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
type: string
1616

1717
release_tag:
18-
description: Tag matching the actual release candidate with the format stableYYMM-rcX or stableYYMM
18+
description: Tag matching the actual release candidate with the format polkadpt-stableYYMM(-rcX) or plkadot-stableYYMM-X(-rcX)
1919
required: true
2020
type: string
2121

.github/workflows/zombienet-reusable-preflight.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ jobs:
220220
wait_build_images:
221221
needs: [ci-env]
222222
runs-on: ubuntu-latest
223-
timeout-minutes: 60
223+
timeout-minutes: 90
224224
outputs:
225225
BUILD_RUN_ID: ${{ steps.wait_build.outputs.BUILD_RUN_ID }}
226226
steps:

Cargo.lock

+24-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ bitvec = { version = "1.0.1", default-features = false }
646646
blake2 = { version = "0.10.4", default-features = false }
647647
blake2b_simd = { version = "1.0.2", default-features = false }
648648
blake3 = { version = "1.5" }
649+
bn = { package = "substrate-bn", version = "0.6", default-features = false }
649650
bounded-collections = { version = "0.2.3", default-features = false }
650651
bounded-vec = { version = "0.7" }
651652
bp-asset-hub-rococo = { path = "bridges/chains/chain-asset-hub-rococo", default-features = false }
@@ -858,7 +859,7 @@ linked-hash-map = { version = "0.5.4" }
858859
linked_hash_set = { version = "0.1.4" }
859860
linregress = { version = "0.5.1" }
860861
lite-json = { version = "0.2.0", default-features = false }
861-
litep2p = { version = "0.9.1", features = ["websocket"] }
862+
litep2p = { version = "0.9.3", features = ["websocket"] }
862863
log = { version = "0.4.22", default-features = false }
863864
macro_magic = { version = "0.5.1" }
864865
maplit = { version = "1.0.2" }
@@ -889,8 +890,9 @@ node-rpc = { path = "substrate/bin/node/rpc" }
889890
node-testing = { path = "substrate/bin/node/testing" }
890891
nohash-hasher = { version = "0.2.0" }
891892
novelpoly = { version = "2.0.0", package = "reed-solomon-novelpoly" }
892-
num-bigint = { version = "0.4.3" }
893+
num-bigint = { version = "0.4.3", default-features = false }
893894
num-format = { version = "0.4.3" }
895+
num-integer = { version = "0.1.46", default-features = false }
894896
num-rational = { version = "0.4.1" }
895897
num-traits = { version = "0.2.17", default-features = false }
896898
num_cpus = { version = "1.13.1" }
@@ -1139,6 +1141,7 @@ relay-substrate-client = { path = "bridges/relays/client-substrate" }
11391141
relay-utils = { path = "bridges/relays/utils" }
11401142
remote-externalities = { path = "substrate/utils/frame/remote-externalities", default-features = false, package = "frame-remote-externalities" }
11411143
reqwest = { version = "0.12.9", default-features = false }
1144+
ripemd = { version = "0.1.3", default-features = false }
11421145
rlp = { version = "0.6.1", default-features = false }
11431146
rococo-emulated-chain = { path = "cumulus/parachains/integration-tests/emulated/chains/relays/rococo" }
11441147
rococo-parachain-runtime = { path = "cumulus/parachains/runtimes/testing/rococo-parachain" }

bridges/modules/beefy/src/lib.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ pub mod pallet {
283283
/// The `RequestCount` is decreased by one at the beginning of every block. This is to ensure
284284
/// that the pallet can always make progress.
285285
#[pallet::storage]
286-
#[pallet::getter(fn request_count)]
287286
pub type RequestCount<T: Config<I>, I: 'static = ()> = StorageValue<_, u32, ValueQuery>;
288287

289288
/// High level info about the imported commitments.
@@ -392,7 +391,7 @@ pub mod pallet {
392391
init_data: InitializationDataOf<T, I>,
393392
) -> Result<(), Error<T, I>> {
394393
if init_data.authority_set.len == 0 {
395-
return Err(Error::<T, I>::InvalidInitialAuthoritySet)
394+
return Err(Error::<T, I>::InvalidInitialAuthoritySet);
396395
}
397396
CurrentAuthoritySetInfo::<T, I>::put(init_data.authority_set);
398397

@@ -404,6 +403,13 @@ pub mod pallet {
404403

405404
Ok(())
406405
}
406+
407+
impl<T: Config<I>, I: 'static> Pallet<T, I> {
408+
/// The current number of requests which have written to storage.
409+
pub fn request_count() -> u32 {
410+
RequestCount::<T, I>::get()
411+
}
412+
}
407413
}
408414

409415
#[cfg(test)]

bridges/modules/grandpa/src/lib.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ pub mod pallet {
418418

419419
/// Hash of the best finalized header.
420420
#[pallet::storage]
421-
#[pallet::getter(fn best_finalized)]
422421
pub type BestFinalized<T: Config<I>, I: 'static = ()> =
423422
StorageValue<_, BridgedBlockId<T, I>, OptionQuery>;
424423

@@ -821,6 +820,13 @@ pub fn initialize_for_benchmarks<T: Config<I>, I: 'static>(header: BridgedHeader
821820
.expect("only used from benchmarks; benchmarks are correct; qed");
822821
}
823822

823+
impl<T: Config<I>, I: 'static> Pallet<T, I> {
824+
/// Returns the hash of the best finalized header.
825+
pub fn best_finalized() -> Option<BridgedBlockId<T, I>> {
826+
BestFinalized::<T, I>::get()
827+
}
828+
}
829+
824830
#[cfg(test)]
825831
mod tests {
826832
use super::*;

bridges/modules/messages/src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,12 @@ pub mod pallet {
506506
/// runtime methods may still be used to do that (i.e. democracy::referendum to update halt
507507
/// flag directly or call the `set_operating_mode`).
508508
#[pallet::storage]
509-
#[pallet::getter(fn module_owner)]
510509
pub type PalletOwner<T: Config<I>, I: 'static = ()> = StorageValue<_, T::AccountId>;
511510

512511
/// The current operating mode of the pallet.
513512
///
514513
/// Depending on the mode either all, some, or no transactions will be allowed.
515514
#[pallet::storage]
516-
#[pallet::getter(fn operating_mode)]
517515
pub type PalletOperatingMode<T: Config<I>, I: 'static = ()> =
518516
StorageValue<_, MessagesOperatingMode, ValueQuery>;
519517

@@ -733,7 +731,7 @@ fn ensure_normal_operating_mode<T: Config<I>, I: 'static>() -> Result<(), Error<
733731
if PalletOperatingMode::<T, I>::get() ==
734732
MessagesOperatingMode::Basic(BasicOperatingMode::Normal)
735733
{
736-
return Ok(())
734+
return Ok(());
737735
}
738736

739737
Err(Error::<T, I>::NotOperatingNormally)

0 commit comments

Comments
 (0)