From 606b9938f3aac3a3be334ac56232438bef8a1ee2 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Wed, 31 May 2023 17:20:25 +0200 Subject: [PATCH 01/69] polkadot update v0.9.42 --- Cargo.lock | 1281 ++++++++--------- app-libs/sgx-runtime/Cargo.toml | 54 +- app-libs/stf/Cargo.toml | 20 +- cli/Cargo.toml | 26 +- .../attestation-handler/Cargo.toml | 4 +- core-primitives/enclave-api/Cargo.toml | 10 +- core-primitives/extrinsics-factory/Cargo.toml | 6 +- core-primitives/hashing/Cargo.toml | 2 +- .../node-api/api-client-extensions/Cargo.toml | 8 +- .../node-api/api-client-types/Cargo.toml | 8 +- core-primitives/node-api/factory/Cargo.toml | 2 +- core-primitives/node-api/metadata/Cargo.toml | 2 +- core-primitives/ocall-api/Cargo.toml | 6 +- .../sgx-runtime-primitives/Cargo.toml | 8 +- core-primitives/sgx/crypto/Cargo.toml | 2 +- core-primitives/stf-executor/Cargo.toml | 4 +- core-primitives/stf-primitives/Cargo.toml | 4 +- core-primitives/stf-state-handler/Cargo.toml | 2 +- core-primitives/storage/Cargo.toml | 12 +- .../substrate-sgx/externalities/Cargo.toml | 2 +- .../substrate-sgx/sp-io/Cargo.toml | 10 +- core-primitives/teerex-storage/Cargo.toml | 2 +- core-primitives/test/Cargo.toml | 6 +- core-primitives/top-pool-author/Cargo.toml | 6 +- core-primitives/top-pool/Cargo.toml | 6 +- core-primitives/types/Cargo.toml | 12 +- core-primitives/utils/Cargo.toml | 4 +- core/direct-rpc-server/Cargo.toml | 2 +- core/offchain-worker-executor/Cargo.toml | 4 +- .../block-import-dispatcher/Cargo.toml | 2 +- core/parentchain/block-importer/Cargo.toml | 2 +- .../indirect-calls-executor/Cargo.toml | 6 +- core/parentchain/light-client/Cargo.toml | 14 +- core/parentchain/parentchain-crate/Cargo.toml | 2 +- core/parentchain/test/Cargo.toml | 12 +- core/rpc-server/Cargo.toml | 2 +- core/tls-websocket-server/Cargo.toml | 2 +- enclave-runtime/Cargo.lock | 842 ++++++----- enclave-runtime/Cargo.toml | 10 +- service/Cargo.toml | 22 +- sidechain/block-composer/Cargo.toml | 4 +- sidechain/block-verification/Cargo.toml | 10 +- sidechain/consensus/aura/Cargo.toml | 8 +- sidechain/consensus/common/Cargo.toml | 4 +- sidechain/consensus/slots/Cargo.toml | 6 +- sidechain/primitives/Cargo.toml | 8 +- sidechain/rpc-handler/Cargo.toml | 2 +- sidechain/state/Cargo.toml | 8 +- sidechain/storage/Cargo.toml | 2 +- sidechain/test/Cargo.toml | 2 +- sidechain/validateer-fetch/Cargo.toml | 8 +- 51 files changed, 1266 insertions(+), 1227 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c8a14a29d8..55ab47d33a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9,34 +9,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" dependencies = [ "lazy_static", - "regex 1.8.1", + "regex 1.8.3", ] [[package]] name = "ac-compose-macros" -version = "0.2.3" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#d872c2ca4328a30222e4d470c8fc4921abad9f34" +version = "0.4.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ "ac-primitives", - "log 0.4.17", - "parity-scale-codec", - "sp-application-crypto", - "sp-core", - "sp-runtime", + "log 0.4.18", + "maybe-async", ] [[package]] name = "ac-node-api" -version = "0.2.3" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#d872c2ca4328a30222e4d470c8fc4921abad9f34" +version = "0.4.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ "ac-primitives", "bitvec", "derive_more", "either", - "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", + "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "hex", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "serde 1.0.163", @@ -49,25 +46,26 @@ dependencies = [ [[package]] name = "ac-primitives" -version = "0.5.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#d872c2ca4328a30222e4d470c8fc4921abad9f34" +version = "0.7.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ "frame-system", - "hex", "impl-serde", "pallet-assets", "pallet-balances", - "pallet-contracts", - "pallet-staking", "parity-scale-codec", "primitive-types", "scale-info", "serde 1.0.163", "serde_json 1.0.96", + "sp-application-crypto", "sp-core", + "sp-core-hashing", "sp-runtime", + "sp-runtime-interface", "sp-staking", "sp-version", + "sp-weights", ] [[package]] @@ -132,7 +130,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ "getrandom 0.2.9", - "once_cell 1.17.1", + "once_cell 1.17.2", "version_check", ] @@ -144,7 +142,7 @@ checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if 1.0.0", "getrandom 0.2.9", - "once_cell 1.17.1", + "once_cell 1.17.2", "version_check", ] @@ -166,6 +164,12 @@ dependencies = [ "memchr 2.5.0", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + [[package]] name = "android_system_properties" version = "0.1.5" @@ -246,7 +250,7 @@ checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -304,9 +308,9 @@ dependencies = [ [[package]] name = "base16ct" -version = "0.1.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base58" @@ -346,9 +350,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" [[package]] name = "base64ct" @@ -368,10 +372,10 @@ dependencies = [ [[package]] name = "binary-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "hash-db", - "log 0.4.17", + "hash-db 0.16.0", + "log 0.4.18", ] [[package]] @@ -397,7 +401,7 @@ dependencies = [ "peeking_take_while", "proc-macro2", "quote", - "regex 1.8.1", + "regex 1.8.3", "rustc-hash", "shlex", ] @@ -432,7 +436,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -442,7 +446,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400" dependencies = [ "arrayvec 0.4.12", - "constant_time_eq", + "constant_time_eq 0.1.5", +] + +[[package]] +name = "blake2b_simd" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" +dependencies = [ + "arrayref", + "arrayvec 0.7.2", + "constant_time_eq 0.2.5", ] [[package]] @@ -500,7 +515,7 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07fbd1d11282a1eb134d3c3b7cf8ce213b5161c6e5f73fb1b98618482c606b64" dependencies = [ - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "serde 1.0.163", @@ -514,9 +529,9 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "bstr" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d4260bcc2e8fc9df1eac4919a720effeb63a3f0952f5bf4944adfa18897f09" +checksum = "a246e68bb43f6cd9db24bea052a53e40405417c5fb372e3d1a8a7f770a564ef5" dependencies = [ "memchr 2.5.0", "serde 1.0.163", @@ -533,9 +548,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.12.2" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c6ed94e98ecff0c12dd1b04c15ec0d7d9458ca8fe806cea6f12954efe74c63b" +checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" [[package]] name = "byte-slice-cast" @@ -682,13 +697,13 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.24" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b" +checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ + "android-tzdata", "iana-time-zone", "js-sys", - "num-integer 0.1.45", "num-traits 0.2.15", "serde 1.0.163", "time", @@ -708,13 +723,13 @@ dependencies = [ [[package]] name = "claims-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "parity-scale-codec", "rustc-hex", "scale-info", "serde 1.0.163", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -757,7 +772,7 @@ dependencies = [ "clap_derive", "clap_lex", "indexmap 1.9.3", - "once_cell 1.17.1", + "once_cell 1.17.2", "strsim 0.10.0", "termcolor", "textwrap 0.16.0", @@ -813,7 +828,7 @@ dependencies = [ [[package]] name = "common-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "sp-std", ] @@ -830,6 +845,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +[[package]] +name = "constant_time_eq" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13418e745008f7349ec7e449155f419a61b92b58a99cc3616942b926825ec76b" + [[package]] name = "convert_case" version = "0.4.0" @@ -939,9 +960,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-bigint" -version = "0.4.9" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" +checksum = "cf4c2f4e1afd912bc40bfd6fed5d9dc1f288e0ba01bfcc835cc5bc3eb13efe15" dependencies = [ "generic-array 0.14.7", "rand_core 0.6.4", @@ -1016,9 +1037,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.94" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f61f1b6389c3fe1c316bf8a4dccc90a38208354b330925bce1f74a6c4756eb93" +checksum = "109308c20e8445959c2792e81871054c6a17e6976489a93d2769641a2ba5839c" dependencies = [ "cc", "cxxbridge-flags", @@ -1028,41 +1049,41 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.94" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12cee708e8962df2aeb38f594aae5d827c022b6460ac71a7a3e2c3c2aae5a07b" +checksum = "daf4c6755cdf10798b97510e0e2b3edb9573032bd9379de8fffa59d68165494f" dependencies = [ "cc", "codespan-reporting", - "once_cell 1.17.1", + "once_cell 1.17.2", "proc-macro2", "quote", "scratch", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] name = "cxxbridge-flags" -version = "1.0.94" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7944172ae7e4068c533afbb984114a56c46e9ccddda550499caa222902c7f7bb" +checksum = "882074421238e84fe3b4c65d0081de34e5b323bf64555d3e61991f76eb64a7bb" [[package]] name = "cxxbridge-macro" -version = "1.0.94" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2345488264226bf682893e25de0769f3360aac9957980ec49361b083ddaa5bc5" +checksum = "4a076022ece33e7686fb76513518e219cca4fce5750a8ae6d1ce6c0f48fd1af9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] name = "data-encoding" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" +checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" [[package]] name = "der" @@ -1073,6 +1094,15 @@ dependencies = [ "const-oid", "der_derive", "flagset", +] + +[[package]] +name = "der" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56acb310e15652100da43d130af8d97b509e95af61aab1c5a7939ef24337ee17" +dependencies = [ + "const-oid", "zeroize", ] @@ -1147,11 +1177,12 @@ dependencies = [ [[package]] name = "digest" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer 0.10.4", + "const-oid", "crypto-common", "subtle", ] @@ -1217,14 +1248,16 @@ checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30" [[package]] name = "ecdsa" -version = "0.14.8" +version = "0.16.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" +checksum = "0997c976637b606099b9985693efa3581e84e41f5c11ba5255f88711058ad428" dependencies = [ - "der", + "der 0.7.6", + "digest 0.10.7", "elliptic-curve", "rfc6979", - "signature", + "signature 2.1.0", + "spki 0.7.2", ] [[package]] @@ -1233,7 +1266,7 @@ version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" dependencies = [ - "signature", + "signature 1.6.4", ] [[package]] @@ -1270,17 +1303,17 @@ checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" [[package]] name = "elliptic-curve" -version = "0.12.3" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" +checksum = "968405c8fdc9b3bf4df0a6638858cc0b52462836ab6b1c87377785dd09cf1c0b" dependencies = [ "base16ct", "crypto-bigint", - "der", - "digest 0.10.6", + "digest 0.10.7", "ff", "generic-array 0.14.7", "group", + "pkcs8", "rand_core 0.6.4", "sec1", "subtle", @@ -1304,8 +1337,8 @@ checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" dependencies = [ "atty", "humantime", - "log 0.4.17", - "regex 1.8.1", + "log 0.4.18", + "regex 1.8.3", "termcolor", ] @@ -1317,8 +1350,8 @@ checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" dependencies = [ "humantime", "is-terminal", - "log 0.4.17", - "regex 1.8.1", + "log 0.4.18", + "regex 1.8.3", "termcolor", ] @@ -1379,7 +1412,7 @@ checksum = "6a89fb87a9e103f71b903b80b670200b54cc67a07578f070681f1fffb7396fb7" dependencies = [ "bytes 1.4.0", "ethereum-types", - "hash-db", + "hash-db 0.15.2", "hash256-std-hasher", "parity-scale-codec", "rlp", @@ -1407,9 +1440,9 @@ dependencies = [ [[package]] name = "evm" -version = "0.37.0" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4448c65b71e8e2b9718232d84d09045eeaaccb2320494e6bd6dbf7e58fec8ff" +checksum = "a49a4e11987c51220aa89dbe1a5cc877f5079fa6864c0a5b4533331db44e9365" dependencies = [ "auto_impl", "environmental 1.1.4", @@ -1417,7 +1450,7 @@ dependencies = [ "evm-core", "evm-gasometer", "evm-runtime", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "primitive-types", "rlp", @@ -1428,9 +1461,9 @@ dependencies = [ [[package]] name = "evm-core" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64c51bec0eb68a891c2575c758eaaa1d61373fc51f7caaf216b1fb5c3fea3b5d" +checksum = "4f1f13264b044cb66f0602180f0bc781c29accb41ff560669a3ec15858d5b606" dependencies = [ "parity-scale-codec", "primitive-types", @@ -1440,9 +1473,9 @@ dependencies = [ [[package]] name = "evm-gasometer" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8b93c59c54fc26522d842f0e0d3f8e8be331c776df18ff3e540b53c2f64d509" +checksum = "8d43eadc395bd1a52990787ca1495c26b0248165444912be075c28909a853b8c" dependencies = [ "environmental 1.1.4", "evm-core", @@ -1452,9 +1485,9 @@ dependencies = [ [[package]] name = "evm-runtime" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c79b9459ce64f1a28688397c4013764ce53cd57bb84efc16b5187fa9b05b13ad" +checksum = "2aa5b32f59ec582a5651978004e5c784920291263b7dcb6de418047438e37f4f" dependencies = [ "auto_impl", "environmental 1.1.4", @@ -1463,6 +1496,19 @@ dependencies = [ "sha3", ] +[[package]] +name = "expander" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f360349150728553f92e4c997a16af8915f418d3a0f21b440d34c5632f16ed84" +dependencies = [ + "blake2", + "fs-err", + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "failure" version = "0.1.8" @@ -1508,9 +1554,9 @@ dependencies = [ [[package]] name = "ff" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" +checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core 0.6.4", "subtle", @@ -1537,7 +1583,7 @@ dependencies = [ "either", "futures 0.3.28", "futures-timer", - "log 0.4.17", + "log 0.4.18", "num-traits 0.2.15", "parity-scale-codec", "parking_lot 0.12.1", @@ -1630,17 +1676,17 @@ dependencies = [ [[package]] name = "fp-account" version = "1.0.0-dev" -source = "git+https://github.com/integritee-network/frontier.git?branch=polkadot-v0.9.39#3297c466619934d462e0b845c1ab1e81906dcb18" +source = "git+https://github.com/integritee-network/frontier.git?branch=bar/polkadot-v0.9.42#a5a5e1e6ec08cd542a6084c310863150fb8841b1" dependencies = [ "hex", "impl-serde", "libsecp256k1", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -1648,11 +1694,12 @@ dependencies = [ [[package]] name = "fp-evm" version = "3.0.0-dev" -source = "git+https://github.com/integritee-network/frontier.git?branch=polkadot-v0.9.39#3297c466619934d462e0b845c1ab1e81906dcb18" +source = "git+https://github.com/integritee-network/frontier.git?branch=bar/polkadot-v0.9.42#a5a5e1e6ec08cd542a6084c310863150fb8841b1" dependencies = [ "evm", "frame-support", "parity-scale-codec", + "scale-info", "serde 1.0.163", "sp-core", "sp-runtime", @@ -1668,13 +1715,13 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-support-procedural", "frame-system", "linregress", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "paste", "scale-info", @@ -1682,7 +1729,7 @@ dependencies = [ "sp-api", "sp-application-crypto", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-runtime-interface", "sp-std", @@ -1690,45 +1737,17 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "frame-election-provider-solution-type" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "frame-election-provider-support" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" -dependencies = [ - "frame-election-provider-solution-type", - "frame-support", - "frame-system", - "parity-scale-codec", - "scale-info", - "sp-arithmetic", - "sp-core", - "sp-npos-elections", - "sp-runtime", - "sp-std", -] - [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", "sp-tracing", @@ -1749,7 +1768,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "15.1.0" -source = "git+https://github.com/paritytech/frame-metadata#438a5b098bb9d5b5a09bdc5b68275b2c5e63a010" +source = "git+https://github.com/paritytech/frame-metadata#0c6400964fe600ea07f8233810415f6958fe4e20" dependencies = [ "cfg-if 1.0.0", "parity-scale-codec", @@ -1760,15 +1779,16 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "bitflags", + "environmental 1.1.4", "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "frame-support-procedural", "impl-trait-for-tuples", "k256", - "log 0.4.17", - "once_cell 1.17.1", + "log 0.4.18", + "once_cell 1.17.2", "parity-scale-codec", "paste", "scale-info", @@ -1779,7 +1799,7 @@ dependencies = [ "sp-core", "sp-core-hashing-proc-macro", "sp-inherents", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-staking", "sp-state-machine", @@ -1792,52 +1812,53 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "Inflector", "cfg-expr", "derive-syn-parse", "frame-support-procedural-tools", "itertools", + "proc-macro-warning", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", "sp-version", @@ -1847,7 +1868,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", @@ -1862,12 +1883,18 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "sp-api", ] +[[package]] +name = "fs-err" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0845fa252299212f0389d64ba26f34fa32cfe41588355f21ed507c59a0f64541" + [[package]] name = "fuchsia-zircon" version = "0.3.3" @@ -2010,7 +2037,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -2109,6 +2136,7 @@ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum 1.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "version_check", + "zeroize", ] [[package]] @@ -2175,15 +2203,15 @@ dependencies = [ "aho-corasick 0.7.20", "bstr", "fnv 1.0.7", - "log 0.4.17", - "regex 1.8.1", + "log 0.4.18", + "regex 1.8.3", ] [[package]] name = "group" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core 0.6.4", @@ -2215,6 +2243,12 @@ version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" +[[package]] +name = "hash-db" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e7d7786361d7425ae2fe4f9e407eb0efaa0840f5212d109cc018c40c35c6ab4" + [[package]] name = "hash256-std-hasher" version = "0.15.2" @@ -2257,7 +2291,7 @@ dependencies = [ [[package]] name = "hashbrown_tstd" version = "0.12.0" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "hdrhistogram" @@ -2366,7 +2400,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -2418,7 +2452,7 @@ name = "http_req" version = "0.8.1" source = "git+https://github.com/integritee-network/http_req?branch=master#3723e88235f2b29bc1a31835853b072ffd0455fd" dependencies = [ - "log 0.4.17", + "log 0.4.18", "rustls 0.19.1", "unicase 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "webpki 0.21.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2430,7 +2464,7 @@ name = "http_req" version = "0.8.1" source = "git+https://github.com/integritee-network/http_req#3723e88235f2b29bc1a31835853b072ffd0455fd" dependencies = [ - "log 0.4.17", + "log 0.4.18", "rustls 0.19.0 (git+https://github.com/mesalock-linux/rustls?branch=mesalock_sgx)", "sgx_tstd", "unicase 2.6.0 (git+https://github.com/mesalock-linux/unicase-sgx)", @@ -2510,7 +2544,7 @@ dependencies = [ "ct-logs", "futures-util 0.3.28", "hyper", - "log 0.4.17", + "log 0.4.18", "rustls 0.19.1", "rustls-native-certs", "tokio", @@ -2634,12 +2668,6 @@ dependencies = [ "serde 1.0.163", ] -[[package]] -name = "indexmap-nostd" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" - [[package]] name = "instant" version = "0.1.12" @@ -2665,7 +2693,7 @@ dependencies = [ "array-bytes 6.1.0", "base58", "blake2-rfc", - "chrono 0.4.24", + "chrono 0.4.26", "clap 3.2.25", "env_logger 0.9.3", "frame-system", @@ -2681,7 +2709,7 @@ dependencies = [ "itp-time-utils", "itp-types", "itp-utils", - "log 0.4.17", + "log 0.4.18", "pallet-balances", "pallet-evm", "pallet-teerex", @@ -2707,7 +2735,7 @@ dependencies = [ [[package]] name = "integritee-node-runtime" version = "1.0.32" -source = "git+https://github.com/integritee-network/integritee-node.git?branch=polkadot-v0.9.39#89f8cc939c719025cd57379a007b7f36a58bdd29" +source = "git+https://github.com/integritee-network/integritee-node.git?branch=szp/polkadot-v0.9.42#03c799358ad096e97852d5322fc67ce0d4aced03" dependencies = [ "frame-executive", "frame-support", @@ -2786,7 +2814,7 @@ dependencies = [ "its-test", "jsonrpsee", "lazy_static", - "log 0.4.17", + "log 0.4.18", "mockall", "pallet-balances", "parity-scale-codec", @@ -2803,8 +2831,8 @@ dependencies = [ "sgx_types", "sgx_urts", "sha2 0.7.1", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-keyring", "sp-runtime", "substrate-api-client", @@ -2816,9 +2844,9 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c66c74d2ae7e79a5a8f7ac924adbe38ee42a859c6539ad869eb51f0b52dc220" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ "hermit-abi 0.3.1", "libc", @@ -2887,7 +2915,7 @@ dependencies = [ "itp-enclave-metrics", "itp-ocall-api", "lazy_static", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "serde 1.0.163", "serde_json 1.0.96", @@ -2956,7 +2984,7 @@ dependencies = [ "itp-storage", "itp-types", "itp-utils", - "log 0.4.17", + "log 0.4.18", "pallet-balances", "pallet-parentchain", "pallet-sudo", @@ -2981,7 +3009,7 @@ dependencies = [ "itp-utils", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "serde_json 1.0.96", "sgx_tstd", @@ -3006,7 +3034,7 @@ dependencies = [ "itp-test", "itp-top-pool-author", "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3037,7 +3065,7 @@ dependencies = [ "itc-parentchain-block-importer", "itp-import-queue", "itp-types", - "log 0.4.17", + "log 0.4.18", "sgx_tstd", "sgx_types", "sp-runtime", @@ -3056,7 +3084,7 @@ dependencies = [ "itp-settings", "itp-stf-executor", "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3085,7 +3113,7 @@ dependencies = [ "itp-test", "itp-top-pool-author", "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3102,7 +3130,7 @@ dependencies = [ "derive_more", "finality-grandpa", "frame-system", - "hash-db", + "hash-db 0.15.2", "itc-parentchain-test", "itp-ocall-api", "itp-sgx-io", @@ -3111,14 +3139,14 @@ dependencies = [ "itp-test", "itp-types", "lazy_static", - "log 0.4.17", + "log 0.4.18", "num-traits 0.2.15", "parity-scale-codec", "sgx_tstd", "sgx_types", "sp-application-crypto", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-runtime", "sp-trie", "thiserror 1.0.40", @@ -3132,12 +3160,12 @@ dependencies = [ "frame-support", "frame-system", "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -3151,7 +3179,7 @@ dependencies = [ "http 0.2.9", "http_req 0.8.1 (git+https://github.com/integritee-network/http_req?branch=master)", "http_req 0.8.1 (git+https://github.com/integritee-network/http_req)", - "log 0.4.17", + "log 0.4.18", "serde 1.0.163", "serde_json 1.0.96", "sgx_tstd", @@ -3174,7 +3202,7 @@ dependencies = [ "itp-rpc", "itp-types", "itp-utils", - "log 0.4.17", + "log 0.4.18", "openssl", "parity-scale-codec", "parking_lot 0.12.1", @@ -3202,7 +3230,7 @@ dependencies = [ "its-storage", "its-test", "jsonrpsee", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "serde_json 1.0.96", "sp-core", @@ -3214,9 +3242,9 @@ name = "itc-tls-websocket-server" version = "0.9.0" dependencies = [ "bit-vec", - "chrono 0.4.24", + "chrono 0.4.26", "env_logger 0.9.3", - "log 0.4.17", + "log 0.4.18", "mio 0.6.21", "mio 0.6.23", "mio-extras 2.0.6 (git+https://github.com/integritee-network/mio-extras-sgx?rev=963234b)", @@ -3268,8 +3296,8 @@ dependencies = [ "itp-api-client-types", "itp-types", "parity-scale-codec", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-runtime", "substrate-api-client", "thiserror 1.0.40", @@ -3295,7 +3323,7 @@ dependencies = [ "base64 0.13.1", "bit-vec", "chrono 0.4.11", - "chrono 0.4.24", + "chrono 0.4.26", "hex", "httparse 1.4.1", "itertools", @@ -3305,7 +3333,7 @@ dependencies = [ "itp-sgx-io", "itp-time-utils", "itp-types", - "log 0.4.17", + "log 0.4.18", "num-bigint 0.2.5", "parity-scale-codec", "rustls 0.19.0 (git+https://github.com/mesalock-linux/rustls?rev=sgx_1.1.3)", @@ -3347,14 +3375,14 @@ dependencies = [ "itp-settings", "itp-storage", "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "serde_json 1.0.96", "sgx_crypto_helper", "sgx_types", "sgx_urts", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-runtime", "teerex-primitives", "thiserror 1.0.40", @@ -3383,7 +3411,7 @@ dependencies = [ "itp-node-api", "itp-nonce-cache", "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3516,7 +3544,7 @@ dependencies = [ "itp-settings", "itp-sgx-io", "itp-sgx-temp-dir", - "log 0.4.17", + "log 0.4.18", "ofb", "parity-scale-codec", "serde 1.0.118 (git+https://github.com/mesalock-linux/serde-sgx?tag=sgx_1.1.3)", @@ -3537,7 +3565,7 @@ dependencies = [ "derive_more", "environmental 1.1.3", "itp-hashing", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "postcard", "serde 1.0.163", @@ -3590,7 +3618,7 @@ dependencies = [ "itp-time-utils", "itp-top-pool-author", "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_crypto_helper", "sgx_tstd", @@ -3635,7 +3663,7 @@ dependencies = [ "itp-time-utils", "itp-types", "lazy_static", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "rust-base58 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "rust-base58 0.0.4 (git+https://github.com/mesalock-linux/rust-base58-sgx?rev=sgx_1.1.3)", @@ -3652,7 +3680,7 @@ name = "itp-stf-state-observer" version = "0.9.0" dependencies = [ "itp-types", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "thiserror 1.0.40", @@ -3666,7 +3694,7 @@ dependencies = [ "derive_more", "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "frame-support", - "hash-db", + "hash-db 0.15.2", "itp-types", "parity-scale-codec", "sgx_tstd", @@ -3734,7 +3762,7 @@ dependencies = [ "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", "linked-hash-map 0.5.2", "linked-hash-map 0.5.6", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "parity-util-mem", "serde 1.0.163", @@ -3765,7 +3793,7 @@ dependencies = [ "itp-utils", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_crypto_helper", "sgx_tstd", @@ -3781,7 +3809,7 @@ dependencies = [ name = "itp-types" version = "0.9.0" dependencies = [ - "chrono 0.4.24", + "chrono 0.4.26", "frame-system", "integritee-node-runtime", "itp-sgx-runtime-primitives", @@ -3824,7 +3852,7 @@ dependencies = [ "itp-types", "its-primitives", "its-state", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3844,7 +3872,7 @@ dependencies = [ "itp-utils", "its-primitives", "its-test", - "log 0.4.17", + "log 0.4.18", "sgx_tstd", "sp-consensus-slots", "sp-core", @@ -3885,7 +3913,7 @@ dependencies = [ "its-state", "its-test", "its-validateer-fetch", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sp-core", @@ -3914,7 +3942,7 @@ dependencies = [ "its-primitives", "its-state", "its-test", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3941,7 +3969,7 @@ dependencies = [ "its-primitives", "its-test", "lazy_static", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sgx_tstd", "sp-consensus-slots", @@ -3964,7 +3992,7 @@ dependencies = [ "its-storage", "its-test", "jsonrpsee", - "log 0.4.17", + "log 0.4.18", "serde 1.0.163", "serde_json 1.0.96", "thiserror 1.0.40", @@ -3979,7 +4007,7 @@ dependencies = [ "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -3996,7 +4024,7 @@ dependencies = [ "its-primitives", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "rust-base58 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "rust-base58 0.0.4 (git+https://github.com/mesalock-linux/rust-base58-sgx?rev=sgx_1.1.3)", @@ -4027,7 +4055,7 @@ dependencies = [ "itp-sgx-externalities", "itp-storage", "its-primitives", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "serde 1.0.163", "sgx_tstd", @@ -4048,7 +4076,7 @@ dependencies = [ "itp-types", "its-primitives", "its-test", - "log 0.4.17", + "log 0.4.18", "mockall", "parity-scale-codec", "parking_lot 0.12.1", @@ -4115,7 +4143,7 @@ dependencies = [ "futures 0.3.28", "futures-executor 0.3.28", "futures-util 0.3.28", - "log 0.4.17", + "log 0.4.18", "serde 1.0.163", "serde_derive 1.0.163", "serde_json 1.0.96", @@ -4160,7 +4188,7 @@ dependencies = [ "hyper-rustls", "jsonrpsee-types", "jsonrpsee-utils", - "log 0.4.17", + "log 0.4.18", "serde 1.0.163", "serde_json 1.0.96", "thiserror 1.0.40", @@ -4180,7 +4208,7 @@ dependencies = [ "jsonrpsee-types", "jsonrpsee-utils", "lazy_static", - "log 0.4.17", + "log 0.4.18", "serde 1.0.163", "serde_json 1.0.96", "socket2", @@ -4213,7 +4241,7 @@ dependencies = [ "futures-channel 0.3.28", "futures-util 0.3.28", "hyper", - "log 0.4.17", + "log 0.4.18", "serde 1.0.163", "serde_json 1.0.96", "soketto", @@ -4230,7 +4258,7 @@ dependencies = [ "futures-util 0.3.28", "hyper", "jsonrpsee-types", - "log 0.4.17", + "log 0.4.18", "parking_lot 0.11.2", "rand 0.8.5", "rustc-hash", @@ -4249,7 +4277,7 @@ dependencies = [ "fnv 1.0.7", "futures 0.3.28", "jsonrpsee-types", - "log 0.4.17", + "log 0.4.18", "pin-project", "rustls 0.19.1", "rustls-native-certs", @@ -4273,7 +4301,7 @@ dependencies = [ "futures-util 0.3.28", "jsonrpsee-types", "jsonrpsee-utils", - "log 0.4.17", + "log 0.4.18", "rustc-hash", "serde 1.0.163", "serde_json 1.0.96", @@ -4286,13 +4314,14 @@ dependencies = [ [[package]] name = "k256" -version = "0.11.6" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c1e0b51e7ec0a97369623508396067a486bd0cbed95a2659a4b863d28cfc8b" +checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" dependencies = [ "cfg-if 1.0.0", "ecdsa", "elliptic-curve", + "once_cell 1.17.2", "sha2 0.10.6", ] @@ -4452,9 +4481,9 @@ checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" [[package]] name = "linux-raw-sys" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ece97ea872ece730aed82664c424eb4c8291e1ff2480247ccf7409044bc6479f" +checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "lock_api" @@ -4486,12 +4515,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.17" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if 1.0.0", -] +checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" [[package]] name = "mach" @@ -4526,6 +4552,17 @@ dependencies = [ "rawpointer", ] +[[package]] +name = "maybe-async" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f1b8c13cb1f814b634a96b2c725449fe7ed464a7b8781de8688be5ffbd3f305" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "memchr" version = "2.2.1" @@ -4571,12 +4608,11 @@ dependencies = [ [[package]] name = "memory-db" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e0c7cba9ce19ac7ffd2053ac9f49843bbd3f4318feedfd74e85c19d5fb0ba66" +checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db", - "hashbrown 0.12.3", + "hash-db 0.16.0", ] [[package]] @@ -4663,7 +4699,7 @@ dependencies = [ "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys", "libc", - "log 0.4.17", + "log 0.4.18", "miow", "net2 0.2.38", "slab 0.4.8", @@ -4672,14 +4708,13 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.6" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", - "log 0.4.17", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -4689,7 +4724,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" dependencies = [ "lazycell", - "log 0.4.17", + "log 0.4.18", "mio 0.6.23", "slab 0.4.8", ] @@ -4700,7 +4735,7 @@ version = "2.0.6" source = "git+https://github.com/integritee-network/mio-extras-sgx?rev=963234b#963234bf55e44f9efff921938255126c48deef3a" dependencies = [ "lazycell", - "log 0.4.17", + "log 0.4.18", "mio 0.6.21", "mio 0.6.23", "sgx_tstd", @@ -4758,7 +4793,7 @@ dependencies = [ "futures-util 0.3.28", "http 0.2.9", "httparse 1.8.0", - "log 0.4.17", + "log 0.4.18", "memchr 2.5.0", "mime", "spin 0.9.8", @@ -4825,7 +4860,7 @@ checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" dependencies = [ "lazy_static", "libc", - "log 0.4.17", + "log 0.4.18", "openssl", "openssl-probe", "openssl-sys", @@ -5153,9 +5188,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.1" +version = "1.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" [[package]] name = "opaque-debug" @@ -5171,15 +5206,15 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl" -version = "0.10.52" +version = "0.10.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01b8574602df80f7b85fdfc5392fa884a4e3b3f4f35402c070ab34c3d3f78d56" +checksum = "69b3f656a17a6cbc115b5c7a40c616947d213ba182135b014d6051b73ab6f019" dependencies = [ "bitflags", "cfg-if 1.0.0", "foreign-types", "libc", - "once_cell 1.17.1", + "once_cell 1.17.2", "openssl-macros", "openssl-sys", ] @@ -5192,7 +5227,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -5203,9 +5238,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.87" +version = "0.9.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e17f59264b2809d77ae94f0e1ebabc434773f370d6ca667bd223ea10e06cc7e" +checksum = "c2ce0f250f34a308dcfdbb351f511359857d4ed2134ba715a4eadd46e1ffd617" dependencies = [ "cc", "libc", @@ -5222,7 +5257,7 @@ checksum = "ceedf44fb00f2d1984b0bc98102627ce622e083e49a5bacdb3e514fa4238e267" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", @@ -5237,7 +5272,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -5253,7 +5288,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -5267,12 +5302,12 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "sp-runtime", @@ -5282,7 +5317,7 @@ dependencies = [ [[package]] name = "pallet-claims" version = "0.9.12" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "claims-primitives", "frame-support", @@ -5292,66 +5327,15 @@ dependencies = [ "scale-info", "serde 1.0.163", "serde_derive 1.0.163", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] -[[package]] -name = "pallet-contracts" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" -dependencies = [ - "bitflags", - "frame-benchmarking", - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "log 0.4.17", - "pallet-contracts-primitives", - "pallet-contracts-proc-macro", - "parity-scale-codec", - "rand 0.8.5", - "scale-info", - "serde 1.0.163", - "smallvec 1.10.0", - "sp-api", - "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", - "sp-runtime", - "sp-std", - "wasm-instrument", - "wasmi 0.20.0", - "wasmparser-nostd", -] - -[[package]] -name = "pallet-contracts-primitives" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" -dependencies = [ - "bitflags", - "parity-scale-codec", - "scale-info", - "sp-runtime", - "sp-std", - "sp-weights", -] - -[[package]] -name = "pallet-contracts-proc-macro" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "pallet-evm" version = "6.0.0-dev" -source = "git+https://github.com/integritee-network/frontier.git?branch=polkadot-v0.9.39#3297c466619934d462e0b845c1ab1e81906dcb18" +source = "git+https://github.com/integritee-network/frontier.git?branch=bar/polkadot-v0.9.42#a5a5e1e6ec08cd542a6084c310863150fb8841b1" dependencies = [ "environmental 1.1.4", "evm", @@ -5362,13 +5346,12 @@ dependencies = [ "frame-system", "hex", "impl-trait-for-tuples", - "log 0.4.17", - "pallet-timestamp", + "log 0.4.18", "parity-scale-codec", "rlp", "scale-info", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5376,20 +5359,20 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "pallet-authorship", "pallet-session", "parity-scale-codec", "scale-info", "sp-application-crypto", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-session", "sp-staking", @@ -5399,7 +5382,7 @@ dependencies = [ [[package]] name = "pallet-insecure-randomness-collective-flip" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -5413,15 +5396,15 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5429,16 +5412,16 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5446,14 +5429,14 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5461,14 +5444,14 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", "scale-info", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5476,15 +5459,15 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", "sp-weights", @@ -5493,17 +5476,17 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", - "log 0.4.17", + "log 0.4.18", "pallet-timestamp", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-session", "sp-staking", @@ -5514,11 +5497,11 @@ dependencies = [ [[package]] name = "pallet-sidechain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "pallet-teerex", "pallet-timestamp", "parity-scale-codec", @@ -5526,44 +5509,22 @@ dependencies = [ "serde 1.0.163", "sidechain-primitives", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", "teerex-primitives", ] -[[package]] -name = "pallet-staking" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" -dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", - "log 0.4.17", - "pallet-authorship", - "pallet-session", - "parity-scale-codec", - "scale-info", - "serde 1.0.163", - "sp-application-crypto", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", - "sp-runtime", - "sp-staking", - "sp-std", -] - [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", "scale-info", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5571,16 +5532,16 @@ dependencies = [ [[package]] name = "pallet-teeracle" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "pallet-teerex", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", "substrate-fixed", @@ -5590,18 +5551,18 @@ dependencies = [ [[package]] name = "pallet-teerex" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "pallet-timestamp", "parity-scale-codec", "scale-info", "serde 1.0.163", "sgx-verify", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", "teerex-primitives", @@ -5610,16 +5571,16 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "sp-inherents", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", "sp-timestamp", @@ -5628,7 +5589,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -5636,7 +5597,7 @@ dependencies = [ "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5644,7 +5605,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5656,7 +5617,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", @@ -5673,7 +5634,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", @@ -5681,7 +5642,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -5689,12 +5650,12 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "scale-info", "sp-runtime", @@ -5832,7 +5793,7 @@ checksum = "7037e5e93e0172a5a96874380bf73bc6ecef022e26fa25f2be26864d6b3ba95d" dependencies = [ "lazy_static", "num 0.2.1", - "regex 1.8.1", + "regex 1.8.3", ] [[package]] @@ -5856,7 +5817,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -5913,7 +5874,7 @@ checksum = "39407670928234ebc5e6e580247dd567ad73a3578460c5990f9503df207e8f07" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -5930,12 +5891,12 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkcs8" -version = "0.9.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ - "der", - "spki", + "der 0.7.6", + "spki 0.7.2", ] [[package]] @@ -5982,7 +5943,7 @@ dependencies = [ "itertools", "normalize-line-endings", "predicates-core", - "regex 1.8.1", + "regex 1.8.3", ] [[package]] @@ -6021,7 +5982,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ - "once_cell 1.17.1", + "once_cell 1.17.2", "toml_edit", ] @@ -6061,11 +6022,22 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" +[[package]] +name = "proc-macro-warning" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e99670bafb56b9a106419397343bdbc8b8742c3cc449fec6345f86173f47cd4" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.18", +] + [[package]] name = "proc-macro2" -version = "1.0.58" +version = "1.0.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa1fb82fc0c281dd9671101b66b771ebbe1eaf967b96ac8740dcba4b70005ca8" +checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" dependencies = [ "unicode-ident", ] @@ -6080,7 +6052,7 @@ dependencies = [ "byteorder 1.4.3", "hex", "lazy_static", - "rustix 0.36.13", + "rustix 0.36.14", ] [[package]] @@ -6137,9 +6109,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.27" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f4f29d145265ec1c483c7c654450edde0bfe043d3938d6972630663356d9500" +checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" dependencies = [ "proc-macro2", ] @@ -6300,7 +6272,7 @@ version = "0.9.2" source = "git+https://github.com/integritee-network/rcgen#1852c8dbeb74de36a422d218254b659497daf717" dependencies = [ "chrono 0.4.11", - "chrono 0.4.24", + "chrono 0.4.26", "pem 0.8.2", "pem 1.1.1", "ring 0.16.19", @@ -6365,7 +6337,7 @@ checksum = "8d2275aab483050ab2a7364c1a46604865ee7d6906684e08db0f090acf74f9e7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -6379,13 +6351,13 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.1" +version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af83e617f331cc6ae2da5443c602dfa5af81e517212d9d611a5b3ba1777b5370" +checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" dependencies = [ "aho-corasick 1.0.1", "memchr 2.5.0", - "regex-syntax 0.7.1", + "regex-syntax 0.7.2", ] [[package]] @@ -6413,19 +6385,18 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5996294f19bd3aae0453a862ad728f60e6600695733dd5df01da90c54363a3c" +checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "rfc6979" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ - "crypto-bigint", "hmac 0.12.1", - "zeroize", + "subtle", ] [[package]] @@ -6447,7 +6418,7 @@ checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" dependencies = [ "cc", "libc", - "once_cell 1.17.1", + "once_cell 1.17.2", "spin 0.5.2", "untrusted", "web-sys", @@ -6461,8 +6432,8 @@ source = "git+https://github.com/Niederb/ring-xous.git?branch=0.16.20-cleanup#8b dependencies = [ "cc", "libc", - "log 0.4.17", - "once_cell 1.17.1", + "log 0.4.18", + "once_cell 1.17.2", "rkyv", "spin 0.5.2", "untrusted", @@ -6582,9 +6553,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.13" +version = "0.36.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a38f9520be93aba504e8ca974197f46158de5dcaa9fa04b57c57cd6a679d658" +checksum = "14e4d67015953998ad0eb82887a0eb0129e18a7e2f3b7b0f6c422fddcd503d62" dependencies = [ "bitflags", "errno", @@ -6604,7 +6575,7 @@ dependencies = [ "errno", "io-lifetimes", "libc", - "linux-raw-sys 0.3.7", + "linux-raw-sys 0.3.8", "windows-sys 0.48.0", ] @@ -6654,7 +6625,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" dependencies = [ "base64 0.13.1", - "log 0.4.17", + "log 0.4.18", "ring 0.16.20 (registry+https://github.com/rust-lang/crates.io-index)", "sct 0.6.1", "webpki 0.21.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -6678,7 +6649,7 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" dependencies = [ - "base64 0.21.0", + "base64 0.21.2", ] [[package]] @@ -6729,7 +6700,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "array-bytes 4.2.0", "async-trait", @@ -6845,12 +6816,12 @@ dependencies = [ [[package]] name = "sec1" -version = "0.3.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" +checksum = "f0aec48e813d6b90b15f0b8948af3c63483992dee44c03e9930b3eebdabe046e" dependencies = [ "base16ct", - "der", + "der 0.7.6", "generic-array 0.14.7", "pkcs8", "subtle", @@ -6886,9 +6857,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2855b3715770894e67cbfa3df957790aa0c9edc3bf06efa1a84d77fa0839d1" +checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" dependencies = [ "bitflags", "core-foundation", @@ -7003,7 +6974,7 @@ checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -7041,6 +7012,15 @@ dependencies = [ "serde 1.0.163", ] +[[package]] +name = "serde_spanned" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93107647184f6027e3b7dcb2e11034cf95ffa1e3a682c67951963ac69c1c007d" +dependencies = [ + "serde 1.0.163", +] + [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -7056,11 +7036,11 @@ dependencies = [ [[package]] name = "sgx-verify" version = "0.1.4" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "base64 0.13.1", - "chrono 0.4.24", - "der", + "chrono 0.4.26", + "der 0.6.1", "frame-support", "hex", "hex-literal", @@ -7070,7 +7050,7 @@ dependencies = [ "serde 1.0.163", "serde_json 1.0.96", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-std", "teerex-primitives", "webpki 0.21.0", @@ -7080,12 +7060,12 @@ dependencies = [ [[package]] name = "sgx_alloc" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_backtrace_sys" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "cc", "sgx_build_helper", @@ -7095,12 +7075,12 @@ dependencies = [ [[package]] name = "sgx_build_helper" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_crypto_helper" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "itertools", "libc", @@ -7119,12 +7099,12 @@ dependencies = [ [[package]] name = "sgx_demangle" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_libc" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_types", ] @@ -7132,7 +7112,7 @@ dependencies = [ [[package]] name = "sgx_rand" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_trts", "sgx_tstd", @@ -7142,7 +7122,7 @@ dependencies = [ [[package]] name = "sgx_tcrypto" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_types", ] @@ -7150,7 +7130,7 @@ dependencies = [ [[package]] name = "sgx_tprotected_fs" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_trts", "sgx_types", @@ -7159,7 +7139,7 @@ dependencies = [ [[package]] name = "sgx_trts" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_libc", "sgx_types", @@ -7168,7 +7148,7 @@ dependencies = [ [[package]] name = "sgx_tse" version = "1.1.6" -source = "git+https://github.com/apache/teaclave-sgx-sdk.git?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/teaclave-sgx-sdk.git?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_types", ] @@ -7176,7 +7156,7 @@ dependencies = [ [[package]] name = "sgx_tstd" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "hashbrown_tstd", "sgx_alloc", @@ -7192,12 +7172,12 @@ dependencies = [ [[package]] name = "sgx_types" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_ucrypto" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "libc", "rand_core 0.3.1", @@ -7208,7 +7188,7 @@ dependencies = [ [[package]] name = "sgx_unwind" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_build_helper", ] @@ -7216,7 +7196,7 @@ dependencies = [ [[package]] name = "sgx_urts" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "libc", "sgx_types", @@ -7263,7 +7243,7 @@ checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" dependencies = [ "cfg-if 1.0.0", "cpufeatures", - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -7311,7 +7291,7 @@ checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" dependencies = [ "cfg-if 1.0.0", "cpufeatures", - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -7320,7 +7300,7 @@ version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "keccak", ] @@ -7342,13 +7322,13 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "sidechain-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "parity-scale-codec", "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", ] @@ -7367,8 +7347,14 @@ name = "signature" version = "1.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + +[[package]] +name = "signature" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "rand_core 0.6.4", ] @@ -7436,7 +7422,7 @@ dependencies = [ "bytes 1.4.0", "futures 0.3.28", "httparse 1.8.0", - "log 0.4.17", + "log 0.4.18", "rand 0.8.5", "sha-1 0.9.8", ] @@ -7444,13 +7430,15 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "hash-db", - "log 0.4.17", + "hash-db 0.16.0", + "log 0.4.18", "parity-scale-codec", + "scale-info", "sp-api-proc-macro", "sp-core", + "sp-metadata-ir", "sp-runtime", "sp-state-machine", "sp-std", @@ -7462,32 +7450,34 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ + "Inflector", "blake2", + "expander", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-std", ] [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "integer-sqrt", "num-traits 0.2.15", @@ -7501,7 +7491,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "sp-api", @@ -7513,25 +7503,22 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "async-trait", "futures 0.3.28", - "log 0.4.17", - "parity-scale-codec", + "log 0.4.18", "sp-core", "sp-inherents", "sp-runtime", "sp-state-machine", - "sp-std", - "sp-version", "thiserror 1.0.40", ] [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "async-trait", "parity-scale-codec", @@ -7546,10 +7533,28 @@ dependencies = [ "sp-timestamp", ] +[[package]] +name = "sp-consensus-grandpa" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "finality-grandpa", + "log 0.4.18", + "parity-scale-codec", + "scale-info", + "serde 1.0.163", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-keystore", + "sp-runtime", + "sp-std", +] + [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -7561,28 +7566,29 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "array-bytes 4.2.0", - "base58", "bitflags", "blake2", "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures 0.3.28", - "hash-db", + "hash-db 0.16.0", "hash256-std-hasher", "impl-serde", "lazy_static", "libsecp256k1", - "log 0.4.17", + "log 0.4.18", "merlin", "parity-scale-codec", "parking_lot 0.12.1", + "paste", "primitive-types", "rand 0.8.5", - "regex 1.8.1", + "regex 1.8.3", "scale-info", "schnorrkel", "secp256k1", @@ -7604,11 +7610,11 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "blake2", + "blake2b_simd", "byteorder 1.4.3", - "digest 0.10.6", + "digest 0.10.7", "sha2 0.10.6", "sha3", "sp-std", @@ -7618,28 +7624,28 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "proc-macro2", "quote", "sp-core-hashing", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "environmental 1.1.4", "parity-scale-codec", @@ -7647,28 +7653,10 @@ dependencies = [ "sp-storage", ] -[[package]] -name = "sp-finality-grandpa" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" -dependencies = [ - "finality-grandpa", - "log 0.4.17", - "parity-scale-codec", - "scale-info", - "serde 1.0.163", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-std", -] - [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -7686,10 +7674,10 @@ version = "7.0.0" dependencies = [ "environmental 1.1.3", "futures 0.3.28", - "hash-db", + "hash-db 0.15.2", "itp-sgx-externalities", "libsecp256k1", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "parking_lot 0.12.1", "sgx_tstd", @@ -7706,15 +7694,16 @@ dependencies = [ [[package]] name = "sp-io" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "bytes 1.4.0", "ed25519", "ed25519-dalek", "futures 0.3.28", "libsecp256k1", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", + "rustversion", "secp256k1", "sp-core", "sp-externalities", @@ -7731,7 +7720,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "lazy_static", "sp-core", @@ -7742,14 +7731,11 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "async-trait", "futures 0.3.28", - "merlin", "parity-scale-codec", "parking_lot 0.12.1", - "schnorrkel", "serde 1.0.163", "sp-core", "sp-externalities", @@ -7759,30 +7745,27 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "thiserror 1.0.40", "zstd", ] [[package]] -name = "sp-npos-elections" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +name = "sp-metadata-ir" +version = "0.1.0" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ + "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec", "scale-info", - "serde 1.0.163", - "sp-arithmetic", - "sp-core", - "sp-runtime", "sp-std", ] [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "sp-api", "sp-core", @@ -7792,22 +7775,22 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "backtrace", "lazy_static", - "regex 1.8.1", + "regex 1.8.3", ] [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "paste", "rand 0.8.5", @@ -7816,7 +7799,7 @@ dependencies = [ "sp-application-crypto", "sp-arithmetic", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-std", "sp-weights", ] @@ -7824,7 +7807,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", @@ -7842,19 +7825,19 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -7868,10 +7851,11 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", + "serde 1.0.163", "sp-core", "sp-runtime", "sp-std", @@ -7880,10 +7864,10 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "hash-db", - "log 0.4.17", + "hash-db 0.16.0", + "log 0.4.18", "parity-scale-codec", "parking_lot 0.12.1", "rand 0.8.5", @@ -7900,12 +7884,12 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7918,11 +7902,11 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "async-trait", "futures-timer", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sp-inherents", "sp-runtime", @@ -7933,7 +7917,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "sp-std", @@ -7945,7 +7929,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "sp-api", "sp-runtime", @@ -7954,11 +7938,11 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "ahash 0.8.3", - "hash-db", - "hashbrown 0.12.3", + "hash-db 0.16.0", + "hashbrown 0.13.2", "lazy_static", "memory-db", "nohash-hasher", @@ -7977,7 +7961,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7994,32 +7978,32 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "anyhow", "impl-trait-for-tuples", - "log 0.4.17", + "log 0.4.18", "parity-scale-codec", "sp-std", - "wasmi 0.13.2", + "wasmi", "wasmtime", ] [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -8050,7 +8034,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" dependencies = [ "base64ct", - "der", + "der 0.6.1", +] + +[[package]] +name = "spki" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" +dependencies = [ + "base64ct", + "der 0.7.6", ] [[package]] @@ -8116,17 +8110,19 @@ dependencies = [ [[package]] name = "substrate-api-client" -version = "0.10.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#d872c2ca4328a30222e4d470c8fc4921abad9f34" +version = "0.12.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ "ac-compose-macros", "ac-node-api", "ac-primitives", + "async-trait", "derive_more", - "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", + "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "frame-support", "hex", - "log 0.4.17", + "log 0.4.18", + "maybe-async", "parity-scale-codec", "serde 1.0.163", "serde_json 1.0.96", @@ -8152,11 +8148,11 @@ dependencies = [ [[package]] name = "substrate-client-keystore" -version = "0.7.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#d872c2ca4328a30222e4d470c8fc4921abad9f34" +version = "0.9.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ + "array-bytes 4.2.0", "async-trait", - "hex", "parking_lot 0.12.1", "sc-keystore", "serde_json 1.0.96", @@ -8180,7 +8176,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#8c4b84520cee2d7de53cc33cb67605ce4efefba8" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "ansi_term", "build-helper", @@ -8213,9 +8209,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.16" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6f671d4b5ffdb8eadec19c0ae67fe2639df8684bd7bc4b83d986b8db549cf01" +checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" dependencies = [ "proc-macro2", "quote", @@ -8249,7 +8245,7 @@ checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" [[package]] name = "teeracle-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "common-primitives", "sp-std", @@ -8259,14 +8255,14 @@ dependencies = [ [[package]] name = "teerex-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#4239d3defa20c3fbd13966f62ce85e9a407bd7bf" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "common-primitives", "parity-scale-codec", "scale-info", "serde 1.0.163", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39)", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-std", ] @@ -8355,7 +8351,7 @@ checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -8365,7 +8361,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" dependencies = [ "cfg-if 1.0.0", - "once_cell 1.17.1", + "once_cell 1.17.2", ] [[package]] @@ -8387,7 +8383,7 @@ checksum = "62cc94d358b5a1e84a5cb9109f559aa3c4d634d2b1b4de3d0fa4adc7c78e2861" dependencies = [ "anyhow", "hmac 0.12.1", - "once_cell 1.17.1", + "once_cell 1.17.2", "pbkdf2 0.11.0", "rand 0.8.5", "rustc-hash", @@ -8424,14 +8420,14 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.28.1" +version = "1.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0aa32867d44e6f2ce3385e89dceb990188b8bb0fb25b0cf576647a6f98ac5105" +checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2" dependencies = [ "autocfg 1.1.0", "bytes 1.4.0", "libc", - "mio 0.8.6", + "mio 0.8.8", "num_cpus", "parking_lot 0.12.1", "pin-project-lite", @@ -8449,7 +8445,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -8491,7 +8487,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54319c93411147bced34cb5609a80e0a8e44c5999c93903a81cd866630ec0bfd" dependencies = [ "futures-util 0.3.28", - "log 0.4.17", + "log 0.4.18", "tokio", "tungstenite 0.18.0", ] @@ -8506,7 +8502,7 @@ dependencies = [ "futures-core 0.3.28", "futures-io 0.3.28", "futures-sink 0.3.28", - "log 0.4.17", + "log 0.4.18", "pin-project-lite", "tokio", ] @@ -8527,26 +8523,34 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.11" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +checksum = "d6135d499e69981f9ff0ef2167955a5333c35e36f6937d382974566b3d5b94ec" dependencies = [ "serde 1.0.163", + "serde_spanned", + "toml_datetime", + "toml_edit", ] [[package]] name = "toml_datetime" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622" +checksum = "5a76a9312f5ba4c2dec6b9161fdf25d87ad8a09256ccea5a556fef03c706a10f" +dependencies = [ + "serde 1.0.163", +] [[package]] name = "toml_edit" -version = "0.19.8" +version = "0.19.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239410c8609e8125456927e6707163a3b1fdb40561e4b803bc041f466ccfdc13" +checksum = "2380d56e8670370eee6566b0bfd4265f65b3f432e8c6d85623f728d4fa31f739" dependencies = [ "indexmap 1.9.3", + "serde 1.0.163", + "serde_spanned", "toml_datetime", "winnow", ] @@ -8564,7 +8568,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if 1.0.0", - "log 0.4.17", + "log 0.4.18", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -8578,7 +8582,7 @@ checksum = "0f57e3ca2a01450b1a921183a9c9cbfda207fd822cef4ccb00a65402cbba7a74" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] @@ -8587,7 +8591,7 @@ version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" dependencies = [ - "once_cell 1.17.1", + "once_cell 1.17.2", "valuable", ] @@ -8598,7 +8602,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" dependencies = [ "lazy_static", - "log 0.4.17", + "log 0.4.18", "tracing-core", ] @@ -8619,10 +8623,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" dependencies = [ "ansi_term", - "chrono 0.4.24", + "chrono 0.4.26", "lazy_static", "matchers", - "regex 1.8.1", + "regex 1.8.3", "serde 1.0.163", "serde_json 1.0.96", "sharded-slab", @@ -8636,24 +8640,24 @@ dependencies = [ [[package]] name = "trie-db" -version = "0.25.1" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3390c0409daaa6027d6681393316f4ccd3ff82e1590a1e4725014e3ae2bf1920" +checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db", + "hash-db 0.16.0", "hashbrown 0.13.2", - "log 0.4.17", + "log 0.4.18", "rustc-hex", "smallvec 1.10.0", ] [[package]] name = "trie-root" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" +checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db", + "hash-db 0.16.0", ] [[package]] @@ -8662,7 +8666,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1631b201eb031b563d2e85ca18ec8092508e262a3196ce9bd10a67ec87b9f5c" dependencies = [ - "hash-db", + "hash-db 0.15.2", "rlp", ] @@ -8711,7 +8715,7 @@ dependencies = [ "bytes 1.4.0", "http 0.2.9", "httparse 1.8.0", - "log 0.4.17", + "log 0.4.18", "rand 0.8.5", "rustls 0.19.1", "sha-1 0.9.8", @@ -8733,7 +8737,7 @@ dependencies = [ "bytes 1.4.0", "http 0.2.9", "httparse 1.8.0", - "log 0.4.17", + "log 0.4.18", "rand 0.8.5", "sha1 0.10.5", "thiserror 1.0.40", @@ -8747,8 +8751,8 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 0.1.10", - "digest 0.10.6", + "cfg-if 1.0.0", + "digest 0.10.7", "rand 0.8.5", "static_assertions", ] @@ -8826,9 +8830,9 @@ checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" +checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" [[package]] name = "unicode-normalization" @@ -8953,7 +8957,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" dependencies = [ - "log 0.4.17", + "log 0.4.18", "try-lock", ] @@ -8969,7 +8973,7 @@ dependencies = [ "headers", "http 0.2.9", "hyper", - "log 0.4.17", + "log 0.4.18", "mime", "mime_guess", "multer", @@ -9023,11 +9027,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b04bc93f9d6bdee709f6bd2118f57dd6679cf1176a1af464fca3ab0d66d8fb" dependencies = [ "bumpalo", - "log 0.4.17", - "once_cell 1.17.1", + "log 0.4.18", + "once_cell 1.17.2", "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", "wasm-bindgen-shared", ] @@ -9049,7 +9053,7 @@ checksum = "e128beba882dd1eb6200e1dc92ae6c5dbaa4311aa7bb211ca035779e5efc39f8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -9060,15 +9064,6 @@ version = "0.2.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed9d5b4305409d1fc9482fee2d7f9bcbf24b3972bf59817ef757e23982242a93" -[[package]] -name = "wasm-instrument" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a47ecb37b9734d1085eaa5ae1a81e60801fd8c28d4cabdd8aedb982021918bc" -dependencies = [ - "parity-wasm", -] - [[package]] name = "wasm-opt" version = "0.111.0" @@ -9107,7 +9102,7 @@ dependencies = [ "cc", "cxx", "cxx-build", - "regex 1.8.1", + "regex 1.8.3", ] [[package]] @@ -9118,19 +9113,7 @@ checksum = "06c326c93fbf86419608361a2c925a31754cf109da1b8b55737070b4d6669422" dependencies = [ "parity-wasm", "wasmi-validation", - "wasmi_core 0.2.1", -] - -[[package]] -name = "wasmi" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01bf50edb2ea9d922aa75a7bf3c15e26a6c9e2d18c56e862b49737a582901729" -dependencies = [ - "spin 0.9.8", - "wasmi_arena", - "wasmi_core 0.5.0", - "wasmparser-nostd", + "wasmi_core", ] [[package]] @@ -9142,12 +9125,6 @@ dependencies = [ "parity-wasm", ] -[[package]] -name = "wasmi_arena" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ea379cbb0b41f3a9f0bf7b47036d036aae7f43383d8cc487d4deccf40dee0a" - [[package]] name = "wasmi_core" version = "0.2.1" @@ -9161,17 +9138,6 @@ dependencies = [ "num-traits 0.2.15", ] -[[package]] -name = "wasmi_core" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5bf998ab792be85e20e771fe14182b4295571ad1d4f89d3da521c1bef5f597a" -dependencies = [ - "downcast-rs", - "libm", - "num-traits 0.2.15", -] - [[package]] name = "wasmparser" version = "0.100.0" @@ -9182,15 +9148,6 @@ dependencies = [ "url 2.3.1", ] -[[package]] -name = "wasmparser-nostd" -version = "0.91.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c37f310b5a62bfd5ae7c0f1d8e6f98af16a5d6d84ba764e9c36439ec14e318b" -dependencies = [ - "indexmap-nostd", -] - [[package]] name = "wasmtime" version = "6.0.2" @@ -9202,9 +9159,9 @@ dependencies = [ "cfg-if 1.0.0", "indexmap 1.9.3", "libc", - "log 0.4.17", + "log 0.4.18", "object 0.29.0", - "once_cell 1.17.1", + "once_cell 1.17.2", "paste", "psm", "serde 1.0.163", @@ -9235,7 +9192,7 @@ dependencies = [ "cranelift-entity", "gimli 0.26.2", "indexmap 1.9.3", - "log 0.4.17", + "log 0.4.18", "object 0.29.0", "serde 1.0.163", "target-lexicon", @@ -9256,7 +9213,7 @@ dependencies = [ "cfg-if 1.0.0", "cpp_demangle", "gimli 0.26.2", - "log 0.4.17", + "log 0.4.18", "object 0.29.0", "rustc-demangle", "serde 1.0.163", @@ -9273,7 +9230,7 @@ version = "6.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eed41cbcbf74ce3ff6f1d07d1b707888166dc408d1a880f651268f4f7c9194b2" dependencies = [ - "once_cell 1.17.1", + "once_cell 1.17.2", ] [[package]] @@ -9298,13 +9255,13 @@ dependencies = [ "cfg-if 1.0.0", "indexmap 1.9.3", "libc", - "log 0.4.17", + "log 0.4.18", "mach", "memfd", "memoffset 0.6.5", "paste", "rand 0.8.5", - "rustix 0.36.13", + "rustix 0.36.14", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", @@ -9392,9 +9349,9 @@ dependencies = [ [[package]] name = "wide" -version = "0.7.8" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b689b6c49d6549434bf944e6b0f39238cf63693cb7a147e9d887507fffa3b223" +checksum = "5cd0496a71f3cc6bc4bf0ed91346426a5099e93d89807e663162dc5a1069ff65" dependencies = [ "bytemuck", "safe_arch", @@ -9617,7 +9574,7 @@ dependencies = [ "byteorder 1.4.3", "bytes 0.4.12", "httparse 1.8.0", - "log 0.4.17", + "log 0.4.18", "mio 0.6.23", "mio-extras 2.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "openssl", @@ -9653,27 +9610,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99d224a125dec5adda27d0346b9cae9794830279c4f9c27e4ab0b6c408d54012" dependencies = [ "const-oid", - "der", + "der 0.6.1", "flagset", - "spki", + "spki 0.6.0", ] [[package]] name = "xous" -version = "0.9.42" +version = "0.9.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4126043d97e773d482d4be8bd45c007640ae09af3ebf40d3d9b5c9ab843abf0b" +checksum = "30684dda3583f528d5b05bddc96527e1783255e867a5e81c10721d6abb9e169c" dependencies = [ "lazy_static", ] [[package]] name = "xous-api-log" -version = "0.1.38" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d267ec4b8fb7bff386e448043b81f20a7eb15174973bd37b7b9af6e2d6bbe2e6" +checksum = "fd6b15ea09891f09b02d763422dc99733c96e62d0f8ab476c6bc663c90b17e72" dependencies = [ - "log 0.4.17", + "log 0.4.18", "num-derive", "num-traits 0.2.15", "xous", @@ -9682,11 +9639,11 @@ dependencies = [ [[package]] name = "xous-api-names" -version = "0.9.40" +version = "0.9.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95f39025c4b19ebf704effb967afcea2e2576f7a55ed0d25dec01920bed6ac44" +checksum = "7b470fbf177d58767fa001acfcb5294a88d3938d3935865ff6b8f1db40f1004e" dependencies = [ - "log 0.4.17", + "log 0.4.18", "num-derive", "num-traits 0.2.15", "rkyv", @@ -9697,9 +9654,9 @@ dependencies = [ [[package]] name = "xous-ipc" -version = "0.9.42" +version = "0.9.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc52f85ca63305a0ea9d31ade0ea8fca86515ce33550486e7c0c8edbe3a4d68f" +checksum = "d520fe08642d55a56f700b6d30c7a556f38818e7c3e5d9a0856dde0b79ed4d67" dependencies = [ "bitflags", "rkyv", @@ -9730,7 +9687,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e262a29d0e61ccf2b6190d7050d4b237535fc76ce4c1210d9caa316f71dffa75" dependencies = [ "bit-vec", - "chrono 0.4.24", + "chrono 0.4.26", "num-bigint 0.4.3", ] @@ -9751,23 +9708,23 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.16", + "syn 2.0.18", ] [[package]] name = "zstd" -version = "0.11.2+zstd.1.5.2" +version = "0.12.3+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" +checksum = "76eea132fb024e0e13fd9c2f5d5d595d8a967aa72382ac2f9d39fcc95afd0806" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "5.0.2+zstd.1.5.2" +version = "6.0.5+zstd.1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" +checksum = "d56d9e60b4b1758206c238a10165fbcae3ca37b01744e394c463463f6529d23b" dependencies = [ "libc", "zstd-sys", diff --git a/app-libs/sgx-runtime/Cargo.toml b/app-libs/sgx-runtime/Cargo.toml index d0163874b2..e55df95e23 100644 --- a/app-libs/sgx-runtime/Cargo.toml +++ b/app-libs/sgx-runtime/Cargo.toml @@ -18,35 +18,35 @@ scale-info = { version = "2.0.1", default-features = false, features = ["derive" itp-sgx-runtime-primitives = { path = "../../core-primitives/sgx-runtime-primitives", default-features = false } # Substrate dependencies -frame-benchmarking = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-executive = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-system-benchmarking = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-insecure-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-block-builder = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-inherents = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-offchain = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-session = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-transaction-pool = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-version = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-benchmarking = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-executive = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-system-benchmarking = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-insecure-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-block-builder = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-inherents = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-offchain = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-session = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-transaction-pool = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-version = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # Integritee dependencies -pallet-evm = { default-features = false, optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "polkadot-v0.9.39" } -pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.39" } +pallet-evm = { default-features = false, optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } +pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/app-libs/stf/Cargo.toml b/app-libs/stf/Cargo.toml index edbde3c121..7a6f676966 100644 --- a/app-libs/stf/Cargo.toml +++ b/app-libs/stf/Cargo.toml @@ -30,21 +30,21 @@ itp-utils = { default-features = false, path = "../../core-primitives/utils" } sp-io = { default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator"], path = "../../core-primitives/substrate-sgx/sp-io" } # Substrate dependencies -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-application-crypto = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-application-crypto = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # scs / integritee -my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.39" } -pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.39" } +my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } [dev-dependencies] -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 49181dde7d..10b9143861 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -25,22 +25,22 @@ thiserror = "1.0" ws = { version = "0.9.1", features = ["ssl"] } # scs / integritee -my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.39" } -pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "polkadot-v0.9.39" } -pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.39" } +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } +pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.39" } -substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.39" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.39" } +substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # substrate dependencies -frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-application-crypto = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-application-crypto = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local dependencies ita-stf = { path = "../app-libs/stf" } diff --git a/core-primitives/attestation-handler/Cargo.toml b/core-primitives/attestation-handler/Cargo.toml index 20ffad4f25..e03ae41c00 100644 --- a/core-primitives/attestation-handler/Cargo.toml +++ b/core-primitives/attestation-handler/Cargo.toml @@ -51,8 +51,8 @@ itp-types = { path = "../types", default-features = false } httparse = { default-features = false, git = "https://github.com/integritee-network/httparse-sgx", branch = "sgx-experimental" } # substrate deps -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/enclave-api/Cargo.toml b/core-primitives/enclave-api/Cargo.toml index da7672c569..915618dd18 100644 --- a/core-primitives/enclave-api/Cargo.toml +++ b/core-primitives/enclave-api/Cargo.toml @@ -15,12 +15,12 @@ sgx_crypto_helper = { branch = "master", git = "https://github.com/apache/teacla sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } sgx_urts = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.39" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } itc-parentchain = { path = "../../core/parentchain/parentchain-crate" } itp-enclave-api-ffi = { path = "ffi" } diff --git a/core-primitives/extrinsics-factory/Cargo.toml b/core-primitives/extrinsics-factory/Cargo.toml index cc6f7e4893..4baac51c47 100644 --- a/core-primitives/extrinsics-factory/Cargo.toml +++ b/core-primitives/extrinsics-factory/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" # sgx dependencies sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.39" } +substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } # local dependencies itp-node-api = { path = "../node-api", default-features = false } @@ -24,8 +24,8 @@ thiserror = { version = "1.0", optional = true } # no-std dependencies codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } log = { version = "0.4", default-features = false } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/hashing/Cargo.toml b/core-primitives/hashing/Cargo.toml index 29be6428c1..c2e9f248f0 100644 --- a/core-primitives/hashing/Cargo.toml +++ b/core-primitives/hashing/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] # substrate -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/node-api/api-client-extensions/Cargo.toml b/core-primitives/node-api/api-client-extensions/Cargo.toml index 8514d29317..c56e6ff7da 100644 --- a/core-primitives/node-api/api-client-extensions/Cargo.toml +++ b/core-primitives/node-api/api-client-extensions/Cargo.toml @@ -10,13 +10,13 @@ codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive thiserror = { version = "1.0" } # substrate -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # scs # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.39" } +substrate-api-client = { default-features = false, features = ["std"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } # local deps itp-api-client-types = { path = "../api-client-types" } diff --git a/core-primitives/node-api/api-client-types/Cargo.toml b/core-primitives/node-api/api-client-types/Cargo.toml index 866f23881b..0a57a9448b 100644 --- a/core-primitives/node-api/api-client-types/Cargo.toml +++ b/core-primitives/node-api/api-client-types/Cargo.toml @@ -6,14 +6,14 @@ edition = "2021" [dependencies] # integritee-node -my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.39" } +my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } # scs -substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.39" } +substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } # substrate -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local itp-types = { default-features = false, path = "../../types" } diff --git a/core-primitives/node-api/factory/Cargo.toml b/core-primitives/node-api/factory/Cargo.toml index d37f76fa82..234203ff24 100644 --- a/core-primitives/node-api/factory/Cargo.toml +++ b/core-primitives/node-api/factory/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" thiserror = { version = "1.0" } # substrate -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local itp-api-client-types = { path = "../api-client-types" } diff --git a/core-primitives/node-api/metadata/Cargo.toml b/core-primitives/node-api/metadata/Cargo.toml index 3798a5ac47..4e336530dd 100644 --- a/core-primitives/node-api/metadata/Cargo.toml +++ b/core-primitives/node-api/metadata/Cargo.toml @@ -13,7 +13,7 @@ derive_more = { version = "0.99.5" } itp-api-client-types = { default-features = false, path = "../api-client-types" } # substrate -sp-core = { git = "https://github.com/paritytech/substrate.git", default-features = false, branch = "polkadot-v0.9.39" } +sp-core = { git = "https://github.com/paritytech/substrate.git", default-features = false, branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/ocall-api/Cargo.toml b/core-primitives/ocall-api/Cargo.toml index 5b4e0057f9..f7584c86f3 100644 --- a/core-primitives/ocall-api/Cargo.toml +++ b/core-primitives/ocall-api/Cargo.toml @@ -12,9 +12,9 @@ derive_more = { version = "0.99.5" } sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } # substrate deps -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local deps itp-storage = { path = "../storage", default-features = false } diff --git a/core-primitives/sgx-runtime-primitives/Cargo.toml b/core-primitives/sgx-runtime-primitives/Cargo.toml index 5b69981eb9..3c25e3a126 100644 --- a/core-primitives/sgx-runtime-primitives/Cargo.toml +++ b/core-primitives/sgx-runtime-primitives/Cargo.toml @@ -7,10 +7,10 @@ edition = "2021" [dependencies] # Substrate dependencies -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/sgx/crypto/Cargo.toml b/core-primitives/sgx/crypto/Cargo.toml index ad7a6e5cb7..2e3e7c7072 100644 --- a/core-primitives/sgx/crypto/Cargo.toml +++ b/core-primitives/sgx/crypto/Cargo.toml @@ -23,7 +23,7 @@ sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sd sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } # substrate deps -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local deps itp-settings = { path = "../../settings" } diff --git a/core-primitives/stf-executor/Cargo.toml b/core-primitives/stf-executor/Cargo.toml index 43baf31659..ee844db96f 100644 --- a/core-primitives/stf-executor/Cargo.toml +++ b/core-primitives/stf-executor/Cargo.toml @@ -36,8 +36,8 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features = log = { version = "0.4", default-features = false } # substrate dependencies -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # dev dependencies itc-parentchain-test = { path = "../../core/parentchain/test", optional = true, default-features = false } diff --git a/core-primitives/stf-primitives/Cargo.toml b/core-primitives/stf-primitives/Cargo.toml index 7770959dad..ea22e6d91a 100644 --- a/core-primitives/stf-primitives/Cargo.toml +++ b/core-primitives/stf-primitives/Cargo.toml @@ -9,8 +9,8 @@ edition = "2021" codec = { version = "3.0.0", default-features = false, features = ["derive"], package = "parity-scale-codec" } # Substrate dependencies -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] diff --git a/core-primitives/stf-state-handler/Cargo.toml b/core-primitives/stf-state-handler/Cargo.toml index 739473c96b..9373c3941d 100644 --- a/core-primitives/stf-state-handler/Cargo.toml +++ b/core-primitives/stf-state-handler/Cargo.toml @@ -37,7 +37,7 @@ thiserror = { version = "1.0", optional = true } codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } lazy_static = { version = "1.1.0", features = ["spin_no_std"] } log = { version = "0.4", default-features = false } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [dev-dependencies] itp-sgx-crypto = { path = "../../core-primitives/sgx/crypto", features = ["mocks"] } diff --git a/core-primitives/storage/Cargo.toml b/core-primitives/storage/Cargo.toml index c15b368bb9..2116175674 100644 --- a/core-primitives/storage/Cargo.toml +++ b/core-primitives/storage/Cargo.toml @@ -16,17 +16,17 @@ sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sd thiserror-sgx = { package = "thiserror", git = "https://github.com/mesalock-linux/thiserror-sgx", tag = "sgx_1.1.3", optional = true } # substrate deps -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-trie = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-trie = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # integritee itp-types = { default-features = false, path = "../types" } [dev-dependencies] -sp-state-machine = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-state-machine = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/substrate-sgx/externalities/Cargo.toml b/core-primitives/substrate-sgx/externalities/Cargo.toml index d7ca575d95..4d13234773 100644 --- a/core-primitives/substrate-sgx/externalities/Cargo.toml +++ b/core-primitives/substrate-sgx/externalities/Cargo.toml @@ -16,7 +16,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo sgx_tstd = { optional = true, features = ["untrusted_fs", "net", "backtrace"], git = "https://github.com/apache/teaclave-sgx-sdk.git", branch = "master" } # substrate -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local environmental = { default-features = false, path = "../environmental" } diff --git a/core-primitives/substrate-sgx/sp-io/Cargo.toml b/core-primitives/substrate-sgx/sp-io/Cargo.toml index 5e9f5aaf2d..500b7a55e8 100644 --- a/core-primitives/substrate-sgx/sp-io/Cargo.toml +++ b/core-primitives/substrate-sgx/sp-io/Cargo.toml @@ -20,11 +20,11 @@ sgx_tstd = { optional = true, features = ["untrusted_fs", "net", "backtrace"], g sgx_types = { optional = true, git = "https://github.com/apache/teaclave-sgx-sdk.git", branch = "master" } # Substrate dependencies -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime-interface = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-tracing = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-wasm-interface = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime-interface = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-tracing = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-wasm-interface = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local environmental = { path = "../environmental", default-features = false } diff --git a/core-primitives/teerex-storage/Cargo.toml b/core-primitives/teerex-storage/Cargo.toml index f8a64f7c92..f2cc061859 100644 --- a/core-primitives/teerex-storage/Cargo.toml +++ b/core-primitives/teerex-storage/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Integritee AG "] edition = "2021" [dependencies] -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } #local deps itp-storage = { path = "../storage", default-features = false } diff --git a/core-primitives/test/Cargo.toml b/core-primitives/test/Cargo.toml index ffcde0a9af..422b6881ce 100644 --- a/core-primitives/test/Cargo.toml +++ b/core-primitives/test/Cargo.toml @@ -14,9 +14,9 @@ sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sd sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } # substrate deps -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local deps ita-stf = { path = "../../app-libs/stf", default-features = false } diff --git a/core-primitives/top-pool-author/Cargo.toml b/core-primitives/top-pool-author/Cargo.toml index 6dbae91070..31d862344c 100644 --- a/core-primitives/top-pool-author/Cargo.toml +++ b/core-primitives/top-pool-author/Cargo.toml @@ -33,8 +33,8 @@ thiserror = { version = "1.0", optional = true } codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } derive_more = { version = "0.99.5" } log = { version = "0.4", default-features = false } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [dev-dependencies] futures = { version = "0.3" } @@ -42,7 +42,7 @@ itp-sgx-crypto = { path = "../sgx/crypto", features = ["mocks"] } itp-test = { path = "../test" } itp-top-pool = { path = "../top-pool", features = ["mocks"] } sgx-crypto-helper = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", package = "sgx_crypto_helper", default-features = false } -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/top-pool/Cargo.toml b/core-primitives/top-pool/Cargo.toml index 9d17a6bcf5..fd27f44329 100644 --- a/core-primitives/top-pool/Cargo.toml +++ b/core-primitives/top-pool/Cargo.toml @@ -32,9 +32,9 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features = derive_more = { version = "0.99.5" } log = { version = "0.4", default-features = false } serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } -sp-application-crypto = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-application-crypto = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # dev dependencies (for tests) [dev-dependencies] diff --git a/core-primitives/types/Cargo.toml b/core-primitives/types/Cargo.toml index 63ff06ea7c..6015b43356 100644 --- a/core-primitives/types/Cargo.toml +++ b/core-primitives/types/Cargo.toml @@ -18,14 +18,14 @@ serde_json = { version = "1.0", default-features = false, features = ["alloc"] } itp-sgx-runtime-primitives = { path = "../../core-primitives/sgx-runtime-primitives", default-features = false } # substrate-deps -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # integritee-node -my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.39" } +my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core-primitives/utils/Cargo.toml b/core-primitives/utils/Cargo.toml index deb3a9300b..f2736695af 100644 --- a/core-primitives/utils/Cargo.toml +++ b/core-primitives/utils/Cargo.toml @@ -12,8 +12,8 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features = hex = { version = "0.4.3", default-features = false, features = ["alloc"] } # substrate -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # teaclave sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } diff --git a/core/direct-rpc-server/Cargo.toml b/core/direct-rpc-server/Cargo.toml index c7b181d4fd..1eeb0e575f 100644 --- a/core/direct-rpc-server/Cargo.toml +++ b/core/direct-rpc-server/Cargo.toml @@ -13,7 +13,7 @@ sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-s codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } log = { version = "0.4", default-features = false } serde_json = { version = "1.0", default-features = false, features = ["alloc"] } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local itc-tls-websocket-server = { path = "../tls-websocket-server", default-features = false } diff --git a/core/offchain-worker-executor/Cargo.toml b/core/offchain-worker-executor/Cargo.toml index 748799e3db..a41906a31e 100644 --- a/core/offchain-worker-executor/Cargo.toml +++ b/core/offchain-worker-executor/Cargo.toml @@ -28,8 +28,8 @@ itp-top-pool-author = { path = "../../core-primitives/top-pool-author", default- itp-types = { path = "../../core-primitives/types", default-features = false } # Substrate dependencies -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # no-std compatible libraries log = { version = "0.4", default-features = false } diff --git a/core/parentchain/block-import-dispatcher/Cargo.toml b/core/parentchain/block-import-dispatcher/Cargo.toml index ad9d4acd47..f5a878a689 100644 --- a/core/parentchain/block-import-dispatcher/Cargo.toml +++ b/core/parentchain/block-import-dispatcher/Cargo.toml @@ -21,7 +21,7 @@ thiserror = { version = "1.0", optional = true } # crates.io no-std compatible libraries log = { version = "0.4", default-features = false } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [dev-dependencies] itc-parentchain-block-importer = { path = "../block-importer", features = ["mocks"] } diff --git a/core/parentchain/block-importer/Cargo.toml b/core/parentchain/block-importer/Cargo.toml index 069e262563..1064ea58d4 100644 --- a/core/parentchain/block-importer/Cargo.toml +++ b/core/parentchain/block-importer/Cargo.toml @@ -27,7 +27,7 @@ thiserror = { version = "1.0", optional = true } # crates.io no-std compatible libraries codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } log = { version = "0.4", default-features = false } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core/parentchain/indirect-calls-executor/Cargo.toml b/core/parentchain/indirect-calls-executor/Cargo.toml index 9bccb58df5..9d7048b659 100644 --- a/core/parentchain/indirect-calls-executor/Cargo.toml +++ b/core/parentchain/indirect-calls-executor/Cargo.toml @@ -34,9 +34,9 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features = log = { version = "0.4", default-features = false } # substrate dep -binary-merkle-tree = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +binary-merkle-tree = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [dev-dependencies] env_logger = "0.9.0" diff --git a/core/parentchain/light-client/Cargo.toml b/core/parentchain/light-client/Cargo.toml index 6baf1687d2..8b74570e78 100644 --- a/core/parentchain/light-client/Cargo.toml +++ b/core/parentchain/light-client/Cargo.toml @@ -26,12 +26,12 @@ itp-storage = { path = "../../../core-primitives/storage", default-features = fa itp-types = { path = "../../../core-primitives/types", default-features = false } # substrate deps -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-application-crypto = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-finality-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-trie = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-application-crypto = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-consensus-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-trie = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # test & mock dependencies itc-parentchain-test = { optional = true, default-features = false, path = "../../../core/parentchain/test" } @@ -58,7 +58,7 @@ std = [ "frame-system/std", "sp-core/std", "sp-application-crypto/std", - "sp-finality-grandpa/std", + "sp-consensus-grandpa/std", "sp-runtime/std", "sp-trie/std", diff --git a/core/parentchain/parentchain-crate/Cargo.toml b/core/parentchain/parentchain-crate/Cargo.toml index a450358fca..89af39dffa 100644 --- a/core/parentchain/parentchain-crate/Cargo.toml +++ b/core/parentchain/parentchain-crate/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "chain-error"] } # Parity -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local itc-parentchain-block-import-dispatcher = { path = "../block-import-dispatcher", default-features = false } diff --git a/core/parentchain/test/Cargo.toml b/core/parentchain/test/Cargo.toml index 26610cf048..54d9b690a0 100644 --- a/core/parentchain/test/Cargo.toml +++ b/core/parentchain/test/Cargo.toml @@ -15,12 +15,12 @@ scale-info = { version = "2.0.1", default-features = false, features = ["derive" serde = { version = "1.0.13", features = ["derive"], optional = true } # substrate dependencies -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-system = { default-features = false, package = "frame-system", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-system = { default-features = false, package = "frame-system", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/core/rpc-server/Cargo.toml b/core/rpc-server/Cargo.toml index 3227a6c944..7850d64fe9 100644 --- a/core/rpc-server/Cargo.toml +++ b/core/rpc-server/Cargo.toml @@ -27,5 +27,5 @@ std = [] [dev-dependencies] env_logger = { version = "*" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } its-test = { path = "../../sidechain/test" } diff --git a/core/tls-websocket-server/Cargo.toml b/core/tls-websocket-server/Cargo.toml index b4cbbdf67a..725cc63ad9 100644 --- a/core/tls-websocket-server/Cargo.toml +++ b/core/tls-websocket-server/Cargo.toml @@ -33,7 +33,7 @@ webpki = { version = "0.21", optional = true } yasna = { version = "0.4", optional = true, features = ["bit-vec", "num-bigint", "chrono", "std"] } # Substrate dependencies -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # no-std compatible libraries log = { version = "0.4", default-features = false } diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index 57ec28e5cf..f7dc89bef2 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -9,38 +9,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" dependencies = [ "lazy_static", - "regex 1.7.3", + "regex 1.8.3", ] [[package]] name = "ac-compose-macros" -version = "0.2.3" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#417c301cce7e23f765891cd56ca48878390c5cf9" +version = "0.4.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ "ac-primitives", "log", - "parity-scale-codec", - "sp-application-crypto", - "sp-core", - "sp-runtime", + "maybe-async", ] [[package]] name = "ac-node-api" -version = "0.2.3" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#417c301cce7e23f765891cd56ca48878390c5cf9" +version = "0.4.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ "ac-primitives", "bitvec", "derive_more", "either", - "frame-metadata 15.1.0", + "frame-metadata", "hex", "log", "parity-scale-codec", "scale-info", - "serde 1.0.158", - "serde_json 1.0.94", + "serde 1.0.163", + "serde_json 1.0.96", "sp-application-crypto", "sp-core", "sp-runtime", @@ -49,20 +46,23 @@ dependencies = [ [[package]] name = "ac-primitives" -version = "0.5.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#417c301cce7e23f765891cd56ca48878390c5cf9" +version = "0.7.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ - "hex", "impl-serde", "parity-scale-codec", "primitive-types", "scale-info", - "serde 1.0.158", - "serde_json 1.0.94", + "serde 1.0.163", + "serde_json 1.0.96", + "sp-application-crypto", "sp-core", + "sp-core-hashing", "sp-runtime", + "sp-runtime-interface", "sp-staking", "sp-version", + "sp-weights", ] [[package]] @@ -103,7 +103,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ "getrandom 0.2.3", - "once_cell 1.17.1", + "once_cell 1.17.2", "version_check", ] @@ -114,7 +114,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if 1.0.0", - "once_cell 1.17.1", + "once_cell 1.17.2", "version_check", ] @@ -129,13 +129,19 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.20" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" +checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" dependencies = [ "memchr 2.5.0", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + [[package]] name = "array-bytes" version = "4.2.0" @@ -144,9 +150,9 @@ checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" [[package]] name = "array-bytes" -version = "6.0.0" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22f72e9d6fac4bc80778ea470b20197b88d28c292bb7d60c3fb099280003cd19" +checksum = "d9b1c5a481ec30a5abd8dfbd94ab5cf1bb4e9a66be7f1b3b322f2f1170c200fd" [[package]] name = "arrayref" @@ -166,15 +172,26 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +[[package]] +name = "async-trait" +version = "0.1.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" +dependencies = [ + "proc-macro2", + "quote 1.0.28", + "syn 2.0.18", +] + [[package]] name = "auto_impl" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a8c1df849285fbacd587de7818cc7d13be6cd2cbcd47a04fb1801b0e2706e33" +checksum = "fee3da8ef1276b0bee5dd1c7258010d8fffd31801447323115a25560e1327b89" dependencies = [ "proc-macro-error", "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -200,9 +217,9 @@ source = "git+https://github.com/whalelephant/base-x-rs?branch=no_std#906c9ac592 [[package]] name = "base16ct" -version = "0.1.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base64" @@ -237,9 +254,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "binary-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "hash-db", + "hash-db 0.16.0", ] [[package]] @@ -272,7 +289,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -283,7 +300,18 @@ checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587" dependencies = [ "arrayref", "arrayvec 0.5.2", - "constant_time_eq", + "constant_time_eq 0.1.5", +] + +[[package]] +name = "blake2b_simd" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" +dependencies = [ + "arrayref", + "arrayvec 0.7.2", + "constant_time_eq 0.2.5", ] [[package]] @@ -294,7 +322,7 @@ checksum = "9e461a7034e85b211a4acb57ee2e6730b32912b06c08cc242243c39fc21ae6a2" dependencies = [ "arrayref", "arrayvec 0.5.2", - "constant_time_eq", + "constant_time_eq 0.1.5", ] [[package]] @@ -316,7 +344,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ "block-padding 0.2.1", - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -325,7 +353,7 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -345,9 +373,9 @@ checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" [[package]] name = "bounded-collections" -version = "0.1.5" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a071c348a5ef6da1d3a87166b408170b46002382b1dda83992b5c2208cefb370" +checksum = "07fbd1d11282a1eb134d3c3b7cf8ce213b5161c6e5f73fb1b98618482c606b64" dependencies = [ "log", "parity-scale-codec", @@ -432,18 +460,18 @@ name = "chrono" version = "0.4.11" source = "git+https://github.com/mesalock-linux/chrono-sgx#f964ae7f5f65bd2c9cd6f44a067e7980afc08ca0" dependencies = [ - "num-integer 0.1.41", + "num-integer", "num-traits 0.2.10", "sgx_tstd", ] [[package]] name = "chrono" -version = "0.4.24" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b" +checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ - "num-integer 0.1.45", + "android-tzdata", "num-traits 0.2.15", ] @@ -463,7 +491,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "12f8e7987cbd042a63249497f41aed09f8e65add917ea6566effbc56578d6801" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -478,6 +506,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +[[package]] +name = "constant_time_eq" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13418e745008f7349ec7e449155f419a61b92b58a99cc3616942b926825ec76b" + [[package]] name = "convert_case" version = "0.4.0" @@ -486,9 +520,9 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "cpufeatures" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "280a9f2d8b3a38871a3c8a46fb80db65e5e5ed97da80c4d08bf27fb63e35e181" +checksum = "3e4c1eaa2012c47becbbad2ab175484c2a84d1185b566fb2cc5b8707343dfe58" dependencies = [ "libc", ] @@ -501,11 +535,11 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-bigint" -version = "0.4.9" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" +checksum = "cf4c2f4e1afd912bc40bfd6fed5d9dc1f288e0ba01bfcc835cc5bc3eb13efe15" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "rand_core 0.6.4", "subtle", "zeroize", @@ -517,7 +551,7 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "typenum 1.16.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -549,17 +583,18 @@ dependencies = [ [[package]] name = "data-encoding" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" +checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" [[package]] name = "der" -version = "0.6.1" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" +checksum = "56acb310e15652100da43d130af8d97b509e95af61aab1c5a7939ef24337ee17" dependencies = [ "const-oid", + "zeroize", ] [[package]] @@ -569,7 +604,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e79116f119dd1dba1abf1f3405f03b9b0e79a27a3883864bfebded8a3dc768cd" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -581,7 +616,7 @@ checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" dependencies = [ "convert_case", "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "rustc_version 0.4.0", "syn 1.0.109", ] @@ -601,27 +636,29 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "digest" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer 0.10.4", + "const-oid", "crypto-common", "subtle", ] [[package]] name = "ecdsa" -version = "0.14.8" +version = "0.16.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" +checksum = "0997c976637b606099b9985693efa3581e84e41f5c11ba5255f88711058ad428" dependencies = [ "der", + "digest 0.10.7", "elliptic-curve", "rfc6979", "signature", @@ -649,16 +686,15 @@ checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" [[package]] name = "elliptic-curve" -version = "0.12.3" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" +checksum = "968405c8fdc9b3bf4df0a6638858cc0b52462836ab6b1c87377785dd09cf1c0b" dependencies = [ "base16ct", "crypto-bigint", - "der", - "digest 0.10.6", + "digest 0.10.7", "ff", - "generic-array 0.14.6", + "generic-array 0.14.7", "group", "rand_core 0.6.4", "sec1", @@ -670,7 +706,7 @@ dependencies = [ name = "enclave-runtime" version = "0.9.0" dependencies = [ - "array-bytes 6.0.0", + "array-bytes 6.1.0", "cid", "derive_more", "env_logger", @@ -794,12 +830,12 @@ checksum = "6a89fb87a9e103f71b903b80b670200b54cc67a07578f070681f1fffb7396fb7" dependencies = [ "bytes 1.4.0", "ethereum-types", - "hash-db", + "hash-db 0.15.2", "hash256-std-hasher", "parity-scale-codec", "rlp", "scale-info", - "sha3 0.10.6", + "sha3 0.10.8", "triehash", ] @@ -820,9 +856,9 @@ dependencies = [ [[package]] name = "evm" -version = "0.37.0" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4448c65b71e8e2b9718232d84d09045eeaaccb2320494e6bd6dbf7e58fec8ff" +checksum = "a49a4e11987c51220aa89dbe1a5cc877f5079fa6864c0a5b4533331db44e9365" dependencies = [ "auto_impl", "ethereum", @@ -834,14 +870,14 @@ dependencies = [ "primitive-types", "rlp", "scale-info", - "sha3 0.10.6", + "sha3 0.10.8", ] [[package]] name = "evm-core" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64c51bec0eb68a891c2575c758eaaa1d61373fc51f7caaf216b1fb5c3fea3b5d" +checksum = "4f1f13264b044cb66f0602180f0bc781c29accb41ff560669a3ec15858d5b606" dependencies = [ "parity-scale-codec", "primitive-types", @@ -850,9 +886,9 @@ dependencies = [ [[package]] name = "evm-gasometer" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8b93c59c54fc26522d842f0e0d3f8e8be331c776df18ff3e540b53c2f64d509" +checksum = "8d43eadc395bd1a52990787ca1495c26b0248165444912be075c28909a853b8c" dependencies = [ "evm-core", "evm-runtime", @@ -861,14 +897,27 @@ dependencies = [ [[package]] name = "evm-runtime" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c79b9459ce64f1a28688397c4013764ce53cd57bb84efc16b5187fa9b05b13ad" +checksum = "2aa5b32f59ec582a5651978004e5c784920291263b7dcb6de418047438e37f4f" dependencies = [ "auto_impl", "evm-core", "primitive-types", - "sha3 0.10.6", + "sha3 0.10.8", +] + +[[package]] +name = "expander" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f360349150728553f92e4c997a16af8915f418d3a0f21b440d34c5632f16ed84" +dependencies = [ + "blake2", + "fs-err", + "proc-macro2", + "quote 1.0.28", + "syn 1.0.109", ] [[package]] @@ -879,9 +928,9 @@ checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" [[package]] name = "ff" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" +checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core 0.6.4", "subtle", @@ -894,7 +943,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "36530797b9bf31cd4ff126dcfee8170f86b00cfdcea3269d73133cc0415945c3" dependencies = [ "either", - "futures 0.3.27", + "futures 0.3.28", "num-traits 0.2.15", "parity-scale-codec", "scale-info", @@ -930,7 +979,7 @@ dependencies = [ [[package]] name = "fp-account" version = "1.0.0-dev" -source = "git+https://github.com/integritee-network/frontier.git?branch=polkadot-v0.9.39#3297c466619934d462e0b845c1ab1e81906dcb18" +source = "git+https://github.com/integritee-network/frontier.git?branch=bar/polkadot-v0.9.42#a5a5e1e6ec08cd542a6084c310863150fb8841b1" dependencies = [ "hex", "libsecp256k1", @@ -946,11 +995,12 @@ dependencies = [ [[package]] name = "fp-evm" version = "3.0.0-dev" -source = "git+https://github.com/integritee-network/frontier.git?branch=polkadot-v0.9.39#3297c466619934d462e0b845c1ab1e81906dcb18" +source = "git+https://github.com/integritee-network/frontier.git?branch=bar/polkadot-v0.9.42#a5a5e1e6ec08cd542a6084c310863150fb8841b1" dependencies = [ "evm", "frame-support", "parity-scale-codec", + "scale-info", "sp-core", "sp-runtime", "sp-std", @@ -959,7 +1009,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -972,35 +1022,26 @@ dependencies = [ "sp-tracing", ] -[[package]] -name = "frame-metadata" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df6bb8542ef006ef0de09a5c4420787d79823c0ed7924225822362fd2bf2ff2d" -dependencies = [ - "cfg-if 1.0.0", - "parity-scale-codec", - "scale-info", -] - [[package]] name = "frame-metadata" version = "15.1.0" -source = "git+https://github.com/paritytech/frame-metadata#438a5b098bb9d5b5a09bdc5b68275b2c5e63a010" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "878babb0b136e731cc77ec2fd883ff02745ff21e6fb662729953d44923df009c" dependencies = [ "cfg-if 1.0.0", "parity-scale-codec", "scale-info", - "serde 1.0.158", + "serde 1.0.163", ] [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "bitflags", - "frame-metadata 15.0.0", + "environmental 1.1.4", + "frame-metadata", "frame-support-procedural", "impl-trait-for-tuples", "k256", @@ -1026,44 +1067,45 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "Inflector", "cfg-expr", "derive-syn-parse", "frame-support-procedural-tools", "itertools", + "proc-macro-warning", "proc-macro2", - "quote 1.0.26", - "syn 1.0.109", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", - "quote 1.0.26", - "syn 1.0.109", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "proc-macro2", - "quote 1.0.26", - "syn 1.0.109", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "log", @@ -1080,12 +1122,18 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "sp-api", ] +[[package]] +name = "fs-err" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0845fa252299212f0389d64ba26f34fa32cfe41588355f21ed507c59a0f64541" + [[package]] name = "funty" version = "2.0.0" @@ -1109,16 +1157,16 @@ dependencies = [ [[package]] name = "futures" -version = "0.3.27" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "531ac96c6ff5fd7c62263c5e3c67a603af4fcaee2e1a0ae5565ba3a11e69e549" +checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" dependencies = [ - "futures-channel 0.3.27", - "futures-core 0.3.27", - "futures-io 0.3.27", - "futures-sink 0.3.27", - "futures-task 0.3.27", - "futures-util 0.3.27", + "futures-channel 0.3.28", + "futures-core 0.3.28", + "futures-io 0.3.28", + "futures-sink 0.3.28", + "futures-task 0.3.28", + "futures-util 0.3.28", ] [[package]] @@ -1133,12 +1181,12 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.27" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "164713a5a0dcc3e7b4b1ed7d3b433cabc18025386f9339346e8daf15963cf7ac" +checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" dependencies = [ - "futures-core 0.3.27", - "futures-sink 0.3.27", + "futures-core 0.3.28", + "futures-sink 0.3.28", ] [[package]] @@ -1151,9 +1199,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.27" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86d7a0c1aa76363dac491de0ee99faf6941128376f1cf96f07db7603b7de69dd" +checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" [[package]] name = "futures-executor" @@ -1176,9 +1224,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.27" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d422fa3cbe3b40dca574ab087abb5bc98258ea57eea3fd6f1fa7162c778b91" +checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-macro" @@ -1187,7 +1235,7 @@ source = "git+https://github.com/mesalock-linux/futures-rs-sgx#d54882f24ddf7d613 dependencies = [ "proc-macro-hack", "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -1198,9 +1246,9 @@ source = "git+https://github.com/mesalock-linux/futures-rs-sgx#d54882f24ddf7d613 [[package]] name = "futures-sink" -version = "0.3.27" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec93083a4aecafb2a80a885c9de1f0ccae9dbd32c2bb54b0c3a65690e0b8d2f2" +checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" [[package]] name = "futures-task" @@ -1213,9 +1261,9 @@ dependencies = [ [[package]] name = "futures-task" -version = "0.3.27" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd65540d33b37b16542a0438c12e6aeead10d4ac5d05bd3f805b8f35ab592879" +checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" [[package]] name = "futures-util" @@ -1239,13 +1287,13 @@ dependencies = [ [[package]] name = "futures-util" -version = "0.3.27" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ef6b17e481503ec85211fed8f39d1970f128935ca1f814cd32ac4a6842e84ab" +checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" dependencies = [ - "futures-core 0.3.27", - "futures-sink 0.3.27", - "futures-task 0.3.27", + "futures-core 0.3.28", + "futures-sink 0.3.28", + "futures-task 0.3.28", "pin-project-lite", "pin-utils", ] @@ -1261,12 +1309,13 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.6" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum 1.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "version_check", + "zeroize", ] [[package]] @@ -1293,9 +1342,9 @@ dependencies = [ [[package]] name = "group" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core 0.6.4", @@ -1308,6 +1357,12 @@ version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" +[[package]] +name = "hash-db" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e7d7786361d7425ae2fe4f9e407eb0efaa0840f5212d109cc018c40c35c6ab4" + [[package]] name = "hash256-std-hasher" version = "0.15.2" @@ -1350,7 +1405,7 @@ dependencies = [ [[package]] name = "hashbrown_tstd" version = "0.12.0" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "hex" @@ -1364,7 +1419,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -1443,7 +1498,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd" dependencies = [ - "serde 1.0.158", + "serde 1.0.163", ] [[package]] @@ -1453,7 +1508,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -1516,8 +1571,8 @@ dependencies = [ "lazy_static", "log", "parity-scale-codec", - "serde 1.0.158", - "serde_json 1.0.94", + "serde 1.0.163", + "serde_json 1.0.96", "sgx_tstd", "substrate-fixed", "thiserror 1.0.9", @@ -1583,7 +1638,7 @@ dependencies = [ "parity-scale-codec", "rlp", "sgx_tstd", - "sha3 0.10.6", + "sha3 0.10.8", "sp-application-crypto", "sp-core", "sp-io", @@ -1601,7 +1656,7 @@ dependencies = [ "jsonrpc-core", "log", "parity-scale-codec", - "serde_json 1.0.94", + "serde_json 1.0.96", "sgx_tstd", "sgx_types", "sp-runtime", @@ -1705,7 +1760,7 @@ dependencies = [ "derive_more", "finality-grandpa", "frame-system", - "hash-db", + "hash-db 0.15.2", "itc-parentchain-test", "itp-ocall-api", "itp-sgx-io", @@ -1720,8 +1775,8 @@ dependencies = [ "sgx_tstd", "sgx_types", "sp-application-crypto", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-runtime", "sp-trie", "thiserror 1.0.9", @@ -1751,8 +1806,8 @@ dependencies = [ "http", "http_req", "log", - "serde 1.0.158", - "serde_json 1.0.94", + "serde 1.0.163", + "serde_json 1.0.96", "sgx_tstd", "sgx_types", "thiserror 1.0.9", @@ -1764,7 +1819,7 @@ name = "itc-tls-websocket-server" version = "0.9.0" dependencies = [ "bit-vec", - "chrono 0.4.24", + "chrono 0.4.26", "log", "mio", "mio-extras", @@ -1964,8 +2019,8 @@ version = "0.9.0" dependencies = [ "itp-types", "parity-scale-codec", - "serde 1.0.158", - "serde_json 1.0.94", + "serde 1.0.163", + "serde_json 1.0.96", "sgx_tstd", ] @@ -2004,7 +2059,7 @@ dependencies = [ "log", "parity-scale-codec", "postcard", - "serde 1.0.158", + "serde 1.0.163", "sgx_tstd", "sp-core", ] @@ -2123,9 +2178,9 @@ name = "itp-storage" version = "0.9.0" dependencies = [ "derive_more", - "frame-metadata 15.0.0", + "frame-metadata", "frame-support", - "hash-db", + "hash-db 0.15.2", "itp-types", "parity-scale-codec", "sgx_tstd", @@ -2191,7 +2246,7 @@ dependencies = [ "linked-hash-map", "log", "parity-scale-codec", - "serde 1.0.158", + "serde 1.0.163", "sgx_tstd", "sgx_types", "sp-application-crypto", @@ -2229,14 +2284,14 @@ dependencies = [ name = "itp-types" version = "0.9.0" dependencies = [ - "chrono 0.4.24", + "chrono 0.4.26", "frame-system", "itp-sgx-runtime-primitives", "pallet-balances", "parity-scale-codec", "primitive-types", - "serde 1.0.158", - "serde_json 1.0.94", + "serde 1.0.163", + "serde_json 1.0.96", "sp-core", "sp-runtime", "sp-std", @@ -2379,7 +2434,7 @@ version = "0.1.0" dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.158", + "serde 1.0.163", "sp-core", "sp-io", "sp-runtime", @@ -2429,7 +2484,7 @@ dependencies = [ "its-primitives", "log", "parity-scale-codec", - "serde 1.0.158", + "serde 1.0.163", "sgx_tstd", "sp-core", "sp-io", @@ -2468,9 +2523,9 @@ dependencies = [ [[package]] name = "k256" -version = "0.11.6" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c1e0b51e7ec0a97369623508396067a486bd0cbed95a2659a4b863d28cfc8b" +checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" dependencies = [ "cfg-if 1.0.0", "ecdsa", @@ -2480,9 +2535,9 @@ dependencies = [ [[package]] name = "keccak" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3afef3b6eff9ce9d8ff9b3601125eec7f0c8cbac7abd14f355d053fa56c98768" +checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" dependencies = [ "cpufeatures", ] @@ -2504,9 +2559,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.140" +version = "0.2.144" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c" +checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" [[package]] name = "libsecp256k1" @@ -2521,7 +2576,7 @@ dependencies = [ "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", "rand 0.8.5", - "serde 1.0.158", + "serde 1.0.163", ] [[package]] @@ -2575,6 +2630,17 @@ name = "matches" version = "0.1.8" source = "git+https://github.com/mesalock-linux/rust-std-candidates-sgx#5747bcf37f3e18687758838da0339ff0f2c83924" +[[package]] +name = "maybe-async" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f1b8c13cb1f814b634a96b2c725449fe7ed464a7b8781de8688be5ffbd3f305" +dependencies = [ + "proc-macro2", + "quote 1.0.28", + "syn 1.0.109", +] + [[package]] name = "memchr" version = "2.2.1" @@ -2593,12 +2659,11 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memory-db" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e0c7cba9ce19ac7ffd2053ac9f49843bbd3f4318feedfd74e85c19d5fb0ba66" +checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db", - "hashbrown 0.12.3", + "hash-db 0.16.0", ] [[package]] @@ -2655,7 +2720,7 @@ name = "multihash" version = "0.11.4" source = "git+https://github.com/whalelephant/rust-multihash?branch=nstd#2c8aca8fa1fcbcba26951d925de40fa81696020a" dependencies = [ - "blake2b_simd", + "blake2b_simd 0.5.11", "blake2s_simd", "digest 0.9.0", "sha-1", @@ -2681,7 +2746,7 @@ source = "git+https://github.com/mesalock-linux/num-sgx#22645415542cc67551890dfd dependencies = [ "num-bigint", "num-complex", - "num-integer 0.1.41", + "num-integer", "num-iter", "num-rational", "num-traits 0.2.10", @@ -2693,7 +2758,7 @@ version = "0.2.5" source = "git+https://github.com/mesalock-linux/num-bigint-sgx#76a5bed94dc31c32bd1670dbf72877abcf9bbc09" dependencies = [ "autocfg 1.1.0", - "num-integer 0.1.41", + "num-integer", "num-traits 0.2.10", "sgx_tstd", ] @@ -2718,22 +2783,12 @@ dependencies = [ "sgx_tstd", ] -[[package]] -name = "num-integer" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" -dependencies = [ - "autocfg 1.1.0", - "num-traits 0.2.15", -] - [[package]] name = "num-iter" version = "0.1.39" source = "git+https://github.com/mesalock-linux/num-iter-sgx#f19fc44fcad0b82a040e5a24c511e5049cc04b60" dependencies = [ - "num-integer 0.1.41", + "num-integer", "num-traits 0.2.10", "sgx_tstd", ] @@ -2745,7 +2800,7 @@ source = "git+https://github.com/mesalock-linux/num-rational-sgx#be65f9ce439f3c9 dependencies = [ "autocfg 0.1.8", "num-bigint", - "num-integer 0.1.41", + "num-integer", "num-traits 0.2.10", "sgx_tstd", ] @@ -2787,9 +2842,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.1" +version = "1.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" [[package]] name = "opaque-debug" @@ -2806,7 +2861,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2822,7 +2877,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2836,7 +2891,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2850,7 +2905,7 @@ dependencies = [ [[package]] name = "pallet-evm" version = "6.0.0-dev" -source = "git+https://github.com/integritee-network/frontier.git?branch=polkadot-v0.9.39#3297c466619934d462e0b845c1ab1e81906dcb18" +source = "git+https://github.com/integritee-network/frontier.git?branch=bar/polkadot-v0.9.42#a5a5e1e6ec08cd542a6084c310863150fb8841b1" dependencies = [ "evm", "fp-account", @@ -2860,7 +2915,6 @@ dependencies = [ "hex", "impl-trait-for-tuples", "log", - "pallet-timestamp", "parity-scale-codec", "rlp", "scale-info", @@ -2873,7 +2927,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2883,8 +2937,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-application-crypto", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-io", "sp-runtime", "sp-session", @@ -2895,7 +2949,7 @@ dependencies = [ [[package]] name = "pallet-insecure-randomness-collective-flip" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2909,7 +2963,7 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.39#75e57c53063918e39720e67582b2e30e2cf269b8" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" dependencies = [ "frame-support", "frame-system", @@ -2925,7 +2979,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2945,7 +2999,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2959,7 +3013,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2975,7 +3029,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", "frame-system", @@ -2990,7 +3044,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -3001,9 +3055,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.4.0" +version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "637935964ff85a605d114591d4d2c13c5d1ba2806dae97cea6bf180238a749ac" +checksum = "5ddb756ca205bd108aee3c62c6d3c994e1df84a59b9d6d4a5ea42ee1fd5a9a28" dependencies = [ "arrayvec 0.7.2", "bitvec", @@ -3011,7 +3065,7 @@ dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", "parity-scale-codec-derive", - "serde 1.0.158", + "serde 1.0.163", ] [[package]] @@ -3022,7 +3076,7 @@ checksum = "86b26a931f824dd4eca30b3e43bb4f31cd5f0d3a403c5f5ff27106b805bfde7b" dependencies = [ "proc-macro-crate", "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -3067,7 +3121,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a25c0b0ae06fcffe600ad392aabfa535696c8973f2253d9ac83171924c58a858" dependencies = [ "postcard-cobs", - "serde 1.0.158", + "serde 1.0.163", ] [[package]] @@ -3101,7 +3155,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ - "once_cell 1.17.1", + "once_cell 1.17.2", "toml_edit", ] @@ -3113,7 +3167,7 @@ checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", "version_check", ] @@ -3125,7 +3179,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "version_check", ] @@ -3141,11 +3195,22 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" +[[package]] +name = "proc-macro-warning" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e99670bafb56b9a106419397343bdbc8b8742c3cc449fec6345f86173f47cd4" +dependencies = [ + "proc-macro2", + "quote 1.0.28", + "syn 2.0.18", +] + [[package]] name = "proc-macro2" -version = "1.0.54" +version = "1.0.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e472a104799c74b514a57226160104aa483546de37e839ec50e3c2e41dd87534" +checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" dependencies = [ "unicode-ident", ] @@ -3172,9 +3237,9 @@ checksum = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" [[package]] name = "quote" -version = "1.0.26" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" +checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" dependencies = [ "proc-macro2", ] @@ -3264,8 +3329,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d2275aab483050ab2a7364c1a46604865ee7d6906684e08db0f090acf74f9e7" dependencies = [ "proc-macro2", - "quote 1.0.26", - "syn 2.0.10", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] @@ -3282,13 +3347,13 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.3" +version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b1f693b24f6ac912f4893ef08244d70b6067480d2f1a46e950c9691e6749d1d" +checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" dependencies = [ - "aho-corasick 0.7.20", + "aho-corasick 1.0.1", "memchr 2.5.0", - "regex-syntax 0.6.29", + "regex-syntax 0.7.2", ] [[package]] @@ -3301,19 +3366,18 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.29" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" +checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "rfc6979" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ - "crypto-bigint", "hmac", - "zeroize", + "subtle", ] [[package]] @@ -3345,7 +3409,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e33d7b2abe0c340d8797fe2907d3f20d3b5ea5908683618bfe80df7f621f672a" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -3438,27 +3502,27 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.4.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61471dff9096de1d8b2319efed7162081e96793f5ebb147e50db10d50d648a4d" +checksum = "b569c32c806ec3abdf3b5869fb8bf1e0d275a7c1c9b0b05603d9464632649edf" dependencies = [ "bitvec", "cfg-if 1.0.0", "derive_more", "parity-scale-codec", "scale-info-derive", - "serde 1.0.158", + "serde 1.0.163", ] [[package]] name = "scale-info-derive" -version = "2.4.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "219580e803a66b3f05761fd06f1f879a872444e49ce23f73694d26e5a954c7e6" +checksum = "53012eae69e5aa5c14671942a5dd47de59d4cdcff8532a6dd0e081faf1119482" dependencies = [ "proc-macro-crate", "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -3490,13 +3554,13 @@ dependencies = [ [[package]] name = "sec1" -version = "0.3.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" +checksum = "f0aec48e813d6b90b15f0b8948af3c63483992dee44c03e9930b3eebdabe046e" dependencies = [ "base16ct", "der", - "generic-array 0.14.6", + "generic-array 0.14.7", "subtle", "zeroize", ] @@ -3568,11 +3632,11 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.158" +version = "1.0.163" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771d4d9c4163ee138805e12c710dd365e4f44be8be0503cb1bb9eb989425d9c9" +checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" dependencies = [ - "serde_derive 1.0.158", + "serde_derive 1.0.163", ] [[package]] @@ -3590,19 +3654,19 @@ version = "1.0.118" source = "git+https://github.com/mesalock-linux/serde-sgx#db0226f1d5d70fca6b96af2c285851502204e21c" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] [[package]] name = "serde_derive" -version = "1.0.158" +version = "1.0.163" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e801c1712f48475582b7696ac71e0ca34ebb30e09338425384269d9717c62cad" +checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" dependencies = [ "proc-macro2", - "quote 1.0.26", - "syn 2.0.10", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] @@ -3630,24 +3694,24 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.94" +version = "1.0.96" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c533a59c9d8a93a09c6ab31f0fd5e5f4dd1b8fc9434804029839884765d04ea" +checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" dependencies = [ "itoa 1.0.6", "ryu", - "serde 1.0.158", + "serde 1.0.163", ] [[package]] name = "sgx_alloc" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_backtrace_sys" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "cc", "sgx_build_helper", @@ -3657,12 +3721,12 @@ dependencies = [ [[package]] name = "sgx_build_helper" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_crypto_helper" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "itertools", "serde 1.0.118 (git+https://github.com/mesalock-linux/serde-sgx)", @@ -3676,12 +3740,12 @@ dependencies = [ [[package]] name = "sgx_demangle" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_libc" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_types", ] @@ -3689,7 +3753,7 @@ dependencies = [ [[package]] name = "sgx_rand" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_trts", "sgx_tstd", @@ -3699,7 +3763,7 @@ dependencies = [ [[package]] name = "sgx_serialize" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_tstd", ] @@ -3707,7 +3771,7 @@ dependencies = [ [[package]] name = "sgx_serialize_derive" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "quote 0.3.15", "sgx_serialize_derive_internals", @@ -3717,7 +3781,7 @@ dependencies = [ [[package]] name = "sgx_serialize_derive_internals" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "syn 0.11.11", ] @@ -3725,7 +3789,7 @@ dependencies = [ [[package]] name = "sgx_tcrypto" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_types", ] @@ -3733,7 +3797,7 @@ dependencies = [ [[package]] name = "sgx_tcrypto_helper" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_crypto_helper", ] @@ -3741,7 +3805,7 @@ dependencies = [ [[package]] name = "sgx_tprotected_fs" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_trts", "sgx_types", @@ -3750,7 +3814,7 @@ dependencies = [ [[package]] name = "sgx_trts" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_libc", "sgx_types", @@ -3759,7 +3823,7 @@ dependencies = [ [[package]] name = "sgx_tse" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_types", ] @@ -3767,7 +3831,7 @@ dependencies = [ [[package]] name = "sgx_tseal" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_tcrypto", "sgx_trts", @@ -3778,7 +3842,7 @@ dependencies = [ [[package]] name = "sgx_tstd" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "hashbrown_tstd", "sgx_alloc", @@ -3794,7 +3858,7 @@ dependencies = [ [[package]] name = "sgx_tunittest" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_tstd", ] @@ -3802,12 +3866,12 @@ dependencies = [ [[package]] name = "sgx_types" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" [[package]] name = "sgx_unwind" version = "1.1.6" -source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#780dc8999477244d8ff1e6f418321adbec51ee58" +source = "git+https://github.com/apache/incubator-teaclave-sgx-sdk?branch=master#f1776a7cec1caab2959813f87bb4924805b92011" dependencies = [ "sgx_build_helper", ] @@ -3866,7 +3930,7 @@ checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" dependencies = [ "cfg-if 1.0.0", "cpufeatures", - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -3883,21 +3947,21 @@ dependencies = [ [[package]] name = "sha3" -version = "0.10.6" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdf0c33fae925bdc080598b84bc15c55e7b9a4a43b3c704da051f977469691c9" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "keccak", ] [[package]] name = "signature" -version = "1.6.4" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" +checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "rand_core 0.6.4", ] @@ -3935,12 +3999,14 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "log", "parity-scale-codec", + "scale-info", "sp-api-proc-macro", "sp-core", + "sp-metadata-ir", "sp-runtime", "sp-std", "sp-version", @@ -3949,19 +4015,21 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ + "Inflector", "blake2", + "expander", "proc-macro-crate", "proc-macro2", - "quote 1.0.26", - "syn 1.0.109", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -3973,7 +4041,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "integer-sqrt", "num-traits 0.2.15", @@ -3986,7 +4054,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "sp-api", @@ -3998,7 +4066,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -4011,10 +4079,26 @@ dependencies = [ "sp-timestamp", ] +[[package]] +name = "sp-consensus-grandpa" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "finality-grandpa", + "log", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -4025,19 +4109,20 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "array-bytes 4.2.0", "bitflags", "blake2", "bounded-collections", "ed25519-zebra", - "hash-db", + "hash-db 0.16.0", "hash256-std-hasher", "libsecp256k1", "log", "merlin", "parity-scale-codec", + "paste", "primitive-types", "scale-info", "schnorrkel", @@ -4055,13 +4140,13 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "blake2", + "blake2b_simd 1.0.1", "byteorder 1.4.3", - "digest 0.10.6", + "digest 0.10.7", "sha2 0.10.6", - "sha3 0.10.6", + "sha3 0.10.8", "sp-std", "twox-hash", ] @@ -4069,28 +4154,28 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "sp-core-hashing", - "syn 1.0.109", + "syn 2.0.18", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "proc-macro2", - "quote 1.0.26", - "syn 1.0.109", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "environmental 1.1.4", "parity-scale-codec", @@ -4098,26 +4183,10 @@ dependencies = [ "sp-storage", ] -[[package]] -name = "sp-finality-grandpa" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" -dependencies = [ - "finality-grandpa", - "log", - "parity-scale-codec", - "scale-info", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-runtime", - "sp-std", -] - [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -4131,7 +4200,7 @@ name = "sp-io" version = "7.0.0" dependencies = [ "environmental 1.1.3", - "hash-db", + "hash-db 0.15.2", "itp-sgx-externalities", "libsecp256k1", "log", @@ -4147,10 +4216,21 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "sp-metadata-ir" +version = "0.1.0" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "frame-metadata", + "parity-scale-codec", + "scale-info", + "sp-std", +] + [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "sp-api", "sp-core", @@ -4160,7 +4240,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "either", "hash256-std-hasher", @@ -4180,7 +4260,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", @@ -4198,19 +4278,19 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", - "quote 1.0.26", - "syn 1.0.109", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -4223,7 +4303,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -4235,12 +4315,12 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "ref-cast", @@ -4251,7 +4331,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -4262,7 +4342,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "sp-std", @@ -4273,7 +4353,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "sp-api", "sp-runtime", @@ -4282,9 +4362,9 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "hash-db", + "hash-db 0.16.0", "memory-db", "parity-scale-codec", "scale-info", @@ -4297,7 +4377,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -4310,18 +4390,18 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "proc-macro2", - "quote 1.0.26", - "syn 1.0.109", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -4331,7 +4411,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.39#1837f423b494254e1d27834b1c9da34b2c0c2375" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "parity-scale-codec", "scale-info", @@ -4350,15 +4430,15 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "ss58-registry" -version = "1.39.0" +version = "1.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecf0bd63593ef78eca595a7fc25e9a443ca46fe69fd472f8f09f5245cdcd769d" +checksum = "eb47a8ad42e5fc72d5b1eb104a5546937eaf39843499948bb666d6e93c62423b" dependencies = [ "Inflector", "proc-macro2", - "quote 1.0.26", - "serde 1.0.158", - "serde_json 1.0.94", + "quote 1.0.28", + "serde 1.0.163", + "serde_json 1.0.96", "unicode-xid 0.2.4", ] @@ -4370,19 +4450,21 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "substrate-api-client" -version = "0.10.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.39#417c301cce7e23f765891cd56ca48878390c5cf9" +version = "0.12.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" dependencies = [ "ac-compose-macros", "ac-node-api", "ac-primitives", + "async-trait", "derive_more", - "frame-metadata 15.1.0", + "frame-metadata", "hex", "log", + "maybe-async", "parity-scale-codec", - "serde 1.0.158", - "serde_json 1.0.94", + "serde 1.0.163", + "serde_json 1.0.96", "sp-core", "sp-runtime", "sp-runtime-interface", @@ -4400,9 +4482,9 @@ dependencies = [ [[package]] name = "subtle" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "syn" @@ -4422,18 +4504,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "unicode-ident", ] [[package]] name = "syn" -version = "2.0.10" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aad1363ed6d37b84299588d62d3a7d95b5a5c2d9aad5c85609fda12afaa1f40" +checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "unicode-ident", ] @@ -4484,7 +4566,7 @@ version = "1.0.9" source = "git+https://github.com/mesalock-linux/thiserror-sgx?tag=sgx_1.1.3#c2f806b88616e06aab0af770366a76885d974fdc" dependencies = [ "proc-macro2", - "quote 1.0.26", + "quote 1.0.28", "syn 1.0.109", ] @@ -4495,8 +4577,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ "proc-macro2", - "quote 1.0.26", - "syn 2.0.10", + "quote 1.0.28", + "syn 2.0.18", ] [[package]] @@ -4519,15 +4601,15 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622" +checksum = "5a76a9312f5ba4c2dec6b9161fdf25d87ad8a09256ccea5a556fef03c706a10f" [[package]] name = "toml_edit" -version = "0.19.8" +version = "0.19.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239410c8609e8125456927e6707163a3b1fdb40561e4b803bc041f466ccfdc13" +checksum = "2380d56e8670370eee6566b0bfd4265f65b3f432e8c6d85623f728d4fa31f739" dependencies = [ "indexmap 1.9.3", "toml_datetime", @@ -4547,17 +4629,17 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" [[package]] name = "trie-db" -version = "0.25.1" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3390c0409daaa6027d6681393316f4ccd3ff82e1590a1e4725014e3ae2bf1920" +checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db", + "hash-db 0.16.0", "hashbrown 0.13.2", "log", "smallvec 1.10.0", @@ -4565,11 +4647,11 @@ dependencies = [ [[package]] name = "trie-root" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" +checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db", + "hash-db 0.16.0", ] [[package]] @@ -4578,7 +4660,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1631b201eb031b563d2e85ca18ec8092508e262a3196ce9bd10a67ec87b9f5c" dependencies = [ - "hash-db", + "hash-db 0.15.2", "rlp", ] @@ -4616,8 +4698,8 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 0.1.10", - "digest 0.10.6", + "cfg-if 1.0.0", + "digest 0.10.7", "static_assertions", ] @@ -4668,9 +4750,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" +checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" [[package]] name = "unicode-normalization" @@ -4759,9 +4841,9 @@ dependencies = [ [[package]] name = "winnow" -version = "0.4.1" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae8970b36c66498d8ff1d66685dc86b91b29db0c7739899012f63a63814b4b28" +checksum = "61de7bac303dc551fe038e2b3cef0f571087a47571ea6e79a87692ac99b99699" dependencies = [ "memchr 2.5.0", ] @@ -4797,11 +4879,11 @@ dependencies = [ [[package]] name = "zeroize_derive" -version = "1.4.0" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57090580b8b26d9fd2288c4ac982b3b3c6446cd8e91112bcf672d5ddb2f17441" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", - "quote 1.0.26", - "syn 2.0.10", + "quote 1.0.28", + "syn 2.0.18", ] diff --git a/enclave-runtime/Cargo.toml b/enclave-runtime/Cargo.toml index 76c854816b..2d8153a7ed 100644 --- a/enclave-runtime/Cargo.toml +++ b/enclave-runtime/Cargo.toml @@ -131,11 +131,11 @@ its-primitives = { path = "../sidechain/primitives", default-features = false } its-sidechain = { path = "../sidechain/sidechain-crate", default-features = false, features = ["sgx"] } # substrate deps -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-system = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-system = { optional = true, default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # test-deps itp-sgx-temp-dir = { version = "0.1", default-features = false, optional = true, path = "../core-primitives/sgx/temp-dir" } diff --git a/service/Cargo.toml b/service/Cargo.toml index 01c69708e7..af21532ef2 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -60,20 +60,20 @@ its-storage = { path = "../sidechain/storage" } # scs / integritee -my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.39" } -sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.39" } +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.39" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.39" } +substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # Substrate dependencies -frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = [] diff --git a/sidechain/block-composer/Cargo.toml b/sidechain/block-composer/Cargo.toml index 0a978bf667..48da60d6f9 100644 --- a/sidechain/block-composer/Cargo.toml +++ b/sidechain/block-composer/Cargo.toml @@ -32,8 +32,8 @@ thiserror = { version = "1.0", optional = true } # no-std compatible libraries codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } log = { version = "0.4", default-features = false } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] diff --git a/sidechain/block-verification/Cargo.toml b/sidechain/block-verification/Cargo.toml index 391d0d49e4..20728928d7 100644 --- a/sidechain/block-verification/Cargo.toml +++ b/sidechain/block-verification/Cargo.toml @@ -18,10 +18,10 @@ itp-utils = { default-features = false, path = "../../core-primitives/utils" } its-primitives = { default-features = false, path = "../primitives" } # substrate deps -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-consensus-slots = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-consensus-slots = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # sgx deps sgx_tstd = { branch = "master", features = ["untrusted_fs", "net", "backtrace"], git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } @@ -51,4 +51,4 @@ sgx = [ [dev-dependencies] itc-parentchain-test = { path = "../../core/parentchain/test" } its-test = { path = "../../sidechain/test" } -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/sidechain/consensus/aura/Cargo.toml b/sidechain/consensus/aura/Cargo.toml index 587812ae20..5fcd079c4e 100644 --- a/sidechain/consensus/aura/Cargo.toml +++ b/sidechain/consensus/aura/Cargo.toml @@ -13,9 +13,9 @@ log = { version = "0.4", default-features = false } sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } # substrate deps -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local deps ita-stf = { path = "../../../app-libs/stf", default-features = false } @@ -47,7 +47,7 @@ itc-parentchain-test = { path = "../../../core/parentchain/test" } itp-storage = { path = "../../../core-primitives/storage" } itp-test = { path = "../../../core-primitives/test" } its-test = { path = "../../../sidechain/test" } -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/sidechain/consensus/common/Cargo.toml b/sidechain/consensus/common/Cargo.toml index 45d5e71b57..226f19d8d3 100644 --- a/sidechain/consensus/common/Cargo.toml +++ b/sidechain/consensus/common/Cargo.toml @@ -30,7 +30,7 @@ sgx_types = { git = "https://github.com/apache/teaclave-sgx-sdk.git", branch = " thiserror-sgx = { package = "thiserror", optional = true, git = "https://github.com/mesalock-linux/thiserror-sgx", tag = "sgx_1.1.3" } # substrate deps -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [dev-dependencies] # local @@ -40,7 +40,7 @@ itp-test = { path = "../../../core-primitives/test" } its-test = { path = "../../test" } # substrate -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/sidechain/consensus/slots/Cargo.toml b/sidechain/consensus/slots/Cargo.toml index a80d5e2fc9..94ba257cad 100644 --- a/sidechain/consensus/slots/Cargo.toml +++ b/sidechain/consensus/slots/Cargo.toml @@ -24,8 +24,8 @@ futures-timer = { version = "3.0", optional = true } sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true, features = ["untrusted_time"] } # substrate deps -sp-consensus-slots = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-consensus-slots = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local deps itp-settings = { path = "../../../core-primitives/settings" } @@ -36,7 +36,7 @@ its-consensus-common = { path = "../common", default-features = false } [dev-dependencies] itc-parentchain-test = { path = "../../../core/parentchain/test" } its-test = { path = "../../test" } -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } tokio = { version = "1.6.1", features = ["full"] } diff --git a/sidechain/primitives/Cargo.toml b/sidechain/primitives/Cargo.toml index 6cbffa83ef..e93e3d9719 100644 --- a/sidechain/primitives/Cargo.toml +++ b/sidechain/primitives/Cargo.toml @@ -14,10 +14,10 @@ serde = { version = "1.0.13", default-features = false } # substrate dependencies -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] diff --git a/sidechain/rpc-handler/Cargo.toml b/sidechain/rpc-handler/Cargo.toml index 831b6408cc..bbe5c4e92b 100644 --- a/sidechain/rpc-handler/Cargo.toml +++ b/sidechain/rpc-handler/Cargo.toml @@ -28,7 +28,7 @@ rust-base58 = { package = "rust-base58", version = "0.0.4", optional = true } # no-std compatible libraries codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } log = { version = "0.4", default-features = false } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/sidechain/state/Cargo.toml b/sidechain/state/Cargo.toml index 7737b8c3cb..96b1fda3f1 100644 --- a/sidechain/state/Cargo.toml +++ b/sidechain/state/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "chain-error"] } -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } log = { version = "0.4", default-features = false } serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } @@ -26,12 +26,12 @@ its-primitives = { path = "../primitives", default-features = false } sp-io = { optional = true, default-features = false, features = ["disable_oom", "disable_panic_handler", "disable_allocator"], path = "../../core-primitives/substrate-sgx/sp-io" } # substrate deps -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # test deps [dev-dependencies] -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/sidechain/storage/Cargo.toml b/sidechain/storage/Cargo.toml index 4294b9faa2..b20bbf473a 100644 --- a/sidechain/storage/Cargo.toml +++ b/sidechain/storage/Cargo.toml @@ -18,7 +18,7 @@ itp-types = { path = "../../core-primitives/types" } its-primitives = { path = "../primitives" } # Substrate dependencies -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [dev-dependencies] # crate.io diff --git a/sidechain/test/Cargo.toml b/sidechain/test/Cargo.toml index 1a1c073e68..f6f8fbfc72 100644 --- a/sidechain/test/Cargo.toml +++ b/sidechain/test/Cargo.toml @@ -14,7 +14,7 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features = sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["untrusted_time"], optional = true } # Substrate dependencies -sp-core = { default_features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +sp-core = { default_features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local itp-types = { path = "../../core-primitives/types", default_features = false } diff --git a/sidechain/validateer-fetch/Cargo.toml b/sidechain/validateer-fetch/Cargo.toml index 9a37ce2b93..dba26b3189 100644 --- a/sidechain/validateer-fetch/Cargo.toml +++ b/sidechain/validateer-fetch/Cargo.toml @@ -10,10 +10,10 @@ derive_more = "0.99.16" thiserror = "1.0.26" # substrate deps -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local deps itp-ocall-api = { path = "../../core-primitives/ocall-api", default-features = false } From 6e8a291633b216d6b4db5b645dbad72bbc44b55d Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 1 Jun 2023 08:32:35 +0200 Subject: [PATCH 02/69] followup for Keystore overhaul (final) (#13683) --- core-primitives/utils/src/stringify.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core-primitives/utils/src/stringify.rs b/core-primitives/utils/src/stringify.rs index b03d782846..993c1b15c9 100644 --- a/core-primitives/utils/src/stringify.rs +++ b/core-primitives/utils/src/stringify.rs @@ -19,13 +19,13 @@ //! `Debug` implementation on `sgx`. use codec::Encode; -use sp_core::{hexdisplay::HexDisplay, Public}; +use sp_core::{crypto::Public, hexdisplay::HexDisplay}; use std::{format, string::String}; /// Convert a sp_core public type to string. pub fn public_to_string(t: &T) -> String { - let crypto_pair = t.to_public_crypto_pair(); - format!("{}", HexDisplay::from(&crypto_pair.1)) + let crypto_pair = t.as_ref(); + format!("{}", HexDisplay::from(&crypto_pair)) } pub fn account_id_to_string(account: &AccountId) -> String { From 6f0aade080cb05799b977f8a059565b00c7bb1cd Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 1 Jun 2023 08:42:17 +0200 Subject: [PATCH 03/69] implement missing trait methods --- app-libs/sgx-runtime/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app-libs/sgx-runtime/src/lib.rs b/app-libs/sgx-runtime/src/lib.rs index e31821e288..ddd66d67f1 100644 --- a/app-libs/sgx-runtime/src/lib.rs +++ b/app-libs/sgx-runtime/src/lib.rs @@ -234,6 +234,10 @@ impl pallet_balances::Config for Runtime { type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; type WeightInfo = (); + type HoldIdentifier = (); + type FreezeIdentifier = (); + type MaxHolds = (); + type MaxFreezes = (); } parameter_types! { @@ -317,6 +321,14 @@ impl_runtime_apis! { fn metadata() -> OpaqueMetadata { OpaqueMetadata::new(Runtime::metadata().into()) } + + fn metadata_at_version(version: u32) -> Option { + Runtime::metadata_at_version(version) + } + + fn metadata_versions() -> sp_std::vec::Vec { + Runtime::metadata_versions() + } } } From a81fda64a168ba4ddb674546fab03dad62120f6e Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 1 Jun 2023 09:54:52 +0200 Subject: [PATCH 04/69] substrate-api-client: explicitly use synchronous mode instead of the default async --- cli/Cargo.toml | 2 +- core-primitives/extrinsics-factory/Cargo.toml | 2 +- core-primitives/node-api/api-client-extensions/Cargo.toml | 2 +- core-primitives/node-api/api-client-types/Cargo.toml | 2 +- service/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 10b9143861..3d18015773 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -29,7 +29,7 @@ my-node-runtime = { package = "integritee-node-runtime", git = "https://github.c pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["std", "ws-client", "sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } diff --git a/core-primitives/extrinsics-factory/Cargo.toml b/core-primitives/extrinsics-factory/Cargo.toml index 4baac51c47..9dc7dad14a 100644 --- a/core-primitives/extrinsics-factory/Cargo.toml +++ b/core-primitives/extrinsics-factory/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" # sgx dependencies sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } # local dependencies itp-node-api = { path = "../node-api", default-features = false } diff --git a/core-primitives/node-api/api-client-extensions/Cargo.toml b/core-primitives/node-api/api-client-extensions/Cargo.toml index c56e6ff7da..0572552cd2 100644 --- a/core-primitives/node-api/api-client-extensions/Cargo.toml +++ b/core-primitives/node-api/api-client-extensions/Cargo.toml @@ -16,7 +16,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "po # scs # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } # local deps itp-api-client-types = { path = "../api-client-types" } diff --git a/core-primitives/node-api/api-client-types/Cargo.toml b/core-primitives/node-api/api-client-types/Cargo.toml index 0a57a9448b..6e8019e58c 100644 --- a/core-primitives/node-api/api-client-types/Cargo.toml +++ b/core-primitives/node-api/api-client-types/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } # scs -substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } # substrate sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/service/Cargo.toml b/service/Cargo.toml index af21532ef2..273e832773 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -63,7 +63,7 @@ its-storage = { path = "../sidechain/storage" } my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["std", "ws-client", "sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # Substrate dependencies From e2167e2bfc30ff0ac2d07aa11e8ab2c193087609 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Fri, 2 Jun 2023 14:14:02 +0200 Subject: [PATCH 05/69] susbtrate-api-client followup regarding keystore overhaul --- Cargo.lock | 223 +++++++++++++++--- app-libs/stf/src/stf_sgx.rs | 3 +- app-libs/stf/src/test_genesis.rs | 3 +- app-libs/stf/src/trusted_call.rs | 9 +- cli/Cargo.toml | 5 +- cli/src/base_cli/commands/transfer.rs | 2 +- cli/src/base_cli/mod.rs | 17 +- cli/src/benchmark/mod.rs | 15 +- cli/src/trusted_base_cli/mod.rs | 19 +- core-primitives/extrinsics-factory/Cargo.toml | 2 +- .../node-api/api-client-extensions/Cargo.toml | 2 +- .../api-client-extensions/src/chain.rs | 2 +- .../node-api/api-client-types/Cargo.toml | 2 +- core-primitives/storage/src/proof.rs | 5 +- core/parentchain/light-client/src/finality.rs | 4 +- .../light-client/src/justification.rs | 4 +- core/parentchain/light-client/src/lib.rs | 4 +- .../src/light_client_init_params.rs | 2 +- .../src/light_validation_state.rs | 2 +- core/parentchain/light-client/src/state.rs | 2 +- enclave-runtime/Cargo.lock | 69 +++--- service/Cargo.toml | 2 +- service/src/account_funding.rs | 3 +- service/src/parentchain_handler.rs | 2 +- .../src/tests/mocks/parentchain_api_mock.rs | 2 +- 25 files changed, 281 insertions(+), 124 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 55ab47d33a..4567d3e520 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,24 +14,27 @@ dependencies = [ [[package]] name = "ac-compose-macros" -version = "0.4.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.2.3" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "ac-primitives", "log 0.4.18", - "maybe-async", + "parity-scale-codec", + "sp-application-crypto", + "sp-core", + "sp-runtime", ] [[package]] name = "ac-node-api" -version = "0.4.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.2.3" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "ac-primitives", "bitvec", "derive_more", "either", - "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", "hex", "log 0.4.18", "parity-scale-codec", @@ -46,23 +49,23 @@ dependencies = [ [[package]] name = "ac-primitives" -version = "0.7.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.5.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "frame-system", + "hex", "impl-serde", "pallet-assets", "pallet-balances", + "pallet-contracts", + "pallet-staking", "parity-scale-codec", "primitive-types", "scale-info", "serde 1.0.163", "serde_json 1.0.96", - "sp-application-crypto", "sp-core", - "sp-core-hashing", "sp-runtime", - "sp-runtime-interface", "sp-staking", "sp-version", "sp-weights", @@ -1737,6 +1740,34 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "frame-election-provider-solution-type" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.18", +] + +[[package]] +name = "frame-election-provider-support" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "frame-election-provider-solution-type", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-npos-elections", + "sp-runtime", + "sp-std", +] + [[package]] name = "frame-executive" version = "4.0.0-dev" @@ -2668,6 +2699,12 @@ dependencies = [ "serde 1.0.163", ] +[[package]] +name = "indexmap-nostd" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" + [[package]] name = "instant" version = "0.1.12" @@ -2724,6 +2761,7 @@ dependencies = [ "sp-application-crypto", "sp-core", "sp-keyring", + "sp-keystore", "sp-runtime", "substrate-api-client", "substrate-client-keystore", @@ -4552,17 +4590,6 @@ dependencies = [ "rawpointer", ] -[[package]] -name = "maybe-async" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f1b8c13cb1f814b634a96b2c725449fe7ed464a7b8781de8688be5ffbd3f305" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "memchr" version = "2.2.1" @@ -5332,6 +5359,58 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-contracts" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "bitflags", + "environmental 1.1.4", + "frame-benchmarking", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log 0.4.18", + "pallet-contracts-primitives", + "pallet-contracts-proc-macro", + "parity-scale-codec", + "rand 0.8.5", + "scale-info", + "serde 1.0.163", + "smallvec 1.10.0", + "sp-api", + "sp-core", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", + "sp-runtime", + "sp-std", + "wasm-instrument", + "wasmi 0.28.0", + "wasmparser-nostd", +] + +[[package]] +name = "pallet-contracts-primitives" +version = "7.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "bitflags", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std", + "sp-weights", +] + +[[package]] +name = "pallet-contracts-proc-macro" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.18", +] + [[package]] name = "pallet-evm" version = "6.0.0-dev" @@ -5515,6 +5594,28 @@ dependencies = [ "teerex-primitives", ] +[[package]] +name = "pallet-staking" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", + "log 0.4.18", + "pallet-authorship", + "pallet-session", + "parity-scale-codec", + "scale-info", + "serde 1.0.163", + "sp-application-crypto", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", + "sp-runtime", + "sp-staking", + "sp-std", +] + [[package]] name = "pallet-sudo" version = "4.0.0-dev" @@ -7762,6 +7863,20 @@ dependencies = [ "sp-std", ] +[[package]] +name = "sp-npos-elections" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde 1.0.163", + "sp-arithmetic", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "sp-offchain" version = "4.0.0-dev" @@ -7996,7 +8111,7 @@ dependencies = [ "log 0.4.18", "parity-scale-codec", "sp-std", - "wasmi", + "wasmi 0.13.2", "wasmtime", ] @@ -8110,19 +8225,17 @@ dependencies = [ [[package]] name = "substrate-api-client" -version = "0.12.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.10.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "ac-compose-macros", "ac-node-api", "ac-primitives", - "async-trait", "derive_more", - "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", "frame-support", "hex", "log 0.4.18", - "maybe-async", "parity-scale-codec", "serde 1.0.163", "serde_json 1.0.96", @@ -8148,8 +8261,8 @@ dependencies = [ [[package]] name = "substrate-client-keystore" -version = "0.9.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.7.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "array-bytes 4.2.0", "async-trait", @@ -9064,6 +9177,15 @@ version = "0.2.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed9d5b4305409d1fc9482fee2d7f9bcbf24b3972bf59817ef757e23982242a93" +[[package]] +name = "wasm-instrument" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a47ecb37b9734d1085eaa5ae1a81e60801fd8c28d4cabdd8aedb982021918bc" +dependencies = [ + "parity-wasm", +] + [[package]] name = "wasm-opt" version = "0.111.0" @@ -9113,7 +9235,19 @@ checksum = "06c326c93fbf86419608361a2c925a31754cf109da1b8b55737070b4d6669422" dependencies = [ "parity-wasm", "wasmi-validation", - "wasmi_core", + "wasmi_core 0.2.1", +] + +[[package]] +name = "wasmi" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e61a7006b0fdf24f6bbe8dcfdad5ca1b350de80061fb2827f31c82fbbb9565a" +dependencies = [ + "spin 0.9.8", + "wasmi_arena", + "wasmi_core 0.12.0", + "wasmparser-nostd", ] [[package]] @@ -9125,6 +9259,12 @@ dependencies = [ "parity-wasm", ] +[[package]] +name = "wasmi_arena" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "401c1f35e413fac1846d4843745589d9ec678977ab35a384db8ae7830525d468" + [[package]] name = "wasmi_core" version = "0.2.1" @@ -9138,6 +9278,18 @@ dependencies = [ "num-traits 0.2.15", ] +[[package]] +name = "wasmi_core" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "624e6333e861ef49095d2d678b76ebf30b06bf37effca845be7e5b87c90071b7" +dependencies = [ + "downcast-rs", + "libm", + "num-traits 0.2.15", + "paste", +] + [[package]] name = "wasmparser" version = "0.100.0" @@ -9148,6 +9300,15 @@ dependencies = [ "url 2.3.1", ] +[[package]] +name = "wasmparser-nostd" +version = "0.100.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9157cab83003221bfd385833ab587a039f5d6fa7304854042ba358a3b09e0724" +dependencies = [ + "indexmap-nostd", +] + [[package]] name = "wasmtime" version = "6.0.2" diff --git a/app-libs/stf/src/stf_sgx.rs b/app-libs/stf/src/stf_sgx.rs index 1ecfd79162..54dd3d96a9 100644 --- a/app-libs/stf/src/stf_sgx.rs +++ b/app-libs/stf/src/stf_sgx.rs @@ -267,10 +267,9 @@ where <::Lookup as StaticLookup>::Source: From, Runtime::Balance: From, { - pallet_balances::Call::::set_balance { + pallet_balances::Call::::force_set_balance { who: enclave_account.into(), new_free: 1000.into(), - new_reserved: 0.into(), } .dispatch_bypass_filter(Runtime::RuntimeOrigin::root()) .map_err(|e| { diff --git a/app-libs/stf/src/test_genesis.rs b/app-libs/stf/src/test_genesis.rs index a3c04f52da..faea0a3eb6 100644 --- a/app-libs/stf/src/test_genesis.rs +++ b/app-libs/stf/src/test_genesis.rs @@ -104,10 +104,9 @@ pub fn endow( for e in endowees.into_iter() { let account = e.0; - ita_sgx_runtime::BalancesCall::::set_balance { + ita_sgx_runtime::BalancesCall::::force_set_balance { who: MultiAddress::Id(account.clone()), new_free: e.1, - new_reserved: e.2, } .dispatch_bypass_filter(ita_sgx_runtime::RuntimeOrigin::root()) .map_err(|e| StfError::Dispatch(format!("Balance Set Balance error: {:?}", e.error))) diff --git a/app-libs/stf/src/trusted_call.rs b/app-libs/stf/src/trusted_call.rs index 690af26882..1f13721f6b 100644 --- a/app-libs/stf/src/trusted_call.rs +++ b/app-libs/stf/src/trusted_call.rs @@ -198,10 +198,9 @@ where free_balance, reserved_balance ); - ita_sgx_runtime::BalancesCall::::set_balance { + ita_sgx_runtime::BalancesCall::::force_set_balance { who: MultiAddress::Id(who), new_free: free_balance, - new_reserved: reserved_balance, } .dispatch_bypass_filter(ita_sgx_runtime::RuntimeOrigin::root()) .map_err(|e| { @@ -407,10 +406,9 @@ fn unshield_funds(account: AccountId, amount: u128) -> Result<(), StfError> { return Err(StfError::MissingFunds) } - ita_sgx_runtime::BalancesCall::::set_balance { + ita_sgx_runtime::BalancesCall::::force_set_balance { who: MultiAddress::Id(account), new_free: account_info.data.free - amount, - new_reserved: account_info.data.reserved, } .dispatch_bypass_filter(ita_sgx_runtime::RuntimeOrigin::root()) .map_err(|e| StfError::Dispatch(format!("Unshield funds error: {:?}", e.error)))?; @@ -419,10 +417,9 @@ fn unshield_funds(account: AccountId, amount: u128) -> Result<(), StfError> { fn shield_funds(account: AccountId, amount: u128) -> Result<(), StfError> { let account_info = System::account(&account); - ita_sgx_runtime::BalancesCall::::set_balance { + ita_sgx_runtime::BalancesCall::::force_set_balance { who: MultiAddress::Id(account), new_free: account_info.data.free + amount, - new_reserved: account_info.data.reserved, } .dispatch_bypass_filter(ita_sgx_runtime::RuntimeOrigin::root()) .map_err(|e| StfError::Dispatch(format!("Shield funds error: {:?}", e.error)))?; diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 3d18015773..88b8a3f468 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -29,8 +29,8 @@ my-node-runtime = { package = "integritee-node-runtime", git = "https://github.c pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "ws-client", "sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } -substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } +substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # substrate dependencies @@ -39,6 +39,7 @@ pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-application-crypto = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/cli/src/base_cli/commands/transfer.rs b/cli/src/base_cli/commands/transfer.rs index 04c26a1d34..3ea285cb40 100644 --- a/cli/src/base_cli/commands/transfer.rs +++ b/cli/src/base_cli/commands/transfer.rs @@ -47,7 +47,7 @@ impl TransferCommand { info!("to ss58 is {}", to_account.to_ss58check()); let mut api = get_chain_api(cli); api.set_signer(ParentchainExtrinsicSigner::new(sr25519_core::Pair::from(from_account))); - let xt = api.balance_transfer(Address::Id(to_account.clone()), self.amount); + let xt = api.balance_transfer_allow_death(Address::Id(to_account.clone()), self.amount); let tx_hash = api .submit_and_watch_extrinsic_until(xt, XtStatus::InBlock) .unwrap() diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 2279bceb23..66e82b2619 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -29,13 +29,17 @@ use clap::Subcommand; use itc_rpc_client::direct_client::DirectApi; use itp_node_api::api_client::PalletTeerexApi; use sp_application_crypto::{ed25519, sr25519}; -use sp_core::{crypto::Ss58Codec, Pair}; +use sp_core::{ + crypto::{key_types::ACCOUNT, Ss58Codec}, + Pair, +}; +use sp_keystore::Keystore; use std::{ path::PathBuf, time::{Duration, UNIX_EPOCH}, }; use substrate_api_client::Metadata; -use substrate_client_keystore::{KeystoreExt, LocalKeystore}; +use substrate_client_keystore::LocalKeystore; mod commands; @@ -91,8 +95,9 @@ impl BaseCommand { fn new_account() -> CliResult { let store = LocalKeystore::open(PathBuf::from(&KEYSTORE_PATH), None).unwrap(); - let key: sr25519::AppPair = store.generate().unwrap(); - let key_base58 = key.public().to_ss58check(); + let key = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); + //let key: sr25519::AppPair = store.generate().unwrap(); + let key_base58 = key.to_ss58check(); drop(store); println!("{}", key_base58); Ok(CliResultOk::PubKeysBase58 { @@ -105,14 +110,14 @@ fn list_accounts() -> CliResult { let store = LocalKeystore::open(PathBuf::from(&KEYSTORE_PATH), None).unwrap(); println!("sr25519 keys:"); let mut keys_sr25519 = vec![]; - for pubkey in store.public_keys::().unwrap().into_iter() { + for pubkey in store.sr25519_public_keys(ACCOUNT).into_iter() { let key_ss58 = pubkey.to_ss58check(); println!("{}", key_ss58); keys_sr25519.push(key_ss58); } println!("ed25519 keys:"); let mut keys_ed25519 = vec![]; - for pubkey in store.public_keys::().unwrap().into_iter() { + for pubkey in store.ed25519_public_keys(ACCOUNT).into_iter() { let key_ss58 = pubkey.to_ss58check(); println!("{}", key_ss58); keys_ed25519.push(key_ss58); diff --git a/cli/src/benchmark/mod.rs b/cli/src/benchmark/mod.rs index bae12f9082..36b74e6ff2 100644 --- a/cli/src/benchmark/mod.rs +++ b/cli/src/benchmark/mod.rs @@ -39,7 +39,8 @@ use rand::Rng; use rayon::prelude::*; use sgx_crypto_helper::rsa3072::Rsa3072PubKey; use sp_application_crypto::sr25519; -use sp_core::{sr25519 as sr25519_core, Pair}; +use sp_core::{crypto::key_types::ACCOUNT, sr25519 as sr25519_core, Pair}; +use sp_keystore::Keystore; use std::{ boxed::Box, string::ToString, @@ -48,7 +49,7 @@ use std::{ time::Instant, vec::Vec, }; -use substrate_client_keystore::{KeystoreExt, LocalKeystore}; +use substrate_client_keystore::LocalKeystore; // Needs to be above the existential deposit minimum, otherwise an account will not // be created and the state is not increased. @@ -141,8 +142,9 @@ impl BenchmarkCommand { println!("Initializing account {}", i); // Create new account to use. - let a: sr25519::AppPair = store.generate().unwrap(); - let account = get_pair_from_str(trusted_args, a.public().to_string().as_str()); + //let a: sr25519::AppPair = store.generate().unwrap(); + let a = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); + let account = get_pair_from_str(trusted_args, a.to_string().as_str()); let initial_balance = 10000000; // Transfer amount from Alice to new account. @@ -190,9 +192,10 @@ impl BenchmarkCommand { } // Create new account. - let account_keys: sr25519::AppPair = store.generate().unwrap(); + let account_keys = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); + let new_account = - get_pair_from_str(trusted_args, account_keys.public().to_string().as_str()); + get_pair_from_str(trusted_args, account_keys.to_string().as_str()); println!(" Transfer amount: {}", EXISTENTIAL_DEPOSIT); diff --git a/cli/src/trusted_base_cli/mod.rs b/cli/src/trusted_base_cli/mod.rs index e32c44177b..d0b6a2e5d3 100644 --- a/cli/src/trusted_base_cli/mod.rs +++ b/cli/src/trusted_base_cli/mod.rs @@ -26,8 +26,12 @@ use crate::{ }; use log::*; use sp_application_crypto::{ed25519, sr25519}; -use sp_core::{crypto::Ss58Codec, Pair}; -use substrate_client_keystore::{KeystoreExt, LocalKeystore}; +use sp_core::{ + crypto::{key_types::ACCOUNT, Ss58Codec}, + Pair, +}; +use sp_keystore::Keystore; +use substrate_client_keystore::LocalKeystore; mod commands; @@ -72,10 +76,10 @@ impl TrustedBaseCommand { fn new_account(trusted_args: &TrustedCli) -> CliResult { let store = LocalKeystore::open(get_keystore_path(trusted_args), None).unwrap(); - let key: sr25519::AppPair = store.generate().unwrap(); + let key = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); drop(store); - info!("new account {}", key.public().to_ss58check()); - let key_str = key.public().to_ss58check(); + info!("new account {}", key.to_ss58check()); + let key_str = key.to_ss58check(); println!("{}", key_str); Ok(CliResultOk::PubKeysBase58 { pubkeys_sr25519: Some(vec![key_str]), pubkeys_ed25519: None }) @@ -84,13 +88,12 @@ fn new_account(trusted_args: &TrustedCli) -> CliResult { fn list_accounts(trusted_args: &TrustedCli) -> CliResult { let store = LocalKeystore::open(get_keystore_path(trusted_args), None).unwrap(); info!("sr25519 keys:"); - for pubkey in store.public_keys::().unwrap().into_iter() { + for pubkey in store.sr25519_public_keys(ACCOUNT).into_iter() { println!("{}", pubkey.to_ss58check()); } info!("ed25519 keys:"); let pubkeys: Vec = store - .public_keys::() - .unwrap() + .ed25519_public_keys(ACCOUNT) .into_iter() .map(|pubkey| pubkey.to_ss58check()) .collect(); diff --git a/core-primitives/extrinsics-factory/Cargo.toml b/core-primitives/extrinsics-factory/Cargo.toml index 9dc7dad14a..17ae3002d6 100644 --- a/core-primitives/extrinsics-factory/Cargo.toml +++ b/core-primitives/extrinsics-factory/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" # sgx dependencies sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = [], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } # local dependencies itp-node-api = { path = "../node-api", default-features = false } diff --git a/core-primitives/node-api/api-client-extensions/Cargo.toml b/core-primitives/node-api/api-client-extensions/Cargo.toml index 0572552cd2..1eb2c24722 100644 --- a/core-primitives/node-api/api-client-extensions/Cargo.toml +++ b/core-primitives/node-api/api-client-extensions/Cargo.toml @@ -16,7 +16,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "po # scs # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["std"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } # local deps itp-api-client-types = { path = "../api-client-types" } diff --git a/core-primitives/node-api/api-client-extensions/src/chain.rs b/core-primitives/node-api/api-client-extensions/src/chain.rs index fa34ad0883..7842fa0ef1 100644 --- a/core-primitives/node-api/api-client-extensions/src/chain.rs +++ b/core-primitives/node-api/api-client-extensions/src/chain.rs @@ -21,7 +21,7 @@ use itp_types::{ parentchain::{BlockNumber, Hash, Header, StorageProof}, H256, }; -use sp_finality_grandpa::{AuthorityList, VersionedAuthorityList, GRANDPA_AUTHORITIES_KEY}; +use sp_consensus_grandpa::{AuthorityList, VersionedAuthorityList, GRANDPA_AUTHORITIES_KEY}; use sp_runtime::traits::GetRuntimeBlockType; use substrate_api_client::{ rpc::Request, serde_impls::StorageKey, storage_key, Api, ExtrinsicParams, FrameSystemConfig, diff --git a/core-primitives/node-api/api-client-types/Cargo.toml b/core-primitives/node-api/api-client-types/Cargo.toml index 6e8019e58c..63a7f9b47e 100644 --- a/core-primitives/node-api/api-client-types/Cargo.toml +++ b/core-primitives/node-api/api-client-types/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } # scs -substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = [], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } # substrate sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/core-primitives/storage/src/proof.rs b/core-primitives/storage/src/proof.rs index 1b710f3e52..6b2c02c49f 100644 --- a/core-primitives/storage/src/proof.rs +++ b/core-primitives/storage/src/proof.rs @@ -18,9 +18,10 @@ //! Logic for checking Substrate storage proofs. use crate::error::Error; -use hash_db::{HashDB, Hasher, EMPTY_PREFIX}; +use hash_db::EMPTY_PREFIX; +use sp_core::Hasher; use sp_std::vec::Vec; -use sp_trie::{trie_types::TrieDB, MemoryDB, Trie, TrieDBBuilder}; +use sp_trie::{trie_types::TrieDB, HashDBT, MemoryDB, Trie, TrieDBBuilder}; pub type StorageProof = Vec>; diff --git a/core/parentchain/light-client/src/finality.rs b/core/parentchain/light-client/src/finality.rs index d7d4da66dd..95371a8863 100644 --- a/core/parentchain/light-client/src/finality.rs +++ b/core/parentchain/light-client/src/finality.rs @@ -26,8 +26,8 @@ use crate::{ }; use finality_grandpa::voter_set::VoterSet; use log::*; -pub use sp_finality_grandpa::SetId; -use sp_finality_grandpa::{AuthorityId, ScheduledChange, GRANDPA_ENGINE_ID}; +pub use sp_consensus_grandpa::SetId; +use sp_consensus_grandpa::{AuthorityId, ScheduledChange, GRANDPA_ENGINE_ID}; use sp_runtime::{ generic::Digest, traits::{Block as ParentchainBlockTrait, Header as HeaderTrait}, diff --git a/core/parentchain/light-client/src/justification.rs b/core/parentchain/light-client/src/justification.rs index 4142862310..5e6f21f78c 100644 --- a/core/parentchain/light-client/src/justification.rs +++ b/core/parentchain/light-client/src/justification.rs @@ -25,7 +25,7 @@ use super::error::JustificationError as ClientError; use codec::{Decode, Encode}; use finality_grandpa::{voter_set::VoterSet, Error as GrandpaError}; use log::*; -use sp_finality_grandpa::{AuthorityId, AuthorityList, AuthoritySignature}; +use sp_consensus_grandpa::{AuthorityId, AuthorityList, AuthoritySignature}; use sp_runtime::traits::{Block as BlockT, Header as HeaderT, NumberFor}; /// A commit message for this chain's block type. @@ -143,7 +143,7 @@ impl GrandpaJustification { let mut buf = Vec::new(); let mut visited_hashes = HashSet::new(); for signed in self.commit.precommits.iter() { - if !sp_finality_grandpa::check_message_signature_with_buffer( + if !sp_consensus_grandpa::check_message_signature_with_buffer( &finality_grandpa::Message::Precommit(signed.precommit.clone()), &signed.id, &signed.signature, diff --git a/core/parentchain/light-client/src/lib.rs b/core/parentchain/light-client/src/lib.rs index dda3cd557b..753d3fc862 100644 --- a/core/parentchain/light-client/src/lib.rs +++ b/core/parentchain/light-client/src/lib.rs @@ -28,11 +28,11 @@ extern crate sgx_tstd as std; // Re-export useful types. pub use finality_grandpa::BlockNumberOps; -pub use sp_finality_grandpa::{AuthorityList, SetId}; +pub use sp_consensus_grandpa::{AuthorityList, SetId}; use crate::light_validation_state::LightValidationState; use error::Error; -use sp_finality_grandpa::{AuthorityId, AuthorityWeight, ConsensusLog, GRANDPA_ENGINE_ID}; +use sp_consensus_grandpa::{AuthorityId, AuthorityWeight, ConsensusLog, GRANDPA_ENGINE_ID}; use sp_runtime::{ generic::{Digest, OpaqueDigestItemId, SignedBlock}, traits::{Block as ParentchainBlockTrait, Header as HeaderTrait}, diff --git a/core/parentchain/light-client/src/light_client_init_params.rs b/core/parentchain/light-client/src/light_client_init_params.rs index 11cba5e5e0..61baf247ee 100644 --- a/core/parentchain/light-client/src/light_client_init_params.rs +++ b/core/parentchain/light-client/src/light_client_init_params.rs @@ -17,7 +17,7 @@ */ use codec::{Decode, Encode}; -use sp_finality_grandpa::AuthorityList; +use sp_consensus_grandpa::AuthorityList; use std::vec::Vec; #[derive(Encode, Decode, Clone)] diff --git a/core/parentchain/light-client/src/light_validation_state.rs b/core/parentchain/light-client/src/light_validation_state.rs index aaea10f28a..f8b34dbf78 100644 --- a/core/parentchain/light-client/src/light_validation_state.rs +++ b/core/parentchain/light-client/src/light_validation_state.rs @@ -21,7 +21,7 @@ use crate::{state::RelayState, Error, HashFor, LightClientState}; use codec::{Decode, Encode}; use sp_runtime::traits::Block as ParentchainBlockTrait; -pub use sp_finality_grandpa::SetId; +pub use sp_consensus_grandpa::SetId; #[derive(Encode, Decode, Clone, Debug, Eq, PartialEq)] pub struct LightValidationState { diff --git a/core/parentchain/light-client/src/state.rs b/core/parentchain/light-client/src/state.rs index 743e7eed63..d6ba0ede78 100644 --- a/core/parentchain/light-client/src/state.rs +++ b/core/parentchain/light-client/src/state.rs @@ -16,7 +16,7 @@ */ use codec::{Decode, Encode}; -use sp_finality_grandpa::{AuthorityList, SetId}; +use sp_consensus_grandpa::{AuthorityList, SetId}; use sp_runtime::{ traits::{Block as BlockT, Header as HeaderT}, OpaqueExtrinsic, diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index f7dc89bef2..1d53339419 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -14,24 +14,27 @@ dependencies = [ [[package]] name = "ac-compose-macros" -version = "0.4.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.2.3" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "ac-primitives", "log", - "maybe-async", + "parity-scale-codec", + "sp-application-crypto", + "sp-core", + "sp-runtime", ] [[package]] name = "ac-node-api" -version = "0.4.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.2.3" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "ac-primitives", "bitvec", "derive_more", "either", - "frame-metadata", + "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", "hex", "log", "parity-scale-codec", @@ -46,20 +49,18 @@ dependencies = [ [[package]] name = "ac-primitives" -version = "0.7.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.5.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ + "hex", "impl-serde", "parity-scale-codec", "primitive-types", "scale-info", "serde 1.0.163", "serde_json 1.0.96", - "sp-application-crypto", "sp-core", - "sp-core-hashing", "sp-runtime", - "sp-runtime-interface", "sp-staking", "sp-version", "sp-weights", @@ -172,17 +173,6 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" -[[package]] -name = "async-trait" -version = "0.1.68" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" -dependencies = [ - "proc-macro2", - "quote 1.0.28", - "syn 2.0.18", -] - [[package]] name = "auto_impl" version = "1.1.0" @@ -1027,6 +1017,16 @@ name = "frame-metadata" version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "878babb0b136e731cc77ec2fd883ff02745ff21e6fb662729953d44923df009c" +dependencies = [ + "cfg-if 1.0.0", + "parity-scale-codec", + "scale-info", +] + +[[package]] +name = "frame-metadata" +version = "15.1.0" +source = "git+https://github.com/paritytech/frame-metadata#0c6400964fe600ea07f8233810415f6958fe4e20" dependencies = [ "cfg-if 1.0.0", "parity-scale-codec", @@ -1041,7 +1041,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "bitflags", "environmental 1.1.4", - "frame-metadata", + "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "frame-support-procedural", "impl-trait-for-tuples", "k256", @@ -2178,7 +2178,7 @@ name = "itp-storage" version = "0.9.0" dependencies = [ "derive_more", - "frame-metadata", + "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "frame-support", "hash-db 0.15.2", "itp-types", @@ -2630,17 +2630,6 @@ name = "matches" version = "0.1.8" source = "git+https://github.com/mesalock-linux/rust-std-candidates-sgx#5747bcf37f3e18687758838da0339ff0f2c83924" -[[package]] -name = "maybe-async" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f1b8c13cb1f814b634a96b2c725449fe7ed464a7b8781de8688be5ffbd3f305" -dependencies = [ - "proc-macro2", - "quote 1.0.28", - "syn 1.0.109", -] - [[package]] name = "memchr" version = "2.2.1" @@ -4221,7 +4210,7 @@ name = "sp-metadata-ir" version = "0.1.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ - "frame-metadata", + "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec", "scale-info", "sp-std", @@ -4450,18 +4439,16 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "substrate-api-client" -version = "0.12.0" -source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42#9bfdbdec280944a6f9cabf71113b4f880fa292c4" +version = "0.10.0" +source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "ac-compose-macros", "ac-node-api", "ac-primitives", - "async-trait", "derive_more", - "frame-metadata", + "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", "hex", "log", - "maybe-async", "parity-scale-codec", "serde 1.0.163", "serde_json 1.0.96", diff --git a/service/Cargo.toml b/service/Cargo.toml index 273e832773..c563f5b275 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -63,7 +63,7 @@ its-storage = { path = "../sidechain/storage" } my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "ws-client", "sync-api"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # Substrate dependencies diff --git a/service/src/account_funding.rs b/service/src/account_funding.rs index 9988b9c97a..68c2585019 100644 --- a/service/src/account_funding.rs +++ b/service/src/account_funding.rs @@ -156,7 +156,8 @@ fn bootstrap_funds_from_alice( alice_signer_api.set_signer(ParentchainExtrinsicSigner::new(alice)); println!("[+] bootstrap funding Enclave from Alice's funds"); - let xt = alice_signer_api.balance_transfer(MultiAddress::Id(accountid.clone()), funding_amount); + let xt = alice_signer_api + .balance_transfer_allow_death(MultiAddress::Id(accountid.clone()), funding_amount); let xt_report = alice_signer_api.submit_and_watch_extrinsic_until(xt, XtStatus::InBlock)?; info!( "[<] Extrinsic got included in a block. Extrinsic Hash: {:?}\n", diff --git a/service/src/parentchain_handler.rs b/service/src/parentchain_handler.rs index a37e24387c..cebe19eed2 100644 --- a/service/src/parentchain_handler.rs +++ b/service/src/parentchain_handler.rs @@ -26,7 +26,7 @@ use itp_node_api::api_client::ChainApi; use itp_storage::StorageProof; use log::*; use my_node_runtime::Header; -use sp_finality_grandpa::VersionedAuthorityList; +use sp_consensus_grandpa::VersionedAuthorityList; use sp_runtime::traits::Header as HeaderTrait; use std::{cmp::min, sync::Arc}; diff --git a/service/src/tests/mocks/parentchain_api_mock.rs b/service/src/tests/mocks/parentchain_api_mock.rs index 9277b4891d..9233977d39 100644 --- a/service/src/tests/mocks/parentchain_api_mock.rs +++ b/service/src/tests/mocks/parentchain_api_mock.rs @@ -21,7 +21,7 @@ use itp_types::{ parentchain::{Hash, Header, StorageProof}, H256, }; -use sp_finality_grandpa::AuthorityList; +use sp_consensus_grandpa::AuthorityList; pub struct ParentchainApiMock { parentchain: Vec, From fece3a0be3b0d7550dc2f26f8bb79deb84648f18 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Fri, 2 Jun 2023 14:31:25 +0200 Subject: [PATCH 06/69] taplo fmt --- cli/Cargo.toml | 2 +- core-primitives/enclave-api/Cargo.toml | 2 +- core-primitives/node-api/api-client-extensions/Cargo.toml | 2 +- core/parentchain/light-client/Cargo.toml | 2 +- service/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 88b8a3f468..fbf2ac4948 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -39,8 +39,8 @@ pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-application-crypto = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } -sp-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local dependencies diff --git a/core-primitives/enclave-api/Cargo.toml b/core-primitives/enclave-api/Cargo.toml index 915618dd18..00500004dd 100644 --- a/core-primitives/enclave-api/Cargo.toml +++ b/core-primitives/enclave-api/Cargo.toml @@ -16,8 +16,8 @@ sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-s sgx_urts = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } diff --git a/core-primitives/node-api/api-client-extensions/Cargo.toml b/core-primitives/node-api/api-client-extensions/Cargo.toml index 1eb2c24722..94db01fdac 100644 --- a/core-primitives/node-api/api-client-extensions/Cargo.toml +++ b/core-primitives/node-api/api-client-extensions/Cargo.toml @@ -10,8 +10,8 @@ codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive thiserror = { version = "1.0" } # substrate -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # scs diff --git a/core/parentchain/light-client/Cargo.toml b/core/parentchain/light-client/Cargo.toml index 8b74570e78..dc36585d8a 100644 --- a/core/parentchain/light-client/Cargo.toml +++ b/core/parentchain/light-client/Cargo.toml @@ -28,8 +28,8 @@ itp-types = { path = "../../../core-primitives/types", default-features = false # substrate deps frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-application-crypto = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } -sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-consensus-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-trie = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/service/Cargo.toml b/service/Cargo.toml index c563f5b275..e0bfe0a9a2 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -70,8 +70,8 @@ teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } From 6170c50dfa0c3658e3279ed8e3495ffe7d157161 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Fri, 2 Jun 2023 14:49:17 +0200 Subject: [PATCH 07/69] followup for sidechain-evm --- app-libs/sgx-runtime/src/evm.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app-libs/sgx-runtime/src/evm.rs b/app-libs/sgx-runtime/src/evm.rs index 1fcf4def8e..67cdc794d4 100644 --- a/app-libs/sgx-runtime/src/evm.rs +++ b/app-libs/sgx-runtime/src/evm.rs @@ -23,7 +23,7 @@ pub const MAXIMUM_BLOCK_WEIGHT: Weight = pub struct FixedGasPrice; impl FeeCalculator for FixedGasPrice { fn min_gas_price() -> (U256, Weight) { - (1.into(), Weight::from_ref_time(1)) + (1.into(), Weight::from_parts(1, 0u64)) } } @@ -41,7 +41,7 @@ pub struct FixedGasWeightMapping; impl GasWeightMapping for FixedGasWeightMapping { fn gas_to_weight(gas: u64, _without_base_weight: bool) -> Weight { - Weight::from_ref_time(gas.saturating_mul(WEIGHT_PER_GAS)) + Weight::from_parts(gas.saturating_mul(WEIGHT_PER_GAS), 0u64) } fn weight_to_gas(weight: Weight) -> u64 { weight.ref_time().wrapping_div(WEIGHT_PER_GAS) @@ -83,4 +83,6 @@ impl pallet_evm::Config for Runtime { type FindAuthor = (); // Currently not available. Would need some more thoughts how prioritisation fees could be handled. type WeightPerGas = (); type OnCreate = (); + type Timestamp = (); + type WeightInfo = (); } From 2dc6a86fda395bda123f73c798aa89a7c8588bd4 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Fri, 2 Jun 2023 15:19:55 +0200 Subject: [PATCH 08/69] cargo clippy --- cli/src/base_cli/mod.rs | 6 +----- cli/src/trusted_base_cli/mod.rs | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 66e82b2619..23e9c74951 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -28,11 +28,7 @@ use chrono::{DateTime, Utc}; use clap::Subcommand; use itc_rpc_client::direct_client::DirectApi; use itp_node_api::api_client::PalletTeerexApi; -use sp_application_crypto::{ed25519, sr25519}; -use sp_core::{ - crypto::{key_types::ACCOUNT, Ss58Codec}, - Pair, -}; +use sp_core::crypto::{key_types::ACCOUNT, Ss58Codec}; use sp_keystore::Keystore; use std::{ path::PathBuf, diff --git a/cli/src/trusted_base_cli/mod.rs b/cli/src/trusted_base_cli/mod.rs index d0b6a2e5d3..5bad946fd2 100644 --- a/cli/src/trusted_base_cli/mod.rs +++ b/cli/src/trusted_base_cli/mod.rs @@ -25,11 +25,7 @@ use crate::{ Cli, CliResult, CliResultOk, }; use log::*; -use sp_application_crypto::{ed25519, sr25519}; -use sp_core::{ - crypto::{key_types::ACCOUNT, Ss58Codec}, - Pair, -}; +use sp_core::crypto::{key_types::ACCOUNT, Ss58Codec}; use sp_keystore::Keystore; use substrate_client_keystore::LocalKeystore; From 9d483f07fca67095917a30817ea90b9fe6b22149 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Mon, 5 Jun 2023 08:53:04 +0200 Subject: [PATCH 09/69] fixup! followup for sidechain-evm --- app-libs/sgx-runtime/src/evm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-libs/sgx-runtime/src/evm.rs b/app-libs/sgx-runtime/src/evm.rs index 67cdc794d4..d838b28115 100644 --- a/app-libs/sgx-runtime/src/evm.rs +++ b/app-libs/sgx-runtime/src/evm.rs @@ -1,7 +1,7 @@ //! Adds the `pallet-evm` support for the `sgx-runtime. // Import types from the crate root including the ones generated by the `construct_runtime!` macro. -use crate::{Balances, Runtime, RuntimeEvent, NORMAL_DISPATCH_RATIO}; +use crate::{Balances, Runtime, RuntimeEvent, Timestamp, NORMAL_DISPATCH_RATIO}; use frame_support::{ pallet_prelude::Weight, parameter_types, weights::constants::WEIGHT_REF_TIME_PER_SECOND, }; @@ -83,6 +83,6 @@ impl pallet_evm::Config for Runtime { type FindAuthor = (); // Currently not available. Would need some more thoughts how prioritisation fees could be handled. type WeightPerGas = (); type OnCreate = (); - type Timestamp = (); + type Timestamp = Timestamp; type WeightInfo = (); } From b02f96a69c644fb1fd520bb7d90d586166b0a515 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 8 Jun 2023 14:25:45 +0200 Subject: [PATCH 10/69] update integritee-node image --- .github/workflows/build_and_test.yml | 6 +++--- docker/docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9dcf87e2b4..66f0fbd959 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -248,7 +248,7 @@ jobs: echo "PROJECT=${{ matrix.flavor_id }}-${{ matrix.demo_name }}" >> $GITHUB_ENV echo "VERSION=dev.$version" >> $GITHUB_ENV echo "WORKER_IMAGE_TAG=integritee-worker:dev.$version" >> $GITHUB_ENV - echo "INTEGRITEE_NODE=integritee-node-dev-ias:1.0.35.$version" >> $GITHUB_ENV + echo "INTEGRITEE_NODE=integritee-node-dev-ias:1.0.36.$version" >> $GITHUB_ENV echo "CLIENT_IMAGE_TAG=integritee-cli:dev.$version" >> $GITHUB_ENV if [[ ${{ matrix.sgx_mode }} == 'HW' ]]; then echo "SGX_PROVISION=/dev/sgx/provision" >> $GITHUB_ENV @@ -292,8 +292,8 @@ jobs: fi docker tag integritee-worker-${{ matrix.flavor_id }}-${{ github.sha }} ${{ env.WORKER_IMAGE_TAG }} docker tag integritee-cli-client-${{ matrix.flavor_id }}-${{ github.sha }} ${{ env.CLIENT_IMAGE_TAG }} - docker pull integritee/integritee-node-dev-ias:1.0.35 - docker tag integritee/integritee-node-dev-ias:1.0.35 ${{ env.INTEGRITEE_NODE }} + docker pull integritee/integritee-node-dev-ias:1.0.36 + docker tag integritee/integritee-node-dev-ias:1.0.36 ${{ env.INTEGRITEE_NODE }} docker images --all ## diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index d8093c2388..28e65e320c 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,6 +1,6 @@ services: "integritee-node-${VERSION}": - image: "${INTEGRITEE_NODE:-integritee/integritee-node-dev-ias:1.0.35}" + image: "${INTEGRITEE_NODE:-integritee/integritee-node-dev-ias:1.0.36}" hostname: integritee-node devices: - "${SGX_PROVISION:-/dev/null}:/dev/sgx/provision" From 34b1320ec5709c5a7d47b6dd407bab9976a3df59 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 8 Jun 2023 14:54:44 +0200 Subject: [PATCH 11/69] integritee-node: update branch --- Cargo.lock | 705 +++++++++++++++++++++++++++-------------------------- 1 file changed, 353 insertions(+), 352 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4567d3e520..e7f0d37277 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9,7 +9,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" dependencies = [ "lazy_static", - "regex 1.8.3", + "regex 1.8.4", ] [[package]] @@ -18,7 +18,7 @@ version = "0.2.3" source = "git+https://github.com/scs/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700" dependencies = [ "ac-primitives", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sp-application-crypto", "sp-core", @@ -36,10 +36,10 @@ dependencies = [ "either", "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", "hex", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-application-crypto", "sp-core", @@ -62,7 +62,7 @@ dependencies = [ "parity-scale-codec", "primitive-types", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-core", "sp-runtime", @@ -132,8 +132,8 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom 0.2.9", - "once_cell 1.17.2", + "getrandom 0.2.10", + "once_cell 1.18.0", "version_check", ] @@ -144,8 +144,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if 1.0.0", - "getrandom 0.2.9", - "once_cell 1.17.2", + "getrandom 0.2.10", + "once_cell 1.18.0", "version_check", ] @@ -160,9 +160,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" +checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" dependencies = [ "memchr 2.5.0", ] @@ -241,9 +241,9 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "arrayvec" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +checksum = "8868f09ff8cea88b079da74ae569d9b8c62a23c68c746240b704ee6f7525c89c" [[package]] name = "async-trait" @@ -305,7 +305,7 @@ dependencies = [ "cfg-if 1.0.0", "libc", "miniz_oxide 0.6.2", - "object 0.30.3", + "object 0.30.4", "rustc-demangle", ] @@ -369,7 +369,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -378,7 +378,7 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "hash-db 0.16.0", - "log 0.4.18", + "log 0.4.19", ] [[package]] @@ -387,7 +387,7 @@ version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -404,7 +404,7 @@ dependencies = [ "peeking_take_while", "proc-macro2", "quote", - "regex 1.8.3", + "regex 1.8.4", "rustc-hash", "shlex", ] @@ -459,8 +459,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" dependencies = [ "arrayref", - "arrayvec 0.7.2", - "constant_time_eq 0.2.5", + "arrayvec 0.7.3", + "constant_time_eq 0.2.6", ] [[package]] @@ -514,14 +514,14 @@ dependencies = [ [[package]] name = "bounded-collections" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07fbd1d11282a1eb134d3c3b7cf8ce213b5161c6e5f73fb1b98618482c606b64" +checksum = "eb5b05133427c07c4776906f673ccf36c21b102c9829c641a5b56bd151d44fd6" dependencies = [ - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -537,7 +537,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a246e68bb43f6cd9db24bea052a53e40405417c5fb372e3d1a8a7f770a564ef5" dependencies = [ "memchr 2.5.0", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -623,7 +623,7 @@ version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c530edf18f37068ac2d977409ed5cd50d53d73bc653c7647b48eb78976ac9ae2" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -632,7 +632,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -644,7 +644,7 @@ dependencies = [ "camino", "cargo-platform", "semver 1.0.17", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "thiserror 1.0.40", ] @@ -708,7 +708,7 @@ dependencies = [ "iana-time-zone", "js-sys", "num-traits 0.2.15", - "serde 1.0.163", + "serde 1.0.164", "time", "wasm-bindgen", "winapi 0.3.9", @@ -726,12 +726,12 @@ dependencies = [ [[package]] name = "claims-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "parity-scale-codec", "rustc-hex", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", @@ -775,7 +775,7 @@ dependencies = [ "clap_derive", "clap_lex", "indexmap 1.9.3", - "once_cell 1.17.2", + "once_cell 1.18.0", "strsim 0.10.0", "termcolor", "textwrap 0.16.0", @@ -831,7 +831,7 @@ dependencies = [ [[package]] name = "common-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "sp-std", ] @@ -850,9 +850,9 @@ checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" [[package]] name = "constant_time_eq" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13418e745008f7349ec7e449155f419a61b92b58a99cc3616942b926825ec76b" +checksum = "21a53c0a4d288377e7415b53dcfc3c04da5cdc2cc95c8d5ac178b58f0b861ad6" [[package]] name = "convert_case" @@ -900,7 +900,7 @@ version = "0.93.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f42ea692c7b450ad18b8c9889661505d51c09ec4380cf1c2d278dbb2da22cae1" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -935,22 +935,22 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.14" +version = "0.9.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" dependencies = [ "autocfg 1.1.0", "cfg-if 1.0.0", "crossbeam-utils", - "memoffset 0.8.0", + "memoffset 0.9.0", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.15" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if 1.0.0", ] @@ -1058,7 +1058,7 @@ checksum = "daf4c6755cdf10798b97510e0e2b3edb9573032bd9379de8fffa59d68165494f" dependencies = [ "cc", "codespan-reporting", - "once_cell 1.17.2", + "once_cell 1.18.0", "proc-macro2", "quote", "scratch", @@ -1340,8 +1340,8 @@ checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" dependencies = [ "atty", "humantime", - "log 0.4.18", - "regex 1.8.3", + "log 0.4.19", + "regex 1.8.4", "termcolor", ] @@ -1353,8 +1353,8 @@ checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" dependencies = [ "humantime", "is-terminal", - "log 0.4.18", - "regex 1.8.3", + "log 0.4.19", + "regex 1.8.4", "termcolor", ] @@ -1420,7 +1420,7 @@ dependencies = [ "parity-scale-codec", "rlp", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sha3", "triehash", ] @@ -1453,12 +1453,12 @@ dependencies = [ "evm-core", "evm-gasometer", "evm-runtime", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "primitive-types", "rlp", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sha3", ] @@ -1471,7 +1471,7 @@ dependencies = [ "parity-scale-codec", "primitive-types", "scale-info", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -1586,7 +1586,7 @@ dependencies = [ "either", "futures 0.3.28", "futures-timer", - "log 0.4.18", + "log 0.4.19", "num-traits 0.2.15", "parity-scale-codec", "parking_lot 0.12.1", @@ -1669,11 +1669,11 @@ dependencies = [ [[package]] name = "form_urlencoded" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" dependencies = [ - "percent-encoding 2.2.0", + "percent-encoding 2.3.0", ] [[package]] @@ -1684,10 +1684,10 @@ dependencies = [ "hex", "impl-serde", "libsecp256k1", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -1703,7 +1703,7 @@ dependencies = [ "frame-support", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-runtime", "sp-std", @@ -1724,11 +1724,11 @@ dependencies = [ "frame-support-procedural", "frame-system", "linregress", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "paste", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-api", "sp-application-crypto", "sp-core", @@ -1793,7 +1793,7 @@ dependencies = [ "cfg-if 1.0.0", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -1804,7 +1804,7 @@ dependencies = [ "cfg-if 1.0.0", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -1818,12 +1818,12 @@ dependencies = [ "frame-support-procedural", "impl-trait-for-tuples", "k256", - "log 0.4.18", - "once_cell 1.17.2", + "log 0.4.19", + "once_cell 1.18.0", "parity-scale-codec", "paste", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "smallvec 1.10.0", "sp-api", "sp-arithmetic", @@ -1884,10 +1884,10 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "frame-support", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -2194,9 +2194,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if 1.0.0", "libc", @@ -2234,8 +2234,8 @@ dependencies = [ "aho-corasick 0.7.20", "bstr", "fnv 1.0.7", - "log 0.4.18", - "regex 1.8.3", + "log 0.4.19", + "regex 1.8.4", ] [[package]] @@ -2483,7 +2483,7 @@ name = "http_req" version = "0.8.1" source = "git+https://github.com/integritee-network/http_req?branch=master#3723e88235f2b29bc1a31835853b072ffd0455fd" dependencies = [ - "log 0.4.18", + "log 0.4.19", "rustls 0.19.1", "unicase 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "webpki 0.21.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2495,7 +2495,7 @@ name = "http_req" version = "0.8.1" source = "git+https://github.com/integritee-network/http_req#3723e88235f2b29bc1a31835853b072ffd0455fd" dependencies = [ - "log 0.4.18", + "log 0.4.19", "rustls 0.19.0 (git+https://github.com/mesalock-linux/rustls?branch=mesalock_sgx)", "sgx_tstd", "unicase 2.6.0 (git+https://github.com/mesalock-linux/unicase-sgx)", @@ -2575,7 +2575,7 @@ dependencies = [ "ct-logs", "futures-util 0.3.28", "hyper", - "log 0.4.18", + "log 0.4.19", "rustls 0.19.1", "rustls-native-certs", "tokio", @@ -2598,9 +2598,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.56" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -2632,9 +2632,9 @@ dependencies = [ [[package]] name = "idna" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ "unicode-bidi 0.3.13", "unicode-normalization 0.1.22", @@ -2664,7 +2664,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -2696,7 +2696,7 @@ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg 1.1.0", "hashbrown 0.12.3", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -2746,7 +2746,7 @@ dependencies = [ "itp-time-utils", "itp-types", "itp-utils", - "log 0.4.18", + "log 0.4.19", "pallet-balances", "pallet-evm", "pallet-teerex", @@ -2755,7 +2755,7 @@ dependencies = [ "rand 0.8.5", "rayon", "sc-keystore", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sgx_crypto_helper", "sp-application-crypto", @@ -2852,7 +2852,7 @@ dependencies = [ "its-test", "jsonrpsee", "lazy_static", - "log 0.4.18", + "log 0.4.19", "mockall", "pallet-balances", "parity-scale-codec", @@ -2861,8 +2861,8 @@ dependencies = [ "primitive-types", "prometheus", "scale-info", - "serde 1.0.163", - "serde_derive 1.0.163", + "serde 1.0.164", + "serde_derive 1.0.164", "serde_json 1.0.96", "sgx-verify", "sgx_crypto_helper", @@ -2923,7 +2923,7 @@ dependencies = [ "hyper-multipart-rfc7578", "hyper-tls", "parity-multiaddr", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "serde_urlencoded", "tokio", @@ -2941,7 +2941,7 @@ checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" dependencies = [ "hermit-abi 0.3.1", "io-lifetimes", - "rustix 0.37.19", + "rustix 0.37.20", "windows-sys 0.48.0", ] @@ -2953,16 +2953,16 @@ dependencies = [ "itp-enclave-metrics", "itp-ocall-api", "lazy_static", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sgx_tstd", "substrate-fixed", "thiserror 1.0.40", "thiserror 1.0.9", "url 2.1.1", - "url 2.3.1", + "url 2.4.0", ] [[package]] @@ -2989,7 +2989,7 @@ dependencies = [ "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-api", "sp-block-builder", "sp-consensus-aura", @@ -3022,7 +3022,7 @@ dependencies = [ "itp-storage", "itp-types", "itp-utils", - "log 0.4.18", + "log 0.4.19", "pallet-balances", "pallet-parentchain", "pallet-sudo", @@ -3047,7 +3047,7 @@ dependencies = [ "itp-utils", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "serde_json 1.0.96", "sgx_tstd", @@ -3072,7 +3072,7 @@ dependencies = [ "itp-test", "itp-top-pool-author", "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3103,7 +3103,7 @@ dependencies = [ "itc-parentchain-block-importer", "itp-import-queue", "itp-types", - "log 0.4.18", + "log 0.4.19", "sgx_tstd", "sgx_types", "sp-runtime", @@ -3122,7 +3122,7 @@ dependencies = [ "itp-settings", "itp-stf-executor", "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3151,7 +3151,7 @@ dependencies = [ "itp-test", "itp-top-pool-author", "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3177,7 +3177,7 @@ dependencies = [ "itp-test", "itp-types", "lazy_static", - "log 0.4.18", + "log 0.4.19", "num-traits 0.2.15", "parity-scale-codec", "sgx_tstd", @@ -3198,10 +3198,10 @@ dependencies = [ "frame-support", "frame-system", "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -3217,15 +3217,15 @@ dependencies = [ "http 0.2.9", "http_req 0.8.1 (git+https://github.com/integritee-network/http_req?branch=master)", "http_req 0.8.1 (git+https://github.com/integritee-network/http_req)", - "log 0.4.18", - "serde 1.0.163", + "log 0.4.19", + "serde 1.0.164", "serde_json 1.0.96", "sgx_tstd", "sgx_types", "thiserror 1.0.40", "thiserror 1.0.9", "url 2.1.1", - "url 2.3.1", + "url 2.4.0", ] [[package]] @@ -3240,16 +3240,16 @@ dependencies = [ "itp-rpc", "itp-types", "itp-utils", - "log 0.4.18", + "log 0.4.19", "openssl", "parity-scale-codec", "parking_lot 0.12.1", "rustls 0.19.1", - "serde_derive 1.0.163", + "serde_derive 1.0.164", "serde_json 1.0.96", "sgx_crypto_helper", "thiserror 1.0.40", - "url 2.3.1", + "url 2.4.0", "ws", ] @@ -3268,7 +3268,7 @@ dependencies = [ "its-storage", "its-test", "jsonrpsee", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "serde_json 1.0.96", "sp-core", @@ -3282,7 +3282,7 @@ dependencies = [ "bit-vec", "chrono 0.4.26", "env_logger 0.9.3", - "log 0.4.18", + "log 0.4.19", "mio 0.6.21", "mio 0.6.23", "mio-extras 2.0.6 (git+https://github.com/integritee-network/mio-extras-sgx?rev=963234b)", @@ -3297,7 +3297,7 @@ dependencies = [ "thiserror 1.0.9", "tungstenite 0.14.0", "tungstenite 0.15.0", - "url 2.3.1", + "url 2.4.0", "webpki 0.21.4 (registry+https://github.com/rust-lang/crates.io-index)", "webpki 0.21.4 (git+https://github.com/mesalock-linux/webpki?branch=mesalock_sgx)", "yasna 0.3.1", @@ -3356,7 +3356,7 @@ dependencies = [ name = "itp-attestation-handler" version = "0.8.0" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.3", "base64 0.13.0 (git+https://github.com/mesalock-linux/rust-base64-sgx?rev=sgx_1.1.3)", "base64 0.13.1", "bit-vec", @@ -3371,7 +3371,7 @@ dependencies = [ "itp-sgx-io", "itp-time-utils", "itp-types", - "log 0.4.18", + "log 0.4.19", "num-bigint 0.2.5", "parity-scale-codec", "rustls 0.19.0 (git+https://github.com/mesalock-linux/rustls?rev=sgx_1.1.3)", @@ -3413,7 +3413,7 @@ dependencies = [ "itp-settings", "itp-storage", "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "serde_json 1.0.96", "sgx_crypto_helper", @@ -3449,7 +3449,7 @@ dependencies = [ "itp-node-api", "itp-nonce-cache", "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3564,7 +3564,7 @@ version = "0.9.0" dependencies = [ "itp-types", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sgx_tstd", ] @@ -3582,11 +3582,11 @@ dependencies = [ "itp-settings", "itp-sgx-io", "itp-sgx-temp-dir", - "log 0.4.18", + "log 0.4.19", "ofb", "parity-scale-codec", "serde 1.0.118 (git+https://github.com/mesalock-linux/serde-sgx?tag=sgx_1.1.3)", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.60 (git+https://github.com/mesalock-linux/serde-json-sgx?tag=sgx_1.1.3)", "serde_json 1.0.96", "sgx_crypto_helper", @@ -3603,10 +3603,10 @@ dependencies = [ "derive_more", "environmental 1.1.3", "itp-hashing", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "postcard", - "serde 1.0.163", + "serde 1.0.164", "sgx_tstd", "sp-core", ] @@ -3656,7 +3656,7 @@ dependencies = [ "itp-time-utils", "itp-top-pool-author", "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_crypto_helper", "sgx_tstd", @@ -3701,7 +3701,7 @@ dependencies = [ "itp-time-utils", "itp-types", "lazy_static", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "rust-base58 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "rust-base58 0.0.4 (git+https://github.com/mesalock-linux/rust-base58-sgx?rev=sgx_1.1.3)", @@ -3718,7 +3718,7 @@ name = "itp-stf-state-observer" version = "0.9.0" dependencies = [ "itp-types", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "thiserror 1.0.40", @@ -3800,10 +3800,10 @@ dependencies = [ "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", "linked-hash-map 0.5.2", "linked-hash-map 0.5.6", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "parity-util-mem", - "serde 1.0.163", + "serde 1.0.164", "sgx_tstd", "sgx_types", "sp-application-crypto", @@ -3831,7 +3831,7 @@ dependencies = [ "itp-utils", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_crypto_helper", "sgx_tstd", @@ -3854,7 +3854,7 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "primitive-types", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-core", "sp-runtime", @@ -3890,7 +3890,7 @@ dependencies = [ "itp-types", "its-primitives", "its-state", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -3910,7 +3910,7 @@ dependencies = [ "itp-utils", "its-primitives", "its-test", - "log 0.4.18", + "log 0.4.19", "sgx_tstd", "sp-consensus-slots", "sp-core", @@ -3951,7 +3951,7 @@ dependencies = [ "its-state", "its-test", "its-validateer-fetch", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sp-core", @@ -3980,7 +3980,7 @@ dependencies = [ "its-primitives", "its-state", "its-test", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sgx_types", @@ -4007,7 +4007,7 @@ dependencies = [ "its-primitives", "its-test", "lazy_static", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sgx_tstd", "sp-consensus-slots", @@ -4030,8 +4030,8 @@ dependencies = [ "its-storage", "its-test", "jsonrpsee", - "log 0.4.18", - "serde 1.0.163", + "log 0.4.19", + "serde 1.0.164", "serde_json 1.0.96", "thiserror 1.0.40", "tokio", @@ -4043,7 +4043,7 @@ version = "0.1.0" dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -4062,7 +4062,7 @@ dependencies = [ "its-primitives", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "rust-base58 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "rust-base58 0.0.4 (git+https://github.com/mesalock-linux/rust-base58-sgx?rev=sgx_1.1.3)", @@ -4093,9 +4093,9 @@ dependencies = [ "itp-sgx-externalities", "itp-storage", "its-primitives", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "sgx_tstd", "sp-core", "sp-io 7.0.0", @@ -4114,7 +4114,7 @@ dependencies = [ "itp-types", "its-primitives", "its-test", - "log 0.4.18", + "log 0.4.19", "mockall", "parity-scale-codec", "parking_lot 0.12.1", @@ -4165,9 +4165,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f37a4a5928311ac501dee68b3c7613a1037d0edb30c8e5427bd832d55d1b790" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] @@ -4181,9 +4181,9 @@ dependencies = [ "futures 0.3.28", "futures-executor 0.3.28", "futures-util 0.3.28", - "log 0.4.18", - "serde 1.0.163", - "serde_derive 1.0.163", + "log 0.4.19", + "serde 1.0.164", + "serde_derive 1.0.164", "serde_json 1.0.96", ] @@ -4226,11 +4226,11 @@ dependencies = [ "hyper-rustls", "jsonrpsee-types", "jsonrpsee-utils", - "log 0.4.18", - "serde 1.0.163", + "log 0.4.19", + "serde 1.0.164", "serde_json 1.0.96", "thiserror 1.0.40", - "url 2.3.1", + "url 2.4.0", ] [[package]] @@ -4246,8 +4246,8 @@ dependencies = [ "jsonrpsee-types", "jsonrpsee-utils", "lazy_static", - "log 0.4.18", - "serde 1.0.163", + "log 0.4.19", + "serde 1.0.164", "serde_json 1.0.96", "socket2", "thiserror 1.0.40", @@ -4279,8 +4279,8 @@ dependencies = [ "futures-channel 0.3.28", "futures-util 0.3.28", "hyper", - "log 0.4.18", - "serde 1.0.163", + "log 0.4.19", + "serde 1.0.164", "serde_json 1.0.96", "soketto", "thiserror 1.0.40", @@ -4296,11 +4296,11 @@ dependencies = [ "futures-util 0.3.28", "hyper", "jsonrpsee-types", - "log 0.4.18", + "log 0.4.19", "parking_lot 0.11.2", "rand 0.8.5", "rustc-hash", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "thiserror 1.0.40", ] @@ -4315,18 +4315,18 @@ dependencies = [ "fnv 1.0.7", "futures 0.3.28", "jsonrpsee-types", - "log 0.4.18", + "log 0.4.19", "pin-project", "rustls 0.19.1", "rustls-native-certs", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "soketto", "thiserror 1.0.40", "tokio", "tokio-rustls", "tokio-util 0.6.10", - "url 2.3.1", + "url 2.4.0", ] [[package]] @@ -4339,9 +4339,9 @@ dependencies = [ "futures-util 0.3.28", "jsonrpsee-types", "jsonrpsee-utils", - "log 0.4.18", + "log 0.4.19", "rustc-hash", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "soketto", "thiserror 1.0.40", @@ -4359,7 +4359,7 @@ dependencies = [ "cfg-if 1.0.0", "ecdsa", "elliptic-curve", - "once_cell 1.17.2", + "once_cell 1.18.0", "sha2 0.10.6", ] @@ -4399,9 +4399,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.144" +version = "0.2.146" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" +checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b" [[package]] name = "libloading" @@ -4445,7 +4445,7 @@ dependencies = [ "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", "rand 0.8.5", - "serde 1.0.163", + "serde 1.0.164", "sha2 0.9.9", "typenum 1.16.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -4525,9 +4525,9 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "lock_api" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" dependencies = [ "autocfg 1.1.0", "scopeguard", @@ -4553,9 +4553,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.18" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" +checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" [[package]] name = "mach" @@ -4612,7 +4612,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" dependencies = [ - "rustix 0.37.19", + "rustix 0.37.20", ] [[package]] @@ -4626,9 +4626,9 @@ dependencies = [ [[package]] name = "memoffset" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" dependencies = [ "autocfg 1.1.0", ] @@ -4726,7 +4726,7 @@ dependencies = [ "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys", "libc", - "log 0.4.18", + "log 0.4.19", "miow", "net2 0.2.38", "slab 0.4.8", @@ -4751,7 +4751,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" dependencies = [ "lazycell", - "log 0.4.18", + "log 0.4.19", "mio 0.6.23", "slab 0.4.8", ] @@ -4762,7 +4762,7 @@ version = "2.0.6" source = "git+https://github.com/integritee-network/mio-extras-sgx?rev=963234b#963234bf55e44f9efff921938255126c48deef3a" dependencies = [ "lazycell", - "log 0.4.18", + "log 0.4.19", "mio 0.6.21", "mio 0.6.23", "sgx_tstd", @@ -4820,7 +4820,7 @@ dependencies = [ "futures-util 0.3.28", "http 0.2.9", "httparse 1.8.0", - "log 0.4.18", + "log 0.4.19", "memchr 2.5.0", "mime", "spin 0.9.8", @@ -4887,7 +4887,7 @@ checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" dependencies = [ "lazy_static", "libc", - "log 0.4.18", + "log 0.4.19", "openssl", "openssl-probe", "openssl-sys", @@ -5066,7 +5066,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.3", "itoa 1.0.6", ] @@ -5189,9 +5189,9 @@ dependencies = [ [[package]] name = "object" -version = "0.30.3" +version = "0.30.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" +checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" dependencies = [ "memchr 2.5.0", ] @@ -5215,9 +5215,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.2" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "opaque-debug" @@ -5241,7 +5241,7 @@ dependencies = [ "cfg-if 1.0.0", "foreign-types", "libc", - "once_cell 1.17.2", + "once_cell 1.18.0", "openssl-macros", "openssl-sys", ] @@ -5277,9 +5277,9 @@ dependencies = [ [[package]] name = "os_str_bytes" -version = "6.5.0" +version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceedf44fb00f2d1984b0bc98102627ce622e083e49a5bacdb3e514fa4238e267" +checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" [[package]] name = "pallet-assets" @@ -5334,7 +5334,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", "sp-runtime", @@ -5344,7 +5344,7 @@ dependencies = [ [[package]] name = "pallet-claims" version = "0.9.12" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "claims-primitives", "frame-support", @@ -5352,8 +5352,8 @@ dependencies = [ "parity-scale-codec", "rustc-hex", "scale-info", - "serde 1.0.163", - "serde_derive 1.0.163", + "serde 1.0.164", + "serde_derive 1.0.164", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", "sp-std", @@ -5370,13 +5370,13 @@ dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", - "log 0.4.18", + "log 0.4.19", "pallet-contracts-primitives", "pallet-contracts-proc-macro", "parity-scale-codec", "rand 0.8.5", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "smallvec 1.10.0", "sp-api", "sp-core", @@ -5425,7 +5425,7 @@ dependencies = [ "frame-system", "hex", "impl-trait-for-tuples", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "rlp", "scale-info", @@ -5443,7 +5443,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "pallet-authorship", "pallet-session", "parity-scale-codec", @@ -5480,7 +5480,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", @@ -5491,14 +5491,14 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -5512,7 +5512,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", @@ -5543,7 +5543,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", @@ -5560,7 +5560,7 @@ dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", - "log 0.4.18", + "log 0.4.19", "pallet-timestamp", "parity-scale-codec", "scale-info", @@ -5576,16 +5576,16 @@ dependencies = [ [[package]] name = "pallet-sidechain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "pallet-teerex", "pallet-timestamp", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sidechain-primitives", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", @@ -5603,12 +5603,12 @@ dependencies = [ "frame-election-provider-support", "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "pallet-authorship", "pallet-session", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-application-crypto", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -5633,11 +5633,11 @@ dependencies = [ [[package]] name = "pallet-teeracle" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "pallet-teerex", "parity-scale-codec", "scale-info", @@ -5652,15 +5652,15 @@ dependencies = [ [[package]] name = "pallet-teerex" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "pallet-timestamp", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sgx-verify", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", @@ -5677,7 +5677,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", "sp-inherents", @@ -5696,7 +5696,7 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -5727,7 +5727,7 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-runtime", "sp-std", ] @@ -5756,7 +5756,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", "sp-runtime", @@ -5774,11 +5774,11 @@ dependencies = [ "byteorder 1.4.3", "data-encoding", "multihash", - "percent-encoding 2.2.0", - "serde 1.0.163", + "percent-encoding 2.3.0", + "serde 1.0.164", "static_assertions", "unsigned-varint 0.7.1", - "url 2.3.1", + "url 2.4.0", ] [[package]] @@ -5787,13 +5787,13 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ddb756ca205bd108aee3c62c6d3c994e1df84a59b9d6d4a5ea42ee1fd5a9a28" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.3", "bitvec", "byte-slice-cast", "bytes 1.4.0", "impl-trait-for-tuples", "parity-scale-codec-derive", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -5856,7 +5856,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.7", + "parking_lot_core 0.9.8", ] [[package]] @@ -5875,15 +5875,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.7" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" +checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ "cfg-if 1.0.0", "libc", - "redox_syscall 0.2.16", + "redox_syscall 0.3.5", "smallvec 1.10.0", - "windows-sys 0.45.0", + "windows-targets 0.48.0", ] [[package]] @@ -5894,7 +5894,7 @@ checksum = "7037e5e93e0172a5a96874380bf73bc6ecef022e26fa25f2be26864d6b3ba95d" dependencies = [ "lazy_static", "num 0.2.1", - "regex 1.8.3", + "regex 1.8.4", ] [[package]] @@ -5954,9 +5954,9 @@ source = "git+https://github.com/mesalock-linux/rust-url-sgx?tag=sgx_1.1.3#23832 [[package]] name = "percent-encoding" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" +checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pin-project" @@ -6013,7 +6013,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a25c0b0ae06fcffe600ad392aabfa535696c8973f2253d9ac83171924c58a858" dependencies = [ "postcard-cobs", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -6044,7 +6044,7 @@ dependencies = [ "itertools", "normalize-line-endings", "predicates-core", - "regex 1.8.3", + "regex 1.8.4", ] [[package]] @@ -6083,7 +6083,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ - "once_cell 1.17.2", + "once_cell 1.18.0", "toml_edit", ] @@ -6136,9 +6136,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.59" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" +checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406" dependencies = [ "unicode-ident", ] @@ -6327,7 +6327,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.9", + "getrandom 0.2.10", ] [[package]] @@ -6416,7 +6416,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom 0.2.9", + "getrandom 0.2.10", "redox_syscall 0.2.16", "thiserror 1.0.40", ] @@ -6452,11 +6452,11 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.3" +version = "1.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" +checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f" dependencies = [ - "aho-corasick 1.0.1", + "aho-corasick 1.0.2", "memchr 2.5.0", "regex-syntax 0.7.2", ] @@ -6519,7 +6519,7 @@ checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" dependencies = [ "cc", "libc", - "once_cell 1.17.2", + "once_cell 1.18.0", "spin 0.5.2", "untrusted", "web-sys", @@ -6533,8 +6533,8 @@ source = "git+https://github.com/Niederb/ring-xous.git?branch=0.16.20-cleanup#8b dependencies = [ "cc", "libc", - "log 0.4.18", - "once_cell 1.17.2", + "log 0.4.19", + "once_cell 1.18.0", "rkyv", "spin 0.5.2", "untrusted", @@ -6668,9 +6668,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.19" +version = "0.37.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" +checksum = "b96e891d04aa506a6d1f318d2771bcb1c7dfda84e126660ace067c9b474bb2c0" dependencies = [ "bitflags", "errno", @@ -6726,7 +6726,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" dependencies = [ "base64 0.13.1", - "log 0.4.18", + "log 0.4.19", "ring 0.16.20 (registry+https://github.com/rust-lang/crates.io-index)", "sct 0.6.1", "webpki 0.21.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -6782,9 +6782,9 @@ dependencies = [ [[package]] name = "safe_arch" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "794821e4ccb0d9f979512f9c1973480123f9bd62a90d74ab0f9426fcf8f4a529" +checksum = "62a7484307bd40f8f7ccbacccac730108f2cae119a3b11c74485b48aa9ea650f" dependencies = [ "bytemuck", ] @@ -6824,7 +6824,7 @@ dependencies = [ "derive_more", "parity-scale-codec", "scale-info-derive", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -7003,7 +7003,7 @@ version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -7031,11 +7031,11 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.163" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" +checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d" dependencies = [ - "serde_derive 1.0.163", + "serde_derive 1.0.164", ] [[package]] @@ -7044,8 +7044,8 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b926cfbabfe8011609dda0350cb24d884955d294909ac71c0db7027366c77e3e" dependencies = [ - "serde 1.0.163", - "serde_derive 1.0.163", + "serde 1.0.164", + "serde_derive 1.0.164", ] [[package]] @@ -7069,9 +7069,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.163" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" +checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68" dependencies = [ "proc-macro2", "quote", @@ -7110,7 +7110,7 @@ dependencies = [ "indexmap 1.9.3", "itoa 1.0.6", "ryu", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -7119,7 +7119,7 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93107647184f6027e3b7dcb2e11034cf95ffa1e3a682c67951963ac69c1c007d" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -7131,13 +7131,13 @@ dependencies = [ "form_urlencoded", "itoa 1.0.6", "ryu", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] name = "sgx-verify" version = "0.1.4" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "base64 0.13.1", "chrono 0.4.26", @@ -7148,7 +7148,7 @@ dependencies = [ "parity-scale-codec", "ring 0.16.20 (git+https://github.com/Niederb/ring-xous.git?branch=0.16.20-cleanup)", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", @@ -7186,11 +7186,11 @@ dependencies = [ "itertools", "libc", "serde 1.0.118 (git+https://github.com/mesalock-linux/serde-sgx)", - "serde 1.0.163", + "serde 1.0.164", "serde-big-array 0.1.5", "serde-big-array 0.3.0", "serde_derive 1.0.118", - "serde_derive 1.0.163", + "serde_derive 1.0.164", "sgx_tcrypto", "sgx_tstd", "sgx_types", @@ -7423,11 +7423,11 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "sidechain-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-runtime", @@ -7523,7 +7523,7 @@ dependencies = [ "bytes 1.4.0", "futures 0.3.28", "httparse 1.8.0", - "log 0.4.18", + "log 0.4.19", "rand 0.8.5", "sha-1 0.9.8", ] @@ -7534,7 +7534,7 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "hash-db 0.16.0", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", "sp-api-proc-macro", @@ -7569,7 +7569,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-std", @@ -7584,7 +7584,7 @@ dependencies = [ "num-traits 0.2.15", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-std", "static_assertions", ] @@ -7608,7 +7608,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "async-trait", "futures 0.3.28", - "log 0.4.18", + "log 0.4.19", "sp-core", "sp-inherents", "sp-runtime", @@ -7640,10 +7640,10 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "finality-grandpa", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-api", "sp-application-crypto", "sp-core", @@ -7659,7 +7659,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-std", "sp-timestamp", ] @@ -7682,19 +7682,19 @@ dependencies = [ "impl-serde", "lazy_static", "libsecp256k1", - "log 0.4.18", + "log 0.4.19", "merlin", "parity-scale-codec", "parking_lot 0.12.1", "paste", "primitive-types", "rand 0.8.5", - "regex 1.8.3", + "regex 1.8.4", "scale-info", "schnorrkel", "secp256k1", "secrecy", - "serde 1.0.163", + "serde 1.0.164", "sp-core-hashing", "sp-debug-derive", "sp-externalities", @@ -7778,7 +7778,7 @@ dependencies = [ "hash-db 0.15.2", "itp-sgx-externalities", "libsecp256k1", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "parking_lot 0.12.1", "sgx_tstd", @@ -7802,7 +7802,7 @@ dependencies = [ "ed25519-dalek", "futures 0.3.28", "libsecp256k1", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "rustversion", "secp256k1", @@ -7837,7 +7837,7 @@ dependencies = [ "futures 0.3.28", "parity-scale-codec", "parking_lot 0.12.1", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-externalities", "thiserror 1.0.40", @@ -7870,7 +7870,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-arithmetic", "sp-core", "sp-runtime", @@ -7894,7 +7894,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "backtrace", "lazy_static", - "regex 1.8.3", + "regex 1.8.4", ] [[package]] @@ -7905,12 +7905,12 @@ dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "paste", "rand 0.8.5", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-application-crypto", "sp-arithmetic", "sp-core", @@ -7970,7 +7970,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-runtime", "sp-std", @@ -7982,7 +7982,7 @@ version = "0.13.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" dependencies = [ "hash-db 0.16.0", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "parking_lot 0.12.1", "rand 0.8.5", @@ -8009,7 +8009,7 @@ dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", - "serde 1.0.163", + "serde 1.0.164", "sp-debug-derive", "sp-std", ] @@ -8021,7 +8021,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "async-trait", "futures-timer", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sp-inherents", "sp-runtime", @@ -8082,7 +8082,7 @@ dependencies = [ "parity-scale-codec", "parity-wasm", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core-hashing-proc-macro", "sp-runtime", "sp-std", @@ -8108,7 +8108,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "anyhow", "impl-trait-for-tuples", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", "sp-std", "wasmi 0.13.2", @@ -8122,7 +8122,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "smallvec 1.10.0", "sp-arithmetic", "sp-core", @@ -8172,7 +8172,7 @@ dependencies = [ "num-format", "proc-macro2", "quote", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "unicode-xid", ] @@ -8235,14 +8235,14 @@ dependencies = [ "frame-metadata 15.1.0 (git+https://github.com/paritytech/frame-metadata)", "frame-support", "hex", - "log 0.4.18", + "log 0.4.19", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-core", "sp-runtime", "sp-runtime-interface", - "url 2.3.1", + "url 2.4.0", "ws", ] @@ -8282,7 +8282,7 @@ source = "git+https://github.com/encointer/substrate-fixed?tag=v0.5.9#a4fb461aae dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "typenum 1.16.0 (git+https://github.com/encointer/typenum?tag=v1.16.0)", ] @@ -8358,7 +8358,7 @@ checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" [[package]] name = "teeracle-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "common-primitives", "sp-std", @@ -8368,12 +8368,12 @@ dependencies = [ [[package]] name = "teerex-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "common-primitives", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", "sp-std", @@ -8387,15 +8387,16 @@ checksum = "af547b166dd1ea4b472165569fc456cfb6818116f854690b0ff205e636523dab" [[package]] name = "tempfile" -version = "3.5.0" +version = "3.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998" +checksum = "31c0432476357e58790aaa47a8efb0c5138f137343f3b5f23bd36a27e3b0a6d6" dependencies = [ + "autocfg 1.1.0", "cfg-if 1.0.0", "fastrand", "redox_syscall 0.3.5", - "rustix 0.37.19", - "windows-sys 0.45.0", + "rustix 0.37.20", + "windows-sys 0.48.0", ] [[package]] @@ -8474,7 +8475,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" dependencies = [ "cfg-if 1.0.0", - "once_cell 1.17.2", + "once_cell 1.18.0", ] [[package]] @@ -8496,7 +8497,7 @@ checksum = "62cc94d358b5a1e84a5cb9109f559aa3c4d634d2b1b4de3d0fa4adc7c78e2861" dependencies = [ "anyhow", "hmac 0.12.1", - "once_cell 1.17.2", + "once_cell 1.18.0", "pbkdf2 0.11.0", "rand 0.8.5", "rustc-hash", @@ -8600,7 +8601,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54319c93411147bced34cb5609a80e0a8e44c5999c93903a81cd866630ec0bfd" dependencies = [ "futures-util 0.3.28", - "log 0.4.18", + "log 0.4.19", "tokio", "tungstenite 0.18.0", ] @@ -8615,7 +8616,7 @@ dependencies = [ "futures-core 0.3.28", "futures-io 0.3.28", "futures-sink 0.3.28", - "log 0.4.18", + "log 0.4.19", "pin-project-lite", "tokio", ] @@ -8640,7 +8641,7 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6135d499e69981f9ff0ef2167955a5333c35e36f6937d382974566b3d5b94ec" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", "serde_spanned", "toml_datetime", "toml_edit", @@ -8652,7 +8653,7 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a76a9312f5ba4c2dec6b9161fdf25d87ad8a09256ccea5a556fef03c706a10f" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -8662,7 +8663,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2380d56e8670370eee6566b0bfd4265f65b3f432e8c6d85623f728d4fa31f739" dependencies = [ "indexmap 1.9.3", - "serde 1.0.163", + "serde 1.0.164", "serde_spanned", "toml_datetime", "winnow", @@ -8681,7 +8682,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if 1.0.0", - "log 0.4.18", + "log 0.4.19", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -8704,7 +8705,7 @@ version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" dependencies = [ - "once_cell 1.17.2", + "once_cell 1.18.0", "valuable", ] @@ -8715,7 +8716,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" dependencies = [ "lazy_static", - "log 0.4.18", + "log 0.4.19", "tracing-core", ] @@ -8725,7 +8726,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", "tracing-core", ] @@ -8739,8 +8740,8 @@ dependencies = [ "chrono 0.4.26", "lazy_static", "matchers", - "regex 1.8.3", - "serde 1.0.163", + "regex 1.8.4", + "serde 1.0.164", "serde_json 1.0.96", "sharded-slab", "smallvec 1.10.0", @@ -8759,7 +8760,7 @@ checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ "hash-db 0.16.0", "hashbrown 0.13.2", - "log 0.4.18", + "log 0.4.19", "rustc-hex", "smallvec 1.10.0", ] @@ -8828,12 +8829,12 @@ dependencies = [ "bytes 1.4.0", "http 0.2.9", "httparse 1.8.0", - "log 0.4.18", + "log 0.4.19", "rand 0.8.5", "rustls 0.19.1", "sha-1 0.9.8", "thiserror 1.0.40", - "url 2.3.1", + "url 2.4.0", "utf-8 0.7.6", "webpki 0.21.4 (registry+https://github.com/rust-lang/crates.io-index)", "webpki-roots 0.21.1", @@ -8850,11 +8851,11 @@ dependencies = [ "bytes 1.4.0", "http 0.2.9", "httparse 1.8.0", - "log 0.4.18", + "log 0.4.19", "rand 0.8.5", "sha1 0.10.5", "thiserror 1.0.40", - "url 2.3.1", + "url 2.4.0", "utf-8 0.7.6", ] @@ -9007,13 +9008,13 @@ dependencies = [ [[package]] name = "url" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb" dependencies = [ "form_urlencoded", - "idna 0.3.0", - "percent-encoding 2.2.0", + "idna 0.4.0", + "percent-encoding 2.3.0", ] [[package]] @@ -9070,7 +9071,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" dependencies = [ - "log 0.4.18", + "log 0.4.19", "try-lock", ] @@ -9086,15 +9087,15 @@ dependencies = [ "headers", "http 0.2.9", "hyper", - "log 0.4.18", + "log 0.4.19", "mime", "mime_guess", "multer", - "percent-encoding 2.2.0", + "percent-encoding 2.3.0", "pin-project", "rustls-pemfile", "scoped-tls", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "serde_urlencoded", "tokio", @@ -9125,9 +9126,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bba0e8cb82ba49ff4e229459ff22a191bbe9a1cb3a341610c9c33efc27ddf73" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if 1.0.0", "wasm-bindgen-macro", @@ -9135,13 +9136,13 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b04bc93f9d6bdee709f6bd2118f57dd6679cf1176a1af464fca3ab0d66d8fb" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", - "log 0.4.18", - "once_cell 1.17.2", + "log 0.4.19", + "once_cell 1.18.0", "proc-macro2", "quote", "syn 2.0.18", @@ -9150,9 +9151,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14d6b024f1a526bb0234f52840389927257beb670610081360e5a03c5df9c258" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -9160,9 +9161,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e128beba882dd1eb6200e1dc92ae6c5dbaa4311aa7bb211ca035779e5efc39f8" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", @@ -9173,9 +9174,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed9d5b4305409d1fc9482fee2d7f9bcbf24b3972bf59817ef757e23982242a93" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "wasm-instrument" @@ -9224,7 +9225,7 @@ dependencies = [ "cc", "cxx", "cxx-build", - "regex 1.8.3", + "regex 1.8.4", ] [[package]] @@ -9297,7 +9298,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64b20236ab624147dfbb62cf12a19aaf66af0e41b8398838b66e997d07d269d4" dependencies = [ "indexmap 1.9.3", - "url 2.3.1", + "url 2.4.0", ] [[package]] @@ -9320,12 +9321,12 @@ dependencies = [ "cfg-if 1.0.0", "indexmap 1.9.3", "libc", - "log 0.4.18", + "log 0.4.19", "object 0.29.0", - "once_cell 1.17.2", + "once_cell 1.18.0", "paste", "psm", - "serde 1.0.163", + "serde 1.0.164", "target-lexicon", "wasmparser", "wasmtime-environ", @@ -9353,9 +9354,9 @@ dependencies = [ "cranelift-entity", "gimli 0.26.2", "indexmap 1.9.3", - "log 0.4.18", + "log 0.4.19", "object 0.29.0", - "serde 1.0.163", + "serde 1.0.164", "target-lexicon", "thiserror 1.0.40", "wasmparser", @@ -9374,10 +9375,10 @@ dependencies = [ "cfg-if 1.0.0", "cpp_demangle", "gimli 0.26.2", - "log 0.4.18", + "log 0.4.19", "object 0.29.0", "rustc-demangle", - "serde 1.0.163", + "serde 1.0.164", "target-lexicon", "wasmtime-environ", "wasmtime-jit-icache-coherence", @@ -9391,7 +9392,7 @@ version = "6.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eed41cbcbf74ce3ff6f1d07d1b707888166dc408d1a880f651268f4f7c9194b2" dependencies = [ - "once_cell 1.17.2", + "once_cell 1.18.0", ] [[package]] @@ -9416,7 +9417,7 @@ dependencies = [ "cfg-if 1.0.0", "indexmap 1.9.3", "libc", - "log 0.4.18", + "log 0.4.19", "mach", "memfd", "memoffset 0.6.5", @@ -9436,16 +9437,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83e5572c5727c1ee7e8f28717aaa8400e4d22dcbd714ea5457d85b5005206568" dependencies = [ "cranelift-entity", - "serde 1.0.163", + "serde 1.0.164", "thiserror 1.0.40", "wasmparser", ] [[package]] name = "web-sys" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bdd9ef4e984da1187bf8110c5cf5b845fbc87a23602cdf912386a76fcd3a7c2" +checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" dependencies = [ "js-sys", "wasm-bindgen", @@ -9510,9 +9511,9 @@ dependencies = [ [[package]] name = "wide" -version = "0.7.9" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cd0496a71f3cc6bc4bf0ed91346426a5099e93d89807e663162dc5a1069ff65" +checksum = "40018623e2dba2602a9790faba8d33f2ebdebf4b86561b83928db735f8784728" dependencies = [ "bytemuck", "safe_arch", @@ -9735,14 +9736,14 @@ dependencies = [ "byteorder 1.4.3", "bytes 0.4.12", "httparse 1.8.0", - "log 0.4.18", + "log 0.4.19", "mio 0.6.23", "mio-extras 2.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "openssl", "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", "sha-1 0.8.2", "slab 0.4.8", - "url 2.3.1", + "url 2.4.0", ] [[package]] @@ -9791,7 +9792,7 @@ version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd6b15ea09891f09b02d763422dc99733c96e62d0f8ab476c6bc663c90b17e72" dependencies = [ - "log 0.4.18", + "log 0.4.19", "num-derive", "num-traits 0.2.15", "xous", @@ -9804,7 +9805,7 @@ version = "0.9.42" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b470fbf177d58767fa001acfcb5294a88d3938d3935865ff6b8f1db40f1004e" dependencies = [ - "log 0.4.18", + "log 0.4.19", "num-derive", "num-traits 0.2.15", "rkyv", From 8bceae9c76dff2545f0f7d43d32889e0d8f06713 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 8 Jun 2023 14:54:44 +0200 Subject: [PATCH 12/69] integritee-node: update branch --- Cargo.lock | 4 +- app-libs/stf/Cargo.toml | 2 +- cli/Cargo.toml | 2 +- .../node-api/api-client-types/Cargo.toml | 2 +- core-primitives/types/Cargo.toml | 2 +- enclave-runtime/Cargo.lock | 80 +++++++++---------- service/Cargo.toml | 2 +- 7 files changed, 47 insertions(+), 47 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e7f0d37277..df7c526375 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2772,8 +2772,8 @@ dependencies = [ [[package]] name = "integritee-node-runtime" -version = "1.0.32" -source = "git+https://github.com/integritee-network/integritee-node.git?branch=szp/polkadot-v0.9.42#03c799358ad096e97852d5322fc67ce0d4aced03" +version = "1.0.33" +source = "git+https://github.com/integritee-network/integritee-node.git?branch=polkadot-v0.9.42#2c13d1fd5708825b7832b6b1bc33448ca3111514" dependencies = [ "frame-executive", "frame-support", diff --git a/app-libs/stf/Cargo.toml b/app-libs/stf/Cargo.toml index 7a6f676966..865edd49c2 100644 --- a/app-libs/stf/Cargo.toml +++ b/app-libs/stf/Cargo.toml @@ -39,7 +39,7 @@ sp-core = { default-features = false, features = ["full_crypto"], git = "https:/ sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # scs / integritee -my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } diff --git a/cli/Cargo.toml b/cli/Cargo.toml index fbf2ac4948..d76992a480 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -25,7 +25,7 @@ thiserror = "1.0" ws = { version = "0.9.1", features = ["ssl"] } # scs / integritee -my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. diff --git a/core-primitives/node-api/api-client-types/Cargo.toml b/core-primitives/node-api/api-client-types/Cargo.toml index 63a7f9b47e..76999c7c0a 100644 --- a/core-primitives/node-api/api-client-types/Cargo.toml +++ b/core-primitives/node-api/api-client-types/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] # integritee-node -my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } # scs substrate-api-client = { default-features = false, features = [], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } diff --git a/core-primitives/types/Cargo.toml b/core-primitives/types/Cargo.toml index 6015b43356..701fe14c93 100644 --- a/core-primitives/types/Cargo.toml +++ b/core-primitives/types/Cargo.toml @@ -25,7 +25,7 @@ sp-runtime = { default-features = false, git = "https://github.com/paritytech/su sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # integritee-node -my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index 1d53339419..0c949dcd05 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -9,7 +9,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" dependencies = [ "lazy_static", - "regex 1.8.3", + "regex 1.8.4", ] [[package]] @@ -39,7 +39,7 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-application-crypto", "sp-core", @@ -57,7 +57,7 @@ dependencies = [ "parity-scale-codec", "primitive-types", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-core", "sp-runtime", @@ -104,7 +104,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ "getrandom 0.2.3", - "once_cell 1.17.2", + "once_cell 1.18.0", "version_check", ] @@ -115,7 +115,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if 1.0.0", - "once_cell 1.17.2", + "once_cell 1.18.0", "version_check", ] @@ -130,9 +130,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" +checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" dependencies = [ "memchr 2.5.0", ] @@ -1031,7 +1031,7 @@ dependencies = [ "cfg-if 1.0.0", "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -1498,7 +1498,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd" dependencies = [ - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -1571,7 +1571,7 @@ dependencies = [ "lazy_static", "log", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sgx_tstd", "substrate-fixed", @@ -1806,7 +1806,7 @@ dependencies = [ "http", "http_req", "log", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sgx_tstd", "sgx_types", @@ -2019,7 +2019,7 @@ version = "0.9.0" dependencies = [ "itp-types", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sgx_tstd", ] @@ -2059,7 +2059,7 @@ dependencies = [ "log", "parity-scale-codec", "postcard", - "serde 1.0.163", + "serde 1.0.164", "sgx_tstd", "sp-core", ] @@ -2246,7 +2246,7 @@ dependencies = [ "linked-hash-map", "log", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "sgx_tstd", "sgx_types", "sp-application-crypto", @@ -2290,7 +2290,7 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "primitive-types", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-core", "sp-runtime", @@ -2434,7 +2434,7 @@ version = "0.1.0" dependencies = [ "parity-scale-codec", "scale-info", - "serde 1.0.163", + "serde 1.0.164", "sp-core", "sp-io", "sp-runtime", @@ -2484,7 +2484,7 @@ dependencies = [ "its-primitives", "log", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "sgx_tstd", "sp-core", "sp-io", @@ -2559,9 +2559,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.144" +version = "0.2.146" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" +checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b" [[package]] name = "libsecp256k1" @@ -2576,7 +2576,7 @@ dependencies = [ "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", "rand 0.8.5", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -2831,9 +2831,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.2" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "opaque-debug" @@ -2952,7 +2952,7 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#e124aebb2d3d05a9a65f209f8e6304c6790f15d5" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" dependencies = [ "frame-support", "frame-system", @@ -3054,7 +3054,7 @@ dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", "parity-scale-codec-derive", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -3110,7 +3110,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a25c0b0ae06fcffe600ad392aabfa535696c8973f2253d9ac83171924c58a858" dependencies = [ "postcard-cobs", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -3144,7 +3144,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ - "once_cell 1.17.2", + "once_cell 1.18.0", "toml_edit", ] @@ -3197,9 +3197,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.59" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" +checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406" dependencies = [ "unicode-ident", ] @@ -3336,11 +3336,11 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.3" +version = "1.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" +checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f" dependencies = [ - "aho-corasick 1.0.1", + "aho-corasick 1.0.2", "memchr 2.5.0", "regex-syntax 0.7.2", ] @@ -3500,7 +3500,7 @@ dependencies = [ "derive_more", "parity-scale-codec", "scale-info-derive", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -3621,11 +3621,11 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.163" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" +checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d" dependencies = [ - "serde_derive 1.0.163", + "serde_derive 1.0.164", ] [[package]] @@ -3649,9 +3649,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.163" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" +checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68" dependencies = [ "proc-macro2", "quote 1.0.28", @@ -3689,7 +3689,7 @@ checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" dependencies = [ "itoa 1.0.6", "ryu", - "serde 1.0.163", + "serde 1.0.164", ] [[package]] @@ -4426,7 +4426,7 @@ dependencies = [ "Inflector", "proc-macro2", "quote 1.0.28", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "unicode-xid 0.2.4", ] @@ -4450,7 +4450,7 @@ dependencies = [ "hex", "log", "parity-scale-codec", - "serde 1.0.163", + "serde 1.0.164", "serde_json 1.0.96", "sp-core", "sp-runtime", diff --git a/service/Cargo.toml b/service/Cargo.toml index e0bfe0a9a2..98f2f21417 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -60,7 +60,7 @@ its-storage = { path = "../sidechain/storage" } # scs / integritee -my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.42" } +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } From 68f6718e1bece8587fe499ed877b17daee05944f Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 8 Jun 2023 15:49:44 +0200 Subject: [PATCH 13/69] main: AddedEnclave change followup made in pallets/pull/180 --- app-libs/sgx-runtime/src/lib.rs | 3 ++- cli/src/base_cli/commands/listen.rs | 13 +++++++------ service/src/main.rs | 8 ++++++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/app-libs/sgx-runtime/src/lib.rs b/app-libs/sgx-runtime/src/lib.rs index ddd66d67f1..086ed19a3d 100644 --- a/app-libs/sgx-runtime/src/lib.rs +++ b/app-libs/sgx-runtime/src/lib.rs @@ -261,6 +261,7 @@ impl pallet_sudo::Config for Runtime { impl pallet_parentchain::Config for Runtime { type WeightInfo = (); + type RuntimeEvent = RuntimeEvent; } // The plain sgx-runtime without the `evm-pallet` @@ -276,7 +277,7 @@ construct_runtime!( Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event}, Sudo: pallet_sudo::{Pallet, Call, Config, Storage, Event}, - Parentchain: pallet_parentchain::{Pallet, Call, Storage}, + Parentchain: pallet_parentchain::{Pallet, Call, Storage, Event}, } ); diff --git a/cli/src/base_cli/commands/listen.rs b/cli/src/base_cli/commands/listen.rs index f50b640b78..03d43ecf31 100644 --- a/cli/src/base_cli/commands/listen.rs +++ b/cli/src/base_cli/commands/listen.rs @@ -77,14 +77,15 @@ impl ListenCommand { println!(">>>>>>>>>> integritee event: {:?}", ee); count += 1; match &ee { - my_node_runtime::pallet_teerex::Event::AddedEnclave( - accountid, - url, - ) => { + my_node_runtime::pallet_teerex::Event::AddedEnclave{ + registered_by, + worker_url, .. + } + => { println!( "AddedEnclave: {:?} at url {}", - accountid, - String::from_utf8(url.to_vec()) + registered_by, + String::from_utf8(worker_url.to_vec()) .unwrap_or_else(|_| "error".to_string()) ); }, diff --git a/service/src/main.rs b/service/src/main.rs index e92ba144e3..3b52652718 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -597,9 +597,13 @@ fn print_events(events: Vec) { RuntimeEvent::Teerex(re) => { debug!("{:?}", re); match &re { - my_node_runtime::pallet_teerex::Event::AddedEnclave(sender, worker_url) => { + my_node_runtime::pallet_teerex::Event::AddedEnclave { + registered_by, + worker_url, + .. + } => { println!("[+] Received AddedEnclave event"); - println!(" Sender (Worker): {:?}", sender); + println!(" Sender (Worker): {:?}", registered_by); println!(" Registered URL: {:?}", str::from_utf8(worker_url).unwrap()); }, my_node_runtime::pallet_teerex::Event::Forwarded(shard) => { From e7c29c11421bce936b3c2f5748a23a59c681ff83 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 8 Jun 2023 15:53:47 +0200 Subject: [PATCH 14/69] attesteer: fix warnings where DCAP was activated, but not with attesteer --- service/src/prometheus_metrics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/src/prometheus_metrics.rs b/service/src/prometheus_metrics.rs index 1766be5dd2..b20e40805b 100644 --- a/service/src/prometheus_metrics.rs +++ b/service/src/prometheus_metrics.rs @@ -26,10 +26,10 @@ use crate::{ }; use async_trait::async_trait; use codec::{Decode, Encode}; -#[cfg(feature = "dcap")] +#[cfg(feature = "attesteer")] use core::time::Duration; use frame_support::scale_info::TypeInfo; -#[cfg(feature = "dcap")] +#[cfg(feature = "attesteer")] use itc_rest_client::{ http_client::{DefaultSend, HttpClient}, rest_client::{RestClient, Url as URL}, @@ -187,7 +187,7 @@ impl ReceiveEnclaveMetrics for EnclaveMetricsReceiver { #[derive(Serialize, Deserialize, Debug)] struct PrometheusMarblerunEvents(pub Vec); -#[cfg(feature = "dcap")] +#[cfg(feature = "attesteer")] impl RestPath<&str> for PrometheusMarblerunEvents { fn get_path(path: &str) -> Result { Ok(format!("{}", path)) From eea5d22e9064d59a943455e2f33e0891ed6922ad Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Thu, 8 Jun 2023 16:13:50 +0200 Subject: [PATCH 15/69] evm: followup made in pallets/pull/180 --- app-libs/sgx-runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-libs/sgx-runtime/src/lib.rs b/app-libs/sgx-runtime/src/lib.rs index 086ed19a3d..14c69db87b 100644 --- a/app-libs/sgx-runtime/src/lib.rs +++ b/app-libs/sgx-runtime/src/lib.rs @@ -297,7 +297,7 @@ construct_runtime!( Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event}, Sudo: pallet_sudo::{Pallet, Call, Config, Storage, Event}, - Parentchain: pallet_parentchain::{Pallet, Call, Storage}, + Parentchain: pallet_parentchain::{Pallet, Call, Storage, Event}, Evm: pallet_evm::{Pallet, Call, Storage, Config, Event}, } From bf1aee8695a20befc94a3e80735e42d52106991e Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Mon, 12 Jun 2023 17:35:10 +0200 Subject: [PATCH 16/69] add debug! logs --- sidechain/state/src/impls.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sidechain/state/src/impls.rs b/sidechain/state/src/impls.rs index ea17b75a3d..99825f5642 100644 --- a/sidechain/state/src/impls.rs +++ b/sidechain/state/src/impls.rs @@ -17,15 +17,17 @@ //! Implement the sidechain state traits. +use core::fmt::Debug; + use crate::{Error, SidechainState, StateUpdate}; use codec::{Decode, Encode}; use frame_support::ensure; use itp_sgx_externalities::{SgxExternalitiesTrait, StateHash}; use itp_storage::keys::storage_value_key; -use log::{error, info}; +use log::{debug, error, info}; use sp_io::{storage, KillStorageResult}; -impl SidechainState for T +impl SidechainState for T where ::SgxExternalitiesType: Encode, { @@ -34,6 +36,10 @@ where fn apply_state_update(&mut self, state_payload: &Self::StateUpdate) -> Result<(), Error> { info!("Current state size: {}", self.state().encoded_size()); + debug!("Current hash: {}", self.hash()); + debug!("State_payload hash: {}", state_payload.state_hash_apriori()); + debug!("self is: {:#?}", &self); + debug!("state_payload is: {:#?}", &state_payload); ensure!(self.hash() == state_payload.state_hash_apriori(), Error::InvalidAprioriHash); self.execute_with(|| { From 47c2a9114b1733be40d5810b3a0996fc1cab103b Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Tue, 13 Jun 2023 09:55:45 +0200 Subject: [PATCH 17/69] remove commented out code --- cli/src/base_cli/mod.rs | 1 - cli/src/benchmark/mod.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 23e9c74951..4dde49e307 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -92,7 +92,6 @@ impl BaseCommand { fn new_account() -> CliResult { let store = LocalKeystore::open(PathBuf::from(&KEYSTORE_PATH), None).unwrap(); let key = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); - //let key: sr25519::AppPair = store.generate().unwrap(); let key_base58 = key.to_ss58check(); drop(store); println!("{}", key_base58); diff --git a/cli/src/benchmark/mod.rs b/cli/src/benchmark/mod.rs index 36b74e6ff2..f1bcba8154 100644 --- a/cli/src/benchmark/mod.rs +++ b/cli/src/benchmark/mod.rs @@ -142,7 +142,6 @@ impl BenchmarkCommand { println!("Initializing account {}", i); // Create new account to use. - //let a: sr25519::AppPair = store.generate().unwrap(); let a = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); let account = get_pair_from_str(trusted_args, a.to_string().as_str()); let initial_balance = 10000000; From 5a397aeb980e3d9e261f5932076e450587ee1b3f Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Tue, 13 Jun 2023 10:01:00 +0200 Subject: [PATCH 18/69] remove empty features --- core-primitives/extrinsics-factory/Cargo.toml | 2 +- core-primitives/node-api/api-client-types/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core-primitives/extrinsics-factory/Cargo.toml b/core-primitives/extrinsics-factory/Cargo.toml index 17ae3002d6..e36a6f6f40 100644 --- a/core-primitives/extrinsics-factory/Cargo.toml +++ b/core-primitives/extrinsics-factory/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" # sgx dependencies sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true } sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" } -substrate-api-client = { default-features = false, features = [], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } +substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } # local dependencies itp-node-api = { path = "../node-api", default-features = false } diff --git a/core-primitives/node-api/api-client-types/Cargo.toml b/core-primitives/node-api/api-client-types/Cargo.toml index 76999c7c0a..d8f8452d5f 100644 --- a/core-primitives/node-api/api-client-types/Cargo.toml +++ b/core-primitives/node-api/api-client-types/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } # scs -substrate-api-client = { default-features = false, features = [], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } +substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } # substrate sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } From bf0df4d7d3b388829986299db6350c49f9429a8b Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Tue, 13 Jun 2023 10:10:31 +0200 Subject: [PATCH 19/69] ita-sgx-runtime: fixup for freezing implementation in fungible trait --- app-libs/sgx-runtime/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-libs/sgx-runtime/src/lib.rs b/app-libs/sgx-runtime/src/lib.rs index 14c69db87b..7e96a13c0d 100644 --- a/app-libs/sgx-runtime/src/lib.rs +++ b/app-libs/sgx-runtime/src/lib.rs @@ -236,8 +236,8 @@ impl pallet_balances::Config for Runtime { type WeightInfo = (); type HoldIdentifier = (); type FreezeIdentifier = (); - type MaxHolds = (); - type MaxFreezes = (); + type MaxHolds = ConstU32<0>; + type MaxFreezes = ConstU32<0>; } parameter_types! { From a8f406d98064e0e71dc3c0c3990308e50b78dc43 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Tue, 13 Jun 2023 10:30:23 +0200 Subject: [PATCH 20/69] fixup! ita-sgx-runtime: fixup for freezing implementation in fungible trait --- app-libs/sgx-runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-libs/sgx-runtime/src/lib.rs b/app-libs/sgx-runtime/src/lib.rs index 7e96a13c0d..124ee255da 100644 --- a/app-libs/sgx-runtime/src/lib.rs +++ b/app-libs/sgx-runtime/src/lib.rs @@ -39,7 +39,7 @@ pub use evm::{ }; use core::convert::{TryFrom, TryInto}; -use frame_support::weights::ConstantMultiplier; +use frame_support::{traits::ConstU32, weights::ConstantMultiplier}; use pallet_transaction_payment::CurrencyAdapter; use sp_api::impl_runtime_apis; use sp_core::OpaqueMetadata; From 8fc770d5cc3f1f9bbd9f10b5a460435288af98bb Mon Sep 17 00:00:00 2001 From: clangenb <37865735+clangenb@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:54:05 +0200 Subject: [PATCH 21/69] minor fixes and more logging (#1367) * [local-setup] fix setup with two workers: avoid using the same data dirs. (#1358) * [ita_stf/test_genesis] remove reserved balance from state, as it doesn't exist anymore * [enclave-runtime/top_pool_execution] downgrade logs to trace * [state_handler] add debug and trace logs * add additional flags for the worker setup * [its-consensus-aura/block_importer] add some more logs * local setup add some more logging --- app-libs/stf/src/test_genesis.rs | 21 +++++++------------ .../stf-state-handler/src/state_handler.rs | 8 ++++++- enclave-runtime/src/top_pool_execution.rs | 4 ++-- local-setup/config/two-workers.json | 2 +- local-setup/py/worker.py | 4 ++++ .../consensus/aura/src/block_importer.rs | 13 ++++++++++++ 6 files changed, 35 insertions(+), 17 deletions(-) diff --git a/app-libs/stf/src/test_genesis.rs b/app-libs/stf/src/test_genesis.rs index faea0a3eb6..b96af31dc3 100644 --- a/app-libs/stf/src/test_genesis.rs +++ b/app-libs/stf/src/test_genesis.rs @@ -63,14 +63,10 @@ pub fn test_genesis_setup(state: &mut impl SgxExternalitiesTrait) { set_sudo_account(state, &ALICE_ENCODED); trace!("Set new sudo account: {:?}", &ALICE_ENCODED); - let mut endowees: Vec<(AccountId32, Balance, Balance)> = vec![ - (endowed_account().public().into(), ENDOWED_ACC_FUNDS, ENDOWED_ACC_FUNDS), - ( - second_endowed_account().public().into(), - SECOND_ENDOWED_ACC_FUNDS, - SECOND_ENDOWED_ACC_FUNDS, - ), - (ALICE_ENCODED.into(), ALICE_FUNDS, ALICE_FUNDS), + let mut endowees: Vec<(AccountId32, Balance)> = vec![ + (endowed_account().public().into(), ENDOWED_ACC_FUNDS), + (second_endowed_account().public().into(), SECOND_ENDOWED_ACC_FUNDS), + (ALICE_ENCODED.into(), ALICE_FUNDS), ]; append_funded_alice_evm_account(&mut endowees); @@ -79,16 +75,15 @@ pub fn test_genesis_setup(state: &mut impl SgxExternalitiesTrait) { } #[cfg(feature = "evm")] -fn append_funded_alice_evm_account(endowees: &mut Vec<(AccountId32, Balance, Balance)>) { +fn append_funded_alice_evm_account(endowees: &mut Vec<(AccountId32, Balance)>) { let alice_evm = get_evm_account(&ALICE_ENCODED.into()); let alice_evm_substrate_version = HashedAddressMapping::into_account_id(alice_evm); - let mut other: Vec<(AccountId32, Balance, Balance)> = - vec![(alice_evm_substrate_version, ALICE_FUNDS, ALICE_FUNDS)]; + let mut other: Vec<(AccountId32, Balance)> = vec![(alice_evm_substrate_version, ALICE_FUNDS)]; endowees.append(other.as_mut()); } #[cfg(not(feature = "evm"))] -fn append_funded_alice_evm_account(_: &mut Vec<(AccountId32, Balance, Balance)>) {} +fn append_funded_alice_evm_account(_: &mut Vec<(AccountId32, Balance)>) {} fn set_sudo_account(state: &mut impl SgxExternalitiesTrait, account_encoded: &[u8]) { state.execute_with(|| { @@ -98,7 +93,7 @@ fn set_sudo_account(state: &mut impl SgxExternalitiesTrait, account_encoded: &[u pub fn endow( state: &mut impl SgxExternalitiesTrait, - endowees: impl IntoIterator, + endowees: impl IntoIterator, ) { state.execute_with(|| { for e in endowees.into_iter() { diff --git a/core-primitives/stf-state-handler/src/state_handler.rs b/core-primitives/stf-state-handler/src/state_handler.rs index 39540a5e56..0b843d77ba 100644 --- a/core-primitives/stf-state-handler/src/state_handler.rs +++ b/core-primitives/stf-state-handler/src/state_handler.rs @@ -28,10 +28,12 @@ use crate::{ state_initializer::InitializeState, state_snapshot_repository::VersionedStateAccess, }; +use core::fmt::Debug; use itp_hashing::Hash; use itp_sgx_externalities::SgxExternalitiesTrait; use itp_stf_state_observer::traits::UpdateState; use itp_types::ShardIdentifier; +use log::{debug, trace}; use std::{collections::HashMap, sync::Arc, vec::Vec}; type StatesMap = HashMap; @@ -146,7 +148,7 @@ impl HandleState for StateHandler where Repository: VersionedStateAccess, - Repository::StateType: SgxExternalitiesTrait + Hash, + Repository::StateType: SgxExternalitiesTrait + Hash + Debug, Repository::HashType: Copy, StateObserver: UpdateState, StateInitializer: InitializeState, @@ -204,6 +206,8 @@ where mut state_lock: RwLockWriteGuard<'_, Self::WriteLockPayload>, shard: &ShardIdentifier, ) -> Result { + debug!("Writing state"); + trace!("State: {:?}", state); state.prune_state_diff(); // Remove state diff before storing. let state_hash = state.hash(); // We create a state copy here, in order to serve the state observer. This does not scale @@ -218,6 +222,8 @@ where } fn reset(&self, state: Self::StateT, shard: &ShardIdentifier) -> Result { + debug!("Resetting state"); + trace!("Resetting state: {:?}", state); let state_write_lock = self.states_map_lock.write().map_err(|_| Error::LockPoisoning)?; self.write_after_mutation(state, state_write_lock, shard) } diff --git a/enclave-runtime/src/top_pool_execution.rs b/enclave-runtime/src/top_pool_execution.rs index e17428a845..cff5971ae7 100644 --- a/enclave-runtime/src/top_pool_execution.rs +++ b/enclave-runtime/src/top_pool_execution.rs @@ -112,7 +112,7 @@ fn execute_top_pool_trusted_calls_internal() -> Result<()> { let latest_parentchain_header = sidechain_block_import_queue_worker.process_queue(¤t_parentchain_header)?; - info!( + trace!( "Elapsed time to process sidechain block import queue: {} ms", start_time.elapsed().as_millis() ); @@ -283,7 +283,7 @@ fn log_remaining_slot_duration>( info!("No time remaining in slot (id: {:?}, stage: {})", slot_info.slot, stage_name); }, Some(remainder) => { - info!( + trace!( "Remaining time in slot (id: {:?}, stage {}): {} ms, {}% of slot time", slot_info.slot, stage_name, diff --git a/local-setup/config/two-workers.json b/local-setup/config/two-workers.json index 51acefce9b..6d5e2316da 100644 --- a/local-setup/config/two-workers.json +++ b/local-setup/config/two-workers.json @@ -55,7 +55,7 @@ "4546", "--ws-external", "--data-dir", - "/tmp/data-dir" + "/tmp/data-dir2" ], "subcommand_flags": [ "--skip-ra", diff --git a/local-setup/py/worker.py b/local-setup/py/worker.py index a63367cdf5..3c9697b1f3 100644 --- a/local-setup/py/worker.py +++ b/local-setup/py/worker.py @@ -159,6 +159,10 @@ def run_in_background(self, log_file: TextIO, flags: [str] = None, subcommand_fl 'jsonrpsee_ws_server=warn,' 'enclave_runtime=info,' 'integritee_service=warn,' + 'itp_stf_state_handler=debug,' + 'its_consensus_common=debug,' + 'its_consensus_aura=trace,' + 'itc_parentchain_block_importer=debug,' 'ita_stf=debug') return Popen( diff --git a/sidechain/consensus/aura/src/block_importer.rs b/sidechain/consensus/aura/src/block_importer.rs index 4d28ac02e7..15d7217fb5 100644 --- a/sidechain/consensus/aura/src/block_importer.rs +++ b/sidechain/consensus/aura/src/block_importer.rs @@ -276,6 +276,19 @@ impl< sidechain_block: &SignedSidechainBlock::Block, last_imported_parentchain_header: &ParentchainBlock::Header, ) -> Result { + let last = last_imported_parentchain_header; + debug!("Peeking parentchain header"); + debug!( + "sidechain block parentchain head: {}", + sidechain_block.block_data().layer_one_head() + ); + debug!( + "last imported head: {}, number: {:?}, parenthash: {}", + last.hash(), + last.number(), + last.parent_hash() + ); + let parentchain_header_hash_to_peek = sidechain_block.block_data().layer_one_head(); if parentchain_header_hash_to_peek == last_imported_parentchain_header.hash() { debug!("No queue peek necessary, sidechain block references latest imported parentchain block"); From ecfe65f21fb564fc9970d6fdc2bf00e9ba03648e Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Wed, 28 Jun 2023 11:18:44 +0200 Subject: [PATCH 22/69] cli: fix keystore KeyTypeId inconsistency --- cli/src/base_cli/mod.rs | 10 +++++----- cli/src/benchmark/mod.rs | 8 ++++---- cli/src/lib.rs | 4 ++++ cli/src/trusted_base_cli/mod.rs | 10 +++++----- cli/src/trusted_command_utils.rs | 12 +++++------- 5 files changed, 23 insertions(+), 21 deletions(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 4dde49e307..117d1e317f 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -21,14 +21,14 @@ use crate::{ shield_funds::ShieldFundsCommand, transfer::TransferCommand, }, command_utils::*, - Cli, CliResult, CliResultOk, + Cli, CliResult, CliResultOk, ED25519_KEY_TYPE, SR25519_KEY_TYPE, }; use base58::ToBase58; use chrono::{DateTime, Utc}; use clap::Subcommand; use itc_rpc_client::direct_client::DirectApi; use itp_node_api::api_client::PalletTeerexApi; -use sp_core::crypto::{key_types::ACCOUNT, Ss58Codec}; +use sp_core::crypto::Ss58Codec; use sp_keystore::Keystore; use std::{ path::PathBuf, @@ -91,7 +91,7 @@ impl BaseCommand { fn new_account() -> CliResult { let store = LocalKeystore::open(PathBuf::from(&KEYSTORE_PATH), None).unwrap(); - let key = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); + let key = LocalKeystore::sr25519_generate_new(&store, SR25519_KEY_TYPE, None).unwrap(); let key_base58 = key.to_ss58check(); drop(store); println!("{}", key_base58); @@ -105,14 +105,14 @@ fn list_accounts() -> CliResult { let store = LocalKeystore::open(PathBuf::from(&KEYSTORE_PATH), None).unwrap(); println!("sr25519 keys:"); let mut keys_sr25519 = vec![]; - for pubkey in store.sr25519_public_keys(ACCOUNT).into_iter() { + for pubkey in store.sr25519_public_keys(SR25519_KEY_TYPE).into_iter() { let key_ss58 = pubkey.to_ss58check(); println!("{}", key_ss58); keys_sr25519.push(key_ss58); } println!("ed25519 keys:"); let mut keys_ed25519 = vec![]; - for pubkey in store.ed25519_public_keys(ACCOUNT).into_iter() { + for pubkey in store.ed25519_public_keys(ED25519_KEY_TYPE).into_iter() { let key_ss58 = pubkey.to_ss58check(); println!("{}", key_ss58); keys_ed25519.push(key_ss58); diff --git a/cli/src/benchmark/mod.rs b/cli/src/benchmark/mod.rs index f1bcba8154..f67eaae984 100644 --- a/cli/src/benchmark/mod.rs +++ b/cli/src/benchmark/mod.rs @@ -23,7 +23,7 @@ use crate::{ decode_balance, get_identifiers, get_keystore_path, get_pair_from_str, }, trusted_operation::{get_json_request, get_state, perform_trusted_operation, wait_until}, - Cli, CliResult, CliResultOk, + Cli, CliResult, CliResultOk, SR25519_KEY_TYPE, }; use codec::Decode; use hdrhistogram::Histogram; @@ -39,7 +39,7 @@ use rand::Rng; use rayon::prelude::*; use sgx_crypto_helper::rsa3072::Rsa3072PubKey; use sp_application_crypto::sr25519; -use sp_core::{crypto::key_types::ACCOUNT, sr25519 as sr25519_core, Pair}; +use sp_core::{sr25519 as sr25519_core, Pair}; use sp_keystore::Keystore; use std::{ boxed::Box, @@ -142,7 +142,7 @@ impl BenchmarkCommand { println!("Initializing account {}", i); // Create new account to use. - let a = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); + let a = LocalKeystore::sr25519_generate_new(&store, SR25519_KEY_TYPE, None).unwrap(); let account = get_pair_from_str(trusted_args, a.to_string().as_str()); let initial_balance = 10000000; @@ -191,7 +191,7 @@ impl BenchmarkCommand { } // Create new account. - let account_keys = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); + let account_keys = LocalKeystore::sr25519_generate_new(&store, SR25519_KEY_TYPE, None).unwrap(); let new_account = get_pair_from_str(trusted_args, account_keys.to_string().as_str()); diff --git a/cli/src/lib.rs b/cli/src/lib.rs index dd7d783d64..7f51946c13 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -45,12 +45,16 @@ pub mod commands; use crate::commands::Commands; use clap::Parser; +use sp_application_crypto::KeyTypeId; use sp_core::{H160, H256}; use substrate_api_client::Metadata; use thiserror::Error; const VERSION: &str = env!("CARGO_PKG_VERSION"); +pub(crate) const SR25519_KEY_TYPE: KeyTypeId = KeyTypeId(*b"sr25"); +pub(crate) const ED25519_KEY_TYPE: KeyTypeId = KeyTypeId(*b"ed25"); + #[derive(Parser)] #[clap(name = "integritee-cli")] #[clap(version = VERSION)] diff --git a/cli/src/trusted_base_cli/mod.rs b/cli/src/trusted_base_cli/mod.rs index 5bad946fd2..313c859d00 100644 --- a/cli/src/trusted_base_cli/mod.rs +++ b/cli/src/trusted_base_cli/mod.rs @@ -22,10 +22,10 @@ use crate::{ }, trusted_cli::TrustedCli, trusted_command_utils::get_keystore_path, - Cli, CliResult, CliResultOk, + Cli, CliResult, CliResultOk, ED25519_KEY_TYPE, SR25519_KEY_TYPE, }; use log::*; -use sp_core::crypto::{key_types::ACCOUNT, Ss58Codec}; +use sp_core::crypto::Ss58Codec; use sp_keystore::Keystore; use substrate_client_keystore::LocalKeystore; @@ -72,7 +72,7 @@ impl TrustedBaseCommand { fn new_account(trusted_args: &TrustedCli) -> CliResult { let store = LocalKeystore::open(get_keystore_path(trusted_args), None).unwrap(); - let key = LocalKeystore::sr25519_generate_new(&store, ACCOUNT, None).unwrap(); + let key = LocalKeystore::sr25519_generate_new(&store, SR25519_KEY_TYPE, None).unwrap(); drop(store); info!("new account {}", key.to_ss58check()); let key_str = key.to_ss58check(); @@ -84,12 +84,12 @@ fn new_account(trusted_args: &TrustedCli) -> CliResult { fn list_accounts(trusted_args: &TrustedCli) -> CliResult { let store = LocalKeystore::open(get_keystore_path(trusted_args), None).unwrap(); info!("sr25519 keys:"); - for pubkey in store.sr25519_public_keys(ACCOUNT).into_iter() { + for pubkey in store.sr25519_public_keys(SR25519_KEY_TYPE).into_iter() { println!("{}", pubkey.to_ss58check()); } info!("ed25519 keys:"); let pubkeys: Vec = store - .ed25519_public_keys(ACCOUNT) + .ed25519_public_keys(ED25519_KEY_TYPE) .into_iter() .map(|pubkey| pubkey.to_ss58check()) .collect(); diff --git a/cli/src/trusted_command_utils.rs b/cli/src/trusted_command_utils.rs index 24a074e1df..c9b6bddd83 100644 --- a/cli/src/trusted_command_utils.rs +++ b/cli/src/trusted_command_utils.rs @@ -19,7 +19,7 @@ use crate::{ command_utils::{get_worker_api_direct, mrenclave_from_base58}, trusted_cli::TrustedCli, trusted_operation::{perform_trusted_operation, read_shard}, - Cli, + Cli, SR25519_KEY_TYPE, }; use base58::{FromBase58, ToBase58}; use codec::{Decode, Encode}; @@ -33,6 +33,7 @@ use log::*; use my_node_runtime::Balance; use sp_application_crypto::sr25519; use sp_core::{crypto::Ss58Codec, sr25519 as sr25519_core, Pair}; +use sp_keystore::Keystore; use sp_runtime::traits::IdentifyAccount; use std::{boxed::Box, path::PathBuf}; use substrate_client_keystore::LocalKeystore; @@ -122,12 +123,9 @@ pub(crate) fn get_pair_from_str(trusted_args: &TrustedCli, account: &str) -> sr2 let store = LocalKeystore::open(get_keystore_path(trusted_args), None) .expect("store should exist"); info!("store opened"); - let _pair = store - .key_pair::( - &sr25519::Public::from_ss58check(account).unwrap().into(), - ) - .unwrap() - .unwrap(); + let public_key = &sr25519::AppPublic::from_ss58check(account).unwrap(); + info!("public_key: {:#?}", &public_key); + let _pair = store.key_pair::(public_key).unwrap().unwrap(); info!("key pair fetched"); drop(store); _pair.into() From 3f8df59d2c96ec4360155ef016f8a638b95a2b06 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Fri, 30 Jun 2023 08:56:09 +0200 Subject: [PATCH 23/69] fix clippy --- cli/src/trusted_command_utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/src/trusted_command_utils.rs b/cli/src/trusted_command_utils.rs index c9b6bddd83..f3573c236e 100644 --- a/cli/src/trusted_command_utils.rs +++ b/cli/src/trusted_command_utils.rs @@ -19,7 +19,7 @@ use crate::{ command_utils::{get_worker_api_direct, mrenclave_from_base58}, trusted_cli::TrustedCli, trusted_operation::{perform_trusted_operation, read_shard}, - Cli, SR25519_KEY_TYPE, + Cli, }; use base58::{FromBase58, ToBase58}; use codec::{Decode, Encode}; @@ -33,7 +33,6 @@ use log::*; use my_node_runtime::Balance; use sp_application_crypto::sr25519; use sp_core::{crypto::Ss58Codec, sr25519 as sr25519_core, Pair}; -use sp_keystore::Keystore; use sp_runtime::traits::IdentifyAccount; use std::{boxed::Box, path::PathBuf}; use substrate_client_keystore::LocalKeystore; From 94df4f1854c4e458de78603792b81e6a43b69d56 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 13 Jul 2023 11:17:53 +0200 Subject: [PATCH 24/69] fix wrong crate doc repository links --- core-primitives/types/Cargo.toml | 2 +- core-primitives/utils/Cargo.toml | 2 +- core/parentchain/test/Cargo.toml | 2 +- sidechain/block-verification/Cargo.toml | 2 +- sidechain/primitives/Cargo.toml | 2 +- sidechain/test/Cargo.toml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core-primitives/types/Cargo.toml b/core-primitives/types/Cargo.toml index 701fe14c93..32eb599ffb 100644 --- a/core-primitives/types/Cargo.toml +++ b/core-primitives/types/Cargo.toml @@ -3,7 +3,7 @@ name = "itp-types" version = "0.9.0" authors = ["Integritee AG "] homepage = "https://integritee.network/" -repository = "https://github.com/integritee-network/pallets/" +repository = "https://github.com/integritee-network/worker/" license = "Apache-2.0" edition = "2021" diff --git a/core-primitives/utils/Cargo.toml b/core-primitives/utils/Cargo.toml index f2736695af..bc634cfadb 100644 --- a/core-primitives/utils/Cargo.toml +++ b/core-primitives/utils/Cargo.toml @@ -3,7 +3,7 @@ name = "itp-utils" version = "0.9.0" authors = ["Integritee AG "] homepage = "https://integritee.network/" -repository = "https://github.com/integritee-network/pallets/" +repository = "https://github.com/integritee-network/worker/" license = "Apache-2.0" edition = "2021" diff --git a/core/parentchain/test/Cargo.toml b/core/parentchain/test/Cargo.toml index 54d9b690a0..a54025ea30 100644 --- a/core/parentchain/test/Cargo.toml +++ b/core/parentchain/test/Cargo.toml @@ -3,7 +3,7 @@ name = "itc-parentchain-test" version = "0.9.0" authors = ["Integritee AG "] homepage = "https://integritee.network/" -repository = "https://github.com/integritee-network/pallets/" +repository = "https://github.com/integritee-network/worker/" license = "Apache-2.0" edition = "2021" diff --git a/sidechain/block-verification/Cargo.toml b/sidechain/block-verification/Cargo.toml index 20728928d7..376d1267fd 100644 --- a/sidechain/block-verification/Cargo.toml +++ b/sidechain/block-verification/Cargo.toml @@ -4,7 +4,7 @@ description = "Verification logic for sidechain blocks" version = "0.9.0" authors = ["Integritee AG "] homepage = "https://integritee.network/" -repository = "https://github.com/integritee-network/pallets/" +repository = "https://github.com/integritee-network/worker/" license = "Apache-2.0" edition = "2021" diff --git a/sidechain/primitives/Cargo.toml b/sidechain/primitives/Cargo.toml index e93e3d9719..795ff2329a 100644 --- a/sidechain/primitives/Cargo.toml +++ b/sidechain/primitives/Cargo.toml @@ -3,7 +3,7 @@ name = "its-primitives" version = "0.1.0" authors = ["Integritee AG "] homepage = "https://integritee.network/" -repository = "https://github.com/integritee-network/pallets/" +repository = "https://github.com/integritee-network/worker/" license = "Apache-2.0" edition = "2021" diff --git a/sidechain/test/Cargo.toml b/sidechain/test/Cargo.toml index f6f8fbfc72..002349141f 100644 --- a/sidechain/test/Cargo.toml +++ b/sidechain/test/Cargo.toml @@ -3,7 +3,7 @@ name = "its-test" version = "0.9.0" authors = ["Integritee AG "] homepage = "https://integritee.network/" -repository = "https://github.com/integritee-network/pallets/" +repository = "https://github.com/integritee-network/worker/" license = "Apache-2.0" edition = "2021" From bf9d570b19bc40e32a789cad2ead2d0a1effaf2a Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 13 Jul 2023 11:26:29 +0200 Subject: [PATCH 25/69] temporary bend to new pallet branch --- app-libs/sgx-runtime/Cargo.toml | 2 +- app-libs/stf/Cargo.toml | 2 +- cli/Cargo.toml | 4 ++-- core-primitives/enclave-api/Cargo.toml | 2 +- service/Cargo.toml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app-libs/sgx-runtime/Cargo.toml b/app-libs/sgx-runtime/Cargo.toml index e55df95e23..fb0f7b97e7 100644 --- a/app-libs/sgx-runtime/Cargo.toml +++ b/app-libs/sgx-runtime/Cargo.toml @@ -46,7 +46,7 @@ sp-version = { default-features = false, git = "https://github.com/paritytech/su # Integritee dependencies pallet-evm = { default-features = false, optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } -pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } [features] default = ["std"] diff --git a/app-libs/stf/Cargo.toml b/app-libs/stf/Cargo.toml index 865edd49c2..f4d6dd6cad 100644 --- a/app-libs/stf/Cargo.toml +++ b/app-libs/stf/Cargo.toml @@ -40,7 +40,7 @@ sp-runtime = { default-features = false, git = "https://github.com/paritytech/su # scs / integritee my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } -pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } [dev-dependencies] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index d76992a480..2ad6d44f87 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -27,11 +27,11 @@ ws = { version = "0.9.1", features = ["ssl"] } # scs / integritee my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } -pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # `default-features = false` to remove the jsonrpsee dependency. substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # substrate dependencies frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/core-primitives/enclave-api/Cargo.toml b/core-primitives/enclave-api/Cargo.toml index 00500004dd..10ab67c4e1 100644 --- a/core-primitives/enclave-api/Cargo.toml +++ b/core-primitives/enclave-api/Cargo.toml @@ -20,7 +20,7 @@ sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", br sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } itc-parentchain = { path = "../../core/parentchain/parentchain-crate" } itp-enclave-api-ffi = { path = "ffi" } diff --git a/service/Cargo.toml b/service/Cargo.toml index 98f2f21417..c6ef317aa1 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -61,10 +61,10 @@ its-storage = { path = "../sidechain/storage" } # scs / integritee my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } -sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # `default-features = false` to remove the jsonrpsee dependency. substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # Substrate dependencies frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } From f8dc0a4288e35edd05221c92b360ab06a7fb18f5 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 13 Jul 2023 14:31:28 +0200 Subject: [PATCH 26/69] patch to GH branches --- Cargo.toml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b0c1ac722a..48f17a8e2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,21 +87,26 @@ sgx_urts = { version = "1.1.6", git = "https://github.com/apache/incubator-teacl #sp-io = { path = "../sgx-runtime/substrate-sgx/sp-io"} #sgx-externalities = { path = "../sgx-runtime/substrate-sgx/externalities"} -#[patch."https://github.com/integritee-network/integritee-node"] -#my-node-runtime = { package = "integritee-node-runtime", path = "../integritee-node/runtime"} +[patch."https://github.com/integritee-network/integritee-node"] +my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network//integritee-node", branch = "ab/integrate-pallet-teerex-refactoring" } #[patch."https://github.com/scs/substrate-api-client"] #substrate-api-client = { path = "../../scs/substrate-api-client" } #substrate-client-keystore = { path = "../../scs/substrate-api-client/client-keystore" } -#[patch."https://github.com/integritee-network/pallets.git"] -#pallet-claims = { path = "../pallets/claims" } -#pallet-teerex = { path = "../pallets/teerex" } -#pallet-teeracle = { path = "../pallets/teeracle" } -#teerex-primitives = {path = "../pallets/primitives/teerex"} -#pallet-parentchain = { path = "../pallets/parentchain" } -#itp-types = { path = "../pallets/primitives/types"} -#itp-utils = { path = "../pallets/primitives/utils"} +[patch."https://github.com/integritee-network/pallets.git"] +pallet-claims = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +pallet-enclave-bridge = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +pallet-teerex = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +pallet-sidechain = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +sgx-verify = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +pallet-teeracle = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +test-utils = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +claims-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +enclave-bridge-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +teerex-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +teeracle-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +common-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } #[patch."https://github.com/integritee-network/http_req"] #http_req = {path = '..//http_req' } From f4873225282663bcea2726270f4f29f02225c15c Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 13 Jul 2023 15:45:21 +0200 Subject: [PATCH 27/69] build works --- Cargo.lock | 82 +++++++++++++++++++++++------ cli/Cargo.toml | 3 +- cli/src/base_cli/commands/listen.rs | 39 +++++++++----- cli/src/trusted_operation.rs | 8 +-- enclave-runtime/Cargo.lock | 2 +- service/Cargo.toml | 2 +- service/src/main.rs | 28 ++++++---- 7 files changed, 120 insertions(+), 44 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index df7c526375..72ddfd5223 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -726,7 +726,7 @@ dependencies = [ [[package]] name = "claims-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "parity-scale-codec", "rustc-hex", @@ -831,8 +831,13 @@ dependencies = [ [[package]] name = "common-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ + "derive_more", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", "sp-std", ] @@ -1323,6 +1328,21 @@ dependencies = [ "zeroize", ] +[[package]] +name = "enclave-bridge-primitives" +version = "0.1.0" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +dependencies = [ + "common-primitives", + "parity-scale-codec", + "scale-info", + "serde 1.0.164", + "sp-core", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", + "sp-runtime", + "sp-std", +] + [[package]] name = "encoding_rs" version = "0.8.32" @@ -2732,6 +2752,7 @@ dependencies = [ "blake2-rfc", "chrono 0.4.26", "clap 3.2.25", + "enclave-bridge-primitives", "env_logger 0.9.3", "frame-system", "hdrhistogram", @@ -2748,6 +2769,7 @@ dependencies = [ "itp-utils", "log 0.4.19", "pallet-balances", + "pallet-enclave-bridge", "pallet-evm", "pallet-teerex", "parity-scale-codec", @@ -2765,7 +2787,6 @@ dependencies = [ "sp-runtime", "substrate-api-client", "substrate-client-keystore", - "teerex-primitives", "thiserror 1.0.40", "ws", ] @@ -2773,7 +2794,7 @@ dependencies = [ [[package]] name = "integritee-node-runtime" version = "1.0.33" -source = "git+https://github.com/integritee-network/integritee-node.git?branch=polkadot-v0.9.42#2c13d1fd5708825b7832b6b1bc33448ca3111514" +source = "git+https://github.com/integritee-network//integritee-node?branch=ab/integrate-pallet-teerex-refactoring#c4fc90152f6c8505efd248c93d51de9d77bd7aec" dependencies = [ "frame-executive", "frame-support", @@ -2782,6 +2803,7 @@ dependencies = [ "pallet-aura", "pallet-balances", "pallet-claims", + "pallet-enclave-bridge", "pallet-grandpa", "pallet-insecure-randomness-collective-flip", "pallet-multisig", @@ -2824,6 +2846,7 @@ dependencies = [ "base58", "clap 2.34.0", "dirs", + "enclave-bridge-primitives", "env_logger 0.9.3", "frame-support", "frame-system", @@ -2874,7 +2897,6 @@ dependencies = [ "sp-keyring", "sp-runtime", "substrate-api-client", - "teerex-primitives", "thiserror 1.0.40", "tokio", "warp", @@ -5344,7 +5366,7 @@ dependencies = [ [[package]] name = "pallet-claims" version = "0.9.12" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "claims-primitives", "frame-support", @@ -5411,6 +5433,27 @@ dependencies = [ "syn 2.0.18", ] +[[package]] +name = "pallet-enclave-bridge" +version = "0.9.0" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +dependencies = [ + "enclave-bridge-primitives", + "frame-support", + "frame-system", + "log 0.4.19", + "pallet-teerex", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "serde 1.0.164", + "sp-core", + "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", + "sp-runtime", + "sp-std", + "teerex-primitives", +] + [[package]] name = "pallet-evm" version = "6.0.0-dev" @@ -5491,7 +5534,7 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network/pallets.git?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "frame-support", "frame-system", @@ -5576,11 +5619,13 @@ dependencies = [ [[package]] name = "pallet-sidechain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ + "enclave-bridge-primitives", "frame-support", "frame-system", "log 0.4.19", + "pallet-enclave-bridge", "pallet-teerex", "pallet-timestamp", "parity-scale-codec", @@ -5633,7 +5678,7 @@ dependencies = [ [[package]] name = "pallet-teeracle" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "frame-support", "frame-system", @@ -5647,12 +5692,13 @@ dependencies = [ "sp-std", "substrate-fixed", "teeracle-primitives", + "teerex-primitives", ] [[package]] name = "pallet-teerex" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "frame-support", "frame-system", @@ -7137,7 +7183,7 @@ dependencies = [ [[package]] name = "sgx-verify" version = "0.1.4" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "base64 0.13.1", "chrono 0.4.26", @@ -7423,7 +7469,7 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "sidechain-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "parity-scale-codec", "scale-info", @@ -8358,7 +8404,7 @@ checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" [[package]] name = "teeracle-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "common-primitives", "sp-std", @@ -8368,14 +8414,15 @@ dependencies = [ [[package]] name = "teerex-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "common-primitives", + "derive_more", "parity-scale-codec", "scale-info", "serde 1.0.164", "sp-core", - "sp-io 7.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42)", + "sp-runtime", "sp-std", ] @@ -9902,3 +9949,8 @@ dependencies = [ "libc", "pkg-config", ] + +[[patch.unused]] +name = "test-utils" +version = "0.1.0" +source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 2ad6d44f87..247a662eaf 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -28,10 +28,11 @@ ws = { version = "0.9.1", features = ["ssl"] } my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +pallet-enclave-bridge = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # `default-features = false` to remove the jsonrpsee dependency. substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # substrate dependencies frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/cli/src/base_cli/commands/listen.rs b/cli/src/base_cli/commands/listen.rs index 03d43ecf31..dcd5b5b212 100644 --- a/cli/src/base_cli/commands/listen.rs +++ b/cli/src/base_cli/commands/listen.rs @@ -74,10 +74,10 @@ impl ListenCommand { } }, RuntimeEvent::Teerex(ee) => { - println!(">>>>>>>>>> integritee event: {:?}", ee); + println!(">>>>>>>>>> integritee teerex event: {:?}", ee); count += 1; match &ee { - my_node_runtime::pallet_teerex::Event::AddedEnclave{ + my_node_runtime::pallet_teerex::Event::AddedSgxEnclave{ registered_by, worker_url, .. } @@ -85,22 +85,34 @@ impl ListenCommand { println!( "AddedEnclave: {:?} at url {}", registered_by, - String::from_utf8(worker_url.to_vec()) + String::from_utf8(worker_url.clone().unwrap_or("none".into()).to_vec()) .unwrap_or_else(|_| "error".to_string()) ); }, - my_node_runtime::pallet_teerex::Event::RemovedEnclave( + my_node_runtime::pallet_teerex::Event::RemovedSovereignEnclave( accountid, ) => { println!("RemovedEnclave: {:?}", accountid); }, - my_node_runtime::pallet_teerex::Event::Forwarded(shard) => { + my_node_runtime::pallet_teerex::Event::RemovedProxiedEnclave( + eia, + ) => { + println!("RemovedEnclave: {:?}", eia); + }, + _ => debug!("ignoring unsupported teerex event: {:?}", ee), + } + }, + RuntimeEvent::EnclaveBridge(ee) => { + println!(">>>>>>>>>> integritee enclave bridge event: {:?}", ee); + count += 1; + match &ee { + my_node_runtime::pallet_enclave_bridge::Event::IndirectInvocationRegistered(shard) => { println!( "Forwarded request for shard {}", shard.encode().to_base58() ); }, - my_node_runtime::pallet_teerex::Event::ProcessedParentchainBlock( + my_node_runtime::pallet_enclave_bridge::Event::ProcessedParentchainBlock( accountid, block_hash, merkle_root, @@ -111,20 +123,21 @@ impl ListenCommand { accountid, block_hash, merkle_root, block_number ); }, - my_node_runtime::pallet_teerex::Event::ShieldFunds( - incognito_account, + my_node_runtime::pallet_enclave_bridge::Event::ShieldFunds( + incognito_account, amount ) => { - println!("ShieldFunds for {:?}", incognito_account); + println!("ShieldFunds for {:?}. amount: {:?}", incognito_account, amount); }, - my_node_runtime::pallet_teerex::Event::UnshieldedFunds( - public_account, + my_node_runtime::pallet_enclave_bridge::Event::UnshieldedFunds( + beneficiary, amount ) => { - println!("UnshieldFunds for {:?}", public_account); + println!("UnshieldFunds for {:?}. amount: {:?}", beneficiary, amount); }, - _ => debug!("ignoring unsupported teerex event: {:?}", ee), + _ => debug!("ignoring unsupported enclave_bridge event: {:?}", ee), } }, RuntimeEvent::Sidechain(ee) => { + println!(">>>>>>>>>> integritee sidechain event: {:?}", ee); count += 1; match &ee { my_node_runtime::pallet_sidechain::Event::ProposedSidechainBlock( diff --git a/cli/src/trusted_operation.rs b/cli/src/trusted_operation.rs index 8cb8474683..595a748502 100644 --- a/cli/src/trusted_operation.rs +++ b/cli/src/trusted_operation.rs @@ -33,7 +33,7 @@ use itp_types::{BlockNumber, DirectRequestStatus, TrustedOperationStatus}; use itp_utils::{FromHexPrefixed, ToHexPrefixed}; use log::*; use my_node_runtime::{Hash, RuntimeEvent}; -use pallet_teerex::Event as TeerexEvent; +use pallet_enclave_bridge::Event as EnclaveBridgeEvent; use sp_core::{sr25519 as sr25519_core, H256}; use std::{ result::Result as StdResult, @@ -43,7 +43,7 @@ use std::{ use substrate_api_client::{ compose_extrinsic, GetHeader, SubmitAndWatch, SubscribeEvents, XtStatus, }; -use teerex_primitives::Request; +use enclave_bridge_primitives::Request; use thiserror::Error; #[derive(Debug, Error)] @@ -150,8 +150,8 @@ fn send_request( loop { let event_records = subscription.next_event::().unwrap().unwrap(); for event_record in event_records { - if let RuntimeEvent::Teerex(TeerexEvent::ProcessedParentchainBlock( - _signer, + if let RuntimeEvent::EnclaveBridge(EnclaveBridgeEvent::ProcessedParentchainBlock( + _shard, confirmed_block_hash, _merkle_root, confirmed_block_number, diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index 0c949dcd05..f832b94922 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -2952,7 +2952,7 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#be26e6b85f14896860ef919488e6bb4cf4b7aa29" +source = "git+https://github.com/integritee-network/pallets.git?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" dependencies = [ "frame-support", "frame-system", diff --git a/service/Cargo.toml b/service/Cargo.toml index c6ef317aa1..19b2720a35 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -64,7 +64,7 @@ my-node-runtime = { package = "integritee-node-runtime", git = "https://github.c sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # `default-features = false` to remove the jsonrpsee dependency. substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } # Substrate dependencies frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/service/src/main.rs b/service/src/main.rs index 3b52652718..af78a0ed41 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -82,7 +82,7 @@ use sp_core::crypto::{AccountId32, Ss58Codec}; use sp_keyring::AccountKeyring; use sp_runtime::traits::Header as HeaderTrait; use std::{str, sync::Arc, thread, time::Duration}; -use teerex_primitives::ShardIdentifier; +use enclave_bridge_primitives::ShardIdentifier; mod account_funding; mod config; @@ -597,22 +597,30 @@ fn print_events(events: Vec) { RuntimeEvent::Teerex(re) => { debug!("{:?}", re); match &re { - my_node_runtime::pallet_teerex::Event::AddedEnclave { + my_node_runtime::pallet_teerex::Event::AddedSgxEnclave { registered_by, worker_url, .. } => { println!("[+] Received AddedEnclave event"); println!(" Sender (Worker): {:?}", registered_by); - println!(" Registered URL: {:?}", str::from_utf8(worker_url).unwrap()); + println!(" Registered URL: {:?}", str::from_utf8(&worker_url.clone().unwrap_or("none".into())).unwrap()); }, - my_node_runtime::pallet_teerex::Event::Forwarded(shard) => { + _ => { + trace!("Ignoring unsupported pallet_teerex event"); + }, + } + }, + RuntimeEvent::EnclaveBridge(re) => { + debug!("{:?}", re); + match &re { + my_node_runtime::pallet_enclave_bridge::Event::IndirectInvocationRegistered(shard) => { println!( "[+] Received trusted call for shard {}", shard.encode().to_base58() ); }, - my_node_runtime::pallet_teerex::Event::ProcessedParentchainBlock( + my_node_runtime::pallet_enclave_bridge::Event::ProcessedParentchainBlock( sender, block_hash, merkle_root, @@ -624,16 +632,18 @@ fn print_events(events: Vec) { debug!(" Merkle Root: {:?}", hex::encode(merkle_root)); debug!(" Block Number: {:?}", block_number); }, - my_node_runtime::pallet_teerex::Event::ShieldFunds(incognito_account) => { + my_node_runtime::pallet_enclave_bridge::Event::ShieldFunds(incognito_account, amount) => { info!("[+] Received ShieldFunds event"); debug!(" For: {:?}", incognito_account); + debug!(" Amount: {:?}", amount); }, - my_node_runtime::pallet_teerex::Event::UnshieldedFunds(incognito_account) => { + my_node_runtime::pallet_enclave_bridge::Event::UnshieldedFunds(beneficiary, amount) => { info!("[+] Received UnshieldedFunds event"); - debug!(" For: {:?}", incognito_account); + debug!(" For: {:?}", beneficiary); + debug!(" For: {:?}", amount); }, _ => { - trace!("Ignoring unsupported pallet_teerex event"); + trace!("Ignoring unsupported pallet_enclave_bridge event"); }, } }, From ddd4d8b4948e810daeece606940e873e1f89912c Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Sun, 16 Jul 2023 18:07:39 +0200 Subject: [PATCH 28/69] lift patches and fix changes --- Cargo.lock | 172 ++++++++++++------------- Cargo.toml | 30 ++--- app-libs/sgx-runtime/Cargo.toml | 2 +- app-libs/stf/Cargo.toml | 2 +- cli/Cargo.toml | 6 +- cli/src/base_cli/commands/listen.rs | 39 +++--- cli/src/trusted_operation.rs | 14 +- core-primitives/enclave-api/Cargo.toml | 2 +- enclave-runtime/Cargo.lock | 2 +- service/Cargo.toml | 4 +- service/src/main.rs | 61 +++++---- 11 files changed, 175 insertions(+), 159 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 72ddfd5223..9de4d294e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -726,7 +726,7 @@ dependencies = [ [[package]] name = "claims-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "parity-scale-codec", "rustc-hex", @@ -831,7 +831,7 @@ dependencies = [ [[package]] name = "common-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "derive_more", "parity-scale-codec", @@ -1331,9 +1331,10 @@ dependencies = [ [[package]] name = "enclave-bridge-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "common-primitives", + "log 0.4.19", "parity-scale-codec", "scale-info", "serde 1.0.164", @@ -1738,7 +1739,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-support-procedural", @@ -1791,7 +1792,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -1830,7 +1831,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "bitflags", "environmental 1.1.4", @@ -1863,7 +1864,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "Inflector", "cfg-expr", @@ -1879,7 +1880,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1891,7 +1892,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "proc-macro2", "quote", @@ -1901,7 +1902,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "log 0.4.19", @@ -1934,7 +1935,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "sp-api", @@ -2793,8 +2794,8 @@ dependencies = [ [[package]] name = "integritee-node-runtime" -version = "1.0.33" -source = "git+https://github.com/integritee-network//integritee-node?branch=ab/integrate-pallet-teerex-refactoring#c4fc90152f6c8505efd248c93d51de9d77bd7aec" +version = "1.1.34" +source = "git+https://github.com/integritee-network/integritee-node.git?branch=polkadot-v0.9.42#31b72e13596c36c4963ed6caf631377b68d34754" dependencies = [ "frame-executive", "frame-support", @@ -5321,7 +5322,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -5337,7 +5338,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -5351,7 +5352,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5366,7 +5367,7 @@ dependencies = [ [[package]] name = "pallet-claims" version = "0.9.12" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "claims-primitives", "frame-support", @@ -5435,8 +5436,8 @@ dependencies = [ [[package]] name = "pallet-enclave-bridge" -version = "0.9.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +version = "0.10.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "enclave-bridge-primitives", "frame-support", @@ -5481,7 +5482,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5504,7 +5505,7 @@ dependencies = [ [[package]] name = "pallet-insecure-randomness-collective-flip" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -5518,7 +5519,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5534,7 +5535,7 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "frame-support", "frame-system", @@ -5551,7 +5552,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -5566,7 +5567,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5581,7 +5582,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5598,7 +5599,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -5618,8 +5619,8 @@ dependencies = [ [[package]] name = "pallet-sidechain" -version = "0.9.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +version = "0.10.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "enclave-bridge-primitives", "frame-support", @@ -5664,7 +5665,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -5678,7 +5679,7 @@ dependencies = [ [[package]] name = "pallet-teeracle" version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "frame-support", "frame-system", @@ -5697,8 +5698,8 @@ dependencies = [ [[package]] name = "pallet-teerex" -version = "0.9.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +version = "0.10.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "frame-support", "frame-system", @@ -5718,7 +5719,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5736,7 +5737,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "frame-system", @@ -5752,7 +5753,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5764,7 +5765,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5781,7 +5782,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -5797,7 +5798,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-benchmarking", "frame-support", @@ -7183,7 +7184,7 @@ dependencies = [ [[package]] name = "sgx-verify" version = "0.1.4" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "base64 0.13.1", "chrono 0.4.26", @@ -7191,6 +7192,7 @@ dependencies = [ "frame-support", "hex", "hex-literal", + "log 0.4.19", "parity-scale-codec", "ring 0.16.20 (git+https://github.com/Niederb/ring-xous.git?branch=0.16.20-cleanup)", "scale-info", @@ -7469,7 +7471,7 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "sidechain-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "parity-scale-codec", "scale-info", @@ -7577,7 +7579,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "hash-db 0.16.0", "log 0.4.19", @@ -7597,7 +7599,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "Inflector", "blake2", @@ -7611,7 +7613,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -7624,7 +7626,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "integer-sqrt", "num-traits 0.2.15", @@ -7638,7 +7640,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "sp-api", @@ -7650,7 +7652,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "async-trait", "futures 0.3.28", @@ -7665,7 +7667,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "async-trait", "parity-scale-codec", @@ -7683,7 +7685,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "finality-grandpa", "log 0.4.19", @@ -7701,7 +7703,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -7713,7 +7715,7 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "array-bytes 4.2.0", "bitflags", @@ -7757,7 +7759,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "blake2b_simd", "byteorder 1.4.3", @@ -7771,7 +7773,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "proc-macro2", "quote", @@ -7782,7 +7784,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "proc-macro2", "quote", @@ -7792,7 +7794,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "environmental 1.1.4", "parity-scale-codec", @@ -7803,7 +7805,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -7841,7 +7843,7 @@ dependencies = [ [[package]] name = "sp-io" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "bytes 1.4.0", "ed25519", @@ -7878,7 +7880,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "futures 0.3.28", "parity-scale-codec", @@ -7892,7 +7894,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "thiserror 1.0.40", "zstd", @@ -7901,7 +7903,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec", @@ -7926,7 +7928,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "sp-api", "sp-core", @@ -7936,7 +7938,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "backtrace", "lazy_static", @@ -7946,7 +7948,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "either", "hash256-std-hasher", @@ -7968,7 +7970,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", @@ -7986,7 +7988,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "Inflector", "proc-macro-crate", @@ -7998,7 +8000,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -8012,7 +8014,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -8025,7 +8027,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "hash-db 0.16.0", "log 0.4.19", @@ -8045,12 +8047,12 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8063,7 +8065,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "async-trait", "futures-timer", @@ -8078,7 +8080,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "sp-std", @@ -8090,7 +8092,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "sp-api", "sp-runtime", @@ -8099,7 +8101,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "ahash 0.8.3", "hash-db 0.16.0", @@ -8122,7 +8124,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8139,7 +8141,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -8150,7 +8152,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -8164,7 +8166,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -8335,7 +8337,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "ansi_term", "build-helper", @@ -8404,7 +8406,7 @@ checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" [[package]] name = "teeracle-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "common-primitives", "sp-std", @@ -8414,10 +8416,11 @@ dependencies = [ [[package]] name = "teerex-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "common-primitives", "derive_more", + "log 0.4.19", "parity-scale-codec", "scale-info", "serde 1.0.164", @@ -8912,7 +8915,7 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 1.0.0", + "cfg-if 0.1.10", "digest 0.10.7", "rand 0.8.5", "static_assertions", @@ -9949,8 +9952,3 @@ dependencies = [ "libc", "pkg-config", ] - -[[patch.unused]] -name = "test-utils" -version = "0.1.0" -source = "git+https://github.com/integritee-network//pallets?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" diff --git a/Cargo.toml b/Cargo.toml index 48f17a8e2e..efa7c1c0b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,26 +87,26 @@ sgx_urts = { version = "1.1.6", git = "https://github.com/apache/incubator-teacl #sp-io = { path = "../sgx-runtime/substrate-sgx/sp-io"} #sgx-externalities = { path = "../sgx-runtime/substrate-sgx/externalities"} -[patch."https://github.com/integritee-network/integritee-node"] -my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network//integritee-node", branch = "ab/integrate-pallet-teerex-refactoring" } +#[patch."https://github.com/integritee-network/integritee-node"] +#my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network//integritee-node", branch = "ab/integrate-pallet-teerex-refactoring" } #[patch."https://github.com/scs/substrate-api-client"] #substrate-api-client = { path = "../../scs/substrate-api-client" } #substrate-client-keystore = { path = "../../scs/substrate-api-client/client-keystore" } -[patch."https://github.com/integritee-network/pallets.git"] -pallet-claims = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -pallet-enclave-bridge = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -pallet-teerex = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -pallet-sidechain = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -sgx-verify = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -pallet-teeracle = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -test-utils = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -claims-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -enclave-bridge-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -teerex-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -teeracle-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } -common-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#[patch."https://github.com/integritee-network/pallets.git"] +#pallet-claims = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#pallet-enclave-bridge = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#pallet-teerex = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#pallet-sidechain = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#sgx-verify = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#pallet-teeracle = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#test-utils = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#claims-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#enclave-bridge-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#teerex-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#teeracle-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } +#common-primitives = { git = "https://github.com/integritee-network//pallets", branch = "ab/shard-config-upgradability-2" } #[patch."https://github.com/integritee-network/http_req"] #http_req = {path = '..//http_req' } diff --git a/app-libs/sgx-runtime/Cargo.toml b/app-libs/sgx-runtime/Cargo.toml index fb0f7b97e7..e55df95e23 100644 --- a/app-libs/sgx-runtime/Cargo.toml +++ b/app-libs/sgx-runtime/Cargo.toml @@ -46,7 +46,7 @@ sp-version = { default-features = false, git = "https://github.com/paritytech/su # Integritee dependencies pallet-evm = { default-features = false, optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } -pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } [features] default = ["std"] diff --git a/app-libs/stf/Cargo.toml b/app-libs/stf/Cargo.toml index f4d6dd6cad..865edd49c2 100644 --- a/app-libs/stf/Cargo.toml +++ b/app-libs/stf/Cargo.toml @@ -40,7 +40,7 @@ sp-runtime = { default-features = false, git = "https://github.com/paritytech/su # scs / integritee my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } -pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +pallet-parentchain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } [dev-dependencies] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 247a662eaf..c7582f0940 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -27,12 +27,12 @@ ws = { version = "0.9.1", features = ["ssl"] } # scs / integritee my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } -pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } -pallet-enclave-bridge = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +pallet-enclave-bridge = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } -enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # substrate dependencies frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/cli/src/base_cli/commands/listen.rs b/cli/src/base_cli/commands/listen.rs index dcd5b5b212..64d9e675e5 100644 --- a/cli/src/base_cli/commands/listen.rs +++ b/cli/src/base_cli/commands/listen.rs @@ -112,26 +112,26 @@ impl ListenCommand { shard.encode().to_base58() ); }, - my_node_runtime::pallet_enclave_bridge::Event::ProcessedParentchainBlock( - accountid, + my_node_runtime::pallet_enclave_bridge::Event::ProcessedParentchainBlock { + shard, block_hash, - merkle_root, + trusted_calls_merkle_root, block_number, - ) => { + } => { println!( "ProcessedParentchainBlock from {} with hash {:?}, number {} and merkle root {:?}", - accountid, block_hash, merkle_root, block_number + shard, block_hash, trusted_calls_merkle_root, block_number ); }, - my_node_runtime::pallet_enclave_bridge::Event::ShieldFunds( - incognito_account, amount - ) => { - println!("ShieldFunds for {:?}. amount: {:?}", incognito_account, amount); + my_node_runtime::pallet_enclave_bridge::Event::ShieldFunds { + shard, encrypted_beneficiary, amount + } => { + println!("ShieldFunds on shard {:?} for {:?}. amount: {:?}", shard, encrypted_beneficiary, amount); }, - my_node_runtime::pallet_enclave_bridge::Event::UnshieldedFunds( - beneficiary, amount - ) => { - println!("UnshieldFunds for {:?}. amount: {:?}", beneficiary, amount); + my_node_runtime::pallet_enclave_bridge::Event::UnshieldedFunds { + shard, beneficiary, amount + } => { + println!("UnshieldFunds on shard {:?} for {:?}. amount: {:?}", shard, beneficiary, amount); }, _ => debug!("ignoring unsupported enclave_bridge event: {:?}", ee), } @@ -140,13 +140,14 @@ impl ListenCommand { println!(">>>>>>>>>> integritee sidechain event: {:?}", ee); count += 1; match &ee { - my_node_runtime::pallet_sidechain::Event::ProposedSidechainBlock( - accountid, - block_hash, - ) => { + my_node_runtime::pallet_sidechain::Event::FinalizedSidechainBlock { + shard, + block_header_hash, + validateer, + } => { println!( - "ProposedSidechainBlock from {} with hash {:?}", - accountid, block_hash + "ProposedSidechainBlock on shard {} from {} with hash {:?}", + shard, validateer, block_header_hash ); }, _ => debug!("ignoring unsupported sidechain event: {:?}", ee), diff --git a/cli/src/trusted_operation.rs b/cli/src/trusted_operation.rs index 595a748502..f2c2b583af 100644 --- a/cli/src/trusted_operation.rs +++ b/cli/src/trusted_operation.rs @@ -23,6 +23,7 @@ use crate::{ }; use base58::FromBase58; use codec::{Decode, Encode}; +use enclave_bridge_primitives::Request; use ita_stf::{Getter, TrustedOperation}; use itc_rpc_client::direct_client::{DirectApi, DirectClient}; use itp_node_api::api_client::{ParentchainApi, ParentchainExtrinsicSigner, TEEREX}; @@ -43,7 +44,6 @@ use std::{ use substrate_api_client::{ compose_extrinsic, GetHeader, SubmitAndWatch, SubscribeEvents, XtStatus, }; -use enclave_bridge_primitives::Request; use thiserror::Error; #[derive(Debug, Error)] @@ -150,12 +150,12 @@ fn send_request( loop { let event_records = subscription.next_event::().unwrap().unwrap(); for event_record in event_records { - if let RuntimeEvent::EnclaveBridge(EnclaveBridgeEvent::ProcessedParentchainBlock( - _shard, - confirmed_block_hash, - _merkle_root, - confirmed_block_number, - )) = event_record.event + if let RuntimeEvent::EnclaveBridge(EnclaveBridgeEvent::ProcessedParentchainBlock { + shard, + block_hash: confirmed_block_hash, + trusted_calls_merkle_root, + block_number: confirmed_block_number, + }) = event_record.event { info!("Confirmation of ProcessedParentchainBlock received"); debug!("Expected block Hash: {:?}", block_hash); diff --git a/core-primitives/enclave-api/Cargo.toml b/core-primitives/enclave-api/Cargo.toml index 10ab67c4e1..00500004dd 100644 --- a/core-primitives/enclave-api/Cargo.toml +++ b/core-primitives/enclave-api/Cargo.toml @@ -20,7 +20,7 @@ sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", br sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } itc-parentchain = { path = "../../core/parentchain/parentchain-crate" } itp-enclave-api-ffi = { path = "ffi" } diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index f832b94922..16d257ed5a 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -2952,7 +2952,7 @@ dependencies = [ [[package]] name = "pallet-parentchain" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=ab/shard-config-upgradability-2#a39316db78a14fe90996d25f357f840b2d9c6f37" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ "frame-support", "frame-system", diff --git a/service/Cargo.toml b/service/Cargo.toml index 19b2720a35..95edd7e19b 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -61,10 +61,10 @@ its-storage = { path = "../sidechain/storage" } # scs / integritee my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } -sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } -enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "ab/shard-config-upgradability-2" } +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # Substrate dependencies frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/service/src/main.rs b/service/src/main.rs index af78a0ed41..af3cc1e7ae 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -78,11 +78,11 @@ use substrate_api_client::{ #[cfg(feature = "dcap")] use sgx_verify::extract_tcb_info_from_raw_dcap_quote; +use enclave_bridge_primitives::ShardIdentifier; use sp_core::crypto::{AccountId32, Ss58Codec}; use sp_keyring::AccountKeyring; use sp_runtime::traits::Header as HeaderTrait; use std::{str, sync::Arc, thread, time::Duration}; -use enclave_bridge_primitives::ShardIdentifier; mod account_funding; mod config; @@ -604,7 +604,10 @@ fn print_events(events: Vec) { } => { println!("[+] Received AddedEnclave event"); println!(" Sender (Worker): {:?}", registered_by); - println!(" Registered URL: {:?}", str::from_utf8(&worker_url.clone().unwrap_or("none".into())).unwrap()); + println!( + " Registered URL: {:?}", + str::from_utf8(&worker_url.clone().unwrap_or("none".into())).unwrap() + ); }, _ => { trace!("Ignoring unsupported pallet_teerex event"); @@ -614,33 +617,45 @@ fn print_events(events: Vec) { RuntimeEvent::EnclaveBridge(re) => { debug!("{:?}", re); match &re { - my_node_runtime::pallet_enclave_bridge::Event::IndirectInvocationRegistered(shard) => { + my_node_runtime::pallet_enclave_bridge::Event::IndirectInvocationRegistered( + shard, + ) => { println!( "[+] Received trusted call for shard {}", shard.encode().to_base58() ); }, - my_node_runtime::pallet_enclave_bridge::Event::ProcessedParentchainBlock( - sender, + my_node_runtime::pallet_enclave_bridge::Event::ProcessedParentchainBlock { + shard, block_hash, - merkle_root, + trusted_calls_merkle_root, block_number, - ) => { + } => { info!("[+] Received ProcessedParentchainBlock event"); - debug!(" From: {:?}", sender); + debug!(" for shard: {:?}", shard); debug!(" Block Hash: {:?}", hex::encode(block_hash)); - debug!(" Merkle Root: {:?}", hex::encode(merkle_root)); + debug!(" Merkle Root: {:?}", hex::encode(trusted_calls_merkle_root)); debug!(" Block Number: {:?}", block_number); }, - my_node_runtime::pallet_enclave_bridge::Event::ShieldFunds(incognito_account, amount) => { + my_node_runtime::pallet_enclave_bridge::Event::ShieldFunds { + shard, + encrypted_beneficiary, + amount, + } => { info!("[+] Received ShieldFunds event"); - debug!(" For: {:?}", incognito_account); + debug!(" for shard: {:?}", shard); + debug!(" for enc. beneficiary: {:?}", encrypted_beneficiary); debug!(" Amount: {:?}", amount); }, - my_node_runtime::pallet_enclave_bridge::Event::UnshieldedFunds(beneficiary, amount) => { + my_node_runtime::pallet_enclave_bridge::Event::UnshieldedFunds { + shard, + beneficiary, + amount, + } => { info!("[+] Received UnshieldedFunds event"); - debug!(" For: {:?}", beneficiary); - debug!(" For: {:?}", amount); + debug!(" for shard: {:?}", shard); + debug!(" beneficiary: {:?}", beneficiary); + debug!(" Amount: {:?}", amount); }, _ => { trace!("Ignoring unsupported pallet_enclave_bridge event"); @@ -683,7 +698,7 @@ fn print_events(events: Vec) { ) => { println!("[+] Received RemovedFromWhitelist event"); println!(" Data source: {}", source); - println!(" Currency: {:?}", mrenclave); + println!(" fingerprint: {:?}", mrenclave); }, _ => { trace!("Ignoring unsupported pallet_teeracle event"); @@ -692,13 +707,15 @@ fn print_events(events: Vec) { }, #[cfg(feature = "sidechain")] RuntimeEvent::Sidechain(re) => match &re { - my_node_runtime::pallet_sidechain::Event::ProposedSidechainBlock( - sender, - payload, - ) => { - info!("[+] Received ProposedSidechainBlock event"); - debug!(" From: {:?}", sender); - debug!(" Payload: {:?}", hex::encode(payload)); + my_node_runtime::pallet_sidechain::Event::FinalizedSidechainBlock { + shard, + block_header_hash, + validateer, + } => { + info!("[+] Received FinalizedSidechainBlock event"); + debug!(" for shard: {:?}", shard); + debug!(" From: {:?}", hex::encode(block_header_hash)); + debug!(" validateer: {:?}", validateer); }, _ => { trace!("Ignoring unsupported pallet_sidechain event"); From 8367b966ace6aa9641c3e86689236d6c139455d5 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Sun, 16 Jul 2023 18:09:11 +0200 Subject: [PATCH 29/69] CI against new node release 1.1.0 --- .github/workflows/build_and_test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 66f0fbd959..4668bffb16 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -248,7 +248,7 @@ jobs: echo "PROJECT=${{ matrix.flavor_id }}-${{ matrix.demo_name }}" >> $GITHUB_ENV echo "VERSION=dev.$version" >> $GITHUB_ENV echo "WORKER_IMAGE_TAG=integritee-worker:dev.$version" >> $GITHUB_ENV - echo "INTEGRITEE_NODE=integritee-node-dev-ias:1.0.36.$version" >> $GITHUB_ENV + echo "INTEGRITEE_NODE=integritee-node-dev-ias:1.1.0.$version" >> $GITHUB_ENV echo "CLIENT_IMAGE_TAG=integritee-cli:dev.$version" >> $GITHUB_ENV if [[ ${{ matrix.sgx_mode }} == 'HW' ]]; then echo "SGX_PROVISION=/dev/sgx/provision" >> $GITHUB_ENV @@ -292,8 +292,8 @@ jobs: fi docker tag integritee-worker-${{ matrix.flavor_id }}-${{ github.sha }} ${{ env.WORKER_IMAGE_TAG }} docker tag integritee-cli-client-${{ matrix.flavor_id }}-${{ github.sha }} ${{ env.CLIENT_IMAGE_TAG }} - docker pull integritee/integritee-node-dev-ias:1.0.36 - docker tag integritee/integritee-node-dev-ias:1.0.36 ${{ env.INTEGRITEE_NODE }} + docker pull integritee/integritee-node-dev-ias:1.1.0 + docker tag integritee/integritee-node-dev-ias:1.1.0 ${{ env.INTEGRITEE_NODE }} docker images --all ## @@ -458,9 +458,9 @@ jobs: uses: actions/download-artifact@v3 with: name: integritee-worker-teeracle-${{ github.ref_name }}.tar.gz - path: . + path: . - # + # # Temporary comment out until we decide what to release # # - name: Download Integritee Service From f0495d08d25d25d9d7b1ac502bf689d55c1a5b8c Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Sun, 16 Jul 2023 20:55:03 +0200 Subject: [PATCH 30/69] build completes. some OpaqueCall refactorings missing still --- app-libs/stf/src/trusted_call.rs | 2 +- cli/src/trusted_operation.rs | 4 +- core-primitives/node-api/metadata/src/lib.rs | 14 +++- .../node-api/metadata/src/metadata_mocks.rs | 65 +++++++++------- .../metadata/src/pallet_enclave_bridge.rs | 75 +++++++++++++++++++ .../node-api/metadata/src/pallet_teerex.rs | 65 +++++----------- .../indirect-calls-executor/src/executor.rs | 3 +- .../src/filter_metadata.rs | 12 +-- .../src/indirect_calls/call_worker.rs | 4 +- .../src/indirect_calls/mod.rs | 2 +- enclave-runtime/Cargo.lock | 30 ++++++++ enclave-runtime/Cargo.toml | 1 + enclave-runtime/src/attestation.rs | 14 +++- enclave-runtime/src/test/top_pool_tests.rs | 2 +- 14 files changed, 198 insertions(+), 95 deletions(-) create mode 100644 core-primitives/node-api/metadata/src/pallet_enclave_bridge.rs diff --git a/app-libs/stf/src/trusted_call.rs b/app-libs/stf/src/trusted_call.rs index 1f13721f6b..94f475951e 100644 --- a/app-libs/stf/src/trusted_call.rs +++ b/app-libs/stf/src/trusted_call.rs @@ -27,7 +27,7 @@ use frame_support::{ensure, traits::UnfilteredDispatchable}; pub use ita_sgx_runtime::{Balance, Index}; use ita_sgx_runtime::{Runtime, System}; use itp_node_api::metadata::{provider::AccessNodeMetadata, NodeMetadataTrait}; -use itp_node_api_metadata::pallet_teerex::TeerexCallIndexes; +use itp_node_api_metadata::pallet_enclave_bridge::EnclaveBridgeCallIndexes; use itp_stf_interface::ExecuteCall; use itp_stf_primitives::types::{AccountId, KeyPair, ShardIdentifier, Signature}; use itp_types::OpaqueCall; diff --git a/cli/src/trusted_operation.rs b/cli/src/trusted_operation.rs index f2c2b583af..aed291254f 100644 --- a/cli/src/trusted_operation.rs +++ b/cli/src/trusted_operation.rs @@ -158,7 +158,9 @@ fn send_request( }) = event_record.event { info!("Confirmation of ProcessedParentchainBlock received"); - debug!("Expected block Hash: {:?}", block_hash); + debug!("shard: {:?}", shard); + debug!("confirmed parentchain block Hash: {:?}", block_hash); + debug!("trusted calls merkle root: {:?}", trusted_calls_merkle_root); debug!("Confirmed stf block Hash: {:?}", confirmed_block_hash); if let Err(e) = check_if_received_event_exceeds_expected( &chain_api, diff --git a/core-primitives/node-api/metadata/src/lib.rs b/core-primitives/node-api/metadata/src/lib.rs index 43c68a2964..9bb09a21fb 100644 --- a/core-primitives/node-api/metadata/src/lib.rs +++ b/core-primitives/node-api/metadata/src/lib.rs @@ -20,7 +20,8 @@ #![cfg_attr(not(feature = "std"), no_std)] use crate::{ - error::Result, pallet_sidechain::SidechainCallIndexes, pallet_teerex::TeerexCallIndexes, + error::Result, pallet_enclave_bridge::EnclaveBridgeCallIndexes, + pallet_sidechain::SidechainCallIndexes, pallet_teerex::TeerexCallIndexes, }; use codec::{Decode, Encode}; use sp_core::storage::StorageKey; @@ -29,6 +30,7 @@ pub use crate::error::Error; pub use itp_api_client_types::{Metadata, MetadataError}; pub mod error; +pub mod pallet_enclave_bridge; pub mod pallet_sidechain; pub mod pallet_teeracle; pub mod pallet_teerex; @@ -36,8 +38,14 @@ pub mod pallet_teerex; #[cfg(feature = "mocks")] pub mod metadata_mocks; -pub trait NodeMetadataTrait: TeerexCallIndexes + SidechainCallIndexes {} -impl NodeMetadataTrait for T {} +pub trait NodeMetadataTrait: + TeerexCallIndexes + EnclaveBridgeCallIndexes + SidechainCallIndexes +{ +} +impl NodeMetadataTrait + for T +{ +} impl TryFrom for Metadata { type Error = crate::error::Error; diff --git a/core-primitives/node-api/metadata/src/metadata_mocks.rs b/core-primitives/node-api/metadata/src/metadata_mocks.rs index a3e288dad8..57cf0fe327 100644 --- a/core-primitives/node-api/metadata/src/metadata_mocks.rs +++ b/core-primitives/node-api/metadata/src/metadata_mocks.rs @@ -20,6 +20,7 @@ use crate::{ }; use codec::{Decode, Encode}; +use crate::pallet_enclave_bridge::EnclaveBridgeCallIndexes; use itp_api_client_types::Metadata; impl TryFrom for Metadata { @@ -33,16 +34,18 @@ impl TryFrom for Metadata { #[derive(Default, Encode, Decode, Debug, Clone)] pub struct NodeMetadataMock { teerex_module: u8, - register_ias_enclave: u8, - register_dcap_enclave: u8, - unregister_enclave: u8, + register_sgx_enclave: u8, + unregister_sovereign_enclave: u8, + unregister_proxied_enclave: u8, register_quoting_enclave: u8, register_tcb_info: u8, - call_worker: u8, - processed_parentchain_block: u8, + enclave_bridge_module: u8, + invoke: u8, + confirm_processed_parentchain_block: u8, shield_funds: u8, unshield_funds: u8, publish_hash: u8, + update_shard_config: u8, sidechain_module: u8, imported_sidechain_block: u8, runtime_spec_version: u32, @@ -53,16 +56,18 @@ impl NodeMetadataMock { pub fn new() -> Self { NodeMetadataMock { teerex_module: 50u8, - register_ias_enclave: 0u8, - register_dcap_enclave: 6, - unregister_enclave: 1u8, - register_quoting_enclave: 7, - register_tcb_info: 8, - call_worker: 2u8, - processed_parentchain_block: 3u8, - shield_funds: 4u8, - unshield_funds: 5u8, - publish_hash: 9u8, + register_sgx_enclave: 0u8, + unregister_sovereign_enclave: 1u8, + unregister_proxied_enclave: 2u8, + register_quoting_enclave: 3, + register_tcb_info: 4, + enclave_bridge_module: 54u8, + invoke: 0u8, + confirm_processed_parentchain_block: 1u8, + shield_funds: 2u8, + unshield_funds: 3u8, + publish_hash: 4u8, + update_shard_config: 5u8, sidechain_module: 53u8, imported_sidechain_block: 0u8, runtime_spec_version: 25, @@ -72,16 +77,16 @@ impl NodeMetadataMock { } impl TeerexCallIndexes for NodeMetadataMock { - fn register_ias_enclave_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.register_ias_enclave]) + fn register_sgx_enclave_call_indexes(&self) -> Result<[u8; 2]> { + Ok([self.teerex_module, self.register_sgx_enclave]) } - fn register_dcap_enclave_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.register_dcap_enclave]) + fn unregister_sovereign_enclave_call_indexes(&self) -> Result<[u8; 2]> { + Ok([self.teerex_module, self.unregister_sovereign_enclave]) } - fn unregister_enclave_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.unregister_enclave]) + fn unregister_proxied_enclave_call_indexes(&self) -> Result<[u8; 2]> { + Ok([self.teerex_module, self.unregister_proxied_enclave]) } fn register_quoting_enclave_call_indexes(&self) -> Result<[u8; 2]> { @@ -91,25 +96,31 @@ impl TeerexCallIndexes for NodeMetadataMock { fn register_tcb_info_call_indexes(&self) -> Result<[u8; 2]> { Ok([self.teerex_module, self.register_tcb_info]) } +} - fn call_worker_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.call_worker]) +impl EnclaveBridgeCallIndexes for NodeMetadataMock { + fn invoke_call_indexes(&self) -> Result<[u8; 2]> { + Ok([self.enclave_bridge_module, self.invoke]) } fn confirm_processed_parentchain_block_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.processed_parentchain_block]) + Ok([self.enclave_bridge_module, self.confirm_processed_parentchain_block]) } fn shield_funds_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.shield_funds]) + Ok([self.enclave_bridge_module, self.shield_funds]) } fn unshield_funds_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.unshield_funds]) + Ok([self.enclave_bridge_module, self.unshield_funds]) } fn publish_hash_call_indexes(&self) -> Result<[u8; 2]> { - Ok([self.teerex_module, self.unshield_funds]) + Ok([self.enclave_bridge_module, self.publish_hash]) + } + + fn update_shard_config_call_indexes(&self) -> Result<[u8; 2]> { + Ok([self.enclave_bridge_module, self.update_shard_config]) } } diff --git a/core-primitives/node-api/metadata/src/pallet_enclave_bridge.rs b/core-primitives/node-api/metadata/src/pallet_enclave_bridge.rs new file mode 100644 index 0000000000..4813d2ec54 --- /dev/null +++ b/core-primitives/node-api/metadata/src/pallet_enclave_bridge.rs @@ -0,0 +1,75 @@ +/* + Copyright 2021 Integritee AG and Supercomputing Systems AG + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ +use crate::{error::Result, NodeMetadata}; +use sp_core::storage::StorageKey; + +/// Pallet' name: +const ENCLAVE_BRIDGE: &str = "EnclaveBridge"; + +pub trait EnclaveBridgeCallIndexes { + fn invoke_call_indexes(&self) -> Result<[u8; 2]>; + + fn confirm_processed_parentchain_block_call_indexes(&self) -> Result<[u8; 2]>; + + fn shield_funds_call_indexes(&self) -> Result<[u8; 2]>; + + fn unshield_funds_call_indexes(&self) -> Result<[u8; 2]>; + + fn publish_hash_call_indexes(&self) -> Result<[u8; 2]>; + + fn update_shard_config_call_indexes(&self) -> Result<[u8; 2]>; +} + +pub trait EnclaveBridgeStorageKey { + fn shard_status_storage_map_key(&self, index: u64) -> Result; + fn shard_config_registry_storage_map_key(&self, index: u64) -> Result; +} + +impl EnclaveBridgeCallIndexes for NodeMetadata { + fn invoke_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(ENCLAVE_BRIDGE, "invoke") + } + + fn confirm_processed_parentchain_block_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(ENCLAVE_BRIDGE, "confirm_processed_parentchain_block") + } + + fn shield_funds_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(ENCLAVE_BRIDGE, "shield_funds") + } + + fn unshield_funds_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(ENCLAVE_BRIDGE, "unshield_funds") + } + + fn publish_hash_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(ENCLAVE_BRIDGE, "publish_hash") + } + + fn update_shard_config_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(ENCLAVE_BRIDGE, "update_shard_config") + } +} + +impl EnclaveBridgeStorageKey for NodeMetadata { + fn shard_status_storage_map_key(&self, index: u64) -> Result { + self.storage_map_key(ENCLAVE_BRIDGE, "ShardStatus", index) + } + fn shard_config_registry_storage_map_key(&self, index: u64) -> Result { + self.storage_map_key(ENCLAVE_BRIDGE, "ShardConfigRegistry", index) + } +} diff --git a/core-primitives/node-api/metadata/src/pallet_teerex.rs b/core-primitives/node-api/metadata/src/pallet_teerex.rs index c50b991d0a..73f1e2a043 100644 --- a/core-primitives/node-api/metadata/src/pallet_teerex.rs +++ b/core-primitives/node-api/metadata/src/pallet_teerex.rs @@ -21,40 +21,34 @@ use sp_core::storage::StorageKey; const TEEREX: &str = "Teerex"; pub trait TeerexCallIndexes { - fn register_ias_enclave_call_indexes(&self) -> Result<[u8; 2]>; + fn register_sgx_enclave_call_indexes(&self) -> Result<[u8; 2]>; - fn register_dcap_enclave_call_indexes(&self) -> Result<[u8; 2]>; + fn unregister_sovereign_enclave_call_indexes(&self) -> Result<[u8; 2]>; - fn unregister_enclave_call_indexes(&self) -> Result<[u8; 2]>; + fn unregister_proxied_enclave_call_indexes(&self) -> Result<[u8; 2]>; fn register_quoting_enclave_call_indexes(&self) -> Result<[u8; 2]>; fn register_tcb_info_call_indexes(&self) -> Result<[u8; 2]>; - - fn call_worker_call_indexes(&self) -> Result<[u8; 2]>; - - fn confirm_processed_parentchain_block_call_indexes(&self) -> Result<[u8; 2]>; - - fn shield_funds_call_indexes(&self) -> Result<[u8; 2]>; - - fn unshield_funds_call_indexes(&self) -> Result<[u8; 2]>; - - fn publish_hash_call_indexes(&self) -> Result<[u8; 2]>; } pub trait TeerexStorageKey { - fn enclave_count_storage_key(&self) -> Result; + fn sovereign_enclaves_storage_map_key(&self, index: u64) -> Result; - fn enclave_registry_storage_map_key(&self, index: u64) -> Result; + fn proxied_enclaves_storage_map_key(&self, index: u64) -> Result; } impl TeerexCallIndexes for NodeMetadata { - fn register_ias_enclave_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "register_ias_enclave") + fn register_sgx_enclave_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(TEEREX, "register_sgx_enclave") } - fn register_dcap_enclave_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "register_dcap_enclave") + fn unregister_sovereign_enclave_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(TEEREX, "unregister_sovereign_enclave") + } + + fn unregister_proxied_enclave_call_indexes(&self) -> Result<[u8; 2]> { + self.call_indexes(TEEREX, "unregister_proxied_enclave") } fn register_quoting_enclave_call_indexes(&self) -> Result<[u8; 2]> { @@ -64,38 +58,13 @@ impl TeerexCallIndexes for NodeMetadata { fn register_tcb_info_call_indexes(&self) -> Result<[u8; 2]> { self.call_indexes(TEEREX, "register_tcb_info") } - - fn unregister_enclave_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "unregister_enclave") - } - - fn call_worker_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "call_worker") - } - - fn confirm_processed_parentchain_block_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "confirm_processed_parentchain_block") - } - - fn shield_funds_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "shield_funds") - } - - fn unshield_funds_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "unshield_funds") - } - - fn publish_hash_call_indexes(&self) -> Result<[u8; 2]> { - self.call_indexes(TEEREX, "publish_hash") - } } impl TeerexStorageKey for NodeMetadata { - fn enclave_count_storage_key(&self) -> Result { - self.storage_value_key(TEEREX, "EnclaveCount") + fn sovereign_enclaves_storage_map_key(&self, index: u64) -> Result { + self.storage_map_key(TEEREX, "SovereignEnclaves", index) } - - fn enclave_registry_storage_map_key(&self, index: u64) -> Result { - self.storage_map_key(TEEREX, "EnclaveRegistry", index) + fn proxied_enclaves_storage_map_key(&self, index: u64) -> Result { + self.storage_map_key(TEEREX, "ProxiedEnclaves", index) } } diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index d426468f00..d3187518c0 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -30,7 +30,8 @@ use codec::Encode; use core::marker::PhantomData; use ita_stf::{TrustedCall, TrustedCallSigned}; use itp_node_api::metadata::{ - pallet_teerex::TeerexCallIndexes, provider::AccessNodeMetadata, NodeMetadataTrait, + pallet_enclave_bridge::EnclaveBridgeCallIndexes, provider::AccessNodeMetadata, + NodeMetadataTrait, }; use itp_sgx_crypto::{key_repository::AccessKey, ShieldingCryptoDecrypt, ShieldingCryptoEncrypt}; use itp_stf_executor::traits::StfEnclaveSigning; diff --git a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs index 23d87bde8f..32c5636a03 100644 --- a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs +++ b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs @@ -18,7 +18,7 @@ use crate::{ error::Result, event_filter::{FilterEvents, MockEvents}, - indirect_calls::{CallWorkerArgs, ShiedFundsArgs}, + indirect_calls::{InvokeArgs, ShiedFundsArgs}, parentchain_parser::ParseExtrinsic, IndirectDispatch, IndirectExecutor, }; @@ -130,9 +130,9 @@ where if index == metadata.shield_funds_call_indexes().ok()? { let args = decode_and_log_error::(call_args)?; Some(IndirectCall::ShieldFunds(args)) - } else if index == metadata.call_worker_call_indexes().ok()? { - let args = decode_and_log_error::(call_args)?; - Some(IndirectCall::CallWorker(args)) + } else if index == metadata.invoke_call_indexes().ok()? { + let args = decode_and_log_error::(call_args)?; + Some(IndirectCall::Invoke(args)) } else { None } @@ -146,14 +146,14 @@ where #[derive(Debug, Clone, Encode, Decode, Eq, PartialEq)] pub enum IndirectCall { ShieldFunds(ShiedFundsArgs), - CallWorker(CallWorkerArgs), + Invoke(InvokeArgs), } impl IndirectDispatch for IndirectCall { fn dispatch(&self, executor: &Executor) -> Result<()> { match self { IndirectCall::ShieldFunds(shieldfunds) => shieldfunds.dispatch(executor), - IndirectCall::CallWorker(call_worker) => call_worker.dispatch(executor), + IndirectCall::Invoke(call_worker) => call_worker.dispatch(executor), } } } diff --git a/core/parentchain/indirect-calls-executor/src/indirect_calls/call_worker.rs b/core/parentchain/indirect-calls-executor/src/indirect_calls/call_worker.rs index 383f8eed4a..076e06e87c 100644 --- a/core/parentchain/indirect-calls-executor/src/indirect_calls/call_worker.rs +++ b/core/parentchain/indirect-calls-executor/src/indirect_calls/call_worker.rs @@ -20,11 +20,11 @@ use codec::{Decode, Encode}; use itp_types::Request; #[derive(Debug, Clone, Encode, Decode, Eq, PartialEq)] -pub struct CallWorkerArgs { +pub struct InvokeArgs { request: Request, } -impl IndirectDispatch for CallWorkerArgs { +impl IndirectDispatch for InvokeArgs { fn dispatch(&self, executor: &Executor) -> Result<()> { log::debug!("Found trusted call extrinsic, submitting it to the top pool"); executor.submit_trusted_call(self.request.shard, self.request.cyphertext.clone()); diff --git a/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs b/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs index 503ed9bbbb..0ccc165eef 100644 --- a/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs +++ b/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs @@ -18,5 +18,5 @@ mod call_worker; mod shield_funds; -pub use call_worker::CallWorkerArgs; +pub use call_worker::InvokeArgs; pub use shield_funds::ShiedFundsArgs; diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index 16d257ed5a..539171a7fc 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -484,6 +484,19 @@ dependencies = [ "generic-array 0.14.7", ] +[[package]] +name = "common-primitives" +version = "0.1.0" +source = "git+https://github.com/integritee-network/pallets#5c52182eb3a5156e8d9f69c10ca1441214ee6662" +dependencies = [ + "derive_more", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "const-oid" version = "0.9.2" @@ -770,6 +783,7 @@ dependencies = [ "sp-core", "sp-runtime", "sp-std", + "teerex-primitives", "webpki", ] @@ -4521,6 +4535,22 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" +[[package]] +name = "teerex-primitives" +version = "0.1.0" +source = "git+https://github.com/integritee-network/pallets#5c52182eb3a5156e8d9f69c10ca1441214ee6662" +dependencies = [ + "common-primitives", + "derive_more", + "log", + "parity-scale-codec", + "scale-info", + "serde 1.0.164", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "termcolor" version = "1.0.5" diff --git a/enclave-runtime/Cargo.toml b/enclave-runtime/Cargo.toml index 2d8153a7ed..08adda5c96 100644 --- a/enclave-runtime/Cargo.toml +++ b/enclave-runtime/Cargo.toml @@ -88,6 +88,7 @@ base58 = { rev = "sgx_1.1.3", package = "rust-base58", default-features = false, cid = { default-features = false, git = "https://github.com/whalelephant/rust-cid", branch = "nstd" } multibase = { default-features = false, git = "https://github.com/whalelephant/rust-multibase", branch = "nstd" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets", default-features = false } # local deps ita-oracle = { path = "../app-libs/oracle", default-features = false, optional = true, features = ["sgx"] } diff --git a/enclave-runtime/src/attestation.rs b/enclave-runtime/src/attestation.rs index cab21dea9f..95f91587e6 100644 --- a/enclave-runtime/src/attestation.rs +++ b/enclave-runtime/src/attestation.rs @@ -52,6 +52,7 @@ use log::*; use sgx_types::*; use sp_runtime::OpaqueExtrinsic; use std::{prelude::v1::*, slice, vec::Vec}; +use teerex_primitives::SgxAttestationMethod; #[no_mangle] pub unsafe extern "C" fn get_mrenclave(mrenclave: *mut u8, mrenclave_size: usize) -> sgx_status_t { @@ -264,10 +265,15 @@ pub fn generate_dcap_ra_extrinsic_from_quote_internal( info!(" [Enclave] Compose register enclave getting callIDs:"); let call_ids = node_metadata_repo - .get_from_metadata(|m| m.register_dcap_enclave_call_indexes())? + .get_from_metadata(|m| m.register_sgx_enclave_call_indexes())? .map_err(MetadataProviderError::MetadataError)?; info!(" [Enclave] Compose register enclave call DCAP IDs: {:?}", call_ids); - let call = OpaqueCall::from_tuple(&(call_ids, quote, url)); + let call = OpaqueCall::from_tuple(&( + call_ids, + quote, + Some(url), + SgxAttestationMethod::Dcap { proxied: false }, + )); info!(" [Enclave] Compose register enclave got extrinsic, returning"); create_extrinsics(call) @@ -291,10 +297,10 @@ pub fn generate_ias_ra_extrinsic_from_der_cert_internal( info!(" [Enclave] Compose register enclave call"); let call_ids = node_metadata_repo - .get_from_metadata(|m| m.register_ias_enclave_call_indexes())? + .get_from_metadata(|m| m.register_sgx_enclave_call_indexes())? .map_err(MetadataProviderError::MetadataError)?; - let call = OpaqueCall::from_tuple(&(call_ids, cert_der, url)); + let call = OpaqueCall::from_tuple(&(call_ids, cert_der, Some(url), SgxAttestationMethod::Ias)); create_extrinsics(call) } diff --git a/enclave-runtime/src/test/top_pool_tests.rs b/enclave-runtime/src/test/top_pool_tests.rs index b4e0ba6447..d2b331e564 100644 --- a/enclave-runtime/src/test/top_pool_tests.rs +++ b/enclave-runtime/src/test/top_pool_tests.rs @@ -45,7 +45,7 @@ use itp_node_api::{ ParentchainUncheckedExtrinsic, }, metadata::{ - metadata_mocks::NodeMetadataMock, pallet_teerex::TeerexCallIndexes, + metadata_mocks::NodeMetadataMock, pallet_enclave_bridge::EnclaveBridgeCallIndexes, provider::NodeMetadataRepository, }, }; From cdc1c878cf753d52001effb73502da4288b57e21 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 17 Jul 2023 08:46:08 +0200 Subject: [PATCH 31/69] fix unshield_funds tx signature --- app-libs/stf/src/trusted_call.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-libs/stf/src/trusted_call.rs b/app-libs/stf/src/trusted_call.rs index 94f475951e..c81d21eadc 100644 --- a/app-libs/stf/src/trusted_call.rs +++ b/app-libs/stf/src/trusted_call.rs @@ -244,9 +244,9 @@ where unshield_funds(account_incognito, value)?; calls.push(OpaqueCall::from_tuple(&( node_metadata_repo.get_from_metadata(|m| m.unshield_funds_call_indexes())??, + shard, beneficiary, value, - shard, call_hash, ))); Ok(()) From 62287b4a451d0e4f2bc103139ed32f777f4ef65f Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 17 Jul 2023 08:47:54 +0200 Subject: [PATCH 32/69] fmt --- cli/Cargo.toml | 4 ++-- service/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index c7582f0940..a2d2b18a72 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -26,13 +26,13 @@ ws = { version = "0.9.1", features = ["ssl"] } # scs / integritee my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } +pallet-enclave-bridge = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "bar/polkadot-v0.9.42" } pallet-teerex = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } -pallet-enclave-bridge = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } -enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # substrate dependencies frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/service/Cargo.toml b/service/Cargo.toml index 95edd7e19b..82bd33b524 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -63,8 +63,8 @@ its-storage = { path = "../sidechain/storage" } my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. -substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } # Substrate dependencies frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } From 747ca360cc9053ae72ea8df5b547354384708b32 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 17 Jul 2023 09:13:38 +0200 Subject: [PATCH 33/69] fix typo --- .../indirect-calls-executor/src/filter_metadata.rs | 6 +++--- .../indirect-calls-executor/src/indirect_calls/mod.rs | 2 +- .../src/indirect_calls/shield_funds.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs index 32c5636a03..895d262fa8 100644 --- a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs +++ b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs @@ -18,7 +18,7 @@ use crate::{ error::Result, event_filter::{FilterEvents, MockEvents}, - indirect_calls::{InvokeArgs, ShiedFundsArgs}, + indirect_calls::{InvokeArgs, ShieldFundsArgs}, parentchain_parser::ParseExtrinsic, IndirectDispatch, IndirectExecutor, }; @@ -128,7 +128,7 @@ where let call_args = &mut &xt.call_args[..]; if index == metadata.shield_funds_call_indexes().ok()? { - let args = decode_and_log_error::(call_args)?; + let args = decode_and_log_error::(call_args)?; Some(IndirectCall::ShieldFunds(args)) } else if index == metadata.invoke_call_indexes().ok()? { let args = decode_and_log_error::(call_args)?; @@ -145,7 +145,7 @@ where /// can implemeent their own indirect call there. #[derive(Debug, Clone, Encode, Decode, Eq, PartialEq)] pub enum IndirectCall { - ShieldFunds(ShiedFundsArgs), + ShieldFunds(ShieldFundsArgs), Invoke(InvokeArgs), } diff --git a/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs b/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs index 0ccc165eef..e12a358f35 100644 --- a/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs +++ b/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs @@ -19,4 +19,4 @@ mod call_worker; mod shield_funds; pub use call_worker::InvokeArgs; -pub use shield_funds::ShiedFundsArgs; +pub use shield_funds::ShieldFundsArgs; diff --git a/core/parentchain/indirect-calls-executor/src/indirect_calls/shield_funds.rs b/core/parentchain/indirect-calls-executor/src/indirect_calls/shield_funds.rs index ddf510b696..ed76922705 100644 --- a/core/parentchain/indirect-calls-executor/src/indirect_calls/shield_funds.rs +++ b/core/parentchain/indirect-calls-executor/src/indirect_calls/shield_funds.rs @@ -25,13 +25,13 @@ use std::vec::Vec; /// Arguments of the Integritee-Parachain's shield fund dispatchable. #[derive(Debug, Clone, Encode, Decode, Eq, PartialEq)] -pub struct ShiedFundsArgs { +pub struct ShieldFundsArgs { + shard: ShardIdentifier, account_encrypted: Vec, amount: Balance, - shard: ShardIdentifier, } -impl IndirectDispatch for ShiedFundsArgs { +impl IndirectDispatch for ShieldFundsArgs { fn dispatch(&self, executor: &Executor) -> Result<()> { info!("Found ShieldFunds extrinsic in block: \nAccount Encrypted {:?} \nAmount: {} \nShard: {}", self.account_encrypted, self.amount, bs58::encode(self.shard.encode()).into_string()); From 179615ab7f75a55c8e52824241156778f1043a38 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 17 Jul 2023 14:49:37 +0200 Subject: [PATCH 34/69] fix teeracle build --- cli/src/oracle/commands/listen_to_exchange.rs | 10 ++-- cli/src/oracle/commands/listen_to_oracle.rs | 6 +- service/src/main.rs | 60 +++++++++---------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/cli/src/oracle/commands/listen_to_exchange.rs b/cli/src/oracle/commands/listen_to_exchange.rs index 8c27e0e0ca..db26b5b0ec 100644 --- a/cli/src/oracle/commands/listen_to_exchange.rs +++ b/cli/src/oracle/commands/listen_to_exchange.rs @@ -56,18 +56,18 @@ pub fn count_exchange_rate_update_events(api: &ParentchainApi, duration: Duratio info!("received event {:?}", event_record.event); if let RuntimeEvent::Teeracle(event) = &event_record.event { match &event { - my_node_runtime::pallet_teeracle::Event::ExchangeRateUpdated( - src, + my_node_runtime::pallet_teeracle::Event::ExchangeRateUpdated { + data_source, trading_pair, exchange_rate, - ) => { + } => { count += 1; debug!("Received ExchangeRateUpdated event"); println!( "ExchangeRateUpdated: TRADING_PAIR : {}, SRC : {}, VALUE :{:?}", - trading_pair, src, exchange_rate + trading_pair, data_source, exchange_rate ); - }, + } _ => trace!("ignoring teeracle event: {:?}", event), } } diff --git a/cli/src/oracle/commands/listen_to_oracle.rs b/cli/src/oracle/commands/listen_to_oracle.rs index 916e8706ad..687b57ba75 100644 --- a/cli/src/oracle/commands/listen_to_oracle.rs +++ b/cli/src/oracle/commands/listen_to_oracle.rs @@ -71,11 +71,11 @@ fn report_event_count(event_records: Vec) -> EventCount { info!("received event {:?}", event_record.event); if let RuntimeEvent::Teeracle(event) = &event_record.event { match &event { - my_node_runtime::pallet_teeracle::Event::OracleUpdated(oracle_name, src) => { + my_node_runtime::pallet_teeracle::Event::OracleUpdated{oracle_data_name, data_source } => { count += 1; debug!("Received OracleUpdated event"); - println!("OracleUpdated: ORACLE_NAME : {}, SRC : {}", oracle_name, src); - }, + println!("OracleUpdated: ORACLE_NAME : {}, SRC : {}", oracle_data_name, data_source); + } // Can just remove this and ignore handling this case _ => debug!("ignoring teeracle event: {:?}", event), } diff --git a/service/src/main.rs b/service/src/main.rs index af3cc1e7ae..44ef6f3eca 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -666,40 +666,40 @@ fn print_events(events: Vec) { RuntimeEvent::Teeracle(re) => { debug!("{:?}", re); match &re { - my_node_runtime::pallet_teeracle::Event::ExchangeRateUpdated( - source, - currency, - new_value, - ) => { + my_node_runtime::pallet_teeracle::Event::ExchangeRateUpdated { + data_source, + trading_pair, + exchange_rate, + } => { println!("[+] Received ExchangeRateUpdated event"); - println!(" Data source: {}", source); - println!(" Currency: {}", currency); - println!(" Exchange rate: {:?}", new_value); - }, - my_node_runtime::pallet_teeracle::Event::ExchangeRateDeleted( - source, - currency, - ) => { + println!(" Data source: {}", data_source); + println!(" trading pair: {}", trading_pair); + println!(" Exchange rate: {:?}", exchange_rate); + } + my_node_runtime::pallet_teeracle::Event::ExchangeRateDeleted { + data_source, + trading_pair, + } => { println!("[+] Received ExchangeRateDeleted event"); - println!(" Data source: {}", source); - println!(" Currency: {}", currency); - }, - my_node_runtime::pallet_teeracle::Event::AddedToWhitelist( - source, - mrenclave, - ) => { + println!(" Data source: {}", data_source); + println!(" trading pair: {}", trading_pair); + } + my_node_runtime::pallet_teeracle::Event::AddedToWhitelist { + data_source, + enclave_fingerprint, + } => { println!("[+] Received AddedToWhitelist event"); - println!(" Data source: {}", source); - println!(" Currency: {:?}", mrenclave); - }, - my_node_runtime::pallet_teeracle::Event::RemovedFromWhitelist( - source, - mrenclave, - ) => { + println!(" Data source: {}", data_source); + println!(" fingerprint: {:?}", enclave_fingerprint); + } + my_node_runtime::pallet_teeracle::Event::RemovedFromWhitelist { + data_source, + enclave_fingerprint, + } => { println!("[+] Received RemovedFromWhitelist event"); - println!(" Data source: {}", source); - println!(" fingerprint: {:?}", mrenclave); - }, + println!(" Data source: {}", data_source); + println!(" fingerprint: {:?}", enclave_fingerprint); + } _ => { trace!("Ignoring unsupported pallet_teeracle event"); }, From f17e07e47f5f32b34e43996fa6eba6920726e3f4 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 1 Aug 2023 14:11:29 +0100 Subject: [PATCH 35/69] fix the merge --- sidechain/state/src/impls.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/sidechain/state/src/impls.rs b/sidechain/state/src/impls.rs index 10635b3bb4..0aab09c5e8 100644 --- a/sidechain/state/src/impls.rs +++ b/sidechain/state/src/impls.rs @@ -18,10 +18,8 @@ //! Implement the sidechain state traits. use core::fmt::Debug; - use crate::{Error, SidechainState, StateUpdate}; use codec::{Decode, Encode}; -use core::fmt::Debug; use frame_support::ensure; use itp_sgx_externalities::{SgxExternalitiesTrait, StateHash}; use itp_storage::keys::storage_value_key; From 627ea8cff8b99f671b5bca1a6137aaa6832f2896 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 1 Aug 2023 14:13:11 +0100 Subject: [PATCH 36/69] fmt --- cli/src/oracle/commands/listen_to_exchange.rs | 2 +- cli/src/oracle/commands/listen_to_oracle.rs | 12 +++++++++--- service/src/main.rs | 8 ++++---- sidechain/state/src/impls.rs | 2 +- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/cli/src/oracle/commands/listen_to_exchange.rs b/cli/src/oracle/commands/listen_to_exchange.rs index db26b5b0ec..95bab3ab38 100644 --- a/cli/src/oracle/commands/listen_to_exchange.rs +++ b/cli/src/oracle/commands/listen_to_exchange.rs @@ -67,7 +67,7 @@ pub fn count_exchange_rate_update_events(api: &ParentchainApi, duration: Duratio "ExchangeRateUpdated: TRADING_PAIR : {}, SRC : {}, VALUE :{:?}", trading_pair, data_source, exchange_rate ); - } + }, _ => trace!("ignoring teeracle event: {:?}", event), } } diff --git a/cli/src/oracle/commands/listen_to_oracle.rs b/cli/src/oracle/commands/listen_to_oracle.rs index 687b57ba75..d367bc020c 100644 --- a/cli/src/oracle/commands/listen_to_oracle.rs +++ b/cli/src/oracle/commands/listen_to_oracle.rs @@ -71,11 +71,17 @@ fn report_event_count(event_records: Vec) -> EventCount { info!("received event {:?}", event_record.event); if let RuntimeEvent::Teeracle(event) = &event_record.event { match &event { - my_node_runtime::pallet_teeracle::Event::OracleUpdated{oracle_data_name, data_source } => { + my_node_runtime::pallet_teeracle::Event::OracleUpdated { + oracle_data_name, + data_source, + } => { count += 1; debug!("Received OracleUpdated event"); - println!("OracleUpdated: ORACLE_NAME : {}, SRC : {}", oracle_data_name, data_source); - } + println!( + "OracleUpdated: ORACLE_NAME : {}, SRC : {}", + oracle_data_name, data_source + ); + }, // Can just remove this and ignore handling this case _ => debug!("ignoring teeracle event: {:?}", event), } diff --git a/service/src/main.rs b/service/src/main.rs index 3cfdd0c5c0..540572d8f5 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -704,7 +704,7 @@ fn print_events(events: Vec) { println!(" Data source: {}", data_source); println!(" trading pair: {}", trading_pair); println!(" Exchange rate: {:?}", exchange_rate); - } + }, my_node_runtime::pallet_teeracle::Event::ExchangeRateDeleted { data_source, trading_pair, @@ -712,7 +712,7 @@ fn print_events(events: Vec) { println!("[+] Received ExchangeRateDeleted event"); println!(" Data source: {}", data_source); println!(" trading pair: {}", trading_pair); - } + }, my_node_runtime::pallet_teeracle::Event::AddedToWhitelist { data_source, enclave_fingerprint, @@ -720,7 +720,7 @@ fn print_events(events: Vec) { println!("[+] Received AddedToWhitelist event"); println!(" Data source: {}", data_source); println!(" fingerprint: {:?}", enclave_fingerprint); - } + }, my_node_runtime::pallet_teeracle::Event::RemovedFromWhitelist { data_source, enclave_fingerprint, @@ -728,7 +728,7 @@ fn print_events(events: Vec) { println!("[+] Received RemovedFromWhitelist event"); println!(" Data source: {}", data_source); println!(" fingerprint: {:?}", enclave_fingerprint); - } + }, _ => { trace!("Ignoring unsupported pallet_teeracle event"); }, diff --git a/sidechain/state/src/impls.rs b/sidechain/state/src/impls.rs index 0aab09c5e8..669d4d3b2a 100644 --- a/sidechain/state/src/impls.rs +++ b/sidechain/state/src/impls.rs @@ -17,9 +17,9 @@ //! Implement the sidechain state traits. -use core::fmt::Debug; use crate::{Error, SidechainState, StateUpdate}; use codec::{Decode, Encode}; +use core::fmt::Debug; use frame_support::ensure; use itp_sgx_externalities::{SgxExternalitiesTrait, StateHash}; use itp_storage::keys::storage_value_key; From 7e718779a3b802ea10f40e892945026f2ac238f9 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 1 Aug 2023 16:08:12 +0100 Subject: [PATCH 37/69] fix renaming --- core/parentchain/indirect-calls-executor/src/executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index d3187518c0..5555175265 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -416,7 +416,7 @@ mod test { fn call_worker_unchecked_extrinsic() -> ParentchainUncheckedExtrinsic { let request = Request { shard: shard_id(), cyphertext: vec![1u8, 2u8] }; let dummy_metadata = NodeMetadataMock::new(); - let call_worker_indexes = dummy_metadata.call_worker_call_indexes().unwrap(); + let call_worker_indexes = dummy_metadata.invoke_call_indexes().unwrap(); ParentchainUncheckedExtrinsic::::new_signed( (call_worker_indexes, request), From 65864679b5ccc37605fd35351d2165f9766ddd5b Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 1 Aug 2023 19:19:34 +0100 Subject: [PATCH 38/69] fix unit tests --- core-primitives/types/src/lib.rs | 2 +- core/parentchain/indirect-calls-executor/src/executor.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core-primitives/types/src/lib.rs b/core-primitives/types/src/lib.rs index fa1d22f5a7..d22c4fefca 100644 --- a/core-primitives/types/src/lib.rs +++ b/core-primitives/types/src/lib.rs @@ -44,7 +44,7 @@ pub type IpfsHash = [u8; 46]; pub type MrEnclave = [u8; 32]; pub type ConfirmCallFn = ([u8; 2], ShardIdentifier, H256, Vec); -pub type ShieldFundsFn = ([u8; 2], Vec, Balance, ShardIdentifier); +pub type ShieldFundsFn = ([u8; 2], ShardIdentifier, Vec, Balance); pub type CallWorkerFn = ([u8; 2], Request); pub type Enclave = EnclaveGen; diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index 5555175265..1dc5af309d 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -306,7 +306,7 @@ mod test { test_fixtures([0u8; 32], NodeMetadataMock::new()); let opaque_extrinsic = - OpaqueExtrinsic::from_bytes(call_worker_unchecked_extrinsic().encode().as_slice()) + OpaqueExtrinsic::from_bytes(invoke_unchecked_extrinsic().encode().as_slice()) .unwrap(); let parentchain_block = ParentchainBlockBuilder::default() @@ -406,14 +406,14 @@ mod test { let shield_funds_indexes = dummy_metadata.shield_funds_call_indexes().unwrap(); ParentchainUncheckedExtrinsic::::new_signed( - (shield_funds_indexes, target_account, 1000u128, shard_id()), + (shield_funds_indexes, shard_id(), target_account, 1000u128), Address::Address32([1u8; 32]), MultiSignature::Ed25519(default_signature()), default_extrinsic_params().signed_extra(), ) } - fn call_worker_unchecked_extrinsic() -> ParentchainUncheckedExtrinsic { + fn invoke_unchecked_extrinsic() -> ParentchainUncheckedExtrinsic { let request = Request { shard: shard_id(), cyphertext: vec![1u8, 2u8] }; let dummy_metadata = NodeMetadataMock::new(); let call_worker_indexes = dummy_metadata.invoke_call_indexes().unwrap(); From abda4248df81d780e6d8896551e85c2072e54612 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 1 Aug 2023 19:21:35 +0100 Subject: [PATCH 39/69] fmt --- core/parentchain/indirect-calls-executor/src/executor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index 1dc5af309d..bf79703dbb 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -306,8 +306,7 @@ mod test { test_fixtures([0u8; 32], NodeMetadataMock::new()); let opaque_extrinsic = - OpaqueExtrinsic::from_bytes(invoke_unchecked_extrinsic().encode().as_slice()) - .unwrap(); + OpaqueExtrinsic::from_bytes(invoke_unchecked_extrinsic().encode().as_slice()).unwrap(); let parentchain_block = ParentchainBlockBuilder::default() .with_extrinsics(vec![opaque_extrinsic]) From dd8bc18c6d95740b9c18ad06c2150192efe212da Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 1 Aug 2023 19:39:48 +0100 Subject: [PATCH 40/69] dummy poke --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6d3dbbd6a8..848307c45b 100755 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ make ./bin/integritee-service test --all ``` + ### Integration Tests See [docker/README.md](docker/README.md) From 7e2e863614af852d9eedec63894f76a99a4bf88a Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 1 Aug 2023 20:53:00 +0100 Subject: [PATCH 41/69] fix enclave unit tests --- enclave-runtime/src/test/top_pool_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enclave-runtime/src/test/top_pool_tests.rs b/enclave-runtime/src/test/top_pool_tests.rs index d2b331e564..e2d319e7f5 100644 --- a/enclave-runtime/src/test/top_pool_tests.rs +++ b/enclave-runtime/src/test/top_pool_tests.rs @@ -192,7 +192,7 @@ fn create_shielding_call_extrinsic( let shield_funds_indexes = dummy_node_metadata.shield_funds_call_indexes().unwrap(); let opaque_extrinsic = OpaqueExtrinsic::from_bytes( ParentchainUncheckedExtrinsic::::new_signed( - (shield_funds_indexes, target_account, 1000u128, shard), + (shield_funds_indexes, shard, target_account, 1000u128), Address::Address32([1u8; 32]), MultiSignature::Ed25519(signature), default_extra_for_test.signed_extra(), From ecab3dc4218f62262c0c4bcef533331241659bf3 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 10:08:32 +0100 Subject: [PATCH 42/69] fixed api breaking changes --- Cargo.lock | 2 + cli/src/base_cli/mod.rs | 37 ++++------ .../node-api/api-client-extensions/src/lib.rs | 2 +- .../src/pallet_teerex.rs | 68 +++++++++++++------ .../src/pallet_teerex_api_mock.rs | 21 +++--- core-primitives/types/Cargo.toml | 3 + core-primitives/types/src/lib.rs | 2 + service/src/main.rs | 4 +- service/src/sync_state.rs | 2 +- service/src/tests/mock.rs | 2 +- .../peer-fetch/src/untrusted_peer_fetch.rs | 2 +- 11 files changed, 88 insertions(+), 57 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9de4d294e0..ed14085b72 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3871,6 +3871,7 @@ name = "itp-types" version = "0.9.0" dependencies = [ "chrono 0.4.26", + "enclave-bridge-primitives", "frame-system", "integritee-node-runtime", "itp-sgx-runtime-primitives", @@ -3882,6 +3883,7 @@ dependencies = [ "sp-core", "sp-runtime", "sp-std", + "teerex-primitives", ] [[package]] diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 117d1e317f..9059701872 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -141,29 +141,18 @@ fn print_sgx_metadata(cli: &Cli) -> CliResult { fn list_workers(cli: &Cli) -> CliResult { let api = get_chain_api(cli); - let wcount = api.enclave_count(None).unwrap(); - println!("number of workers registered: {}", wcount); - - let mut mr_enclaves = Vec::with_capacity(wcount as usize); - - for w in 1..=wcount { - let enclave = api.enclave(w, None).unwrap(); - if enclave.is_none() { - println!("error reading enclave data"); - continue - }; - let enclave = enclave.unwrap(); - let timestamp = - DateTime::::from(UNIX_EPOCH + Duration::from_millis(enclave.timestamp)); - let mr_enclave = enclave.mr_enclave.to_base58(); - println!("Enclave {}", w); - println!(" AccountId: {}", enclave.pubkey.to_ss58check()); - println!(" MRENCLAVE: {}", mr_enclave); - println!(" RA timestamp: {}", timestamp); - println!(" URL: {}", enclave.url); - - mr_enclaves.push(mr_enclave); - } - + let enclaves = api.all_enclaves(None).unwrap(); + println!("number of enclaves registered: {}", enclaves.len()); + let fingerprints = enclaves + .iter() + .map(|enclave| { + println!("Enclave {}", enclave.); + println!(" signer: {:?}", enclave.instance_signer()); + println!(" MRENCLAVE: {}", enclave.fingerprint()); + println!(" RA timestamp: {}", enclave.attestation_timestamp()); + println!(" URL: {}", enclave.instance_url().unwrap_or("none")); + enclave.fingerprint() + }) + .collect(); Ok(CliResultOk::MrEnclaveBase58 { mr_enclaves }) } diff --git a/core-primitives/node-api/api-client-extensions/src/lib.rs b/core-primitives/node-api/api-client-extensions/src/lib.rs index 4265e33393..b93473e385 100644 --- a/core-primitives/node-api/api-client-extensions/src/lib.rs +++ b/core-primitives/node-api/api-client-extensions/src/lib.rs @@ -23,7 +23,7 @@ pub mod account; pub mod chain; pub mod pallet_teeracle; pub mod pallet_teerex; -pub mod pallet_teerex_api_mock; +//pub mod pallet_teerex_api_mock; pub use account::*; pub use chain::*; diff --git a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs index 5f75f16fde..84f5902223 100644 --- a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs +++ b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs @@ -16,22 +16,31 @@ */ use crate::ApiResult; -use itp_types::{parentchain::Hash, Enclave, IpfsHash, ShardIdentifier}; -use substrate_api_client::{rpc::Request, Api, ExtrinsicParams, FrameSystemConfig, GetStorage}; +use codec::Decode; +use itp_types::{ + parentchain::Hash, AccountId, IpfsHash, MultiEnclave, ShardIdentifier, ShardStatus, +}; +use substrate_api_client::{ + log::error, rpc::Request, Api, ExtrinsicParams, FrameSystemConfig, GetStorage, +}; pub const TEEREX: &str = "Teerex"; -pub const SIDECHAIN: &str = "Sidechain"; +pub const ENCLAVE_BRIDGE: &str = "EnclaveBridge"; /// ApiClient extension that enables communication with the `teerex` pallet. pub trait PalletTeerexApi { - fn enclave(&self, index: u64, at_block: Option) -> ApiResult>; + fn enclave( + &self, + account: AccountId, + at_block: Option, + ) -> ApiResult>>>; fn enclave_count(&self, at_block: Option) -> ApiResult; - fn all_enclaves(&self, at_block: Option) -> ApiResult>; - fn worker_for_shard( + fn all_enclaves(&self, at_block: Option) -> ApiResult>>>; + fn primary_worker_for_shard( &self, shard: &ShardIdentifier, at_block: Option, - ) -> ApiResult>; + ) -> ApiResult>>>; fn latest_ipfs_hash( &self, shard: &ShardIdentifier, @@ -45,30 +54,49 @@ where Runtime: FrameSystemConfig, Params: ExtrinsicParams, { - fn enclave(&self, index: u64, at_block: Option) -> ApiResult> { - self.get_storage_map(TEEREX, "EnclaveRegistry", index, at_block) + fn enclave( + &self, + account: AccountId, + at_block: Option, + ) -> ApiResult>>> { + self.get_storage_map(TEEREX, "SovereignEnclaves", account, at_block) } fn enclave_count(&self, at_block: Option) -> ApiResult { - Ok(self.get_storage_value(TEEREX, "EnclaveCount", at_block)?.unwrap_or(0u64)) + Ok(self.all_enclaves(at_block)?.len() as u64) } - fn all_enclaves(&self, at_block: Option) -> ApiResult> { - let count = self.enclave_count(at_block)?; - let mut enclaves = Vec::with_capacity(count as usize); - for n in 1..=count { - enclaves.push(self.enclave(n, at_block)?.expect("None enclave")) + fn all_enclaves(&self, at_block: Option) -> ApiResult>>> { + let key_prefix = self.get_storage_map_key_prefix("Teerex", "SovereignEnclaves").unwrap(); + //fixme: solve this properly with infinite elements + let max_keys = 1000; + let storage_keys = + self.get_storage_keys_paged(Some(key_prefix), max_keys, None, at_block).unwrap(); + + if storage_keys.len() == max_keys as usize { + error!("results can be wrong because max keys reached for query") } - Ok(enclaves) + Ok(storage_keys + .iter() + .map(|key| self.get_storage_by_key(key, at_block).unwrap().unwrap()) + .collect()) } - fn worker_for_shard( + fn primary_worker_for_shard( &self, shard: &ShardIdentifier, at_block: Option, - ) -> ApiResult> { - self.get_storage_map(SIDECHAIN, "WorkerForShard", shard, at_block)? - .map_or_else(|| Ok(None), |w_index| self.enclave(w_index, at_block)) + ) -> ApiResult>>> { + self.get_storage_map(ENCLAVE_BRIDGE, "ShardStatus", shard, at_block)? + .map_or_else( + || Ok(None), + |statuses: ShardStatus| { + statuses.get(0).map_or_else( + || Ok(None), + |signerstatus| self.enclave(signerstatus.signer, at_block), + ) + }, + ) } fn latest_ipfs_hash( diff --git a/core-primitives/node-api/api-client-extensions/src/pallet_teerex_api_mock.rs b/core-primitives/node-api/api-client-extensions/src/pallet_teerex_api_mock.rs index 06da958b9d..cb63892da4 100644 --- a/core-primitives/node-api/api-client-extensions/src/pallet_teerex_api_mock.rs +++ b/core-primitives/node-api/api-client-extensions/src/pallet_teerex_api_mock.rs @@ -16,22 +16,27 @@ */ use crate::{pallet_teerex::PalletTeerexApi, ApiResult}; -use itp_types::{parentchain::Hash, Enclave, IpfsHash, ShardIdentifier}; +use itp_types::{parentchain::Hash, AccountId, IpfsHash, MultiEnclave, ShardIdentifier}; +use std::collections::HashMap; #[derive(Default)] pub struct PalletTeerexApiMock { - registered_enclaves: Vec, + registered_enclaves: HashMap>>, } impl PalletTeerexApiMock { - pub fn with_enclaves(mut self, enclaves: Vec) -> Self { - self.registered_enclaves.extend(enclaves); + pub fn with_enclaves(mut self, enclaves: Vec>>) -> Self { + enclaves.iter().map(|enclave| self.registered_enclaves.insert(enclave)); self } } impl PalletTeerexApi for PalletTeerexApiMock { - fn enclave(&self, index: u64, _at_block: Option) -> ApiResult> { + fn enclave( + &self, + account: AccountId, + _at_block: Option, + ) -> ApiResult>>> { Ok(self.registered_enclaves.get(index as usize).cloned()) } @@ -39,15 +44,15 @@ impl PalletTeerexApi for PalletTeerexApiMock { Ok(self.registered_enclaves.len() as u64) } - fn all_enclaves(&self, _at_block: Option) -> ApiResult> { + fn all_enclaves(&self, _at_block: Option) -> ApiResult>>> { Ok(self.registered_enclaves.clone()) } - fn worker_for_shard( + fn primary_worker_for_shard( &self, _shard: &ShardIdentifier, _at_block: Option, - ) -> ApiResult> { + ) -> ApiResult>>> { todo!() } diff --git a/core-primitives/types/Cargo.toml b/core-primitives/types/Cargo.toml index 32eb599ffb..2c7254636f 100644 --- a/core-primitives/types/Cargo.toml +++ b/core-primitives/types/Cargo.toml @@ -26,6 +26,9 @@ sp-std = { default-features = false, git = "https://github.com/paritytech/substr # integritee-node my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } + [features] default = ["std"] diff --git a/core-primitives/types/src/lib.rs b/core-primitives/types/src/lib.rs index d22c4fefca..28463dec65 100644 --- a/core-primitives/types/src/lib.rs +++ b/core-primitives/types/src/lib.rs @@ -47,6 +47,8 @@ pub type ConfirmCallFn = ([u8; 2], ShardIdentifier, H256, Vec); pub type ShieldFundsFn = ([u8; 2], ShardIdentifier, Vec, Balance); pub type CallWorkerFn = ([u8; 2], Request); +pub type ShardStatus = Vec>; +pub use teerex_primitives::MultiEnclave; pub type Enclave = EnclaveGen; /// Simple blob to hold an encoded call diff --git a/service/src/main.rs b/service/src/main.rs index 540572d8f5..6315d2f77b 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -590,7 +590,9 @@ fn spawn_worker_for_shard_polling( loop { info!("Polling for worker for shard ({} seconds interval)", POLL_INTERVAL_SECS); - if let Ok(Some(enclave)) = node_api.worker_for_shard(&shard_for_initialized, None) { + if let Ok(Some(enclave)) = + node_api.primary_worker_for_shard(&shard_for_initialized, None) + { // Set that the service is initialized. initialization_handler.worker_for_shard_registered(); println!("[+] Found `WorkerForShard` on parentchain state: {:?}", enclave.pubkey); diff --git a/service/src/sync_state.rs b/service/src/sync_state.rs index 12ff9bec2a..56fccc8198 100644 --- a/service/src/sync_state.rs +++ b/service/src/sync_state.rs @@ -75,7 +75,7 @@ async fn get_author_url_of_last_finalized_sidechain_block Result { let enclave = node_api - .worker_for_shard(shard, None)? + .primary_worker_for_shard(shard, None)? .ok_or_else(|| Error::NoWorkerForShardFound(*shard))?; let worker_api_direct = DirectWorkerApi::new(enclave.url); Ok(worker_api_direct.get_mu_ra_url()?) diff --git a/service/src/tests/mock.rs b/service/src/tests/mock.rs index 664005eaa1..3e43b1c567 100644 --- a/service/src/tests/mock.rs +++ b/service/src/tests/mock.rs @@ -42,7 +42,7 @@ impl PalletTeerexApi for TestNodeApi { Ok(enclaves()) } - fn worker_for_shard( + fn primary_worker_for_shard( &self, _: &ShardIdentifier, _at_block: Option, diff --git a/sidechain/peer-fetch/src/untrusted_peer_fetch.rs b/sidechain/peer-fetch/src/untrusted_peer_fetch.rs index 7ff9434103..2d2b79ce0e 100644 --- a/sidechain/peer-fetch/src/untrusted_peer_fetch.rs +++ b/sidechain/peer-fetch/src/untrusted_peer_fetch.rs @@ -50,7 +50,7 @@ where let node_api = self.node_api_factory.create_api()?; let validateer = node_api - .worker_for_shard(shard, None)? + .primary_worker_for_shard(shard, None)? .ok_or_else(|| Error::NoPeerFoundForShard(*shard))?; let trusted_worker_client = DirectWorkerApi::new(validateer.url); From e211e5f024343c535d551a144700f668e1ff858e Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 12:05:29 +0100 Subject: [PATCH 43/69] quite some fixes --- cli/src/base_cli/mod.rs | 7 +-- .../enclave-api/src/enclave_base.rs | 7 +-- .../src/pallet_teerex.rs | 4 +- core-primitives/types/src/lib.rs | 2 +- service/src/main.rs | 11 +++-- service/src/sync_state.rs | 10 +++-- service/src/tests/mock.rs | 44 +++++++++++++++---- service/src/tests/mocks/enclave_api_mock.rs | 2 +- service/src/utils.rs | 4 +- service/src/worker.rs | 4 +- .../peer-fetch/src/untrusted_peer_fetch.rs | 7 ++- 11 files changed, 71 insertions(+), 31 deletions(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 9059701872..84d6045858 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -26,6 +26,7 @@ use crate::{ use base58::ToBase58; use chrono::{DateTime, Utc}; use clap::Subcommand; +use codec::Encode; use itc_rpc_client::direct_client::DirectApi; use itp_node_api::api_client::PalletTeerexApi; use sp_core::crypto::Ss58Codec; @@ -146,13 +147,13 @@ fn list_workers(cli: &Cli) -> CliResult { let fingerprints = enclaves .iter() .map(|enclave| { - println!("Enclave {}", enclave.); + println!("Enclave"); println!(" signer: {:?}", enclave.instance_signer()); println!(" MRENCLAVE: {}", enclave.fingerprint()); println!(" RA timestamp: {}", enclave.attestation_timestamp()); - println!(" URL: {}", enclave.instance_url().unwrap_or("none")); + println!(" URL: {}", enclave.instance_url().unwrap_or("none".encode())); enclave.fingerprint() }) .collect(); - Ok(CliResultOk::MrEnclaveBase58 { mr_enclaves }) + Ok(CliResultOk::MrEnclaveBase58 { fingerprints }) } diff --git a/core-primitives/enclave-api/src/enclave_base.rs b/core-primitives/enclave-api/src/enclave_base.rs index d6b67480bf..86ffceaeb9 100644 --- a/core-primitives/enclave-api/src/enclave_base.rs +++ b/core-primitives/enclave-api/src/enclave_base.rs @@ -29,6 +29,7 @@ use log::*; use sgx_crypto_helper::rsa3072::Rsa3072PubKey; use sgx_types::*; use sp_core::ed25519; +use teerex_primitives::EnclaveFingerprint; /// Trait for base/common Enclave API functions pub trait EnclaveBase: Send + Sync + 'static { @@ -67,7 +68,7 @@ pub trait EnclaveBase: Send + Sync + 'static { fn get_ecc_signing_pubkey(&self) -> EnclaveResult; - fn get_mrenclave(&self) -> EnclaveResult<[u8; MR_ENCLAVE_SIZE]>; + fn get_fingerprint(&self) -> EnclaveResult; } /// EnclaveApi implementation for Enclave struct @@ -236,7 +237,7 @@ impl EnclaveBase for Enclave { Ok(ed25519::Public::from_raw(pubkey)) } - fn get_mrenclave(&self) -> EnclaveResult<[u8; MR_ENCLAVE_SIZE]> { + fn get_fingerprint(&self) -> EnclaveResult { let mut retval = sgx_status_t::SGX_SUCCESS; let mut mr_enclave = [0u8; MR_ENCLAVE_SIZE]; @@ -252,7 +253,7 @@ impl EnclaveBase for Enclave { ensure!(result == sgx_status_t::SGX_SUCCESS, Error::Sgx(result)); ensure!(retval == sgx_status_t::SGX_SUCCESS, Error::Sgx(retval)); - Ok(mr_enclave) + Ok(mr_enclave.into()) } } diff --git a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs index 84f5902223..eb9494043d 100644 --- a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs +++ b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs @@ -78,7 +78,7 @@ where } Ok(storage_keys .iter() - .map(|key| self.get_storage_by_key(key, at_block).unwrap().unwrap()) + .map(|key| self.get_storage_by_key_hash(key.clone(), at_block).unwrap().unwrap()) .collect()) } @@ -93,7 +93,7 @@ where |statuses: ShardStatus| { statuses.get(0).map_or_else( || Ok(None), - |signerstatus| self.enclave(signerstatus.signer, at_block), + |signerstatus| self.enclave(signerstatus.signer.clone(), at_block), ) }, ) diff --git a/core-primitives/types/src/lib.rs b/core-primitives/types/src/lib.rs index 28463dec65..7acdd26bed 100644 --- a/core-primitives/types/src/lib.rs +++ b/core-primitives/types/src/lib.rs @@ -48,7 +48,7 @@ pub type ShieldFundsFn = ([u8; 2], ShardIdentifier, Vec, Balance); pub type CallWorkerFn = ([u8; 2], Request); pub type ShardStatus = Vec>; -pub use teerex_primitives::MultiEnclave; +pub use teerex_primitives::{MultiEnclave, SgxBuildMode, SgxEnclave, SgxReportData, SgxStatus}; pub type Enclave = EnclaveGen; /// Simple blob to hold an encoded call diff --git a/service/src/main.rs b/service/src/main.rs index 6315d2f77b..724bb4d66d 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -249,7 +249,7 @@ fn main() { enclave.dump_dcap_ra_cert_to_disk().unwrap(); } } else if matches.is_present("mrenclave") { - println!("{}", enclave.get_mrenclave().unwrap().encode().to_base58()); + println!("{}", enclave.get_fingerprint().unwrap().encode().to_base58()); } else if let Some(sub_matches) = matches.subcommand_matches("init-shard") { setup::init_shard( enclave.as_ref(), @@ -325,8 +325,8 @@ fn start_worker( } // ------------------------------------------------------------------------ // initialize the enclave - let mrenclave = enclave.get_mrenclave().unwrap(); - println!("MRENCLAVE={}", mrenclave.to_base58()); + let mrenclave = enclave.get_fingerprint().unwrap(); + println!("MRENCLAVE={}", mrenclave.0.to_base58()); println!("MRENCLAVE in hex {:?}", hex::encode(mrenclave)); // ------------------------------------------------------------------------ @@ -595,7 +595,10 @@ fn spawn_worker_for_shard_polling( { // Set that the service is initialized. initialization_handler.worker_for_shard_registered(); - println!("[+] Found `WorkerForShard` on parentchain state: {:?}", enclave.pubkey); + println!( + "[+] Found `WorkerForShard` on parentchain state: {:?}", + enclave.instance_signer() + ); break } thread::sleep(Duration::from_secs(POLL_INTERVAL_SECS)); diff --git a/service/src/sync_state.rs b/service/src/sync_state.rs index 56fccc8198..6c70a5379e 100644 --- a/service/src/sync_state.rs +++ b/service/src/sync_state.rs @@ -77,7 +77,8 @@ async fn get_author_url_of_last_finalized_sidechain_block Result { - let self_mr_enclave = enclave_api.get_mrenclave()?; + let self_mr_enclave = enclave_api.get_fingerprint()?; let first_enclave = node_api .all_enclaves(None)? .into_iter() - .find(|e| e.mr_enclave == self_mr_enclave) + .find(|e| e.fingerprint() == self_mr_enclave) .ok_or(Error::NoPeerWorkerFound)?; - let worker_api_direct = DirectWorkerApi::new(first_enclave.url); + let worker_api_direct = + DirectWorkerApi::new(String::from_utf8(first_enclave.instance_url().unwrap()).unwrap()); Ok(worker_api_direct.get_mu_ra_url()?) } diff --git a/service/src/tests/mock.rs b/service/src/tests/mock.rs index 3e43b1c567..9e6c0eac34 100644 --- a/service/src/tests/mock.rs +++ b/service/src/tests/mock.rs @@ -15,30 +15,58 @@ */ +use codec::Encode; use itp_node_api::api_client::{ApiResult, PalletTeerexApi}; -use itp_types::{Enclave, ShardIdentifier, H256 as Hash}; +use itp_types::{ + AccountId, MultiEnclave, SgxBuildMode, SgxEnclave, SgxReportData, SgxStatus, ShardIdentifier, + H256 as Hash, +}; pub struct TestNodeApi; pub const W1_URL: &str = "127.0.0.1:22222"; pub const W2_URL: &str = "127.0.0.1:33333"; -pub fn enclaves() -> Vec { +pub fn enclaves() -> Vec>> { vec![ - Enclave::new([0; 32].into(), [1; 32], 1, format!("wss://{}", W1_URL)), - Enclave::new([2; 32].into(), [3; 32], 2, format!("wss://{}", W2_URL)), + MultiEnclave::from( + SgxEnclave::new( + SgxReportData::default(), + [1; 32], + [1; 32], + 1, + SgxBuildMode::Production, + SgxStatus::Ok, + ) + .with_url(format!("wss://{}", W1_URL).encode()), + ), + MultiEnclave::from( + SgxEnclave::new( + SgxReportData::default(), + [2; 32], + [2; 32], + 2, + SgxBuildMode::Production, + SgxStatus::Ok, + ) + .with_url(format!("wss://{}", W2_URL).encode()), + ), ] } impl PalletTeerexApi for TestNodeApi { - fn enclave(&self, index: u64, _at_block: Option) -> ApiResult> { - Ok(Some(enclaves().remove(index as usize))) + fn enclave( + &self, + _account: AccountId, + _at_block: Option, + ) -> ApiResult>>> { + Ok(Some(enclaves().remove(0))) } fn enclave_count(&self, _at_block: Option) -> ApiResult { unreachable!() } - fn all_enclaves(&self, _at_block: Option) -> ApiResult> { + fn all_enclaves(&self, _at_block: Option) -> ApiResult>>> { Ok(enclaves()) } @@ -46,7 +74,7 @@ impl PalletTeerexApi for TestNodeApi { &self, _: &ShardIdentifier, _at_block: Option, - ) -> ApiResult> { + ) -> ApiResult>>> { unreachable!() } fn latest_ipfs_hash( diff --git a/service/src/tests/mocks/enclave_api_mock.rs b/service/src/tests/mocks/enclave_api_mock.rs index f32176332c..f94ade4787 100644 --- a/service/src/tests/mocks/enclave_api_mock.rs +++ b/service/src/tests/mocks/enclave_api_mock.rs @@ -80,7 +80,7 @@ impl EnclaveBase for EnclaveMock { unreachable!() } - fn get_mrenclave(&self) -> EnclaveResult<[u8; MR_ENCLAVE_SIZE]> { + fn get_fingerprint(&self) -> EnclaveResult<[u8; MR_ENCLAVE_SIZE]> { Ok([1u8; MR_ENCLAVE_SIZE]) } } diff --git a/service/src/utils.rs b/service/src/utils.rs index c936665350..fd0b60fe82 100644 --- a/service/src/utils.rs +++ b/service/src/utils.rs @@ -33,8 +33,8 @@ pub fn extract_shard( shard.into() }, _ => { - let mrenclave = enclave_api.get_mrenclave().unwrap(); - info!("no shard specified. using mrenclave as id: {}", mrenclave.to_base58()); + let mrenclave = enclave_api.get_fingerprint().unwrap(); + info!("no shard specified. using mrenclave as id: {}", mrenclave.0.to_base58()); ShardIdentifier::from_slice(&mrenclave[..]) }, } diff --git a/service/src/worker.rs b/service/src/worker.rs index 18e67d82eb..a052245a14 100644 --- a/service/src/worker.rs +++ b/service/src/worker.rs @@ -149,8 +149,8 @@ where let mut peer_urls = Vec::::new(); for enclave in enclaves { // FIXME: This is temporary only, as block broadcasting should be moved to trusted ws server. - let enclave_url = enclave.url.clone(); - let worker_api_direct = DirectWorkerApi::new(enclave.url); + let enclave_url = String::from_utf8(enclave.instance_url().unwrap()).unwrap(); + let worker_api_direct = DirectWorkerApi::new(enclave_url.clone()); match worker_api_direct.get_untrusted_worker_url() { Ok(untrusted_worker_url) => { peer_urls.push(untrusted_worker_url); diff --git a/sidechain/peer-fetch/src/untrusted_peer_fetch.rs b/sidechain/peer-fetch/src/untrusted_peer_fetch.rs index 2d2b79ce0e..cfdabbfbf4 100644 --- a/sidechain/peer-fetch/src/untrusted_peer_fetch.rs +++ b/sidechain/peer-fetch/src/untrusted_peer_fetch.rs @@ -53,7 +53,12 @@ where .primary_worker_for_shard(shard, None)? .ok_or_else(|| Error::NoPeerFoundForShard(*shard))?; - let trusted_worker_client = DirectWorkerApi::new(validateer.url); + let trusted_worker_client = DirectWorkerApi::new( + validateer + .instance_url() + .map(|url| String::from_utf8(url).unwrap_or_default()) + .ok_or_else(|| Error::NoPeerFoundForShard(*shard))?, + ); Ok(trusted_worker_client.get_untrusted_worker_url()?) } } From 2b312af293662c549f3169e3e9254e9ea5b128d0 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 12:25:26 +0100 Subject: [PATCH 44/69] build works. needs cleanup --- cli/src/base_cli/mod.rs | 9 ++- core-primitives/types/Cargo.toml | 6 +- enclave-runtime/Cargo.lock | 111 ++++++++++++++++++++++--------- 3 files changed, 89 insertions(+), 37 deletions(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 84d6045858..9b68acde05 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -151,9 +151,12 @@ fn list_workers(cli: &Cli) -> CliResult { println!(" signer: {:?}", enclave.instance_signer()); println!(" MRENCLAVE: {}", enclave.fingerprint()); println!(" RA timestamp: {}", enclave.attestation_timestamp()); - println!(" URL: {}", enclave.instance_url().unwrap_or("none".encode())); - enclave.fingerprint() + println!( + " URL: {}", + String::from_utf8(enclave.instance_url().unwrap_or("none".encode())).unwrap() + ); + enclave.fingerprint().0.to_base58() }) .collect(); - Ok(CliResultOk::MrEnclaveBase58 { fingerprints }) + Ok(CliResultOk::MrEnclaveBase58 { mr_enclaves: fingerprints }) } diff --git a/core-primitives/types/Cargo.toml b/core-primitives/types/Cargo.toml index 2c7254636f..14b8c354e8 100644 --- a/core-primitives/types/Cargo.toml +++ b/core-primitives/types/Cargo.toml @@ -26,8 +26,8 @@ sp-std = { default-features = false, git = "https://github.com/paritytech/substr # integritee-node my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } -enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", default-features = false, branch = "polkadot-v0.9.42" } +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", default-features = false, branch = "polkadot-v0.9.42" } [features] @@ -40,6 +40,8 @@ std = [ "serde_json/std", "primitive-types/std", "itp-sgx-runtime-primitives/std", + "teerex-primitives/std", + "enclave-bridge-primitives/std", # substrate "frame-system/std", "pallet-balances/std", diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index 539171a7fc..52c125b8e8 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -484,6 +484,19 @@ dependencies = [ "generic-array 0.14.7", ] +[[package]] +name = "common-primitives" +version = "0.1.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" +dependencies = [ + "derive_more", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "common-primitives" version = "0.1.0" @@ -705,6 +718,22 @@ dependencies = [ "zeroize", ] +[[package]] +name = "enclave-bridge-primitives" +version = "0.1.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" +dependencies = [ + "common-primitives 0.1.0 (git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42)", + "log", + "parity-scale-codec", + "scale-info", + "serde 1.0.164", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + [[package]] name = "enclave-runtime" version = "0.9.0" @@ -783,7 +812,7 @@ dependencies = [ "sp-core", "sp-runtime", "sp-std", - "teerex-primitives", + "teerex-primitives 0.1.0 (git+https://github.com/integritee-network/pallets)", "webpki", ] @@ -1051,7 +1080,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "bitflags", "environmental 1.1.4", @@ -1081,7 +1110,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "Inflector", "cfg-expr", @@ -1097,7 +1126,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1109,7 +1138,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "proc-macro2", "quote 1.0.28", @@ -1119,7 +1148,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-support", "log", @@ -2299,6 +2328,7 @@ name = "itp-types" version = "0.9.0" dependencies = [ "chrono 0.4.26", + "enclave-bridge-primitives", "frame-system", "itp-sgx-runtime-primitives", "pallet-balances", @@ -2309,6 +2339,7 @@ dependencies = [ "sp-core", "sp-runtime", "sp-std", + "teerex-primitives 0.1.0 (git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42)", ] [[package]] @@ -4002,7 +4033,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "log", "parity-scale-codec", @@ -4018,7 +4049,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "Inflector", "blake2", @@ -4032,7 +4063,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -4044,7 +4075,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "integer-sqrt", "num-traits 0.2.15", @@ -4112,7 +4143,7 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "array-bytes 4.2.0", "bitflags", @@ -4143,7 +4174,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "blake2b_simd 1.0.1", "byteorder 1.4.3", @@ -4157,7 +4188,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "proc-macro2", "quote 1.0.28", @@ -4168,7 +4199,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "proc-macro2", "quote 1.0.28", @@ -4178,7 +4209,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "environmental 1.1.4", "parity-scale-codec", @@ -4189,7 +4220,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -4222,7 +4253,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-metadata 15.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec", @@ -4243,7 +4274,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "either", "hash256-std-hasher", @@ -4263,7 +4294,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", @@ -4281,7 +4312,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "Inflector", "proc-macro-crate", @@ -4306,7 +4337,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -4318,12 +4349,12 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "ref-cast", @@ -4345,7 +4376,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "sp-std", @@ -4380,7 +4411,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -4393,7 +4424,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -4404,7 +4435,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -4414,7 +4445,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", @@ -4483,9 +4514,9 @@ dependencies = [ [[package]] name = "subtle" -version = "2.5.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" @@ -4535,12 +4566,28 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" +[[package]] +name = "teerex-primitives" +version = "0.1.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42#5c52182eb3a5156e8d9f69c10ca1441214ee6662" +dependencies = [ + "common-primitives 0.1.0 (git+https://github.com/integritee-network/pallets.git?branch=polkadot-v0.9.42)", + "derive_more", + "log", + "parity-scale-codec", + "scale-info", + "serde 1.0.164", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "teerex-primitives" version = "0.1.0" source = "git+https://github.com/integritee-network/pallets#5c52182eb3a5156e8d9f69c10ca1441214ee6662" dependencies = [ - "common-primitives", + "common-primitives 0.1.0 (git+https://github.com/integritee-network/pallets)", "derive_more", "log", "parity-scale-codec", @@ -4715,7 +4762,7 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 1.0.0", + "cfg-if 0.1.10", "digest 0.10.7", "static_assertions", ] From ffc6feb2332b61f3de9c99b427d8c663979f72e3 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 12:26:53 +0100 Subject: [PATCH 45/69] taplo fmt --- core-primitives/types/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-primitives/types/Cargo.toml b/core-primitives/types/Cargo.toml index 14b8c354e8..49747cdc99 100644 --- a/core-primitives/types/Cargo.toml +++ b/core-primitives/types/Cargo.toml @@ -25,9 +25,9 @@ sp-runtime = { default-features = false, git = "https://github.com/paritytech/su sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # integritee-node +enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", default-features = false, branch = "polkadot-v0.9.42" } my-node-runtime = { package = "integritee-node-runtime", optional = true, git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", default-features = false, branch = "polkadot-v0.9.42" } -enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", default-features = false, branch = "polkadot-v0.9.42" } [features] From 1b093c5cc9c2dae0010853c0f93b3316b06f0e66 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 12:28:35 +0100 Subject: [PATCH 46/69] dummy poke --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 848307c45b..6d3dbbd6a8 100755 --- a/README.md +++ b/README.md @@ -33,7 +33,6 @@ make ./bin/integritee-service test --all ``` - ### Integration Tests See [docker/README.md](docker/README.md) From a12cce29656c5da6af93e562edd52ad998395182 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 12:44:49 +0100 Subject: [PATCH 47/69] fix mock --- service/src/tests/mocks/enclave_api_mock.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/src/tests/mocks/enclave_api_mock.rs b/service/src/tests/mocks/enclave_api_mock.rs index f94ade4787..21a64323be 100644 --- a/service/src/tests/mocks/enclave_api_mock.rs +++ b/service/src/tests/mocks/enclave_api_mock.rs @@ -17,6 +17,7 @@ use codec::{Decode, Encode}; use core::fmt::Debug; +use enclave_bridge_primitives::EnclaveFingerprint; use frame_support::sp_runtime::traits::Block as ParentchainBlockTrait; use itc_parentchain::primitives::{ ParentchainInitParams, @@ -80,8 +81,8 @@ impl EnclaveBase for EnclaveMock { unreachable!() } - fn get_fingerprint(&self) -> EnclaveResult<[u8; MR_ENCLAVE_SIZE]> { - Ok([1u8; MR_ENCLAVE_SIZE]) + fn get_fingerprint(&self) -> EnclaveResult { + Ok([1u8; MR_ENCLAVE_SIZE].into()) } } From 92eba7f2331ad7c864ba5ee705adbc3e34d44c61 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 14:30:28 +0100 Subject: [PATCH 48/69] fix mrenclave encoding to base58 for cli --- cli/src/base_cli/mod.rs | 2 +- service/src/ocall_bridge/worker_on_chain_ocall.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 9b68acde05..0010121df7 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -149,7 +149,7 @@ fn list_workers(cli: &Cli) -> CliResult { .map(|enclave| { println!("Enclave"); println!(" signer: {:?}", enclave.instance_signer()); - println!(" MRENCLAVE: {}", enclave.fingerprint()); + println!(" MRENCLAVE: {}", enclave.fingerprint().0.to_base58()); println!(" RA timestamp: {}", enclave.attestation_timestamp()); println!( " URL: {}", diff --git a/service/src/ocall_bridge/worker_on_chain_ocall.rs b/service/src/ocall_bridge/worker_on_chain_ocall.rs index c5b780010f..1dfea987cf 100644 --- a/service/src/ocall_bridge/worker_on_chain_ocall.rs +++ b/service/src/ocall_bridge/worker_on_chain_ocall.rs @@ -88,7 +88,7 @@ where let api = self.node_api_factory.create_api()?; for call in extrinsics.into_iter() { if let Err(e) = api.submit_opaque_extrinsic(call.encode().into()) { - error!("Could not send extrsinic to node: {:?}", e); + error!("Could not send extrsinic to node: {:?}, error: {:?}", call, e); } } } From d62ec8c6b0ad940720dabc13295a148764ae1c76 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 15:58:42 +0100 Subject: [PATCH 49/69] fix register enclave extrinsics with new skip ra property --- enclave-runtime/src/attestation.rs | 55 ++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/enclave-runtime/src/attestation.rs b/enclave-runtime/src/attestation.rs index 45981ba522..f84d9cae11 100644 --- a/enclave-runtime/src/attestation.rs +++ b/enclave-runtime/src/attestation.rs @@ -199,7 +199,11 @@ pub fn generate_dcap_ra_extrinsic_internal( skip_ra, )?; - generate_dcap_ra_extrinsic_from_quote_internal(url, &dcap_quote) + if skip_ra { + generate_dcap_ra_extrinsic_from_quote_internal(url, &dcap_quote) + } else { + generate_dcap_skip_ra_extrinsic_from_quote_internal(url, &dcap_quote) + } } #[no_mangle] @@ -300,6 +304,28 @@ pub fn generate_dcap_ra_extrinsic_from_quote_internal( create_extrinsics(call) } +pub fn generate_dcap_skip_ra_extrinsic_from_quote_internal( + url: String, + quote: &[u8], +) -> EnclaveResult { + let node_metadata_repo = get_node_metadata_repository_from_solo_or_parachain()?; + info!(" [Enclave] Compose register enclave (skip-ra) getting callIDs:"); + + let call_ids = node_metadata_repo + .get_from_metadata(|m| m.register_sgx_enclave_call_indexes())? + .map_err(MetadataProviderError::MetadataError)?; + info!(" [Enclave] Compose register enclave (skip-ra) call DCAP IDs: {:?}", call_ids); + let call = OpaqueCall::from_tuple(&( + call_ids, + quote, + Some(url), + SgxAttestationMethod::Skip { proxied: false }, + )); + + info!(" [Enclave] Compose register enclave (skip-ra) got extrinsic, returning"); + create_extrinsics(call) +} + fn generate_ias_ra_extrinsic_internal( url: String, skip_ra: bool, @@ -307,7 +333,11 @@ fn generate_ias_ra_extrinsic_internal( let attestation_handler = GLOBAL_ATTESTATION_HANDLER_COMPONENT.get()?; let cert_der = attestation_handler.generate_ias_ra_cert(skip_ra)?; - generate_ias_ra_extrinsic_from_der_cert_internal(url, &cert_der) + if skip_ra { + generate_ias_ra_extrinsic_from_der_cert_internal(url, &cert_der) + } else { + generate_ias_skip_ra_extrinsic_from_der_cert_internal(url, &cert_der) + } } pub fn generate_ias_ra_extrinsic_from_der_cert_internal( @@ -326,6 +356,27 @@ pub fn generate_ias_ra_extrinsic_from_der_cert_internal( create_extrinsics(call) } +pub fn generate_ias_skip_ra_extrinsic_from_der_cert_internal( + url: String, + cert_der: &[u8], +) -> EnclaveResult { + let node_metadata_repo = get_node_metadata_repository_from_solo_or_parachain()?; + + info!(" [Enclave] Compose register ias enclave (skip-ra) call"); + let call_ids = node_metadata_repo + .get_from_metadata(|m| m.register_sgx_enclave_call_indexes())? + .map_err(MetadataProviderError::MetadataError)?; + + let call = OpaqueCall::from_tuple(&( + call_ids, + cert_der, + Some(url), + SgxAttestationMethod::Skip { proxied: false }, + )); + + create_extrinsics(call) +} + fn create_extrinsics(call: OpaqueCall) -> EnclaveResult { let extrinsics_factory = get_extrinsic_factory_from_solo_or_parachain()?; let extrinsics = extrinsics_factory.create_extrinsics(&[call], None)?; From bf0672856890df752d63802bf24ad9bea9812eda Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 20:17:10 +0100 Subject: [PATCH 50/69] properly fail if enclave isn't registered --- Cargo.lock | 1 + .../src/pallet_teerex.rs | 6 +-- service/Cargo.toml | 1 + service/src/main.rs | 52 +++++++++++++------ service/src/tests/mock.rs | 2 +- 5 files changed, 43 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed14085b72..80a71c03e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2898,6 +2898,7 @@ dependencies = [ "sp-keyring", "sp-runtime", "substrate-api-client", + "teerex-primitives", "thiserror 1.0.40", "tokio", "warp", diff --git a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs index eb9494043d..89bda09e90 100644 --- a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs +++ b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs @@ -31,7 +31,7 @@ pub const ENCLAVE_BRIDGE: &str = "EnclaveBridge"; pub trait PalletTeerexApi { fn enclave( &self, - account: AccountId, + account: &AccountId, at_block: Option, ) -> ApiResult>>>; fn enclave_count(&self, at_block: Option) -> ApiResult; @@ -56,7 +56,7 @@ where { fn enclave( &self, - account: AccountId, + account: &AccountId, at_block: Option, ) -> ApiResult>>> { self.get_storage_map(TEEREX, "SovereignEnclaves", account, at_block) @@ -93,7 +93,7 @@ where |statuses: ShardStatus| { statuses.get(0).map_or_else( || Ok(None), - |signerstatus| self.enclave(signerstatus.signer.clone(), at_block), + |signerstatus| self.enclave(&signerstatus.signer, at_block), ) }, ) diff --git a/service/Cargo.toml b/service/Cargo.toml index 5e9750d525..81093df2be 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -64,6 +64,7 @@ my-node-runtime = { package = "integritee-node-runtime", git = "https://github.c sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } # Substrate dependencies diff --git a/service/src/main.rs b/service/src/main.rs index 724bb4d66d..39879563c9 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -75,6 +75,7 @@ use substrate_api_client::{ api::XtStatus, rpc::HandleSubscription, GetHeader, SubmitAndWatch, SubscribeChain, SubscribeEvents, }; +use teerex_primitives::AnySigner; #[cfg(feature = "dcap")] use sgx_verify::extract_tcb_info_from_raw_dcap_quote; @@ -82,7 +83,7 @@ use sgx_verify::extract_tcb_info_from_raw_dcap_quote; use enclave_bridge_primitives::ShardIdentifier; use sp_core::crypto::{AccountId32, Ss58Codec}; use sp_keyring::AccountKeyring; -use sp_runtime::traits::Header as HeaderTrait; +use sp_runtime::{traits::Header as HeaderTrait, MultiSigner}; use std::{str, sync::Arc, thread, time::Duration}; mod account_funding; @@ -482,9 +483,10 @@ fn start_worker( #[cfg(feature = "dcap")] let register_xt = move || enclave2.generate_dcap_ra_extrinsic(&trusted_url, skip_ra).unwrap(); + let tee_accountid_clone = tee_accountid.clone(); let send_register_xt = move || { println!("[+] Send register enclave extrinsic"); - send_extrinsic(register_xt(), &node_api2, &tee_accountid.clone(), is_development_mode) + send_extrinsic(register_xt(), &node_api2, &tee_accountid_clone, is_development_mode) }; let register_enclave_block_hash = send_register_xt().unwrap(); @@ -493,12 +495,12 @@ fn start_worker( node_api.get_header(Some(register_enclave_block_hash)).unwrap().unwrap(); let we_are_primary_validateer = - we_are_primary_validateer(&node_api, ®ister_enclave_xt_header).unwrap(); + we_are_primary_worker(&node_api, shard, &tee_accountid).unwrap(); if we_are_primary_validateer { - println!("[+] We are the primary validateer"); + println!("[+] We are the primary worker"); } else { - println!("[+] We are NOT the primary validateer"); + println!("[+] We are NOT the primary worker"); } initialization_handler.registered_on_parentchain(); @@ -913,16 +915,36 @@ fn enclave_account(enclave_api: &E) -> AccountId32 { } /// Checks if we are the first validateer to register on the parentchain. -fn we_are_primary_validateer( +fn we_are_primary_worker( node_api: &ParentchainApi, - register_enclave_xt_header: &Header, + shard: &ShardIdentifier, + enclave_account: &AccountId32, ) -> Result { - let enclave_count_of_previous_block = - node_api.enclave_count(Some(*register_enclave_xt_header.parent_hash()))?; - trace!( - "enclave count is {} for previous block 0x{:?}", - enclave_count_of_previous_block, - register_enclave_xt_header.parent_hash() - ); - Ok(enclave_count_of_previous_block == 0) + // are we registered? else fail. + node_api + .enclave(enclave_account, None) + .unwrap() + .expect("our enclave should be registered at this point"); + trace!("our enclave is registered"); + match node_api.primary_worker_for_shard(shard, None).unwrap() { + Some(enclave) => + match enclave.instance_signer() { + AnySigner::Known(MultiSigner::Ed25519(primary)) => + if primary.encode() == enclave_account.encode() { + debug!("We are primary worker on this shard adn we have been previously running."); + Ok(true) + } else { + debug!("The primary worker is {}", primary.to_ss58check()); + Ok(false) + }, + _ => { + warn!("the primary worker is of unknown type"); + Ok(false) + }, + }, + None => { + debug!("We are the primary worker on this shard and the shard is untouched"); + Ok(true) + }, + } } diff --git a/service/src/tests/mock.rs b/service/src/tests/mock.rs index 9e6c0eac34..f6581090c6 100644 --- a/service/src/tests/mock.rs +++ b/service/src/tests/mock.rs @@ -57,7 +57,7 @@ pub fn enclaves() -> Vec>> { impl PalletTeerexApi for TestNodeApi { fn enclave( &self, - _account: AccountId, + _account: &AccountId, _at_block: Option, ) -> ApiResult>>> { Ok(Some(enclaves().remove(0))) From 84b310242d384f8326d69d247ad8ed53ac022c35 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 2 Aug 2023 23:31:50 +0100 Subject: [PATCH 51/69] pimp logs and try to get shard for confirm_processed_parentchain_block --- .../indirect-calls-executor/src/executor.rs | 22 +++++++++++++------ .../src/filter_metadata.rs | 9 ++++---- .../{call_worker.rs => invoke.rs} | 0 .../src/indirect_calls/mod.rs | 4 ++-- enclave-runtime/src/attestation.rs | 4 ++-- .../src/initialization/global_components.rs | 4 ++-- enclave-runtime/src/test/top_pool_tests.rs | 4 ++-- service/src/account_funding.rs | 8 +++---- service/src/setup.rs | 4 ++-- 9 files changed, 33 insertions(+), 26 deletions(-) rename core/parentchain/indirect-calls-executor/src/indirect_calls/{call_worker.rs => invoke.rs} (100%) diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index bf79703dbb..0d3b45d8c8 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -128,7 +128,7 @@ impl< let block_number = *block.header().number(); let block_hash = block.hash(); - debug!("Scanning block {:?} for relevant xt", block_number); + trace!("Scanning block {:?} for relevant xt", block_number); let mut executed_calls = Vec::::new(); let events = self @@ -139,7 +139,7 @@ impl< .ok_or_else(|| Error::Other("Could not create events from metadata".into()))?; let xt_statuses = events.get_extrinsic_statuses()?; - debug!("xt_statuses:: {:?}", xt_statuses); + trace!("xt_statuses:: {:?}", xt_statuses); // This would be catastrophic but should never happen if xt_statuses.len() != block.extrinsics().len() { @@ -169,7 +169,7 @@ impl< executed_calls.push(hash_of(&call)); } } - + debug!("successfully processed {} indirect invocations", executed_calls.len()); // Include a processed parentchain block confirmation for each block. self.create_processed_parentchain_block_call::( block_hash, @@ -190,9 +190,17 @@ impl< let call = self.node_meta_data_provider.get_from_metadata(|meta_data| { meta_data.confirm_processed_parentchain_block_call_indexes() })??; - let root: H256 = merkle_root::(extrinsics); - Ok(OpaqueCall::from_tuple(&(call, block_hash, block_number, root))) + let mrenclave = self.stf_enclave_signer.ocall_api.get_mr + let shard = self.top_pool_author.get_shards().get(0).unwrap_or(), + trace!("prepared confirm_processed_parentchain_block() call for block {:?} with index {:?} and merkle root {}", block_number, call, root); + Ok(OpaqueCall::from_tuple(&( + call, + shard, + block_hash, + block_number, + root, + ))) } } @@ -257,7 +265,7 @@ pub(crate) fn hash_of(xt: &T) -> H256 { mod test { use super::*; use crate::{ - filter_metadata::{ShieldFundsAndCallWorkerFilter, TestEventCreator}, + filter_metadata::{ShieldFundsAndInvokeFilter, TestEventCreator}, parentchain_parser::ParentchainExtrinsicParser, }; use codec::{Decode, Encode}; @@ -291,7 +299,7 @@ mod test { TestStfEnclaveSigner, TestTopPoolAuthor, TestNodeMetadataRepository, - ShieldFundsAndCallWorkerFilter, + ShieldFundsAndInvokeFilter, TestEventCreator, >; diff --git a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs index 895d262fa8..c95cda3f14 100644 --- a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs +++ b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs @@ -96,12 +96,12 @@ impl FilterIntoDataFrom for DenyAll { } /// Default filter we use for the Integritee-Parachain. -pub struct ShieldFundsAndCallWorkerFilter { +pub struct ShieldFundsAndInvokeFilter { _phantom: PhantomData, } impl FilterIntoDataFrom - for ShieldFundsAndCallWorkerFilter + for ShieldFundsAndInvokeFilter where ExtrinsicParser: ParseExtrinsic, { @@ -123,14 +123,15 @@ where return None }, }; - let index = xt.call_index; let call_args = &mut &xt.call_args[..]; - + log::trace!("attempting to execute indirect call with index {:?}", index); if index == metadata.shield_funds_call_indexes().ok()? { + log::trace!("executing shield funds call"); let args = decode_and_log_error::(call_args)?; Some(IndirectCall::ShieldFunds(args)) } else if index == metadata.invoke_call_indexes().ok()? { + log::trace!("executing invoke call"); let args = decode_and_log_error::(call_args)?; Some(IndirectCall::Invoke(args)) } else { diff --git a/core/parentchain/indirect-calls-executor/src/indirect_calls/call_worker.rs b/core/parentchain/indirect-calls-executor/src/indirect_calls/invoke.rs similarity index 100% rename from core/parentchain/indirect-calls-executor/src/indirect_calls/call_worker.rs rename to core/parentchain/indirect-calls-executor/src/indirect_calls/invoke.rs diff --git a/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs b/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs index e12a358f35..c25aa51717 100644 --- a/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs +++ b/core/parentchain/indirect-calls-executor/src/indirect_calls/mod.rs @@ -15,8 +15,8 @@ */ -mod call_worker; +mod invoke; mod shield_funds; -pub use call_worker::InvokeArgs; +pub use invoke::InvokeArgs; pub use shield_funds::ShieldFundsArgs; diff --git a/enclave-runtime/src/attestation.rs b/enclave-runtime/src/attestation.rs index f84d9cae11..7a63b7e0a8 100644 --- a/enclave-runtime/src/attestation.rs +++ b/enclave-runtime/src/attestation.rs @@ -199,7 +199,7 @@ pub fn generate_dcap_ra_extrinsic_internal( skip_ra, )?; - if skip_ra { + if !skip_ra { generate_dcap_ra_extrinsic_from_quote_internal(url, &dcap_quote) } else { generate_dcap_skip_ra_extrinsic_from_quote_internal(url, &dcap_quote) @@ -333,7 +333,7 @@ fn generate_ias_ra_extrinsic_internal( let attestation_handler = GLOBAL_ATTESTATION_HANDLER_COMPONENT.get()?; let cert_der = attestation_handler.generate_ias_ra_cert(skip_ra)?; - if skip_ra { + if !skip_ra { generate_ias_ra_extrinsic_from_der_cert_internal(url, &cert_der) } else { generate_ias_skip_ra_extrinsic_from_der_cert_internal(url, &cert_der) diff --git a/enclave-runtime/src/initialization/global_components.rs b/enclave-runtime/src/initialization/global_components.rs index 67934d926b..d3fd7789fa 100644 --- a/enclave-runtime/src/initialization/global_components.rs +++ b/enclave-runtime/src/initialization/global_components.rs @@ -41,7 +41,7 @@ use itc_parentchain::{ }, block_importer::ParentchainBlockImporter, indirect_calls_executor::{ - filter_metadata::{EventCreator, ShieldFundsAndCallWorkerFilter}, + filter_metadata::{EventCreator, ShieldFundsAndInvokeFilter}, parentchain_parser::ParentchainExtrinsicParser, IndirectCallsExecutor, }, @@ -140,7 +140,7 @@ pub type EnclaveIndirectCallsExecutor = IndirectCallsExecutor< EnclaveStfEnclaveSigner, EnclaveTopPoolAuthor, EnclaveNodeMetadataRepository, - ShieldFundsAndCallWorkerFilter, + ShieldFundsAndInvokeFilter, EventCreator, >; pub type EnclaveValidatorAccessor = ValidatorAccessor< diff --git a/enclave-runtime/src/test/top_pool_tests.rs b/enclave-runtime/src/test/top_pool_tests.rs index e2d319e7f5..3a37f23663 100644 --- a/enclave-runtime/src/test/top_pool_tests.rs +++ b/enclave-runtime/src/test/top_pool_tests.rs @@ -34,7 +34,7 @@ use ita_stf::{ TrustedCall, TrustedOperation, }; use itc_parentchain::indirect_calls_executor::{ - filter_metadata::{ShieldFundsAndCallWorkerFilter, TestEventCreator}, + filter_metadata::{ShieldFundsAndInvokeFilter, TestEventCreator}, parentchain_parser::ParentchainExtrinsicParser, ExecuteIndirectCalls, IndirectCallsExecutor, }; @@ -134,7 +134,7 @@ pub fn submit_shielding_call_to_top_pool() { _, _, _, - ShieldFundsAndCallWorkerFilter, + ShieldFundsAndInvokeFilter, TestEventCreator, >::new( shielding_key_repo, enclave_signer, top_pool_author.clone(), node_meta_data_repository diff --git a/service/src/account_funding.rs b/service/src/account_funding.rs index 15c5038bf0..f7a5f413ec 100644 --- a/service/src/account_funding.rs +++ b/service/src/account_funding.rs @@ -135,14 +135,12 @@ fn bootstrap_funds_from_alice( funding_amount: u128, ) -> Result<(), Error> { let alice = AccountKeyring::Alice.pair(); - info!("encoding Alice's public = {:?}", alice.public().0.encode()); let alice_acc = AccountId32::from(*alice.public().as_array_ref()); - info!("encoding Alice's AccountId = {:?}", alice_acc.encode()); let alice_free = api.get_free_balance(&alice_acc)?; - info!(" Alice's free balance = {:?}", alice_free); + trace!(" Alice's free balance = {:?}", alice_free); let nonce = api.get_nonce_of(&alice_acc)?; - info!(" Alice's Account Nonce is {}", nonce); + trace!(" Alice's Account Nonce is {}", nonce); if funding_amount > alice_free { println!( @@ -165,7 +163,7 @@ fn bootstrap_funds_from_alice( ); // Verify funds have arrived. let free_balance = alice_signer_api.get_free_balance(accountid); - info!("TEE's NEW free balance = {:?}", free_balance); + trace!("TEE's NEW free balance = {:?}", free_balance); Ok(()) } diff --git a/service/src/setup.rs b/service/src/setup.rs index 9cd6418122..e5f38b7a0b 100644 --- a/service/src/setup.rs +++ b/service/src/setup.rs @@ -54,10 +54,10 @@ pub(crate) fn initialize_shard_and_keys( pub(crate) fn init_shard(enclave: &Enclave, shard_identifier: &ShardIdentifier) { match enclave.init_shard(shard_identifier.encode()) { Err(e) => { - println!("Failed to initialize shard {:?}: {:?}", shard_identifier, e); + println!("Failed to initialize shard {:?}: {:?}", shard_identifier.to_base58(), e); }, Ok(_) => { - println!("Successfully initialized shard {:?}", shard_identifier); + println!("Successfully initialized shard {:?}", shard_identifier.to_base58()); }, } } From 9cba146365019a6b98263b012b149e73c1ca5ab9 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 09:52:55 +0100 Subject: [PATCH 52/69] fix confirm processed parentchain block --- core-primitives/top-pool-author/src/author.rs | 6 +++++- core-primitives/top-pool-author/src/mocks.rs | 5 +++++ core-primitives/top-pool-author/src/traits.rs | 4 ++++ .../indirect-calls-executor/src/executor.rs | 15 ++++++--------- service/src/setup.rs | 5 +++-- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/core-primitives/top-pool-author/src/author.rs b/core-primitives/top-pool-author/src/author.rs index 0a5a12f004..7ec09f66cd 100644 --- a/core-primitives/top-pool-author/src/author.rs +++ b/core-primitives/top-pool-author/src/author.rs @@ -45,7 +45,7 @@ use jsonrpc_core::{ }; use log::*; use sp_runtime::generic; -use std::{boxed::Box, sync::Arc, vec::Vec}; +use std::{boxed::Box, sync::Arc, vec, vec::Vec}; /// Define type of TOP filter that is used in the Author #[cfg(feature = "sidechain")] @@ -319,6 +319,10 @@ where self.top_pool.shards() } + fn list_handled_shards(&self) -> Vec { + self.state_facade.list_shards().unwrap_or(vec![]) + } + fn remove_calls_from_pool( &self, shard: ShardIdentifier, diff --git a/core-primitives/top-pool-author/src/mocks.rs b/core-primitives/top-pool-author/src/mocks.rs index 154502245b..693c27f8a4 100644 --- a/core-primitives/top-pool-author/src/mocks.rs +++ b/core-primitives/top-pool-author/src/mocks.rs @@ -168,6 +168,11 @@ impl AuthorApi for AuthorApiMock { self.tops.read().unwrap().keys().cloned().collect() } + fn list_handled_shards(&self) -> Vec { + //dummy + self.tops.read().unwrap().keys().cloned().collect() + } + fn remove_calls_from_pool( &self, shard: ShardIdentifier, diff --git a/core-primitives/top-pool-author/src/traits.rs b/core-primitives/top-pool-author/src/traits.rs index 692431c910..b2e490423f 100644 --- a/core-primitives/top-pool-author/src/traits.rs +++ b/core-primitives/top-pool-author/src/traits.rs @@ -53,8 +53,12 @@ pub trait AuthorApi { account: &AccountId, ) -> Vec; + /// returns all shards which are currently present in the tops in the pool fn get_shards(&self) -> Vec; + /// returns all shards which are handled by our worker + fn list_handled_shards(&self) -> Vec; + /// Remove a collection of trusted operations from the pool. /// Return operations that were not successfully removed. fn remove_calls_from_pool( diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index 0d3b45d8c8..5dbfc3e7e9 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -191,16 +191,13 @@ impl< meta_data.confirm_processed_parentchain_block_call_indexes() })??; let root: H256 = merkle_root::(extrinsics); - let mrenclave = self.stf_enclave_signer.ocall_api.get_mr - let shard = self.top_pool_author.get_shards().get(0).unwrap_or(), + //todo: really use mrenclave here + let mrenclave = ShardIdentifier::default(); + let handled_shards = self.top_pool_author.list_handled_shards(); + trace!("got handled shards: {:?}", handled_shards); + let shard = handled_shards.get(0).unwrap_or(&mrenclave); trace!("prepared confirm_processed_parentchain_block() call for block {:?} with index {:?} and merkle root {}", block_number, call, root); - Ok(OpaqueCall::from_tuple(&( - call, - shard, - block_hash, - block_number, - root, - ))) + Ok(OpaqueCall::from_tuple(&(call, shard, block_hash, block_number, root))) } } diff --git a/service/src/setup.rs b/service/src/setup.rs index e5f38b7a0b..6535091f26 100644 --- a/service/src/setup.rs +++ b/service/src/setup.rs @@ -17,6 +17,7 @@ */ use crate::error::{Error, ServiceResult}; +use base58::ToBase58; use codec::Encode; use itp_enclave_api::{enclave_base::EnclaveBase, Enclave}; use itp_settings::files::{ @@ -54,10 +55,10 @@ pub(crate) fn initialize_shard_and_keys( pub(crate) fn init_shard(enclave: &Enclave, shard_identifier: &ShardIdentifier) { match enclave.init_shard(shard_identifier.encode()) { Err(e) => { - println!("Failed to initialize shard {:?}: {:?}", shard_identifier.to_base58(), e); + println!("Failed to initialize shard {:?}: {:?}", shard_identifier.0.to_base58(), e); }, Ok(_) => { - println!("Successfully initialized shard {:?}", shard_identifier.to_base58()); + println!("Successfully initialized shard {:?}", shard_identifier.0.to_base58()); }, } } From 9a751aa395b8b737e0cd7dc6e8d03796b5465345 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 09:59:50 +0100 Subject: [PATCH 53/69] taplo fmt --- service/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/Cargo.toml b/service/Cargo.toml index 81093df2be..0ecd12edbe 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -64,8 +64,8 @@ my-node-runtime = { package = "integritee-node-runtime", git = "https://github.c sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # `default-features = false` to remove the jsonrpsee dependency. enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } substrate-api-client = { default-features = false, features = ["std", "ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.10.0" } +teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v0.9.42" } # Substrate dependencies frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } From 6a120eee6e2d5a44c28a202c378072e64bef4991 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 10:47:34 +0100 Subject: [PATCH 54/69] fix unit tests --- .../indirect-calls-executor/src/executor.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index 5dbfc3e7e9..04210b9bf4 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -367,8 +367,14 @@ mod test { let extrinsics = Vec::new(); let confirm_processed_parentchain_block_indexes = dummy_metadata.confirm_processed_parentchain_block_call_indexes().unwrap(); - let expected_call = - (confirm_processed_parentchain_block_indexes, block_hash, 1, H256::default()).encode(); + let expected_call = ( + confirm_processed_parentchain_block_indexes, + ShardIdentifier::defaul(), + block_hash, + 1, + H256::default(), + ) + .encode(); // when let call = indirect_calls_executor From 7c3b6cb81b9e9f47b027ab0dae2752452576f3fb Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 15:20:35 +0100 Subject: [PATCH 55/69] fix typo --- core/parentchain/indirect-calls-executor/src/executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index 04210b9bf4..6342614f6c 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -369,7 +369,7 @@ mod test { dummy_metadata.confirm_processed_parentchain_block_call_indexes().unwrap(); let expected_call = ( confirm_processed_parentchain_block_indexes, - ShardIdentifier::defaul(), + ShardIdentifier::default(), block_hash, 1, H256::default(), From d2450e836726e86ea176ebc1c89ecf388dd41623 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 15:37:33 +0100 Subject: [PATCH 56/69] fix warnings --- cli/src/base_cli/mod.rs | 6 +----- .../node-api/api-client-extensions/src/pallet_teerex.rs | 1 - service/src/account_funding.rs | 1 - service/src/main.rs | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index 0010121df7..fce5c6dc78 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -24,17 +24,13 @@ use crate::{ Cli, CliResult, CliResultOk, ED25519_KEY_TYPE, SR25519_KEY_TYPE, }; use base58::ToBase58; -use chrono::{DateTime, Utc}; use clap::Subcommand; use codec::Encode; use itc_rpc_client::direct_client::DirectApi; use itp_node_api::api_client::PalletTeerexApi; use sp_core::crypto::Ss58Codec; use sp_keystore::Keystore; -use std::{ - path::PathBuf, - time::{Duration, UNIX_EPOCH}, -}; +use std::path::PathBuf; use substrate_api_client::Metadata; use substrate_client_keystore::LocalKeystore; diff --git a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs index 89bda09e90..674c3aa47a 100644 --- a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs +++ b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs @@ -16,7 +16,6 @@ */ use crate::ApiResult; -use codec::Decode; use itp_types::{ parentchain::Hash, AccountId, IpfsHash, MultiEnclave, ShardIdentifier, ShardStatus, }; diff --git a/service/src/account_funding.rs b/service/src/account_funding.rs index f7a5f413ec..331a174deb 100644 --- a/service/src/account_funding.rs +++ b/service/src/account_funding.rs @@ -16,7 +16,6 @@ */ use crate::error::{Error, ServiceResult}; -use codec::Encode; use itp_node_api::api_client::{AccountApi, ParentchainApi, ParentchainExtrinsicSigner}; use itp_settings::worker::{ EXISTENTIAL_DEPOSIT_FACTOR_FOR_INIT_FUNDS, REGISTERING_FEE_FACTOR_FOR_INIT_FUNDS, diff --git a/service/src/main.rs b/service/src/main.rs index 39879563c9..8672f28e3b 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -83,7 +83,7 @@ use sgx_verify::extract_tcb_info_from_raw_dcap_quote; use enclave_bridge_primitives::ShardIdentifier; use sp_core::crypto::{AccountId32, Ss58Codec}; use sp_keyring::AccountKeyring; -use sp_runtime::{traits::Header as HeaderTrait, MultiSigner}; +use sp_runtime::MultiSigner; use std::{str, sync::Arc, thread, time::Duration}; mod account_funding; From 8b5d4f562dd9de0798843bd5f84d902773df61ba Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 16:52:33 +0100 Subject: [PATCH 57/69] fix and pimp cli --- cli/src/base_cli/commands/shield_funds.rs | 29 ++++++++++++------- cli/src/lib.rs | 2 ++ cli/src/trusted_operation.rs | 29 ++++++++++++------- .../src/filter_metadata.rs | 4 +-- 4 files changed, 42 insertions(+), 22 deletions(-) diff --git a/cli/src/base_cli/commands/shield_funds.rs b/cli/src/base_cli/commands/shield_funds.rs index dbad28d071..0c1c538056 100644 --- a/cli/src/base_cli/commands/shield_funds.rs +++ b/cli/src/base_cli/commands/shield_funds.rs @@ -17,17 +17,17 @@ use crate::{ command_utils::{get_accountid_from_str, get_chain_api, *}, - Cli, CliResult, CliResultOk, + Cli, CliError, CliResult, CliResultOk, }; use base58::FromBase58; use codec::{Decode, Encode}; -use itp_node_api::api_client::{ParentchainExtrinsicSigner, TEEREX}; +use itp_node_api::api_client::{ParentchainExtrinsicSigner, ENCLAVE_BRIDGE}; use itp_sgx_crypto::ShieldingCryptoEncrypt; use itp_stf_primitives::types::ShardIdentifier; use log::*; use my_node_runtime::Balance; use sp_core::sr25519 as sr25519_core; -use substrate_api_client::{compose_extrinsic, SubmitAndWatch, XtStatus}; +use substrate_api_client::{compose_extrinsic, SubmitAndWatchUntilSuccess}; #[derive(Parser)] pub struct ShieldFundsCommand { @@ -68,16 +68,25 @@ impl ShieldFundsCommand { // Compose the extrinsic. let xt = compose_extrinsic!( chain_api, - TEEREX, + ENCLAVE_BRIDGE, "shield_funds", + shard, encrypted_recevier, - self.amount, - shard + self.amount ); - let tx_hash = chain_api.submit_and_watch_extrinsic_until(xt, XtStatus::Finalized).unwrap(); - println!("[+] TrustedOperation got finalized. Hash: {:?}\n", tx_hash); - - Ok(CliResultOk::None) + match chain_api.submit_and_watch_extrinsic_until_success(xt, true) { + Ok(xt_report) => { + println!( + "[+] shield funds success. extrinsic hash: {:?} / status: {:?} / block hash: {:?}", + xt_report.extrinsic_hash, xt_report.status, xt_report.block_hash.unwrap() + ); + Ok(CliResultOk::H256 { hash: xt_report.block_hash.unwrap() }) + }, + Err(e) => { + error!("shield_funds extrinsic failed {:?}", e); + Err(CliError::Extrinsic { msg: format!("{:?}", e) }) + }, + } } } diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 7f51946c13..3cde133166 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -110,6 +110,8 @@ pub enum CliResultOk { #[derive(Debug, Error)] pub enum CliError { + #[error("extrinsic error: {:?}", msg)] + Extrinsic { msg: String }, #[error("trusted operation error: {:?}", msg)] TrustedOp { msg: String }, #[error("EvmReadCommands error: {:?}", msg)] diff --git a/cli/src/trusted_operation.rs b/cli/src/trusted_operation.rs index 13ff5adacc..d8e5dc9a87 100644 --- a/cli/src/trusted_operation.rs +++ b/cli/src/trusted_operation.rs @@ -26,7 +26,7 @@ use codec::{Decode, Encode}; use enclave_bridge_primitives::Request; use ita_stf::{Getter, TrustedOperation}; use itc_rpc_client::direct_client::{DirectApi, DirectClient}; -use itp_node_api::api_client::{ParentchainApi, ParentchainExtrinsicSigner, TEEREX}; +use itp_node_api::api_client::{ParentchainApi, ParentchainExtrinsicSigner, ENCLAVE_BRIDGE}; use itp_rpc::{RpcRequest, RpcResponse, RpcReturnValue}; use itp_sgx_crypto::ShieldingCryptoEncrypt; use itp_stf_primitives::types::ShardIdentifier; @@ -42,12 +42,14 @@ use std::{ time::Instant, }; use substrate_api_client::{ - compose_extrinsic, GetHeader, SubmitAndWatch, SubscribeEvents, XtStatus, + compose_extrinsic, GetHeader, SubmitAndWatchUntilSuccess, SubscribeEvents, }; use thiserror::Error; #[derive(Debug, Error)] pub(crate) enum TrustedOperationError { + #[error("extrinsic L1 error: {msg:?}")] + Extrinsic { msg: String }, #[error("default error: {msg:?}")] Default { msg: String }, } @@ -127,7 +129,7 @@ fn send_indirect_request( let shard = read_shard(trusted_args).unwrap(); debug!( - "indirect send_request: trusted operation: {:?}, shard: {}", + "invoke indirect send_request: trusted operation: {:?}, shard: {}", trusted_operation, shard.encode().to_base58() ); @@ -136,14 +138,21 @@ fn send_indirect_request( chain_api.set_signer(ParentchainExtrinsicSigner::new(sr25519_core::Pair::from(signer))); let request = Request { shard, cyphertext: call_encrypted }; - let xt = compose_extrinsic!(&chain_api, TEEREX, "call_worker", request); + let xt = compose_extrinsic!(&chain_api, ENCLAVE_BRIDGE, "invoke", request); - // send and watch extrinsic until block is executed - let block_hash = chain_api - .submit_and_watch_extrinsic_until(xt, XtStatus::InBlock) - .unwrap() - .block_hash - .unwrap(); + let block_hash = match chain_api.submit_and_watch_extrinsic_until_success(xt, false) { + Ok(xt_report) => { + println!( + "[+] invoke TrustedOperation extrinsic success. extrinsic hash: {:?} / status: {:?} / block hash: {:?}", + xt_report.extrinsic_hash, xt_report.status, xt_report.block_hash.unwrap() + ); + xt_report.block_hash.unwrap() + }, + Err(e) => { + error!("invoke TrustedOperation extrinsic failed {:?}", e); + return Err(TrustedOperationError::Extrinsic { msg: format!("{:?}", e) }) + }, + }; info!( "Trusted call extrinsic sent for shard {} and successfully included in parentchain block with hash {:?}.", diff --git a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs index c95cda3f14..0a919f5390 100644 --- a/core/parentchain/indirect-calls-executor/src/filter_metadata.rs +++ b/core/parentchain/indirect-calls-executor/src/filter_metadata.rs @@ -153,8 +153,8 @@ pub enum IndirectCall { impl IndirectDispatch for IndirectCall { fn dispatch(&self, executor: &Executor) -> Result<()> { match self { - IndirectCall::ShieldFunds(shieldfunds) => shieldfunds.dispatch(executor), - IndirectCall::Invoke(call_worker) => call_worker.dispatch(executor), + IndirectCall::ShieldFunds(shieldfunds_args) => shieldfunds_args.dispatch(executor), + IndirectCall::Invoke(invoke_args) => invoke_args.dispatch(executor), } } } From e529f86e748c49c442761273a3d5606f16a0117d Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 21:30:41 +0100 Subject: [PATCH 58/69] clippy --- core-primitives/top-pool-author/src/author.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-primitives/top-pool-author/src/author.rs b/core-primitives/top-pool-author/src/author.rs index 7ec09f66cd..f2ebd2812c 100644 --- a/core-primitives/top-pool-author/src/author.rs +++ b/core-primitives/top-pool-author/src/author.rs @@ -320,7 +320,7 @@ where } fn list_handled_shards(&self) -> Vec { - self.state_facade.list_shards().unwrap_or(vec![]) + self.state_facade.list_shards().unwrap_or_default() } fn remove_calls_from_pool( From abeadf5e6100a1b6e5582e81a4caf8287e050eb8 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 22:13:32 +0100 Subject: [PATCH 59/69] clippy --- core-primitives/top-pool-author/src/author.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-primitives/top-pool-author/src/author.rs b/core-primitives/top-pool-author/src/author.rs index f2ebd2812c..6aec0c4c3e 100644 --- a/core-primitives/top-pool-author/src/author.rs +++ b/core-primitives/top-pool-author/src/author.rs @@ -45,7 +45,7 @@ use jsonrpc_core::{ }; use log::*; use sp_runtime::generic; -use std::{boxed::Box, sync::Arc, vec, vec::Vec}; +use std::{boxed::Box, sync::Arc, vec::Vec}; /// Define type of TOP filter that is used in the Author #[cfg(feature = "sidechain")] From e3e62a44da3f138964171c1d293542ee692b5887 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 3 Aug 2023 22:17:49 +0100 Subject: [PATCH 60/69] clippy --- cli/src/base_cli/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/base_cli/mod.rs b/cli/src/base_cli/mod.rs index fce5c6dc78..50dd7d0a33 100644 --- a/cli/src/base_cli/mod.rs +++ b/cli/src/base_cli/mod.rs @@ -149,7 +149,8 @@ fn list_workers(cli: &Cli) -> CliResult { println!(" RA timestamp: {}", enclave.attestation_timestamp()); println!( " URL: {}", - String::from_utf8(enclave.instance_url().unwrap_or("none".encode())).unwrap() + String::from_utf8(enclave.instance_url().unwrap_or_else(|| "none".encode())) + .unwrap() ); enclave.fingerprint().0.to_base58() }) From b2c6a613d8cccb9e7153ad87bd4f0788c701ed69 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Fri, 4 Aug 2023 21:51:25 +0100 Subject: [PATCH 61/69] integrate aura and enclave-bridge --- Cargo.lock | 17 ++- .../enclave-bridge-storage/Cargo.toml | 21 ++++ .../enclave-bridge-storage/src/lib.rs | 31 +++++ core-primitives/teerex-storage/Cargo.toml | 2 + core-primitives/teerex-storage/src/lib.rs | 19 +-- core-primitives/test/Cargo.toml | 4 +- .../test/src/builders/enclave_gen_builder.rs | 2 +- core-primitives/test/src/lib.rs | 1 - core-primitives/test/src/mock/onchain_mock.rs | 44 +++---- core-primitives/types/src/lib.rs | 35 ++---- enclave-runtime/Cargo.lock | 17 ++- .../src/test/fixtures/components.rs | 14 +-- enclave-runtime/src/top_pool_execution.rs | 4 +- .../consensus/aura/src/block_importer.rs | 6 +- sidechain/consensus/aura/src/lib.rs | 50 +++++--- .../aura/src/test/block_importer_tests.rs | 5 +- .../consensus/aura/src/test/fixtures/mod.rs | 5 - sidechain/consensus/aura/src/verifier.rs | 14 ++- .../consensus/common/src/block_import.rs | 3 + sidechain/consensus/common/src/lib.rs | 1 + .../common/src/test/mocks/verifier_mock.rs | 3 +- sidechain/consensus/slots/src/lib.rs | 5 +- sidechain/consensus/slots/src/mocks.rs | 7 +- sidechain/primitives/Cargo.toml | 3 +- sidechain/primitives/src/types/header.rs | 2 +- sidechain/validateer-fetch/Cargo.toml | 3 + sidechain/validateer-fetch/src/validateer.rs | 113 ++++++++++-------- 27 files changed, 275 insertions(+), 156 deletions(-) create mode 100644 core-primitives/enclave-bridge-storage/Cargo.toml create mode 100644 core-primitives/enclave-bridge-storage/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 80a71c03e8..c9c4198956 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3457,6 +3457,16 @@ dependencies = [ "sgx_types", ] +[[package]] +name = "itp-enclave-bridge-storage" +version = "0.9.0" +dependencies = [ + "itp-storage", + "itp-types", + "parity-scale-codec", + "sp-std", +] + [[package]] name = "itp-enclave-metrics" version = "0.9.0" @@ -3774,6 +3784,7 @@ name = "itp-teerex-storage" version = "0.9.0" dependencies = [ "itp-storage", + "itp-types", "sp-std", ] @@ -3783,13 +3794,13 @@ version = "0.9.0" dependencies = [ "derive_more", "ita-stf", + "itp-enclave-bridge-storage", "itp-ocall-api", "itp-sgx-crypto", "itp-sgx-externalities", "itp-stf-interface", "itp-stf-state-handler", "itp-storage", - "itp-teerex-storage", "itp-time-utils", "itp-types", "jsonrpc-core 18.0.0 (git+https://github.com/scs/jsonrpc?branch=no_std_v18)", @@ -4067,6 +4078,7 @@ dependencies = [ name = "its-primitives" version = "0.1.0" dependencies = [ + "itp-types", "parity-scale-codec", "scale-info", "serde 1.0.164", @@ -4168,11 +4180,14 @@ dependencies = [ "derive_more", "frame-support", "itc-parentchain-test", + "itp-enclave-bridge-storage", "itp-ocall-api", "itp-storage", "itp-teerex-storage", "itp-test", "itp-types", + "its-primitives", + "log 0.4.19", "parity-scale-codec", "sp-core", "sp-runtime", diff --git a/core-primitives/enclave-bridge-storage/Cargo.toml b/core-primitives/enclave-bridge-storage/Cargo.toml new file mode 100644 index 0000000000..0f6c38041c --- /dev/null +++ b/core-primitives/enclave-bridge-storage/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "itp-enclave-bridge-storage" +version = "0.9.0" +authors = ["Integritee AG "] +edition = "2021" + +[dependencies] +codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } + +#local deps +itp-storage = { path = "../storage", default-features = false } +itp-types = { path = "../types", default-features = false } + +[features] +default = ["std"] +std = [ + "sp-std/std", + "itp-storage/std", + "itp-types/std" +] diff --git a/core-primitives/enclave-bridge-storage/src/lib.rs b/core-primitives/enclave-bridge-storage/src/lib.rs new file mode 100644 index 0000000000..9077d756b6 --- /dev/null +++ b/core-primitives/enclave-bridge-storage/src/lib.rs @@ -0,0 +1,31 @@ +#![cfg_attr(not(feature = "std"), no_std)] + +use codec::Encode; +use itp_storage::{storage_map_key, StorageHasher}; +use sp_std::prelude::Vec; + +pub struct EnclaveBridgeStorage; + +// Separate the prefix from the rest because in our case we changed the storage prefix due to +// the rebranding. With the below implementation of the `TeerexStorageKeys`, we could simply +// define another struct `OtherStorage`, implement `StoragePrefix` for it, and get the +// `TeerexStorageKeys` implementation for free. +pub trait StoragePrefix { + fn prefix() -> &'static str; +} + +impl StoragePrefix for EnclaveBridgeStorage { + fn prefix() -> &'static str { + "EnclaveBridge" + } +} + +pub trait EnclaveBridgeStorageKeys { + fn shard_status(shard: T) -> Vec; +} + +impl EnclaveBridgeStorageKeys for S { + fn shard_status(shard: T) -> Vec { + storage_map_key(Self::prefix(), "ShardStatus", &shard, &StorageHasher::Blake2_128Concat) + } +} diff --git a/core-primitives/teerex-storage/Cargo.toml b/core-primitives/teerex-storage/Cargo.toml index f2cc061859..15333c49b6 100644 --- a/core-primitives/teerex-storage/Cargo.toml +++ b/core-primitives/teerex-storage/Cargo.toml @@ -9,10 +9,12 @@ sp-std = { default-features = false, git = "https://github.com/paritytech/substr #local deps itp-storage = { path = "../storage", default-features = false } +itp-types = { path = "../types", default-features = false } [features] default = ["std"] std = [ "sp-std/std", "itp-storage/std", + "itp-types/std", ] diff --git a/core-primitives/teerex-storage/src/lib.rs b/core-primitives/teerex-storage/src/lib.rs index 706d92fcb1..61bfe1f37d 100644 --- a/core-primitives/teerex-storage/src/lib.rs +++ b/core-primitives/teerex-storage/src/lib.rs @@ -1,6 +1,7 @@ #![cfg_attr(not(feature = "std"), no_std)] -use itp_storage::{storage_map_key, storage_value_key, StorageHasher}; +use itp_storage::{storage_map_key, StorageHasher}; +use itp_types::AccountId; use sp_std::prelude::Vec; pub struct TeeRexStorage; @@ -20,16 +21,16 @@ impl StoragePrefix for TeeRexStorage { } pub trait TeerexStorageKeys { - fn enclave_count() -> Vec; - fn enclave(index: u64) -> Vec; + fn sovereign_enclaves(account: AccountId) -> Vec; } impl TeerexStorageKeys for S { - fn enclave_count() -> Vec { - storage_value_key(Self::prefix(), "EnclaveCount") - } - - fn enclave(index: u64) -> Vec { - storage_map_key(Self::prefix(), "EnclaveRegistry", &index, &StorageHasher::Blake2_128Concat) + fn sovereign_enclaves(account: AccountId) -> Vec { + storage_map_key( + Self::prefix(), + "SovereignEnclaves", + &account, + &StorageHasher::Blake2_128Concat, + ) } } diff --git a/core-primitives/test/Cargo.toml b/core-primitives/test/Cargo.toml index 422b6881ce..ad0af27943 100644 --- a/core-primitives/test/Cargo.toml +++ b/core-primitives/test/Cargo.toml @@ -26,7 +26,7 @@ itp-sgx-externalities = { default-features = false, path = "../substrate-sgx/ext itp-stf-interface = { path = "../stf-interface", default-features = false } itp-stf-state-handler = { path = "../stf-state-handler", default-features = false } itp-storage = { path = "../storage", default-features = false } -itp-teerex-storage = { path = "../teerex-storage", default-features = false } +itp-enclave-bridge-storage = { path = "../enclave-bridge-storage", default-features = false } itp-time-utils = { path = "../time-utils", default-features = false } itp-types = { path = "../types", default-features = false, features = ["test"] } @@ -40,7 +40,7 @@ std = [ "itp-stf-interface/std", "itp-stf-state-handler/std", "itp-storage/std", - "itp-teerex-storage/std", + "itp-enclave-bridge-storage/std", "itp-time-utils/std", "itp-types/std", "itp-ocall-api/std", diff --git a/core-primitives/test/src/builders/enclave_gen_builder.rs b/core-primitives/test/src/builders/enclave_gen_builder.rs index 1268e5d1b4..85e807c628 100644 --- a/core-primitives/test/src/builders/enclave_gen_builder.rs +++ b/core-primitives/test/src/builders/enclave_gen_builder.rs @@ -17,7 +17,7 @@ */ use itp_time_utils::now_as_millis; -use itp_types::{EnclaveGen, PalletString}; +use itp_types::{Enclave, PalletString}; /// Builder for a generic enclave (`EnclaveGen`) struct. pub struct EnclaveGenBuilder { diff --git a/core-primitives/test/src/lib.rs b/core-primitives/test/src/lib.rs index 7ce2315298..a835b0d3a2 100644 --- a/core-primitives/test/src/lib.rs +++ b/core-primitives/test/src/lib.rs @@ -32,5 +32,4 @@ pub mod sgx_reexport_prelude { pub use jsonrpc_core_sgx as jsonrpc_core; } -pub mod builders; pub mod mock; diff --git a/core-primitives/test/src/mock/onchain_mock.rs b/core-primitives/test/src/mock/onchain_mock.rs index fec1865806..8a96dde164 100644 --- a/core-primitives/test/src/mock/onchain_mock.rs +++ b/core-primitives/test/src/mock/onchain_mock.rs @@ -18,15 +18,15 @@ use codec::{Decode, Encode}; use core::fmt::Debug; +use itp_enclave_bridge_storage::{EnclaveBridgeStorage, EnclaveBridgeStorageKeys}; use itp_ocall_api::{ EnclaveAttestationOCallApi, EnclaveMetricsOCallApi, EnclaveOnChainOCallApi, EnclaveSidechainOCallApi, }; use itp_storage::Error::StorageValueUnavailable; -use itp_teerex_storage::{TeeRexStorage, TeerexStorageKeys}; use itp_types::{ - storage::StorageEntryVerified, BlockHash, Enclave, ShardIdentifier, WorkerRequest, - WorkerResponse, + storage::StorageEntryVerified, AccountId, BlockHash, EnclaveFingerprint, ShardIdentifier, + ShardSignerStatus, WorkerRequest, WorkerResponse, }; use sgx_types::*; use sp_core::H256; @@ -55,11 +55,20 @@ impl OnchainMock { pub fn add_validateer_set>( mut self, header: &Header, - set: Option>, + shard: ShardIdentifier, + set: Option>, ) -> Self { - let set = set.unwrap_or_else(validateer_set); - self.insert_at_header(header, TeeRexStorage::enclave_count(), (set.len() as u64).encode()); - self.with_storage_entries_at_header(header, into_key_value_storage(set)) + let set: Vec = set + .unwrap_or_else(validateer_set) + .iter() + .map(|account| ShardSignerStatus { + signer: account.clone(), + fingerprint: EnclaveFingerprint::default(), + last_activity: 0, + }) + .collect(); + self.insert_at_header(header, EnclaveBridgeStorage::shard_status(shard), set.encode()); + self } pub fn with_mr_enclave(mut self, mr_enclave: [u8; SGX_HASH_SIZE]) -> Self { @@ -208,20 +217,11 @@ impl EnclaveOnChainOCallApi for OnchainMock { } } -pub fn validateer_set() -> Vec { - let default_enclave = Enclave::new( +pub fn validateer_set() -> Vec { + vec![ AccountId32::from([0; 32]), - Default::default(), - Default::default(), - Default::default(), - ); - vec![default_enclave.clone(), default_enclave.clone(), default_enclave.clone(), default_enclave] -} - -fn into_key_value_storage(validateers: Vec) -> Vec<(Vec, Enclave)> { - validateers - .into_iter() - .enumerate() - .map(|(i, e)| (TeeRexStorage::enclave(i as u64 + 1), e)) - .collect() + AccountId32::from([1; 32]), + AccountId32::from([2; 32]), + AccountId32::from([3; 32]), + ] } diff --git a/core-primitives/types/src/lib.rs b/core-primitives/types/src/lib.rs index 7acdd26bed..879d958e84 100644 --- a/core-primitives/types/src/lib.rs +++ b/core-primitives/types/src/lib.rs @@ -47,9 +47,14 @@ pub type ConfirmCallFn = ([u8; 2], ShardIdentifier, H256, Vec); pub type ShieldFundsFn = ([u8; 2], ShardIdentifier, Vec, Balance); pub type CallWorkerFn = ([u8; 2], Request); -pub type ShardStatus = Vec>; -pub use teerex_primitives::{MultiEnclave, SgxBuildMode, SgxEnclave, SgxReportData, SgxStatus}; -pub type Enclave = EnclaveGen; +use enclave_bridge_primitives::ShardSignerStatus as ShardSignerStatusGen; +pub type ShardSignerStatus = ShardSignerStatusGen; +pub type ShardStatus = Vec; +pub use enclave_bridge_primitives::Request; +pub use teerex_primitives::{ + EnclaveFingerprint, MultiEnclave, SgxBuildMode, SgxEnclave, SgxReportData, SgxStatus, +}; +pub type Enclave = MultiEnclave>; /// Simple blob to hold an encoded call #[derive(Debug, PartialEq, Eq, Clone, Default)] @@ -68,30 +73,6 @@ impl Encode for OpaqueCall { } } -// Note in the pallet teerex this is a struct. But for the codec this does not matter. -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct Request { - pub shard: ShardIdentifier, - pub cyphertext: Vec, -} - -// Todo: move this improved enclave definition into a primitives crate in the pallet_teerex repo. -#[derive(Encode, Decode, Clone, PartialEq, sp_core::RuntimeDebug)] -pub struct EnclaveGen { - pub pubkey: AccountId, - // FIXME: this is redundant information - pub mr_enclave: [u8; 32], - pub timestamp: u64, - // unix epoch in milliseconds - pub url: PalletString, // utf8 encoded url -} - -impl EnclaveGen { - pub fn new(pubkey: AccountId, mr_enclave: [u8; 32], timestamp: u64, url: PalletString) -> Self { - Self { pubkey, mr_enclave, timestamp, url } - } -} - #[derive(Debug, Clone, PartialEq, Encode, Decode)] pub enum DirectRequestStatus { /// Direct request was successfully executed diff --git a/enclave-runtime/Cargo.lock b/enclave-runtime/Cargo.lock index 52c125b8e8..d4ac83e3c6 100644 --- a/enclave-runtime/Cargo.lock +++ b/enclave-runtime/Cargo.lock @@ -1954,6 +1954,16 @@ dependencies = [ "thiserror 1.0.9", ] +[[package]] +name = "itp-enclave-bridge-storage" +version = "0.9.0" +dependencies = [ + "itp-storage", + "itp-types", + "parity-scale-codec", + "sp-std", +] + [[package]] name = "itp-enclave-metrics" version = "0.9.0" @@ -2239,6 +2249,7 @@ name = "itp-teerex-storage" version = "0.9.0" dependencies = [ "itp-storage", + "itp-types", "sp-std", ] @@ -2248,13 +2259,13 @@ version = "0.9.0" dependencies = [ "derive_more", "ita-stf", + "itp-enclave-bridge-storage", "itp-ocall-api", "itp-sgx-crypto", "itp-sgx-externalities", "itp-stf-interface", "itp-stf-state-handler", "itp-storage", - "itp-teerex-storage", "itp-time-utils", "itp-types", "jsonrpc-core", @@ -2477,6 +2488,7 @@ dependencies = [ name = "its-primitives" version = "0.1.0" dependencies = [ + "itp-types", "parity-scale-codec", "scale-info", "serde 1.0.164", @@ -2543,10 +2555,13 @@ version = "0.9.0" dependencies = [ "derive_more", "frame-support", + "itp-enclave-bridge-storage", "itp-ocall-api", "itp-storage", "itp-teerex-storage", "itp-types", + "its-primitives", + "log", "parity-scale-codec", "sp-core", "sp-runtime", diff --git a/enclave-runtime/src/test/fixtures/components.rs b/enclave-runtime/src/test/fixtures/components.rs index 10bbabd6ba..d9e617b9f3 100644 --- a/enclave-runtime/src/test/fixtures/components.rs +++ b/enclave-runtime/src/test/fixtures/components.rs @@ -24,7 +24,7 @@ use itp_sgx_crypto::ShieldingCryptoEncrypt; use itp_stf_primitives::types::KeyPair; use itp_top_pool::pool::Options as PoolOptions; use itp_top_pool_author::api::SidechainApi; -use itp_types::{Block as ParentchainBlock, Enclave, ShardIdentifier}; +use itp_types::{Block as ParentchainBlock, ShardIdentifier}; use sp_core::{ed25519, Pair, H256}; use sp_runtime::traits::Header as HeaderTrait; use std::{boxed::Box, sync::Arc, vec::Vec}; @@ -39,13 +39,11 @@ pub(crate) fn create_ocall_api>( header: &Header, signer: &TestSigner, ) -> Arc { - let enclave_validateer = Enclave::new( - signer.public().into(), - Default::default(), - Default::default(), - Default::default(), - ); - Arc::new(TestOCallApi::default().add_validateer_set(header, Some(vec![enclave_validateer]))) + Arc::new(TestOCallApi::default().add_validateer_set( + header, + ShardIdentifier::default(), + Some(vec![signer.public().into()]), + )) } pub(crate) fn encrypt_trusted_operation( diff --git a/enclave-runtime/src/top_pool_execution.rs b/enclave-runtime/src/top_pool_execution.rs index cff5971ae7..fbcad96947 100644 --- a/enclave-runtime/src/top_pool_execution.rs +++ b/enclave-runtime/src/top_pool_execution.rs @@ -59,7 +59,7 @@ use its_sidechain::{ }; use log::*; use sgx_types::sgx_status_t; -use sp_core::Pair; +use sp_core::{crypto::UncheckedFrom, Pair}; use sp_runtime::{ generic::SignedBlock as SignedParentchainBlock, traits::Block as BlockTrait, MultiSignature, }; @@ -213,7 +213,7 @@ where HeaderTrait, SignedSidechainBlock::Signature: From, Authority: Pair, - Authority::Public: Encode, + Authority::Public: Encode + UncheckedFrom<[u8; 32]>, OCallApi: ValidateerFetch + EnclaveOnChainOCallApi + Send + 'static, NumberFor: BlockNumberOps, PEnvironment: diff --git a/sidechain/consensus/aura/src/block_importer.rs b/sidechain/consensus/aura/src/block_importer.rs index 15d7217fb5..d336ba98f7 100644 --- a/sidechain/consensus/aura/src/block_importer.rs +++ b/sidechain/consensus/aura/src/block_importer.rs @@ -37,7 +37,7 @@ use its_primitives::traits::{ }; use its_validateer_fetch::ValidateerFetch; use log::*; -use sp_core::Pair; +use sp_core::{crypto::UncheckedFrom, Pair}; use sp_runtime::{ generic::SignedBlock as SignedParentchainBlock, traits::{Block as ParentchainBlockTrait, Header}, @@ -85,7 +85,7 @@ impl< ParentchainBlockImporter, > where Authority: Pair, - Authority::Public: std::fmt::Debug, + Authority::Public: std::fmt::Debug + UncheckedFrom<[u8; 32]>, ParentchainBlock: ParentchainBlockTrait, SignedSidechainBlock: SignedBlockTrait + 'static, <::Block as SidechainBlockTrait>::HeaderType: @@ -170,7 +170,7 @@ impl< ParentchainBlockImporter, > where Authority: Pair, - Authority::Public: std::fmt::Debug, + Authority::Public: std::fmt::Debug + UncheckedFrom<[u8; 32]>, ParentchainBlock: ParentchainBlockTrait, SignedSidechainBlock: SignedBlockTrait + 'static, <::Block as SidechainBlockTrait>::HeaderType: diff --git a/sidechain/consensus/aura/src/lib.rs b/sidechain/consensus/aura/src/lib.rs index adfe9f22e0..0c52803086 100644 --- a/sidechain/consensus/aura/src/lib.rs +++ b/sidechain/consensus/aura/src/lib.rs @@ -41,7 +41,7 @@ use its_primitives::{ types::block::BlockHash, }; use its_validateer_fetch::ValidateerFetch; -use sp_core::ByteArray; +use sp_core::crypto::UncheckedFrom; use sp_runtime::{ app_crypto::{sp_core::H256, Pair}, generic::SignedBlock as SignedParentchainBlock, @@ -124,6 +124,7 @@ impl where AuthorityPair: Pair, + AuthorityPair::Public: UncheckedFrom<[u8; 32]>, // todo: Relax hash trait bound, but this needs a change to some other parts in the code. ParentchainBlock: ParentchainBlockTrait, E: Environment, @@ -145,9 +146,14 @@ where fn epoch_data( &self, header: &ParentchainBlock::Header, + shard: ShardIdentifierFor, _slot: Slot, ) -> Result { - authorities::<_, AuthorityPair, ParentchainBlock::Header>(&self.ocall_api, header) + authorities::<_, AuthorityPair, SignedSidechainBlock, ParentchainBlock::Header>( + &self.ocall_api, + header, + shard, + ) } fn authorities_len(&self, epoch_data: &Self::EpochData) -> Option { @@ -235,20 +241,23 @@ fn proposing_remaining_duration( std::cmp::min(slot_remaining, proposing_duration) } -fn authorities( +fn authorities( ocall_api: &ValidateerFetcher, header: &ParentchainHeader, + shard: ShardIdentifierFor, ) -> Result>, ConsensusError> where ValidateerFetcher: ValidateerFetch + EnclaveOnChainOCallApi, P: Pair, + P::Public: UncheckedFrom<[u8; 32]>, ParentchainHeader: ParentchainHeaderTrait, + SignedSidechainBlock: its_primitives::traits::SignedBlock, { Ok(ocall_api - .current_validateers(header) + .current_validateers::(header, shard) .map_err(|e| ConsensusError::CouldNotGetAuthorities(e.to_string()))? - .into_iter() - .filter_map(|e| AuthorityId::

::from_slice(e.pubkey.as_ref()).ok()) + .iter() + .map(|account| P::Public::unchecked_from(*account.as_ref())) .collect()) } @@ -256,14 +265,14 @@ where mod tests { use super::*; use crate::test::{ - fixtures::{types::TestAura, validateer, SLOT_DURATION}, + fixtures::{types::TestAura, SLOT_DURATION}, mocks::environment_mock::EnvironmentMock, }; use itc_parentchain_block_import_dispatcher::trigger_parentchain_block_import_mock::TriggerParentchainBlockImportMock; use itc_parentchain_test::{ParentchainBlockBuilder, ParentchainHeaderBuilder}; use itp_test::mock::onchain_mock::OnchainMock; use itp_types::{ - Block as ParentchainBlock, Enclave, Header as ParentchainHeader, + AccountId, Block as ParentchainBlock, Header as ParentchainHeader, ShardIdentifier, SignedBlock as SignedParentchainBlock, }; use its_consensus_slots::PerShardSlotWorkerScheduler; @@ -300,8 +309,8 @@ mod tests { vec![Keyring::Alice.public(), Keyring::Bob.public(), Keyring::Charlie.public()] } - fn create_validateer_set_from_publics(authorities: Vec) -> Vec { - authorities.iter().map(|a| validateer(a.clone().into())).collect() + fn create_validateer_set_from_publics(authorities: Vec) -> Vec { + authorities.iter().map(|a| AccountId::from(a.clone())).collect() } fn onchain_mock( @@ -309,7 +318,8 @@ mod tests { authorities: Vec, ) -> OnchainMock { let validateers = create_validateer_set_from_publics(authorities); - OnchainMock::default().add_validateer_set(parentchain_header, Some(validateers)) + let shard = ShardIdentifier::default(); + OnchainMock::default().add_validateer_set(parentchain_header, shard, Some(validateers)) } fn onchain_mock_with_default_authorities_and_header() -> OnchainMock { @@ -478,9 +488,14 @@ mod tests { Keyring::Bob.public(), Keyring::Charlie.public(), ]); + let shard = ShardIdentifier::default(); let onchain_mock = OnchainMock::default() - .add_validateer_set(&already_imported_parentchain_header, Some(validateer_set_one)) - .add_validateer_set(&latest_parentchain_header, Some(validateer_set_two)); + .add_validateer_set( + &already_imported_parentchain_header, + shard, + Some(validateer_set_one), + ) + .add_validateer_set(&latest_parentchain_header, shard, Some(validateer_set_two)); let mut aura = get_aura(onchain_mock, parentchain_block_import_trigger.clone()); @@ -513,9 +528,14 @@ mod tests { Keyring::Bob.public(), Keyring::Charlie.public(), ]); + let shard = ShardIdentifier::default(); let onchain_mock = OnchainMock::default() - .add_validateer_set(&already_imported_parentchain_header, Some(validateer_set_one)) - .add_validateer_set(&latest_parentchain_header, Some(validateer_set_two)); + .add_validateer_set( + &already_imported_parentchain_header, + shard, + Some(validateer_set_one), + ) + .add_validateer_set(&latest_parentchain_header, shard, Some(validateer_set_two)); let mut aura = get_aura(onchain_mock, parentchain_block_import_trigger.clone()); diff --git a/sidechain/consensus/aura/src/test/block_importer_tests.rs b/sidechain/consensus/aura/src/test/block_importer_tests.rs index 9ec2e05bd9..db11810a1d 100644 --- a/sidechain/consensus/aura/src/test/block_importer_tests.rs +++ b/sidechain/consensus/aura/src/test/block_importer_tests.rs @@ -15,7 +15,7 @@ */ -use crate::{block_importer::BlockImporter, test::fixtures::validateer, ShardIdentifierFor}; +use crate::{block_importer::BlockImporter, ShardIdentifierFor}; use codec::Encode; use core::assert_matches::assert_matches; use itc_parentchain_block_import_dispatcher::trigger_parentchain_block_import_mock::TriggerParentchainBlockImportMock; @@ -78,7 +78,8 @@ fn test_fixtures( let top_pool_author = Arc::new(TestTopPoolAuthor::default()); let ocall_api = Arc::new(OnchainMock::default().add_validateer_set( parentchain_header, - Some(vec![validateer(Keyring::Alice.public().into())]), + shard(), + Some(vec![Keyring::Alice.public().into()]), )); let state_key_repository = Arc::new(TestStateKeyRepo::new(state_key())); diff --git a/sidechain/consensus/aura/src/test/fixtures/mod.rs b/sidechain/consensus/aura/src/test/fixtures/mod.rs index 54d47324fa..8a2b0463be 100644 --- a/sidechain/consensus/aura/src/test/fixtures/mod.rs +++ b/sidechain/consensus/aura/src/test/fixtures/mod.rs @@ -17,11 +17,6 @@ pub mod types; -use itp_types::{AccountId, Enclave}; use std::time::Duration; pub const SLOT_DURATION: Duration = Duration::from_millis(300); - -pub fn validateer(account: AccountId) -> Enclave { - Enclave::new(account, Default::default(), Default::default(), Default::default()) -} diff --git a/sidechain/consensus/aura/src/verifier.rs b/sidechain/consensus/aura/src/verifier.rs index 15526f0a74..205549bb17 100644 --- a/sidechain/consensus/aura/src/verifier.rs +++ b/sidechain/consensus/aura/src/verifier.rs @@ -15,7 +15,7 @@ */ -use crate::{authorities, EnclaveOnChainOCallApi}; +use crate::{authorities, EnclaveOnChainOCallApi, ShardIdentifierFor}; use core::marker::PhantomData; use its_block_verification::verify_sidechain_block; use its_consensus_common::{Error as ConsensusError, Verifier}; @@ -24,6 +24,7 @@ use its_primitives::{ types::block::BlockHash, }; use its_validateer_fetch::ValidateerFetch; +use sp_core::crypto::UncheckedFrom; use sp_runtime::{app_crypto::Pair, traits::Block as ParentchainBlockTrait}; use std::{fmt::Debug, time::Duration}; @@ -57,7 +58,7 @@ impl for AuraVerifier where AuthorityPair: Pair, - AuthorityPair::Public: Debug, + AuthorityPair::Public: Debug + UncheckedFrom<[u8; 32]>, // todo: Relax hash trait bound, but this needs a change to some other parts in the code. ParentchainBlock: ParentchainBlockTrait, SignedSidechainBlock: SignedSidechainBlockTrait + 'static, @@ -72,10 +73,15 @@ where &self, signed_block: SignedSidechainBlock, parentchain_header: &ParentchainBlock::Header, + shard: ShardIdentifierFor, ctx: &Self::Context, ) -> Result { - let authorities = - authorities::<_, AuthorityPair, ParentchainBlock::Header>(ctx, parentchain_header)?; + let authorities = authorities::< + _, + AuthorityPair, + SignedSidechainBlock, + ParentchainBlock::Header, + >(ctx, parentchain_header, shard)?; Ok(verify_sidechain_block::( signed_block, diff --git a/sidechain/consensus/common/src/block_import.rs b/sidechain/consensus/common/src/block_import.rs index 24a3a745c3..a19ec54043 100644 --- a/sidechain/consensus/common/src/block_import.rs +++ b/sidechain/consensus/common/src/block_import.rs @@ -136,6 +136,9 @@ where verifier.verify( signed_sidechain_block.clone(), &peeked_parentchain_header, + shard, + // ShardIdentifier::decode(&mut shard.encode().as_ref()) + // .expect("same type encode and decode always works"), self.get_context(), ) })?; diff --git a/sidechain/consensus/common/src/lib.rs b/sidechain/consensus/common/src/lib.rs index c6a708c9e1..fa2104186f 100644 --- a/sidechain/consensus/common/src/lib.rs +++ b/sidechain/consensus/common/src/lib.rs @@ -68,6 +68,7 @@ where &self, block: SignedSidechainBlock, parentchain_header: &ParentchainBlock::Header, + shard: ShardIdentifierFor, ctx: &Self::Context, ) -> Result; } diff --git a/sidechain/consensus/common/src/test/mocks/verifier_mock.rs b/sidechain/consensus/common/src/test/mocks/verifier_mock.rs index 6e104574ea..e6d8cbeb0e 100644 --- a/sidechain/consensus/common/src/test/mocks/verifier_mock.rs +++ b/sidechain/consensus/common/src/test/mocks/verifier_mock.rs @@ -15,7 +15,7 @@ */ -use crate::{Result, Verifier}; +use crate::{Result, ShardIdentifierFor, Verifier}; use itp_types::H256; use its_primitives::traits::SignedBlock as SignedSidechainBlockTrait; use sp_core::Pair; @@ -54,6 +54,7 @@ where &self, _block: SignedSidechainBlock, _parentchain_header: &ParentchainBlock::Header, + _shard: ShardIdentifierFor, _ctx: &Self::Context, ) -> Result { todo!() diff --git a/sidechain/consensus/slots/src/lib.rs b/sidechain/consensus/slots/src/lib.rs index 1f1b000ebe..cff263fa60 100644 --- a/sidechain/consensus/slots/src/lib.rs +++ b/sidechain/consensus/slots/src/lib.rs @@ -137,6 +137,7 @@ pub trait SimpleSlotWorker { fn epoch_data( &self, header: &ParentchainBlock::Header, + shard: ShardIdentifierFor, slot: Slot, ) -> Result; @@ -214,7 +215,7 @@ pub trait SimpleSlotWorker { }, }; - let epoch_data = match self.epoch_data(&latest_parentchain_header, slot) { + let epoch_data = match self.epoch_data(&latest_parentchain_header, shard, slot) { Ok(epoch_data) => epoch_data, Err(e) => { warn!( @@ -271,7 +272,7 @@ pub trait SimpleSlotWorker { if !timestamp_within_slot(&slot_info, &proposing.block) { warn!( target: logging_target, - "⌛️ Discarding proposal for slot {}, block number {}; block production took too long", + "⌛️ Discarding proposal for slot {}, block number {}; block production took too long", *slot, proposing.block.block().header().block_number(), ); diff --git a/sidechain/consensus/slots/src/mocks.rs b/sidechain/consensus/slots/src/mocks.rs index ea6e4d4d6c..6664351160 100644 --- a/sidechain/consensus/slots/src/mocks.rs +++ b/sidechain/consensus/slots/src/mocks.rs @@ -60,7 +60,12 @@ where "test" } - fn epoch_data(&self, _header: &B::Header, _slot: Slot) -> Result { + fn epoch_data( + &self, + _header: &B::Header, + _shard: ShardIdentifierFor, + _slot: Slot, + ) -> Result { todo!() } diff --git a/sidechain/primitives/Cargo.toml b/sidechain/primitives/Cargo.toml index 795ff2329a..fcf0f0cd92 100644 --- a/sidechain/primitives/Cargo.toml +++ b/sidechain/primitives/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full"] } scale-info = { version = "2.0.1", default-features = false, features = ["derive"] } serde = { version = "1.0.13", default-features = false } - +itp-types = { path = "../../core-primitives/types", default-features = false} # substrate dependencies sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } @@ -29,6 +29,7 @@ std = [ "codec/std", "scale-info/std", "serde/std", + "itp-types/std", # substrate "sp-core/std", "sp-io/std", diff --git a/sidechain/primitives/src/types/header.rs b/sidechain/primitives/src/types/header.rs index a4289193f8..962917f534 100644 --- a/sidechain/primitives/src/types/header.rs +++ b/sidechain/primitives/src/types/header.rs @@ -26,7 +26,7 @@ use sp_std::prelude::*; #[cfg(feature = "std")] use serde::{Deserialize, Serialize}; -pub type ShardIdentifier = H256; +pub use itp_types::ShardIdentifier; #[derive(PartialEq, Eq, Clone, Encode, Decode, Debug, Copy, Default, TypeInfo)] #[cfg_attr(feature = "std", derive(Serialize, Deserialize))] diff --git a/sidechain/validateer-fetch/Cargo.toml b/sidechain/validateer-fetch/Cargo.toml index dba26b3189..f3a4642f8c 100644 --- a/sidechain/validateer-fetch/Cargo.toml +++ b/sidechain/validateer-fetch/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "chain-error"] } derive_more = "0.99.16" +log = "0.4" thiserror = "1.0.26" # substrate deps @@ -19,7 +20,9 @@ sp-std = { default-features = false, git = "https://github.com/paritytech/substr itp-ocall-api = { path = "../../core-primitives/ocall-api", default-features = false } itp-storage = { path = "../../core-primitives/storage", default-features = false } itp-teerex-storage = { path = "../../core-primitives/teerex-storage", default-features = false } +itp-enclave-bridge-storage = { path = "../../core-primitives/enclave-bridge-storage", default-features = false } itp-types = { path = "../../core-primitives/types", default-features = false } +its-primitives = { path = "../primitives", default-features = false } [features] default = ["std"] diff --git a/sidechain/validateer-fetch/src/validateer.rs b/sidechain/validateer-fetch/src/validateer.rs index c35b22c442..3f0c099917 100644 --- a/sidechain/validateer-fetch/src/validateer.rs +++ b/sidechain/validateer-fetch/src/validateer.rs @@ -16,89 +16,108 @@ */ use crate::error::{Error, Result}; -use frame_support::ensure; +use itp_enclave_bridge_storage::{EnclaveBridgeStorage, EnclaveBridgeStorageKeys}; use itp_ocall_api::EnclaveOnChainOCallApi; -use itp_teerex_storage::{TeeRexStorage, TeerexStorageKeys}; -use itp_types::Enclave; +use itp_types::{parentchain::AccountId, ShardSignerStatus}; +use its_primitives::traits::{Block as SidechainBlockTrait, Header as HeaderTrait, SignedBlock}; +use log::trace; use sp_core::H256; use sp_runtime::traits::Header as HeaderT; use sp_std::prelude::Vec; +type ShardIdentifierFor = +<<::Block as SidechainBlockTrait>::HeaderType as HeaderTrait>::ShardIdentifier; + pub trait ValidateerFetch { - fn current_validateers>( + fn current_validateers< + Header: HeaderT, + SignedSidechainBlock: its_primitives::traits::SignedBlock, + >( + &self, + latest_header: &Header, + shard: ShardIdentifierFor, + ) -> Result>; + fn validateer_count< + Header: HeaderT, + SignedSidechainBlock: its_primitives::traits::SignedBlock, + >( &self, latest_header: &Header, - ) -> Result>; - fn validateer_count>(&self, latest_header: &Header) - -> Result; + shard: ShardIdentifierFor, + ) -> Result; } impl ValidateerFetch for OnchainStorage { - fn current_validateers>( + fn current_validateers< + Header: HeaderT, + SignedSidechainBlock: its_primitives::traits::SignedBlock, + >( &self, header: &Header, - ) -> Result> { - let count = self.validateer_count(header)?; - - let mut hashes = Vec::with_capacity(count as usize); - for i in 1..=count { - hashes.push(TeeRexStorage::enclave(i)) - } - - let enclaves: Vec = self - .get_multiple_storages_verified(hashes, header)? - .into_iter() - .filter_map(|e| e.into_tuple().1) - .collect(); - ensure!( - enclaves.len() == count as usize, - Error::Other("Found less validateers onchain than validateer count") - ); - Ok(enclaves) - } - - fn validateer_count>(&self, header: &Header) -> Result { - self.get_storage_verified(TeeRexStorage::enclave_count(), header)? + shard: ShardIdentifierFor, + ) -> Result> { + let shard_status: Vec = self + .get_storage_verified( + EnclaveBridgeStorage::shard_status::>( + shard, + ), + header, + )? .into_tuple() .1 - .ok_or_else(|| Error::Other("Could not get validateer count from chain")) + .ok_or_else(|| Error::Other("Could not get validateer count from chain"))?; + trace!("fetched {} validateers for shard {:?}", shard_status.len(), shard); + Ok(shard_status.iter().map(|sss: &ShardSignerStatus| sss.signer.clone()).collect()) + } + + fn validateer_count< + Header: HeaderT, + SignedSidechainBlock: its_primitives::traits::SignedBlock, + >( + &self, + header: &Header, + shard: ShardIdentifierFor, + ) -> Result { + Ok(self.current_validateers::(header, shard)?.len() as u64) } } #[cfg(test)] mod tests { use super::*; - use codec::Encode; + use itc_parentchain_test::ParentchainHeaderBuilder; use itp_test::mock::onchain_mock::{validateer_set, OnchainMock}; - use std::string::ToString; + use itp_types::ShardIdentifier; #[test] pub fn get_validateer_count_works() { let header = ParentchainHeaderBuilder::default().build(); - let mock = OnchainMock::default().add_validateer_set(&header, None); - assert_eq!(mock.validateer_count(&header).unwrap(), 4u64); + let shard = ShardIdentifier::default(); + let mock = OnchainMock::default().add_validateer_set(&header, shard, None); + assert_eq!( + mock.validateer_count::( + &header, shard + ) + .unwrap(), + 4u64 + ); } #[test] pub fn get_validateer_set_works() { let header = ParentchainHeaderBuilder::default().build(); - let mock = OnchainMock::default().add_validateer_set(&header, None); + let shard = ShardIdentifier::default(); + let mock = OnchainMock::default().add_validateer_set(&header, shard, None); let validateers = validateer_set(); - assert_eq!(mock.current_validateers(&header).unwrap(), validateers); - } - - #[test] - pub fn if_validateer_count_bigger_than_returned_validateers_return_err() { - let header = ParentchainHeaderBuilder::default().build(); - let mut mock = OnchainMock::default().add_validateer_set(&header, None); - mock.insert_at_header(&header, TeeRexStorage::enclave_count(), 5u64.encode()); - assert_eq!( - mock.current_validateers(&header).unwrap_err().to_string(), - "Found less validateers onchain than validateer count".to_string() + mock.current_validateers::( + &header, shard + ) + .unwrap(), + validateers ); } } From 17b5249038983dd08d2c7f9903b865ffd0e62986 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Fri, 4 Aug 2023 21:52:02 +0100 Subject: [PATCH 62/69] taple fmt --- core-primitives/enclave-bridge-storage/Cargo.toml | 2 +- core-primitives/test/Cargo.toml | 2 +- sidechain/primitives/Cargo.toml | 2 +- sidechain/validateer-fetch/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core-primitives/enclave-bridge-storage/Cargo.toml b/core-primitives/enclave-bridge-storage/Cargo.toml index 0f6c38041c..595fb10189 100644 --- a/core-primitives/enclave-bridge-storage/Cargo.toml +++ b/core-primitives/enclave-bridge-storage/Cargo.toml @@ -17,5 +17,5 @@ default = ["std"] std = [ "sp-std/std", "itp-storage/std", - "itp-types/std" + "itp-types/std", ] diff --git a/core-primitives/test/Cargo.toml b/core-primitives/test/Cargo.toml index ad0af27943..366a157577 100644 --- a/core-primitives/test/Cargo.toml +++ b/core-primitives/test/Cargo.toml @@ -20,13 +20,13 @@ sp-std = { default-features = false, git = "https://github.com/paritytech/substr # local deps ita-stf = { path = "../../app-libs/stf", default-features = false } +itp-enclave-bridge-storage = { path = "../enclave-bridge-storage", default-features = false } itp-ocall-api = { path = "../ocall-api", default-features = false } itp-sgx-crypto = { path = "../sgx/crypto", default-features = false } itp-sgx-externalities = { default-features = false, path = "../substrate-sgx/externalities" } itp-stf-interface = { path = "../stf-interface", default-features = false } itp-stf-state-handler = { path = "../stf-state-handler", default-features = false } itp-storage = { path = "../storage", default-features = false } -itp-enclave-bridge-storage = { path = "../enclave-bridge-storage", default-features = false } itp-time-utils = { path = "../time-utils", default-features = false } itp-types = { path = "../types", default-features = false, features = ["test"] } diff --git a/sidechain/primitives/Cargo.toml b/sidechain/primitives/Cargo.toml index fcf0f0cd92..45844541a2 100644 --- a/sidechain/primitives/Cargo.toml +++ b/sidechain/primitives/Cargo.toml @@ -9,9 +9,9 @@ edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full"] } +itp-types = { path = "../../core-primitives/types", default-features = false } scale-info = { version = "2.0.1", default-features = false, features = ["derive"] } serde = { version = "1.0.13", default-features = false } -itp-types = { path = "../../core-primitives/types", default-features = false} # substrate dependencies sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } diff --git a/sidechain/validateer-fetch/Cargo.toml b/sidechain/validateer-fetch/Cargo.toml index f3a4642f8c..d1e75587a8 100644 --- a/sidechain/validateer-fetch/Cargo.toml +++ b/sidechain/validateer-fetch/Cargo.toml @@ -17,10 +17,10 @@ sp-runtime = { default-features = false, git = "https://github.com/paritytech/su sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } # local deps +itp-enclave-bridge-storage = { path = "../../core-primitives/enclave-bridge-storage", default-features = false } itp-ocall-api = { path = "../../core-primitives/ocall-api", default-features = false } itp-storage = { path = "../../core-primitives/storage", default-features = false } itp-teerex-storage = { path = "../../core-primitives/teerex-storage", default-features = false } -itp-enclave-bridge-storage = { path = "../../core-primitives/enclave-bridge-storage", default-features = false } itp-types = { path = "../../core-primitives/types", default-features = false } its-primitives = { path = "../primitives", default-features = false } From 6709c2ccfda1e7f9f2d4ef014a833c06f6ca7a2b Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Sat, 5 Aug 2023 08:51:52 +0100 Subject: [PATCH 63/69] cosmetics --- core-primitives/node-api/api-client-extensions/src/lib.rs | 1 - sidechain/consensus/common/src/block_import.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/core-primitives/node-api/api-client-extensions/src/lib.rs b/core-primitives/node-api/api-client-extensions/src/lib.rs index b93473e385..e123c41908 100644 --- a/core-primitives/node-api/api-client-extensions/src/lib.rs +++ b/core-primitives/node-api/api-client-extensions/src/lib.rs @@ -23,7 +23,6 @@ pub mod account; pub mod chain; pub mod pallet_teeracle; pub mod pallet_teerex; -//pub mod pallet_teerex_api_mock; pub use account::*; pub use chain::*; diff --git a/sidechain/consensus/common/src/block_import.rs b/sidechain/consensus/common/src/block_import.rs index a19ec54043..567728bce2 100644 --- a/sidechain/consensus/common/src/block_import.rs +++ b/sidechain/consensus/common/src/block_import.rs @@ -137,8 +137,6 @@ where signed_sidechain_block.clone(), &peeked_parentchain_header, shard, - // ShardIdentifier::decode(&mut shard.encode().as_ref()) - // .expect("same type encode and decode always works"), self.get_context(), ) })?; From 741cd75813eb96b214da630bdfd006148bab41e2 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Sun, 6 Aug 2023 19:49:20 +0100 Subject: [PATCH 64/69] small review fixes --- .../api-client-extensions/src/pallet_teerex.rs | 12 +++++++----- .../indirect-calls-executor/src/executor.rs | 6 +++--- sidechain/validateer-fetch/Cargo.toml | 1 + 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs index 674c3aa47a..02581d31ef 100644 --- a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs +++ b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs @@ -66,19 +66,21 @@ where } fn all_enclaves(&self, at_block: Option) -> ApiResult>>> { - let key_prefix = self.get_storage_map_key_prefix("Teerex", "SovereignEnclaves").unwrap(); + let key_prefix = self.get_storage_map_key_prefix("Teerex", "SovereignEnclaves")?; //fixme: solve this properly with infinite elements let max_keys = 1000; let storage_keys = - self.get_storage_keys_paged(Some(key_prefix), max_keys, None, at_block).unwrap(); + self.get_storage_keys_paged(Some(key_prefix), max_keys, None, at_block)?; if storage_keys.len() == max_keys as usize { error!("results can be wrong because max keys reached for query") } - Ok(storage_keys + let enclaves = storage_keys .iter() - .map(|key| self.get_storage_by_key_hash(key.clone(), at_block).unwrap().unwrap()) - .collect()) + .map(|key| self.get_storage_by_key_hash(key.clone(), at_block).ok()?) + .flatten() + .collect(); + Ok(enclaves) } fn primary_worker_for_shard( diff --git a/core/parentchain/indirect-calls-executor/src/executor.rs b/core/parentchain/indirect-calls-executor/src/executor.rs index 6342614f6c..2730b525fd 100644 --- a/core/parentchain/indirect-calls-executor/src/executor.rs +++ b/core/parentchain/indirect-calls-executor/src/executor.rs @@ -191,11 +191,11 @@ impl< meta_data.confirm_processed_parentchain_block_call_indexes() })??; let root: H256 = merkle_root::(extrinsics); - //todo: really use mrenclave here - let mrenclave = ShardIdentifier::default(); + + let fallback = ShardIdentifier::default(); let handled_shards = self.top_pool_author.list_handled_shards(); trace!("got handled shards: {:?}", handled_shards); - let shard = handled_shards.get(0).unwrap_or(&mrenclave); + let shard = handled_shards.get(0).unwrap_or(&fallback); trace!("prepared confirm_processed_parentchain_block() call for block {:?} with index {:?} and merkle root {}", block_number, call, root); Ok(OpaqueCall::from_tuple(&(call, shard, block_hash, block_number, root))) } diff --git a/sidechain/validateer-fetch/Cargo.toml b/sidechain/validateer-fetch/Cargo.toml index d1e75587a8..5cfeb209d3 100644 --- a/sidechain/validateer-fetch/Cargo.toml +++ b/sidechain/validateer-fetch/Cargo.toml @@ -34,6 +34,7 @@ std = [ "itp-types/std", "itp-storage/std", "itp-ocall-api/std", + "its-primitives/std", ] [dev-dependencies] From d950d0def8745dbf894cf79afc3c2366589a94f9 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 7 Aug 2023 09:27:31 +0100 Subject: [PATCH 65/69] fix toml double dep --- enclave-runtime/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enclave-runtime/Cargo.toml b/enclave-runtime/Cargo.toml index 7fe8bc48bb..1fa0b17603 100644 --- a/enclave-runtime/Cargo.toml +++ b/enclave-runtime/Cargo.toml @@ -89,7 +89,7 @@ base58 = { rev = "sgx_1.1.3", package = "rust-base58", default-features = false, cid = { default-features = false, git = "https://github.com/whalelephant/rust-cid", branch = "nstd" } multibase = { default-features = false, git = "https://github.com/whalelephant/rust-multibase", branch = "nstd" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets", default-features = false } +teerex-primitives = { git = "https://github.com/integritee-network/pallets", branch = "polkadot-v0.9.42", default-features = false } # local deps ita-oracle = { path = "../app-libs/oracle", default-features = false, optional = true, features = ["sgx"] } From e7255cb464bb3779e770bc10fa8c95bad32119bc Mon Sep 17 00:00:00 2001 From: brenzi Date: Mon, 7 Aug 2023 09:28:35 +0100 Subject: [PATCH 66/69] Update service/src/main.rs Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com> --- service/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/src/main.rs b/service/src/main.rs index 8672f28e3b..cab77e7230 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -922,8 +922,7 @@ fn we_are_primary_worker( ) -> Result { // are we registered? else fail. node_api - .enclave(enclave_account, None) - .unwrap() + .enclave(enclave_account, None)? .expect("our enclave should be registered at this point"); trace!("our enclave is registered"); match node_api.primary_worker_for_shard(shard, None).unwrap() { From c585cc0a2f4c3053a4adc1c11b46b0dc16496467 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 7 Aug 2023 09:37:13 +0100 Subject: [PATCH 67/69] taplo fmt --- enclave-runtime/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enclave-runtime/Cargo.toml b/enclave-runtime/Cargo.toml index 1fa0b17603..0447caad54 100644 --- a/enclave-runtime/Cargo.toml +++ b/enclave-runtime/Cargo.toml @@ -89,7 +89,7 @@ base58 = { rev = "sgx_1.1.3", package = "rust-base58", default-features = false, cid = { default-features = false, git = "https://github.com/whalelephant/rust-cid", branch = "nstd" } multibase = { default-features = false, git = "https://github.com/whalelephant/rust-multibase", branch = "nstd" } -teerex-primitives = { git = "https://github.com/integritee-network/pallets", branch = "polkadot-v0.9.42", default-features = false } +teerex-primitives = { git = "https://github.com/integritee-network/pallets", branch = "polkadot-v0.9.42", default-features = false } # local deps ita-oracle = { path = "../app-libs/oracle", default-features = false, optional = true, features = ["sgx"] } From 2b0df3ddd9116dae4e44301bc7f9c75e177d6d61 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 7 Aug 2023 09:56:02 +0100 Subject: [PATCH 68/69] missing std enable --- sidechain/validateer-fetch/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/sidechain/validateer-fetch/Cargo.toml b/sidechain/validateer-fetch/Cargo.toml index 5cfeb209d3..01988d59ce 100644 --- a/sidechain/validateer-fetch/Cargo.toml +++ b/sidechain/validateer-fetch/Cargo.toml @@ -35,6 +35,7 @@ std = [ "itp-storage/std", "itp-ocall-api/std", "its-primitives/std", + "itp-enclave-bridge-storage/std", ] [dev-dependencies] From 38b0a2c41ae7fea5dc4602268614c551335e3db5 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Mon, 7 Aug 2023 13:04:19 +0100 Subject: [PATCH 69/69] clippy --- .../node-api/api-client-extensions/src/pallet_teerex.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs index 02581d31ef..5b6556c11e 100644 --- a/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs +++ b/core-primitives/node-api/api-client-extensions/src/pallet_teerex.rs @@ -77,8 +77,7 @@ where } let enclaves = storage_keys .iter() - .map(|key| self.get_storage_by_key_hash(key.clone(), at_block).ok()?) - .flatten() + .filter_map(|key| self.get_storage_by_key_hash(key.clone(), at_block).ok()?) .collect(); Ok(enclaves) }