diff --git a/Cargo.lock b/Cargo.lock index e5e4e3fff9..1b0bbc0eba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12,22 +12,13 @@ dependencies = [ "regex", ] -[[package]] -name = "addr2line" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7a2e47a1fbe209ee101dd6d61285226744c6c8d3c21c8dc878ba6cb9f467f3a" -dependencies = [ - "gimli 0.24.0", -] - [[package]] name = "addr2line" version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd" dependencies = [ - "gimli 0.25.0", + "gimli", ] [[package]] @@ -53,7 +44,7 @@ checksum = "495ee669413bfbe9e8cace80f4d3d78e6d8c8d99579f97fb93bde351b185f2d4" dependencies = [ "cfg-if 1.0.0", "cipher", - "cpufeatures", + "cpufeatures 0.1.5", "opaque-debug 0.3.0", ] @@ -91,22 +82,13 @@ dependencies = [ "memchr", ] -[[package]] -name = "ansi_term" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" -dependencies = [ - "winapi 0.3.9", -] - [[package]] name = "ansi_term" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -220,7 +202,7 @@ dependencies = [ "slab", "socket2 0.4.1", "waker-fn", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -255,14 +237,14 @@ dependencies = [ "libc", "once_cell", "signal-hook", - "winapi 0.3.9", + "winapi", ] [[package]] name = "async-std" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9f06685bad74e0570f5213741bea82158279a4103d988e57bfada11ad230341" +checksum = "f8056f1455169ab86dd47b47391e4ab0cbd25410a70e9fe675544f49bafaf952" dependencies = [ "async-channel", "async-global-executor", @@ -323,7 +305,7 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb4401f0a3622dad2e0763fa79e0eb328bc70fb7dccfdd645341f00d671247d6" dependencies = [ - "bytes 1.0.1", + "bytes", "futures-sink", "futures-util", "memchr", @@ -336,7 +318,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0de5164e5edbf51c45fb8c2d9664ae1c095cce1b265ecf7569093c0d66ef690" dependencies = [ - "bytes 1.0.1", + "bytes", "futures-sink", "futures-util", "memchr", @@ -366,7 +348,7 @@ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ "hermit-abi", "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -381,7 +363,7 @@ version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01" dependencies = [ - "addr2line 0.16.0", + "addr2line", "cc", "cfg-if 1.0.0", "libc", @@ -398,9 +380,9 @@ checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" [[package]] name = "base58" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" +checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581" [[package]] name = "base64" @@ -414,6 +396,21 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" +[[package]] +name = "beef" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bed554bd50246729a1ec158d08aa3235d1b69d94ad120ebe187e28894787e736" +dependencies = [ + "serde", +] + +[[package]] +name = "bimap" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50ae17cabbc8a38a1e3e4c1a6a664e9a09672dc14d0896fa8d865d3a5a446b07" + [[package]] name = "bincode" version = "1.3.3" @@ -629,22 +626,6 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" -[[package]] -name = "bytes" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" -dependencies = [ - "byteorder", - "iovec", -] - -[[package]] -name = "bytes" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" - [[package]] name = "bytes" version = "1.0.1" @@ -677,14 +658,13 @@ dependencies = [ [[package]] name = "cargo_metadata" -version = "0.13.1" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "081e3f0755c1f380c2d010481b6fa2e02973586d5f2b24eebb7a2a1d98b143d8" +checksum = "ba2ae6de944143141f6155a473a6b02f66c7c3f9f47316f802f80204ebfe6e12" dependencies = [ "camino", "cargo-platform", - "semver 0.11.0", - "semver-parser 0.10.2", + "semver 1.0.4", "serde", "serde_json", ] @@ -727,7 +707,7 @@ checksum = "fee7ad89dc1128635074c268ee661f90c3f7e83d9fd12910608c36b47d6c3412" dependencies = [ "cfg-if 1.0.0", "cipher", - "cpufeatures", + "cpufeatures 0.1.5", "zeroize", ] @@ -754,7 +734,7 @@ dependencies = [ "num-integer", "num-traits", "time", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -790,11 +770,11 @@ dependencies = [ [[package]] name = "clap" -version = "2.33.3" +version = "2.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" dependencies = [ - "ansi_term 0.11.0", + "ansi_term", "atty", "bitflags", "strsim", @@ -803,15 +783,6 @@ dependencies = [ "vec_map", ] -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags", -] - [[package]] name = "concurrent-queue" version = "1.2.2" @@ -851,9 +822,9 @@ checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" [[package]] name = "cpp_demangle" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea47428dc9d2237f3c6bc134472edfd63ebba0af932e783506dcfd66f10d18a" +checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" dependencies = [ "cfg-if 1.0.0", ] @@ -867,38 +838,46 @@ dependencies = [ "libc", ] +[[package]] +name = "cpufeatures" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469" +dependencies = [ + "libc", +] + [[package]] name = "cranelift-bforest" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8ca3560686e7c9c7ed7e0fe77469f2410ba5d7781b1acaa9adc8d8deea28e3e" +checksum = "cc0cb7df82c8cf8f2e6a8dd394a0932a71369c160cc9b027dca414fced242513" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf9bf1ffffb6ce3d2e5ebc83549bd2436426c99b31cc550d521364cbe35d276" +checksum = "fe4463c15fa42eee909e61e5eac4866b7c6d22d0d8c621e57a0c5380753bfa8c" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", - "gimli 0.24.0", + "gimli", "log", "regalloc", - "serde", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cc21936a5a6d07e23849ffe83e5c1f6f50305c074f4b2970ca50c13bf55b821" +checksum = "793f6a94a053a55404ea16e1700202a88101672b8cd6b4df63e13cde950852bf" dependencies = [ "cranelift-codegen-shared", "cranelift-entity", @@ -906,27 +885,24 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca5b6ffaa87560bebe69a5446449da18090b126037920b0c1c6d5945f72faf6b" -dependencies = [ - "serde", -] +checksum = "44aa1846df275bce5eb30379d65964c7afc63c05a117076e62a119c25fe174be" [[package]] name = "cranelift-entity" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d6b4a8bef04f82e4296782646f733c641d09497df2fabf791323fefaa44c64c" +checksum = "a3a45d8d6318bf8fc518154d9298eab2a8154ec068a8885ff113f6db8d69bb3a" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31b783b351f966fce33e3c03498cb116d16d97a8f9978164a60920bd0d3a99c" +checksum = "e07339bd461766deb7605169de039e01954768ff730fa1254e149001884a8525" dependencies = [ "cranelift-codegen", "log", @@ -936,29 +912,29 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a77c88d3dd48021ff1e37e978a00098524abd3513444ae252c08d37b310b3d2a" +checksum = "03e2fca76ff57e0532936a71e3fc267eae6a19a86656716479c66e7f912e3d7b" dependencies = [ "cranelift-codegen", + "libc", "target-lexicon", ] [[package]] name = "cranelift-wasm" -version = "0.74.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb6d408e2da77cdbbd65466298d44c86ae71c1785d2ab0d8657753cdb4d9d89" +checksum = "1f46fec547a1f8a32c54ea61c28be4f4ad234ad95342b718a9a9adcaadb0c778" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", "itertools", "log", - "serde", "smallvec", - "thiserror", "wasmparser", + "wasmtime-types", ] [[package]] @@ -1040,6 +1016,16 @@ dependencies = [ "subtle 2.4.1", ] +[[package]] +name = "crypto-mac" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" +dependencies = [ + "generic-array 0.14.4", + "subtle 2.4.1", +] + [[package]] name = "ct-logs" version = "0.8.0" @@ -1177,9 +1163,9 @@ dependencies = [ [[package]] name = "directories" -version = "3.0.2" +version = "4.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e69600ff1703123957937708eb27f7a564e48885c537782722ed0ba3189ce1d7" +checksum = "f51c5d4ddabd36886dd3e1438cb358cdcb0d7c499cb99cb4ac2e38e18b5cb210" dependencies = [ "dirs-sys", ] @@ -1202,7 +1188,7 @@ checksum = "03d86534ed367a67548dc68113a0f5db55432fdfbb6e6f9d77704397d95d5780" dependencies = [ "libc", "redox_users", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1213,7 +1199,7 @@ checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ "libc", "redox_users", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1232,6 +1218,12 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" +[[package]] +name = "dtoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" + [[package]] name = "dyn-clonable" version = "0.9.0" @@ -1278,7 +1270,7 @@ dependencies = [ "ed25519", "rand 0.7.3", "serde", - "sha2 0.9.5", + "sha2 0.9.8", "zeroize", ] @@ -1319,33 +1311,24 @@ version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68b91989ae21441195d7d9b9993a2f9295c7e1a8c96255d8b729accddc124797" -[[package]] -name = "erased-serde" -version = "0.3.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3de9ad4541d99dc22b59134e7ff8dc3d6c988c89ecd7324bf10a8362b07a2afa" -dependencies = [ - "serde", -] - [[package]] name = "errno" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa68f2fb9cae9d37c9b2b3584aba698a2e97f72d7aef7b9f7aa71d8b54ce46fe" +checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" dependencies = [ "errno-dragonfly", "libc", - "winapi 0.3.9", + "winapi", ] [[package]] name = "errno-dragonfly" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" dependencies = [ - "gcc", + "cc", "libc", ] @@ -1370,7 +1353,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81fb916554a4dba293ea69c69ad5653e21d770a9d0c2496b5fa0a1f5a3946d87" dependencies = [ - "bytes 1.0.1", + "bytes", "ethereum-types", "hash-db", "hash256-std-hasher", @@ -1526,7 +1509,7 @@ dependencies = [ "kvdb-rocksdb", "pallet-ethereum", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sp-core", "sp-database", "sp-runtime", @@ -1564,23 +1547,21 @@ dependencies = [ "fp-rpc", "fp-storage", "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", + "jsonrpsee", "libsecp256k1 0.3.5", "log", - "lru", + "lru 0.6.6", "pallet-ethereum", "pallet-evm", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "rlp", "rustc-hex", "sc-client-api", "sc-network", "sc-rpc", + "sc-rpc-api", "sc-service", "sc-transaction-pool", "sc-transaction-pool-api", @@ -1599,10 +1580,7 @@ version = "1.1.0-dev" dependencies = [ "ethereum", "ethereum-types", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", + "jsonrpsee", "rlp", "rustc-hex", "serde", @@ -1641,7 +1619,7 @@ dependencies = [ "log", "num-traits", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "scale-info", ] @@ -1659,9 +1637,9 @@ dependencies = [ [[package]] name = "fixedbitset" -version = "0.2.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" +checksum = "398ea4fabe40b9b0d885340a2a991a44c8a645624075ad966d21f88688e2b69e" [[package]] name = "flate2" @@ -1685,7 +1663,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", ] @@ -1697,7 +1675,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" dependencies = [ "matches", - "percent-encoding 2.1.0", + "percent-encoding", ] [[package]] @@ -1763,7 +1741,7 @@ version = "2.0.0" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -1783,7 +1761,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "Inflector", "chrono", @@ -1809,7 +1787,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -1837,7 +1815,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "bitflags", "frame-metadata", @@ -1852,6 +1830,7 @@ dependencies = [ "smallvec", "sp-arithmetic", "sp-core", + "sp-core-hashing-proc-macro", "sp-inherents", "sp-io", "sp-runtime", @@ -1859,12 +1838,13 @@ dependencies = [ "sp-state-machine", "sp-std", "sp-tracing", + "tt-call", ] [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1876,10 +1856,10 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", @@ -1888,7 +1868,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "proc-macro2", "quote", @@ -1898,7 +1878,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "log", @@ -1915,7 +1895,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-benchmarking", "frame-support", @@ -1930,7 +1910,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "sp-api", @@ -1952,8 +1932,7 @@ dependencies = [ "frame-benchmarking-cli", "frontier-template-runtime", "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-pubsub", + "jsonrpsee", "log", "pallet-base-fee", "pallet-dynamic-fee", @@ -2045,7 +2024,7 @@ dependencies = [ "lazy_static", "libc", "libloading 0.5.2", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2055,25 +2034,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" dependencies = [ "libc", - "winapi 0.3.9", -] - -[[package]] -name = "fuchsia-zircon" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" -dependencies = [ - "bitflags", - "fuchsia-zircon-sys", + "winapi", ] -[[package]] -name = "fuchsia-zircon-sys" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" - [[package]] name = "funty" version = "1.1.0" @@ -2220,12 +2183,6 @@ dependencies = [ "slab", ] -[[package]] -name = "gcc" -version = "0.3.55" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" - [[package]] name = "generic-array" version = "0.12.4" @@ -2252,8 +2209,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] @@ -2279,21 +2238,15 @@ dependencies = [ [[package]] name = "gimli" -version = "0.24.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189" +checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7" dependencies = [ "fallible-iterator", "indexmap", "stable_deref_trait", ] -[[package]] -name = "gimli" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7" - [[package]] name = "glob" version = "0.3.0" @@ -2326,11 +2279,30 @@ dependencies = [ "web-sys", ] +[[package]] +name = "h2" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d09bbc040ce3758a0d32a8a910562104a853aea429dbe1a998beb065c2eacb2" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + [[package]] name = "handlebars" -version = "3.5.5" +version = "4.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4498fc115fa7d34de968184e473529abb40eeb6be8bc5f7faba3d08c316cb3e3" +checksum = "167fa173496c9eadd8749cca6f8339ac88e248f3ad2442791d0b743318a94fc0" dependencies = [ "log", "pest", @@ -2414,6 +2386,16 @@ dependencies = [ "digest 0.9.0", ] +[[package]] +name = "hmac" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" +dependencies = [ + "crypto-mac 0.11.1", + "digest 0.9.0", +] + [[package]] name = "hmac-drbg" version = "0.2.0" @@ -2444,7 +2426,7 @@ checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" dependencies = [ "libc", "match_cfg", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2453,7 +2435,7 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "527e8c9ac747e28542699a951517aa9a6945af506cd1f2e1b53a576c17b6cc11" dependencies = [ - "bytes 1.0.1", + "bytes", "fnv", "itoa", ] @@ -2464,16 +2446,16 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "399c583b2979440c60be0821a6199eca73bc3c8dcd9d070d75ac726e2c6186e5" dependencies = [ - "bytes 1.0.1", + "bytes", "http", "pin-project-lite 0.2.7", ] [[package]] name = "httparse" -version = "1.4.1" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3a87b616e37e93c22fb19bcd386f02f3af5ea98a25670ad0fce773de23c5e68" +checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503" [[package]] name = "httpdate" @@ -2492,14 +2474,15 @@ dependencies = [ [[package]] name = "hyper" -version = "0.14.11" +version = "0.14.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b61cf2d1aebcf6e6352c97b81dc2244ca29194be1b276f5d8ad5c6330fffb11" +checksum = "436ec0091e4f20e655156a30a0df3770fe2900aa301e548e08446ec794b6953c" dependencies = [ - "bytes 1.0.1", + "bytes", "futures-channel", "futures-core", "futures-util", + "h2", "http", "http-body", "httparse", @@ -2530,17 +2513,6 @@ dependencies = [ "webpki", ] -[[package]] -name = "idna" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - [[package]] name = "idna" version = "0.2.3" @@ -2560,7 +2532,7 @@ checksum = "28538916eb3f3976311f5dfbe67b5362d0add1293d0a9cad17debf86f8e3aa48" dependencies = [ "if-addrs-sys", "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2586,7 +2558,7 @@ dependencies = [ "ipnet", "libc", "log", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2667,12 +2639,13 @@ dependencies = [ ] [[package]] -name = "iovec" -version = "0.1.4" +name = "io-lifetimes" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" +checksum = "278e90d6f8a6c76a8334b336e306efa3c5f2b604048cbfd486d6f49878e3af14" dependencies = [ - "libc", + "rustc_version 0.4.0", + "winapi", ] [[package]] @@ -2689,7 +2662,7 @@ checksum = "f7e2f18aece9709094573a9f24f483c4f65caa4298e2f7ae1b71cc65d853fad7" dependencies = [ "socket2 0.3.19", "widestring", - "winapi 0.3.9", + "winapi", "winreg", ] @@ -2733,135 +2706,106 @@ dependencies = [ ] [[package]] -name = "jsonrpc-client-transports" -version = "18.0.0" +name = "jsonrpsee" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b99d4207e2a04fb4581746903c2bb7eb376f88de9c699d0f3e10feeac0cd3a" +checksum = "ceafa2f3d8cb796bf63364691fb875b079814064306cfd4cb067f95f800a673f" dependencies = [ - "derive_more", - "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-pubsub", - "log", - "serde", - "serde_json", - "url 1.7.2", + "jsonrpsee-http-server", + "jsonrpsee-proc-macros", + "jsonrpsee-types", + "jsonrpsee-utils", + "jsonrpsee-ws-server", ] [[package]] -name = "jsonrpc-core" -version = "18.0.0" +name = "jsonrpsee-http-server" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb" +checksum = "d15bad1f650df478b44455823582bde7e0f63e8f9ebb93f2de4f1b5f35361bc2" dependencies = [ - "futures 0.3.17", - "futures-executor", + "futures-channel", "futures-util", - "log", - "serde", - "serde_derive", + "globset", + "hyper", + "jsonrpsee-types", + "jsonrpsee-utils", + "lazy_static", "serde_json", + "socket2 0.4.1", + "tokio", + "tracing", + "unicase", ] [[package]] -name = "jsonrpc-core-client" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b51da17abecbdab3e3d4f26b01c5ec075e88d3abe3ab3b05dc9aa69392764ec0" -dependencies = [ - "futures 0.3.17", - "jsonrpc-client-transports", -] - -[[package]] -name = "jsonrpc-derive" -version = "18.0.0" +name = "jsonrpsee-proc-macros" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b939a78fa820cdfcb7ee7484466746a7377760970f6f9c6fe19f9edcc8a38d2" +checksum = "ce36eeb733770e9a0ef186f3847d9a48b6eaeff4dd7eb6b945e145e489dd44e7" dependencies = [ - "proc-macro-crate 0.1.5", + "proc-macro-crate", "proc-macro2", "quote", "syn", ] [[package]] -name = "jsonrpc-http-server" -version = "18.0.0" +name = "jsonrpsee-types" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff" +checksum = "b7589284e20eb3f40544c672370512e239d9704d6bfa2d3e7a7a7cd505a56e69" dependencies = [ - "futures 0.3.17", + "anyhow", + "async-trait", + "beef", + "futures-channel", + "futures-util", "hyper", - "jsonrpc-core", - "jsonrpc-server-utils", - "log", - "net2", - "parking_lot 0.11.1", - "unicase", -] - -[[package]] -name = "jsonrpc-ipc-server" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382bb0206323ca7cda3dcd7e245cea86d37d02457a02a975e3378fb149a48845" -dependencies = [ - "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-server-utils", - "log", - "parity-tokio-ipc", - "parking_lot 0.11.1", - "tower-service", + "serde", + "serde_json", + "soketto", + "thiserror", + "tracing", ] [[package]] -name = "jsonrpc-pubsub" -version = "18.0.0" +name = "jsonrpsee-utils" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240f87695e6c6f62fb37f05c02c04953cf68d6408b8c1c89de85c7a0125b1011" +checksum = "bbc508d9e6169a81d2913035e8c97f2c49f699134cd3d93efa13c4457aa76252" dependencies = [ - "futures 0.3.17", - "jsonrpc-core", - "lazy_static", - "log", - "parking_lot 0.11.1", - "rand 0.7.3", + "arrayvec 0.7.1", + "beef", + "futures-channel", + "futures-util", + "hyper", + "jsonrpsee-types", + "parking_lot", + "rand 0.8.4", + "rustc-hash", "serde", + "serde_json", + "thiserror", + "tokio", + "tracing", ] [[package]] -name = "jsonrpc-server-utils" -version = "18.0.0" +name = "jsonrpsee-ws-server" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa4fdea130485b572c39a460d50888beb00afb3e35de23ccd7fad8ff19f0e0d4" +checksum = "1ecd70df0c6c90eec7b17c8858023e92126dccbf7c3c8027d75de24cff24974a" dependencies = [ - "bytes 1.0.1", - "futures 0.3.17", - "globset", - "jsonrpc-core", - "lazy_static", - "log", + "futures-channel", + "futures-util", + "jsonrpsee-types", + "jsonrpsee-utils", + "serde_json", + "soketto", "tokio", - "tokio-stream", "tokio-util", - "unicase", -] - -[[package]] -name = "jsonrpc-ws-server" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f892c7d766369475ab7b0669f417906302d7c0fb521285c0a0c92e52e7c8e946" -dependencies = [ - "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-server-utils", - "log", - "parity-ws", - "parking_lot 0.11.1", - "slab", + "tracing", ] [[package]] @@ -2870,16 +2814,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7" -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - [[package]] name = "kv-log-macro" version = "1.0.7" @@ -2907,7 +2841,7 @@ checksum = "c3b6b85fc643f5acd0bffb2cc8a6d150209379267af0d41db72170021841f9f5" dependencies = [ "kvdb", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", ] [[package]] @@ -2922,7 +2856,7 @@ dependencies = [ "num_cpus", "owning_ref", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "regex", "rocksdb", "smallvec", @@ -2945,9 +2879,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.99" +version = "0.2.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7f823d141fe0a24df1e23b4af4e3c7ba9e5966ec514ea068c93024aa7deb765" +checksum = "f98a04dce437184842841303488f70d0188c5f51437d2a834dc097eafa909a01" [[package]] name = "libloading" @@ -2956,7 +2890,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753" dependencies = [ "cc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2966,7 +2900,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f84d96438c15fcd6c3f244c8fce01d1e2b9c6b5623e9c711dc9286d8fc92d6a" dependencies = [ "cfg-if 1.0.0", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2977,12 +2911,12 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libp2p" -version = "0.39.1" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9004c06878ef8f3b4b4067e69a140d87ed20bf777287f82223e49713b36ee433" +checksum = "3bec54343492ba5940a6c555e512c6721139835d28c59bc22febece72dfd0d9d" dependencies = [ "atomic", - "bytes 1.0.1", + "bytes", "futures 0.3.17", "lazy_static", "libp2p-core", @@ -2993,12 +2927,14 @@ dependencies = [ "libp2p-identify", "libp2p-kad", "libp2p-mdns", + "libp2p-metrics", "libp2p-mplex", "libp2p-noise", "libp2p-ping", "libp2p-plaintext", "libp2p-pnet", "libp2p-relay", + "libp2p-rendezvous", "libp2p-request-response", "libp2p-swarm", "libp2p-swarm-derive", @@ -3008,7 +2944,7 @@ dependencies = [ "libp2p-websocket", "libp2p-yamux", "multiaddr", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "smallvec", "wasm-timer", @@ -3016,9 +2952,9 @@ dependencies = [ [[package]] name = "libp2p-core" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af9b4abdeaa420593a297c8592f63fad4234f4b88dc9343b8fd8e736c35faa59" +checksum = "bef22d9bba1e8bcb7ec300073e6802943fe8abb8190431842262b5f1c30abba1" dependencies = [ "asn1_der", "bs58", @@ -3028,19 +2964,19 @@ dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", "lazy_static", - "libsecp256k1 0.5.0", + "libsecp256k1 0.7.0", "log", "multiaddr", "multihash 0.14.0", "multistream-select", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "prost", "prost-build", - "rand 0.7.3", + "rand 0.8.4", "ring", "rw-stream-sink", - "sha2 0.9.5", + "sha2 0.9.8", "smallvec", "thiserror", "unsigned-varint 0.7.0", @@ -3050,9 +2986,9 @@ dependencies = [ [[package]] name = "libp2p-deflate" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66097fccc0b7f8579f90a03ea76ba6196332ea049fd07fd969490a06819dcdc8" +checksum = "51a800adb195f33de63f4b17b63fe64cfc23bf2c6a0d3d0d5321328664e65197" dependencies = [ "flate2", "futures 0.3.17", @@ -3061,9 +2997,9 @@ dependencies = [ [[package]] name = "libp2p-dns" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58ff08b3196b85a17f202d80589e93b1660a574af67275706657fdc762e42c32" +checksum = "bb8f89d15cb6e3c5bc22afff7513b11bab7856f2872d3cfba86f7f63a06bc498" dependencies = [ "async-std-resolver", "futures 0.3.17", @@ -3075,9 +3011,9 @@ dependencies = [ [[package]] name = "libp2p-floodsub" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "404eca8720967179dac7a5b4275eb91f904a53859c69ca8d018560ad6beb214f" +checksum = "aab3d7210901ea51b7bae2b581aa34521797af8c4ec738c980bda4a06434067f" dependencies = [ "cuckoofilter", "fnv", @@ -3093,14 +3029,14 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1cc48709bcbc3a3321f08a73560b4bbb4166a7d56f6fdb615bc775f4f91058e" +checksum = "dfeead619eb5dac46e65acc78c535a60aaec803d1428cca6407c3a4fc74d698d" dependencies = [ "asynchronous-codec 0.6.0", "base64 0.13.0", "byteorder", - "bytes 1.0.1", + "bytes", "fnv", "futures 0.3.17", "hex_fmt", @@ -3111,7 +3047,7 @@ dependencies = [ "prost-build", "rand 0.7.3", "regex", - "sha2 0.9.5", + "sha2 0.9.8", "smallvec", "unsigned-varint 0.7.0", "wasm-timer", @@ -3119,14 +3055,15 @@ dependencies = [ [[package]] name = "libp2p-identify" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7b61f6cf07664fb97016c318c4d4512b3dd4cc07238607f3f0163245f99008e" +checksum = "cca1275574183f288ff8b72d535d5ffa5ea9292ef7829af8b47dcb197c7b0dcd" dependencies = [ "futures 0.3.17", "libp2p-core", "libp2p-swarm", "log", + "lru 0.6.6", "prost", "prost-build", "smallvec", @@ -3135,13 +3072,13 @@ dependencies = [ [[package]] name = "libp2p-kad" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50ed78489c87924235665a0ab345b298ee34dff0f7ad62c0ba6608b2144fb75e" +checksum = "a2297dc0ca285f3a09d1368bde02449e539b46f94d32d53233f53f6625bcd3ba" dependencies = [ "arrayvec 0.5.2", "asynchronous-codec 0.6.0", - "bytes 1.0.1", + "bytes", "either", "fnv", "futures 0.3.17", @@ -3151,7 +3088,7 @@ dependencies = [ "prost", "prost-build", "rand 0.7.3", - "sha2 0.9.5", + "sha2 0.9.8", "smallvec", "uint", "unsigned-varint 0.7.0", @@ -3161,9 +3098,9 @@ dependencies = [ [[package]] name = "libp2p-mdns" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a29e6cbc2a24b8471b6567e580a0e8e7b70a6d0f0ea2be0844d1e842d7d4fa33" +checksum = "14c864b64bdc8a84ff3910a0df88e6535f256191a450870f1e7e10cbf8e64d45" dependencies = [ "async-io", "data-encoding", @@ -3180,19 +3117,33 @@ dependencies = [ "void", ] +[[package]] +name = "libp2p-metrics" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4af432fcdd2f8ba4579b846489f8f0812cfd738ced2c0af39df9b1c48bbb6ab2" +dependencies = [ + "libp2p-core", + "libp2p-identify", + "libp2p-kad", + "libp2p-ping", + "libp2p-swarm", + "open-metrics-client", +] + [[package]] name = "libp2p-mplex" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "313d9ea526c68df4425f580024e67a9d3ffd49f2c33de5154b1f5019816f7a99" +checksum = "7f2cd64ef597f40e14bfce0497f50ecb63dd6d201c61796daeb4227078834fbf" dependencies = [ "asynchronous-codec 0.6.0", - "bytes 1.0.1", + "bytes", "futures 0.3.17", "libp2p-core", "log", "nohash-hasher", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "smallvec", "unsigned-varint 0.7.0", @@ -3200,11 +3151,11 @@ dependencies = [ [[package]] name = "libp2p-noise" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f1db7212f342b6ba7c981cc40e31f76e9e56cb48e65fa4c142ecaca5839523e" +checksum = "a8772c7a99088221bb7ca9c5c0574bf55046a7ab4c319f3619b275f28c8fb87a" dependencies = [ - "bytes 1.0.1", + "bytes", "curve25519-dalek 3.2.0", "futures 0.3.17", "lazy_static", @@ -3213,7 +3164,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.4", - "sha2 0.9.5", + "sha2 0.9.8", "snow", "static_assertions", "x25519-dalek", @@ -3222,9 +3173,9 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2482cfd9eb0b7a0baaf3e7b329dc4f2785181a161b1a47b7192f8d758f54a439" +checksum = "80ef7b0ec5cf06530d9eb6cf59ae49d46a2c45663bde31c25a12f682664adbcf" dependencies = [ "futures 0.3.17", "libp2p-core", @@ -3237,12 +3188,12 @@ dependencies = [ [[package]] name = "libp2p-plaintext" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13b4783e5423870b9a5c199f65a7a3bc66d86ab56b2b9beebf3c338d889cf8e4" +checksum = "5fba1a6ff33e4a274c89a3b1d78b9f34f32af13265cc5c46c16938262d4e945a" dependencies = [ "asynchronous-codec 0.6.0", - "bytes 1.0.1", + "bytes", "futures 0.3.17", "libp2p-core", "log", @@ -3254,9 +3205,9 @@ dependencies = [ [[package]] name = "libp2p-pnet" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07cb4dd4b917e5b40ddefe49b96b07adcd8d342e0317011d175b7b2bb1dcc974" +checksum = "0f1a458bbda880107b5b36fcb9b5a1ef0c329685da0e203ed692a8ebe64cc92c" dependencies = [ "futures 0.3.17", "log", @@ -3268,12 +3219,12 @@ dependencies = [ [[package]] name = "libp2p-relay" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0133f6cfd81cdc16e716de2982e012c62e6b9d4f12e41967b3ee361051c622aa" +checksum = "2852b61c90fa8ce3c8fcc2aba76e6cefc20d648f9df29157d6b3a916278ef3e3" dependencies = [ "asynchronous-codec 0.6.0", - "bytes 1.0.1", + "bytes", "futures 0.3.17", "futures-timer 3.0.2", "libp2p-core", @@ -3289,20 +3240,41 @@ dependencies = [ "wasm-timer", ] +[[package]] +name = "libp2p-rendezvous" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14a6d2b9e7677eff61dc3d2854876aaf3976d84a01ef6664b610c77a0c9407c5" +dependencies = [ + "asynchronous-codec 0.6.0", + "bimap", + "futures 0.3.17", + "libp2p-core", + "libp2p-swarm", + "log", + "prost", + "prost-build", + "rand 0.8.4", + "sha2 0.9.8", + "thiserror", + "unsigned-varint 0.7.0", + "void", + "wasm-timer", +] + [[package]] name = "libp2p-request-response" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06cdae44b6821466123af93cbcdec7c9e6ba9534a8af9cdc296446d39416d241" +checksum = "a877a4ced6d46bf84677e1974e8cf61fb434af73b2e96fb48d6cb6223a4634d8" dependencies = [ "async-trait", - "bytes 1.0.1", + "bytes", "futures 0.3.17", "libp2p-core", "libp2p-swarm", "log", - "lru", - "minicbor", + "lru 0.7.0", "rand 0.7.3", "smallvec", "unsigned-varint 0.7.0", @@ -3311,9 +3283,9 @@ dependencies = [ [[package]] name = "libp2p-swarm" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7083861341e1555467863b4cd802bea1e8c4787c0f7b5110097d0f1f3248f9a9" +checksum = "3f5184a508f223bc100a12665517773fb8730e9f36fc09eefb670bf01b107ae9" dependencies = [ "either", "futures 0.3.17", @@ -3327,9 +3299,9 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" -version = "0.24.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab8cb308d4fc854869f5abb54fdab0833d2cf670d407c745849dc47e6e08d79c" +checksum = "072c290f727d39bdc4e9d6d1c847978693d25a673bd757813681e33e5f6c00c2" dependencies = [ "quote", "syn", @@ -3337,9 +3309,9 @@ dependencies = [ [[package]] name = "libp2p-tcp" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79edd26b6b4bb5feee210dcda562dca186940dfecb0024b979c3f50824b3bf28" +checksum = "7399c5b6361ef525d41c11fcf51635724f832baf5819b30d3d873eabb4fbae4b" dependencies = [ "async-io", "futures 0.3.17", @@ -3354,9 +3326,9 @@ dependencies = [ [[package]] name = "libp2p-uds" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "280e793440dd4e9f273d714f4497325c72cddb0fe85a49f9a03c88f41dd20182" +checksum = "b8b7563e46218165dfd60f64b96f7ce84590d75f53ecbdc74a7dd01450dc5973" dependencies = [ "async-std", "futures 0.3.17", @@ -3366,9 +3338,9 @@ dependencies = [ [[package]] name = "libp2p-wasm-ext" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f553b7140fad3d7a76f50497b0ea591e26737d9607428a75509fc191e4d1b1f6" +checksum = "1008a302b73c5020251f9708c653f5ed08368e530e247cc9cd2f109ff30042cf" dependencies = [ "futures 0.3.17", "js-sys", @@ -3380,9 +3352,9 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddf99dcbf5063e9d59087f61b1e85c686ceab2f5abedb472d32288065c0e5e27" +checksum = "22e12df82d1ed64969371a9e65ea92b91064658604cc2576c2757f18ead9a1cf" dependencies = [ "either", "futures 0.3.17", @@ -3392,19 +3364,19 @@ dependencies = [ "quicksink", "rw-stream-sink", "soketto", - "url 2.2.2", + "url", "webpki-roots", ] [[package]] name = "libp2p-yamux" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "214cc0dd9c37cbed27f0bb1eba0c41bbafdb93a8be5e9d6ae1e6b4b42cd044bf" +checksum = "4e7362abb8867d7187e7e93df17f460d554c997fc5c8ac57dc1259057f6889af" dependencies = [ "futures 0.3.17", "libp2p-core", - "parking_lot 0.11.1", + "parking_lot", "thiserror", "yamux", ] @@ -3447,31 +3419,31 @@ dependencies = [ "base64 0.12.3", "digest 0.9.0", "hmac-drbg 0.3.0", - "libsecp256k1-core", - "libsecp256k1-gen-ecmult", - "libsecp256k1-gen-genmult", + "libsecp256k1-core 0.2.2", + "libsecp256k1-gen-ecmult 0.2.1", + "libsecp256k1-gen-genmult 0.2.1", "rand 0.7.3", "serde", - "sha2 0.9.5", + "sha2 0.9.8", "typenum", ] [[package]] name = "libsecp256k1" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" +checksum = "b0452aac8bab02242429380e9b2f94ea20cea2b37e2c1777a1358799bbe97f37" dependencies = [ "arrayref", - "base64 0.12.3", + "base64 0.13.0", "digest 0.9.0", "hmac-drbg 0.3.0", - "libsecp256k1-core", - "libsecp256k1-gen-ecmult", - "libsecp256k1-gen-genmult", - "rand 0.7.3", + "libsecp256k1-core 0.3.0", + "libsecp256k1-gen-ecmult 0.3.0", + "libsecp256k1-gen-genmult 0.3.0", + "rand 0.8.4", "serde", - "sha2 0.9.5", + "sha2 0.9.8", "typenum", ] @@ -3486,13 +3458,33 @@ dependencies = [ "subtle 2.4.1", ] +[[package]] +name = "libsecp256k1-core" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle 2.4.1", +] + [[package]] name = "libsecp256k1-gen-ecmult" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" dependencies = [ - "libsecp256k1-core", + "libsecp256k1-core 0.2.2", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3038c808c55c87e8a172643a7d87187fc6c4174468159cb3090659d55bcb4809" +dependencies = [ + "libsecp256k1-core 0.3.0", ] [[package]] @@ -3501,7 +3493,16 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" dependencies = [ - "libsecp256k1-core", + "libsecp256k1-core 0.2.2", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db8d6ba2cec9eacc40e6e8ccc98931840301f1006e95647ceb2dd5c3aa06f7c" +dependencies = [ + "libsecp256k1-core 0.3.0", ] [[package]] @@ -3532,22 +3533,19 @@ dependencies = [ [[package]] name = "linregress" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e6e407dadb4ca4b31bc69c27aff00e7ca4534fdcee855159b039a7cebb5f395" +checksum = "d6c601a85f5ecd1aba625247bca0031585fb1c446461b142878a16f8245ddeb8" dependencies = [ "nalgebra", "statrs", ] [[package]] -name = "lock_api" -version = "0.3.4" +name = "linux-raw-sys" +version = "0.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" -dependencies = [ - "scopeguard", -] +checksum = "687387ff42ec7ea4f2149035a5675fedb675d26f98db90a1846ac63d3addb5f5" [[package]] name = "lock_api" @@ -3577,6 +3575,15 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "lru" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c748cfe47cb8da225c37595b3108bea1c198c84aaae8ea0ba76d01dda9fc803" +dependencies = [ + "hashbrown", +] + [[package]] name = "lru-cache" version = "0.1.2" @@ -3653,9 +3660,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" +checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "memmap2" @@ -3666,11 +3673,20 @@ dependencies = [ "libc", ] +[[package]] +name = "memmap2" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4647a11b578fead29cdbb34d4adef8dd3dc35b876c9c6d5240d83f205abfe96e" +dependencies = [ + "libc", +] + [[package]] name = "memoffset" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9" +checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" dependencies = [ "autocfg", ] @@ -3704,26 +3720,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "minicbor" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51aa5bb0ca22415daca596a227b507f880ad1b2318a87fa9325312a5d285ca0d" -dependencies = [ - "minicbor-derive", -] - -[[package]] -name = "minicbor-derive" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54999f917cd092b13904737e26631aa2b2b88d625db68e4bab461dcd8006c788" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "miniz_oxide" version = "0.4.4" @@ -3734,25 +3730,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "mio" -version = "0.6.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4" -dependencies = [ - "cfg-if 0.1.10", - "fuchsia-zircon", - "fuchsia-zircon-sys", - "iovec", - "kernel32-sys", - "libc", - "log", - "miow 0.2.2", - "net2", - "slab", - "winapi 0.2.8", -] - [[package]] name = "mio" version = "0.7.13" @@ -3761,33 +3738,9 @@ checksum = "8c2bdb6314ec10835cd3293dd268473a835c02b7b352e788be788b3c6ca6bb16" dependencies = [ "libc", "log", - "miow 0.3.7", + "miow", "ntapi", - "winapi 0.3.9", -] - -[[package]] -name = "mio-extras" -version = "2.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" -dependencies = [ - "lazycell", - "log", - "mio 0.6.23", - "slab", -] - -[[package]] -name = "miow" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d" -dependencies = [ - "kernel32-sys", - "net2", - "winapi 0.2.8", - "ws2_32-sys", + "winapi", ] [[package]] @@ -3796,14 +3749,14 @@ version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] name = "more-asserts" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" +checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" [[package]] name = "multiaddr" @@ -3816,11 +3769,11 @@ dependencies = [ "byteorder", "data-encoding", "multihash 0.14.0", - "percent-encoding 2.1.0", + "percent-encoding", "serde", "static_assertions", "unsigned-varint 0.7.0", - "url 2.2.2", + "url", ] [[package]] @@ -3846,7 +3799,7 @@ dependencies = [ "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", - "sha2 0.9.5", + "sha2 0.9.8", "sha3 0.9.1", "unsigned-varint 0.5.1", ] @@ -3860,7 +3813,7 @@ dependencies = [ "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", - "sha2 0.9.5", + "sha2 0.9.8", "unsigned-varint 0.7.0", ] @@ -3870,7 +3823,7 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "424f6e86263cd5294cbd7f1e95746b95aca0e0d66bff31e5a40d6baa87b4aa99" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro-error", "proc-macro2", "quote", @@ -3890,7 +3843,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d91ec0a2440aaff5f78ec35631a7027d50386c6163aa975f7caa0d5da4b6ff8" dependencies = [ - "bytes 1.0.1", + "bytes", "futures 0.3.17", "log", "pin-project 1.0.8", @@ -3936,17 +3889,6 @@ dependencies = [ "rand 0.8.4", ] -[[package]] -name = "net2" -version = "0.2.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "winapi 0.3.9", -] - [[package]] name = "nodrop" version = "0.1.14" @@ -3977,7 +3919,7 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -4092,20 +4034,21 @@ dependencies = [ [[package]] name = "object" -version = "0.24.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170" +checksum = "c55827317fb4c08822499848a14237d2874d6f139828893017237e7ab93eb386" dependencies = [ - "crc32fast", - "indexmap", + "memchr", ] [[package]] name = "object" -version = "0.26.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c55827317fb4c08822499848a14237d2874d6f139828893017237e7ab93eb386" +checksum = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9" dependencies = [ + "crc32fast", + "indexmap", "memchr", ] @@ -4114,9 +4057,6 @@ name = "once_cell" version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" -dependencies = [ - "parking_lot 0.11.1", -] [[package]] name = "opaque-debug" @@ -4130,6 +4070,29 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" +[[package]] +name = "open-metrics-client" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7337d80c23c2d8b1349563981bc4fb531220733743ba8115454a67b181173f0d" +dependencies = [ + "dtoa", + "itoa", + "open-metrics-client-derive-text-encode", + "owning_ref", +] + +[[package]] +name = "open-metrics-client-derive-text-encode" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a15c83b586f00268c619c1cb3340ec1a6f59dd9ba1d9833a273a68e6d5cd8ffc" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "openssl-probe" version = "0.1.4" @@ -4148,7 +4111,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -4164,7 +4127,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -4179,7 +4142,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-benchmarking", "frame-support", @@ -4384,7 +4347,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-benchmarking", "frame-support", @@ -4407,7 +4370,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -4421,7 +4384,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -4442,7 +4405,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -4456,7 +4419,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-benchmarking", "frame-support", @@ -4473,7 +4436,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "frame-support", "frame-system", @@ -4490,11 +4453,10 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", + "anyhow", + "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "sp-api", @@ -4507,7 +4469,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4517,9 +4479,9 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.3.1" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "241f9c5d25063080f2c02846221f13e1d0e5e18fa00c32c234aad585b744ee55" +checksum = "78a95abf24f1097c6e3181abbbbfc3630b3b5e681470940f719b69acb4911c7f" dependencies = [ "blake2-rfc", "crc32fast", @@ -4528,17 +4490,17 @@ dependencies = [ "libc", "log", "lz4", - "memmap2", - "parking_lot 0.11.1", + "memmap2 0.2.3", + "parking_lot", "rand 0.8.4", "snap", ] [[package]] name = "parity-scale-codec" -version = "2.2.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8975095a2a03bbbdc70a74ab11a4f76a6d0b84680d87c68d722531b0ac28e8a9" +checksum = "373b1a4c1338d9cd3d1fa53b3a11bdab5ab6bd80a20f7f7becd76953ae2be909" dependencies = [ "arrayvec 0.7.1", "bitvec 0.20.4", @@ -4550,11 +4512,11 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "2.2.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40dbbfef7f0a1143c5b06e0d76a6278e25dac0bc1af4be51a0fbb73f07e7ad09" +checksum = "1557010476e0595c9b568d16dcfb81b93cdeb157612726f5170d31aa707bed27" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", @@ -4566,36 +4528,22 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa9777aa91b8ad9dd5aaa04a9b6bcb02c7f1deb952fca5a66034d5e63afc5c6f" -[[package]] -name = "parity-tokio-ipc" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9981e32fb75e004cc148f5fb70342f393830e0a4aa62e3cc93b50976218d42b6" -dependencies = [ - "futures 0.3.17", - "libc", - "log", - "rand 0.7.3", - "tokio", - "winapi 0.3.9", -] - [[package]] name = "parity-util-mem" -version = "0.10.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ad6f1acec69b95caf435bbd158d486e5a0a44fcf51531e84922c59ff09e8457" +checksum = "6f4cb4e169446179cbc6b8b6320cc9fca49bd2e94e8db25f25f200a8ea774770" dependencies = [ "cfg-if 1.0.0", "ethereum-types", "hashbrown", "impl-trait-for-tuples", - "lru", + "lru 0.6.6", "parity-util-mem-derive", - "parking_lot 0.11.1", + "parking_lot", "primitive-types", "smallvec", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -4624,40 +4572,12 @@ version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" -[[package]] -name = "parity-ws" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0ab8a461779bd022964cae2b4989fa9c99deb270bec162da2125ec03c09fcaa" -dependencies = [ - "byteorder", - "bytes 0.4.12", - "httparse", - "log", - "mio 0.6.23", - "mio-extras", - "rand 0.7.3", - "sha-1 0.8.2", - "slab", - "url 2.2.2", -] - [[package]] name = "parking" version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" -[[package]] -name = "parking_lot" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e" -dependencies = [ - "lock_api 0.3.4", - "parking_lot_core 0.7.2", -] - [[package]] name = "parking_lot" version = "0.11.1" @@ -4665,22 +4585,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" dependencies = [ "instant", - "lock_api 0.4.4", - "parking_lot_core 0.8.3", -] - -[[package]] -name = "parking_lot_core" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3" -dependencies = [ - "cfg-if 0.1.10", - "cloudabi", - "libc", - "redox_syscall 0.1.57", - "smallvec", - "winapi 0.3.9", + "lock_api", + "parking_lot_core", ] [[package]] @@ -4692,9 +4598,9 @@ dependencies = [ "cfg-if 1.0.0", "instant", "libc", - "redox_syscall 0.2.10", + "redox_syscall", "smallvec", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -4705,21 +4611,20 @@ checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58" [[package]] name = "pbkdf2" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "006c038a43a45995a9670da19e67600114740e8511d4333bf97a56e66a7542d9" +checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" dependencies = [ - "byteorder", - "crypto-mac 0.7.0", + "crypto-mac 0.8.0", ] [[package]] name = "pbkdf2" -version = "0.4.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa" dependencies = [ - "crypto-mac 0.8.0", + "crypto-mac 0.11.1", ] [[package]] @@ -4728,12 +4633,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" -[[package]] -name = "percent-encoding" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" - [[package]] name = "percent-encoding" version = "2.1.0" @@ -4785,9 +4684,9 @@ dependencies = [ [[package]] name = "petgraph" -version = "0.5.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" +checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f" dependencies = [ "fixedbitset", "indexmap", @@ -4859,9 +4758,9 @@ checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" [[package]] name = "platforms" -version = "1.1.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "989d43012e2ca1c4a02507c67282691a0a3207f9dc67cec596b43fe925b3d325" +checksum = "e8d0eef3571242013a0d5dc84861c3ae4a652e56e12adf8bdc26ff5f8cb34c94" [[package]] name = "polling" @@ -4873,7 +4772,7 @@ dependencies = [ "libc", "log", "wepoll-ffi", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -4882,7 +4781,7 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fcffab1f78ebbdf4b93b68c1ffebc24037eedf271edaca795732b24e5e4e349" dependencies = [ - "cpufeatures", + "cpufeatures 0.1.5", "opaque-debug 0.3.0", "universal-hash", ] @@ -4894,7 +4793,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6ba6a405ef63530d6cb12802014b22f9c5751bd17cdcddbe9e46d5c8ae83287" dependencies = [ "cfg-if 1.0.0", - "cpufeatures", + "cpufeatures 0.1.5", "opaque-debug 0.3.0", "universal-hash", ] @@ -4921,18 +4820,9 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" -dependencies = [ - "toml", -] - -[[package]] -name = "proc-macro-crate" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41fdbd1df62156fbc5945f4762632564d7d038153091c3fcf1067f6aef7cff92" +checksum = "1ebace6889caf889b4d3f76becee12e90353f2b8c7d875534a71e5742f8f6f83" dependencies = [ "thiserror", "toml", @@ -4976,60 +4866,62 @@ checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" [[package]] name = "proc-macro2" -version = "1.0.30" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70" +checksum = "fb37d2df5df740e582f28f8560cf425f52bb267d872fe58358eadb554909f07a" dependencies = [ "unicode-xid", ] [[package]] name = "prometheus" -version = "0.11.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d" +checksum = "b7f64969ffd5dd8f39bd57a68ac53c163a095ed9d0fb707146da1b27025a3504" dependencies = [ "cfg-if 1.0.0", "fnv", "lazy_static", - "parking_lot 0.11.1", - "regex", + "memchr", + "parking_lot", "thiserror", ] [[package]] name = "prost" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020" +checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001" dependencies = [ - "bytes 1.0.1", + "bytes", "prost-derive", ] [[package]] name = "prost-build" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "355f634b43cdd80724ee7848f95770e7e70eefa6dcf14fea676216573b8fd603" +checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5" dependencies = [ - "bytes 1.0.1", + "bytes", "heck", "itertools", + "lazy_static", "log", "multimap", "petgraph", "prost", "prost-types", + "regex", "tempfile", "which", ] [[package]] name = "prost-derive" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "600d2f334aa05acb02a755e217ef1ab6dea4d51b58b7846588b747edec04efba" +checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe" dependencies = [ "anyhow", "itertools", @@ -5040,28 +4932,28 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b" +checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a" dependencies = [ - "bytes 1.0.1", + "bytes", "prost", ] [[package]] name = "psm" -version = "0.1.14" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ce37fa8c0428a37307d163292add09b3aedc003472e6b3622486878404191d" +checksum = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69" dependencies = [ "cc", ] [[package]] name = "pwasm-utils" -version = "0.18.1" +version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0c1a2f10b47d446372a4f397c58b329aaea72b2daf9395a623a411cb8ccb54f" +checksum = "880b3384fb00b8f6ecccd5d358b93bd2201900ae3daad213791d1864f6441f5c" dependencies = [ "byteorder", "log", @@ -5093,9 +4985,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" dependencies = [ "proc-macro2", ] @@ -5244,12 +5136,6 @@ dependencies = [ "num_cpus", ] -[[package]] -name = "redox_syscall" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" - [[package]] name = "redox_syscall" version = "0.2.10" @@ -5266,7 +5152,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ "getrandom 0.2.3", - "redox_syscall 0.2.10", + "redox_syscall", ] [[package]] @@ -5291,13 +5177,12 @@ dependencies = [ [[package]] name = "regalloc" -version = "0.0.31" +version = "0.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" +checksum = "a6304468554ed921da3d32c355ea107b8d13d7b8996c3adfb7aab48d3bc321f4" dependencies = [ "log", "rustc-hash", - "serde", "smallvec", ] @@ -5336,7 +5221,7 @@ dependencies = [ "bitflags", "libc", "mach", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -5345,7 +5230,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -5360,9 +5245,9 @@ dependencies = [ [[package]] name = "retain_mut" -version = "0.1.3" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9c17925a9027d298a4603d286befe3f9dc0e8ed02523141914eb628798d6e5b" +checksum = "11000e6ba5020e53e7cc26f73b91ae7d5496b4977851479edb66b694c0675c21" [[package]] name = "ring" @@ -5376,7 +5261,7 @@ dependencies = [ "spin", "untrusted", "web-sys", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -5396,7 +5281,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "999508abb0ae792aabed2460c45b89106d97fe4adac593bdaef433c2605847b5" dependencies = [ - "bytes 1.0.1", + "bytes", "rustc-hex", ] @@ -5428,7 +5313,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", +] + +[[package]] +name = "rsix" +version = "0.23.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f64c5788d5aab8b75441499d99576a24eb09f76fb267b36fec7e3d970c66431" +dependencies = [ + "bitflags", + "cc", + "errno", + "io-lifetimes", + "itoa", + "libc", + "linux-raw-sys", + "once_cell", + "rustc_version 0.4.0", ] [[package]] @@ -5467,6 +5369,15 @@ dependencies = [ "semver 0.11.0", ] +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver 1.0.4", +] + [[package]] name = "rustls" version = "0.19.1" @@ -5520,9 +5431,9 @@ dependencies = [ [[package]] name = "salsa20" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecbd2eb639fd7cab5804a0837fe373cc2172d15437e804c054a9fb885cb923b0" +checksum = "0c0fbb5f676da676c260ba276a8f43a8dc67cf02d1438423aeb1c677a7212686" dependencies = [ "cipher", ] @@ -5538,8 +5449,8 @@ dependencies = [ [[package]] name = "sc-allocator" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +version = "4.1.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "log", "sp-core", @@ -5550,7 +5461,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -5573,7 +5484,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5589,9 +5500,10 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "impl-trait-for-tuples", + "memmap2 0.5.0", "parity-scale-codec", "sc-chain-spec-derive", "sc-network", @@ -5605,9 +5517,9 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", @@ -5616,7 +5528,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "chrono", "fdlimit", @@ -5654,14 +5566,14 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "fnv", "futures 0.3.17", "hash-db", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-executor", "sc-transaction-pool-api", "sc-utils", @@ -5682,7 +5594,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "hash-db", "kvdb", @@ -5692,7 +5604,7 @@ dependencies = [ "log", "parity-db", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sc-state-db", "sp-arithmetic", @@ -5707,14 +5619,14 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "futures 0.3.17", "futures-timer 3.0.2", "libp2p", "log", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sc-utils", "serde", @@ -5731,7 +5643,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "derive_more", @@ -5760,7 +5672,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "derive_more", @@ -5772,7 +5684,7 @@ dependencies = [ "num-rational 0.2.4", "num-traits", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "retain_mut", "sc-client-api", @@ -5803,7 +5715,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "fork-tree", "parity-scale-codec", @@ -5816,15 +5728,13 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "assert_matches", "async-trait", "derive_more", "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", + "jsonrpsee", "log", "parity-scale-codec", "sc-client-api", @@ -5850,7 +5760,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "futures 0.3.17", @@ -5876,18 +5786,19 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "lazy_static", - "libsecp256k1 0.6.0", + "libsecp256k1 0.7.0", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-executor-common", "sc-executor-wasmi", "sc-executor-wasmtime", "sp-api", "sp-core", + "sp-core-hashing-proc-macro", "sp-externalities", "sp-io", "sp-panic-handler", @@ -5902,7 +5813,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "derive_more", "environmental", @@ -5920,7 +5831,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "log", "parity-scale-codec", @@ -5936,7 +5847,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "cfg-if 1.0.0", "libc", @@ -5945,7 +5856,6 @@ dependencies = [ "parity-wasm 0.42.2", "sc-allocator", "sc-executor-common", - "scoped-tls", "sp-core", "sp-runtime-interface", "sp-wasm-interface", @@ -5955,7 +5865,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "derive_more", @@ -5966,7 +5876,7 @@ dependencies = [ "futures-timer 3.0.2", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.8.4", "sc-block-builder", "sc-client-api", @@ -5992,9 +5902,9 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "ansi_term 0.12.1", + "ansi_term", "futures 0.3.17", "futures-timer 3.0.2", "log", @@ -6009,46 +5919,28 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "derive_more", "hex", - "parking_lot 0.11.1", + "parking_lot", "serde_json", "sp-application-crypto", "sp-core", "sp-keystore", ] -[[package]] -name = "sc-light" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" -dependencies = [ - "hash-db", - "parity-scale-codec", - "parking_lot 0.11.1", - "sc-client-api", - "sc-executor", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-state-machine", -] - [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-std", "async-trait", "asynchronous-codec 0.5.0", "bitflags", - "bytes 1.0.1", + "bytes", "cid", "derive_more", "either", @@ -6062,9 +5954,9 @@ dependencies = [ "linked-hash-map", "linked_hash_set", "log", - "lru", + "lru 0.7.0", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "prost", "prost-build", @@ -6093,13 +5985,13 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", "libp2p", "log", - "lru", + "lru 0.7.0", "sc-network", "sp-runtime", "substrate-prometheus-endpoint", @@ -6109,19 +6001,19 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "bytes 1.0.1", + "bytes", "fnv", "futures 0.3.17", "futures-timer 3.0.2", "hex", "hyper", "hyper-rustls", - "log", "num_cpus", + "once_cell", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "sc-client-api", "sc-network", @@ -6131,12 +6023,13 @@ dependencies = [ "sp-offchain", "sp-runtime", "threadpool", + "tracing", ] [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "futures 0.3.17", "libp2p", @@ -6148,8 +6041,8 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -6158,16 +6051,16 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ + "anyhow", + "async-trait", "futures 0.3.17", "hash-db", - "jsonrpc-core", - "jsonrpc-pubsub", + "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.11.1", - "sc-block-builder", + "parking_lot", "sc-chain-spec", "sc-client-api", "sc-rpc-api", @@ -6189,16 +6082,13 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ + "anyhow", "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log", + "jsonrpsee", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-chain-spec", "sc-transaction-pool-api", "serde", @@ -6209,19 +6099,16 @@ dependencies = [ "sp-tracing", "sp-version", "thiserror", + "tracing", ] [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-http-server", - "jsonrpc-ipc-server", - "jsonrpc-pubsub", - "jsonrpc-ws-server", + "anyhow", + "jsonrpsee", "log", "serde_json", "substrate-prometheus-endpoint", @@ -6231,7 +6118,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "directories", @@ -6239,12 +6126,11 @@ dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", "hash-db", - "jsonrpc-core", - "jsonrpc-pubsub", + "jsonrpsee", "log", "parity-scale-codec", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "rand 0.7.3", "sc-block-builder", @@ -6255,7 +6141,6 @@ dependencies = [ "sc-executor", "sc-informant", "sc-keystore", - "sc-light", "sc-network", "sc-offchain", "sc-rpc", @@ -6296,13 +6181,13 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "log", "parity-scale-codec", "parity-util-mem", "parity-util-mem-derive", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sp-core", ] @@ -6310,13 +6195,13 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "chrono", "futures 0.3.17", "libp2p", "log", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "rand 0.7.3", "serde", @@ -6328,14 +6213,16 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "ansi_term 0.12.1", + "ansi_term", "atty", + "chrono", "lazy_static", + "libc", "log", "once_cell", - "parking_lot 0.11.1", + "parking_lot", "regex", "rustc-hash", "sc-client-api", @@ -6357,9 +6244,9 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", @@ -6368,7 +6255,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "futures 0.3.17", "intervalier", @@ -6376,7 +6263,7 @@ dependencies = [ "log", "parity-scale-codec", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "retain_mut", "sc-client-api", "sc-transaction-pool-api", @@ -6395,7 +6282,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "derive_more", "futures 0.3.17", @@ -6409,7 +6296,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -6437,7 +6324,7 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baeb2780690380592f86205aa4ee49815feb2acad8c2f59e6dd207148c3f1fcd" dependencies = [ - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", @@ -6450,7 +6337,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" dependencies = [ "lazy_static", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -6495,9 +6382,9 @@ dependencies = [ [[package]] name = "secrecy" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0" +checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e" dependencies = [ "zeroize", ] @@ -6550,6 +6437,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" dependencies = [ "semver-parser 0.10.2", +] + +[[package]] +name = "semver" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" +dependencies = [ "serde", ] @@ -6590,9 +6485,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.68" +version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f690853975602e1bfe1ccbf50504d67174e3bcf340f23b5ea9992e0587a52d8" +checksum = "d0ffa0837f2dfa6fb90868c2b5468cad482e175f7dad97e7421951e663f2b527" dependencies = [ "itoa", "ryu", @@ -6619,7 +6514,7 @@ checksum = "1a0c8611594e2ab4ebbf06ec7cbbf0a99450b8570e96cbf5188b5d5f6ef18d81" dependencies = [ "block-buffer 0.9.0", "cfg-if 1.0.0", - "cpufeatures", + "cpufeatures 0.1.5", "digest 0.9.0", "opaque-debug 0.3.0", ] @@ -6638,13 +6533,13 @@ dependencies = [ [[package]] name = "sha2" -version = "0.9.5" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362ae5752fd2137731f9fa25fd4d9058af34666ca1966fb969119cc35719f12" +checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" dependencies = [ "block-buffer 0.9.0", "cfg-if 1.0.0", - "cpufeatures", + "cpufeatures 0.2.1", "digest 0.9.0", "opaque-debug 0.3.0", ] @@ -6732,20 +6627,11 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590" -[[package]] -name = "slog" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8347046d4ebd943127157b94d63abb990fcf729dc4e9978927fdf4ac3c998d06" -dependencies = [ - "erased-serde", -] - [[package]] name = "smallvec" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" +checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309" [[package]] name = "snap" @@ -6766,7 +6652,7 @@ dependencies = [ "rand_core 0.6.3", "ring", "rustc_version 0.3.3", - "sha2 0.9.5", + "sha2 0.9.8", "subtle 2.4.1", "x25519-dalek", ] @@ -6779,7 +6665,7 @@ checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e" dependencies = [ "cfg-if 1.0.0", "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -6789,29 +6675,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "765f090f0e423d2b55843402a07915add955e7d60657db13707a159727326cad" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", ] [[package]] name = "soketto" -version = "0.4.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5c71ed3d54db0a699f4948e1bb3e45b450fa31fe602621dee6680361d569c88" +checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" dependencies = [ - "base64 0.12.3", - "bytes 0.5.6", + "base64 0.13.0", + "bytes", "flate2", "futures 0.3.17", "httparse", "log", - "rand 0.7.3", + "rand 0.8.4", "sha-1 0.9.7", ] [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "hash-db", "log", @@ -6828,10 +6714,10 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "blake2-rfc", - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", @@ -6840,7 +6726,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "scale-info", @@ -6853,7 +6739,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "integer-sqrt", "num-traits", @@ -6868,7 +6754,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "parity-scale-codec", @@ -6880,7 +6766,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "sp-api", @@ -6892,13 +6778,13 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "futures 0.3.17", "log", - "lru", + "lru 0.7.0", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sp-api", "sp-consensus", "sp-database", @@ -6910,7 +6796,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "futures 0.3.17", @@ -6929,7 +6815,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "parity-scale-codec", @@ -6947,7 +6833,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "merlin", @@ -6970,10 +6856,11 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "scale-info", + "serde", "sp-arithmetic", "sp-runtime", ] @@ -6981,7 +6868,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -6993,9 +6880,10 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "base58", + "bitflags", "blake2-rfc", "byteorder", "dyn-clonable", @@ -7006,13 +6894,13 @@ dependencies = [ "hex", "impl-serde", "lazy_static", - "libsecp256k1 0.6.0", + "libsecp256k1 0.7.0", "log", "merlin", "num-traits", "parity-scale-codec", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "primitive-types", "rand 0.7.3", "regex", @@ -7020,12 +6908,14 @@ dependencies = [ "schnorrkel", "secrecy", "serde", - "sha2 0.9.5", + "sha2 0.9.8", + "sp-core-hashing", "sp-debug-derive", "sp-externalities", "sp-runtime-interface", "sp-std", "sp-storage", + "ss58-registry", "substrate-bip39", "thiserror", "tiny-bip39", @@ -7035,19 +6925,43 @@ dependencies = [ "zeroize", ] +[[package]] +name = "sp-core-hashing" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" +dependencies = [ + "blake2-rfc", + "byteorder", + "sha2 0.9.8", + "sp-std", + "tiny-keccak", + "twox-hash", +] + +[[package]] +name = "sp-core-hashing-proc-macro" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" +dependencies = [ + "proc-macro2", + "quote", + "sp-core-hashing", + "syn", +] + [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "kvdb", - "parking_lot 0.11.1", + "parking_lot", ] [[package]] name = "sp-debug-derive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "proc-macro2", "quote", @@ -7057,7 +6971,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "environmental", "parity-scale-codec", @@ -7068,7 +6982,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "finality-grandpa", "log", @@ -7086,7 +7000,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -7100,18 +7014,17 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "futures 0.3.17", "hash-db", - "libsecp256k1 0.6.0", + "libsecp256k1 0.7.0", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sp-core", "sp-externalities", "sp-keystore", - "sp-maybe-compressed-blob", "sp-runtime-interface", "sp-state-machine", "sp-std", @@ -7125,7 +7038,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "lazy_static", "sp-core", @@ -7136,14 +7049,14 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "derive_more", "futures 0.3.17", "merlin", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "schnorrkel", "serde", "sp-core", @@ -7152,8 +7065,8 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +version = "4.1.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "zstd", ] @@ -7161,7 +7074,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "sp-api", "sp-core", @@ -7170,16 +7083,18 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "backtrace", + "lazy_static", + "regex", ] [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "rustc-hash", "serde", @@ -7189,7 +7104,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "either", "hash256-std-hasher", @@ -7211,7 +7126,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7228,10 +7143,10 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "Inflector", - "proc-macro-crate 1.0.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", @@ -7239,8 +7154,8 @@ dependencies = [ [[package]] name = "sp-serializer" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "serde", "serde_json", @@ -7249,7 +7164,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "scale-info", @@ -7263,7 +7178,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "scale-info", @@ -7274,13 +7189,13 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "hash-db", "log", "num-traits", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "smallvec", "sp-core", @@ -7297,12 +7212,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7315,7 +7230,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "log", "sp-core", @@ -7328,7 +7243,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -7344,15 +7259,9 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "erased-serde", - "log", "parity-scale-codec", - "parking_lot 0.10.2", - "serde", - "serde_json", - "slog", "sp-std", "tracing", "tracing-core", @@ -7362,7 +7271,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "sp-api", "sp-runtime", @@ -7371,7 +7280,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-trait", "log", @@ -7387,7 +7296,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "hash-db", "memory-db", @@ -7402,7 +7311,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7418,7 +7327,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -7429,7 +7338,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7443,6 +7352,20 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +[[package]] +name = "ss58-registry" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "827441708a5dd8ca54e6b79690dc06d1bede78e61961e667f683c23c16ef964c" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "serde", + "serde_json", + "unicode-xid", +] + [[package]] name = "stable_deref_trait" version = "1.2.0" @@ -7476,9 +7399,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "structopt" -version = "0.3.22" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69b041cdcb67226aca307e6e7be44c8806423d83e018bd662360a93dabce4d71" +checksum = "40b9788f4202aa75c240ecc9c15c65185e6a39ccdeb0fd5d008b98825464c87c" dependencies = [ "clap", "lazy_static", @@ -7487,9 +7410,9 @@ dependencies = [ [[package]] name = "structopt-derive" -version = "0.4.15" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7813934aecf5f51a54775e00068c237de98489463968231a51746bbbc03f9c10" +checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" dependencies = [ "heck", "proc-macro-error", @@ -7500,18 +7423,18 @@ dependencies = [ [[package]] name = "strum" -version = "0.20.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7318c509b5ba57f18533982607f24070a55d353e90d4cae30c467cdb2ad5ac5c" +checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e" dependencies = [ "strum_macros", ] [[package]] name = "strum_macros" -version = "0.20.1" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8bc6b87a5112aeeab1f4a9f7ab634fe6cbefc4850006df31267f4cfb9e3149" +checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" dependencies = [ "heck", "proc-macro2", @@ -7521,14 +7444,14 @@ dependencies = [ [[package]] name = "substrate-bip39" -version = "0.4.2" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bed6646a0159b9935b5d045611560eeef842b78d7adc3ba36f5ca325a13a0236" +checksum = "49eee6965196b32f882dd2ee85a92b1dbead41b04e53907f269de3b0dc04733c" dependencies = [ - "hmac 0.7.1", - "pbkdf2 0.3.0", + "hmac 0.11.0", + "pbkdf2 0.8.0", "schnorrkel", - "sha2 0.8.2", + "sha2 0.9.8", "zeroize", ] @@ -7548,7 +7471,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "platforms", ] @@ -7556,18 +7479,19 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ + "async-trait", + "derive_more", "frame-system-rpc-runtime-api", "futures 0.3.17", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", + "jsonrpsee", "log", "parity-scale-codec", "sc-client-api", "sc-rpc-api", "sc-transaction-pool-api", + "serde_json", "sp-api", "sp-block-builder", "sp-blockchain", @@ -7577,8 +7501,8 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ "async-std", "derive_more", @@ -7592,9 +7516,9 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate#ba153b9ae050eda022f002d74d76f98d1e339a81" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-jsonrpsee-v0.9.13#57a7127c837867ef70e811fa6490fbe312a03359" dependencies = [ - "ansi_term 0.12.1", + "ansi_term", "build-helper", "cargo_metadata", "sp-maybe-compressed-blob", @@ -7618,9 +7542,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.74" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1873d832550d4588c3dbc20f01361ab00bfe741048f71e3fecf145a7cc18b29c" +checksum = "8daf5dd0bb60cbd4137b1b587d2fc0ae729bc07cf01cd70b36a1ed5ade3b9d59" dependencies = [ "proc-macro2", "quote", @@ -7647,9 +7571,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0652da4c4121005e9ed22b79f6c5f2d9e2752906b53a33e9490489ba421a6fb" +checksum = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff" [[package]] name = "tempfile" @@ -7660,9 +7584,9 @@ dependencies = [ "cfg-if 1.0.0", "libc", "rand 0.8.4", - "redox_syscall 0.2.10", + "redox_syscall", "remove_dir_all", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -7685,18 +7609,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.26" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93119e4feac1cbe6c798c34d3a53ea0026b0b1de6a120deef895137c0529bfe2" +checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.26" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "060d69a0afe7796bf42e9e2ff91f5ee691fb15c53d38b4b62a9a53eb23164745" +checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", @@ -7729,14 +7653,14 @@ checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", "wasi 0.10.0+wasi-snapshot-preview1", - "winapi 0.3.9", + "winapi", ] [[package]] name = "tiny-bip39" -version = "0.8.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8" +checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" dependencies = [ "anyhow", "hmac 0.8.1", @@ -7744,9 +7668,10 @@ dependencies = [ "pbkdf2 0.4.0", "rand 0.7.3", "rustc-hash", - "sha2 0.9.5", + "sha2 0.9.8", "thiserror", "unicode-normalization", + "wasm-bindgen", "zeroize", ] @@ -7776,42 +7701,43 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.10.0" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cf844b23c6131f624accf65ce0e4e9956a8bb329400ea5bcc26ae3a5c20b0b" +checksum = "70e992e41e0d2fb9f755b37446f20900f64446ef54874f40a60c78f021ac6144" dependencies = [ "autocfg", - "bytes 1.0.1", + "bytes", "libc", "memchr", - "mio 0.7.13", + "mio", "num_cpus", "once_cell", "pin-project-lite 0.2.7", "signal-hook-registry", - "winapi 0.3.9", + "tokio-macros", + "winapi", ] [[package]] -name = "tokio-rustls" -version = "0.22.0" +name = "tokio-macros" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" +checksum = "c9efc1aba077437943f7515666aa2b882dfabfbfdf89c819ea75a8d6e9eaba5e" dependencies = [ - "rustls", - "tokio", - "webpki", + "proc-macro2", + "quote", + "syn", ] [[package]] -name = "tokio-stream" -version = "0.1.7" +name = "tokio-rustls" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b2f3f698253f03119ac0102beaa64f67a67e08074d03a22d18784104543727f" +checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" dependencies = [ - "futures-core", - "pin-project-lite 0.2.7", + "rustls", "tokio", + "webpki", ] [[package]] @@ -7820,8 +7746,9 @@ version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1caa0b0c8d94a049db56b5acf8cba99dc0623aab1b26d5b5f5e2d945846b3592" dependencies = [ - "bytes 1.0.1", + "bytes", "futures-core", + "futures-io", "futures-sink", "log", "pin-project-lite 0.2.7", @@ -7845,9 +7772,9 @@ checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" [[package]] name = "tracing" -version = "0.1.26" +version = "0.1.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09adeb8c97449311ccd28a427f96fb563e7fd31aabf994189879d9da2394b89d" +checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105" dependencies = [ "cfg-if 1.0.0", "pin-project-lite 0.2.7", @@ -7857,9 +7784,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.15" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2" +checksum = "f4f480b8f81512e825f337ad51e94c1eb5d3bbdf2b363dcd01e2b19a9ffe3f8e" dependencies = [ "proc-macro2", "quote", @@ -7868,9 +7795,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.18" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9ff14f98b1a4b289c6248a023c1c2fa1491062964e9fed67ab29c4e4da4a052" +checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4" dependencies = [ "lazy_static", ] @@ -7908,14 +7835,15 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.2.19" +version = "0.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab69019741fca4d98be3c62d2b75254528b5432233fd8a4d2739fec20278de48" +checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" dependencies = [ - "ansi_term 0.12.1", + "ansi_term", "chrono", "lazy_static", "matchers", + "parking_lot", "regex", "serde", "serde_json", @@ -7973,7 +7901,7 @@ dependencies = [ "futures-channel", "futures-io", "futures-util", - "idna 0.2.3", + "idna", "ipnet", "lazy_static", "log", @@ -7981,7 +7909,7 @@ dependencies = [ "smallvec", "thiserror", "tinyvec", - "url 2.2.2", + "url", ] [[package]] @@ -7996,7 +7924,7 @@ dependencies = [ "lazy_static", "log", "lru-cache", - "parking_lot 0.11.1", + "parking_lot", "resolv-conf", "smallvec", "thiserror", @@ -8009,6 +7937,12 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" +[[package]] +name = "tt-call" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e66dcbec4290c69dd03c57e76c2469ea5c7ce109c6dd4351c13055cf71ea055" + [[package]] name = "twox-hash" version = "1.6.1" @@ -8076,9 +8010,9 @@ checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" [[package]] name = "unicode-width" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" +checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" [[package]] name = "unicode-xid" @@ -8109,7 +8043,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35581ff83d4101e58b582e607120c7f5ffb17e632a980b1f38334d76b36908b2" dependencies = [ "asynchronous-codec 0.5.0", - "bytes 1.0.1", + "bytes", "futures-io", "futures-util", ] @@ -8121,7 +8055,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f8d425fafb8cd76bc3f22aace4af471d3156301d7508f2107e98fbeae10bc7f" dependencies = [ "asynchronous-codec 0.6.0", - "bytes 1.0.1", + "bytes", "futures-io", "futures-util", ] @@ -8132,17 +8066,6 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" -[[package]] -name = "url" -version = "1.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" -dependencies = [ - "idna 0.1.5", - "matches", - "percent-encoding 1.0.1", -] - [[package]] name = "url" version = "2.2.2" @@ -8150,9 +8073,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" dependencies = [ "form_urlencoded", - "idna 0.2.3", + "idna", "matches", - "percent-encoding 2.1.0", + "percent-encoding", ] [[package]] @@ -8202,7 +8125,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" dependencies = [ "same-file", - "winapi 0.3.9", + "winapi", "winapi-util", ] @@ -8313,7 +8236,7 @@ checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ "futures 0.3.17", "js-sys", - "parking_lot 0.11.1", + "parking_lot", "pin-utils", "wasm-bindgen", "wasm-bindgen-futures", @@ -8322,9 +8245,9 @@ dependencies = [ [[package]] name = "wasmi" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2ee05bba3d1d994652079893941a2ef9324d2b58a63c31b40678fb7eddd7a5a" +checksum = "ca00c5147c319a8ec91ec1a0edbec31e566ce2c9cc93b3f9bb86a9efd0eb795d" dependencies = [ "downcast-rs", "libc", @@ -8346,15 +8269,15 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.78.2" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52144d4c78e5cf8b055ceab8e5fa22814ce4315d6002ad32cfd914f37c12fd65" +checksum = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc" [[package]] name = "wasmtime" -version = "0.27.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b310b9d20fcf59385761d1ade7a3ef06aecc380e3d3172035b919eaf7465d9f7" +checksum = "311d06b0c49346d1fbf48a17052e844036b95a7753c1afb34e8c0af3f6b5bb13" dependencies = [ "anyhow", "backtrace", @@ -8365,68 +8288,59 @@ dependencies = [ "lazy_static", "libc", "log", + "object 0.27.1", "paste", "psm", + "rayon", "region", "rustc-demangle", "serde", - "smallvec", "target-lexicon", "wasmparser", "wasmtime-cache", + "wasmtime-cranelift", "wasmtime-environ", "wasmtime-jit", - "wasmtime-profiling", "wasmtime-runtime", - "winapi 0.3.9", + "winapi", ] [[package]] name = "wasmtime-cache" -version = "0.27.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d14d500d5c3dc5f5c097158feee123d64b3097f0d836a2a27dff9c761c73c843" +checksum = "36147930a4995137dc096e5b17a573b446799be2bbaea433e821ce6a80abe2c5" dependencies = [ "anyhow", "base64 0.13.0", "bincode", "directories-next", - "errno", "file-per-thread-logger", - "libc", "log", + "rsix", "serde", - "sha2 0.9.5", + "sha2 0.9.8", "toml", - "winapi 0.3.9", + "winapi", "zstd", ] [[package]] name = "wasmtime-cranelift" -version = "0.27.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c525b39f062eada7db3c1298287b96dcb6e472b9f6b22501300b28d9fa7582f6" +checksum = "ab3083a47e1ede38aac06a1d9831640d673f9aeda0b82a64e4ce002f3432e2e7" dependencies = [ + "anyhow", "cranelift-codegen", "cranelift-entity", "cranelift-frontend", + "cranelift-native", "cranelift-wasm", - "target-lexicon", - "wasmparser", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-debug" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5d2a763e7a6fc734218e0e463196762a4f409c483063d81e0e85f96343b2e0a" -dependencies = [ - "anyhow", - "gimli 0.24.0", + "gimli", + "log", "more-asserts", - "object 0.24.0", + "object 0.27.1", "target-lexicon", "thiserror", "wasmparser", @@ -8435,91 +8349,55 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.27.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f64d0c2d881c31b0d65c1f2695e022d71eb60b9fbdd336aacca28208b58eac90" +checksum = "1c2d194b655321053bc4111a1aa4ead552655c8a17d17264bc97766e70073510" dependencies = [ + "anyhow", "cfg-if 1.0.0", - "cranelift-codegen", "cranelift-entity", - "cranelift-wasm", - "gimli 0.24.0", + "gimli", "indexmap", "log", "more-asserts", + "object 0.27.1", "serde", + "target-lexicon", "thiserror", "wasmparser", + "wasmtime-types", ] [[package]] name = "wasmtime-jit" -version = "0.27.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d4539ea734422b7c868107e2187d7746d8affbcaa71916d72639f53757ad707" +checksum = "864ac8dfe4ce310ac59f16fdbd560c257389cb009ee5d030ac6e30523b023d11" dependencies = [ - "addr2line 0.15.2", + "addr2line", "anyhow", + "bincode", "cfg-if 1.0.0", - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "cranelift-native", - "cranelift-wasm", - "gimli 0.24.0", + "gimli", "log", "more-asserts", - "object 0.24.0", - "rayon", + "object 0.27.1", "region", + "rsix", "serde", "target-lexicon", "thiserror", "wasmparser", - "wasmtime-cranelift", - "wasmtime-debug", - "wasmtime-environ", - "wasmtime-obj", - "wasmtime-profiling", - "wasmtime-runtime", - "winapi 0.3.9", -] - -[[package]] -name = "wasmtime-obj" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e1a8ff85246d091828e2225af521a6208ed28c997bb5c39eb697366dc2e2f2b" -dependencies = [ - "anyhow", - "more-asserts", - "object 0.24.0", - "target-lexicon", - "wasmtime-debug", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-profiling" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e24364d522dcd67c897c8fffc42e5bdfc57207bbb6d7eeade0da9d4a7d70105b" -dependencies = [ - "anyhow", - "cfg-if 1.0.0", - "lazy_static", - "libc", - "serde", - "target-lexicon", "wasmtime-environ", "wasmtime-runtime", + "winapi", ] [[package]] name = "wasmtime-runtime" -version = "0.27.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c51e57976e8a19a18a18e002c6eb12e5769554204238e47ff155fda1809ef0f7" +checksum = "ab97da813a26b98c9abfd3b0c2d99e42f6b78b749c0646344e2e262d212d8c8b" dependencies = [ "anyhow", "backtrace", @@ -8534,9 +8412,22 @@ dependencies = [ "more-asserts", "rand 0.8.4", "region", + "rsix", "thiserror", "wasmtime-environ", - "winapi 0.3.9", + "winapi", +] + +[[package]] +name = "wasmtime-types" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff94409cc3557bfbbcce6b14520ccd6bd3727e965c0fe68d63ef2c185bf379c6" +dependencies = [ + "cranelift-entity", + "serde", + "thiserror", + "wasmparser", ] [[package]] @@ -8594,12 +8485,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c168940144dd21fd8046987c16a46a33d5fc84eec29ef9dcddc2ac9e31526b7c" -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" - [[package]] name = "winapi" version = "0.3.9" @@ -8610,12 +8495,6 @@ dependencies = [ "winapi-x86_64-pc-windows-gnu", ] -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" - [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" @@ -8628,7 +8507,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -8643,17 +8522,7 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2986deb581c4fe11b621998a5e53361efe6b48a151178d0cd9eeffa4dc6acc9" dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "ws2_32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" -dependencies = [ - "winapi 0.2.8", - "winapi-build", + "winapi", ] [[package]] @@ -8682,7 +8551,7 @@ dependencies = [ "futures 0.3.17", "log", "nohash-hasher", - "parking_lot 0.11.1", + "parking_lot", "rand 0.8.4", "static_assertions", ] @@ -8710,18 +8579,18 @@ dependencies = [ [[package]] name = "zstd" -version = "0.6.1+zstd.1.4.9" +version = "0.9.0+zstd.1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de55e77f798f205d8561b8fe2ef57abfb6e0ff2abe7fd3c089e119cdb5631a3" +checksum = "07749a5dc2cb6b36661290245e350f15ec3bbb304e493db54a1d354480522ccd" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "3.0.1+zstd.1.4.9" +version = "4.1.1+zstd.1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1387cabcd938127b30ce78c4bf00b30387dddf704e3f0881dbc4ff62b5566f8c" +checksum = "c91c90f2c593b003603e5e0493c837088df4469da25aafff8bce42ba48caf079" dependencies = [ "libc", "zstd-sys", @@ -8729,9 +8598,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "1.4.20+zstd.1.4.9" +version = "1.6.1+zstd.1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd5b733d7cf2d9447e2c3e76a5589b4f5e5ae065c22a2bc0b023cbc331b6c8e" +checksum = "615120c7a2431d16cf1cf979e7fc31ba7a5b5e5707b29c8a99e5dbf8a8392a33" dependencies = [ "cc", "libc", diff --git a/client/consensus/Cargo.toml b/client/consensus/Cargo.toml index 05b7fef703..d264b81f5a 100644 --- a/client/consensus/Cargo.toml +++ b/client/consensus/Cargo.toml @@ -9,21 +9,21 @@ repository = "https://github.com/paritytech/frontier/" [dependencies] codec = { package = "parity-scale-codec", version = "2.0.0", features = ["derive"] } -sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-block-builder = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-inherents = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-block-builder = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-inherents = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-consensus = { version = "2.0.0-dev", path = "../../primitives/consensus" } fp-rpc = { version = "3.0.0-dev", path = "../../primitives/rpc" } fc-db = { version = "2.0.0-dev", path = "../db" } -sp-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate" } -sc-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate" } +sp-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } log = "0.4.8" futures = { version = "0.3.17", features = ["compat"] } -sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } +sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } derive_more = "0.99.2" -prometheus-endpoint = { version = "0.9.0", package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate" } +prometheus-endpoint = { version = "0.10.0-dev", package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } async-trait = "0.1" \ No newline at end of file diff --git a/client/consensus/src/lib.rs b/client/consensus/src/lib.rs index d611490d9d..7fef110208 100644 --- a/client/consensus/src/lib.rs +++ b/client/consensus/src/lib.rs @@ -23,7 +23,7 @@ use sc_client_api::{self, backend::AuxStore, BlockOf}; use sc_consensus::{BlockCheckParams, BlockImport, BlockImportParams, ImportResult}; use sp_api::ProvideRuntimeApi; use sp_block_builder::BlockBuilder as BlockBuilderApi; -use sp_blockchain::{well_known_cache_keys::Id as CacheKeyId, HeaderBackend, ProvideCache}; +use sp_blockchain::{well_known_cache_keys::Id as CacheKeyId, HeaderBackend}; use sp_consensus::Error as ConsensusError; use sp_runtime::traits::{Block as BlockT, Header as HeaderT}; use std::{collections::HashMap, marker::PhantomData, sync::Arc}; @@ -82,7 +82,7 @@ where B: BlockT, I: BlockImport> + Send + Sync, I::Error: Into, - C: ProvideRuntimeApi + Send + Sync + HeaderBackend + AuxStore + ProvideCache + BlockOf, + C: ProvideRuntimeApi + Send + Sync + HeaderBackend + AuxStore + BlockOf, C::Api: EthereumRuntimeRPCApi, C::Api: BlockBuilderApi, { @@ -102,7 +102,7 @@ where B: BlockT, I: BlockImport> + Send + Sync, I::Error: Into, - C: ProvideRuntimeApi + Send + Sync + HeaderBackend + AuxStore + ProvideCache + BlockOf, + C: ProvideRuntimeApi + Send + Sync + HeaderBackend + AuxStore + BlockOf, C::Api: EthereumRuntimeRPCApi, C::Api: BlockBuilderApi, { diff --git a/client/db/Cargo.toml b/client/db/Cargo.toml index c6c8dfd98f..d30e820831 100644 --- a/client/db/Cargo.toml +++ b/client/db/Cargo.toml @@ -8,9 +8,9 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" repository = "https://github.com/paritytech/frontier/" [dependencies] -sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-database = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-database = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } pallet-ethereum = { version = "4.0.0-dev", path = "../../frame/ethereum" } fp-storage = { version = "2.0.0-dev", path = "../../primitives/storage"} kvdb = "0.10.0" diff --git a/client/mapping-sync/Cargo.toml b/client/mapping-sync/Cargo.toml index c3825cd579..dc683e440b 100644 --- a/client/mapping-sync/Cargo.toml +++ b/client/mapping-sync/Cargo.toml @@ -7,10 +7,10 @@ description = "Mapping sync logic for Frontier." license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-consensus = { version = "2.0.0-dev", path = "../../primitives/consensus" } fc-consensus = { version = "2.0.0-dev", path = "../consensus" } fc-db = { version = "2.0.0-dev", path = "../db" } diff --git a/client/rpc-core/Cargo.toml b/client/rpc-core/Cargo.toml index b076527cf5..250af0d81b 100644 --- a/client/rpc-core/Cargo.toml +++ b/client/rpc-core/Cargo.toml @@ -7,10 +7,7 @@ description = "RPC traits of Ethereum." license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -jsonrpc-core = "18.0" -jsonrpc-core-client = "18.0" -jsonrpc-derive = "18.0" -jsonrpc-pubsub = "18.0" +jsonrpsee = { version = "0.6.0", features = ["server", "macros"] } rustc-hex = "2.1.0" ethereum = { version = "0.10.0", features = ["with-codec"] } sha3 = "0.8" diff --git a/client/rpc-core/src/eth.rs b/client/rpc-core/src/eth.rs index 5331cfeb4a..73cb6fe6a5 100644 --- a/client/rpc-core/src/eth.rs +++ b/client/rpc-core/src/eth.rs @@ -19,188 +19,204 @@ //! Eth rpc interface. use ethereum_types::{H160, H256, H64, U256, U64}; -use jsonrpc_core::{BoxFuture, Result}; -use jsonrpc_derive::rpc; +use jsonrpsee::{proc_macros::rpc, types::RpcResult}; use crate::types::{ BlockNumber, Bytes, CallRequest, Filter, FilterChanges, Index, Log, Receipt, RichBlock, SyncStatus, Transaction, TransactionRequest, Work, }; -pub use rpc_impl_EthApi::gen_server::EthApi as EthApiServer; -pub use rpc_impl_EthFilterApi::gen_server::EthFilterApi as EthFilterApiServer; /// Eth rpc interface. #[rpc(server)] pub trait EthApi { /// Returns protocol version encoded as a string (quotes are necessary). - #[rpc(name = "eth_protocolVersion")] - fn protocol_version(&self) -> Result; + #[method(name = "eth_protocolVersion")] + fn protocol_version(&self) -> RpcResult; /// Returns an object with data about the sync status or false. (wtf?) - #[rpc(name = "eth_syncing")] - fn syncing(&self) -> Result; + #[method(name = "eth_syncing")] + fn syncing(&self) -> RpcResult; /// Returns the number of hashes per second that the node is mining with. - #[rpc(name = "eth_hashrate")] - fn hashrate(&self) -> Result; + #[method(name = "eth_hashrate")] + fn hashrate(&self) -> RpcResult; /// Returns block author. - #[rpc(name = "eth_coinbase")] - fn author(&self) -> Result; + #[method(name = "eth_coinbase")] + fn author(&self) -> RpcResult; /// Returns true if client is actively mining new blocks. - #[rpc(name = "eth_mining")] - fn is_mining(&self) -> Result; + #[method(name = "eth_mining")] + fn is_mining(&self) -> RpcResult; /// Returns the chain ID used for transaction signing at the /// current best block. None is returned if not /// available. - #[rpc(name = "eth_chainId")] - fn chain_id(&self) -> Result>; + #[method(name = "eth_chainId")] + fn chain_id(&self) -> RpcResult>; /// Returns current gas_price. - #[rpc(name = "eth_gasPrice")] - fn gas_price(&self) -> Result; + #[method(name = "eth_gasPrice")] + fn gas_price(&self) -> RpcResult; /// Returns accounts list. - #[rpc(name = "eth_accounts")] - fn accounts(&self) -> Result>; + #[method(name = "eth_accounts")] + fn accounts(&self) -> RpcResult>; /// Returns highest block number. - #[rpc(name = "eth_blockNumber")] - fn block_number(&self) -> Result; + #[method(name = "eth_blockNumber")] + fn block_number(&self) -> RpcResult; /// Returns balance of the given account. - #[rpc(name = "eth_getBalance")] - fn balance(&self, _: H160, _: Option) -> Result; + #[method(name = "eth_getBalance")] + fn balance(&self, address: H160, block_number: Option) -> RpcResult; /// Returns content of the storage at given address. - #[rpc(name = "eth_getStorageAt")] - fn storage_at(&self, _: H160, _: U256, _: Option) -> Result; + #[method(name = "eth_getStorageAt")] + fn storage_at( + &self, + address: H160, + key: U256, + block_number: Option, + ) -> RpcResult; /// Returns block with given hash. - #[rpc(name = "eth_getBlockByHash")] - fn block_by_hash(&self, _: H256, _: bool) -> Result>; + #[method(name = "eth_getBlockByHash")] + fn block_by_hash(&self, hash: H256, b: bool) -> RpcResult>; /// Returns block with given number. - #[rpc(name = "eth_getBlockByNumber")] - fn block_by_number(&self, _: BlockNumber, _: bool) -> Result>; + #[method(name = "eth_getBlockByNumber")] + fn block_by_number(&self, block_number: BlockNumber, b: bool) -> RpcResult>; /// Returns the number of transactions sent from given address at given time (block number). - #[rpc(name = "eth_getTransactionCount")] - fn transaction_count(&self, _: H160, _: Option) -> Result; + #[method(name = "eth_getTransactionCount")] + fn transaction_count( + &self, + address: H160, + block_number: Option, + ) -> RpcResult; /// Returns the number of transactions in a block with given hash. - #[rpc(name = "eth_getBlockTransactionCountByHash")] - fn block_transaction_count_by_hash(&self, _: H256) -> Result>; + #[method(name = "eth_getBlockTransactionCountByHash")] + fn block_transaction_count_by_hash(&self, hash: H256) -> RpcResult>; /// Returns the number of transactions in a block with given block number. - #[rpc(name = "eth_getBlockTransactionCountByNumber")] - fn block_transaction_count_by_number(&self, _: BlockNumber) -> Result>; + #[method(name = "eth_getBlockTransactionCountByNumber")] + fn block_transaction_count_by_number( + &self, + block_number: BlockNumber, + ) -> RpcResult>; /// Returns the number of uncles in a block with given hash. - #[rpc(name = "eth_getUncleCountByBlockHash")] - fn block_uncles_count_by_hash(&self, _: H256) -> Result; + #[method(name = "eth_getUncleCountByBlockHash")] + fn block_uncles_count_by_hash(&self, hash: H256) -> RpcResult; /// Returns the number of uncles in a block with given block number. - #[rpc(name = "eth_getUncleCountByBlockNumber")] - fn block_uncles_count_by_number(&self, _: BlockNumber) -> Result; + #[method(name = "eth_getUncleCountByBlockNumber")] + fn block_uncles_count_by_number(&self, block_number: BlockNumber) -> RpcResult; /// Returns the code at given address at given time (block number). - #[rpc(name = "eth_getCode")] - fn code_at(&self, _: H160, _: Option) -> Result; + #[method(name = "eth_getCode")] + fn code_at(&self, address: H160, block_number: Option) -> RpcResult; /// Sends transaction; will block waiting for signer to return the /// transaction hash. - #[rpc(name = "eth_sendTransaction")] - fn send_transaction(&self, _: TransactionRequest) -> BoxFuture>; + #[method(name = "eth_sendTransaction")] + async fn send_transaction(&self, tx: TransactionRequest) -> RpcResult; /// Sends signed transaction, returning its hash. - #[rpc(name = "eth_sendRawTransaction")] - fn send_raw_transaction(&self, _: Bytes) -> BoxFuture>; + #[method(name = "eth_sendRawTransaction")] + async fn send_raw_transaction(&self, bytes: Bytes) -> RpcResult; /// Call contract, returning the output data. - #[rpc(name = "eth_call")] - fn call(&self, _: CallRequest, _: Option) -> Result; + #[method(name = "eth_call")] + fn call(&self, req: CallRequest, block_number: Option) -> RpcResult; /// Estimate gas needed for execution of given contract. - #[rpc(name = "eth_estimateGas")] - fn estimate_gas(&self, _: CallRequest, _: Option) -> Result; + #[method(name = "eth_estimateGas")] + fn estimate_gas(&self, req: CallRequest, block_number: Option) -> RpcResult; /// Get transaction by its hash. - #[rpc(name = "eth_getTransactionByHash")] - fn transaction_by_hash(&self, _: H256) -> Result>; + #[method(name = "eth_getTransactionByHash")] + fn transaction_by_hash(&self, hash: H256) -> RpcResult>; /// Returns transaction at given block hash and index. - #[rpc(name = "eth_getTransactionByBlockHashAndIndex")] - fn transaction_by_block_hash_and_index(&self, _: H256, _: Index) - -> Result>; + #[method(name = "eth_getTransactionByBlockHashAndIndex")] + fn transaction_by_block_hash_and_index( + &self, + hash: H256, + index: Index, + ) -> RpcResult>; /// Returns transaction by given block number and index. - #[rpc(name = "eth_getTransactionByBlockNumberAndIndex")] + #[method(name = "eth_getTransactionByBlockNumberAndIndex")] fn transaction_by_block_number_and_index( &self, - _: BlockNumber, - _: Index, - ) -> Result>; + block_number: BlockNumber, + index: Index, + ) -> RpcResult>; /// Returns transaction receipt by transaction hash. - #[rpc(name = "eth_getTransactionReceipt")] - fn transaction_receipt(&self, _: H256) -> Result>; + #[method(name = "eth_getTransactionReceipt")] + fn transaction_receipt(&self, hash: H256) -> RpcResult>; /// Returns an uncles at given block and index. - #[rpc(name = "eth_getUncleByBlockHashAndIndex")] - fn uncle_by_block_hash_and_index(&self, _: H256, _: Index) -> Result>; + #[method(name = "eth_getUncleByBlockHashAndIndex")] + fn uncle_by_block_hash_and_index( + &self, + hash: H256, + index: Index, + ) -> RpcResult>; /// Returns an uncles at given block and index. - #[rpc(name = "eth_getUncleByBlockNumberAndIndex")] + #[method(name = "eth_getUncleByBlockNumberAndIndex")] fn uncle_by_block_number_and_index( &self, - _: BlockNumber, - _: Index, - ) -> Result>; + block_number: BlockNumber, + index: Index, + ) -> RpcResult>; /// Returns logs matching given filter object. - #[rpc(name = "eth_getLogs")] - fn logs(&self, _: Filter) -> Result>; + #[method(name = "eth_getLogs")] + fn logs(&self, filter: Filter) -> RpcResult>; /// Returns the hash of the current block, the seedHash, and the boundary condition to be met. - #[rpc(name = "eth_getWork")] - fn work(&self) -> Result; + #[method(name = "eth_getWork")] + fn work(&self) -> RpcResult; /// Used for submitting a proof-of-work solution. - #[rpc(name = "eth_submitWork")] - fn submit_work(&self, _: H64, _: H256, _: H256) -> Result; + #[method(name = "eth_submitWork")] + fn submit_work(&self, h64: H64, hash: H256, hash2: H256) -> RpcResult; /// Used for submitting mining hashrate. - #[rpc(name = "eth_submitHashrate")] - fn submit_hashrate(&self, _: U256, _: H256) -> Result; + #[method(name = "eth_submitHashrate")] + fn submit_hashrate(&self, u256: U256, hash: H256) -> RpcResult; } /// Eth filters rpc api (polling). #[rpc(server)] pub trait EthFilterApi { /// Returns id of new filter. - #[rpc(name = "eth_newFilter")] - fn new_filter(&self, _: Filter) -> Result; + #[method(name = "eth_newFilter")] + fn new_filter(&self, filter: Filter) -> RpcResult; /// Returns id of new block filter. - #[rpc(name = "eth_newBlockFilter")] - fn new_block_filter(&self) -> Result; + #[method(name = "eth_newBlockFilter")] + fn new_block_filter(&self) -> RpcResult; /// Returns id of new block filter. - #[rpc(name = "eth_newPendingTransactionFilter")] - fn new_pending_transaction_filter(&self) -> Result; + #[method(name = "eth_newPendingTransactionFilter")] + fn new_pending_transaction_filter(&self) -> RpcResult; /// Returns filter changes since last poll. - #[rpc(name = "eth_getFilterChanges")] - fn filter_changes(&self, _: Index) -> Result; + #[method(name = "eth_getFilterChanges")] + fn filter_changes(&self, index: Index) -> RpcResult; /// Returns all logs matching given filter (in a range 'from' - 'to'). - #[rpc(name = "eth_getFilterLogs")] - fn filter_logs(&self, _: Index) -> Result>; + #[method(name = "eth_getFilterLogs")] + fn filter_logs(&self, index: Index) -> RpcResult>; /// Uninstalls filter. - #[rpc(name = "eth_uninstallFilter")] - fn uninstall_filter(&self, _: Index) -> Result; + #[method(name = "eth_uninstallFilter")] + fn uninstall_filter(&self, index: Index) -> RpcResult; } diff --git a/client/rpc-core/src/eth_pubsub.rs b/client/rpc-core/src/eth_pubsub.rs index 9b729ea0fa..35f5c9808e 100644 --- a/client/rpc-core/src/eth_pubsub.rs +++ b/client/rpc-core/src/eth_pubsub.rs @@ -18,35 +18,18 @@ //! Eth PUB-SUB rpc interface. -use jsonrpc_core::Result; -use jsonrpc_derive::rpc; -use jsonrpc_pubsub::{typed, SubscriptionId}; +use jsonrpsee::{proc_macros::rpc, types::RpcResult}; use crate::types::pubsub; -pub use rpc_impl_EthPubSubApi::gen_server::EthPubSubApi as EthPubSubApiServer; - /// Eth PUB-SUB rpc interface. #[rpc(server)] pub trait EthPubSubApi { - /// RPC Metadata - type Metadata; - /// Subscribe to Eth subscription. - #[pubsub(subscription = "eth_subscription", subscribe, name = "eth_subscribe")] - fn subscribe( - &self, - _: Self::Metadata, - _: typed::Subscriber, - _: pubsub::Kind, - _: Option, - ); - - /// Unsubscribe from existing Eth subscription. - #[pubsub( - subscription = "eth_subscription", - unsubscribe, - name = "eth_unsubscribe" + #[subscription( + name = "eth_subscribe" => "eth_subscription", + unsubscribe_aliases = ["eth_unsubscribe"], + item = pubsub::Result )] - fn unsubscribe(&self, _: Option, _: SubscriptionId) -> Result; + fn subscribe(&self, kind: pubsub::Kind, params: Option) -> RpcResult<()>; } diff --git a/client/rpc-core/src/lib.rs b/client/rpc-core/src/lib.rs index dcf0e174ef..698dcb4f55 100644 --- a/client/rpc-core/src/lib.rs +++ b/client/rpc-core/src/lib.rs @@ -23,7 +23,7 @@ mod eth_pubsub; mod net; mod web3; -pub use eth::{EthApi, EthApiServer, EthFilterApi, EthFilterApiServer}; -pub use eth_pubsub::{EthPubSubApi, EthPubSubApiServer}; -pub use net::{NetApi, NetApiServer}; -pub use web3::{Web3Api, Web3ApiServer}; +pub use eth::{EthApiServer, EthFilterApiServer}; +pub use eth_pubsub::EthPubSubApiServer; +pub use net::NetApiServer; +pub use web3::Web3ApiServer; diff --git a/client/rpc-core/src/net.rs b/client/rpc-core/src/net.rs index 1bc5f03eea..b68a3f44a7 100644 --- a/client/rpc-core/src/net.rs +++ b/client/rpc-core/src/net.rs @@ -18,24 +18,21 @@ //! Net rpc interface. use crate::types::PeerCount; -use jsonrpc_core::Result; -use jsonrpc_derive::rpc; - -pub use rpc_impl_NetApi::gen_server::NetApi as NetApiServer; +use jsonrpsee::{proc_macros::rpc, types::RpcResult}; /// Net rpc interface. #[rpc(server)] pub trait NetApi { /// Returns protocol version. - #[rpc(name = "net_version")] - fn version(&self) -> Result; + #[method(name = "net_version")] + fn version(&self) -> RpcResult; /// Returns number of peers connected to node. - #[rpc(name = "net_peerCount")] - fn peer_count(&self) -> Result; + #[method(name = "net_peerCount")] + fn peer_count(&self) -> RpcResult; /// Returns true if client is actively listening for network connections. /// Otherwise false. - #[rpc(name = "net_listening")] - fn is_listening(&self) -> Result; + #[method(name = "net_listening")] + fn is_listening(&self) -> RpcResult; } diff --git a/client/rpc-core/src/web3.rs b/client/rpc-core/src/web3.rs index c957d1a839..ef7a86805e 100644 --- a/client/rpc-core/src/web3.rs +++ b/client/rpc-core/src/web3.rs @@ -18,21 +18,18 @@ //! Web3 rpc interface. use ethereum_types::H256; -use jsonrpc_core::Result; -use jsonrpc_derive::rpc; +use jsonrpsee::{proc_macros::rpc, types::RpcResult}; use crate::types::Bytes; -pub use rpc_impl_Web3Api::gen_server::Web3Api as Web3ApiServer; - /// Web3 rpc interface. -#[rpc(server)] +#[rpc(server, namespace = "web3")] pub trait Web3Api { /// Returns current client version. - #[rpc(name = "web3_clientVersion")] - fn client_version(&self) -> Result; + #[method(name = "clientVersion")] + fn client_version(&self) -> RpcResult; /// Returns sha3 of the given data - #[rpc(name = "web3_sha3")] - fn sha3(&self, _: Bytes) -> Result; + #[method(name = "sha3")] + fn sha3(&self, input: Bytes) -> RpcResult; } diff --git a/client/rpc/Cargo.toml b/client/rpc/Cargo.toml index be5f91f2b4..00c3ec4a68 100644 --- a/client/rpc/Cargo.toml +++ b/client/rpc/Cargo.toml @@ -7,10 +7,7 @@ description = "Ethereum RPC (web3) compatibility layer for Substrate." license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -jsonrpc-core = "18.0" -jsonrpc-derive = "18.0" -jsonrpc-core-client = "18.0" -jsonrpc-pubsub = "18.0" +jsonrpsee = { version = "0.6.0", features = ["server", "macros"] } log = "0.4.8" ethereum-types = "0.12" evm = "0.33.0" @@ -20,18 +17,19 @@ fc-rpc-core = { version = "1.1.0-dev", path = "../rpc-core" } fp-consensus = { version = "2.0.0-dev", path = "../../primitives/consensus" } fp-rpc = { version = "3.0.0-dev", path = "../../primitives/rpc" } fp-storage = { version = "2.0.0-dev", path = "../../primitives/storage"} -sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sc-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-storage = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sc-transaction-pool-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate" } -sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sc-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } -sc-network = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate" } +sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-storage = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-transaction-pool-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-rpc-api = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-network = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } pallet-evm = { version = "6.0.0-dev", path = "../../frame/evm" } fp-evm = { version = "3.0.0-dev", path = "../../primitives/evm" } pallet-ethereum = { version = "4.0.0-dev", path = "../../frame/ethereum" } diff --git a/client/rpc/src/eth.rs b/client/rpc/src/eth.rs index 9746aa16ef..7d3f624f2a 100644 --- a/client/rpc/src/eth.rs +++ b/client/rpc/src/eth.rs @@ -29,11 +29,12 @@ use fc_rpc_core::{ Receipt, Rich, RichBlock, SyncInfo, SyncStatus, Transaction, TransactionMessage, TransactionRequest, Work, }, - EthApi as EthApiT, EthFilterApi as EthFilterApiT, NetApi as NetApiT, Web3Api as Web3ApiT, + EthApiServer as EthApiT, EthFilterApiServer as EthFilterApiT, NetApiServer as NetApiT, + Web3ApiServer as Web3ApiT, }; use fp_rpc::{ConvertTransaction, EthereumRuntimeRPCApi, TransactionStatus}; use futures::{future::TryFutureExt, StreamExt}; -use jsonrpc_core::{futures::future, BoxFuture, Result}; +use jsonrpsee::types::{async_trait, RpcResult as Result}; use lru::LruCache; use sc_client_api::{ backend::{Backend, StateBackend, StorageProvider}, @@ -490,6 +491,7 @@ fn fee_details( } } +#[async_trait] impl EthApiT for EthApi where C: ProvideRuntimeApi + StorageProvider, @@ -842,18 +844,18 @@ where Ok(Bytes(vec![])) } - fn send_transaction(&self, request: TransactionRequest) -> BoxFuture> { + async fn send_transaction(&self, request: TransactionRequest) -> Result { let from = match request.from { Some(from) => from, None => { let accounts = match self.accounts() { Ok(accounts) => accounts, - Err(e) => return Box::pin(future::err(e)), + Err(e) => return Err(e), }; match accounts.get(0) { Some(account) => account.clone(), - None => return Box::pin(future::err(internal_err("no signer available"))), + None => return Err(internal_err("no signer available")), } } }; @@ -862,14 +864,14 @@ where Some(nonce) => nonce, None => match self.transaction_count(from, None) { Ok(nonce) => nonce, - Err(e) => return Box::pin(future::err(e)), + Err(e) => return Err(e), }, }; let chain_id = match self.chain_id() { Ok(Some(chain_id)) => chain_id.as_u64(), - Ok(None) => return Box::pin(future::err(internal_err("chain id not available"))), - Err(e) => return Box::pin(future::err(e)), + Ok(None) => return Err(internal_err("chain id not available")), + Err(e) => return Err(e), }; let hash = self.client.info().best_hash; @@ -885,9 +887,9 @@ where if let Ok(Some(block)) = block { block.header.gas_limit } else { - return Box::pin(future::err(internal_err(format!( + return Err(internal_err(format!( "block unavailable, cannot query gas limit" - )))); + ))); } } }; @@ -922,7 +924,7 @@ where TransactionMessage::EIP1559(m) } _ => { - return Box::pin(future::err(internal_err("invalid transaction parameters"))); + return Err(internal_err("invalid transaction parameters")); } }; @@ -932,7 +934,7 @@ where if signer.accounts().contains(&from) { match signer.sign(message, &from) { Ok(t) => transaction = Some(t), - Err(e) => return Box::pin(future::err(e)), + Err(e) => return Err(e), } break; } @@ -940,35 +942,32 @@ where let transaction = match transaction { Some(transaction) => transaction, - None => return Box::pin(future::err(internal_err("no signer available"))), + None => return Err(internal_err("no signer available")), }; let transaction_hash = transaction.hash(); - Box::pin( - self.pool - .submit_one( - &BlockId::hash(hash), - TransactionSource::Local, - self.convert_transaction - .convert_transaction(transaction.clone()), - ) - .map_ok(move |_| transaction_hash) - .map_err(|err| { - internal_err(format!("submit transaction to pool failed: {:?}", err)) - }), - ) + self.pool + .submit_one( + &BlockId::hash(hash), + TransactionSource::Local, + self.convert_transaction + .convert_transaction(transaction.clone()), + ) + .map_ok(move |_| transaction_hash) + .map_err(|err| internal_err(format!("submit transaction to pool failed: {:?}", err))) + .await } - fn send_raw_transaction(&self, bytes: Bytes) -> BoxFuture> { + async fn send_raw_transaction(&self, bytes: Bytes) -> Result { let slice = &bytes.0[..]; if slice.len() == 0 { - return Box::pin(future::err(internal_err("transaction data is empty"))); + return Err(internal_err("transaction data is empty")); } let first = slice.get(0).unwrap(); let transaction = if first > &0x7f { // Legacy transaction. Decode and wrap in envelope. match rlp::decode::(slice) { Ok(transaction) => ethereum::TransactionV2::Legacy(transaction), - Err(_) => return Box::pin(future::err(internal_err("decode transaction failed"))), + Err(_) => return Err(internal_err("decode transaction failed")), } } else { // Typed Transaction. @@ -979,25 +978,22 @@ where let extend = rlp::encode(&slice); match rlp::decode::(&extend[..]) { Ok(transaction) => transaction, - Err(_) => return Box::pin(future::err(internal_err("decode transaction failed"))), + Err(_) => return Err(internal_err("decode transaction failed")), } }; let transaction_hash = transaction.hash(); let hash = self.client.info().best_hash; - Box::pin( - self.pool - .submit_one( - &BlockId::hash(hash), - TransactionSource::Local, - self.convert_transaction - .convert_transaction(transaction.clone()), - ) - .map_ok(move |_| transaction_hash) - .map_err(|err| { - internal_err(format!("submit transaction to pool failed: {:?}", err)) - }), - ) + self.pool + .submit_one( + &BlockId::hash(hash), + TransactionSource::Local, + self.convert_transaction + .convert_transaction(transaction.clone()), + ) + .map_ok(move |_| transaction_hash) + .map_err(|err| internal_err(format!("submit transaction to pool failed: {:?}", err))) + .await } fn call(&self, request: CallRequest, _: Option) -> Result { diff --git a/client/rpc/src/eth_pubsub.rs b/client/rpc/src/eth_pubsub.rs index 8ab5c45321..c19840619a 100644 --- a/client/rpc/src/eth_pubsub.rs +++ b/client/rpc/src/eth_pubsub.rs @@ -16,19 +16,16 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -use log::warn; -use rand::{distributions::Alphanumeric, thread_rng, Rng}; -use rustc_hex::ToHex; use sc_client_api::{ backend::{Backend, StateBackend, StorageProvider}, client::BlockchainEvents, }; -use sc_rpc::Metadata; +use sc_rpc::SubscriptionTaskExecutor; use sc_transaction_pool_api::TransactionPool; use sp_api::{BlockId, ProvideRuntimeApi}; use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata}; use sp_runtime::traits::{BlakeTwo256, Block as BlockT, UniqueSaturatedInto}; -use std::{collections::BTreeMap, iter, marker::PhantomData, sync::Arc}; +use std::{collections::BTreeMap, marker::PhantomData, sync::Arc}; use ethereum::BlockV2 as EthereumBlock; use ethereum_types::{H256, U256}; @@ -37,26 +34,23 @@ use fc_rpc_core::{ pubsub::{Kind, Params, PubSubSyncStatus, Result as PubSubResult}, Bytes, FilteredParams, Header, Log, Rich, }, - EthPubSubApi::{self as EthPubSubApiT}, -}; -use jsonrpc_pubsub::{ - manager::{IdProvider, SubscriptionManager}, - typed::Subscriber, - SubscriptionId, + EthPubSubApiServer as EthPubSubApiT, }; +use jsonrpsee::types::Error; use sha3::{Digest, Keccak256}; pub use fc_rpc_core::EthPubSubApiServer; -use futures::{FutureExt as _, SinkExt as _, StreamExt as _}; +use futures::StreamExt as _; use fp_rpc::EthereumRuntimeRPCApi; -use jsonrpc_core::Result as JsonRpcResult; +use jsonrpsee::types::RpcResult; +use jsonrpsee::ws_server::SubscriptionSink; use sc_network::{ExHashT, NetworkService}; use crate::{frontier_backend_client, overrides::OverrideHandle}; -#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] +/*#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] pub struct HexEncodedIdProvider { len: usize, } @@ -78,13 +72,13 @@ impl IdProvider for HexEncodedIdProvider { let out: String = id.as_bytes().to_hex(); format!("0x{}", out) } -} +}*/ pub struct EthPubSubApi { pool: Arc

, client: Arc, network: Arc>, - subscriptions: SubscriptionManager, + subscriptions: SubscriptionTaskExecutor, overrides: Arc>, _marker: PhantomData<(B, BE)>, } @@ -100,7 +94,7 @@ where pool: Arc

, client: Arc, network: Arc>, - subscriptions: SubscriptionManager, + subscriptions: SubscriptionTaskExecutor, overrides: Arc>, ) -> Self { Self { @@ -232,14 +226,12 @@ where BE: Backend + 'static, BE::State: StateBackend, { - type Metadata = Metadata; fn subscribe( &self, - _metadata: Self::Metadata, - subscriber: Subscriber, + sink: SubscriptionSink, kind: Kind, params: Option, - ) { + ) -> RpcResult<()> { let filtered_params = match params { Some(Params::Logs(filter)) => FilteredParams::new(Some(filter)), _ => FilteredParams::default(), @@ -251,164 +243,151 @@ where let overrides = self.overrides.clone(); match kind { Kind::Logs => { - self.subscriptions.add(subscriber, |sink| { - let stream = client - .import_notification_stream() - .filter_map(move |notification| { - if notification.is_new_best { - let id = BlockId::Hash(notification.hash); + let stream = client + .import_notification_stream() + .filter_map(move |notification| { + if notification.is_new_best { + let id = BlockId::Hash(notification.hash); - let schema = frontier_backend_client::onchain_storage_schema::< - B, - C, - BE, - >(client.as_ref(), id); - let handler = overrides - .schemas - .get(&schema) - .unwrap_or(&overrides.fallback); + let schema = frontier_backend_client::onchain_storage_schema::( + client.as_ref(), + id, + ); + let handler = overrides + .schemas + .get(&schema) + .unwrap_or(&overrides.fallback); - let block = handler.current_block(&id); - let receipts = handler.current_receipts(&id); + let block = handler.current_block(&id); + let receipts = handler.current_receipts(&id); - match (receipts, block) { - (Some(receipts), Some(block)) => { - futures::future::ready(Some((block, receipts))) - } - _ => futures::future::ready(None), + match (receipts, block) { + (Some(receipts), Some(block)) => { + futures::future::ready(Some((block, receipts))) } - } else { - futures::future::ready(None) + _ => futures::future::ready(None), } - }) - .flat_map(move |(block, receipts)| { - futures::stream::iter(SubscriptionResult::new().logs( - block, - receipts, - &filtered_params, - )) - }) - .map(|x| { - return Ok::, ()>( - Ok(PubSubResult::Log(Box::new(x))), - ); - }); - stream - .forward( - sink.sink_map_err(|e| warn!("Error sending notifications: {:?}", e)), - ) - .map(|_| ()) - }); + } else { + futures::future::ready(None) + } + }) + .flat_map(move |(block, receipts)| { + futures::stream::iter(SubscriptionResult::new().logs( + block, + receipts, + &filtered_params, + )) + }) + .map(|x| PubSubResult::Log(Box::new(x))); + + subscribe_helper(&self.subscriptions, sink, stream) } Kind::NewHeads => { - self.subscriptions.add(subscriber, |sink| { - let stream = client - .import_notification_stream() - .filter_map(move |notification| { - if notification.is_new_best { - let id = BlockId::Hash(notification.hash); + let stream = client + .import_notification_stream() + .filter_map(move |notification| { + if notification.is_new_best { + let id = BlockId::Hash(notification.hash); - let schema = frontier_backend_client::onchain_storage_schema::< - B, - C, - BE, - >(client.as_ref(), id); - let handler = overrides - .schemas - .get(&schema) - .unwrap_or(&overrides.fallback); + let schema = frontier_backend_client::onchain_storage_schema::( + client.as_ref(), + id, + ); + let handler = overrides + .schemas + .get(&schema) + .unwrap_or(&overrides.fallback); - let block = handler.current_block(&id); - futures::future::ready(block) - } else { - futures::future::ready(None) - } - }) - .map(|block| { - return Ok::<_, ()>(Ok(SubscriptionResult::new().new_heads(block))); - }); - stream - .forward( - sink.sink_map_err(|e| warn!("Error sending notifications: {:?}", e)), - ) - .map(|_| ()) - }); + let block = handler.current_block(&id); + futures::future::ready(block) + } else { + futures::future::ready(None) + } + }) + .map(|block| SubscriptionResult::new().new_heads(block)); + + subscribe_helper(&self.subscriptions, sink, stream) } Kind::NewPendingTransactions => { use sc_transaction_pool_api::InPoolTransaction; - self.subscriptions.add(subscriber, move |sink| { - let stream = pool - .import_notification_stream() - .filter_map(move |txhash| { - if let Some(xt) = pool.ready_transaction(&txhash) { - let best_block: BlockId = BlockId::Hash(client.info().best_hash); - let res = match client - .runtime_api() - .extrinsic_filter(&best_block, vec![xt.data().clone()]) - { - Ok(txs) => { - if txs.len() == 1 { - Some(txs[0].clone()) - } else { - None - } + let stream = pool + .import_notification_stream() + .filter_map(move |txhash| { + if let Some(xt) = pool.ready_transaction(&txhash) { + let best_block: BlockId = BlockId::Hash(client.info().best_hash); + let res = match client + .runtime_api() + .extrinsic_filter(&best_block, vec![xt.data().clone()]) + { + Ok(txs) => { + if txs.len() == 1 { + Some(txs[0].clone()) + } else { + None } - _ => None, - }; - futures::future::ready(res) - } else { - futures::future::ready(None) - } - }) - .map(|transaction| { - return Ok::, ()>( - Ok(PubSubResult::TransactionHash(transaction.hash())), - ); - }); - stream - .forward( - sink.sink_map_err(|e| warn!("Error sending notifications: {:?}", e)), - ) - .map(|_| ()) - }); + } + _ => None, + }; + futures::future::ready(res) + } else { + futures::future::ready(None) + } + }) + .map(|transaction| PubSubResult::TransactionHash(transaction.hash())); + + subscribe_helper(&self.subscriptions, sink, stream) } Kind::Syncing => { - self.subscriptions.add(subscriber, |sink| { - let mut previous_syncing = network.is_major_syncing(); - let stream = client - .import_notification_stream() - .filter_map(move |notification| { - let syncing = network.is_major_syncing(); - if notification.is_new_best && previous_syncing != syncing { - previous_syncing = syncing; - futures::future::ready(Some(syncing)) - } else { - futures::future::ready(None) - } - }) - .map(|syncing| { - return Ok::, ()>( - Ok(PubSubResult::SyncState(PubSubSyncStatus { - syncing: syncing, - })), - ); - }); - stream - .forward( - sink.sink_map_err(|e| warn!("Error sending notifications: {:?}", e)), - ) - .map(|_| ()) - }); + let mut previous_syncing = network.is_major_syncing(); + let stream = client + .import_notification_stream() + .filter_map(move |notification| { + let syncing = network.is_major_syncing(); + if notification.is_new_best && previous_syncing != syncing { + previous_syncing = syncing; + futures::future::ready(Some(syncing)) + } else { + futures::future::ready(None) + } + }) + .map(|syncing| PubSubResult::SyncState(PubSubSyncStatus { syncing: syncing })); + + subscribe_helper(&self.subscriptions, sink, stream) } } } +} - fn unsubscribe( - &self, - _metadata: Option, - subscription_id: SubscriptionId, - ) -> JsonRpcResult { - Ok(self.subscriptions.cancel(subscription_id)) - } +fn subscribe_helper( + executor: &SubscriptionTaskExecutor, + mut sink: SubscriptionSink, + stream: S, +) -> RpcResult<()> +where + S: futures::stream::Stream + Send + 'static, + Item: Send + sp_runtime::Serialize + 'static, +{ + let fut = async move { + stream + .take_while(|item| { + std::future::ready(sink.send(&item).map_or_else( + |e| { + log::debug!( + "Could not send data to subscription: eth_subscription error: {:?}", + e + ); + false + }, + |_| true, + )) + }) + .for_each(|_| std::future::ready(())) + .await; + }; + + use futures::task::Spawn as _; + executor + .spawn_obj(Box::pin(fut).into()) + .map_err(|e| Error::Custom(e.to_string())) } diff --git a/client/rpc/src/lib.rs b/client/rpc/src/lib.rs index 538a892f28..46abd92685 100644 --- a/client/rpc/src/lib.rs +++ b/client/rpc/src/lib.rs @@ -24,7 +24,7 @@ pub use eth::{ EthApi, EthApiServer, EthBlockDataCache, EthFilterApi, EthFilterApiServer, EthTask, NetApi, NetApiServer, Web3Api, Web3ApiServer, }; -pub use eth_pubsub::{EthPubSubApi, EthPubSubApiServer, HexEncodedIdProvider}; +pub use eth_pubsub::{EthPubSubApi, EthPubSubApiServer}; pub use ethereum::TransactionV2 as EthereumTransaction; pub use overrides::{ OverrideHandle, RuntimeApiStorageOverride, SchemaV1Override, SchemaV2Override, StorageOverride, @@ -33,7 +33,7 @@ pub use overrides::{ use ethereum_types::{H160, H256}; use evm::ExitError; pub use fc_rpc_core::types::TransactionMessage; -use jsonrpc_core::{Error, ErrorCode, Value}; +use jsonrpsee::types::{v2::ErrorCode, CallError, Error}; use pallet_evm::ExitReason; use rustc_hex::ToHex; use sha3::{Digest, Keccak256}; @@ -51,7 +51,7 @@ pub mod frontier_backend_client { use sp_storage::StorageKey; use codec::Decode; - use jsonrpc_core::Result as RpcResult; + use jsonrpsee::types::RpcResult; use ethereum_types::H256; use pallet_ethereum::EthereumStorageSchema; @@ -196,29 +196,31 @@ pub mod frontier_backend_client { } pub fn internal_err(message: T) -> Error { - Error { - code: ErrorCode::InternalError, + Error::Call(CallError::Custom { + code: ErrorCode::InternalError.code(), message: message.to_string(), data: None, - } + }) } -pub fn error_on_execution_failure(reason: &ExitReason, data: &[u8]) -> Result<(), Error> { +pub fn error_on_execution_failure(reason: &ExitReason, data: &[u8]) -> Result<(), CallError> { match reason { ExitReason::Succeed(_) => Ok(()), ExitReason::Error(e) => { if *e == ExitError::OutOfGas { // `ServerError(0)` will be useful in estimate gas - return Err(Error { - code: ErrorCode::ServerError(0), + return Err(CallError::Custom { + code: ErrorCode::ServerError(0).code(), message: format!("out of gas"), data: None, }); } - Err(Error { - code: ErrorCode::InternalError, + Err(CallError::Custom { + code: ErrorCode::InternalError.code(), message: format!("evm error: {:?}", e), - data: Some(Value::String("0x".to_string())), + data: Some( + jsonrpsee::types::to_json_raw_value(&"0x").expect("fail to serialize data"), + ), }) } ExitReason::Revert(_) => { @@ -232,16 +234,19 @@ pub fn error_on_execution_failure(reason: &ExitReason, data: &[u8]) -> Result<() message = format!("{} {}", message, reason.to_string()); } } - Err(Error { - code: ErrorCode::InternalError, + Err(CallError::Custom { + code: ErrorCode::InternalError.code(), message, - data: Some(Value::String(data.to_hex())), + data: Some( + jsonrpsee::types::to_json_raw_value::(&data.to_hex()) + .expect("fail to serialize data"), + ), }) } - ExitReason::Fatal(e) => Err(Error { - code: ErrorCode::InternalError, + ExitReason::Fatal(e) => Err(CallError::Custom { + code: ErrorCode::InternalError.code(), message: format!("evm fatal: {:?}", e), - data: Some(Value::String("0x".to_string())), + data: Some(jsonrpsee::types::to_json_raw_value(&"0x").expect("fail to serialize data")), }), } } diff --git a/frame/base-fee/Cargo.toml b/frame/base-fee/Cargo.toml index 31ec561882..15976f08a6 100644 --- a/frame/base-fee/Cargo.toml +++ b/frame/base-fee/Cargo.toml @@ -14,15 +14,15 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] serde = { version = "1.0.101", optional = true } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } -frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } pallet-evm = { path = "../evm", default-features = false } scale-info = { version = "1.0.0", default-features = false, features = ["derive"] } [dev-dependencies] -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } [features] default = ["std"] diff --git a/frame/dynamic-fee/Cargo.toml b/frame/dynamic-fee/Cargo.toml index 570e9bdb6c..84fb5b3bb2 100644 --- a/frame/dynamic-fee/Cargo.toml +++ b/frame/dynamic-fee/Cargo.toml @@ -10,18 +10,18 @@ license = "Apache-2.0" pallet-evm = { path = "../evm", version = "6.0.0-dev", default-features = false } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } serde = { version = "1.0.101", optional = true } -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-inherents = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-inherents = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } async-trait = "0.1" scale-info = { version = "1.0.0", default-features = false, features = ["derive"] } [dev-dependencies] -pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } [features] default = ["std"] diff --git a/frame/ethereum/Cargo.toml b/frame/ethereum/Cargo.toml index 7d52fdb78e..50d1829a6c 100644 --- a/frame/ethereum/Cargo.toml +++ b/frame/ethereum/Cargo.toml @@ -11,14 +11,14 @@ resolver = "2" rustc-hex = { version = "2.1.0", default-features = false } serde = { version = "1.0.101", optional = true } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } -frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } pallet-evm = { version = "6.0.0-dev", default-features = false, path = "../evm" } -sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../primitives/evm" } evm = { version = "0.33.0", features = ["with-codec"], default-features = false } ethereum = { version = "0.10.0", default-features = false, features = ["with-codec"] } @@ -32,7 +32,7 @@ fp-self-contained = { version = "1.0.0-dev", path = "../../primitives/self-conta scale-info = { version = "1.0.0", default-features = false, features = ["derive"] } [dev-dependencies] -sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } libsecp256k1 = { version = "0.5", features = ["static-context", "hmac"] } [features] diff --git a/frame/ethereum/src/lib.rs b/frame/ethereum/src/lib.rs index 44604ef84e..a36768095b 100644 --- a/frame/ethereum/src/lib.rs +++ b/frame/ethereum/src/lib.rs @@ -450,7 +450,7 @@ impl Pallet { BlockHash::::insert(block_number, block.header.hash()); if post_log { - let digest = DigestItem::::Consensus( + let digest = DigestItem::Consensus( FRONTIER_ENGINE_ID, PostLog::Hashes(fp_consensus::Hashes::from_block(block)).encode(), ); diff --git a/frame/ethereum/src/mock.rs b/frame/ethereum/src/mock.rs index 3e69333b15..3bc268815e 100644 --- a/frame/ethereum/src/mock.rs +++ b/frame/ethereum/src/mock.rs @@ -19,7 +19,6 @@ use super::*; use crate::IntermediateStateRoot; -use codec::{WrapperTypeDecode, WrapperTypeEncode}; use ethereum::{TransactionAction, TransactionSignature}; use frame_support::{parameter_types, traits::FindAuthor, ConsensusEngineId, PalletId}; use pallet_evm::{AddressMapping, EnsureAddressTruncated, FeeCalculator}; @@ -28,7 +27,7 @@ use sha3::Digest; use sp_core::{H160, H256, U256}; use sp_runtime::{ testing::Header, - traits::{BlakeTwo256, IdentityLookup, SignedExtension}, + traits::{BlakeTwo256, IdentityLookup}, AccountId32, }; diff --git a/frame/ethereum/src/tests/mod.rs b/frame/ethereum/src/tests/mod.rs index b47c94bc5b..90f6bbbfc6 100644 --- a/frame/ethereum/src/tests/mod.rs +++ b/frame/ethereum/src/tests/mod.rs @@ -1,15 +1,11 @@ use crate::{ - mock::*, CallOrCreateInfo, Error, RawOrigin, Transaction, TransactionAction, H160, H256, U256, -}; -use ethereum::TransactionSignature; -use frame_support::{ - assert_err, assert_noop, assert_ok, - unsigned::{TransactionValidityError, ValidateUnsigned}, + mock::*, CallOrCreateInfo, RawOrigin, Transaction, TransactionAction, H160, H256, U256, }; +use frame_support::{assert_err, assert_ok, unsigned::TransactionValidityError}; use rustc_hex::{FromHex, ToHex}; use sp_runtime::{ traits::Applyable, - transaction_validity::{InvalidTransaction, TransactionSource, ValidTransactionBuilder}, + transaction_validity::{InvalidTransaction, ValidTransactionBuilder}, }; use std::str::FromStr; diff --git a/frame/evm/Cargo.toml b/frame/evm/Cargo.toml index 7eba94503a..e2b142ad66 100644 --- a/frame/evm/Cargo.toml +++ b/frame/evm/Cargo.toml @@ -15,15 +15,15 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] serde = { version = "1.0.101", optional = true, features = ["derive"] } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } -frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-benchmarking = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", default-features = false, optional = true } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-benchmarking = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false, optional = true } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../primitives/evm" } primitive-types = { version = "0.10.0", default-features = false, features = ["rlp", "byteorder"] } rlp = { version = "0.5", default-features = false } diff --git a/frame/evm/precompile/blake2/Cargo.toml b/frame/evm/precompile/blake2/Cargo.toml index 3503e3da8a..8c65186264 100644 --- a/frame/evm/precompile/blake2/Cargo.toml +++ b/frame/evm/precompile/blake2/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/paritytech/frontier/" description = "BLAKE2 precompiles for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } [dev-dependencies] diff --git a/frame/evm/precompile/bn128/Cargo.toml b/frame/evm/precompile/bn128/Cargo.toml index 24b3667c19..7b52c34f89 100644 --- a/frame/evm/precompile/bn128/Cargo.toml +++ b/frame/evm/precompile/bn128/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/paritytech/frontier/" description = "BN128 precompiles for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } bn = { package = "substrate-bn", version = "0.6", default-features = false } diff --git a/frame/evm/precompile/curve25519/Cargo.toml b/frame/evm/precompile/curve25519/Cargo.toml index 007d0cd945..47a875f362 100644 --- a/frame/evm/precompile/curve25519/Cargo.toml +++ b/frame/evm/precompile/curve25519/Cargo.toml @@ -9,9 +9,9 @@ repository = "https://github.com/paritytech/frontier/" description = "Curve25519 elliptic curve precompiles for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } diff --git a/frame/evm/precompile/dispatch/Cargo.toml b/frame/evm/precompile/dispatch/Cargo.toml index 57077ac690..359c95b286 100644 --- a/frame/evm/precompile/dispatch/Cargo.toml +++ b/frame/evm/precompile/dispatch/Cargo.toml @@ -9,9 +9,9 @@ repository = "https://github.com/paritytech/frontier/" description = "DISPATCH precompiles for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } pallet-evm = { version = "6.0.0-dev", default-features = false, path = "../.." } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } diff --git a/frame/evm/precompile/ed25519/Cargo.toml b/frame/evm/precompile/ed25519/Cargo.toml index b02bdb9d3d..77bee032fa 100644 --- a/frame/evm/precompile/ed25519/Cargo.toml +++ b/frame/evm/precompile/ed25519/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/paritytech/frontier/" description = "ED25519 precompiles for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } ed25519-dalek = { version = "1.0.0", features = ["alloc", "u64_backend"], default-features = false } diff --git a/frame/evm/precompile/modexp/Cargo.toml b/frame/evm/precompile/modexp/Cargo.toml index c40b34ff3f..392b1b2f2e 100644 --- a/frame/evm/precompile/modexp/Cargo.toml +++ b/frame/evm/precompile/modexp/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/paritytech/frontier/" description = "MODEXP precompiles for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } num = { version = "0.4", features = ["alloc"], default-features = false } diff --git a/frame/evm/precompile/sha3fips/Cargo.toml b/frame/evm/precompile/sha3fips/Cargo.toml index 6304b45bd6..fde8d9aff8 100644 --- a/frame/evm/precompile/sha3fips/Cargo.toml +++ b/frame/evm/precompile/sha3fips/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/paritytech/frontier/" description = "SHA3 FIPS202 precompile for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } tiny-keccak = { version = "2.0", features = ["fips202"] } diff --git a/frame/evm/precompile/simple/Cargo.toml b/frame/evm/precompile/simple/Cargo.toml index ac87788574..b1bd6acd8e 100644 --- a/frame/evm/precompile/simple/Cargo.toml +++ b/frame/evm/precompile/simple/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/paritytech/frontier/" description = "Simple precompiles for EVM pallet." [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../../../primitives/evm" } ripemd160 = { version = "0.9", default-features = false } diff --git a/primitives/consensus/Cargo.toml b/primitives/consensus/Cargo.toml index 697f9ffb57..6d9ff2038b 100644 --- a/primitives/consensus/Cargo.toml +++ b/primitives/consensus/Cargo.toml @@ -9,9 +9,9 @@ homepage = "https://substrate.io" repository = "https://github.com/paritytech/frontier/" [dependencies] -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } ethereum = { version = "0.10.0", default-features = false, features = ["with-codec"] } rlp = { version = "0.5", default-features = false } diff --git a/primitives/consensus/src/lib.rs b/primitives/consensus/src/lib.rs index eca3128383..a75dc2ebd9 100644 --- a/primitives/consensus/src/lib.rs +++ b/primitives/consensus/src/lib.rs @@ -18,7 +18,6 @@ #![cfg_attr(not(feature = "std"), no_std)] use codec::{Decode, Encode}; -use sha3::{Digest as Sha3Digest, Keccak256}; use sp_core::H256; use sp_runtime::{ generic::{Digest, OpaqueDigestItemId}, @@ -89,7 +88,7 @@ pub enum FindLogError { MultipleLogs, } -pub fn find_pre_log(digest: &Digest) -> Result { +pub fn find_pre_log(digest: &Digest) -> Result { let mut found = None; for log in digest.logs() { @@ -104,7 +103,7 @@ pub fn find_pre_log(digest: &Digest) -> Result found.ok_or(FindLogError::NotFound) } -pub fn find_post_log(digest: &Digest) -> Result { +pub fn find_post_log(digest: &Digest) -> Result { let mut found = None; for log in digest.logs() { @@ -119,7 +118,7 @@ pub fn find_post_log(digest: &Digest) -> Result(digest: &Digest) -> Result { +pub fn find_log(digest: &Digest) -> Result { let mut found = None; for log in digest.logs() { @@ -141,7 +140,7 @@ pub fn find_log(digest: &Digest) -> Result { found.ok_or(FindLogError::NotFound) } -pub fn ensure_log(digest: &Digest) -> Result<(), FindLogError> { +pub fn ensure_log(digest: &Digest) -> Result<(), FindLogError> { let mut found = false; for log in digest.logs() { diff --git a/primitives/evm/Cargo.toml b/primitives/evm/Cargo.toml index 0740543887..c325847b67 100644 --- a/primitives/evm/Cargo.toml +++ b/primitives/evm/Cargo.toml @@ -13,8 +13,8 @@ documentation = "https://docs.rs/sp-evm" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", default-features = false } -sp-std = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", default-features = false } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false } +sp-std = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false } serde = { version = "1.0.101", optional = true, features = ["derive"] } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } evm = { version = "0.33.0", default-features = false, features = ["with-codec"] } diff --git a/primitives/rpc/Cargo.toml b/primitives/rpc/Cargo.toml index 1d783d76e8..8e01667d8a 100644 --- a/primitives/rpc/Cargo.toml +++ b/primitives/rpc/Cargo.toml @@ -7,15 +7,15 @@ description = "Runtime primitives for Ethereum RPC (web3) compatibility layer fo license = "Apache-2.0" [dependencies] -sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-evm = { version = "3.0.0-dev", default-features = false, path = "../../primitives/evm" } ethereum = { version = "0.10.0", default-features = false, features = ["with-codec"] } ethereum-types = { version = "0.12", default-features = false } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } -sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } -sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } scale-info = { version = "1.0.0", default-features = false, features = ["derive"] } [features] diff --git a/primitives/self-contained/Cargo.toml b/primitives/self-contained/Cargo.toml index 4806d31d7d..b5e02e6fea 100644 --- a/primitives/self-contained/Cargo.toml +++ b/primitives/self-contained/Cargo.toml @@ -13,13 +13,13 @@ documentation = "https://docs.rs/fp-ethereum" serde = { version = "1.0.101", optional = true, features = ["derive"] } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } ethereum = { version = "0.10.0", default-features = false, features = ["with-codec"] } -sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", default-features = false } -sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", default-features = false } -sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", default-features = false } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false } +sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false } scale-info = { version = "1.0.0", default-features = false, features = ["derive"] } -parity-util-mem = { version = "0.10", optional = true } +parity-util-mem = { version = "0.10.2", optional = true } sha3 = { version = "0.8", default-features = false } -frame-support = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", default-features = false } +frame-support = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false } [features] default = ["std"] diff --git a/template/node/Cargo.toml b/template/node/Cargo.toml index 08ca8c0386..63de315696 100644 --- a/template/node/Cargo.toml +++ b/template/node/Cargo.toml @@ -16,45 +16,44 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] structopt = "0.3.8" async-trait = "0.1" -jsonrpc-pubsub = "18.0.0" futures = "0.3" log = "0.4.8" -sc-cli = { git = "https://github.com/paritytech/substrate", features = ["wasmtime"] } -sp-core = { git = "https://github.com/paritytech/substrate" } -sc-executor = { git = "https://github.com/paritytech/substrate", features = ["wasmtime"] } -sc-service = { git = "https://github.com/paritytech/substrate", features = ["wasmtime"] } -sc-telemetry = { git = "https://github.com/paritytech/substrate" } -sc-keystore = { git = "https://github.com/paritytech/substrate" } -sc-transaction-pool = { git = "https://github.com/paritytech/substrate" } -sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate" } -sc-consensus-aura = { git = "https://github.com/paritytech/substrate" } -sp-consensus-aura = { git = "https://github.com/paritytech/substrate" } -sp-consensus = { git = "https://github.com/paritytech/substrate" } -sc-consensus = { git = "https://github.com/paritytech/substrate" } -sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate" } -sc-network = { git = "https://github.com/paritytech/substrate" } -sc-finality-grandpa = { git = "https://github.com/paritytech/substrate" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate" } -sc-client-api = { git = "https://github.com/paritytech/substrate" } -sp-runtime = { git = "https://github.com/paritytech/substrate" } -sp-timestamp = { git = "https://github.com/paritytech/substrate" } -sp-inherents = { git = "https://github.com/paritytech/substrate" } +sc-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", features = ["wasmtime"] } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", features = ["wasmtime"] } +sc-service = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", features = ["wasmtime"] } +sc-telemetry = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-consensus = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-timestamp = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } # These dependencies are used for the node template's RPCs -jsonrpc-core = "18.0.0" -sc-rpc = { git = "https://github.com/paritytech/substrate" } -sp-api = { git = "https://github.com/paritytech/substrate" } -sc-rpc-api = { git = "https://github.com/paritytech/substrate" } -sp-blockchain = { git = "https://github.com/paritytech/substrate" } -sp-block-builder = { git = "https://github.com/paritytech/substrate" } -sc-basic-authorship = { git = "https://github.com/paritytech/substrate" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate" } +jsonrpsee = { version = "0.6.0", features = ["server", "macros"] } +sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sc-basic-authorship = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } # These dependencies are used for runtime benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate" } -frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate" } +frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fc-consensus = { path = "../../client/consensus" } fp-consensus = { path = "../../primitives/consensus" } @@ -71,7 +70,7 @@ pallet-dynamic-fee = { path = "../../frame/dynamic-fee" } pallet-base-fee = { path = "../../frame/base-fee" } [build-dependencies] -substrate-build-script-utils = { git = "https://github.com/paritytech/substrate" } +substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } [features] default = ["aura"] diff --git a/template/node/src/chain_spec.rs b/template/node/src/chain_spec.rs index 7436e33bdd..f46cc578c7 100644 --- a/template/node/src/chain_spec.rs +++ b/template/node/src/chain_spec.rs @@ -138,7 +138,6 @@ fn testnet_genesis( system: SystemConfig { // Add Wasm runtime to storage. code: wasm_binary.to_vec(), - changes_trie_config: Default::default(), }, balances: BalancesConfig { // Configure endowed accounts with initial balance of 1 << 60. diff --git a/template/node/src/command.rs b/template/node/src/command.rs index 347066ca80..597b87ffa2 100644 --- a/template/node/src/command.rs +++ b/template/node/src/command.rs @@ -21,7 +21,7 @@ use crate::{ service::{self, frontier_database_dir}, }; use frontier_template_runtime::Block; -use sc_cli::{ChainSpec, Role, RuntimeVersion, SubstrateCli}; +use sc_cli::{ChainSpec, RuntimeVersion, SubstrateCli}; use sc_service::PartialComponents; impl SubstrateCli for Cli { @@ -159,11 +159,7 @@ pub fn run() -> sc_cli::Result<()> { None => { let runner = cli.create_runner(&cli.run.base)?; runner.run_node_until_exit(|config| async move { - match config.role { - Role::Light => service::new_light(config), - _ => service::new_full(config, &cli), - } - .map_err(sc_cli::Error::Service) + service::new_full(config, &cli).map_err(sc_cli::Error::Service) }) } } diff --git a/template/node/src/rpc.rs b/template/node/src/rpc.rs index 482bfde3bd..3010b5a2b1 100644 --- a/template/node/src/rpc.rs +++ b/template/node/src/rpc.rs @@ -8,13 +8,13 @@ use fc_rpc::{ }; use fc_rpc_core::types::FilterPool; use frontier_template_runtime::{opaque::Block, AccountId, Balance, Hash, Index}; -use jsonrpc_pubsub::manager::SubscriptionManager; +use jsonrpsee::RpcModule; use pallet_ethereum::EthereumStorageSchema; use sc_client_api::{ backend::{AuxStore, Backend, StateBackend, StorageProvider}, client::BlockchainEvents, }; -use sc_consensus_manual_seal::rpc::{ManualSeal, ManualSealApi}; +use sc_consensus_manual_seal::rpc::{ManualSeal, ManualSealApiServer}; use sc_network::NetworkService; use sc_rpc::SubscriptionTaskExecutor; use sc_rpc_api::DenyUnsafe; @@ -26,18 +26,6 @@ use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata}; use sp_runtime::traits::BlakeTwo256; use std::collections::BTreeMap; -/// Light client extra dependencies. -pub struct LightDeps { - /// The client instance to use. - pub client: Arc, - /// Transaction pool instance. - pub pool: Arc

, - /// Remote access to the blockchain (async). - pub remote_blockchain: Arc>, - /// Fetcher instance. - pub fetcher: Arc, -} - /// Full client dependencies. pub struct FullDeps { /// The client instance to use. @@ -69,7 +57,7 @@ pub struct FullDeps { pub fn create_full( deps: FullDeps, subscription_task_executor: SubscriptionTaskExecutor, -) -> jsonrpc_core::IoHandler +) -> Result, Box> where BE: Backend + 'static, BE::State: StateBackend, @@ -86,13 +74,12 @@ where { use fc_rpc::{ EthApi, EthApiServer, EthDevSigner, EthFilterApi, EthFilterApiServer, EthPubSubApi, - EthPubSubApiServer, EthSigner, HexEncodedIdProvider, NetApi, NetApiServer, Web3Api, - Web3ApiServer, + EthPubSubApiServer, EthSigner, NetApi, NetApiServer, Web3Api, Web3ApiServer, }; - use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi}; - use substrate_frame_rpc_system::{FullSystem, SystemApi}; + use pallet_transaction_payment_rpc::{TransactionPaymentApiServer, TransactionPaymentRpc}; + use substrate_frame_rpc_system::{SystemApiServer, SystemRpc}; - let mut io = jsonrpc_core::IoHandler::default(); + let mut io = RpcModule::new(()); let FullDeps { client, pool, @@ -107,14 +94,8 @@ where enable_dev_signer, } = deps; - io.extend_with(SystemApi::to_delegate(FullSystem::new( - client.clone(), - pool.clone(), - deny_unsafe, - ))); - io.extend_with(TransactionPaymentApi::to_delegate(TransactionPayment::new( - client.clone(), - ))); + io.merge(SystemRpc::new(client.clone(), pool.clone(), deny_unsafe).into_rpc())?; + io.merge(TransactionPaymentRpc::new(client.clone()).into_rpc())?; let mut signers = Vec::new(); if enable_dev_signer { @@ -139,87 +120,71 @@ where let block_data_cache = Arc::new(EthBlockDataCache::new(50, 50)); - io.extend_with(EthApiServer::to_delegate(EthApi::new( - client.clone(), - pool.clone(), - graph, - frontier_template_runtime::TransactionConverter, - network.clone(), - signers, - overrides.clone(), - backend.clone(), - is_authority, - max_past_logs, - block_data_cache.clone(), - ))); - - if let Some(filter_pool) = filter_pool { - io.extend_with(EthFilterApiServer::to_delegate(EthFilterApi::new( + io.merge( + EthApi::new( client.clone(), - backend, - filter_pool.clone(), - 500 as usize, // max stored filters + pool.clone(), + graph, + frontier_template_runtime::TransactionConverter, + network.clone(), + signers, overrides.clone(), + backend.clone(), + is_authority, max_past_logs, block_data_cache.clone(), - ))); + ) + .into_rpc(), + )?; + + if let Some(filter_pool) = filter_pool { + io.merge( + EthFilterApi::new( + client.clone(), + backend, + filter_pool.clone(), + 500 as usize, // max stored filters + overrides.clone(), + max_past_logs, + block_data_cache.clone(), + ) + .into_rpc(), + )?; } - io.extend_with(NetApiServer::to_delegate(NetApi::new( - client.clone(), - network.clone(), - // Whether to format the `peer_count` response as Hex (default) or not. - true, - ))); - - io.extend_with(Web3ApiServer::to_delegate(Web3Api::new(client.clone()))); - - io.extend_with(EthPubSubApiServer::to_delegate(EthPubSubApi::new( - pool.clone(), - client.clone(), - network.clone(), - SubscriptionManager::::with_id_provider( - HexEncodedIdProvider::default(), - Arc::new(subscription_task_executor), - ), - overrides, - ))); + io.merge( + NetApi::new( + client.clone(), + network.clone(), + // Whether to format the `peer_count` response as Hex (default) or not. + true, + ) + .into_rpc(), + )?; + + io.merge(Web3Api::new(client.clone()).into_rpc())?; + + io.merge( + EthPubSubApi::new( + pool.clone(), + client.clone(), + network.clone(), + subscription_task_executor, + overrides, + ) + .into_rpc(), + )?; match command_sink { Some(command_sink) => { - io.extend_with( + io.merge( // We provide the rpc handler with the sending end of the channel to allow the rpc // send EngineCommands to the background block authorship task. - ManualSealApi::to_delegate(ManualSeal::new(command_sink)), - ); + ManualSeal::new(command_sink).into_rpc(), + )?; } _ => {} } - io -} - -/// Instantiate all Light RPC extensions. -pub fn create_light(deps: LightDeps) -> jsonrpc_core::IoHandler -where - C: sp_blockchain::HeaderBackend, - C: Send + Sync + 'static, - F: sc_client_api::light::Fetcher + 'static, - P: TransactionPool + 'static, - M: jsonrpc_core::Metadata + Default, -{ - use substrate_frame_rpc_system::{LightSystem, SystemApi}; - - let LightDeps { - client, - pool, - remote_blockchain, - fetcher, - } = deps; - let mut io = jsonrpc_core::IoHandler::default(); - io.extend_with(SystemApi::::to_delegate( - LightSystem::new(client, remote_blockchain, fetcher, pool), - )); - - io + Ok(io) } diff --git a/template/node/src/service.rs b/template/node/src/service.rs index 6face08b64..023fa8d385 100644 --- a/template/node/src/service.rs +++ b/template/node/src/service.rs @@ -11,7 +11,7 @@ use fc_rpc_core::types::FilterPool; use frontier_template_runtime::{self, opaque::Block, RuntimeApi, SLOT_DURATION}; use futures::StreamExt; use sc_cli::SubstrateCli; -use sc_client_api::{BlockchainEvents, ExecutorProvider, RemoteBackend}; +use sc_client_api::{BlockchainEvents, ExecutorProvider}; use sc_consensus_aura::{ImportQueueParams, SlotProportion, StartAuraParams}; #[cfg(feature = "manual-seal")] use sc_consensus_manual_seal::{self as manual_seal}; @@ -172,7 +172,9 @@ pub fn new_partial( let client = Arc::new(client); let telemetry = telemetry.map(|(worker, telemetry)| { - task_manager.spawn_handle().spawn("telemetry", worker.run()); + task_manager + .spawn_handle() + .spawn("telemetry", None, worker.run()); telemetry }); @@ -327,6 +329,7 @@ pub fn new_full(mut config: Configuration, cli: &Cli) -> Result Result Result Result Result Result Result Result { let authorship_future = @@ -506,9 +513,11 @@ pub fn new_full(mut config: Configuration, cli: &Cli) -> Result Result Result Result Result { - let telemetry = config - .telemetry_endpoints - .clone() - .filter(|x| !x.is_empty()) - .map(|endpoints| -> Result<_, sc_telemetry::Error> { - let worker = TelemetryWorker::new(16)?; - let telemetry = worker.handle().new_telemetry(endpoints); - Ok((worker, telemetry)) - }) - .transpose()?; - - let executor = NativeElseWasmExecutor::::new( - config.wasm_method, - config.default_heap_pages, - config.max_runtime_instances, - ); - - let (client, backend, keystore_container, mut task_manager, on_demand) = - sc_service::new_light_parts::( - &config, - telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()), - executor, - )?; - - let mut telemetry = telemetry.map(|(worker, telemetry)| { - task_manager.spawn_handle().spawn("telemetry", worker.run()); - telemetry - }); - - config - .network - .extra_sets - .push(sc_finality_grandpa::grandpa_peers_set_config()); - - let select_chain = sc_consensus::LongestChain::new(backend.clone()); - - let transaction_pool = Arc::new(sc_transaction_pool::BasicPool::new_light( - config.transaction_pool.clone(), - config.prometheus_registry(), - task_manager.spawn_essential_handle(), - client.clone(), - on_demand.clone(), - )); - - let (grandpa_block_import, grandpa_link) = sc_finality_grandpa::block_import( - client.clone(), - &(client.clone() as Arc<_>), - select_chain.clone(), - telemetry.as_ref().map(|x| x.handle()), - )?; - - let slot_duration = sc_consensus_aura::slot_duration(&*client)?.slot_duration(); - - let import_queue = - sc_consensus_aura::import_queue::(ImportQueueParams { - block_import: grandpa_block_import.clone(), - justification_import: Some(Box::new(grandpa_block_import.clone())), - client: client.clone(), - create_inherent_data_providers: move |_, ()| async move { - let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); - - let slot = - sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_duration( - *timestamp, - slot_duration, - ); - - Ok((timestamp, slot)) - }, - spawner: &task_manager.spawn_essential_handle(), - can_author_with: sp_consensus::NeverCanAuthor, - registry: config.prometheus_registry(), - check_for_equivocation: Default::default(), - telemetry: telemetry.as_ref().map(|x| x.handle()), - })?; - - let warp_sync = Arc::new(sc_finality_grandpa::warp_proof::NetworkProvider::new( - backend.clone(), - grandpa_link.shared_authority_set().clone(), - )); - - let (network, system_rpc_tx, network_starter) = - sc_service::build_network(sc_service::BuildNetworkParams { - config: &config, - client: client.clone(), - transaction_pool: transaction_pool.clone(), - spawn_handle: task_manager.spawn_handle(), - import_queue, - on_demand: Some(on_demand.clone()), - block_announce_validator_builder: None, - warp_sync: Some(warp_sync), - })?; - - if config.offchain_worker.enabled { - sc_service::build_offchain_workers( - &config, - task_manager.spawn_handle(), - client.clone(), - network.clone(), - ); - } - - let enable_grandpa = !config.disable_grandpa; - if enable_grandpa { - let name = config.network.node_name.clone(); - - let config = sc_finality_grandpa::Config { - gossip_duration: std::time::Duration::from_millis(333), - justification_period: 512, - name: Some(name), - observer_enabled: false, - keystore: None, - local_role: config.role.clone(), - telemetry: telemetry.as_ref().map(|x| x.handle()), - }; - - task_manager.spawn_handle().spawn_blocking( - "grandpa-observer", - sc_finality_grandpa::run_grandpa_observer(config, grandpa_link, network.clone())?, - ); - } - - sc_service::spawn_tasks(sc_service::SpawnTasksParams { - remote_blockchain: Some(backend.remote_blockchain()), - transaction_pool, - task_manager: &mut task_manager, - on_demand: Some(on_demand), - rpc_extensions_builder: Box::new(|_, _| Ok(())), - config, - client, - keystore: keystore_container.sync_keystore(), - backend, - network, - system_rpc_tx, - telemetry: telemetry.as_mut(), - })?; - - network_starter.start_network(); - Ok(task_manager) -} - -#[cfg(feature = "manual-seal")] -pub fn new_light(config: Configuration) -> Result { - return Err(ServiceError::Other( - "Manual seal does not support light client".to_string(), - )); -} diff --git a/template/runtime/Cargo.toml b/template/runtime/Cargo.toml index 342e8c45d9..c378d42675 100644 --- a/template/runtime/Cargo.toml +++ b/template/runtime/Cargo.toml @@ -15,10 +15,10 @@ targets = ["x86_64-unknown-linux-gnu"] codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.101", optional = true, features = ["derive"] } -frame-executive = { default-features = false, git = "https://github.com/paritytech/substrate" } -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate" } -frame-system = { default-features = false, package = "frame-system", git = "https://github.com/paritytech/substrate" } -frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate" } +frame-executive = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-system = { default-features = false, package = "frame-system", git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } pallet-ethereum = { default-features = false, path = "../../frame/ethereum" } pallet-evm = { default-features = false, path = "../../frame/evm" } @@ -26,28 +26,28 @@ pallet-dynamic-fee = { default-features = false, path = "../../frame/dynamic-fee pallet-evm-precompile-simple = { default-features = false, path = "../../frame/evm/precompile/simple" } pallet-evm-precompile-sha3fips = { default-features = false, path = "../../frame/evm/precompile/sha3fips" } pallet-evm-precompile-modexp = { default-features = false, path = "../../frame/evm/precompile/modexp" } -pallet-aura = { default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate" } -pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate" } +pallet-aura = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } pallet-base-fee = { default-features = false, path = "../../frame/base-fee" } -sp-api = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-block-builder = { default-features = false, git = "https://github.com/paritytech/substrate"} -sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-inherents = { default-features = false, git = "https://github.com/paritytech/substrate"} -sp-io = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-offchain = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-session = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-transaction-pool = { default-features = false, git = "https://github.com/paritytech/substrate" } -sp-version = { default-features = false, git = "https://github.com/paritytech/substrate" } +sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-block-builder = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13"} +sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-inherents = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13"} +sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-offchain = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-session = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-transaction-pool = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } +sp-version = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } fp-rpc = { default-features = false, path = "../../primitives/rpc" } fp-self-contained = { default-features = false, path = "../../primitives/self-contained" } @@ -55,11 +55,11 @@ fp-self-contained = { default-features = false, path = "../../primitives/self-co scale-info = { version = "1.0.0", default-features = false, features = ["derive"] } # benchmarking dependencies -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true } -frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true } +frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false, optional = true } +frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13", default-features = false, optional = true } [build-dependencies] -substrate-wasm-builder = { git = "https://github.com/paritytech/substrate" } +substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-jsonrpsee-v0.9.13" } [features] default = ["std", "aura"] diff --git a/template/runtime/src/lib.rs b/template/runtime/src/lib.rs index 118e96dda6..cc3b7699d9 100644 --- a/template/runtime/src/lib.rs +++ b/template/runtime/src/lib.rs @@ -80,7 +80,7 @@ pub type Index = u32; pub type Hash = sp_core::H256; /// Digest item type. -pub type DigestItem = generic::DigestItem; +pub type DigestItem = generic::DigestItem; /// Opaque types. These are used by the CLI to instantiate machinery that don't need to know /// the specifics of the runtime. They can then be made to be agnostic over specific formats @@ -227,6 +227,8 @@ impl pallet_grandpa::Config for Runtime { type HandleEquivocation = (); type WeightInfo = (); + + type MaxAuthorities = (); } parameter_types! { @@ -274,6 +276,7 @@ impl pallet_transaction_payment::Config for Runtime { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; type FeeMultiplierUpdate = (); + type OperationalFeeMultiplier = (); } impl pallet_sudo::Config for Runtime {