[package] name = "pallet-contracts" version = "38.0.0" authors.workspace = true edition.workspace = true build = "build.rs" license = "Apache-2.0" homepage.workspace = true repository.workspace = true description = "FRAME pallet for WASM contracts" readme = "README.md" include = ["CHANGELOG.md", "README.md", "benchmarks/**", "build.rs", "src/**/*"] [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] paste = { workspace = true } bitflags = { workspace = true } codec = { features = [ "derive", "max-encoded-len", ], workspace = true } scale-info = { features = ["derive"], workspace = true } log = { workspace = true } serde = { optional = true, features = ["derive"], workspace = true, default-features = true } smallvec = { features = [ "const_generics", ], workspace = true } wasmi = { workspace = true } impl-trait-for-tuples = { workspace = true } # Only used in benchmarking to generate contract code wasm-instrument = { optional = true, workspace = true } rand = { optional = true, workspace = true } rand_pcg = { optional = true, workspace = true } # Substrate Dependencies environmental = { workspace = true } frame-benchmarking = { optional = true, workspace = true } frame-support.workspace = true frame-system.workspace = true pallet-balances = { optional = true, workspace = true } pallet-contracts-uapi.workspace = true pallet-contracts-uapi.default-features = true pallet-contracts-proc-macro.workspace = true pallet-contracts-proc-macro.default-features = true sp-api.workspace = true sp-core.workspace = true sp-io.workspace = true sp-runtime.workspace = true sp-std.workspace = true xcm.workspace = true xcm-builder.workspace = true [dev-dependencies] array-bytes = { workspace = true, default-features = true } assert_matches = { workspace = true } pretty_assertions = { workspace = true } wat = { workspace = true } pallet-contracts-fixtures = { path = "fixtures", default-features = false } # Polkadot Dependencies xcm-builder = { default-features = true, path = "../../../polkadot/xcm/xcm-builder", package = "staging-xcm-builder" } # Substrate Dependencies pallet-balances = { default-features = true, path = "../balances" } pallet-timestamp = { default-features = true, path = "../timestamp" } pallet-message-queue = { default-features = true, path = "../message-queue" } pallet-insecure-randomness-collective-flip = { default-features = true, path = "../insecure-randomness-collective-flip" } pallet-utility = { default-features = true, path = "../utility" } pallet-assets = { default-features = true, path = "../assets" } pallet-proxy = { default-features = true, path = "../proxy" } sp-keystore = { default-features = true, path = "../../primitives/keystore" } sp-tracing = { default-features = true, path = "../../primitives/tracing" } [features] default = ["std"] std = [ "codec/std", "environmental/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", "pallet-balances?/std", "rand?/std", "scale-info/std", "serde", "sp-api/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", "wasm-instrument?/std", "wasmi/std", "xcm-builder/std", "xcm/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "rand", "rand_pcg", "sp-runtime/runtime-benchmarks", "wasm-instrument", "xcm-builder/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "sp-runtime/try-runtime", ]