mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 05:38:00 +00:00
9e894ce135
* contracts: Add default implementation for Executable::occupied_storage() * contracts: Refactor the exec module * Let runtime specify the backing type of the call stack This removes the need for a runtime check of the specified `MaxDepth`. We can now garantuee that we don't need to allocate when a new call frame is pushed. * Fix doc typo Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Review nits * Fix defect in contract info caching behaviour * Add more docs * Fix wording and typos Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
77 lines
2.7 KiB
TOML
77 lines
2.7 KiB
TOML
[package]
|
|
name = "pallet-contracts"
|
|
version = "3.0.0"
|
|
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"
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
|
log = { version = "0.4", default-features = false }
|
|
parity-wasm = { version = "0.42", default-features = false }
|
|
pwasm-utils = { version = "0.17", default-features = false }
|
|
serde = { version = "1", optional = true, features = ["derive"] }
|
|
smallvec = { version = "1", default-features = false, features = ["const_generics"] }
|
|
wasmi-validation = { version = "0.4", default-features = false }
|
|
|
|
# Only used in benchmarking to generate random contract code
|
|
rand = { version = "0.8", optional = true, default-features = false }
|
|
rand_pcg = { version = "0.3", optional = true }
|
|
|
|
# Substrate Dependencies
|
|
frame-benchmarking = { version = "3.1.0", default-features = false, path = "../benchmarking", optional = true }
|
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
|
pallet-contracts-primitives = { version = "3.0.0", default-features = false, path = "common" }
|
|
pallet-contracts-proc-macro = { version = "3.0.0", path = "proc-macro" }
|
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
|
sp-sandbox = { version = "0.9.0", default-features = false, path = "../../primitives/sandbox" }
|
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1"
|
|
hex-literal = "0.3"
|
|
paste = "1"
|
|
pretty_assertions = "0.7"
|
|
wat = "1"
|
|
|
|
# Substrate Dependencies
|
|
pallet-balances = { version = "3.0.0", path = "../balances" }
|
|
pallet-timestamp = { version = "3.0.0", path = "../timestamp" }
|
|
pallet-randomness-collective-flip = { version = "3.0.0", path = "../randomness-collective-flip" }
|
|
|
|
[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",
|
|
"pallet-contracts-proc-macro/full",
|
|
"log/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking",
|
|
"rand",
|
|
"rand_pcg",
|
|
]
|
|
try-runtime = ["frame-support/try-runtime"]
|