diff --git a/Cargo.lock b/Cargo.lock index 2306c4973..105b15e42 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -427,6 +427,12 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" +[[package]] +name = "base64" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" + [[package]] name = "base64" version = "0.12.3" @@ -1475,15 +1481,15 @@ dependencies = [ name = "erc20-pdex-migration-pallet" version = "1.0.0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-balances", "pallet-sudo", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -1536,6 +1542,15 @@ dependencies = [ "futures 0.3.17", ] +[[package]] +name = "failure" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86" +dependencies = [ + "backtrace", +] + [[package]] name = "fake-simd" version = "0.1.2" @@ -1652,18 +1667,38 @@ name = "frame-benchmarking" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "linregress", + "log", + "parity-scale-codec", + "paste", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "frame-benchmarking" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate)", "linregress", "log", "parity-scale-codec", "paste", - "sp-api", - "sp-io", - "sp-runtime", - "sp-runtime-interface", - "sp-std", - "sp-storage", + "scale-info 1.0.0", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -1673,8 +1708,8 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "Inflector", "chrono", - "frame-benchmarking", - "frame-support", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "handlebars", "linked-hash-map", "log", @@ -1684,11 +1719,11 @@ dependencies = [ "sc-executor", "sc-service", "serde", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "structopt", ] @@ -1697,12 +1732,12 @@ name = "frame-election-provider-support" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-arithmetic", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-npos-elections", - "sp-std", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -1710,14 +1745,24 @@ name = "frame-executive" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "parity-scale-codec", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "frame-metadata" +version = "14.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "sp-tracing", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", ] [[package]] @@ -1727,8 +1772,43 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "parity-scale-codec", "serde", - "sp-core", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "frame-metadata" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96616f82e069102b95a72c87de4c84d2f87ef7f0f20630e78ce3824436483110" +dependencies = [ + "cfg-if 1.0.0", + "parity-scale-codec", + "scale-info 1.0.0", + "serde", +] + +[[package]] +name = "frame-support" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "bitflags", + "frame-metadata 14.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "frame-support-procedural 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "paste", + "smallvec", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", ] [[package]] @@ -1737,24 +1817,63 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "bitflags", - "frame-metadata", - "frame-support-procedural", + "frame-metadata 14.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support-procedural 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "impl-trait-for-tuples", + "log", + "once_cell", + "parity-scale-codec", + "paste", + "serde", + "smallvec", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "frame-support" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "bitflags", + "frame-metadata 14.0.0", + "frame-support-procedural 4.0.0-dev (git+https://github.com/paritytech/substrate)", "impl-trait-for-tuples", "log", "once_cell", "parity-scale-codec", "paste", + "scale-info 1.0.0", "serde", "smallvec", - "sp-arithmetic", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-state-machine", - "sp-std", - "sp-tracing", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate)", +] + +[[package]] +name = "frame-support-procedural" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "Inflector", + "frame-support-procedural-tools 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "proc-macro2", + "quote", + "syn", ] [[package]] @@ -1763,7 +1882,31 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "Inflector", - "frame-support-procedural-tools", + "frame-support-procedural-tools 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "frame-support-procedural" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "Inflector", + "frame-support-procedural-tools 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "frame-support-procedural-tools" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "proc-macro-crate 1.1.0", "proc-macro2", "quote", "syn", @@ -1774,13 +1917,35 @@ name = "frame-support-procedural-tools" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support-procedural-tools-derive", + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", "proc-macro-crate 1.1.0", "proc-macro2", "quote", "syn", ] +[[package]] +name = "frame-support-procedural-tools" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate)", + "proc-macro-crate 1.1.0", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "frame-support-procedural-tools-derive" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" @@ -1791,20 +1956,62 @@ dependencies = [ "syn", ] +[[package]] +name = "frame-support-procedural-tools-derive" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "frame-system" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "log", + "parity-scale-codec", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", +] + [[package]] name = "frame-system" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "log", + "parity-scale-codec", + "serde", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "frame-system" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate)", "log", "parity-scale-codec", + "scale-info 1.0.0", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "sp-version", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -1812,13 +2019,13 @@ name = "frame-system-benchmarking" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -1827,7 +2034,7 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -1835,10 +2042,10 @@ name = "frame-try-runtime" version = "0.10.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "sp-api", - "sp-runtime", - "sp-std", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -1982,7 +2189,7 @@ checksum = "3a1387e07917c711fb4ee4f48ea0adb04a3c9739e53ef85bf43ae1edc2937a8b" dependencies = [ "futures-io", "rustls", - "webpki", + "webpki 0.21.4", ] [[package]] @@ -2339,7 +2546,23 @@ dependencies = [ "rustls-native-certs", "tokio", "tokio-rustls", - "webpki", + "webpki 0.21.4", +] + +[[package]] +name = "ias-verify" +version = "0.1.4" +source = "git+https://github.com/Polkadex-Substrate/pallet-substratee-registry?branch=master#87e4344317c88cdb07dd80cb43940f862c335f34" +dependencies = [ + "base64 0.11.0", + "chrono", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "parity-scale-codec", + "serde_json", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "webpki 0.21.0", ] [[package]] @@ -3009,7 +3232,7 @@ dependencies = [ "prost", "prost-build", "rand 0.7.3", - "ring", + "ring 0.16.20", "rw-stream-sink", "sha2 0.9.8", "smallvec", @@ -3919,15 +4142,15 @@ name = "node-executor" version = "3.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "node-primitives", "node-runtime", "parity-scale-codec", "sc-executor", - "sp-core", - "sp-keystore", - "sp-state-machine", - "sp-trie", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -3935,11 +4158,11 @@ name = "node-polkadex-runtime" version = "3.0.0" dependencies = [ "erc20-pdex-migration-pallet", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "frame-election-provider-support", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "hex-literal", @@ -3975,30 +4198,32 @@ dependencies = [ "pallet-staking", "pallet-staking-reward-curve", "pallet-sudo", - "pallet-timestamp", + "pallet-teerex", + "pallet-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-tips", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", "pallet-utility", "parity-scale-codec", - "polkadex-primitives", + "polkadex-ocex", + "polkadex-primitives 0.1.0 (git+https://github.com/Polkadex-Substrate/polkadex-primitives.git?branch=master)", "smallvec", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-npos-elections", "sp-offchain", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-transaction-pool", - "sp-version", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "static_assertions", "substrate-wasm-builder", ] @@ -4008,11 +4233,11 @@ name = "node-primitives" version = "2.0.0" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-system", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-application-crypto", - "sp-core", - "sp-runtime", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4020,11 +4245,11 @@ name = "node-runtime" version = "3.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "frame-election-provider-support", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "frame-system-rpc-runtime-api", "frame-try-runtime", "log", @@ -4061,7 +4286,7 @@ dependencies = [ "pallet-staking", "pallet-staking-reward-curve", "pallet-sudo", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-tips", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", @@ -4071,21 +4296,21 @@ dependencies = [ "pallet-utility", "pallet-vesting", "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", - "sp-core", - "sp-inherents", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-keyring", "sp-npos-elections", "sp-offchain", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-transaction-pool", - "sp-version", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "static_assertions", "substrate-wasm-builder", ] @@ -4253,15 +4478,15 @@ name = "orml-currencies" version = "0.4.1-dev" source = "git+https://github.com/Gauthamastro/open-runtime-module-library.git?branch=gj-substrate-master#20c36287560c733a58fc82c428a9f34e1ca6276c" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "orml-traits", "orml-utilities", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4269,13 +4494,13 @@ name = "orml-tokens" version = "0.4.1-dev" source = "git+https://github.com/Gauthamastro/open-runtime-module-library.git?branch=gj-substrate-master#20c36287560c733a58fc82c428a9f34e1ca6276c" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "orml-traits", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4283,15 +4508,15 @@ name = "orml-traits" version = "0.4.1-dev" source = "git+https://github.com/Gauthamastro/open-runtime-module-library.git?branch=gj-substrate-master#20c36287560c733a58fc82c428a9f34e1ca6276c" dependencies = [ - "frame-support", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "impl-trait-for-tuples", "num-traits", "orml-utilities", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "xcm", ] @@ -4300,12 +4525,12 @@ name = "orml-utilities" version = "0.4.1-dev" source = "git+https://github.com/Gauthamastro/open-runtime-module-library.git?branch=gj-substrate-master#20c36287560c733a58fc82c428a9f34e1ca6276c" dependencies = [ - "frame-support", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4313,13 +4538,13 @@ name = "orml-vesting" version = "0.4.1-dev" source = "git+https://github.com/Gauthamastro/open-runtime-module-library.git?branch=gj-substrate-master#20c36287560c733a58fc82c428a9f34e1ca6276c" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4336,12 +4561,12 @@ name = "pallet-assets" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4349,14 +4574,14 @@ name = "pallet-authority-discovery" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-session", "parity-scale-codec", - "sp-application-crypto", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-authority-discovery", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4364,13 +4589,13 @@ name = "pallet-authorship" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "impl-trait-for-tuples", "parity-scale-codec", "sp-authorship", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4378,22 +4603,22 @@ name = "pallet-babe" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "pallet-authorship", "pallet-session", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-application-crypto", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-consensus-babe", "sp-consensus-vrf", - "sp-io", - "sp-runtime", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4401,13 +4626,13 @@ name = "pallet-balances" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4415,12 +4640,12 @@ name = "pallet-bounties" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-treasury", "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4428,14 +4653,14 @@ name = "pallet-collective" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4444,9 +4669,9 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "bitflags", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "pallet-contracts-primitives", "pallet-contracts-proc-macro", @@ -4455,11 +4680,11 @@ dependencies = [ "rand 0.8.4", "serde", "smallvec", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-sandbox", - "sp-std", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "wasmi-validation", ] @@ -4471,9 +4696,9 @@ dependencies = [ "bitflags", "parity-scale-codec", "serde", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4498,11 +4723,11 @@ dependencies = [ "pallet-contracts-rpc-runtime-api", "parity-scale-codec", "serde", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-rpc", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4512,9 +4737,9 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "pallet-contracts-primitives", "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4522,14 +4747,14 @@ name = "pallet-democracy" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4538,16 +4763,16 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", - "sp-arithmetic", - "sp-core", - "sp-io", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-npos-elections", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "static_assertions", ] @@ -4556,15 +4781,15 @@ name = "pallet-elections-phragmen" version = "5.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", - "sp-core", - "sp-io", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-npos-elections", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4572,13 +4797,13 @@ name = "pallet-gilt" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-arithmetic", - "sp-runtime", - "sp-std", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4586,21 +4811,21 @@ name = "pallet-grandpa" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "pallet-authorship", "pallet-session", "parity-scale-codec", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-finality-grandpa", - "sp-io", - "sp-runtime", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4609,13 +4834,13 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4623,17 +4848,17 @@ name = "pallet-im-online" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "pallet-authorship", "parity-scale-codec", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4641,14 +4866,14 @@ name = "pallet-indices" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-core", - "sp-io", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-keyring", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4656,11 +4881,11 @@ name = "pallet-lottery" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4668,14 +4893,14 @@ name = "pallet-membership" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4684,15 +4909,15 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "ckb-merkle-mountain-range", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-mmr-primitives", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4700,15 +4925,15 @@ name = "pallet-mmr-primitives" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", "serde", - "sp-api", - "sp-core", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4716,12 +4941,12 @@ name = "pallet-multisig" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4729,38 +4954,38 @@ name = "pallet-offences" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "pallet-balances", "parity-scale-codec", "serde", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] name = "pallet-polkapool" version = "0.1.0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "orml-currencies", "orml-traits", "pallet-babe", "parity-scale-codec", - "polkadex-primitives", + "polkadex-primitives 0.1.0 (git+https://github.com/Polkadex-Substrate/polkadex-primitives.git?branch=master)", "rand 0.8.4", "rand_chacha 0.3.1", "serde", - "sp-arithmetic", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-consensus-vrf", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4768,12 +4993,12 @@ name = "pallet-proxy" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4781,12 +5006,12 @@ name = "pallet-randomness-collective-flip" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "safe-mix", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4794,12 +5019,12 @@ name = "pallet-recovery" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4807,14 +5032,14 @@ name = "pallet-scheduler" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4822,19 +5047,19 @@ name = "pallet-session" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "impl-trait-for-tuples", "log", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", - "sp-staking", - "sp-std", - "sp-trie", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4842,12 +5067,12 @@ name = "pallet-society" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "rand_chacha 0.2.2", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4856,18 +5081,18 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "pallet-authorship", "pallet-session", "parity-scale-codec", "serde", - "sp-application-crypto", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4886,12 +5111,30 @@ name = "pallet-sudo" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "parity-scale-codec", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "pallet-teerex" +version = "0.9.0" +source = "git+https://github.com/Polkadex-Substrate/pallet-substratee-registry?branch=master#87e4344317c88cdb07dd80cb43940f862c335f34" +dependencies = [ + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "ias-verify", + "log", + "pallet-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate)", "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", + "serde", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -4899,16 +5142,33 @@ name = "pallet-timestamp" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "log", + "parity-scale-codec", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "pallet-timestamp" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate)", "log", "parity-scale-codec", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", - "sp-timestamp", + "scale-info 1.0.0", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -4916,13 +5176,13 @@ name = "pallet-tips" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-treasury", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4930,15 +5190,15 @@ name = "pallet-transaction-payment" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "serde", "smallvec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4951,11 +5211,11 @@ dependencies = [ "jsonrpc-derive", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-rpc", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4965,8 +5225,8 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "pallet-transaction-payment", "parity-scale-codec", - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -4974,15 +5234,15 @@ name = "pallet-transaction-storage" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "pallet-balances", "parity-scale-codec", "serde", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-transaction-storage-proof", ] @@ -4991,14 +5251,14 @@ name = "pallet-treasury" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "impl-trait-for-tuples", "pallet-balances", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -5006,12 +5266,12 @@ name = "pallet-uniques" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -5019,13 +5279,13 @@ name = "pallet-utility" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -5033,12 +5293,12 @@ name = "pallet-vesting" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "log", "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -5420,10 +5680,10 @@ version = "3.0.0" dependencies = [ "assert_cmd", "async-std", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "frame-benchmarking-cli", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "futures 0.3.17", "hex-literal", "itertools", @@ -5441,7 +5701,7 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.11.2", "platforms", - "polkadex-primitives", + "polkadex-primitives 0.1.0 (git+https://github.com/Polkadex-Substrate/polkadex-primitives.git?branch=master)", "rand 0.7.3", "regex", "sc-authority-discovery", @@ -5471,39 +5731,88 @@ dependencies = [ "serde", "serde_json", "soketto", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-authority-discovery", "sp-authorship", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-finality-grandpa", - "sp-inherents", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-timestamp", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-transaction-pool", - "sp-trie", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "structopt", "substrate-build-script-utils", "substrate-frame-rpc-system", "tempfile", ] +[[package]] +name = "polkadex-ocex" +version = "0.1.0" +dependencies = [ + "frame-benchmarking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "orml-currencies", + "orml-tokens", + "orml-traits", + "pallet-balances", + "pallet-teerex", + "pallet-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "parity-scale-codec", + "polkadex-primitives 0.1.0 (git+https://github.com/Polkadex-Substrate/polkadex-primitives.git?branch=master)", + "polkadex-sgx-primitives", + "rustc-hex", + "serde", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keyring", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + [[package]] name = "polkadex-primitives" version = "0.1.0" -source = "git+https://github.com/Polkadex-Substrate/polkadex-primitives.git?branch=gj-substrate-master#a36166b4786317c832f4dace9b828a558c651af2" +source = "git+https://github.com/Polkadex-Substrate/polkadex-primitives.git?branch=master#a36166b4786317c832f4dace9b828a558c651af2" dependencies = [ - "frame-system", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "serde", - "sp-application-crypto", - "sp-core", - "sp-runtime", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "polkadex-primitives" +version = "0.1.0" +source = "git+https://github.com/Polkadex-Substrate/polkadex-primitives?branch=substrate-monthly-2021-09+1#404ecabedcc04c7670f198800da83a75a432eb93" +dependencies = [ + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "parity-scale-codec", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", +] + +[[package]] +name = "polkadex-sgx-primitives" +version = "0.1.0" +source = "git+https://github.com/Polkadex-Substrate/polkadexTEE-worker?branch=monthly-2021-09+1#712c4799180d572447250ead34523f0bf9a95804" +dependencies = [ + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "parity-scale-codec", + "polkadex-primitives 0.1.0 (git+https://github.com/Polkadex-Substrate/polkadex-primitives?branch=substrate-monthly-2021-09+1)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", ] [[package]] @@ -5584,6 +5893,7 @@ dependencies = [ "fixed-hash", "impl-codec", "impl-serde", + "scale-info 1.0.0", "uint", ] @@ -5690,7 +6000,7 @@ dependencies = [ "prost", "prost-types", "tempfile", - "which", + "which 4.2.2", ] [[package]] @@ -6079,6 +6389,19 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9c17925a9027d298a4603d286befe3f9dc0e8ed02523141914eb628798d6e5b" +[[package]] +name = "ring" +version = "0.16.9" +source = "git+https://github.com/scs/webpki-nostd.git#935d31c36fa9b6d55a3226572eaf2b3ded7cf437" +dependencies = [ + "cc", + "libc", + "spin", + "untrusted", + "which 3.1.1", + "winapi 0.3.9", +] + [[package]] name = "ring" version = "0.16.20" @@ -6167,9 +6490,9 @@ checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" dependencies = [ "base64 0.13.0", "log", - "ring", + "ring 0.16.20", "sct", - "webpki", + "webpki 0.21.4", ] [[package]] @@ -6250,8 +6573,8 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "log", - "sp-core", - "sp-wasm-interface", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -6273,12 +6596,12 @@ dependencies = [ "rand 0.7.3", "sc-client-api", "sc-network", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-authority-discovery", "sp-blockchain", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-prometheus-endpoint", ] @@ -6296,12 +6619,12 @@ dependencies = [ "sc-proposer-metrics", "sc-telemetry", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-prometheus-endpoint", ] @@ -6312,13 +6635,13 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "parity-scale-codec", "sc-client-api", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-block-builder", "sp-blockchain", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6333,8 +6656,8 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-core", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6373,13 +6696,13 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-keyring", - "sp-keystore", - "sp-panic-handler", - "sp-runtime", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-utils", - "sp-version", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "structopt", "thiserror", "tiny-bip39", @@ -6399,17 +6722,17 @@ dependencies = [ "parking_lot 0.11.2", "sc-executor", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-database", - "sp-externalities", - "sp-keystore", - "sp-runtime", - "sp-state-machine", - "sp-storage", - "sp-trie", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-utils", "substrate-prometheus-endpoint", ] @@ -6430,13 +6753,13 @@ dependencies = [ "parking_lot 0.11.2", "sc-client-api", "sc-state-db", - "sp-arithmetic", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-database", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6452,12 +6775,12 @@ dependencies = [ "parking_lot 0.11.2", "sc-client-api", "serde", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-utils", "substrate-prometheus-endpoint", "thiserror", @@ -6489,20 +6812,20 @@ dependencies = [ "sc-telemetry", "schnorrkel", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-consensus-slots", "sp-consensus-vrf", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-version", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-prometheus-endpoint", ] @@ -6520,14 +6843,14 @@ dependencies = [ "sc-consensus-epochs", "sc-rpc-api", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6540,7 +6863,7 @@ dependencies = [ "sc-client-api", "sc-consensus", "sp-blockchain", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6556,16 +6879,16 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-telemetry", - "sp-api", - "sp-arithmetic", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -6576,7 +6899,7 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "sc-client-api", "sp-authorship", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -6593,16 +6916,16 @@ dependencies = [ "sc-executor-common", "sc-executor-wasmi", "sc-executor-wasmtime", - "sp-api", - "sp-core", - "sp-externalities", - "sp-io", - "sp-panic-handler", - "sp-runtime-interface", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-tasks", - "sp-trie", - "sp-version", - "sp-wasm-interface", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "wasmi", ] @@ -6615,10 +6938,10 @@ dependencies = [ "parity-scale-codec", "pwasm-utils", "sc-allocator", - "sp-core", - "sp-maybe-compressed-blob", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-maybe-compressed-blob 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-serializer", - "sp-wasm-interface", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", "wasmi", ] @@ -6633,9 +6956,9 @@ dependencies = [ "sc-allocator", "sc-executor-common", "scoped-tls", - "sp-core", - "sp-runtime-interface", - "sp-wasm-interface", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "wasmi", ] @@ -6652,9 +6975,9 @@ dependencies = [ "sc-allocator", "sc-executor-common", "scoped-tls", - "sp-core", - "sp-runtime-interface", - "sp-wasm-interface", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "wasmtime", ] @@ -6682,15 +7005,15 @@ dependencies = [ "sc-network-gossip", "sc-telemetry", "serde_json", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-finality-grandpa", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-utils", "substrate-prometheus-endpoint", ] @@ -6715,8 +7038,8 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6733,7 +7056,7 @@ dependencies = [ "sc-network", "sc-transaction-pool-api", "sp-blockchain", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6746,9 +7069,9 @@ dependencies = [ "hex", "parking_lot 0.11.2", "serde_json", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6761,12 +7084,12 @@ dependencies = [ "parking_lot 0.11.2", "sc-client-api", "sc-executor", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-state-machine", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6806,12 +7129,12 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-arithmetic", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-finality-grandpa", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-utils", "substrate-prometheus-endpoint", "thiserror", @@ -6831,7 +7154,7 @@ dependencies = [ "log", "lru", "sc-network", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-prometheus-endpoint", "tracing", ] @@ -6855,10 +7178,10 @@ dependencies = [ "rand 0.7.3", "sc-client-api", "sc-network", - "sp-api", - "sp-core", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-offchain", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-utils", "threadpool", ] @@ -6904,16 +7227,16 @@ dependencies = [ "sc-tracing", "sc-transaction-pool-api", "serde_json", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", - "sp-core", - "sp-keystore", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-offchain", "sp-rpc", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", "sp-utils", - "sp-version", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -6933,11 +7256,11 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-rpc", - "sp-runtime", - "sp-tracing", - "sp-version", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -6995,25 +7318,25 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-externalities", - "sp-inherents", - "sp-keystore", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", - "sp-state-machine", - "sp-storage", - "sp-tracing", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-transaction-pool", "sp-transaction-storage-proof", - "sp-trie", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-utils", - "sp-version", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-prometheus-endpoint", "tempfile", "thiserror", @@ -7041,17 +7364,17 @@ dependencies = [ "sc-network", "sc-service", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-externalities", - "sp-panic-handler", - "sp-runtime", - "sp-state-machine", - "sp-storage", - "sp-tracing", - "sp-trie", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-test-runtime", "substrate-test-runtime-client", "tempfile", @@ -7069,7 +7392,7 @@ dependencies = [ "parity-util-mem-derive", "parking_lot 0.11.2", "sc-client-api", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -7090,7 +7413,7 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -7129,12 +7452,12 @@ dependencies = [ "sc-rpc-server", "sc-tracing-proc-macro", "serde", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-rpc", - "sp-runtime", - "sp-tracing", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", "tracing", "tracing-log", @@ -7168,11 +7491,11 @@ dependencies = [ "sc-client-api", "sc-transaction-pool-api", "serde", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-tracing", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-transaction-pool", "sp-utils", "substrate-prometheus-endpoint", @@ -7189,7 +7512,7 @@ dependencies = [ "log", "serde", "sp-blockchain", - "sp-runtime", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -7217,6 +7540,7 @@ dependencies = [ "derive_more", "parity-scale-codec", "scale-info-derive 1.0.0", + "serde", ] [[package]] @@ -7289,7 +7613,7 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" dependencies = [ - "ring", + "ring 0.16.20", "untrusted", ] @@ -7567,7 +7891,7 @@ dependencies = [ "chacha20poly1305", "rand 0.8.4", "rand_core 0.6.3", - "ring", + "ring 0.16.20", "rustc_version 0.3.3", "sha2 0.9.8", "subtle", @@ -7619,12 +7943,29 @@ dependencies = [ "hash-db", "log", "parity-scale-codec", - "sp-api-proc-macro", - "sp-core", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-version", + "sp-api-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "thiserror", +] + +[[package]] +name = "sp-api" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "sp-api-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate)", "thiserror", ] @@ -7640,83 +7981,147 @@ dependencies = [ "syn", ] +[[package]] +name = "sp-api-proc-macro" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "blake2-rfc", + "proc-macro-crate 1.1.0", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" dependencies = [ "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", ] [[package]] -name = "sp-arithmetic" +name = "sp-application-crypto" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "integer-sqrt", - "num-traits", "parity-scale-codec", "serde", - "sp-debug-derive", - "sp-std", - "static_assertions", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] -name = "sp-authority-discovery" +name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-application-crypto", - "sp-runtime", - "sp-std", + "scale-info 1.0.0", + "serde", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] -name = "sp-authorship" +name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" dependencies = [ - "async-trait", + "integer-sqrt", + "num-traits", "parity-scale-codec", - "sp-inherents", - "sp-runtime", - "sp-std", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "static_assertions", ] [[package]] -name = "sp-block-builder" +name = "sp-arithmetic" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ + "integer-sqrt", + "num-traits", "parity-scale-codec", - "sp-api", - "sp-inherents", - "sp-runtime", - "sp-std", + "serde", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "static_assertions", ] [[package]] -name = "sp-blockchain" +name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" dependencies = [ - "futures 0.3.17", - "log", + "integer-sqrt", + "num-traits", + "parity-scale-codec", + "scale-info 1.0.0", + "serde", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "static_assertions", +] + +[[package]] +name = "sp-authority-discovery" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +dependencies = [ + "parity-scale-codec", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-authorship" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +dependencies = [ + "async-trait", + "parity-scale-codec", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-block-builder" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +dependencies = [ + "parity-scale-codec", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-blockchain" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +dependencies = [ + "futures 0.3.17", + "log", "lru", "parity-scale-codec", "parking_lot 0.11.2", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-consensus", "sp-database", - "sp-runtime", - "sp-state-machine", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -7730,12 +8135,12 @@ dependencies = [ "futures-timer 3.0.2", "log", "parity-scale-codec", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-version", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] @@ -7746,14 +8151,14 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "async-trait", "parity-scale-codec", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-consensus", "sp-consensus-slots", - "sp-inherents", - "sp-runtime", - "sp-std", - "sp-timestamp", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -7765,17 +8170,17 @@ dependencies = [ "merlin", "parity-scale-codec", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-consensus", "sp-consensus-slots", "sp-consensus-vrf", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-std", - "sp-timestamp", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -7784,8 +8189,8 @@ version = "0.10.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "parity-scale-codec", - "sp-arithmetic", - "sp-runtime", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -7795,9 +8200,30 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "parity-scale-codec", "schnorrkel", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-core" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "byteorder", + "hash-db", + "hash256-std-hasher", + "log", + "num-traits", + "parity-scale-codec", + "parity-util-mem", + "primitive-types", + "secrecy", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "zeroize", ] [[package]] @@ -7830,11 +8256,56 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.8", - "sp-debug-derive", - "sp-externalities", - "sp-runtime-interface", - "sp-std", - "sp-storage", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "substrate-bip39", + "thiserror", + "tiny-bip39", + "tiny-keccak", + "twox-hash", + "wasmi", + "zeroize", +] + +[[package]] +name = "sp-core" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "base58", + "blake2-rfc", + "byteorder", + "dyn-clonable", + "ed25519-dalek", + "futures 0.3.17", + "hash-db", + "hash256-std-hasher", + "hex", + "impl-serde", + "lazy_static", + "libsecp256k1 0.6.0", + "log", + "merlin", + "num-traits", + "parity-scale-codec", + "parity-util-mem", + "parking_lot 0.11.2", + "primitive-types", + "rand 0.7.3", + "regex", + "scale-info 1.0.0", + "schnorrkel", + "secrecy", + "serde", + "sha2 0.9.8", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -7853,6 +8324,16 @@ dependencies = [ "parking_lot 0.11.2", ] +[[package]] +name = "sp-debug-derive" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sp-debug-derive" version = "3.0.0" @@ -7863,6 +8344,16 @@ dependencies = [ "syn", ] +[[package]] +name = "sp-debug-derive" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sp-externalities" version = "0.10.0-dev" @@ -7870,8 +8361,19 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "environmental", "parity-scale-codec", - "sp-std", - "sp-storage", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-externalities" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -7883,12 +8385,23 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-inherents" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", ] [[package]] @@ -7899,12 +8412,42 @@ dependencies = [ "async-trait", "impl-trait-for-tuples", "parity-scale-codec", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] +[[package]] +name = "sp-inherents" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "async-trait", + "impl-trait-for-tuples", + "parity-scale-codec", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "thiserror", +] + +[[package]] +name = "sp-io" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "hash-db", + "parity-scale-codec", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "tracing", + "tracing-core", +] + [[package]] name = "sp-io" version = "4.0.0-dev" @@ -7916,16 +8459,41 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.11.2", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-maybe-compressed-blob", - "sp-runtime-interface", - "sp-state-machine", - "sp-std", - "sp-tracing", - "sp-trie", - "sp-wasm-interface", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-maybe-compressed-blob 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-io" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "futures 0.3.17", + "hash-db", + "libsecp256k1 0.6.0", + "log", + "parity-scale-codec", + "parking_lot 0.11.2", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-maybe-compressed-blob 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate)", "tracing", "tracing-core", ] @@ -7936,8 +8504,8 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "lazy_static", - "sp-core", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "strum", ] @@ -7954,8 +8522,24 @@ dependencies = [ "parking_lot 0.11.2", "schnorrkel", "serde", - "sp-core", - "sp-externalities", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-keystore" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "async-trait", + "derive_more", + "futures 0.3.17", + "merlin", + "parity-scale-codec", + "parking_lot 0.11.2", + "schnorrkel", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -7967,6 +8551,14 @@ dependencies = [ "zstd", ] +[[package]] +name = "sp-maybe-compressed-blob" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "zstd", +] + [[package]] name = "sp-npos-elections" version = "4.0.0-dev" @@ -7974,10 +8566,10 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "parity-scale-codec", "serde", - "sp-arithmetic", - "sp-core", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-npos-elections-solution-type", - "sp-std", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -7996,9 +8588,9 @@ name = "sp-offchain" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -8009,6 +8601,14 @@ dependencies = [ "backtrace", ] +[[package]] +name = "sp-panic-handler" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "backtrace", +] + [[package]] name = "sp-rpc" version = "4.0.0-dev" @@ -8016,7 +8616,26 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "rustc-hash", "serde", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-runtime" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "parity-util-mem", + "paste", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", ] [[package]] @@ -8033,11 +8652,49 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-std", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-runtime" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "parity-util-mem", + "paste", + "rand 0.7.3", + "scale-info 1.0.0", + "serde", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-arithmetic 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", +] + +[[package]] +name = "sp-runtime-interface" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "primitive-types", + "sp-runtime-interface-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "static_assertions", ] [[package]] @@ -8048,15 +8705,44 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities", - "sp-runtime-interface-proc-macro", - "sp-std", - "sp-storage", - "sp-tracing", - "sp-wasm-interface", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "static_assertions", +] + +[[package]] +name = "sp-runtime-interface" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "primitive-types", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime-interface-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-storage 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-tracing 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate)", "static_assertions", ] +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "Inflector", + "proc-macro-crate 1.1.0", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" @@ -8069,6 +8755,18 @@ dependencies = [ "syn", ] +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "Inflector", + "proc-macro-crate 1.1.0", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sp-sandbox" version = "0.10.0-dev" @@ -8076,10 +8774,10 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "log", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-std", - "sp-wasm-interface", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-wasm-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "wasmi", ] @@ -8098,11 +8796,21 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-core", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-staking 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-staking" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "parity-scale-codec", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", ] [[package]] @@ -8111,8 +8819,19 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-staking" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "parity-scale-codec", + "scale-info 1.0.0", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -8127,22 +8846,66 @@ dependencies = [ "parking_lot 0.11.2", "rand 0.7.3", "smallvec", - "sp-core", - "sp-externalities", - "sp-panic-handler", - "sp-std", - "sp-trie", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "thiserror", + "tracing", + "trie-db", + "trie-root", +] + +[[package]] +name = "sp-state-machine" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "hash-db", + "log", + "num-traits", + "parity-scale-codec", + "parking_lot 0.11.2", + "rand 0.7.3", + "smallvec", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate)", "thiserror", "tracing", "trie-db", "trie-root", ] +[[package]] +name = "sp-std" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" + [[package]] name = "sp-std" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" +[[package]] +name = "sp-std" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" + +[[package]] +name = "sp-storage" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "parity-scale-codec", + "ref-cast", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", +] + [[package]] name = "sp-storage" version = "4.0.0-dev" @@ -8152,8 +8915,21 @@ dependencies = [ "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive", - "sp-std", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", +] + +[[package]] +name = "sp-storage" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -8162,11 +8938,11 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "log", - "sp-core", - "sp-externalities", - "sp-io", - "sp-runtime-interface", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -8178,13 +8954,40 @@ dependencies = [ "futures-timer 3.0.2", "log", "parity-scale-codec", - "sp-api", - "sp-inherents", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "thiserror", +] + +[[package]] +name = "sp-timestamp" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "async-trait", + "futures-timer 3.0.2", + "log", + "parity-scale-codec", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", "thiserror", ] +[[package]] +name = "sp-tracing" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "parity-scale-codec", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "tracing", + "tracing-core", +] + [[package]] name = "sp-tracing" version = "4.0.0-dev" @@ -8197,7 +9000,25 @@ dependencies = [ "serde", "serde_json", "slog", - "sp-std", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "sp-tracing" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "erased-serde", + "log", + "parity-scale-codec", + "parking_lot 0.10.2", + "serde", + "serde_json", + "slog", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", "tracing", "tracing-core", "tracing-subscriber", @@ -8208,8 +9029,8 @@ name = "sp-transaction-pool" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -8220,11 +9041,11 @@ dependencies = [ "async-trait", "log", "parity-scale-codec", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-std", - "sp-trie", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -8235,8 +9056,23 @@ dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core", - "sp-std", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "trie-db", + "trie-root", +] + +[[package]] +name = "sp-trie" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "hash-db", + "memory-db", + "parity-scale-codec", + "scale-info 1.0.0", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", "trie-db", "trie-root", ] @@ -8252,6 +9088,17 @@ dependencies = [ "prometheus", ] +[[package]] +name = "sp-version" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "parity-scale-codec", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", + "sp-version-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", +] + [[package]] name = "sp-version" version = "4.0.0-dev" @@ -8261,12 +9108,39 @@ dependencies = [ "parity-scale-codec", "parity-wasm 0.42.2", "serde", - "sp-runtime", - "sp-std", - "sp-version-proc-macro", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "thiserror", ] +[[package]] +name = "sp-version" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "parity-wasm 0.42.2", + "scale-info 1.0.0", + "serde", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "sp-version-proc-macro 4.0.0-dev (git+https://github.com/paritytech/substrate)", + "thiserror", +] + +[[package]] +name = "sp-version-proc-macro" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "parity-scale-codec", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" @@ -8278,6 +9152,27 @@ dependencies = [ "syn", ] +[[package]] +name = "sp-version-proc-macro" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "parity-scale-codec", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "sp-wasm-interface" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1#20a9bbb1fe47fcd62fcd64b2fa32456b4f434aaf" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate.git?tag=monthly-2021-09+1)", +] + [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" @@ -8285,7 +9180,18 @@ source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653 dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "wasmi", +] + +[[package]] +name = "sp-wasm-interface" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate#eded99055e32c1b096993b94b38d3f6e04237c18" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate)", "wasmi", ] @@ -8417,11 +9323,11 @@ dependencies = [ "sc-client-api", "sc-rpc-api", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-block-builder", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -8458,11 +9364,11 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-keystore 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", ] [[package]] @@ -8471,37 +9377,37 @@ version = "2.0.0" source = "git+https://github.com/paritytech/substrate?branch=master#dd297887c653e344c566e976c050b01f7dea8eef" dependencies = [ "cfg-if 1.0.0", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "frame-system 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "frame-system-rpc-runtime-api", "log", "memory-db", "pallet-babe", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "parity-scale-codec", "parity-util-mem", "sc-service", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-application-crypto 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-block-builder", "sp-consensus-aura", "sp-consensus-babe", - "sp-core", - "sp-externalities", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-externalities 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-finality-grandpa", - "sp-inherents", - "sp-io", + "sp-inherents 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-io 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-keyring", "sp-offchain", - "sp-runtime", - "sp-runtime-interface", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime-interface 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-session", - "sp-state-machine", - "sp-std", + "sp-state-machine 0.10.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-std 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-transaction-pool", - "sp-trie", - "sp-version", + "sp-trie 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-version 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-wasm-builder", "trie-db", ] @@ -8517,11 +9423,11 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-light", - "sp-api", + "sp-api 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", + "sp-runtime 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "substrate-test-client", "substrate-test-runtime", ] @@ -8534,7 +9440,7 @@ dependencies = [ "ansi_term 0.12.1", "build-helper", "cargo_metadata", - "sp-maybe-compressed-blob", + "sp-maybe-compressed-blob 4.0.0-dev (git+https://github.com/paritytech/substrate?branch=master)", "tempfile", "toml", "walkdir", @@ -8742,7 +9648,7 @@ checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" dependencies = [ "rustls", "tokio", - "webpki", + "webpki 0.21.4", ] [[package]] @@ -9516,13 +10422,23 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki" +version = "0.21.0" +source = "git+https://github.com/scs/webpki-nostd.git#935d31c36fa9b6d55a3226572eaf2b3ded7cf437" +dependencies = [ + "ring 0.16.20", + "ring 0.16.9", + "untrusted", +] + [[package]] name = "webpki" version = "0.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" dependencies = [ - "ring", + "ring 0.16.20", "untrusted", ] @@ -9532,7 +10448,7 @@ version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940" dependencies = [ - "webpki", + "webpki 0.21.4", ] [[package]] @@ -9544,6 +10460,16 @@ dependencies = [ "cc", ] +[[package]] +name = "which" +version = "3.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724" +dependencies = [ + "failure", + "libc", +] + [[package]] name = "which" version = "4.2.2" diff --git a/Cargo.toml b/Cargo.toml index 339784bf0..677c0b344 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,14 +4,13 @@ panic = 'unwind' [workspace] members = [ 'node', + 'pallets/ocex', 'pallets/pdex-migration', 'runtime', 'contracts/uniswap_v2', ] +#[patch."https://github.com/open-web3-stack/open-runtime-module-library.git"] [patch."https://github.com/open-web3-stack/open-runtime-module-library.git"] -orml-vesting = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master"} -orml-currencies = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master"} -orml-tokens = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master"} -orml-traits = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master"} +orml-vesting = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master"} \ No newline at end of file diff --git a/node/Cargo.toml b/node/Cargo.toml index 0113b4d9a..cb7937d99 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -51,7 +51,7 @@ sc-authority-discovery = { git = "https://github.com/paritytech/substrate", bra sc-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-consensus-babe-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-consensus-epochs = { git = "https://github.com/paritytech/substrate", branch = "master" } -grandpa = { git = "https://github.com/paritytech/substrate", branch = "master" ,package="sc-finality-grandpa"} +grandpa = { git = "https://github.com/paritytech/substrate", branch = "master", package="sc-finality-grandpa"} sc-finality-grandpa-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } @@ -66,7 +66,7 @@ sp-consensus = { git = "https://github.com/paritytech/substrate", branch = "mas sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } -grandpa-primitives = { git = "https://github.com/paritytech/substrate", branch = "master" , package="sp-finality-grandpa"} +grandpa-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", package="sp-finality-grandpa"} sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" } @@ -81,7 +81,7 @@ sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate", br sp-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master" } #Primitives -polkadex-primitives = { git = "https://github.com/Polkadex-Substrate/polkadex-primitives.git", branch = 'gj-substrate-master'} +polkadex-primitives = { git = "https://github.com/Polkadex-Substrate/polkadex-primitives.git", branch = 'master'} sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" } @@ -98,15 +98,15 @@ futures = "0.3.9" tempfile = "3.1.0" assert_cmd = "1.0" nix = "0.19" -serde_json = "1.0" +serde_json = "1.0.68" regex = "1" platforms = "1.1" async-std = { version = "1.6.5", features = ["attributes"] } soketto = "0.4.2" -sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } -sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" } -sc-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" } -sc-consensus-epochs = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev" } +sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master", version = "0.10.0-dev" } +sc-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master", version = "0.10.0-dev" } +sc-consensus-epochs = { git = "https://github.com/paritytech/substrate", branch = "master", version = "0.10.0-dev" } [features] diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 3a3d49da3..376ab8cc7 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -14,7 +14,7 @@ use sp_runtime::{traits::{IdentifyAccount, Verify}, Perbill}; use node_polkadex_runtime::{SessionKeys}; use node_polkadex_runtime::{ wasm_binary_unwrap, AuthorityDiscoveryConfig, BabeConfig, BalancesConfig, - CouncilConfig, IndicesConfig, + CouncilConfig, IndicesConfig, PolkadexOcexConfig, OrmlVestingConfig, SessionConfig, StakerStatus, PDEXMigrationConfig, StakingConfig, SudoConfig, SystemConfig, TechnicalCommitteeConfig, TokensConfig }; @@ -177,6 +177,9 @@ pub fn authority_keys_from_seed( ) } +#[allow(non_upper_case_globals)] +pub const OCEXGenesisAccount: PalletId = PalletId(*b"polka/ga"); + fn development_config_genesis() -> GenesisConfig { testnet_genesis( vec![authority_keys_from_seed("Alice")], @@ -316,6 +319,7 @@ pub fn testnet_genesis( _initial_nominators: Vec, root_key: AccountId ) -> GenesisConfig { + let genesis: AccountId = OCEXGenesisAccount.into_account(); const ENDOWMENT: u128 = 20_000 * PDEX; const STASH: u128 = 2 * PDEX; // Total Supply in ERC20 @@ -427,7 +431,12 @@ pub fn testnet_genesis( pdex_migration: PDEXMigrationConfig { max_tokens: ERC20_PDEX_SUPPLY, operation_status: false - } + }, + polkadex_ocex: PolkadexOcexConfig { + key: genesis.clone(), + genesis_account: genesis, + }, + tokens: TokensConfig{ balances: vec![] } } } diff --git a/pallets/ocex/Cargo.toml b/pallets/ocex/Cargo.toml new file mode 100644 index 000000000..95cb23d7c --- /dev/null +++ b/pallets/ocex/Cargo.toml @@ -0,0 +1,53 @@ +[package] +name = "polkadex-ocex" +version = "0.1.0" +authors = ["Anonymous"] +edition = "2018" + +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[dependencies] +codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false, features = ["derive"] } +hex = { version = "2.1.0", package = "rustc-hex", default-features = false } +serde = { version = "1.0.101", optional = true } + +frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false } +frame-system = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false } +sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false } +sp-std = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false } +sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false } +polkadex-primitives = { git = "https://github.com/Polkadex-Substrate/polkadex-primitives", branch = "master", default-features=false} +frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false, optional = true } +orml-tokens = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } +orml-currencies = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } +orml-traits = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } +pallet-balances = {git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false } +pallet-substratee-registry = { package="pallet-teerex", git = "https://github.com/Polkadex-Substrate/pallet-substratee-registry", branch = "master", default-features = false } +timestamp= {git = "https://github.com/paritytech/substrate.git", package = "pallet-timestamp",branch = "master", version = "4.0.0-dev", default-features = false} +polkadex-sgx-primitives = {git = "https://github.com/Polkadex-Substrate/polkadexTEE-worker", branch = "monthly-2021-09+1", default-features=false} + +[dev-dependencies] +sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master", version = "4.0.0-dev", default-features = false } + +[features] +default = ["std"] +std = [ + "serde", + "hex/std", + "codec/std", + "frame-support/std", + "frame-system/std", + "sp-core/std", + "sp-std/std", + "sp-io/std", + "sp-runtime/std", + "polkadex-primitives/std", + "orml-tokens/std", + "orml-currencies/std", + "orml-traits/std", + "pallet-balances/std", + "pallet-substratee-registry/std", +] +runtime-benchmarks = ["frame-benchmarking"] diff --git a/pallets/ocex/README.md b/pallets/ocex/README.md new file mode 100644 index 000000000..f05f46506 --- /dev/null +++ b/pallets/ocex/README.md @@ -0,0 +1,81 @@ +# Polkadex OCEX Pallet + +OCEX pallet handles the deposits, withdrawals and off-chain workers for verifying the IPFS snapshots of enclave, and safeguards user funds by initiating emergency shutdown protocol. + +## Importing a `polkadex-ocex` pallet + +The first thing you need to do to add the `polkadex-ocex` pallet is to import the `polkadex-ocex` crate in your runtime's Cargo.toml file + +`runtime/Cargo.toml` + +``` +[dependencies] +#--snip-- +polkadex-ocex = { git = "https://github.com/Polkadex-Substrate/Polkadex", default-features = false } +``` + +Add the following two lines to the runtime's std feature. + +``` +[features] +default = ['std'] +std = [ + #--snip-- + "polkadex-ocex/std", + #--snip-- +] +``` + +### Adding the `polkadex-ocex` pallet + +`runtime/src/lib.rs` + +- Adding to the construct_runtime! Macro + +``` + PolkadexOcex: polkadex_ocex::{Pallet, Call, Storage, Config, Event} +``` + +- Runtime Configuration + +``` +parameter_types! { + pub const ProxyLimit: usize = 10; // Max sub-accounts per main account + pub const OcexModuleId: PalletId = PalletId(*b"polka/ex"); + pub const OCEXGENESIS_ACCOUNT: PalletId = PalletId(*b"polka/ga"); +} + +impl polkadex_ocex::Config for Runtime { + type Event = Event; + type OcexId = OcexModuleId; + type GenesisAccount = OCEXGENESIS_ACCOUNT; + type Currency = Currencies; + type ProxyLimit = ProxyLimit; +} +``` +### Genesis Configuration +`node/src/chain_spec.rs` +Inside the testnet_genesis function we need to add our pallet's configuration to the returned GenesisConfig object as followed: +``` + GenesisConfig { + /* --snip-- */ + /*** Add This Block ***/ + polkadex_ocex: PolkadexOcexConfig { + key: genesis.clone(), + genesis_account: genesis, + } + /*** End Added Block ***/ + } +``` +## Dispatchable functions + +- `deposit` - Transfers given amount to Enclave. +- `release` - Releases/Transfers given amount to Destination Account, Only Enclave can call this Dispatchable function. +- `withdraw` - Notifies enclave about senders intend to withdraw via on-chain. +- `register` - Registers main Account +- `add_proxy` - Adds Proxy Account for given Main Account. +- `remove_proxy` - Removes Proxy Account for given Main Account. + + + + diff --git a/pallets/ocex/src/README.md b/pallets/ocex/src/README.md new file mode 100644 index 000000000..5735be677 --- /dev/null +++ b/pallets/ocex/src/README.md @@ -0,0 +1,90 @@ +# Polkadex OCEX Pallet + +Polkadex Fungible Assets Pallet provides functionality to issue new tokens and offers efficient way to mint, burn and distribute tokens. + +## Overview +Polkadex Fungible Assets Pallet provides function for:- +* Creating new tokens. +* Setting Vesting information related to given Asset Id. +* Claiming Vesting amount, set by given Asset Id's creator. +* Setting Metadata of given Asset Id. +* Minting, Burning and Attesting tokens. + + +## Importing a `polkadex-ocex` pallet + +The first thing you need to do to add the `polkadex-ocex` pallet is to import the `polkadex-ocex` crate in your runtime's Cargo.toml file + +`runtime/Cargo.toml` + +``` +[dependencies] +#--snip-- +polkadex-ocex = { git = "https://github.com/Polkadex-Substrate/Polkadex", default-features = false } +``` + +Add the following two lines to the runtime's std feature. + +``` +[features] +default = ['std'] +std = [ + #--snip-- + "polkadex-ocex/std", + #--snip-- +] +``` + +### Adding the `polkadex-ocex` pallet + +`runtime/src/lib.rs` + +- Adding to the construct_runtime! Macro + +``` + PolkadexOcex: polkadex_ocex::{Pallet, Call, Storage, Config, Event} +``` + +- Runtime Configuration + +``` +parameter_types! { + pub const ProxyLimit: usize = 10; // Max sub-accounts per main account + pub const OcexModuleId: PalletId = PalletId(*b"polka/ex"); + pub const OCEXGENESIS_ACCOUNT: PalletId = PalletId(*b"polka/ga"); +} + +impl polkadex_ocex::Config for Runtime { + type Event = Event; + type OcexId = OcexModuleId; + type GenesisAccount = OCEXGENESIS_ACCOUNT; + type Currency = Currencies; + type ProxyLimit = ProxyLimit; +} +``` +### Genesis Configuration +`node/src/chain_spec.rs` +Inside the testnet_genesis function we need to add our pallet's configuration to the returned GenesisConfig object as followed: +``` + GenesisConfig { + /* --snip-- */ + /*** Add This Block ***/ + polkadex_ocex: PolkadexOcexConfig { + key: genesis.clone(), + genesis_account: genesis, + } + /*** End Added Block ***/ + } +``` +## Dispatchable functions + +- `deposit` - +- `release` - +- `withdraw` - +- `register` - Registers main Account +- `add_proxy` - Adds Proxy Account for given Main Account. +- `remove_proxy` - Removes Proxy Account for given Main Account. + + + + diff --git a/pallets/ocex/src/lib.rs b/pallets/ocex/src/lib.rs new file mode 100644 index 000000000..bac6b823d --- /dev/null +++ b/pallets/ocex/src/lib.rs @@ -0,0 +1,312 @@ +// This file is part of Polkadex. + +// Copyright (C) 2020-2021 Polkadex oü. +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +#![cfg_attr(not(feature = "std"), no_std)] +#![allow(clippy::unused_unit)] + +use codec::Encode; +use core::convert::TryInto; +use frame_support::StorageMap; +use frame_support::{ + decl_error, decl_event, decl_module, decl_storage, dispatch::DispatchResult, ensure, + traits::Get, PalletId, +}; +use frame_system as system; +use frame_system::ensure_signed; +use orml_traits::{MultiCurrency, MultiCurrencyExtended}; +use polkadex_primitives::assets::AssetId; +use polkadex_primitives::AccountId; +use polkadex_sgx_primitives::LinkedAccount; +//use sp_runtime::traits::AccountIdConversion; +use sp_std::prelude::*; +use crate::sp_api_hidden_includes_decl_storage::hidden_include::sp_runtime::traits::AccountIdConversion; + +#[cfg(test)] +mod mock; + +#[cfg(test)] +mod test; + +pub trait Config: + system::Config + orml_tokens::Config + pallet_substratee_registry::Config +{ + /// Events + type Event: From> + Into<::Event>; + /// Bonding Account + type OcexId: Get; + /// LinkedList Genesis Account + type GenesisAccount: Get; + /// Currency for transfer currencies + type Currency: MultiCurrencyExtended< + Self::AccountId, + CurrencyId = AssetId, + Balance = Self::Balance, + >; + type ProxyLimit: Get; +} + +decl_event!( + pub enum Event + where + ::AccountId, + ::Balance + { + TokenDeposited(AssetId, AccountId, Balance), + TokenWithdrawn(AssetId, AccountId, Balance), + TokenRelease(AssetId, AccountId, Balance), + MainAccountRegistered(AccountId), + ProxyAdded(AccountId,AccountId), + ProxyRemoved(AccountId,AccountId), + CIDUploaded(AccountId, Vec), + } +); + +// TODO: Implement a vec of MRENCLAVES set by governance + +decl_error! { + pub enum Error for Module { + NotARegisteredEnclave, + AlreadyRegistered, + NotARegisteredMainAccount, + ProxyLimitReached, + MainAccountSignatureNotFound, + AccountIdConversionFailed + } +} + +decl_storage! { + trait Store for Module as OCEX { + LastAccount get(fn key) config(): T::AccountId; + pub MainAccounts get(fn get_main_accounts): map hasher(blake2_128_concat) T::AccountId => LinkedAccount; + pub Snapshot get(fn get_snapshot): map hasher(blake2_128_concat) T::AccountId => Vec; + } + add_extra_genesis { + config(genesis_account): T::AccountId; + build( |config: &GenesisConfig| { + match (config.genesis_account.clone().encode().as_slice().try_into(), config.genesis_account.clone().encode().as_slice().try_into()) { + (Ok(x),Ok(y)) => { + let linked_account_object = LinkedAccount::from(AccountId::new(x), AccountId::new(y) ); + >::insert(&config.genesis_account, linked_account_object); + } + (_,_) => {} + } + }); + } +} +decl_module! { + pub struct Module for enum Call where + origin: T::Origin { + + type Error = Error; + + fn deposit_event() = default; + + + /// Transfers given amount to Enclave. + /// + /// # Parameters + /// + /// * `main`: Account from which amount is to be transferred + /// * `asset_id`: Asset Id + /// * `amount`: Amount to be transferred to Enclave + #[weight = 10000] + pub fn deposit(origin, main: T::AccountId, asset_id: AssetId, amount: T::Balance) -> DispatchResult{ + let from: T::AccountId = ensure_signed(origin)?; + ensure!(main==from, Error::::MainAccountSignatureNotFound); + ::Currency::transfer(asset_id, &from, &Self::get_account(), amount)?; + Self::deposit_event(RawEvent::TokenDeposited(asset_id, from, amount)); + Ok(()) + } + + /// Releases/Transfers given amount to Destination Account, + /// Only Enclave can call this Dispatchable function. + /// + /// # Parameters + /// + /// * `asset_id`: Asset Id + /// * `amount`: Amount to be released + /// * `to`: Destination Account + #[weight = 10000] + pub fn release(origin, asset_id: AssetId, amount: T::Balance, to: T::AccountId) -> DispatchResult{ + let sender: T::AccountId = ensure_signed(origin)?; + ensure!(pallet_substratee_registry::EnclaveIndex::::contains_key(&sender), Error::::NotARegisteredEnclave); + // TODO: Check if the latest MRENCLAVE is registered by this sender + // TODO: Handle software updated to enclave + ::Currency::transfer(asset_id, &Self::get_account(), &to, amount)?; + Self::deposit_event(RawEvent::TokenRelease(asset_id, to, amount)); + Ok(()) + } + + /// Notifies enclave about sender's intend to withdraw via on-chain. + /// + /// # Parameters + /// + /// * `main`: Account which wants to Notify Enclave + /// * `asset_id`: Asset Id + /// * `amount`: Amount to be notified to Enclave + #[weight = 10000] + pub fn withdraw(origin, main: T::AccountId, asset_id: AssetId, amount: T::Balance) -> DispatchResult{ + let sender: T::AccountId = ensure_signed(origin)?; + ensure!(main==sender, Error::::MainAccountSignatureNotFound); + Self::deposit_event(RawEvent::TokenWithdrawn(asset_id, sender, amount)); + Ok(()) + } + + /// Registers main Account. + /// + /// # Parameter + /// + /// * `main`: Main Account to be registered + #[weight = 10000] + pub fn register(origin, main: T::AccountId) -> DispatchResult{ + let sender: T::AccountId = ensure_signed(origin)?; + ensure!(main==sender, Error::::MainAccountSignatureNotFound); + ensure!(!>::contains_key(&sender), Error::::AlreadyRegistered); + Self::register_acc(sender.clone())?; + Self::deposit_event(RawEvent::MainAccountRegistered(sender)); + Ok(()) + } + + /// Adds Proxy Account for given Main Account. + /// + /// # Parameter + /// + /// * `main`: Main Account for which Proxy Account is to be added + /// * `proxy`: Proxy Account to be added + #[weight = 10000] + pub fn add_proxy(origin, main: T::AccountId, proxy: T::AccountId) -> DispatchResult{ + let sender: T::AccountId = ensure_signed(origin)?; + ensure!(main==sender, Error::::MainAccountSignatureNotFound); + ensure!(>::contains_key(&sender), Error::::NotARegisteredMainAccount); + Self::add_proxy_(sender.clone(),proxy.clone())?; + Self::deposit_event(RawEvent::ProxyAdded(sender,proxy)); + Ok(()) + } + + /// Removes Proxy Account for given Main Account. + /// + /// # Parameter + /// + /// * `main`: Main Account for which Proxy Account is to be removed + /// * `proxy`: Proxy Account to be removed + #[weight = 10000] + pub fn remove_proxy(origin, main: T::AccountId, proxy: T::AccountId) -> DispatchResult{ + let sender: T::AccountId = ensure_signed(origin)?; + ensure!(main==sender, Error::::MainAccountSignatureNotFound); + ensure!(>::contains_key(&sender), Error::::NotARegisteredMainAccount); + Self::remove_proxy_(sender.clone(),proxy.clone())?; + Self::deposit_event(RawEvent::ProxyRemoved(sender,proxy)); + Ok(()) + } + + /// Uploads CID for given Enclave id + /// + /// # Parameter + /// + /// * `new_cid`: CID to be uploaded for given Enclave Id + #[weight = 10000] + pub fn upload_cid(origin, new_cid: Vec) -> DispatchResult{ + let sender: T::AccountId = ensure_signed(origin)?; + ensure!(pallet_substratee_registry::EnclaveIndex::::contains_key(&sender), Error::::NotARegisteredEnclave); + >::try_mutate(sender.clone(), |ref mut old_cid| { + **old_cid = new_cid.clone(); + Self::deposit_event(RawEvent::CIDUploaded(sender,new_cid)); + Ok(()) + }) + } + } +} + +impl Module { + // Note add_proxy doesn't check if given main or proxy is already registered + pub fn add_proxy_(main: T::AccountId, proxy: T::AccountId) -> Result<(), Error> { + let mut acc: LinkedAccount = >::get(&main); + if acc.proxies.len() < T::ProxyLimit::get() { + acc.proxies.push(AccountId::new( + proxy + .encode() + .as_slice() + .try_into() + .map_err(|_| Error::AccountIdConversionFailed)?, + )); + >::insert(main, acc); + } else { + return Err(Error::::ProxyLimitReached); + } + Ok(()) + } + + // Note remove_proxy doesn't check if given main or proxy is already registered + pub fn remove_proxy_(main: T::AccountId, proxy: T::AccountId) -> Result<(), Error> { + >::try_mutate( + main.clone(), + |ref mut linked_account: &mut LinkedAccount| { + let index = linked_account + .proxies + .iter() + .position(|x| { + >::as_ref(x) == proxy.encode().as_slice() + }) + .unwrap(); + linked_account.proxies.remove(index); + Ok(()) + }, + ) + } + + pub fn get_account() -> T::AccountId { + T::OcexId::get().into_account() + } + + pub fn get_genesis_acc() -> T::AccountId { + T::GenesisAccount::get().into_account() + } + + pub fn register_acc(sender: T::AccountId) -> Result<(), Error> { + let last_account: T::AccountId = >::get(); + >::try_mutate(last_account.clone(), |ref mut last_linked_account| { + let new_linked_account: LinkedAccount = LinkedAccount::from( + AccountId::new( + last_account + .encode() + .as_slice() + .try_into() + .map_err(|_| Error::AccountIdConversionFailed)?, + ), + AccountId::new( + sender + .clone() + .encode() + .as_slice() + .try_into() + .map_err(|_| Error::AccountIdConversionFailed)?, + ), + ); + >::insert(&sender, new_linked_account); + >::put(&sender); + last_linked_account.next = Some(AccountId::new( + sender + .encode() + .as_slice() + .try_into() + .map_err(|_| Error::AccountIdConversionFailed)?, + )); + Ok(()) + }) + } +} diff --git a/pallets/ocex/src/mock.rs b/pallets/ocex/src/mock.rs new file mode 100644 index 000000000..8dff923e8 --- /dev/null +++ b/pallets/ocex/src/mock.rs @@ -0,0 +1,203 @@ +// This file is part of Polkadex. + +// Copyright (C) 2020-2021 Polkadex oü. +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +use super::*; + +use crate as ocex_pallet; +use frame_support::{ord_parameter_types, parameter_types}; +use frame_system::{EnsureSignedBy, SetCode}; +use orml_currencies::BasicCurrencyAdapter; +use orml_traits::parameter_type_with_key; +use polkadex_primitives::assets::AssetId; +use polkadex_primitives::AccountId; +use sp_core::H256; +use sp_runtime::traits::Zero; +use sp_runtime::{ + testing::Header, + traits::{BlakeTwo256, IdentityLookup}, +}; +use sp_std::convert::From; + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; + +frame_support::construct_runtime!( + pub enum Test where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Storage, Event}, + Timestamp: timestamp::{Pallet, Call, Storage, Inherent}, + Ocex: ocex_pallet::{Pallet, Call, Event}, + SubstrateeRegistry: pallet_substratee_registry::{Pallet, Call, Storage, Event}, + Currencies: orml_currencies::{Pallet, Call, Event}, + OrmlToken: orml_tokens::{Pallet, Call, Storage, Event}, + PalletBalances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + } +); + +pub type Balance = u128; + +parameter_types! { + pub const BlockHashCount: u64 = 250; +} + +impl system::Config for Test { + type BaseCallFilter = (); + type BlockWeights = (); + type BlockLength = (); + type Origin = Origin; + type Call = Call; + type Index = u64; + type BlockNumber = u64; + type Hash = H256; + type Hashing = BlakeTwo256; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type Header = Header; + type Event = (); + type BlockHashCount = BlockHashCount; + type DbWeight = (); + type Version = (); + type PalletInfo = PalletInfo; + type AccountData = pallet_balances::AccountData; + type OnNewAccount = (); + type OnKilledAccount = (); + type SystemWeightInfo = (); + type SS58Prefix = (); + type OnSetCode = (); +} + +parameter_types! { + pub const ExistentialDeposit: u128 = 500; + pub const MaxLocks: u32 = 50; +} + +impl pallet_balances::Config for Test { + type MaxLocks = MaxLocks; + /// The type for recording an account's balance. + type Balance = Balance; + /// The ubiquitous event type. + type Event = (); + type DustRemoval = (); + type ExistentialDeposit = ExistentialDeposit; + type AccountStore = frame_system::Pallet; + type WeightInfo = (); +} + +parameter_types! { + pub const GetNativeCurrencyId: AssetId = AssetId::POLKADEX; +} + +impl orml_currencies::Config for Test { + type Event = (); + type MultiCurrency = OrmlToken; + type NativeCurrency = AdaptedBasicCurrency; + type GetNativeCurrencyId = GetNativeCurrencyId; + type WeightInfo = (); +} + +parameter_types! { + pub const TresuryAccount: u64 = 9; +} + +parameter_types! { + pub const ProxyLimit: usize = 2; // Max sub-accounts per main account + pub const OcexModuleId: PalletId = PalletId(*b"polka/ex"); + pub const OCEXGenesisAccount: PalletId = PalletId(*b"polka/ga"); +} +impl Config for Test { + type Event = (); + type OcexId = OcexModuleId; + type GenesisAccount = OCEXGenesisAccount; + type Currency = Currencies; + type ProxyLimit = ProxyLimit; +} + +pub type AdaptedBasicCurrency = BasicCurrencyAdapter; + +parameter_types! { + pub TreasuryModuleAccount: AccountId = AccountId::new(*b"00045678901234567890123456789012"); +} + +parameter_type_with_key! { + pub ExistentialDeposits: |_currency_id: AssetId| -> Balance { + Zero::zero() + }; +} + +impl orml_tokens::Config for Test { + type Event = (); + type Balance = Balance; + type Amount = i128; + type CurrencyId = AssetId; + type WeightInfo = (); + type ExistentialDeposits = ExistentialDeposits; + type OnDust = orml_tokens::TransferDust; +} + +parameter_types! { + pub const MinimumPeriod: u64 = 6000 / 2; +} + +pub type Moment = u64; + +impl timestamp::Config for Test { + type Moment = Moment; + type OnTimestampSet = (); + type MinimumPeriod = MinimumPeriod; + type WeightInfo = (); +} + +parameter_types! { + pub const MomentsPerDay: Moment = 86_400_000; // [ms/d] +} + +/// added by SCS +impl pallet_substratee_registry::Config for Test { + type Event = (); + type Currency = PalletBalances; + type MomentsPerDay = MomentsPerDay; +} + +pub type PolkadexOcexPallet = Pallet; + +// Build test environment by setting the root `key` for the Genesis. +// pub fn new_test_ext() -> sp_io::TestExternalities { +// let storage = system::GenesisConfig::default() +// .build_storage::() +// .unwrap(); +// +// let mut ext: sp_io::TestExternalities = storage.into(); +// ext.execute_with(|| System::set_block_number(1)); +// ext +// } + +pub fn new_test_ext(genesis: AccountId) -> sp_io::TestExternalities { + let mut t = frame_system::GenesisConfig::default() + .build_storage::() + .unwrap(); + ocex_pallet::GenesisConfig:: { + key: genesis.clone(), + genesis_account: genesis, + } + .assimilate_storage(&mut t) + .unwrap(); + t.into() +} diff --git a/pallets/ocex/src/test.rs b/pallets/ocex/src/test.rs new file mode 100644 index 000000000..13c7164b5 --- /dev/null +++ b/pallets/ocex/src/test.rs @@ -0,0 +1,235 @@ +// // This file is part of Polkadex. +// +// // Copyright (C) 2020-2021 Polkadex oü. +// // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 +// +// // This program is free software: you can redistribute it and/or modify +// // it under the terms of the GNU General Public License as published by +// // the Free Software Foundation, either version 3 of the License, or +// // (at your option) any later version. +// +// // This program is distributed in the hope that it will be useful, +// // but WITHOUT ANY WARRANTY; without even the implied warranty of +// // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// // GNU General Public License for more details. +// +// // You should have received a copy of the GNU General Public License +// // along with this program. If not, see . +// +use crate::mock::*; +use frame_support::{assert_noop, assert_ok}; + +use super::*; +use orml_traits::MultiCurrency; +use polkadex_primitives::assets::AssetId; +use polkadex_primitives::AccountId; +use sp_core::H160; + +const GEN_ACCOUNT: AccountId = AccountId::new(*b"01234567890123456789012345678901"); +const NEW_ACCOUNT: AccountId = AccountId::new(*b"12345678901234567890123456789012"); +const NEW_ACCOUNT_TWO: AccountId = AccountId::new(*b"23456789012345678901234567890123"); +const PROXY_ACCOUNT_ONE: AccountId = AccountId::new(*b"34567890123456789012345678901234"); +const PROXY_ACCOUNT_TWO: AccountId = AccountId::new(*b"45678901234567890123456789012345"); +const PROXY_ACCOUNT_THREE: AccountId = AccountId::new(*b"56789012345678901234567890123456"); +const NOT_REGISTERED_ACCOUNT: AccountId = AccountId::new(*b"67890123456789012345678901234567"); +const OCEX_ACCOUNT_ID: AccountId = AccountId::new(*b"67890123456789012345678901234590"); + +#[test] +fn test_register_account() { + new_test_ext(GEN_ACCOUNT).execute_with(|| { + // Register new account + assert_ok!(PolkadexOcexPallet::register( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone() + )); + assert_ok!(PolkadexOcexPallet::register( + Origin::signed(NEW_ACCOUNT_TWO.clone()), + NEW_ACCOUNT_TWO.clone() + )); + + // Verify LastAccount Storage + assert_eq!(>::get(), NEW_ACCOUNT_TWO); + // Verify Main Account Storage + let latest_linked_account: LinkedAccount = LinkedAccount { + prev: NEW_ACCOUNT.clone(), + current: NEW_ACCOUNT_TWO.clone(), + next: None, + proxies: vec![], + }; + let linked_account: LinkedAccount = LinkedAccount { + prev: GEN_ACCOUNT.clone(), + current: NEW_ACCOUNT.clone(), + next: Some(NEW_ACCOUNT_TWO.clone()), + proxies: vec![], + }; + let expected_linked_account_gen: LinkedAccount = LinkedAccount { + prev: GEN_ACCOUNT.clone(), + current: GEN_ACCOUNT.clone(), + next: Some(NEW_ACCOUNT.clone()), + proxies: vec![], + }; + assert_eq!( + >::get(NEW_ACCOUNT_TWO), + latest_linked_account + ); + assert_eq!(>::get(NEW_ACCOUNT), linked_account); + assert_eq!( + >::get(GEN_ACCOUNT), + expected_linked_account_gen + ); + }); + + // Test Errors + new_test_ext(GEN_ACCOUNT).execute_with(|| { + assert_ok!(PolkadexOcexPallet::register( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone() + )); + assert_noop!( + PolkadexOcexPallet::register(Origin::signed(NEW_ACCOUNT.clone()), NEW_ACCOUNT), + Error::::AlreadyRegistered + ); + }); +} + +#[test] +fn test_add_proxy() { + new_test_ext(GEN_ACCOUNT).execute_with(|| { + assert_ok!(PolkadexOcexPallet::register( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone() + )); + assert_ok!(PolkadexOcexPallet::add_proxy( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone(), + PROXY_ACCOUNT_ONE.clone() + )); + // TODO: Already registered Proxies can be registered multiple times + //assert_ok!(PolkadexOcexPallet::add_proxy(Origin::signed(NEW_ACCOUNT), PROXY_ACCOUNT_ONE)); + let expected_linked_account: LinkedAccount = LinkedAccount { + prev: GEN_ACCOUNT, + current: NEW_ACCOUNT.clone(), + next: None, + proxies: vec![PROXY_ACCOUNT_ONE], + }; + assert_eq!( + >::get(NEW_ACCOUNT), + expected_linked_account + ); + }); + + // Test Errors + new_test_ext(GEN_ACCOUNT).execute_with(|| { + assert_ok!(PolkadexOcexPallet::register( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone() + )); + assert_noop!( + PolkadexOcexPallet::add_proxy( + Origin::signed(NOT_REGISTERED_ACCOUNT.clone()), + NOT_REGISTERED_ACCOUNT, + PROXY_ACCOUNT_ONE.clone() + ), + Error::::NotARegisteredMainAccount + ); + assert_ok!(PolkadexOcexPallet::add_proxy( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone(), + PROXY_ACCOUNT_ONE + )); + assert_ok!(PolkadexOcexPallet::add_proxy( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone(), + PROXY_ACCOUNT_TWO + )); + + // Check proxy Limit + assert_noop!( + PolkadexOcexPallet::add_proxy( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT, + PROXY_ACCOUNT_THREE + ), + Error::::ProxyLimitReached + ); + }); +} + +#[test] +fn test_remove_proxy() { + new_test_ext(GEN_ACCOUNT).execute_with(|| { + assert_ok!(PolkadexOcexPallet::register( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone() + )); + assert_ok!(PolkadexOcexPallet::add_proxy( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone(), + PROXY_ACCOUNT_ONE.clone() + )); + assert_ok!(PolkadexOcexPallet::remove_proxy( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT.clone(), + PROXY_ACCOUNT_ONE + )); + + let expected_linked_account: LinkedAccount = LinkedAccount { + prev: GEN_ACCOUNT, + current: NEW_ACCOUNT.clone(), + next: None, + proxies: vec![], + }; + assert_eq!( + >::get(NEW_ACCOUNT), + expected_linked_account + ); + }); + + // Verify Errors + new_test_ext(GEN_ACCOUNT).execute_with(|| { + assert_ok!(PolkadexOcexPallet::register( + Origin::signed(NEW_ACCOUNT.clone()), + NEW_ACCOUNT + )); + assert_noop!( + PolkadexOcexPallet::remove_proxy( + Origin::signed(NOT_REGISTERED_ACCOUNT.clone()), + NOT_REGISTERED_ACCOUNT, + PROXY_ACCOUNT_ONE + ), + Error::::NotARegisteredMainAccount + ); + }); +} + +#[test] +fn test_upload_cid() { + // Happy Path + new_test_ext(GEN_ACCOUNT).execute_with(|| { + pallet_substratee_registry::EnclaveIndex::::insert(OCEX_ACCOUNT_ID, 0u64); + let cid: Vec = vec![0]; + assert_ok!(PolkadexOcexPallet::upload_cid( + Origin::signed(OCEX_ACCOUNT_ID.clone()), + cid.clone() + )); + assert_eq!(>::get(OCEX_ACCOUNT_ID), cid); + + // Modify Data + let new_cid: Vec = vec![1]; + assert_ok!(PolkadexOcexPallet::upload_cid( + Origin::signed(OCEX_ACCOUNT_ID.clone()), + new_cid.clone() + )); + assert_eq!(>::get(OCEX_ACCOUNT_ID), new_cid); + }); + + //Test Error + new_test_ext(GEN_ACCOUNT).execute_with(|| { + // NotARegisteredEnclave + let cid: Vec = vec![1]; + assert_noop!( + PolkadexOcexPallet::upload_cid(Origin::signed(OCEX_ACCOUNT_ID.clone()), cid), + Error::::NotARegisteredEnclave + ); + }); +} diff --git a/pallets/polkapool/Cargo.toml b/pallets/polkapool/Cargo.toml index bf6637def..c88614ff0 100644 --- a/pallets/polkapool/Cargo.toml +++ b/pallets/polkapool/Cargo.toml @@ -11,10 +11,9 @@ targets = ['x86_64-unknown-linux-gnu'] [dependencies] # Polkadex Primitives -polkadex-primitives = { git = "https://github.com/Polkadex-Substrate/polkadex-primitives.git", branch = 'gj-substrate-master', default-features = false } +polkadex-primitives = { git = "https://github.com/Polkadex-Substrate/polkadex-primitives", branch = "master", default-features=false} # # ORML -# orml-tokens = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } orml-currencies = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } orml-traits = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } @@ -23,19 +22,20 @@ codec = {default-features = false, features = ['derive'], package = 'parity-scal rand = {default-features = false, version = '0.8.0'} rand_chacha = {default-features = false, version = '0.3.0'} # Substrate dependencies -frame-benchmarking = {default-features = false, optional = true, branch="master", git = 'https://github.com/paritytech/substrate'} -frame-support = {default-features = false, branch="master", git = 'https://github.com/paritytech/substrate'} -frame-system = {default-features = false, branch="master", git = 'https://github.com/paritytech/substrate'} -sp-arithmetic = {default-features = false, branch="master", git = 'https://github.com/paritytech/substrate'} -sp-core = {default-features = false, branch="master", git = 'https://github.com/paritytech/substrate'} -sp-std = {default-features = false, branch="master", git = 'https://github.com/paritytech/substrate'} -pallet-babe = { default-features = false, branch="master", git = "https://github.com/paritytech/substrate" } -sp-consensus-vrf = { default-features = false, branch="master", git = "https://github.com/paritytech/substrate" } -sp-runtime = {default-features = false, branch="master", git = 'https://github.com/paritytech/substrate'} +frame-benchmarking = {default-features = false, optional = true,branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} +frame-support = {default-features = false,branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} +frame-system = {default-features = false,branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} +sp-arithmetic = {default-features = false,branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} +sp-core = {default-features = false,branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} +sp-std = {default-features = false,branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} +pallet-babe = { default-features = false,branch = "master", version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } +sp-consensus-vrf = { default-features = false,branch = "master", version = "0.10.0-dev", git = "https://github.com/paritytech/substrate" } [dev-dependencies] serde = '1.0.119' -sp-io = {default-features = false, branch="master", git = 'https://github.com/paritytech/substrate'} +sp-io = {default-features = false, branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} +sp-runtime = {default-features = false, branch = "master", version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate'} + [features] default = ['std'] @@ -46,10 +46,9 @@ std = [ 'codec/std', 'frame-support/std', 'frame-system/std', - # 'frame-benchmarking/std', - # 'orml-tokens/std', - # 'orml-currencies/std', - # 'orml-traits/std', + 'frame-benchmarking/std', + 'orml-currencies/std', + 'orml-traits/std', "sp-consensus-vrf/std", 'polkadex-primitives/std', 'sp-arithmetic/std', diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 1321b5b11..5d0f6e7b1 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -16,6 +16,7 @@ hex-literal = { version = "0.3.3", optional = true } static_assertions = "1.1.0" log = { version = "0.4.14", default-features = false } smallvec = "1.6.1" + #pallets #added pallet-authorship = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } @@ -50,6 +51,7 @@ pallet-authority-discovery = { default-features = false, git = "https://github.c pallet-contracts-primitives = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } pallet-contracts-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } + #end added #frame frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } @@ -75,6 +77,8 @@ sp-npos-elections = { default-features = false, git = "https://github.com/parity frame-election-provider-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } #end added +sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } + # Used for the node template's RPCs frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } @@ -85,21 +89,20 @@ frame-system-benchmarking = { default-features = false, git = "https://github.co # ORML Pallets orml-vesting = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false } -orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false } +orml-currencies = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } +orml-tokens = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } +orml-traits = { git = "https://github.com/Gauthamastro/open-runtime-module-library.git", branch="gj-substrate-master", default-features = false } # Local Dependecies -polkadex-primitives = { git = "https://github.com/Polkadex-Substrate/polkadex-primitives.git", branch = 'gj-substrate-master', default-features = false } +polkadex-primitives = { git = "https://github.com/Polkadex-Substrate/polkadex-primitives.git", branch = 'master', default-features = false } pallet-polkapool = { path = "../pallets/polkapool", default-features = false } erc20-pdex-migration-pallet = { path = "../pallets/pdex-migration", default-features = false } +polkadex-ocex = { path = "../pallets/ocex", default-features = false } +pallet-substratee-registry = { package="pallet-teerex", git = "https://github.com/Polkadex-Substrate/pallet-substratee-registry", branch = "master", default-features = false } [build-dependencies] substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" } -[dev-dependencies] -sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" } - [features] default = ["std"] @@ -116,7 +119,6 @@ std = [ 'pallet-grandpa/std', 'pallet-im-online/std', 'pallet-offences/std', - 'pallet-randomness-collective-flip/std', 'pallet-session/std', 'pallet-staking/std', 'pallet-authority-discovery/std', @@ -128,9 +130,6 @@ std = [ 'pallet-recovery/std', 'pallet-utility/std', "pallet-bounties/std", - 'pallet-contracts/std', - 'pallet-contracts-primitives/std', - 'pallet-contracts-rpc-runtime-api/std', 'pallet-tips/std', 'pallet-timestamp/std', 'pallet-transaction-payment/std', @@ -155,12 +154,12 @@ std = [ 'sp-transaction-pool/std', 'sp-version/std', "sp-npos-elections/std", - "orml-vesting/std", - "orml-currencies/std", "orml-tokens/std", + "orml-currencies/std", "orml-traits/std", - "polkadex-primitives/std" + "polkadex-primitives/std", + "polkadex-ocex/std", ] runtime-benchmarks = [ "frame-benchmarking", diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index b6839bab0..9c48c7e09 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -100,6 +100,8 @@ pub mod impls; pub mod constants; mod weights; +pub use pallet_substratee_registry; + // Make the WASM binary available. #[cfg(feature = "std")] include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); @@ -1135,9 +1137,9 @@ parameter_types! { pub struct DustRemovalWhitelist; impl Contains for DustRemovalWhitelist { - fn contains(a: &AccountId) -> bool { - *a == TreasuryModuleAccount::get() - } + fn contains(a: &AccountId) -> bool { + *a == TreasuryModuleAccount::get() + } } impl orml_tokens::Config for Runtime { @@ -1285,12 +1287,14 @@ construct_runtime!( Multisig: pallet_multisig::{Pallet, Call, Storage, Event} = 27, Bounties: pallet_bounties::{Pallet, Call, Storage, Event} = 28, // Pallets + PolkadexOcex: polkadex_ocex::{Pallet, Call, Storage, Config, Event} = 36, OrmlVesting: orml_vesting::{Pallet, Storage, Call, Event, Config} = 29, PDEXMigration: erc20_pdex_migration_pallet::{Pallet, Storage, Call, Event, Config} = 30, Contracts: pallet_contracts::{Pallet, Call, Storage, Event} = 31, RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 32, Currencies: orml_currencies::{Pallet, Call, Event} = 33, Tokens: orml_tokens::{Pallet, Storage, Event, Config} = 34, + SubstrateeRegistry: pallet_substratee_registry::{Pallet, Call, Storage, Event} = 35, // IMPORTANT: Polkapool should be always at the bottom, don't add pallet after polkapool // otherwise it will result in in consistent state of runtime. // Refer: issue #261 @@ -1640,37 +1644,57 @@ parameter_types! { pub const OCEXGenesisAccount: PalletId = PalletId(*b"polka/ga"); } -pub struct EnsureGovernance; +parameter_types! { + pub const MomentsPerDay: Moment = 86_400_000; // [ms/d] +} -impl EnsureOrigin for EnsureGovernance { - type Success = AccountId; - fn try_origin(o: Origin) -> Result { - let bridge_id = MODULE_ID.into_account(); - Into::, Origin>>::into(o).and_then(|o| match o { - RawOrigin::Signed(who) if who == bridge_id => Ok(bridge_id), - r => Err(Origin::from(r)), - }) - } +impl pallet_substratee_registry::Config for Runtime { + type Event = Event; + type Currency = pallet_balances::Pallet; + type MomentsPerDay = MomentsPerDay; +} - #[cfg(feature = "runtime-benchmarks")] - fn successful_origin() -> Origin { - Origin::from(RawOrigin::Signed(Default::default())) - } +parameter_types! { + pub const ProxyLimit: usize = 10; // Max sub-accounts per main account } +impl polkadex_ocex::Config for Runtime { + type Event = Event; + type OcexId = OcexModuleId; + type GenesisAccount = OCEXGenesisAccount; + type Currency = Currencies; + type ProxyLimit = ProxyLimit; -#[cfg(test)] -mod tests { - use frame_system::offchain::CreateSignedTransaction; + pub struct EnsureGovernance; - use super::*; + impl EnsureOrigin for EnsureGovernance { + type Success = AccountId; + fn try_origin(o: Origin) -> Result { + let bridge_id = MODULE_ID.into_account(); + Into::, Origin>>::into(o).and_then(|o| match o { + RawOrigin::Signed(who) if who == bridge_id => Ok(bridge_id), + r => Err(Origin::from(r)), + }) + } - #[test] - fn validate_transaction_submitter_bounds() { - fn is_submit_signed_transaction() - where - T: CreateSignedTransaction, - {} + #[cfg(feature = "runtime-benchmarks")] + fn successful_origin() -> Origin { + Origin::from(RawOrigin::Signed(Default::default())) + } + } + + #[cfg(test)] + mod tests { + use frame_system::offchain::CreateSignedTransaction; + + use super::*; - is_submit_signed_transaction::(); + #[test] + fn validate_transaction_submitter_bounds() { + fn is_submit_signed_transaction() + where + T: CreateSignedTransaction, + {} + + is_submit_signed_transaction::(); + } } -}