From e1e86cd9d4e87b92d9742f1ec40850521da9156d Mon Sep 17 00:00:00 2001 From: haerdib <73821294+haerdib@users.noreply.github.com> Date: Fri, 13 Aug 2021 15:39:18 +0200 Subject: [PATCH] updae to substrate v4.0.0-dev (#347) Updates the following: - update to subtrate v4.0.0-dev https://github.com/paritytech/substrate/commit/f651d45ce5742bc60fe8ae518c035d1638ae83d2 - Changes to match newest substrate-api-client (especially https://github.com/scs/substrate-api-client/pull/131) - updates [aes.rs](https://github.com/integritee-network/worker/blob/master/enclave/src/aes.rs) to reenable cargo update in enclave (old version of [ofb and aes](https://github.com/integritee-network/worker/blob/master/enclave/Cargo.toml#L34-L35) not available in crates.io anymore) - renaming from substratee-registry to pallet teerex (some were enforced by newer version of node & pallet) - adds `make update` command to makefile, because cargo update alone is not sufficient * [Client] update cargo.toml * [chain relay] update cargo.toml * [Enlcave] update cargo.toml * [Primitives] update cargo.tomls * [stf] update cargo.toml * [worker] update cargo.toml * some clean up * fix typos * revert some cargo updates * cargo update * rename susbtratee_registry to pallet_teerex * revert version of aes - ofd * remove obsolete patch * update Cargo.toml of enclave (+cargo update) * adapt aes.rs to new version * adapt to new susbtrate-api-client api structure * rename substrateeapi to pallet teerex * move sgx-runtime dep to git branhc * remove obsolete control fnction and change to substrate-api-client branch * change substate-api-client back to master * cargo fmt * remove obselete wrapper-debugging functions * make clippy happy * add getrandom-sgx patch * rebase adaptions * change sgx-runtime dep to master * add makefile make update command --- Cargo.lock | 1816 ++++++----------- Cargo.toml | 7 +- Makefile | 10 + client/Cargo.toml | 101 +- client/src/main.rs | 47 +- enclave/Cargo.lock | 667 +++--- enclave/Cargo.toml | 217 +- enclave/chain_relay/Cargo.toml | 84 +- enclave/src/aes.rs | 4 +- primitives/api-client-extensions/Cargo.toml | 8 +- .../api-client-extensions/src/account.rs | 4 +- primitives/api-client-extensions/src/chain.rs | 4 +- primitives/api-client-extensions/src/lib.rs | 4 +- ...ubstratee_registry.rs => pallet_teerex.rs} | 7 +- primitives/enclave-api/Cargo.toml | 8 +- primitives/get-storage-verified/Cargo.toml | 6 +- primitives/node/Cargo.toml | 26 +- primitives/ocall-api/Cargo.toml | 2 +- primitives/pallet-teerex-storage/Cargo.toml | 2 +- primitives/sidechain/Cargo.toml | 8 +- primitives/sidechain/primitives/Cargo.toml | 6 +- primitives/storage/Cargo.toml | 14 +- primitives/test-utils/Cargo.toml | 6 +- primitives/worker/Cargo.toml | 19 +- stf/Cargo.toml | 145 +- worker/Cargo.toml | 143 +- worker/src/globals/worker.rs | 4 +- worker/src/main.rs | 45 +- worker/src/node_api_factory.rs | 11 +- worker/src/tests/commons.rs | 8 +- worker/src/tests/mock.rs | 4 +- worker/src/tests/worker.rs | 2 +- worker/src/worker.rs | 4 +- 33 files changed, 1286 insertions(+), 2157 deletions(-) rename primitives/api-client-extensions/src/{substratee_registry.rs => pallet_teerex.rs} (91%) diff --git a/Cargo.lock b/Cargo.lock index aeea7b0e80..b545d9cc9e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,9 +14,9 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.15.2" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7a2e47a1fbe209ee101dd6d61285226744c6c8d3c21c8dc878ba6cb9f467f3a" +checksum = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd" dependencies = [ "gimli", ] @@ -29,9 +29,14 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" -version = "0.4.7" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e" +checksum = "43bb833f0bf979d8475d38fbf09ed3b8a55e1885fe93ad3f93239fc6a4f17b98" +dependencies = [ + "getrandom 0.2.3", + "once_cell 1.8.0", + "version_check", +] [[package]] name = "aho-corasick" @@ -71,18 +76,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.41" +version = "1.0.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15af2628f6890fe2609a3b91bef4c83450512802e59489f9c1cb1fa5df064a61" - -[[package]] -name = "approx" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f2a05fd1bd10b2527e20a2cd32d8873d115b8b39fe219ee25f42a8aca6ba278" -dependencies = [ - "num-traits", -] +checksum = "595d3cfa7a60d4555cb5067b99f07142a08ea778de5cf993f7b75c7d8fabc486" [[package]] name = "approx" @@ -120,12 +116,6 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be4dc07131ffa69b8072d35f5007352af944213cde02545e2103680baed38fcd" -[[package]] -name = "asn1_der" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d6e24d2cce90c53b948c46271bfb053e4bdc2db9b5d3f65e20f8cf28a1b7fc3" - [[package]] name = "async-channel" version = "1.6.1" @@ -169,12 +159,11 @@ dependencies = [ [[package]] name = "async-io" -version = "1.4.1" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bbfd5cf2794b1e908ea8457e6c45f8f8f1f6ec5f74617bf4662623f47503c3b" +checksum = "a811e6a479f2439f0c04038796b5cfb3d2ad56c230e0f2d3f7b04d68cfee607b" dependencies = [ "concurrent-queue", - "fastrand", "futures-lite", "libc", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", @@ -207,9 +196,9 @@ dependencies = [ [[package]] name = "async-process" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f38756dd9ac84671c428afbf7c9f7495feff9ec5b0710f17100098e5b354ac" +checksum = "b21b63ab5a0db0369deb913540af2892750e42d949faacc7a61495ac418a1692" dependencies = [ "async-io", "blocking", @@ -244,7 +233,7 @@ dependencies = [ "memchr 2.4.0", "num_cpus", "once_cell 1.8.0", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "pin-utils", "slab", "wasm-bindgen-futures", @@ -258,22 +247,13 @@ checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" [[package]] name = "async-trait" -version = "0.1.50" +version = "0.1.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722" +checksum = "44318e776df68115a881de9a8fd1b9e53368d7a4a5ce4cc48517da3393233a5e" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", -] - -[[package]] -name = "atomic" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3410529e8288c463bedb5930f82833bc0c90e5d2fe639a56582a4d09220b281" -dependencies = [ - "autocfg 1.0.1", + "syn 1.0.74", ] [[package]] @@ -307,9 +287,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "backtrace" -version = "0.3.60" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7815ea54e4d821e791162e078acbebfd6d8c8939cd559c9335dceb1c8ca7282" +checksum = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01" dependencies = [ "addr2line", "cc", @@ -346,28 +326,18 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "beef" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6736e2428df2ca2848d846c43e88745121a6654696e349ce0054a420815a7409" +checksum = "bed554bd50246729a1ec158d08aa3235d1b69d94ad120ebe187e28894787e736" dependencies = [ "serde", ] [[package]] name = "bitflags" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" - -[[package]] -name = "bitvec" -version = "0.17.4" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41262f11d771fd4a61aa3ce019fca363b4b6c282fca9da2a31186d3965a47a5c" -dependencies = [ - "either", - "radium 0.3.0", -] +checksum = "2da1976d75adbe5fbc88130ecd119529cf1cc6a93ae1546d8696ee66f0d21af1" [[package]] name = "bitvec" @@ -376,7 +346,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7774144344a4faa177370406a7ff5f1da24303817368584c6206c8303eb07848" dependencies = [ "funty", - "radium 0.6.2", + "radium", "tap", "wyz", ] @@ -486,12 +456,6 @@ version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631" -[[package]] -name = "byte-slice-cast" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0a5e3906bcbf133e33c1d4d95afc664ad37fbdb9f6568d8043e7ea8c27d93d3" - [[package]] name = "byte-slice-cast" version = "1.0.0" @@ -546,18 +510,18 @@ checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba" [[package]] name = "camino" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4648c6d00a709aa069a236adcaae4f605a6241c72bf5bee79331a4b625921a9" +checksum = "52d74260d9bf6944e2208aa46841b4b8f0d7ffc0849a06837b2f510337f86b2b" dependencies = [ "serde", ] [[package]] name = "cargo-platform" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0226944a63d1bf35a3b5f948dd7c59e263db83695c9e8bffc4037de02e30f1d7" +checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27" dependencies = [ "serde", ] @@ -578,9 +542,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.68" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a72c244c1ff497a746a7e1fb3d14bd08420ecda70c8f25c7112f2781652d787" +checksum = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2" dependencies = [ "jobserver", ] @@ -662,7 +626,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64850de981e336e6b40957ca8146256c29b250f0104245efd1b614a75c0bcb2c" dependencies = [ "bytes 1.0.1", - "futures 0.3.15", + "futures", "http", "mime", "mime_guess", @@ -749,7 +713,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ "generic-array 0.14.4", - "subtle 2.4.0", + "subtle 2.4.1", ] [[package]] @@ -768,32 +732,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e98e2ad1a782e33928b96fc3948e7c355e5af34ba4de7670fe8bac2a3b2006d" dependencies = [ "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "curve25519-dalek" -version = "2.1.2" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "434e1720189a637d44fe464f4df1e6eb900b4835255b14354497c78af37d9bb8" +checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216" dependencies = [ "byteorder", "digest 0.8.1", "rand_core 0.5.1", - "subtle 2.4.0", + "subtle 2.4.1", "zeroize", ] [[package]] name = "curve25519-dalek" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3" +checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" dependencies = [ "byteorder", "digest 0.9.0", "rand_core 0.5.1", - "subtle 2.4.0", + "subtle 2.4.1", "zeroize", ] @@ -823,7 +787,7 @@ dependencies = [ "proc-macro2", "quote 1.0.9", "rustc_version 0.3.3", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -920,7 +884,7 @@ checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -931,9 +895,9 @@ checksum = "ee2626afccd7561a06cf1367e2950c4718ea04565e20fb5029b6c7d8ad09abcf" [[package]] name = "ed25519" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d0860415b12243916284c67a9be413e044ee6668247b99ba26d94b2bc06c8f6" +checksum = "4620d40f6d2601794401d6dd95a5cf69b6c157852539470eeda433a99b3c0efc" dependencies = [ "signature", ] @@ -944,7 +908,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" dependencies = [ - "curve25519-dalek 3.1.0", + "curve25519-dalek 3.2.0", "ed25519", "rand 0.7.3", "serde", @@ -985,9 +949,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.8.4" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" +checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" dependencies = [ "atty", "humantime 2.1.0", @@ -1035,7 +999,7 @@ checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "synstructure", ] @@ -1047,38 +1011,27 @@ checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" [[package]] name = "fastrand" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77b705829d1e87f762c2df6da140b26af5839e1033aa84aa5f56bb688e4e1bdb" +checksum = "b394ed3d285a429378d3b384b9eb1285267e7df4b166df24b7a6939a04dc392e" dependencies = [ "instant", ] [[package]] name = "finality-grandpa" -version = "0.14.1" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74a1bfdcc776e63e49f741c7ce6116fa1b887e8ac2e3ccb14dd4aa113e54feb9" +checksum = "c832d0ed507622c7cb98e9b7f10426850fc9d38527ab8071778dcc3a81d45875" dependencies = [ "either", - "futures 0.3.15", + "futures", "futures-timer", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parking_lot 0.11.1", -] - -[[package]] -name = "fixed-hash" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3367952ceb191f4ab95dd5685dc163ac539e36202f9fcfd0cb22f9f9c542fefc" -dependencies = [ - "byteorder", - "rand 0.7.3", - "rustc-hex", - "static_assertions", + "scale-info", ] [[package]] @@ -1093,12 +1046,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "fixedbitset" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" - [[package]] name = "float-cmp" version = "0.8.0" @@ -1147,17 +1094,17 @@ checksum = "69a039c3498dc930fe810151a34ba0c1c70b02b8625035592e74432f678591f2" [[package]] name = "frame-benchmarking" -version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", "linregress", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "paste", "sp-api", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-runtime-interface", "sp-std", @@ -1166,14 +1113,14 @@ dependencies = [ [[package]] name = "frame-executive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-core", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-std", "sp-tracing", @@ -1181,10 +1128,10 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "14.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde", "sp-core", "sp-std", @@ -1192,24 +1139,23 @@ dependencies = [ [[package]] name = "frame-support" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "bitflags", "frame-metadata", "frame-support-procedural", "impl-trait-for-tuples", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "max-encoded-len", "once_cell 1.8.0", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "paste", "serde", "smallvec 1.6.1", "sp-arithmetic", "sp-core", "sp-inherents", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-staking", "sp-state-machine", @@ -1219,50 +1165,50 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "Inflector", "frame-support-procedural-tools", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "frame-support-procedural-tools" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "frame-system" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "impl-trait-for-tuples", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde", "sp-core", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-std", "sp-version", @@ -1270,10 +1216,10 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api", ] @@ -1307,15 +1253,9 @@ checksum = "fed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7" [[package]] name = "futures" -version = "0.1.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" - -[[package]] -name = "futures" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e7e43a803dae2fa37c1f6a8fe121e1f7bf9548b4dfc0522a42f34145dadfc27" +checksum = "1adc00f486adfc9ce99f77d717836f0c5aa84965eb0b4f051f4e83f7cab53f8b" dependencies = [ "futures-channel", "futures-core", @@ -1328,9 +1268,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e682a68b29a882df0545c143dc3646daefe80ba479bcdede94d5a703de2871e2" +checksum = "74ed2411805f6e4e3d9bc904c95d5d423b89b3b25dc0250aa74729de20629ff9" dependencies = [ "futures-core", "futures-sink", @@ -1338,15 +1278,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0402f765d8a89a26043b889b26ce3c4679d268fa6bb22cd7c6aad98340e179d1" +checksum = "af51b1b4a7fdff033703db39de8802c673eb91855f2e0d47dcf3bf2c0ef01f99" [[package]] name = "futures-executor" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "badaa6a909fac9e7236d0620a2f57f7664640c56575b71a7552fbd68deafab79" +checksum = "4d0d535a57b87e1ae31437b892713aee90cd2d7b0ee48727cd11fc72ef54761c" dependencies = [ "futures-core", "futures-task", @@ -1356,9 +1296,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acc499defb3b348f8d8f3f66415835a9131856ff7714bf10dadfc4ec4bdb29a1" +checksum = "0b0e06c393068f3a6ef246c75cdca793d6a46347e75286933e5e75fd2fd11582" [[package]] name = "futures-lite" @@ -1371,34 +1311,34 @@ dependencies = [ "futures-io", "memchr 2.4.0", "parking", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "waker-fn", ] [[package]] name = "futures-macro" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c40298486cdf52cc00cd6d6987892ba502c7656a16a4192a9992b1ccedd121" +checksum = "c54913bae956fb8df7f4dc6fc90362aa72e69148e3f39041fbe8742d21e0ac57" dependencies = [ "autocfg 1.0.1", "proc-macro-hack", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "futures-sink" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a57bead0ceff0d6dde8f465ecd96c9338121bb7717d3e7b108059531870c4282" +checksum = "c0f30aaa67363d119812743aa5f33c201a7a66329f97d1a887022971feea4b53" [[package]] name = "futures-task" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a16bef9fc1a4dddb5bee51c989e3fbba26569cbb0e31f5b303c184e3dd33dae" +checksum = "bbe54a98670017f3be909561f6ad13e810d9a51f3f061b902062ca3da80799f2" [[package]] name = "futures-timer" @@ -1408,12 +1348,11 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feb5c238d27e2bf94ffdfd27b2c29e3df4a68c4193bb6427384259e2bf191967" +checksum = "67eb846bfd58e44a8481a00049e82c43e0ccb5d61f8dc071057cb19249dd4d78" dependencies = [ "autocfg 1.0.1", - "futures 0.1.31", "futures-channel", "futures-core", "futures-io", @@ -1421,7 +1360,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr 2.4.0", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "pin-utils", "proc-macro-hack", "proc-macro-nested", @@ -1497,9 +1436,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.24.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189" +checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7" [[package]] name = "globset" @@ -1561,7 +1500,7 @@ dependencies = [ "http", "indexmap", "slab", - "tokio 1.7.1", + "tokio 1.10.0", "tokio-util 0.6.7", "tracing", ] @@ -1593,9 +1532,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.9.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" dependencies = [ "ahash", ] @@ -1603,7 +1542,7 @@ dependencies = [ [[package]] name = "hashbrown_tstd" version = "0.9.0" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "heck" @@ -1623,12 +1562,6 @@ dependencies = [ "libc", ] -[[package]] -name = "hex" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "805026a5d0141ffc30abb3be3173848ad46a1b1664fe632428479619a3644d77" - [[package]] name = "hex" version = "0.4.3" @@ -1689,13 +1622,13 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60daa14be0e0786db0f03a9e57cb404c9d756eed2b6c62b9ea98ec5743ec75a9" +checksum = "399c583b2979440c60be0821a6199eca73bc3c8dcd9d070d75ac726e2c6186e5" dependencies = [ "bytes 1.0.1", "http", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", ] [[package]] @@ -1756,7 +1689,7 @@ dependencies = [ "httparse", "httpdate 0.3.2", "itoa", - "pin-project 1.0.7", + "pin-project", "tokio 0.2.25", "tower-service", "tracing", @@ -1765,9 +1698,9 @@ dependencies = [ [[package]] name = "hyper" -version = "0.14.9" +version = "0.14.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07d6baa1b441335f3ce5098ac421fb6547c46dda735ca1bc6d0153c838f9dd83" +checksum = "0b61cf2d1aebcf6e6352c97b81dc2244ca29194be1b276f5d8ad5c6330fffb11" dependencies = [ "bytes 1.0.1", "futures-channel", @@ -1775,13 +1708,13 @@ dependencies = [ "futures-util", "h2 0.3.3", "http", - "http-body 0.4.2", + "http-body 0.4.3", "httparse", "httpdate 1.0.1", "itoa", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "socket2", - "tokio 1.7.1", + "tokio 1.10.0", "tower-service", "tracing", "want", @@ -1795,9 +1728,9 @@ checksum = "434b747b453e4b4b43b37928c51c9b3d1c86f502dbabf9bf88f1a2e589f5a6eb" dependencies = [ "bytes 1.0.1", "common-multipart-rfc7578", - "futures 0.3.15", + "futures", "http", - "hyper 0.14.9", + "hyper 0.14.11", ] [[package]] @@ -1808,11 +1741,11 @@ checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" dependencies = [ "ct-logs", "futures-util", - "hyper 0.14.9", + "hyper 0.14.11", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "rustls", "rustls-native-certs", - "tokio 1.7.1", + "tokio 1.10.0", "tokio-rustls", "webpki 0.21.4", ] @@ -1824,24 +1757,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ "bytes 1.0.1", - "hyper 0.14.9", + "hyper 0.14.11", "native-tls", - "tokio 1.7.1", + "tokio 1.10.0", "tokio-native-tls", ] [[package]] name = "ias-verify" version = "0.1.4" -source = "git+https://github.com/scs/pallet-substratee-registry.git?branch=master#10f13173d2a07b3eb1062a956cda0e9dcd99a541" +source = "git+https://github.com/integritee-network/pallet-teerex.git?branch=master#323b3fbb3f91234d5cc53abf594d5eec677eed67" dependencies = [ "base64 0.11.0", "chrono", "frame-support", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde_json", "sp-core", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-std", "webpki 0.21.0", ] @@ -1870,20 +1803,11 @@ dependencies = [ [[package]] name = "impl-codec" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1be51a921b067b0eaca2fad532d9400041561aa922221cc65f95a85641c6bf53" -dependencies = [ - "parity-scale-codec 1.3.7", -] - -[[package]] -name = "impl-codec" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df170efa359aebdd5cb7fe78edcc67107748e4737bdca8a8fb40d15ea7a877ed" +checksum = "161ebdfec3c8e3b52bf61c4f3550a1eea4f9579d10dc1b936f3171ebdcd6c443" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", ] [[package]] @@ -1903,24 +1827,24 @@ checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "indexmap" -version = "1.6.2" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3" +checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" dependencies = [ "autocfg 1.0.1", - "hashbrown 0.9.1", + "hashbrown 0.11.2", ] [[package]] name = "instant" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ec" +checksum = "bee0328b1209d157ef001c94dd85b4f8f64139adb0eac2659f4b08382b2f474d" dependencies = [ "cfg-if 1.0.0", ] @@ -1932,7 +1856,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca80fdd4829ab7569b7a72db4784b2f819d42f124e189c47dba0f72861c3888a" dependencies = [ "async-trait", - "futures 0.3.15", + "futures", ] [[package]] @@ -1944,6 +1868,39 @@ dependencies = [ "num-traits", ] +[[package]] +name = "integritee-node-runtime" +version = "0.9.0" +source = "git+https://github.com/integritee-network/integritee-node?branch=master#dccb8799a3132702924974951d71b5e263b02be3" +dependencies = [ + "frame-executive", + "frame-support", + "frame-system", + "frame-system-rpc-runtime-api", + "pallet-aura", + "pallet-balances", + "pallet-grandpa", + "pallet-randomness-collective-flip", + "pallet-sudo", + "pallet-teerex", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "parity-scale-codec", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", + "sp-core", + "sp-inherents", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-std", + "sp-transaction-pool", + "sp-version", + "substrate-wasm-builder", +] + [[package]] name = "iovec" version = "0.1.4" @@ -1962,16 +1919,16 @@ dependencies = [ "bytes 1.0.1", "dirs 3.0.2", "failure", - "futures 0.3.15", + "futures", "http", - "hyper 0.14.9", + "hyper 0.14.11", "hyper-multipart-rfc7578", "hyper-tls", "parity-multiaddr", "serde", "serde_json", "serde_urlencoded", - "tokio 1.7.1", + "tokio 1.10.0", "tokio-util 0.6.7", "tracing", "typed-builder", @@ -1980,9 +1937,9 @@ dependencies = [ [[package]] name = "itertools" -version = "0.9.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" +checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" dependencies = [ "either", ] @@ -1995,18 +1952,18 @@ checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" [[package]] name = "jobserver" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd" +checksum = "f5ca711fd837261e14ec9e674f092cbb931d3fa1482b017ae59328ddc6f3212b" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.51" +version = "0.3.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83bdfbace3a0e81a4253f73b49e960b053e396a11012cbd49b9b74d6a2b67062" +checksum = "ce791b7ca6638aae45be056e068fc756d871eb3b3b10b8efa62d1c9cec616752" dependencies = [ "wasm-bindgen", ] @@ -2017,69 +1974,6 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd" -[[package]] -name = "jsonrpc-client-transports" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489b9c612e60c766f751ab40fcb43cbb55a1e10bb44a9b4307ed510ca598cbd7" -dependencies = [ - "failure", - "futures 0.1.31", - "jsonrpc-core", - "jsonrpc-pubsub", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "serde", - "serde_json", - "url 1.7.2", -] - -[[package]] -name = "jsonrpc-core" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0745a6379e3edc893c84ec203589790774e4247420033e71a76d3ab4687991fa" -dependencies = [ - "futures 0.1.31", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "serde", - "serde_derive", - "serde_json", -] - -[[package]] -name = "jsonrpc-core-client" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f764902d7b891344a0acb65625f32f6f7c6db006952143bd650209fbe7d94db" -dependencies = [ - "jsonrpc-client-transports", -] - -[[package]] -name = "jsonrpc-derive" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" -dependencies = [ - "proc-macro-crate 0.1.5", - "proc-macro2", - "quote 1.0.9", - "syn 1.0.73", -] - -[[package]] -name = "jsonrpc-pubsub" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639558e0604013be9787ae52f798506ae42bf4220fe587bdc5625871cc8b9c77" -dependencies = [ - "jsonrpc-core", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parking_lot 0.10.2", - "rand 0.7.3", - "serde", -] - [[package]] name = "jsonrpsee" version = "0.2.0" @@ -2103,7 +1997,7 @@ checksum = "e7275601ba6f9f6feaa82d3c66b51e34d190e75f1cf23d5c40f7801f3a7610a6" dependencies = [ "async-trait", "fnv", - "hyper 0.14.9", + "hyper 0.14.11", "hyper-rustls", "jsonrpsee-types", "jsonrpsee-utils", @@ -2123,7 +2017,7 @@ dependencies = [ "futures-channel", "futures-util", "globset", - "hyper 0.14.9", + "hyper 0.14.11", "jsonrpsee-types", "jsonrpsee-utils", "lazy_static", @@ -2132,7 +2026,7 @@ dependencies = [ "serde_json", "socket2", "thiserror", - "tokio 1.7.1", + "tokio 1.10.0", "unicase", ] @@ -2143,10 +2037,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b4c85cfa6767333f3e5f3b2f2f765dad2727b0033ee270ae07c599bf43ed5ae" dependencies = [ "Inflector", - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -2159,7 +2053,7 @@ dependencies = [ "beef", "futures-channel", "futures-util", - "hyper 0.14.9", + "hyper 0.14.11", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "serde", "serde_json", @@ -2175,7 +2069,7 @@ checksum = "47554ecaacb479285da68799d9b6afc258c32b332cc8b85829c6a9304ee98776" dependencies = [ "futures-channel", "futures-util", - "hyper 0.14.9", + "hyper 0.14.11", "jsonrpsee-types", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.11.1", @@ -2194,17 +2088,17 @@ checksum = "6ec51150965544e1a4468f372bdab8545243a1b045d4ab272023aac74c60de32" dependencies = [ "async-trait", "fnv", - "futures 0.3.15", + "futures", "jsonrpsee-types", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "pin-project 1.0.7", + "pin-project", "rustls", "rustls-native-certs", "serde", "serde_json", "soketto", "thiserror", - "tokio 1.7.1", + "tokio 1.10.0", "tokio-rustls", "tokio-util 0.6.7", "url 2.2.2", @@ -2226,7 +2120,7 @@ dependencies = [ "serde_json", "soketto", "thiserror", - "tokio 1.7.1", + "tokio 1.10.0", "tokio-stream", "tokio-util 0.6.7", ] @@ -2256,16 +2150,6 @@ dependencies = [ "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "kvdb" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8891bd853eff90e33024195d79d578dc984c82f9e0715fcd2b525a0c19d52811" -dependencies = [ - "parity-util-mem", - "smallvec 1.6.1", -] - [[package]] name = "lazy_static" version = "1.4.0" @@ -2283,9 +2167,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6" +checksum = "a7f823d141fe0a24df1e23b4af4e3c7ba9e5966ec514ea068c93024aa7deb765" [[package]] name = "libm" @@ -2293,86 +2177,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" -[[package]] -name = "libp2p" -version = "0.37.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08053fbef67cd777049ef7a95ebaca2ece370b4ed7712c3fa404d69a88cb741b" -dependencies = [ - "atomic", - "bytes 1.0.1", - "futures 0.3.15", - "lazy_static", - "libp2p-core", - "libp2p-swarm", - "libp2p-swarm-derive", - "parity-multiaddr", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "smallvec 1.6.1", - "wasm-timer", -] - -[[package]] -name = "libp2p-core" -version = "0.28.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "554d3e7e9e65f939d66b75fd6a4c67f258fe250da61b91f46c545fc4a89b51d9" -dependencies = [ - "asn1_der", - "bs58", - "ed25519-dalek", - "either", - "fnv", - "futures 0.3.15", - "futures-timer", - "lazy_static", - "libsecp256k1", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "multihash 0.13.2", - "multistream-select", - "parity-multiaddr", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "prost", - "prost-build", - "rand 0.7.3", - "ring 0.16.20", - "rw-stream-sink", - "sha2 0.9.5", - "smallvec 1.6.1", - "thiserror", - "unsigned-varint 0.7.0", - "void", - "zeroize", -] - -[[package]] -name = "libp2p-swarm" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e04d8e1eef675029ec728ba14e8d0da7975d84b6679b699b4ae91a1de9c3a92" -dependencies = [ - "either", - "futures 0.3.15", - "libp2p-core", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.7.3", - "smallvec 1.6.1", - "void", - "wasm-timer", -] - -[[package]] -name = "libp2p-swarm-derive" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "365b0a699fea5168676840567582a012ea297b1ca02eee467e58301b9c9c5eed" -dependencies = [ - "quote 1.0.9", - "syn 1.0.73", -] - [[package]] name = "libsecp256k1" version = "0.3.5" @@ -2385,17 +2189,17 @@ dependencies = [ "hmac-drbg", "rand 0.7.3", "sha2 0.8.2", - "subtle 2.4.0", + "subtle 2.4.1", "typenum", ] [[package]] name = "linregress" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1ff7f341d23e1275eec0656a9a07225fcc86216c4322392868adffe59023d1a" +checksum = "1e6e407dadb4ca4b31bc69c27aff00e7ca4534fdcee855159b039a7cebb5f395" dependencies = [ - "nalgebra 0.27.1", + "nalgebra", "statrs", ] @@ -2445,15 +2249,6 @@ dependencies = [ "sgx_tstd", ] -[[package]] -name = "lru" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f374d42cdfc1d7dbf3d3dec28afab2eb97ffbf43a3234d795b5986dbf4b90ba" -dependencies = [ - "hashbrown 0.9.1", -] - [[package]] name = "matchers" version = "0.0.1" @@ -2465,9 +2260,9 @@ dependencies = [ [[package]] name = "matches" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" +checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" [[package]] name = "matrixmultiply" @@ -2478,28 +2273,6 @@ dependencies = [ "rawpointer", ] -[[package]] -name = "max-encoded-len" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" -dependencies = [ - "impl-trait-for-tuples", - "max-encoded-len-derive", - "parity-scale-codec 2.1.3", - "primitive-types 0.9.0", -] - -[[package]] -name = "max-encoded-len-derive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" -dependencies = [ - "proc-macro-crate 1.0.0", - "proc-macro2", - "quote 1.0.9", - "syn 1.0.73", -] - [[package]] name = "maybe-uninit" version = "2.0.0" @@ -2524,12 +2297,12 @@ checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" [[package]] name = "memory-db" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "814bbecfc0451fc314eeea34f05bbcd5b98a7ad7af37faee088b86a1e633f1d4" +checksum = "de006e09d04fc301a5f7e817b75aa49801c4479a8af753764416b085337ddcc5" dependencies = [ "hash-db", - "hashbrown 0.9.1", + "hashbrown 0.11.2", "parity-util-mem", ] @@ -2644,9 +2417,9 @@ dependencies = [ [[package]] name = "mockall" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfd9a2de7b4bd932854c776ce60880caf8fa41095a7907e3accc52ef6678895b" +checksum = "6ab571328afa78ae322493cacca3efac6a0f2e0a67305b4df31fd439ef129ac0" dependencies = [ "cfg-if 1.0.0", "downcast", @@ -2659,14 +2432,14 @@ dependencies = [ [[package]] name = "mockall_derive" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d07174e9c5ffb2ff849187641c48fc66f5588f012f1d248e55c3a68cd462bd29" +checksum = "e7e25b214433f669161f414959594216d8e6ba83b6679d3db96899c0b4639033" dependencies = [ "cfg-if 1.0.0", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -2695,10 +2468,8 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dac63698b887d2d929306ea48b63760431ff8a24fac40ddb22f9c7f49fb7cab" dependencies = [ - "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", - "sha2 0.9.5", "unsigned-varint 0.5.1", ] @@ -2708,64 +2479,29 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "424f6e86263cd5294cbd7f1e95746b95aca0e0d66bff31e5a40d6baa87b4aa99" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro-error", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "synstructure", ] -[[package]] -name = "multimap" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" - -[[package]] -name = "multistream-select" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d91ec0a2440aaff5f78ec35631a7027d50386c6163aa975f7caa0d5da4b6ff8" -dependencies = [ - "bytes 1.0.1", - "futures 0.3.15", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "pin-project 1.0.7", - "smallvec 1.6.1", - "unsigned-varint 0.7.0", -] - -[[package]] -name = "nalgebra" -version = "0.26.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "476d1d59fe02fe54c86356e91650cd892f392782a1cb9fc524ec84f7aa9e1d06" -dependencies = [ - "approx 0.4.0", - "matrixmultiply", - "num-complex 0.3.1", - "num-rational 0.3.2", - "num-traits", - "rand 0.8.4", - "rand_distr", - "simba 0.4.0", - "typenum", -] - [[package]] name = "nalgebra" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "462fffe4002f4f2e1f6a9dcf12cc1a6fc0e15989014efc02a941d3e0f5dc2120" dependencies = [ - "approx 0.5.0", + "approx", "matrixmultiply", "nalgebra-macros", - "num-complex 0.4.0", + "num-complex", "num-rational 0.4.0", "num-traits", - "simba 0.5.1", + "rand 0.8.4", + "rand_distr", + "simba", "typenum", ] @@ -2777,14 +2513,14 @@ checksum = "01fcc0b8149b4632adc89ac3b7b31a12fb6099a0317a4eb2ebff574ef7de7218" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "native-tls" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8d96b2e1c8da3957d58100b09f102c6d9cfdfced01b7ec5a8974044bb09dbd4" +checksum = "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d" dependencies = [ "lazy_static", "libc", @@ -2841,15 +2577,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-complex" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "747d632c0c558b87dbabbe6a82f3b4ae03720d0646ac5b7b4dae89394be5f2c5" -dependencies = [ - "num-traits", -] - [[package]] name = "num-complex" version = "0.4.0" @@ -2881,17 +2608,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-rational" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12ac428b1cb17fce6f731001d307d351ec70a6d202fc2e60f7d4c5e42d8f4f07" -dependencies = [ - "autocfg 1.0.1", - "num-integer", - "num-traits", -] - [[package]] name = "num-rational" version = "0.4.0" @@ -2925,9 +2641,9 @@ dependencies = [ [[package]] name = "object" -version = "0.25.3" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a38f2be3697a57b4060074ff41b44c16870d916ad7877c17696e063257482bc7" +checksum = "c55827317fb4c08822499848a14237d2874d6f139828893017237e7ab93eb386" dependencies = [ "memchr 2.4.0", ] @@ -2997,14 +2713,14 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", "pallet-session", "pallet-timestamp", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-application-crypto", "sp-consensus-aura", "sp-runtime", @@ -3013,13 +2729,13 @@ dependencies = [ [[package]] name = "pallet-authorship" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-authorship", "sp-runtime", "sp-std", @@ -3027,23 +2743,22 @@ dependencies = [ [[package]] name = "pallet-balances" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "max-encoded-len", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-runtime", "sp-std", ] [[package]] name = "pallet-grandpa" -version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -3051,11 +2766,11 @@ dependencies = [ "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "pallet-authorship", "pallet-session", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-application-crypto", "sp-core", "sp-finality-grandpa", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-session", "sp-staking", @@ -3064,12 +2779,12 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "safe-mix", "sp-runtime", "sp-std", @@ -3077,17 +2792,17 @@ dependencies = [ [[package]] name = "pallet-session" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "pallet-timestamp", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-core", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-session", "sp-staking", @@ -3096,32 +2811,34 @@ dependencies = [ ] [[package]] -name = "pallet-substratee-registry" -version = "0.9.0" -source = "git+https://github.com/scs/pallet-substratee-registry.git?branch=master#10f13173d2a07b3eb1062a956cda0e9dcd99a541" +name = "pallet-sudo" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", - "ias-verify", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "pallet-timestamp", - "parity-scale-codec 2.1.3", - "serde", - "sp-core", - "sp-io 3.0.0", + "parity-scale-codec", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-std", ] [[package]] -name = "pallet-sudo" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +name = "pallet-teerex" +version = "0.9.0" +source = "git+https://github.com/integritee-network/pallet-teerex.git?branch=master#323b3fbb3f91234d5cc53abf594d5eec677eed67" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", - "parity-scale-codec 2.1.3", - "sp-io 3.0.0", + "ias-verify", + "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", + "pallet-balances", + "pallet-timestamp", + "parity-scale-codec", + "serde", + "sp-core", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-std", ] @@ -3136,15 +2853,15 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "impl-trait-for-tuples", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-inherents", "sp-runtime", "sp-std", @@ -3153,27 +2870,27 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde", "smallvec 1.6.1", "sp-core", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-runtime", "sp-std", ] [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "pallet-transaction-payment", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api", "sp-runtime", ] @@ -3198,53 +2915,42 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "1.3.7" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4b26b16c7687c3075982af47719e481815df30bc544f7a6690763a25ca16e9d" -dependencies = [ - "arrayvec 0.5.2", - "bitvec 0.17.4", - "byte-slice-cast 0.3.5", - "serde", -] - -[[package]] -name = "parity-scale-codec" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b310f220c335f9df1b3d2e9fbe3890bbfeef5030dad771620f48c5c229877cd3" +checksum = "8975095a2a03bbbdc70a74ab11a4f76a6d0b84680d87c68d722531b0ac28e8a9" dependencies = [ "arrayvec 0.7.1", - "bitvec 0.20.4", - "byte-slice-cast 1.0.0", + "bitvec", + "byte-slice-cast", + "impl-trait-for-tuples", "parity-scale-codec-derive", "serde", ] [[package]] name = "parity-scale-codec-derive" -version = "2.1.3" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81038e13ca2c32587201d544ea2e6b6c47120f1e4eae04478f9f60b6bcb89145" +checksum = "40dbbfef7f0a1143c5b06e0d76a6278e25dac0bc1af4be51a0fbb73f07e7ad09" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "parity-util-mem" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "664a8c6b8e62d8f9f2f937e391982eb433ab285b4cd9545b342441e04a906e42" +checksum = "7ad6f1acec69b95caf435bbd158d486e5a0a44fcf51531e84922c59ff09e8457" dependencies = [ "cfg-if 1.0.0", - "hashbrown 0.9.1", + "hashbrown 0.11.2", "impl-trait-for-tuples", "parity-util-mem-derive", "parking_lot 0.11.1", - "primitive-types 0.9.0", + "primitive-types", "winapi 0.3.9", ] @@ -3255,7 +2961,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ "proc-macro2", - "syn 1.0.73", + "syn 1.0.74", "synstructure", ] @@ -3347,7 +3053,7 @@ dependencies = [ "cfg-if 1.0.0", "instant", "libc", - "redox_syscall 0.2.9", + "redox_syscall 0.2.10", "smallvec 1.6.1", "winapi 0.3.9", ] @@ -3398,54 +3104,24 @@ dependencies = [ "ucd-trie", ] -[[package]] -name = "petgraph" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" -dependencies = [ - "fixedbitset", - "indexmap", -] - -[[package]] -name = "pin-project" -version = "0.4.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918192b5c59119d51e0cd221f4d49dde9112824ba717369e903c97d076083d0f" -dependencies = [ - "pin-project-internal 0.4.28", -] - [[package]] name = "pin-project" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7509cc106041c40a4518d2af7a61530e1eed0e6285296a3d8c5472806ccc4a4" -dependencies = [ - "pin-project-internal 1.0.7", -] - -[[package]] -name = "pin-project-internal" -version = "0.4.28" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be26700300be6d9d23264c73211d8190e755b6b5ca7a1b28230025511b52a5e" +checksum = "576bc800220cc65dac09e99e97b08b358cfab6e17078de8dc5fee223bd2d0c08" dependencies = [ - "proc-macro2", - "quote 1.0.9", - "syn 1.0.73", + "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48c950132583b500556b1efd71d45b319029f2b71518d979fcc208e16b42426f" +checksum = "6e8fe8163d14ce7f0cdac2e040116f22eac817edabff0be91e8aff7e9accf389" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -3456,9 +3132,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905" +checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443" [[package]] name = "pin-utils" @@ -3512,9 +3188,9 @@ checksum = "57e35a3326b75e49aa85f5dc6ec15b41108cf5aee58eabb1f274dd18b73c2451" [[package]] name = "predicates-tree" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15f553275e5721409451eb85e15fd9a860a6e5ab4496eb215987502b5f5391f2" +checksum = "d7dd0fd014130206c9352efbdc92be592751b2b9274dff685348341082c6ea3d" dependencies = [ "predicates-core", "treeline", @@ -3522,34 +3198,14 @@ dependencies = [ [[package]] name = "primitive-types" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4336f4f5d5524fa60bcbd6fe626f9223d8142a50e7053e979acdf0da41ab975" -dependencies = [ - "fixed-hash 0.5.2", - "impl-codec 0.4.2", - "uint 0.8.5", -] - -[[package]] -name = "primitive-types" -version = "0.9.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2415937401cb030a2a0a4d922483f945fa068f52a7dbb22ce0fe5f2b6f6adace" +checksum = "05e4722c697a58a99d5d06a08c30821d7c082a4632198de1eaa5a6c22ef42373" dependencies = [ - "fixed-hash 0.7.0", - "impl-codec 0.5.0", + "fixed-hash", + "impl-codec", "impl-serde", - "uint 0.9.0", -] - -[[package]] -name = "proc-macro-crate" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" -dependencies = [ - "toml", + "uint", ] [[package]] @@ -3571,7 +3227,7 @@ dependencies = [ "proc-macro-error-attr", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "version_check", ] @@ -3590,86 +3246,35 @@ dependencies = [ name = "proc-macro-hack" version = "0.5.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" - -[[package]] -name = "proc-macro-nested" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" - -[[package]] -name = "proc-macro2" -version = "1.0.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038" -dependencies = [ - "unicode-xid 0.2.2", -] - -[[package]] -name = "prometheus" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d" -dependencies = [ - "cfg-if 1.0.0", - "fnv", - "lazy_static", - "parking_lot 0.11.1", - "regex 1.5.4", - "thiserror", -] - -[[package]] -name = "prost" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2" -dependencies = [ - "bytes 1.0.1", - "prost-derive", -] - -[[package]] -name = "prost-build" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" -dependencies = [ - "bytes 1.0.1", - "heck", - "itertools", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "multimap", - "petgraph", - "prost", - "prost-types", - "tempfile", - "which 4.1.0", -] +checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" [[package]] -name = "prost-derive" -version = "0.7.0" +name = "proc-macro-nested" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" + +[[package]] +name = "proc-macro2" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" +checksum = "5c7ed8b8c7b886ea3ed7dde405212185f423ab44682667c8c6dd14aa1d9f6612" dependencies = [ - "anyhow", - "itertools", - "proc-macro2", - "quote 1.0.9", - "syn 1.0.73", + "unicode-xid 0.2.2", ] [[package]] -name = "prost-types" -version = "0.7.0" +name = "prometheus" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bb" +checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d" dependencies = [ - "bytes 1.0.1", - "prost", + "cfg-if 1.0.0", + "fnv", + "lazy_static", + "parking_lot 0.11.1", + "regex 1.5.4", + "thiserror", ] [[package]] @@ -3698,12 +3303,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "radium" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "def50a86306165861203e7f84ecffbbdfdea79f0e51039b33de1e952358c47ac" - [[package]] name = "radium" version = "0.6.2" @@ -3972,9 +3571,9 @@ checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" [[package]] name = "redox_syscall" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ab49abadf3f9e1c4bc499e8845e152ad87d2ad2d30371841171169e9d75feee" +checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" dependencies = [ "bitflags", ] @@ -3997,7 +3596,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ "getrandom 0.2.3", - "redox_syscall 0.2.9", + "redox_syscall 0.2.10", ] [[package]] @@ -4017,7 +3616,7 @@ checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -4084,7 +3683,7 @@ dependencies = [ "libc", "spin", "untrusted", - "which 3.1.1", + "which", "winapi 0.3.9", ] @@ -4197,25 +3796,14 @@ dependencies = [ [[package]] name = "ruzstd" -version = "0.2.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d425143485a37727c7a46e689bbe3b883a00f42b4a52c4ac0f44855c1009b00" +checksum = "8cada0ef59efa6a5f4dc5e491f93d9f31e3fc7758df421ff1de8a706338e1100" dependencies = [ "byteorder", "twox-hash", ] -[[package]] -name = "rw-stream-sink" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020" -dependencies = [ - "futures 0.3.15", - "pin-project 0.4.28", - "static_assertions", -] - [[package]] name = "ryu" version = "1.0.5" @@ -4242,14 +3830,14 @@ dependencies = [ [[package]] name = "sc-keystore" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-trait", "derive_more", - "futures 0.3.15", + "futures", "futures-util", - "hex 0.4.3", + "hex", "merlin", "parking_lot 0.11.1", "rand 0.7.3", @@ -4257,32 +3845,32 @@ dependencies = [ "sp-application-crypto", "sp-core", "sp-keystore", - "subtle 2.4.0", + "subtle 2.4.1", ] [[package]] -name = "sc-rpc-api" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +name = "scale-info" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e62ff266e136db561a007c84569985805f84a1d5a08278e52c36aacb6e061b" dependencies = [ + "bitvec", + "cfg-if 1.0.0", "derive_more", - "futures 0.3.15", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", - "parking_lot 0.11.1", - "serde", - "serde_json", - "sp-chain-spec", - "sp-core", - "sp-rpc", - "sp-runtime", - "sp-tracing", - "sp-transaction-pool", - "sp-version", + "parity-scale-codec", + "scale-info-derive", +] + +[[package]] +name = "scale-info-derive" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b648fa291891a4c80187a25532f6a7d96b82c70353e30b868b14632b8fe043d6" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote 1.0.9", + "syn 1.0.74", ] [[package]] @@ -4303,13 +3891,13 @@ checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862" dependencies = [ "arrayref", "arrayvec 0.5.2", - "curve25519-dalek 2.1.2", + "curve25519-dalek 2.1.3", "getrandom 0.1.16", "merlin", "rand 0.7.3", "rand_core 0.5.1", "sha2 0.8.2", - "subtle 2.4.0", + "subtle 2.4.1", "zeroize", ] @@ -4412,9 +4000,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.126" +version = "1.0.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03" +checksum = "f03b9878abf6d14e6779d3f24f07b2cfa90352cfec4acc5aab8f1ac7f146fae8" dependencies = [ "serde_derive", ] @@ -4431,20 +4019,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.126" +version = "1.0.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43" +checksum = "a024926d3432516606328597e0f224a51355a493b49fdd67e9209187cbe55ecc" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "serde_json" -version = "1.0.64" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79" +checksum = "336b10da19a12ad094b59d870ebde26a45402e5b470add4b5fd03c5048a32127" dependencies = [ "itoa", "ryu", @@ -4466,7 +4054,7 @@ dependencies = [ [[package]] name = "sgx-externalities" version = "0.3.0" -source = "git+https://github.com/scs/sgx-runtime?branch=master#bb0b6a206006299ab773a375197c4846a4c83a30" +source = "git+https://github.com/integritee-network/sgx-runtime?branch=master#b8e57b6ee8eff7d6e15591879509e06bb8d5ac39" dependencies = [ "environmental", "log 0.4.14 (git+https://github.com/mesalock-linux/log-sgx)", @@ -4479,7 +4067,7 @@ dependencies = [ [[package]] name = "sgx-runtime" version = "0.8.0" -source = "git+https://github.com/scs/sgx-runtime?branch=master#bb0b6a206006299ab773a375197c4846a4c83a30" +source = "git+https://github.com/integritee-network/sgx-runtime?branch=master#b8e57b6ee8eff7d6e15591879509e06bb8d5ac39" dependencies = [ "frame-executive", "frame-support", @@ -4493,7 +4081,7 @@ dependencies = [ "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api", "sp-block-builder", "sp-consensus-aura", @@ -4510,12 +4098,12 @@ dependencies = [ [[package]] name = "sgx_alloc" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_backtrace_sys" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "cc", "sgx_build_helper", @@ -4525,12 +4113,12 @@ dependencies = [ [[package]] name = "sgx_build_helper" version = "0.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_crypto_helper" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "itertools", "libc", @@ -4544,12 +4132,12 @@ dependencies = [ [[package]] name = "sgx_demangle" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_libc" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_types", ] @@ -4557,7 +4145,7 @@ dependencies = [ [[package]] name = "sgx_serialize" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_tstd", ] @@ -4565,7 +4153,7 @@ dependencies = [ [[package]] name = "sgx_serialize_derive" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "quote 0.3.15", "sgx_serialize_derive_internals", @@ -4575,7 +4163,7 @@ dependencies = [ [[package]] name = "sgx_serialize_derive_internals" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "syn 0.11.11", ] @@ -4583,7 +4171,7 @@ dependencies = [ [[package]] name = "sgx_tprotected_fs" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_trts", "sgx_types", @@ -4592,7 +4180,7 @@ dependencies = [ [[package]] name = "sgx_trts" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_libc", "sgx_types", @@ -4601,7 +4189,7 @@ dependencies = [ [[package]] name = "sgx_tstd" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "hashbrown_tstd", "sgx_alloc", @@ -4617,12 +4205,12 @@ dependencies = [ [[package]] name = "sgx_types" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_ucrypto" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "libc", "rand_core 0.3.1", @@ -4633,7 +4221,7 @@ dependencies = [ [[package]] name = "sgx_unwind" version = "0.1.1" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_build_helper", ] @@ -4641,7 +4229,7 @@ dependencies = [ [[package]] name = "sgx_urts" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "libc", "sgx_types", @@ -4661,9 +4249,9 @@ dependencies = [ [[package]] name = "sha-1" -version = "0.9.6" +version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16" +checksum = "1a0c8611594e2ab4ebbf06ec7cbbf0a99450b8570e96cbf5188b5d5f6ef18d81" dependencies = [ "block-buffer 0.9.0", "cfg-if 1.0.0", @@ -4723,9 +4311,9 @@ dependencies = [ [[package]] name = "sharded-slab" -version = "0.1.1" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79c719719ee05df97490f80a45acfc99e5a30ce98a1e4fb67aee422745ae14e3" +checksum = "740223c51853f3145fe7c90360d2d4232f2b62e3449489c207eccde818979982" dependencies = [ "lazy_static", ] @@ -4751,21 +4339,9 @@ dependencies = [ [[package]] name = "signature" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f0242b8e50dd9accdd56170e94ca1ebd223b098eb9c83539a6e367d0f36ae68" - -[[package]] -name = "simba" -version = "0.4.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5132a955559188f3d13c9ba831e77c802ddc8782783f050ed0c52f5988b95f4c" -dependencies = [ - "approx 0.4.0", - "num-complex 0.3.1", - "num-traits", - "paste", -] +checksum = "c19772be3c4dd2ceaacf03cb41d5885f2a02c4d8804884918e3a258480803335" [[package]] name = "simba" @@ -4773,17 +4349,17 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e82063457853d00243beda9952e910b82593e4b07ae9f721b9278a99a0d3d5c" dependencies = [ - "approx 0.5.0", - "num-complex 0.4.0", + "approx", + "num-complex", "num-traits", "paste", ] [[package]] name = "slab" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f173ac3d1a7e3b28003f40de0b5ce7fe2710f9b9dc3fc38664cebee46b3b6527" +checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590" [[package]] name = "slog" @@ -4811,9 +4387,9 @@ checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" [[package]] name = "socket2" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2" +checksum = "765f090f0e423d2b55843402a07915add955e7d60657db13707a159727326cad" dependencies = [ "libc", "winapi 0.3.9", @@ -4827,21 +4403,21 @@ checksum = "4919971d141dbadaa0e82b5d369e2d7666c98e4625046140615ca363e50d4daa" dependencies = [ "base64 0.13.0", "bytes 1.0.1", - "futures 0.3.15", + "futures", "httparse", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.8.4", - "sha-1 0.9.6", + "sha-1 0.9.7", ] [[package]] name = "sp-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "hash-db", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api-proc-macro", "sp-core", "sp-runtime", @@ -4853,37 +4429,36 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "blake2-rfc", - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-application-crypto" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "max-encoded-len", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde", "sp-core", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-std", ] [[package]] name = "sp-arithmetic" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "integer-sqrt", "num-traits", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde", "sp-debug-derive", "sp-std", @@ -4892,11 +4467,11 @@ dependencies = [ [[package]] name = "sp-authorship" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-trait", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-inherents", "sp-runtime", "sp-std", @@ -4904,54 +4479,26 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api", "sp-inherents", "sp-runtime", "sp-std", ] -[[package]] -name = "sp-blockchain" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" -dependencies = [ - "futures 0.3.15", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "lru", - "parity-scale-codec 2.1.3", - "parking_lot 0.11.1", - "sp-api", - "sp-consensus", - "sp-database", - "sp-runtime", - "sp-state-machine", - "thiserror", -] - -[[package]] -name = "sp-chain-spec" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" -dependencies = [ - "serde", - "serde_json", -] - [[package]] name = "sp-consensus" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-trait", - "futures 0.3.15", + "futures", "futures-timer", - "libp2p", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parking_lot 0.11.1", "serde", "sp-api", @@ -4970,11 +4517,11 @@ dependencies = [ [[package]] name = "sp-consensus-aura" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-trait", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api", "sp-application-crypto", "sp-consensus", @@ -4987,39 +4534,38 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-arithmetic", "sp-runtime", ] [[package]] name = "sp-core" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "base58", "blake2-rfc", "byteorder", "dyn-clonable", "ed25519-dalek", - "futures 0.3.15", + "futures", "hash-db", "hash256-std-hasher", - "hex 0.4.3", + "hex", "impl-serde", "lazy_static", "libsecp256k1", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "max-encoded-len", "merlin", "num-traits", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parity-util-mem", "parking_lot 0.11.1", - "primitive-types 0.9.0", + "primitive-types", "rand 0.7.3", "regex 1.5.4", "schnorrkel", @@ -5040,44 +4586,35 @@ dependencies = [ "zeroize", ] -[[package]] -name = "sp-database" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" -dependencies = [ - "kvdb", - "parking_lot 0.11.1", -] - [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-externalities" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "environmental", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-std", "sp-storage", ] [[package]] name = "sp-finality-grandpa" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "finality-grandpa", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde", "sp-api", "sp-application-crypto", @@ -5089,12 +4626,12 @@ dependencies = [ [[package]] name = "sp-inherents" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-trait", "impl-trait-for-tuples", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-core", "sp-runtime", "sp-std", @@ -5103,24 +4640,20 @@ dependencies = [ [[package]] name = "sp-io" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/integritee-network/sgx-runtime?branch=master#b8e57b6ee8eff7d6e15591879509e06bb8d5ac39" dependencies = [ - "futures 0.3.15", + "environmental", "hash-db", - "libsecp256k1", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", - "parking_lot 0.11.1", + "log 0.4.14 (git+https://github.com/mesalock-linux/log-sgx)", + "parity-scale-codec", + "sgx-externalities", + "sgx_tstd", + "sgx_types", "sp-core", - "sp-externalities", - "sp-keystore", - "sp-maybe-compressed-blob", "sp-runtime-interface", - "sp-state-machine", "sp-std", "sp-tracing", - "sp-trie", "sp-wasm-interface", "tracing", "tracing-core", @@ -5128,20 +4661,24 @@ dependencies = [ [[package]] name = "sp-io" -version = "3.1.0" -source = "git+https://github.com/scs/sgx-runtime?branch=master#bb0b6a206006299ab773a375197c4846a4c83a30" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "environmental", + "futures", "hash-db", - "log 0.4.14 (git+https://github.com/mesalock-linux/log-sgx)", - "parity-scale-codec 2.1.3", - "sgx-externalities", - "sgx_tstd", - "sgx_types", + "libsecp256k1", + "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", + "parity-scale-codec", + "parking_lot 0.11.1", "sp-core", + "sp-externalities", + "sp-keystore", + "sp-maybe-compressed-blob", "sp-runtime-interface", + "sp-state-machine", "sp-std", "sp-tracing", + "sp-trie", "sp-wasm-interface", "tracing", "tracing-core", @@ -5149,8 +4686,8 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "lazy_static", "sp-core", @@ -5160,14 +4697,14 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-trait", "derive_more", - "futures 0.3.15", + "futures", "merlin", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parking_lot 0.11.1", "schnorrkel", "serde", @@ -5177,8 +4714,8 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "ruzstd", "zstd", @@ -5186,8 +4723,8 @@ dependencies = [ [[package]] name = "sp-offchain" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "sp-api", "sp-core", @@ -5197,15 +4734,15 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "backtrace", ] [[package]] name = "sp-rpc" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "rustc-hash", "serde", @@ -5215,15 +4752,14 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "max-encoded-len", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parity-util-mem", "paste", "rand 0.7.3", @@ -5231,18 +4767,18 @@ dependencies = [ "sp-application-crypto", "sp-arithmetic", "sp-core", - "sp-io 3.0.0", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?branch=master)", "sp-std", ] [[package]] name = "sp-runtime-interface" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "impl-trait-for-tuples", - "parity-scale-codec 2.1.3", - "primitive-types 0.9.0", + "parity-scale-codec", + "primitive-types", "sp-externalities", "sp-runtime-interface-proc-macro", "sp-std", @@ -5254,22 +4790,22 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "Inflector", - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-session" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api", "sp-core", "sp-runtime", @@ -5279,23 +4815,23 @@ dependencies = [ [[package]] name = "sp-staking" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-runtime", "sp-std", ] [[package]] name = "sp-state-machine" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "hash-db", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", @@ -5312,16 +4848,16 @@ dependencies = [ [[package]] name = "sp-std" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" [[package]] name = "sp-storage" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "impl-serde", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "ref-cast", "serde", "sp-debug-derive", @@ -5330,13 +4866,13 @@ dependencies = [ [[package]] name = "sp-timestamp" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-trait", "futures-timer", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-api", "sp-inherents", "sp-runtime", @@ -5347,12 +4883,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "erased-serde", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parking_lot 0.10.2", "serde", "serde_json", @@ -5365,28 +4901,21 @@ dependencies = [ [[package]] name = "sp-transaction-pool" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "derive_more", - "futures 0.3.15", - "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", - "serde", "sp-api", - "sp-blockchain", "sp-runtime", - "thiserror", ] [[package]] name = "sp-trie" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "hash-db", "memory-db", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-core", "sp-std", "trie-db", @@ -5395,10 +4924,10 @@ dependencies = [ [[package]] name = "sp-utils" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "futures 0.3.15", + "futures", "futures-core", "futures-timer", "lazy_static", @@ -5407,36 +4936,38 @@ dependencies = [ [[package]] name = "sp-version" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "impl-serde", - "parity-scale-codec 2.1.3", + "parity-scale-codec", + "parity-wasm 0.42.2", "serde", "sp-runtime", "sp-std", "sp-version-proc-macro", + "thiserror", ] [[package]] name = "sp-version-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "parity-scale-codec 2.1.3", - "proc-macro-crate 1.0.0", + "parity-scale-codec", + "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-wasm-interface" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "impl-trait-for-tuples", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-std", "wasmi", ] @@ -5455,13 +4986,13 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "statrs" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0c1f144861fbfd2a8cc82d564ccbf7fb3b7834d4fa128b84e9c2a73371aead" +checksum = "05bdbb8e4e78216a85785a85d3ec3183144f98d0097b9281802c019bb07a6f05" dependencies = [ - "approx 0.4.0", + "approx", "lazy_static", - "nalgebra 0.26.2", + "nalgebra", "num-traits", "rand 0.8.4", ] @@ -5490,27 +5021,28 @@ dependencies = [ "heck", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "substrate-api-client" version = "0.6.0" -source = "git+https://github.com/scs/substrate-api-client?branch=master#3c8c04cd785b383dfbacb48a374503e644d13a08" +source = "git+https://github.com/scs/substrate-api-client?branch=master#6c23e43e6b0d680c11c5c1bacd0221f681d1beee" dependencies = [ - "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "frame-metadata", "frame-support", "frame-system", - "hex 0.4.3", + "hex", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "pallet-balances", - "parity-scale-codec 2.1.3", - "primitive-types 0.6.2", - "sc-rpc-api", + "pallet-transaction-payment", + "parity-scale-codec", + "primitive-types", "serde", "serde_json", + "sp-application-crypto", "sp-core", + "sp-rpc", "sp-runtime", "sp-std", "sp-version", @@ -5534,11 +5066,11 @@ dependencies = [ [[package]] name = "substrate-client-keystore" version = "0.6.0" -source = "git+https://github.com/scs/substrate-api-client?branch=master#3c8c04cd785b383dfbacb48a374503e644d13a08" +source = "git+https://github.com/scs/substrate-api-client?branch=master#6c23e43e6b0d680c11c5c1bacd0221f681d1beee" dependencies = [ "async-trait", - "hex 0.4.3", - "parking_lot 0.10.2", + "hex", + "parking_lot 0.11.1", "sc-keystore", "serde_json", "sp-application-crypto", @@ -5550,7 +5082,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "async-std", "derive_more", @@ -5563,8 +5095,8 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" -version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "5.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "ansi_term 0.12.1", "atty", @@ -5581,7 +5113,7 @@ dependencies = [ name = "substratee-api-client-extensions" version = "0.8.0" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-core", "sp-finality-grandpa", "sp-runtime", @@ -5601,12 +5133,13 @@ dependencies = [ "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "frame-system", "geojson", - "hex 0.4.3", + "hex", + "integritee-node-runtime", "json", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "pallet-balances", - "parity-scale-codec 2.1.3", - "primitive-types 0.6.2", + "parity-scale-codec", + "primitive-types", "sc-keystore", "serde", "serde_json", @@ -5620,7 +5153,6 @@ dependencies = [ "substrate-client-keystore", "substratee-api-client-extensions", "substratee-node-primitives", - "substratee-node-runtime", "substratee-stf", "substratee-worker-api", "substratee-worker-primitives", @@ -5635,7 +5167,7 @@ dependencies = [ "frame-support", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "mockall", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde_json", "sgx_crypto_helper", "sgx_types", @@ -5660,7 +5192,7 @@ name = "substratee-get-storage-verified" version = "0.1.0" dependencies = [ "derive_more", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sgx_types", "sp-core", "sp-runtime", @@ -5674,51 +5206,18 @@ dependencies = [ name = "substratee-node-primitives" version = "0.8.0" dependencies = [ - "parity-scale-codec 2.1.3", + "integritee-node-runtime", + "parity-scale-codec", "sgx_tstd", "sp-core", "sp-runtime", - "substratee-node-runtime", -] - -[[package]] -name = "substratee-node-runtime" -version = "0.9.0" -source = "git+https://github.com/scs/substraTEE-node?branch=master#d0df8591618ca175cf03970a26b1ab1e52aef4a5" -dependencies = [ - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "pallet-aura", - "pallet-balances", - "pallet-grandpa", - "pallet-randomness-collective-flip", - "pallet-substratee-registry", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "parity-scale-codec 2.1.3", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-transaction-pool", - "sp-version", - "substrate-wasm-builder", ] [[package]] name = "substratee-ocall-api" version = "0.8.0" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sgx_types", "sp-std", "substratee-worker-primitives", @@ -5735,7 +5234,7 @@ dependencies = [ "derive_more", "frame-support", "pallet-teerex-storage", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-core", "sp-runtime", "sp-std", @@ -5752,7 +5251,7 @@ dependencies = [ name = "substratee-sidechain-primitives" version = "0.1.0" dependencies = [ - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde", "sp-core", "sp-runtime", @@ -5770,11 +5269,12 @@ dependencies = [ "env_logger 0.7.1 (git+https://github.com/mesalock-linux/env_logger-sgx)", "frame-support", "frame-system", - "hex 0.4.3", + "hex", + "integritee-node-runtime", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.14 (git+https://github.com/mesalock-linux/log-sgx)", "pallet-balances", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sc-keystore", "serde", "sgx-externalities", @@ -5782,12 +5282,11 @@ dependencies = [ "sgx_tstd", "sp-application-crypto", "sp-core", - "sp-io 3.1.0", + "sp-io 4.0.0-dev (git+https://github.com/integritee-network/sgx-runtime?branch=master)", "sp-keyring", "sp-runtime", "substrate-api-client", "substrate-client-keystore", - "substratee-node-runtime", "substratee-storage", "substratee-worker-primitives", ] @@ -5800,7 +5299,7 @@ dependencies = [ "frame-metadata", "frame-support", "hash-db", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sp-core", "sp-runtime", "sp-state-machine", @@ -5822,8 +5321,9 @@ dependencies = [ "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "frame-support", "frame-system", - "futures 0.3.15", - "hex 0.3.2", + "futures", + "hex", + "integritee-node-runtime", "ipfs-api", "jsonrpsee", "lazy_static", @@ -5831,9 +5331,9 @@ dependencies = [ "mockall", "multihash 0.8.0", "pallet-balances", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "parking_lot 0.11.1", - "primitive-types 0.9.0", + "primitive-types", "rust-crypto", "serde", "serde_derive", @@ -5850,14 +5350,13 @@ dependencies = [ "substratee-api-client-extensions", "substratee-enclave-api", "substratee-node-primitives", - "substratee-node-runtime", "substratee-settings", "substratee-stf", "substratee-worker-api", "substratee-worker-primitives", "substratee-worker-rpc-server", "thiserror", - "tokio 1.7.1", + "tokio 1.10.0", "ws 0.7.9", ] @@ -5866,7 +5365,7 @@ name = "substratee-worker-api" version = "0.8.0" dependencies = [ "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde_derive", "serde_json", "sgx_crypto_helper", @@ -5879,11 +5378,13 @@ name = "substratee-worker-primitives" version = "0.8.0" dependencies = [ "chrono", - "parity-scale-codec 2.1.3", - "primitive-types 0.9.0", + "parity-scale-codec", + "primitive-types", "serde", "serde_derive", "serde_json", + "sgx_tstd", + "sp-core", "sp-keyring", "sp-runtime", "sp-std", @@ -5896,15 +5397,15 @@ name = "substratee-worker-rpc-server" version = "0.8.0" dependencies = [ "anyhow", - "env_logger 0.8.4", + "env_logger 0.9.0", "jsonrpsee", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "serde_json", "sp-core", "substratee-enclave-api", "substratee-worker-primitives", - "tokio 1.7.1", + "tokio 1.10.0", ] [[package]] @@ -5915,9 +5416,9 @@ checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" [[package]] name = "subtle" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" @@ -5932,9 +5433,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.73" +version = "1.0.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f71489ff30030d2ae598524f61326b902466f72a0fb1a8564c001cc63425bcc7" +checksum = "1873d832550d4588c3dbc20f01361ab00bfe741048f71e3fecf145a7cc18b29c" dependencies = [ "proc-macro2", "quote 1.0.9", @@ -5952,13 +5453,13 @@ dependencies = [ [[package]] name = "synstructure" -version = "0.12.4" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" +checksum = "474aaa926faa1603c40b7885a9eaea29b444d1cb2850cb7c0e37bb1a4182f4fa" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "unicode-xid 0.2.2", ] @@ -5977,7 +5478,7 @@ dependencies = [ "cfg-if 1.0.0", "libc", "rand 0.8.4", - "redox_syscall 0.2.9", + "redox_syscall 0.2.10", "remove_dir_all", "winapi 0.3.9", ] @@ -6005,7 +5506,7 @@ version = "0.1.0" dependencies = [ "derive_more", "pallet-teerex-storage", - "parity-scale-codec 2.1.3", + "parity-scale-codec", "sgx_tstd", "sgx_types", "sp-core", @@ -6044,7 +5545,7 @@ checksum = "060d69a0afe7796bf42e9e2ff91f5ee691fb15c53d38b4b62a9a53eb23164745" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -6128,9 +5629,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.2.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b5220f05bb7de7f3f53c7c065e1199b3172696fe2db9f9c4d8ad9b4ee74c342" +checksum = "848a1e1181b9f6753b5e96a092749e29b11d19ede67dfbbd6c7dc7e0f49b5338" dependencies = [ "tinyvec_macros", ] @@ -6156,9 +5657,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.7.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fb2ed024293bb19f7a5dc54fe83bf86532a44c12a2bb8ba40d64a4509395ca2" +checksum = "01cf844b23c6131f624accf65ce0e4e9956a8bb329400ea5bcc26ae3a5c20b0b" dependencies = [ "autocfg 1.0.1", "bytes 1.0.1", @@ -6168,7 +5669,7 @@ dependencies = [ "num_cpus", "once_cell 1.8.0", "parking_lot 0.11.1", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "signal-hook-registry", "tokio-macros", "winapi 0.3.9", @@ -6176,13 +5677,13 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c49e3df43841dafb86046472506755d8501c5615673955f6aa17181125d13c37" +checksum = "54473be61f4ebe4efd09cec9bd5d16fa51d70ea0192213d754d2d500457db110" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -6192,7 +5693,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" dependencies = [ "native-tls", - "tokio 1.7.1", + "tokio 1.10.0", ] [[package]] @@ -6202,19 +5703,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" dependencies = [ "rustls", - "tokio 1.7.1", + "tokio 1.10.0", "webpki 0.21.4", ] [[package]] name = "tokio-stream" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8864d706fdb3cc0843a49647ac892720dac98a6eeb818b77190592cf4994066" +checksum = "7b2f3f698253f03119ac0102beaa64f67a67e08074d03a22d18784104543727f" dependencies = [ "futures-core", - "pin-project-lite 0.2.6", - "tokio 1.7.1", + "pin-project-lite 0.2.7", + "tokio 1.10.0", ] [[package]] @@ -6242,8 +5743,8 @@ dependencies = [ "futures-io", "futures-sink", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "pin-project-lite 0.2.6", - "tokio 1.7.1", + "pin-project-lite 0.2.7", + "tokio 1.10.0", ] [[package]] @@ -6269,7 +5770,7 @@ checksum = "09adeb8c97449311ccd28a427f96fb563e7fd31aabf994189879d9da2394b89d" dependencies = [ "cfg-if 1.0.0", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "tracing-attributes", "tracing-core", ] @@ -6282,7 +5783,7 @@ checksum = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -6300,7 +5801,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" dependencies = [ - "pin-project 1.0.7", + "pin-project", "tracing", ] @@ -6327,9 +5828,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.2.18" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa5553bf0883ba7c9cbe493b085c29926bd41b66afc31ff72cf17ff4fb60dcd5" +checksum = "ab69019741fca4d98be3c62d2b75254528b5432233fd8a4d2739fec20278de48" dependencies = [ "ansi_term 0.12.1", "chrono", @@ -6355,12 +5856,12 @@ checksum = "a7f741b240f1a48843f9b8e0444fb55fb2a4ff67293b50a9179dfd5ea67f8d41" [[package]] name = "trie-db" -version = "0.22.5" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd81fe0c8bc2b528a51c9d2c31dae4483367a26a723a3c9a4a8120311d7774e3" +checksum = "9eac131e334e81b6b3be07399482042838adcd7957aa0010231d0813e39e02fa" dependencies = [ "hash-db", - "hashbrown 0.9.1", + "hashbrown 0.11.2", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-hex", "smallvec 1.6.1", @@ -6383,12 +5884,12 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "twox-hash" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" +checksum = "1f559b464de2e2bdabcac6a210d12e9b5a5973c251e102c44c585c71d51bd78e" dependencies = [ - "cfg-if 0.1.10", - "rand 0.7.3", + "cfg-if 1.0.0", + "rand 0.3.23", "static_assertions", ] @@ -6400,7 +5901,7 @@ checksum = "345426c7406aa355b60c5007c79a2d1f5b605540072795222f17f6443e6a9c6f" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -6417,25 +5918,13 @@ checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" [[package]] name = "uint" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9db035e67dfaf7edd9aebfe8676afcd63eed53c8a4044fed514c8cccf1835177" -dependencies = [ - "byteorder", - "crunchy", - "rustc-hex", - "static_assertions", -] - -[[package]] -name = "uint" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e11fe9a9348741cf134085ad57c249508345fe16411b3d7fb4ff2da2f1d6382e" +checksum = "6470ab50f482bde894a037a57064480a246dbfdd5960bd65a44824693f08da5f" dependencies = [ "byteorder", "crunchy", - "hex 0.4.3", + "hex", "static_assertions", ] @@ -6450,12 +5939,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0" -dependencies = [ - "matches", -] +checksum = "246f4c42e67e7a4e3c6106ff716a5d067d4132a642840b242e357e468a2a0085" [[package]] name = "unicode-normalization" @@ -6468,9 +5954,9 @@ dependencies = [ [[package]] name = "unicode-segmentation" -version = "1.7.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796" +checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" [[package]] name = "unicode-width" @@ -6559,12 +6045,6 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - [[package]] name = "waker-fn" version = "1.1.0" @@ -6606,9 +6086,9 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasm-bindgen" -version = "0.2.74" +version = "0.2.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54ee1d4ed486f78874278e63e4069fc1ab9f6a18ca492076ffb90c5eb2997fd" +checksum = "b608ecc8f4198fe8680e2ed18eccab5f0cd4caaf3d83516fa5fb2e927fda2586" dependencies = [ "cfg-if 1.0.0", "wasm-bindgen-macro", @@ -6616,24 +6096,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.74" +version = "0.2.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b33f6a0694ccfea53d94db8b2ed1c3a8a4c86dd936b13b9f0a15ec4a451b900" +checksum = "580aa3a91a63d23aac5b6b267e2d13cb4f363e31dce6c352fca4752ae12e479f" dependencies = [ "bumpalo", "lazy_static", "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.24" +version = "0.4.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fba7978c679d53ce2d0ac80c8c175840feb849a161664365d1287b41f2e67f1" +checksum = "16646b21c3add8e13fdb8f20172f8a28c3dbf62f45406bcff0233188226cfe0c" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -6643,9 +6123,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.74" +version = "0.2.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "088169ca61430fe1e58b8096c24975251700e7b1f6fd91cc9d59b04fb9b18bd4" +checksum = "171ebf0ed9e1458810dfcb31f2e766ad6b3a89dbda42d8901f2b268277e5f09c" dependencies = [ "quote 1.0.9", "wasm-bindgen-macro-support", @@ -6653,22 +6133,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.74" +version = "0.2.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be2241542ff3d9f241f5e2cb6dd09b37efe786df8851c54957683a49f0987a97" +checksum = "6c2657dd393f03aa2a659c25c6ae18a13a4048cebd220e147933ea837efc589f" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.74" +version = "0.2.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7cff876b8f18eed75a66cf49b65e7f967cb354a7aa16003fb55dbfd25b44b4f" +checksum = "2e0c4a743a309662d45f4ede961d7afa4ba4131a59a639f29b0069c3798bbcc2" [[package]] name = "wasm-gc-api" @@ -6687,7 +6167,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ - "futures 0.3.15", + "futures", "js-sys", "parking_lot 0.11.1", "pin-utils", @@ -6722,9 +6202,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.51" +version = "0.3.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e828417b379f3df7111d3a2a9e5753706cae29c41f7c4029ee9fd77f3e09e582" +checksum = "01c70a82d842c9979078c772d4a1344685045f1a5628f677c2b2eab4dd7d2696" dependencies = [ "js-sys", "wasm-bindgen", @@ -6769,16 +6249,6 @@ dependencies = [ "libc", ] -[[package]] -name = "which" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b55551e42cbdf2ce2bedd2203d0cc08dba002c27510f86dab6d0ce304cba3dfe" -dependencies = [ - "either", - "libc", -] - [[package]] name = "winapi" version = "0.2.8" @@ -6884,9 +6354,9 @@ checksum = "e66366e18dc58b46801afbf2ca7661a9f59cc8c5962c29892b6039b4f86fa992" [[package]] name = "zeroize" -version = "1.3.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" +checksum = "377db0846015f7ae377174787dd452e1c5f5a9050bc6f954911d01f116daa0cd" dependencies = [ "zeroize_derive", ] @@ -6899,7 +6369,7 @@ checksum = "a2c1e130bebaeab2f23886bf9acbaca14b092408c452543c857f66399cd6dab1" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "synstructure", ] diff --git a/Cargo.toml b/Cargo.toml index 419ecec814..0143f41a54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,9 @@ members = [ #[patch."https://github.com/scs/substrate-api-client"] #substrate-api-client = { path = "../substrate-api-client" } -#substrate-client-keystore = { path = "../substrate-api-client/client-keystore" } \ No newline at end of file +#substrate-client-keystore = { path = "../substrate-api-client/client-keystore" } + +#[patch."https://github.com/integritee-network/sgx-runtime"] +#sgx-runtime = { path = "../sgx-runtime/runtime", default-features = false} +#sp-io = { path = "../sgx-runtime/substrate-sgx/sp-io", default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"]} +#sgx-externalities = { path = "../sgx-runtime/substrate-sgx/externalities", default-features = false} diff --git a/Makefile b/Makefile index 3b78247cc3..e4fdbea54e 100755 --- a/Makefile +++ b/Makefile @@ -220,6 +220,16 @@ clean: @echo "cargo clean in root directory" @cargo clean +.PHONY: update +update: + @echo "Running cargo update.." + @cd enclave && cargo update + @cd enclave && cargo update -p sp-std --precise f651d45ce5742bc60fe8ae518c035d1638ae83d2 + @cd enclave && cargo update -p sgx_tstd --precise 7c07ce0bfbacd3f4f2af53a2cdef9539018be73c + @cargo update + @cargo update -p sp-std --precise f651d45ce5742bc60fe8ae518c035d1638ae83d2 + @cargo update -p sgx_tstd --precise 7c07ce0bfbacd3f4f2af53a2cdef9539018be73c + mrenclave: @$(SGX_ENCLAVE_SIGNER) dump -enclave ./bin/enclave.signed.so -dumpfile df.out && ./extract_identity < df.out && rm df.out diff --git a/client/Cargo.toml b/client/Cargo.toml index 418bdc68c0..1610d5cef9 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -14,88 +14,33 @@ tiny-bip39 = "0.6.2" serde_json = "1.0" clap = "2.33" clap-nested = "0.3.1" -primitive-types = { version = "0.6.1", default-features = false, features = ["codec"] } +primitive-types = { version = "0.10.1", default-features = false, features = ["codec"] } base58 = "0.1" chrono = "*" blake2-rfc = { version = "0.2.18", default-features = false} geojson = "0.17" ws = { version = "0.7", features = ["ssl"] } +serde = { version = "1.0", features = ["derive"] } +codec = { version = "2.0.0", package = "parity-scale-codec", features = ["derive"] } sgx_crypto_helper = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -[dependencies.substrate-api-client] -git = "https://github.com/scs/substrate-api-client" -branch = "master" - -[dependencies.substrate-client-keystore] -git = "https://github.com/scs/substrate-api-client" -branch = "master" - -[dependencies.serde] -features = ["derive"] -version = "1.0" - -[dependencies.codec] -default-features = false -package = "parity-scale-codec" -features = ["derive"] -version = "2.0.0" - -[dependencies.sp-runtime] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.sc-keystore] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.pallet-balances] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features=false - -[dependencies.frame-system] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features=false - -[dependencies.my-node-runtime] -git = "https://github.com/scs/substraTEE-node" -branch = "master" -package = "substratee-node-runtime" - -[dependencies.substratee-worker-primitives] -path = "../primitives/worker" - -[dependencies.substratee-node-primitives] -path = "../primitives/node" - -[dependencies.substratee-api-client-extensions] -path = "../primitives/api-client-extensions" - -[dependencies.substratee-stf] -path = "../stf" - -[dependencies.substratee-worker-api] -path = "../worker/rpc/client" - -[dependencies.sp-keyring] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.sp-application-crypto] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.sp-core] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -#[patch.crates-io] -#ed25519-dalek = { git = "https://github.com/scs/ed25519-dalek.git", branch = "no_std_sgx"} \ No newline at end of file +# scs / integritee +substrate-api-client = { features = ["ws-client"], git = "https://github.com/scs/substrate-api-client", branch = "master" } +substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client", branch = "master" } +my-node-runtime = { git = "https://github.com/integritee-network/integritee-node", branch = "master", package = "integritee-node-runtime" } + +# substrate dependencies +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sc-keystore = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-keyring = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-application-crypto = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } + +#local dependencies +substratee-node-primitives = { path = "../primitives/node" } +substratee-worker-primitives = { path = "../primitives/worker" } +substratee-api-client-extensions = { path = "../primitives/api-client-extensions" } +substratee-stf = { path = "../stf" } +substratee-worker-api = { path = "../worker/rpc/client" } \ No newline at end of file diff --git a/client/src/main.rs b/client/src/main.rs index 7fbc3e6d94..40cc38faef 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -40,7 +40,7 @@ use clap_nested::{Command, Commander}; use codec::{Decode, Encode}; use log::*; use my_node_runtime::{ - substratee_registry::Request, AccountId, BalancesCall, Call, Event, Hash, Signature, + pallet_teerex::Request, AccountId, BalancesCall, Call, Event, Hash, Signature, }; use sp_core::{crypto::Ss58Codec, sr25519 as sr25519_core, Pair, H256}; @@ -51,15 +51,17 @@ use sp_runtime::{ use std::{convert::TryFrom, result::Result as StdResult, sync::mpsc::channel, thread}; use substrate_api_client::{ compose_extrinsic, compose_extrinsic_offline, - events::EventsDecoder, extrinsic::xt_primitives::{GenericAddress, UncheckedExtrinsicV4}, - node_metadata::Metadata, + rpc::{ + ws_client::{EventsDecoder, Subscriber}, + WsRpcClient, + }, utils::FromHexString, - Api, XtStatus, + Api, Metadata, RpcClient, XtStatus, }; use substrate_client_keystore::{KeystoreExt, LocalKeystore}; -use substratee_api_client_extensions::{SubstrateeRegistryApi, TEEREX}; +use substratee_api_client_extensions::{PalletTeerexApi, TEEREX}; use substratee_stf::{ShardIdentifier, TrustedCallSigned, TrustedOperation}; use substratee_worker_api::direct_client::{DirectApi, DirectClient as DirectWorkerApi}; use substratee_worker_primitives::{DirectRequestStatus, RpcRequest, RpcResponse, RpcReturnValue}; @@ -423,14 +425,14 @@ fn main() { } } -fn get_chain_api(matches: &ArgMatches<'_>) -> Api { +fn get_chain_api(matches: &ArgMatches<'_>) -> Api { let url = format!( "{}:{}", matches.value_of("node-url").unwrap(), matches.value_of("node-port").unwrap() ); info!("connecting to {}", url); - Api::::new(url).unwrap() + Api::::new(WsRpcClient::new(&url)).unwrap() } fn perform_trusted_operation(matches: &ArgMatches<'_>, top: &TrustedOperation) -> Option> { @@ -691,11 +693,11 @@ fn listen(matches: &ArgMatches<'_>) { } } },*/ - Event::SubstrateeRegistry(ee) => { + Event::Teerex(ee) => { println!(">>>>>>>>>> substraTEE event: {:?}", ee); count += 1; match &ee { - my_node_runtime::substratee_registry::RawEvent::AddedEnclave( + my_node_runtime::pallet_teerex::RawEvent::AddedEnclave( accountid, url, ) => { @@ -706,12 +708,12 @@ fn listen(matches: &ArgMatches<'_>) { .unwrap_or_else(|_| "error".to_string()) ); }, - my_node_runtime::substratee_registry::RawEvent::RemovedEnclave( + my_node_runtime::pallet_teerex::RawEvent::RemovedEnclave( accountid, ) => { println!("RemovedEnclave: {:?}", accountid); }, - my_node_runtime::substratee_registry::RawEvent::UpdatedIpfsHash( + my_node_runtime::pallet_teerex::RawEvent::UpdatedIpfsHash( shard, idx, ipfs_hash, @@ -723,15 +725,13 @@ fn listen(matches: &ArgMatches<'_>) { ipfs_hash ); }, - my_node_runtime::substratee_registry::RawEvent::Forwarded( - shard, - ) => { + my_node_runtime::pallet_teerex::RawEvent::Forwarded(shard) => { println!( "Forwarded request for shard {}", shard.encode().to_base58() ); }, - my_node_runtime::substratee_registry::RawEvent::CallConfirmed( + my_node_runtime::pallet_teerex::RawEvent::CallConfirmed( accountid, call_hash, ) => { @@ -740,7 +740,7 @@ fn listen(matches: &ArgMatches<'_>) { accountid, call_hash ); }, - my_node_runtime::substratee_registry::RawEvent::BlockConfirmed( + my_node_runtime::pallet_teerex::RawEvent::BlockConfirmed( accountid, block_hash, ) => { @@ -749,12 +749,12 @@ fn listen(matches: &ArgMatches<'_>) { accountid, block_hash ); }, - my_node_runtime::substratee_registry::RawEvent::ShieldFunds( + my_node_runtime::pallet_teerex::RawEvent::ShieldFunds( incognito_account, ) => { println!("ShieldFunds for {:?}", incognito_account); }, - my_node_runtime::substratee_registry::RawEvent::UnshieldedFunds( + my_node_runtime::pallet_teerex::RawEvent::UnshieldedFunds( public_account, ) => { println!("UnshieldFunds for {:?}", public_account); @@ -770,10 +770,11 @@ fn listen(matches: &ArgMatches<'_>) { } } -// subscribes to he substratee_registry events of type CallConfirmed -pub fn subscribe_to_call_confirmed(api: Api

) -> H256 +// subscribes to he pallet_teerex events of type CallConfirmed +pub fn subscribe_to_call_confirmed(api: Api) -> H256 where MultiSignature: From, + Client: RpcClient + Subscriber + Send, { let (events_in, events_out) = channel(); @@ -794,8 +795,8 @@ where if let Ok(evts) = _events { for evr in &evts { info!("received event {:?}", evr.event); - if let Event::SubstrateeRegistry(pe) = &evr.event { - if let my_node_runtime::substratee_registry::RawEvent::CallConfirmed( + if let Event::Teerex(pe) = &evr.event { + if let my_node_runtime::pallet_teerex::RawEvent::CallConfirmed( sender, payload, ) = &pe @@ -803,7 +804,7 @@ where println!("[+] Received confirm call from {}", sender); return payload.clone().to_owned() } else { - debug!("received unknown event from SubstraTeeRegistry: {:?}", evr.event) + debug!("received unknown event from Teerex: {:?}", evr.event) } } } diff --git a/enclave/Cargo.lock b/enclave/Cargo.lock index 9646b7183b..342b5210ab 100644 --- a/enclave/Cargo.lock +++ b/enclave/Cargo.lock @@ -14,42 +14,27 @@ dependencies = [ [[package]] name = "aes" -version = "0.3.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54eb1d8fe354e5fc611daf4f2ea97dd45a765f4f1e4512306ec183ae2e8f20c9" +checksum = "495ee669413bfbe9e8cace80f4d3d78e6d8c8d99579f97fb93bde351b185f2d4" dependencies = [ - "aes-soft", - "aesni", - "block-cipher-trait", -] - -[[package]] -name = "aes-soft" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfd7e7ae3f9a1fb5c03b389fc6bb9a51400d0c13053f0dca698c832bfd893a0d" -dependencies = [ - "block-cipher-trait", - "byteorder", - "opaque-debug 0.2.3", + "cfg-if", + "cipher", + "cpufeatures", + "opaque-debug 0.3.0", ] [[package]] -name = "aesni" -version = "0.6.0" +name = "ahash" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f70a6b5f971e473091ab7cfb5ffac6cde81666c4556751d8d5620ead8abf100" +checksum = "43bb833f0bf979d8475d38fbf09ed3b8a55e1885fe93ad3f93239fc6a4f17b98" dependencies = [ - "block-cipher-trait", - "opaque-debug 0.2.3", + "getrandom", + "once_cell 1.8.0", + "version_check", ] -[[package]] -name = "ahash" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e" - [[package]] name = "aho-corasick" version = "0.7.10" @@ -136,9 +121,9 @@ checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" [[package]] name = "bitflags" -version = "1.2.1" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" +checksum = "2da1976d75adbe5fbc88130ecd119529cf1cc6a93ae1546d8696ee66f0d21af1" [[package]] name = "bitvec" @@ -206,15 +191,6 @@ dependencies = [ "generic-array 0.14.4", ] -[[package]] -name = "block-cipher-trait" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c924d49bd09e7c06003acda26cd9742e796e34282ec6c1189404dee0c1f4774" -dependencies = [ - "generic-array 0.12.4", -] - [[package]] name = "block-padding" version = "0.1.5" @@ -250,15 +226,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "cc" -version = "1.0.68" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a72c244c1ff497a746a7e1fb3d14bd08420ecda70c8f25c7112f2781652d787" - -[[package]] -name = "cfg-if" -version = "0.1.10" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" +checksum = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2" [[package]] name = "cfg-if" @@ -319,6 +289,15 @@ dependencies = [ "unsigned-varint", ] +[[package]] +name = "cipher" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" +dependencies = [ + "generic-array 0.14.4", +] + [[package]] name = "constant_time_eq" version = "0.1.5" @@ -358,27 +337,27 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "2.1.2" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "434e1720189a637d44fe464f4df1e6eb900b4835255b14354497c78af37d9bb8" +checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216" dependencies = [ "byteorder", "digest 0.8.1", "rand_core", - "subtle 2.4.0", + "subtle 2.4.1", "zeroize", ] [[package]] name = "curve25519-dalek" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3" +checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" dependencies = [ "byteorder", "digest 0.9.0", "rand_core", - "subtle 2.4.0", + "subtle 2.4.1", "zeroize", ] @@ -398,7 +377,7 @@ dependencies = [ "proc-macro2", "quote 1.0.9", "rustc_version 0.3.3", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -421,9 +400,9 @@ dependencies = [ [[package]] name = "ed25519" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d0860415b12243916284c67a9be413e044ee6668247b99ba26d94b2bc06c8f6" +checksum = "4620d40f6d2601794401d6dd95a5cf69b6c157852539470eeda433a99b3c0efc" dependencies = [ "signature", ] @@ -434,7 +413,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" dependencies = [ - "curve25519-dalek 3.1.0", + "curve25519-dalek 3.2.0", "ed25519", "rand", "sha2 0.9.5", @@ -473,14 +452,15 @@ checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" [[package]] name = "finality-grandpa" -version = "0.14.1" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74a1bfdcc776e63e49f741c7ce6116fa1b887e8ac2e3ccb14dd4aa113e54feb9" +checksum = "c832d0ed507622c7cb98e9b7f10426850fc9d38527ab8071778dcc3a81d45875" dependencies = [ "either", - "futures 0.3.15", + "futures 0.3.16", "num-traits 0.2.14", "parity-scale-codec", + "scale-info", ] [[package]] @@ -500,8 +480,8 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "frame-executive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -515,8 +495,8 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "14.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-core", @@ -525,15 +505,14 @@ dependencies = [ [[package]] name = "frame-support" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "bitflags", "frame-metadata", "frame-support-procedural", "impl-trait-for-tuples", "log", - "max-encoded-len", "parity-scale-codec", "paste", "smallvec", @@ -549,42 +528,42 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "Inflector", "frame-support-procedural-tools", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "frame-support-procedural-tools" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "frame-system" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -599,8 +578,8 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-api", @@ -629,17 +608,17 @@ dependencies = [ [[package]] name = "futures" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e7e43a803dae2fa37c1f6a8fe121e1f7bf9548b4dfc0522a42f34145dadfc27" +checksum = "1adc00f486adfc9ce99f77d717836f0c5aa84965eb0b4f051f4e83f7cab53f8b" dependencies = [ - "futures-channel 0.3.15", - "futures-core 0.3.15", - "futures-executor 0.3.15", - "futures-io 0.3.15", - "futures-sink 0.3.15", - "futures-task 0.3.15", - "futures-util 0.3.15", + "futures-channel 0.3.16", + "futures-core 0.3.16", + "futures-executor 0.3.16", + "futures-io 0.3.16", + "futures-sink 0.3.16", + "futures-task 0.3.16", + "futures-util 0.3.16", ] [[package]] @@ -654,12 +633,12 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e682a68b29a882df0545c143dc3646daefe80ba479bcdede94d5a703de2871e2" +checksum = "74ed2411805f6e4e3d9bc904c95d5d423b89b3b25dc0250aa74729de20629ff9" dependencies = [ - "futures-core 0.3.15", - "futures-sink 0.3.15", + "futures-core 0.3.16", + "futures-sink 0.3.16", ] [[package]] @@ -672,9 +651,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0402f765d8a89a26043b889b26ce3c4679d268fa6bb22cd7c6aad98340e179d1" +checksum = "af51b1b4a7fdff033703db39de8802c673eb91855f2e0d47dcf3bf2c0ef01f99" [[package]] name = "futures-executor" @@ -689,13 +668,13 @@ dependencies = [ [[package]] name = "futures-executor" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "badaa6a909fac9e7236d0620a2f57f7664640c56575b71a7552fbd68deafab79" +checksum = "4d0d535a57b87e1ae31437b892713aee90cd2d7b0ee48727cd11fc72ef54761c" dependencies = [ - "futures-core 0.3.15", - "futures-task 0.3.15", - "futures-util 0.3.15", + "futures-core 0.3.16", + "futures-task 0.3.16", + "futures-util 0.3.16", ] [[package]] @@ -708,9 +687,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acc499defb3b348f8d8f3f66415835a9131856ff7714bf10dadfc4ec4bdb29a1" +checksum = "0b0e06c393068f3a6ef246c75cdca793d6a46347e75286933e5e75fd2fd11582" [[package]] name = "futures-macro" @@ -720,20 +699,20 @@ dependencies = [ "proc-macro-hack", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "futures-macro" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c40298486cdf52cc00cd6d6987892ba502c7656a16a4192a9992b1ccedd121" +checksum = "c54913bae956fb8df7f4dc6fc90362aa72e69148e3f39041fbe8742d21e0ac57" dependencies = [ "autocfg 1.0.1", "proc-macro-hack", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -743,24 +722,24 @@ source = "git+https://github.com/mesalock-linux/futures-rs-sgx#d54882f24ddf7d613 [[package]] name = "futures-sink" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a57bead0ceff0d6dde8f465ecd96c9338121bb7717d3e7b108059531870c4282" +checksum = "c0f30aaa67363d119812743aa5f33c201a7a66329f97d1a887022971feea4b53" [[package]] name = "futures-task" version = "0.3.8" source = "git+https://github.com/mesalock-linux/futures-rs-sgx#d54882f24ddf7d61327a067b2f608d6940a36444" dependencies = [ - "once_cell", + "once_cell 1.4.0", "sgx_tstd", ] [[package]] name = "futures-task" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a16bef9fc1a4dddb5bee51c989e3fbba26569cbb0e31f5b303c184e3dd33dae" +checksum = "bbe54a98670017f3be909561f6ad13e810d9a51f3f061b902062ca3da80799f2" [[package]] name = "futures-timer" @@ -790,23 +769,23 @@ dependencies = [ [[package]] name = "futures-util" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feb5c238d27e2bf94ffdfd27b2c29e3df4a68c4193bb6427384259e2bf191967" +checksum = "67eb846bfd58e44a8481a00049e82c43e0ccb5d61f8dc071057cb19249dd4d78" dependencies = [ "autocfg 1.0.1", - "futures-channel 0.3.15", - "futures-core 0.3.15", - "futures-io 0.3.15", - "futures-macro 0.3.15", - "futures-sink 0.3.15", - "futures-task 0.3.15", + "futures-channel 0.3.16", + "futures-core 0.3.16", + "futures-io 0.3.16", + "futures-macro 0.3.16", + "futures-sink 0.3.16", + "futures-task 0.3.16", "memchr 2.4.0", "pin-project-lite", "pin-utils", "proc-macro-hack", "proc-macro-nested", - "slab 0.4.3", + "slab 0.4.4", ] [[package]] @@ -828,6 +807,17 @@ dependencies = [ "version_check", ] +[[package]] +name = "getrandom" +version = "0.2.3" +source = "git+https://github.com/integritee-network/getrandom-sgx?branch=update-v2.3#0a4af01fe1df0e6200192e7a709fd18da413466e" +dependencies = [ + "cfg-if", + "sgx_libc", + "sgx_trts", + "sgx_tstd", +] + [[package]] name = "hash-db" version = "0.15.2" @@ -845,9 +835,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.9.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" dependencies = [ "ahash", ] @@ -855,7 +845,7 @@ dependencies = [ [[package]] name = "hashbrown_tstd" version = "0.9.0" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "hex" @@ -901,9 +891,9 @@ dependencies = [ [[package]] name = "impl-codec" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df170efa359aebdd5cb7fe78edcc67107748e4737bdca8a8fb40d15ea7a877ed" +checksum = "161ebdfec3c8e3b52bf61c4f3550a1eea4f9579d10dc1b936f3171ebdcd6c443" dependencies = [ "parity-scale-codec", ] @@ -914,7 +904,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b47ca4d2b6931707a55fce5cf66aff80e2178c8b63bbb4ecb5695cbc870ddf6f" dependencies = [ - "serde 1.0.126", + "serde 1.0.127", ] [[package]] @@ -925,16 +915,16 @@ checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "instant" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ec" +checksum = "bee0328b1209d157ef001c94dd85b4f8f64139adb0eac2659f4b08382b2f474d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -960,9 +950,9 @@ dependencies = [ [[package]] name = "itertools" -version = "0.8.2" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f56a2d0bc861f9165be4eb3442afd3c236d8a98afd426f65d92324ae1091a484" +checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" dependencies = [ "either", ] @@ -984,7 +974,7 @@ checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" [[package]] name = "jsonrpc-core" version = "16.1.0" -source = "git+https://github.com/scs/jsonrpc?branch=no_std#9c9f399f801f68636e56c973654424f2ac2747fb" +source = "git+https://github.com/scs/jsonrpc?branch=no_std#694656d8153005de90c849fce2633586849846e4" dependencies = [ "futures 0.3.8", "log", @@ -1011,9 +1001,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6" +checksum = "a7f823d141fe0a24df1e23b4af4e3c7ba9e5966ec514ea068c93024aa7deb765" [[package]] name = "libsecp256k1" @@ -1027,7 +1017,7 @@ dependencies = [ "hmac-drbg", "rand", "sha2 0.8.2", - "subtle 2.4.0", + "subtle 2.4.1", "typenum", ] @@ -1053,32 +1043,10 @@ name = "log" version = "0.4.14" source = "git+https://github.com/mesalock-linux/log-sgx#2ca9039a9ebba0ed90ed2ad57425917d4b3a2a24" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "sgx_tstd", ] -[[package]] -name = "max-encoded-len" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" -dependencies = [ - "impl-trait-for-tuples", - "max-encoded-len-derive", - "parity-scale-codec", - "primitive-types", -] - -[[package]] -name = "max-encoded-len-derive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote 1.0.9", - "syn 1.0.73", -] - [[package]] name = "memchr" version = "2.2.1" @@ -1097,9 +1065,9 @@ checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" [[package]] name = "memory-db" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "814bbecfc0451fc314eeea34f05bbcd5b98a7ad7af37faee088b86a1e633f1d4" +checksum = "de006e09d04fc301a5f7e817b75aa49801c4479a8af753764416b085337ddcc5" dependencies = [ "hash-db", "hashbrown", @@ -1244,12 +1212,11 @@ dependencies = [ [[package]] name = "ofb" -version = "0.1.1" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a877c7cc0b1801e45e3a71a799f50d8e4707ffb36faa06998f0a479b54bb894" +checksum = "35d2a3c02404e3c38c5ecdce5d1bb1af4b25234ace10ad20045274baa16f8726" dependencies = [ - "block-cipher-trait", - "stream-cipher", + "cipher", ] [[package]] @@ -1260,6 +1227,12 @@ dependencies = [ "sgx_tstd", ] +[[package]] +name = "once_cell" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" + [[package]] name = "opaque-debug" version = "0.2.3" @@ -1274,8 +1247,8 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "pallet-aura" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1290,8 +1263,8 @@ dependencies = [ [[package]] name = "pallet-authorship" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1304,13 +1277,12 @@ dependencies = [ [[package]] name = "pallet-balances" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", "log", - "max-encoded-len", "parity-scale-codec", "sp-runtime", "sp-std", @@ -1318,8 +1290,8 @@ dependencies = [ [[package]] name = "pallet-grandpa" -version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1339,8 +1311,8 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1352,8 +1324,8 @@ dependencies = [ [[package]] name = "pallet-session" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1371,8 +1343,8 @@ dependencies = [ [[package]] name = "pallet-sudo" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1392,8 +1364,8 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1408,8 +1380,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "frame-support", "frame-system", @@ -1423,8 +1395,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -1434,36 +1406,37 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "2.1.3" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b310f220c335f9df1b3d2e9fbe3890bbfeef5030dad771620f48c5c229877cd3" +checksum = "8975095a2a03bbbdc70a74ab11a4f76a6d0b84680d87c68d722531b0ac28e8a9" dependencies = [ "arrayvec 0.7.1", "bitvec", "byte-slice-cast", + "impl-trait-for-tuples", "parity-scale-codec-derive", - "serde 1.0.126", + "serde 1.0.127", ] [[package]] name = "parity-scale-codec-derive" -version = "2.1.3" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81038e13ca2c32587201d544ea2e6b6c47120f1e4eae04478f9f60b6bcb89145" +checksum = "40dbbfef7f0a1143c5b06e0d76a6278e25dac0bc1af4be51a0fbb73f07e7ad09" dependencies = [ "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "parity-util-mem" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "664a8c6b8e62d8f9f2f937e391982eb433ab285b4cd9545b342441e04a906e42" +checksum = "7ad6f1acec69b95caf435bbd158d486e5a0a44fcf51531e84922c59ff09e8457" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "hashbrown", "impl-trait-for-tuples", "parity-util-mem-derive", @@ -1478,7 +1451,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ "proc-macro2", - "syn 1.0.73", + "syn 1.0.74", "synstructure", ] @@ -1499,7 +1472,7 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa7a782938e745763fe6907fc6ba86946d72f49fe7e21de074e08128a99fb018" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "instant", "libc", "redox_syscall", @@ -1524,9 +1497,9 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905" +checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443" [[package]] name = "pin-utils" @@ -1542,9 +1515,9 @@ checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" [[package]] name = "primitive-types" -version = "0.9.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2415937401cb030a2a0a4d922483f945fa068f52a7dbb22ce0fe5f2b6f6adace" +checksum = "05e4722c697a58a99d5d06a08c30821d7c082a4632198de1eaa5a6c22ef42373" dependencies = [ "fixed-hash", "impl-codec", @@ -1576,9 +1549,9 @@ checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" [[package]] name = "proc-macro2" -version = "1.0.27" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038" +checksum = "5c7ed8b8c7b886ea3ed7dde405212185f423ab44682667c8c6dd14aa1d9f6612" dependencies = [ "unicode-xid 0.2.2", ] @@ -1589,7 +1562,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fnv", "lazy_static", "parking_lot", @@ -1670,9 +1643,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ab49abadf3f9e1c4bc499e8845e152ad87d2ad2d30371841171169e9d75feee" +checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" dependencies = [ "bitflags", ] @@ -1694,7 +1667,7 @@ checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -1806,6 +1779,30 @@ dependencies = [ "rustc_version 0.2.3", ] +[[package]] +name = "scale-info" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e62ff266e136db561a007c84569985805f84a1d5a08278e52c36aacb6e061b" +dependencies = [ + "cfg-if", + "derive_more", + "parity-scale-codec", + "scale-info-derive", +] + +[[package]] +name = "scale-info-derive" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b648fa291891a4c80187a25532f6a7d96b82c70353e30b868b14632b8fe043d6" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote 1.0.9", + "syn 1.0.74", +] + [[package]] name = "schnorrkel" version = "0.9.1" @@ -1814,11 +1811,11 @@ checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862" dependencies = [ "arrayref", "arrayvec 0.5.2", - "curve25519-dalek 2.1.2", + "curve25519-dalek 2.1.3", "merlin", "rand_core", "sha2 0.8.2", - "subtle 2.4.0", + "subtle 2.4.1", "zeroize", ] @@ -1891,9 +1888,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.126" +version = "1.0.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03" +checksum = "f03b9878abf6d14e6779d3f24f07b2cfa90352cfec4acc5aab8f1ac7f146fae8" [[package]] name = "serde-big-array" @@ -1911,7 +1908,7 @@ source = "git+https://github.com/mesalock-linux/serde-sgx#db0226f1d5d70fca6b96af dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -1927,19 +1924,19 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.64" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79" +checksum = "336b10da19a12ad094b59d870ebde26a45402e5b470add4b5fd03c5048a32127" dependencies = [ "itoa 0.4.7", "ryu", - "serde 1.0.126", + "serde 1.0.127", ] [[package]] name = "sgx-externalities" version = "0.3.0" -source = "git+https://github.com/scs/sgx-runtime?branch=master#bb0b6a206006299ab773a375197c4846a4c83a30" +source = "git+https://github.com/integritee-network/sgx-runtime?branch=master#b8e57b6ee8eff7d6e15591879509e06bb8d5ac39" dependencies = [ "environmental", "log", @@ -1952,7 +1949,7 @@ dependencies = [ [[package]] name = "sgx-runtime" version = "0.8.0" -source = "git+https://github.com/scs/sgx-runtime?branch=master#bb0b6a206006299ab773a375197c4846a4c83a30" +source = "git+https://github.com/integritee-network/sgx-runtime?branch=master#b8e57b6ee8eff7d6e15591879509e06bb8d5ac39" dependencies = [ "frame-executive", "frame-support", @@ -1983,12 +1980,12 @@ dependencies = [ [[package]] name = "sgx_alloc" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_backtrace_sys" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "cc", "sgx_build_helper", @@ -1998,12 +1995,12 @@ dependencies = [ [[package]] name = "sgx_build_helper" version = "0.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_crypto_helper" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "itertools", "serde 1.0.118", @@ -2017,12 +2014,12 @@ dependencies = [ [[package]] name = "sgx_demangle" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_libc" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_types", ] @@ -2030,7 +2027,7 @@ dependencies = [ [[package]] name = "sgx_rand" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_trts", "sgx_tstd", @@ -2040,7 +2037,7 @@ dependencies = [ [[package]] name = "sgx_serialize" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_tstd", ] @@ -2048,7 +2045,7 @@ dependencies = [ [[package]] name = "sgx_serialize_derive" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "quote 0.3.15", "sgx_serialize_derive_internals", @@ -2058,7 +2055,7 @@ dependencies = [ [[package]] name = "sgx_serialize_derive_internals" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "syn 0.11.11", ] @@ -2066,7 +2063,7 @@ dependencies = [ [[package]] name = "sgx_tcrypto" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_types", ] @@ -2074,7 +2071,7 @@ dependencies = [ [[package]] name = "sgx_tcrypto_helper" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_crypto_helper", ] @@ -2082,7 +2079,7 @@ dependencies = [ [[package]] name = "sgx_tprotected_fs" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_trts", "sgx_types", @@ -2091,7 +2088,7 @@ dependencies = [ [[package]] name = "sgx_trts" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_libc", "sgx_types", @@ -2100,7 +2097,7 @@ dependencies = [ [[package]] name = "sgx_tse" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_types", ] @@ -2108,7 +2105,7 @@ dependencies = [ [[package]] name = "sgx_tseal" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_tcrypto", "sgx_trts", @@ -2119,7 +2116,7 @@ dependencies = [ [[package]] name = "sgx_tstd" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "hashbrown_tstd", "sgx_alloc", @@ -2135,7 +2132,7 @@ dependencies = [ [[package]] name = "sgx_tunittest" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_tstd", ] @@ -2143,24 +2140,24 @@ dependencies = [ [[package]] name = "sgx_types" version = "1.1.3" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" [[package]] name = "sgx_unwind" version = "0.1.1" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#ed9e7cce4fd40efd7a256d5c4be1c5f00778a5bb" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.3#7c07ce0bfbacd3f4f2af53a2cdef9539018be73c" dependencies = [ "sgx_build_helper", ] [[package]] name = "sha-1" -version = "0.9.6" +version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16" +checksum = "1a0c8611594e2ab4ebbf06ec7cbbf0a99450b8570e96cbf5188b5d5f6ef18d81" dependencies = [ "block-buffer 0.9.0", - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.9.0", "opaque-debug 0.3.0", @@ -2185,7 +2182,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b362ae5752fd2137731f9fa25fd4d9058af34666ca1966fb969119cc35719f12" dependencies = [ "block-buffer 0.9.0", - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.9.0", "opaque-debug 0.3.0", @@ -2205,9 +2202,9 @@ dependencies = [ [[package]] name = "signature" -version = "1.3.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f0242b8e50dd9accdd56170e94ca1ebd223b098eb9c83539a6e367d0f36ae68" +checksum = "c19772be3c4dd2ceaacf03cb41d5885f2a02c4d8804884918e3a258480803335" [[package]] name = "slab" @@ -2219,9 +2216,9 @@ dependencies = [ [[package]] name = "slab" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f173ac3d1a7e3b28003f40de0b5ce7fe2710f9b9dc3fc38664cebee46b3b6527" +checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590" [[package]] name = "smallvec" @@ -2231,8 +2228,8 @@ checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" [[package]] name = "sp-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "log", "parity-scale-codec", @@ -2245,22 +2242,21 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "blake2-rfc", "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-application-crypto" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "max-encoded-len", "parity-scale-codec", "sp-core", "sp-io", @@ -2269,8 +2265,8 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "integer-sqrt", "num-traits 0.2.14", @@ -2282,8 +2278,8 @@ dependencies = [ [[package]] name = "sp-authorship" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -2293,8 +2289,8 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-api", @@ -2305,8 +2301,8 @@ dependencies = [ [[package]] name = "sp-consensus-aura" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-api", @@ -2320,8 +2316,8 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -2330,8 +2326,8 @@ dependencies = [ [[package]] name = "sp-core" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "blake2-rfc", "byteorder", @@ -2341,7 +2337,6 @@ dependencies = [ "hex", "libsecp256k1", "log", - "max-encoded-len", "merlin", "num-traits 0.2.14", "parity-scale-codec", @@ -2362,17 +2357,17 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-finality-grandpa" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "finality-grandpa", "parity-scale-codec", @@ -2385,8 +2380,8 @@ dependencies = [ [[package]] name = "sp-inherents" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -2396,8 +2391,8 @@ dependencies = [ [[package]] name = "sp-io" -version = "3.1.0" -source = "git+https://github.com/scs/sgx-runtime?branch=master#bb0b6a206006299ab773a375197c4846a4c83a30" +version = "4.0.0-dev" +source = "git+https://github.com/integritee-network/sgx-runtime?branch=master#b8e57b6ee8eff7d6e15591879509e06bb8d5ac39" dependencies = [ "environmental", "hash-db", @@ -2417,8 +2412,8 @@ dependencies = [ [[package]] name = "sp-offchain" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "sp-api", "sp-core", @@ -2427,14 +2422,13 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", - "max-encoded-len", "parity-scale-codec", "parity-util-mem", "paste", @@ -2447,8 +2441,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -2463,20 +2457,20 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-session" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-api", @@ -2487,8 +2481,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -2497,13 +2491,13 @@ dependencies = [ [[package]] name = "sp-std" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" [[package]] name = "sp-storage" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "ref-cast", @@ -2513,8 +2507,8 @@ dependencies = [ [[package]] name = "sp-timestamp" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-api", @@ -2525,8 +2519,8 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-std", @@ -2536,8 +2530,8 @@ dependencies = [ [[package]] name = "sp-transaction-pool" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "sp-api", "sp-runtime", @@ -2545,8 +2539,8 @@ dependencies = [ [[package]] name = "sp-trie" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "hash-db", "memory-db", @@ -2559,11 +2553,11 @@ dependencies = [ [[package]] name = "sp-utils" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ - "futures 0.3.15", - "futures-core 0.3.15", + "futures 0.3.16", + "futures-core 0.3.16", "futures-timer", "lazy_static", "prometheus", @@ -2571,8 +2565,8 @@ dependencies = [ [[package]] name = "sp-version" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -2582,20 +2576,20 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "parity-scale-codec", "proc-macro-crate", "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] name = "sp-wasm-interface" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#df1165d7b47d43f7b5032512ad41ac8ab2ead117" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=master#f651d45ce5742bc60fe8ae518c035d1638ae83d2" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -2614,24 +2608,16 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" -[[package]] -name = "stream-cipher" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8131256a5896cabcf5eb04f4d6dacbe1aefda854b0d9896e09cb58829ec5638c" -dependencies = [ - "generic-array 0.12.4", -] - [[package]] name = "substrate-api-client" version = "0.6.0" -source = "git+https://github.com/scs/substrate-api-client?branch=master#731a3a5c3a16ed3ce7f1f6b50593a2cdfd08a39f" +source = "git+https://github.com/scs/substrate-api-client?branch=master#6c23e43e6b0d680c11c5c1bacd0221f681d1beee" dependencies = [ "frame-metadata", "frame-support", "hex", "parity-scale-codec", + "sp-application-crypto", "sp-core", "sp-runtime", "sp-std", @@ -2820,7 +2806,8 @@ dependencies = [ "chrono 0.4.19", "parity-scale-codec", "primitive-types", - "serde_json 1.0.64", + "serde_json 1.0.66", + "sp-core", "sp-runtime", "sp-std", "substratee-sidechain-primitives", @@ -2835,9 +2822,9 @@ checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" [[package]] name = "subtle" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" @@ -2852,9 +2839,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.73" +version = "1.0.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f71489ff30030d2ae598524f61326b902466f72a0fb1a8564c001cc63425bcc7" +checksum = "1873d832550d4588c3dbc20f01361ab00bfe741048f71e3fecf145a7cc18b29c" dependencies = [ "proc-macro2", "quote 1.0.9", @@ -2872,13 +2859,13 @@ dependencies = [ [[package]] name = "synstructure" -version = "0.12.4" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" +checksum = "474aaa926faa1603c40b7885a9eaea29b444d1cb2850cb7c0e37bb1a4182f4fa" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "unicode-xid 0.2.2", ] @@ -2932,7 +2919,7 @@ checksum = "060d69a0afe7796bf42e9e2ff91f5ee691fb15c53d38b4b62a9a53eb23164745" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", ] [[package]] @@ -2959,7 +2946,7 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" dependencies = [ - "serde 1.0.126", + "serde 1.0.127", ] [[package]] @@ -2968,7 +2955,7 @@ version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09adeb8c97449311ccd28a427f96fb563e7fd31aabf994189879d9da2394b89d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "pin-project-lite", "tracing-core", ] @@ -2981,9 +2968,9 @@ checksum = "a9ff14f98b1a4b289c6248a023c1c2fa1491062964e9fed67ab29c4e4da4a052" [[package]] name = "trie-db" -version = "0.22.5" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd81fe0c8bc2b528a51c9d2c31dae4483367a26a723a3c9a4a8120311d7774e3" +checksum = "9eac131e334e81b6b3be07399482042838adcd7957aa0010231d0813e39e02fa" dependencies = [ "hash-db", "hashbrown", @@ -3002,11 +2989,11 @@ dependencies = [ [[package]] name = "twox-hash" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" +checksum = "1f559b464de2e2bdabcac6a210d12e9b5a5973c251e102c44c585c71d51bd78e" dependencies = [ - "cfg-if 0.1.10", + "cfg-if", "static_assertions", ] @@ -3024,9 +3011,9 @@ checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" [[package]] name = "uint" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e11fe9a9348741cf134085ad57c249508345fe16411b3d7fb4ff2da2f1d6382e" +checksum = "6470ab50f482bde894a037a57064480a246dbfdd5960bd65a44824693f08da5f" dependencies = [ "byteorder", "crunchy", @@ -3124,9 +3111,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.3.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" +checksum = "377db0846015f7ae377174787dd452e1c5f5a9050bc6f954911d01f116daa0cd" dependencies = [ "zeroize_derive", ] @@ -3139,6 +3126,6 @@ checksum = "a2c1e130bebaeab2f23886bf9acbaca14b092408c452543c857f66399cd6dab1" dependencies = [ "proc-macro2", "quote 1.0.9", - "syn 1.0.73", + "syn 1.0.74", "synstructure", ] diff --git a/enclave/Cargo.toml b/enclave/Cargo.toml index bb010ae174..4f55424a39 100644 --- a/enclave/Cargo.toml +++ b/enclave/Cargo.toml @@ -20,42 +20,57 @@ production = ['substratee-settings/production'] test = ['substratee-stf/test', 'substratee-storage/test'] [target.'cfg(not(target_env = "sgx"))'.dependencies] -sgx_tse = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -sgx_tstd = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["untrusted_fs","net","backtrace"] } -sgx_rand = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -sgx_trts = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -sgx_tseal = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -sgx_tcrypto = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_tse = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_tstd = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["untrusted_fs","net","backtrace"] } +sgx_rand = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_trts = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_tseal = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_tcrypto = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } sgx_serialize = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_serialize_derive = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } sgx_tunittest = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx-crypto-helper = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", package = "sgx_tcrypto_helper" } [dependencies] -aes = { version = "0.3.2" } -ofb = { version = "0.1.1" } -codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } -primitive-types = { version = "0.9.0", default-features = false, features = ["codec", "serde_no_std"] } -sgx-crypto-helper = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", package = "sgx_tcrypto_helper" } -log = { git = "https://github.com/mesalock-linux/log-sgx" } -env_logger = { git = "https://github.com/mesalock-linux/env_logger-sgx" } -serde = { git = "https://github.com/mesalock-linux/serde-sgx" } -serde_json = { git = "https://github.com/mesalock-linux/serde-json-sgx"} -lazy_static = { version = "1.1.0", features = ["spin_no_std"] } -retain_mut = { version = "0.1.2"} -derive_more = { version = "0.99.5" } -byteorder = { version = "1.4.2", default-features = false } -arrayvec = { version = "0.7.1", default-features = false } -hex = { version = "0.4.3", default-features = false } +aes = { version = "0.7.4" } +ofb = { version = "0.5.1" } +codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } +primitive-types = { version = "0.10.1", default-features = false, features = ["codec", "serde_no_std"] } +lazy_static = { version = "1.1.0", features = ["spin_no_std"] } +retain_mut = { version = "0.1.2"} +derive_more = { version = "0.99.5" } +byteorder = { version = "1.4.2", default-features = false } +arrayvec = { version = "0.7.1", default-features = false } +hex = { version = "0.4.3", default-features = false } +ipfs-unixfs = { default-features = false, git = "https://github.com/whalelephant/rust-ipfs", branch = "w-nstd" } + +# scs / integritee +sp-io = { default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"], git = "https://github.com/integritee-network/sgx-runtime", branch = "master", optional = true} +substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client", branch = "master" } +sgx-externalities = { default-features = false, git = "https://github.com/integritee-network/sgx-runtime", branch = "master" } +jsonrpc-core = { default-features = false, git = "https://github.com/scs/jsonrpc", branch = "no_std" } + +# mesalock +linked-hash-map = { git = "https://github.com/mesalock-linux/linked-hash-map-sgx" } +webpki = { git = "https://github.com/mesalock-linux/webpki", branch = "mesalock_sgx" } +webpki-roots = { git = "https://github.com/mesalock-linux/webpki-roots", branch = "mesalock_sgx" } +log = { git = "https://github.com/mesalock-linux/log-sgx" } +env_logger = { git = "https://github.com/mesalock-linux/env_logger-sgx" } +serde = { git = "https://github.com/mesalock-linux/serde-sgx" } +serde_json = { git = "https://github.com/mesalock-linux/serde-json-sgx" } +yasna = { rev = "sgx_1.1.3", default-features = false, features = ["bit-vec", "num-bigint", "chrono", "mesalock_sgx"], git = "https://github.com/mesalock-linux/yasna.rs-sgx" } +rustls = { rev = "sgx_1.1.3", features = ["dangerous_configuration"], git = "https://github.com/mesalock-linux/rustls" } # for attestation -chrono = { git = "https://github.com/mesalock-linux/chrono-sgx" } -base64 = { rev = "sgx_1.1.3", git = "https://github.com/mesalock-linux/rust-base64-sgx" } -num-bigint = { git = "https://github.com/mesalock-linux/num-bigint-sgx" } -serde_derive = { git = "https://github.com/mesalock-linux/serde-sgx" } -httparse = { version = "1.3", default-features = false } -itertools = { version = "0.8", default-features = false, features = []} -bit-vec = { version = "0.6", default-features = false } -base58 = { rev = "sgx_1.1.3", package="rust-base58", git = "https://github.com/mesalock-linux/rust-base58-sgx", default-features = false, features=["mesalock_sgx"] } +chrono = { git = "https://github.com/mesalock-linux/chrono-sgx" } +base64 = { rev = "sgx_1.1.3", git = "https://github.com/mesalock-linux/rust-base64-sgx" } +num-bigint = { git = "https://github.com/mesalock-linux/num-bigint-sgx" } +serde_derive = { git = "https://github.com/mesalock-linux/serde-sgx" } +httparse = { version = "1.3", default-features = false } +itertools = { version = "0.10.1", default-features = false, features = []} +bit-vec = { version = "0.6", default-features = false } +base58 = { rev = "sgx_1.1.3", package="rust-base58", git = "https://github.com/mesalock-linux/rust-base58-sgx", default-features = false, features=["mesalock_sgx"] } cid = { git = "https://github.com/whalelephant/rust-cid", branch = "nstd", default-features = false } multibase = { git = "https://github.com/whalelephant/rust-multibase", branch = "nstd", default-features = false } @@ -68,137 +83,29 @@ substratee-get-storage-verified = { path = "../primitives/get-storage-verified", substratee-sidechain = { path = "../primitives/sidechain", default-features = false } substratee-sidechain-primitives = { path = "../primitives/sidechain/primitives", default-features = false } test-utils = { path = "../primitives/test-utils", default-features = false, features = ["sgx"] } +chain-relay = { path = "chain_relay" } +substratee-stf = { path = "../stf", default-features = false, features = ["sgx"] } +substratee-storage = { path = "../primitives/storage", default-features = false } +substratee-worker-primitives= {path = "../primitives/worker", default-features = false } +substratee-node-primitives = {path = "../primitives/node", default-features = false, features = ["sgx"] } + +# substrate deps +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { version = "4.0.0-dev", default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-finality-grandpa = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-utils = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-version = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-application-crypto = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -[dependencies.linked-hash-map] -git = "https://github.com/mesalock-linux/linked-hash-map-sgx" - - -[dependencies.webpki] -git = "https://github.com/mesalock-linux/webpki" -branch = "mesalock_sgx" - -[dependencies.webpki-roots] -git = "https://github.com/mesalock-linux/webpki-roots" -branch = "mesalock_sgx" - -[dependencies.yasna] -git = "https://github.com/mesalock-linux/yasna.rs-sgx" -rev = "sgx_1.1.3" -default-features = false -features = ["bit-vec", "num-bigint", "chrono", "mesalock_sgx"] - -[dependencies.rustls] -git = "https://github.com/mesalock-linux/rustls" -rev = "sgx_1.1.3" -features = ["dangerous_configuration"] - -[dependencies.sp-io] -git = "https://github.com/scs/sgx-runtime" -branch = "master" -default-features = false -optional = true -features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"] - -[dependencies.sgx_serialize_derive] -git = "https://github.com/apache/teaclave-sgx-sdk.git" -rev = "v1.1.3" - -[dependencies.frame-support] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-core] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false -features = ["full_crypto"] - -[dependencies.sp-finality-grandpa] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-runtime] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-std] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-utils] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-version] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.substrate-api-client] -git = "https://github.com/scs/substrate-api-client" -branch = "master" -default-features = false -#features = ["full_crypto"] - -[dependencies.chain-relay] -path = "chain_relay" - -[dependencies.substratee-stf] -path = "../stf" -default-features = false -features = ["sgx"] - -[dependencies.sgx-externalities] -git = "https://github.com/scs/sgx-runtime" -branch = "master" -default-features = false - -[dependencies.substratee-node-primitives] -path = "../primitives/node" -default-features = false -features = ["sgx"] - -[dependencies.substratee-storage] -path = "../primitives/storage" -default-features = false - -[dependencies.substratee-worker-primitives] -path = "../primitives/worker" -default-features = false - -[dependencies.ipfs-unixfs] -git = "https://github.com/whalelephant/rust-ipfs" -branch = "w-nstd" -default-features = false - -[dependencies.jsonrpc-core] -git = "https://github.com/scs/jsonrpc" -branch = "no_std" -default-features = false - -[dependencies.sp-application-crypto] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false [patch.crates-io] log = { git = "https://github.com/mesalock-linux/log-sgx" } env_logger = { git = "https://github.com/mesalock-linux/env_logger-sgx", default-features = false, features = ["mesalock_sgx"] } +getrandom = { git = "https://github.com/integritee-network/getrandom-sgx", branch = "update-v2.3", features = ["mesalock_sgx"] } [patch."https://github.com/paritytech/substrate"] log = { git = "https://github.com/mesalock-linux/log-sgx" } env_logger = { git = "https://github.com/mesalock-linux/env_logger-sgx", default-features = false, features = ["mesalock_sgx"] } -sp-io = { git = "https://github.com/scs/sgx-runtime", branch = "master", default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"]} +sp-io = { git = "https://github.com/integritee-network/sgx-runtime", branch = "master", default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"]} \ No newline at end of file diff --git a/enclave/chain_relay/Cargo.toml b/enclave/chain_relay/Cargo.toml index ca99ba9732..b1989a31cb 100644 --- a/enclave/chain_relay/Cargo.toml +++ b/enclave/chain_relay/Cargo.toml @@ -7,76 +7,26 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [target.'cfg(not(target_env = "sgx"))'.dependencies] -sgx_tstd = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["untrusted_fs","net","backtrace"] } -sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_tstd = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["untrusted_fs","net","backtrace"] } +sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } [dependencies] -derive_more = { version = "0.99.5" } -hash-db = { version = "0.15.2", default-features = false } -log = { git = "https://github.com/mesalock-linux/log-sgx" } -num = { package = "num-traits", version = "0.2", default-features = false } +derive_more = { version = "0.99.5" } +hash-db = { version = "0.15.2", default-features = false } +log = { git = "https://github.com/mesalock-linux/log-sgx" } +num = { package = "num-traits", version = "0.2", default-features = false } +codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } +finality-grandpa = { version = "0.14.3", default-features = false } # local deps substratee-storage = { path = "../../primitives/storage", default-features = false } -[dependencies.codec] -package = "parity-scale-codec" -features = ["derive"] -version = "2.0.0" -default-features=false - -[dependencies.frame-system] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-io] -default-features = false -git = "https://github.com/paritytech/substrate.git" -branch = "master" -package = "sp-io" -features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"] - -[dependencies.sp-core] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false -features = ["full_crypto"] - -[dependencies.sp-application-crypto] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false -features = ["full_crypto"] - -[dependencies.finality-grandpa] -version = "0.14.0" -default-features = false - -[dependencies.sp-finality-grandpa] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-runtime] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-runtime-interface] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false -features = ["disable_target_static_assertions"] - -[dependencies.sp-trie] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false +# substrate deps +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-io = { version = "4.0.0-dev", default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"], git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { version = "4.0.0-dev", default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-application-crypto = { version = "4.0.0-dev", default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-finality-grandpa = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-runtime-interface = { version = "4.0.0-dev", default-features = false, features = ["disable_target_static_assertions"], git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-trie = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } \ No newline at end of file diff --git a/enclave/src/aes.rs b/enclave/src/aes.rs index 9a69e4f624..2f0d0631ab 100644 --- a/enclave/src/aes.rs +++ b/enclave/src/aes.rs @@ -23,7 +23,7 @@ use sgx_types::*; use aes::Aes128; use log::info; use ofb::{ - stream_cipher::{NewStreamCipher, SyncStreamCipher}, + cipher::{NewCipher, StreamCipher}, Ofb, }; @@ -67,7 +67,7 @@ pub fn create_sealed() -> SgxResult { /// If AES acts on the encrypted data it decrypts and vice versa pub fn de_or_encrypt(bytes: &mut Vec) -> SgxResult<()> { read_sealed() - .map(|(key, iv)| AesOfb::new_var(&key, &iv)) + .map(|(key, iv)| AesOfb::new_from_slices(&key, &iv)) .sgx_error_with_log(" [Enclave] Failed to Initialize AES")? .map(|mut ofb| ofb.apply_keystream(bytes)) .sgx_error_with_log(" [Enclave] Failed to AES en-/decrypt") diff --git a/primitives/api-client-extensions/Cargo.toml b/primitives/api-client-extensions/Cargo.toml index 335b0c73f2..08e9a588b3 100644 --- a/primitives/api-client-extensions/Cargo.toml +++ b/primitives/api-client-extensions/Cargo.toml @@ -5,12 +5,12 @@ authors = ["clangenbacher "] edition = "2018" [dependencies] -codec = { package = "parity-scale-codec", version = "2.0.0", features = ["derive"] } +codec = { package = "parity-scale-codec", version = "2.0.0", features = ["derive"] } # substrate -sp-core = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-finality-grandpa = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-finality-grandpa = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } # scs substrate-api-client = { git = "https://github.com/scs/substrate-api-client", branch = "master" } diff --git a/primitives/api-client-extensions/src/account.rs b/primitives/api-client-extensions/src/account.rs index 82bbbe27ac..74bbe51094 100644 --- a/primitives/api-client-extensions/src/account.rs +++ b/primitives/api-client-extensions/src/account.rs @@ -1,6 +1,6 @@ use sp_core::crypto::Pair; use sp_runtime::MultiSignature; -use substrate_api_client::Api; +use substrate_api_client::{Api, RpcClient}; use substratee_node_primitives::AccountId; @@ -12,7 +12,7 @@ pub trait AccountApi { fn get_free_balance(&self, who: &AccountId) -> ApiResult; } -impl AccountApi for Api

