Authoring with WASM runtime

This commit is contained in:
arkpar
2018-08-16 23:32:58 +02:00
parent 4e103f3d5f
commit aaf7bc930a
10 changed files with 142 additions and 133 deletions
+39 -39
View File
@@ -451,7 +451,7 @@ dependencies = [
[[package]] [[package]]
name = "ed25519" name = "ed25519"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -491,7 +491,7 @@ dependencies = [
[[package]] [[package]]
name = "environmental" name = "environmental"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
[[package]] [[package]]
name = "error-chain" name = "error-chain"
@@ -1999,7 +1999,7 @@ dependencies = [
[[package]] [[package]]
name = "pwasm-alloc" name = "pwasm-alloc"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)", "pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)",
"rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2008,7 +2008,7 @@ dependencies = [
[[package]] [[package]]
name = "pwasm-libc" name = "pwasm-libc"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
[[package]] [[package]]
name = "quick-error" name = "quick-error"
@@ -2508,7 +2508,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "substrate-bft" name = "substrate-bft"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2527,7 +2527,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-cli" name = "substrate-cli"
version = "0.3.0" version = "0.3.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ansi_term 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", "ansi_term 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)",
"app_dirs 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "app_dirs 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2559,7 +2559,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-client" name = "substrate-client"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2589,7 +2589,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-client-db" name = "substrate-client-db"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hashdb 0.2.1 (git+https://github.com/paritytech/parity-common.git)", "hashdb 0.2.1 (git+https://github.com/paritytech/parity-common.git)",
"kvdb 0.1.0 (git+https://github.com/paritytech/parity-common.git)", "kvdb 0.1.0 (git+https://github.com/paritytech/parity-common.git)",
@@ -2611,7 +2611,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-codec" name = "substrate-codec"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
@@ -2619,7 +2619,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-codec-derive" name = "substrate-codec-derive"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"proc-macro2 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2629,7 +2629,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-executor" name = "substrate-executor"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"byteorder 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -2637,7 +2637,7 @@ dependencies = [
"hashdb 0.2.1 (git+https://github.com/paritytech/parity-common.git)", "hashdb 0.2.1 (git+https://github.com/paritytech/parity-common.git)",
"lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-codec 0.1.0 (git+https://github.com/paritytech/substrate)", "substrate-codec 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -2655,7 +2655,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-extrinsic-pool" name = "substrate-extrinsic-pool"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
"futures 0.1.23 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.23 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2669,7 +2669,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-keyring" name = "substrate-keyring"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2679,7 +2679,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-keystore" name = "substrate-keystore"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2695,7 +2695,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-network" name = "substrate-network"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -2717,7 +2717,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-network-libp2p" name = "substrate-network-libp2p"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"bytes 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)", "bytes 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2740,7 +2740,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-primitives" name = "substrate-primitives"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)",
"byteorder 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2766,7 +2766,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-rpc" name = "substrate-rpc"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core 8.0.2 (git+https://github.com/paritytech/jsonrpc.git)", "jsonrpc-core 8.0.2 (git+https://github.com/paritytech/jsonrpc.git)",
@@ -2787,7 +2787,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-rpc-servers" name = "substrate-rpc-servers"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"jsonrpc-core 8.0.2 (git+https://github.com/paritytech/jsonrpc.git)", "jsonrpc-core 8.0.2 (git+https://github.com/paritytech/jsonrpc.git)",
"jsonrpc-http-server 8.0.1 (git+https://github.com/paritytech/jsonrpc.git)", "jsonrpc-http-server 8.0.1 (git+https://github.com/paritytech/jsonrpc.git)",
@@ -2802,7 +2802,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-consensus" name = "substrate-runtime-consensus"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2819,7 +2819,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-council" name = "substrate-runtime-council"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)", "integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)",
@@ -2843,7 +2843,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-democracy" name = "substrate-runtime-democracy"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2865,7 +2865,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-executive" name = "substrate-runtime-executive"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2881,7 +2881,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-io" name = "substrate-runtime-io"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"environmental 0.1.0 (git+https://github.com/paritytech/substrate)", "environmental 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -2896,7 +2896,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-primitives" name = "substrate-runtime-primitives"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)", "integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)",
"log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2914,7 +2914,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-sandbox" name = "substrate-runtime-sandbox"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-codec 0.1.0 (git+https://github.com/paritytech/substrate)", "substrate-codec 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -2927,7 +2927,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-session" name = "substrate-runtime-session"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2948,7 +2948,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-staking" name = "substrate-runtime-staking"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2971,7 +2971,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-std" name = "substrate-runtime-std"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"pwasm-alloc 0.1.0 (git+https://github.com/paritytech/substrate)", "pwasm-alloc 0.1.0 (git+https://github.com/paritytech/substrate)",
"pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)", "pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -2981,7 +2981,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-support" name = "substrate-runtime-support"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2996,7 +2996,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-system" name = "substrate-runtime-system"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3013,7 +3013,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-timestamp" name = "substrate-runtime-timestamp"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3031,7 +3031,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-version" name = "substrate-runtime-version"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3044,7 +3044,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-serializer" name = "substrate-serializer"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.71 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.26 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.26 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3053,7 +3053,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-service" name = "substrate-service"
version = "0.3.0" version = "0.3.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
"exit-future 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "exit-future 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3085,7 +3085,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-state-db" name = "substrate-state-db"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"log 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3097,7 +3097,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-state-machine" name = "substrate-state-machine"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"byteorder 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"hashdb 0.2.1 (git+https://github.com/paritytech/parity-common.git)", "hashdb 0.2.1 (git+https://github.com/paritytech/parity-common.git)",
@@ -3115,7 +3115,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-telemetry" name = "substrate-telemetry"
version = "0.3.0" version = "0.3.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
+57 -56
View File
@@ -18,47 +18,55 @@
use client::backend::LocalBackend; use client::backend::LocalBackend;
use client::block_builder::BlockBuilder as ClientBlockBuilder; use client::block_builder::BlockBuilder as ClientBlockBuilder;
use client::{Client, LocalCallExecutor}; use client::{self, Client, LocalCallExecutor, CallExecutor};
use codec::{Encode, Decode};
use polkadot_executor::Executor as LocalDispatch; use polkadot_executor::Executor as LocalDispatch;
use substrate_executor::NativeExecutor; use substrate_executor::NativeExecutor;
use state_machine; use state_machine;
use runtime::Address; use runtime::Address;
use runtime_primitives::traits::AuxLookup;
use primitives::{ use primitives::{
AccountId, Block, Header, BlockId, Hash, Index, InherentData, AccountId, Block, Header, BlockId, Hash, Index, InherentData,
SessionKey, Timestamp, UncheckedExtrinsic, SessionKey, Timestamp, UncheckedExtrinsic,
}; };
use primitives::parachain::{DutyRoster, Id as ParaId}; use primitives::parachain::{DutyRoster, Id as ParaId};
use substrate_primitives::{KeccakHasher, RlpCodec}; use substrate_primitives::{KeccakHasher, RlpCodec};
use {BlockBuilder, PolkadotApi, LocalPolkadotApi, Error, ErrorKind, Result};
use {BlockBuilder, PolkadotApi, LocalPolkadotApi, ErrorKind, Error, Result}; fn call<B, R>(client: &Client<B, LocalCallExecutor<B, NativeExecutor<LocalDispatch>>, Block>, at: &BlockId, method: &'static str, input: &[u8]) -> Result<R>
where
// set up the necessary scaffolding to execute a set of calls to the runtime. R: Decode,
// this creates a new block on top of the given ID and initialises it. B: LocalBackend<Block, KeccakHasher, RlpCodec>,
macro_rules! with_runtime { {
($client: ident, $at: expr, $exec: expr) => {{ let parent = at;
let parent = $at; let header = Header {
let header = Header { parent_hash: client.block_hash_from_id(&parent)?
parent_hash: $client.block_hash_from_id(&parent)? .ok_or_else(|| ErrorKind::UnknownBlock(format!("{:?}", parent)))?,
.ok_or_else(|| ErrorKind::UnknownBlock(format!("{:?}", parent)))?, number: client.block_number_from_id(&parent)?
number: $client.block_number_from_id(&parent)?
.ok_or_else(|| ErrorKind::UnknownBlock(format!("{:?}", parent)))? + 1, .ok_or_else(|| ErrorKind::UnknownBlock(format!("{:?}", parent)))? + 1,
state_root: Default::default(), state_root: Default::default(),
extrinsics_root: Default::default(), extrinsics_root: Default::default(),
digest: Default::default(), digest: Default::default(),
}; };
client.state_at(&parent).map_err(Error::from).and_then(|state| {
$client.state_at(&parent).map_err(Error::from).and_then(|state| { let mut overlay = Default::default();
let mut changes = Default::default(); client.executor().call_at_state(
let mut ext = state_machine::Ext::new(&mut changes, &state); &state,
&mut overlay,
::substrate_executor::with_native_environment(&mut ext, || { "initialise_block",
::runtime::Executive::initialise_block(&header); &header.encode(),
($exec)() state_machine::native_when_possible()
}).map_err(Into::into) )?;
}) let (r, _) = client.executor().call_at_state(
}} &state,
&mut overlay,
method,
input,
state_machine::native_when_possible()
)?;
Ok(R::decode(&mut &r[..])
.ok_or_else(|| client::error::Error::from(client::error::ErrorKind::CallResultDecode(method)))?)
})
} }
impl<B: LocalBackend<Block, KeccakHasher, RlpCodec>> BlockBuilder for ClientBlockBuilder<B, LocalCallExecutor<B, NativeExecutor<LocalDispatch>>, Block, KeccakHasher, RlpCodec> { impl<B: LocalBackend<Block, KeccakHasher, RlpCodec>> BlockBuilder for ClientBlockBuilder<B, LocalCallExecutor<B, NativeExecutor<LocalDispatch>>, Block, KeccakHasher, RlpCodec> {
@@ -76,37 +84,29 @@ impl<B: LocalBackend<Block, KeccakHasher, RlpCodec>> PolkadotApi for Client<B, L
type BlockBuilder = ClientBlockBuilder<B, LocalCallExecutor<B, NativeExecutor<LocalDispatch>>, Block, KeccakHasher, RlpCodec>; type BlockBuilder = ClientBlockBuilder<B, LocalCallExecutor<B, NativeExecutor<LocalDispatch>>, Block, KeccakHasher, RlpCodec>;
fn session_keys(&self, at: &BlockId) -> Result<Vec<SessionKey>> { fn session_keys(&self, at: &BlockId) -> Result<Vec<SessionKey>> {
with_runtime!(self, at, ::runtime::Consensus::authorities) Ok(self.authorities_at(at)?)
} }
fn validators(&self, at: &BlockId) -> Result<Vec<AccountId>> { fn validators(&self, at: &BlockId) -> Result<Vec<AccountId>> {
with_runtime!(self, at, ::runtime::Session::validators) call(self, at, "validators", &[])
} }
fn random_seed(&self, at: &BlockId) -> Result<Hash> { fn random_seed(&self, at: &BlockId) -> Result<Hash> {
with_runtime!(self, at, ::runtime::System::random_seed) call(self, at, "random_seed", &[])
} }
fn duty_roster(&self, at: &BlockId) -> Result<DutyRoster> { fn duty_roster(&self, at: &BlockId) -> Result<DutyRoster> {
with_runtime!(self, at, ::runtime::Parachains::calculate_duty_roster) call(self, at, "duty_roster", &[])
} }
fn timestamp(&self, at: &BlockId) -> Result<Timestamp> { fn timestamp(&self, at: &BlockId) -> Result<Timestamp> {
with_runtime!(self, at, ::runtime::Timestamp::get) call(self, at, "timestamp", &[])
} }
fn evaluate_block(&self, at: &BlockId, block: Block) -> Result<bool> { fn evaluate_block(&self, at: &BlockId, block: Block) -> Result<bool> {
use substrate_executor::error::ErrorKind as ExecErrorKind; use substrate_executor::error::ErrorKind as ExecErrorKind;
use codec::{Decode, Encode};
use runtime::Block as RuntimeBlock;
let encoded = block.encode(); let encoded = block.encode();
let runtime_block = match RuntimeBlock::decode(&mut &encoded[..]) { let res: Result<()> = call(self, at, "execute_block", &encoded);
Some(x) => x,
None => return Ok(false),
};
let res = with_runtime!(self, at, || ::runtime::Executive::execute_block(runtime_block));
match res { match res {
Ok(()) => Ok(true), Ok(()) => Ok(true),
Err(err) => match err.kind() { Err(err) => match err.kind() {
@@ -117,23 +117,31 @@ impl<B: LocalBackend<Block, KeccakHasher, RlpCodec>> PolkadotApi for Client<B, L
} }
fn index(&self, at: &BlockId, account: AccountId) -> Result<Index> { fn index(&self, at: &BlockId, account: AccountId) -> Result<Index> {
with_runtime!(self, at, || ::runtime::System::account_nonce(account)) account.using_encoded(|encoded| {
call(self, at, "account_nonce", encoded)
})
} }
fn lookup(&self, at: &BlockId, address: Address) -> Result<Option<AccountId>> { fn lookup(&self, at: &BlockId, address: Address) -> Result<Option<AccountId>> {
with_runtime!(self, at, || <::runtime::Staking as AuxLookup>::lookup(address).ok()) address.using_encoded(|encoded| {
call(self, at, "lookup_address", encoded)
})
} }
fn active_parachains(&self, at: &BlockId) -> Result<Vec<ParaId>> { fn active_parachains(&self, at: &BlockId) -> Result<Vec<ParaId>> {
with_runtime!(self, at, ::runtime::Parachains::active_parachains) call(self, at, "active_parachains", &[])
} }
fn parachain_code(&self, at: &BlockId, parachain: ParaId) -> Result<Option<Vec<u8>>> { fn parachain_code(&self, at: &BlockId, parachain: ParaId) -> Result<Option<Vec<u8>>> {
with_runtime!(self, at, || ::runtime::Parachains::parachain_code(parachain)) parachain.using_encoded(|encoded| {
call(self, at, "parachain_code", encoded)
})
} }
fn parachain_head(&self, at: &BlockId, parachain: ParaId) -> Result<Option<Vec<u8>>> { fn parachain_head(&self, at: &BlockId, parachain: ParaId) -> Result<Option<Vec<u8>>> {
with_runtime!(self, at, || ::runtime::Parachains::parachain_head(parachain)) parachain.using_encoded(|encoded| {
call(self, at, "parachain_head", encoded)
})
} }
fn build_block(&self, at: &BlockId, inherent_data: InherentData) -> Result<Self::BlockBuilder> { fn build_block(&self, at: &BlockId, inherent_data: InherentData) -> Result<Self::BlockBuilder> {
@@ -146,15 +154,8 @@ impl<B: LocalBackend<Block, KeccakHasher, RlpCodec>> PolkadotApi for Client<B, L
} }
fn inherent_extrinsics(&self, at: &BlockId, inherent_data: InherentData) -> Result<Vec<UncheckedExtrinsic>> { fn inherent_extrinsics(&self, at: &BlockId, inherent_data: InherentData) -> Result<Vec<UncheckedExtrinsic>> {
use codec::{Encode, Decode}; inherent_data.using_encoded(|encoded| {
call(self, at, "inherent_extrinsics", encoded)
with_runtime!(self, at, || {
let extrinsics = ::runtime::inherent_extrinsics(inherent_data);
extrinsics.into_iter()
.map(|x| x.encode()) // get encoded representation
.map(|x| Decode::decode(&mut &x[..])) // get byte-vec equivalent to extrinsic
.map(|x| x.expect("UncheckedExtrinsic has encoded representation equivalent to Vec<u8>; qed"))
.collect()
}) })
} }
} }
+9 -1
View File
@@ -252,7 +252,15 @@ pub mod api {
finalise_block => |()| super::Executive::finalise_block(), finalise_block => |()| super::Executive::finalise_block(),
inherent_extrinsics => |inherent| super::inherent_extrinsics(inherent), inherent_extrinsics => |inherent| super::inherent_extrinsics(inherent),
validator_count => |()| super::Session::validator_count(), validator_count => |()| super::Session::validator_count(),
validators => |()| super::Session::validators() validators => |()| super::Session::validators(),
duty_roster => |()| super::Parachains::calculate_duty_roster(),
active_parachains => |()| super::Parachains::active_parachains(),
parachain_head => |id| super::Parachains::parachain_head(&id),
parachain_code => |id| super::Parachains::parachain_code(&id),
timestamp => |()| super::Timestamp::get(),
random_seed => |()| super::System::random_seed(),
account_nonce => |account| super::System::account_nonce(&account),
lookup_address => |address| super::Staking::lookup_address(address)
); );
} }
+37 -37
View File
@@ -84,7 +84,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "ed25519" name = "ed25519"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -105,7 +105,7 @@ dependencies = [
[[package]] [[package]]
name = "environmental" name = "environmental"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
[[package]] [[package]]
name = "ethbloom" name = "ethbloom"
@@ -155,7 +155,7 @@ dependencies = [
[[package]] [[package]]
name = "fixed-hash" name = "fixed-hash"
version = "0.2.2" version = "0.2.2"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"heapsize 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.41 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.41 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -185,7 +185,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "hashdb" name = "hashdb"
version = "0.2.1" version = "0.2.1"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", "elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
@@ -274,7 +274,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "memorydb" name = "memorydb"
version = "0.2.1" version = "0.2.1"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", "elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)", "hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)",
@@ -317,7 +317,7 @@ dependencies = [
[[package]] [[package]]
name = "parity-bytes" name = "parity-bytes"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
[[package]] [[package]]
name = "parity-wasm" name = "parity-wasm"
@@ -350,7 +350,7 @@ dependencies = [
[[package]] [[package]]
name = "patricia-trie" name = "patricia-trie"
version = "0.2.1" version = "0.2.1"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", "elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)", "hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)",
@@ -362,7 +362,7 @@ dependencies = [
[[package]] [[package]]
name = "plain_hasher" name = "plain_hasher"
version = "0.2.0" version = "0.2.0"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"crunchy 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "crunchy 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
@@ -428,7 +428,7 @@ dependencies = [
[[package]] [[package]]
name = "pwasm-alloc" name = "pwasm-alloc"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)", "pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)",
"rustc_version 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -437,7 +437,7 @@ dependencies = [
[[package]] [[package]]
name = "pwasm-libc" name = "pwasm-libc"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
[[package]] [[package]]
name = "quote" name = "quote"
@@ -502,7 +502,7 @@ dependencies = [
[[package]] [[package]]
name = "rlp" name = "rlp"
version = "0.2.1" version = "0.2.1"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", "elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -596,7 +596,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "substrate-codec" name = "substrate-codec"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
@@ -604,7 +604,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-codec-derive" name = "substrate-codec-derive"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"proc-macro2 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", "quote 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -614,7 +614,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-keyring" name = "substrate-keyring"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -624,7 +624,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-primitives" name = "substrate-primitives"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)",
"byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -643,14 +643,14 @@ dependencies = [
"substrate-runtime-std 0.1.0 (git+https://github.com/paritytech/substrate)", "substrate-runtime-std 0.1.0 (git+https://github.com/paritytech/substrate)",
"tiny-keccak 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "tiny-keccak 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"twox-hash 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "twox-hash 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"uint 0.2.2 (git+https://github.com/paritytech/parity-common)", "uint 0.3.0 (git+https://github.com/paritytech/parity-common)",
"wasmi 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "wasmi 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]
name = "substrate-runtime-consensus" name = "substrate-runtime-consensus"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -667,7 +667,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-council" name = "substrate-runtime-council"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)", "integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)",
@@ -691,7 +691,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-democracy" name = "substrate-runtime-democracy"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -713,7 +713,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-executive" name = "substrate-runtime-executive"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -729,7 +729,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-io" name = "substrate-runtime-io"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"environmental 0.1.0 (git+https://github.com/paritytech/substrate)", "environmental 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -744,7 +744,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-primitives" name = "substrate-runtime-primitives"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)", "integer-sqrt 0.1.0 (git+https://github.com/paritytech/integer-sqrt-rs.git)",
"log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -762,7 +762,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-sandbox" name = "substrate-runtime-sandbox"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"rustc_version 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-codec 0.1.0 (git+https://github.com/paritytech/substrate)", "substrate-codec 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -775,7 +775,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-session" name = "substrate-runtime-session"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -796,7 +796,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-staking" name = "substrate-runtime-staking"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -819,7 +819,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-std" name = "substrate-runtime-std"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"pwasm-alloc 0.1.0 (git+https://github.com/paritytech/substrate)", "pwasm-alloc 0.1.0 (git+https://github.com/paritytech/substrate)",
"pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)", "pwasm-libc 0.1.0 (git+https://github.com/paritytech/substrate)",
@@ -829,7 +829,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-support" name = "substrate-runtime-support"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"ed25519 0.1.0 (git+https://github.com/paritytech/substrate)", "ed25519 0.1.0 (git+https://github.com/paritytech/substrate)",
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -844,7 +844,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-system" name = "substrate-runtime-system"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -861,7 +861,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-timestamp" name = "substrate-runtime-timestamp"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex-literal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -879,7 +879,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-runtime-version" name = "substrate-runtime-version"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.64 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -892,7 +892,7 @@ dependencies = [
[[package]] [[package]]
name = "substrate-state-machine" name = "substrate-state-machine"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/substrate#54e6d763a5d091ca1c41f431f8c7e76c384263d5" source = "git+https://github.com/paritytech/substrate#3697979e8d52673dd350103d810ec557f5959e9c"
dependencies = [ dependencies = [
"byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)", "hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)",
@@ -939,7 +939,7 @@ dependencies = [
[[package]] [[package]]
name = "triehash" name = "triehash"
version = "0.2.0" version = "0.2.0"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", "elastic-array 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)", "hashdb 0.2.1 (git+https://github.com/paritytech/parity-common)",
@@ -967,12 +967,12 @@ dependencies = [
[[package]] [[package]]
name = "uint" name = "uint"
version = "0.2.2" version = "0.3.0"
source = "git+https://github.com/paritytech/parity-common#26baede0d9cd8cdad3511d75408228051dbc23dd" source = "git+https://github.com/paritytech/parity-common#22209e14805e5764f7fe81259324d34eab179264"
dependencies = [ dependencies = [
"byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-hex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "crunchy 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc_version 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-hex 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]
@@ -1126,7 +1126,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum triehash 0.2.0 (git+https://github.com/paritytech/parity-common)" = "<none>" "checksum triehash 0.2.0 (git+https://github.com/paritytech/parity-common)" = "<none>"
"checksum twox-hash 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "475352206e7a290c5fccc27624a163e8d0d115f7bb60ca18a64fc9ce056d7435" "checksum twox-hash 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "475352206e7a290c5fccc27624a163e8d0d115f7bb60ca18a64fc9ce056d7435"
"checksum uint 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "38051a96565903d81c9a9210ce11076b2218f3b352926baa1f5f6abbdfce8273" "checksum uint 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "38051a96565903d81c9a9210ce11076b2218f3b352926baa1f5f6abbdfce8273"
"checksum uint 0.2.2 (git+https://github.com/paritytech/parity-common)" = "<none>" "checksum uint 0.3.0 (git+https://github.com/paritytech/parity-common)" = "<none>"
"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
"checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" "checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56"
"checksum untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f392d7819dbe58833e26872f5f6f0d68b7bbbe90fc3667e98731c4a15ad9a7ae" "checksum untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f392d7819dbe58833e26872f5f6f0d68b7bbbe90fc3667e98731c4a15ad9a7ae"