Skip to content

Commit f56d87d

Browse files
TorstenStueberclaravanstadenathei
authored
Upgrade to unstable2507 (#1029)
This upgrades polkadot-sdk crates to the latest version of `unstable2507`. The main change is the following backport: paritytech/polkadot-sdk#10552. This is an important step for upgrading the Kusama AH runtime to the latest version of pallet-revive with: - EVM backend - Ethereum block storage - New gas mapping --------- Co-authored-by: Clara van Staden <[email protected]> Co-authored-by: Alexander Theißen <[email protected]>
1 parent 72e4da3 commit f56d87d

File tree

14 files changed

+1759
-2236
lines changed

14 files changed

+1759
-2236
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: "Install Solidity Compiler"
2+
description: "Installs the Ethereum solc Solidity compiler frontend executable"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Define versions
8+
shell: bash
9+
run: |
10+
echo "SOLC_NAME=solc-static-linux" >> $GITHUB_ENV
11+
echo "SOLC_VERSION=0.8.30" >> "$GITHUB_ENV"
12+
echo "RESOLC_VERSION=0.5.0" >> "$GITHUB_ENV"
13+
14+
# Cache both folders. Keyed by OS and versions.
15+
- name: Cache solc + resolc
16+
uses: actions/cache@v4
17+
with:
18+
path: |
19+
solc
20+
resolc
21+
key: solc-${{ runner.os }}-${{ env.SOLC_VERSION }}-${{ env.SOLC_NAME }}__resolc-${{ runner.os }}-${{ env.RESOLC_VERSION }}
22+
23+
- name: Download Solc (if missing)
24+
shell: bash
25+
run: |
26+
mkdir -p solc
27+
if [[ -x solc/solc ]]; then
28+
echo "solc already present, skipping download"
29+
exit 0
30+
fi
31+
curl -Lsf --show-error --retry 5 --retry-all-errors --connect-timeout 10 --max-time 300 \
32+
--output solc/solc \
33+
"https://github.com/ethereum/solidity/releases/download/v${SOLC_VERSION}/${SOLC_NAME}"
34+
chmod +x solc/solc
35+
36+
- name: Install resolc (if missing)
37+
shell: bash
38+
run: |
39+
mkdir -p resolc
40+
41+
if [[ -x resolc/resolc ]]; then
42+
echo "resolc already present, skipping download"
43+
exit 0
44+
fi
45+
46+
ASSET_URL="https://github.com/paritytech/revive/releases/download/v${RESOLC_VERSION}/resolc-x86_64-unknown-linux-musl"
47+
curl -Lsf --show-error --retry 5 --retry-all-errors --connect-timeout 10 --max-time 300 \
48+
--output resolc/resolc \
49+
"$ASSET_URL"
50+
chmod +x resolc/resolc
51+
./resolc/resolc --version
52+
53+
- name: Add to PATH
54+
shell: bash
55+
run: |
56+
echo "$PWD/solc" >> "$GITHUB_PATH"
57+
echo "$PWD/resolc" >> "$GITHUB_PATH"

.github/workflows/clippy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
with:
3737
shared-key: "fellowship-cache-clippy"
3838
save-if: ${{ github.ref == 'refs/heads/main' }}
39+
40+
- name: Install Solc
41+
uses: ./.github/actions/get-solc
3942

4043
- name: Clippy
4144
run: |

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ jobs:
9797
fi
9898
env:
9999
RUSTFLAGS: "-C debug-assertions -A warnings" # FAIL-CI AHM
100+
- name: Install Solc
101+
uses: ./.github/actions/get-solc
100102

101103
- name: Test all features ${{ matrix.runtime.name }}
102104
run: cargo test -p ${{ matrix.runtime.package }} --release --locked -q --all-features

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1313
- asset-hub-polkadot: fix the regression in doc-test for staking after changing the base deposit for NPoS solution from 4 to 100 DOT ([#1023](https://github.com/polkadot-fellows/runtimes/pull/1023))
1414
- asset-hub-polkadot: increase the base deposit for a signed NPoS solution from 4 to 100 DOT, significantly mitigating the risk of transaction spamming ([#1022](https://github.com/polkadot-fellows/runtimes/pull/1022))
1515
- Adjust OpenGov parameters based on WFC 1701 ([polkadot-fellows/runtimes/pull/873](https://github.com/polkadot-fellows/runtimes/pull/873))
16+
- asset-hub-kusama: update to latest version of pallet-revive with EVM backend ([polkadot-fellows/runtimes/pull/1029](https://github.com/polkadot-fellows/runtimes/pull/1029))
1617

1718
### Added
1819

0 commit comments

Comments
 (0)