Skip to content

Commit 2420e48

Browse files
Update substrate stable2503 7 (#1845)
* Add workspace dependency * Update Substrate * Update WeightMeter * Deprecated GenesisBuild, use BuildGenesisConfig * Use Weight::from_parts instead of Weight::from_ref_time * T::BlockNumber update * Fix chrono deprecated warnings. * Fix deprecated check_accrue call. * Add TypeInfo to Runtime API types. * System pallet renamed Index -> Nonce. * Update contracts * Update weights * Bump recursion_limit * Update Babe and Grandpa. * Update staking pallet * Update im-online. * Require serde. * no_std GenesisConfig. * Update node binary service/command code. * Add missing runtime_version attribute. * Fix wasm-builder * Remove old test. * Fix warnings. * Fix warnings about OldWeight. * Fix benchmark build. * Fix RPC port number. * System.set_code doesn't use max block weight anymore. * Use sensible maths for `from_rational`. paritytech/substrate#13660 * Bump contract gas fees. * Add NoopMigration for v10 contracts pallet. * Add feature flag for ed; Fix tests and runtime * Update Weights * Fix integration tests * Update .toml and .lock; Update rustc --version; Remove old testing feature * Fix compilation errors - part I * Fix compilation errors - part II * Fix compilation errors - part III * Fix compilation errors - part IV * Fix compilation errors - Tx payment * Fix compilation errors - Remove deprecated scheduler * Fix compilation erros - Impl TransactionExtension for pallet_permissions * Fix compilation errors - Remove deprecated scheduler * Remove deprecated calls - pallet_sudo pallet_validators * Fix compilation errors - pallet_tx_payments currency adapter * Fix compilation errors - Update dependency; add Preimage * Update develop runtime * Update mainnet and testnet runtime * Fix rpc-protocol-fee - part I * Fix node-rpc errors - part I * Fix node-rpc errors * Fix group and protocol rpc build * Updating node part I * Update node part II * Update chain_spec - part I * Update chain spec - part II * Update node - part III * Remove warnings; Remove local dependecies * Impl TransactionExtension * Add missing GenesisBuilder impl; Use camel case for json genesis; Add validators genesis config * Remove duplicated chainspec merge; Update toml; Cargo fmt * Update rust version * Add ci_runtime * Fix sudo mock * Fix tests - part I; Fix storage and builder * Fix tests - part I * Fix tests - pips committee * Fix settlement tests; Add subsidiser to tx_payment pallet * Fix relayer tests * Fix tx_payment tests * Fix Utility tests * Compile staking tests * Fix staking tests - UseNominatorsAndValidatorsMap does not sort * Fix toml files missing runtime-benchmark feature * Fix toml files for benchmarks part II * Fix benchmarks - part III * Order toml dependencies * Update .lock; Change rust-toolchain * Change rust version * Fix benchmarks build * Change rust version for ci * Run cargo fmt * Fix the ci pipeline; Remove contracts from benchmarks temporarily * FIx manual_slash benchmark * Build docker temporarily * Add CA certs to debian docker image. * FIXUP: ca cert install * Remove unimplemented call * Add migrations (#1850) * update Cargo.lock * Fix CI pipeline. * FIXUP: ci pipeline. * Add missing pallet_contract migrations. * Fix Rust integration build with v8 chain metadata. * Update tests to use TransferWithMemo event. * Update TS integration tests. * Fix Rust integration build against v8. * Fix initial funding amounts. * Update Substrate to fix CheckNonce. * Fix proofSize limit for contract calls. * Bump transaction version to 8. --------- Co-authored-by: Robert G. Jakabosky <[email protected]>
1 parent f678125 commit 2420e48

File tree

278 files changed

+30506
-23601
lines changed

Some content is hidden

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

278 files changed

+30506
-23601
lines changed

.circleci/config.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ commands:
3939
jobs:
4040
lint:
4141
docker:
42-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
42+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
4343
resource_class: small
4444
environment:
4545
VERBOSE: "1"
@@ -53,7 +53,7 @@ jobs:
5353
command: ./scripts/check_spec_and_cargo_version.sh
5454
check-storage-version:
5555
docker:
56-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
56+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
5757
resource_class: small
5858
environment:
5959
VERBOSE: "1"
@@ -64,7 +64,7 @@ jobs:
6464
command: ./scripts/check_storage_versions.sh
6565
build:
6666
docker:
67-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
67+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
6868
resource_class: xlarge
6969
environment:
7070
- VERBOSE: "1"
@@ -95,7 +95,7 @@ jobs:
9595
- save-sccache-cache
9696
build-ci:
9797
docker:
98-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
98+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
9999
resource_class: xlarge
100100
environment:
101101
- VERBOSE: "1"
@@ -124,7 +124,7 @@ jobs:
124124
- .
125125
build-arm64:
126126
docker:
127-
- image: polymeshassociation/rust-arm64:debian-nightly-2024-11-14
127+
- image: polymeshassociation/rust-arm64:debian-nightly-2025-09-01
128128
resource_class: arm.xlarge
129129
environment:
130130
- VERBOSE: "1"
@@ -151,7 +151,7 @@ jobs:
151151
- save-sccache-cache
152152
benchmark-build:
153153
docker:
154-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
154+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
155155
resource_class: xlarge
156156
environment:
157157
- VERBOSE: "1"
@@ -273,7 +273,7 @@ jobs:
273273

274274
metadata-tools-build:
275275
docker:
276-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
276+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
277277
resource_class: small
278278
steps:
279279
- checkout
@@ -301,7 +301,7 @@ jobs:
301301
- run:
302302
name: Start Polymesh dev chain
303303
command: >-
304-
./assets/polymesh --chain dev \
304+
./assets/polymesh --dev \
305305
--no-prometheus --no-telemetry --tmp \
306306
--wasm-execution compiled \
307307
--pool-limit 100000
@@ -386,7 +386,7 @@ jobs:
386386
no_output_timeout: 30m
387387
migration-tests:
388388
docker:
389-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
389+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
390390
resource_class: large
391391
environment:
392392
- VERBOSE: "1"
@@ -403,7 +403,7 @@ jobs:
403403
- save-sccache-cache
404404
test:
405405
docker:
406-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
406+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
407407
resource_class: large
408408
environment:
409409
- VERBOSE: "1"
@@ -425,14 +425,13 @@ jobs:
425425
--package pallet-pips
426426
--package polymesh-primitives
427427
--package node-rpc-runtime-api
428-
--package pallet-transaction-payment
429428
--package polymesh-runtime-tests
430429
--package asset-metadata
431430
no_output_timeout: 30m
432431
- save-sccache-cache
433432
coverage:
434433
docker:
435-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
434+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
436435
resource_class: xlarge
437436
environment:
438437
- VERBOSE: "1"
@@ -447,7 +446,7 @@ jobs:
447446
- save-sccache-cache
448447
rust-integration-test:
449448
docker:
450-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
449+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
451450
resource_class: xlarge
452451
environment:
453452
- VERBOSE: "1"
@@ -460,7 +459,8 @@ jobs:
460459
name: Start a Polymesh ci-runtime dev chain using the previous chain version.
461460
command: >-
462461
./assets/ci-runtime/polymesh --bob \
463-
--chain dev:.ci-chain-specs/v7.0.0.json \
462+
--chain .ci-chain-specs/v7.0.0.json \
463+
--unsafe-force-node-key-generation \
464464
--no-prometheus --no-telemetry --tmp \
465465
--wasm-execution compiled \
466466
--pool-limit 100000
@@ -501,7 +501,7 @@ jobs:
501501
- run:
502502
name: run Polymesh ci-runtime dev chain node for integration tests
503503
command: >-
504-
./assets/ci-runtime/polymesh --bob --chain dev \
504+
./assets/ci-runtime/polymesh --bob --dev \
505505
--no-prometheus --no-telemetry --tmp \
506506
--wasm-execution compiled \
507507
--pool-limit 100000
@@ -518,7 +518,7 @@ jobs:
518518
no_output_timeout: 10m
519519
clippy:
520520
docker:
521-
- image: polymeshassociation/rust:debian-nightly-2024-11-14
521+
- image: polymeshassociation/rust:debian-nightly-2025-09-01
522522
resource_class: xlarge
523523
environment:
524524
- VERBOSE: "1"
@@ -804,6 +804,7 @@ workflows:
804804
- testnet
805805
- staging
806806
- develop
807+
- update-substrate-stable2503-7
807808
- build-docker-amd64-distroless:
808809
requires:
809810
- build
@@ -831,6 +832,7 @@ workflows:
831832
- testnet
832833
- staging
833834
- develop
835+
- update-substrate-stable2503-7
834836
- build-docker-arm64-distroless:
835837
requires:
836838
- build-arm64
@@ -852,6 +854,7 @@ workflows:
852854
- testnet
853855
- staging
854856
- develop
857+
- update-substrate-stable2503-7
855858
- build-docker-distroless:
856859
requires:
857860
- build-docker-amd64-distroless

.docker/Dockerfile.debian

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ RUN ls -a && \
1616

1717
FROM debian:stable-slim
1818

19+
# install tools and dependencies
20+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
21+
apt-get upgrade -y && \
22+
apt-get install -y --no-install-recommends ca-certificates && \
23+
apt-get autoremove -y && \
24+
apt-get clean && \
25+
find /var/lib/apt/lists/ -type f -not -name lock -delete
26+
1927
COPY --chown=4002:4002 --from=gobuild /opt/health-check/polymesh-health-check /usr/local/bin/check
2028
COPY --chown=4002:4002 --from=gobuild /opt/rotate-keys/polymesh-rotate-keys /usr/local/bin/rotate
2129
COPY --chown=4001:4001 ./polymesh /usr/local/bin/polymesh
@@ -33,4 +41,4 @@ HEALTHCHECK \
3341
--start-period=120s \
3442
--timeout=5s \
3543
--retries=6 \
36-
CMD /usr/local/bin/check liveness
44+
CMD /usr/local/bin/check liveness

.docker/arm64/Dockerfile.debian

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ RUN ls -a && \
1616

1717
FROM debian:stable-slim
1818

19+
# install tools and dependencies
20+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
21+
apt-get upgrade -y && \
22+
apt-get install -y --no-install-recommends ca-certificates && \
23+
apt-get autoremove -y && \
24+
apt-get clean && \
25+
find /var/lib/apt/lists/ -type f -not -name lock -delete
26+
1927
COPY --chown=4002:4002 --from=gobuild /opt/health-check/polymesh-health-check /usr/local/bin/check
2028
COPY --chown=4002:4002 --from=gobuild /opt/rotate-keys/polymesh-rotate-keys /usr/local/bin/rotate
2129
COPY --chown=4001:4001 ./polymesh-arm64 /usr/local/bin/polymesh

0 commit comments

Comments
 (0)