mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 06:27:58 +00:00
6a295e7c28
* substrate-test-runtime migrated to pure-frame based * test block builder: helpers added * simple renaming * basic_authorship test adjusted * block_building storage_proof test adjusted * babe: tests: should_panic expected added * babe: tests adjusted ConsensusLog::NextEpochData is now added by pallet_babe as pallet_babe::SameAuthoritiesForever trigger is used in runtime config. * beefy: tests adjusted test-substrate-runtime is now using frame::executive to finalize the block. during finalization the digests stored during block execution are checked against header digests: https://github.com/paritytech/substrate/blob/91bb2d29ca905599098a5b35eaf24867c4fbd60a/frame/executive/src/lib.rs#L585-L591 It makes impossible to directly manipulate header's digets, w/o depositing logs into system pallet storage `Digest<T: Config>`. Instead of this dedicated extrinsic allowing to store logs items (MmrRoot / AuthoritiesChange) is used. * grandpa: tests adjusted test-substrate-runtime is now using frame::executive to finalize the block. during finalization the digest logs stored during block execution are checked against header digest logs: https://github.com/paritytech/substrate/blob/91bb2d29ca905599098a5b35eaf24867c4fbd60a/frame/executive/src/lib.rs#L585-L591 It makes impossible to directly manipulate header's digets, w/o depositing logs into system pallet storage `Digest<T: Config>`. Instead of this dedicated extrinsic allowing to store logs items (ScheduledChange / ForcedChange and DigestItem::Other) is used. * network:bitswap: test adjusted The size of unchecked extrinsic was increased. The pattern used in test will be placed at the end of scale-encoded buffer. * runtime apis versions adjusted * storage keys used in runtime adjusted * wasm vs native tests removed * rpc tests: adjusted Transfer transaction processing was slightly improved, test was adjusted. * tests: sizes adjusted Runtime extrinsic size was increased. Size of data read during block execution was also increased due to usage of new pallets in runtime. Sizes were adjusted in tests. * cargo.lock update cargo update -p substrate-test-runtime -p substrate-test-runtime-client * warnings fixed * builders cleanup: includes / std * extrinsic validation cleanup * txpool: benches performance fixed * fmt * spelling * Apply suggestions from code review Co-authored-by: Davide Galassi <davxy@datawok.net> * Apply code review suggestions * Apply code review suggestions * get rid of 1063 const * renaming: UncheckedExtrinsic -> Extrinsic * test-utils-runtime: further step to pure-frame * basic-authorship: tests OK * CheckSubstrateCall added + tests fixes * test::Transfer call removed * priority / propagate / no sudo+root-testing * fixing warnings + format * cleanup: build2/nonce + format * final tests fixes all tests are passing * logs/comments removal * should_not_accept_old_signatures test removed * make txpool benches work again * Cargo.lock reset * format * sudo hack removed * txpool benches fix+cleanup * .gitignore reverted * rebase fixing + unsigned cleanup * Cargo.toml/Cargo.lock cleanup * force-debug feature removed * mmr tests fixed * make cargo-clippy happy * network sync test uses unsigned extrinsic * cleanup * ".git/.scripts/commands/fmt/fmt.sh" * push_storage_change signed call remove * GenesisConfig cleanup * fix * fix * GenesisConfig simplified * storage_keys_works: reworked * storage_keys_works: expected keys in vec * storage keys list moved to substrate-test-runtime * substrate-test: some sanity tests + GenesisConfigBuilder rework * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * Apply suggestions from code review * Review suggestions * fix * fix * beefy: generate_blocks_and_sync block_num sync with actaul value * Apply suggestions from code review Co-authored-by: Davide Galassi <davxy@datawok.net> * Update test-utils/runtime/src/genesismap.rs Co-authored-by: Davide Galassi <davxy@datawok.net> * cargo update -p sc-rpc -p sc-transaction-pool * Review suggestions * fix * doc added * slot_duration adjusted for Babe::slot_duration * small doc fixes * array_bytes::hex used instead of hex * tiny -> medium name fix * Apply suggestions from code review Co-authored-by: Sebastian Kunert <skunert49@gmail.com> * TransferData::try_from_unchecked_extrinsic -> try_from * Update Cargo.lock --------- Co-authored-by: parity-processbot <> Co-authored-by: Davide Galassi <davxy@datawok.net> Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
118 lines
5.7 KiB
TOML
118 lines
5.7 KiB
TOML
[package]
|
|
name = "substrate-test-runtime"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
build = "build.rs"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
publish = false
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
pallet-beefy-mmr = { version = "4.0.0-dev", default-features = false, path = "../../frame/beefy-mmr" }
|
|
sp-application-crypto = { version = "7.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
|
sp-consensus-aura = { version = "0.10.0-dev", default-features = false, path = "../../primitives/consensus/aura" }
|
|
sp-consensus-babe = { version = "0.10.0-dev", default-features = false, path = "../../primitives/consensus/babe" }
|
|
sp-consensus-beefy = { version = "4.0.0-dev", default-features = false, path = "../../primitives/consensus/beefy" }
|
|
sp-block-builder = { version = "4.0.0-dev", default-features = false, path = "../../primitives/block-builder" }
|
|
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = ["derive"] }
|
|
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
|
|
sp-inherents = { version = "4.0.0-dev", default-features = false, path = "../../primitives/inherents" }
|
|
sp-keyring = { version = "7.0.0", optional = true, path = "../../primitives/keyring" }
|
|
memory-db = { version = "0.32.0", default-features = false }
|
|
sp-offchain = { version = "4.0.0-dev", default-features = false, path = "../../primitives/offchain" }
|
|
sp-core = { version = "7.0.0", default-features = false, path = "../../primitives/core" }
|
|
sp-std = { version = "5.0.0", default-features = false, path = "../../primitives/std" }
|
|
sp-runtime-interface = { version = "7.0.0", default-features = false, path = "../../primitives/runtime-interface" }
|
|
sp-io = { version = "7.0.0", default-features = false, path = "../../primitives/io" }
|
|
frame-support = { version = "4.0.0-dev", default-features = false, path = "../../frame/support" }
|
|
sp-version = { version = "5.0.0", default-features = false, path = "../../primitives/version" }
|
|
sp-session = { version = "4.0.0-dev", default-features = false, path = "../../primitives/session" }
|
|
sp-api = { version = "4.0.0-dev", default-features = false, path = "../../primitives/api" }
|
|
sp-runtime = { version = "7.0.0", default-features = false, path = "../../primitives/runtime" }
|
|
pallet-babe = { version = "4.0.0-dev", default-features = false, path = "../../frame/babe" }
|
|
pallet-balances = { version = "4.0.0-dev", default-features = false, path = "../../frame/balances" }
|
|
pallet-root-testing = { version = "1.0.0-dev", default-features = false, path = "../../frame/root-testing" }
|
|
pallet-sudo = { version = "4.0.0-dev", default-features = false, path = "../../frame/sudo" }
|
|
frame-executive = { version = "4.0.0-dev", default-features = false, path = "../../frame/executive" }
|
|
frame-system = { version = "4.0.0-dev", default-features = false, path = "../../frame/system" }
|
|
frame-system-rpc-runtime-api = { version = "4.0.0-dev", default-features = false, path = "../../frame/system/rpc/runtime-api" }
|
|
pallet-timestamp = { version = "4.0.0-dev", default-features = false, path = "../../frame/timestamp" }
|
|
sp-consensus-grandpa = { version = "4.0.0-dev", default-features = false, path = "../../primitives/consensus/grandpa" }
|
|
sp-trie = { version = "7.0.0", default-features = false, path = "../../primitives/trie" }
|
|
sp-transaction-pool = { version = "4.0.0-dev", default-features = false, path = "../../primitives/transaction-pool" }
|
|
trie-db = { version = "0.27.0", default-features = false }
|
|
sc-service = { version = "0.10.0-dev", default-features = false, optional = true, features = ["test-helpers"], path = "../../client/service" }
|
|
sp-state-machine = { version = "0.13.0", default-features = false, path = "../../primitives/state-machine" }
|
|
sp-externalities = { version = "0.13.0", default-features = false, path = "../../primitives/externalities" }
|
|
sp-debug-derive = { path = "../../primitives/debug-derive" }
|
|
|
|
# 3rd party
|
|
array-bytes = { version = "6.1", optional = true }
|
|
log = { version = "0.4.17", default-features = false }
|
|
serde = { version = "1.0.136", optional = true, features = ["derive"] }
|
|
|
|
[dev-dependencies]
|
|
futures = "0.3.21"
|
|
sc-block-builder = { version = "0.10.0-dev", path = "../../client/block-builder" }
|
|
sc-executor = { version = "0.10.0-dev", path = "../../client/executor" }
|
|
sp-consensus = { version = "0.10.0-dev", path = "../../primitives/consensus/common" }
|
|
substrate-test-runtime-client = { version = "2.0.0", path = "./client" }
|
|
sp-tracing = { version = "6.0.0", path = "../../primitives/tracing" }
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = { version = "5.0.0-dev", path = "../../utils/wasm-builder", optional = true }
|
|
|
|
[features]
|
|
default = [
|
|
"std",
|
|
]
|
|
std = [
|
|
"array-bytes",
|
|
"sp-application-crypto/std",
|
|
"sp-consensus-aura/std",
|
|
"sp-consensus-babe/std",
|
|
"sp-consensus-beefy/std",
|
|
"sp-block-builder/std",
|
|
"codec/std",
|
|
"scale-info/std",
|
|
"sp-inherents/std",
|
|
"sp-keyring",
|
|
"log/std",
|
|
"memory-db/std",
|
|
"sp-offchain/std",
|
|
"sp-core/std",
|
|
"sp-core/std",
|
|
"sp-std/std",
|
|
"sp-runtime-interface/std",
|
|
"sp-io/std",
|
|
"frame-support/std",
|
|
"sp-version/std",
|
|
"serde",
|
|
"sp-session/std",
|
|
"sp-api/std",
|
|
"sp-runtime/std",
|
|
"sp-externalities/std",
|
|
"sp-state-machine/std",
|
|
"pallet-babe/std",
|
|
"pallet-beefy-mmr/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-balances/std",
|
|
"pallet-sudo/std",
|
|
"pallet-root-testing/std",
|
|
"frame-system-rpc-runtime-api/std",
|
|
"frame-system/std",
|
|
"sc-service",
|
|
"sp-consensus-grandpa/std",
|
|
"sp-trie/std",
|
|
"sp-transaction-pool/std",
|
|
"trie-db/std",
|
|
"substrate-wasm-builder",
|
|
]
|
|
# Special feature to disable logging
|
|
disable-logging = [ "sp-api/disable-logging" ]
|