mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-11 17:35:43 +00:00
2135fa872b
see #2189 This PR does the following: - Bring the user api functions into a new pallet-contracts-uapi (They are currently defined in ink! [here])(https://github.com/paritytech/ink/blob/master/crates/env/src/engine/on_chain/ext.rs) - Add older api versions and unstable to the user api trait. - Remove pallet-contracts-primitives and bring the types it defined in uapi / pallet-contracts - Add the infrastructure to build fixtures from Rust files and test it works by replacing `dummy.wat` and `call.wat` - Move all the doc from wasm/runtime.rs to pallet-contracts-uapi. This will be done in a follow up: - convert the rest of the test from .wat to rust - bring risc-v uapi up to date with wasm - finalize the uapi host fns, making sure everything is codegen from the source host fns in pallet-contracts --------- Co-authored-by: Alexander Theißen <alex.theissen@me.com>
91 lines
3.5 KiB
TOML
91 lines
3.5 KiB
TOML
[package]
|
|
name = "pallet-contracts-mock-network"
|
|
version = "1.0.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
homepage = "https://substrate.io"
|
|
repository.workspace = true
|
|
description = "A mock network for testing pallet-contracts"
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [ "derive", "max-encoded-len"] }
|
|
|
|
frame-support = { path = "../../support", default-features = false}
|
|
frame-system = { path = "../../system", default-features = false}
|
|
pallet-assets = { path = "../../assets" }
|
|
pallet-balances = { path = "../../balances" }
|
|
pallet-contracts = { path = ".." }
|
|
pallet-contracts-uapi = { path = "../uapi", default-features = false}
|
|
pallet-contracts-proc-macro = { path = "../proc-macro" }
|
|
pallet-insecure-randomness-collective-flip = { path = "../../insecure-randomness-collective-flip" }
|
|
pallet-message-queue = { path = "../../message-queue" }
|
|
pallet-proxy = { path = "../../proxy" }
|
|
pallet-timestamp = { path = "../../timestamp" }
|
|
pallet-utility = { path = "../../utility" }
|
|
pallet-xcm = { path = "../../../../polkadot/xcm/pallet-xcm", default-features = false}
|
|
polkadot-parachain-primitives = { path = "../../../../polkadot/parachain" }
|
|
polkadot-primitives = { path = "../../../../polkadot/primitives" }
|
|
polkadot-runtime-parachains = {path = "../../../../polkadot/runtime/parachains"}
|
|
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
|
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-keystore = { path = "../../../primitives/keystore" }
|
|
sp-runtime = { path = "../../../primitives/runtime", default-features = false}
|
|
sp-std = { path = "../../../primitives/std", default-features = false}
|
|
sp-tracing = { path = "../../../primitives/tracing" }
|
|
xcm = { package = "staging-xcm", path = "../../../../polkadot/xcm", default-features = false}
|
|
xcm-builder = {package = "staging-xcm-builder", path = "../../../../polkadot/xcm/xcm-builder"}
|
|
xcm-executor = { package = "staging-xcm-executor", path = "../../../../polkadot/xcm/xcm-executor", default-features = false}
|
|
xcm-simulator = {path = "../../../../polkadot/xcm/xcm-simulator"}
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1"
|
|
pretty_assertions = "1"
|
|
pallet-contracts-fixtures = { path = "../fixtures" }
|
|
|
|
[features]
|
|
default = [ "std" ]
|
|
std = [
|
|
"codec/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"pallet-balances/std",
|
|
"pallet-contracts-proc-macro/full",
|
|
"pallet-contracts/std",
|
|
"pallet-insecure-randomness-collective-flip/std",
|
|
"pallet-proxy/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-utility/std",
|
|
"pallet-xcm/std",
|
|
"scale-info/std",
|
|
"sp-api/std",
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-keystore/std",
|
|
"sp-runtime/std",
|
|
"sp-std/std",
|
|
"xcm-executor/std",
|
|
"xcm/std",
|
|
]
|
|
|
|
runtime-benchmarks = [
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"pallet-assets/runtime-benchmarks",
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-contracts/runtime-benchmarks",
|
|
"pallet-message-queue/runtime-benchmarks",
|
|
"pallet-proxy/runtime-benchmarks",
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
"pallet-utility/runtime-benchmarks",
|
|
"pallet-xcm/runtime-benchmarks",
|
|
"polkadot-parachain-primitives/runtime-benchmarks",
|
|
"polkadot-primitives/runtime-benchmarks",
|
|
"polkadot-runtime-parachains/runtime-benchmarks",
|
|
"sp-runtime/runtime-benchmarks",
|
|
"xcm-builder/runtime-benchmarks",
|
|
"xcm-executor/runtime-benchmarks",
|
|
]
|