From 74bad049a74958510e3fdad508f0164f2c507a45 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 2 Sep 2025 10:40:57 -0400 Subject: [PATCH] Add abstraction for the embedded elliptic curve keys It's minimal but still pleasant. --- Cargo.lock | 216 +++++++++--------- substrate/abi/Cargo.toml | 6 +- substrate/client/Cargo.toml | 6 +- substrate/coins/Cargo.toml | 12 +- substrate/dex/Cargo.toml | 16 +- substrate/economic-security/Cargo.toml | 18 +- substrate/emissions/Cargo.toml | 8 +- substrate/genesis-liquidity/Cargo.toml | 10 +- substrate/in-instructions/Cargo.toml | 20 +- substrate/node/Cargo.toml | 56 ++--- substrate/primitives/Cargo.toml | 2 +- substrate/runtime/Cargo.toml | 16 +- substrate/signals/Cargo.toml | 8 +- substrate/validator-sets/Cargo.toml | 16 +- .../src/embedded_elliptic_curve_keys.rs | 53 +++++ substrate/validator-sets/src/lib.rs | 48 ++-- substrate/validator-sets/src/sessions.rs | 3 +- 17 files changed, 286 insertions(+), 228 deletions(-) create mode 100644 substrate/validator-sets/src/embedded_elliptic_curve_keys.rs diff --git a/Cargo.lock b/Cargo.lock index a1074b19..62d6ce27 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3410,7 +3410,7 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "fork-tree" version = "13.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", ] @@ -3443,7 +3443,7 @@ checksum = "28dd6caf6059519a65843af8fe2a3ae298b14b80179855aeb4adc2c1934ee619" [[package]] name = "frame-benchmarking" version = "40.2.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-support", "frame-support-procedural", @@ -3467,7 +3467,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "40.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "aquamarine", "frame-support", @@ -3497,7 +3497,7 @@ dependencies = [ [[package]] name = "frame-support" version = "40.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "aquamarine", "array-bytes", @@ -3537,7 +3537,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "33.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "Inflector", "cfg-expr", @@ -3557,7 +3557,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "13.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 3.3.0", @@ -3569,7 +3569,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "12.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "proc-macro2", "quote", @@ -3579,7 +3579,7 @@ dependencies = [ [[package]] name = "frame-system" version = "40.2.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "cfg-if", "docify", @@ -3598,7 +3598,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "36.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "docify", "parity-scale-codec", @@ -3608,7 +3608,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.46.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-support", "parity-scale-codec", @@ -6664,7 +6664,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "40.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-support", "frame-system", @@ -6677,7 +6677,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "40.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-benchmarking", "frame-support", @@ -6700,7 +6700,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "40.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-benchmarking", "frame-support", @@ -6722,7 +6722,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "40.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-support", "frame-system", @@ -6743,7 +6743,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "39.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "docify", "frame-benchmarking", @@ -6762,7 +6762,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "40.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-benchmarking", "frame-support", @@ -6778,7 +6778,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "43.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -6794,7 +6794,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "40.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -8436,7 +8436,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "31.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "log", "sp-core", @@ -8447,7 +8447,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.50.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "futures", @@ -8475,7 +8475,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "futures", "log", @@ -8496,7 +8496,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.44.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "sp-api", @@ -8511,7 +8511,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "43.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "docify", @@ -8537,7 +8537,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "12.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "proc-macro-crate 3.3.0", "proc-macro2", @@ -8548,7 +8548,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.52.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "chrono", @@ -8589,7 +8589,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "39.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "fnv", "futures", @@ -8615,7 +8615,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.46.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "hash-db", "kvdb", @@ -8641,7 +8641,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "futures", @@ -8664,7 +8664,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.50.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "fork-tree", @@ -8700,7 +8700,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8713,7 +8713,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" version = "0.35.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "ahash", "array-bytes", @@ -8757,7 +8757,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "futures", @@ -8780,7 +8780,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.42.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "parking_lot 0.12.4", @@ -8803,7 +8803,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.38.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "polkavm", "sc-allocator", @@ -8816,7 +8816,7 @@ dependencies = [ [[package]] name = "sc-executor-polkavm" version = "0.35.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "log", "polkavm", @@ -8827,7 +8827,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.38.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "anyhow", "log", @@ -8843,7 +8843,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "console", "futures", @@ -8859,7 +8859,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "35.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "parking_lot 0.12.4", @@ -8873,7 +8873,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.50.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "async-channel", @@ -8920,7 +8920,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.48.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "bitflags 1.3.2", "parity-scale-codec", @@ -8930,7 +8930,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.50.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "ahash", "futures", @@ -8949,7 +8949,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "async-channel", @@ -8970,7 +8970,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "async-channel", @@ -9005,7 +9005,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "futures", @@ -9024,7 +9024,7 @@ dependencies = [ [[package]] name = "sc-network-types" version = "0.16.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "bs58", "bytes", @@ -9043,7 +9043,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "45.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "bytes", "fnv", @@ -9077,7 +9077,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.20.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -9086,7 +9086,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "45.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "futures", "jsonrpsee", @@ -9116,7 +9116,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.49.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -9135,7 +9135,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "22.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "dyn-clone", "forwarded-header-value", @@ -9159,7 +9159,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.50.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "futures", @@ -9192,7 +9192,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.51.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "directories", @@ -9255,7 +9255,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.38.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "log", "parity-scale-codec", @@ -9266,7 +9266,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "42.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "derive_more 0.99.20", "futures", @@ -9286,7 +9286,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "28.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "chrono", "futures", @@ -9305,7 +9305,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "39.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "chrono", "console", @@ -9333,7 +9333,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "11.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "proc-macro-crate 3.3.0", "proc-macro2", @@ -9344,7 +9344,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "39.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "futures", @@ -9376,7 +9376,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "39.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "futures", @@ -9393,7 +9393,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "18.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-channel", "futures", @@ -10987,7 +10987,7 @@ dependencies = [ [[package]] name = "sp-api" version = "36.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "docify", "hash-db", @@ -11009,7 +11009,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "22.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "Inflector", "blake2 0.10.6", @@ -11023,7 +11023,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "40.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "scale-info", @@ -11035,7 +11035,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "26.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "docify", "integer-sqrt", @@ -11049,7 +11049,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "36.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "scale-info", @@ -11061,7 +11061,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "36.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "sp-api", "sp-inherents", @@ -11071,7 +11071,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "39.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "futures", "parity-scale-codec", @@ -11090,7 +11090,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.42.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "futures", @@ -11104,7 +11104,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.42.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "parity-scale-codec", @@ -11122,7 +11122,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "23.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "finality-grandpa", "log", @@ -11139,7 +11139,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.42.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "scale-info", @@ -11150,7 +11150,7 @@ dependencies = [ [[package]] name = "sp-core" version = "36.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "array-bytes", "bitflags 1.3.2", @@ -11195,7 +11195,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing" version = "0.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "blake2b_simd", "byteorder", @@ -11208,7 +11208,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" version = "0.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "quote", "sp-crypto-hashing", @@ -11218,7 +11218,7 @@ dependencies = [ [[package]] name = "sp-database" version = "10.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "kvdb", "parking_lot 0.12.4", @@ -11227,7 +11227,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "proc-macro2", "quote", @@ -11237,7 +11237,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.30.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "environmental", "parity-scale-codec", @@ -11247,7 +11247,7 @@ dependencies = [ [[package]] name = "sp-genesis-builder" version = "0.17.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "scale-info", @@ -11259,7 +11259,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "36.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -11272,7 +11272,7 @@ dependencies = [ [[package]] name = "sp-io" version = "40.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "bytes", "docify", @@ -11298,7 +11298,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "41.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "sp-core", "sp-runtime", @@ -11308,7 +11308,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.42.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "parking_lot 0.12.4", @@ -11319,7 +11319,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "thiserror 2.0.16", "zstd", @@ -11328,7 +11328,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.10.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "frame-metadata", "parity-scale-codec", @@ -11338,7 +11338,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "36.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "sp-api", "sp-core", @@ -11348,7 +11348,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "13.0.2" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "backtrace", "regex", @@ -11357,7 +11357,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "34.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "rustc-hash 1.1.0", "serde", @@ -11367,7 +11367,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "41.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "docify", "either", @@ -11395,7 +11395,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "29.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -11414,7 +11414,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "18.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "Inflector", "expander", @@ -11427,7 +11427,7 @@ dependencies = [ [[package]] name = "sp-session" version = "38.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "scale-info", @@ -11441,7 +11441,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "38.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -11454,7 +11454,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.45.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "hash-db", "log", @@ -11474,12 +11474,12 @@ dependencies = [ [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" [[package]] name = "sp-storage" version = "22.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11491,7 +11491,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "36.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "async-trait", "parity-scale-codec", @@ -11503,7 +11503,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "17.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "tracing", @@ -11514,7 +11514,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "36.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "sp-api", "sp-runtime", @@ -11523,7 +11523,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "39.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "ahash", "hash-db", @@ -11545,7 +11545,7 @@ dependencies = [ [[package]] name = "sp-version" version = "39.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11562,7 +11562,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "15.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "parity-scale-codec", "proc-macro-warning", @@ -11574,7 +11574,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "21.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -11586,7 +11586,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "31.1.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -11763,7 +11763,7 @@ dependencies = [ [[package]] name = "substrate-bip39" version = "0.6.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "hmac 0.12.1", "pbkdf2", @@ -11775,12 +11775,12 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "11.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" [[package]] name = "substrate-frame-rpc-system" version = "44.0.0" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "docify", "frame-system-rpc-runtime-api", @@ -11800,7 +11800,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.17.3" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "http-body-util", "hyper 1.4.1", @@ -11814,7 +11814,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "26.0.1" -source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=74839cba4a7f48023080215e5194fd6ab7e270e5#74839cba4a7f48023080215e5194fd6ab7e270e5" +source = "git+https://github.com/serai-dex/patch-polkadot-sdk?rev=ece373ca1e8aaee67844eebcca28b5e016136dba#ece373ca1e8aaee67844eebcca28b5e016136dba" dependencies = [ "build-helper", "cargo_metadata", diff --git a/substrate/abi/Cargo.toml b/substrate/abi/Cargo.toml index bd059889..b1d87db0 100644 --- a/substrate/abi/Cargo.toml +++ b/substrate/abi/Cargo.toml @@ -22,13 +22,13 @@ workspace = true borsh = { version = "1", default-features = false, features = ["derive", "de_strict_order"] } bitvec = { version = "1", default-features = false, features = ["alloc"] } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } serde = { version = "1", default-features = false, features = ["derive"], optional = true } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"], optional = true } scale-info = { version = "2", default-features = false, features = ["derive"], optional = true } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false, features = ["serde"], optional = true } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false, optional = true } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false, features = ["serde"], optional = true } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false, optional = true } serai-primitives = { path = "../primitives", version = "0.1", default-features = false } diff --git a/substrate/client/Cargo.toml b/substrate/client/Cargo.toml index 8a9af82f..55e52988 100644 --- a/substrate/client/Cargo.toml +++ b/substrate/client/Cargo.toml @@ -31,9 +31,9 @@ serde_json = { version = "1", optional = true } serai-abi = { path = "../abi", version = "0.1" } multiaddr = { version = "0.18", optional = true } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", optional = true } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", optional = true } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", optional = true } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", optional = true } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", optional = true } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", optional = true } async-lock = "3" diff --git a/substrate/coins/Cargo.toml b/substrate/coins/Cargo.toml index 375a0869..99dcf2ee 100644 --- a/substrate/coins/Cargo.toml +++ b/substrate/coins/Cargo.toml @@ -22,17 +22,17 @@ workspace = true scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } serai-primitives = { path = "../primitives", default-features = false, features = ["serde", "non_canonical_scale_derivations"] } [dev-dependencies] -sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false, features = ["std"] } +sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false, features = ["std"] } [features] std = [ diff --git a/substrate/dex/Cargo.toml b/substrate/dex/Cargo.toml index e96900a6..760b151b 100644 --- a/substrate/dex/Cargo.toml +++ b/substrate/dex/Cargo.toml @@ -22,15 +22,15 @@ workspace = true scale = { package = "parity-scale-codec", version = "3.6.1", default-features = false } scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } -sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-benchmarking = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false, optional = true } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-benchmarking = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false, optional = true } coins-pallet = { package = "serai-coins-pallet", path = "../coins", default-features = false } diff --git a/substrate/economic-security/Cargo.toml b/substrate/economic-security/Cargo.toml index 65e65794..639e0c35 100644 --- a/substrate/economic-security/Cargo.toml +++ b/substrate/economic-security/Cargo.toml @@ -22,8 +22,8 @@ workspace = true scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } dex-pallet = { package = "serai-dex-pallet", path = "../dex", default-features = false } coins-pallet = { package = "serai-coins-pallet", path = "../coins", default-features = false } @@ -31,16 +31,16 @@ coins-pallet = { package = "serai-coins-pallet", path = "../coins", default-feat serai-primitives = { path = "../primitives", default-features = false } [dev-dependencies] -pallet-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -pallet-grandpa = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +pallet-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +pallet-grandpa = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } validator-sets-pallet = { package = "serai-validator-sets-pallet", path = "../validator-sets", default-features = false } -sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } [features] std = [ diff --git a/substrate/emissions/Cargo.toml b/substrate/emissions/Cargo.toml index f2af02ca..5b85b271 100644 --- a/substrate/emissions/Cargo.toml +++ b/substrate/emissions/Cargo.toml @@ -22,11 +22,11 @@ workspace = true scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } coins-pallet = { package = "serai-coins-pallet", path = "../coins", default-features = false } validator-sets-pallet = { package = "serai-validator-sets-pallet", path = "../validator-sets", default-features = false } diff --git a/substrate/genesis-liquidity/Cargo.toml b/substrate/genesis-liquidity/Cargo.toml index 0cdcb1f6..42060bb6 100644 --- a/substrate/genesis-liquidity/Cargo.toml +++ b/substrate/genesis-liquidity/Cargo.toml @@ -22,12 +22,12 @@ workspace = true scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-application-crypto = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-application-crypto = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } dex-pallet = { package = "serai-dex-pallet", path = "../dex", default-features = false } coins-pallet = { package = "serai-coins-pallet", path = "../coins", default-features = false } diff --git a/substrate/in-instructions/Cargo.toml b/substrate/in-instructions/Cargo.toml index 39cd3427..d0242834 100644 --- a/substrate/in-instructions/Cargo.toml +++ b/substrate/in-instructions/Cargo.toml @@ -25,14 +25,14 @@ bitvec = { version = "1", default-features = false, features = ["alloc"] } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "max-encoded-len"] } scale-info = { version = "2", default-features = false, features = ["derive"] } -sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-application-crypto = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-std = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-application-crypto = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } serai-primitives = { path = "../primitives", default-features = false } @@ -43,9 +43,9 @@ genesis-liquidity-pallet = { package = "serai-genesis-liquidity-pallet", path = emissions-pallet = { package = "serai-emissions-pallet", path = "../emissions", default-features = false } [dev-dependencies] -pallet-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -pallet-grandpa = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +pallet-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +pallet-grandpa = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } economic-security-pallet = { package = "serai-economic-security-pallet", path = "../economic-security", default-features = false } diff --git a/substrate/node/Cargo.toml b/substrate/node/Cargo.toml index 9d11d5dd..e28ec9fa 100644 --- a/substrate/node/Cargo.toml +++ b/substrate/node/Cargo.toml @@ -34,16 +34,16 @@ secq256k1 = { path = "../../crypto/secq256k1" } libp2p = "0.54" -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sp-keystore = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sp-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sp-blockchain = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sp-block-builder = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sp-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sp-keystore = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sp-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sp-blockchain = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sp-block-builder = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sp-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } -frame-benchmarking = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } +frame-benchmarking = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } serai-runtime = { path = "../runtime", features = ["std"] } @@ -55,28 +55,28 @@ jsonrpsee = { version = "0.24", features = ["server"] } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } -sc-offchain = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-transaction-pool = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-transaction-pool-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-basic-authorship = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-executor = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-service = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-client-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-network-common = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-network = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false, features = [] } +sc-offchain = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-transaction-pool = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-transaction-pool-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-basic-authorship = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-executor = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-service = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-client-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-network-common = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-network = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false, features = [] } -sc-consensus = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-consensus-grandpa = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-authority-discovery = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } +sc-consensus = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-consensus-grandpa = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-authority-discovery = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } -sc-telemetry = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -sc-cli = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false, features = ["rocksdb"] } +sc-telemetry = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +sc-cli = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false, features = ["rocksdb"] } -sc-rpc-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } +sc-rpc-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } -substrate-frame-rpc-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } -pallet-transaction-payment-rpc = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } +substrate-frame-rpc-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } +pallet-transaction-payment-rpc = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } serai-env = { path = "../../common/env" } @@ -85,7 +85,7 @@ bitcoin-serai = { path = "../../networks/bitcoin", default-features = false, fea monero-address = { git = "https://github.com/monero-oxide/monero-oxide", rev = "6966575e05fe09b77674c46984b21686ed9304ff", default-features = false, features = ["std"] } [build-dependencies] -substrate-build-script-utils = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } +substrate-build-script-utils = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } [features] default = [] diff --git a/substrate/primitives/Cargo.toml b/substrate/primitives/Cargo.toml index 87403b3d..67bad0a7 100644 --- a/substrate/primitives/Cargo.toml +++ b/substrate/primitives/Cargo.toml @@ -22,7 +22,7 @@ borsh = { version = "1", default-features = false, features = ["derive", "de_str bitvec = { version = "1", default-features = false, features = ["alloc"] } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"], optional = true } scale-info = { version = "2", default-features = false, features = ["derive"], optional = true } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, features = ["alloc"] } schnorr-signatures = { path = "../../crypto/schnorr", default-features = false } diff --git a/substrate/runtime/Cargo.toml b/substrate/runtime/Cargo.toml index 7a6130ca..c54ae793 100644 --- a/substrate/runtime/Cargo.toml +++ b/substrate/runtime/Cargo.toml @@ -23,21 +23,21 @@ borsh = { version = "1", default-features = false, features = ["derive", "de_str scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-version = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-version = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } serai-abi = { path = "../abi", default-features = false, features = ["substrate"] } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-executive = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-executive = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } serai-coins-pallet = { path = "../coins", default-features = false } [build-dependencies] -substrate-wasm-builder = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5" } +substrate-wasm-builder = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba" } [features] std = [ diff --git a/substrate/signals/Cargo.toml b/substrate/signals/Cargo.toml index 1ac5ff94..c97b9984 100644 --- a/substrate/signals/Cargo.toml +++ b/substrate/signals/Cargo.toml @@ -22,11 +22,11 @@ workspace = true scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } serai-primitives = { path = "../primitives", default-features = false } diff --git a/substrate/validator-sets/Cargo.toml b/substrate/validator-sets/Cargo.toml index e7a94444..276e7edb 100644 --- a/substrate/validator-sets/Cargo.toml +++ b/substrate/validator-sets/Cargo.toml @@ -21,22 +21,22 @@ bitvec = { version = "1", default-features = false, features = ["alloc", "serde" scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "bit-vec"] } scale-info = { version = "2", default-features = false, features = ["derive", "bit-vec"] } -sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } -frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } +frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } serai-primitives = { path = "../primitives", default-features = false, features = ["non_canonical_scale_derivations"] } coins-pallet = { package = "serai-coins-pallet", path = "../coins", default-features = false } [dev-dependencies] -#pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +#pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } -#sp-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false } +#sp-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "ece373ca1e8aaee67844eebcca28b5e016136dba", default-features = false } #ciphersuite = { path = "../../../crypto/ciphersuite", default-features = false, features = ["std"] } #dalek-ff-group = { path = "../../../crypto/dalek-ff-group", default-features = false, features = ["std"] } diff --git a/substrate/validator-sets/src/embedded_elliptic_curve_keys.rs b/substrate/validator-sets/src/embedded_elliptic_curve_keys.rs new file mode 100644 index 00000000..f72b476a --- /dev/null +++ b/substrate/validator-sets/src/embedded_elliptic_curve_keys.rs @@ -0,0 +1,53 @@ +use sp_core::{Encode, sr25519::Public}; + +use serai_primitives::{crypto::SignedEmbeddedEllipticCurveKeys, network_id::*}; + +use frame_support::storage::StorageDoubleMap; + +pub(crate) trait EmbeddedEllipticCurveKeysStorage { + /// An opaque map storing keys on an embedded elliptic curve. + type EmbeddedEllipticCurveKeys: StorageDoubleMap< + ExternalNetworkId, + Public, + serai_primitives::crypto::EmbeddedEllipticCurveKeys, + Query = Option, + >; +} + +/// An interface for managing validators' embedded elliptic curve keys. +pub(crate) trait EmbeddedEllipticCurveKeys { + /// Set a validator's embedded elliptic curve keys for an external network. + fn set_embedded_elliptic_curve_keys( + validator: Public, + keys: SignedEmbeddedEllipticCurveKeys, + ) -> Result<(), ()>; + /// Check if a validator still needs to set embedded elliptic curve keys. + fn still_needs_to_set_embedded_elliptic_curve_keys(network: NetworkId, validator: Public) + -> bool; +} + +impl EmbeddedEllipticCurveKeys for S { + /// Set a validator's embedded elliptic curve keys, for an external network. + fn set_embedded_elliptic_curve_keys( + validator: Public, + keys: SignedEmbeddedEllipticCurveKeys, + ) -> Result<(), ()> { + let keys = keys.verify(validator.into()).ok_or(())?; + S::EmbeddedEllipticCurveKeys::set(keys.network(), validator, Some(keys)); + Ok(()) + } + + /// Check if a validator still needs to set embedded elliptic curve keys. + fn still_needs_to_set_embedded_elliptic_curve_keys( + network: NetworkId, + validator: Public, + ) -> bool { + match network { + // Validators never need to set embedded elliptic curve keys for Serai + NetworkId::Serai => return false, + NetworkId::External(network) => { + !S::EmbeddedEllipticCurveKeys::contains_key(network, validator) + } + } + } +} diff --git a/substrate/validator-sets/src/lib.rs b/substrate/validator-sets/src/lib.rs index 1b9ff74c..9174ac5d 100644 --- a/substrate/validator-sets/src/lib.rs +++ b/substrate/validator-sets/src/lib.rs @@ -4,6 +4,9 @@ extern crate alloc; +mod embedded_elliptic_curve_keys; +use embedded_elliptic_curve_keys::*; + mod allocations; use allocations::*; @@ -78,12 +81,7 @@ mod pallet { use frame_support::pallet_prelude::*; use serai_primitives::{ - crypto::KeyPair, - network_id::*, - coin::*, - balance::*, - validator_sets::*, - address::SeraiAddress, + crypto::KeyPair, network_id::*, coin::*, balance::*, validator_sets::*, address::SeraiAddress, }; use coins_pallet::Pallet as Coins; @@ -91,8 +89,7 @@ mod pallet { use super::*; #[pallet::config] - #[pallet::disable_frame_system_supertrait_check] - pub trait Config: coins_pallet::Config { + pub trait Config: frame_system::Config + coins_pallet::Config { type RuntimeEvent: IsType<::RuntimeEvent> + From>; // type ShouldEndSession: ShouldEndSession>; @@ -157,19 +154,24 @@ mod pallet { } */ - /// A key on an embedded elliptic curve. + struct Abstractions(PhantomData); + + // Satisfy the `EmbeddedEllipticCurveKeys` abstraction + #[pallet::storage] - pub type EmbeddedEllipticCurveKeys = StorageDoubleMap< + type EmbeddedEllipticCurveKeys = StorageDoubleMap< _, - Blake2_128Concat, - Public, Identity, ExternalNetworkId, + Blake2_128Concat, + Public, serai_primitives::crypto::EmbeddedEllipticCurveKeys, OptionQuery, >; - struct Abstractions(PhantomData); + impl EmbeddedEllipticCurveKeysStorage for Abstractions { + type EmbeddedEllipticCurveKeys = EmbeddedEllipticCurveKeys; + } // Satisfy the `Allocations` abstraction @@ -186,7 +188,7 @@ mod pallet { type SortedAllocations = SortedAllocations; } - // Satisfy the `Sessions` API + // Satisfy the `Sessions` abstraction // We use `Identity` as the hasher for `NetworkId` due to how constrained it is #[pallet::storage] @@ -809,12 +811,12 @@ mod pallet { #[pallet::weight(0)] // TODO pub fn set_embedded_elliptic_curve_keys( origin: OriginFor, - network: ExternalNetworkId, - keys: serai_primitives::crypto::EmbeddedEllipticCurveKeys, + keys: serai_primitives::crypto::SignedEmbeddedEllipticCurveKeys, ) -> DispatchResult { let signer = ensure_signed(origin)?; - // TODO: Add PoKs and check validity - EmbeddedEllipticCurveKeys::::set(signer, network, Some(keys)); + as crate::EmbeddedEllipticCurveKeys>::set_embedded_elliptic_curve_keys( + signer, keys, + )?; Ok(()) } @@ -824,10 +826,12 @@ mod pallet { let validator = ensure_signed(origin)?; // If this network utilizes embedded elliptic curve(s), require the validator to have set the // appropriate key(s) - if let Ok(network) = ExternalNetworkId::try_from(network) { - if !EmbeddedEllipticCurveKeys::::contains_key(validator, network) { - Err(Error::::MissingEmbeddedEllipticCurveKey)?; - } + if < + Abstractions:: + as + crate::EmbeddedEllipticCurveKeys + >::still_needs_to_set_embedded_elliptic_curve_keys(network, validator) { + Err(Error::::MissingEmbeddedEllipticCurveKey)?; } Coins::::transfer_internal( validator, diff --git a/substrate/validator-sets/src/sessions.rs b/substrate/validator-sets/src/sessions.rs index 95b720c2..0d6086f6 100644 --- a/substrate/validator-sets/src/sessions.rs +++ b/substrate/validator-sets/src/sessions.rs @@ -44,7 +44,8 @@ pub(crate) trait SessionsStorage: AllocationsStorage { /// /// This is opaque and to be exclusively read/write by `Sessions`. // The value is how many key shares the validator has. - type SelectedValidators: StorageMap + StoragePrefixedMap; + type SelectedValidators: StorageMap> + + StoragePrefixedMap; /// The total allocated stake for a network. ///