mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 19:28:01 +00:00
9ee8013d6d
* Guard against XCM recursive bombs by setting a recursion limit * Add test and set a lower recursion limit * Use u32 instead of usize for recursion limit * Make spellcheck happy * Cargo fmt * Limit XCM decoding depth in UMP message processing * Modify test to check for recursion in BuyExecution * Update xcm/xcm-simulator/example/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Make cargo fmt happy * WIP for testing recursion limit in WASM * Revert "WIP for testing recursion limit in WASM" This reverts commit 39181b46d1adf79358f5ae8aafcf480e0c0c22e6. * Remove XCM recursion limit test * Add recursion test for XCM message execution * Set a more sensible recursion limit * Cargo fmt * Implement successful_origin for benchmarks * Set recursion limit to 8 and create integration tests directory for xcm-executor * Cargo fmt * Add runtime-benchmarks feature to test-runtime * Give up creating ConvertOriginToLocal and use EnsureXcm * Re-add ConvertOriginToLocal * Fix compilation * Update xcm/xcm-executor/src/lib.rs Co-authored-by: Gavin Wood <gavin@parity.io> * Add decoding limit to all versioned XCM decode calls * Fix recursion limit test * Set a lower recursion count for recursion test * move integration tests to their own folder, fix recursion check in execute_effects * Remove xcm-executor integration tests directory * fix up * Update Cargo.lock * Update runtime/parachains/src/ump.rs * use proper decode limit * fix decode depth limit * here too * Update traits.rs * fix compile * fix test * Revert `decode_all_with_depth_limit` changes in parachain.rs * Remove unused imports in parachain.rs Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Bastian Köcher <info@kchr.de> Co-authored-by: Gavin Wood <gavin@parity.io>
127 lines
7.0 KiB
TOML
127 lines
7.0 KiB
TOML
[package]
|
|
name = "polkadot-test-runtime"
|
|
version = "0.9.9"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] }
|
|
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
|
|
log = { version = "0.4.14", default-features = false }
|
|
rustc-hex = { version = "2.1.0", default-features = false }
|
|
serde = { version = "1.0.123", default-features = false }
|
|
serde_derive = { version = "1.0.117", optional = true }
|
|
smallvec = "1.6.1"
|
|
|
|
authority-discovery-primitives = { package = "sp-authority-discovery", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
babe-primitives = { package = "sp-consensus-babe", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
beefy-primitives = { git = "https://github.com/paritytech/grandpa-bridge-gadget", branch = "master", default-features = false }
|
|
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
inherents = { package = "sp-inherents", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
offchain-primitives = { package = "sp-offchain", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-election-provider-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
tx-pool-api = { package = "sp-transaction-pool", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
block-builder-api = { package = "sp-block-builder", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
pallet-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-executive = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-grandpa = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-indices = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-nicks = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-offences = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
frame-system = {git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
|
|
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
|
|
pallet-xcm = { path = "../../xcm/pallet-xcm", default-features = false }
|
|
polkadot-parachain = { path = "../../parachain", default-features = false }
|
|
polkadot-runtime-parachains = { path = "../parachains", default-features = false }
|
|
xcm-builder = { path = "../../xcm/xcm-builder", default-features = false }
|
|
xcm-executor = { path = "../../xcm/xcm-executor", default-features = false }
|
|
xcm = { path = "../../xcm", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.3.3"
|
|
tiny-keccak = "2.0.2"
|
|
keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
serde_json = "1.0.61"
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
no_std = []
|
|
only-staking = []
|
|
std = [
|
|
"authority-discovery-primitives/std",
|
|
"pallet-authority-discovery/std",
|
|
"bitvec/std",
|
|
"primitives/std",
|
|
"rustc-hex/std",
|
|
"parity-scale-codec/std",
|
|
"inherents/std",
|
|
"sp-core/std",
|
|
"polkadot-parachain/std",
|
|
"pallet-xcm/std",
|
|
"xcm-builder/std",
|
|
"xcm-executor/std",
|
|
"xcm/std",
|
|
"sp-api/std",
|
|
"tx-pool-api/std",
|
|
"block-builder-api/std",
|
|
"offchain-primitives/std",
|
|
"sp-std/std",
|
|
"sp-io/std",
|
|
"frame-support/std",
|
|
"pallet-authorship/std",
|
|
"pallet-balances/std",
|
|
"pallet-transaction-payment/std",
|
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
|
"frame-executive/std",
|
|
"pallet-grandpa/std",
|
|
"pallet-indices/std",
|
|
"pallet-nicks/std",
|
|
"pallet-offences/std",
|
|
"sp-runtime/std",
|
|
"sp-staking/std",
|
|
"pallet-session/std",
|
|
"pallet-staking/std",
|
|
"frame-system/std",
|
|
"frame-system-rpc-runtime-api/std",
|
|
"pallet-timestamp/std",
|
|
"sp-version/std",
|
|
"pallet-vesting/std",
|
|
"serde_derive",
|
|
"serde/std",
|
|
"pallet-babe/std",
|
|
"babe-primitives/std",
|
|
"sp-session/std",
|
|
"runtime-common/std",
|
|
"log/std",
|
|
"frame-election-provider-support/std",
|
|
]
|