+impl AccountApi for Api where MultiSignature: From, { diff --git a/primitives/api-client-extensions/src/chain.rs b/primitives/api-client-extensions/src/chain.rs index a8a2201f32..854d3541f8 100644 --- a/primitives/api-client-extensions/src/chain.rs +++ b/primitives/api-client-extensions/src/chain.rs @@ -1,7 +1,7 @@ use sp_core::{storage::StorageKey, Pair, H256}; use sp_finality_grandpa::{AuthorityList, VersionedAuthorityList, GRANDPA_AUTHORITIES_KEY}; use sp_runtime::MultiSignature; -use substrate_api_client::Api; +use substrate_api_client::{Api, RpcClient}; use substratee_node_primitives::SignedBlock; @@ -17,7 +17,7 @@ pub trait ChainApi { fn grandpa_authorities_proof(&self, hash: Option) -> ApiResult; } -impl ChainApi for Api

+impl ChainApi for Api where MultiSignature: From, { diff --git a/primitives/api-client-extensions/src/lib.rs b/primitives/api-client-extensions/src/lib.rs index 9c765279e7..c258866e68 100644 --- a/primitives/api-client-extensions/src/lib.rs +++ b/primitives/api-client-extensions/src/lib.rs @@ -4,10 +4,10 @@ use substrate_api_client::ApiClientError; pub mod account; pub mod chain; -pub mod substratee_registry; +pub mod pallet_teerex; pub use account::*; pub use chain::*; -pub use substratee_registry::*; +pub use pallet_teerex::*; pub type ApiResult = Result; diff --git a/primitives/api-client-extensions/src/substratee_registry.rs b/primitives/api-client-extensions/src/pallet_teerex.rs similarity index 91% rename from primitives/api-client-extensions/src/substratee_registry.rs rename to primitives/api-client-extensions/src/pallet_teerex.rs index 2a17358113..c316bf990a 100644 --- a/primitives/api-client-extensions/src/substratee_registry.rs +++ b/primitives/api-client-extensions/src/pallet_teerex.rs @@ -1,7 +1,6 @@ use sp_core::Pair; use sp_runtime::MultiSignature; -use substrate_api_client::Api; - +use substrate_api_client::{Api, RpcClient}; use substratee_node_primitives::{Enclave, IpfsHash, ShardIdentifier}; use crate::ApiResult; @@ -9,7 +8,7 @@ use crate::ApiResult; pub const TEEREX: &str = "Teerex"; /// ApiClient extension that enables communication with the `substratee-registry` pallet. -pub trait SubstrateeRegistryApi { +pub trait PalletTeerexApi { fn enclave(&self, index: u64) -> ApiResult>; fn enclave_count(&self) -> ApiResult; fn all_enclaves(&self) -> ApiResult>; @@ -17,7 +16,7 @@ pub trait SubstrateeRegistryApi { fn latest_ipfs_hash(&self, shard: &ShardIdentifier) -> ApiResult>; } -impl SubstrateeRegistryApi for Api

+impl PalletTeerexApi for Api where MultiSignature: From, { diff --git a/primitives/enclave-api/Cargo.toml b/primitives/enclave-api/Cargo.toml index eea72ea1d5..ecf3effc35 100644 --- a/primitives/enclave-api/Cargo.toml +++ b/primitives/enclave-api/Cargo.toml @@ -14,10 +14,10 @@ sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclav sgx_urts = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } sgx_crypto_helper = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -frame-support = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-core = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-finality-grandpa = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } +frame-support = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-finality-grandpa = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } substratee-enclave-api-ffi = { path = "ffi" } substratee-settings = { path = "../settings" } diff --git a/primitives/get-storage-verified/Cargo.toml b/primitives/get-storage-verified/Cargo.toml index 1791085a91..01443ab279 100644 --- a/primitives/get-storage-verified/Cargo.toml +++ b/primitives/get-storage-verified/Cargo.toml @@ -11,9 +11,9 @@ derive_more = { version = "0.99.5" } sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } # substrate deps -sp-core = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} # local deps substratee-storage = { path = "../storage", default-features = false } diff --git a/primitives/node/Cargo.toml b/primitives/node/Cargo.toml index c6e3b56443..99206f260a 100644 --- a/primitives/node/Cargo.toml +++ b/primitives/node/Cargo.toml @@ -7,29 +7,11 @@ edition = "2018" [dependencies] codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } -[dependencies.sgx_tstd] -git = "https://github.com/apache/teaclave-sgx-sdk.git" -features = ["untrusted_fs","net","backtrace"] -rev = "v1.1.3" -optional = true +sgx_tstd = { rev = "v1.1.3", features = ["untrusted_fs","net","backtrace"], git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true} +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node", branch = "master", optional = true} -[dependencies.my-node-runtime] -git = "https://github.com/scs/substraTEE-node" -branch = "master" -package = "substratee-node-runtime" -optional = true - -[dependencies.sp-core] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-runtime] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } [features] default = ['std'] diff --git a/primitives/ocall-api/Cargo.toml b/primitives/ocall-api/Cargo.toml index 9a8d7ab7a5..70ecbb0f70 100644 --- a/primitives/ocall-api/Cargo.toml +++ b/primitives/ocall-api/Cargo.toml @@ -9,7 +9,7 @@ resolver = "2" codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } # substrate deps -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} # sgx-deps sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } diff --git a/primitives/pallet-teerex-storage/Cargo.toml b/primitives/pallet-teerex-storage/Cargo.toml index 99a81dce04..7f49206969 100644 --- a/primitives/pallet-teerex-storage/Cargo.toml +++ b/primitives/pallet-teerex-storage/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" resolver = "2" [dependencies] -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} #local deps substratee-storage = { path = "../storage", default-features = false } diff --git a/primitives/sidechain/Cargo.toml b/primitives/sidechain/Cargo.toml index 8ca46affe8..b9102d3f8c 100644 --- a/primitives/sidechain/Cargo.toml +++ b/primitives/sidechain/Cargo.toml @@ -9,10 +9,10 @@ thiserror = "1.0.26" codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } # substrate deps -frame-support = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-core = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} # local deps pallet-teerex-storage = { path = "../pallet-teerex-storage", default-features = false } diff --git a/primitives/sidechain/primitives/Cargo.toml b/primitives/sidechain/primitives/Cargo.toml index f5859f2893..ec6749f7ac 100644 --- a/primitives/sidechain/primitives/Cargo.toml +++ b/primitives/sidechain/primitives/Cargo.toml @@ -8,9 +8,9 @@ codec = { package = "parity-scale-codec", version = "2.0.0", default-features = serde = { version = "1.0", optional = true, features = ["derive"]} # substrate deps -sp-core = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} [features] default = ["std"] diff --git a/primitives/storage/Cargo.toml b/primitives/storage/Cargo.toml index afe25a9e1c..6f8cbc1698 100644 --- a/primitives/storage/Cargo.toml +++ b/primitives/storage/Cargo.toml @@ -10,15 +10,15 @@ codec = { package = "parity-scale-codec", version = "2.0.0", default-features = derive_more = { version = "0.99.5" } hash-db = { version = "0.15.2", default-features = false } -frame-metadata = { version = "13.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -frame-support = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-core = { version = "3.0.0", default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-trie = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +frame-metadata = { version = "14.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-core = { version = "4.0.0-dev", default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-trie = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} [dev-dependencies] -sp-state-machine = { version = "0.9.0", git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-state-machine = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master"} [features] diff --git a/primitives/test-utils/Cargo.toml b/primitives/test-utils/Cargo.toml index 3cbcb8cc4d..4e10779094 100644 --- a/primitives/test-utils/Cargo.toml +++ b/primitives/test-utils/Cargo.toml @@ -12,9 +12,9 @@ sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk. sgx_tstd = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } # substrate deps -sp-core = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} # local deps pallet-teerex-storage = { path = "../pallet-teerex-storage", default-features = false } diff --git a/primitives/worker/Cargo.toml b/primitives/worker/Cargo.toml index 8c63433714..cc2e68c424 100644 --- a/primitives/worker/Cargo.toml +++ b/primitives/worker/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive", "full"] } -primitive-types = { version = "0.9", default-features = false, features = ["codec"] } +primitive-types = { version = "0.10.1", default-features = false, features = ["codec"] } serde = { version = "1.0", optional = true} serde_derive = { version = "1.0", optional = true} serde_json = { version = "1.0", default-features = false, features = ["alloc"] } @@ -17,8 +17,15 @@ substratee-storage = { path = "../storage", default-features = false } substratee-sidechain-primitives = { path = "../sidechain/primitives", default-features = false } # substrate-deps -sp-std = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} -sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-core = { version = "4.0.0-dev", default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master"} +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } + +# sgx deps +sgx_tstd = { rev = "v1.1.3", features = ["untrusted_fs","net","backtrace"], git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } + + + [features] default = ["std"] @@ -33,7 +40,5 @@ std = [ 'codec/std', 'sp-runtime/std', ] -[dev-dependencies.sp-keyring] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" +[dev-dependencies] +sp-keyring = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master"} diff --git a/stf/Cargo.toml b/stf/Cargo.toml index c9d3b0da34..8541631e5a 100644 --- a/stf/Cargo.toml +++ b/stf/Cargo.toml @@ -34,119 +34,38 @@ std = [ test = [] [dependencies] -log-sgx = { package = "log", git = "https://github.com/mesalock-linux/log-sgx", optional = true } -env_logger = { git = "https://github.com/mesalock-linux/env_logger-sgx", optional = true } -clap = { version = "2.33", optional = true } -clap-nested = { version = "0.3.1", optional = true } -log = { version = "0.4", optional = true } -base58 = { version = "0.1", optional = true } -derive_more = { version = "0.99.5", optional = true } -hex = { version = "0.4.2", optional = true } -serde = { version = "1.0", features = ["derive"], optional = true } +log-sgx = { package = "log", git = "https://github.com/mesalock-linux/log-sgx", optional = true } +env_logger = { git = "https://github.com/mesalock-linux/env_logger-sgx", optional = true } +clap = { version = "2.33", optional = true } +clap-nested = { version = "0.3.1", optional = true } +log = { version = "0.4", optional = true } +base58 = { version = "0.1", optional = true } +derive_more = { version = "0.99.5", optional = true } +hex = { version = "0.4.2", optional = true } +serde = { version = "1.0", features = ["derive"], optional = true } +codec = { version = "2.0.0", default-features = false, features = ["derive"], package = "parity-scale-codec" } +sgx_tstd = { rev = "v1.1.3", features = ["untrusted_fs","net","backtrace"], git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } # local crates substratee-storage = { path = "../primitives/storage", default-features = false } - -[dependencies.sgx_tstd] -git = "https://github.com/apache/teaclave-sgx-sdk.git" -features = ["untrusted_fs","net","backtrace"] -rev = "v1.1.3" -optional = true - -[dependencies.codec] -default-features = false -package = "parity-scale-codec" -version = "2.0.0" -features = ["derive"] - -[dependencies.balances] -default-features = false -package = 'pallet-balances' -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.system] -default-features = false -package = 'frame-system' -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.support] -default-features = false -package = 'frame-support' -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.sp-core] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false -features = ["full_crypto"] - -[dependencies.sp-application-crypto] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false -features = ["full_crypto"] - -[dependencies.sp-runtime] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -default-features = false - -[dependencies.sp-io] -default-features = false -git = "https://github.com/scs/sgx-runtime" -branch = "master" -features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"] -optional = true - -[dependencies.sgx-runtime] -default-features = false -git = "https://github.com/scs/sgx-runtime" -branch = "master" -optional = true - -[dependencies.sgx-externalities] -default-features = false -git = "https://github.com/scs/sgx-runtime" -branch = "master" -optional = true - -[dependencies.my-node-runtime] -git = "https://github.com/scs/substraTEE-node" -branch = "master" -package = "substratee-node-runtime" -optional = true - -[dependencies.substrate-api-client] -git = "https://github.com/scs/substrate-api-client" -branch = "master" -optional = true - -[dependencies.substrate-client-keystore] -git = "https://github.com/scs/substrate-api-client" -branch = "master" -optional = true - -[dependencies.sc-keystore] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" -optional = true - -[dependencies.substratee-worker-primitives] -path = "../primitives/worker" -default-features = false -optional = true - -[dev-dependencies.sp-keyring] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" +substratee-worker-primitives = { default-features = false, path = "../primitives/worker", optional = true } + +# Substrate dependencies +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", features = ["full_crypto"] } +balances = { version = "4.0.0-dev", package = 'pallet-balances', default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +system = { version = "4.0.0-dev", package = "frame-system", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +support = { version = "4.0.0-dev", package = "frame-support", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-application-crypto = { version = "4.0.0-dev", default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sc-keystore = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", optional = true } + +# scs / integritee +sp-io = { default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator", "sgx"], git = "https://github.com/integritee-network/sgx-runtime", branch = "master", optional = true } +sgx-runtime = { default-features = false, git = "https://github.com/integritee-network/sgx-runtime", branch = "master", optional = true } +sgx-externalities = { default-features = false, git = "https://github.com/integritee-network/sgx-runtime", branch = "master", optional = true } +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node", branch = "master", optional = true } +substrate-api-client = { git = "https://github.com/scs/substrate-api-client", branch = "master", optional = true } +substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client", branch = "master", optional = true } + +[dev-dependencies] +sp-keyring = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } diff --git a/worker/Cargo.toml b/worker/Cargo.toml index 88c1e1093e..851422db89 100644 --- a/worker/Cargo.toml +++ b/worker/Cargo.toml @@ -6,106 +6,63 @@ build = "build.rs" edition = "2018" [dependencies] -ws = "0.7" -hex = "0.3" -log = "0.4" -env_logger = "0.7" -base58 = "0.1" -rust-crypto = "0.2" -clap = { version = "2.33", features = [ "yaml" ] } -lazy_static = "1.4.0" -parking_lot = "0.11.1" -thiserror = "1.0" -dashmap = "4.0.2" - -dirs = "1.0.2" -serde = "1.0" -serde_json = "1.0" -serde_derive = "1.0" -jsonrpsee = { version = "0.2.0", features = ["client", "ws-server", "macros"]} -async-trait = "0.1.50" -tokio = { version = "1.6.1", features = ["full"] } +ws = "0.7" +hex = "0.4.3" +log = "0.4" +env_logger = "0.7" +base58 = "0.1" +rust-crypto = "0.2" +clap = { version = "2.33", features = [ "yaml" ] } +lazy_static = "1.4.0" +parking_lot = "0.11.1" +thiserror = "1.0" +dashmap = "4.0.2" + +dirs = "1.0.2" +serde = "1.0" +serde_json = "1.0" +serde_derive = "1.0" +jsonrpsee = { version = "0.2.0", features = ["client", "ws-server", "macros"]} +async-trait = "0.1.50" +tokio = { version = "1.6.1", features = ["full"] } # ipfs -ipfs-api = "0.11.0" -futures = "0.3" -multihash = "0.8" -cid = "<0.3.1" -sha2 = { version = "0.7", default-features = false } +ipfs-api = "0.11.0" +futures = "0.3" +multihash = "0.8" +cid = "<0.3.1" +sha2 = { version = "0.7", default-features = false } -codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } -primitive-types = { version = "0.9", default-features = false, features = ["codec"] } +codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } +primitive-types = { version = "0.10.1", default-features = false, features = ["codec"] } -sgx_urts = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -sgx_crypto_helper = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_urts = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_types = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +sgx_crypto_helper = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git" } +# local substratee-settings = { path = "../primitives/settings" } +substratee-node-primitives = { path = "../primitives/node" } +substratee-worker-primitives = { path = "../primitives/worker" } +substratee-api-client-extensions = { path = "../primitives/api-client-extensions" } +substratee-worker-api = { path = "rpc/client" } +substratee-worker-rpc-server = { path = "rpc/server" } +substratee-enclave-api = { path = "../primitives/enclave-api" } +substratee-stf = { path = "../stf" } + +# scs / integritee +substrate-api-client = { git = "https://github.com/scs/substrate-api-client", branch = "master" } +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node", branch = "master" } + +# Substrate dependencies +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +pallet-balances = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-keyring = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +frame-system = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-finality-grandpa = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } +frame-support = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" } -[dependencies.substrate-api-client] -git = "https://github.com/scs/substrate-api-client" -branch = "master" - -[dependencies.substratee-node-primitives] -path = "../primitives/node" - -[dependencies.substratee-worker-primitives] -path = "../primitives/worker" - -[dependencies.substratee-api-client-extensions] -path = "../primitives/api-client-extensions" - -[dependencies.substratee-worker-api] -path = "rpc/client" - -[dependencies.substratee-worker-rpc-server] -path = "rpc/server" - -[dependencies.substratee-enclave-api] -path = "../primitives/enclave-api" - -[dependencies.my-node-runtime] -git = "https://github.com/scs/substraTEE-node" -branch = "master" -package = "substratee-node-runtime" - -[dependencies.sp-finality-grandpa] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.sp-runtime] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.pallet-balances] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.sp-core] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.sp-keyring] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.frame-system] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.frame-support] -git = "https://github.com/paritytech/substrate.git" -branch = "master" -version = "3.0.0" - -[dependencies.substratee-stf] -path = "../stf" [features] default = [] diff --git a/worker/src/globals/worker.rs b/worker/src/globals/worker.rs index 71a21e2125..b993e3da79 100644 --- a/worker/src/globals/worker.rs +++ b/worker/src/globals/worker.rs @@ -20,11 +20,11 @@ use crate::{config::Config, worker::Worker as WorkerGen}; use lazy_static::lazy_static; use parking_lot::{RwLock, RwLockReadGuard}; use sp_core::sr25519; -use substrate_api_client::Api; +use substrate_api_client::{rpc::WsRpcClient, Api}; use substratee_enclave_api::Enclave; use substratee_worker_api::direct_client::DirectClient; -pub type Worker = WorkerGen, Enclave, DirectClient>; +pub type Worker = WorkerGen, Enclave, DirectClient>; lazy_static! { static ref WORKER: RwLock> = RwLock::new(None); diff --git a/worker/src/main.rs b/worker/src/main.rs index fc96f0f38c..8b0281d792 100644 --- a/worker/src/main.rs +++ b/worker/src/main.rs @@ -42,7 +42,7 @@ use enclave::{ tls_ra::{enclave_request_key_provisioning, enclave_run_key_provisioning_server}, }; use log::*; -use my_node_runtime::{substratee_registry::ShardIdentifier, Event, Hash, Header}; +use my_node_runtime::{pallet_teerex::ShardIdentifier, Event, Hash, Header}; use sgx_types::*; use sp_core::{ crypto::{AccountId32, Ss58Codec}, @@ -62,7 +62,7 @@ use std::{ thread, time::{Duration, SystemTime}, }; -use substrate_api_client::{utils::FromHexString, Api, GenericAddress, XtStatus}; +use substrate_api_client::{rpc::WsRpcClient, utils::FromHexString, Api, GenericAddress, XtStatus}; use substratee_api_client_extensions::{AccountApi, ChainApi}; use substratee_enclave_api::{ direct_request::DirectRequest, @@ -224,7 +224,7 @@ fn start_worker( shard: &ShardIdentifier, enclave: Arc, skip_ra: bool, - mut node_api: Api, + mut node_api: Api, tokio_handle: Arc, watch_list: Arc, ) where @@ -360,7 +360,7 @@ fn start_worker( /// Triggers the enclave to produce a block based on a fixed time schedule fn start_interval_block_production( enclave_api: &E, - api: &Api, + api: &Api, mut latest_head: Header, ) { let block_production_interval = Duration::from_millis(BLOCK_PRODUCTION_INTERVAL); @@ -432,53 +432,42 @@ fn print_events(events: Events, _sender: Sender) { }, } }, - Event::SubstrateeRegistry(re) => { + Event::Teerex(re) => { debug!("{:?}", re); match &re { - my_node_runtime::substratee_registry::RawEvent::AddedEnclave( - sender, - worker_url, - ) => { + my_node_runtime::pallet_teerex::RawEvent::AddedEnclave(sender, worker_url) => { println!("[+] Received AddedEnclave event"); println!(" Sender (Worker): {:?}", sender); - println!(" Registered URL: {:?}", str::from_utf8(worker_url).unwrap()); + println!(" Registered URL: {:?}", str::from_utf8(&worker_url).unwrap()); }, - my_node_runtime::substratee_registry::RawEvent::Forwarded(shard) => { + my_node_runtime::pallet_teerex::RawEvent::Forwarded(shard) => { println!( "[+] Received trusted call for shard {}", shard.encode().to_base58() ); }, - my_node_runtime::substratee_registry::RawEvent::CallConfirmed( - sender, - payload, - ) => { + my_node_runtime::pallet_teerex::RawEvent::CallConfirmed(sender, payload) => { info!("[+] Received CallConfirmed event"); debug!(" From: {:?}", sender); debug!(" Payload: {:?}", hex::encode(payload)); }, - my_node_runtime::substratee_registry::RawEvent::BlockConfirmed( - sender, - payload, - ) => { + my_node_runtime::pallet_teerex::RawEvent::BlockConfirmed(sender, payload) => { info!("[+] Received BlockConfirmed event"); debug!(" From: {:?}", sender); debug!(" Payload: {:?}", hex::encode(payload)); }, - my_node_runtime::substratee_registry::RawEvent::ShieldFunds( - incognito_account, - ) => { + my_node_runtime::pallet_teerex::RawEvent::ShieldFunds(incognito_account) => { info!("[+] Received ShieldFunds event"); debug!(" For: {:?}", incognito_account); }, - my_node_runtime::substratee_registry::RawEvent::UnshieldedFunds( + my_node_runtime::pallet_teerex::RawEvent::UnshieldedFunds( incognito_account, ) => { info!("[+] Received UnshieldedFunds event"); debug!(" For: {:?}", incognito_account); }, _ => { - trace!("Ignoring unsupported substratee_registry event"); + trace!("Ignoring unsupported pallet_teerex event"); }, } }, @@ -490,7 +479,7 @@ fn print_events(events: Events, _sender: Sender) { } pub fn init_chain_relay( - api: &Api, + api: &Api, enclave_api: &E, ) -> Header { let genesis_hash = api.get_genesis_hash().unwrap(); @@ -517,7 +506,7 @@ pub fn init_chain_relay( /// Returns the last synced header of layer one pub fn produce_blocks( enclave_api: &E, - api: &Api, + api: &Api, last_synced_head: Header, ) -> Header { // obtain latest finalized block from layer one @@ -562,7 +551,7 @@ pub fn produce_blocks( /// gets a list of blocks that need to be synced, ordered from oldest to most recent header /// blocks that need to be synced are all blocks from the current header to the last synced header, iterating over parent fn get_blocks_to_sync( - api: &Api, + api: &Api, last_synced_head: &Header, curr_head: &SignedBlock, ) -> Vec { @@ -623,7 +612,7 @@ fn enclave_account(enclave_api: &E) -> AccountId32 { } // Alice plays the faucet and sends some funds to the account if balance is low -fn ensure_account_has_funds(api: &mut Api, accountid: &AccountId32) { +fn ensure_account_has_funds(api: &mut Api, accountid: &AccountId32) { let alice = AccountKeyring::Alice.pair(); info!("encoding Alice's public = {:?}", alice.public().0.encode()); let alice_acc = AccountId32::from(*alice.public().as_array_ref()); diff --git a/worker/src/node_api_factory.rs b/worker/src/node_api_factory.rs index 58f183b8a2..498ae01571 100644 --- a/worker/src/node_api_factory.rs +++ b/worker/src/node_api_factory.rs @@ -19,7 +19,7 @@ use lazy_static::lazy_static; use parking_lot::RwLock; use sp_core::sr25519; -use substrate_api_client::Api; +use substrate_api_client::{rpc::WsRpcClient, Api}; #[cfg(test)] use mockall::predicate::*; @@ -34,7 +34,7 @@ lazy_static! { /// trait to create a node API, based on a node URL #[cfg_attr(test, automock)] pub trait CreateNodeApi { - fn create_api(&self) -> Api; + fn create_api(&self) -> Api; } pub struct GlobalUrlNodeApiFactory; @@ -57,7 +57,10 @@ impl GlobalUrlNodeApiFactory { } impl CreateNodeApi for GlobalUrlNodeApiFactory { - fn create_api(&self) -> Api { - Api::::new(GlobalUrlNodeApiFactory::read_node_url()).unwrap() + fn create_api(&self) -> Api { + Api::::new(WsRpcClient::new( + &GlobalUrlNodeApiFactory::read_node_url(), + )) + .unwrap() } } diff --git a/worker/src/tests/commons.rs b/worker/src/tests/commons.rs index 457eaf913c..7be3047a19 100644 --- a/worker/src/tests/commons.rs +++ b/worker/src/tests/commons.rs @@ -25,7 +25,7 @@ use sgx_types::*; use sp_core::{crypto::AccountId32, sr25519}; use sp_keyring::AccountKeyring; use std::{fs, str}; -use substrate_api_client::Api; +use substrate_api_client::{rpc::WsRpcClient, Api}; use substratee_enclave_api::enclave_base::EnclaveBase; use substratee_stf::{Getter, Index, KeyPair, ShardIdentifier, TrustedCall, TrustedGetter}; @@ -115,9 +115,9 @@ pub fn setup( enclave_api: &E, who: Option, port: &str, -) -> (Api, Option, ShardIdentifier) { +) -> (Api, Option, ShardIdentifier) { let node_url = format!("ws://{}:{}", "127.0.0.1", port); - let mut api = Api::::new(node_url).unwrap(); + let mut api = Api::::new(WsRpcClient::new(&node_url)).unwrap(); ensure_account_has_funds(&mut api, &enclave_account(enclave_api)); // create the state such that we do not need to initialize it manually @@ -136,7 +136,7 @@ pub fn setup( } } -pub fn get_nonce(api: &Api, who: &AccountId32) -> u32 { +pub fn get_nonce(api: &Api, who: &AccountId32) -> u32 { if let Some(info) = api.get_account_info(who).unwrap() { info.nonce } else { diff --git a/worker/src/tests/mock.rs b/worker/src/tests/mock.rs index cdf2c66934..b99aab7152 100644 --- a/worker/src/tests/mock.rs +++ b/worker/src/tests/mock.rs @@ -1,4 +1,4 @@ -use substratee_api_client_extensions::{ApiResult, SubstrateeRegistryApi}; +use substratee_api_client_extensions::{ApiResult, PalletTeerexApi}; use substratee_node_primitives::{Enclave, ShardIdentifier}; pub struct TestNodeApi; @@ -13,7 +13,7 @@ pub fn enclaves() -> Vec { ] } -impl SubstrateeRegistryApi for TestNodeApi { +impl PalletTeerexApi for TestNodeApi { fn enclave(&self, index: u64) -> ApiResult> { Ok(Some(enclaves().remove(index as usize))) } diff --git a/worker/src/tests/worker.rs b/worker/src/tests/worker.rs index 4bf0bb4955..45cf48eed2 100644 --- a/worker/src/tests/worker.rs +++ b/worker/src/tests/worker.rs @@ -1,6 +1,6 @@ use lazy_static::lazy_static; use parking_lot::RwLock; -use substratee_api_client_extensions::SubstrateeRegistryApi; +use substratee_api_client_extensions::PalletTeerexApi; use crate::{ config::Config, diff --git a/worker/src/worker.rs b/worker/src/worker.rs index 28948a625e..edafe3cd3b 100644 --- a/worker/src/worker.rs +++ b/worker/src/worker.rs @@ -11,7 +11,7 @@ use jsonrpsee::{ use log::info; use std::num::ParseIntError; -use substratee_api_client_extensions::SubstrateeRegistryApi; +use substratee_api_client_extensions::PalletTeerexApi; use substratee_node_primitives::Enclave as EnclaveMetadata; use substratee_worker_primitives::block::SignedBlock as SignedSidechainBlock; @@ -58,7 +58,7 @@ pub trait WorkerT { impl WorkerT for Worker where - NodeApi: SubstrateeRegistryApi + Send + Sync, + NodeApi: PalletTeerexApi + Send + Sync, Enclave: Send + Sync, WorkerApiDirect: Send + Sync, {