mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
a2163420f4
* seal: Fix syntax that confuses rust-analyzer * seal: Add benchmarks for Dispatchables These are only the benchmarks for the dispatchables of the pallet. Those are not listed in the Schedule because we do not want to pull the Schedule from storage before dispatching. This OK because those costs are not related to actual contract execution. Those costs (instruction costs, ext_* costs) will be benchmarked seperatly and entered into the default Schedule. * seal: Add a maximum code size * Fix comments from review * Removed SEED constant
67 lines
2.6 KiB
TOML
67 lines
2.6 KiB
TOML
[package]
|
|
name = "pallet-contracts"
|
|
version = "2.0.0-rc5"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.dev"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "FRAME pallet for WASM contracts"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
bitflags = "1.0"
|
|
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false, features = ["derive"] }
|
|
frame-benchmarking = { version = "2.0.0-rc5", default-features = false, path = "../benchmarking", optional = true }
|
|
frame-support = { version = "2.0.0-rc5", default-features = false, path = "../support" }
|
|
frame-system = { version = "2.0.0-rc5", default-features = false, path = "../system" }
|
|
pallet-contracts-primitives = { version = "2.0.0-rc5", default-features = false, path = "common" }
|
|
parity-wasm = { version = "0.41.0", default-features = false }
|
|
pwasm-utils = { version = "0.12.0", default-features = false }
|
|
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
|
sp-core = { version = "2.0.0-rc5", default-features = false, path = "../../primitives/core" }
|
|
sp-runtime = { version = "2.0.0-rc5", default-features = false, path = "../../primitives/runtime" }
|
|
sp-io = { version = "2.0.0-rc5", default-features = false, path = "../../primitives/io" }
|
|
sp-std = { version = "2.0.0-rc5", default-features = false, path = "../../primitives/std" }
|
|
sp-sandbox = { version = "0.8.0-rc5", default-features = false, path = "../../primitives/sandbox" }
|
|
wasmi-validation = { version = "0.3.0", default-features = false }
|
|
wat = { version = "1.0", optional = true, default-features = false }
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1.3.0"
|
|
hex-literal = "0.2.1"
|
|
pallet-balances = { version = "2.0.0-rc5", path = "../balances" }
|
|
pallet-timestamp = { version = "2.0.0-rc5", path = "../timestamp" }
|
|
pallet-randomness-collective-flip = { version = "2.0.0-rc5", path = "../randomness-collective-flip" }
|
|
pretty_assertions = "0.6.1"
|
|
wat = "1.0"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"serde",
|
|
"codec/std",
|
|
"sp-core/std",
|
|
"sp-runtime/std",
|
|
"sp-io/std",
|
|
"sp-std/std",
|
|
"sp-sandbox/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"parity-wasm/std",
|
|
"pwasm-utils/std",
|
|
"wasmi-validation/std",
|
|
"pallet-contracts-primitives/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking",
|
|
"wat",
|
|
# We are linking the wat crate which uses std and therefore brings with it the
|
|
# std panic handler. Therefore we need to disable out own panic handlers. Mind that
|
|
# we still override the std memory allocator.
|
|
"sp-io/disable_panic_handler",
|
|
"sp-io/disable_oom",
|
|
]
|