mirror of
https://github.com/serai-dex/serai.git
synced 2024-10-30 08:57:36 +00:00
1bff2a0447
Resolves #353 Implements code such that: - 80% of validators (by stake) must be in favor of a signal for the network to be - 80% of networks (by stake) must be in favor of a signal for it to be locked in - After a signal has been locked in for two weeks, the network halts The intention is to: 1) Not allow validators to unilaterally declare new consensus rules. No method of declaring new consensus rules is provided by this pallet. Solely a way to deprecate the current rules, with a signaled for successor. All nodes must then individually decide whether or not to download and run a new node which has new rules, and if so, which rules. 2) Not place blobs on chain. Even if they'd be reproducible, it's just a lot of data to chuck on the blockchain.
133 lines
4.8 KiB
TOML
133 lines
4.8 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"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
codec = { 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-transaction-payment = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
coins-pallet = { package = "serai-coins-pallet", path = "../coins/pallet", default-features = false }
|
|
in-instructions-pallet = { package = "serai-in-instructions-pallet", path = "../in-instructions/pallet", default-features = false }
|
|
|
|
validator-sets-pallet = { package = "serai-validator-sets-pallet", path = "../validator-sets/pallet", default-features = false }
|
|
staking-pallet = { package = "serai-staking-pallet", path = "../staking/pallet", default-features = false }
|
|
|
|
signals-pallet = { package = "serai-signals-pallet", path = "../signals/pallet", default-features = false }
|
|
|
|
pallet-session = { git = "https://github.com/serai-dex/substrate", 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 }
|
|
|
|
pallet-authority-discovery = { 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 = [
|
|
"codec/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-transaction-payment/std",
|
|
|
|
"coins-pallet/std",
|
|
"in-instructions-pallet/std",
|
|
|
|
"validator-sets-pallet/std",
|
|
"staking-pallet/std",
|
|
|
|
"signals-pallet/std",
|
|
|
|
"pallet-session/std",
|
|
"pallet-babe/std",
|
|
"pallet-grandpa/std",
|
|
|
|
"pallet-authority-discovery/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"]
|