3 Commits

Author SHA1 Message Date
Luke Parker
af74c318aa Add event emissions to the DEX pallet 2025-12-02 13:31:33 -05:00
Luke Parker
d711d8915f Update docs Ruby/gem versions 2025-12-02 13:20:17 -05:00
Luke Parker
3d549564a8 Misc tweaks in the style of the last commit
Notably removes the `kvdb-rocksdb` patch via updating the Substrate version
used to one which disables the `jemalloc` feature itself.

Simplifies the path of the built WASM file within the Dockerfile to consumers.
This also ensures if the image is built, the path of the WASM file is as
expected (prior unasserted).
2025-12-02 09:10:44 -05:00
14 changed files with 219 additions and 220 deletions

View File

@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
- name: Install cargo deny
run: cargo +1.91.1 install cargo-deny --version =0.18.6
run: cargo +1.91.1 install cargo-deny --version =0.18.7
- name: Run cargo deny
run: cargo deny -L error --all-features check --hide-inclusion-graph

View File

@@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
- name: Install cargo deny
run: cargo +1.91.1 install cargo-deny --version =0.18.6
run: cargo +1.91.1 install cargo-deny --version =0.18.7
- name: Run cargo deny
run: cargo deny -L error --all-features check --hide-inclusion-graph

View File

@@ -33,4 +33,4 @@ jobs:
uses: ./.github/actions/build-dependencies
- name: Run Reproducible Runtime tests
run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features -p serai-reproducible-runtime-tests
run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features -p serai-reproducible-runtime-tests -- --nocapture

210
Cargo.lock generated
View File

