Files
pezkuwi-subxt/substrate/frame/contracts/Cargo.toml
T
Alexander Theißen 04b185e3d4 seal: Change prefix and module name from "ext_" to "seal_" for contract callable functions (#6798)
* seal: Change prefix "ext_" to "seal_" for contract callable functions

The word Ext is a overloaded term in the context of substrate. It usually
is a trait which abstracts away access to external resources usually in order
to mock them away for the purpose of tests. The contract module has its own
`Ext` trait in addition the the substrate `Ext` which makes things even more
confusing.

In order to differentiate the contract callable functions more clearly from
this `Ext` concept we rename them to use the "seal_" prefix instead.

This should change no behaviour at all. This is a pure renaming commit.

* seal: Rename import module from "env" to "seal0"

* seal: Fixup integration test

* seal: Add more tests for new import module names
2020-08-10 13:14:34 +00:00

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.14.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",
]