diff --git a/.github/actions/installations/action.yml b/.github/actions/installations/action.yml index a79e72bac..d508b4353 100644 --- a/.github/actions/installations/action.yml +++ b/.github/actions/installations/action.yml @@ -15,6 +15,15 @@ runs: echo 'APT::Get::Always-Include-Phased-Updates "false";' | sudo tee /etc/apt/apt.conf.d/99-phased-updates sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install -y protobuf-compiler libprotobuf-dev + - name: Install Rust and Rust-src + shell: bash + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source $HOME/.cargo/env + rustup default stable + rustup update + rustup target add wasm32-unknown-unknown + rustup component add rust-src # - name: Use Cache # uses: Swatinem/rust-cache@v2 diff --git a/Cargo.lock b/Cargo.lock index 8e6e0e111..84a14489b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,7 +52,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cipher 0.4.4", "cpufeatures", ] @@ -88,7 +88,7 @@ version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "getrandom 0.2.15", "once_cell", "version_check", @@ -678,7 +678,7 @@ checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" dependencies = [ "async-lock 2.8.0", "autocfg", - "cfg-if 1.0.0", + "cfg-if", "concurrent-queue", "futures-lite 1.13.0", "log", @@ -697,7 +697,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcccb0f599cfa2f8ace422d3555572f47424da5648a4382a9dd0310ff8210884" dependencies = [ "async-lock 3.3.0", - "cfg-if 1.0.0", + "cfg-if", "concurrent-queue", "futures-io", "futures-lite 2.3.0", @@ -750,7 +750,7 @@ dependencies = [ "async-lock 2.8.0", "async-signal", "blocking", - "cfg-if 1.0.0", + "cfg-if", "event-listener 3.1.0", "futures-lite 1.13.0", "rustix 0.38.34", @@ -766,7 +766,7 @@ dependencies = [ "async-io 2.3.2", "async-lock 3.3.0", "atomic-waker", - "cfg-if 1.0.0", + "cfg-if", "futures-core", "futures-io", "rustix 0.38.34", @@ -950,7 +950,7 @@ checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" dependencies = [ "addr2line 0.21.0", "cc", - "cfg-if 1.0.0", + "cfg-if", "libc", "miniz_oxide", "object 0.32.2", @@ -1166,7 +1166,7 @@ dependencies = [ "arrayref", "arrayvec 0.7.4", "cc", - "cfg-if 1.0.0", + "cfg-if", "constant_time_eq 0.3.0", ] @@ -1423,12 +1423,6 @@ dependencies = [ "smallvec", ] -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - [[package]] name = "cfg-if" version = "1.0.0" @@ -1457,7 +1451,7 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cipher 0.4.4", "cpufeatures", ] @@ -1804,7 +1798,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -1920,7 +1914,7 @@ version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -2102,7 +2096,7 @@ version = "4.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest 0.10.7", @@ -2244,7 +2238,7 @@ version = "5.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "hashbrown 0.14.5", "lock_api", "once_cell", @@ -2381,12 +2375,6 @@ version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" -[[package]] -name = "difference" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198" - [[package]] name = "difflib" version = "0.4.0" @@ -2438,7 +2426,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "339ee130d97a610ea5a5872d2bbb130fdf68884ff09d3028b81bec8a1ac23bbc" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "dirs-sys-next", ] @@ -2525,12 +2513,6 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" -[[package]] -name = "downcast" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bb454f0228b18c7f4c3b0ebbee346ed9c52e7443b0999cd543ff3571205701d" - [[package]] name = "downcast" version = "0.11.0" @@ -2675,7 +2657,7 @@ version = "0.8.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -2955,7 +2937,7 @@ version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "redox_syscall 0.4.1", "windows-sys 0.52.0", @@ -3006,15 +2988,6 @@ dependencies = [ "miniz_oxide", ] -[[package]] -name = "float-cmp" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1267f4ac4f343772758f7b1bdcbe767c218bbab93bb432acbf5162bbf85a6c4" -dependencies = [ - "num-traits", -] - [[package]] name = "float-cmp" version = "0.9.0" @@ -3062,15 +3035,6 @@ dependencies = [ "percent-encoding 2.3.1", ] -[[package]] -name = "fragile" -version = "1.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7464c5c4a3f014d9b2ec4073650e5c06596f385060af740fc45ad5a19f959e8" -dependencies = [ - "fragile 2.0.0", -] - [[package]] name = "fragile" version = "2.0.0" @@ -3174,7 +3138,7 @@ version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "878babb0b136e731cc77ec2fd883ff02745ff21e6fb662729953d44923df009c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "parity-scale-codec", "scale-info", ] @@ -3185,7 +3149,7 @@ version = "16.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87cf1549fba25a6fcac22785b61698317d958e96cac72a59102ea45b9ae64692" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "parity-scale-codec", "scale-info", "serde", @@ -3278,7 +3242,7 @@ name = "frame-system" version = "4.0.0-dev" source = "git+https://github.com/paritytech//polkadot-sdk?branch=release-polkadot-v1.6.0#f00a911c52c047db3119dedfddc86c332ff6626b" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "docify", "frame-support", "log", @@ -3551,7 +3515,7 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "wasi 0.9.0+wasi-snapshot-preview1", ] @@ -3562,7 +3526,7 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "wasi 0.11.0+wasi-snapshot-preview1", ] @@ -3708,7 +3672,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c390a940a5d157878dd057c78680a33ce3415bcd05b4799509ea44210914b4d5" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "dashmap", "futures 0.3.30", "futures-timer", @@ -4386,7 +4350,7 @@ version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -4896,7 +4860,7 @@ version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "ecdsa", "elliptic-curve", "once_cell", @@ -4987,7 +4951,7 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "windows-targets 0.52.5", ] @@ -5848,55 +5812,28 @@ dependencies = [ "zeroize", ] -[[package]] -name = "mockall" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cabea45a7fc0e37093f4f30a5e2b62602253f91791c057d5f0470c63260c3d" -dependencies = [ - "cfg-if 0.1.10", - "downcast 0.10.0", - "fragile 1.2.2", - "lazy_static", - "mockall_derive 0.8.3", - "predicates 1.0.8", - "predicates-tree", -] - [[package]] name = "mockall" version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c84490118f2ee2d74570d114f3d0493cbf02790df303d2707606c3e14e07c96" dependencies = [ - "cfg-if 1.0.0", - "downcast 0.11.0", - "fragile 2.0.0", + "cfg-if", + "downcast", + "fragile", "lazy_static", - "mockall_derive 0.11.4", - "predicates 2.1.5", + "mockall_derive", + "predicates", "predicates-tree", ] -[[package]] -name = "mockall_derive" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c461918bf7f59eefb1459252756bf2351a995d6bd510d0b2061bd86bcdabfa6" -dependencies = [ - "cfg-if 0.1.10", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "mockall_derive" version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22ce75669015c4f47b289fd4d4f56e894e4c96003ffdf3ac51313126f94c6cbb" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "proc-macro2", "quote", "syn 1.0.109", @@ -6264,7 +6201,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ "bitflags 1.3.2", - "cfg-if 1.0.0", + "cfg-if", "libc", "memoffset 0.6.5", ] @@ -6517,7 +6454,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" dependencies = [ "bitflags 2.5.0", - "cfg-if 1.0.0", + "cfg-if", "foreign-types", "libc", "once_cell", @@ -6965,7 +6902,7 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "instant", "libc", "redox_syscall 0.2.16", @@ -6979,7 +6916,7 @@ version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "redox_syscall 0.5.1", "smallvec", @@ -7177,7 +7114,7 @@ checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" dependencies = [ "autocfg", "bitflags 1.3.2", - "cfg-if 1.0.0", + "cfg-if", "concurrent-queue", "libc", "log", @@ -7191,7 +7128,7 @@ version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "645493cf344456ef24219d02a768cf1fb92ddf8c92161679ae3d91b91a637be3" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "concurrent-queue", "hermit-abi 0.3.9", "pin-project-lite 0.2.14", @@ -7217,7 +7154,7 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "opaque-debug 0.3.1", "universal-hash", @@ -7255,19 +7192,6 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" -[[package]] -name = "predicates" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f49cfaf7fdaa3bfacc6fa3e7054e65148878354a5cfddcf661df4c851f8021df" -dependencies = [ - "difference", - "float-cmp 0.8.0", - "normalize-line-endings", - "predicates-core", - "regex", -] - [[package]] name = "predicates" version = "2.1.5" @@ -7275,7 +7199,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59230a63c37f3e18569bdb90e4a89cbf5bf8b06fea0b84e65ea10cc4df47addd" dependencies = [ "difflib", - "float-cmp 0.9.0", + "float-cmp", "itertools 0.10.5", "normalize-line-endings", "predicates-core", @@ -7426,7 +7350,7 @@ version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5986aa8d62380092d2f50f8b1cdba9cb9b6731ffd4b25b51fd126b6c3e05b99c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fnv", "lazy_static", "libc", @@ -7443,7 +7367,7 @@ version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fnv", "lazy_static", "memchr", @@ -8176,7 +8100,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", - "cfg-if 1.0.0", + "cfg-if", "getrandom 0.2.15", "libc", "spin 0.9.8", @@ -8241,7 +8165,6 @@ dependencies = [ "futures 0.3.30", "hex", "log", - "mockall 0.8.3", "nix", "parity-scale-codec", "reqwest", @@ -8263,7 +8186,7 @@ version = "1.0.13" dependencies = [ "async-trait", "backoff", - "cfg-if 1.0.0", + "cfg-if", "clap 3.2.25", "env_logger 0.8.4", "frame-support", @@ -8709,7 +8632,7 @@ dependencies = [ "futures-timer", "libp2p-identity", "log", - "mockall 0.11.4", + "mockall", "parking_lot 0.12.2", "sc-client-api", "sc-utils", @@ -8941,7 +8864,7 @@ version = "0.10.0-dev" source = "git+https://github.com/paritytech//polkadot-sdk?branch=release-polkadot-v1.6.0#f00a911c52c047db3119dedfddc86c332ff6626b" dependencies = [ "anyhow", - "cfg-if 1.0.0", + "cfg-if", "libc", "log", "parking_lot 0.12.2", @@ -9031,7 +8954,7 @@ dependencies = [ "libp2p", "linked_hash_set", "log", - "mockall 0.11.4", + "mockall", "parity-scale-codec", "parking_lot 0.12.2", "partial_sort", @@ -9146,7 +9069,7 @@ dependencies = [ "futures-timer", "libp2p", "log", - "mockall 0.11.4", + "mockall", "parity-scale-codec", "prost 0.11.9", "prost-build", @@ -9674,7 +9597,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" dependencies = [ "bitvec", - "cfg-if 1.0.0", + "cfg-if", "derive_more", "parity-scale-codec", "scale-info-derive", @@ -9738,7 +9661,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9a8ef13a93c54d20580de1e5c413e624e53121d42fc7e2c11d10ef7f8b02367" dependencies = [ "ahash 0.8.11", - "cfg-if 1.0.0", + "cfg-if", "hashbrown 0.13.2", ] @@ -10076,7 +9999,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" dependencies = [ "block-buffer 0.9.0", - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.9.0", "opaque-debug 0.3.1", @@ -10088,7 +10011,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.10.7", ] @@ -10112,7 +10035,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" dependencies = [ "block-buffer 0.9.0", - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.9.0", "opaque-debug 0.3.1", @@ -10124,7 +10047,7 @@ version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.10.7", ] @@ -11490,7 +11413,7 @@ dependencies = [ name = "spacewalk-runtime-standalone-mainnet" version = "1.0.13" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "clients-info", "currency", "dia-oracle", @@ -11554,7 +11477,7 @@ dependencies = [ name = "spacewalk-runtime-standalone-testnet" version = "1.0.13" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "clients-info", "currency", "dia-oracle", @@ -12167,7 +12090,7 @@ version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71eb43e528fdc239f08717ec2a378fdb017dddbc3412de15fff527554591a66c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "core-foundation-sys", "libc", "ntapi", @@ -12225,7 +12148,7 @@ version = "3.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fastrand 2.1.0", "rustix 0.38.34", "windows-sys 0.52.0", @@ -12294,7 +12217,7 @@ version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "once_cell", ] @@ -12754,7 +12677,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f7f83d1e4a0e4358ac54c5c3681e5d7da5efc5a7a632c90bb6d6669ddd9bc26" dependencies = [ "async-trait", - "cfg-if 1.0.0", + "cfg-if", "data-encoding", "enum-as-inner", "futures-channel", @@ -12779,7 +12702,7 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aff21aa4dcefb0a1afbfac26deb0adc93888c7d295fb63ab273ef276ba2b7cfe" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "futures-util", "ipconfig", "lazy_static", @@ -12849,7 +12772,7 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "digest 0.10.7", "rand 0.8.5", "static_assertions", @@ -13008,7 +12931,7 @@ dependencies = [ "async-trait", "base64 0.13.1", "bincode", - "cfg-if 1.0.0", + "cfg-if", "clap 3.2.25", "console-subscriber", "env_logger 0.8.4", @@ -13020,7 +12943,6 @@ dependencies = [ "itertools 0.10.5", "jsonrpc-core-client", "lazy_static", - "mockall 0.8.3", "nonzero_ext", "ntest", "parking_lot 0.12.2", @@ -13159,7 +13081,6 @@ dependencies = [ "cached", "dotenv", "futures 0.3.30", - "mockall 0.8.3", "mocktopus", "parity-scale-codec", "rand 0.8.5", @@ -13235,7 +13156,7 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "wasm-bindgen-macro", ] @@ -13260,7 +13181,7 @@ version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "js-sys", "wasm-bindgen", "web-sys", @@ -13417,7 +13338,7 @@ checksum = "f907fdead3153cb9bfb7a93bbd5b62629472dc06dee83605358c64c52ed3dda9" dependencies = [ "anyhow", "bincode", - "cfg-if 1.0.0", + "cfg-if", "indexmap 1.9.3", "libc", "log", @@ -13443,7 +13364,7 @@ version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3b9daa7c14cd4fa3edbf69de994408d5f4b7b0959ac13fa69d465f6597f810d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -13531,7 +13452,7 @@ dependencies = [ "addr2line 0.19.0", "anyhow", "bincode", - "cfg-if 1.0.0", + "cfg-if", "cpp_demangle", "gimli 0.27.3", "log", @@ -13563,7 +13484,7 @@ version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aecae978b13f7f67efb23bd827373ace4578f2137ec110bbf6a4a7cde4121bbd" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "windows-sys 0.45.0", ] @@ -13576,7 +13497,7 @@ checksum = "658cf6f325232b6760e202e5255d823da5e348fdea827eff0a2a22319000b441" dependencies = [ "anyhow", "cc", - "cfg-if 1.0.0", + "cfg-if", "indexmap 1.9.3", "libc", "log", @@ -13955,7 +13876,7 @@ version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "windows-sys 0.48.0", ] @@ -13965,7 +13886,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "windows-sys 0.48.0", ] diff --git a/Cargo.toml b/Cargo.toml index 04c89ad0c..12dcfc2ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ bincode = "1.3.3" flate2 = "1.0" -hex = { version = "0.4.3", default-features = false } +hex = { version = "0.4.3", default-features = false } hex-literal = { version = "0.3.4", default-features = false } hmac = "0.12.1" @@ -76,10 +76,10 @@ tokio = "1.37.0" tokio-metrics = { version = "0.1.0", default-features = false } tokio-stream = { version = "0.1.9" } tracing = "0.1.38" -tracing-subscriber = { version = "0.2.12" } +tracing-subscriber = "0.2.12" tweetnacl = "0.4.0" -visibility = { version = "0.0.1"} +visibility = "0.0.1" warp = "0.3.2" # non ordered @@ -183,7 +183,6 @@ substrate-stellar-sdk = { git = "https://github.com/pendulum-chain/substrate-ste dia-oracle = { git = "https://github.com/pendulum-chain/oracle-pallet", branch = "polkadot-v1.6.0", default-features = false } # Used in dev dependencies -mockall = "0.8.1" serial_test = "0.9.0" mocktopus = "0.8.0" diff --git a/clients/runner/Cargo.toml b/clients/runner/Cargo.toml index 282a78ca3..a06d34cf5 100644 --- a/clients/runner/Cargo.toml +++ b/clients/runner/Cargo.toml @@ -27,4 +27,3 @@ sha2 = { workspace = true, default-features = true } [dev-dependencies] sysinfo.workspace = true tempdir.workspace = true -mockall.workspace = true diff --git a/clients/vault/Cargo.toml b/clients/vault/Cargo.toml index 0404be863..36a126ec8 100644 --- a/clients/vault/Cargo.toml +++ b/clients/vault/Cargo.toml @@ -68,7 +68,6 @@ stellar-relay-lib = { package = "stellar-relay-lib", path = "../stellar-relay-li primitives = { path = "../../primitives", package = "spacewalk-primitives", default-features = false } [dev-dependencies] -mockall.workspace = true ntest.workspace = true env_logger.workspace = true diff --git a/clients/wallet/Cargo.toml b/clients/wallet/Cargo.toml index 7af4bedcd..a50ae3a90 100644 --- a/clients/wallet/Cargo.toml +++ b/clients/wallet/Cargo.toml @@ -24,6 +24,5 @@ dotenv = { workspace = true } primitives = { package = "spacewalk-primitives", path = "../../primitives"} [dev-dependencies] -mockall.workspace = true serial_test.workspace = true mocktopus.workspace = true diff --git a/pallets/currency/Cargo.toml b/pallets/currency/Cargo.toml index 9f19b4a69..d6eb2bfda 100644 --- a/pallets/currency/Cargo.toml +++ b/pallets/currency/Cargo.toml @@ -18,9 +18,9 @@ frame-system = { workspace = true } primitives = { package = "spacewalk-primitives", path = "../../primitives", default-features = false } # Orml dependencies -orml-tokens = { workspace = true, default-features = true } -orml-currencies = { workspace = true, default-features = true } -orml-traits = { workspace = true, default-features = true } +orml-tokens = { workspace = true } +orml-currencies = { workspace = true } +orml-traits = { workspace = true } # for other pallets wanting to mock functions mocktopus = { workspace = true, optional = true } diff --git a/pallets/redeem/rpc/Cargo.toml b/pallets/redeem/rpc/Cargo.toml index ecf287293..d34cd90ed 100644 --- a/pallets/redeem/rpc/Cargo.toml +++ b/pallets/redeem/rpc/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Interlay "] edition = "2021" [dependencies] -codec = { workspace = true } +codec = { workspace = true, default-features = true } jsonrpsee = { version = "0.16.0", features = ["client", "server", "macros"] } sp-runtime = { workspace = true, default-features = true } sp-api = { workspace = true, default-features = true } diff --git a/pallets/replace/rpc/Cargo.toml b/pallets/replace/rpc/Cargo.toml index b14f46337..af79176b5 100644 --- a/pallets/replace/rpc/Cargo.toml +++ b/pallets/replace/rpc/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Interlay "] edition = "2021" [dependencies] -codec = { workspace = true } +codec = { workspace = true, default-features = true } jsonrpsee = { version = "0.16.0", features = ["client","server", "macros"] } sp-runtime = { workspace = true, default-features = true } sp-api = { workspace = true, default-features = true } diff --git a/pallets/reward-distribution/src/benchmarking.rs b/pallets/reward-distribution/src/benchmarking.rs index 23a1daf12..83779fde4 100644 --- a/pallets/reward-distribution/src/benchmarking.rs +++ b/pallets/reward-distribution/src/benchmarking.rs @@ -1,6 +1,5 @@ #[allow(unused)] use super::Pallet as RewardDistribution; -use sp_std::vec; use super::*; use crate::types::DefaultVaultId; use currency::getters::get_relay_chain_currency_id as get_collateral_currency_id; diff --git a/pallets/vault-registry/rpc/Cargo.toml b/pallets/vault-registry/rpc/Cargo.toml index 52ba11c49..566807a10 100644 --- a/pallets/vault-registry/rpc/Cargo.toml +++ b/pallets/vault-registry/rpc/Cargo.toml @@ -5,7 +5,7 @@ name = "module-vault-registry-rpc" version = "1.0.13" [dependencies] -codec = { workspace = true } +codec = { workspace = true, default-features = true } jsonrpsee = {version = "0.16.0", features = ["client","server", "macros"]} # TODO, can we upgrade to 20 without too many changes? module-oracle-rpc-runtime-api = {path = '../../oracle/rpc/runtime-api'} module-vault-registry-rpc-runtime-api = { path = "runtime-api" } diff --git a/testchain/node/Cargo.toml b/testchain/node/Cargo.toml index a8f9cbb69..0e2161f67 100644 --- a/testchain/node/Cargo.toml +++ b/testchain/node/Cargo.toml @@ -16,9 +16,9 @@ substrate-build-script-utils = { workspace = true } [dependencies] clap = { workspace = true, features = ["derive"] } -codec = {workspace = true, default-features = true, version = "3.0.0" } -hex-literal = { workspace = true, default-features = true } -log = { workspace = true, default-features = true } +codec = { workspace = true, default-features = true, version = "3.0.0" } +hex-literal = { workspace = true, default-features = true } +log = { workspace = true, default-features = true } serde = { workspace = true, default-features = true, features = ["derive"] } serde_json = { workspace = true, default-features = true } futures = { workspace = true } @@ -67,7 +67,7 @@ frame-benchmarking-cli = { workspace = true, default-features = true } frame-support = { workspace = true, default-features = true } frame-system = { workspace = true, default-features = true } -pallet-transaction-payment = { workspace = true } +pallet-transaction-payment = { workspace = true, default-features = true } substrate-stellar-sdk = { workspace = true, default-features = true } diff --git a/testchain/runtime/mainnet/src/lib.rs b/testchain/runtime/mainnet/src/lib.rs index 986afd5a1..6230f4bc1 100644 --- a/testchain/runtime/mainnet/src/lib.rs +++ b/testchain/runtime/mainnet/src/lib.rs @@ -160,6 +160,7 @@ impl frame_system::Config for Runtime { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type RuntimeTask = RuntimeTask; } parameter_types! { @@ -314,6 +315,7 @@ impl pallet_balances::Config for Runtime { type MaxFreezes = (); type MaxHolds = ConstU32<1>; type RuntimeHoldReason = RuntimeHoldReason; + type RuntimeFreezeReason = RuntimeFreezeReason; } impl security::Config for Runtime { diff --git a/testchain/runtime/testnet/src/lib.rs b/testchain/runtime/testnet/src/lib.rs index 715408f49..55361e17c 100644 --- a/testchain/runtime/testnet/src/lib.rs +++ b/testchain/runtime/testnet/src/lib.rs @@ -159,6 +159,7 @@ impl frame_system::Config for Runtime { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type RuntimeTask = RuntimeTask; } parameter_types! { @@ -311,6 +312,7 @@ impl pallet_balances::Config for Runtime { type MaxFreezes = (); type MaxHolds = ConstU32<1>; type RuntimeHoldReason = RuntimeHoldReason; + type RuntimeFreezeReason = RuntimeFreezeReason; } impl security::Config for Runtime {