@@ -1464,16 +1464,16 @@ dependencies = [
[[package]]
name = "cargo_metadata"
version = "0.15.4"
version = "0.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a"
checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"
dependencies = [
"camino",
"cargo-platform",
"semver",
"serde",
"serde_json",
"thiserror 1.99.99",
"thiserror 2.0.17",
]
[[package]]
@@ -2899,7 +2899,7 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
[[package]]
name = "fork-tree"
version = "13.0.1"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
]
@@ -2926,7 +2926,7 @@ dependencies = [
[[package]]
name = "frame-benchmarking"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-support",
"frame-support-procedural",
@@ -2949,7 +2949,7 @@ dependencies = [
[[package]]
name = "frame-executive"
version = "43.0.1"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-support",
"frame-system",
@@ -2965,7 +2965,7 @@ dependencies = [
[[package]]
name = "frame-support"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"array-bytes",
"environmental",
@@ -2996,7 +2996,7 @@ dependencies = [
[[package]]
name = "frame-support-procedural"
version = "35.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"Inflector",
"cfg-expr",
@@ -3015,7 +3015,7 @@ dependencies = [
[[package]]
name = "frame-support-procedural-tools"
version = "13.0.1"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-support-procedural-tools-derive",
"proc-macro-crate 3.4.0",
@@ -3027,7 +3027,7 @@ dependencies = [
[[package]]
name = "frame-support-procedural-tools-derive"
version = "12.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"proc-macro2",
"quote",
@@ -3037,7 +3037,7 @@ dependencies = [
[[package]]
name = "frame-system"
version = "43.0.1"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"cfg-if",
"frame-support",
@@ -3054,7 +3054,7 @@ dependencies = [
[[package]]
name = "frame-try-runtime"
version = "0.49.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-support",
"parity-scale-codec",
@@ -4187,13 +4187,6 @@ dependencies = [
"parking_lot",
]
[[package]]
name = "kvdb-rocksdb"
version = "0.20.99"
dependencies = [
"kvdb-rocksdb 0.21.0",
]
[[package]]
name = "kvdb-rocksdb"
version = "0.21.0"
@@ -4220,9 +4213,9 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
[[package]]
name = "libc"
version = "0.2.177"
version = "0.2.178"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
[[package]]
name = "libm"
@@ -5692,7 +5685,7 @@ dependencies = [
[[package]]
name = "pallet-authorship"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-support",
"frame-system",
@@ -5703,7 +5696,7 @@ dependencies = [
[[package]]
name = "pallet-babe"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5724,7 +5717,7 @@ dependencies = [
[[package]]
name = "pallet-grandpa"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5744,7 +5737,7 @@ dependencies = [
[[package]]
name = "pallet-session"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-support",
"frame-system",
@@ -5755,7 +5748,7 @@ dependencies = [
[[package]]
name = "pallet-timestamp"
version = "42.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -7098,7 +7091,7 @@ dependencies = [
[[package]]
name = "sc-allocator"
version = "34.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"log",
"sp-core",
@@ -7109,7 +7102,7 @@ dependencies = [
[[package]]
name = "sc-authority-discovery"
version = "0.53.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"futures",
@@ -7139,7 +7132,7 @@ dependencies = [
[[package]]
name = "sc-basic-authorship"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"futures",
"log",
@@ -7161,7 +7154,7 @@ dependencies = [
[[package]]
name = "sc-block-builder"
version = "0.47.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"sp-api",
@@ -7176,7 +7169,7 @@ dependencies = [
[[package]]
name = "sc-chain-spec"
version = "46.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"sc-client-api",
@@ -7197,7 +7190,7 @@ dependencies = [
[[package]]
name = "sc-cli"
version = "0.55.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"array-bytes",
"chrono",
@@ -7233,7 +7226,7 @@ dependencies = [
[[package]]
name = "sc-client-api"
version = "42.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"fnv",
"futures",
@@ -7259,12 +7252,12 @@ dependencies = [
[[package]]
name = "sc-client-db"
version = "0.49.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"hash-db",
"kvdb",
"kvdb-memorydb",
"kvdb-rocksdb 0.20.99",
"kvdb-rocksdb",
"linked-hash-map",
"log",
"parity-db",
@@ -7286,7 +7279,7 @@ dependencies = [
[[package]]
name = "sc-consensus"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"futures",
@@ -7308,7 +7301,7 @@ dependencies = [
[[package]]
name = "sc-consensus-babe"
version = "0.53.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"fork-tree",
@@ -7345,7 +7338,7 @@ dependencies = [
[[package]]
name = "sc-consensus-epochs"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"fork-tree",
"parity-scale-codec",
@@ -7358,7 +7351,7 @@ dependencies = [
[[package]]
name = "sc-consensus-grandpa"
version = "0.38.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"ahash",
"array-bytes",
@@ -7401,7 +7394,7 @@ dependencies = [
[[package]]
name = "sc-consensus-slots"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"futures",
@@ -7423,7 +7416,7 @@ dependencies = [
[[package]]
name = "sc-executor"
version = "0.45.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"parking_lot",
@@ -7443,7 +7436,7 @@ dependencies = [
[[package]]
name = "sc-executor-common"
version = "0.41.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"sc-allocator",
"sp-wasm-interface",
@@ -7454,7 +7447,7 @@ dependencies = [
[[package]]
name = "sc-executor-wasmtime"
version = "0.41.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"anyhow",
"log",
@@ -7470,7 +7463,7 @@ dependencies = [
[[package]]
name = "sc-informant"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"console",
"futures",
@@ -7486,7 +7479,7 @@ dependencies = [
[[package]]
name = "sc-keystore"
version = "38.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"array-bytes",
"parking_lot",
@@ -7500,7 +7493,7 @@ dependencies = [
[[package]]
name = "sc-network"
version = "0.53.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"array-bytes",
"async-channel",
@@ -7544,7 +7537,7 @@ dependencies = [
[[package]]
name = "sc-network-common"
version = "0.51.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"bitflags 1.3.2",
"parity-scale-codec",
@@ -7554,7 +7547,7 @@ dependencies = [
[[package]]
name = "sc-network-gossip"
version = "0.53.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"ahash",
"futures",
@@ -7573,7 +7566,7 @@ dependencies = [
[[package]]
name = "sc-network-sync"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"array-bytes",
"async-channel",
@@ -7607,7 +7600,7 @@ dependencies = [
[[package]]
name = "sc-network-transactions"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"array-bytes",
"futures",
@@ -7626,7 +7619,7 @@ dependencies = [
[[package]]
name = "sc-network-types"
version = "0.19.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"bs58",
"bytes",
@@ -7647,7 +7640,7 @@ dependencies = [
[[package]]
name = "sc-proposer-metrics"
version = "0.20.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"log",
"substrate-prometheus-endpoint",
@@ -7656,7 +7649,7 @@ dependencies = [
[[package]]
name = "sc-rpc"
version = "48.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"futures",
"jsonrpsee",
@@ -7675,7 +7668,7 @@ dependencies = [
[[package]]
name = "sc-rpc-api"
version = "0.52.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"jsonrpsee",
"parity-scale-codec",
@@ -7687,7 +7680,7 @@ dependencies = [
[[package]]
name = "sc-rpc-server"
version = "25.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"dyn-clone",
"forwarded-header-value",
@@ -7711,7 +7704,7 @@ dependencies = [
[[package]]
name = "sc-service"
version = "0.54.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"directories",
@@ -7771,7 +7764,7 @@ dependencies = [
[[package]]
name = "sc-state-db"
version = "0.40.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"log",
"parity-scale-codec",
@@ -7781,7 +7774,7 @@ dependencies = [
[[package]]
name = "sc-sysinfo"
version = "45.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"derive_more 1.0.0",
"futures",
@@ -7801,7 +7794,7 @@ dependencies = [
[[package]]
name = "sc-telemetry"
version = "30.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"chrono",
"futures",
@@ -7820,7 +7813,7 @@ dependencies = [
[[package]]
name = "sc-tracing"
version = "42.0.1"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"chrono",
"console",
@@ -7848,7 +7841,7 @@ dependencies = [
[[package]]
name = "sc-tracing-proc-macro"
version = "11.1.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"proc-macro-crate 3.4.0",
"proc-macro2",
@@ -7859,7 +7852,7 @@ dependencies = [
[[package]]
name = "sc-transaction-pool"
version = "42.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"futures",
@@ -7889,7 +7882,7 @@ dependencies = [
[[package]]
name = "sc-transaction-pool-api"
version = "42.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"futures",
@@ -7906,7 +7899,7 @@ dependencies = [
[[package]]
name = "sc-utils"
version = "20.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-channel",
"futures",
@@ -9459,7 +9452,7 @@ dependencies = [
[[package]]
name = "sp-api"
version = "39.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"hash-db",
"log",
@@ -9478,7 +9471,7 @@ dependencies = [
[[package]]
name = "sp-api-proc-macro"
version = "25.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"Inflector",
"blake2 0.10.6",
@@ -9492,7 +9485,7 @@ dependencies = [
[[package]]
name = "sp-application-crypto"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"serde",
@@ -9503,7 +9496,7 @@ dependencies = [
[[package]]
name = "sp-arithmetic"
version = "28.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"integer-sqrt",
"num-traits",
@@ -9515,7 +9508,7 @@ dependencies = [
[[package]]
name = "sp-authority-discovery"
version = "39.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"sp-api",
@@ -9525,7 +9518,7 @@ dependencies = [
[[package]]
name = "sp-block-builder"
version = "39.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"sp-api",
"sp-inherents",
@@ -9535,7 +9528,7 @@ dependencies = [
[[package]]
name = "sp-blockchain"
version = "42.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"futures",
"parity-scale-codec",
@@ -9554,7 +9547,7 @@ dependencies = [
[[package]]
name = "sp-consensus"
version = "0.45.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"futures",
@@ -9568,7 +9561,7 @@ dependencies = [
[[package]]
name = "sp-consensus-babe"
version = "0.45.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"parity-scale-codec",
@@ -9585,7 +9578,7 @@ dependencies = [
[[package]]
name = "sp-consensus-grandpa"
version = "26.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"finality-grandpa",
"log",
@@ -9601,7 +9594,7 @@ dependencies = [
[[package]]
name = "sp-consensus-slots"
version = "0.45.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"serde",
@@ -9611,7 +9604,7 @@ dependencies = [
[[package]]
name = "sp-core"
version = "38.1.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"array-bytes",
"bitflags 1.3.2",
@@ -9649,7 +9642,7 @@ dependencies = [
[[package]]
name = "sp-crypto-hashing"
version = "0.1.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"blake2b_simd",
"byteorder",
@@ -9662,7 +9655,7 @@ dependencies = [
[[package]]
name = "sp-crypto-hashing-proc-macro"
version = "0.1.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"quote",
"sp-crypto-hashing",
@@ -9672,7 +9665,7 @@ dependencies = [
[[package]]
name = "sp-database"
version = "10.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"kvdb",
"parking_lot",
@@ -9681,7 +9674,7 @@ dependencies = [
[[package]]
name = "sp-debug-derive"
version = "14.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"proc-macro2",
"quote",
@@ -9691,7 +9684,7 @@ dependencies = [
[[package]]
name = "sp-externalities"
version = "0.30.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"environmental",
"parity-scale-codec",
@@ -9701,7 +9694,7 @@ dependencies = [
[[package]]
name = "sp-genesis-builder"
version = "0.20.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"sp-api",
@@ -9710,7 +9703,7 @@ dependencies = [
[[package]]
name = "sp-inherents"
version = "39.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"impl-trait-for-tuples",
@@ -9722,7 +9715,7 @@ dependencies = [
[[package]]
name = "sp-io"
version = "43.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"bytes",
"log",
@@ -9743,7 +9736,7 @@ dependencies = [
[[package]]
name = "sp-keyring"
version = "44.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"sp-core",
"sp-runtime",
@@ -9753,7 +9746,7 @@ dependencies = [
[[package]]
name = "sp-keystore"
version = "0.44.1"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"parking_lot",
@@ -9764,7 +9757,7 @@ dependencies = [
[[package]]
name = "sp-panic-handler"
version = "13.0.2"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"backtrace",
"regex",
@@ -9773,7 +9766,7 @@ dependencies = [
[[package]]
name = "sp-rpc"
version = "36.0.1"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"rustc-hash",
"serde",
@@ -9782,7 +9775,7 @@ dependencies = [
[[package]]
name = "sp-runtime"
version = "44.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"either",
"hash256-std-hasher",
@@ -9805,7 +9798,7 @@ dependencies = [
[[package]]
name = "sp-runtime-interface"
version = "32.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"bytes",
"parity-scale-codec",
@@ -9819,7 +9812,7 @@ dependencies = [
[[package]]
name = "sp-runtime-interface-proc-macro"
version = "20.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"Inflector",
"expander",
@@ -9832,20 +9825,19 @@ dependencies = [
[[package]]
name = "sp-session"
version = "41.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"sp-api",
"sp-core",
"sp-keystore",
"sp-runtime",
"sp-staking",
]
[[package]]
name = "sp-staking"
version = "41.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"sp-core",
@@ -9855,7 +9847,7 @@ dependencies = [
[[package]]
name = "sp-state-machine"
version = "0.48.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"hash-db",
"log",
@@ -9875,12 +9867,12 @@ dependencies = [
[[package]]
name = "sp-std"
version = "14.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
[[package]]
name = "sp-storage"
version = "22.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -9892,7 +9884,7 @@ dependencies = [
[[package]]
name = "sp-timestamp"
version = "39.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"async-trait",
"parity-scale-codec",
@@ -9904,7 +9896,7 @@ dependencies = [
[[package]]
name = "sp-tracing"
version = "19.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"regex",
@@ -9916,7 +9908,7 @@ dependencies = [
[[package]]
name = "sp-transaction-pool"
version = "39.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"sp-api",
"sp-runtime",
@@ -9925,7 +9917,7 @@ dependencies = [
[[package]]
name = "sp-trie"
version = "41.1.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"ahash",
"foldhash 0.1.5",
@@ -9948,7 +9940,7 @@ dependencies = [
[[package]]
name = "sp-version"
version = "42.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -9962,7 +9954,7 @@ dependencies = [
[[package]]
name = "sp-version-proc-macro"
version = "15.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"parity-scale-codec",
"proc-macro-warning",
@@ -9974,7 +9966,7 @@ dependencies = [
[[package]]
name = "sp-wasm-interface"
version = "24.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"anyhow",
"impl-trait-for-tuples",
@@ -9986,7 +9978,7 @@ dependencies = [
[[package]]
name = "sp-weights"
version = "33.1.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"bounded-collections",
"parity-scale-codec",
@@ -10126,7 +10118,7 @@ dependencies = [
[[package]]
name = "substrate-prometheus-endpoint"
version = "0.17.7"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"hyper",
"log",
@@ -10137,7 +10129,7 @@ dependencies = [
[[package]]
name = "substrate-wasm-builder"
version = "29.0.0"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#875af759416d5220d951e022c9a3e490b3c16677"
source = "git+https://github.com/serai-dex/patch-polkadot-sdk#0cd66846e58f167b09b48a77c3f70bf7b2b67000"
dependencies = [
"cargo_metadata",
"console",
@@ -10855,9 +10847,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "uuid"
version = "1.18.1"
version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2"
checksum = "e2e054861b4bd027cd373e18e8d8d8e6548085000e41290d95ce0c373a654b4a"
dependencies = [
"getrandom 0.3.4",
"js-sys",

View File

@@ -214,9 +214,6 @@ parity-bip39 = { path = "patches/parity-bip39" }
k256 = { git = "https://github.com/kayabaNerve/elliptic-curves", rev = "4994c9ab163781a88cd4a49beae812a89a44e8c3" }
p256 = { git = "https://github.com/kayabaNerve/elliptic-curves", rev = "4994c9ab163781a88cd4a49beae812a89a44e8c3" }
# `jemalloc` conflicts with `mimalloc`, so patch to a `kvdb-rocksdb` which never exposes `jemalloc`
kvdb-rocksdb = { path = "patches/kvdb-rocksdb" }
[workspace.lints.clippy]
incompatible_msrv = "allow" # Manually verified with a GitHub workflow
manual_is_multiple_of = "allow"

View File

@@ -1 +1 @@
3.3.4
3.3.10

View File

@@ -1,4 +1,4 @@
source 'https://rubygems.org'
gem "jekyll", "~> 4.3.3"
gem "just-the-docs", "0.8.2"
gem "jekyll", "~> 4.4"
gem "just-the-docs", "0.10.1"

View File

@@ -1,34 +1,39 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
bigdecimal (3.1.8)
addressable (2.8.8)
public_suffix (>= 2.0.2, < 8.0)
base64 (0.3.0)
bigdecimal (3.3.1)
colorator (1.1.0)
concurrent-ruby (1.3.4)
concurrent-ruby (1.3.5)
csv (3.3.5)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.2-x86_64-linux-gnu)
forwardable-extended (2.6.0)
google-protobuf (4.28.2-x86_64-linux)
google-protobuf (4.33.1-x86_64-linux-gnu)
bigdecimal
rake (>= 13)
http_parser.rb (0.8.0)
i18n (1.14.6)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
jekyll (4.3.4)
jekyll (4.4.1)
addressable (~> 2.4)
base64 (~> 0.2)
colorator (~> 1.0)
csv (~> 3.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
json (~> 2.6)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (>= 0.3.6, < 0.5)
mercenary (~> 0.3, >= 0.3.6)
pathutil (~> 0.9)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
@@ -36,19 +41,20 @@ GEM
webrick (~> 1.7)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-sass-converter (3.1.0)
sass-embedded (~> 1.75)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
just-the-docs (0.8.2)
json (2.16.0)
just-the-docs (0.10.1)
jekyll (>= 3.8.5)
jekyll-include-cache
jekyll-seo-tag (>= 2.0)
rake (>= 12.3.1)
kramdown (2.4.0)
rexml
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
@@ -58,27 +64,27 @@ GEM
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (6.0.1)
rake (13.2.1)
public_suffix (7.0.0)
rake (13.3.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.3.7)
rouge (4.4.0)
rexml (3.4.4)
rouge (4.6.1)
safe_yaml (1.0.5)
sass-embedded (1.79.3-x86_64-linux-gnu)
google-protobuf (~> 4.27)
sass-embedded (1.94.2-x86_64-linux-gnu)
google-protobuf (~> 4.31)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
unicode-display_width (2.6.0)
webrick (1.8.2)
webrick (1.9.2)
PLATFORMS
x86_64-linux
DEPENDENCIES
jekyll (~> 4.3.3)
just-the-docs (= 0.8.2)
jekyll (~> 4.4)
just-the-docs (= 0.10.1)
BUNDLED WITH
2.5.11
2.5.22

View File

@@ -48,6 +48,10 @@ WORKDIR /serai
# Build the runtime
RUN cargo build --release -p serai-runtime
# Copy the artifact
RUN cp /serai/target/release/wbuild/serai-runtime/serai_runtime.wasm /serai/serai.wasm
# Clean up the build directory
RUN cargo clean
# Copy the runtime to the provided volume
CMD ["cp", "/serai/target/release/wbuild/serai-runtime/serai_runtime.wasm", "/volume/serai.wasm"]
CMD ["cp", "/serai/serai.wasm", "/volume/serai.wasm"]

View File

@@ -1,20 +0,0 @@
[package]
name = "kvdb-rocksdb"
version = "0.20.99"
description = "Replacement for `kvdb-rocksdb` which removes the `jemalloc` feature"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/patches/kvdb-rocksdb"
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
edition = "2021"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[workspace]
[dependencies]
kvdb-rocksdb = { version = "0.21", default-features = false }
[features]
jemalloc = []

View File

@@ -1 +0,0 @@
pub use kvdb_rocksdb::*;

View File

@@ -79,41 +79,43 @@ impl Call {
#[derive(Clone, PartialEq, Eq, Debug, BorshSerialize, BorshDeserialize)]
pub enum Event {
/// Liquidity was added to a pool.
LiquidityAdded {
/// The account which added the liquidity.
origin: SeraiAddress,
/// The account which received the liquidity tokens.
LiquidityAddition {
/// The account which received the minted liquidity tokens.
recipient: SeraiAddress,
/// The pool liquidity was added to.
pool: ExternalCoin,
/// The amount of liquidity tokens which were minted.
liquidity_tokens_minted: Amount,
/// The amount of the coin which was added to the pool's liquidity.
external_coin_amount: Amount,
/// The liquidity tokens which were minted.
liquidity_tokens: ExternalBalance,
/// The amount of SRI which was added to the pool's liquidity.
sri_amount: Amount,
/// The amount of the coin which was added to the pool's liquidity.
external_coin_amount: Amount,
},
/// The specified liquidity tokens were transferred.
LiquidityTransfer {
/// The address transferred from.
from: SeraiAddress,
/// The address transferred to.
to: SeraiAddress,
/// The liquidity tokens transferred.
liquidity_tokens: ExternalBalance,
},
/// Liquidity was removed from a pool.
LiquidityRemoved {
LiquidityRemoval {
/// The account which removed the liquidity.
origin: SeraiAddress,
/// The pool liquidity was removed from.
pool: ExternalCoin,
/// The mount of liquidity tokens which were burnt.
liquidity_tokens_burnt: Amount,
/// The amount of the coin which was removed from the pool's liquidity.
external_coin_amount: Amount,
from: SeraiAddress,
/// The liquidity tokens which were burnt.
liquidity_tokens: ExternalBalance,
/// The amount of SRI which was removed from the pool's liquidity.
sri_amount: Amount,
/// The amount of the coin which was removed from the pool's liquidity.
external_coin_amount: Amount,
},
/// A swap through the liquidity pools occurred.
Swap {
/// The account which made the swap.
origin: SeraiAddress,
/// The recipient for the output of the swap.
recipient: SeraiAddress,
from: SeraiAddress,
/// The deltas incurred by the pools.
///
/// For a swap of sriABC to sriDEF, this would be

View File

@@ -10,6 +10,8 @@ mod mock;
#[expect(clippy::cast_possible_truncation)]
#[frame_support::pallet]
mod pallet {
use alloc::vec::Vec;
use frame_system::pallet_prelude::*;
use frame_support::pallet_prelude::*;
@@ -18,7 +20,7 @@ mod pallet {
prelude::*,
dex::{Error as PrimitivesError, Reserves, Premise},
},
Event,
dex::Event,
};
use serai_core_pallet::Pallet as Core;
@@ -99,10 +101,20 @@ mod pallet {
let (sri_actual, external_coin_actual, liquidity) = if supply == 0 {
let sri_actual = sri_intended;
let external_coin_actual = external_coin_intended;
let liquidity = Amount(
u64::try_from((u128::from(sri_actual.0) * u128::from(external_coin_actual.0)).isqrt())
.map_err(|_| Error::<T>::Overflow)?,
);
/*
The best way to explain this is to first consider how would one would write shares of a
liquidity pool with only a single coin (however purposeless that may be). The immediate
suggestion would simply be to use the amount of the singular coin initially added as the
initial amount of shares, with further shares being distributed pro-rata as further
liquidity is added. This inherently has the amount of liquidity tokens approximate the
magnitude and scale of the underlying coin.
When we scale the two-coin case, this methodology no longer immediately applies. The
solution here is to take the product, and then the square root, of the two values. This
provides a magnitude/scale of the liquidity tokens approximately in-between both coins.
*/
let liquidity = (u128::from(sri_actual.0) * u128::from(external_coin_actual.0)).isqrt();
let liquidity = Amount(u64::try_from(liquidity).map_err(|_| Error::<T>::Overflow)?);
if liquidity.0 < MINIMUM_LIQUIDITY {
Err(Error::<T>::InvalidLiquidity)?;
}
@@ -149,6 +161,10 @@ mod pallet {
Amount(sri_liquidity.min(external_coin_liquidity))
};
if liquidity == Amount(0) {
Err(Error::<T>::Unsatisfied)?;
}
(sri_actual, external_coin_actual, liquidity)
};
@@ -162,12 +178,15 @@ mod pallet {
pool.into(),
Balance { coin: Coin::from(external_coin), amount: external_coin_actual },
)?;
LiquidityTokens::<T>::mint(
from,
Balance { coin: Coin::from(external_coin), amount: liquidity },
)?;
let liquidity_tokens = ExternalBalance { coin: external_coin, amount: liquidity };
LiquidityTokens::<T>::mint(from, liquidity_tokens.into())?;
// TODO: Event
Self::emit_event(Event::LiquidityAddition {
recipient: from.into(),
liquidity_tokens,
sri_amount: sri_actual,
external_coin_amount: external_coin_actual,
});
Ok(())
}
@@ -183,7 +202,7 @@ mod pallet {
let from = ensure_signed(origin)?;
LiquidityTokens::<T>::transfer_fn(from, to.into(), liquidity_tokens.into())?;
// TODO: Event
Self::emit_event(Event::LiquidityTransfer { from: from.into(), to, liquidity_tokens });
Ok(())
}
@@ -234,7 +253,12 @@ mod pallet {
Balance { coin: Coin::from(external_coin), amount: external_coin_amount },
)?;
// TODO: Event
Self::emit_event(Event::LiquidityRemoval {
from: from.into(),
liquidity_tokens,
sri_amount,
external_coin_amount,
});
Ok(())
}
@@ -254,6 +278,7 @@ mod pallet {
let swaps = Premise::route(coins_to_swap.coin, minimum_to_receive.coin)
.ok_or(Error::<T>::FromToSelf)?;
let mut deltas = Vec::with_capacity(swaps.len() + 1);
for swap in &swaps {
let external_coin = swap.external_coin();
let pool = serai_abi::dex::address(external_coin);
@@ -273,11 +298,9 @@ mod pallet {
be credited both as part of the reserves _and_ the amount in if violated.
*/
assert!(transfer_from != pool, "swap routed from a coin to itself");
Coins::<T>::transfer_fn(
transfer_from.into(),
pool.into(),
Balance { coin: swap.r#in(), amount: next_amount },
)?;
let delta = Balance { coin: swap.r#in(), amount: next_amount };
Coins::<T>::transfer_fn(transfer_from.into(), pool.into(), delta)?;
deltas.push(delta);
// Update the current status
transfer_from = pool;
@@ -290,13 +313,11 @@ mod pallet {
}
// Transfer the resulting coins to the origin
Coins::<T>::transfer_fn(
transfer_from.into(),
origin.into(),
Balance { coin: minimum_to_receive.coin, amount: next_amount },
)?;
let delta = Balance { coin: minimum_to_receive.coin, amount: next_amount };
Coins::<T>::transfer_fn(transfer_from.into(), origin.into(), delta)?;
deltas.push(delta);
// TODO: Event
Self::emit_event(Event::Swap { from: origin, deltas });
Ok(())
}
@@ -316,6 +337,7 @@ mod pallet {
let swaps = Premise::route(maximum_to_swap.coin, coins_to_receive.coin)
.ok_or(Error::<T>::FromToSelf)?;
let mut deltas = Vec::with_capacity(swaps.len() + 1);
let mut i = swaps.len();
while {
i -= 1;
@@ -342,11 +364,9 @@ mod pallet {
excluded when determining the reserves on the next iteration.
*/
assert!(transfer_to != pool, "swap routed to a coin from itself");
Coins::<T>::transfer_fn(
pool.into(),
transfer_to.into(),
Balance { coin: swap.out(), amount: next_amount },
)?;
let delta = Balance { coin: swap.out(), amount: next_amount };
Coins::<T>::transfer_fn(pool.into(), transfer_to.into(), delta)?;
deltas.push(delta);
transfer_to = pool;
next_amount = swap.quote_for_out(reserves, next_amount).map_err(Error::<T>::from)?;
@@ -360,13 +380,12 @@ mod pallet {
}
// Transfer the necessary coins from the origin
Coins::<T>::transfer_fn(
origin.into(),
transfer_to.into(),
Balance { coin: maximum_to_swap.coin, amount: next_amount },
)?;
let delta = Balance { coin: maximum_to_swap.coin, amount: next_amount };
Coins::<T>::transfer_fn(origin.into(), transfer_to.into(), delta)?;
deltas.push(delta);
// TODO: Event
deltas.reverse();
Self::emit_event(Event::Swap { from: origin, deltas });
Ok(())
}

View File

@@ -55,7 +55,7 @@ pub fn reproducibly_builds() {
.arg("--rm")
.arg(&image)
.arg("sha256sum")
.arg("/serai/target/release/wbuild/serai-runtime/serai_runtime.wasm")
.arg("/serai/serai.wasm")
.output(),
);
// Attempt to clean up the image