mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
b493e3e31f
* Route validators for any active set through sc-authority-discovery Additionally adds an RPC route to retrieve their P2P addresses. * Have the coordinator get peers from substrate * Have the RPC return one address, not up to 3 Prevents the coordinator from believing it has 3 peers when it has one. * Add missing feature to serai-client * Correct network argument in serai-client for p2p_validators call * Add a test in serai-client to check DHT population with a much quicker failure than the coordinator tests * Update to latest Substrate Removes distinguishing BABE/AuthorityDiscovery keys which causes sc_authority_discovery to populate as desired. * Update to a properly tagged substrate commit * Add all dialed to peers to GossipSub * cargo fmt * Reduce common code in serai-coordinator-tests with amore involved new_test * Use a recursive async function to spawn `n` DockerTests with the necessary networking configuration * Merge UNIQUE_ID and ONE_AT_A_TIME * Tidy up the new recursive code in tests/coordinator * Use a Mutex in CONTEXT to let it be set multiple times * Make complimentary edits to full-stack tests * Augment coordinator P2p connection logs * Drop lock acquisitions before recursing * Better scope lock acquisitions in full-stack, preventing a deadlock * Ensure OUTER_OPS is reset across the test boundary * Add cargo deny allowance for dockertest fork
140 lines
4.9 KiB
TOML
140 lines
4.9 KiB
TOML
[package]
|
|
name = "serai-runtime"
|
|
version = "0.1.0"
|
|
description = "Serai network node runtime, built over Substrate"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/runtime"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
edition = "2021"
|
|
rust-version = "1.74"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["scale", "scale-info"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
hashbrown = { version = "0.14", default-features = false, features = ["ahash", "inline-more"] }
|
|
|
|
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/substrate", default-features = false }
|
|
sp-std = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
sp-offchain = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-version = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-inherents = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
sp-session = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-consensus-babe = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-consensus-grandpa = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
sp-authority-discovery = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
sp-transaction-pool = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-block-builder = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
sp-runtime = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-api = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
frame-system = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
frame-support = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
frame-executive = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
frame-benchmarking = { git = "https://github.com/serai-dex/substrate", default-features = false, optional = true }
|
|
|
|
serai-primitives = { path = "../primitives", default-features = false }
|
|
|
|
pallet-timestamp = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
pallet-authorship = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
pallet-transaction-payment = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
coins-pallet = { package = "serai-coins-pallet", path = "../coins/pallet", default-features = false }
|
|
dex-pallet = { package = "serai-dex-pallet", path = "../dex/pallet", default-features = false }
|
|
|
|
validator-sets-pallet = { package = "serai-validator-sets-pallet", path = "../validator-sets/pallet", default-features = false }
|
|
|
|
in-instructions-pallet = { package = "serai-in-instructions-pallet", path = "../in-instructions/pallet", default-features = false }
|
|
|
|
signals-pallet = { package = "serai-signals-pallet", path = "../signals/pallet", default-features = false }
|
|
|
|
pallet-babe = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
pallet-grandpa = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
frame-system-rpc-runtime-api = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = { git = "https://github.com/serai-dex/substrate" }
|
|
|
|
[features]
|
|
std = [
|
|
"scale/std",
|
|
"scale-info/std",
|
|
|
|
"sp-core/std",
|
|
"sp-std/std",
|
|
|
|
"sp-offchain/std",
|
|
"sp-version/std",
|
|
"sp-inherents/std",
|
|
|
|
"sp-session/std",
|
|
"sp-consensus-babe/std",
|
|
"sp-consensus-grandpa/std",
|
|
|
|
"sp-authority-discovery/std",
|
|
|
|
"sp-transaction-pool/std",
|
|
"sp-block-builder/std",
|
|
|
|
"sp-runtime/std",
|
|
"sp-api/std",
|
|
|
|
"frame-system/std",
|
|
"frame-support/std",
|
|
"frame-executive/std",
|
|
|
|
"serai-primitives/std",
|
|
|
|
"pallet-timestamp/std",
|
|
"pallet-authorship/std",
|
|
|
|
"pallet-transaction-payment/std",
|
|
|
|
"coins-pallet/std",
|
|
"dex-pallet/std",
|
|
|
|
"validator-sets-pallet/std",
|
|
|
|
"in-instructions-pallet/std",
|
|
|
|
"signals-pallet/std",
|
|
|
|
"pallet-babe/std",
|
|
"pallet-grandpa/std",
|
|
|
|
"frame-system-rpc-runtime-api/std",
|
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
|
]
|
|
|
|
runtime-benchmarks = [
|
|
"sp-runtime/runtime-benchmarks",
|
|
|
|
"frame-system/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
|
|
"pallet-babe/runtime-benchmarks",
|
|
"pallet-grandpa/runtime-benchmarks",
|
|
]
|
|
|
|
default = ["std"]
|