Expose block random seed and timestamp to contract ABI (#1630)

* Expose block random seed and timestamp to contract ABI

* Add tests

* Bump spec version
This commit is contained in:
Jordan Beauchamp
2019-02-07 22:58:02 +13:00
committed by Sergei Pepyakin
parent eb6dc0394e
commit fb0f4dfb03
12 changed files with 208 additions and 6 deletions
+3
View File
@@ -18,11 +18,13 @@ sandbox = { package = "sr-sandbox", path = "../../core/sr-sandbox", default-feat
srml-support = { path = "../support", default-features = false }
system = { package = "srml-system", path = "../system", default-features = false }
balances = { package = "srml-balances", path = "../balances", default-features = false }
timestamp = { package = "srml-timestamp", path = "../timestamp", default-features = false }
[dev-dependencies]
wabt = "~0.7.4"
assert_matches = "1.1"
hex-literal = "0.1.0"
consensus = { package = "srml-consensus", path = "../consensus", default-features = false }
[features]
default = ["std"]
@@ -38,6 +40,7 @@ std = [
"sandbox/std",
"srml-support/std",
"system/std",
"timestamp/std",
"parity-wasm/std",
"pwasm-utils/std",
]