contracts: Add RPC that allows instantiating of a contract (#8451)

* contracts: Add RPC that allows instantiating of a contract

* Encode `debug_message` as bytes because usage of `String` is forbidden

* Remove erroneous derive attribute

* Fix rpc tests for new `debug_message` encoding

* Fix typo

Co-authored-by: Andrew Jones <ascjones@gmail.com>

Co-authored-by: Andrew Jones <ascjones@gmail.com>
This commit is contained in:
Alexander Theißen
2021-04-13 13:26:52 +02:00
committed by GitHub
parent 24311eee3e
commit f854194139
16 changed files with 471 additions and 191 deletions
@@ -16,13 +16,17 @@ targets = ["x86_64-unknown-linux-gnu"]
# This crate should not rely on any of the frame primitives.
bitflags = "1.0"
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
sp-core = { version = "3.0.0", path = "../../../primitives/core", default-features = false }
sp-std = { version = "3.0.0", default-features = false, path = "../../../primitives/std" }
sp-runtime = { version = "3.0.0", default-features = false, path = "../../../primitives/runtime" }
serde = { version = "1", features = ["derive"], optional = true }
[features]
default = ["std"]
std = [
"codec/std",
"sp-core/std",
"sp-runtime/std",
"sp-std/std",
"serde",
]