Add an RPC method for calling a contract. (#3563)

* Sketch

* Some work on docs.

* Doc improvements.

* More docs.

* Some more docs.

* Yet another comment.

* Bump impl_version.

* Accept the block hash

* Use NumberOrHex

* Update node/rpc/src/contracts.rs

Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Move rpc/primitives
This commit is contained in:
Sergei Pepyakin
2019-09-12 13:30:10 +02:00
committed by GitHub
parent 294d172187
commit 4daac15d22
18 changed files with 279 additions and 27 deletions
+11
View File
@@ -2429,6 +2429,7 @@ dependencies = [
"substrate-client 2.0.0",
"substrate-keyring 2.0.0",
"substrate-primitives 2.0.0",
"substrate-rpc-primitives 2.0.0",
"substrate-transaction-pool 2.0.0",
]
@@ -5164,6 +5165,7 @@ dependencies = [
"substrate-network 2.0.0",
"substrate-primitives 2.0.0",
"substrate-rpc-api 2.0.0",
"substrate-rpc-primitives 2.0.0",
"substrate-session 2.0.0",
"substrate-state-machine 2.0.0",
"substrate-test-runtime-client 2.0.0",
@@ -5188,9 +5190,18 @@ dependencies = [
"serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
"sr-version 2.0.0",
"substrate-primitives 2.0.0",
"substrate-rpc-primitives 2.0.0",
"substrate-transaction-graph 2.0.0",
]
[[package]]
name = "substrate-rpc-primitives"
version = "2.0.0"
dependencies = [
"serde 1.0.97 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-primitives 2.0.0",
]
[[package]]
name = "substrate-rpc-servers"
version = "2.0.0"