Update develop to patch-polkadot-sdk

Allows us to finally remove the old `serai-dex/substrate` repository _and_
should have CI pass without issue on `develop` again.

The changes made here should be trivial and maintain all prior
behavior/functionality. The most notable are to `chain_spec.rs`, in order to
still use a SCALE-encoded `GenesisConfig` (avoiding `serde_json`).
This commit is contained in:
Luke Parker
2025-09-21 18:21:18 -04:00
parent 52d15b789c
commit 41bb2c7b2a
102 changed files with 4185 additions and 3472 deletions

View File

@@ -76,7 +76,7 @@ message-queue = { package = "serai-message-queue", path = "../message-queue", op
[dev-dependencies]
frost = { package = "modular-frost", path = "../crypto/frost", features = ["tests"] }
sp-application-crypto = { git = "https://github.com/serai-dex/substrate", default-features = false, features = ["std"] }
sp-application-crypto = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "7f2a8865cd0ded35e1d62fc330915d44dfa3beab", default-features = false, features = ["std"] }
ethereum-serai = { path = "../networks/ethereum", default-features = false, features = ["tests"] }

View File

@@ -1,3 +1,5 @@
#![expect(clippy::cast_possible_truncation)]
use std::collections::HashMap;
use scale::{Encode, Decode};

View File

@@ -1,3 +1,5 @@
#![allow(deprecated)]
use core::{fmt, time::Duration};
use std::{
sync::Arc,

View File

@@ -183,7 +183,7 @@ impl SlashReportSigner {
.report
.clone()
.into_iter()
.map(|(validator, points)| (Public(validator), points))
.map(|(validator, points)| (Public::from(validator), points))
.collect::<Vec<_>>(),
),
) {

View File

@@ -118,7 +118,7 @@ fn test_cosigner() {
assert_eq!(signed_block, block);
assert!(Public::from_raw(keys[&participant_one].group_key().to_bytes()).verify(
&cosign_block_msg(block_number, block),
&Signature(signature.try_into().unwrap())
&Signature::from(<[u8; 64]>::try_from(signature).unwrap())
));
}
_ => panic!("didn't get cosigned block back"),

View File

@@ -125,7 +125,7 @@ pub fn test_key_gen<N: Network>() {
let KeyConfirmed { mut substrate_keys, mut network_keys } = key_gen.confirm(
&mut txn,
ID.session,
&KeyPair(sr25519::Public(res.0), res.1.clone().try_into().unwrap()),
&KeyPair(sr25519::Public::from(res.0), res.1.clone().try_into().unwrap()),
);
txn.commit();