mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
bfafbf7bac
* WIP Statement store * Sync with networking changes in master * WIP statement pallet * Statement validation * pallet tests * Validation queue * Store maintenance * Basic statement refactoring + tests + docs * Store metrics * Store tests * Store maintenance test * cargo fmt * Build fix * OCW Api * Offchain worker * Enable host functions * fmt * Minor tweaks * Fixed a warning * Removed tracing * Manual expiration * Reworked constraint management * Updated pallet constraint calculation * Added small test * Added remove function to the APIs * Copy-paste spec into readme * Comments * Made the store optional * Removed network protocol controller * fmt * Clippy fixes * fmt * fmt * More clippy fixes * More clippy fixes * More clippy fixes * Update client/statement-store/README.md Co-authored-by: cheme <emericchevalier.pro@gmail.com> * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * Removed sstore from node-template * Sort out data path * Added offline check * Removed dispatch_statement * Renamed into_generic * Fixed commit placement * Use HashSet for tracking peers/statements * fmt * Use ExtendedHostFunctions * Fixed benches * Tweaks * Apply suggestions from code review Co-authored-by: cheme <emericchevalier.pro@gmail.com> * Fixed priority mixup * Rename * newtypes for priorities * Added MAX_TOPICS * Fixed key filtering logic * Remove empty entrie * Removed prefix from signing * More documentation * fmt * Moved store setup from sc-service to node * Handle maintenance task in sc-statement-store * Use statement iterator * Renamed runtime API mod * fmt * Remove dump_encoded * fmt * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * Fixed build after applying review suggestions * License exceptions * fmt * Store options * Moved pallet consts to config trait * Removed global priority * Validate fields when decoding * Limit validation channel size * Made a comment into module doc * Removed submit_encoded --------- Co-authored-by: cheme <emericchevalier.pro@gmail.com> Co-authored-by: Bastian Köcher <git@kchr.de>
174 lines
8.5 KiB
TOML
174 lines
8.5 KiB
TOML
[package]
|
|
name = "node-cli"
|
|
version = "3.0.0-dev"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
description = "Generic Substrate node implementation in Rust."
|
|
build = "build.rs"
|
|
edition = "2021"
|
|
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|
default-run = "substrate"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
publish = false
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
# `wasm-opt` has some problems on linux, see
|
|
# https://github.com/rustwasm/wasm-pack/issues/781 etc.
|
|
wasm-opt = false
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[badges]
|
|
travis-ci = { repository = "paritytech/substrate" }
|
|
maintenance = { status = "actively-developed" }
|
|
is-it-maintained-issue-resolution = { repository = "paritytech/substrate" }
|
|
is-it-maintained-open-issues = { repository = "paritytech/substrate" }
|
|
|
|
[[bin]]
|
|
name = "substrate"
|
|
path = "bin/main.rs"
|
|
required-features = ["cli"]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
# third-party dependencies
|
|
array-bytes = "4.1"
|
|
clap = { version = "4.2.5", features = ["derive"], optional = true }
|
|
codec = { package = "parity-scale-codec", version = "3.2.2" }
|
|
serde = { version = "1.0.136", features = ["derive"] }
|
|
jsonrpsee = { version = "0.16.2", features = ["server"] }
|
|
futures = "0.3.21"
|
|
log = "0.4.17"
|
|
rand = "0.8"
|
|
|
|
# primitives
|
|
sp-authority-discovery = { version = "4.0.0-dev", path = "../../../primitives/authority-discovery" }
|
|
sp-consensus-babe = { version = "0.10.0-dev", path = "../../../primitives/consensus/babe" }
|
|
grandpa-primitives = { version = "4.0.0-dev", package = "sp-consensus-grandpa", path = "../../../primitives/consensus/grandpa" }
|
|
sp-api = { version = "4.0.0-dev", path = "../../../primitives/api" }
|
|
sp-core = { version = "7.0.0", path = "../../../primitives/core" }
|
|
sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
|
|
sp-timestamp = { version = "4.0.0-dev", path = "../../../primitives/timestamp" }
|
|
sp-inherents = { version = "4.0.0-dev", path = "../../../primitives/inherents" }
|
|
sp-keyring = { version = "7.0.0", path = "../../../primitives/keyring" }
|
|
sp-keystore = { version = "0.13.0", path = "../../../primitives/keystore" }
|
|
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
|
|
sp-transaction-pool = { version = "4.0.0-dev", path = "../../../primitives/transaction-pool" }
|
|
sp-transaction-storage-proof = { version = "4.0.0-dev", path = "../../../primitives/transaction-storage-proof" }
|
|
sp-io = { path = "../../../primitives/io" }
|
|
|
|
# client dependencies
|
|
sc-client-api = { version = "4.0.0-dev", path = "../../../client/api" }
|
|
sc-chain-spec = { version = "4.0.0-dev", path = "../../../client/chain-spec" }
|
|
sc-consensus = { version = "0.10.0-dev", path = "../../../client/consensus/common" }
|
|
sc-transaction-pool = { version = "4.0.0-dev", path = "../../../client/transaction-pool" }
|
|
sc-transaction-pool-api = { version = "4.0.0-dev", path = "../../../client/transaction-pool/api" }
|
|
sc-statement-store = { version = "4.0.0-dev", path = "../../../client/statement-store" }
|
|
sc-network = { version = "0.10.0-dev", path = "../../../client/network" }
|
|
sc-network-common = { version = "0.10.0-dev", path = "../../../client/network/common" }
|
|
sc-network-sync = { version = "0.10.0-dev", path = "../../../client/network/sync" }
|
|
sc-network-statement = { version = "0.10.0-dev", path = "../../../client/network/statement" }
|
|
sc-consensus-slots = { version = "0.10.0-dev", path = "../../../client/consensus/slots" }
|
|
sc-consensus-babe = { version = "0.10.0-dev", path = "../../../client/consensus/babe" }
|
|
grandpa = { version = "0.10.0-dev", package = "sc-consensus-grandpa", path = "../../../client/consensus/grandpa" }
|
|
sc-rpc = { version = "4.0.0-dev", path = "../../../client/rpc" }
|
|
sc-basic-authorship = { version = "0.10.0-dev", path = "../../../client/basic-authorship" }
|
|
sc-service = { version = "0.10.0-dev", default-features = false, path = "../../../client/service" }
|
|
sc-telemetry = { version = "4.0.0-dev", path = "../../../client/telemetry" }
|
|
sc-executor = { version = "0.10.0-dev", path = "../../../client/executor" }
|
|
sc-authority-discovery = { version = "0.10.0-dev", path = "../../../client/authority-discovery" }
|
|
sc-sync-state-rpc = { version = "0.10.0-dev", path = "../../../client/sync-state-rpc" }
|
|
sc-sysinfo = { version = "6.0.0-dev", path = "../../../client/sysinfo" }
|
|
sc-storage-monitor = { version = "0.1.0", path = "../../../client/storage-monitor" }
|
|
|
|
# frame dependencies
|
|
frame-system = { version = "4.0.0-dev", path = "../../../frame/system" }
|
|
frame-system-rpc-runtime-api = { version = "4.0.0-dev", path = "../../../frame/system/rpc/runtime-api" }
|
|
pallet-transaction-payment = { version = "4.0.0-dev", path = "../../../frame/transaction-payment" }
|
|
pallet-assets = { version = "4.0.0-dev", path = "../../../frame/assets/" }
|
|
pallet-asset-tx-payment = { version = "4.0.0-dev", path = "../../../frame/transaction-payment/asset-tx-payment/" }
|
|
pallet-im-online = { version = "4.0.0-dev", default-features = false, path = "../../../frame/im-online" }
|
|
|
|
# node-specific dependencies
|
|
kitchensink-runtime = { version = "3.0.0-dev", path = "../runtime" }
|
|
node-rpc = { version = "3.0.0-dev", path = "../rpc" }
|
|
node-primitives = { version = "2.0.0", path = "../primitives" }
|
|
node-executor = { version = "3.0.0-dev", path = "../executor" }
|
|
|
|
# CLI-specific dependencies
|
|
sc-cli = { version = "0.10.0-dev", optional = true, path = "../../../client/cli" }
|
|
frame-benchmarking-cli = { version = "4.0.0-dev", optional = true, path = "../../../utils/frame/benchmarking-cli" }
|
|
node-inspect = { version = "0.9.0-dev", optional = true, path = "../inspect" }
|
|
try-runtime-cli = { version = "0.10.0-dev", optional = true, path = "../../../utils/frame/try-runtime/cli" }
|
|
serde_json = "1.0.85"
|
|
|
|
[dev-dependencies]
|
|
sc-keystore = { version = "4.0.0-dev", path = "../../../client/keystore" }
|
|
sc-client-db = { version = "0.10.0-dev", path = "../../../client/db" }
|
|
sc-consensus = { version = "0.10.0-dev", path = "../../../client/consensus/common" }
|
|
sc-consensus-babe = { version = "0.10.0-dev", path = "../../../client/consensus/babe" }
|
|
sc-consensus-epochs = { version = "0.10.0-dev", path = "../../../client/consensus/epochs" }
|
|
sc-service-test = { version = "2.0.0", path = "../../../client/service/test" }
|
|
sc-block-builder = { version = "0.10.0-dev", path = "../../../client/block-builder" }
|
|
sp-tracing = { version = "6.0.0", path = "../../../primitives/tracing" }
|
|
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
|
|
futures = "0.3.21"
|
|
tempfile = "3.1.0"
|
|
assert_cmd = "2.0.2"
|
|
nix = { version = "0.26.1", features = ["signal"] }
|
|
serde_json = "1.0"
|
|
regex = "1.6.0"
|
|
platforms = "2.0"
|
|
soketto = "0.7.1"
|
|
criterion = { version = "0.4.0", features = ["async_tokio"] }
|
|
tokio = { version = "1.22.0", features = ["macros", "time", "parking_lot"] }
|
|
tokio-util = { version = "0.7.4", features = ["compat"] }
|
|
wait-timeout = "0.2"
|
|
substrate-rpc-client = { path = "../../../utils/frame/rpc/client" }
|
|
pallet-timestamp = { version = "4.0.0-dev", path = "../../../frame/timestamp" }
|
|
substrate-cli-test-utils = { path = "../../../test-utils/cli" }
|
|
|
|
[build-dependencies]
|
|
clap = { version = "4.2.5", optional = true }
|
|
clap_complete = { version = "4.0.2", optional = true }
|
|
node-inspect = { version = "0.9.0-dev", optional = true, path = "../inspect" }
|
|
frame-benchmarking-cli = { version = "4.0.0-dev", optional = true, path = "../../../utils/frame/benchmarking-cli" }
|
|
substrate-build-script-utils = { version = "3.0.0", optional = true, path = "../../../utils/build-script-utils" }
|
|
substrate-frame-cli = { version = "4.0.0-dev", optional = true, path = "../../../utils/frame/frame-utilities-cli" }
|
|
try-runtime-cli = { version = "0.10.0-dev", optional = true, path = "../../../utils/frame/try-runtime/cli" }
|
|
sc-cli = { version = "0.10.0-dev", path = "../../../client/cli", optional = true }
|
|
pallet-balances = { version = "4.0.0-dev", path = "../../../frame/balances" }
|
|
sc-storage-monitor = { version = "0.1.0", path = "../../../client/storage-monitor" }
|
|
|
|
[features]
|
|
default = ["cli"]
|
|
cli = [
|
|
"node-inspect",
|
|
"sc-cli",
|
|
"frame-benchmarking-cli",
|
|
"substrate-frame-cli",
|
|
"sc-service/rocksdb",
|
|
"clap",
|
|
"clap_complete",
|
|
"substrate-build-script-utils",
|
|
"try-runtime-cli",
|
|
]
|
|
runtime-benchmarks = [
|
|
"kitchensink-runtime/runtime-benchmarks",
|
|
"frame-benchmarking-cli/runtime-benchmarks"
|
|
]
|
|
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
|
|
# in the near future.
|
|
try-runtime = ["kitchensink-runtime/try-runtime", "try-runtime-cli/try-runtime"]
|
|
|
|
[[bench]]
|
|
name = "transaction_pool"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "block_production"
|
|
harness = false
|