mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
f517900a48
This PR introduces: - XCM host functions `xcm_send`, `xcm_execute` - An Xcm trait into the config. that proxy these functions to to `pallet_xcm`, or disable their usage by using `()`. - A mock_network and xcm_test files to test the newly added xcm-related functions. --------- Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> Co-authored-by: command-bot <> Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
135 lines
4.4 KiB
TOML
135 lines
4.4 KiB
TOML
[package]
|
|
name = "pallet-contracts"
|
|
version = "4.0.0-dev"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
build = "build.rs"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository.workspace = true
|
|
description = "FRAME pallet for WASM contracts"
|
|
readme = "README.md"
|
|
include = ["src/**/*", "benchmarks/**", "build.rs", "README.md", "CHANGELOG.md"]
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
bitflags = "1.3"
|
|
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [
|
|
"derive",
|
|
"max-encoded-len",
|
|
] }
|
|
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
|
log = { version = "0.4", default-features = false }
|
|
serde = { version = "1", optional = true, features = ["derive"] }
|
|
smallvec = { version = "1", default-features = false, features = [
|
|
"const_generics",
|
|
] }
|
|
wasmi = { version = "0.31", default-features = false }
|
|
impl-trait-for-tuples = "0.2"
|
|
|
|
# Only used in benchmarking to generate contract code
|
|
wasm-instrument = { version = "0.4", optional = true, default-features = false }
|
|
rand = { version = "0.8", optional = true, default-features = false }
|
|
rand_pcg = { version = "0.3", optional = true }
|
|
|
|
# Substrate Dependencies
|
|
environmental = { version = "1.1.4", default-features = false }
|
|
frame-benchmarking = { path = "../benchmarking", default-features = false, optional = true }
|
|
frame-support = { path = "../support", default-features = false}
|
|
frame-system = { path = "../system", default-features = false}
|
|
pallet-balances = { path = "../balances", default-features = false , optional = true}
|
|
pallet-contracts-primitives = { path = "primitives", default-features = false}
|
|
pallet-contracts-proc-macro = { path = "proc-macro" }
|
|
sp-api = { path = "../../primitives/api", default-features = false}
|
|
sp-core = { path = "../../primitives/core", default-features = false}
|
|
sp-io = { path = "../../primitives/io", default-features = false}
|
|
sp-runtime = { path = "../../primitives/runtime", default-features = false}
|
|
sp-std = { path = "../../primitives/std", default-features = false}
|
|
|
|
xcm = { package = "staging-xcm", path = "../../../polkadot/xcm", default-features = false}
|
|
xcm-builder = { package = "staging-xcm-builder", path = "../../../polkadot/xcm/xcm-builder", default-features = false}
|
|
|
|
[dev-dependencies]
|
|
array-bytes = "6.1"
|
|
assert_matches = "1"
|
|
env_logger = "0.9"
|
|
pretty_assertions = "1"
|
|
wat = "1"
|
|
pallet-contracts-fixtures = { path = "./fixtures" }
|
|
|
|
# Polkadot Dependencies
|
|
xcm-builder = {package = "staging-xcm-builder", path = "../../../polkadot/xcm/xcm-builder"}
|
|
|
|
# Substrate Dependencies
|
|
pallet-balances = { path = "../balances" }
|
|
pallet-timestamp = { path = "../timestamp" }
|
|
pallet-message-queue = { path = "../message-queue" }
|
|
pallet-insecure-randomness-collective-flip = { path = "../insecure-randomness-collective-flip" }
|
|
pallet-utility = { path = "../utility" }
|
|
pallet-assets = { path = "../assets" }
|
|
pallet-proxy = { path = "../proxy" }
|
|
sp-keystore = { path = "../../primitives/keystore" }
|
|
sp-tracing = { 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",
|
|
"pallet-contracts-fixtures/std",
|
|
"pallet-contracts-primitives/std",
|
|
"pallet-contracts-proc-macro/full",
|
|
"pallet-insecure-randomness-collective-flip/std",
|
|
"pallet-proxy/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-utility/std",
|
|
"rand/std",
|
|
"scale-info/std",
|
|
"serde",
|
|
"sp-api/std",
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-keystore/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-assets/runtime-benchmarks",
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-message-queue/runtime-benchmarks",
|
|
"pallet-proxy/runtime-benchmarks",
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
"pallet-utility/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-assets/try-runtime",
|
|
"pallet-balances/try-runtime",
|
|
"pallet-insecure-randomness-collective-flip/try-runtime",
|
|
"pallet-message-queue/try-runtime",
|
|
"pallet-proxy/try-runtime",
|
|
"pallet-timestamp/try-runtime",
|
|
"pallet-utility/try-runtime",
|
|
"sp-runtime/try-runtime",
|
|
]
|