mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 17:08:00 +00:00
25de5b5c78
* Transition getter functions to not use scratch buffer * Remove scratch buffer from ext_get_storage * Remove scratch buffer from ext_call * Remove scratch buffer from ext_instantiate * Add ext_input and remove scratch buffer * Rework error handling (changes RPC exposed data) * ext_return passes a flags field instead of a return code * Flags is only for seal and not for the caller * flags: u32 replaced status_code: u8 in RPC exposed type * API functions use a unified error type (ReturnCode) * ext_transfer now traps on error to be consistent with call and instantiate * Remove the no longer used `Dispatched` event * Updated inline documentation * Prevent skipping of copying the output for getter API * Return gas_consumed from the RPC contracts call interface * Updated COMPLEXTITY.md * Rename ext_gas_price to ext_weight_to_fee * Align comments with spaces * Removed no longer used `ExecError` * Remove possible panic in `from_typed_value` * Use a struct as associated data for SpecialTrap::Return * Fix nits in COMPLEXITY.md * Renamed SpecialTrap to TrapReason * Fix test * Finish renaming special_trap -> trap_reason * Remove no longer used get_runtime_storage * fixup! Remove no longer used get_runtime_storage * Removed tabs for comment aligment
56 lines
2.1 KiB
TOML
56 lines
2.1 KiB
TOML
[package]
|
|
name = "pallet-contracts"
|
|
version = "2.0.0-rc4"
|
|
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]
|
|
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
|
pwasm-utils = { version = "0.12.0", default-features = false }
|
|
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false, features = ["derive"] }
|
|
parity-wasm = { version = "0.41.0", default-features = false }
|
|
wasmi-validation = { version = "0.3.0", default-features = false }
|
|
sp-core = { version = "2.0.0-rc4", default-features = false, path = "../../primitives/core" }
|
|
sp-runtime = { version = "2.0.0-rc4", default-features = false, path = "../../primitives/runtime" }
|
|
sp-io = { version = "2.0.0-rc4", default-features = false, path = "../../primitives/io" }
|
|
sp-std = { version = "2.0.0-rc4", default-features = false, path = "../../primitives/std" }
|
|
sp-sandbox = { version = "0.8.0-rc4", default-features = false, path = "../../primitives/sandbox" }
|
|
frame-support = { version = "2.0.0-rc4", default-features = false, path = "../support" }
|
|
frame-system = { version = "2.0.0-rc4", default-features = false, path = "../system" }
|
|
pallet-contracts-primitives = { version = "2.0.0-rc4", default-features = false, path = "common" }
|
|
bitflags = "1.0"
|
|
|
|
[dev-dependencies]
|
|
wabt = "0.9.2"
|
|
assert_matches = "1.3.0"
|
|
hex-literal = "0.2.1"
|
|
pretty_assertions = "0.6.1"
|
|
pallet-balances = { version = "2.0.0-rc4", path = "../balances" }
|
|
pallet-timestamp = { version = "2.0.0-rc4", path = "../timestamp" }
|
|
pallet-randomness-collective-flip = { version = "2.0.0-rc4", 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",
|
|
]
|